/* =========================================================
   DECALCOMANI — Research notes (notes/*.html)
   Shared article stylesheet: hero, prose extras, figures,
   diagram primitives, key points, references, related cards.
   Colors: CSS custom properties only (dark mode safe).
   ========================================================= */

/* ---------- Article hero ---------- */
.article-hero { overflow: hidden; }
.article-hero__grid {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(220px, 290px);
  gap: clamp(2rem, 5vw, 4.5rem); align-items: end;
}
.article-hero .display { font-size: clamp(2rem, 4.6vw, 3.45rem); max-width: 19ch; }
.display__sub {
  display: block; margin-top: .55rem;
  font-size: .52em; font-weight: 500; line-height: 1.35; letter-spacing: -.01em;
  color: var(--ink-2);
}
.article-hero .lede { margin-bottom: 0; }
.article-meta { align-items: center; }
.article-meta > span { display: inline-flex; align-items: center; gap: .45rem; flex-wrap: wrap; }
.article-meta b { font-weight: 600; color: var(--ink); letter-spacing: .08em; text-transform: uppercase; font-size: 11px; }
.article-meta .evidence { font-size: 10.5px; }
.article-plate { margin: 0; }
.article-plate .specimen__plate { aspect-ratio: 1 / 1; display: grid; place-items: center; }
.article-plate .specimen__plate svg { width: 100%; height: 100%; }
@media (max-width: 900px) {
  .article-hero__grid { grid-template-columns: 1fr; }
  .article-plate { display: none; }
}

/* ---------- Article body layout ---------- */
.article-body { padding-block: clamp(2.5rem, 6vw, 4rem) clamp(3rem, 7vw, 5rem); }
.article-aside { display: grid; gap: 1.5rem; }
.aside-card {
  padding: 1rem 1.1rem; background: var(--surface);
  border: 1px solid var(--rule); border-radius: var(--radius-lg);
  font-size: 13px; line-height: 1.6; color: var(--ink-2);
}
.aside-card__title { margin: 0 0 .6rem; font-family: var(--font-mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
.aside-card ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .45rem; }
.aside-card a { color: var(--accent); text-decoration: none; }
.aside-card a:hover { text-decoration: underline; }
.toc ol { counter-reset: toc; }
.toc li { counter-increment: toc; }
.toc a::before { content: counter(toc, decimal-leading-zero); margin-right: .6rem; font-family: var(--font-mono); font-size: 10.5px; color: var(--ink-3); }
@media (max-width: 1000px) {
  .article-aside { gap: 1rem; }
  .article-aside .toc { padding: 1rem 1.1rem; background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius-lg); }
  .article-aside .aside-card { display: none; }
}

/* ---------- Prose extras ---------- */
.prose { counter-reset: sec; }
.prose h2[id] { counter-increment: sec; scroll-margin-top: calc(var(--header-h) + 16px); }
.prose h2[id]::before {
  content: "§ " counter(sec, decimal-leading-zero);
  display: block; margin-bottom: .55rem;
  font-family: var(--font-mono); font-size: 12px; font-weight: 500; letter-spacing: .08em; color: var(--accent);
}
.prose h2#references { counter-increment: none; }
.prose h2#references::before { content: "References"; text-transform: uppercase; }
.prose h2 { padding-top: 2.2rem; border-top: 1px solid var(--rule); }
.prose .keypoints + h2, .prose > h2:first-child { border-top: 0; padding-top: 0; }
.section-ev { display: flex; flex-wrap: wrap; gap: .4rem; margin: -.25rem 0 1.25rem; }
.prose .evidence { font-size: 10.5px; margin-inline: .15rem; }
.prose .pull {
  margin: 2rem 0; padding: .2rem 0 .2rem 1.25rem;
  border-left: 3px solid var(--accent);
  font-family: var(--font-serif); font-size: clamp(1.12rem, 2vw, 1.3rem); line-height: 1.65; color: var(--ink);
}
.prose .callout { margin: 1.75rem 0; font-size: 15px; line-height: 1.75; }
.prose .table-wrap { margin: 2rem 0; }
.prose .data-table { font-size: 14px; line-height: 1.6; }
.prose .data-table td, .prose .data-table th { min-width: 9rem; }
.prose .ad-slot { margin-block: 2.75rem; }
.prose abbr { text-decoration: none; border-bottom: 1px dotted var(--ink-3); cursor: help; }
.term { font-family: var(--font-mono); font-size: .82em; letter-spacing: .02em; color: var(--ink-3); }
.prose .keypoints ul { margin: 0; }
.keypoints { border-top: 3px solid var(--accent); }
.keypoints li::marker { color: var(--accent); }

