/*
 * HOODACHI docs, legal and 404 (docs.html, terms.html, privacy.html, 404.html). Builds on css/base.css.
 * Calm and readable: one text column, hairlines between sections, a sticky section nav (left rail on desktop,
 * a compact jump menu under the header below 1024 px).
 */

/* ================================================================ docs hero */
.docs-hero { position: relative; isolation: isolate; padding-block: clamp(40px, 7vw, 92px) clamp(28px, 4vw, 48px); overflow: hidden; }
.docs-hero::before {
  content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(60% 90% at 12% 0%, rgba(0, 104, 55, .24), transparent 70%), radial-gradient(40% 70% at 92% 0%, rgba(87, 201, 128, .07), transparent 70%);
}
.docs-hero::after {
  content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: linear-gradient(rgba(160, 255, 200, .045) 1px, transparent 1px), linear-gradient(90deg, rgba(160, 255, 200, .045) 1px, transparent 1px);
  background-size: 48px 48px; background-position: -1px -1px;
  -webkit-mask-image: radial-gradient(75% 100% at 18% 0%, #000 10%, transparent 72%); mask-image: radial-gradient(75% 100% at 18% 0%, #000 10%, transparent 72%);
}
.docs-hero .eyebrow svg { width: 16px; height: 16px; }
.docs-hero .wrap { position: relative; }
.docs-hero-art { display: none; }
@media (min-width: 1024px) {
  .docs-hero-art {
    display: grid; place-items: center; position: absolute; right: calc(var(--gutter) + 20px); top: 50%;
    width: 300px; aspect-ratio: 1; transform: translateY(-50%); pointer-events: none;
  }
  .docs-hero-art::before {
    content: ''; position: absolute; inset: 0; border-radius: 50%;
    background: repeating-radial-gradient(circle, transparent 0 37px, rgba(87, 201, 128, .13) 37px 38px);
    -webkit-mask-image: radial-gradient(circle, #000 45%, transparent 71%); mask-image: radial-gradient(circle, #000 45%, transparent 71%);
  }
  .docs-radar {
    position: absolute; inset: 0; border-radius: 50%;
    background: conic-gradient(from 0deg, rgba(87, 201, 128, .28), rgba(87, 201, 128, 0) 70deg, transparent 360deg);
    -webkit-mask-image: radial-gradient(circle, #000 30%, transparent 70%); mask-image: radial-gradient(circle, #000 30%, transparent 70%);
    animation: docs-sweep 7s linear infinite;
  }
  .docs-hero-art img { position: relative; width: 132px; height: auto; filter: drop-shadow(0 16px 30px rgba(0, 0, 0, .6)) drop-shadow(0 0 26px rgba(87, 201, 128, .25)); }
  .docs-hero .lede, .docs-hero h1 { max-width: min(60ch, calc(100% - 360px)); }
}
@keyframes docs-sweep { to { transform: rotate(360deg); } }
.docs-hero h1 { margin-top: 14px; font-size: clamp(2.3rem, 5.2vw, 3.6rem); }
.docs-hero .lede { margin-top: 16px; max-width: 60ch; }
.docs-hero-meta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.docs-hero-meta .chip { font-variant-numeric: tabular-nums; }

/* =================================================================== layout */
.docs-layout { display: grid; grid-template-columns: minmax(0, 1fr); padding-bottom: clamp(64px, 9vw, 120px); }
.docs-body { min-width: 0; max-width: 780px; }
.docs-rail { display: none; }
@media (min-width: 1024px) {
  .docs-layout { grid-template-columns: 200px minmax(0, 1fr); column-gap: clamp(48px, 5vw, 80px); }
  .docs-rail { display: block; }
  .docs-rail nav { position: sticky; top: calc(var(--header-h) + 36px); padding-top: 8px; }
}
.docs-rail-title { margin-bottom: 14px; color: var(--faint); }
.docs-rail ol { display: flex; flex-direction: column; border-left: 1px solid var(--line); }
.docs-rail ol a {
  display: flex; align-items: baseline; gap: 12px; margin-left: -1px; padding: 7px 0 7px 16px;
  border-left: 2px solid transparent; color: var(--muted); font-size: .92rem; line-height: 1.3;
  transition: color var(--t-fast), border-color var(--t-fast);
}
.docs-rail ol a:hover { color: var(--text); }
.docs-rail ol a[aria-current] { color: var(--text); border-left-color: var(--green); }
.toc-n { flex: none; min-width: 1.6em; font-family: var(--font-label); font-weight: 600; font-size: .7rem; letter-spacing: .06em; color: var(--faint); transition: color var(--t-fast); }
a[aria-current] .toc-n { color: var(--green); }
.docs-rail-cta { margin-top: 26px; }

/* phone and tablet: a sticky jump menu under the header */
.docs-jump-bar {
  position: sticky; top: var(--header-h); z-index: 60;
  background: rgba(10, 13, 11, .84); -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur);
  border-block: 1px solid var(--line);
}
@media (min-width: 1024px) { .docs-jump-bar { display: none; } }
@media (max-width: 1023px) {
  html { scroll-padding-top: calc(var(--header-h) + 50px + 18px); }
  .docs-layout { padding-top: 4px; }
}
.docs-jump { position: relative; }
.docs-jump summary {
  display: flex; align-items: center; gap: 12px; height: 50px; cursor: pointer; list-style: none; user-select: none;
}
.docs-jump summary::-webkit-details-marker { display: none; }
.docs-jump summary .label { color: var(--faint); flex: none; }
.docs-jump-current { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; font-size: .95rem; }
.docs-jump summary svg { width: 18px; height: 18px; color: var(--muted); transition: transform var(--t) var(--ease); }
.docs-jump[open] summary svg { transform: rotate(180deg); }
.docs-jump summary:focus-visible { outline-offset: -2px; }
.docs-jump-menu {
  position: absolute; left: var(--gutter); right: var(--gutter); top: calc(100% + 6px);
  max-height: calc(100dvh - var(--header-h) - 80px); overflow: auto; padding: 6px;
  background: #0e1310; border: 1px solid var(--line-2); border-radius: 14px; box-shadow: var(--shadow-2);
  animation: jump-in .22s var(--ease-out) both;
}
.docs-jump-menu ol { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2px; }
@media (min-width: 560px) { .docs-jump-menu ol { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.docs-jump-menu a { display: flex; align-items: baseline; gap: 12px; padding: 11px 12px; border-radius: 10px; color: var(--muted); font-size: .95rem; }
.docs-jump-menu a:hover { color: var(--text); background: rgba(255, 255, 255, .04); }
.docs-jump-menu a[aria-current] { color: var(--text); background: rgba(87, 201, 128, .09); }
@keyframes jump-in { from { transform: translateY(-6px); } to { transform: none; } }

/* ================================================================= sections */
.doc-sec { padding-block: clamp(40px, 5.5vw, 64px); border-top: 1px solid var(--line); }
.docs-body > .doc-sec:first-child { border-top: 0; padding-top: 8px; }
.doc-n { font-family: var(--font-label); font-weight: 700; font-size: .78rem; letter-spacing: .16em; color: var(--green); }
.doc-sec h2 { margin: 8px 0 16px; font-size: clamp(1.7rem, 2.8vw, 2.2rem); }
.doc-sec h3 { margin: 34px 0 10px; font-size: 1.12rem; }
.doc-sec > p { color: rgba(233, 239, 233, .84); line-height: 1.68; max-width: 68ch; }
.doc-sec > p + p { margin-top: 12px; }
.doc-sec b { font-weight: 600; color: var(--text); font-variant-numeric: tabular-nums; }

.doc-note { display: flex; align-items: flex-start; gap: 10px; margin-top: 20px; font-size: .88rem; color: var(--muted); line-height: 1.55; }
.doc-note svg { width: 16px; height: 16px; color: var(--green); margin-top: 3px; }
.doc-callout {
  display: flex; align-items: flex-start; gap: 12px; margin: 22px 0 14px; padding: 14px 16px;
  border: 1px solid rgba(87, 201, 128, .22); border-radius: 12px; background: rgba(87, 201, 128, .06);
  font-size: .94rem; line-height: 1.55; color: rgba(233, 239, 233, .9);
}
.doc-callout svg { width: 18px; height: 18px; color: var(--green); margin-top: 2px; }
.doc-status {
  display: flex; align-items: center; gap: 10px; margin-top: 16px; padding: 10px 14px; width: fit-content; max-width: 100%;
  border: 1px dashed var(--line-2); border-radius: 10px; font-size: .86rem; color: var(--muted); line-height: 1.45;
}
.doc-status .dot { flex: none; }

/* key/value list: stacked on phones, two columns from 560 px */
.doc-kv { display: grid; grid-template-columns: minmax(0, 1fr); margin: 22px 0 0; border-top: 1px solid var(--line); }
.doc-kv dt { padding-top: 13px; font-weight: 600; font-size: .92rem; color: var(--text); }
.doc-kv dd { margin: 0; padding: 3px 0 13px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: .95rem; line-height: 1.55; }
@media (min-width: 560px) {
  .doc-kv { grid-template-columns: 150px minmax(0, 1fr); }
  .doc-kv dt, .doc-kv dd { padding-block: 13px; border-bottom: 1px solid var(--line); }
  .doc-kv dt { padding-right: 20px; }
  .doc-kv-wide { grid-template-columns: 134px minmax(0, 1fr); }
}

/* tables inside the text column */
.doc-table { margin-top: 20px; border: 1px solid var(--line); border-radius: 12px; background: rgba(12, 16, 14, .5); }
.doc-table .table th { background: rgba(16, 21, 18, .98); }
.doc-table .table td { white-space: normal; line-height: 1.45; }
.doc-table .table td:first-child { white-space: nowrap; }
.doc-table .table td .pill { margin-left: 6px; vertical-align: 1px; }
.doc-table .table tbody tr:hover { background: transparent; }

/* ================================================================ overview */
.doc-map { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; margin-top: 26px; }
@media (min-width: 640px) { .doc-map { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.doc-map a {
  display: flex; align-items: flex-start; gap: 14px; height: 100%; padding: 15px 16px;
  border: 1px solid var(--line); border-radius: 12px; background: rgba(255, 255, 255, .015);
  transition: border-color var(--t) var(--ease), background-color var(--t) var(--ease), transform var(--t) var(--ease);
}
.doc-map a:hover { border-color: rgba(87, 201, 128, .3); background: rgba(87, 201, 128, .04); transform: translateY(-1px); }
.doc-map-icon {
  display: grid; place-items: center; flex: none; width: 34px; height: 34px; border-radius: 10px;
  background: linear-gradient(160deg, rgba(87, 201, 128, .22), rgba(0, 104, 55, .18)); color: var(--green-2);
  box-shadow: inset 0 0 0 1px rgba(87, 201, 128, .25);
}
.doc-map-icon svg { width: 18px; height: 18px; }
.doc-map-text { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.doc-map-text strong { font-weight: 600; font-size: .98rem; }
.doc-map-text span { font-size: .86rem; color: var(--muted); line-height: 1.45; }

/* ================================================================ sessions */
.week {
  margin: 26px 0 4px; padding: 18px 18px 16px;
  border: 1px solid var(--line); border-radius: var(--r-panel);
  background: linear-gradient(180deg, rgba(18, 24, 21, .7), rgba(12, 16, 14, .45));
}
.week-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 16px; margin-bottom: 14px; }
.week-now { font-family: var(--font-mono); font-size: .78rem; color: var(--green); }
.week-grid { --day: 64px; }
.week-ticks { position: relative; height: 18px; margin-left: var(--day); font-family: var(--font-mono); font-size: .66rem; color: var(--faint); }
.week-ticks span { position: absolute; top: 0; left: calc(var(--at) * 1%); transform: translateX(-50%); white-space: nowrap; }
.week-ticks span:first-child { transform: none; }
.week-ticks span:last-child { transform: translateX(-100%); }
.week-rows { display: flex; flex-direction: column; gap: 6px; }
.week-row { display: grid; grid-template-columns: var(--day) minmax(0, 1fr); align-items: center; }
.week-day { font-size: .82rem; color: var(--muted); font-weight: 500; white-space: nowrap; }
.week-date { font-family: var(--font-mono); font-size: .72rem; color: var(--faint); }
.week-row.is-today .week-day { color: var(--text); }
.week-row.is-today .week-date { color: var(--green); }
.week-bar { position: relative; display: flex; height: 18px; border-radius: 5px; background: rgba(255, 255, 255, .02); }
.week-bar i { flex: 0 0 calc(var(--w) * 1%); height: 100%; box-shadow: inset -1px 0 0 rgba(11, 13, 12, .75); }
.week-bar i:first-child { border-radius: 5px 0 0 5px; }
.week-bar i:last-of-type { border-radius: 0 5px 5px 0; box-shadow: none; }
.week-bar i:only-of-type { border-radius: 5px; }
.week-row.is-today .week-bar { box-shadow: 0 0 0 1px rgba(233, 239, 233, .16); }
.week-now-mark {
  position: absolute; top: -4px; bottom: -4px; left: calc(var(--at) * 1%); width: 2px; margin-left: -1px; border-radius: 2px;
  background: #fff; box-shadow: 0 0 10px rgba(255, 255, 255, .85);
}
.week-why { grid-column: 2; margin-top: 4px; font-size: .74rem; color: var(--watch); }
.ph-regular { background: rgba(238, 228, 207, .62); }
.ph-pre { background: #3d8f5c; }
.ph-after { background: var(--green); }
.ph-overnight { background: #0a4a2b; }
.ph-closed { background: repeating-linear-gradient(135deg, rgba(233, 239, 233, .07) 0 4px, transparent 4px 8px); }
.week-legend { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 16px; font-size: .78rem; color: var(--muted); }
.week-legend li { display: inline-flex; align-items: center; gap: 7px; }
.week-legend i { display: inline-block; width: 12px; height: 12px; border-radius: 3px; box-shadow: inset 0 0 0 1px rgba(233, 239, 233, .08); }
@media (max-width: 479px) {
  .week { padding: 14px 12px 12px; }
  .week-grid { --day: 48px; }
  .week-date { display: none; }
  .week-ticks span:first-child, .week-ticks span:last-child { display: none; }
}

/* ================================================================= sources */
.src-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; margin-top: 24px; }
@media (min-width: 720px) { .src-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.src {
  display: flex; flex-direction: column; gap: 14px; padding: 18px 18px 20px;
  border: 1px solid var(--line); border-radius: var(--r-panel);
  background: linear-gradient(180deg, rgba(18, 24, 21, .72), rgba(12, 16, 14, .45));
}
.src-head { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: .95rem; line-height: 1.25; }
@media (min-width: 720px) { .src-head { min-height: 2.6em; } }
.src-icon {
  display: grid; place-items: center; flex: none; width: 32px; height: 32px; border-radius: 10px;
  background: linear-gradient(160deg, rgba(87, 201, 128, .22), rgba(0, 104, 55, .18)); color: var(--green-2);
  box-shadow: inset 0 0 0 1px rgba(87, 201, 128, .25);
}
.src-icon svg { width: 17px; height: 17px; }
.src-num { display: flex; flex-direction: column; gap: 6px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.src-num .stat-num { font-size: 2rem; color: var(--text); }
.src-list li, .risk-list li { position: relative; padding-left: 15px; font-size: .87rem; color: var(--muted); line-height: 1.5; }
.src-list li + li { margin-top: 9px; }
.src-list li::before, .risk-list li::before {
  content: ''; position: absolute; left: 0; top: .6em; width: 5px; height: 5px; border-radius: 50%; background: var(--green); opacity: .75;
}

.toks { display: flex; flex-direction: column; gap: 20px; margin-top: 20px; }
.toks-group > .label { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.toks-count { font-family: var(--font-mono); font-weight: 600; color: var(--green); letter-spacing: 0; }
.toks-list { display: flex; flex-wrap: wrap; gap: 6px; }
.toks-list li:not(.skel) {
  display: inline-flex; align-items: center; height: 30px; padding: 0 11px 0 5px;
  border: 1px solid var(--line); border-radius: var(--r-pill); background: rgba(255, 255, 255, .025);
}
.toks-list .tok { gap: 7px; }
.toks-list .tok-sym { font-family: var(--font-mono); font-size: .76rem; font-weight: 600; letter-spacing: 0; }
.toks-skel { width: 76px; height: 30px; border-radius: var(--r-pill); }

/* ================================================================= signals */
.rules { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; margin-top: 24px; }
@media (min-width: 720px) { .rules { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.rule {
  --tone: var(--watch); --tone-bg: var(--watch-bg);
  display: flex; flex-direction: column; gap: 12px; padding: 16px 16px 16px;
  border: 1px solid var(--line); border-radius: var(--r-panel);
  background: linear-gradient(180deg, rgba(18, 24, 21, .72), rgba(12, 16, 14, .45));
}
.rule[data-tone='info'] { --tone: var(--info); --tone-bg: var(--info-bg); }
.rule[data-tone='up'] { --tone: var(--up); --tone-bg: var(--up-bg); }
.rule[data-tone='down'] { --tone: var(--down); --tone-bg: var(--down-bg); }
.rule-head { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 10px; }
.rule-icon { display: grid; place-items: center; flex: none; width: 32px; height: 32px; border-radius: 10px; background: var(--tone-bg); color: var(--tone); }
.rule-icon svg { width: 17px; height: 17px; }
.rule h3 { flex: 1 1 auto; min-width: 0; margin: 0; font-size: 1rem; line-height: 1.3; }
.rule h3 .faint { font-weight: 500; }
.rule-bit { font-family: var(--font); font-weight: 500; font-size: .72rem; color: var(--muted); background: rgba(255, 255, 255, .05); }
.rule > p { flex: 1 1 auto; font-size: .9rem; color: var(--muted); line-height: 1.55; }
.rule > p.rule-note { flex: none; font-size: .8rem; color: var(--watch); }
.sev { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.sev li { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.sev-bar { height: 4px; border-radius: 4px; background: var(--tone); }
.sev li:nth-child(1) .sev-bar { opacity: .32; }
.sev li:nth-child(2) .sev-bar { opacity: .62; }
.sev-v { font-family: var(--font-mono); font-size: .74rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ================================================================== assign */
.steps-mini { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; margin-top: 26px; }
.steps-mini li:not(:last-child)::after { content: ''; position: absolute; left: 15px; top: 31px; bottom: -18px; width: 1px; background: linear-gradient(180deg, rgba(87, 201, 128, .55), rgba(87, 201, 128, .18)); }
.steps-mini li { position: relative; display: flex; align-items: flex-start; gap: 14px; }
.steps-mini li > div { display: flex; flex-direction: column; gap: 2px; padding-top: 4px; min-width: 0; }
.steps-mini strong { font-weight: 600; font-size: .98rem; }
.steps-mini span:not(.step-n) { font-size: .88rem; color: var(--muted); line-height: 1.5; }
.step-n {
  position: relative; display: grid; place-items: center; flex: none; width: 31px; height: 31px; border-radius: 50%;
  border: 1px solid rgba(87, 201, 128, .55); background: var(--bg); color: var(--green);
  font-family: var(--font-label); font-weight: 700; font-size: .88rem; box-shadow: 0 0 0 4px rgba(87, 201, 128, .06);
}
@media (min-width: 720px) {
  .steps-mini { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
  .steps-mini li:not(:last-child)::after { left: 31px; right: -20px; top: 15px; bottom: auto; width: auto; height: 1px; background: linear-gradient(90deg, rgba(87, 201, 128, .55), rgba(87, 201, 128, .18)); }
  .steps-mini li { flex-direction: column; gap: 12px; }
  .steps-mini li > div { padding-top: 0; }
}

/* ================================================================== calls */
.diagram {
  margin: 26px 0 4px; padding: 20px 16px 14px;
  border: 1px solid var(--line); border-radius: var(--r-panel);
  background: radial-gradient(80% 100% at 50% 0%, rgba(0, 104, 55, .13), transparent 70%), rgba(10, 14, 12, .55);
}
.diagram-void { margin-top: 18px; padding-block: 16px 12px; }
.diagram-title { margin: 0 0 8px 4px; color: var(--faint); }
.doc-sec > .doc-callout { max-width: none; }
.dg { display: block; width: 100%; max-width: 560px; height: auto; margin-inline: auto; overflow: visible; }
.dg-narrow { display: none; max-width: 420px; }
@media (max-width: 559px) {
  .dg-wide { display: none; }
  .dg-narrow { display: block; }
  .diagram { padding-inline: 8px; }
  .dg-narrow .dg-label { font-size: 14px; }
  .dg-narrow .dg-sub { font-size: 12.5px; }
}
.dg text { font-family: var(--font); }
.dg-label { fill: var(--text); font-size: 13px; font-weight: 600; }
.dg-sub { fill: var(--muted); font-size: 11.5px; }
.dg-axis { fill: none; stroke: var(--line-3); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.dg-call { stroke: var(--text); stroke-width: 1.5; }
.dg-deadline { stroke: var(--watch); stroke-width: 1.5; stroke-dasharray: 4 4; }
.dg-bracket { fill: none; stroke: var(--faint); stroke-width: 1.2; }
.dg-score { stroke: var(--green); }
.dg-score-t { fill: var(--green-2); }
.dg-price { fill: none; stroke: rgba(233, 239, 233, .32); stroke-width: 1.4; stroke-linejoin: round; }
.dg-print { fill: var(--bg); stroke: var(--muted); stroke-width: 1.5; }
.dg-key { fill: var(--green); }
.dg-halo { fill: rgba(87, 201, 128, .15); stroke: rgba(87, 201, 128, .45); stroke-width: 1; }
.dg-gap { fill: rgba(255, 90, 82, .07); stroke: rgba(255, 90, 82, .32); stroke-width: 1; stroke-dasharray: 3 3; }
.dg-void { fill: var(--bg); stroke: var(--down); stroke-width: 2; }
.dg-void-t { fill: var(--down); }
.diagram-legend { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 18px; margin-top: 12px; font-size: .76rem; color: var(--muted); }
.diagram-legend span { display: inline-flex; align-items: center; gap: 7px; }
.diagram-legend i { display: inline-block; flex: none; }
.lg-print { width: 9px; height: 9px; border-radius: 50%; border: 1.5px solid var(--muted); }
.lg-key { width: 10px; height: 10px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 3px rgba(87, 201, 128, .18); }
.lg-price { width: 16px; height: 0; border-top: 1.5px solid rgba(233, 239, 233, .4); }

/* =============================================================== portfolio */
.pf-assets { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.pf-asset {
  display: inline-flex; align-items: center; height: 34px; padding: 0 13px 0 6px;
  border: 1px solid var(--line); border-radius: var(--r-pill); background: rgba(255, 255, 255, .025); font-size: .86rem;
}
.pf-asset .tok { gap: 8px; }
.pf-asset .tok-sym { font-family: var(--font-mono); font-size: .8rem; }
.pf-more { padding-left: 13px; color: var(--muted); }
.pf-more strong { color: var(--text); font-weight: 600; }

/* =============================================================== freshness */
.doc-table .fresh td:first-child { white-space: normal; min-width: 150px; }
.fresh td:nth-child(2) { white-space: nowrap; color: var(--text); font-size: .84rem; }
.fresh td:nth-child(3) { color: var(--muted); font-size: .86rem; }
@media (max-width: 559px) {
  .fresh thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); }
  .fresh, .fresh tbody { display: block; }
  .fresh tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; padding: 13px 14px; border-bottom: 1px solid var(--line); }
  .fresh tr:last-child { border-bottom: 0; }
  .fresh td { padding: 0; border: 0; }
  .doc-table .fresh td:first-child { min-width: 0; font-weight: 600; font-size: .9rem; }
  .fresh td:nth-child(3) { grid-column: 1 / -1; }
}

/* ===================================================================== faq */
.faq { margin-top: 20px; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 17px 2px;
  list-style: none; cursor: pointer; font-weight: 600; font-size: 1rem; line-height: 1.35;
  transition: color var(--t-fast);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--green-2); }
.faq summary svg { width: 18px; height: 18px; color: var(--muted); transition: transform var(--t) var(--ease), color var(--t-fast); }
.faq details[open] summary svg { transform: rotate(45deg); color: var(--green); }
.faq details p { padding: 0 2px 18px; max-width: 66ch; color: var(--muted); line-height: 1.6; }

/* ==================================================================== risk */
.risk-lead { padding-left: 14px; border-left: 2px solid var(--green); font-size: 1.12rem; font-weight: 600; color: var(--text) !important; }
.risk-list { margin-top: 18px; max-width: 68ch; }
.risk-list li { font-size: .94rem; }
.risk-list li + li { margin-top: 10px; }
.risk-list + p { margin-top: 22px; }

/* =================================================================== legal */
.page-legal main { background: radial-gradient(70% 420px at 15% 0%, rgba(0, 104, 55, .16), transparent 70%); }
.legal { max-width: calc(780px + var(--gutter) * 2); padding-block: clamp(40px, 7vw, 92px) clamp(64px, 9vw, 120px); }
.legal-head h1 { margin-top: 14px; }
.legal-head .eyebrow svg { width: 16px; height: 16px; }
.legal-meta { display: flex; flex-wrap: wrap; gap: 6px 10px; margin-top: 14px; font-size: .86rem; color: var(--faint); }
.legal-meta .sep { color: var(--faint); }
.legal-head .lede { margin-top: 20px; max-width: 64ch; }
.legal-facts { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; margin-top: 30px; }
@media (min-width: 640px) { .legal-facts { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.legal-facts li { display: flex; align-items: flex-start; gap: 12px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; background: rgba(255, 255, 255, .02); }
.legal-facts svg { width: 18px; height: 18px; color: var(--green); margin-top: 2px; }
.legal-facts span { display: flex; flex-direction: column; gap: 2px; font-size: .86rem; color: var(--muted); line-height: 1.45; }
.legal-facts strong { color: var(--text); font-weight: 600; font-size: .95rem; }
.legal-sec { margin-top: 30px; padding-top: 30px; border-top: 1px solid var(--line); }
.legal-head + .legal-sec { margin-top: 40px; }
.legal-sec h2 { display: flex; align-items: baseline; gap: 12px; margin-bottom: 12px; font-size: 1.22rem; }
.legal-n { flex: none; min-width: 1.2em; font-family: var(--font-label); font-weight: 700; font-size: .8rem; letter-spacing: .06em; color: var(--green); }
.legal-sec p { color: rgba(233, 239, 233, .84); line-height: 1.68; max-width: 68ch; }
.legal-sec p + p, .legal-sec .doc-table + p { margin-top: 14px; }
.legal-sec .doc-table { margin-block: 18px 0; }
.legal-table td:first-child { color: var(--green-2); font-size: .82rem; }
.legal-table td:last-child { color: var(--muted); }
.legal-more { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; margin-top: 48px; }
@media (min-width: 640px) { .legal-more { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.legal-more a {
  display: flex; align-items: center; gap: 14px; padding: 16px 18px;
  border: 1px solid var(--line); border-radius: 12px; background: rgba(255, 255, 255, .015);
  transition: border-color var(--t) var(--ease), background-color var(--t) var(--ease);
}
.legal-more a:hover { border-color: rgba(87, 201, 128, .3); background: rgba(87, 201, 128, .04); }
.legal-more a > span:nth-child(2) { flex: 1 1 auto; font-weight: 600; }
.legal-more svg { width: 18px; height: 18px; color: var(--muted); transition: transform var(--t) var(--ease), color var(--t-fast); }
.legal-more a:hover svg { transform: translateX(3px); color: var(--green); }

/* ===================================================================== 404 */
.nf {
  display: grid; place-items: center; min-height: calc(100svh - var(--header-h) - 150px);
  padding-block: clamp(56px, 10vh, 120px);
  background: radial-gradient(50% 50% at 50% 38%, rgba(211, 33, 32, .1), transparent 70%);
}
.nf-inner { display: flex; flex-direction: column; align-items: center; text-align: center; }
.nf-mark { position: relative; width: clamp(128px, 20vw, 176px); aspect-ratio: 1; }
.nf-mark::before {
  content: ''; position: absolute; inset: 8%; border-radius: 50%;
  background: radial-gradient(circle, rgba(211, 33, 32, .42), transparent 68%); filter: blur(22px);
}
.nf-mark img { position: relative; width: 100%; height: auto; filter: drop-shadow(0 18px 30px rgba(0, 0, 0, .55)); animation: nf-float 6s ease-in-out infinite; }
@keyframes nf-float { 0%, 100% { transform: translateY(0) rotate(-2deg); } 50% { transform: translateY(-8px) rotate(1deg); } }
.nf-code { margin-top: 26px; font-family: var(--font-label); font-weight: 700; font-size: .8rem; letter-spacing: .22em; text-transform: uppercase; color: #ff7d74; }
.nf-title { margin-top: 12px; max-width: 28ch; font-size: clamp(1.6rem, 3.6vw, 2.4rem); }
.nf-cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 30px; }
@media (max-width: 379px) { .nf-cta .btn { width: 100%; } }

@media (max-width: 639px) {
  .legal-facts { gap: 0; border: 1px solid var(--line); border-radius: 12px; background: rgba(255, 255, 255, .02); }
  .legal-facts li { border: 0; border-radius: 0; background: none; padding: 13px 14px; }
  .legal-facts li + li { border-top: 1px solid var(--line); }
  .legal-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); }
  .legal-table, .legal-table tbody, .legal-table tr, .legal-table td { display: block; }
  .legal-table tr { padding: 12px 14px; border-bottom: 1px solid var(--line); }
  .legal-table tr:last-child { border-bottom: 0; }
  .legal-table td { padding: 0; border: 0; }
  .legal-table td + td { margin-top: 4px; }
}

/* the shared footer names the current page (initShell sets aria-current) */
.footer-nav a[aria-current] { color: var(--text); }
