/* ==========================================================================
   StocksAce.com - design system
   Vertical: trading education, tools, long-form guides.
   Deliberately distinct from sibling properties:
     Stock Ships   = cosmos/dark       PSU = dark + cyan #22d3ee
     BuybackStocks = light Playfair    AceTicker = warm paper + emerald #0C7A57
     StocksAce     = cool paper + indigo #2F4A8C + burnt amber, serif/sans editorial.
   Do NOT drift toward AceTicker's warm-paper/emerald: they are the closest pair.
   ========================================================================== */

/* ---------- tokens ---------- */
:root {
  --paper:       #F5F6F9;
  --paper-2:     #ECEFF4;
  --paper-3:     #E2E6EE;
  --ink:         #171B24;
  --ink-2:       #4A5262;
  --ink-3:       #78808F;
  --rule:        #DCE1EA;
  --rule-2:      #C5CCDA;
  --accent:      #2F4A8C;
  --accent-ink:  #23396C;
  --accent-wash: #E6EBF6;
  --gold:        #9A5B1E;
  --gold-wash:   #F7EDE2;
  --alert:       #A3283C;
  --alert-wash:  #F9E8EB;

  --shadow-sm: 0 1px 2px rgba(21,24,29,.06), 0 1px 3px rgba(21,24,29,.05);
  --shadow-md: 0 2px 4px rgba(21,24,29,.05), 0 8px 24px rgba(21,24,29,.07);

  --font-display: "Spectral", Georgia, "Times New Roman", serif;
  --font-body: "Public Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --wrap: 1120px;
  --prose: 44rem;
  --radius: 10px;
  --radius-lg: 16px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper:       #12151C;
    --paper-2:     #191D26;
    --paper-3:     #222833;
    --ink:         #E8EAEF;
    --ink-2:       #A8AFBC;
    --ink-3:       #7D8593;
    --rule:        #2A303B;
    --rule-2:      #39414F;
    --accent:      #7FA0E8;
    --accent-ink:  #A6BCF2;
    --accent-wash: #1B2540;
    --gold:        #D89A4E;
    --gold-wash:   #2E2417;
    --alert:       #E58898;
    --alert-wash:  #331C21;
    --shadow-sm: 0 1px 2px rgba(0,0,0,.4);
    --shadow-md: 0 2px 4px rgba(0,0,0,.35), 0 8px 24px rgba(0,0,0,.4);
  }
}