/* Steps: ordered practice list with mono numbers */
.steps { list-style: none; counter-reset: step; padding: 0 !important; margin: 1.5rem 0 1.75rem; display: grid; gap: .75rem; }
.steps > li {
  counter-increment: step; position: relative; margin: 0;
  padding: .95rem 1.1rem .95rem 3.4rem;
  background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius-lg);
  font-size: 15.5px; line-height: 1.7;
}
.steps > li::before {
  content: counter(step, decimal-leading-zero);
  position: absolute; left: 1.1rem; top: 1rem;
  font-family: var(--font-mono); font-size: 12px; font-weight: 600; color: var(--accent);
}
.steps strong { display: block; margin-bottom: .15rem; }

/* Compare grid: two or three side-by-side cards */
.compare-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: .75rem; margin: 0; }
.compare-card {
  padding: 1rem 1.05rem; background: var(--paper);
  border: 1px solid var(--rule); border-radius: var(--radius);
  font-size: 14px; line-height: 1.6; color: var(--ink-2);
}
.compare-card--accent { border-color: var(--accent); box-shadow: inset 0 3px 0 var(--accent); }
.compare-card__k { display: block; font-family: var(--font-mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.compare-card__t { display: block; margin: .3rem 0 .4rem; font-family: var(--font-serif); font-size: 1.05rem; font-weight: 700; color: var(--ink); line-height: 1.4; }
.compare-card p { margin: 0; }
.compare-card .result { margin-top: .6rem; padding-top: .55rem; border-top: 1px dashed var(--rule-strong); font-family: var(--font-mono); font-size: 12px; color: var(--ink); }

/* Timeline (generic) */
.timeline { list-style: none; margin: 1.5rem 0; padding: 0 0 0 1.4rem !important; border-left: 1px solid var(--rule-strong); }
.timeline > li { position: relative; margin: 0 0 1.1rem; }
.timeline > li::before { content: ""; position: absolute; left: calc(-1.4rem - 4.5px); top: .6em; width: 8px; height: 8px; border-radius: 50%; background: var(--paper); border: 1.5px solid var(--accent); }
.timeline__y { display: block; font-family: var(--font-mono); font-size: 12px; letter-spacing: .06em; color: var(--accent); }

/* ---------- Figures ---------- */
.prose .figure { margin: 2.25rem 0; }
.figure__head {
  display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap;
  padding: .6rem 1.1rem; border-bottom: 1px solid var(--rule); background: var(--paper-2);
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3);
}
.figure__tag { display: inline-flex; align-items: center; gap: .4rem; color: var(--accent); }
.figure__tag::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.figure figcaption { font-size: 13.5px; line-height: 1.65; }
.fig-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.fig-scroll > svg, .fig-scroll > .fig-wide { min-width: 500px; }
.fig-controls {
  display: flex; flex-wrap: wrap; align-items: flex-end; gap: 1rem 1.5rem;
  margin-top: 1.1rem; padding-top: 1.1rem; border-top: 1px dashed var(--rule);
}
.fig-range { flex: 1 1 200px; display: flex; flex-direction: column; gap: .3rem; min-width: 0; }
.fig-range label { display: flex; justify-content: space-between; gap: .75rem; font-size: 13px; font-weight: 600; color: var(--ink-2); }
.fig-range output { font-family: var(--font-mono); font-weight: 500; color: var(--accent); }
.fig-range__ends { display: flex; justify-content: space-between; font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .04em; color: var(--ink-3); }
.fig-presets { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; }
.fig-presets__label { font-family: var(--font-mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); margin-right: .25rem; }
.fig-readout {
  margin: 1rem 0 0; padding: .8rem 1rem;
  background: var(--paper-2); border: 1px solid var(--rule); border-radius: var(--radius);
  font-size: 14.5px; line-height: 1.7; color: var(--ink-2);
}
.fig-readout strong { color: var(--ink); }
.fig-readout .mono { font-size: 12.5px; color: var(--accent); }
.fig-legend { display: flex; flex-wrap: wrap; gap: .4rem 1.1rem; margin-top: .8rem; font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .03em; color: var(--ink-3); }
.fig-legend span { display: inline-flex; align-items: center; gap: .45rem; }
.swatch { display: inline-block; width: 18px; height: 0; border-top: 2.5px solid var(--sw, var(--ink)); flex-shrink: 0; }
.swatch--dash { border-top-style: dashed; }
.swatch--dot { width: 10px; height: 10px; border: 0; border-radius: 50%; background: var(--sw, var(--ink)); }
.fig-note { margin-top: .6rem; font-family: var(--font-mono); font-size: 11px; letter-spacing: .03em; color: var(--ink-3); }
html:not(.js) .needs-js { display: none !important; }

/* Diagram primitives for inline SVG (theme-aware) */
.fig-svg { display: block; width: 100%; height: auto; overflow: visible; font-family: var(--font-mono); }
.fig-svg .axis { stroke: var(--rule-strong); stroke-width: 1; fill: none; }
.fig-svg .gridline { stroke: var(--rule); stroke-width: 1; fill: none; stroke-dasharray: 2 4; }
.fig-svg .t { fill: var(--ink-3); font-size: 12px; letter-spacing: .03em; }
.fig-svg .t-sm { font-size: 10.5px; }
.fig-svg .t-lg { font-size: 14px; }
.fig-svg .t-ink { fill: var(--ink); }
.fig-svg .t-ink2 { fill: var(--ink-2); }
.fig-svg .t-accent { fill: var(--accent); }
.fig-svg .t-signal { fill: var(--signal); }
.fig-svg .t-sans { font-family: var(--font-sans); letter-spacing: 0; }
.fig-svg .ln { fill: none; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.fig-svg .ln-accent { stroke: var(--accent); }
.fig-svg .ln-ink { stroke: var(--ink-2); }
.fig-svg .ln-muted { stroke: var(--ink-3); }
.fig-svg .ln-signal { stroke: var(--signal); }
.fig-svg .ln-dash { stroke-dasharray: 6 5; }
.fig-svg .ln-thin { stroke-width: 1.4; }
.fig-svg .area-accent { fill: var(--accent-soft); stroke: none; }
.fig-svg .area-soft { fill: var(--paper-2); stroke: none; }
.fig-svg .fill-surface { fill: var(--surface); }
.fig-svg .fill-paper { fill: var(--paper); }
.fig-svg .fill-ink { fill: var(--ink); }
.fig-svg .fill-ink3 { fill: var(--ink-3); }
.fig-svg .fill-accent { fill: var(--accent); }
.fig-svg .fill-signal { fill: var(--signal); }
.fig-svg .fill-rule { fill: var(--rule-strong); }
.fig-svg .stroke-rule { stroke: var(--rule-strong); fill: none; }

/* Hierarchy diagram (stacked levels with bidirectional links) */
.hier { display: grid; gap: 0; max-width: 560px; margin-inline: auto; }
.hier__level {
  display: grid; grid-template-columns: 3.2rem minmax(0, 1fr); gap: .25rem .9rem; align-items: baseline;
  padding: .85rem 1rem; background: var(--paper); border: 1px solid var(--rule-strong); border-radius: var(--radius);
}
.hier__level--input { border-style: dashed; background: transparent; }
.hier__n { grid-row: span 2; font-family: var(--font-mono); font-size: 11px; font-weight: 600; letter-spacing: .08em; color: var(--ink-3); }
.hier__t { font-family: var(--font-serif); font-weight: 700; color: var(--ink); font-size: 15.5px; line-height: 1.45; }
.hier__d { font-size: 13.5px; line-height: 1.55; color: var(--ink-2); }
.hier__link { display: flex; justify-content: center; gap: clamp(1.5rem, 8vw, 4rem); padding: .45rem 0; font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .04em; }
.hier__down { color: var(--accent); }
.hier__up { color: var(--signal); }
.hier__down::before, .hier__up::before { display: inline-block; margin-right: .35rem; font-size: 15px; line-height: 1; }
.hier__down::before { content: "↓"; }
.hier__up::before { content: "↑"; }

/* ---------- References ---------- */
.refs { margin-top: 1rem; }
.refs i { font-style: italic; }
.refs .ref-note { display: block; margin-top: .15rem; font-size: 12.5px; color: var(--ink-3); }

/* ---------- Article end: colophon + related notes ---------- */
.article-colophon {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 1.5rem;
  margin-top: 2.5rem; padding-top: 1rem; border-top: 1px dashed var(--rule-strong);
  font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .04em; color: var(--ink-3);
}
.article-colophon a { color: var(--accent); text-decoration: none; }
.article-colophon a:hover { text-decoration: underline; }

.related { padding-block: clamp(2.5rem, 6vw, 4rem); background: var(--paper-2); border-top: 1px solid var(--rule); }
.related__head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.25rem; }
.related__head h2 { margin: 0; font-size: clamp(1.3rem, 2.4vw, 1.7rem); }
.related__head a { font-family: var(--font-mono); font-size: 12px; letter-spacing: .04em; color: var(--accent); text-decoration: none; }
.related__head a:hover { text-decoration: underline; }
.related-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: clamp(.75rem, 2vw, 1.1rem); }
.related-card { display: flex; flex-direction: column; min-height: 100%; }
.related-card .card__title { font-size: 1.08rem; line-height: 1.45; }
.related-card .card__body { font-size: 14px; }
.related-card .card__foot { margin-top: auto; padding-top: 1rem; }
.related-card--page { border-style: dashed; }

