/*
  Plumbline, designed as one piece. Loaded after styles.css (which still owns the replay's behaviour), so this file is the whole look.
  Remove the <link> to it, or run ..\plumbline-web-v1-backup\ROLLBACK.ps1, to return to the original site.

  Identity: a survey sheet whose dots are the nodes of the graph; a plumb bob as the one physical object; brass for the bob,
  red only for "exposed". Type and detail follow Apple's playbook: one workhorse face with optical sizing, tracking that
  depends on size, springs for anything touchable, materials that carry hierarchy, and gentler paths for reduced motion,
  reduced transparency and more contrast.
*/


/* ------------------------------------------------------------------ tokens */
:root {
  --page: #fbfbfd; --surface: #ffffff; --ink: #1d1d1f; --ink-2: #424245; --ink-3: #6e6e73;
  --hair: rgba(0,0,0,.08); --hair-2: rgba(0,0,0,.2); --chip: rgba(0,0,0,.045); --press: rgba(0,0,0,.08);
  --flag: #e0183f; --flag-ink: #c1123a; --flag-wash: rgba(224,24,63,.08);
  --brass: #c7a04a; --brass-ink: #8a6a22;
  --dot: rgba(0,0,0,.15);
  --glass: rgba(255,255,255,.72); --glass-edge: rgba(255,255,255,.7);
  --shadow-sm: 0 1px 2px rgba(0,0,0,.05), 0 8px 24px -12px rgba(0,0,0,.18);
  --shadow-lg: 0 2px 4px rgba(0,0,0,.04), 0 40px 90px -36px rgba(0,0,0,.35);
  --g-bg: #f5f5f7; --g-halo: #f5f5f7;
  --radius: 28px;

  /* Apple's own faces, as the platform ships them: SF Pro on Apple devices, Segoe UI Variable on Windows, Roboto on Android.
     Text and Display are separate optical sizes of one family; SF Mono (ui-monospace) is only for code and identifiers. */
  --text: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI Variable Text", system-ui, "Segoe UI", Roboto, sans-serif;
  --display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI Variable Display", system-ui, "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, "Cascadia Mono", Consolas, monospace;
  /* Tracking depends on size: opens up when small, tightens as type grows. */
  --track-micro: .012em;   /* 11-12px */
  --track-small: .004em;   /* 13-14px */
  --track-body: -.011em;   /* 15-17px */
  --track-title: -.022em;  /* 20-28px */
  --track-large: -.03em;   /* 32-48px */
  --track-display: -.04em; /* 56px and up */
  --spring: cubic-bezier(.22, 1, .36, 1);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --page: #000; --surface: #161618; --ink: #f5f5f7; --ink-2: #c7c7cc; --ink-3: #98989d;
    --hair: rgba(255,255,255,.1); --hair-2: rgba(255,255,255,.24); --chip: rgba(255,255,255,.07); --press: rgba(255,255,255,.12);
    --flag: #ff3b5c; --flag-ink: #ff6b83; --flag-wash: rgba(255,59,92,.15); --brass-ink: #d9b765;
    --dot: rgba(255,255,255,.14); --glass: rgba(30,30,32,.66); --glass-edge: rgba(255,255,255,.12);
    --shadow-sm: 0 1px 2px rgba(0,0,0,.5), 0 8px 24px -12px rgba(0,0,0,.7); --shadow-lg: 0 40px 90px -36px rgba(0,0,0,.85);
    --g-bg: #0c0c0e; --g-halo: #0c0c0e;
  }
}
:root[data-theme="dark"] {
  --page: #000; --surface: #161618; --ink: #f5f5f7; --ink-2: #c7c7cc; --ink-3: #98989d;
  --hair: rgba(255,255,255,.1); --hair-2: rgba(255,255,255,.24); --chip: rgba(255,255,255,.07); --press: rgba(255,255,255,.12);
  --flag: #ff3b5c; --flag-ink: #ff6b83; --flag-wash: rgba(255,59,92,.15); --brass-ink: #d9b765;
  --dot: rgba(255,255,255,.14); --glass: rgba(30,30,32,.66); --glass-edge: rgba(255,255,255,.12);
  --shadow-sm: 0 1px 2px rgba(0,0,0,.5), 0 8px 24px -12px rgba(0,0,0,.7); --shadow-lg: 0 40px 90px -36px rgba(0,0,0,.85);
  --g-bg: #0c0c0e; --g-halo: #0c0c0e;
}

