/* Decision Note pages (insights/<note>.html): reading column, numbered sections, margin notes, figures, the live decision-gap figure, related notes. */
.container.note-wrap { max-width: calc(976px + 2 * var(--space-8)); }
.note-page { padding-top: 72px; }

/* ---------- Head ---------- */
.note-head { padding-top: var(--space-8); padding-bottom: var(--space-7); }
.note-back { display: inline-flex; gap: 8px; margin-bottom: var(--space-7); text-decoration: none; transition: color var(--duration-hover) var(--ease-standard); }
.note-back:hover { color: var(--ink); }
.note-h1 { max-width: 900px; margin: var(--space-4) 0 var(--space-5); font-family: var(--font-display); font-weight: 400; font-size: clamp(36px, 5vw, 56px); line-height: 1.1; letter-spacing: -0.01em; }
.note-dek { max-width: 680px; margin: 0 0 var(--space-6); font-size: 20px; line-height: 32px; color: var(--ink-muted); }
.note-meta { margin: 0; padding-top: var(--space-4); border-top: 1px solid var(--line); }

/* ---------- Body ---------- */
.note-text { padding-bottom: var(--space-8); }
.note-text > p, .note-text > ul, .note-text > ol, .with-note > p, .with-note > ul, .with-note > ol {
  max-width: 680px; margin: 0 0 var(--space-5);
  font-size: 18px; line-height: 30px; color: var(--ink);
}
.note-text em { font-style: italic; }
.note-text strong { font-weight: 600; }
.note-text a { color: var(--accent-text); text-underline-offset: 3px; }
.note-text ul, .note-text ol { padding-left: 1.3em; }
.note-text li { margin-bottom: var(--space-3); padding-left: 4px; }
.note-text ul li::marker { color: var(--accent-text); }
.note-text ol li::marker { font-family: var(--font-mono); font-size: 14px; font-weight: 500; color: var(--accent-text); }

.note-h2 {
  max-width: 680px; margin: var(--space-8) 0 var(--space-5); padding-top: var(--space-5);
  font-family: var(--font-display); font-weight: 400; font-size: 30px; line-height: 36px;
  border-top: 1px solid var(--line);
}
.note-sec { display: block; margin-bottom: var(--space-3); font-family: var(--font-mono); font-size: 12px; line-height: 16px; font-weight: 500; letter-spacing: 0.14em; color: var(--accent-text); }

/* Margin notes sit beside the block they annotate */
.with-note { display: grid; grid-template-columns: minmax(0, 680px) 240px; gap: var(--space-7); align-items: start; }
.margin-note { margin: 6px 0 var(--space-5); padding-left: var(--space-4); border-left: 2px solid var(--accent); font-size: 14px; line-height: 22px; color: var(--ink-muted); }
.margin-note .mono-label { display: block; margin-bottom: 4px; color: var(--accent-text); }

.note-fig { max-width: 976px; margin: var(--space-7) 0; }
.note-record { max-width: 680px; margin: var(--space-6) 0 var(--space-7); }

/* ---------- End: related notes + close ---------- */
.note-end { padding-top: var(--space-8); padding-bottom: var(--space-9); border-top: 1px solid var(--line); }
.related-head { margin-bottom: var(--space-5); }
.note-related-title { margin: var(--space-3) 0 0; font-family: var(--font-display); font-weight: 400; font-size: 30px; line-height: 36px; }
.related { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-4); margin-bottom: var(--space-8); }
.note-close { padding: var(--space-7); }
.note-close-title { font-size: clamp(28px, 3.4vw, 40px); margin-bottom: var(--space-6); }
/* the full site footer (tools/nav.py); its blurb style lives in site.css, which this page does not load */
.foot-blurb { max-width: 300px; margin: var(--space-4) 0 0; font-size: 14px; line-height: 22px; color: var(--ink-muted); }

/* Not found */
.note-missing { max-width: 680px; font-size: 18px; line-height: 30px; color: var(--ink-muted); }

@media (max-width: 1100px) {
  .with-note { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .margin-note { max-width: 680px; margin-top: calc(-1 * var(--space-2)); }
}
@media (max-width: 720px) {
  .note-head { padding-top: var(--space-6); }
  .note-dek { font-size: 18px; line-height: 28px; }
  .note-text > p, .note-text > ul, .note-text > ol, .with-note > p, .with-note > ul, .with-note > ol { font-size: 17px; line-height: 28px; }
  .note-h2 { font-size: 26px; line-height: 32px; }
  .related { grid-template-columns: minmax(0, 1fr); }
  .note-close { padding: var(--space-5); }
  .nav-cta { display: none; }
}

/* The note's cover illustration, between the header and the text */
.note-cover { margin-top: 0; margin-bottom: var(--space-8); }
.note-cover img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; background: var(--surface-200); border: 1px solid var(--line); border-radius: var(--radius-lg); }   /* light behind the white-model covers */
.note-close-title { text-wrap: balance; }   /* no single word left on the last line */

/* Note 03 figure: the homepage discipline cards (copied from site.css so the colours match) over a live timeline */
/* Each discipline keeps its own consultant, tools and versions; the cards sit apart on a dot field, joined only by dotted lines */
.disc-panel { position: relative; padding: var(--space-8) var(--space-6) var(--space-6); background: var(--surface-100); border: 1px solid var(--line); border-radius: var(--radius-lg);
  background-image: radial-gradient(var(--dot) 1px, transparent 1.2px); background-size: 16px 16px; }
