/* ============================================================
   content.css — trust pages (methodology, legal, briefs,
   releases, about/contact), cross-cutting states + chart tables,
   first-run onboarding, and working search. Built on the same
   tokens + component vocabulary as styles.css / components.css.
   ============================================================ */

/* ================= GENERIC PUBLIC SUB-PAGE ================= */
.subhero{position:relative;overflow:hidden;border-bottom:1px solid var(--border);padding:52px 0 40px}
.subhero .hero-bg{opacity:.6}
.subhero .wrap{position:relative;z-index:2}
/* The SubHero back-button. It is CHROME, not a page's: routes-chrome.jsx declares it and the benchmark
   page renders it as well as the brief reader. An earlier agent-os/tools/split_page_css.py run moved it
   into pages/brief-reader.css; restored 2026-08-02 to its original position (git f2524c9c^) inside the
   .subhero block, which also keeps it AFTER the components.css @media 44px tap-target rule that names
   .sub-back in a group selector — the order it has always had. */
.sub-back{display:inline-flex;align-items:center;gap:6px;padding-left:0;margin-bottom:18px;font-size:14px;color:var(--muted);font-weight:500;background:none;border:0;cursor:pointer;white-space:nowrap}
.sub-back:hover{color:var(--ink)}
.sub-back svg{transform:rotate(180deg)}
.subhero h1{font-size:44px;letter-spacing:-.025em;max-width:20ch;margin-top:14px}
.subhero .lede{color:var(--muted);font-size:18px;line-height:1.5;margin-top:16px;max-width:62ch}
.subhero .meta-row{display:flex;gap:10px;flex-wrap:wrap;align-items:center;margin-bottom:4px}

/* ---------- SUB-PAGE HERO, the plain variant (routes-chrome.jsx SubHero, className "subhero-plain")
   ---------- ROUND 4 (site walk, BUILD_PLAN.md 8.6): Contact's hero has no kicker, no grid texture,
   no glow and no bottom rule. The graphite address strip is the page's one visual device, and the
   header's own "Contact us" already names the page. */
.subhero-plain{padding:64px 0 0;border-bottom:0}
.subhero-plain h1{margin-top:0}
/* 57.5ch ends the lede's first line on "explain," from 561 px up (measured at 1440, 1280, 1024 and
   700: the break must fall between 570 and 592 px at 18 px, and 57.5ch is 580), so the two lines are
   the sentence's two halves: the big question, then the small one. Re-measure if contact.lede changes. */
.subhero-plain .lede{color:var(--muted);font-size:18px;line-height:1.55;margin-top:16px;max-width:57.5ch;text-wrap:pretty}
/* contact.reply.plain (rendered only while contact.founders is held) never breaks inside itself */
.reply-plain{white-space:nowrap}
@media (max-width:820px){
  .subhero-plain{padding:40px 0 0}
  .subhero-plain .lede{font-size:17px}
}
/* on phones the lede's lines are balanced: at 320 to 414 it reads as three phrases ("It may be what
   lies behind a quarter / your own numbers cannot explain, / or simply what a product covers."),
   where greedy wrapping left "what a" at the end of a line at 390. The page also binds "a" to the
   next word (LAYOUT 8.2, the page's own bindShort helper). */
@media (max-width:560px){
  .subhero-plain .lede{text-wrap:balance}
}

/* ================= METHODOLOGY (G-04) ================= */
.method-blocks{display:flex;flex-direction:column;gap:14px}

/* source-state dots (identified · likely-feed · connected) — honest, never blurred */
.srcstate{display:inline-flex;align-items:center;gap:7px;font-family:var(--fs-mono);font-size:10px;letter-spacing:.06em;text-transform:uppercase;color:var(--muted)}
.srcstate .sd{width:8px;height:8px;border-radius:50%;flex-shrink:0}
.srcstate.identified .sd{background:var(--dim)}
.srcstate.likely-feed .sd{background:var(--watch);box-shadow:0 0 0 3px var(--watchbg)}
.srcstate.connected .sd{background:var(--pos);box-shadow:0 0 0 3px var(--posbg)}

