/* ==========================================================================
   CPPSJ — Center for Pluralism, Peace and Social Justice
   Design system & site styles
   ========================================================================== */

:root {
  --blue: #2f72e3;
  --blue-600: #2560c6;
  --blue-50: #eef4fd;
  --teal: #16a085;
  --teal-600: #12866f;
  --teal-50: #e8f6f2;
  --red: #e0322f;
  --red-600: #c52825;
  --red-50: #fdeeee;
  --navy: #101c2c;
  --navy-800: #182739;
  --navy-700: #22344b;
  --slate: #556479;
  --slate-400: #8794a6;
  --line: #e3e7ee;
  --line-soft: #eef1f5;
  --bg: #ffffff;
  --bg-soft: #f6f8fb;
  --bg-warm: #faf9f6;
  --text: #1b2738;
  --text-soft: #46546a;

  --font-sans: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-serif: "Source Serif 4", Georgia, "Times New Roman", serif;

  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 2px rgba(16, 28, 44, .06);
  --shadow: 0 4px 18px rgba(16, 28, 44, .07);
  --shadow-lg: 0 18px 50px rgba(16, 28, 44, .14);
  --container: 1280px;
  --header-h: 78px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0; font-family: var(--font-sans); font-size: 16px; line-height: 1.65;
  color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--blue-600); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--navy); }