/* ------------------------------------------------------------------ base */
html { scrollbar-gutter: stable; }
body { font-family: var(--text); font-optical-sizing: auto; font-feature-settings: "kern", "liga", "calt"; letter-spacing: var(--track-body); text-wrap: pretty;
  background-image: radial-gradient(circle at center, var(--dot) 1.1px, transparent 1.6px); background-size: 32px 32px; background-position: 16px 16px; }
::selection { background: color-mix(in srgb, var(--brass) 45%, transparent); }
:focus-visible { outline: 2px solid var(--flag); outline-offset: 3px; border-radius: 8px; }
.wrap { max-width: 1200px; }
/* every touch target gets at least 44px of reach without growing visually */
.icon-btn, .tabs button, .code-tabs button, .knot { position: relative; }
.icon-btn::after { content: ""; position: absolute; inset: -5px; }
/* numbers line up and never jitter */
.clock, .counts b, .pill, .when, .bar-val b, .facts b { font-variant-numeric: tabular-nums lining-nums; }
code, .mono { font-feature-settings: "calt" 0, "zero" 1; }

/* ------------------------------------------------------------------ type roles: one family, tracking that follows size */
.hero h1 { font-family: var(--display); font-weight: 700; font-size: clamp(2.5rem, 4.9vw, 4.5rem); line-height: 1.06; letter-spacing: var(--track-display); max-width: 15ch; text-wrap: balance; }
.band h2, .hood h2 { font-family: var(--display); font-weight: 700; font-size: clamp(2.5rem, 5.6vw, 4.5rem); line-height: 1.04; letter-spacing: var(--track-display); max-width: 15ch; text-wrap: balance; }
.habit h3, .bench h3 { font-family: var(--display); font-weight: 650; font-size: clamp(1.7rem, 2.4vw, 2.25rem); line-height: 1.1; letter-spacing: var(--track-large); text-wrap: balance; }
.brand, .site-foot .brand { font-family: var(--display); font-weight: 600; font-size: 1.1rem; letter-spacing: var(--track-title); }
h3, .clock, .ev-head h3, .list-head h3, .jobs dt, .bar-group figcaption, .bench td b, .bar-val b { font-family: var(--text); }
.clock { font-family: var(--display); font-weight: 600; letter-spacing: var(--track-display); }
.ev-head h3 { font-family: var(--display); font-weight: 650; letter-spacing: var(--track-large); }
.list-head h3, .jobs dt { font-weight: 650; letter-spacing: var(--track-title); }
.hero-sub, .band-lede, .hood-lede { font-family: var(--text); font-weight: 400; letter-spacing: var(--track-title); line-height: 1.38; color: var(--ink-3); }
.band-lede { font-size: 1.3rem; max-width: 44ch; }
.band-lede strong { color: var(--ink); font-weight: 600; }
.statement { letter-spacing: var(--track-title); line-height: 1.34; }
.when, .utc, .caption, .tag, .pill, .row .sub, .rail-hint, .map-caption, .hint, .ev-meta, .ditem .by, .answer-by, .stamp dt, .deck-foot, .legend { letter-spacing: var(--track-small); }
.caption, .tag, .pill, .when { letter-spacing: var(--track-micro); }
/* labels and buttons are plain sentence-case text in the same family; only identifiers and code are monospaced */
.btn-hero, .hero-link, .code-tabs button, .nav-links a { font-family: var(--text); font-size: .875rem; font-weight: 500; letter-spacing: var(--track-small); text-transform: none; }
.btn-hero { font-size: 1.0625rem; letter-spacing: var(--track-body); font-weight: 600; }
.hero-link { font-size: 1.0625rem; letter-spacing: var(--track-body); }
.chain .cap, .depth-tick b { font-family: var(--text); letter-spacing: var(--track-small); }