/* approval chain */
.chain{display:grid;grid-template-columns:repeat(3,1fr);gap:14px;position:relative}

/* shared section panel for trust pages */
.trust-section{padding:48px 0;border-top:1px solid var(--border)}
.trust-section:first-child{border-top:0}
.ts-head{max-width:64ch;margin-bottom:24px}
.ts-head h2{font-size:30px;letter-spacing:-.02em;margin-top:12px}
.ts-head p{color:var(--muted);font-size:16px;margin-top:10px;line-height:1.5}
.brief-list{display:flex;flex-direction:column;gap:0}
.brief-row{display:grid;grid-template-columns:1fr auto;gap:24px;align-items:center;padding:24px 0;border-top:1px solid var(--border);cursor:pointer;transition:.15s var(--ease)}
.brief-row:first-child{border-top:0}
.brief-row:hover{padding-left:6px}
.brief-row .br-main{min-width:0}
.brief-row .br-meta{display:flex;gap:10px;align-items:center;margin-bottom:9px;flex-wrap:wrap}
.brief-row h3,.brief-row h2{font-size:22px;letter-spacing:-.015em;line-height:1.15;text-wrap:balance}
/* a11y F-017: card title h3->h2, size unchanged */
.brief-row:hover h3,.brief-row:hover h2{color:var(--accent-ink)}
.brief-row .br-dek{font-size:14.5px;color:var(--muted);line-height:1.5;margin-top:8px;max-width:70ch}
.brief-row .br-read{font-family:var(--fs-mono);font-size:11px;color:var(--dim);white-space:nowrap}
.brief-row .br-arrow{width:42px;height:42px;border-radius:50%;border:1px solid var(--border2);display:grid;place-items:center;color:var(--muted);flex-shrink:0;transition:.16s var(--ease)}
.brief-row:hover .br-arrow{background:var(--grad-cta);color:var(--on-accent);border-color:transparent;transform:translateX(2px)}
.brief-date{font-family:var(--fs-mono);font-size:11px;color:var(--dim)}














/* reader */
.reader{max-width:720px;margin:0 auto;padding:0 32px}
.reader-head{padding:44px 0 26px;border-bottom:1px solid var(--border);margin-bottom:30px}
.reader-kicker{display:flex;gap:10px;align-items:center;flex-wrap:wrap;margin-bottom:16px}


.reader h1{font-size:40px;letter-spacing:-.025em;line-height:1.08;text-wrap:balance}
.reader .reader-dek{font-size:19px;color:var(--muted);line-height:1.5;margin-top:18px;font-family:var(--fs-display);font-weight:400}
.reader-byline{display:flex;gap:14px;align-items:center;flex-wrap:wrap;margin-top:22px;font-size:13px;color:var(--dim)}
.reader-byline .rb-dot{width:3px;height:3px;border-radius:50%;background:var(--faint)}


.reader-body ul.rb-list{list-style:none;margin:0 0 24px;padding:0;display:flex;flex-direction:column;gap:12px}
.reader-body ul.rb-list li{display:flex;gap:12px;font-size:16px;line-height:1.55;color:var(--ink2)}
.reader-body ul.rb-list li::before{content:"";width:7px;height:7px;border-radius:50%;background:var(--grad);flex-shrink:0;margin-top:9px}
.reader-quote{margin:30px 0;padding:4px 0 4px 24px;border-left:3px solid var(--azure);font-family:var(--fs-display);font-size:23px;font-weight:500;line-height:1.4;letter-spacing:-.015em;color:var(--ink);text-wrap:pretty}
.reader-fig{margin:30px 0}
.reader-fig .rf-card{background:var(--surface);border:1px solid var(--border);border-radius:var(--r-md);padding:20px;box-shadow:var(--shadow-sm)}
.reader-fig figcaption{font-family:var(--fs-mono);font-size:11.5px;color:var(--dim);margin-top:12px;line-height:1.4;text-align:center}
/* The methodology/caveat note under a read. Shared: pages/briefs.shared.jsx and report-lighting.jsx render
   it as well as the releases page. An earlier agent-os/tools/split_page_css.py run moved it into
   pages/releases.css; restored 2026-08-02 to its original position (git f2524c9c^), between the figure
   rules and the reader footer. */
