/* ═══════════════════════════════════════════════════
   GEORANK.CH — CSS Production v4
   Design : Editorial Swiss · Signal Orange
   ═══════════════════════════════════════════════════ */

/* ── Google Fonts ── */
@import url('https://fonts.googleapis.com/css2?family=Big+Shoulders+Display:wght@700;800;900&family=DM+Sans:opsz,wght@9..40,300;9..40,400;9..40,500;9..40,600&family=DM+Mono:wght@400;500&display=swap');

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: 'DM Sans', sans-serif;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.65;
  overflow-x: hidden;
}
img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }
::selection { background: var(--signal); color: #fff; }
@media (hover: none) { body { cursor: auto; } }

/* ── Variables ── */
:root {
  --ink:       #0c0c10;
  --ink-80:    #2a2a32;
  --ink-60:    #64646e;
  --ink-40:    #9a9aa4;
  --ink-20:    #c8c8d0;
  --ink-10:    #e4e4ea;
  --ink-05:    #f0f0f4;
  --paper:     #f6f5f1;
  --paper-2:   #eeecea;
  --white:     #ffffff;
  --signal:    #ff4400;
  --signal-lt: #fff2ee;
  --signal-dk: #cc3600;
  --gold:      #c8a84a;
  --green:     #16a34a;

  --font-display: 'Big Shoulders Display', sans-serif;
  --font-body:    'DM Sans', sans-serif;
  --font-mono:    'DM Mono', monospace;

  --r:    4px;
  --r-lg: 10px;
  --max:  1200px;
  --pad:  clamp(1.5rem, 5vw, 3.5rem);
  --sy:   clamp(5rem, 10vw, 9rem);
  --gap:  clamp(1rem, 2.5vw, 2rem);
}


/* ── Typography ── */
.display {
  font-family: var(--font-display);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  line-height: 0.88;
}
.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.63rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--signal);
  font-weight: 500;
}
h1 { font-size: clamp(2.2rem, 5vw, 4rem); font-weight: 700; line-height: 1.1; letter-spacing: -.02em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); font-weight: 700; line-height: 1.15; letter-spacing: -.015em; }
h3 { font-size: clamp(1.05rem, 2vw, 1.3rem); font-weight: 600; line-height: 1.3; letter-spacing: -.01em; }
h4 { font-size: 1rem; font-weight: 600; }
.lead { font-size: clamp(1.05rem, 1.8vw, 1.2rem); color: var(--ink-60); font-weight: 300; line-height: 1.78; }

/* ── Layout ── */
.container { max-width: var(--max); margin-inline: auto; padding-inline: var(--pad); }
.container-narrow { max-width: 800px; margin-inline: auto; padding-inline: var(--pad); }
.section { padding-block: var(--sy); }
.section-dark { background: var(--ink); color: rgba(255,255,255,.82); }
.section-dark p { color: rgba(255,255,255,.75); }
.section-dark h2, .section-dark h3, .section-dark h4 { color: #fff; }
.section-dark .eyebrow { color: var(--signal); }
.section-tinted { background: var(--paper-2); }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); }
.grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: var(--gap); }
.grid-4 { display: grid; grid-template-columns: repeat(4,1fr); gap: var(--gap); }
@media (max-width: 960px) { .grid-3 { grid-template-columns: 1fr 1fr; } .grid-4 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .grid-2,.grid-3,.grid-4 { grid-template-columns: 1fr; } }

/* ── Ticker ── */
.ticker {
  background: var(--ink);
  overflow: hidden;
  white-space: nowrap;
  padding: .5rem 0;
  border-bottom: 1px solid rgba(255,255,255,.06);
  user-select: none;
}
.ticker-track {
  display: inline-flex;
  animation: tick 44s linear infinite;
}
.ticker-track:hover { animation-play-state: paused; }
.ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 1.75rem;
  padding-right: 1.75rem;
  font-family: var(--font-mono);
  font-size: .6rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: rgba(255,255,255,.65);
}
.ticker-item .sep { color: var(--signal); }
@keyframes tick { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ── Navigation ── */
.nav {
  position: sticky;
  top: 0;
  z-index: 500;
  background: rgba(246,245,241,.96);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--ink-10);
}
.nav.dark-mode {
  background: rgba(12,12,16,.97);
  border-color: rgba(255,255,255,.07);
}

