/* THE design tokens for the Liquid Biopsy Index. ONE definition.

   build_site.py reads this at build time and injects it into every CSS payload it emits, so a
   colour or a spacing step is changed HERE and nowhere else.

   ⚠️ WHY THIS EXISTS. There were FIVE separate :root blocks: two in build_site.py, one shared by
   the dossier templates, and one in each standalone dashboard. Of 42 tokens only two disagreed
   (--card written #fff vs #ffffff, the same colour; --shadow at .04 vs .05 alpha on a hairline).
   They agreed by hand-maintenance, not by construction. That is luck, and it is the friction that
   makes a redesign expensive: changing the accent meant finding five blocks and hoping.

   ⚠️ Do NOT define :root anywhere else. check_tokens.py fails the build if you do.

   ⚠️ The four files in dashboard/ are standalone published artifacts and cannot LINK a stylesheet,
   so their builders INJECT this instead. One source, two delivery mechanisms.

   ⚠️ --s1..--s8 are the CHART SERIES and are semantic: readers assume a colour means the same
   thing across pages. Do not reuse a series colour as UI chrome. --accent is #2a78d6 and --s1 is
   deliberately the same value; that is the one intentional overlap. */
:root{
  /* surfaces and ink */
  --plane:#e9edf2;
  --surface:#fcfcfb;
  --card:#ffffff;
  --ink:#0e1116;
  --secondary:#565e6b;
  --muted:#8a909c;
  --hairline:rgba(14,17,22,.10);
  /* accent */
  --accent:#2a78d6;
  --accent-soft:rgba(42,120,214,.12);
  --partner:#4a3aa7;
  --partner-soft:rgba(74,58,167,.12);
  --gold:#b06a00;
  --warn:#b06a00;
  --warn-bg:rgba(237,161,0,.12);
  /* chart furniture */
  --grid:#e4e7ec;
  --axis:#c7ccd3;
  --track:rgba(14,17,22,.05);
  /* chart series */
  --s1:#2a78d6;
  --s2:#1baf7a;
  --s3:#eda100;
  --s4:#008300;
  --s5:#4a3aa7;
  --s6:#e34948;
  --s7:#e87ba4;
  --s8:#eb6834;
  /* type */
  --serif:"Literata","Iowan Old Style","Palatino Linotype",Palatino,Georgia,serif;
  --sans:system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;
  --mono:ui-monospace,"SF Mono",Menlo,Consolas,monospace;
  /* spacing */
  --space-1:4px;
  --space-2:8px;
  --space-3:12px;
  --space-4:16px;
  --space-5:24px;
  --space-6:32px;
  --space-7:48px;
  --space-8:72px;
  /* radius and motion */
  --r-sm:8px;
  --r-md:12px;
  --r-lg:16px;
  --dur:.16s;
  --ease:cubic-bezier(.2,.6,.2,1);
  /* elevation */
  --shadow:0 1px 2px rgba(14,17,22,.05),0 6px 20px rgba(14,17,22,.05);
  --shadow-lift:0 2px 6px rgba(14,17,22,.06),0 16px 40px rgba(14,17,22,.13);
}
@font-face{font-family:"Literata";font-style:normal;font-weight:400 700;font-display:swap;
src:url(/assets/fonts/literata-latin.c614760279.woff2) format("woff2");
unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;}
/* Design tokens live in styles/tokens.css and are INJECTED here by with_tokens() at
   build time. Do not put a :root block back in this file: check_tokens.py fails the
   build, and a second definition is the whole defect this replaced. */
*{box-sizing:border-box}html{scroll-behavior:smooth}
body{margin:0;background:var(--plane);color:var(--ink);font-family:var(--sans);line-height:1.5;-webkit-font-smoothing:antialiased}
a{color:var(--accent);text-decoration:none;transition:color var(--dur) var(--ease)}a:hover{text-decoration:underline}
:focus-visible{outline:2px solid var(--accent);outline-offset:2px;border-radius:var(--r-sm)}
.topbar{position:sticky;top:0;z-index:20;display:flex;align-items:center;gap:20px;padding:12px clamp(16px,4vw,40px);
background:color-mix(in srgb,var(--plane) 88%,transparent);backdrop-filter:blur(8px);border-bottom:1px solid var(--hairline)}
/* On a phone the wrapped nav is 2-3 rows tall, and pinned it ate a big slice of the screen on
   every scroll (Nate, from a real phone, 2026-08-21). Unpinned at the same breakpoint where the
   learn layout collapses; the Explore filter rail already follows this exact pattern at 820px. */