.reader-note{margin:32px 0 0;padding:16px 18px;background:var(--surface2);border:1px solid var(--border);border-radius:var(--r-md);font-size:13px;color:var(--muted);line-height:1.55;display:flex;gap:11px}
.reader-note svg{color:var(--accent-ink);flex-shrink:0;margin-top:1px}
.reader-foot{max-width:720px;margin:40px auto 0;padding:30px 32px 0;border-top:1px solid var(--border)}

.rel-kind{font-family:var(--fs-mono);font-size:9px;letter-spacing:.08em;text-transform:uppercase;border-radius:5px;padding:3px 7px;white-space:nowrap;align-self:start}
.rel-kind.data{background:var(--posbg);color:var(--pos)}
.rel-kind.method{background:var(--grad-soft);color:var(--accent-ink)}
.rel-kind.note{background:var(--chip);color:var(--muted)}
.restate-list{display:flex;flex-direction:column;gap:14px}

.restate-card{border:1px solid var(--border);border-radius:var(--r-md);background:var(--surface);padding:20px 22px;border-left:3px solid var(--pos)}
.restate-card.logged{border-left-color:var(--border);background:var(--surface2)}
.restate-top{display:flex;justify-content:space-between;align-items:flex-start;gap:18px;flex-wrap:wrap}
.restate-kicker{font-family:var(--fs-mono);font-size:10px;letter-spacing:.1em;text-transform:uppercase;color:var(--accent-ink)}
.restate-idblock h3{font-size:18px;letter-spacing:-.01em;margin:5px 0 0;line-height:1.2}
.restate-meta{font-size:11.5px;color:var(--dim);display:block;margin-top:6px}
.restate-r{display:flex;flex-direction:column;align-items:flex-end;gap:9px;flex-shrink:0}
.restate-delta{display:inline-flex;align-items:center;gap:7px;font-size:15px;font-weight:600;font-feature-settings:"tnum" 1}
.restate-delta svg{color:var(--dim)}







.restate-delta .pv{color:var(--dim);text-decoration:line-through;text-decoration-color:var(--border)}
.restate-delta .rv{color:var(--ink)}
.restate-mag{font-size:12.5px;font-weight:600;color:var(--muted)}
.restate-note{font-size:14.5px;color:var(--ink2);line-height:1.62;margin:14px 0 0;max-width:80ch;text-wrap:pretty}


.legal-toc a.on{color:var(--ink);background:var(--grad-soft);border-left-color:var(--azure);font-weight:600}
.principle{display:flex;gap:16px;background:var(--surface);border:1px solid var(--border);border-radius:var(--r-md);padding:22px}
.principle .pr-ic{width:42px;height:42px;border-radius:12px;background:var(--grad-soft);color:var(--accent-ink);display:grid;place-items:center;flex-shrink:0}
.principle h4,.principle h3{font-size:17px;margin-bottom:6px}/* a11y F-017: h4->h3, size unchanged */
.principle p{font-size:13.5px;color:var(--muted);line-height:1.55}
.channel{display:flex;gap:15px;align-items:flex-start;padding:18px;border:1px solid var(--border);border-radius:var(--r-md);background:var(--surface)}
.channel .ch-ic{width:40px;height:40px;border-radius:11px;background:var(--grad-soft);color:var(--accent-ink);display:grid;place-items:center;flex-shrink:0}
.channel h4,.channel h2{font-size:16px;margin-bottom:4px}/* a11y F-017: channel title h4->h2 (top content heading under page h1); size unchanged */
.channel p{font-size:13px;color:var(--muted);line-height:1.5;margin-bottom:8px}
.channel .ch-line{font-family:var(--fs-mono);font-size:12.5px;color:var(--accent-ink)}

