/* ==========================================================================
   SJCE Mysore Heritage — main stylesheet
   Palette & layout from the archived 2014 sjcemysore.org (SJCEStyleSheet.css):
   maroon #991122 / #660022, text #4F4A4A, accent yellow #FFDD11, light grey panels.
   ========================================================================== */

:root {
	--maroon: #991122;
	--maroon-2: #b3162b;
	--maroon-dark: #660022;
	--maroon-deep: #4a0018;
	--yellow: #ffdd11;
	--text: #4f4a4a;
	--heading: #2e2a2a;
	--muted: #6b6464;
	--line: #dedede;
	--soft: #fff7f7;
	--soft-2: #f6f1ee;
	--bg: #ffffff;
	--panel: #ffffff;
	--shadow: 0 1px 2px rgba(0,0,0,.06), 0 6px 18px rgba(80,0,20,.08);
	--shadow-lg: 0 18px 40px rgba(80,0,20,.16);
	--radius: 10px;
	--radius-lg: 18px;
	--fs-base: 16px;
	--font-head: "Ubuntu", "Trebuchet MS", sans-serif;
	--font-body: "Open Sans", Verdana, Geneva, Tahoma, sans-serif;
	--container: 1200px;
	--ease: cubic-bezier(.2,.7,.2,1);
	color-scheme: light;
}