@media(max-width:760px){.topbar{position:static}}
.brand{font-family:var(--serif);font-weight:600;font-size:18px;color:var(--ink)}
.nav{display:flex;gap:6px;margin-left:auto;flex-wrap:wrap}
.nav a{padding:6px 12px;border-radius:8px;font-size:14px;color:var(--secondary);font-weight:500}
.nav a:hover{background:var(--accent-soft);text-decoration:none}
.nav a.cur{color:var(--accent);background:var(--accent-soft)}
main{max-width:1080px;margin:0 auto;padding:clamp(24px,4vw,52px) clamp(16px,3vw,40px) 72px}
main.bare{max-width:none;margin:0;padding:0}
.eyebrow{font-size:12px;letter-spacing:.14em;text-transform:uppercase;color:var(--muted);font-weight:600;margin:0 0 14px}
h1{font-family:var(--serif);font-weight:600;font-size:clamp(30px,5vw,50px);line-height:1.04;margin:0 0 14px;text-wrap:balance;letter-spacing:-.01em}
.hero{padding:var(--space-6) 0 var(--space-2)}.lede{color:var(--secondary);font-size:clamp(15px,1.7vw,18px);max-width:62ch;margin:0 0 var(--space-5)}
.cta-row{display:flex;gap:var(--space-3);flex-wrap:wrap}
.cta{display:inline-block;background:var(--accent);color:#fff;padding:11px 20px;border-radius:var(--r-sm);font-weight:600;font-size:15px;box-shadow:var(--shadow);
transition:transform var(--dur) var(--ease),box-shadow var(--dur) var(--ease),filter var(--dur) var(--ease),background var(--dur) var(--ease)}
.cta:hover{text-decoration:none;filter:brightness(1.06);transform:translateY(-1px);box-shadow:var(--shadow-lift)}
.cta:active{transform:translateY(0)}
.cta.ghost{background:transparent;color:var(--accent);border:1px solid var(--accent);box-shadow:none}
.cta.ghost:hover{background:var(--accent-soft);filter:none}
/* EL18: the Home fork. AFTER the index cards, because Home has only two seams and "partway down,
   not at the top" rules out the one under the hero. Not a card and not a hero CTA: a card would
   claim it is part of the index, and a CTA would compete with the two the hero already has.
   ⚠️ It can sit this low because EL17 puts Learn in the nav on EVERY page, so the fork is a second
   way in rather than the only one. EL2: a link, not a setting -- no cookie, no stored preference,
   no second version of the site. EL3: no modal, nothing to dismiss. EL8: it points at /learn/ and
   never at Explore. */
.fork{display:flex;align-items:baseline;justify-content:space-between;gap:var(--space-5);
  flex-wrap:wrap;margin:var(--space-7) 0 0;padding:var(--space-5) 0 0;
  border-top:1px solid var(--hairline)}
/* Sized UP from 15px (Nate, 2026-08-24): a newcomer must notice the way into /learn/.
   Same size on the link so the two halves of the fork read as one invitation. */
.fork p{margin:0;color:var(--secondary);font-size:clamp(16px,1.8vw,19px);max-width:62ch;line-height:1.55}
.fork strong{color:var(--ink);font-weight:600}
.fork a{font-weight:600;white-space:nowrap;font-size:clamp(16px,1.8vw,19px)}
/* section rhythm + a small label to introduce a block (visual hierarchy) */
.sectlabel{font-size:12px;letter-spacing:.14em;text-transform:uppercase;color:var(--muted);font-weight:600;margin:var(--space-7) 0 var(--space-4)}
.tiles{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:var(--space-4);margin:var(--space-7) 0 0}
.tile{background:var(--card);border:1px solid var(--hairline);border-radius:var(--r-md);padding:var(--space-5);box-shadow:var(--shadow);border-top:3px solid var(--accent-soft)}
.tn{font-family:var(--serif);font-size:clamp(28px,3vw,34px);font-weight:600;line-height:1;letter-spacing:-.01em}
.tl{font-size:12.5px;color:var(--muted);margin-top:var(--space-2)}
.cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:var(--space-4);margin-top:var(--space-4)}
/* Home nav cards only -- scoped under .cards so the hover-lift + arrow affordance (these ARE links)
   never leak onto the dashboard chart boxes, which reuse the bare .card class on /field/ + /patents/. */