/* ================= STATES (G-12) ================= */
.empty-state,.err-state{display:flex;flex-direction:column;align-items:center;text-align:center;gap:12px;padding:48px 24px}
.empty-state .es-ic,.err-state .es-ic{width:54px;height:54px;border-radius:15px;display:grid;place-items:center}
.empty-state .es-ic{background:var(--grad-soft);color:var(--accent-ink)}
.err-state .es-ic{background:var(--negbg);color:var(--neg)}
.empty-state h4,.err-state h4,.err-state h3{font-size:19px}/* a11y F-017: err-state heading h4->h3, size unchanged */
.empty-state p,.err-state p{font-size:14px;color:var(--muted);max-width:46ch;line-height:1.55}
.empty-state .es-actions,.err-state .es-actions{display:flex;gap:10px;flex-wrap:wrap;justify-content:center;margin-top:6px}

/* loading skeletons — match final layout, no spinner */
@keyframes skel{0%{opacity:.55}50%{opacity:1}100%{opacity:.55}}
.skel{background:var(--chip);border-radius:var(--r-xs);animation:skel 1.4s var(--ease) infinite}
@media (prefers-reduced-motion: reduce){.skel{animation:none;opacity:.8}}
.skel-line{height:12px;margin:8px 0}
.skel-row{display:grid;grid-template-columns:auto 1fr auto;gap:14px;align-items:center;padding:12px 8px;border-bottom:1px solid var(--line)}
.skel-chip{width:30px;height:30px;border-radius:8px}
.skel-pill{width:56px;height:22px;border-radius:20px}
.skel-chart{height:240px;border-radius:var(--r-md)}
.skel-kpi{height:150px;border-radius:var(--r-md)}

/* ================= CHART DATA TABLE (G-13) ================= */
.chart-frame{display:flex;flex-direction:column;gap:10px}
.chart-frame .cf-toggle{display:flex;justify-content:flex-end}
.cf-tbtn{display:inline-flex;align-items:center;gap:7px;font-family:var(--fs-mono);font-size:10.5px;letter-spacing:.06em;text-transform:uppercase;color:var(--muted);background:transparent;border:1px solid var(--border2);border-radius:7px;padding:6px 11px;cursor:pointer;transition:.15s}
.cf-tbtn:hover{color:var(--ink);border-color:var(--azure)}
.cf-tbtn.on{color:var(--accent-ink);border-color:var(--azure);background:var(--grad-soft)}
.charttable-wrap{max-height:288px;overflow:auto;border:1px solid var(--border);border-radius:var(--r-md)}
.charttable{width:100%;border-collapse:collapse;font-size:13px}
.charttable caption{text-align:left;font-family:var(--fs-mono);font-size:10px;letter-spacing:.1em;text-transform:uppercase;color:var(--dim);padding:10px 14px;border-bottom:1px solid var(--border);background:var(--surface2);position:sticky;top:0}
.charttable th{font-family:var(--fs-mono);font-size:10px;letter-spacing:.08em;text-transform:uppercase;color:var(--dim);font-weight:500;text-align:right;padding:9px 14px;border-bottom:1px solid var(--border);background:var(--surface);position:sticky;top:33px}
.charttable th:first-child{text-align:left}
.charttable td{padding:8px 14px;border-bottom:1px solid var(--line);text-align:right;font-family:var(--fs-mono);font-variant-numeric:tabular-nums;color:var(--ink2)}
.charttable td:first-child{text-align:left;font-family:var(--fs-body);color:var(--ink);font-weight:500}
.charttable tr:last-child td{border-bottom:0}
.charttable tr.is-fc td{color:var(--muted)}
.charttable .ct-tag{font-family:var(--fs-mono);font-size:9px;letter-spacing:.06em;text-transform:uppercase;color:var(--dim);background:var(--chip);border-radius:5px;padding:2px 6px}

