/* Shared visual language for the record and vision pages. */

body { background:radial-gradient(ellipse at 78% 0%,rgba(244,185,66,.09),transparent 36%),radial-gradient(ellipse at 8% 32%,rgba(159,231,223,.04),transparent 42%),var(--color-bg); padding-bottom:0; }
.site-header.is-stuck { background:rgba(5,14,18,.94); border-color:var(--color-line); }

.brand__name .dot { color:var(--color-cyan); }





.research-page::before { content:""; position:absolute; inset:0 0 auto; height:1px; background:linear-gradient(90deg,transparent,rgba(244,185,66,.65),transparent); }
.research-hero { position:relative; overflow-x:clip; }
.research-hero::after { content:"⬡"; position:absolute; right:4vw; top:15%; z-index:-1; color:rgba(159,231,223,.06); font-size:clamp(11rem,28vw,30rem); line-height:1; pointer-events:none; }
.card,.callout,.method { border-color:var(--color-line); }




@media (max-width:640px) { .site-header__actions { gap:5px; }.site-header__actions .btn--sm { min-height:44px; padding:10px 12px; letter-spacing:.05em; }.research-hero::after { top:30%; right:-12vw; } }
/* The interior header carries the brand and one action on phone widths; the brand
   already links home, so HOME is the button that goes, not the offer. */
.site-header__bar { gap:10px; }
[main] [id], main [id] { scroll-margin-top:calc(var(--header-h) + 20px); }
/* styles.css hides the header button below 960px because the home page has a menu
   toggle; the interior pages have no toggle, so they keep it. */
@media (max-width:960px) {
  .site-header__bar .btn--sm { display:inline-flex; }
}
@media (max-width:640px) {
  .brand__text { min-width:0; }
  .brand__name { font-size:14px; }
  .site-header__actions { gap:6px; margin-left:auto; }
  .site-header__actions .btn--sm:last-child { display:none; }
  .site-header__actions .btn--sm { min-height:44px; padding:10px 13px; letter-spacing:.06em; }
}