.nav-inner {
  display: flex;
  align-items: center;
  height: 72px;
  gap: 0;
}

/* Logo */
.nav-logo {
  display: flex;
  align-items: center;
  margin-right: 0;
  padding-right: 2.5rem;
  border-right: 1px solid var(--ink-10);
  flex-shrink: 0;
  align-self: stretch;
}
.nav.dark-mode .nav-logo { border-color: rgba(255,255,255,.07); }

.nav-wordmark {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.65rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--ink);
  transition: color .3s;
  line-height: 1;
}
.nav.dark-mode .nav-wordmark { color: #fff; }
.nav-wordmark .accent { color: var(--signal); }

/* Links */
.nav-links {
  display: flex;
  list-style: none;
  align-items: center;
  padding-left: 1rem;
  flex: 1;
  gap: .25rem;
}
.nav-links a {
  display: flex;
  align-items: center;
  height: 44px;
  padding: 0 1.1rem;
  font-size: .8rem;
  font-weight: 500;
  letter-spacing: .04em;
  color: var(--ink-60);
  transition: color .2s;
  position: relative;
  white-space: nowrap;
}
.nav.dark-mode .nav-links a { color: rgba(255,255,255,.45); }
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0; left: 1.1rem; right: 1.1rem;
  height: 2px;
  background: var(--signal);
  transform: scaleX(0);
  transition: transform .2s cubic-bezier(.25,.46,.45,.94);
}
.nav-links a:hover { color: var(--ink); }
.nav.dark-mode .nav-links a:hover { color: #fff; }
.nav-links a:hover::after { transform: scaleX(1); }
.nav-links a.active { color: var(--ink); font-weight: 600; }
.nav-links a.active::after { transform: scaleX(1); }
.nav.dark-mode .nav-links a.active { color: #fff; }

/* Checklist — same as other links but orange */
.nav-links li:last-child a {
  color: var(--signal);
  font-weight: 600;
}
.nav-links li:last-child a:hover { color: var(--signal-dk); }
.nav-links li:last-child a::after { background: var(--signal); }
.nav.dark-mode .nav-links li:last-child a { color: var(--signal); }
.nav.dark-mode .nav-links li:last-child a:hover { color: var(--signal-dk); }

/* Mobile burger */
.nav-burger {
  display: none;
  align-items: center;
  justify-content: center;
  width: 52px;
  background: none;
  border: none;
  color: var(--ink);
  font-size: 1.2rem;
  cursor: pointer;
  flex-shrink: 0;
}
.nav.dark-mode .nav-burger { color: #fff; }

/* Mobile drawer */
.nav-drawer {
  display: none;
  flex-direction: column;
  background: var(--ink);
  border-top: 1px solid rgba(255,255,255,.06);
  padding: 1.5rem var(--pad) 2.5rem;
  gap: 0;
}
.nav-drawer.open { display: flex; }
.nav-drawer a {
  color: rgba(255,255,255,.6);
  padding: .9rem 0;
  border-bottom: 1px solid rgba(255,255,255,.06);
  font-size: .92rem;
  font-weight: 500;
  transition: color .15s;
}
.nav-drawer a:hover { color: #fff; }
.nav-drawer .cta {
  background: var(--signal);
  color: #fff;
  padding: .875rem 1.5rem;
  border-radius: var(--r);
  margin-top: 1rem;
  text-align: center;
  border: none;
  font-weight: 600;
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-burger { display: flex; }
  .nav-dropdown { display: none !important; }
  .nav-logo { border-right: none; padding-right: 0; }
}

/* ── Breadcrumb ── */
.breadcrumb { display: flex; align-items: center; gap: .5rem; padding: 1.1rem 0; border-bottom: 1px solid var(--ink-10); font-size: .72rem; color: var(--ink-40); font-family: var(--font-mono); }
.breadcrumb a { color: var(--ink-40); transition: color .15s; }
.breadcrumb a:hover { color: var(--signal); }
.breadcrumb .sep { color: var(--ink-20); }

/* ── Section bar ── */
.section-bar { display: flex; align-items: center; gap: 1.5rem; margin-bottom: clamp(2.5rem,5vw,4rem); }
.section-bar-line { flex: 1; height: 1px; background: var(--ink-10); }
.section-dark .section-bar-line { background: rgba(255,255,255,.08); }
.section-dark .eyebrow { color: rgba(255,255,255,.25); }
.section-bar a { font-size: .75rem; color: var(--ink-60); white-space: nowrap; transition: color .15s; }
.section-bar a:hover { color: var(--signal); }

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .85rem 1.75rem;
  font-family: var(--font-body);
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .04em;
  border-radius: var(--r);
  border: none;
  transition: transform .15s cubic-bezier(.25,.46,.45,.94), box-shadow .15s, background .15s;
  position: relative;
  overflow: hidden;
}
.btn::after { content: ''; position: absolute; inset: 0; background: rgba(255,255,255,.1); opacity: 0; transition: opacity .15s; }
.btn:hover::after { opacity: 1; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { box-shadow: 0 8px 28px rgba(12,12,16,.2); }
.btn-signal { background: var(--signal); color: #fff; }
.btn-signal:hover { background: var(--signal-dk); box-shadow: 0 8px 28px rgba(255,68,0,.3); }
.btn-outline { background: transparent; color: var(--ink); border: 1.5px solid var(--ink-20); }
.btn-outline:hover { border-color: var(--ink); }
.btn-dark { background: rgba(255,255,255,.08); color: #fff; border: 1px solid rgba(255,255,255,.12); }
.btn-dark:hover { background: rgba(255,255,255,.15); }
.arrow-btn { display: inline-flex; align-items: center; gap: .4rem; font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--signal); transition: gap .2s; padding: 0; background: none; border: none; }
.arrow-btn:hover { gap: .65rem; }

/* ── Tags ── */
.tag { display: inline-flex; align-items: center; padding: .2rem .7rem; border-radius: 999px; font-size: .62rem; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; font-family: var(--font-mono); }
.tag-outline { border: 1px solid var(--ink-10); color: var(--ink-60); }
.tag-signal { background: var(--signal-lt); color: var(--signal); }
.tag-dark { background: rgba(255,255,255,.08); color: rgba(255,255,255,.5); border: 1px solid rgba(255,255,255,.1); }
.tag-ink { background: var(--ink-05); color: var(--ink-60); }

/* ── Cards ── */
.card {
  background: var(--white);
  border: 1px solid var(--ink-10);
  border-radius: var(--r-lg);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: transform .25s cubic-bezier(.25,.46,.45,.94), box-shadow .25s, border-color .2s;
  position: relative;
  overflow: hidden;
}
.card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: var(--signal); transform: scaleX(0); transition: transform .3s; transform-origin: left; }
.card:hover { transform: translateY(-5px); box-shadow: 0 20px 50px rgba(12,12,16,.1); border-color: transparent; }
.card:hover::before { transform: scaleX(1); }
.card h3 { font-size: 1.05rem; font-weight: 600; letter-spacing: -.01em; line-height: 1.4; }
.card p { font-size: .875rem; color: var(--ink-60); line-height: 1.72; }
.card-num { font-family: var(--font-mono); font-size: .6rem; color: var(--ink-40); margin-bottom: -.25rem; }
.card-footer { margin-top: auto; padding-top: 1.1rem; border-top: 1px solid var(--ink-10); display: flex; align-items: center; justify-content: space-between; }
.card-read { font-family: var(--font-mono); font-size: .6rem; color: var(--ink-40); }
.card-arrow { width: 30px; height: 30px; border: 1px solid var(--ink-10); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: .78rem; color: var(--ink-60); transition: all .2s; }
.card:hover .card-arrow { background: var(--ink); border-color: var(--ink); color: #fff; }

/* ── Engine cards ── */
.engine-logo-wrap img {
  width: 100%; height: 100%;
  object-fit: contain;
  border-radius: inherit;
}
.engine-card { background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.07); border-radius: var(--r-lg); padding: 2rem; display: flex; flex-direction: column; gap: 1rem; transition: background .2s, border-color .2s, transform .25s; }
.engine-card:hover { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.15); transform: translateY(-4px); }
.engine-card h3 { color: #fff; font-size: 1.1rem; }
.engine-card p { font-size: .84rem; color: rgba(255,255,255,.42); line-height: 1.68; }
.engine-topics { display: flex; flex-wrap: wrap; gap: .35rem; margin-top: auto; }
.engine-topic { font-size: .58rem; font-family: var(--font-mono); letter-spacing: .1em; text-transform: uppercase; padding: .2rem .55rem; border-radius: 999px; background: rgba(255,255,255,.05); color: rgba(255,255,255,.3); }
.score-bar { height: 3px; background: rgba(255,255,255,.08); border-radius: 999px; }
.score-fill { height: 100%; background: var(--signal); border-radius: 999px; }

/* ── Tool cards ── */
.tool-card { background: var(--white); border: 1px solid var(--ink-10); border-radius: var(--r-lg); padding: 1.5rem; display: flex; flex-direction: column; gap: .875rem; transition: transform .2s, box-shadow .2s; }
.tool-card:hover { transform: translateY(-3px); box-shadow: 0 10px 30px rgba(12,12,16,.08); }
.tool-icon { width: 40px; height: 40px; border-radius: var(--r); display: flex; align-items: center; justify-content: center; font-size: 1rem; background: var(--paper-2); }
.tool-card h3 { font-size: .9rem; font-weight: 600; }
.tool-card p { font-size: .82rem; color: var(--ink-60); line-height: 1.62; flex: 1; }
.tool-badge { padding: .15rem .5rem; border-radius: 999px; font-size: .58rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; font-family: var(--font-mono); }
.badge-free { background: #dcfce7; color: #15803d; }
.badge-freemium { background: #dbeafe; color: #1d4ed8; }
.badge-paid { background: #fef3c7; color: #b45309; }
.tool-footer { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; padding-top: .875rem; border-top: 1px solid var(--ink-10); }
.tool-link { font-size: .73rem; font-weight: 600; color: var(--signal); margin-left: auto; display: inline-flex; align-items: center; gap: .3rem; transition: gap .15s; }
.tool-link:hover { gap: .5rem; }

/* ── Article ── */
.article-header { padding-block: clamp(3.5rem,7vw,6rem); border-bottom: 1px solid var(--ink-10); }
.article-header.is-dark { background: var(--ink); }
.article-header.is-dark h1 { color: #fff; }
.article-header.is-dark .lead { color: rgba(255,255,255,.55); }
.article-header.is-dark .article-meta { color: rgba(255,255,255,.3); }
.article-meta { display: flex; align-items: center; gap: .875rem; flex-wrap: wrap; margin-top: 1.5rem; font-size: .75rem; color: var(--ink-60); font-family: var(--font-mono); }
.article-meta .sep { color: var(--ink-20); }
.article-layout { display: grid; grid-template-columns: 1fr 280px; gap: 5rem; padding-block: clamp(3rem,6vw,5rem); align-items: start; }
.sidebar { position: sticky; top: 84px; }
.sidebar-box { background: var(--white); border: 1px solid var(--ink-10); border-radius: var(--r-lg); padding: 1.5rem; margin-bottom: 1.25rem; }
.sidebar-box h4 { font-family: var(--font-mono); font-size: .62rem; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-60); margin-bottom: 1rem; }
.sidebar-toc a { display: flex; align-items: baseline; gap: .5rem; font-size: .82rem; color: var(--ink-80); padding: .35rem 0; border-bottom: 1px solid var(--ink-10); transition: color .15s; }
.sidebar-toc a:last-child { border-bottom: none; }
.sidebar-toc a::before { content: '–'; color: var(--ink-20); font-size: .65rem; flex-shrink: 0; }
.sidebar-toc a:hover { color: var(--signal); }
.related-link { display: flex; gap: .6rem; padding: .65rem 0; border-bottom: 1px solid var(--ink-10); align-items: flex-start; }
.related-link:last-child { border-bottom: none; padding-bottom: 0; }
.related-link .arr { color: var(--signal); font-size: .7rem; margin-top: .2rem; flex-shrink: 0; }
.related-link a { font-size: .82rem; color: var(--ink-80); line-height: 1.45; transition: color .15s; }
.related-link a:hover { color: var(--signal); }
@media (max-width: 900px) { .article-layout { grid-template-columns: 1fr; } .sidebar { display: none; } }

.article-body { line-height: 1.85; }
.article-body p { margin-bottom: 1.4rem; max-width: 68ch; color: var(--ink-80); font-size: .97rem; }
.article-body h2 { margin-top: 3.5rem; margin-bottom: 1rem; font-size: clamp(1.35rem,2.5vw,1.85rem); }
.article-body h3 { margin-top: 2.5rem; margin-bottom: .75rem; font-size: 1.1rem; }
.article-body ul, .article-body ol { padding-left: 1.5rem; margin-bottom: 1.4rem; }
.article-body li { margin-bottom: .4rem; font-size: .97rem; color: var(--ink-80); line-height: 1.75; }
.article-body strong { font-weight: 600; color: var(--ink); }
.article-body blockquote { border-left: 3px solid var(--signal); padding: 1rem 1.5rem; background: var(--signal-lt); border-radius: 0 var(--r) var(--r) 0; margin-block: 2rem; }
.article-body pre { background: var(--ink); color: #e8e8ef; padding: 1.5rem; border-radius: var(--r-lg); overflow-x: auto; margin-block: 1.5rem; font-family: var(--font-mono); font-size: .82rem; line-height: 1.65; }
.article-body code { font-family: var(--font-mono); font-size: .88em; background: var(--ink-05); padding: .15em .4em; border-radius: 3px; }
.article-body pre code { background: none; }
.callout { background: var(--paper-2); border: 1px solid var(--ink-10); border-radius: var(--r-lg); padding: 1.5rem; margin-block: 2rem; }
.callout-label { font-family: var(--font-mono); font-size: .62rem; letter-spacing: .15em; text-transform: uppercase; color: var(--signal); margin-bottom: .5rem; }
.key-point { display: flex; gap: 1.25rem; padding: 1.5rem; background: var(--paper-2); border-radius: var(--r-lg); border-left: 3px solid var(--signal); margin-block: 2.5rem; }
.key-point-body p { font-size: .9rem; color: var(--ink-80); line-height: 1.75; margin: 0; max-width: none; }
.comparison-table { width: 100%; border-collapse: collapse; margin-block: 2rem; font-size: .875rem; }
.comparison-table th { background: var(--ink); color: #fff; padding: .875rem 1.25rem; text-align: left; font-weight: 600; font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; }
.comparison-table th:first-child { border-radius: var(--r) 0 0 0; }
.comparison-table th:last-child { border-radius: 0 var(--r) 0 0; }
.comparison-table td { padding: .875rem 1.25rem; border-bottom: 1px solid var(--ink-10); line-height: 1.55; }
.comparison-table tr:last-child td { border-bottom: none; }
.comparison-table tr:nth-child(even) td { background: var(--paper); }

/* ── Checklist ── */
.cl-section { margin-bottom: 3rem; }
.cl-section-head { background: var(--ink); padding: 1rem 1.75rem; border-radius: var(--r-lg) var(--r-lg) 0 0; display: flex; align-items: center; gap: .875rem; }
.cl-section-head h3 { color: #fff; font-size: .82rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.cl-section-head .cl-count { margin-left: auto; font-family: var(--font-mono); font-size: .6rem; color: rgba(255,255,255,.3); }
.cl-items { border: 1px solid var(--ink-10); border-top: none; border-radius: 0 0 var(--r-lg) var(--r-lg); overflow: hidden; }
.cl-item { display: flex; align-items: flex-start; gap: 1rem; padding: 1rem 1.75rem; border-bottom: 1px solid var(--ink-10); transition: background .1s; cursor: pointer; }
.cl-item:last-child { border-bottom: none; }
.cl-item:hover { background: var(--paper); }
.cl-item.done { background: var(--paper); }
.cl-check { width: 18px; height: 18px; border: 1.5px solid var(--ink-20); border-radius: 4px; flex-shrink: 0; margin-top: 3px; transition: all .15s; display: flex; align-items: center; justify-content: center; }
.cl-item:hover .cl-check { border-color: var(--signal); }
.cl-item.done .cl-check { background: var(--signal); border-color: var(--signal); }
.cl-item.done .cl-check::after { content: '✓'; color: #fff; font-size: .6rem; font-weight: 700; }
.cl-item.done .cl-title { text-decoration: line-through; color: var(--ink-40); }
.cl-title { font-size: .88rem; font-weight: 600; margin-bottom: .2rem; line-height: 1.4; }
.cl-desc { font-size: .78rem; color: var(--ink-60); line-height: 1.62; }
.cl-meta { display: flex; gap: .4rem; margin-top: .4rem; flex-wrap: wrap; }
.prio { padding: .1rem .5rem; border-radius: 999px; font-size: .58rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; font-family: var(--font-mono); }
.prio-critical { background: #fee2e2; color: #dc2626; }
.prio-high { background: #fef3c7; color: #d97706; }
.prio-medium { background: #dbeafe; color: #1d4ed8; }
.prio-low { background: #dcfce7; color: #16a34a; }
.engine-chip { font-size: .58rem; font-family: var(--font-mono); padding: .1rem .45rem; border-radius: 999px; background: var(--ink-05); color: var(--ink-60); }

/* ── Glossary ── */
.glossary-entries { display: grid; grid-template-columns: repeat(auto-fill,minmax(290px,1fr)); gap: 1px; background: var(--ink-10); border: 1px solid var(--ink-10); border-radius: var(--r-lg); overflow: hidden; }
.glossary-entry { background: var(--white); padding: 1.5rem; transition: background .15s; }
.glossary-entry:hover { background: var(--paper); }
.glossary-term { font-family: var(--font-mono); font-size: .68rem; font-weight: 500; color: var(--signal); letter-spacing: .1em; text-transform: uppercase; margin-bottom: .35rem; }
.glossary-also { font-size: .7rem; color: var(--ink-60); font-style: italic; margin-bottom: .5rem; }
.glossary-def { font-size: .855rem; color: var(--ink-80); line-height: 1.72; }

/* ── FAQ ── */
.faq-item { border-bottom: 1px solid var(--ink-10); }
.faq-q { display: flex; align-items: center; justify-content: space-between; padding: 1.4rem 0; cursor: pointer; gap: 1.5rem; }
.faq-q h4 { font-size: .94rem; font-weight: 600; }
.faq-toggle { width: 28px; height: 28px; border: 1px solid var(--ink-10); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--ink-60); transition: all .2s; font-size: 1rem; }
.faq-item.open .faq-toggle { background: var(--ink); border-color: var(--ink); color: #fff; transform: rotate(45deg); }
.faq-a { font-size: .88rem; color: var(--ink-60); line-height: 1.85; max-height: 0; overflow: hidden; transition: max-height .35s ease, padding .2s; }
.faq-item.open .faq-a { max-height: 500px; padding-bottom: 1.5rem; }

/* ── Footer ── */
footer { background: var(--ink); }
.footer-main { padding-block: 5rem 3rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: clamp(2rem,5vw,4rem); margin-bottom: 4rem; }
.footer-brand .nav-wordmark { color: #fff; font-size: 1.18rem; }
.footer-brand p { font-size: .84rem; color: rgba(255,255,255,.7); margin-top: 1rem; line-height: 1.8; max-width: 34ch; }
.footer-col h4 { font-family: var(--font-mono); font-size: .58rem; letter-spacing: .22em; text-transform: uppercase; color: rgba(255,255,255,.45); margin-bottom: 1.25rem; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: .55rem; }
.footer-col a { font-size: .84rem; color: rgba(255,255,255,.65); transition: color .15s; }
.footer-col a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.07); padding-top: 2rem; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem; }
.footer-bottom p { font-size: .72rem; color: rgba(255,255,255,.5); font-family: var(--font-mono); }
.footer-note { font-family: var(--font-mono); font-size: .58rem; color: rgba(255,255,255,.14); }
.footer-note .g { color: var(--gold); margin-right: .4rem; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 500px) { .footer-grid { grid-template-columns: 1fr; } }

/* ── Reveal animations ── */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .65s cubic-bezier(.25,.46,.45,.94), transform .65s cubic-bezier(.25,.46,.45,.94); }
.reveal.visible { opacity: 1; transform: none; }
.reveal-x { opacity: 0; transform: translateX(-22px); transition: opacity .65s cubic-bezier(.25,.46,.45,.94), transform .65s cubic-bezier(.25,.46,.45,.94); }
.reveal-x.visible { opacity: 1; transform: none; }

/* ── Utilities ── */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.text-signal { color: var(--signal); }
.text-muted { color: var(--ink-60); }
.mt-auto { margin-top: auto; }

/* ── Print ── */
@media print {
  .ticker,.nav,footer,.sidebar { display: none !important; }
  body { background: #fff; color: #000; cursor: auto; }
}

/* ── Page header (shared across all interior pages) ── */
.page-header {
  background: var(--ink);
  padding-block: clamp(3.5rem,7vw,6rem);
  border-bottom: 1px solid rgba(255,255,255,.07);
  position: relative;
  overflow: hidden;
}
.page-header::after {
  content: '';
  position: absolute;
  top: -30%; right: -5%;
  width: 45%; height: 140%;
  background: radial-gradient(ellipse at center, rgba(255,68,0,.1) 0%, transparent 65%);
  pointer-events: none;
}
.page-header .container { position: relative; }
.page-header .eyebrow { color: var(--signal); margin-bottom: 1rem; display: block; }
.page-header h1 { color: #fff; font-size: clamp(2rem,4.5vw,3.5rem); max-width: 22ch; }
.page-header .lead { color: rgba(255,255,255,.75); margin-top: 1.1rem; max-width: 62ch; font-size: clamp(.94rem,1.5vw,1.08rem); }
.page-header .page-meta { display: flex; align-items: center; gap: .875rem; flex-wrap: wrap; margin-top: 1.5rem; font-size: .75rem; color: rgba(255,255,255,.55); font-family: var(--font-mono); }
.page-header .page-meta .sep { color: rgba(255,255,255,.15); }

/* Bigger body text globally */
body { font-size: 17px; }

/* ── Nav dropdown ── */
.nav-links li { position: relative; }
.nav-dropdown {
  position: absolute;
  top: 100%;
  left: -1rem;
  background: var(--white);
  border: 1px solid var(--ink-10);
  border-top: 2px solid var(--signal);
  border-radius: 0 0 var(--r) var(--r);
  min-width: 260px;
  box-shadow: 0 8px 24px rgba(12,12,16,.1);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-6px);
  transition: opacity .18s, transform .18s;
  z-index: 600;
}
.nav-links li:hover .nav-dropdown,
.nav-links li:focus-within .nav-dropdown {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
.nav-dropdown-item {
  display: flex;
  align-items: flex-start;
  gap: .875rem;
  padding: .9rem 1.25rem;
  border-bottom: 1px solid var(--ink-10);
  transition: background .12s;
  text-decoration: none;
  color: inherit;
}
.nav-dropdown-item:last-child { border-bottom: none; }
.nav-dropdown-item:hover { background: var(--paper); }
.nav-dropdown-num {
  font-family: var(--font-mono);
  font-size: .55rem;
  color: var(--signal);
  margin-top: .2rem;
  flex-shrink: 0;
  width: 1.5rem;
}
.nav-dropdown-text strong { display: block; font-size: .82rem; font-weight: 600; color: var(--ink); line-height: 1.3; margin-bottom: .15rem; }
.nav-dropdown-text span { font-size: .74rem; color: var(--ink-60); }
.nav-links a.has-dropdown { gap: .3rem; }
.nav-links a.has-dropdown::after { content: '↓'; font-size: .6rem; opacity: .45; }
.footer-brand p { font-size: .84rem; color: rgba(255,255,255,.7); margin-top: .75rem; line-height: 1.7; max-width: 30ch; }

/* ── Mobile improvements ── */
@media (max-width: 768px) {
  /* Touch targets */
  .nav-drawer a { min-height: 44px; display: flex; align-items: center; }
  .btn { min-height: 48px; }
  .guide-row { min-height: 44px; }
  .cl-item { padding: 1.1rem 1rem; }

  /* Engine tabs scroll */
  .engines-nav { overflow-x: auto; scrollbar-width: none; flex-wrap: nowrap; }
  .engines-nav::-webkit-scrollbar { display: none; }
  .engine-tab { white-space: nowrap; flex-shrink: 0; }

  /* Checklist progress bar — less sticky on small screens */
  #progress-bar { position: relative; top: auto; }

  /* Engine layout sidebar stack */
  .engine-layout { gap: 2rem; }

  /* Footer grid single column sooner */
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }

  /* Alert band single line */
  .alert-band { gap: .875rem; }
  .alert-text { font-size: .78rem; }

  /* Hero figures */
  .hero-figures, .hero-stats { width: 100%; }
}

@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
  .hfig strong { font-size: 1.6rem; }
}

/* ── Mobile drawer subnav ── */
.drawer-subnav {
  display: flex;
  flex-direction: column;
  padding: 0 0 .5rem 1rem;
  border-left: 2px solid var(--signal);
  margin: -.2rem 0 .5rem .5rem;
}
.drawer-sub {
  color: rgba(255,255,255,.45) !important;
  font-size: .8rem !important;
  padding: .5rem 0 !important;
  border-bottom: none !important;
  min-height: auto !important;
}
.drawer-sub:hover { color: rgba(255,255,255,.85) !important; }

/* ── Footer contact ── */
.footer-contact {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding-block: 2rem;
  border-top: 1px solid rgba(255,255,255,.08);
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}
.footer-contact-btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: var(--signal);
  color: #fff;
  padding: .75rem 1.75rem;
  border-radius: var(--r);
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .04em;
  transition: background .15s, transform .15s;
  text-decoration: none;
}
.footer-contact-btn:hover {
  background: var(--signal-dk);
  transform: translateY(-1px);
}
.footer-contact-email {
  font-family: var(--font-mono);
  font-size: .72rem;
  color: rgba(255,255,255,.35);
  letter-spacing: .06em;
}

/* ── Footer mail link ── */
.footer-mail {
  display: inline-block;
  margin-top: .6rem;
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .06em;
  color: var(--signal);
  text-decoration: none;
  transition: color .15s;
}
.footer-mail:hover { color: var(--signal-dk); }
