/* ============================================================================
   BRILLIANTICS — PUBLIC CONTENT HUB
   The stylesheet for every generated page under /ipies-dexiotites/, /odigoi/,
   /glossari/, /epistimi/, /sxetika/ and their English counterparts.

   Deliberately independent of landing.css: the landing page is a marketing
   surface with animation and glass, these are reading surfaces. What they
   share is the token set, so the two never drift apart visually.

   Zero build step. No @import of anything remote — the CSP forbids it and the
   fonts are self-hosted (css/fonts.css).
   ========================================================================== */

:root {
  --c-primary: #004a99;
  --c-primary-deep: #003a78;
  --c-accent: #00aab0;
  --c-accent-text: #00727a;
  --c-blue: #2563ff;
  --c-ink: #0b1020;
  --c-body: #2c3547;
  --c-muted: #56607a;
  /* 4.74:1 on the tinted ground, 5.01:1 on white — the previous #7a8398
     measured 3.6:1 and failed WCAG AA everywhere it was used as text. */
  --c-dim: #666f88;
  --c-line: #e3e8f0;
  --c-line-soft: #eef2f7;
  --c-bg: #ffffff;
  --c-bg-tint: #f6f9fc;
  --c-bg-deep: #04102a;
  --grad-brand: linear-gradient(135deg, #004a99 0%, #00aab0 100%);
  --grad-text: linear-gradient(100deg, #004a99 0%, #00727a 55%, #2563ff 100%);
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-display: 'Outfit', 'Inter', sans-serif;
  --wrap: 1120px;
  --read: 720px;
  --r-sm: .7rem;
  --r-md: 1.15rem;
  --r-lg: 1.75rem;
  --shadow-sm: 0 2px 10px -4px rgba(11,16,32,.10);
  --shadow-md: 0 14px 34px -18px rgba(11,16,32,.22);
  --shadow-lg: 0 30px 70px -30px rgba(0,74,153,.35);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 16px; scroll-behavior: smooth; scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

body.doc {
  font-family: var(--font-sans);
  color: var(--c-body);
  background: var(--c-bg);
  line-height: 1.72;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: 22px; position: relative; z-index: 2; }

/* Verbatim from css/landing.css §3 — the same paper texture under both. */
.grain {
  position: fixed; inset: 0; z-index: 1; pointer-events: none;
  opacity: .22; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='0.35'/%3E%3C/svg%3E");
}
:root:not([data-theme="light"]) .grain { opacity: .12; mix-blend-mode: screen; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--c-primary); color: #fff; padding: 12px 20px;
  border-radius: 0 0 var(--r-sm) 0; font-weight: 600;
}
.skip-link:focus { left: 0; }

:where(a):focus-visible, :where(button):focus-visible, :where(summary):focus-visible, :where(input):focus-visible {
  outline: 3px solid var(--c-blue); outline-offset: 3px; border-radius: 4px;
}

/* ---------- header ---------- */
/* The bar, the lockup and the link underline are the landing page's, on
   purpose. A reader who clicks through from brilliantics.com should not be able
   to tell they have crossed into a different set of templates — same mark, same
   wordmark, same glass, same hover. (css/landing.css §5) */
.site-head {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.72);
  backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid rgba(0,74,153,.07);
  box-shadow: 0 4px 16px -6px rgba(11,16,32,.10);
}
.head-inner { display: flex; align-items: center; gap: 28px; height: 76px; }

/* The identity lockup — identical values to .logo-* in css/landing.css. */
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; flex: none; }
.logo-mark { display: grid; place-items: center; }
.logo-wordmark { display: flex; flex-direction: column; line-height: 1.05; }
.logo-text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.22rem;
  letter-spacing: -.02em;
  color: var(--c-ink);
}

