/* NuuHealth content library (/library, /peptides, /biomarkers). Loaded after styles.css.
   Inter only: display and body. Palette matches the homepage (#0A0A0A ground, sage #8FA68E). */

:root {
  --raised: #111311; --card: #161816; --line-2: rgba(245,245,240,.16);
  --ink: #F5F5F0; --ink-2: #D5D5CF; --mute: #8A8A85; --dim: #55574F;
  --sage: #8FA68E; --sage-glow: rgba(143,166,142,.10);
  --watch: #D4B37E; --low: #C77A6E;
  --max: 1240px;
}
body.lib { font-family: var(--font-head); font-size: 16px; line-height: 1.62; }
.lib h1, .lib h2, .lib h3, .lib h4 { font-family: var(--font-head); margin: 0; }
.lib h1 { font-weight: 600; letter-spacing: -.035em; }
.lib h2 { font-weight: 600; letter-spacing: -.025em; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.muted { color: var(--mute); }
.small { font-size: 14px; }
.lib code { font-size: .92em; background: var(--raised); border: 1px solid var(--line); border-radius: 6px; padding: 1px 6px; word-break: break-all; }

/* nav */
.lib-nav { position: sticky; top: 0; z-index: 10; background: rgba(10,10,10,.88); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.nav-in { display: flex; align-items: center; gap: 28px; height: 72px; }
.lockup { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.lockup .wordmark { font-size: 26px; letter-spacing: -.9px; }
.links { display: flex; gap: 28px; margin-left: auto; font-weight: 500; font-size: 14.5px; }
.links a { text-decoration: none; color: var(--ink-2); }
.links a.on { color: var(--ink); box-shadow: 0 1px 0 var(--sage); }
.btn { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 14.5px; text-decoration: none; border-radius: 999px; padding: 10px 18px; white-space: nowrap; transition: background .2s ease; }
.btn-sage { background: var(--sage); color: #0A0A0A; }
.btn-sage:hover { background: #A3B8A2; }
.btn-line { border: 1px solid var(--line-2); color: var(--ink); }
.menu { display: none; position: relative; margin-left: auto; }
.menu summary { list-style: none; width: 40px; height: 40px; border: 1px solid var(--line-2); border-radius: 10px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; cursor: pointer; }
.menu summary::-webkit-details-marker { display: none; }
.menu summary span { display: block; width: 16px; height: 1.5px; background: var(--ink); }
.menu nav { position: absolute; right: 0; top: 50px; min-width: 220px; background: #121412; border: 1px solid var(--line-2); border-radius: 14px; padding: 10px; display: grid; gap: 2px; }
.menu nav a { padding: 10px 12px; border-radius: 8px; text-decoration: none; font-weight: 500; }
.menu nav a.btn { justify-content: center; margin-top: 6px; }

/* shared hero bits */
.crumbs { font-size: 13px; color: var(--mute); padding: 28px 0 0; }
.crumbs a { text-decoration: none; color: var(--mute); }
.crumbs span { margin: 0 8px; color: var(--line-2); }
.kicker { font-weight: 600; font-size: 12.5px; letter-spacing: .09em; text-transform: uppercase; color: var(--sage); margin: 0 0 14px; }
.lede { font-size: 19px; line-height: 1.55; color: var(--ink-2); margin: 24px 0 0; max-width: 680px; }
.aka { margin: 16px 0 0; font-size: 13.5px; color: var(--mute); line-height: 1.7; }
.aka b { font-weight: 500; color: var(--ink-2); }
.seq { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .06em; color: var(--sage); font-size: 12.5px; }
.fullname { margin: 10px 0 0; font-size: 20px; color: var(--ink-2); letter-spacing: -.01em; }
.fullname.sm { font-size: 13.5px; margin: 2px 0 8px; color: var(--mute); }

.pd-hero { display: grid; grid-template-columns: minmax(0,1.55fr) minmax(0,1fr); gap: 56px; padding: 28px 0 48px; align-items: start; }
.pd-hero h1 { font-size: 84px; line-height: .98; }

.badges { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; }
.badge { display: inline-flex; align-items: center; gap: 7px; font-weight: 500; font-size: 12.5px; padding: 6px 11px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--ink-2); background: rgba(255,255,255,.015); text-decoration: none; white-space: nowrap; }
.badge i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; display: inline-block; }
.badge.sm { font-size: 11.5px; padding: 3px 9px; }
.badge.warn { color: var(--watch); border-color: rgba(212,179,126,.35); }
.badge.alert { color: var(--low); border-color: rgba(199,122,110,.38); }
.badge.sys { color: var(--sage); border-color: rgba(143,166,142,.32); background: var(--sage-glow); }
.badge.goal { color: var(--ink); }
.badge.depth { color: #B9BBB3; border-color: rgba(185,187,179,.3); }
.badge.depth.full { color: #0A0A0A; background: var(--sage); border-color: var(--sage); font-weight: 600; }

/* side card */
.profile { background: var(--raised); border: 1px solid var(--line); border-radius: 18px; padding: 24px 24px 20px; }
.profile h3 { font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--mute); }
.verdict { font-size: 28px; font-weight: 600; letter-spacing: -.02em; line-height: 1.15; margin: 12px 0 4px; }
.verdict-sub { font-size: 14px; color: var(--mute); margin: 0 0 18px; }
.takeaway { margin: 12px 0 0; font-size: 16px; line-height: 1.55; color: var(--ink-2); }
.bar { display: flex; height: 10px; border-radius: 999px; overflow: hidden; background: #1d201d; gap: 2px; }
.bar span { display: block; height: 100%; }
.legend { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 9px; }
.legend li { display: flex; align-items: center; gap: 10px; font-size: 13.5px; color: var(--ink-2); }
.legend li .n { margin-left: auto; color: var(--mute); font-variant-numeric: tabular-nums; }
.legend li.zero, .legend li.zero .n { color: var(--dim); }
.sw { width: 10px; height: 10px; border-radius: 3px; flex: none; }
.profile-foot { display: flex; justify-content: space-between; gap: 12px; margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--mute); }

/* evidence buckets: strong = sage, weaker = muted grey */
.t-rct { --c: #8FA68E; --cb: rgba(143,166,142,.14); }
.t-human { --c: #A9BBA8; --cb: rgba(169,187,168,.09); }
.t-mixed { --c: #9B9E95; --cb: rgba(155,158,149,.09); }
.t-animal { --c: #7B7E78; --cb: rgba(123,126,120,.10); }
.t-mechanism { --c: #64675F; --cb: rgba(95,98,93,.12); }
.sw.t-rct, .bar .t-rct { background: #8FA68E; } .sw.t-human, .bar .t-human { background: #A9BBA8; }
.sw.t-mixed, .bar .t-mixed { background: #9B9E95; } .sw.t-animal, .bar .t-animal { background: #6A6D67; }
.sw.t-mechanism, .bar .t-mechanism { background: #454843; }
.tier { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--c); background: var(--cb); border: 1px solid color-mix(in srgb, var(--c) 40%, transparent); padding: 4px 9px; border-radius: 6px; white-space: nowrap; }
.tier::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--c); }

/* at a glance */
.glance { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; margin: 0; }
.glance div { padding: 22px 24px; background: var(--bg); }
.glance.g1 { grid-template-columns: 1fr; } .glance.g2 { grid-template-columns: repeat(2, minmax(0,1fr)); } .glance.g3 { grid-template-columns: repeat(3, minmax(0,1fr)); }
/* grids draw lines with a 1px gap over a line-coloured background; the last cell spans to close its row */
.span-2 { grid-column: span 2; } .span-3 { grid-column: span 3; } .span-4 { grid-column: span 4; }
.glance.g1 .span-4, .glance.g2 [class^="span"], .glance.g3 [class^="span"] { grid-column: auto; }
.glance dt { font-weight: 600; font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--sage); margin-bottom: 8px; }
.glance dd { margin: 0; font-size: 14.5px; line-height: 1.5; color: var(--ink-2); }

/* body */
.body { display: grid; grid-template-columns: 200px minmax(0,1fr); gap: 56px; padding-top: 64px; padding-bottom: 8px; }
.toc { position: sticky; top: 104px; align-self: start; font-size: 14px; }
.toc p { font-weight: 600; font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--mute); margin: 0 0 14px; }
.toc ol { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--line); }
.toc li a { display: block; padding: 7px 0 7px 16px; text-decoration: none; color: var(--mute); margin-left: -1px; border-left: 1px solid transparent; }
.toc li a:hover { color: var(--ink); border-left-color: var(--sage); }
.toc li span { color: var(--dim); margin-right: 10px; font-variant-numeric: tabular-nums; }
.sec { padding: 0 0 56px; margin: 0 0 56px; border-bottom: 1px solid var(--line); scroll-margin-top: 96px; }
.sec:last-of-type { border-bottom: 0; margin-bottom: 0; }
.sec-head { display: flex; align-items: baseline; gap: 14px; margin-bottom: 22px; }
.sec-num { font-size: 13px; color: var(--sage); font-variant-numeric: tabular-nums; }
.sec h2 { font-size: 40px; line-height: 1.08; }
.prose p { margin: 0 0 16px; color: var(--ink-2); max-width: 720px; }
.prose p:last-child { margin-bottom: 0; }
.prose.small p { font-size: 14.5px; }
.xref, .pmid { color: var(--sage); text-decoration: none; border-bottom: 1px solid rgba(143,166,142,.4); }
.sub { font-weight: 600; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--mute); margin: 36px 0 14px; }
.sub.tight { margin: 18px 0 6px; font-size: 11.5px; }
.cites { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 14px; }
.cites-label { font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; color: #5d6058; margin-right: 4px; }
.cite { font-size: 12px; color: var(--ink-2); text-decoration: none; border: 1px solid var(--line-2); border-radius: 6px; padding: 3px 8px; font-variant-numeric: tabular-nums; }
.expanding { margin: 8px 0 0; padding: 16px 18px; border: 1px dashed var(--line-2); border-radius: 12px; color: var(--mute); font-size: 14.5px; }
.updated { color: var(--mute); font-size: 13px; margin: 18px 0 0; }

.pk { display: grid; gap: 1px; background: var(--line); grid-template-columns: repeat(4, minmax(0,1fr)); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; margin: 28px 0 0; }
.pk div { background: var(--raised); padding: 18px 18px 20px; }
.pk dt, .kv dt { font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--mute); margin-bottom: 8px; }
.pk dd, .kv dd { margin: 0; font-size: 14px; line-height: 1.5; color: var(--ink-2); }
.kv { display: grid; gap: 1px; background: var(--line); grid-template-columns: repeat(2, minmax(0,1fr)); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; margin: 0; }
.kv div { background: var(--raised); padding: 18px; }
.kv > div:last-child:nth-child(odd), .mech > div:last-child:nth-child(odd) { grid-column: 1 / -1; }

/* panels */
.use-grid, .safety, .views, .patterns { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 20px; }
.use-grid.one, .safety.one { grid-template-columns: minmax(0,1fr); }
.panel { background: var(--raised); border: 1px solid var(--line); border-radius: 18px; padding: 24px; min-width: 0; }
.panel.full { grid-column: 1 / -1; }
.panel h3 { font-size: 17px; font-weight: 600; }
.panel p { color: var(--ink-2); font-size: 14.5px; margin: 10px 0 0; }
.panel-h { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 4px; }
.panel-note { font-size: 13.5px !important; color: var(--mute) !important; margin: 4px 0 16px !important; line-height: 1.5; }
.count { color: var(--mute); font-size: 13px; font-variant-numeric: tabular-nums; }
.stat-row { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 1px; background: var(--line); border-radius: 12px; overflow: hidden; margin: 0 0 8px; }
.stat-row div { background: var(--card); padding: 14px 16px; }
.stat-row dt { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--mute); margin-bottom: 6px; }
.stat-row dd { margin: 0; font-weight: 600; font-size: 19px; letter-spacing: -.01em; }
.stat-row dd.long { font-size: 15px; font-weight: 500; line-height: 1.35; }
.stat-row dd small { display: block; font-weight: 400; font-size: 12.5px; color: var(--mute); letter-spacing: 0; margin-top: 2px; }
.rows { list-style: none; margin: 0; padding: 0; }
.rows li { display: grid; grid-template-columns: auto minmax(0,1fr) auto; gap: 12px; align-items: start; padding: 13px 0; border-top: 1px solid var(--line); font-size: 14px; }
.rows.plain li { grid-template-columns: minmax(0,1fr); }
.rows .what { color: var(--ink-2); line-height: 1.45; }
.rows .popline { display: block; color: var(--mute); font-size: 13px; margin-top: 3px; }
.use-sum { margin: 8px 0 0; color: var(--ink-2); font-size: 14.5px; max-width: 760px; }
.rows .what b { display: block; font-weight: 600; color: var(--ink); font-size: 14px; margin-bottom: 2px; }
.pop { font-size: 10.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; padding: 3px 7px; border-radius: 5px; margin-top: 2px; }
.pop.human { color: var(--sage); background: var(--sage-glow); }
.pop.animal, .pop.lab { color: #8d8f88; background: rgba(141,143,136,.10); }
.warnline { display: flex; gap: 12px; align-items: flex-start; margin-top: 20px; padding: 14px 16px; border-radius: 12px; background: rgba(212,179,126,.06); border: 1px solid rgba(212,179,126,.22); color: #E2CDA6; font-size: 14px; line-height: 1.5; }
.warnline svg { flex: none; margin-top: 2px; }
.list { margin: 0; padding: 0; list-style: none; }
.list li { padding: 11px 0; border-top: 1px solid var(--line); font-size: 14.5px; color: var(--ink-2); line-height: 1.5; }
.list li:first-child { border-top: 0; padding-top: 4px; }
.callout { margin: 20px 0; padding: 18px 20px; border-radius: 14px; background: var(--sage-glow); border: 1px solid rgba(143,166,142,.25); }
.callout .kicker { margin-bottom: 6px; }
.callout p { margin: 0; color: var(--ink-2); }
.next { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 14px; color: var(--ink-2); }
.next b { color: var(--sage); font-weight: 600; margin-right: 6px; }
.chip { font-size: 11px; font-weight: 500; color: var(--mute); border: 1px solid var(--line-2); border-radius: 999px; padding: 2px 8px; white-space: nowrap; }

/* stacks */
.stack { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1.3fr); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; margin-bottom: 16px; }
.stack.solo { grid-template-columns: 1fr; }
.stack-l { padding: 26px; background: var(--raised); border-right: 1px solid var(--line); }
.stack-l .kicker { margin: 0; }
.pair { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: 28px; font-weight: 600; letter-spacing: -.02em; line-height: 1.1; margin: 12px 0 14px; }
.pair .plus { font-size: 20px; color: var(--sage); font-weight: 400; }
.pair a { text-decoration: none; border-bottom: 1px solid rgba(143,166,142,.45); }
.stack-l p { margin: 0; font-size: 14px; color: var(--mute); }
.stack-r { padding: 26px; }
.stack-r h4 { font-weight: 600; font-size: 20px; letter-spacing: -.01em; line-height: 1.3; margin: 12px 0 10px; }
.stack-r p { margin: 0; color: var(--ink-2); font-size: 15px; }
.stack-r p.muted { color: var(--mute); margin-top: 12px; }

/* evidence */
.tier-legend { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 22px; }
.uses { border-top: 1px solid var(--line); }
.use { display: grid; grid-template-columns: minmax(0,1fr) 190px; gap: 24px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.use:last-child { border-bottom: 0; }
.use h3 { font-size: 17px; font-weight: 600; line-height: 1.35; }
.use .tierwrap { text-align: right; }
.study { margin-top: 14px; padding: 14px 16px; border-radius: 12px; background: var(--raised); border: 1px solid var(--line); }
.study-top { display: flex; justify-content: space-between; gap: 16px; align-items: baseline; margin-bottom: 6px; }
.study-top b { font-weight: 600; font-size: 13.5px; color: var(--ink); }
.study-top a { font-size: 12.5px; color: var(--sage); text-decoration: none; white-space: nowrap; }
.study p { margin: 0; font-size: 14px; line-height: 1.55; color: var(--mute); }

/* timeline */
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { position: relative; padding: 0 0 18px 22px; font-size: 14.5px; color: var(--ink-2); line-height: 1.5; }
.timeline li::before { content: ""; position: absolute; left: 3px; top: 8px; width: 7px; height: 7px; border-radius: 50%; background: var(--sage); }
.timeline li::after { content: ""; position: absolute; left: 6px; top: 20px; bottom: -2px; width: 1px; background: var(--line-2); }
.timeline li:last-child { padding-bottom: 0; }
.timeline li:last-child::after { display: none; }
.timeline time { display: block; font-weight: 600; font-size: 12.5px; color: var(--ink); margin-bottom: 2px; }

/* faq */
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 18px 36px 18px 0; font-weight: 600; font-size: 16px; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 14px; font-size: 22px; font-weight: 300; color: var(--sage); }
.faq details[open] summary::after { content: "–"; }
.faq .prose { padding: 0 0 20px; }

/* sources */
.srcs { list-style: none; margin: 0; padding: 0; counter-reset: s; columns: 2; column-gap: 40px; }
.srcs li { break-inside: avoid; counter-increment: s; display: grid; grid-template-columns: 30px minmax(0,1fr); gap: 4px; padding: 12px 0; border-top: 1px solid var(--line); font-size: 13.5px; line-height: 1.5; color: var(--ink-2); scroll-margin-top: 96px; }
.srcs li::before { content: counter(s); font-size: 12px; color: var(--mute); font-variant-numeric: tabular-nums; padding-top: 2px; }
.srcs li:target { background: var(--sage-glow); }
.srcs .meta { display: flex; gap: 8px; align-items: center; margin-top: 6px; flex-wrap: wrap; }
.kind { font-weight: 600; font-size: 10.5px; letter-spacing: .07em; text-transform: uppercase; padding: 2px 7px; border-radius: 5px; }
.k-pubmed { color: var(--sage); background: var(--sage-glow); }
.k-trial { color: #A9BBA8; background: rgba(169,187,168,.08); }
.k-reg { color: var(--watch); background: rgba(212,179,126,.08); }
.k-press { color: #8d8f88; background: rgba(141,143,136,.10); }
.srcs a { color: var(--mute); text-decoration: none; font-size: 12px; word-break: break-all; }

/* biomarker specifics */
.mech { display: grid; gap: 1px; background: var(--line); grid-template-columns: repeat(2, minmax(0,1fr)); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.mech-item { background: var(--bg); padding: 22px; }
.mech-item h3 { font-size: 15px; font-weight: 600; margin-bottom: 8px; color: var(--sage); }
.ranges { border: 1px solid var(--line); border-radius: 14px; margin: 12px 0; background: var(--raised); }
.ranges summary { cursor: pointer; list-style: none; padding: 16px 18px; display: flex; justify-content: space-between; gap: 16px; font-weight: 600; }
.ranges summary::-webkit-details-marker { display: none; }
.ranges summary .muted { font-weight: 400; font-size: 13.5px; }
.ranges[open] summary { border-bottom: 1px solid var(--line); }
.ranges > p { padding: 0 18px; }
.table-wrap { overflow-x: auto; }
.lib table { width: 100%; border-collapse: collapse; font-size: 14px; }
.lib th { text-align: left; font-weight: 600; font-size: 11.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--mute); padding: 10px 18px; border-bottom: 1px solid var(--line); }
.lib td { padding: 9px 18px; border-bottom: 1px solid var(--line); color: var(--ink-2); vertical-align: top; }
.lib td a { color: var(--sage); text-decoration: none; }
.lib .num { font-variant-numeric: tabular-nums; white-space: nowrap; }
.factors { list-style: none; margin: 0; padding: 0; }
.factors li { padding: 14px 0; border-top: 1px solid var(--line); }
.factors li:first-child { border-top: 0; padding-top: 6px; }
.f-h { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.f-h b { font-weight: 600; font-size: 15px; }
.factors p { margin: 6px 0 0; font-size: 14px; }
.pi { border-top: 1px solid var(--line); }
.pi-row { display: grid; grid-template-columns: 220px minmax(0,1fr) 150px; gap: 20px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.pi-name a { font-weight: 600; text-decoration: none; border-bottom: 1px solid rgba(143,166,142,.45); }
.dir { display: block; margin-top: 6px; font-size: 12.5px; font-weight: 600; }
.dir.raises { color: var(--sage); } .dir.lowers { color: var(--watch); } .dir.no_clear_effect { color: var(--mute); }
.pi-body b { font-weight: 600; font-size: 14.5px; }
.pi-body p { margin: 6px 0 0; color: var(--mute); font-size: 14px; }
.pi-ev { text-align: right; }
.range { font-weight: 600; font-size: 18px !important; color: var(--ink) !important; }
.group { margin-bottom: 32px; }
.group h3 { font-size: 22px; font-weight: 600; letter-spacing: -.01em; }
.group > p { margin: 8px 0 16px; max-width: 720px; }
.analytes { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px; }
.analyte { background: var(--raised); border: 1px solid var(--line); border-radius: 14px; padding: 18px; }
.an-h { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; }
.an-h a { font-weight: 600; color: var(--sage); text-decoration: none; }
.unit { font-size: 12.5px; color: var(--mute); }
.analyte p { margin: 8px 0 0; font-size: 14px; color: var(--ink-2); }
.analyte dl { margin: 10px 0 0; display: grid; gap: 6px; }
.analyte dt { display: inline; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--mute); margin-right: 6px; }
.analyte dd { display: inline; margin: 0; font-size: 13.5px; color: var(--ink-2); }

/* index pages */
.ix-hero, .lib-hero { padding: 28px 0 32px; }
.ix-hero h1, .lib-hero h1, .nf h1 { font-size: 72px; line-height: 1; }
.lib-hero { padding-top: 64px; }
.lib-hero h1 { max-width: 900px; }
.toolbar { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; padding: 18px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-bottom: 40px; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filter { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line-2); text-decoration: none; font-weight: 500; font-size: 14px; color: var(--ink-2); }
.filter span { color: var(--mute); font-size: 12.5px; font-variant-numeric: tabular-nums; }
.filter.on { background: var(--sage); border-color: var(--sage); color: #0A0A0A; }
.filter.on span { color: rgba(10,10,10,.65); }
.search input { width: 280px; max-width: 100%; background: var(--raised); border: 1px solid var(--line-2); border-radius: 999px; padding: 10px 16px; color: var(--ink); font: inherit; font-size: 14.5px; }
.search input:focus { outline: 2px solid var(--sage); outline-offset: 1px; }
.block { margin-bottom: 56px; scroll-margin-top: 96px; }
.block-h { display: flex; justify-content: space-between; align-items: baseline; gap: 20px; flex-wrap: wrap; margin-bottom: 18px; }
.block-h h2 { font-size: 30px; }
.block-h h2 .muted { font-weight: 400; font-size: 18px; margin-left: 6px; }
.block-h p { margin: 0; font-size: 14px; }
.cards { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 14px; }
.card { display: flex; flex-direction: column; background: var(--raised); border: 1px solid var(--line); border-radius: 16px; padding: 20px; text-decoration: none; transition: border-color .2s ease, background .2s ease; min-width: 0; }
.card:hover { border-color: rgba(143,166,142,.45); background: #141714; }
.card[hidden] { display: none; }
.card-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.card h3 { font-size: 18px; font-weight: 600; letter-spacing: -.01em; line-height: 1.25; overflow-wrap: anywhere; }
.card > p { margin: 8px 0 14px; font-size: 14px; line-height: 1.5; color: var(--mute); flex: 1; }
.card-foot { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.empty { color: var(--mute); padding: 24px 0; }
.stats { display: flex; gap: 40px; margin-top: 36px; }
.stats div { display: flex; flex-direction: column; }
.stats b { font-size: 40px; font-weight: 600; letter-spacing: -.03em; line-height: 1; }
.stats span { color: var(--mute); font-size: 14px; margin-top: 6px; }
.goals { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 14px; margin: 24px 0 56px; }
.goal-tile { display: flex; flex-direction: column; gap: 6px; padding: 22px; border-radius: 16px; border: 1px solid var(--line); background: linear-gradient(160deg, rgba(143,166,142,.10), rgba(143,166,142,0) 60%), var(--raised); text-decoration: none; }
.goal-tile b { font-size: 20px; font-weight: 600; letter-spacing: -.01em; }
.goal-tile span { color: var(--mute); font-size: 13.5px; }
.goal-tile:hover { border-color: rgba(143,166,142,.45); }
.two-col { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 20px; margin-bottom: 24px; }
.col { background: var(--raised); border: 1px solid var(--line); border-radius: 20px; padding: 28px; }
.col-h h2 { font-size: 28px; }
.col-h p.muted { margin: 8px 0 18px; font-size: 14.5px; }
.preview { list-style: none; margin: 0; padding: 0; }
.preview li a { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 13px 0; border-top: 1px solid var(--line); text-decoration: none; }
.li-name { font-weight: 600; }
.preview .muted { font-size: 13.5px; text-align: right; }
.more { display: inline-block; margin-top: 18px; color: var(--sage); font-weight: 600; text-decoration: none; }
.nf { padding: 96px 0 80px; }
.nf-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 32px; }

/* cta + footer */
.cta { margin: 56px 0 0; border: 1px solid rgba(143,166,142,.28); background: radial-gradient(120% 140% at 0% 0%, rgba(143,166,142,.16), rgba(143,166,142,.03) 55%, transparent); border-radius: 22px; padding: 40px; display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.cta h2 { font-size: 32px; line-height: 1.1; }
.cta p { margin: 10px 0 0; color: var(--ink-2); max-width: 560px; }
.lib-foot { margin-top: 56px; padding-bottom: 40px; }
.lib-foot .foot-in { border-top: 1px solid var(--line); padding-top: 26px; display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; font-size: 13px; color: var(--mute); }
.lib-foot strong { color: var(--ink-2); font-weight: 500; }
.lib-foot nav { display: flex; gap: 20px; flex-wrap: wrap; }
.lib-foot nav a { color: var(--mute); text-decoration: none; }

/* tablet */
@media (max-width: 1080px) {
  .cards { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .goals { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .pi-row { grid-template-columns: 180px minmax(0,1fr); }
  .pi-ev { grid-column: 2; text-align: left; }
}

/* mobile */
@media (max-width: 860px) {
  .links, .nav-join { display: none; }
  .menu { display: block; }
  .nav-in { height: 64px; }
  .lockup .wordmark { font-size: 23px; }
  .pd-hero { grid-template-columns: 1fr; gap: 28px; padding-top: 18px; }
  .pd-hero h1 { font-size: 56px; }
  .ix-hero h1, .lib-hero h1, .nf h1 { font-size: 46px; }
  .lib-hero { padding-top: 36px; }
  .lede { font-size: 17px; }
  .glance, .glance.g3 { grid-template-columns: 1fr 1fr; }
  .glance div { padding: 16px; }
  .glance [class^="span"], .pk [class^="span"] { grid-column: auto; }
  .glance > div:last-child:nth-child(odd), .pk > div:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .body { grid-template-columns: 1fr; gap: 0; padding-top: 44px; }
  .toc { display: none; }
  .sec { padding-bottom: 40px; margin-bottom: 40px; }
  .sec h2 { font-size: 30px; }
  .pk, .kv, .mech { grid-template-columns: 1fr 1fr; }
  .use-grid, .safety, .stack, .views, .patterns, .analytes, .two-col { grid-template-columns: 1fr; }
  .stack-l { border-right: 0; border-bottom: 1px solid var(--line); }
  .use { grid-template-columns: 1fr; gap: 10px; }
  .use .tierwrap { text-align: left; order: -1; }
  .rows li { grid-template-columns: auto minmax(0,1fr); row-gap: 8px; }
  .rows li > .cite { grid-column: 2; justify-self: start; }
  .srcs { columns: 1; }
  .cards { grid-template-columns: 1fr; }
  .stats { gap: 28px; }
  .stats b { font-size: 32px; }
  .toolbar { flex-direction: column; align-items: stretch; }
  .search input { width: 100%; }
  .pi-row { grid-template-columns: 1fr; gap: 8px; }
  .pi-ev { grid-column: auto; }
  .cta { flex-direction: column; align-items: flex-start; padding: 28px; }
  .cta h2 { font-size: 26px; }
  .lib-foot .foot-in { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 420px) {
  .pk, .kv, .mech { grid-template-columns: 1fr; }
  .goals { grid-template-columns: 1fr 1fr; }
}

/* /library pillar grid (2026-11-12 pivot): 4 / 2 / 1 columns */
.pillars { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 16px; margin: 16px 0 0; }
.pillar { display: flex; flex-direction: column; gap: 12px; padding: 26px 24px 22px; min-height: 280px; border-radius: 18px; border: 1px solid var(--line); background: var(--raised); text-decoration: none; transition: border-color .2s ease; }
.pillar:hover { border-color: rgba(143,166,142,.45); }
.pillar.is-live { background: linear-gradient(160deg, rgba(143,166,142,.13), rgba(143,166,142,0) 60%), var(--raised); border-color: rgba(143,166,142,.30); }
.pillar h2 { font-size: 23px; line-height: 1.15; }
.pillar p { margin: 0; flex: 1; font-size: 14.5px; line-height: 1.55; color: var(--ink-2); }
.pillar-status { align-self: flex-start; display: inline-flex; align-items: center; gap: 7px; font-weight: 600; font-size: 11.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--mute); border: 1px solid var(--line-2); border-radius: 999px; padding: 5px 10px; }
.pillar-status.live { color: var(--sage); border-color: rgba(143,166,142,.40); background: var(--sage-glow); }
.pillar-status i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.pillar-more { font-weight: 600; font-size: 14px; color: var(--mute); }
.pillar.is-live .pillar-more { color: var(--sage); }
@media (max-width: 1080px) { .pillars { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 640px) { .pillars { grid-template-columns: 1fr; } .pillar { min-height: 0; } }