h1, h2, h3, h4, h5 { font-family: var(--font-sans); color: var(--navy); line-height: 1.2; letter-spacing: -.015em; margin: 0 0 .6em; font-weight: 700; }
h1 { font-size: clamp(2rem, 1.4rem + 2.4vw, 3.25rem); letter-spacing: -.025em; }
h2 { font-size: clamp(1.6rem, 1.2rem + 1.5vw, 2.35rem); }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.05rem; }
p { margin: 0 0 1.1em; }
ul, ol { padding-left: 1.25em; margin: 0 0 1.1em; }
li { margin-bottom: .35em; }
hr { border: 0; border-top: 1px solid var(--line); margin: 2.5rem 0; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; border-radius: 4px; }
::selection { background: rgba(47, 114, 227, .18); }
.visually-hidden { 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: 12px; top: -60px; z-index: 1000; background: var(--navy); color: #fff; padding: 10px 16px; border-radius: var(--radius-sm); font-weight: 600; }
.skip-link:focus { top: 12px; color: #fff; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: 860px; }
.section { padding: clamp(56px, 7vw, 96px) 0; }
.section-sm { padding: 48px 0; }
.section-soft { background: var(--bg-soft); }
.section-warm { background: var(--bg-warm); }
.section-dark { background: var(--navy); color: #c9d3e0; }
.section-dark h2, .section-dark h3 { color: #fff; }
.section-line { border-top: 1px solid var(--line); }

/* ---------- Typography helpers ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px; font-size: .78rem; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase; color: var(--teal-600); margin-bottom: 14px;
}
.eyebrow::before { content: ""; width: 10px; height: 10px; background: var(--red); flex: none; }
.section-dark .eyebrow { color: #6fd3bd; }
.lead { font-size: 1.15rem; color: var(--text-soft); line-height: 1.7; }
.muted { color: var(--slate); }
.small { font-size: .9rem; }
.serif { font-family: var(--font-serif); }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 40px; flex-wrap: wrap; }
.section-head > div { max-width: 720px; }
.section-head h2 { margin-bottom: .3em; }
.section-head p { color: var(--text-soft); margin: 0; }
.center { text-align: center; }
.center .section-head, .section-head.center { justify-content: center; text-align: center; }
.center .section-head > div { margin: 0 auto; }

.prose { font-family: var(--font-serif); font-size: 1.12rem; line-height: 1.78; color: #263347; }
.prose h2, .prose h3, .prose h4 { font-family: var(--font-sans); margin-top: 1.8em; }
.prose h2 { font-size: 1.65rem; }
.prose h3 { font-size: 1.25rem; }
.prose ul li::marker { color: var(--teal); }
.prose ol li::marker { color: var(--teal-600); font-weight: 700; font-family: var(--font-sans); }
.prose blockquote { margin: 1.5em 0; padding: 1em 1.4em; border-left: 4px solid var(--teal); background: var(--teal-50); border-radius: 0 var(--radius) var(--radius) 0; }
.prose table { font-family: var(--font-sans); font-size: .95rem; }
.prose > :first-child { margin-top: 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 22px;
  border-radius: 999px; font-weight: 700; font-size: .95rem; line-height: 1.2; text-decoration: none;
  border: 2px solid transparent; cursor: pointer; transition: background .2s var(--ease), color .2s, border-color .2s, transform .2s, box-shadow .2s;
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-600); color: #fff; transform: translateY(-1px); box-shadow: 0 8px 20px rgba(47, 114, 227, .3); }
.btn-accent { background: var(--red); color: #fff; }
.btn-accent:hover { background: var(--red-600); color: #fff; transform: translateY(-1px); box-shadow: 0 8px 20px rgba(224, 50, 47, .28); }
.btn-teal { background: var(--teal); color: #fff; }
.btn-teal:hover { background: var(--teal-600); color: #fff; }
.btn-dark { background: var(--navy); color: #fff; }
.btn-dark:hover { background: var(--navy-700); color: #fff; }
.btn-outline { border-color: var(--line); color: var(--navy); background: #fff; }
.btn-outline:hover { border-color: var(--navy); color: var(--navy); }
.btn-ghost-light { border-color: rgba(255, 255, 255, .35); color: #fff; }
.btn-ghost-light:hover { border-color: #fff; background: rgba(255, 255, 255, .08); color: #fff; }
.btn-sm { padding: 8px 16px; font-size: .85rem; }
.btn-lg { padding: 15px 28px; font-size: 1rem; }
.btn-block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; text-decoration: none; color: var(--blue-600); }
.link-arrow::after { content: "→"; transition: transform .2s var(--ease); }
.link-arrow:hover::after { transform: translateX(4px); }

/* ---------- Top bar ---------- */
.topbar { background: var(--navy); color: #b9c4d3; font-size: .82rem; }
.topbar .container { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 40px; }
.topbar a { color: #dfe6ef; text-decoration: none; }
.topbar a:hover { color: #fff; }
.topbar-info { display: flex; gap: 22px; flex-wrap: wrap; }
.topbar-info span, .topbar-info a { display: inline-flex; align-items: center; gap: 7px; }
.topbar-info svg { width: 14px; height: 14px; opacity: .75; }
.topbar-links { display: flex; align-items: center; gap: 18px; }
.topbar-links .sep { width: 1px; height: 14px; background: rgba(255, 255, 255, .2); }
.social { display: flex; gap: 6px; }
.social a { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; transition: background .2s; }
.social a:hover { background: rgba(255, 255, 255, .1); }
.social svg { width: 15px; height: 15px; fill: currentColor; }

/* ---------- Header / Navigation ---------- */
.site-header { position: sticky; top: 0; z-index: 100; background: rgba(255, 255, 255, .97); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); transition: box-shadow .25s; }
.site-header.is-scrolled { box-shadow: var(--shadow); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: var(--header-h); }
.brand { display: flex; align-items: center; flex: none; }
.brand img { height: 50px; width: auto; }
.main-nav { display: flex; align-items: center; height: 100%; }
.nav-list { display: flex; align-items: stretch; list-style: none; margin: 0; padding: 0; height: 100%; }
.nav-item { position: relative; margin: 0; display: flex; align-items: center; }
.nav-link {
  display: inline-flex; align-items: center; gap: 3px; padding: 8px 10px; font-size: .9rem; font-weight: 600; white-space: nowrap;
  color: var(--navy); text-decoration: none; background: none; border: 0; cursor: pointer; border-radius: 8px; height: 40px;
}
.nav-link:hover, .nav-item:hover > .nav-link, .nav-link[aria-expanded="true"] { color: var(--blue-600); background: var(--blue-50); }
.nav-link.is-active { color: var(--blue-600); }
.nav-link.is-active::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 0; height: 3px; background: var(--blue); border-radius: 3px 3px 0 0; }
.nav-link .chev { width: 14px; height: 14px; transition: transform .2s; }
.nav-link[aria-expanded="true"] .chev { transform: rotate(180deg); }
.dropdown {
  position: absolute; top: calc(100% - 4px); left: 50%; transform: translate(-50%, 8px); min-width: 280px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
  padding: 10px; opacity: 0; visibility: hidden; transition: opacity .18s, transform .18s var(--ease), visibility .18s; z-index: 50;
}
.dropdown.mega { display: grid; grid-template-columns: repeat(2, minmax(240px, 1fr)); gap: 4px 10px; min-width: 580px; padding: 14px; }
.nav-item:hover > .dropdown, .nav-item.is-open > .dropdown, .nav-item:focus-within > .dropdown { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.dropdown-title { grid-column: 1 / -1; font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--slate-400); padding: 6px 12px 4px; }
.dropdown a { display: flex; gap: 12px; padding: 10px 12px; border-radius: 10px; text-decoration: none; color: var(--navy); }
.dropdown a:hover, .dropdown a:focus-visible { background: var(--bg-soft); }
.dropdown .dd-icon { flex: none; width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; background: var(--blue-50); color: var(--blue); }
.dropdown .dd-icon svg { width: 18px; height: 18px; }
.dropdown a:nth-child(3n+2) .dd-icon { background: var(--teal-50); color: var(--teal); }
.dropdown a:nth-child(3n) .dd-icon { background: var(--red-50); color: var(--red); }
.dropdown strong { display: block; font-size: .92rem; font-weight: 700; line-height: 1.3; }
.dropdown small { display: block; font-size: .8rem; color: var(--slate); line-height: 1.4; margin-top: 2px; }
.header-actions { display: flex; align-items: center; gap: 8px; }
.icon-btn { width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line); background: #fff; display: grid; place-items: center; cursor: pointer; color: var(--navy); transition: border-color .2s, background .2s; text-decoration: none; }
.icon-btn:hover { border-color: var(--navy); color: var(--navy); }
.icon-btn svg { width: 18px; height: 18px; }
.nav-toggle { display: none; }
.masthead-meta { display: none; }

/* Mobile drawer */
.drawer-backdrop { position: fixed; inset: 0; background: rgba(16, 28, 44, .5); opacity: 0; visibility: hidden; transition: .25s; z-index: 190; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(420px, 92vw); background: #fff; z-index: 200; transform: translateX(100%); visibility: hidden; transition: transform .3s var(--ease), visibility .3s; display: flex; flex-direction: column; box-shadow: var(--shadow-lg); }
body.drawer-open { overflow: hidden; }
body.drawer-open .drawer { transform: none; visibility: visible; }
body.drawer-open .drawer-backdrop { opacity: 1; visibility: visible; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.drawer-head img { height: 40px; width: auto; }
.drawer-body { overflow-y: auto; padding: 10px 12px 24px; flex: 1; }
.drawer-body details { border-bottom: 1px solid var(--line-soft); }
.drawer-body summary, .drawer-body .m-link { display: flex; justify-content: space-between; align-items: center; padding: 14px 10px; font-weight: 700; color: var(--navy); text-decoration: none; cursor: pointer; list-style: none; }
.drawer-body summary::-webkit-details-marker { display: none; }
.drawer-body summary::after { content: "+"; font-size: 1.3rem; font-weight: 400; color: var(--slate); }
.drawer-body details[open] summary::after { content: "–"; }
.drawer-body .m-sub { padding: 0 0 12px 10px; }
.drawer-body .m-sub a { display: block; padding: 8px 12px; border-left: 2px solid var(--line); color: var(--text-soft); text-decoration: none; font-weight: 500; }
.drawer-body .m-sub a:hover { border-color: var(--blue); color: var(--blue-600); }
.drawer-body > .m-link { border-bottom: 1px solid var(--line-soft); }
.drawer-foot { padding: 16px 20px; border-top: 1px solid var(--line); display: grid; gap: 10px; font-size: .9rem; }

/* ---------- Hero (home) ---------- */
.hero { position: relative; overflow: hidden; background: var(--navy); color: #c9d3e0; }
.hero .container { position: relative; z-index: 2; display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center; padding-top: clamp(64px, 8vw, 110px); padding-bottom: clamp(64px, 8vw, 110px); }
.hero h1 { color: #fff; margin-bottom: .45em; }
.hero h1 em { font-style: normal; color: #79a8f5; }
.hero .lead { color: #c3cedc; max-width: 600px; }
.hero .btn-row { margin-top: 30px; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 10px 26px; margin-top: 38px; padding-top: 26px; border-top: 1px solid rgba(255, 255, 255, .12); font-size: .9rem; }
.hero-meta span { display: inline-flex; align-items: center; gap: 8px; color: #dbe3ee; }
.hero-meta svg { width: 18px; height: 18px; color: #6fd3bd; }
.hero-art { position: relative; aspect-ratio: 1; max-width: 460px; justify-self: end; width: 100%; }
.hero-art .q { position: absolute; width: calc(50% - 7px); height: calc(50% - 7px); }
.hero-art .q1 { top: 0; left: 0; background: var(--blue); border-bottom-right-radius: 100%; }
.hero-art .q2 { top: 0; right: 0; background: var(--teal); border-bottom-left-radius: 100%; }
.hero-art .q3 { bottom: 0; left: 0; background: #fff; border-top-right-radius: 100%; }
.hero-art .q4 { bottom: 0; right: 0; background: var(--red); border-top-left-radius: 100%; }
.hero-art .q { animation: qIn .9s var(--ease) both; }
.hero-art .q2 { animation-delay: .08s; } .hero-art .q3 { animation-delay: .16s; } .hero-art .q4 { animation-delay: .24s; }
@keyframes qIn { from { opacity: 0; transform: scale(.85); } to { opacity: 1; transform: none; } }
.hero-card { position: absolute; z-index: 3; background: #fff; color: var(--text); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); padding: 16px 18px; font-size: .86rem; display: flex; gap: 12px; align-items: center; max-width: 260px; }
.hero-card strong { display: block; color: var(--navy); font-size: .95rem; }
.hero-card .hc-icon { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; flex: none; }
.hero-card .hc-icon svg { width: 20px; height: 20px; }
.hero-card.c1 { left: -30px; bottom: 18%; }
.hero-card.c1 .hc-icon { background: var(--teal-50); color: var(--teal); }
.hero-card.c2 { right: -10px; top: 10%; }
.hero-card.c2 .hc-icon { background: var(--red-50); color: var(--red); }
.hero-bg { position: absolute; inset: 0; z-index: 1; background:
  radial-gradient(700px 400px at 85% 10%, rgba(47, 114, 227, .22), transparent 60%),
  radial-gradient(600px 400px at 0% 100%, rgba(22, 160, 133, .18), transparent 60%); }
.hero-grid { position: absolute; inset: 0; z-index: 1; opacity: .07; background-image: linear-gradient(#fff 1px, transparent 1px), linear-gradient(90deg, #fff 1px, transparent 1px); background-size: 56px 56px; mask-image: linear-gradient(to bottom, #000, transparent 85%); }

/* Quick access strip */
.quick { position: relative; z-index: 5; margin-top: -46px; }
.quick-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); border: 1px solid var(--line); overflow: hidden; }
.quick a { display: flex; gap: 14px; align-items: flex-start; padding: 24px 22px; text-decoration: none; color: var(--text); border-right: 1px solid var(--line); transition: background .2s; }
.quick a:last-child { border-right: 0; }
.quick a:hover { background: var(--bg-soft); }
.quick .q-ic { width: 44px; height: 44px; flex: none; border-radius: 12px; display: grid; place-items: center; }
.quick .q-ic svg { width: 22px; height: 22px; }
.quick strong { display: block; color: var(--navy); font-size: 1rem; margin-bottom: 2px; }
.quick span { font-size: .86rem; color: var(--slate); line-height: 1.45; display: block; }

/* ---------- Page hero (inner) ---------- */
.page-hero { position: relative; background: var(--navy); color: #c3cedc; overflow: hidden; }
.page-hero .container { position: relative; z-index: 2; padding-top: 54px; padding-bottom: 58px; }
.page-hero h1 { color: #fff; font-size: clamp(1.9rem, 1.3rem + 2vw, 2.9rem); margin-bottom: .35em; max-width: 900px; }
.page-hero p { max-width: 760px; font-size: 1.08rem; margin: 0; color: #c3cedc; }
.page-hero .deco { position: absolute; right: -40px; top: 50%; transform: translateY(-50%); width: 300px; height: 300px; z-index: 1; opacity: .9; }
.page-hero .deco span { position: absolute; width: calc(50% - 5px); height: calc(50% - 5px); }
.page-hero .deco span:nth-child(1) { top: 0; left: 0; background: var(--blue); border-bottom-right-radius: 100%; opacity: .35; }
.page-hero .deco span:nth-child(2) { top: 0; right: 0; background: var(--teal); border-bottom-left-radius: 100%; opacity: .35; }
.page-hero .deco span:nth-child(3) { bottom: 0; left: 0; background: #fff; border-top-right-radius: 100%; opacity: .12; }
.page-hero .deco span:nth-child(4) { bottom: 0; right: 0; background: var(--red); border-top-left-radius: 100%; opacity: .45; }
.page-hero .hero-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.page-hero .hero-tags span { font-size: .8rem; font-weight: 600; padding: 6px 12px; border-radius: 999px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .14); color: #e3e9f1; }
.breadcrumb { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 0; margin: 0 0 18px; font-size: .85rem; }
.breadcrumb li { margin: 0; display: flex; align-items: center; gap: 6px; color: #8fa0b5; }
.breadcrumb li + li::before { content: "/"; color: #56677d; }
.breadcrumb a { color: #c3cedc; text-decoration: none; }
.breadcrumb a:hover { color: #fff; text-decoration: underline; }

/* ---------- Grids & cards ---------- */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.split-wide { grid-template-columns: 1.2fr .8fr; }

.card { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 28px; transition: border-color .2s, box-shadow .25s, transform .25s var(--ease); display: flex; flex-direction: column; }
.card:hover { box-shadow: var(--shadow); }
.card-link:hover { transform: translateY(-3px); border-color: #cfd7e3; }
.card h3 { font-size: 1.15rem; margin-bottom: .45em; }
.card h3 a { color: inherit; text-decoration: none; }
.card h3 a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.card p { color: var(--text-soft); font-size: .96rem; }
.card .card-foot { margin-top: auto; padding-top: 14px; }
.card-icon { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 20px; flex: none; }
.card-icon svg { width: 26px; height: 26px; }
.ic-blue { background: var(--blue-50); color: var(--blue); }
.ic-teal { background: var(--teal-50); color: var(--teal); }
.ic-red { background: var(--red-50); color: var(--red); }
.ic-navy { background: #e8ebf0; color: var(--navy); }

.pillar { border-top: 4px solid var(--blue); }
.pillar.teal { border-top-color: var(--teal); }
.pillar.red { border-top-color: var(--red); }
.pillar.navy { border-top-color: var(--navy); }
.pillar .num { font-size: .8rem; font-weight: 800; letter-spacing: .1em; color: var(--slate-400); margin-bottom: 12px; }

.feature-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.feature-list li { display: flex; gap: 12px; align-items: flex-start; margin: 0; }
.feature-list .tick { flex: none; width: 24px; height: 24px; border-radius: 50%; background: var(--teal-50); color: var(--teal); display: grid; place-items: center; margin-top: 1px; }
.feature-list .tick svg { width: 14px; height: 14px; }
.section-dark .feature-list .tick { background: rgba(22, 160, 133, .18); color: #6fd3bd; }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: var(--radius-lg); background: #fff; overflow: hidden; }
.stat { padding: 30px 26px; border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
.stat strong { display: block; font-size: 2.3rem; font-weight: 800; color: var(--navy); line-height: 1; letter-spacing: -.03em; margin-bottom: 8px; }
.stat strong span { color: var(--red); }
.stat p { margin: 0; color: var(--slate); font-size: .92rem; line-height: 1.45; }

/* Badges */
.badge { display: inline-flex; align-items: center; gap: 6px; font-size: .74rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; padding: 5px 10px; border-radius: 999px; background: var(--bg-soft); color: var(--slate); border: 1px solid var(--line); line-height: 1.2; }
.badge-blue { background: var(--blue-50); color: var(--blue-600); border-color: #d5e3fb; }
.badge-teal { background: var(--teal-50); color: var(--teal-600); border-color: #cdeae2; }
.badge-red { background: var(--red-50); color: var(--red-600); border-color: #f7d3d2; }
.badge-navy { background: var(--navy); color: #fff; border-color: var(--navy); }
.badge-dot::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }

/* Series / book cards */
.series-card { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 22px; align-items: start; }
.book-cover {
  position: relative; aspect-ratio: 3 / 4.2; border-radius: 4px 10px 10px 4px; overflow: hidden; color: #fff; padding: 14px 12px;
  display: flex; flex-direction: column; justify-content: space-between; box-shadow: 0 10px 24px rgba(16, 28, 44, .22), inset 4px 0 0 rgba(0, 0, 0, .18);
  font-size: .62rem; line-height: 1.25; font-weight: 700; letter-spacing: .02em;
}
.book-cover::before { content: ""; position: absolute; width: 90%; aspect-ratio: 1; right: -30%; bottom: -25%; border-top-left-radius: 100%; background: rgba(255, 255, 255, .14); }
.book-cover::after { content: ""; position: absolute; width: 45%; aspect-ratio: 1; left: 0; top: 34%; border-bottom-right-radius: 100%; background: rgba(255, 255, 255, .1); }
.book-cover .bc-top { position: relative; z-index: 1; text-transform: uppercase; opacity: .85; font-size: .55rem; letter-spacing: .12em; }
.book-cover .bc-title { position: relative; z-index: 1; font-size: .78rem; }
.book-cover .bc-foot { position: relative; z-index: 1; display: flex; align-items: center; gap: 5px; font-size: .55rem; letter-spacing: .1em; }
.book-cover .bc-foot i { width: 8px; height: 8px; background: var(--red); display: inline-block; }
.cov-blue { background: linear-gradient(160deg, #3a7ff0, #1d4fa8); }
.cov-teal { background: linear-gradient(160deg, #1bb393, #0d6f5c); }
.cov-red { background: linear-gradient(160deg, #e9504c, #a91f1d); }
.cov-navy { background: linear-gradient(160deg, #2a3f5c, #0c1622); }
.cov-slate { background: linear-gradient(160deg, #6b7c93, #3a4759); }
.cov-mix { background: linear-gradient(160deg, #2f72e3 0%, #16a085 100%); }
.meta-list { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 6px; font-size: .88rem; color: var(--slate); }
.meta-list li { margin: 0; display: flex; gap: 8px; flex-wrap: wrap; }
.meta-list b { color: var(--navy); font-weight: 600; min-width: 92px; }

/* Event cards */
.event-card { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 22px; align-items: start; }
.date-tile { text-align: center; border-radius: 14px; border: 1px solid var(--line); overflow: hidden; background: #fff; }
.date-tile .m { display: block; background: var(--red); color: #fff; font-size: .75rem; font-weight: 800; letter-spacing: .12em; padding: 6px 0; text-transform: uppercase; }
.date-tile .d { display: block; font-size: 2rem; font-weight: 800; color: var(--navy); line-height: 1.1; padding-top: 8px; }
.date-tile .y { display: block; font-size: .8rem; color: var(--slate); padding-bottom: 8px; font-weight: 600; }
.date-tile.tba .d { font-size: 1.1rem; padding: 16px 0 6px; }
.event-meta { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: .88rem; color: var(--slate); margin: 6px 0 12px; }
.event-meta span { display: inline-flex; align-items: center; gap: 6px; }
.event-meta svg { width: 15px; height: 15px; color: var(--teal); }

/* Person cards */
.person { text-align: left; }
.person-top { display: flex; gap: 16px; align-items: center; margin-bottom: 14px; }
.avatar { width: 64px; height: 64px; border-radius: 50%; flex: none; display: grid; place-items: center; font-weight: 800; font-size: 1.2rem; color: #fff; background: var(--blue); letter-spacing: .02em; }
.avatar.teal { background: var(--teal); } .avatar.red { background: var(--red); } .avatar.navy { background: var(--navy); }
.person h3 { font-size: 1.05rem; margin: 0 0 2px; }
.person .role { font-size: .82rem; font-weight: 700; color: var(--teal-600); text-transform: uppercase; letter-spacing: .06em; }
.person .aff { font-size: .9rem; color: var(--text-soft); margin: 0; }
.person-open { border-style: dashed; background: var(--bg-soft); }

/* Steps / timeline */
.steps { counter-reset: step; display: grid; gap: 0; }
.step { position: relative; padding: 0 0 30px 64px; }
.step::before { counter-increment: step; content: counter(step, decimal-leading-zero); position: absolute; left: 0; top: 0; width: 44px; height: 44px; border-radius: 12px; background: var(--navy); color: #fff; font-weight: 800; font-size: .9rem; display: grid; place-items: center; }
.step::after { content: ""; position: absolute; left: 21px; top: 50px; bottom: 6px; width: 2px; background: var(--line); }
.step:last-child::after { display: none; }
.step:last-child { padding-bottom: 0; }
.step h3, .step h4 { margin: 8px 0 6px; font-size: 1.08rem; }
.step p { color: var(--text-soft); margin: 0; font-size: .96rem; }
.steps-h { display: grid; grid-template-columns: repeat(var(--n, 5), 1fr); gap: 18px; counter-reset: step; }
.steps-h .s { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 24px 20px; }
.steps-h .s::before { counter-increment: step; content: counter(step, decimal-leading-zero); display: block; font-weight: 800; color: var(--red); font-size: .9rem; margin-bottom: 10px; letter-spacing: .05em; }
.steps-h h4 { margin-bottom: 6px; }
.steps-h p { font-size: .9rem; color: var(--text-soft); margin: 0; }

/* Tables */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-lg); background: #fff; }
table { width: 100%; border-collapse: collapse; font-size: .95rem; }
th, td { text-align: left; padding: 14px 18px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { background: var(--bg-soft); font-weight: 700; color: var(--navy); font-size: .85rem; text-transform: uppercase; letter-spacing: .05em; }
tr:last-child td { border-bottom: 0; }
td.num, th.num { text-align: right; white-space: nowrap; }
.price { font-weight: 800; color: var(--navy); font-size: 1.05rem; }

/* Accordion */
.accordion { display: grid; gap: 12px; }
.accordion details { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); transition: border-color .2s, box-shadow .2s; }
.accordion details[open] { border-color: #c9d4e4; box-shadow: var(--shadow-sm); }
.accordion summary { list-style: none; cursor: pointer; padding: 18px 56px 18px 22px; font-weight: 700; color: var(--navy); position: relative; }
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary::after { content: ""; position: absolute; right: 22px; top: 50%; width: 10px; height: 10px; border-right: 2px solid var(--slate); border-bottom: 2px solid var(--slate); transform: translateY(-70%) rotate(45deg); transition: transform .2s; }
.accordion details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.accordion .acc-body { padding: 0 22px 20px; color: var(--text-soft); }
.accordion .acc-body > :last-child { margin-bottom: 0; }

/* Tabs */
.tabs { display: flex; gap: 6px; border-bottom: 1px solid var(--line); margin-bottom: 28px; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab { padding: 12px 18px; border: 0; background: none; font-weight: 700; color: var(--slate); cursor: pointer; border-bottom: 3px solid transparent; margin-bottom: -1px; white-space: nowrap; font-size: .95rem; }
.tab:hover { color: var(--navy); }
.tab[aria-selected="true"] { color: var(--blue-600); border-bottom-color: var(--blue); }
.tab-panel[hidden] { display: none; }

/* Sidebar layout (journal style) */
.layout-sidebar { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 48px; align-items: start; }
.layout-sidebar.left { grid-template-columns: 270px minmax(0, 1fr); }
.sidebar { display: grid; gap: 20px; position: sticky; top: calc(var(--header-h) + 20px); }
.widget { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 22px; }
.widget h3 { font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--slate); margin-bottom: 14px; }
.widget-dark { background: var(--navy); border-color: var(--navy); color: #c3cedc; }
.widget-dark h3 { color: #8fa0b5; }
.widget-dark p { font-size: .94rem; }
.info-dl { display: grid; gap: 0; margin: 0; font-size: .9rem; }
.info-dl div { display: grid; grid-template-columns: 110px 1fr; gap: 10px; padding: 9px 0; border-bottom: 1px dashed var(--line); }
.info-dl div:last-child { border-bottom: 0; }
.info-dl dt { color: var(--slate); font-weight: 500; }
.info-dl dd { margin: 0; color: var(--navy); font-weight: 600; }
.side-nav { list-style: none; padding: 0; margin: 0; }
.side-nav li { margin: 0; }
.side-nav a { display: flex; justify-content: space-between; align-items: center; padding: 10px 12px; border-radius: 8px; text-decoration: none; color: var(--text); font-size: .93rem; font-weight: 500; }
.side-nav a:hover { background: var(--bg-soft); color: var(--blue-600); }
.side-nav a.is-active { background: var(--blue-50); color: var(--blue-600); font-weight: 700; }
.side-nav a::after { content: "›"; color: var(--slate-400); font-size: 1.1rem; }
.toc { list-style: none; padding: 0; margin: 0; font-size: .9rem; border-left: 2px solid var(--line); }
.toc li { margin: 0; }
.toc a { display: block; padding: 6px 14px; margin-left: -2px; border-left: 2px solid transparent; color: var(--text-soft); text-decoration: none; }
.toc a:hover, .toc a.is-active { color: var(--blue-600); border-left-color: var(--blue); }

/* Notice / callout */
.notice { display: flex; gap: 14px; padding: 18px 20px; border-radius: var(--radius); background: var(--blue-50); border: 1px solid #d5e3fb; color: #22406f; font-size: .95rem; }
.notice svg { width: 22px; height: 22px; flex: none; margin-top: 1px; color: var(--blue); }
.notice p:last-child { margin: 0; }
.notice strong { color: var(--navy); }
.notice-teal { background: var(--teal-50); border-color: #cdeae2; color: #134f43; }
.notice-teal svg { color: var(--teal); }
.notice-red { background: var(--red-50); border-color: #f7d3d2; color: #6d1b19; }
.notice-red svg { color: var(--red); }
.notice-amber { background: #fff8e6; border-color: #f3e2b3; color: #5e4708; }
.notice-amber svg { color: #c48a00; }

/* CTA band */
.cta-band { position: relative; overflow: hidden; border-radius: 22px; background: var(--navy); color: #c3cedc; padding: clamp(36px, 5vw, 60px); display: grid; grid-template-columns: 1fr auto; gap: 30px; align-items: center; }
.cta-band h2 { color: #fff; margin-bottom: .3em; font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2.2rem); }
.cta-band p { margin: 0; max-width: 620px; }
.cta-band > * { position: relative; z-index: 1; }
.cta-band::before { content: ""; position: absolute; width: 240px; height: 240px; right: -60px; top: -60px; background: var(--blue); border-bottom-left-radius: 100%; opacity: .35; z-index: 0; }
.cta-band::after { content: ""; position: absolute; width: 160px; height: 160px; right: 150px; bottom: -80px; background: var(--red); border-top-left-radius: 100%; opacity: .35; z-index: 0; }

/* Empty state */
.empty { text-align: center; padding: 56px 24px; border: 2px dashed var(--line); border-radius: var(--radius-lg); background: var(--bg-soft); }
.empty .card-icon { margin: 0 auto 18px; }
.empty h3 { margin-bottom: .4em; }
.empty p { max-width: 560px; margin: 0 auto 20px; color: var(--text-soft); }

/* Catalog / filters */
.filter-bar { display: grid; grid-template-columns: 1fr auto auto; gap: 12px; margin-bottom: 26px; }
.search-field { position: relative; }
.search-field svg { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--slate); pointer-events: none; }
.search-field input { padding-left: 46px !important; }
.result-count { font-size: .9rem; color: var(--slate); margin-bottom: 16px; }
.pub-item { padding: 24px 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 1fr auto; gap: 18px; }
.pub-item:first-child { padding-top: 0; }
.pub-item h3 { font-size: 1.15rem; margin: 8px 0 6px; font-family: var(--font-serif); font-weight: 600; letter-spacing: 0; }
.pub-item h3 a { color: var(--navy); text-decoration: none; }
.pub-item h3 a:hover { color: var(--blue-600); text-decoration: underline; }
.pub-item .authors { font-size: .93rem; color: var(--text-soft); margin: 0 0 6px; }
.pub-item .pmeta { font-size: .85rem; color: var(--slate); display: flex; flex-wrap: wrap; gap: 4px 16px; }
.pub-actions { display: flex; flex-direction: column; gap: 8px; align-items: flex-end; }

/* People directory (editors & reviewers) */
.people-stats { display: flex; flex-wrap: wrap; gap: 8px 28px; margin: 26px 0 20px; color: var(--slate); font-size: .95rem; }
.people-stats strong { color: var(--navy); font-size: 1.35rem; font-weight: 800; margin-right: 4px; }
.people-filter { grid-template-columns: minmax(0, 1fr) 220px 220px; margin-bottom: 14px; }
.people-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.az { display: flex; flex-wrap: wrap; gap: 4px; }
.az-btn { min-width: 32px; height: 32px; padding: 0 8px; border: 1px solid var(--line); background: #fff; border-radius: 6px; font-size: .82rem; font-weight: 700; color: var(--navy); cursor: pointer; }
.az-btn:hover:not([disabled]) { border-color: var(--navy); }
.az-btn.is-on { background: var(--navy); border-color: var(--navy); color: #fff; }
.az-btn[disabled] { opacity: .35; cursor: default; }
.view-toggle { display: inline-flex; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; flex: none; }
.vt-btn { border: 0; background: #fff; padding: 7px 14px; font-size: .85rem; font-weight: 700; color: var(--slate); cursor: pointer; }
.vt-btn + .vt-btn { border-left: 1px solid var(--line); }
.vt-btn.is-on { background: var(--navy); color: #fff; }
.people .person { padding: 22px; }
.people .person-top { margin-bottom: 10px; }
.people .avatar { width: 52px; height: 52px; font-size: 1rem; }
.people .p-links { margin: 10px 0 0; }
.people .p-links:empty { display: none; }
.people.list-view { grid-template-columns: minmax(0, 1fr); gap: 0; border-top: 1px solid var(--line); }
.people.list-view .person { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1.2fr) minmax(0, 1.2fr) 120px; gap: 6px 20px; align-items: center;
  border: 0; border-bottom: 1px solid var(--line); border-radius: 0; padding: 12px 6px; background: transparent; }
.people.list-view .person:hover { background: var(--bg-soft); box-shadow: none; }
.people.list-view .person-top { margin: 0; gap: 12px; }
.people.list-view .avatar { width: 38px; height: 38px; font-size: .82rem; }
.people.list-view .person h3 { font-size: .98rem; }
.people.list-view .aff, .people.list-view .p-links { margin: 0; font-size: .88rem; }
.people.list-view .p-links { text-align: right; }
.people.list-view .p-links:empty { display: block; }
.people.list-view .p-bio { display: none; }
@media (max-width: 860px) {
  .people-filter { grid-template-columns: 1fr 1fr; }
  .people.list-view .person { grid-template-columns: minmax(0, 1fr); gap: 2px; padding: 14px 4px; }
  .people.list-view .aff { padding-left: 50px; }
  .people.list-view .p-links { text-align: left; padding-left: 50px; }
}

/* Forms */
.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(22px, 4vw, 40px); box-shadow: var(--shadow-sm); }
.form-section { border: 0; padding: 0; margin: 0 0 30px; min-width: 0; }
.form-section legend { font-weight: 800; color: var(--navy); font-size: 1.05rem; margin-bottom: 16px; padding: 0; display: flex; align-items: center; gap: 10px; width: 100%; }
.form-section legend .n { width: 28px; height: 28px; border-radius: 8px; background: var(--blue-50); color: var(--blue-600); display: grid; place-items: center; font-size: .82rem; flex: none; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 20px; }
.form-grid .full { grid-column: 1 / -1; }
.field { display: grid; gap: 7px; }
.field label, .field .label { font-weight: 600; font-size: .9rem; color: var(--navy); }
.field .req { color: var(--red); margin-left: 2px; }
.field .hint { font-size: .82rem; color: var(--slate); }
input[type="text"], input[type="email"], input[type="tel"], input[type="url"], input[type="number"], input[type="date"], input[type="search"], select, textarea {
  width: 100%; padding: 12px 14px; border: 1.5px solid #d6dce5; border-radius: var(--radius-sm); background: #fff; font-size: .96rem;
  transition: border-color .2s, box-shadow .2s; appearance: none; -webkit-appearance: none;
}
select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23556479' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; background-size: 18px; padding-right: 40px; }
textarea { min-height: 130px; resize: vertical; line-height: 1.55; }
input:hover, select:hover, textarea:hover { border-color: #b7c1cf; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(47, 114, 227, .14); }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: var(--red); }
.field .error-msg { font-size: .82rem; color: var(--red-600); font-weight: 600; display: none; }
.field.has-error .error-msg { display: block; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .92rem; color: var(--text-soft); cursor: pointer; }
.check input { width: 18px; height: 18px; margin: 3px 0 0; accent-color: var(--blue); flex: none; }
.check-group { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 20px; }
.file-drop { position: relative; border: 2px dashed #c9d2de; border-radius: var(--radius); padding: 26px; text-align: center; background: var(--bg-soft); transition: border-color .2s, background .2s; }
.file-drop:hover, .file-drop.is-drag { border-color: var(--blue); background: var(--blue-50); }
.file-drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }
.file-drop svg { width: 30px; height: 30px; color: var(--blue); margin: 0 auto 8px; }
.file-drop strong { color: var(--navy); display: block; }
.file-drop span { font-size: .84rem; color: var(--slate); }
.file-drop .file-name { margin-top: 8px; font-weight: 700; color: var(--teal-600); font-size: .9rem; }
.hp-field { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.form-actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 8px; }
.form-status { display: none; margin-top: 18px; }
.form-status.show { display: flex; }
.form-success { text-align: center; padding: 30px 10px; }
.form-success .card-icon { margin: 0 auto 16px; }
.form-success .ref { display: inline-block; font-family: ui-monospace, Menlo, monospace; background: var(--bg-soft); border: 1px solid var(--line); padding: 6px 12px; border-radius: 8px; font-weight: 700; color: var(--navy); margin: 6px 0 16px; }
.btn[disabled] { opacity: .65; cursor: progress; transform: none !important; }
.spinner { width: 16px; height: 16px; border: 2px solid rgba(255, 255, 255, .45); border-top-color: #fff; border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Contact */
.contact-item { display: flex; gap: 16px; align-items: flex-start; padding: 18px 0; border-bottom: 1px solid var(--line); }
.contact-item:last-child { border-bottom: 0; }
.contact-item h4 { margin: 0 0 2px; font-size: 1rem; }
.contact-item p { margin: 0; color: var(--text-soft); }
.contact-item a { font-weight: 600; }
.map-card { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); background: var(--bg-soft); position: relative; min-height: 300px; display: grid; place-items: center; text-align: center; padding: 30px; background-image: linear-gradient(var(--line-soft) 1px, transparent 1px), linear-gradient(90deg, var(--line-soft) 1px, transparent 1px); background-size: 32px 32px; }
.map-pin { width: 56px; height: 56px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); background: var(--red); display: grid; place-items: center; margin: 0 auto 18px; box-shadow: 0 10px 24px rgba(224, 50, 47, .35); }
.map-pin span { width: 18px; height: 18px; background: #fff; border-radius: 50%; }

/* News */
.news-card .ndate { font-size: .82rem; color: var(--slate); font-weight: 600; display: flex; gap: 10px; align-items: center; margin-bottom: 12px; }
.news-card h3 { font-size: 1.1rem; }

/* Template downloads */
.dl-card { display: flex; gap: 18px; align-items: center; }
.dl-card .file-ic { width: 56px; height: 64px; flex: none; border-radius: 6px 14px 6px 6px; background: var(--blue); color: #fff; display: grid; place-items: center; font-size: .72rem; font-weight: 800; letter-spacing: .05em; position: relative; }
.dl-card .file-ic::after { content: ""; position: absolute; top: 0; right: 0; width: 14px; height: 14px; background: rgba(255, 255, 255, .35); border-bottom-left-radius: 6px; }
.dl-card .file-ic.teal { background: var(--teal); } .dl-card .file-ic.red { background: var(--red); } .dl-card .file-ic.navy { background: var(--navy); }
.dl-card h3 { font-size: 1.02rem; margin: 0 0 4px; }
.dl-card p { margin: 0; font-size: .88rem; }
.dl-card .btn { margin-left: auto; }

/* Search page */
.search-hero-input { display: flex; gap: 10px; max-width: 760px; }
.search-hero-input input { flex: 1; padding: 16px 18px; font-size: 1.05rem; border-radius: 999px; border: 0; }
.search-result { padding: 18px 0; border-bottom: 1px solid var(--line); }
.search-result h3 { font-size: 1.08rem; margin: 0 0 4px; }
.search-result h3 a { text-decoration: none; }
.search-result .url { font-size: .82rem; color: var(--teal-600); }
.search-result p { margin: 4px 0 0; font-size: .94rem; color: var(--text-soft); }
mark { background: #fff1b8; color: inherit; padding: 0 2px; border-radius: 2px; }

/* Article page */
.article-head .authors-line { font-size: 1.02rem; color: #e3e9f1; margin-top: 12px; }
.article-meta-bar { display: flex; flex-wrap: wrap; gap: 10px 26px; padding: 16px 0; border-bottom: 1px solid var(--line); font-size: .9rem; color: var(--slate); margin-bottom: 30px; }
.article-meta-bar b { color: var(--navy); }
.cite-box { font-family: var(--font-serif); font-size: .95rem; background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; line-height: 1.6; word-break: break-word; }
.keywords { display: flex; flex-wrap: wrap; gap: 6px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: #a9b6c7; font-size: .93rem; margin-top: 0; }
.footer-news { border-bottom: 1px solid rgba(255, 255, 255, .08); }
.footer-news .container { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; align-items: center; padding-top: 44px; padding-bottom: 44px; }
.footer-news h2 { color: #fff; font-size: 1.5rem; margin-bottom: .2em; }
.footer-news p { margin: 0; }
.news-form { display: flex; gap: 10px; }
.news-form input { flex: 1; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .16); background: rgba(255, 255, 255, .06); color: #fff; padding: 13px 20px; }
.news-form input::placeholder { color: #8696aa; }
.news-form input:focus { border-color: var(--blue); background: rgba(255, 255, 255, .1); }
.news-form-msg { font-size: .86rem; margin-top: 10px; color: #6fd3bd; min-height: 1.2em; }
.footer-main { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr 1.2fr; gap: 36px; padding-top: 56px; padding-bottom: 44px; }
.footer-brand img { height: 56px; width: auto; margin-bottom: 18px; }
.footer-brand p { max-width: 320px; }
.site-footer h3 { color: #fff; font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 18px; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 9px; }
.footer-links a { color: #a9b6c7; text-decoration: none; }
.footer-links a:hover { color: #fff; text-decoration: underline; }
.footer-contact { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.footer-contact li { display: flex; gap: 10px; margin: 0; }
.footer-contact svg { width: 17px; height: 17px; flex: none; margin-top: 3px; color: #6fd3bd; }
.footer-contact a { color: #dbe3ee; text-decoration: none; }
.footer-contact a:hover { color: #fff; }
.site-footer .social { margin-top: 18px; }
.site-footer .social a { background: rgba(255, 255, 255, .06); color: #dbe3ee; width: 36px; height: 36px; }
.site-footer .social a:hover { background: var(--blue); color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .08); }
.footer-bottom .container { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; padding-top: 22px; padding-bottom: 22px; font-size: .85rem; }
.footer-bottom nav { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-bottom a { color: #a9b6c7; text-decoration: none; }
.footer-bottom a:hover { color: #fff; }
.land-ack { font-size: .82rem; color: #8193a9; max-width: 760px; margin: 0; line-height: 1.55; }

.to-top { position: fixed; right: 22px; bottom: 22px; width: 46px; height: 46px; border-radius: 50%; background: var(--navy); color: #fff; border: 0; display: grid; place-items: center; cursor: pointer; box-shadow: var(--shadow-lg); opacity: 0; visibility: hidden; transform: translateY(10px); transition: .25s; z-index: 90; }
.to-top.show { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--blue); }
.to-top svg { width: 20px; height: 20px; }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* 404 */
.err-code { font-size: clamp(5rem, 15vw, 9rem); font-weight: 800; line-height: 1; color: var(--navy); letter-spacing: -.05em; }
.err-code span { color: var(--red); }

/* ---------- Responsive ---------- */
@media (max-width: 1340px) {
  .nav-link { padding: 8px 7px; font-size: .86rem; }
  .brand img { height: 44px; }
}
@media (max-width: 1180px) {
  .header-actions .btn-label { display: none; }
  .footer-main { grid-template-columns: 1fr 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 1240px) {
  .main-nav { display: none; }
  .nav-toggle { display: grid; }
}
@media (max-width: 1060px) {
  .main-nav { display: none; }
  .nav-toggle { display: grid; }
  .header-actions .btn-submit { display: none; }
  .hero .container { grid-template-columns: 1fr; }
  .hero-art { display: none; }
  .quick-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .quick a:nth-child(2) { border-right: 0; }
  .quick a:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .layout-sidebar, .layout-sidebar.left { grid-template-columns: minmax(0, 1fr); }
  .sidebar { position: static; }
  .steps-h { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .split, .split-wide { grid-template-columns: minmax(0, 1fr); }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .footer-news .container { grid-template-columns: 1fr; }
  .cta-band { grid-template-columns: 1fr; }
  .topbar-info .hide-sm { display: none; }
  .filter-bar { grid-template-columns: 1fr 1fr; }
  .filter-bar .search-field { grid-column: 1 / -1; }
  .page-hero .deco { width: 200px; height: 200px; right: -80px; opacity: .5; }
}
@media (max-width: 640px) {
  body { font-size: 15.5px; }
  .container { padding: 0 18px; }
  :root { --header-h: 68px; }
  .brand img { height: 42px; }
  .topbar-links .tl-hide, .topbar-links .sep { display: none; }
  .topbar-info { gap: 14px; }
  .grid-2, .grid-3, .grid-4, .form-grid, .check-group { grid-template-columns: minmax(0, 1fr); }
  .quick-grid { grid-template-columns: 1fr; }
  .quick a { border-right: 0 !important; border-bottom: 1px solid var(--line); }
  .quick a:last-child { border-bottom: 0; }
  .footer-main { grid-template-columns: 1fr 1fr; }
  .footer-main > div:last-child { grid-column: 1 / -1; }
  .news-form { flex-direction: column; }
  .series-card { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .series-card .book-cover { width: 120px; }
  .meta-list b { min-width: 0; }
  .event-card { grid-template-columns: 70px minmax(0, 1fr); gap: 16px; }
  .date-tile .d { font-size: 1.5rem; }
  .pub-item { grid-template-columns: 1fr; }
  .pub-actions { flex-direction: row; align-items: center; }
  .steps-h { grid-template-columns: 1fr; }
  .dl-card { flex-wrap: wrap; }
  .dl-card .btn { margin-left: 0; width: 100%; }
  .info-dl div { grid-template-columns: 100px 1fr; }
  .card { padding: 22px; }
  .search-hero-input { flex-direction: column; }
  .page-hero .deco { display: none; }
  .j-head { grid-template-columns: 90px 1fr !important; gap: 16px !important; }
  .j-head h2 { font-size: 1.25rem !important; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}
@media print {
  .topbar, .site-header, .site-footer, .to-top, .drawer, .drawer-backdrop, .btn, .sidebar { display: none !important; }
  .page-hero { background: none; color: #000; }
  .page-hero h1, .page-hero p { color: #000; }
  body { font-size: 12pt; }
  a { color: #000; }
  .layout-sidebar { grid-template-columns: 1fr; }
}
