/* Palladium Plus public notes: road map, filters, selected road, road table,
   note text, plain tables and the empty document placeholder.
   Loaded after site.css (Plus colours and system fonts) and leaflet.css.
   Selectors use the page contract IDs and notes-* classes only. */

/* ---------- filters ---------- */
.notes-filters{display:grid;grid-template-columns:minmax(0,2fr) repeat(3,minmax(0,1fr));gap:12px;align-items:end;margin:0 0 12px}
.notes-filters label{display:block;font-size:14px;line-height:1.5;color:var(--muted,#645d6b);margin:0 0 6px}
.notes-filters--search{grid-template-columns:minmax(0,1fr)}
.notes-filters--more{grid-template-columns:repeat(3,minmax(0,1fr));margin-top:16px}
.notes-search-head{display:flex;justify-content:space-between;align-items:baseline;gap:12px}
.notes-filters-link{font-size:14px;line-height:1.5;color:var(--accent,#583f68);text-decoration:underline;text-underline-offset:3px}
.notes-filters-link:focus-visible{outline:3px solid var(--accent,#583f68);outline-offset:2px}
#road-search,#road-corporation,#road-zone,#road-mapping{display:block;width:100%;min-height:44px;margin:0;border:1px solid #cfc6d8;border-radius:6px;padding:10px 12px;background:#fff;color:var(--ink,#261d2f);font:14px/1.4 var(--font-body,-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif);opacity:1}
#road-search::placeholder{color:#7a7282;opacity:1}
#road-search:focus-visible,#road-corporation:focus-visible,#road-zone:focus-visible,#road-mapping:focus-visible{outline:3px solid var(--accent,#583f68);outline-offset:2px;border-color:var(--accent,#583f68)}
#road-count{font-size:14px;line-height:1.5;color:var(--muted,#645d6b);margin:12px 0}
/* How the search was read: a corrected spelling, or the ward or area it names. */
.notes-search-note{margin:0 0 12px;padding:10px 12px;border-left:3px solid var(--accent,#583f68);border-radius:0 6px 6px 0;background:var(--accent-soft,#f4f1f8);color:var(--ink,#261d2f);font-size:14px;line-height:1.5}
.notes-search-note[hidden],.notes-map-near[hidden]{display:none!important}

/* Buttons created by notes.js: reset, show in table, same-line links. */
.notes-reset{display:inline-flex;align-items:center;justify-content:center;min-height:40px;padding:8px 14px;margin:0 0 12px;border:1px solid #cdbbdc;border-radius:6px;background:#fff;color:var(--accent,#583f68);font:500 14px/1.3 var(--font-body,-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif);cursor:pointer}
.notes-reset:hover{background:var(--accent-soft,#f4f1f8)}
.notes-link-button{display:block;padding:6px 0;border:0;background:none;color:var(--accent,#583f68);font:500 14px/1.45 var(--font-body,-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif);text-align:left;text-decoration:underline;text-underline-offset:4px;cursor:pointer}
.notes-reset:focus-visible,.notes-link-button:focus-visible{outline:3px solid var(--accent,#583f68);outline-offset:2px}
.notes-reset[hidden],.notes-empty[hidden]{display:none!important}

.notes-empty{margin:0 0 12px;padding:16px;border:1px dashed #cfc6d8;border-radius:8px;background:#fff;color:var(--ink,#261d2f);font-size:14px;line-height:1.5}
.notes-empty p{margin:0 0 12px}
.notes-empty .notes-reset{margin:0}

/* ---------- map ---------- */
/* Hidden until notes.js starts the map, so no empty box shows without JS. */
#notes-map{display:none}
#notes-map.notes-map--active{display:block;position:relative;z-index:0;isolation:isolate;height:460px;border:1px solid var(--line,#e4dfe9);border-radius:10px;overflow:hidden;background:#eef0f2}
#notes-map.notes-map--unavailable{display:block;padding:14px 16px;border:1px dashed #cfc6d8;border-radius:10px;background:#fff;color:var(--muted,#645d6b);font-size:14px;line-height:1.5}
#notes-map.notes-map--unavailable p{margin:0}
#notes-map.leaflet-container{font:14px/1.5 var(--font-body,-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif)}
#notes-map.leaflet-container:focus-visible{outline:3px solid var(--accent,#583f68);outline-offset:2px}

#notes-map .leaflet-control-attribution{font:14px/1.5 var(--font-body,-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif);color:#3f3846;background:rgba(255,255,255,.92);padding:2px 8px}
#notes-map .leaflet-control-attribution a{color:var(--accent,#583f68);text-decoration:underline;text-underline-offset:2px}
#notes-map .leaflet-control-attribution a:focus-visible{outline:2px solid var(--accent,#583f68);outline-offset:1px}

#notes-map .leaflet-bar a{width:44px;height:44px;line-height:44px;font:600 22px/44px var(--font-body,-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif);color:var(--ink,#261d2f)}
#notes-map .leaflet-bar a:focus-visible,#notes-map .notes-map-fit-button:focus-visible{outline:3px solid var(--accent,#583f68);outline-offset:-3px}
#notes-map .notes-map-fit-button{display:block;min-height:44px;padding:0 12px;border:0;border-radius:4px;background:#fff;color:var(--accent,#583f68);font:600 14px/1.2 var(--font-body,-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif);cursor:pointer}
#notes-map .notes-map-fit-button:hover{background:#f4f4f4}
#notes-map .notes-map-fit-button:disabled{color:var(--muted,#645d6b);cursor:default}
.notes-map-near{padding:10px 12px;border-radius:6px;background:var(--accent-soft,#f4f1f8);font-size:14px;line-height:1.5}
.notes-map-near p{margin:0;color:var(--ink,#261d2f)}

#notes-map .notes-tooltip{width:max-content;max-width:260px;white-space:normal;font:500 14px/1.4 var(--font-body,-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif);color:var(--ink,#261d2f)}
/* Wide transparent hit line per road; shows a dark halo on keyboard focus. */
#notes-map path.notes-road-hit:focus{outline:none}
#notes-map path.notes-road-hit:focus-visible{stroke:#261d2f;stroke-opacity:.35}

.notes-map-legend{display:grid;gap:6px;margin:10px 0 16px;font-size:14px;line-height:1.5;color:var(--muted,#645d6b)}
.notes-map-legend p{margin:0}
.notes-map-key{display:flex;gap:8px;align-items:center}
.notes-map-swatch{flex:none;display:inline-block;width:26px;height:5px;border-radius:3px;background:#247b82}
.notes-map-swatch--selected{height:8px;background:#583f68}
.notes-map-status{color:var(--ink,#261d2f)}

/* ---------- selected road ---------- */
#road-detail{font-size:14px;line-height:1.55;color:var(--ink,#261d2f);overflow-wrap:break-word}
#road-detail .notes-detail-title{margin:0 0 8px;font-size:17px;line-height:1.35;font-weight:600}
.notes-status{display:inline-block;margin:0 0 8px;padding:3px 8px;border-radius:5px;font:500 14px/1.5 var(--font-body,-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif)}
.notes-status--mapped{color:#24665f;background:var(--teal-soft,#edf7f6)}
.notes-status--unmapped{color:var(--gold,#8f5b09);background:var(--gold-soft,#fff6e4)}
.notes-detail-note{margin:0 0 12px;color:var(--muted,#645d6b);font-size:14px}
.notes-detail-list{display:grid;grid-template-columns:max-content minmax(0,1fr);gap:6px 14px;margin:0 0 12px}
.notes-detail-list dt{font-size:14px;line-height:1.6;color:var(--muted,#645d6b)}
.notes-detail-list dd{margin:0;overflow-wrap:anywhere}
#road-detail a{color:var(--accent,#583f68);text-decoration:underline;text-underline-offset:3px}
.notes-detail-subhead{margin:12px 0 4px;font-size:14px;font-weight:600;color:var(--ink,#261d2f)}
.notes-detail-limits{margin:0;padding-left:18px;font-size:14px;line-height:1.6;color:var(--muted,#645d6b)}
.notes-detail-source{margin:10px 0 0;font-size:14px;line-height:1.6;color:var(--muted,#645d6b);overflow-wrap:anywhere}
.notes-detail-same{margin:12px 0 0;font-size:14px}
.notes-detail-same p{margin:0}
.notes-detail-actions{margin:14px 0 0}
.notes-detail-actions .notes-reset{margin:0}

/* ---------- road table ---------- */
/* notes.js wraps the table in .notes-table-scroll; the :has() rule keeps
   sideways scrolling inside the table area when JavaScript is off. */
:has(> #roads-table){overflow-x:auto;max-width:100%}
.notes-table-scroll{overflow:auto;max-height:min(75vh,760px);border:1px solid var(--line,#e4dfe9);border-radius:8px;background:#fff;-webkit-overflow-scrolling:touch}
.notes-table-scroll:focus-visible{outline:3px solid var(--accent,#583f68);outline-offset:2px}

#roads-table{table-layout:auto;width:100%;min-width:920px;border-collapse:separate;border-spacing:0}
#roads-table th{position:sticky;top:0;z-index:1;width:auto;padding:10px;font:500 14px/1.4 var(--font-body,-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif);color:var(--muted,#645d6b);background:var(--accent-soft,#f4f1f8);border-bottom:1px solid var(--line,#e4dfe9);text-align:left;vertical-align:bottom}
#roads-table td{padding:10px;font-size:14px;line-height:1.45;overflow-wrap:break-word;vertical-align:top;border-bottom:1px solid var(--line,#e4dfe9)}
#roads-table td strong{font-size:14px}
#roads-table td a{color:var(--accent,#583f68);text-decoration:underline;text-underline-offset:3px}
#roads-table tbody tr{scroll-margin-top:48px}
#roads-table tr[hidden]{display:none}
#roads-table tr.notes-row--selected td{background:#efe9f5}
#roads-table tr.notes-row--selected td:first-child{box-shadow:inset 4px 0 0 var(--accent,#583f68)}
#roads-table button[data-select-road]{display:inline-flex;align-items:center;min-height:36px;padding:6px 10px;border:1px solid #cdbbdc;border-radius:6px;background:#fff;color:var(--accent,#583f68);font:500 14px/1.3 var(--font-body,-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif);white-space:nowrap;cursor:pointer}
#roads-table button[data-select-road]:hover{background:var(--accent-soft,#f4f1f8)}
#roads-table button[data-select-road]:focus-visible,#roads-table a:focus-visible{outline:3px solid var(--accent,#583f68);outline-offset:2px}
#roads-table tr.notes-row--selected button[data-select-road]{background:var(--accent,#583f68);border-color:var(--accent,#583f68);color:#fff}

/* ---------- note text, lists and plain tables ---------- */
/* Summary paragraphs and the caution line above the first card. */
.notes-article{margin:0 0 24px;max-width:760px}
.notes-article p{margin:0 0 12px;font-size:15px;line-height:1.65;color:var(--ink,#261d2f)}
.notes-caution{margin:0;padding:12px 14px;border-left:4px solid var(--gold,#8f5b09);border-radius:6px;background:var(--gold-soft,#fff6e4)}
.notes-article .notes-caution{font-size:14px;line-height:1.6}
.notes-caution strong{font-weight:600;color:#5e3c06}

.notes-coverage{margin:0 0 10px;font-size:14px;line-height:1.6}
/* The reviewed-snapshot stamp sits in "About this note" (site.css styles it only inside the hero). */
.notes-section .stamp{display:flex;flex-wrap:wrap;gap:8px 18px;margin:0 0 14px;font-size:14px;line-height:1.5;color:var(--muted,#645d6b)}
/* Supporting sections below the road list. */
.notes-section .metrics{margin:16px 0 0}
.notes-subhead{margin:20px 0 8px;font-size:15px;line-height:1.4;font-weight:600;color:var(--ink,#261d2f)}
.notes-subhead:first-child{margin-top:0}
.notes-section .notes-article{margin:0}
.notes-list{margin:12px 0 0;padding-left:20px;font-size:14px;line-height:1.65}
.notes-list li{margin:0 0 8px;overflow-wrap:anywhere}
.notes-list a,.notes-source a,.notes-credit a,.notes-tablewrap td a{color:var(--accent,#583f68);text-decoration:underline;text-underline-offset:3px}
.notes-source{margin:14px 0 0;font-size:14px;line-height:1.6;color:var(--muted,#645d6b);overflow-wrap:anywhere}
.notes-credit{margin:12px 0 0;font-size:14px;line-height:1.6;color:var(--muted,#645d6b);overflow-wrap:anywhere}

/* Facts, corporation, notice, earlier-results and tender-road tables keep real
   rows and headings on every screen; sideways overflow stays inside the wrapper. */
.notes-tablewrap{width:100%;max-width:100%;min-width:0;overflow-x:auto;-webkit-overflow-scrolling:touch}
.notes-tablewrap caption{caption-side:top;text-align:left;padding:0 0 8px;font-size:14px;line-height:1.5;color:var(--muted,#645d6b)}
.notes-facts,.notes-summary,.notes-results,.notes-table--tender{table-layout:auto;min-width:560px}
.notes-facts th:first-child,.notes-summary th:first-child,.notes-results th:first-child,.notes-table--tender th:first-child{width:auto}
.notes-facts th[scope="col"]:first-child,.notes-summary th[scope="col"]:first-child,.notes-results th[scope="col"]:first-child{width:38%}
.notes-table--tender th[scope="col"]:first-child{width:56px}
.notes-facts td,.notes-summary td,.notes-results td,.notes-table--tender td,.notes-notice td{padding:12px 10px;font-size:14px;line-height:1.5;overflow-wrap:anywhere}
.notes-facts th[scope="row"],.notes-summary th[scope="row"]{padding:12px 10px;font:500 14px/1.5 var(--font-body,-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif);color:var(--ink,#261d2f);background:none;border-bottom:1px solid var(--line,#e4dfe9);vertical-align:top}
.notes-facts tbody tr:last-child th,.notes-summary tbody tr:last-child th,.notes-notice tbody tr:last-child th{border-bottom:0}
.notes-notice{table-layout:fixed}
.notes-notice th{width:34%;padding:12px 10px;font:500 14px/1.5 var(--font-body,-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif);color:var(--muted,#645d6b);background:none;border-bottom:1px solid var(--line,#e4dfe9);vertical-align:top}
.notes-notice td small{margin-top:6px}

/* ---------- document placeholder ---------- */
/* Decorative empty pages with blurred bars; the spans hold no text or files. */
.notes-doc-placeholder{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;max-width:400px;margin:0 0 18px;pointer-events:none;user-select:none}
.notes-doc-page{display:grid;align-content:start;gap:9px;aspect-ratio:1/1.3;padding:18px 16px;border:1px solid var(--line,#e4dfe9);border-radius:6px;background:#fff;box-shadow:0 2px 6px #261d2f14;overflow:hidden}
.notes-doc-line{display:block;height:7px;border-radius:4px;background:#d9d2e0;filter:blur(1.5px)}
.notes-doc-line:first-child{width:55%;height:10px;background:#c4b8cf}
.notes-doc-line:nth-child(3n+2){width:88%}
.notes-doc-line:nth-child(4n){width:70%}
.notes-doc-line:last-child{width:45%}

/* ---------- small screens ---------- */
@media(max-width:700px){
  .notes-filters{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
  .notes-filters>:first-child{grid-column:1/-1}
  /* 16px stops iOS from zooming the page when a field is focused. */
  #road-search,#road-corporation,#road-zone,#road-mapping{font-size:16px}
  #notes-map.notes-map--active{height:340px}
  .notes-coverage{font-size:14px;line-height:1.5}
  .notes-table-scroll{max-height:70vh}
  /* Keep a real table that scrolls sideways (site.css stacks .tablewrap rows). */
  #roads-table{display:table;min-width:860px}
  #roads-table thead{display:table-header-group}
  #roads-table tbody{display:table-row-group}
  #roads-table tr{display:table-row;padding:0;border:0}
  #roads-table tr[hidden]{display:none}
  #roads-table th,#roads-table td{display:table-cell;width:auto;padding:9px 10px}
  #roads-table td[data-label]::before{content:none}
  .notes-article p{font-size:14px}
  .notes-notice th{width:40%}
  .notes-notice th,.notes-notice td{padding:10px 8px}
  .notes-doc-placeholder{max-width:320px;gap:10px}
}
@media(max-width:420px){
  .notes-detail-list{grid-template-columns:minmax(0,1fr);gap:0}
  .notes-detail-list dd{margin:0 0 8px}
}

@media print{
  #notes-map,.notes-map-legend,.notes-reset,.notes-empty,.notes-doc-placeholder{display:none!important}
  .notes-tablewrap{overflow:visible}
  .notes-facts,.notes-summary,.notes-results,.notes-table--tender{min-width:0}
  .notes-table-scroll{max-height:none;overflow:visible;border:0}
  #roads-table{min-width:0}
  #roads-table th{position:static}
}

/* Notes uses one reading column; each card stacks its graphic and story. */
.page-notes { background:#fcfaf8; }
.page-notes .wrap { max-width:1000px; padding-inline:28px; }
.notes-index-intro { display:grid; grid-template-columns:minmax(0,1fr); gap:18px; padding:44px 0 46px; align-items:end; }
.notes-index-intro .notes-kicker { grid-column:1/-1; color:#800020; font-size:14px; font-weight:600; letter-spacing:.06em; margin:0 0 6px; }
.notes-index-intro h1 { font-size:clamp(34px,4.5vw,60px); line-height:1.06; letter-spacing:-.045em; margin:0; font-weight:600; }
.notes-index-intro p { font-size:21px; line-height:1.45; margin:0 0 14px; }
.notes-index-intro span { font-size:14px; color:#645d6b; line-height:1.6; }
.notes-hub { display:grid; grid-template-columns:minmax(0,1fr); gap:28px; padding-bottom:30px; }
.note-card { min-width:0; border:1px solid #e5dfda; border-radius:16px; background:#fff; overflow:hidden; }
.note-card-link { display:flex; flex-direction:column; height:100%; color:#282330; text-decoration:none; }
.note-card-link:hover { color:#282330; }
.note-card:has(.note-card-link:hover) { border-color:#b89e9e; box-shadow:0 6px 22px #391c240a; }
.note-card:has(.note-card-link:focus-visible) { outline:3px solid #800020; outline-offset:4px; }
.note-card-link:focus-visible { outline:none; }
.note-card-body { padding:28px; display:flex; flex-direction:column; flex:1; align-items:flex-start; }
.note-card h2 { font-size:28px; line-height:1.22; font-weight:600; letter-spacing:-.025em; margin:0 0 14px; }
.note-card-body > p { font-size:16px; line-height:1.6; color:#645d6b; margin:0 0 26px; }
.note-card-meta { display:flex; gap:6px 16px; flex-wrap:wrap; margin-top:auto; color:#645d6b; font-size:14px; line-height:1.5; }
.note-card-meta > span { font-weight:500; color:#282330; }
.note-card-read { display:flex; justify-content:space-between; align-items:center; width:100%; border-top:1px solid #ece6e1; padding-top:16px; margin-top:18px; font-size:14px; font-weight:600; color:#800020; }
.note-card-read > span { font-size:24px; line-height:1; }
.note-card--featured { grid-column:1/-1; }
.note-card--featured .note-card-link { display:flex; flex-direction:column; }
.note-card--featured .note-card-body { order:0; padding:38px; }
.note-card--featured h2 { font-size:clamp(27px,2.7vw,36px); line-height:1.17; }
.note-card-featured-label { display:block; color:#800020; font-size:14px; font-weight:600; margin-bottom:22px; }
.nc-visual { margin:0; padding:28px; min-height:290px; display:flex; flex-direction:column; justify-content:center; gap:18px; background:#f4f0eb; color:#282330; border:0; }
.nc-visual--timeline { background:#f5e9e9; }
.nc-visual--services,.nc-visual--energy,.nc-visual--mangroves,.nc-visual--map { background:#edf4f0; }
.nc-label { font-size:14px; line-height:1.4; font-weight:600; color:#514650; }
.nc-stat { display:flex; flex-direction:column; gap:5px; }
.nc-stat strong { font-family:'Plus Instrument','Plus Geist',sans-serif; font-size:clamp(30px,3.1vw,44px); line-height:1.08; font-weight:600; color:#800020; letter-spacing:-.045em; font-variant-numeric:tabular-nums; }
.nc-stat span { font-size:14px; line-height:1.4; color:#514650; }
.nc-stat-pair { display:grid; grid-template-columns:.8fr 1fr; gap:24px; }
.nc-stat-pair strong { font-size:clamp(54px,6vw,82px); }
.nc-timeline { display:block; width:100%; height:auto; overflow:visible; }
.nc-timeline path { fill:none; stroke:#c5a8ad; stroke-width:2; }
.nc-timeline circle { fill:#800020; }
.nc-endpoints { display:flex; justify-content:space-between; gap:16px; font-size:14px; font-variant-numeric:tabular-nums; }
.nc-visual figcaption { font-size:14px; line-height:1.5; color:#62565e; margin:0; }
.nc-service-grid { display:grid; grid-template-columns:1.2fr 1fr 1fr; gap:0; font-size:14px; line-height:1.4; }
.nc-service-grid > * { display:flex; align-items:center; padding:11px 8px; border-bottom:1px solid #d6e2dc; }
.nc-service-grid > :nth-child(3n+1) { padding-left:0; }
.nc-service-grid > :nth-child(3n+2),.nc-service-grid > :nth-child(3n+3) { justify-content:center; text-align:center; }
.nc-service-grid .nc-yes { color:#1c6154; font-weight:600; }
.nc-service-grid .nc-no { color:#62565e; }
.nc-bars { display:grid; gap:12px; }
.nc-bar > div:first-child { display:flex; justify-content:space-between; align-items:baseline; gap:14px; font-size:14px; line-height:1.4; margin-bottom:5px; }
.nc-bar b { white-space:nowrap; font-weight:600; }
.nc-track { background:#dedbd3; height:9px; border-radius:3px; overflow:hidden; }
.nc-track span { display:block; height:100%; background:#247b70; border-radius:3px; }
.nc-package { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:10px; }
.nc-package > span { display:flex; flex-direction:column; align-items:center; text-align:center; gap:12px; padding:12px 6px; background:#ffffff90; border-radius:8px; }
.nc-package .icon { width:28px; height:28px; color:#800020; }
.nc-package b { font-size:14px; line-height:1.4; font-weight:500; }
.nc-energy { display:grid; grid-template-columns:1fr auto 1fr; gap:20px; align-items:center; }
.nc-energy .nc-stat strong { font-size:clamp(26px,2.6vw,36px); }
.nc-arrow { font-size:30px; color:#247b70; }
.nc-flow { display:grid; gap:0; padding:0; margin:0; list-style:none; }
.nc-flow li { display:flex; align-items:center; gap:14px; padding:10px 0; border-bottom:1px solid #e0d8d2; }
.nc-flow li:last-child { border:0; }
.nc-step { flex-shrink:0; font-size:22px; color:#800020; font-weight:500; font-variant-numeric:tabular-nums; }
.nc-flow li > div { display:flex; flex-wrap:wrap; align-items:baseline; gap:5px 18px; font-size:14px; line-height:1.4; }
.nc-flow li b { font-weight:600; }
.nc-flow li > div > span { color:#62565e; }
.nc-score { display:grid; gap:15px; font-size:14px; }
.nc-note { padding:12px; background:#fff8; border-radius:6px; font-size:16px; line-height:1.5; }
.nc-paper { display:flex; align-items:center; gap:20px; }
.nc-paper > .icon { height:52px; width:40px; flex-shrink:0; color:#800020; }
.nc-paper .nc-stat strong { font-size:clamp(28px,3vw,40px); }
.nc-contrast { padding:16px; background:#fff8; display:flex; flex-direction:column; gap:8px; border-left:3px solid #800020; }
.nc-contrast span { font-size:14px; }
.nc-contrast strong { font-size:24px; font-weight:600; }
.nc-calls { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px; }
.nc-calls > div { display:flex; flex-direction:column; gap:7px; padding:14px 10px; border-top:3px solid #800020; background:#fff8; font-size:16px; }
.nc-calls span { font-size:14px; color:#62565e; }
.nc-batteries { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:20px; padding-top:10px; }
.nc-battery { position:relative; padding:24px 16px 18px; border:2px solid #247b70; border-radius:8px; background:#247b7010; display:flex; flex-direction:column; gap:20px; }
.nc-battery::before { content:''; position:absolute; width:32%; height:7px; left:34%; top:-9px; background:#247b70; border-radius:3px 3px 0 0; }
.nc-battery:nth-child(2) { background:#fff8; }
.nc-battery .nc-stat strong { font-size:30px; }
.nc-battery > span { font-size:14px; color:#514650; }
.nc-road-map { width:100%; height:180px; display:block; }
.nc-road-map path { fill:none; stroke:#247b70; stroke-width:1.3; stroke-linecap:round; }
@media(max-width:900px) {
 .notes-index-intro { gap:20px; }
 .note-card--featured .note-card-body { padding:26px; }
 .nc-visual { padding:24px; }
 .nc-package { grid-template-columns:repeat(2,minmax(0,1fr)); }
 .nc-energy { grid-template-columns:1fr; gap:10px; }
 .nc-arrow { transform:rotate(90deg); width:24px; }
}
@media(max-width:700px) {
 .page-notes .wrap { padding-inline:18px; }
 .notes-index-intro { grid-template-columns:1fr; padding:30px 0; gap:20px; }
 .notes-index-intro p { font-size:18px; }
 .notes-hub { grid-template-columns:1fr; gap:24px; }
 .note-card--featured .note-card-link { display:flex; }
 .note-card--featured .note-card-body { order:0; padding:24px; }
 .note-card-body { padding:24px; }
 .note-card h2,.note-card--featured h2 { font-size:24px; }
 .nc-visual { min-height:0; padding:24px; gap:18px; }
 .nc-stat strong { font-size:36px; }
 .nc-stat-pair strong { font-size:64px; }
 .nc-energy { grid-template-columns:1fr auto 1fr; }
 .nc-arrow { transform:none; }
 .nc-batteries { gap:14px; }
 .nc-battery { padding:20px 10px 14px; }
 .nc-battery .nc-stat strong { font-size:26px; }
 .nc-battery .nc-stat { min-height:100px; }
}
@media(max-width:360px) {
 .page-notes .wrap { padding-inline:12px; }
 .note-card-body,.note-card--featured .note-card-body,.nc-visual { padding:18px; }
 .nc-service-grid > * { padding-inline:4px; }
 .nc-stat strong { font-size:30px; }
 .nc-stat-pair strong { font-size:54px; }
 .nc-paper { gap:12px; }
 .nc-paper > .icon { width:30px; }
 .nc-energy { gap:9px; }
 .nc-energy .nc-stat strong { font-size:25px; }
}
@media(prefers-reduced-motion:no-preference) { .note-card { transition:border-color .15s,box-shadow .15s; } }
@media print { .notes-hub { display:block; } .note-card { break-inside:avoid; margin:0 0 20px; } }

/* Individual notes: readable editorial explainers, with evidence beside each graphic. */
.page-note { background:#fcfaf8; }
.ne-header { padding:34px 0 30px; max-width:1060px; }
.ne-kicker { color:#800020; font-size:14px; font-weight:600; letter-spacing:.05em; margin:0 0 20px; }
.ne-header h1 { font-size:clamp(34px,4.2vw,56px); line-height:1.09; letter-spacing:-.04em; font-weight:600; margin:0 0 24px; text-wrap:balance; }
.ne-header .ne-deck { max-width:850px; font-size:22px; line-height:1.55; color:#514650; margin:0 0 22px; }
.ne-header .stamp { display:flex; flex-wrap:wrap; gap:8px 20px; margin:0; }
.ne-overview { border-radius:16px; overflow:hidden; border:1px solid #e2d8d2; margin-bottom:34px; }
.ne-overview .nc-visual { padding:36px 44px; min-height:0; gap:24px; }
.ne-overview .nc-label { font-size:19px; }
.ne-overview .nc-stat strong { font-size:clamp(38px,5vw,64px); }
.ne-overview .nc-stat span,.ne-overview figcaption { font-size:16px; }
.ne-overview .nc-stat-pair { max-width:600px; }
.ne-overview .nc-timeline { max-width:900px; }
.ne-overview .nc-batteries { gap:40px; }
.ne-overview .nc-battery { padding:32px; gap:24px; }
.ne-overview .nc-battery .nc-stat { min-height:0; }
.ne-overview .nc-battery > span { font-size:20px; }
.ne-overview .nc-battery .nc-stat strong { font-size:clamp(38px,5vw,64px); }
.ne-overview .nc-bars { max-width:900px; }
.ne-overview .nc-bar > div:first-child,.ne-overview .nc-service-grid,.ne-overview .nc-flow li > div { font-size:17px; }
.ne-overview .nc-service-grid { max-width:800px; }
.ne-overview .nc-track { height:14px; }
.ne-overview .nc-package b { font-size:17px; }
.ne-overview .nc-package .icon { width:36px; height:36px; }
.ne-overview .nc-package > span { padding:24px 12px; }
.ne-overview .nc-energy { max-width:850px; grid-template-columns:1fr auto 1fr; }
.ne-overview .nc-flow { max-width:900px; }
.ne-overview .nc-calls { max-width:900px; }
.ne-overview .ne-sources { padding:12px 24px; border-top:1px solid #e2d8d2; background:#fff; margin:0; }
.ne-sources { font-size:14px; line-height:1.6; color:#62565e; margin:20px 0 0; }
.ne-sources a { display:inline-block; padding:4px 7px; color:#800020; text-underline-offset:3px; }
.note-story { max-width:960px; margin-inline:auto; }
.ne-layout { display:grid; grid-template-columns:minmax(0,1fr); gap:28px; align-items:start; }
.ne-navigation { position:static; padding:0 0 16px; }
.ne-navigation > p { font-size:14px; margin:0 0 12px; font-weight:600; color:#62565e; }
.ne-navigation a { display:flex; gap:10px; align-items:baseline; padding:12px 0; border-bottom:1px solid #e8dfd8; text-decoration:none; font-size:14px; line-height:1.5; color:#514650; }
.ne-navigation a:hover { color:#800020; text-decoration:underline; }
.ne-navigation a > span { color:#800020; font-variant-numeric:tabular-nums; }
.ne-body { min-width:0; }
.ne-body .ne-section { padding:0 0 36px; margin:0 0 36px; border:0; border-bottom:1px solid #e2d8d2; background:transparent; border-radius:0; box-shadow:none; }
.ne-section-heading { display:flex; flex-direction:column; gap:12px; margin-bottom:22px; }
.ne-section-heading > span { font-size:14px; color:#800020; font-weight:600; }
.page-note .ne-section h2 { font-size:clamp(27px,2.7vw,34px); font-weight:600; line-height:1.17; letter-spacing:-.025em; margin:0; max-width:28ch; }
.page-note .ne-section .notes-article { max-width:72ch; }
.page-note .ne-section .notes-article p { font-size:18px; line-height:1.8; margin:0 0 18px; }
.ne-diagram { background:#edf4f0; border:1px solid #d3e3d9; border-radius:14px; margin:26px 0; padding:28px; overflow-wrap:break-word; }
.ne-diagram figcaption { font-size:24px; line-height:1.25; font-weight:600; letter-spacing:-.02em; max-width:34ch; }
.ne-explanation { color:#514650; font-size:16px; line-height:1.65; margin:14px 0 24px; }
.ne-items { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); list-style:none; padding:0; margin:0; gap:18px; }
.ne-items:has(>li:nth-child(2):last-child) { grid-template-columns:repeat(2,minmax(0,1fr)); }
.ne-items li { position:relative; min-width:0; border-radius:8px; padding:20px; background:#fff9; border:1px solid #d3e3d9; }
.ne-item-label { display:block; color:#514650; font-size:14px; line-height:1.5; margin-bottom:12px; }
.ne-items strong { display:block; font-size:24px; line-height:1.2; color:#15594c; font-weight:600; letter-spacing:-.02em; }
.ne-items p { font-size:15px; line-height:1.65; color:#514650; margin:14px 0 0; }
.ne-sequence { display:block; color:#247b70; font-size:32px; line-height:1; margin-bottom:24px; font-variant-numeric:tabular-nums; }
.ne-diagram--process .ne-items li { border-top:4px solid #247b70; }
.ne-diagram--process .ne-items li:not(:last-child)::after { content:'→'; position:absolute; right:-17px; top:20px; z-index:1; font-size:24px; color:#247b70; }
.ne-diagram--compare .ne-items li:first-child { background:#e0eee6; }
.ne-diagram--calculation { background:#f5e9e9; border-color:#e5d0d2; }
.ne-diagram--calculation .ne-items { gap:28px; }
.ne-diagram--calculation .ne-items li { border-color:#e5d0d2; padding:20px 16px; }
.ne-diagram--calculation .ne-items li:last-child { background:#800020; }
.ne-diagram--calculation .ne-items li:last-child :is(strong,p,.ne-item-label) { color:white; }
.ne-diagram--calculation .ne-items strong { font-size:28px; color:#800020; }
.ne-operator { position:absolute; top:45px; left:-25px; color:#800020; font-size:28px; line-height:1; }
.ne-storage { background:#fff9; border:1px solid #bfd7ca; border-radius:12px; padding:26px; }
.ne-storage-total { display:flex; flex-direction:column; gap:8px; margin-bottom:24px; }
.ne-storage-total strong { font-size:64px; line-height:1; color:#15594c; letter-spacing:-.05em; font-weight:600; }
.ne-storage-total span { font-size:16px; }
.ne-hour-grid { display:grid; grid-template-columns:repeat(var(--hours),minmax(0,1fr)); list-style:none; gap:8px; margin:0; padding:0; }
.ne-hour-grid li { display:flex; flex-direction:column; justify-content:space-between; gap:14px; padding:18px 12px; background:#247b70; color:white; border-radius:6px; }
.ne-hour-grid span { font-size:14px; line-height:1.4; }
.ne-hour-grid strong { font-size:28px; line-height:1.1; font-weight:600; letter-spacing:-.03em; }
.ne-equation { font-size:22px; line-height:1.5; color:#15594c; margin:22px 0 0; }
.ne-date-line { list-style:none; padding:0; margin:0; display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:22px 16px; }
.ne-date-line li { border-top:3px solid #247b70; padding-top:16px; display:flex; flex-direction:column; gap:8px; }
.ne-date-line span { font-size:14px; color:#514650; }
.ne-date-line time { font-size:18px; font-weight:600; }
/* Keep the existing detailed source graphics, but give them the same visual language. */
.ne-body .notes-visual { margin:26px 0; border-color:#e2d8d2; background:#f4f0eb; border-radius:14px; padding:28px; }
.ne-body .notes-vitems { margin-bottom:0; }
.ne-body .notes-vvalue { color:#800020; }
.ne-body .notes-vitems > li { border-color:#e2d8d2; }
.ne-body .notes-facts { min-width:560px; }
.ne-body .notes-caution { margin:22px 0; }
.ne-body .notes-list { padding-left:22px; }
.ne-road-stages { margin:24px 0; }
.ne-road-stages .ne-items { grid-template-columns:repeat(3,minmax(0,1fr)); }
@media(max-width:1050px) {
 .ne-layout { grid-template-columns:minmax(0,1fr); gap:24px; }
 .ne-navigation { display:block; padding:0 0 12px; }
 .ne-navigation > p { grid-column:1/-1; }
}
@media(max-width:700px) {
 .page-note .wrap { padding-inline:18px; }
 .ne-header { padding-top:28px; }
 .ne-header .ne-deck { font-size:19px; }
 .ne-overview .nc-visual { padding:24px; }
 .ne-overview .nc-batteries { gap:20px; }
 .ne-overview .nc-battery { padding:24px 16px; }
 .ne-overview .nc-battery .nc-stat strong { font-size:34px; }
 .ne-overview .nc-battery > span { font-size:16px; }
 .ne-overview .nc-stat strong { font-size:38px; }
 .ne-overview .nc-package b,.ne-overview .nc-service-grid { font-size:15px; }
 .ne-overview .nc-energy { grid-template-columns:1fr; }
 .ne-overview .nc-arrow { transform:rotate(90deg); }
 .ne-navigation { grid-template-columns:1fr; }
 .ne-navigation a { font-size:15px; min-height:44px; }
 .ne-diagram,.ne-body .notes-visual { padding:22px; }
 .ne-items,.ne-items:has(>li:nth-child(2):last-child),.ne-road-stages .ne-items { grid-template-columns:1fr; gap:20px; }
 .ne-diagram--process .ne-items li:not(:last-child)::after { content:'↓'; right:24px; top:auto; bottom:-23px; }
 .ne-diagram--calculation .ne-items { gap:32px; }
 .ne-operator { left:20px; top:-30px; }
 .ne-date-line { grid-template-columns:repeat(2,minmax(0,1fr)); }
 .ne-storage { padding:18px; }
 .ne-hour-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
 .ne-storage-total strong { font-size:52px; }
 .ne-equation { font-size:20px; }
}
@media(max-width:400px) {
 .page-note .wrap { padding-inline:14px; }
 .ne-overview .nc-visual,.ne-diagram,.ne-body .notes-visual { padding:18px; }
 .ne-overview .nc-batteries { gap:12px; }
 .ne-overview .nc-battery { padding:20px 10px; }
 .ne-overview .nc-battery .nc-stat strong { font-size:29px; }
 .ne-overview .nc-battery .nc-stat span { font-size:15px; }
 .ne-overview .nc-calls { gap:8px; }
 .ne-overview .nc-calls > div { padding-inline:8px; }
 .ne-storage { padding:14px; }
 .ne-hour-grid li { padding:14px 10px; }
}
@media print {
 .ne-layout { display:block; }
 .ne-navigation { display:none; }
 .ne-diagram,.ne-overview { break-inside:avoid; }
 .ne-body .notes-vitems details:not([open]) > p { display:block; }
}
.ne-evidence-table { margin:22px 0; border:1px solid #e2d8d2; border-radius:8px; padding:0 16px; background:white; }
.ne-evidence-table > summary { cursor:pointer; min-height:48px; padding:14px 0; font-size:16px; color:#800020; }
.ne-evidence-table .notes-tablewrap { margin:12px 0 20px; }
@media print { .ne-evidence-table:not([open]) > .notes-tablewrap { display:block; } }
.page-note .ne-body .ne-section h2 { font-size:clamp(27px,2.7vw,34px); line-height:1.17; }
/* Anchor destinations clear the shared sticky header. */
.page-note section[id],.page-note li[id] { scroll-margin-top:100px; }


/* Wider single-column cards give their data labels room to breathe. */
@media(min-width:701px) {
 .page-notes .nc-visual { padding:32px; }
 .page-notes .nc-label,.page-notes .nc-visual figcaption,
 .page-notes .nc-stat span,.page-notes .nc-bar > div:first-child { font-size:16px; }
 .page-notes .nc-road-map { height:240px; }
}

/* Filter rail beside a single column of stories. Hidden until filtering works. */
.page-notes .wrap { max-width:1280px; }
.notes-browse { max-width:944px; margin-inline:auto; }
.notes-browse--filtered { display:grid; grid-template-columns:224px minmax(0,1fr); gap:32px; max-width:none; align-items:start; }
.notes-results-column { min-width:0; }
.note-card[hidden],#notes-filter-panel[hidden],#notes-no-results[hidden],.notes-filter-clear[hidden] { display:none!important; }
.notes-filter-panel { position:sticky; top:96px; max-height:calc(100dvh - 116px); overflow-y:auto; padding:20px 16px; border:1px solid #e2d8d2; border-radius:12px; background:#fff; }
.notes-filter-panel summary { font-size:20px; font-weight:600; cursor:pointer; min-height:44px; display:list-item; }
.notes-filter-options > p { font-size:14px; line-height:1.6; color:#62565e; margin:4px 0 14px; }
.notes-filter-panel fieldset { margin:22px 0 0; padding:0; border:0; min-width:0; }
.notes-filter-panel legend { padding:0; margin-bottom:8px; font-size:15px; font-weight:600; }
.notes-filter-panel label { display:flex; align-items:center; gap:9px; min-height:44px; padding:8px 0; font-size:14px; line-height:1.4; cursor:pointer; }
.notes-filter-panel input { appearance:auto; flex:none; width:18px; height:18px; margin:0; accent-color:#800020; }
.notes-filter-panel input:focus-visible,.notes-filter-clear:focus-visible,.notes-filter-panel summary:focus-visible { outline:3px solid #800020; outline-offset:3px; }
.notes-filter-count { margin-left:auto; color:#62565e; font-size:14px; font-variant-numeric:tabular-nums; }
.notes-results-bar { display:flex; flex-wrap:wrap; justify-content:space-between; gap:8px 16px; align-items:center; margin:0 0 18px; min-height:44px; }
.notes-results-bar p { margin:0; font-size:16px; color:#514650; }
.notes-filter-clear { min-height:44px; padding:8px 12px; background:#fff; border:1px solid #c7b8bf; border-radius:6px; color:#800020; font:500 14px/1.4 'Plus Geist',sans-serif; cursor:pointer; }
.notes-filter-clear:hover { background:#f5e9e9; }
#notes-no-results { background:white; border:1px solid #e2d8d2; padding:28px; border-radius:12px; }
#notes-no-results h2 { font-size:24px; }
#notes-no-results p { font-size:16px; line-height:1.6; }
.note-tags { display:flex; flex-wrap:wrap; gap:8px; list-style:none; margin:0 0 18px; padding:0; }
.note-tag { font-size:14px; line-height:1.5; border-radius:5px; padding:5px 9px; color:#514650; background:#f1eee9; }
.note-tag--city { background:#edf4f0; color:#15594c; }
.note-tag--issue { background:#f5e9e9; color:#800020; }
.note-tag-kind { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }
@media(max-width:1000px) {
 .notes-browse--filtered { grid-template-columns:minmax(0,1fr); gap:20px; }
 .notes-filter-panel { position:static; max-height:none; padding:14px 18px; }
 .notes-filter-options { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:0 24px; }
 .notes-filter-options > p,.notes-filter-options > button { grid-column:1/-1; }
 .notes-filter-options > button { justify-self:start; }
}
@media(max-width:600px) {
 .notes-filter-options { display:block; }
 .notes-filter-panel label { font-size:16px; }
}
@media print { .notes-filter-panel,.notes-results-bar { display:none; } .notes-browse--filtered { display:block; } }