/* Generic note card (usable by notes index) */
.note-card { display: flex; flex-direction: column; gap: .35rem; }
.note-card__n { font-family: var(--font-mono); font-size: 12px; letter-spacing: .06em; color: var(--accent); }

/* =========================================================
   Article-specific figures
   ========================================================= */

/* N-01 · Context demo (ambiguous B / 13) */
.ctx-demo { display: grid; grid-template-columns: repeat(3, minmax(0, 5.5rem)); grid-template-rows: repeat(3, 5.5rem); justify-content: center; margin: .5rem auto 0; }
.ctx-cell {
  display: grid; place-items: center;
  font-family: var(--font-sans); font-weight: 700; font-size: clamp(2.4rem, 7vw, 3.2rem); line-height: 1; color: var(--ink);
  transition: opacity .3s, color .3s;
}
.ctx-cell--glyph { color: var(--accent); }
.ctx-cell--glyph svg { width: 2.4rem; height: 3.4rem; display: block; overflow: visible; }
.ctx-demo[data-mode="letters"] .ctx-cell--num,
.ctx-demo[data-mode="numbers"] .ctx-cell--let { opacity: .1; }
.ctx-demo[data-mode="none"] .ctx-cell--num,
.ctx-demo[data-mode="none"] .ctx-cell--let { opacity: 0; }
@media (max-width: 420px) {
  .ctx-demo { grid-template-columns: repeat(3, minmax(0, 4.4rem)); grid-template-rows: repeat(3, 4.4rem); }
  .ctx-cell--glyph svg { width: 2rem; height: 2.9rem; }
}