@media (prefers-color-scheme: dark) {
	:root:not([data-theme="light"]) {
		--text: #e2dada; --heading: #fff4f4; --muted: #b9adad; --line: #3d3133;
		--soft: #261619; --soft-2: #1f1517; --bg: #160e10; --panel: #1f1517;
		--shadow: 0 1px 2px rgba(0,0,0,.4), 0 6px 18px rgba(0,0,0,.35);
		--maroon-2: #d0344a; color-scheme: dark;
	}
}
:root[data-theme="dark"] {
	--text: #e2dada; --heading: #fff4f4; --muted: #b9adad; --line: #3d3133;
	--soft: #261619; --soft-2: #1f1517; --bg: #160e10; --panel: #1f1517;
	--shadow: 0 1px 2px rgba(0,0,0,.4), 0 6px 18px rgba(0,0,0,.35);
	--maroon-2: #d0344a; color-scheme: dark;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { overflow-x: clip; font-size: var(--fs-base); scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 90px; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 1rem/1.75 var(--font-body); overflow-x: clip; }
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: var(--maroon-2); text-decoration-thickness: 1px; text-underline-offset: 3px; transition: color .2s; }
a:hover { color: var(--maroon-dark); }
:root[data-theme="dark"] a:hover { color: #ff8a9a; }
h1, h2, h3, h4 { font-family: var(--font-head); color: var(--heading); line-height: 1.25; font-weight: 500; margin: 1.6em 0 .6em; }
h1 { font-size: clamp(1.9rem, 3.4vw, 2.7rem); }
h2 { font-size: clamp(1.4rem, 2.3vw, 1.85rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1.1em; }
hr { border: 0; border-top: 1px solid var(--line); margin: 2rem 0; }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; border-radius: 4px; }
::selection { background: var(--maroon); color: #fff; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 1rem; top: -100px; z-index: 1000; background: var(--yellow); color: #000; padding: .6rem 1rem; border-radius: 6px; font-weight: 700; }
.skip-link:focus { top: 1rem; }
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 16px; }
.muted { color: var(--muted); }
.lead { font-size: 1.12rem; color: var(--muted); max-width: 760px; }
[hidden] { display: none !important; }

/* ---------- Buttons ---------- */
.btn { --b: var(--maroon); display: inline-flex; align-items: center; gap: .5rem; padding: .7rem 1.25rem; border-radius: 999px; border: 2px solid var(--b); background: transparent; color: var(--b); font: 500 .95rem/1.2 var(--font-head); text-decoration: none; cursor: pointer; transition: transform .25s var(--ease), background .25s, color .25s, box-shadow .25s; }
:root[data-theme="dark"] .btn { --b: #ff8a9a; }
.btn:hover { background: var(--b); color: #fff; transform: translateY(-2px); box-shadow: var(--shadow); }
.btn--primary { background: linear-gradient(180deg, var(--maroon-2), var(--maroon)); border-color: var(--maroon); color: #fff; }
.btn--primary:hover { background: var(--maroon-dark); color: #fff; }
.btn--light { background: #fff; color: var(--maroon); border-color: #fff; }
.btn--light:hover { background: var(--yellow); border-color: var(--yellow); color: #000; }
.btn--outline-light { border-color: rgba(255,255,255,.8); color: #fff; }
.btn--outline-light:hover { background: #fff; color: var(--maroon); }
.btn--small { padding: .45rem .9rem; font-size: .85rem; }
.btn--lg { padding: .9rem 1.6rem; font-size: 1.02rem; }
.btn .ico { width: 18px; height: 18px; }
.link-arrow { display: inline-flex; align-items: center; gap: .35rem; font-family: var(--font-head); font-weight: 500; text-decoration: none; }
.link-arrow .ico { transition: transform .25s var(--ease); }
.link-arrow:hover .ico { transform: translateX(4px); }
.pill { display: inline-block; padding: .15rem .7rem; border-radius: 999px; background: var(--soft); color: var(--maroon); font: 500 .8rem/1.6 var(--font-head); text-decoration: none; border: 1px solid #f1d4d8; }
:root[data-theme="dark"] .pill { color: #ff9aa8; border-color: var(--line); }

/* ---------- Reading progress ---------- */
.progress { position: fixed; inset: 0 0 auto 0; height: 3px; z-index: 999; pointer-events: none; }
.progress__bar { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--yellow), var(--maroon-2)); transition: width .1s linear; }

/* ---------- Utility bar ---------- */
.utilitybar { background: var(--soft-2); border-bottom: 1px solid var(--line); font-size: .8rem; }
.utilitybar__inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 38px; }
.utilitybar__note { margin: 0; color: var(--muted); }
.utilitybar__tools { display: flex; gap: .25rem; flex-shrink: 0; }
.tool { position: relative; display: inline-grid; place-items: center; min-width: 32px; height: 30px; padding: 0 .4rem; border: 1px solid transparent; border-radius: 6px; background: none; color: var(--text); font: 700 .78rem var(--font-head); cursor: pointer; text-decoration: none; }
.tool:hover { background: var(--panel); border-color: var(--line); color: var(--maroon); }
.tool .ico { width: 17px; height: 17px; }
.rl-count, .cart-count { position: absolute; top: -4px; right: -4px; min-width: 16px; height: 16px; padding: 0 3px; border-radius: 8px; background: var(--maroon); color: #fff; font-size: .62rem; line-height: 16px; text-align: center; }
.cart-count:empty, .cart-count:is([data-zero]) { display: none; }

/* ---------- Header (2014 layout) ---------- */
.site-header { position: sticky; top: 0; z-index: 100; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); transition: box-shadow .3s; }
.site-header.is-stuck { box-shadow: 0 4px 18px rgba(80,0,20,.12); }
.site-header__inner { display: flex; align-items: center; gap: 1.5rem; padding-top: .6rem; padding-bottom: .6rem; }
.brand { display: flex; align-items: center; gap: .75rem; text-decoration: none; color: var(--maroon-dark); flex-shrink: 0; }
.brand__logo { max-height: 64px; width: auto; }
.brand__badge { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: radial-gradient(circle at 30% 25%, var(--maroon-2), var(--maroon-dark)); box-shadow: inset 0 0 0 3px #fff, 0 0 0 2px var(--maroon), var(--shadow); transition: transform .5s var(--ease); }
.brand__badge span { color: #fff; font: 700 .82rem/1 var(--font-head); letter-spacing: .06em; }
.brand:hover .brand__badge { transform: rotate(-8deg) scale(1.05); }
.brand__badge--small { width: 44px; height: 44px; flex-shrink: 0; }
.brand__badge--small span { font-size: .66rem; }
.brand__text { display: flex; flex-direction: column; line-height: 1.15; }
.brand__name { font: 700 1.35rem var(--font-head); color: var(--maroon); }
:root[data-theme="dark"] .brand__name { color: #ff8a9a; }
.brand__tag { font-size: .74rem; color: var(--muted); max-width: 230px; }
.site-header__nav { flex: 1; display: flex; align-items: center; justify-content: flex-end; gap: .75rem; min-width: 0; }

/* Maroon tab bar with rounded ends (top_menu_bg_left/right in 2014) */
.topnav { background: linear-gradient(180deg, var(--maroon-2), var(--maroon) 55%, #85101f); border-radius: 0 0 22px 22px / 0 0 22px 22px; box-shadow: var(--shadow); padding: 0 1.1rem; position: relative; }
.topnav::before, .topnav::after { content: ""; position: absolute; top: 0; width: 18px; height: 100%; background: inherit; }
.topnav::before { left: -9px; transform: skewX(18deg); border-radius: 0 0 0 14px; }
.topnav::after { right: -9px; transform: skewX(-18deg); border-radius: 0 0 14px 0; }
.topnav__menu { list-style: none; display: flex; margin: 0; padding: 0; position: relative; z-index: 1; }
.topnav__menu > li { position: relative; }
.topnav__menu > li > a { display: block; padding: .8rem .85rem; color: #fff; text-decoration: none; font: 400 .92rem/1.2 var(--font-head); white-space: nowrap; position: relative; }
.topnav__menu > li > a::after { content: ""; position: absolute; left: .85rem; right: .85rem; bottom: .45rem; height: 2px; background: var(--yellow); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
.topnav__menu > li:hover > a::after, .topnav__menu > li.current-menu-item > a::after, .topnav__menu > li.current-menu-ancestor > a::after, .topnav__menu > li:focus-within > a::after { transform: scaleX(1); }
.topnav__menu > li.menu-item-has-children > a { padding-right: 1.4rem; }
.topnav__menu > li.menu-item-has-children > a::before { content: ""; position: absolute; right: .6rem; top: 50%; width: 6px; height: 6px; border-right: 1.5px solid #fff; border-bottom: 1.5px solid #fff; transform: translateY(-70%) rotate(45deg); }
.sub-menu { list-style: none; margin: 0; padding: .5rem; position: absolute; top: 100%; left: 0; min-width: 240px; background: var(--panel); border-radius: 12px; box-shadow: var(--shadow-lg); border-top: 3px solid var(--maroon); opacity: 0; visibility: hidden; transform: translateY(10px); transition: all .25s var(--ease); z-index: 20; }
.topnav__menu > li:hover > .sub-menu, .topnav__menu > li:focus-within > .sub-menu, .topnav__menu > li.is-open > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.sub-menu a { display: block; padding: .5rem .75rem; border-radius: 8px; color: var(--text); text-decoration: none; font-size: .9rem; }
.sub-menu a:hover, .sub-menu .current-menu-item > a { background: var(--soft); color: var(--maroon); padding-left: 1rem; }
.header-actions { display: flex; align-items: center; gap: .5rem; }
.header-search { display: flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; background: var(--panel); overflow: hidden; transition: box-shadow .2s, border-color .2s; }
.header-search:focus-within { border-color: var(--maroon); box-shadow: 0 0 0 3px rgba(153,17,34,.15); }
.header-search input { border: 0; background: transparent; color: var(--text); padding: .45rem .2rem .45rem .9rem; width: 130px; font: inherit; font-size: .85rem; outline: none; transition: width .3s var(--ease); }
.header-search input:focus { width: 190px; }
.header-search button { border: 0; background: none; color: var(--maroon); padding: .4rem .7rem; cursor: pointer; display: grid; place-items: center; }
.nav-toggle { display: none; border: 0; background: var(--maroon); color: #fff; width: 44px; height: 44px; border-radius: 10px; cursor: pointer; place-items: center; }

/* Quick links row (big two-line items with soft separators) */
.quicklinks { display: flex; flex-wrap: wrap; gap: 0; padding-top: .3rem; padding-bottom: .9rem; }
.quicklinks a { flex: 1 1 150px; display: flex; flex-direction: column; padding: .55rem 1.1rem; text-decoration: none; color: var(--heading); position: relative; border-radius: 10px; transition: background .25s, transform .25s var(--ease); }
.quicklinks a + a::before { content: ""; position: absolute; left: 0; top: 15%; height: 70%; width: 10px; background: linear-gradient(90deg, rgba(0,0,0,.08), transparent); }
.quicklinks a:hover { background: var(--soft); transform: translateY(-2px); }
.quicklinks strong { font: 500 1.2rem/1.2 var(--font-head); color: var(--heading); }
.quicklinks span { font: 400 .92rem/1.3 var(--font-head); color: var(--muted); }

/* ---------- Page head ---------- */
.page-head { position: relative; color: #fff; padding: 2.4rem 0 2.6rem; background: linear-gradient(120deg, var(--maroon-deep), var(--maroon) 60%, var(--maroon-2)); overflow: hidden; isolation: isolate; }
.page-head::before { content: ""; position: absolute; inset: 0; z-index: -1; background-image: radial-gradient(circle at 85% 20%, rgba(255,221,17,.18), transparent 40%), repeating-linear-gradient(135deg, rgba(255,255,255,.04) 0 2px, transparent 2px 14px); }
.page-head--image::after { content: ""; position: absolute; inset: 0; z-index: -2; background: var(--bg) var(--bg-img, none); background-image: var(--bg); background-size: cover; background-position: center; opacity: 1; }
.page-head--image::before { background: linear-gradient(100deg, rgba(74,0,24,.92), rgba(153,17,34,.78) 55%, rgba(102,0,34,.45)); }
.page-head__title { color: #fff; margin: .3rem 0 .4rem; max-width: 900px; }
.page-head__sub { max-width: 760px; opacity: .92; margin: 0; font-size: 1.05rem; }
.breadcrumbs { font-size: .82rem; }
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: .35rem; margin: 0; padding: 0; }
.breadcrumbs li + li::before { content: "›"; margin-right: .35rem; opacity: .7; }
.breadcrumbs a { color: #fff; opacity: .85; text-decoration: none; }
.breadcrumbs a:hover { opacity: 1; text-decoration: underline; }
.breadcrumbs span { color: #fff; }

/* ---------- Layout with left menu ---------- */
.layout { display: grid; gap: 2rem; padding-top: 2rem; padding-bottom: 3rem; }
.layout--with-side { grid-template-columns: 250px minmax(0, 1fr); }
.site-main { min-width: 0; }

/* Left panels — rounded white box with soft shadow (leftsidemenu_top/bottom) */
.leftbar__toggle { display: none; }
.leftbar__panels { position: sticky; top: 100px; display: grid; gap: 1.2rem; }
.side-panel { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); padding: .8rem .6rem; position: relative; }
.side-panel::before { content: ""; position: absolute; left: 6px; top: 10px; bottom: 10px; width: 3px; border-radius: 3px; background: linear-gradient(var(--line), transparent); }
.side-panel__title { font: 500 1.15rem var(--font-head); color: var(--maroon); margin: .2rem .8rem .5rem; }
:root[data-theme="dark"] .side-panel__title { color: #ff8a9a; }
.side-panel__title--swoosh { padding-bottom: .7rem; background: radial-gradient(120% 40% at 60% 100%, transparent 58%, var(--maroon) 60%, var(--maroon-2) 63%, transparent 66%) no-repeat bottom / 100% 18px; text-align: center; font-size: 1.25rem; }
.side-menu { list-style: none; margin: 0; padding: 0; }
.side-menu a { display: block; padding: .38rem .9rem .38rem 1.4rem; color: var(--text); text-decoration: none; font-size: .87rem; border-radius: 8px; position: relative; transition: background .2s, color .2s, padding .25s var(--ease); }
.side-menu a::before { content: ""; position: absolute; left: .6rem; top: 50%; width: 5px; height: 5px; border-radius: 50%; background: var(--line); transform: translateY(-50%); transition: background .2s; }
.side-menu a:hover, .side-menu .current-menu-item > a, .side-menu .current_page_item > a { background: var(--soft); color: var(--maroon); padding-left: 1.7rem; }
.side-menu a:hover::before, .side-menu .current-menu-item > a::before { background: var(--maroon); }
.side-panel--cta { background: linear-gradient(160deg, var(--maroon), var(--maroon-dark)); color: #fff; border: 0; padding: 1.1rem 1.2rem; }
.side-panel--cta::before { display: none; }
.side-panel--cta .side-panel__title { color: var(--yellow); margin: 0 0 .3rem; }
.side-panel--cta p { font-size: .88rem; opacity: .92; }
.side-panel--cta .btn { --b: #fff; }
.side-panel--cta .btn:hover { color: var(--maroon); }

/* ---------- Prose ---------- */
.prose { font-size: 1.02rem; }
.prose > :first-child { margin-top: 0; }
.prose h2 { padding-bottom: .35rem; border-bottom: 2px solid var(--soft); position: relative; }
.prose h2::after { content: ""; position: absolute; left: 0; bottom: -2px; width: 60px; height: 2px; background: var(--maroon); }
.prose ul { padding-left: 0; list-style: none; }
.prose ul > li { position: relative; padding-left: 1.6rem; margin: .35rem 0; }
.prose ul > li::before { content: ""; position: absolute; left: 0; top: .55em; width: 18px; height: 12px; background: url(../img/archive/hand_point.png) no-repeat center / contain; }
.prose ol { padding-left: 1.3rem; }
.prose ol > li { margin: .35rem 0; }
.prose ol > li::marker { color: var(--maroon); font-weight: 700; }
.prose blockquote { margin: 1.5rem 0; padding: 1rem 1.3rem; border-left: 4px solid var(--maroon); background: var(--soft); border-radius: 0 var(--radius) var(--radius) 0; font-style: italic; }
.prose table, .data-table { width: 100%; border-collapse: collapse; margin: 1.4rem 0; font-size: .93rem; display: block; overflow-x: auto; }
@media (min-width: 700px) { .prose table, .data-table { display: table; } }
.prose th, .prose td, .data-table th, .data-table td { padding: .65rem .8rem; border: 1px solid var(--line); text-align: left; vertical-align: top; }
.prose thead th, .data-table thead th { background: linear-gradient(180deg, var(--maroon-2), var(--maroon)); color: #fff; font-family: var(--font-head); font-weight: 500; border-color: var(--maroon); }
.prose tbody tr:nth-child(even), .data-table tbody tr:nth-child(even) { background: var(--soft); }
.prose figure { margin: 1.6rem 0; }
.prose figcaption, .entry-figure figcaption { font-size: .8rem; color: var(--muted); margin-top: .4rem; }
.prose img { border-radius: var(--radius); }
.callout { margin: 1.5rem 0; padding: 1rem 1.2rem 1rem 3.2rem; border-radius: var(--radius); background: var(--soft); border: 1px solid #f1d4d8; position: relative; }
.callout::before { content: "i"; position: absolute; left: 1rem; top: 1rem; width: 24px; height: 24px; border-radius: 50%; background: var(--maroon); color: #fff; font: 700 .85rem/24px var(--font-head); text-align: center; }
.callout > :last-child { margin-bottom: 0; }
.callout--warn { background: #fffbe6; border-color: #f3e08b; color: #4a3f00; }
.callout--warn::before { content: "!"; background: #c99a00; }
:root[data-theme="dark"] .callout { border-color: var(--line); }
:root[data-theme="dark"] .callout--warn { background: #2b2410; color: #f2e3a6; }
.key-facts { margin: 1.4rem 0 2rem; padding: 1.1rem 1.4rem; border-radius: var(--radius-lg); background: linear-gradient(135deg, var(--soft), var(--soft-2)); border: 1px solid var(--line); position: relative; }
.key-facts::before { content: "Key facts"; display: inline-block; margin-bottom: .5rem; font: 700 .75rem var(--font-head); letter-spacing: .12em; text-transform: uppercase; color: var(--maroon); }
:root[data-theme="dark"] .key-facts::before { color: #ff8a9a; }
.key-facts ul { margin: 0; }
ol.steps { counter-reset: s; list-style: none; padding: 0; }
ol.steps > li { counter-increment: s; position: relative; padding: .2rem 0 .8rem 3rem; }
ol.steps > li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 2.1rem; height: 2.1rem; border-radius: 50%; background: var(--maroon); color: #fff; font: 700 .95rem/2.1rem var(--font-head); text-align: center; }
ol.steps > li::marker { content: ""; }

/* FAQ accordions */
.faq { display: grid; gap: .7rem; margin: 1.2rem 0 2rem; }
.faq details { border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); overflow: hidden; transition: box-shadow .25s, border-color .25s; }
.faq details[open] { border-color: #e7b6bd; box-shadow: var(--shadow); }
.faq summary { list-style: none; cursor: pointer; padding: .95rem 3rem .95rem 1.1rem; font: 500 1.02rem/1.4 var(--font-head); color: var(--heading); position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 1rem; top: 50%; width: 26px; height: 26px; margin-top: -13px; border-radius: 50%; background: var(--soft); color: var(--maroon); font: 500 1.2rem/26px var(--font-head); text-align: center; transition: transform .3s var(--ease), background .3s, color .3s; }
.faq details[open] summary::after { transform: rotate(45deg); background: var(--maroon); color: #fff; }
.faq details > :not(summary) { padding: 0 1.1rem 1rem; margin: 0; }
.faq .faq__answer { padding: 0 1.1rem 1rem; }

/* TOC */
.toc { margin: 0 0 2rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); }
.toc summary { cursor: pointer; padding: .75rem 1rem; font: 500 1rem var(--font-head); color: var(--maroon); }
.toc ol { margin: 0; padding: 0 1rem 1rem 2.4rem; columns: 2 260px; column-gap: 2rem; }
.toc li { break-inside: avoid; margin: .2rem 0; font-size: .9rem; }
.toc a { text-decoration: none; color: var(--text); }
.toc a:hover, .toc a.is-active { color: var(--maroon); text-decoration: underline; }

/* Entry */
.entry-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem 1.2rem; margin-bottom: 1.3rem; font-size: .85rem; color: var(--muted); }
.entry-meta span { display: inline-flex; align-items: center; gap: .3rem; }
.entry-meta .ico { width: 15px; height: 15px; }
.entry-figure { margin: 0 0 1.8rem; }
.entry-figure img { width: 100%; border-radius: var(--radius-lg); box-shadow: var(--shadow); aspect-ratio: 1200/630; object-fit: cover; }
.entry-updated { margin-top: 2.5rem; padding-top: 1rem; border-top: 1px dashed var(--line); font-size: .82rem; color: var(--muted); display: flex; gap: .4rem; align-items: center; }
.entry-updated .ico { width: 15px; height: 15px; }
.entry-footer { margin-top: 2.5rem; display: grid; gap: 1.3rem; }
.tags { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; font-size: .85rem; }
.tags a { padding: .2rem .7rem; border-radius: 999px; background: var(--soft-2); border: 1px solid var(--line); text-decoration: none; color: var(--text); }
.tags a:hover { border-color: var(--maroon); color: var(--maroon); }
.share { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; font-size: .85rem; }
.share__btn { display: inline-flex; align-items: center; gap: .3rem; padding: .35rem .8rem; border-radius: 999px; border: 1px solid var(--line); background: var(--panel); color: var(--text); text-decoration: none; font: inherit; cursor: pointer; transition: all .2s; }
.share__btn:hover { border-color: var(--maroon); color: var(--maroon); transform: translateY(-1px); }
.share__btn .ico { width: 15px; height: 15px; }
.author-box { display: flex; gap: 1rem; align-items: flex-start; padding: 1.2rem; border-radius: var(--radius-lg); background: var(--soft); border: 1px solid var(--line); }
.author-box p { margin: .2rem 0 0; font-size: .9rem; }
.post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin: 2.5rem 0; }
.post-nav__link { display: flex; flex-direction: column; gap: .2rem; padding: 1rem 1.2rem; border-radius: var(--radius); border: 1px solid var(--line); background: var(--panel); text-decoration: none; color: var(--heading); font-family: var(--font-head); transition: all .25s var(--ease); }
.post-nav__link small { color: var(--maroon); }
.post-nav__link:hover { border-color: var(--maroon); transform: translateY(-3px); box-shadow: var(--shadow); }
.post-nav__link--next { text-align: right; grid-column: 2; }
.related { margin-top: 2rem; }

/* ---------- Cards ---------- */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1.4rem; }
.card { display: flex; flex-direction: column; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s; }
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: #e7b6bd; }
.card__media { display: block; aspect-ratio: 16/10; overflow: hidden; background: var(--soft-2); }
.card__media img, .card__media .ph { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.card:hover .card__media img { transform: scale(1.06); }
.card__body { display: flex; flex-direction: column; gap: .4rem; padding: 1.1rem 1.2rem 1.2rem; flex: 1; }
.card__cat { align-self: flex-start; font: 500 .72rem var(--font-head); letter-spacing: .08em; text-transform: uppercase; color: var(--maroon); text-decoration: none; }
:root[data-theme="dark"] .card__cat { color: #ff8a9a; }
.card__title { margin: 0; font-size: 1.12rem; line-height: 1.35; }
.card__title a { color: var(--heading); text-decoration: none; background: linear-gradient(var(--maroon), var(--maroon)) no-repeat 0 100% / 0 2px; transition: background-size .35s var(--ease); }
.card__title a:hover { background-size: 100% 2px; }
.card__excerpt, .card__body p { margin: 0; font-size: .9rem; color: var(--muted); }
.card__foot { margin-top: auto; padding-top: .6rem; display: flex; align-items: center; justify-content: space-between; gap: .5rem; font-size: .8rem; color: var(--muted); }
.card__foot .meta { display: inline-flex; align-items: center; gap: .3rem; }
.card__foot .ico { width: 15px; height: 15px; }
.card--service .card__title { font-size: 1.05rem; }
.price { font: 700 1.15rem var(--font-head); color: var(--maroon); }
:root[data-theme="dark"] .price { color: #ff8a9a; }
.bookmark { border: 1px solid var(--line); background: var(--panel); color: var(--muted); width: 34px; height: 34px; border-radius: 50%; display: inline-grid; place-items: center; cursor: pointer; transition: all .25s; }
.share__btn.bookmark { width: auto; height: auto; border-radius: 999px; display: inline-flex; }
.bookmark .ico { width: 16px; height: 16px; }
.bookmark:hover { color: var(--maroon); border-color: var(--maroon); }
.bookmark[aria-pressed="true"] { background: var(--maroon); border-color: var(--maroon); color: #fff; }
.bookmark[aria-pressed="true"] .ico { fill: currentColor; }

/* Placeholder (pure CSS — no generated images) */
.ph { display: grid; place-items: center; width: 100%; height: 100%; min-height: 160px; background: linear-gradient(135deg, var(--maroon-dark), var(--maroon) 55%, var(--maroon-2)); position: relative; overflow: hidden; }
.ph::before { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(45deg, rgba(255,255,255,.05) 0 2px, transparent 2px 16px); }
.ph__mark { position: relative; color: rgba(255,255,255,.85); font: 700 1.3rem var(--font-head); letter-spacing: .3em; padding: .5rem 1rem; border: 2px solid rgba(255,221,17,.6); border-radius: 999px; }

/* ---------- Filters / chips ---------- */
.filter-bar { display: flex; flex-wrap: wrap; gap: .8rem; align-items: center; margin-bottom: 1.4rem; }
.filter-search { flex: 1 1 220px; max-width: 360px; padding: .6rem 1rem; border: 1px solid var(--line); border-radius: 999px; background: var(--panel); color: var(--text); font: inherit; }
.filter-search:focus { outline: none; border-color: var(--maroon); box-shadow: 0 0 0 3px rgba(153,17,34,.15); }
.chips { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: 1rem; }
.filter-bar .chips { margin: 0; }
.chip { padding: .4rem .95rem; border-radius: 999px; border: 1px solid var(--line); background: var(--panel); color: var(--text); font: 500 .85rem var(--font-head); cursor: pointer; transition: all .2s; }
.chip:hover { border-color: var(--maroon); color: var(--maroon); }
.chip.is-active { background: var(--maroon); border-color: var(--maroon); color: #fff; }
.chip small { opacity: .75; }
.is-filtered-out { display: none !important; }
.filter-empty { padding: 1rem; text-align: center; color: var(--muted); }

/* Documents */
.doc-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .7rem; }
.prose .doc-list > li { padding-left: 0; }
.prose .doc-list > li::before { display: none; }
.doc { display: flex; gap: 1rem; align-items: flex-start; padding: .9rem 1rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); transition: all .25s var(--ease); }
.doc:hover { border-color: var(--maroon); transform: translateX(4px); box-shadow: var(--shadow); }
.doc__icon { flex-shrink: 0; width: 42px; height: 42px; border-radius: 10px; display: grid; place-items: center; background: var(--soft); color: var(--maroon); }
.doc__body a { font: 500 1rem var(--font-head); text-decoration: none; }
.doc__body small { display: block; color: var(--muted); font-size: .8rem; }

/* News archive timeline list */
.timeline-list { list-style: none; padding: 0; margin: 0; border-left: 2px solid var(--line); }
.prose .timeline-list > li { padding-left: 0; }
.prose .timeline-list > li::before { display: none; }
.tl-item { position: relative; display: grid; grid-template-columns: auto auto 1fr; gap: .3rem .8rem; align-items: baseline; padding: .7rem 0 .7rem 1.4rem; border-bottom: 1px dashed var(--line); }
.tl-item::after { content: ""; position: absolute; left: -7px; top: 1.05rem; width: 12px; height: 12px; border-radius: 50%; background: var(--panel); border: 2px solid var(--maroon); }
.tl-item__tag { font: 500 .7rem var(--font-head); text-transform: uppercase; letter-spacing: .06em; color: #fff; background: var(--maroon); padding: .1rem .5rem; border-radius: 4px; }
.tl-item__date { font-size: .78rem; color: var(--muted); }
.tl-item__title { font-size: .93rem; }
@media (max-width: 640px) { .tl-item { grid-template-columns: auto 1fr; } .tl-item__title { grid-column: 1 / -1; } }

/* Gallery */
.gallery-grid { columns: 3 240px; column-gap: 1rem; }
.gallery-item { break-inside: avoid; margin: 0 0 1rem; border-radius: var(--radius); overflow: hidden; background: var(--panel); border: 1px solid var(--line); }
.gallery-item a { display: block; overflow: hidden; }
.gallery-item img { width: 100%; transition: transform .6s var(--ease); }
.gallery-item:hover img { transform: scale(1.05); }
.gallery-item figcaption { padding: .5rem .8rem; font-size: .8rem; color: var(--muted); }
.archive-figure { margin: 1.5rem 0; }
.archive-figure img { border-radius: 8px; border: 1px solid var(--line); background: #fff; }
.archive-figure figcaption { font-size: .8rem; color: var(--muted); margin-top: .5rem; }
.archive-figure--browser { border-radius: 14px; border: 1px solid var(--line); box-shadow: var(--shadow-lg); overflow: hidden; background: var(--panel); margin: 0; }
.archive-figure--browser .browser-dots { display: flex; align-items: center; gap: 6px; padding: .55rem .8rem; background: var(--soft-2); border-bottom: 1px solid var(--line); font-size: .75rem; color: var(--muted); }
.browser-dots i { width: 10px; height: 10px; border-radius: 50%; background: #e55; }
.browser-dots i:nth-child(2) { background: #eb3; }
.browser-dots i:nth-child(3) { background: #5b5; }
.browser-dots em { margin-left: .5rem; font-style: normal; }
.archive-figure--browser a { display: block; max-height: 520px; overflow: hidden; }
.archive-figure--browser img { border: 0; border-radius: 0; transition: transform 6s linear; }
.archive-figure--browser:hover img { transform: translateY(-40%); }
.archive-figure--browser figcaption { padding: .6rem .9rem; margin: 0; }

/* ---------- Home ---------- */
.hero { position: relative; }
.hero__swiper { position: relative; height: clamp(420px, 62vh, 620px); overflow: hidden; background: var(--maroon-deep); }
.hero__slide { position: relative; display: flex; align-items: flex-end; }
.hero__media { position: absolute; inset: 0; }
.hero__media img, .hero__media .ph { width: 100%; height: 100%; object-fit: cover; transform: scale(1.08); transition: transform 7s linear; }
.swiper-slide-active .hero__media img { transform: scale(1); }
.hero__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(40,0,12,.88), rgba(102,0,34,.55) 50%, rgba(0,0,0,.05)), linear-gradient(0deg, rgba(0,0,0,.45), transparent 50%); }
.hero__content { position: relative; z-index: 2; padding-bottom: 5.5rem; color: #fff; }
.hero__kicker { font: 500 .85rem var(--font-head); letter-spacing: .2em; color: var(--yellow); margin: 0 0 .4rem; }
.hero__title { color: #fff; font-size: clamp(2rem, 5vw, 3.6rem); font-weight: 500; margin: 0 0 .7rem; max-width: 760px; }
.hero__text { max-width: 620px; font-size: 1.1rem; opacity: .95; margin-bottom: 1.6rem; }
.swiper-slide .hero__kicker, .swiper-slide .hero__title, .swiper-slide .hero__text, .swiper-slide .hero__content .btn { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.swiper-slide-active .hero__kicker, .swiper-slide-active .hero__title, .swiper-slide-active .hero__text, .swiper-slide-active .hero__content .btn { opacity: 1; transform: none; }
.swiper-slide-active .hero__title { transition-delay: .15s; }
.swiper-slide-active .hero__text { transition-delay: .3s; }
.swiper-slide-active .hero__content .btn { transition-delay: .45s; }
.no-js .hero__slide:not(:first-child) { display: none; }
.no-js .swiper-slide .hero__title, .no-js .swiper-slide .hero__text, .no-js .swiper-slide .hero__kicker, .no-js .swiper-slide .btn { opacity: 1; transform: none; }
.hero__controls { position: absolute; left: 0; right: 0; bottom: 1.4rem; z-index: 5; display: flex; align-items: center; gap: .6rem; }
.hero__btn { width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(255,255,255,.6); background: rgba(0,0,0,.2); color: #fff; font-size: 1.3rem; line-height: 1; cursor: pointer; transition: all .2s; }
.hero__btn:hover { background: #fff; color: var(--maroon); }
.hero__pause { font-size: .7rem; letter-spacing: -.1em; }
.hero__pagination { display: flex; gap: .4rem; position: static !important; width: auto !important; }
.hero__pagination .swiper-pagination-bullet { width: 28px; height: 4px; border-radius: 2px; background: rgba(255,255,255,.5); opacity: 1; margin: 0 !important; transition: all .3s; }
.hero__pagination .swiper-pagination-bullet-active { background: var(--yellow); width: 48px; }

.welcome { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 2.5rem; padding-top: 3rem; padding-bottom: 1.5rem; align-items: start; }
.welcome__title { font-family: Georgia, "Times New Roman", serif; font-weight: 400; letter-spacing: .02em; text-transform: uppercase; margin-top: 0; color: var(--heading); font-size: clamp(1.6rem, 3vw, 2.1rem); }
.welcome__text p { text-align: justify; hyphens: auto; }
.more { text-align: right; }
.more a { color: var(--maroon-dark); text-decoration: none; font-size: .9rem; }
:root[data-theme="dark"] .more a { color: #ff8a9a; }
.current-update { display: flex; align-items: stretch; }
.current-update__box { flex: 1; border: 1px solid var(--line); border-right: 0; border-radius: 10px 0 0 10px; background: var(--panel); padding: .8rem; height: 228px; overflow: hidden; position: relative; display: flex; flex-direction: column; }
.ticker { list-style: none; margin: 0; padding: 0; flex: 1; overflow: hidden; position: relative; mask-image: linear-gradient(transparent, #000 12%, #000 85%, transparent); -webkit-mask-image: linear-gradient(transparent, #000 12%, #000 85%, transparent); }
.ticker li { padding: .45rem 0; border-bottom: 1px dotted var(--line); font-size: .78rem; line-height: 1.4; font-weight: 600; text-transform: uppercase; }
.ticker a { color: var(--text); text-decoration: none; }
.ticker a:hover { color: var(--maroon); }
.ticker.is-animated { animation: tick var(--tick-dur, 30s) linear infinite; }
.current-update:hover .ticker.is-animated, .ticker.is-animated:focus-within { animation-play-state: paused; }
@keyframes tick { from { transform: translateY(0); } to { transform: translateY(-50%); } }
.current-update__more { align-self: flex-end; font-size: .8rem; color: var(--maroon-dark); text-decoration: none; padding-top: .3rem; }
.current-update__tab { width: 28px; height: 228px; border-radius: 0 10px 10px 0; object-fit: cover; }

.panels { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .9rem; padding-bottom: 3rem; }
.board { border: 1px solid var(--line); background: var(--panel); padding: .4rem .5rem 1rem; display: flex; flex-direction: column; border-radius: 6px; transition: box-shadow .3s, transform .3s var(--ease); }
.board:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.board__title { margin: 0 0 .8rem; padding: .45rem; text-align: center; color: #fff; font: 500 .98rem var(--font-head); letter-spacing: .05em; border-radius: 6px; background: linear-gradient(180deg, #c22a3f 0%, var(--maroon) 48%, #7d0d1c 52%, var(--maroon) 100%); box-shadow: inset 0 1px 0 rgba(255,255,255,.35), 0 2px 4px rgba(0,0,0,.2); }
.board__list { list-style: none; margin: 0; padding: 0 .4rem; flex: 1; }
.board__list li { padding: .45rem 0 .45rem 1.4rem; background: url(../img/archive/hand_point.png) no-repeat 0 .75rem / 16px auto; font: 500 .88rem/1.45 var(--font-head); }
.board__list a { color: var(--text); text-decoration: none; }
.board__list a:hover { color: var(--maroon); text-decoration: underline; }
.board__more { align-self: flex-end; margin-right: .5rem; font-size: .85rem; color: var(--maroon-dark); text-decoration: none; }

.band { background: var(--soft-2); }
.band--soft { background: linear-gradient(180deg, var(--soft), var(--bg)); }
.band--stats { background: linear-gradient(120deg, var(--maroon-deep), var(--maroon) 55%, var(--maroon-2)); color: #fff; padding: 3.2rem 0; position: relative; overflow: hidden; }
.band--stats::before { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(135deg, rgba(255,255,255,.04) 0 2px, transparent 2px 18px); }
.section { padding-top: 3.5rem; padding-bottom: 3.5rem; }
.section-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.section-title { margin: 0 0 1rem; position: relative; padding-bottom: .5rem; }
.section-title::after { content: ""; position: absolute; left: 0; bottom: 0; width: 56px; height: 3px; border-radius: 2px; background: linear-gradient(90deg, var(--maroon), var(--yellow)); }
.section-title--light { color: #fff; text-align: center; }
.section-title--light::after { left: 50%; transform: translateX(-50%); }
.section-head .section-title { margin: 0; }
.stats { position: relative; display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1.4rem; margin-top: 1.4rem; }
.stat { text-align: center; padding: 1rem; border-radius: var(--radius-lg); background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.15); }
.stat__num { display: block; font: 700 clamp(2rem, 4vw, 2.7rem)/1.1 var(--font-head); color: var(--yellow); font-variant-numeric: tabular-nums; }
.stat__label { font-size: .85rem; opacity: .9; }
.prose .stats { color: var(--text); }
.prose .stat { background: var(--soft); border-color: var(--line); }
.prose .stat__num { color: var(--maroon); }

.split { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 3rem; align-items: start; }
.timeline { list-style: none; margin: 1.4rem 0 1.6rem; padding: 0 0 0 1.3rem; border-left: 2px solid var(--line); }
.prose .timeline > li { padding-left: 0; }
.prose .timeline > li::before { display: none; }
.timeline__item { position: relative; margin: 0 0 1.1rem; padding-left: 1rem; }
.timeline__item::before { content: ""; position: absolute; left: -1.3rem; top: .35rem; width: 14px; height: 14px; margin-left: -8px; border-radius: 50%; background: var(--yellow); border: 3px solid var(--maroon); }
.timeline__year { font: 700 .85rem var(--font-head); color: var(--maroon); letter-spacing: .05em; }
:root[data-theme="dark"] .timeline__year { color: #ff8a9a; }
.timeline__card h3 { margin: .1rem 0 .2rem; font-size: 1.05rem; }
.timeline__card p { margin: 0; font-size: .9rem; color: var(--muted); }

.marquee { display: flex; overflow: hidden; gap: 1rem; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee__track { list-style: none; margin: 0; padding: .4rem 0; display: flex; gap: 1rem; flex-shrink: 0; animation: marquee 40s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.prose .marquee__track > li { padding-left: 1.2rem; }
.marquee__track li { padding: .7rem 1.4rem; border-radius: 999px; border: 1px solid var(--line); background: var(--panel); font: 500 1rem var(--font-head); color: var(--heading); white-space: nowrap; box-shadow: var(--shadow); }
.prose .marquee__track li::before { display: none; }
@keyframes marquee { to { transform: translateX(calc(-100% - 1rem)); } }

.cta { padding-top: 0; }
.cta__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem; padding: 2.2rem 2.4rem; border-radius: var(--radius-lg); color: #fff; background: radial-gradient(circle at 90% 10%, rgba(255,221,17,.25), transparent 40%), linear-gradient(120deg, var(--maroon-deep), var(--maroon)); box-shadow: var(--shadow-lg); }
.cta__inner h2 { color: #fff; margin: 0 0 .3rem; }
.cta__inner p { margin: 0; opacity: .9; }
.cta__actions { display: flex; flex-wrap: wrap; gap: .7rem; }

/* ---------- Forms ---------- */
.sjce-form { display: grid; gap: .3rem; padding: 1.6rem; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--panel); box-shadow: var(--shadow); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1.2rem; }
.field { margin: 0 0 .9rem; display: flex; flex-direction: column; gap: .3rem; }
.field label { font: 500 .9rem var(--font-head); color: var(--heading); }
.req { color: var(--maroon-2); }
.field input, .field select, .field textarea, .search-form input[type="search"] { width: 100%; padding: .75rem .9rem; border: 1.5px solid var(--line); border-radius: 10px; background: var(--bg); color: var(--text); font: inherit; transition: border-color .2s, box-shadow .2s; }
.field textarea { resize: vertical; min-height: 150px; }
.field input:focus, .field select:focus, .field textarea:focus, .search-form input:focus { outline: none; border-color: var(--maroon); box-shadow: 0 0 0 3px rgba(153,17,34,.15); }
.field [aria-invalid="true"] { border-color: #c4161c; background: #fff5f5; }
:root[data-theme="dark"] .field [aria-invalid="true"] { background: #2a1214; }
.field.is-valid input, .field.is-valid textarea { border-color: #2f8f4e; }
.field__error { color: #c4161c; font-size: .82rem; min-height: 0; }
:root[data-theme="dark"] .field__error { color: #ff7d7d; }
.field__hint { color: var(--muted); font-size: .78rem; text-align: right; }
.field--check { flex-direction: row; align-items: flex-start; gap: .6rem; flex-wrap: wrap; }
.field--check input { width: 20px; height: 20px; margin-top: .25rem; accent-color: var(--maroon); flex-shrink: 0; }
.field--check label { flex: 1; font: 400 .9rem/1.5 var(--font-body); }
.field--check .field__error { flex-basis: 100%; }
.form-alert { padding: .8rem 1rem; border-radius: 10px; background: #fff0f0; color: #8a0d16; border: 1px solid #f3b9be; margin-bottom: .8rem; }
:root[data-theme="dark"] .form-alert { background: #2a1214; color: #ffb3b3; border-color: #5a2a2e; }
.hp { position: absolute !important; left: -9999px !important; height: 0; overflow: hidden; }
.search-form { display: flex; gap: .5rem; margin: 0 0 1.5rem; }
.contact-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 2rem; align-items: start; }
.contact-cards { display: grid; gap: 1rem; }
.contact-card { padding: 1.2rem; border-radius: var(--radius); border: 1px solid var(--line); background: var(--panel); }
.contact-card h3 { margin: 0 0 .3rem; font-size: 1.05rem; }
.contact-card p { margin: 0; font-size: .92rem; }
.thanks { text-align: center; padding: 2rem 0; }
.thanks__icon { width: 96px; height: 96px; margin: 0 auto 1rem; border-radius: 50%; display: grid; place-items: center; background: var(--maroon); color: #fff; animation: pop .7s var(--ease) both; }
.thanks__icon .ico { width: 48px; height: 48px; stroke-dasharray: 30; stroke-dashoffset: 30; animation: draw .6s .4s ease forwards; }
@keyframes pop { from { transform: scale(.3); opacity: 0; } 60% { transform: scale(1.1); } to { transform: scale(1); opacity: 1; } }
@keyframes draw { to { stroke-dashoffset: 0; } }

/* Search results */
.search-results { list-style: none; padding: 0; margin: 0; display: grid; gap: 1rem; }
.search-result { padding: 1.1rem 1.3rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); }
.search-result h2 { margin: .4rem 0 .3rem; font-size: 1.2rem; }
.search-result h2 a { text-decoration: none; }
.search-result p { margin: 0; color: var(--muted); font-size: .92rem; }

/* Reading list */
.reading-list-box { margin-top: 3rem; padding: 1.5rem; border-radius: var(--radius-lg); border: 1px dashed #e7b6bd; background: var(--soft); }
.reading-list-box .section-title { display: flex; align-items: center; gap: .5rem; }
.reading-list__items { list-style: none; padding: 0; margin: 0; display: grid; gap: .5rem; }
.reading-list__items li { display: flex; justify-content: space-between; gap: 1rem; align-items: center; padding: .6rem .9rem; background: var(--panel); border-radius: 8px; border: 1px solid var(--line); }
.reading-list__items button { border: 0; background: none; color: var(--muted); cursor: pointer; font-size: 1.1rem; }

/* Sitemap */
.sitemap-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 2rem; }
.sitemap-cols ul ul { margin-left: 1rem; }

/* Pagination */
.pagination .nav-links { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: 2rem; }
.page-numbers { display: inline-grid; place-items: center; min-width: 40px; height: 40px; padding: 0 .8rem; border-radius: 999px; border: 1px solid var(--line); text-decoration: none; color: var(--text); }
.page-numbers.current, .page-numbers:hover { background: var(--maroon); border-color: var(--maroon); color: #fff; }

/* 404 */
.notfound { text-align: center; padding: 4rem 16px; max-width: 760px; }
.notfound__code { font: 700 clamp(5rem, 16vw, 9rem)/1 var(--font-head); margin: 0; background: linear-gradient(120deg, var(--maroon), var(--yellow)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.notfound .search-form { justify-content: center; }
.notfound__links { list-style: none; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; }
.notfound__links a { display: inline-block; padding: .45rem 1rem; border-radius: 999px; border: 1px solid var(--line); text-decoration: none; }

/* ---------- Footer ---------- */
.prefooter { margin-top: 2rem; background: var(--maroon-deep); color: #f3dfe2; padding: 3.2rem 0 2.4rem; }
.prefooter__inner { display: grid; grid-template-columns: 1.4fr 1fr 1.3fr 1.1fr; gap: 2rem; }
.prefooter h2 { color: #fff; font-size: 1.1rem; margin: 0 0 .9rem; }
.prefooter p { font-size: .9rem; opacity: .85; }
.prefooter a { color: #fff; text-decoration: none; }
.prefooter a:hover { color: var(--yellow); }
.link-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .35rem; font-size: .9rem; }
.link-list a { position: relative; padding-left: 1rem; display: inline-block; transition: transform .2s; }
.link-list a::before { content: "›"; position: absolute; left: 0; color: var(--yellow); }
.link-list a:hover { transform: translateX(3px); }
.contact-mini { list-style: none; padding: 0; margin: 0; display: grid; gap: .4rem; font-size: .88rem; }
.contact-mini li { display: flex; align-items: center; gap: .5rem; }
.contact-mini .ico { width: 16px; height: 16px; color: var(--yellow); flex-shrink: 0; }
.site-footer { background: var(--maroon-deep); padding: 0 0 1.5rem; }
.site-footer__band { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1rem; padding: 1rem 1.3rem; border-radius: 8px; color: #fff; background: url(../img/archive/footer_left_bg.jpg) no-repeat left / auto 100%, url(../img/archive/footer_right_bg.jpg) no-repeat right / auto 100%, var(--maroon); }
.site-footer__social { display: flex; align-items: center; gap: .6rem; }
.site-footer__online { color: var(--yellow); font: 700 .95rem var(--font-head); margin-right: .4rem; }
.site-footer__social img { border-radius: 4px; transition: transform .2s; }
.site-footer__social a:hover img { transform: translateY(-2px) scale(1.1); }
.pipe-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .2rem 0; font-size: .82rem; }
.pipe-list li + li::before { content: "|"; margin: 0 .55rem; opacity: .6; color: #fff; }
.pipe-list a { color: #fff; text-decoration: none; }
.pipe-list a:hover { color: var(--yellow); }
.pipe-list--small { font-size: .78rem; }
.site-footer__legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .6rem 1.5rem; padding: 1rem .3rem 0; color: #f3dfe2; font-size: .8rem; }
.site-footer__legal p { margin: 0; }
.site-footer__disclaimer { margin: 1rem .3rem 0; padding-top: 1rem; border-top: 1px solid rgba(255,255,255,.12); color: #d9bcc1; font-size: .76rem; line-height: 1.6; }
.site-footer__disclaimer a { color: #fff; }

.to-top { position: fixed; right: 18px; bottom: 18px; z-index: 90; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: var(--maroon); color: #fff; box-shadow: var(--shadow-lg); opacity: 0; transform: translateY(20px) scale(.8); pointer-events: none; transition: all .35s var(--ease); }
.to-top.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { background: var(--maroon-dark); color: var(--yellow); }
.toast { position: fixed; left: 50%; bottom: 24px; z-index: 1000; transform: translateX(-50%); padding: .7rem 1.2rem; border-radius: 999px; background: #222; color: #fff; font-size: .9rem; box-shadow: var(--shadow-lg); animation: toast .3s var(--ease); }
@keyframes toast { from { opacity: 0; transform: translate(-50%, 10px); } }

/* ---------- WooCommerce ---------- */
.woo .woocommerce-products-header__title { display: none; }
.woocommerce ul.products { display: grid !important; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 1.4rem; margin: 0 0 2rem !important; }
.woocommerce ul.products::before, .woocommerce ul.products::after { display: none !important; }
.woocommerce ul.products li.product { width: auto !important; margin: 0 !important; float: none !important; padding: 0 0 1.2rem !important; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); transition: transform .35s var(--ease), box-shadow .35s; text-align: left; }
.woocommerce ul.products li.product:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.woocommerce ul.products li.product a img { margin: 0 0 1rem !important; aspect-ratio: 16/10; object-fit: cover; }
.woocommerce ul.products li.product .woocommerce-loop-product__title, .woocommerce ul.products li.product .price, .woocommerce ul.products li.product .button { margin-left: 1.2rem !important; margin-right: 1.2rem !important; }
.woocommerce ul.products li.product .woocommerce-loop-product__title { font-family: var(--font-head); font-size: 1.1rem !important; color: var(--heading); }
.woocommerce .price, .woocommerce div.product p.price, .woocommerce div.product span.price { color: var(--maroon) !important; font-family: var(--font-head); font-weight: 700; }
.woocommerce a.button, .woocommerce button.button, .woocommerce input.button, .woocommerce #respond input#submit, .woocommerce a.button.alt, .woocommerce button.button.alt, .wc-block-components-button:not(.is-link) { background: var(--maroon) !important; color: #fff !important; border-radius: 999px !important; font-family: var(--font-head) !important; font-weight: 500 !important; padding: .7rem 1.3rem !important; transition: background .2s, transform .2s !important; }
.woocommerce a.button:hover, .woocommerce button.button:hover { background: var(--maroon-dark) !important; transform: translateY(-2px); }
.woocommerce span.onsale { background: var(--yellow); color: #000; }
.woocommerce div.product .woocommerce-tabs ul.tabs li.active { border-bottom-color: var(--panel); }
.woocommerce div.product .woocommerce-tabs ul.tabs li a { font-family: var(--font-head); }
.woocommerce-message, .woocommerce-info { border-top-color: var(--maroon) !important; }
.woocommerce-message::before, .woocommerce-info::before { color: var(--maroon) !important; }
.trust-list { list-style: none; padding: 0; margin: 1.2rem 0; display: grid; gap: .4rem; font-size: .88rem; }
.trust-list li { display: flex; gap: .5rem; align-items: flex-start; }
.trust-list .ico { width: 18px; height: 18px; color: #2f8f4e; flex-shrink: 0; margin-top: .2rem; }
:root[data-theme="dark"] .woocommerce div.product .woocommerce-tabs ul.tabs li { background: var(--soft-2); border-color: var(--line); }
:root[data-theme="dark"] .woocommerce div.product .woocommerce-tabs ul.tabs li.active { background: var(--bg); }

/* ---------- Animations helpers ---------- */
.js [data-aos] { will-change: transform, opacity; }
html:not(.js) [data-aos], .no-js [data-aos] { opacity: 1 !important; transform: none !important; }
@media print { [data-aos] { opacity: 1 !important; transform: none !important; } }
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
	[data-aos] { opacity: 1 !important; transform: none !important; }
	.ticker.is-animated, .marquee__track { animation: none !important; }
	.marquee { overflow-x: auto; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
	.brand__tag { display: none; }
	.header-search input { width: 90px; }
	.topnav__menu > li > a { padding: .8rem .6rem; font-size: .88rem; }
}
@media (max-width: 1024px) {
	.site-header { backdrop-filter: none; -webkit-backdrop-filter: none; background: var(--bg); }
	.nav-toggle { display: grid; }
	.header-search { display: none; }
	.topnav { position: fixed; inset: 0 0 0 auto; width: min(340px, 88vw); border-radius: 0; padding: 5rem 1rem 2rem; overflow-y: auto; transform: translateX(100%); transition: transform .4s var(--ease); z-index: 200; background: var(--maroon-deep); }
	.topnav::before, .topnav::after { display: none; }
	.topnav.is-open { transform: none; box-shadow: -20px 0 60px rgba(0,0,0,.35); }
	.topnav__menu { flex-direction: column; }
	.topnav__menu > li > a { padding: .85rem .6rem; font-size: 1.05rem; border-bottom: 1px solid rgba(255,255,255,.1); }
	.topnav__menu > li > a::after { display: none; }
	.topnav__menu > li.menu-item-has-children > a::before { right: 1rem; }
	.sub-menu { position: static; opacity: 1; visibility: visible; transform: none; display: none; box-shadow: none; border: 0; background: rgba(255,255,255,.06); margin: .3rem 0 .6rem; }
	.topnav__menu > li.is-open > .sub-menu { display: block; }
	.topnav__menu > li:hover > .sub-menu { display: none; }
	.topnav__menu > li.is-open:hover > .sub-menu { display: block; }
	.sub-menu a { color: #f3dfe2; }
	.sub-menu a:hover { background: rgba(255,255,255,.1); color: #fff; }
	.nav-open .nav-toggle { position: fixed; top: 14px; right: 16px; z-index: 210; background: #fff; color: var(--maroon); }
	.nav-backdrop { position: fixed; inset: 0; background: rgba(0,0,0,.45); z-index: 150; opacity: 0; transition: opacity .3s; }
	.nav-open .nav-backdrop { opacity: 1; }
	.layout--with-side { grid-template-columns: 1fr; }
	.leftbar { order: 2; }
	.layout--with-side .site-main { order: 1; }
	.leftbar__panels { position: static; }
	.welcome { grid-template-columns: 1fr; }
	.current-update { max-width: 480px; }
	.panels { grid-template-columns: 1fr 1fr; }
	.split { grid-template-columns: 1fr; }
	.prefooter__inner { grid-template-columns: 1fr 1fr; }
	.contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
	.utilitybar__note { display: none; }
	.utilitybar__inner { justify-content: flex-end; }
	.brand__badge { width: 46px; height: 46px; }
	.brand__name { font-size: 1.15rem; }
	.quicklinks { flex-wrap: nowrap; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: .6rem; }
	.quicklinks a { flex: 0 0 auto; scroll-snap-align: start; }
	.panels { grid-template-columns: 1fr; }
	.form-grid { grid-template-columns: 1fr; }
	.prefooter__inner { grid-template-columns: 1fr; }
	.post-nav { grid-template-columns: 1fr; }
	.post-nav__link--next { grid-column: auto; }
	.hero__content { padding-bottom: 5rem; }
	.cta__inner { padding: 1.6rem; }
	.sjce-form { padding: 1.1rem; }
	.welcome__text p { text-align: left; }
	.site-footer__band { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 1024px) { .leftbar__toggle { display: flex; align-items: center; gap: .5rem; width: 100%; padding: .8rem 1rem; border-radius: 12px; border: 1px solid var(--line); background: var(--panel); color: var(--maroon); font: 500 1rem var(--font-head); cursor: pointer; } .js .leftbar__panels { display: none; margin-top: 1rem; } .js .leftbar.is-open .leftbar__panels { display: grid; } }

@media print {
	.utilitybar, .site-header, .leftbar, .prefooter, .site-footer, .to-top, .share, .post-nav, .related, .toc, .progress { display: none !important; }
	.page-head { background: none; color: #000; padding: 0; }
	.page-head__title { color: #000; }
	.layout--with-side { display: block; }
	a { color: #000; }
}
.cookie-settings { color: #fff; font-size: .78rem; text-decoration: underline; opacity: .9; }
.cookie-settings:hover { color: var(--yellow); }
.home > section, .layout { overflow-x: clip; }
.leftbar__panels > * { min-width: 0; }
.leftbar .widget input, .leftbar .widget button { max-width: 100%; }
.leftbar .wp-block-search__inside-wrapper { display: flex; gap: .4rem; }
.leftbar .wp-block-search__input { flex: 1; min-width: 0; padding: .5rem .7rem; border: 1px solid var(--line); border-radius: 8px; background: var(--bg); color: var(--text); }
.leftbar .wp-block-search__button { border: 0; border-radius: 8px; background: var(--maroon); color: #fff; padding: .5rem .8rem; cursor: pointer; }
.leftbar .widget ul { list-style: none; padding: 0 .8rem; margin: 0; font-size: .88rem; }
/* Subtler motion than AOS defaults */
[data-aos=fade-up] { transform: translate3d(0, 28px, 0); }
[data-aos=fade-down] { transform: translate3d(0, -20px, 0); }
[data-aos=fade-left] { transform: translate3d(36px, 0, 0); }
[data-aos=fade-right] { transform: translate3d(-36px, 0, 0); }
[data-aos=zoom-in] { transform: scale(.94); }
[data-aos].aos-animate { transform: none; }
@media (max-width: 1024px) { .nav-open .site-header { z-index: 300; } .nav-open { overflow: hidden; } }
.tl-item { padding-left: 1.7rem; }
.tl-item::after { left: -8px; }
.toc--short ol { columns: 1; } .toc li:first-child { margin-top: 0; }