/* ---------- reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg, video { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 1.3rem + 2.6vw, 3.1rem); }
h2 { font-size: clamp(1.5rem, 1.15rem + 1.3vw, 2.05rem); }
h3 { font-size: clamp(1.2rem, 1.05rem + .6vw, 1.4rem); }
h4 { font-size: 1.05rem; font-family: var(--font-body); font-weight: 700; letter-spacing: .01em; }
p { margin: 0 0 1.15em; }
a { color: var(--accent-ink); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--accent); }
strong { font-weight: 650; }
hr { border: 0; border-top: 1px solid var(--rule); margin: 2.5rem 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 3px; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: 1.25rem; }
.prose-wrap { width: 100%; max-width: var(--prose); margin-inline: auto; padding-inline: 1.25rem; }
.skip-link {
  position: absolute; left: -9999px; top: 0; background: var(--accent); color: #fff;
  padding: .6rem 1rem; z-index: 100; border-radius: 0 0 var(--radius) 0;
}
.skip-link:focus { left: 0; }

/* ---------- header ---------- */
.site-header {
  border-bottom: 1px solid var(--rule);
  background: var(--paper);
  position: sticky; top: 0; z-index: 50;
}
.site-header .wrap { display: flex; align-items: center; gap: 1.5rem; min-height: 66px; position: relative; }
.brand { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--ink); flex: 0 0 auto; }
.brand svg { width: 30px; height: 30px; }
.brand-name { font-family: var(--font-display); font-weight: 700; font-size: 1.28rem; letter-spacing: -.015em; }
.brand-name em { font-style: normal; color: var(--accent); }
.site-nav { margin-left: auto; display: flex; align-items: center; gap: 1.4rem; }
.site-nav a {
  color: var(--ink-2); text-decoration: none; font-size: .94rem; font-weight: 500;
  padding: .35rem 0; border-bottom: 2px solid transparent;
}
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--accent); }
.nav-toggle {
  display: none; margin-left: auto; background: none; border: 1px solid var(--rule-2);
  border-radius: var(--radius); padding: .45rem .7rem; color: var(--ink); cursor: pointer; font: inherit; font-size: .9rem;
}
@media (max-width: 800px) {
  .nav-toggle { display: block; }
  .site-nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--paper); border-bottom: 1px solid var(--rule); padding: .5rem 1.25rem 1rem;
    margin-left: 0;
  }
  .site-nav.open { display: flex; }
  .site-nav a { padding: .7rem 0; border-bottom: 1px solid var(--rule); }
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font: inherit; font-weight: 600; font-size: .96rem; line-height: 1;
  padding: .82rem 1.35rem; border-radius: var(--radius); border: 1px solid transparent;
  text-decoration: none; cursor: pointer; transition: background .15s ease, border-color .15s ease, color .15s ease;
}
.btn-primary { background: var(--accent); color: #fff; border-color: var(--accent); }
.btn-primary:hover { background: var(--accent-ink); border-color: var(--accent-ink); color: #fff; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--rule-2); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent-ink); background: var(--accent-wash); }

/* ---------- hero ---------- */
.hero { padding: clamp(3rem, 2rem + 5vw, 5.5rem) 0 clamp(2.5rem, 2rem + 3vw, 4rem); }
.hero-grid { display: grid; grid-template-columns: 1.35fr 1fr; gap: clamp(2rem, 4vw, 4rem); align-items: start; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } }
.eyebrow {
  display: inline-block; font-size: .74rem; font-weight: 700; letter-spacing: .13em;
  text-transform: uppercase; color: var(--gold); margin-bottom: 1rem;
}
.hero h1 { margin-bottom: .65rem; text-wrap: balance; }
.hero-lede { font-size: 1.14rem; color: var(--ink-2); max-width: 34rem; margin-bottom: 1.8rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; }
.hero-note { margin-top: 1.1rem; font-size: .86rem; color: var(--ink-3); }

/* ---------- sections ---------- */
.section { padding: clamp(2.75rem, 2rem + 3vw, 4.5rem) 0; }
.section-alt { background: var(--paper-2); border-block: 1px solid var(--rule); }
.section-head { max-width: 42rem; margin-bottom: 2rem; }
.section-head p { color: var(--ink-2); margin-bottom: 0; }

/* ---------- cards ---------- */
.grid { display: grid; gap: 1.25rem; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 900px) { .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } }

.card {
  background: var(--paper); border: 1px solid var(--rule); border-radius: var(--radius-lg);
  padding: 1.4rem; display: flex; flex-direction: column; gap: .55rem;
  transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}
a.card { text-decoration: none; color: inherit; }
a.card:hover { border-color: var(--accent); box-shadow: var(--shadow-md); transform: translateY(-2px); }
.card h3 { margin-bottom: 0; font-size: 1.18rem; }
.card p { margin-bottom: 0; color: var(--ink-2); font-size: .95rem; }
.card-meta { font-size: .78rem; color: var(--ink-3); letter-spacing: .04em; text-transform: uppercase; font-weight: 600; }
.card-cta { margin-top: auto; padding-top: .5rem; color: var(--accent-ink); font-weight: 600; font-size: .92rem; }

.tag {
  display: inline-block; align-self: flex-start;
  font-size: .72rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase;
  color: var(--accent-ink); background: var(--accent-wash); border-radius: 999px; padding: .28rem .65rem;
}
.tag-gold { color: var(--gold); background: var(--gold-wash); }

/* ---------- numbered steps ---------- */
.steps { counter-reset: step; list-style: none; padding: 0; margin: 0; display: grid; gap: 1.1rem; }
.steps li { counter-increment: step; padding-left: 3rem; position: relative; }
.steps li::before {
  content: counter(step); position: absolute; left: 0; top: 0;
  width: 2.1rem; height: 2.1rem; border-radius: 50%;
  background: var(--accent-wash); color: var(--accent-ink);
  display: grid; place-items: center; font-weight: 700; font-size: .92rem; font-family: var(--font-body);
}
.steps li h4 { margin-bottom: .2rem; }
.steps li p { margin-bottom: 0; color: var(--ink-2); font-size: .95rem; }

/* ---------- long-form article ---------- */
.article-header { padding: clamp(2.5rem, 2rem + 3vw, 4rem) 0 1.5rem; border-bottom: 1px solid var(--rule); }
.article-header h1 { text-wrap: balance; margin-bottom: .6rem; }
.article-dek { font-size: 1.1rem; color: var(--ink-2); max-width: var(--prose); margin-bottom: 1.2rem; }
.article-meta {
  display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; align-items: center;
  font-size: .85rem; color: var(--ink-3);
}
.article-body { padding: 2.5rem 0 1rem; font-size: 1.06rem; }
.article-body > * { max-width: var(--prose); margin-inline: auto; }
.article-body h2 { margin-top: 2.6rem; padding-top: .3rem; }
.article-body h3 { margin-top: 1.9rem; }
.article-body ul, .article-body ol { padding-left: 1.35rem; margin: 0 auto 1.25em; }
.article-body li { margin-bottom: .5em; }
.article-body li::marker { color: var(--accent); }