/* N-01 · Bayesian integration widget */
.bayes__plot { position: relative; }
.bayes__plot .fig-svg { max-height: 260px; }
.bayes .curve { transition: d .25s ease; }
/* keep SVG labels legible when the 480-unit viewBox is scaled down on phones */
@media (max-width: 520px) { .bayes .fig-svg .t { font-size: 18px; } }

/* N-02 · Circumplex resolution explorer */
.cplx { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 15rem); gap: clamp(1rem, 3vw, 1.75rem); align-items: start; }
.cplx__map { max-width: 420px; width: 100%; margin-inline: auto; }
.cplx__side { display: grid; gap: .9rem; align-content: start; }
.cplx .lvl { opacity: 0; transition: opacity .35s; pointer-events: none; }
.cplx[data-res="1"] .lvl-1, .cplx[data-res="2"] .lvl-2, .cplx[data-res="3"] .lvl-3 { opacity: 1; }
.cplx .word-dot { fill: var(--ink-3); transition: fill .2s, r .2s; }
.cplx .word-dot.is-on { fill: var(--accent); }
.cplx .word-t { fill: var(--ink-2); font-family: var(--font-sans); font-size: 12.5px; letter-spacing: 0; }
.cplx .word-t.is-on { fill: var(--accent); font-weight: 700; }
.cplx .half-neg { fill: var(--signal); opacity: .07; }
.cplx .half-pos { fill: var(--accent); opacity: .08; }
.cplx .quad { fill: var(--paper-2); }
.cplx .quad-t { font-family: var(--font-sans); font-size: 14px; font-weight: 600; fill: var(--ink); letter-spacing: 0; }
.cplx__words { display: flex; flex-wrap: wrap; gap: .35rem; }
.cplx__words .chip { padding: .3rem .65rem; font-size: 13px; }
.cplx__words[hidden] { display: none; }
@media (max-width: 760px) { .cplx { grid-template-columns: 1fr; } }
@media (max-width: 520px) {
  .cplx .word-t { font-size: 14px; }
  .cplx .fig-svg .t-sm { font-size: 12.5px; }
}