/* Ranks page: the ladder. */
.ranks-page::before { content:""; position:absolute; inset:0 0 auto; height:1px; background:linear-gradient(90deg,transparent,rgba(244,185,66,.65),transparent); }
.ranks-hero { position:relative; overflow-x:clip; }
.ranks-hero::after { content:"⬡"; position:absolute; right:4vw; top:15%; z-index:-1; color:rgba(244,185,66,.08); font-size:clamp(11rem,28vw,30rem); line-height:1; pointer-events:none; }
.ranks-list { list-style:none; margin:0; padding:0; display:grid; gap:12px; }
.rank { display:grid; grid-template-columns:52px minmax(0,1fr); gap:18px; align-items:start; padding:22px 24px; border:1px solid var(--color-line); border-radius:var(--radius-lg); background:var(--color-surface-2); }
.rank__num { color:var(--color-cyan); font:700 13px/1.4 var(--font-mono); letter-spacing:.12em; padding-top:6px; }
.rank__body h3 { margin:0; font:700 var(--text-h3)/1.1 var(--font-display); letter-spacing:.02em; }
.rank__who { margin:8px 0 0; color:var(--color-amber); font:700 var(--text-micro)/1.4 var(--font-mono); letter-spacing:.14em; text-transform:uppercase; }
.rank__body p:not(.rank__who) { margin:12px 0 0; color:var(--color-muted); font-size:var(--text-small); line-height:1.65; max-width:72ch; }
.rank--king { border-color:var(--color-amber); background:var(--color-surface-2); }
.rank--king .rank__num { color:var(--color-amber); }
.rank--king .rank__body h3 { color:#f2d8a0; }
@media (max-width:640px) {
  .rank { grid-template-columns:40px minmax(0,1fr); gap:12px; padding:18px; }
}

/* ---- Golden Hive visual system -------------------------------------------------
   One palette, carried by role: honey for rank/value, mint for signal, sand for
   pointers. Additions are decorative only; no table wording, figures or row order
   changes here. Badges use the existing .rank__num text, so the meaning stays in
   the accessible tree. */
.section-head .eyebrow { border-left:2px solid var(--color-amber); padding-left:10px; }
.table-scroll { max-width:100%; overflow-x:auto; }
.table-scroll:focus-visible { outline:var(--focus-ring); outline-offset:4px; }
.limit-table tbody tr:hover { background:rgba(244,185,66,.045); }
.limit-table { border-top:1px solid rgba(244,185,66,.32); }
.limit-table th { color:var(--color-amber); }
.limit-table td:first-child { color:var(--color-ink-soft); }
.limit-table a { color:var(--color-ink-soft); border-bottom:1px solid rgba(244,185,66,.28); }
.limit-table a:hover { color:var(--color-amber); }
.callout { border-left-color:var(--color-amber); }
.callout h2, .callout h3 { color:var(--color-ink-soft); }
.findings .proof-num { display:inline-grid; place-items:center; width:36px; height:40px; clip-path:polygon(25% 3%,75% 3%,100% 50%,75% 97%,25% 97%,0% 50%); background:var(--color-amber); color:var(--color-ink-on-accent); font-weight:700; }
.findings .card { position:relative; overflow:hidden; border-top:2px solid rgba(244,185,66,.5); }
.findings .card::after { content:"⬡"; position:absolute; right:-12px; top:-20px; color:rgba(244,185,66,.07); font-size:110px; line-height:1; pointer-events:none; }
.rank { position:relative; overflow:hidden; --rank-accent:var(--color-muted); border-left:3px solid var(--rank-accent); }
.rank::after { content:"⬡"; position:absolute; right:-10px; top:-24px; color:rgba(244,185,66,.05); font-size:108px; line-height:1; pointer-events:none; }
.rank:nth-child(1) { --rank-accent:var(--color-amber); }
.rank:nth-child(2) { --rank-accent:var(--color-honey); }
.rank:nth-child(3) { --rank-accent:var(--color-cyan); }
.rank:nth-child(4) { --rank-accent:#6fbfae; }
.rank:nth-child(5) { --rank-accent:#9ab7a8; }
.rank:nth-child(6) { --rank-accent:#c7b299; }
.rank:nth-child(7) { --rank-accent:#a9b3ad; }
.rank:nth-child(8) { --rank-accent:#9aa59f; }
.rank:nth-child(9) { --rank-accent:#9aa59f; }
.rank__num { display:grid; place-items:center; width:52px; height:58px; padding-top:0; clip-path:polygon(25% 3%,75% 3%,100% 50%,75% 97%,25% 97%,0% 50%); background:var(--rank-accent); color:var(--color-ink-on-accent); font:700 13px/1 var(--font-mono); }
.rank__body h3 { color:var(--rank-accent); }
.rank__who { color:var(--rank-accent); }
.rank--king { border-color:var(--color-amber); background:linear-gradient(100deg,rgba(244,185,66,.09),var(--color-surface-2) 60%); }
.rank--king .rank__body h3 { color:#f7d79a; }
@media (max-width:640px) {
  .rank { grid-template-columns:52px minmax(0,1fr); }
  .rank__num { width:46px; height:52px; }
  .rank:nth-child(n) { border-left-width:3px; }
  /* Wide tables keep their real column widths and scroll inside a focusable
     region, so every column stays readable at 390px without widening the page. */
  .table-scroll { margin-top:22px; }
  .table-scroll .limit-table { margin-top:0; min-width:760px; }
  .limit-table th, .limit-table td { overflow-wrap:anywhere; padding-right:10px; }
}
@media (prefers-reduced-motion:reduce) { .rank,.findings .card { transition:none; } }
.callout--crosslink { border-left-color:var(--color-cyan); }
.callout--crosslink p { max-width:78ch; }
.callout--crosslink .crosslink-links { display:flex; flex-wrap:wrap; gap:10px 18px; margin-top:12px; }
.callout--crosslink .crosslink-links a { color:var(--color-amber); font:600 var(--text-micro)/1.4 var(--font-mono); letter-spacing:.08em; border-bottom:1px solid rgba(244,185,66,.45); padding-bottom:2px; }
.callout--crosslink .crosslink-links a:hover { color:var(--color-ink); }

/* Glossary: a field-guide index in the margin of each term. The number is
   generated decoration; the term text stays the accessible label. */
.glossary-page .limit-table tbody { counter-reset: term; }
.glossary-page .limit-table tbody tr { counter-increment: term; }
.glossary-page .limit-table td:first-child { white-space: nowrap; padding-right: 20px; }
.glossary-page .limit-table td:first-child strong::before {
  content: counter(term, decimal-leading-zero);
  display: block;
  margin-bottom: 6px;
  color: var(--color-amber);
  font: 600 .62rem/1 var(--font-mono);
  letter-spacing: .14em;
}
.glossary-page .limit-table td:nth-child(2) { color: var(--color-ink-soft); }
.glossary-page .limit-table td:nth-child(2) { line-height: 1.6; }
.glossary-page .limit-table tbody tr:hover td:first-child strong::before { color: var(--color-cyan); }