/* table of contents */
.toc {
  background: var(--paper-2); border: 1px solid var(--rule); border-radius: var(--radius-lg);
  padding: 1.2rem 1.4rem; margin-bottom: 2rem;
}
.toc h2 {
  font-family: var(--font-body); font-size: .78rem; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--ink-3); margin: 0 0 .7rem;
}
.toc ol { margin: 0; padding-left: 1.2rem; font-size: .95rem; }
.toc li { margin-bottom: .35em; }
.toc a { color: var(--ink-2); text-decoration: none; }
.toc a:hover { color: var(--accent-ink); text-decoration: underline; }

/* callouts */
.callout {
  border: 1px solid var(--rule); border-left: 3px solid var(--accent);
  background: var(--paper-2); border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1.1rem 1.3rem; margin: 1.8rem auto;
}
.callout > :last-child { margin-bottom: 0; }
.callout-label {
  display: block; font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--accent-ink); margin-bottom: .45rem; font-family: var(--font-body);
}
.callout-warn { border-left-color: var(--alert); background: var(--alert-wash); }
.callout-warn .callout-label { color: var(--alert); }
.callout-gold { border-left-color: var(--gold); background: var(--gold-wash); }
.callout-gold .callout-label { color: var(--gold); }

/* tables */
.table-scroll { overflow-x: auto; margin: 1.8rem auto; max-width: var(--prose); }
table { border-collapse: collapse; width: 100%; font-size: .93rem; }
th, td { text-align: left; padding: .68rem .8rem; border-bottom: 1px solid var(--rule); vertical-align: top; }
th { font-weight: 700; font-size: .78rem; letter-spacing: .07em; text-transform: uppercase; color: var(--ink-3); border-bottom-color: var(--rule-2); }
tbody tr:hover { background: var(--paper-2); }

code {
  font-family: var(--font-mono); font-size: .9em;
  background: var(--paper-3); padding: .12em .38em; border-radius: 4px;
}
pre { background: var(--paper-3); border: 1px solid var(--rule); border-radius: var(--radius); padding: 1rem; overflow-x: auto; font-size: .88rem; }
pre code { background: none; padding: 0; }
blockquote {
  margin: 1.8rem auto; padding-left: 1.2rem; border-left: 3px solid var(--rule-2);
  color: var(--ink-2); font-style: italic;
}
figure { margin: 2rem auto; }
figcaption { font-size: .84rem; color: var(--ink-3); margin-top: .6rem; }

/* key takeaways box */
.takeaways {
  background: var(--accent-wash); border: 1px solid var(--rule-2);
  border-radius: var(--radius-lg); padding: 1.3rem 1.5rem; margin: 0 auto 2.2rem;
}
.takeaways h2 {
  font-family: var(--font-body); font-size: .78rem; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--accent-ink); margin: 0 0 .7rem;
}
.takeaways ul { margin: 0; padding-left: 1.2rem; }
.takeaways li { margin-bottom: .4em; font-size: .97rem; }
.takeaways li:last-child { margin-bottom: 0; }

/* ---------- calculator / tool UI ---------- */
.tool {
  background: var(--paper-2); border: 1px solid var(--rule); border-radius: var(--radius-lg);
  padding: 1.5rem; margin: 0 auto 2rem; max-width: var(--prose);
}
.tool-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem 1.2rem; }
@media (max-width: 600px) { .tool-grid { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: .35rem; }
.field label { font-size: .84rem; font-weight: 600; color: var(--ink-2); }
.field .hint { font-size: .78rem; color: var(--ink-3); font-weight: 400; }
.field input, .field select {
  font: inherit; font-size: 1rem; padding: .6rem .7rem;
  border: 1px solid var(--rule-2); border-radius: var(--radius);
  background: var(--paper); color: var(--ink); width: 100%;
}
.field input:focus, .field select:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }
.tool-output {
  margin-top: 1.4rem; padding-top: 1.3rem; border-top: 1px solid var(--rule-2);
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem;
}
@media (max-width: 600px) { .tool-output { grid-template-columns: 1fr 1fr; } }
.stat { display: flex; flex-direction: column; gap: .2rem; }
.stat-label { font-size: .74rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--ink-3); }
.stat-value { font-family: var(--font-display); font-size: 1.7rem; font-weight: 600; line-height: 1.1; }
.stat-value.is-accent { color: var(--accent); }
.stat-value.is-alert { color: var(--alert); }
.stat-sub { font-size: .8rem; color: var(--ink-3); }
.tool-msg { margin-top: 1rem; font-size: .9rem; color: var(--alert); }
.tool-msg:empty { display: none; }