/* N-03 · ACE categories */
.cat-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .75rem; }
.cat-group { padding: .9rem 1rem 1rem; background: var(--paper); border: 1px solid var(--rule); border-radius: var(--radius); }
.cat-group__k { font-family: var(--font-mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.cat-group__t { margin: .2rem 0 .6rem; font-family: var(--font-serif); font-weight: 700; font-size: 1.05rem; color: var(--ink); }
.cat-group ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .4rem; font-size: 14px; line-height: 1.5; color: var(--ink-2); }
.cat-group li { display: flex; gap: .55rem; align-items: baseline; }
.cat-mark { flex-shrink: 0; width: 9px; height: 9px; border-radius: 50%; transform: translateY(-1px); }
.cat-mark--orig { background: var(--ink); }
.cat-mark--later { background: transparent; border: 1.5px solid var(--ink-3); }
@media (max-width: 720px) { .cat-grid { grid-template-columns: 1fr; } }

/* N-03 · Population vs individual dot matrix */
.pop { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(1rem, 4vw, 2rem); }
.pop__panel h3 { margin: 0 0 .15rem; font-size: 1rem; }
.pop__meta { margin: 0 0 .6rem; font-family: var(--font-mono); font-size: 11.5px; color: var(--ink-3); }
.pop__grid { display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); gap: clamp(3px, 1vw, 6px); max-width: 260px; }
.pop__dot { aspect-ratio: 1; border-radius: 50%; border: 1.5px solid var(--rule-strong); background: transparent; transition: background .25s, border-color .25s; }
.pop__dot.is-hit { background: var(--accent); border-color: var(--accent); }
@media (max-width: 520px) { .pop { grid-template-columns: 1fr; } .pop__grid { max-width: 240px; } }