/* ================= FIRST-RUN ONBOARDING (G-08) ================= */
.onb{min-height:100vh;display:flex;flex-direction:column;background:var(--bg);position:relative;overflow:hidden}
.onb .hero-bg{opacity:.5}
.onb-top{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:22px 32px;position:relative;z-index:2}
.onb-skip{font-size:13.5px;color:var(--muted);font-weight:500;background:none;border:0;cursor:pointer;white-space:nowrap}
.onb-skip:hover{color:var(--ink)}
.onb-body{flex:1;display:flex;align-items:center;justify-content:center;padding:24px 32px 48px;position:relative;z-index:2}
.onb-card{width:100%;max-width:680px;background:var(--surface);border:1px solid var(--border);border-radius:var(--r-xl);box-shadow:var(--shadow-lg);padding:36px}
.onb-steps{display:flex;gap:8px;margin-bottom:26px}
.onb-steps .ost{flex:1;height:4px;border-radius:20px;background:var(--chip);overflow:hidden}
.onb-steps .ost span{display:block;height:100%;background:var(--grad);width:0;transition:width .4s var(--ease)}
.onb-steps .ost.done span,.onb-steps .ost.on span{width:100%}
.onb-step-k{font-family:var(--fs-mono);font-size:11px;letter-spacing:.14em;text-transform:uppercase;color:var(--accent-ink)}
.onb-card h2{font-size:28px;letter-spacing:-.02em;margin-top:12px}
.onb-card .onb-sub{font-size:15px;color:var(--muted);line-height:1.55;margin-top:10px;max-width:54ch}
.onb-choices{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin-top:24px}
.onb-choice{display:flex;flex-direction:column;align-items:flex-start;gap:6px;padding:16px;border:1px solid var(--border2);border-radius:var(--r-md);background:var(--surface2);cursor:pointer;text-align:left;transition:.15s var(--ease);position:relative}
.onb-choice:hover{border-color:var(--azure)}
.onb-choice.on{border-color:transparent;background:var(--grad-soft);box-shadow:0 0 0 2px var(--azure) inset}
.onb-choice .oc-check{position:absolute;top:12px;right:12px;color:var(--accent-ink);opacity:0;transition:.15s}
.onb-choice.on .oc-check{opacity:1}
.onb-choice .oc-name{font-size:15px;font-weight:600;color:var(--ink);line-height:1.25;padding-right:22px}
.onb-choice .oc-sub{font-size:12px;color:var(--muted);line-height:1.35}
.onb-choice.soon{border-style:dashed;cursor:pointer}
.onb-choice .oc-soon{font-family:var(--fs-mono);font-size:8.5px;letter-spacing:.08em;text-transform:uppercase;color:var(--muted);background:var(--chip);border-radius:5px;padding:2px 6px}
.onb-foot{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-top:30px}
.onb-foot .onb-count{font-size:13px;color:var(--muted)}
.onb-grid2{display:grid;grid-template-columns:repeat(2,1fr);gap:10px;margin-top:24px}
.onb-summary{display:flex;flex-direction:column;gap:12px;margin-top:24px}
.onb-sumrow{display:flex;align-items:center;gap:12px;padding:14px 16px;background:var(--surface2);border:1px solid var(--border);border-radius:var(--r-md)}
.onb-sumrow .osr-ic{width:34px;height:34px;border-radius:9px;background:var(--grad-soft);color:var(--accent-ink);display:grid;place-items:center;flex-shrink:0}
.onb-sumrow .osr-k{font-family:var(--fs-mono);font-size:10px;letter-spacing:.1em;text-transform:uppercase;color:var(--dim)}
.onb-sumrow .osr-v{font-size:14.5px;font-weight:600;color:var(--ink);margin-top:2px}
.search-res:hover,.search-res.active{background:var(--chip)}
.search-res.active .sr-ic{color:var(--accent-ink);border-color:var(--azure)}