/* ------------------------------------------------------------------ nav: a floating pill, and a soft scroll edge instead of a rule */
.nav, .nav.solid, .nav:not(.solid) { top: 12px; right: auto; bottom: auto; left: 50%; transform: translateX(-50%); width: min(780px, calc(100% - 24px)); height: 48px; padding: 0 8px 0 22px; border-radius: 99px;
  border: 1px solid var(--hair); color: var(--ink); background: var(--glass); -webkit-backdrop-filter: saturate(180%) blur(24px); backdrop-filter: saturate(180%) blur(24px); box-shadow: inset 0 1px 0 var(--glass-edge), var(--shadow-sm); }
.nav:not(.solid) { color: #fff; background: rgba(18,22,28,.55); border-color: rgba(255,255,255,.14); box-shadow: inset 0 1px 0 rgba(255,255,255,.12); }
.brand-bob, .nav.solid .brand-bob { fill: var(--flag); }
.nav:not(.solid) .brand-bob { fill: var(--brass); }
.nav-links { gap: 2px; }
.nav-links a { padding: 7px 13px; opacity: .85; transition: opacity .2s, background-color .2s; }
.nav-links a:hover, .icon-btn:hover:not(:disabled) { background: var(--chip); opacity: 1; }
.nav:not(.solid) .nav-links a:hover, .nav:not(.solid) .icon-btn:hover { background: rgba(255,255,255,.12); }
.icon-btn { width: 34px; height: 34px; }

/* ------------------------------------------------------------------ hero: a dark survey sheet; the plumb line is the one memorable thing */
.hero { --h-ink: #f4f6f8; --h-dim: rgba(244,246,248,.64); --h-line: rgba(244,246,248,.34);
  background-color: #070d13; background-image: radial-gradient(circle at center, rgba(244,246,248,.16) 1.1px, transparent 1.6px); background-size: 32px 32px; background-position: 16px 16px;
  color: var(--h-ink); text-align: left; min-height: 100svh; display: flex; align-items: center; padding: 120px 0 80px; overflow: hidden; isolation: isolate; }
.hero::before { content: ""; position: absolute; inset: auto -10% -30% 40%; height: 90%; z-index: -1; pointer-events: none;
  background: radial-gradient(50% 50% at 50% 40%, rgba(199,160,74,.22), rgba(224,24,63,.10) 55%, transparent 75%); }
.hero-inner { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 72px; align-items: center; }
.hero-copy { display: block; }
.hero h1 { margin: 0; color: var(--h-ink); }
.hero-sub { margin: 28px 0 0; max-width: 38ch; font-size: clamp(1.1rem, 1.5vw, 1.35rem); color: var(--h-dim); }
.hero-cta { justify-content: flex-start; margin-top: 40px; }
.btn-hero { background: #f4f6f8; color: #070d13; padding: 13px 26px; border-radius: 99px; }
.btn-hero:hover { background: #fff; }
.hero-link { color: var(--brass); text-decoration: none; }
.hero-link::after { content: "\00a0\2192"; }
.hero-link:hover { text-decoration: underline; text-underline-offset: 4px; }

.chain { margin: 0; max-width: 430px; width: 100%; padding: 0 0 0 30px; position: relative; justify-self: start; text-align: left; }
.chain::before { content: ""; position: absolute; left: 0; top: 0; bottom: 64px; width: 9px; opacity: .55;
  background: repeating-linear-gradient(to bottom, var(--h-line) 0 1px, transparent 1px 12px), repeating-linear-gradient(to bottom, var(--h-line) 0 1px, transparent 1px 60px);
  background-size: 5px 100%, 9px 100%; background-repeat: no-repeat; }
.chain-list li { align-items: flex-start; padding: 15px 0 15px 4px; gap: 18px; }
.chain-list li::before { left: 11px; top: 22px; background: var(--h-line); transform-origin: top; }
.chain-list li.last::before { height: 0; }
.node { margin-top: 5px; border-color: var(--h-ink); background: #070d13; }
.chain .txt { display: grid; gap: 2px; }
.chain .label { color: var(--h-ink); font-size: 1.05rem; letter-spacing: var(--track-body); }
.chain .cap { font-size: .8125rem; color: var(--h-dim); }
.chain .label.poison { justify-self: start; background: var(--flag); color: #fff; padding: 6px 16px; font-size: 1.15rem; }
.chain figcaption { color: var(--h-dim); font-size: .875rem; margin: 26px 0 0 4px; }
.swing { margin-top: -1px; }
.swing svg { filter: drop-shadow(0 8px 10px rgba(0,0,0,.5)); }
.swing svg path:first-of-type { stroke: var(--h-ink); }

/* the one orchestrated moment: the line is paid out link by link, then the bob drops, swings, and flags the release */
@media (prefers-reduced-motion: no-preference) {
  .chain-list li { animation: pay-out .7s var(--spring) both; animation-delay: calc(.25s + var(--i, 0) * .22s); }
  .chain-list li:nth-child(2) { --i: 1; } .chain-list li:nth-child(3) { --i: 2; } .chain-list li:nth-child(4) { --i: 3; } .chain-list li:nth-child(5) { --i: 4; }
  .chain-list li::before { animation: line-down .5s var(--spring) both; animation-delay: calc(.25s + var(--i, 0) * .22s); }
  .swing { animation: swing 3.6s cubic-bezier(.3, .6, .4, 1) 1.2s both; }
  .chain .label.poison { animation: flag-pulse 1.6s ease-out 2.2s 2; }
}
@keyframes pay-out { from { opacity: 0; transform: translateY(-14px); } to { opacity: 1; transform: none; } }
@keyframes line-down { from { transform: scaleY(0); } to { transform: none; } }
@keyframes flag-pulse { 0% { box-shadow: 0 0 0 0 rgba(224,24,63,.65); } 100% { box-shadow: 0 0 0 16px rgba(224,24,63,0); } }

/* ------------------------------------------------------------------ sections */
.band { padding: 140px 0; }
.how { background-color: transparent; }
.site-foot { background: transparent; }

/* ------------------------------------------------------------------ the replay: the one surface you operate */
.deck { border-radius: 32px; background: var(--surface); box-shadow: inset 0 1px 0 var(--glass-edge), 0 0 0 1px var(--hair), var(--shadow-lg); }
.col-list, .col-detail, .rail-wrap, .tabs { border-color: var(--hair); }
.clockbar { padding: 26px 26px 12px; }
.icon-btn.play, .deck .icon-btn.play:hover:not(:disabled) { background: var(--flag); color: #fff; box-shadow: 0 6px 16px -6px color-mix(in srgb, var(--flag) 70%, transparent); }
.row, .ditem, .suggest button { border-radius: 14px; }
.row[aria-current="true"] { background: var(--press); }
.tabs { position: sticky; top: 0; z-index: 2; background: var(--glass); -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px); }
.scroller, .fleet { overscroll-behavior: contain; }
.map { border-radius: 22px; }
.btn, .approve button { background: var(--flag); color: #fff; }
.verdict { letter-spacing: var(--track-small); }
.pill.change { background: var(--flag); color: #fff; }
.deck-foot { margin-top: 28px; }

/* ------------------------------------------------------------------ how it works: three habits, each in the colour of what it is about */
.habits { display: grid; grid-template-columns: 1.15fr 1fr 1fr; gap: 20px; margin-top: 64px; }
.habit { display: flex; flex-direction: column; justify-content: space-between; gap: 36px; padding: 40px 36px 36px; border: 0; border-radius: var(--radius); background: var(--surface);
  box-shadow: 0 0 0 1px var(--hair); min-height: 520px; transition: transform .5s var(--spring), box-shadow .5s var(--spring); }
@media (hover: hover) { .habit:hover { transform: translateY(-6px); box-shadow: 0 0 0 1px var(--hair), var(--shadow-lg); } }
.habit p { margin-top: 14px; font-size: 1.0625rem; line-height: 1.5; letter-spacing: var(--track-body); color: var(--ink-3); }
.habit:nth-child(1) { background: #0e1a26; box-shadow: none; color: #f4f6f8; --ink: #f4f6f8; --ink-2: #c7d1d9; --ink-3: #93a3b0; --surface: #0e1a26; --chip: rgba(255,255,255,.07); --flag-ink: #ff7a90; --flag: #ff4766; }
.habit:nth-child(2) { background: color-mix(in srgb, var(--brass) 16%, var(--surface)); box-shadow: 0 0 0 1px color-mix(in srgb, var(--brass) 30%, transparent); }
.habit:nth-child(2) .ill { background: color-mix(in srgb, var(--brass) 12%, var(--surface)); }
.habit:nth-child(3) { background: var(--flag-wash); box-shadow: 0 0 0 1px color-mix(in srgb, var(--flag) 22%, transparent); }
.habit:nth-child(3) .ill { background: color-mix(in srgb, var(--surface) 70%, transparent); }
.ill { justify-self: stretch; max-width: none; min-height: 0; padding: 22px; border-radius: 20px; background: var(--chip); box-shadow: none; }

/* ------------------------------------------------------------------ under the hood: dark, like a keynote slide */
.hood { background-color: #000; background-image: radial-gradient(circle at center, rgba(244,246,248,.16) 1.1px, transparent 1.6px); background-size: 32px 32px; background-position: 16px 16px; color: #f5f5f7; box-shadow: none;
  --ink: #f5f5f7; --ink-2: #c7c7cc; --ink-3: #98989d; --hair: rgba(255,255,255,.12); --hair-2: rgba(255,255,255,.24); --chip: rgba(255,255,255,.08); --press: rgba(255,255,255,.14); --page: #000; --surface: #161618; --flag-ink: #ff6b83; --flag: #ff3b5c; }
.hood-lede { font-size: 1.3rem; }
.jobs dd { color: var(--ink-2); }
.hood pre.cypher { background: #111113; box-shadow: inset 0 1px 0 rgba(255,255,255,.06), 0 0 0 1px var(--hair); border-radius: 24px; }
.code-tabs button[aria-selected="true"] { background: #f5f5f7; color: #000; }
.bar-fill { background: var(--flag); }
.bar-row.sql .bar-fill { background: color-mix(in srgb, var(--flag) 55%, #000); }
.bar-row.retrieval .bar-fill { background: color-mix(in srgb, var(--flag) 30%, #000); }
.table-scroll { background: #111113; }

.toast { background: var(--glass); color: var(--ink); -webkit-backdrop-filter: saturate(180%) blur(24px); backdrop-filter: saturate(180%) blur(24px); box-shadow: inset 0 1px 0 var(--glass-edge), 0 0 0 1px var(--hair), var(--shadow-lg); }

/* ------------------------------------------------------------------ depth ruler: the page is a chain, and you are at some hop */
.depth { display: none; }
@media (min-width: 1366px) and (hover: hover) {
  .depth { display: block; position: fixed; z-index: 30; left: 22px; top: 50%; height: min(300px, 40vh); width: 40px; transform: translateY(-50%); color: #fff; mix-blend-mode: difference; pointer-events: none; font-family: var(--text); font-size: .6875rem; }
  .depth-line { position: absolute; left: 6px; top: 0; bottom: 0; width: 1px; background: currentColor; opacity: .45; }
  .depth-tick { position: absolute; left: 0; top: calc(var(--p) * 33.3333%); transform: translateY(-50%); display: flex; align-items: center; gap: 12px; white-space: nowrap; opacity: .5; transition: opacity .3s; }
  .depth-tick::before { content: ""; width: 13px; height: 1px; background: currentColor; }
  .depth-tick i { font-style: normal; font-variant-numeric: tabular-nums; margin-left: -6px; }
  .depth-tick b { font-weight: 400; opacity: 0; transform: translateX(-4px); transition: opacity .3s, transform .4s var(--spring); }
  .depth-tick.on { opacity: 1; }
  .depth-bob { position: absolute; left: 6px; top: 0; transform: translate(-50%, 0); will-change: transform; filter: drop-shadow(0 2px 3px rgba(0,0,0,.3)); }
  .depth-bob svg { display: block; margin-top: -3px; }
}
@media (min-width: 1500px) and (hover: hover) { .depth-tick.on b { opacity: .85; transform: none; } }

/* ------------------------------------------------------------------ narrower screens */
@media (max-width: 959px) {
  .hero-inner { grid-template-columns: minmax(0, 1fr); gap: 56px; }
  .hero { align-items: flex-start; padding: 110px 0 72px; min-height: auto; }
  .band { padding: 88px 0; }
  .habits { grid-template-columns: minmax(0, 1fr); }
  .habit { min-height: 0; }
}
@media (max-width: 640px) {
  .hero h1 { font-size: 2.6rem; }
  .nav { padding-left: 18px; }
  .nav-links a { display: none; }
  .chain { padding-left: 24px; }
}

/* ------------------------------------------------------------------ accessibility paths: reduced motion, reduced transparency, more contrast */
@media (prefers-reduced-motion: reduce) {
  .habit:hover { transform: none; }
  .depth-tick b { transition: none; }
}
@media (prefers-reduced-transparency: reduce) {
  .nav, .nav.solid, .nav:not(.solid), .tabs, .toast { background: var(--surface); -webkit-backdrop-filter: none; backdrop-filter: none; }
  .nav:not(.solid) { background: #11161c; }
}
@media (prefers-contrast: more) {
  :root { --hair: rgba(0,0,0,.5); --ink-3: var(--ink-2); --dot: rgba(0,0,0,.3); }
  .hero { --h-dim: #f4f6f8; }
  .hero-sub, .chain .cap, .chain figcaption { color: #f4f6f8; }
}

/* ---- Memory graph: decisions and the facts they assumed (js/memory.js) ---- */
.memory { margin-bottom: 22px; padding: 16px 16px 12px; border-radius: 20px; background: color-mix(in srgb, var(--ink) 3.5%, var(--surface)); box-shadow: 0 0 0 1px var(--hair); }
.memory .wq-head { margin: 0 0 4px; }
.m-sentence { margin: 0 0 8px; font-size: .9rem; color: var(--ink-2); line-height: 1.45; letter-spacing: var(--track-body); }
.m-sentence b { color: var(--flag-ink); font-weight: 600; }
.memory-svg { display: block; width: 100%; height: auto; overflow: visible; }
.m-edge { fill: none; stroke: var(--hair-2); stroke-width: 1.4; transition: stroke .3s; }
.m-edge.bad { stroke: var(--flag); stroke-width: 2; stroke-dasharray: 5 4; animation: m-flow 1.1s linear infinite; }
.m-node rect { fill: var(--surface); stroke: var(--hair-2); stroke-width: 1.2; transition: fill .3s, stroke .3s; }
.m-node text { fill: var(--ink); font: 500 12px/1 var(--text); letter-spacing: var(--track-body); pointer-events: none; }
.m-dec { cursor: pointer; outline: none; }
.m-dec:hover rect, .m-dec:focus-visible rect { stroke: var(--ink-2); }
.m-dec:focus-visible rect { stroke-width: 2.4; }
.m-dec.sel rect { stroke: var(--ink); stroke-width: 2; }
.m-dec.bad rect { fill: var(--flag-wash); stroke: var(--flag); }
.m-fact.lock text { fill: var(--ink-3); }
.m-fact.advisory rect { fill: color-mix(in srgb, var(--brass) 14%, var(--surface)); stroke: color-mix(in srgb, var(--brass) 50%, transparent); }
.m-fact.bad rect { fill: var(--flag-wash); stroke: var(--flag); stroke-width: 1.8; }
.m-fact.bad text { fill: var(--flag-ink); font-weight: 600; }
.m-share { fill: var(--ink-3) !important; font-variant-numeric: tabular-nums; }
.m-pulse { fill: var(--flag); }
.m-legend { display: flex; flex-wrap: wrap; gap: 4px 14px; align-items: center; margin: 10px 0 0; font-size: .75rem; color: var(--ink-3); }
.m-legend code { font: 500 .72rem var(--mono); color: var(--ink-2); }
.m-legend .k { display: inline-block; width: 10px; height: 10px; margin-right: 5px; border-radius: 4px; vertical-align: -1px; background: var(--surface); box-shadow: inset 0 0 0 1.2px var(--hair-2); }
.m-legend .k.fact { border-radius: 99px; background: color-mix(in srgb, var(--brass) 25%, var(--surface)); }
.m-legend .k.bad { background: var(--flag-wash); box-shadow: inset 0 0 0 1.4px var(--flag); }
.section.reopened .memory-svg { margin: 4px 0 12px; padding: 10px 8px; border-radius: 16px; background: color-mix(in srgb, var(--ink) 3.5%, var(--surface)); box-shadow: 0 0 0 1px var(--hair); }
.plumb-svg .rel { fill: var(--ink-3); font: 500 9.5px var(--mono); letter-spacing: .02em; }
@keyframes m-flow { to { stroke-dashoffset: -18; } }
@media (prefers-reduced-motion: reduce) { .m-edge.bad { animation: none; } }

/* ---- The dependency graph inline under the verdict ---- */
.ev-graph { margin-top: 22px; }
.ev-graph h4 { margin: 0 0 8px; font-size: .9rem; font-weight: 600; color: var(--ink-3); }
.map.mini { height: 260px; }

/* ---- The agent's trace as a chain through the graph ---- */
ol.trace { position: relative; margin: 14px 0; padding: 0; list-style: none; }
ol.trace::before { content: ""; position: absolute; left: 6px; top: 12px; bottom: 12px; width: 2px; background: var(--hair-2); border-radius: 2px; }
ol.trace .call { position: relative; display: block; padding: 6px 0 6px 28px; font-size: .86rem; line-height: 1.45; }
ol.trace .call .node { position: absolute; left: 0; top: 11px; width: 14px; height: 14px; border-radius: 99px; background: var(--surface); box-shadow: inset 0 0 0 2px var(--ink-2); }
ol.trace .call:last-child .node { background: var(--ink); }
ol.trace .op { display: block; margin-top: 2px; font: 500 .74rem var(--mono); color: var(--ink-3); }
ol.trace { border-left: 0; padding-left: 0; font: 400 .86rem/1.45 var(--text); letter-spacing: var(--track-body); overflow: visible; }
ol.trace .call::before { content: none; }
ol.trace .call b { font-family: var(--mono); font-weight: 500; font-size: .82rem; }
.answer p { margin: 0 0 10px; font-size: .96rem; line-height: 1.5; }
.answer p:first-child { font-weight: 600; }

/* ---- Pointing at the demo: the checker is the one call to action ---- */
.nav-links a.nav-cta { margin-left: 4px; padding: 7px 15px; border-radius: 99px; background: var(--flag); color: #fff; opacity: 1; font-weight: 600; box-shadow: 0 1px 0 rgba(255,255,255,.25) inset; }
.nav-links a.nav-cta:hover, .nav:not(.solid) .nav-links a.nav-cta:hover { background: color-mix(in srgb, var(--flag) 88%, #fff); }
.hero-try { display: inline-flex; align-items: center; padding: 12px 22px; border-radius: 99px; font: 600 1.0625rem var(--text); letter-spacing: var(--track-body); color: #fff; text-decoration: none; box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.4); transition: background-color .2s; }
.hero-try:hover { background: rgba(255,255,255,.12); }
.hero-try:active { transform: scale(.97); }
.try-strip { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 24px; margin: 22px 0 0; padding: 18px 22px; border-radius: 22px; background: var(--flag-wash); box-shadow: 0 0 0 1px color-mix(in srgb, var(--flag) 30%, transparent); }
.try-strip[hidden] { display: none; }
.try-strip span { font-size: 1.0625rem; font-weight: 500; letter-spacing: var(--track-body); }
.try-strip .btn { padding: 11px 22px; border-radius: 99px; text-decoration: none; font-weight: 600; }
.hero-try[hidden], .nav-links a.nav-cta[hidden] { display: none; }

/* ---- The proof: a real button, and a result you can see ---- */
details.proof > summary { padding: 10px 0; font-size: 1rem; color: var(--ink); }
.stamp dd button.link#verify { display: inline-flex; align-items: center; gap: 6px; padding: 9px 18px; border-radius: 99px; background: var(--ink); color: var(--surface); font: 600 .9rem var(--text); text-decoration: none; letter-spacing: var(--track-small); }
.stamp dd button.link#verify:hover:not(:disabled) { color: var(--surface); opacity: .85; }
.stamp dd button.link#verify:active:not(:disabled) { transform: scale(.97); }
.stamp dd button.link#verify:disabled { opacity: .4; }
.result.ok, .result.bad { display: inline-block; margin: 10px 0 0 0; padding: 8px 14px; border-radius: 12px; font: 600 .92rem var(--text); line-height: 1.35; }
.result.ok { color: #0a7a4b; background: rgba(20,160,100,.12); box-shadow: 0 0 0 1px rgba(20,160,100,.35); }
.result.bad { color: var(--flag-ink); background: var(--flag-wash); box-shadow: 0 0 0 1px var(--flag); }
.result:empty { display: none; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .result.ok { color: #4fd3a0; } }
:root[data-theme="dark"] .result.ok { color: #4fd3a0; }
