/* Context graph app — tokens first. Light is warm paper and ink with soft regional tints; dark is deep ink and
   soft luminous synapses. Dark rules are written twice (system dark unless the visitor chose light; and an
   explicit dark choice). Small text meets 4.5:1 in both themes. */
:root {
  --bg: #f8f6f1; --bg-2: #fefcf7; --ink: #1c1c1c; --ink-2: #3d3b36; --muted: #625e57; --faint: #67635b;
  --line: rgba(28, 28, 28, .10); --line-2: rgba(28, 28, 28, .2);
  --panel: rgba(252, 250, 245, .9); --panel-solid: #fcfaf5; --shadow: 0 18px 50px -24px rgba(60, 50, 30, .35), 0 2px 8px -4px rgba(60, 50, 30, .12);
  --accent: #1a6b4a; --accent-ink: #f8f6f1; --accent-soft: rgba(26, 107, 74, .10); --warm: #8f6214; --warm-line: #b07a1c; --warm-soft: rgba(176, 122, 28, .13);
  --map-bg: #f6f3ec; --map-bg-2: #fdfbf6; --map-ink: #1c1c1c; --map-ink-2: #3f3d38; --map-muted: #625e57;
  --map-edge: #2b2a26; --map-node: #2b2a26; --map-accent: #1a6b4a; --map-accent-2: #1a6b4a; --map-signal: #1f7a54;
  --map-warm: #c0841f; --map-halo: #f8f6f1; --map-glow: #2f8a63;
  /* region tints: paper-friendly, multiplied onto the ground */
  --map-tint-0: #cfe3d4; --map-tint-1: #ecdcbf; --map-tint-2: #dad4ea; --map-tint-3: #f0d2c9; --map-tint-4: #cfdde6; --map-tint-5: #e3e2c4; --map-tint-6: #e5d0dc; --map-tint-7: #d3e4e0;
  /* the site's type (U4): one serif for headlines, answers and posts; IBM Plex Sans for the masthead and controls; IBM Plex
     Mono for citations (src/_includes/fonts.njk loads them; the system stacks show until they arrive) */
  --serif: "Newsreader", Georgia, "Times New Roman", serif;   /* the owner's A; Source Serif 4 is the one-token alternative */
  --sans: "IBM Plex Sans", -apple-system, BlinkMacSystemFont, "Helvetica Neue", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --text-cite: clamp(0.75rem, 0.72rem + 0.1vw, 0.8rem);   /* mono never below 12px */
  --text-ui: clamp(0.8rem, 0.76rem + 0.15vw, 0.875rem); --text-sm: clamp(0.85rem, 0.6rem + 0.6vw, 1.1rem);
  --gap-1: 0.375rem; --gap-2: 0.625rem; --gap-3: 0.875rem; --gap-4: 1.25rem;
  --map-glow-strength: 1;
  --text-xs: clamp(0.7rem, 0.5rem + 0.5vw, 0.9rem); --text-lg: clamp(1.15rem, 0.8rem + 1vw, 1.7rem); --text-xl: clamp(1.35rem, 0.9rem + 1.5vw, 2.5rem);
  --r: 16px; --dock-w: clamp(340px, 31vw, 450px); --hit: 36px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not(.light-mode) {
    --bg: #0a0a0a; --bg-2: #151a17; --ink: #ece8de; --ink-2: #cbc6ba; --muted: #a29d92; --faint: #99948a;
    --line: rgba(236, 232, 222, .09); --line-2: rgba(236, 232, 222, .2);
    --panel: rgba(20, 23, 21, .88); --panel-solid: #141715; --shadow: 0 24px 60px -24px rgba(0, 0, 0, .7), 0 2px 10px -4px rgba(0, 0, 0, .5);
    --accent: #4a9b6a; --accent-ink: #0a0a0a; --accent-soft: rgba(74, 155, 106, .14); --warm: #e2ad55; --warm-line: #e2ad55; --warm-soft: rgba(226, 173, 85, .14);
    --map-bg: #0a0a0a; --map-bg-2: #141a16; --map-ink: #f0ece2; --map-ink-2: #d2cdc1; --map-muted: #a29d92;
    --map-edge: #d6d0c2; --map-node: #e4dfd3; --map-accent: #5fb383; --map-accent-2: #9fe0b8; --map-signal: #a8ecc3;
    --map-warm: #f0b860; --map-halo: #0d0f0e; --map-glow: #7fd6a3; --map-glow-strength: 0.7;
    --map-tint-0: #2f6b4c; --map-tint-1: #6b5426; --map-tint-2: #483f6e; --map-tint-3: #6b3a34; --map-tint-4: #2c4f63; --map-tint-5: #575a2c; --map-tint-6: #5d3550; --map-tint-7: #2d5c57;
    color-scheme: dark;
  }
}
:root.dark-mode {
  --bg: #0a0a0a; --bg-2: #151a17; --ink: #ece8de; --ink-2: #cbc6ba; --muted: #a29d92; --faint: #99948a;
  --line: rgba(236, 232, 222, .09); --line-2: rgba(236, 232, 222, .2);
  --panel: rgba(20, 23, 21, .88); --panel-solid: #141715; --shadow: 0 24px 60px -24px rgba(0, 0, 0, .7), 0 2px 10px -4px rgba(0, 0, 0, .5);
  --accent: #4a9b6a; --accent-ink: #0a0a0a; --accent-soft: rgba(74, 155, 106, .14); --warm: #e2ad55; --warm-line: #e2ad55; --warm-soft: rgba(226, 173, 85, .14);
  --map-bg: #0a0a0a; --map-bg-2: #141a16; --map-ink: #f0ece2; --map-ink-2: #d2cdc1; --map-muted: #a29d92;
  --map-edge: #d6d0c2; --map-node: #e4dfd3; --map-accent: #5fb383; --map-accent-2: #9fe0b8; --map-signal: #a8ecc3;
  --map-warm: #f0b860; --map-halo: #0d0f0e; --map-glow: #7fd6a3; --map-glow-strength: 0.7;
  --map-tint-0: #2f6b4c; --map-tint-1: #6b5426; --map-tint-2: #483f6e; --map-tint-3: #6b3a34; --map-tint-4: #2c4f63; --map-tint-5: #575a2c; --map-tint-6: #5d3550; --map-tint-7: #2d5c57;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: var(--bg); color: var(--ink); font-family: var(--sans); -webkit-font-smoothing: antialiased; }
body { overflow: hidden; overscroll-behavior: none; }
button { font: inherit; color: inherit; }
a { color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: fixed; left: 12px; top: -60px; z-index: 50; background: var(--panel-solid); padding: 10px 14px; border-radius: 10px; }
.skip:focus { top: 12px; }

#mind { position: fixed; inset: 0; width: 100vw; height: 100vh; height: 100dvh; display: block; touch-action: none; cursor: grab; }
body.map-focus #mind { outline: 2px solid var(--accent); outline-offset: -4px; }
/* the map mirror: invisible, but when focused it sits over the active learning so magnifiers follow it */
#mirror { position: fixed; left: var(--fx, -100px); top: var(--fy, -100px); width: 44px; height: 44px; overflow: hidden; color: transparent; opacity: 0.01; pointer-events: none; z-index: 1; }
#mirror:focus { outline: none; }

/* ---------------------------------------------------------------- header */
.top { position: fixed; top: 0; left: 0; right: 0; height: 60px; display: flex; align-items: center; gap: 18px; padding: 0 20px; z-index: 10; pointer-events: none; background: linear-gradient(to bottom, var(--bg) 0%, color-mix(in srgb, var(--bg) 70%, transparent) 55%, transparent 100%); }
.top > * { pointer-events: auto; }
.brand { display: flex; align-items: baseline; gap: 10px; text-decoration: none; color: var(--ink); white-space: nowrap; }
.whose { margin: 0 0 0 auto; padding-right: 6px; font: italic 400 15px/1.3 var(--serif); color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.top nav { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.whose:not(:empty) + nav { margin-left: 0; }
.link { background: none; border: 0; padding: 8px 10px; min-height: var(--hit); cursor: pointer; color: var(--ink-2); font-size: 14px; border-radius: 8px; }
.link:hover { color: var(--ink); }
a.link { display: inline-flex; align-items: center; text-decoration: none; }
.icon { display: inline-grid; place-items: center; width: var(--hit); height: var(--hit); padding: 0; border-radius: 10px; border: 1px solid var(--line-2); background: var(--panel); color: var(--ink-2); cursor: pointer; font-size: 17px; line-height: 1; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.icon:hover { color: var(--ink); border-color: var(--ink-2); }

/* ---------------------------------------------------------------- hero: at rest the question is the hero; the mind has its own stage above */
.hero { position: fixed; left: 50%; top: max(60vh, calc(100vh - 330px)); top: max(60dvh, calc(100dvh - 330px)); transform: translateX(-50%); width: min(720px, calc(100vw - 32px)); text-align: center; z-index: 5; pointer-events: none; transition: opacity .6s var(--ease), transform .45s var(--ease); }
/* the examples type themselves into the box now, so the list is not shown under it */
.hero > .suggest { display: none; }
/* working the map: the question fades back so the map can be seen; it returns when they stop */
body.map-active .hero, body.map-focus .hero { opacity: .08; transition: opacity .22s var(--ease); }
body.map-active .hero > .slot { pointer-events: none; }
.hero > .slot, .hero > .suggest { pointer-events: auto; }
.kicker, .hero h1, .grows { user-select: none; -webkit-user-select: none; pointer-events: none; }   /* a drag here pans the map */
/* the homepage hero's voice: a small accent label, then one italic Georgia line, then the question itself */
.hero h1.label { margin: 0 0 10px; font: 700 var(--text-xs)/1.2 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--accent); }
.kicker { margin: 0 auto 22px; max-width: 640px; font: italic 400 var(--text-lg)/1.4 var(--serif); color: var(--muted); text-wrap: balance; }
.grows { margin: 16px auto 0; max-width: 560px; font: italic 400 14.5px/1.45 var(--serif); color: var(--muted); }
/* the question is part of the page, not a widget on it: no box, just the words on a hairline that warms to the accent */
.ask { position: relative; display: flex; align-items: center; gap: 8px; height: 58px; padding: 0 2px 0 4px; border: 0; border-bottom: 1px solid color-mix(in srgb, var(--ink) 50%, transparent); border-radius: 0; background: transparent; transition: border-color .2s; }
.ask:focus-within { border-bottom-color: var(--accent); box-shadow: 0 1px 0 var(--accent); }
.ask input { flex: 1 1 auto; min-width: 0; height: 100%; border: 0; background: transparent; color: var(--ink); font: italic 400 1.3rem var(--serif); outline: none; }
.ask input::placeholder { color: var(--faint); opacity: 1; }
.status { flex: none; font: 500 11px/1 var(--sans); letter-spacing: .06em; color: var(--faint); white-space: nowrap; display: none; align-items: center; gap: 6px; }
.go { flex: none; width: 42px; height: 42px; border-radius: 50%; border: 0; display: grid; place-items: center; background: transparent; color: var(--muted); cursor: pointer; transition: transform .15s var(--ease), color .2s; }
.go:hover, .ask:focus-within .go, .ask:has(input:not(:placeholder-shown)) .go { color: var(--accent); }
.go:hover { transform: translateX(2px); }
.suggest { margin-top: 14px; display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 14px; }
.suggest .lead { font: 500 11px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--faint); margin-bottom: 4px; }
.sq { background: none; border: 0; padding: 4px 2px; min-height: 30px; cursor: pointer; color: var(--ink-2); text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 4px; font: 400 16px/1.35 var(--serif); }
.sq:hover, .sq:focus-visible { color: var(--ink); text-decoration-color: var(--accent); }
/* engaged: the hero steps back, the prompt waits in a compact bar */
.bar-slot { position: fixed; top: 66px; left: 50%; transform: translateX(-50%); width: min(520px, calc(100vw - 32px)); z-index: 6; }
.bar-slot .ask { height: 48px; padding: 0 4px 0 18px; border-radius: 999px; border-bottom: 0; background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.bar-slot .ask:focus-within { box-shadow: 0 0 0 1px var(--accent); }
.bar-slot .ask input { font-size: 1.05rem; }
.bar-slot .go { width: 36px; height: 36px; }
body[data-stage="engaged"] .hero, body.dock-open .hero { opacity: 0; visibility: hidden; transform: translate(-50%, 14px); }
html.intro-pending .hero, body.intro-on .hero, body.intro-on .mapctl, body.intro-on .bar-slot { opacity: 0; pointer-events: none; visibility: hidden; }
body.empty .hero h1::after { content: ""; }

/* ---------------------------------------------------------------- dock: answer and learning card */
.dock { position: fixed; top: 68px; right: 16px; bottom: 16px; width: var(--dock-w); display: flex; flex-direction: column; z-index: 8; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); backdrop-filter: blur(16px) saturate(1.15); -webkit-backdrop-filter: blur(16px) saturate(1.15); animation: dock-in .38s var(--ease); }
.dock[hidden] { display: none; }
@keyframes dock-in { from { opacity: 0; transform: translateX(14px); } }
.dock-grip { display: none; }
.dock-head { padding: 14px 14px 4px; }
.dock-head .ask { height: 46px; padding-left: 2px; }
.dock-head .ask input { font-size: 1.08rem; }
.dock-head .go { width: 34px; height: 34px; }
.dock-body { flex: 1 1 auto; overflow: auto; padding: 4px 22px 22px; scrollbar-width: thin; overscroll-behavior: contain; }
.dock-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: 8px; min-height: 36px; }
.dock-top .eyebrow { margin: 0; }
.eyebrow { margin: 18px 0 6px; font: 500 11px/1.3 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.asked { margin: 2px 0 4px; font: 400 1.5rem/1.2 var(--serif); letter-spacing: -.01em; }
.asked:focus { outline: none; }
.scope { margin: 2px 0 0; color: var(--muted); font-size: 13px; }
.intent { margin: 2px 0 6px; color: var(--muted); font-size: 13px; line-height: 1.4; font-style: italic; }
.reading { margin: 4px 0 10px; padding: 6px 10px 8px; border-left: 2px solid var(--accent-soft); font-size: 13px; line-height: 1.45; color: var(--ink-2); }
.reading summary { cursor: pointer; font: 500 11px/1.3 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.reading dl { margin: 6px 0 0; display: grid; grid-template-columns: minmax(7.5em, max-content) 1fr; gap: 3px 10px; }
.reading dt { color: var(--muted); }
.reading dd { margin: 0; overflow-wrap: anywhere; }
.reading dd[data-row="real"] { color: var(--ink); font-style: italic; }
.reading .tier { color: var(--faint); font-size: 12px; }
.reading.narrow summary .gist { display: block; margin-top: 3px; font: italic 400 13px/1.4 var(--serif); letter-spacing: 0; text-transform: none; color: var(--ink-2); }
.reading.narrow[open] summary .gist { display: none; }
.reading .clarify { margin: 8px 0 0; color: var(--muted); }
.reading .chip { font: inherit; color: var(--accent); background: var(--accent-soft); border: 0; border-radius: 999px; padding: 2px 10px; cursor: pointer; text-align: left; }
.reading .chip:hover { text-decoration: underline; }
/* where the author's thinking changed (C12): a dated note under the answer, with the then -> now chip */
.revised { margin: 8px 0 4px; }
.reading.revision { margin: 0 0 6px; }
.reading.revision .ttl { margin: 0; font: 500 11px/1.3 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.reading.revision .line { margin: 3px 0 0; overflow-wrap: anywhere; }
.reading.revision .pair { color: var(--ink); }
@media (max-width: 480px) { .reading dl { grid-template-columns: 1fr; } .reading dd { margin-bottom: 4px; } }
.thinking { display: flex; align-items: center; gap: 12px; margin: 22px 0; color: var(--ink-2); font: italic 400 1.05rem/1.4 var(--serif); }
.thread { display: inline-flex; gap: 5px; }
.thread i { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); opacity: .25; animation: fire 1.2s infinite var(--ease); }
.thread i:nth-child(2) { animation-delay: .18s; } .thread i:nth-child(3) { animation-delay: .36s; }
@keyframes fire { 30% { opacity: 1; transform: scale(1.25); } 60% { opacity: .25; transform: none; } }
.answer-lead { margin: 4px 0 6px; padding: 0 0 0 16px; border-left: 2px solid var(--accent); }
.answer-lead blockquote { margin: 0; }
.answer-lead.multi blockquote + blockquote { margin-top: 14px; }
/* an overview of a theme (K14): one cited sentence per learning, as a list under one "Across N learnings" line */
ol.answer-lead.overview { list-style: none; }
ol.answer-lead.overview li + li { margin-top: 14px; }
.answer-lead .part { margin: 0 0 3px !important; font: 500 11.5px/1.35 var(--sans) !important; letter-spacing: .04em; color: var(--muted) !important; }
.answer-lead p { margin: 0; font: 400 1.22rem/1.5 var(--serif); color: var(--ink); text-wrap: pretty; }
.method { margin: 8px 0 0; font-size: 12.5px; color: var(--faint); }
.cite { position: relative; display: inline-grid; place-items: center; min-width: 24px; height: 24px; padding: 0 7px; margin-left: 2px; border-radius: 999px; border: 0; background: var(--accent); color: var(--accent-ink); font: 600 12px/1 var(--sans); vertical-align: 1px; cursor: pointer; }
.cite::before { content: ""; position: absolute; inset: -11px -8px; }   /* a comfortable hit area without a bigger badge */
.srcs { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.src, .conn, .kt, .tt { width: 100%; text-align: left; background: none; border: 0; padding: 10px 10px; margin: 0 -10px; border-radius: 10px; cursor: pointer; display: flex; gap: 12px; align-items: flex-start; min-height: 44px; }
.src:hover, .conn:hover, .kt:hover, .tt:hover, .src:focus-visible { background: var(--accent-soft); }
.src .n { flex: none; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--accent); color: var(--accent); font: 600 11.5px/1 var(--sans); margin-top: 1px; }
.src.near .n { border-style: dashed; }
.src .st { display: flex; flex-direction: column; gap: 3px; }
.src .t, .conn .t { font: 500 1.02rem/1.3 var(--serif); color: var(--ink); }
.src .m { font-size: 12.5px; color: var(--muted); }
.src .why { font: 500 12.5px/1.35 var(--sans); color: var(--accent); }
.src .ex { margin-top: 3px; font: 400 .98rem/1.5 var(--serif); color: var(--ink-2); }
/* a composed answer (K8): one answer from my record; each [n] opens the section it came from, quoted whole */
.answer-lead.composed .cite.ref { margin-left: 0; }
.refs-h { margin-top: 14px; }
.refs { list-style: none; margin: 0 0 4px; padding: 0; display: grid; gap: 2px; }
.refs details { border-radius: 10px; }
.refs summary { list-style: none; display: flex; gap: 12px; align-items: baseline; flex-wrap: wrap; min-height: 44px; padding: 10px 10px; margin: 0 -10px; border-radius: 10px; cursor: pointer; }
.refs summary::-webkit-details-marker { display: none; }
.refs summary:hover, .refs summary:focus-visible { background: var(--accent-soft); }
.refs summary .n { flex: none; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; align-self: flex-start; border: 1px solid var(--accent); color: var(--accent); font: 600 11.5px/1 var(--sans); }
.refs summary .t { font: 500 1.02rem/1.3 var(--serif); color: var(--ink); }
.refs summary .m { font-size: 12.5px; color: var(--muted); }
.refs details[open] summary .n { background: var(--accent); color: var(--accent-ink); }
.refs blockquote { margin: 2px 0 10px 36px; padding: 0 0 0 12px; border-left: 2px solid var(--accent-soft); }
.refs ul.record { margin: 2px 0 10px 36px; padding: 0 0 0 12px; border-left: 2px solid var(--accent-soft); list-style: none; font: 400 12.5px/1.6 var(--mono); color: var(--ink-2); overflow-wrap: anywhere; }
.refs blockquote p { margin: 0; font: 400 .98rem/1.55 var(--serif); color: var(--ink-2); text-wrap: pretty; }
.nomatch { margin: 16px 0 6px; font: 400 1.22rem/1.4 var(--serif); }
.nomatch-body { margin: 0 0 10px; color: var(--ink-2); font-size: 14.5px; line-height: 1.55; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.btn { display: inline-flex; align-items: center; gap: 6px; min-height: var(--hit); padding: 0 15px; border-radius: 999px; border: 1px solid var(--line-2); background: transparent; color: var(--ink); font: 500 13.5px/1 var(--sans); text-decoration: none; cursor: pointer; transition: background .15s, border-color .15s; }
.btn:hover { border-color: var(--ink-2); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn.warm { border-color: var(--warm-line); color: var(--ink); }
.btn.warm::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--warm-line); box-shadow: 0 0 0 3px var(--warm-soft); }
.btn.warm[aria-pressed="true"] { background: var(--warm-soft); }
.btn.ghost { border-color: transparent; color: var(--muted); }
.back { background: none; border: 0; padding: 6px 0; min-height: var(--hit); cursor: pointer; color: var(--muted); font-size: 13.5px; }
.back:hover { color: var(--ink); }
.x { margin-left: auto; flex: none; width: var(--hit); height: var(--hit); border-radius: 50%; border: 1px solid var(--line-2); background: none; cursor: pointer; font-size: 19px; line-height: 1; color: var(--ink-2); }
.x:hover { color: var(--ink); border-color: var(--ink-2); }
.card h1, .region h1 { margin: 0 0 10px; font: 400 1.75rem/1.15 var(--serif); letter-spacing: -.015em; }
.card h1:focus, .region h1:focus, .asked:focus { outline: none; }
.card h1:focus-visible, .region h1:focus-visible, .asked:focus-visible { outline: none; text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 6px; }
.by { display: flex; align-items: center; gap: 9px; margin: 0 0 14px; font-size: 13.5px; color: var(--ink-2); }
.by a { color: inherit; text-decoration-color: var(--line-2); text-underline-offset: 3px; padding: 6px 0; }
.avatar { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--warm-soft); color: var(--ink-2); font: 600 11px/1 var(--sans); border: 1px solid var(--warm-line); }
.lede { margin: 0; font: 400 1.06rem/1.6 var(--serif); color: var(--ink); }
.conns { list-style: none; margin: 0; padding: 0; }
.conn { flex-direction: column; gap: 3px; }
.conn .why { font-size: 12.5px; color: var(--accent); }
.conn q { font: italic 400 .95rem/1.5 var(--serif); color: var(--ink-2); quotes: "“" "”"; }
/* the profile card: where the author works now, then the roles timeline */
.profile { margin: 14px 0 0; }
.profile .eyebrow { margin: 12px 0 6px; }
.profile .now { margin: 0; font-size: 14.5px; line-height: 1.5; color: var(--ink); }
.profile .now .focus { display: block; color: var(--ink-2); font-size: 13.5px; }
.timeline { list-style: none; margin: 0; padding: 0 0 0 12px; border-left: 1px solid var(--line-2); }
.timeline li { display: flex; flex-direction: column; gap: 1px; padding: 0 0 10px; font-size: 13.5px; line-height: 1.45; }
.timeline .when { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.timeline .org { color: var(--ink); }
.timeline .what { color: var(--ink-2); }
.profile .asof { margin: 2px 0 0; font-size: 12px; color: var(--muted); }
/* a concept record's card: its sections quoted whole, then the names it answers to */
.concept { margin: 6px 0 0; }
.concept .eyebrow { margin: 12px 0 6px; }
.concept .said { margin: 0; padding: 0 0 0 12px; border-left: 2px solid var(--line-2); }
.concept .said p { margin: 0; font: 400 1.02rem/1.6 var(--serif); color: var(--ink); }
.concept .aka { margin: 12px 0 0; font-size: 13px; color: var(--ink-2); }
.concept .asof { margin: 2px 0 0; font-size: 12px; color: var(--muted); }
.more { background: none; border: 0; padding: 10px 0; min-height: var(--hit); cursor: pointer; color: var(--accent); font-size: 13.5px; }

/* ---------------------------------------------------------------- map controls */
.mapctl { position: fixed; left: 16px; bottom: 16px; z-index: 7; display: flex; align-items: center; gap: 8px; transition: opacity .4s; }
.pill { position: relative; display: inline-flex; align-items: center; gap: 8px; min-height: var(--hit); padding: 0 14px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--panel); color: var(--ink-2); cursor: pointer; font-size: 13.5px; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.pill:hover, .pill[aria-expanded="true"] { color: var(--ink); border-color: var(--ink-2); }
.pill em { font-style: normal; color: var(--accent); max-width: 18ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pill em:empty { display: none; }
.pill[hidden] { display: none; }
.pill.dormant { visibility: hidden; }
.pill .count { font: 600 11.5px/1 var(--sans); color: var(--warm); }
.pill .count:empty { display: none; }
.pill.pulse { animation: kept .9s var(--ease); }
@keyframes kept { 30% { box-shadow: 0 0 0 6px var(--warm-soft); border-color: var(--warm-line); } }
.ember { width: 8px; height: 8px; border-radius: 50%; background: var(--warm-line); opacity: .55; }
.pill.has .ember { opacity: 1; box-shadow: 0 0 0 3px var(--warm-soft), 0 0 12px var(--warm-line); }
.zoom { display: flex; gap: 4px; }
.vb-wrap { position: relative; }
.viewby { position: absolute; left: 0; bottom: 46px; width: 320px; padding: 10px; background: var(--panel-solid); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); z-index: 9; }
.viewby[hidden] { display: none; }
.vb-list { display: grid; gap: 2px; }
.vb-list button { text-align: left; background: none; border: 0; padding: 9px 10px; min-height: 40px; border-radius: 9px; cursor: pointer; font-size: 14px; color: var(--ink-2); display: flex; gap: 8px; align-items: center; }
.vb-list button::before { content: ""; width: 8px; height: 8px; border-radius: 50%; border: 1px solid var(--line-2); }
.vb-list button.on { color: var(--ink); }
.vb-list button.on::before { background: var(--accent); border-color: var(--accent); }
.vb-list button:hover { background: var(--accent-soft); }
.vb-free { margin-top: 8px; }
.vb-free input { width: 100%; height: 42px; border-radius: 10px; border: 1px solid var(--line-2); background: transparent; color: var(--ink); padding: 0 12px; font: 400 14.5px var(--sans); }
.vb-free input:focus { outline: none; border-color: var(--accent); }
.hint { margin: 8px 2px 2px; color: var(--muted); font-size: 12.5px; line-height: 1.45; }

/* ---------------------------------------------------------------- tray: your working memory */
.tray { position: fixed; left: 16px; bottom: 64px; width: min(360px, calc(100vw - 32px)); max-height: calc(100vh - 150px); overflow: auto; z-index: 8; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); animation: tray-in .3s var(--ease); }
.tray[hidden] { display: none; }
@keyframes tray-in { from { opacity: 0; transform: translateY(8px); } }
.tray-in { padding: 16px 18px 18px; }
.tray-top { display: flex; align-items: center; }
.tray h2 { margin: 0; font: 400 1.3rem/1.2 var(--serif); }
.tray h2:focus { outline: none; }
.muted { color: var(--muted); font-size: 13.5px; line-height: 1.5; margin: 6px 0 10px; }
.empty { color: var(--ink-2); font: italic 400 1rem/1.5 var(--serif); }
.kept, .trail { list-style: none; margin: 0; padding: 0; }
.kept li { display: flex; align-items: center; gap: 6px; }
.kt { font: 400 1rem/1.3 var(--serif); padding: 8px 10px; }
.kept li::before { content: ""; flex: none; width: 8px; height: 8px; border-radius: 50%; border: 2px solid var(--warm-line); }
.rm { flex: none; width: var(--hit); height: var(--hit); border-radius: 50%; border: 0; background: none; cursor: pointer; color: var(--muted); font-size: 17px; }
.rm:hover { color: var(--ink); background: var(--warm-soft); }
.trail { border-left: 1px dashed var(--warm-line); margin-left: 4px; padding-left: 6px; }
.tt { font-size: 13.5px; color: var(--ink-2); padding: 7px 10px; align-items: center; min-height: 38px; }
.plus { color: var(--warm); font-weight: 600; }
.budget { margin-top: 16px; }
.tok { margin: 0 0 6px; font-size: 13px; color: var(--ink-2); }
.bar { height: 5px; border-radius: 3px; background: var(--line); overflow: hidden; }
.bar i { display: block; height: 100%; min-width: 4px; background: var(--warm-line); border-radius: 3px; transition: width .4s var(--ease); }
.bar i.over { background: #b3402f; }
.seg { display: inline-flex; gap: 2px; margin-top: 10px; padding: 3px; border-radius: 999px; border: 1px solid var(--line-2); }
.seg button { border: 0; background: none; padding: 0 12px; min-height: 30px; border-radius: 999px; cursor: pointer; font-size: 12.5px; color: var(--ink-2); }
.seg button[aria-pressed="true"] { background: var(--ink); color: var(--bg); }
.formats { margin-left: 6px; }

/* ---------------------------------------------------------------- overlays: never in the flow */
.tip { position: fixed; left: 0; top: 0; z-index: 20; max-width: 320px; padding: 10px 12px; border-radius: 12px; background: var(--panel-solid); border: 1px solid var(--line); box-shadow: var(--shadow); pointer-events: none; font-size: 13px; line-height: 1.45; display: grid; gap: 4px; }
.tip[hidden] { display: none; }
.tip b { font-weight: 500; color: var(--accent); }
.tip q { font: italic 400 14px/1.45 var(--serif); color: var(--ink); }
.tip .between { color: var(--muted); font-size: 12px; }
.toast { position: fixed; left: 50%; top: 72px; transform: translate(-50%, -6px); z-index: 30; padding: 9px 16px; border-radius: 999px; background: var(--ink); color: var(--bg); font-size: 13.5px; opacity: 0; transition: opacity .25s, transform .25s; pointer-events: none; }
.toast.on { opacity: 1; transform: translate(-50%, 0); }
.boot { position: fixed; left: 50%; top: 40%; transform: translateX(-50%); margin: 0; color: var(--muted); font: italic 400 1.05rem var(--serif); z-index: 4; text-align: center; max-width: calc(100vw - 32px); }
body.ready .boot, body.dock-open .boot { display: none; }
.boot[hidden] { display: none; }

.intro { position: fixed; left: 0; right: 0; bottom: clamp(48px, 14vh, 150px); z-index: 6; text-align: center; pointer-events: none; padding: 0 16px; }
.intro[hidden] { display: none; }
.intro .cap { margin: 0; font: italic 400 clamp(1.6rem, 1rem + 2.2vw, 2.7rem)/1.15 var(--serif); color: var(--ink); letter-spacing: -.01em; text-shadow: 0 0 24px var(--bg), 0 0 8px var(--bg); text-wrap: balance; }
.intro .cap.in { animation: cap-in .7s var(--ease); }
@keyframes cap-in { from { opacity: 0; transform: translateY(6px); filter: blur(3px); } }
.intro .date { margin: 12px 0 0; min-height: 12px; font: 500 11.5px/1 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--muted); font-variant-numeric: tabular-nums; }
.intro .skip-intro { position: fixed; right: 20px; bottom: 20px; pointer-events: auto; background: var(--panel); border: 1px solid var(--line-2); border-radius: 999px; padding: 0 18px; min-height: var(--hit); color: var(--ink-2); cursor: pointer; font-size: 13px; }

dialog { max-width: min(560px, calc(100vw - 32px)); max-height: calc(100vh - 32px); overflow: auto; border: 1px solid var(--line); border-radius: 18px; padding: 26px 28px 22px; background: var(--panel-solid); color: var(--ink); box-shadow: var(--shadow); }
dialog::backdrop { background: color-mix(in srgb, var(--bg) 55%, transparent); backdrop-filter: blur(3px); }
dialog h2 { margin: 0 0 12px; font: 400 1.6rem/1.2 var(--serif); }
dialog p { margin: 0 0 12px; font: 400 1.02rem/1.6 var(--serif); color: var(--ink-2); }
dialog p.machine { font: 400 13px/1.5 var(--sans); color: var(--muted); }
dialog p.toggle { display: grid; gap: 4px; margin-top: 4px; font: 400 14px/1.4 var(--sans); color: var(--ink); }
dialog p.toggle label { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; cursor: pointer; }
dialog p.toggle input { width: 20px; height: 20px; accent-color: var(--accent); }
dialog p.toggle .hint { color: var(--muted); font-size: 12.5px; }
dialog dl { display: grid; grid-template-columns: auto 1fr; gap: 8px 18px; margin: 0 0 16px; font-size: 14px; }
dialog dt { white-space: nowrap; }
dialog dd { margin: 0; color: var(--ink-2); }
kbd { display: inline-block; min-width: 22px; padding: 2px 6px; border-radius: 6px; border: 1px solid var(--line-2); border-bottom-width: 2px; font: 500 12px/1.3 var(--sans); text-align: center; }

/* ---------------------------------------------------------------- tablet */
@media (max-width: 1100px) { :root { --dock-w: clamp(330px, 40vw, 420px); } .whose { display: none; } .whose + nav { margin-left: auto !important; } }

/* ---------------------------------------------------------------- touch: every target at least 44px */
@media (pointer: coarse) {
  :root { --hit: 44px; }
  .sq { min-height: 44px; }
  .seg button { min-height: 44px; }
  .src .n { width: 26px; height: 26px; }
  .go { width: 44px; height: 44px; }
  .dock-head .go, .bar-slot .go { width: 44px; height: 44px; }
  .by a { display: inline-block; padding: 12px 0; }
  .brand { padding: 13px 0; }
}

/* ---------------------------------------------------------------- phone: prompt first, the map above it, sheets */
@media (max-width: 759px) {
  .top { height: 54px; padding: 0 12px; }
  .hero { top: auto; bottom: max(10px, env(safe-area-inset-bottom)); width: calc(100vw - 24px); }   /* anchored to the bottom: never clipped; the map takes the space above */
  .hero::before { content: ""; position: absolute; inset: -30px -24px -24px; z-index: -1; background: linear-gradient(to top, var(--bg) 60%, color-mix(in srgb, var(--bg) 70%, transparent) 82%, transparent); }
  .kicker { font-size: 1.05rem; margin-bottom: 10px; }
  .hero h1.label { margin-bottom: 6px; }
  .ask { height: 52px; }
  .ask input { font-size: 1.1rem; }
  .suggest .lead { display: none; }
  .sq { font-size: 15px; }
  .grows { font-size: 13.5px; margin-top: 10px; }
  .mapctl { top: 58px; bottom: auto; left: 12px; right: 12px; gap: 6px; }
  .mapctl .zoom { display: none; }
  #tray-btn { margin-left: auto; }
  .viewby { top: 50px; bottom: auto; width: min(340px, calc(100vw - 24px)); }
  .bar-slot { top: auto; bottom: max(12px, env(safe-area-inset-bottom)); width: calc(100vw - 24px); }
  .dock { top: auto; left: 0; right: 0; bottom: 0; width: auto; border-radius: 20px 20px 0 0; border-bottom: 0; padding-bottom: env(safe-area-inset-bottom); animation: sheet-in .38s var(--ease); transition: height .32s var(--ease); height: 56dvh; transform: translateY(var(--drag, 0px)); }
  .dock.dragging { transition: none; }
  .dock[data-sheet="peek"] { height: 148px; }
  .dock[data-sheet="half"] { height: 56dvh; }
  .dock[data-sheet="full"] { height: calc(100dvh - 60px); }
  .dock-grip { display: block; position: absolute; top: -10px; left: 50%; width: 96px; height: 44px; margin-left: -48px; border: 0; background: none; cursor: grab; z-index: 2; }
  .dock-grip::before { content: ""; position: absolute; top: 18px; left: 29px; width: 38px; height: 4px; border-radius: 2px; background: var(--line-2); }
  @keyframes sheet-in { from { transform: translateY(30px); opacity: 0; } }
  .dock-head { padding: 22px 12px 2px; touch-action: none; }
  .dock-body { padding: 0 18px 20px; }
  .asked { font-size: 1.28rem; }
  .card h1, .region h1 { font-size: 1.45rem; }
  .answer-lead p { font-size: 1.1rem; }
  body.dock-open .mapctl .vb-wrap, body.dock-open #tray-btn { display: none; }
  .tray { left: 0; right: 0; bottom: 0; width: auto; max-height: 72vh; border-radius: 20px 20px 0 0; z-index: 9; }
  .intro .skip-intro { bottom: auto; top: 62px; right: 12px; }
}

/* ---------------------------------------------------------------- short viewports (landscape phones, 200–400% zoom): the page scrolls, the prompt is always reachable */
@media (max-height: 520px) {
  body { overflow-y: auto; overflow-x: hidden; }
  .hero::before { display: none; }
  .top { position: sticky; }
  .hero { position: relative; top: auto; left: auto; transform: none; margin: 8px auto 40px; padding: 14px 16px 18px; border-radius: 18px; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
  body[data-stage="rest"] .mapctl { display: none; }
  body[data-stage="engaged"] .hero, body.dock-open .hero { transform: none; }
  .kicker { font-size: 1rem; margin-bottom: 10px; }
  .grows { display: none; }
  .mapctl { position: fixed; top: auto; bottom: 8px; left: auto; right: 8px; }
  .mapctl .zoom { display: none; }
  .bar-slot { position: fixed; top: auto; bottom: 8px; left: 8px; transform: none; width: min(420px, calc(100vw - 140px)); }
  .dock, .dock[data-sheet] { position: fixed; inset: 0; width: auto; height: auto; max-height: none; border-radius: 0; transform: none; z-index: 12; }
  .dock-head { padding-top: 10px; }
  .dock-grip { display: none; }
  .tray { inset: 0; width: auto; max-height: none; border-radius: 0; z-index: 12; }
  .viewby { bottom: 46px; top: auto; right: 0; left: auto; max-height: calc(100vh - 70px); overflow: auto; }
  .intro .cap { font-size: 1.4rem; }
}
@media (max-height: 300px) {
  .kicker { display: none; }
  .suggest { display: none; }
}

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
html.reduce-motion *, html.reduce-motion *::before, html.reduce-motion *::after { animation: none !important; transition: none !important; }

/* region link on a learning card (keyboard and screen-reader entry to regions) */
.in-region { margin: 2px 0 10px; }
.linkish { background: none; border: 0; padding: 4px 0; min-height: 24px; color: var(--accent); font: 500 13px/1.35 var(--sans); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.linkish:hover { color: var(--ink); }
.vb-regions { margin-top: 2px; }

/* ---------------------------------------------------------------- site masthead: the blog's wordmark, byline and controls */
.top { --site-sans: var(--sans); }
.brand { display: block; min-width: 0; white-space: normal; }
.brand-title { display: block; font: 700 var(--text-lg)/1.15 var(--site-sans); letter-spacing: .12em; text-transform: uppercase; color: var(--ink); text-decoration: none; }
.brand-by { display: block; margin-top: 2px; font: 400 var(--text-xs)/1.2 var(--site-sans); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* centred like the homepage only where the nav leaves room (the centred wordmark meets the nav below ~1090px) */
@media (min-width: 1180px) { .top .brand { position: absolute; left: 50%; transform: translateX(-50%); text-align: center; } .whose { display: none; } .top nav { margin-left: auto !important; } }
.brand-by a { color: inherit; text-decoration: none; }
.brand-by a:hover, .brand-title:hover { color: var(--accent); }
.top nav { gap: 18px; flex: none; }
.ctl { display: inline-flex; align-items: center; gap: .4em; min-height: 36px; padding: 0; border: 0; background: none; cursor: pointer; text-decoration: none; font: 500 var(--text-xs)/1 var(--site-sans); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.ctl:hover { color: var(--ink); }
.ctl .ico { font-size: 1.15em; opacity: .75; }
.answer-lead .from { margin: 4px 0 0; font: 400 12.5px/1.35 var(--sans); color: var(--muted); }
.answer-lead.multi blockquote + blockquote { margin-top: 14px; }
.region .shared { font-style: italic; }
@media (max-width: 600px) {
  .top nav { gap: 2px; }
  .ctl { justify-content: center; min-width: 40px; min-height: 40px; }
  .ctl .ico { font-size: 1.35em; }
  .ctl .lbl { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }   /* still the control's name */
  .brand-title { font-size: 14px; }
  .brand-by { font-size: 10.5px; }
}
/* short phones: the hero gives up its footnote and a suggestion, so the map keeps a real stage above the kicker */
@media (max-width: 759px) and (max-height: 700px) {
  .grows { display: none; }
  #suggest .sq:nth-of-type(n+3) { display: none; }
  .kicker { font-size: 1rem; }
}
@media (max-width: 420px) {
  .brand-by { display: none; }
  .top { gap: 8px; }
  .brand-title { white-space: nowrap; font-size: 13px; letter-spacing: .1em; }
}
@media (pointer: coarse) {
  .ctl { min-width: 44px; min-height: 44px; }
  .cite::before { inset: -10px; }   /* 44 x 44 */
}

.pinned-read { margin: 4px 0 6px; font: 400 17px/1.4 var(--serif); color: var(--ink); }
.pinned-read a { font: 500 13px/1.4 var(--sans); white-space: nowrap; }

/* ---------------------------------------------------------------- U2 (designer top-10, 2026-10-14): token-driven, no px literals */
/* citations in mono */
.cite { font: 600 var(--text-cite)/1 var(--mono); }
.answer-lead .from { font: 400 var(--text-cite)/1.4 var(--mono); letter-spacing: 0; }
.src .n { font-family: var(--mono); }

/* "Use in your agent": always visible — in the masthead on wide screens, in the top slot on a phone */
.agent-btn { display: inline-flex; align-items: center; gap: 0.4em; min-height: var(--hit); padding: 0 0.95em; border-radius: 999px; border: 1px solid var(--accent); background: var(--accent-soft); color: var(--ink); font: 500 var(--text-ui)/1 var(--sans); white-space: nowrap; cursor: pointer; transition: background .15s, color .15s; }
.agent-btn:hover, .agent-btn:focus-visible { background: var(--accent); color: var(--accent-ink); }
.agent-btn .arr { color: var(--accent); transition: transform .15s var(--ease); }
.agent-btn:hover .arr, .agent-btn:focus-visible .arr { color: inherit; transform: translateX(0.15em); }
.agent-slot { display: none; }

/* the masthead's labelled menu: inline on wide screens, a sheet under the masthead below 960 */
.site-menu { display: contents; }
.menu-btn { display: none; }
@media (max-width: 959px) {
  .menu-btn { display: inline-flex; }
  .menu-btn .lbl { position: static; width: auto; height: auto; margin: 0; clip: auto; overflow: visible; }
  .site-menu { display: none; position: fixed; top: calc(var(--hit) + var(--gap-3)); right: var(--gap-2); z-index: 20; min-width: 13rem; padding: var(--gap-1); flex-direction: column; align-items: stretch; gap: 0; background: var(--panel-solid); border: 1px solid var(--line); border-radius: var(--gap-3); box-shadow: var(--shadow); }
  body.menu-open .site-menu { display: flex; }
  .site-menu .ctl { justify-content: flex-start; gap: var(--gap-2); min-height: 2.75rem; padding: 0 var(--gap-2); border-radius: var(--gap-2); }
  .site-menu .ctl:hover, .site-menu .ctl:focus-visible { background: var(--accent-soft); }
  .site-menu .ctl .lbl { position: static; width: auto; height: auto; margin: 0; clip: auto; overflow: visible; white-space: nowrap; }
  .site-menu .ctl .ico { width: 1.2em; text-align: center; }
}
@media (max-width: 759px) {
  .agent-top { display: none; }
  .agent-slot { display: inline-flex; min-height: var(--hit); }
  .mapctl #tray-btn.dormant { display: none; }   /* nothing kept yet: no empty slot pushing the row past the screen */
  .mapctl .agent-slot { margin-left: auto; }
  .mapctl #tray-btn:not(.dormant) + .agent-slot { margin-left: 0; }
}
/* a phone keeps the byline under the brand: the nav is one button now */
@media (max-width: 420px) {
  .brand-by { display: block; font-size: var(--text-xs); }
}

/* the centred wordmark only where the masthead has room for it beside the nav */
@media (min-width: 1180px) and (max-width: 1399px) { .top .brand { position: static; transform: none; text-align: left; } }

/* one quote by default; the rest behind "N more" */
.more-quotes { display: inline-block; margin: var(--gap-1) 0 0; padding: var(--gap-1) 0; font: 500 var(--text-ui)/1.3 var(--sans); }
.more-quotes::after { content: " ↓"; }
.more-quotes[aria-expanded="true"]::after { content: " ↑"; }
.answer-lead blockquote:focus { outline: none; }
.answer-lead blockquote:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
/* the reading follows the answer on a phone (answer first) */
.answer-lead + .more-quotes + .reading, .answer-lead + .reading { margin-top: var(--gap-3); }

/* the pinned "Take this" bar: copy for an AI, share, and the honest meter */
.dock-foot { flex: none; padding: var(--gap-2) var(--gap-4) var(--gap-3); border-top: 1px solid var(--line); background: color-mix(in srgb, var(--panel-solid) 92%, transparent); border-radius: 0 0 var(--r) var(--r); }
.dock-foot[hidden] { display: none; }
.take { display: flex; flex-wrap: wrap; align-items: center; gap: var(--gap-1) var(--gap-2); }
.take .btn { min-height: var(--hit); }
.meter { font: 400 var(--text-cite)/1.3 var(--mono); color: var(--muted); font-variant-numeric: tabular-nums; }
.take .meter { margin-left: auto; }
@media (max-width: 759px) {
  .dock-foot { padding: var(--gap-2) var(--gap-3) calc(var(--gap-2) + env(safe-area-inset-bottom)); border-radius: 0; }
  .dock[data-sheet="peek"] .dock-foot { display: none; }
  .take .meter { margin-left: 0; flex-basis: 100%; }
}

/* the two lenses as one segmented toggle */
.seg.lens { display: flex; margin: 0 0 var(--gap-1); }
.seg.lens button { flex: 1 1 0; min-height: var(--hit); font: 500 var(--text-ui)/1 var(--sans); }

/* the "Use in your agent" sheet */
#agent h2 { margin-bottom: var(--gap-2); }
.agent-list { list-style: none; margin: 0 0 var(--gap-3); padding: 0; display: grid; gap: var(--gap-3); }
.agent-row { display: flex; align-items: center; justify-content: space-between; gap: var(--gap-2); }
.agent-file { font: 500 var(--text-sm)/1.3 var(--mono); }
.agent-hint { margin: var(--gap-1) 0 0 !important; font: 400 var(--text-ui)/1.45 var(--sans) !important; color: var(--muted) !important; }
#agent .actions { margin-top: var(--gap-1); align-items: center; }
#agent .eyebrow { margin-top: var(--gap-3); }

/* dark: the glow is softer on the dark ground (--map-glow-strength); the hero's words keep a quiet scrim */
@media (prefers-color-scheme: dark) {
  :root:not(.light-mode) .agent-btn { border-color: color-mix(in srgb, var(--accent) 70%, transparent); }
}
:root.dark-mode .agent-btn { border-color: color-mix(in srgb, var(--accent) 70%, transparent); }

/* the View popover never runs under the masthead: it scrolls within the space left (the lens toggle stays on top) */
.viewby { max-height: calc(100dvh - 8.5rem); overflow: auto; overscroll-behavior: contain; }
@media (max-width: 759px) { .viewby { max-height: calc(100dvh - 7.5rem); } }

/* "Ask next": follow-ups the engine supports, under the quotes (copy.askNext) */
.ask-next { margin: var(--gap-3) 0 var(--gap-1); }
.ask-next .eyebrow { margin: 0 0 var(--gap-1); }
.ask-next ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--gap-1); }
.next-chip { display: inline-flex; align-items: center; min-height: var(--hit); padding: var(--gap-1) var(--gap-3); border-radius: 999px; border: 1px solid var(--line-2); background: transparent; color: var(--ink); font: 400 var(--text-ui)/1.3 var(--sans); text-align: left; cursor: pointer; transition: border-color .15s, background .15s; }
.next-chip::before { content: "→"; margin-right: 0.45em; color: var(--accent); }
.next-chip:hover, .next-chip:focus-visible { border-color: var(--accent); background: var(--accent-soft); }