/* make the portal top-bar search a real button */
button.psearch{cursor:pointer;font-family:inherit;transition:.15s}
button.psearch:hover{border-color:var(--azure);color:var(--ink)}
button.psearch .ps-k{margin-left:auto;font-family:var(--fs-mono);font-size:10px;border:1px solid var(--border2);border-radius:5px;padding:2px 6px;color:var(--dim)}

/* ================= SAVED / ALERT CREATION (G-10) ================= */
.create-form{display:flex;flex-direction:column;gap:18px}
.create-form .cf-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}
.qcard{display:flex;align-items:center;gap:12px;padding:14px 16px;border:1px solid var(--border);border-radius:var(--r-md);background:var(--surface2)}
.qcard .qc-ic{width:34px;height:34px;border-radius:9px;background:var(--grad-soft);color:var(--accent-ink);display:grid;place-items:center;flex-shrink:0}
.qcard .qc-k{font-family:var(--fs-mono);font-size:10px;letter-spacing:.1em;text-transform:uppercase;color:var(--dim)}
.qcard .qc-v{font-size:14px;font-weight:600;color:var(--ink);margin-top:2px}
.limit-note{display:flex;gap:11px;align-items:flex-start;padding:13px 15px;border-radius:var(--r-md);background:var(--grad-soft);border:1px solid color-mix(in srgb,var(--azure) 26%,var(--border));font-size:13px;color:var(--ink2);line-height:1.5}
.limit-note svg{color:var(--accent-ink);flex-shrink:0;margin-top:1px}
.list-toolbar{display:flex;align-items:center;justify-content:space-between;gap:14px;flex-wrap:wrap;margin-bottom:16px}
.list-toolbar .lt-count{font-size:13.5px;color:var(--muted)}
.row-actions{display:flex;gap:6px;justify-content:flex-end}
.icon-btn{width:30px;height:30px;border-radius:8px;border:1px solid var(--border2);background:var(--surface);color:var(--muted);cursor:pointer;display:grid;place-items:center;transition:.14s}
.icon-btn:hover{color:var(--ink);border-color:var(--azure)}
.icon-btn.danger:hover{color:var(--neg);border-color:var(--neg)}
.statedot{display:inline-flex;align-items:center;gap:6px;font-family:var(--fs-mono);font-size:11px;color:var(--muted)}
.statedot .sd2{width:7px;height:7px;border-radius:50%;background:var(--pos);box-shadow:0 0 0 3px var(--posbg)}
.statedot.paused .sd2{background:var(--dim);box-shadow:none}

/* ================= RESPONSIVE ================= */
@media (max-width:1080px){
  .source-grid,.chain,.protect-grid,.story-grid{grid-template-columns:1fr}
  .legal-grid{grid-template-columns:1fr;gap:24px}
  .legal-toc{position:static;flex-direction:row;flex-wrap:wrap;border-bottom:1px solid var(--border);padding-bottom:14px}
  .about-principles,.contact-grid,.reader-related{grid-template-columns:1fr}
  .onb-choices{grid-template-columns:1fr 1fr}
  /* .rel-item's collapse moved to pages/releases.css, where its base rule lives. It worked here only
     because index.html happens to load content.css AFTER pages/releases.css — the reverse of the
     landing/industry sheets, which load after content.css and whose identical arrangement was
     therefore dead. A collapse that depends on which half of the <link> list its page sheet landed
     in is a coin-flip, so it now sits with the selector it collapses. */
}
@media (max-width:820px){
  .subhero h1{font-size:34px;line-height:1.12}
  .reader h1{font-size:30px}
  .reader-body{font-size:16px}
  .fresh-table .fr-row{grid-template-columns:1fr;gap:6px}
  .fresh-table .fr-n{text-align:left}
  .ver-row{grid-template-columns:1fr;gap:6px}
  .create-form .cf-grid{grid-template-columns:1fr}
  .onb-choices,.onb-grid2{grid-template-columns:1fr}
  .onb-card{padding:24px}
}