/* ---------- newsletter ---------- */
.signup { background: var(--paper-2); border-block: 1px solid var(--rule); padding: clamp(2.5rem, 2rem + 3vw, 4rem) 0; }
.signup-inner { max-width: 40rem; margin-inline: auto; text-align: center; }
.signup h2 { margin-bottom: .5rem; }
.signup p { color: var(--ink-2); }
.signup-form { display: flex; gap: .6rem; margin: 1.5rem auto 0; max-width: 30rem; }
@media (max-width: 520px) { .signup-form { flex-direction: column; } }
.signup-form input[type="email"] {
  flex: 1; font: inherit; font-size: 1rem; padding: .8rem .9rem;
  border: 1px solid var(--rule-2); border-radius: var(--radius);
  background: var(--paper); color: var(--ink); min-width: 0;
}
.signup-form input:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.consent { font-size: .8rem; color: var(--ink-3); margin-top: 1rem; line-height: 1.55; }
.consent a { color: var(--ink-2); }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--rule); padding: 3rem 0 2.5rem; font-size: .9rem; color: var(--ink-2); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 2rem; margin-bottom: 2.5rem; }
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-grid h4 { font-size: .76rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); margin-bottom: .8rem; }
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.footer-links a { color: var(--ink-2); text-decoration: none; }
.footer-links a:hover { color: var(--accent-ink); text-decoration: underline; }
.footer-blurb { max-width: 26rem; color: var(--ink-3); font-size: .88rem; }
.footer-legal {
  border-top: 1px solid var(--rule); padding-top: 1.5rem;
  font-size: .82rem; color: var(--ink-3); line-height: 1.6;
}
.footer-legal p { margin-bottom: .8rem; }
.footer-legal p:last-child { margin-bottom: 0; }
.footer-legal strong { color: var(--ink-2); }