.cards .card{position:relative;background:var(--card);border:1px solid var(--hairline);border-radius:var(--r-md);padding:var(--space-5) var(--space-5) var(--space-6);box-shadow:var(--shadow);color:inherit;
transition:transform var(--dur) var(--ease),box-shadow var(--dur) var(--ease),border-color var(--dur) var(--ease)}
.cards .card:hover{text-decoration:none;border-color:var(--accent);transform:translateY(-3px);box-shadow:var(--shadow-lift)}
.cards .card::after{content:"\2192";position:absolute;left:var(--space-5);bottom:var(--space-4);color:var(--accent);font-size:16px;font-weight:600;opacity:0;transform:translateX(-6px);transition:opacity var(--dur) var(--ease),transform var(--dur) var(--ease)}
.cards .card:hover::after{opacity:1;transform:translateX(0)}
.cards .card h3{font-family:var(--serif);margin:0 0 var(--space-2);font-size:19px}
.cards .card p{margin:0;color:var(--secondary);font-size:14px}
.pagehead{margin-bottom:20px}
.controls{display:flex;gap:10px;flex-wrap:wrap;margin-bottom:22px}
.controls input,.controls select{padding:9px 12px;border:1px solid var(--hairline);border-radius:9px;background:var(--card);color:var(--ink);font-size:14px;font-family:inherit}
.controls input{flex:1;min-width:200px}.controls input:focus,.controls select:focus{outline:2px solid var(--accent);outline-offset:1px}
.dirgrid{display:grid;grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:14px}
.co{display:block;background:var(--card);border:1px solid var(--hairline);border-radius:13px;padding:16px 18px;box-shadow:var(--shadow);color:inherit}
.co:hover{text-decoration:none;border-color:var(--accent)}
.co .cn{font-family:var(--serif);font-size:17px;font-weight:600;display:flex;justify-content:space-between;gap:8px;align-items:baseline}
.co .cnp{font-size:13px;color:var(--muted);font-variant-numeric:tabular-nums;font-family:var(--sans);
  white-space:nowrap;position:relative;cursor:help;border-bottom:1px dotted var(--axis)}
/* Hover card replacing a native title=. CSS-only: the directory is static markup, so this needs no
   JS and no CSP allowance. It carries the F27 point -- our patent counts are scoped, granted,
   family-deduped INVENTIONS, so they read far below a "total patents" web search. */
.co .cnp .cnptip{position:absolute;right:0;top:calc(100% + 7px);width:270px;white-space:normal;
  background:var(--card);border:1px solid var(--hairline);border-radius:9px;padding:9px 11px;
  box-shadow:var(--shadow);font-size:12px;line-height:1.5;color:var(--secondary);text-align:left;
  opacity:0;visibility:hidden;transition:opacity .1s;z-index:20;font-variant-numeric:normal}
.co .cnp:hover .cnptip,.co .cnp:focus-visible .cnptip{opacity:1;visibility:visible}
.co .cnp .cnptip b{color:var(--ink)}
.co .cd{font-size:12.5px;color:var(--secondary);margin:5px 0 9px;line-height:1.4}
.co .meta{display:flex;flex-wrap:wrap;gap:6px}
.chip{font-size:11px;padding:2px 8px;border-radius:6px;background:var(--accent-soft);color:var(--accent);font-weight:600}
.chip.g{background:rgba(138,144,156,.15);color:var(--secondary)}
.empty{color:var(--muted);text-align:center;padding:40px}
.prose{max-width:70ch}.prose h3{font-family:var(--serif);margin:26px 0 6px;font-size:19px}
.prose h2{font-family:var(--serif);font-size:25px;margin:46px 0 4px;padding-bottom:9px;border-bottom:1px solid var(--hairline)}
.prose h2:first-child{margin-top:8px}.prose h2+h3{margin-top:18px}
.prose p,.prose li{color:var(--secondary);font-size:15px}.prose code{background:var(--accent-soft);color:var(--accent);padding:1px 6px;border-radius:5px;font-size:13px}
.sitefoot{max-width:1080px;margin:0 auto;padding:26px clamp(16px,3vw,40px) 60px;border-top:1px solid var(--hairline);color:var(--muted);font-size:12.5px;line-height:1.8}
.search{position:relative}
.search input{width:150px;max-width:40vw;padding:7px 11px;border:1px solid var(--hairline);border-radius:8px;background:var(--card);color:var(--ink);font-family:inherit;font-size:13px}
.search input:focus{outline:2px solid var(--accent);outline-offset:1px}
.sresults{position:absolute;top:calc(100% + 6px);right:0;min-width:260px;max-width:80vw;background:var(--card);border:1px solid var(--hairline);border-radius:10px;box-shadow:var(--shadow);overflow:hidden;z-index:30}
.sresults .sr{display:flex;justify-content:space-between;align-items:baseline;gap:12px;padding:9px 13px;border-bottom:1px solid var(--hairline);color:var(--ink)}
.sresults .sr:last-child{border-bottom:0}
.sresults .sr:hover{background:var(--accent-soft);text-decoration:none}
.sresults .sr-t{font-size:14px;font-weight:500}
.sresults .sr-k{font-size:11px;color:var(--muted);white-space:nowrap;font-variant-numeric:tabular-nums}
.sresults .sr-empty{padding:12px 13px;color:var(--muted);font-size:13px}
@media(max-width:640px){.search input{width:110px}}
@media (prefers-reduced-motion:reduce){html{scroll-behavior:auto}*{transition:none!important}}