/* N-03 · Attachment dimensions */
.attach { display: grid; grid-template-columns: 1.6rem minmax(0, 1fr); grid-template-rows: minmax(0, 1fr) 1.6rem; gap: .4rem; max-width: 520px; margin-inline: auto; }
.attach__y, .attach__x { font-family: var(--font-mono); font-size: 11px; letter-spacing: .06em; color: var(--ink-3); display: flex; justify-content: space-between; align-items: center; }
.attach__y { writing-mode: vertical-rl; transform: rotate(180deg); }
.attach__x { grid-column: 2; }
.attach__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px; background: var(--rule-strong); border: 1px solid var(--rule-strong); border-radius: var(--radius); overflow: hidden; }
.attach__cell { padding: .9rem 1rem; background: var(--paper); font-size: 13.5px; line-height: 1.55; color: var(--ink-2); min-height: 7.5rem; }
.attach__cell strong { display: block; margin-bottom: .2rem; font-family: var(--font-serif); font-size: 1rem; color: var(--ink); }
.attach__cell--secure { background: var(--accent-soft); }
@media (max-width: 420px) {
  .attach__cell { padding: .7rem .6rem; font-size: 12.5px; min-height: 0; }
  .attach__cell strong { font-size: .92rem; }
}

/* N-03 · Two-model small multiples */
.models { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(1rem, 3vw, 1.75rem); }
.models h3 { margin: 0 0 .5rem; font-size: .98rem; }
.models .fig-svg { max-width: 320px; }
@media (max-width: 560px) { .models { grid-template-columns: 1fr; } }

/* ---------- Specificity guards: component <p> elements inside .prose ---------- */
.prose .section-ev { margin: -.25rem 0 1.25rem; }
.prose .keypoints__title { margin: 0 0 .6rem; }
.prose .article-colophon { margin: 2.5rem 0 0; }
.figure .fig-readout { margin: 1rem 0 0; }
.figure .fig-note { margin: .6rem 0 0; }
.cat-group .cat-group__t { margin: .2rem 0 .6rem; }
.pop .pop__meta { margin: 0 0 .6rem; }
.compare-grid + .mt { margin-top: 1.5rem; }

/* =========================================================
   Generated raster illustrations (P2 · assets/img/gen)
   Everything below is scoped to [data-page="notes"]: papers/*.html
   also load this file (body[data-page="papers"]) and must not change.
   In-article .sec-plate and .card-img use the shared rules in style.css.
   ========================================================= */

/* Hero specimen plate holding a raster image (N-04 … N-07) */
[data-page="notes"] .article-plate .specimen__plate > img {
  display: block; width: 100%; height: 100%; object-fit: cover;
  background: var(--paper-2); border-radius: 2px;
}

/* Notes index · §02 list rows: static raster thumbs in span.nl-thumb.
   Mirrors design.css so the 4-column row still holds without JS. */
[data-page="notes"] .nl-list .nl-row { grid-template-columns: 72px 72px minmax(0, 1fr) 200px; align-items: center; }
[data-page="notes"] .nl-list .nl-thumb {
  display: block; width: 100%; max-width: 72px; overflow: hidden;
  background: var(--paper-2); border: 1px solid var(--rule); border-radius: var(--radius);
}
[data-page="notes"] .nl-thumb > img { display: block; width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover; }
@media (max-width: 720px) {
  [data-page="notes"] .nl-list .nl-row { grid-template-columns: 72px minmax(0, 1fr); }
  [data-page="notes"] .nl-list .nl-row .nl-n { display: none; }
  [data-page="notes"] .nl-list .nl-thumb { grid-row: span 2; }
}

/* Notes index · §03 reading path: 3:1 banner strip (2:1 on phones) + small card thumbs when stacked */
[data-page="notes"] .notes-path-plate > img { --plate-ar: 3 / 1; }
@media (max-width: 1000px) {
  [data-page="notes"] .path a > .card-img { width: 128px; }
}
@media (max-width: 720px) {
  [data-page="notes"] .notes-path-plate > img { --plate-ar: 2 / 1; }
}

/* Dark mode: same dimming as .sec-plate / .card-img in style.css */
:root[data-theme="dark"] [data-page="notes"] .nl-thumb > img,
:root[data-theme="dark"] [data-page="notes"] .article-plate .specimen__plate > img { filter: brightness(.84) contrast(1.05); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) [data-page="notes"] .nl-thumb > img,
  :root:not([data-theme="light"]) [data-page="notes"] .article-plate .specimen__plate > img { filter: brightness(.84) contrast(1.05); }
}