/* ---------- utility ---------- */
.lede { font-size: 1.12rem; color: var(--ink-2); }
.muted { color: var(--ink-3); }
.center { text-align: center; }
.mb-0 { margin-bottom: 0; }
.mt-2 { margin-top: 2rem; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ==========================================================================
   Flagship additions
   ========================================================================== */

/* ---------- nav CTA ---------- */
.nav-cta {
  background: var(--accent); color: #fff !important; border-radius: var(--radius);
  padding: .5rem .9rem !important; border-bottom: 0 !important; font-weight: 600;
}
.nav-cta:hover { background: var(--accent-ink); color: #fff !important; }
@media (max-width: 800px) {
  .nav-cta { text-align: center; margin-top: .6rem; }
}

/* ---------- 17(b) sponsored disclosure ---------- */
.sponsored-disclosure {
  max-width: var(--prose);
  margin: 2rem auto 0;
  padding: 1.3rem 1.5rem;
  border: 2px solid var(--alert);
  border-radius: var(--radius-lg);
  background: var(--alert-wash);
  font-size: .95rem;
}
.sponsored-disclosure > :last-child { margin-bottom: 0; }
.sponsored-flag {
  font-family: var(--font-body);
  font-size: .78rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase;
  color: var(--alert); margin-bottom: .7rem;
}
.sponsored-terms {
  margin: 1rem 0; padding: 0;
  display: grid; grid-template-columns: repeat(2, 1fr); gap: .7rem 1.5rem;
  border-block: 1px solid var(--rule-2); padding-block: 1rem;
}
@media (max-width: 560px) { .sponsored-terms { grid-template-columns: 1fr; } }
.sponsored-terms div { display: flex; flex-direction: column; gap: .15rem; }
.sponsored-terms dt {
  font-size: .72rem; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: var(--ink-3);
}
.sponsored-terms dd { margin: 0; font-weight: 600; }

/* ---------- byline ---------- */
.byline { display: inline-flex; align-items: center; gap: .5rem; font-weight: 600; color: var(--ink-2); }
.byline::before {
  content: ""; width: 1.4rem; height: 1.4rem; border-radius: 50%;
  background: var(--accent); flex: 0 0 auto;
}

/* ---------- inline mid-article CTA ---------- */
.cta-inline {
  max-width: var(--prose); margin: 2.6rem auto;
  padding: 1.4rem 1.6rem; border-radius: var(--radius-lg);
  background: var(--accent-wash); border: 1px solid var(--rule-2);
  display: grid; grid-template-columns: 1fr auto; gap: 1rem 1.6rem; align-items: center;
}
@media (max-width: 720px) { .cta-inline { grid-template-columns: 1fr; } }
.cta-inline h3 { margin-bottom: .2rem; font-size: 1.15rem; }
.cta-inline p { margin-bottom: 0; font-size: .93rem; color: var(--ink-2); }
.cta-inline-form { display: flex; gap: .5rem; }
@media (max-width: 460px) { .cta-inline-form { flex-direction: column; } }
.cta-inline-form input[type="email"] {
  font: inherit; font-size: .95rem; padding: .7rem .8rem; min-width: 0; width: 14rem;
  border: 1px solid var(--rule-2); border-radius: var(--radius);
  background: var(--paper); color: var(--ink);
}
@media (max-width: 460px) { .cta-inline-form input[type="email"] { width: 100%; } }

/* ---------- signup reassurance list ---------- */
.signup-points {
  list-style: none; margin: 1.1rem 0 0; padding: 0;
  display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem 1.4rem;
  font-size: .86rem; color: var(--ink-2);
}
.signup-points li { display: flex; align-items: center; gap: .4rem; }
.signup-points li::before { content: "\2713"; color: var(--accent); font-weight: 700; }

/* ---------- credibility band ---------- */
.cred-band { border-block: 1px solid var(--rule); background: var(--paper-2); padding: 1.8rem 0; }
.cred-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
@media (max-width: 820px) { .cred-grid { grid-template-columns: repeat(2, 1fr); } }
.cred-item { display: flex; flex-direction: column; gap: .2rem; }
.cred-num { font-family: var(--font-display); font-size: 1.9rem; font-weight: 700; line-height: 1; color: var(--accent); }
.cred-label { font-size: .84rem; color: var(--ink-2); }

/* ---------- glossary ---------- */
.glossary-search { max-width: var(--prose); margin: 0 auto 1.5rem; }
.glossary-search input {
  width: 100%; font: inherit; font-size: 1.05rem; padding: .85rem 1rem;
  border: 1px solid var(--rule-2); border-radius: var(--radius);
  background: var(--paper); color: var(--ink);
}
.glossary-search input:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }
.glossary-count { max-width: var(--prose); margin: 0 auto 2rem; font-size: .88rem; color: var(--ink-3); }

.alpha-nav {
  max-width: var(--prose); margin: 0 auto 2.2rem;
  display: flex; flex-wrap: wrap; gap: .35rem;
}
.alpha-nav a {
  display: grid; place-items: center; min-width: 2rem; height: 2rem; padding: 0 .4rem;
  border: 1px solid var(--rule-2); border-radius: var(--radius);
  font-size: .85rem; font-weight: 600; text-decoration: none; color: var(--ink-2);
}
.alpha-nav a:hover { border-color: var(--accent); color: var(--accent-ink); background: var(--accent-wash); }

.glossary-group { max-width: var(--prose); margin: 0 auto 2.5rem; scroll-margin-top: 90px; }
.glossary-group > h2 {
  font-family: var(--font-body); font-size: .8rem; font-weight: 800; letter-spacing: .16em;
  text-transform: uppercase; color: var(--accent); margin: 0 0 .9rem;
  padding-bottom: .5rem; border-bottom: 2px solid var(--rule-2);
}
.term { padding: 1.05rem 0; border-bottom: 1px solid var(--rule); scroll-margin-top: 90px; }
.term:last-child { border-bottom: 0; }
.term h3 { margin-bottom: .3rem; font-size: 1.1rem; }
.term p { margin-bottom: 0; font-size: .97rem; color: var(--ink-2); }
.term p + p { margin-top: .5rem; }
.term-also { font-size: .86rem; color: var(--ink-3); margin-top: .45rem !important; }
.glossary-empty { max-width: var(--prose); margin: 2rem auto; color: var(--ink-3); }

/* ---------- media/advertise page ---------- */
.spec-table td:first-child { font-weight: 600; white-space: nowrap; }
.pill-row { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0 auto 1.5rem; max-width: var(--prose); }
.pill {
  font-size: .84rem; font-weight: 600; padding: .4rem .8rem; border-radius: 999px;
  background: var(--paper-2); border: 1px solid var(--rule-2); color: var(--ink-2);
}