.disc-row { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: var(--space-4); margin: 0; padding: 0; list-style: none; }
.disc { position: relative; display: grid; gap: 6px; align-content: start; padding: var(--space-4); background: var(--surface-000); border: 1px solid var(--line-strong); border-radius: var(--radius-md);
  transform: translateY(var(--dy, 0)); }
.disc:nth-child(odd) { --dy: 12px; } .disc:nth-child(even) { --dy: -12px; }
.disc + .disc::before { content: ""; position: absolute; left: calc(-1 * var(--space-4)); top: 50%; width: var(--space-4); border-top: 1px dashed var(--line-strong); }
.disc-tick { position: absolute; top: -1px; left: var(--space-3); width: 28px; height: 2px; background: var(--c); }
.disc-name { font-family: var(--font-display); font-size: clamp(14px, 1.15vw, 18px); line-height: 1.2; text-transform: uppercase; color: var(--ink); }
.disc-team { font-family: var(--font-mono); font-size: 10px; line-height: 14px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-muted); }
.disc-art { display: block; margin-top: 6px; padding: 6px; background: color-mix(in srgb, var(--ink) 3%, transparent); border: 1px solid var(--line); border-radius: var(--radius-sm); }
.disc-art svg { display: block; width: 100%; height: auto; }
.disc-vers { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.disc-vers span { padding: 3px 7px; font-family: var(--font-mono); font-size: 10px; line-height: 14px; letter-spacing: 0.04em; color: var(--ink-muted); border: 1px solid var(--line-strong); border-radius: var(--radius-xs); }
/* mini artwork: each in its discipline's colour */
.da-text text { font-family: var(--font-mono); font-size: 15px; fill: var(--ink-muted); } .da-text .da-hi { fill: var(--c); }
.da-grid line { stroke: var(--line); stroke-width: 1; } .da-box rect { fill: color-mix(in srgb, var(--c) 32%, transparent); stroke: var(--c); stroke-width: 1.2; } /* the card's own colour, like the other cards */
.da-iso .t { fill: var(--surface-300); } .da-iso .l { fill: var(--surface-200); } .da-iso .r { fill: var(--surface-100); } .da-iso path { stroke: var(--ink); stroke-opacity: .55; stroke-width: .8; }
.da-net path { fill: none; stroke: var(--c); stroke-opacity: .7; stroke-width: 1; } .da-node circle { fill: var(--c); }
.da-bar rect { fill: var(--c); fill-opacity: .55; } .da-line { fill: none; stroke: var(--ink); stroke-opacity: .7; stroke-width: 1.2; }
/* entrance: the cards rise one after another, out of step with each other */
.js .disc-fig .disc { opacity: 0; transform: translateY(calc(var(--dy, 0px) + 18px)); transition: opacity var(--duration-layer) var(--ease-layer), transform var(--duration-layer) var(--ease-layer); transition-delay: calc(var(--i) * 110ms + 150ms); }
.js .disc-fig.is-in .disc { opacity: 1; transform: translateY(var(--dy, 0)); }
@media (max-width: 1180px) { .disc-row { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: var(--space-6); } .disc:nth-child(3n + 1)::before { display: none; } }
@media (max-width: 640px) { .disc-panel { padding: var(--space-5) var(--space-4); } .disc { padding: 14px; } .disc-row { grid-template-columns: repeat(2, minmax(0, 1fr)); } .disc:nth-child(3n + 1)::before { display: block; } .disc:nth-child(odd)::before { display: none; } .disc-name { font-size: 13px; line-height: 18px; } }
@media (prefers-reduced-motion: reduce) { .js .disc-fig .disc { opacity: 1; transform: translateY(var(--dy, 0)); transition: none; } }
.da-map rect { fill: color-mix(in srgb, var(--c) 14%, transparent); stroke: color-mix(in srgb, var(--c) 70%, transparent); stroke-width: 1; }
.da-map rect.hi { fill: color-mix(in srgb, var(--c) 45%, transparent); stroke: var(--c); stroke-width: 1.4; }
.da-road { fill: none; stroke: color-mix(in srgb, var(--c) 45%, transparent); stroke-width: 1; stroke-dasharray: 4 4; }
.gap-fig { max-width: none; }
.gap-fig .disc-panel { padding: var(--space-7) var(--space-5) var(--space-5); }
.gap-sub { margin: var(--space-6) 0 var(--space-3); color: var(--ink-muted); }
.gt { display: block; width: 100%; height: auto; overflow: visible; }
.gt text { font-family: var(--font-mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; }
.gt-after { fill: color-mix(in srgb, var(--warning-text) 7%, transparent); }
.gt-axis { stroke: var(--ink-muted); stroke-width: 1.2; }
.gt-tick { stroke: var(--ink-muted); stroke-width: 1; }
.gt-m { fill: var(--ink-muted); font-size: 10px !important; }
.gt-stem { stroke: var(--ink-faint); stroke-width: 1; stroke-dasharray: 2 3; }
.gt-doc { fill: var(--surface-100); stroke: var(--ink-muted); stroke-width: 1; } .gt-doc-l { stroke: var(--ink-muted); stroke-width: 1; }
.gt-r { fill: var(--ink); }
.gt-commit { stroke: var(--warning-text); stroke-width: 2.4; } .gt-commit-dot { fill: var(--warning-text); }
.gt-commit-t, .gt-note { fill: var(--warning-text); font-weight: 600; }
/* phones: the timeline keeps a readable size and scrolls sideways inside the panel */
.gt-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
@media (max-width: 720px) { .gt { min-width: 760px; } }