.head-nav { display: flex; gap: 26px; margin-inline-start: auto; }
.head-nav a {
  color: var(--c-muted); text-decoration: none; font-size: .9rem; font-weight: 500;
  transition: color .2s; position: relative;
}
.head-nav a::after {
  content: ''; position: absolute; inset-inline-start: 0; bottom: -5px;
  width: 0; height: 2px; border-radius: 2px;
  background: var(--grad-brand); transition: width .3s cubic-bezier(.4,0,.2,1);
}
.head-nav a:hover { color: var(--c-primary); }
.head-nav a:hover::after { width: 100%; }
.head-actions { display: flex; align-items: center; gap: 14px; flex: none; }
.lang-switch {
  color: var(--c-muted); text-decoration: none; font-size: .82rem; font-weight: 600;
  letter-spacing: .04em; padding: 6px 11px; border: 1px solid var(--c-line); border-radius: 999px;
  transition: border-color .2s, color .2s;
}
.lang-switch:hover { color: var(--c-primary); border-color: var(--c-primary); }
.head-burger { display: none; background: none; border: 0; padding: 10px 6px; cursor: pointer; }
.head-burger span { display: block; width: 22px; height: 2px; background: var(--c-ink); border-radius: 2px; }
.head-burger span + span { margin-top: 5px; }
.head-nav-mobile { display: none; flex-direction: column; padding: 10px 22px 22px; gap: 4px; border-top: 1px solid var(--c-line-soft); background: #fff; }
.head-nav-mobile a { padding: 11px 0; color: var(--c-ink); text-decoration: none; font-weight: 500; border-bottom: 1px solid var(--c-line-soft); }
.head-nav-mobile .btn { margin-top: 14px; text-align: center; border-bottom: 0; }

@media (max-width: 900px) {
  .head-nav, .head-actions .btn { display: none; }
  .head-inner { height: 68px; }
  .logo-text { font-size: 1.12rem; }
  .head-actions { margin-inline-start: auto; }
  .head-burger { display: block; }
  .head-nav-mobile:not([hidden]) { display: flex; }
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-sans); font-weight: 600; text-decoration: none;
  border-radius: 999px; border: 1px solid transparent; cursor: pointer;
  transition: transform .18s, box-shadow .18s, background .18s;
}
.btn-primary { background: var(--grad-brand); color: #fff; box-shadow: 0 10px 24px -12px rgba(0,74,153,.7); }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 16px 32px -14px rgba(0,74,153,.75); }
.btn-ghost { background: #fff; color: var(--c-primary); border-color: var(--c-line); }
.btn-ghost:hover { border-color: var(--c-primary); }
.btn-sm { padding: 9px 17px; font-size: .88rem; }
.btn-lg { padding: 15px 30px; font-size: 1.02rem; }

/* ---------- breadcrumbs ---------- */
.crumbs { padding: 22px 0 0; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; font-size: .84rem; color: var(--c-dim); }
.crumbs li + li::before { content: '/'; margin-inline-end: 6px; color: var(--c-line); }
.crumbs a { color: var(--c-muted); text-decoration: none; }
.crumbs a:hover { color: var(--c-primary); text-decoration: underline; }

/* ---------- document head ---------- */
.doc-main { display: block; position: relative; z-index: 2; }
.doc-head { max-width: var(--read); padding: 26px 0 8px; }
.eyebrow {
  display: inline-block; font-size: .74rem; font-weight: 700; letter-spacing: .13em;
  text-transform: uppercase; color: var(--c-accent-text); margin-bottom: 14px;
}
.doc-head h1 {
  font-family: var(--font-display); font-weight: 800; letter-spacing: -.035em;
  font-size: clamp(2.1rem, 5.4vw, 3.35rem); line-height: 1.07; color: var(--c-ink);
}
.doc-sub {
  font-size: clamp(1.05rem, 2.2vw, 1.28rem); color: var(--c-muted);
  margin-top: 16px; line-height: 1.5; font-weight: 400;
}
.doc-meta { margin-top: 18px; font-size: .84rem; color: var(--c-dim); }

/* ---------- lead ---------- */
.lead {
  max-width: var(--read); margin: 30px 0 6px; padding: 24px 26px;
  background: var(--c-bg-tint); border-inline-start: 4px solid var(--c-accent);
  border-radius: 0 var(--r-md) var(--r-md) 0;
}
.lead p { font-size: 1.13rem; line-height: 1.62; color: var(--c-ink); font-weight: 450; }

/* ---------- table of contents ---------- */
.toc {
  max-width: var(--read); margin: 34px 0; padding: 22px 26px;
  border: 1px solid var(--c-line); border-radius: var(--r-md); background: #fff;
}
.toc h2 {
  font-size: .74rem; font-weight: 700; letter-spacing: .13em; text-transform: uppercase;
  color: var(--c-dim); font-family: var(--font-sans); margin-bottom: 12px;
}
.toc ol { list-style: none; counter-reset: toc; display: grid; gap: 2px; }
.toc li { counter-increment: toc; }
.toc a {
  display: block; padding: 6px 0; color: var(--c-body); text-decoration: none;
  font-size: .96rem; border-bottom: 1px solid transparent;
}
.toc a::before { content: counter(toc, decimal-leading-zero); color: var(--c-accent-text); font-weight: 700; font-size: .78rem; margin-inline-end: 12px; }
.toc a:hover { color: var(--c-primary); }

/* ---------- body prose ---------- */
.doc-body { max-width: var(--read); }
.sec { padding: 40px 0 4px; scroll-margin-top: 92px; }
.sec > h2 {
  font-family: var(--font-display); font-weight: 700; letter-spacing: -.025em;
  font-size: clamp(1.55rem, 3.4vw, 2rem); line-height: 1.18; color: var(--c-ink); margin-bottom: 18px;
}
.doc-body h3 {
  font-family: var(--font-display); font-weight: 700; letter-spacing: -.015em;
  font-size: 1.16rem; color: var(--c-ink); margin: 26px 0 8px; line-height: 1.32;
}
.doc-body p { margin: 0 0 17px; font-size: 1.045rem; }
.doc-body p:last-child { margin-bottom: 0; }
.doc-body a { color: var(--c-primary); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.doc-body a:hover { color: var(--c-accent-text); }
/* Card-shaped links are surfaces, not inline references: the prose underline
   would make a whole tile look like a hyperlink fragment. */
.doc-body :is(.gl-item, .skill-card, .related-links a, .chip, .gl-letters a, .item a) {
  text-decoration: none; color: inherit;
}
.doc-body .chip { color: var(--c-accent-text); }
.doc-body strong { color: var(--c-ink); font-weight: 650; }
.doc-body em { font-style: italic; }
.doc-body ul, .doc-body ol { margin: 0 0 18px; padding-inline-start: 1.35em; }
.doc-body li { margin-bottom: 9px; font-size: 1.03rem; }
.doc-body ul > li::marker { color: var(--c-accent); }
.doc-body ol > li::marker { color: var(--c-accent-text); font-weight: 700; }
.inline-link { display: inline-block; margin-top: 4px; font-weight: 600; }

/* ---------- callouts ---------- */
.callout {
  margin: 26px 0; padding: 20px 24px; border-radius: var(--r-md);
  background: var(--c-bg-tint); border: 1px solid var(--c-line-soft);
}
.callout h3 { margin-top: 0; font-size: 1.03rem; }
.callout p:last-child { margin-bottom: 0; }
.callout-key { background: linear-gradient(135deg, rgba(0,74,153,.05), rgba(0,170,176,.07)); border-color: rgba(0,74,153,.14); }
.callout-warn { background: rgba(251,44,54,.045); border-color: rgba(251,44,54,.16); }

/* ---------- stat list ---------- */
.stat-list { list-style: none; padding: 0; margin: 22px 0; display: grid; gap: 10px; }
.stat-list li {
  padding: 13px 18px; background: #fff; border: 1px solid var(--c-line);
  border-radius: var(--r-sm); font-size: 1rem;
}
.stat-list li strong { color: var(--c-primary); }

/* ---------- steps ---------- */
.steps { list-style: none; counter-reset: st; padding: 0; margin: 26px 0; display: grid; gap: 16px; }
.steps > li {
  counter-increment: st; position: relative; padding: 20px 24px 20px 66px;
  background: #fff; border: 1px solid var(--c-line); border-radius: var(--r-md);
}
.steps > li::before {
  content: counter(st); position: absolute; inset-inline-start: 22px; top: 20px;
  width: 30px; height: 30px; border-radius: 50%; background: var(--grad-brand); color: #fff;
  display: grid; place-items: center; font-weight: 700; font-size: .88rem; font-family: var(--font-display);
}
.steps > li > h3 { margin: 0 0 6px; }
.steps > li > p { margin: 0; font-size: 1rem; }

/* ---------- mistakes ---------- */
.mistakes { list-style: none; counter-reset: mk; padding: 0; margin: 24px 0; display: grid; gap: 12px; }
.mistakes > li {
  counter-increment: mk; position: relative; padding: 15px 20px 15px 56px;
  background: var(--c-bg-tint); border-radius: var(--r-sm); font-size: 1.01rem;
}
.mistakes > li::before {
  content: counter(mk); position: absolute; inset-inline-start: 18px; top: 15px;
  width: 24px; height: 24px; border-radius: 8px; background: rgba(0,74,153,.1); color: var(--c-primary);
  display: grid; place-items: center; font-weight: 700; font-size: .8rem;
}

/* ---------- cards ---------- */
.cards-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 14px; margin: 24px 0; }
.card { padding: 22px 24px; background: #fff; border: 1px solid var(--c-line); border-radius: var(--r-md); }
.card h3 { margin-top: 0; font-size: 1.05rem; }
.card p { font-size: .98rem; margin-bottom: 0; }

/* ---------- tables ---------- */
.table-wrap { overflow-x: auto; margin: 26px 0; border: 1px solid var(--c-line); border-radius: var(--r-md); }
.doc-body table { border-collapse: collapse; width: 100%; min-width: 460px; font-size: .96rem; background: #fff; }
.doc-body caption { caption-side: top; text-align: start; padding: 15px 20px 6px; font-size: .84rem; color: var(--c-dim); font-weight: 600; }
.doc-body th, .doc-body td { padding: 13px 18px; text-align: start; border-bottom: 1px solid var(--c-line-soft); vertical-align: top; }
.doc-body thead th { background: var(--c-bg-tint); font-weight: 650; color: var(--c-ink); font-size: .88rem; letter-spacing: .01em; }
.doc-body tbody th { font-weight: 600; color: var(--c-ink); background: rgba(246,249,252,.6); }
.doc-body tbody tr:last-child th, .doc-body tbody tr:last-child td { border-bottom: 0; }

/* ---------- skill grid ---------- */
.skill-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(268px, 1fr)); gap: 14px; margin: 26px 0; }
.skill-card {
  display: flex; flex-direction: column; gap: 8px; padding: 22px;
  background: #fff; border: 1px solid var(--c-line); border-radius: var(--r-md);
  text-decoration: none; color: inherit; position: relative; overflow: hidden;
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.skill-card::after {
  content: ''; position: absolute; inset-inline-start: 0; top: 0; bottom: 0; width: 4px;
  background: var(--sc, var(--c-accent)); opacity: .85;
}
.skill-card:hover,
.skill-card:focus-within { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: rgba(0,74,153,.2); }
.skill-card h3 { margin: 0; font-size: 1.06rem; font-family: var(--font-display); font-weight: 700; color: var(--c-ink); }
/* Only the title is the link; the overlay keeps the whole card clickable.
   ::after on the card itself is already the coloured spine, so the overlay
   hangs off the anchor. */
.skill-card h3 a { color: inherit; text-decoration: none; }
.skill-card h3 a::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; z-index: 1;
}
.skill-card h3 a:focus-visible { outline: none; }
.skill-card h3 a:focus-visible::after { outline: 3px solid var(--c-primary); outline-offset: 2px; }
.skill-card p { margin: 0; font-size: .93rem; color: var(--c-muted); line-height: 1.55; }
.skill-card .sc-en { font-size: .78rem; color: var(--c-dim); letter-spacing: .02em; }
.skill-glyph { width: 34px; height: 34px; margin-bottom: 2px; }
.group-title {
  font-family: var(--font-display); font-size: 1.18rem; font-weight: 700; color: var(--c-ink);
  margin: 34px 0 4px; letter-spacing: -.015em;
}
.group-note { font-size: .95rem; color: var(--c-muted); margin-bottom: 6px; }

/* ---------- hero art ---------- */
.hero-art {
  max-width: var(--read); margin: 30px 0 6px; border-radius: var(--r-lg); overflow: hidden;
  background: radial-gradient(1000px 460px at 78% 8%, #0b2f6b 0%, #061634 58%, #04102a 100%);
  box-shadow: var(--shadow-lg); position: relative; aspect-ratio: 1120 / 320;
}
.hero-art svg,
.hero-art img { display: block; width: 100%; height: 100%; object-fit: cover; }
/* NEVER combine min-height with aspect-ratio here: the browser solves for width
   from the min-height and the box grows past its container, which is a
   horizontal scrollbar on every phone. Change the ratio instead. */
@media (max-width: 720px) { .hero-art { aspect-ratio: 16 / 8; } }

/* ---------- indicators ---------- */
.ind-list { display: grid; gap: 12px; margin: 24px 0; }
.ind {
  padding: 20px 22px; background: #fff; border: 1px solid var(--c-line); border-radius: var(--r-md);
}
.ind h3 { margin: 0 0 6px; font-size: 1.04rem; }
.ind > p { font-size: .99rem; margin-bottom: 14px; }
.ind-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 620px) { .ind-pair { grid-template-columns: 1fr; } }
.ind-side { padding: 13px 16px; border-radius: var(--r-sm); font-size: .93rem; line-height: 1.55; }
.ind-low { background: rgba(251,44,54,.05); border: 1px solid rgba(251,44,54,.14); }
.ind-high { background: rgba(121,192,0,.07); border: 1px solid rgba(121,192,0,.22); }
.ind-side b { display: block; font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 5px; }
.ind-low b { color: #c81e26; }
.ind-high b { color: #4a7300; }

/* ---------- chips ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 24px; padding: 0; list-style: none; }
.chips li, .chip {
  display: inline-flex; align-items: center; padding: 7px 14px; border-radius: 999px;
  background: rgba(0,170,176,.09); color: var(--c-accent-text); font-size: .88rem; font-weight: 600;
  border: 1px solid rgba(0,170,176,.2); text-decoration: none;
}
a.chip:hover { background: rgba(0,170,176,.16); }

/* ---------- path levels ---------- */
.levels { list-style: none; padding: 0; margin: 24px 0; display: grid; gap: 0; position: relative; }
.levels li { position: relative; padding: 0 0 22px 42px; }
.levels li::before {
  content: ''; position: absolute; inset-inline-start: 11px; top: 22px; bottom: -4px; width: 2px; background: var(--c-line);
}
.levels li:last-child { padding-bottom: 0; }
.levels li:last-child::before { display: none; }
.levels li::after {
  content: ''; position: absolute; inset-inline-start: 5px; top: 8px; width: 14px; height: 14px;
  border-radius: 50%; background: #fff; border: 3px solid var(--c-accent);
}
.levels b { display: block; font-family: var(--font-display); font-size: .78rem; letter-spacing: .11em; text-transform: uppercase; color: var(--c-accent-text); margin-bottom: 3px; }

/* ---------- content list (courses / missions) ---------- */
.item-list { display: grid; gap: 10px; margin: 20px 0 26px; padding: 0; list-style: none; }
.item {
  display: flex; justify-content: space-between; align-items: flex-start; gap: 16px;
  padding: 16px 20px; background: #fff; border: 1px solid var(--c-line); border-radius: var(--r-sm);
}
.item h3 { margin: 0 0 4px; font-size: 1rem; }
.item p { margin: 0; font-size: .94rem; color: var(--c-muted); }
.item-meta { flex: none; font-size: .78rem; color: var(--c-dim); text-align: end; white-space: nowrap; }

/* ---------- FAQ ---------- */
.faq { max-width: var(--read); margin: 54px 0 0; }
.faq > h2 {
  font-family: var(--font-display); font-weight: 700; letter-spacing: -.025em;
  font-size: clamp(1.5rem, 3.2vw, 1.9rem); color: var(--c-ink); margin-bottom: 18px;
}
.faq-list { display: grid; gap: 8px; }
.faq details { border: 1px solid var(--c-line); border-radius: var(--r-md); background: #fff; overflow: hidden; }
.faq summary {
  cursor: pointer; padding: 17px 52px 17px 22px; font-weight: 600; color: var(--c-ink);
  position: relative; list-style: none; font-size: 1.02rem; line-height: 1.45;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ''; position: absolute; inset-inline-end: 22px; top: 24px;
  width: 9px; height: 9px; border-right: 2px solid var(--c-dim); border-bottom: 2px solid var(--c-dim);
  transform: rotate(45deg); transition: transform .22s;
}
.faq details[open] summary::after { transform: rotate(-135deg); }
.faq .faq-a { padding: 0 22px 20px; }
.faq .faq-a p { font-size: 1rem; color: var(--c-body); margin: 0; }

/* ---------- related / sources ---------- */
.related { max-width: var(--read); margin: 50px 0 0; }
.related h2 { font-family: var(--font-display); font-size: 1.3rem; font-weight: 700; color: var(--c-ink); margin-bottom: 14px; letter-spacing: -.02em; }
.related-links { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 10px; list-style: none; padding: 0; }
.related-links a {
  display: block; padding: 14px 18px; background: var(--c-bg-tint); border-radius: var(--r-sm);
  text-decoration: none; color: var(--c-ink); font-weight: 550; font-size: .97rem;
  border: 1px solid transparent; transition: border-color .2s, background .2s;
}
.related-links a:hover { border-color: var(--c-line); background: #fff; }
.sources { max-width: var(--read); margin: 50px 0 0; padding-top: 26px; border-top: 1px solid var(--c-line); }
.sources h2 { font-family: var(--font-display); font-size: 1.2rem; font-weight: 700; color: var(--c-ink); margin-bottom: 6px; }
.sources > p { font-size: .9rem; color: var(--c-dim); margin-bottom: 14px; }
.sources ol { padding-inline-start: 1.3em; }
.sources li { font-size: .93rem; color: var(--c-muted); margin-bottom: 8px; }
.sources a { color: var(--c-primary); }

/* ---------- CTA band ---------- */
.cta-band {
  position: relative; z-index: 2;
  margin-top: 76px; padding: 66px 22px;
  background: radial-gradient(900px 420px at 78% 10%, #0b2f6b 0%, #061634 58%, #04102a 100%);
  color: #dfe7f5; text-align: center;
}
.cta-inner { max-width: 640px; margin-inline: auto; }
.cta-inner .eyebrow { color: #4fd1d6; }
.cta-inner h2 {
  font-family: var(--font-display); font-weight: 800; letter-spacing: -.03em;
  font-size: clamp(1.75rem, 4.4vw, 2.5rem); line-height: 1.1; color: #fff; margin-bottom: 14px;
}
.cta-inner p { font-size: 1.05rem; color: #b7c5de; margin-bottom: 26px; }
.cta-note { display: block; margin-top: 14px; font-size: .84rem; color: #8fa3c8; }

/* ---------- footer ---------- */
.site-foot { background: #f8fafc; border-top: 1px solid var(--c-line); padding: 54px 0 26px; position: relative; z-index: 2; }
.foot-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 34px; }
@media (max-width: 820px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .foot-grid { grid-template-columns: 1fr; } }
.foot-brand .brand { margin-bottom: 14px; }
.foot-brand p { font-size: .93rem; color: var(--c-muted); margin-top: 0; max-width: 34ch; }
.foot-social { display: flex; gap: 14px; margin-top: 14px; }
.foot-social a { font-size: .88rem; color: var(--c-primary); text-decoration: none; font-weight: 600; }
.foot-social a:hover { text-decoration: underline; }
.foot-col h2 { font-size: .74rem; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; color: var(--c-dim); margin-bottom: 12px; font-family: var(--font-sans); }
.foot-col a { display: block; padding: 5px 0; font-size: .94rem; color: var(--c-muted); text-decoration: none; }
.foot-col a:hover { color: var(--c-primary); }
.foot-bottom {
  display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap;
  margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--c-line);
  font-size: .82rem; color: var(--c-dim);
}

/* ---------- glossary index ---------- */
.gl-tools { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin: 26px 0 8px; max-width: var(--read); }
.gl-search {
  flex: 1 1 260px; padding: 12px 18px; border: 1px solid var(--c-line); border-radius: 999px;
  font: inherit; font-size: .98rem; color: var(--c-ink); background: #fff;
}
.gl-count { font-size: .86rem; color: var(--c-dim); }
.gl-letters { display: flex; flex-wrap: wrap; gap: 6px; margin: 18px 0 10px; max-width: var(--wrap); }
.gl-letters a { padding: 5px 11px; border-radius: 8px; background: var(--c-bg-tint); color: var(--c-muted); text-decoration: none; font-size: .86rem; font-weight: 600; }
.gl-letters a:hover { background: var(--c-primary); color: #fff; }
.gl-group { margin-top: 30px; scroll-margin-top: 92px; }
.gl-group > h2 { font-family: var(--font-display); font-size: 1.5rem; color: var(--c-accent-text); margin-bottom: 12px; }
.gl-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 10px; list-style: none; padding: 0; }
/* The whole card is clickable, but only the TERM is the link.
   Wrapping the card in one <a> made the anchor text ~180 characters of term +
   translation + definition, 130 times over — Google asks for anchor text that
   is short and specific, and a screen reader had to read all of it before the
   user knew where the link went. The overlay keeps the click target. */
.gl-item {
  display: block; padding: 16px 20px; background: #fff; border: 1px solid var(--c-line);
  border-radius: var(--r-sm); text-decoration: none; color: inherit;
  transition: border-color .2s, transform .2s; position: relative;
}
.gl-item:hover, .gl-item:focus-within { border-color: var(--c-primary); transform: translateY(-1px); }
.gl-item b a { color: inherit; text-decoration: none; }
.gl-item b a::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; z-index: 1;
}
.gl-item b a:focus-visible { outline: none; }
.gl-item b a:focus-visible::after { outline: 3px solid var(--c-primary); outline-offset: 2px; }
.gl-item b { display: block; font-family: var(--font-display); font-size: 1.02rem; color: var(--c-ink); font-weight: 700; }
.gl-item span { display: block; font-size: .82rem; color: var(--c-dim); margin-top: 2px; }
.gl-item em { display: block; font-size: .9rem; color: var(--c-muted); margin-top: 7px; font-style: normal; line-height: 1.5; }
.gl-empty { display: none; padding: 22px; color: var(--c-muted); }

/* ---------- definition block ---------- */
.def-block {
  max-width: var(--read); margin: 30px 0; padding: 26px 28px; border-radius: var(--r-lg);
  background: linear-gradient(135deg, rgba(0,74,153,.05), rgba(0,170,176,.07));
  border: 1px solid rgba(0,74,153,.13);
}
.def-block p { font-size: 1.09rem; line-height: 1.62; color: var(--c-ink); margin: 0; }
.def-meta { display: grid; gap: 10px; margin: 22px 0 0; max-width: var(--read); }
.def-meta div { display: flex; gap: 12px; font-size: .95rem; flex-wrap: wrap; }
.def-meta dt, .def-meta b { flex: none; min-width: 130px; color: var(--c-dim); font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; font-weight: 700; padding-top: 3px; }

/* ---------- science page ---------- */
.ref-list { list-style: none; padding: 0; margin: 24px 0; display: grid; gap: 10px; max-width: var(--read); }
.ref {
  padding: 16px 20px; background: #fff; border: 1px solid var(--c-line); border-radius: var(--r-sm);
}
.ref cite { font-style: normal; font-weight: 600; color: var(--c-ink); font-size: .98rem; display: block; }
.ref p { font-size: .93rem; color: var(--c-muted); margin: 7px 0 0; }
.ref a { font-size: .85rem; }

/* ---------- print ---------- */
@media print {
  .site-head, .site-foot, .cta-band, .toc, .crumbs { display: none !important; }
  body.doc { color: #000; }
  .doc-body a::after { content: ' (' attr(href) ')'; font-size: .8em; color: #555; }
}

/* screen-reader-only label (glossary search) */
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0;
}
.toc a[aria-current="true"] { color: var(--c-primary); font-weight: 650; }
