/* Overpass (SIL OFL 1.1): the type of the highway signs, served from this site */
@font-face { font-family: "Overpass"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url(../fonts/Overpass-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Overpass"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url(../fonts/Overpass-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Overpass Mono"; font-style: normal; font-weight: 400; font-display: swap;
  src: url(../fonts/OverpassMono-400-latin.woff2) format("woff2"); unicode-range: U+0000-00FF, U+2000-206F, U+2212; }
@font-face { font-family: "Overpass Mono"; font-style: normal; font-weight: 600; font-display: swap;
  src: url(../fonts/OverpassMono-600-latin.woff2) format("woff2"); unicode-range: U+0000-00FF, U+2000-206F, U+2212; }

:root {
  color-scheme: dark;
  --page: #090c10;
  --card: rgba(12, 16, 22, .74);
  --card-solid: #10151c;
  --surface-1: #12161c;
  --line: rgba(255, 255, 255, .09);
  --text-primary: #f3f1ea;
  --text-secondary: #b9b8b0;
  --muted: #85847d;
  --grid: #232831;
  --axis: #3a404a;
  --amber: #ffb12a;          /* the streets, in the scene and as the brand accent */
  --series-1: #c98500;       /* chart: buildings (validated with --series-2 on #12161c, dark) */
  --series-2: #3987e5;       /* chart: land */
  --mono: "Overpass Mono", ui-monospace, monospace;
  --sans: "Overpass", system-ui, -apple-system, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--page); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--page); color: var(--text-primary); font: 16px/1.55 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
html[data-lang="fr"] .en, html[data-lang="en"] .fr { display: none !important; }
a { color: inherit; }
b, strong { font-weight: 650; color: #fff; }

/* ------------------------------------------------------------------ the scene behind everything */
#scene, #fallback { position: fixed; inset: 0; width: 100%; height: 100%; display: block; z-index: 0; }
#fallback { display: none; background: #0b0f14 url(../data/ortho_2023.jpg) center / cover no-repeat; }
body.nogl #fallback { display: block; }
body.nogl #scene { display: none; }
#shade { position: fixed; inset: 0; z-index: 1; pointer-events: none;
  background: radial-gradient(120% 90% at 70% 50%, transparent 40%, rgba(5, 7, 10, .55) 100%),
              linear-gradient(90deg, rgba(5, 7, 10, .55) 0, rgba(5, 7, 10, .0) 46%);
  transition: background-color .4s; }
#labels { position: fixed; inset: 0; z-index: 2; pointer-events: none; overflow: hidden; }
#labels span { position: absolute; left: 0; top: 0; transform: translate(-50%, -100%); white-space: nowrap;
  font: 600 12px/1 var(--mono); letter-spacing: .04em; color: #1a1205; background: var(--amber);
  padding: 4px 6px 3px; border-radius: 3px; box-shadow: 0 2px 10px rgba(0, 0, 0, .45); will-change: transform, opacity; }
#labels span::after { content: ""; position: absolute; left: 50%; top: 100%; width: 1px; height: 14px; background: var(--amber); }
#yearbig { position: fixed; right: max(16px, 4vw); bottom: 6vh; z-index: 2; pointer-events: none; opacity: 0; transition: opacity .35s; }
#yearbig span { font: 200 clamp(84px, 16vw, 220px)/.8 var(--sans); letter-spacing: -.04em; color: rgba(255, 255, 255, .92);
  text-shadow: 0 4px 40px rgba(0, 0, 0, .55); font-variant-numeric: tabular-nums; }

#photoyear { position: fixed; left: max(16px, 3vw); bottom: 14px; z-index: 6; pointer-events: none; font: 600 11px var(--mono); letter-spacing: .08em;
  text-transform: uppercase; color: rgba(255, 255, 255, .55); }

/* ------------------------------------------------------------------ chrome */
#bar { position: fixed; top: 0; left: 0; right: 0; z-index: 20; display: flex; align-items: center; gap: 20px;
  padding: 12px max(16px, 3vw); background: linear-gradient(rgba(9, 12, 16, .8), rgba(9, 12, 16, 0)); }
.brand { display: inline-flex; gap: 9px; align-items: center; text-decoration: none; font-weight: 700; letter-spacing: .01em; color: var(--amber); }
.brand svg { flex: none; }
/* the site menu (js/nav.js): the pages, then "On this page"; behind the Menu button on a narrow screen */
.sitemenu { display: flex; align-items: center; gap: 12px; flex: 1; min-width: 0; }
#bar nav { display: flex; gap: 2px; }
#bar nav a { text-decoration: none; color: var(--text-secondary); font-size: 14px; padding: 6px 10px; border-radius: 6px; white-space: nowrap; }
#bar nav a:hover, #bar nav a.on { color: #fff; background: rgba(255, 255, 255, .07); }
#bar .pages a[aria-current="page"] { color: var(--amber); background: rgba(255, 177, 42, .1); }
.onpage { position: relative; margin-left: auto; }
.onpagebtn, .menubtn { display: inline-flex; gap: 7px; align-items: center; font: 500 14px var(--sans); color: var(--text-secondary);
  background: rgba(255, 255, 255, .04); border: 1px solid var(--line); border-radius: 6px; padding: 6px 10px; cursor: pointer; white-space: nowrap; }
.onpagebtn:hover, .menubtn:hover, #bar.onpage-open .onpagebtn, #bar.menu-open .menubtn { color: #fff; background: rgba(255, 255, 255, .09); }
.onpagebtn svg { transition: transform .15s; } #bar.onpage-open .onpagebtn svg { transform: rotate(180deg); }
.onpagehead { display: none; }
.onpagebtn .cur { display: inline-block; max-width: 230px; overflow: hidden; text-overflow: ellipsis; color: var(--text-primary); }
.onpagebtn .sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
#bar .onpage nav { display: none; position: absolute; right: 0; top: calc(100% + 8px); flex-direction: column; min-width: 220px; padding: 6px;
  background: var(--card-solid); border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 12px 32px rgba(0, 0, 0, .55); }
#bar.onpage-open .onpage nav { display: flex; }
.menubtn { display: none; }
#lang { font: 600 12px var(--mono); color: var(--text-primary); background: rgba(255, 255, 255, .06); border: 1px solid var(--line);
  border-radius: 6px; padding: 7px 10px 5px; cursor: pointer; }
#lang:hover { background: rgba(255, 255, 255, .12); }
@media (max-width: 960px) {
  .menubtn { display: inline-flex; margin-left: auto; }
  .sitemenu { display: none; position: fixed; top: 56px; left: 8px; right: 8px; max-height: calc(100dvh - 68px); overflow: auto;
    flex-direction: column; align-items: stretch; gap: 6px; padding: 10px; background: var(--card-solid); border: 1px solid var(--line);
    border-radius: 12px; box-shadow: 0 16px 40px rgba(0, 0, 0, .6); }
  #bar.menu-open .sitemenu { display: flex; }
  #bar nav { flex-direction: column; }
  #bar nav a { font-size: 16px; padding: 11px 12px; }
  .onpage { margin: 4px 0 0; padding-top: 8px; border-top: 1px solid var(--line); }
  .onpagebtn { display: none; }
  .onpagehead { display: block; margin: 0 0 2px; padding: 0 12px; font: 600 11px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
  #bar .onpage nav { display: flex; position: static; min-width: 0; padding: 0; background: none; border: 0; box-shadow: none; }
}

#loader { position: fixed; inset: 0; z-index: 30; display: grid; place-content: center; justify-items: center; gap: 14px;
  background: var(--page); color: var(--text-secondary); transition: opacity .7s, visibility .7s; }
#loader.done { opacity: 0; visibility: hidden; }
.ring { width: 38px; height: 38px; border-radius: 50%; border: 2px solid rgba(255, 177, 42, .2); border-top-color: var(--amber); animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ------------------------------------------------------------------ chapters */
body:not(.doc) main { position: relative; z-index: 5; pointer-events: none; }   /* the 3D page: the scene underneath gets the pointer; cards turn it back on */
.ch { min-height: 120vh; padding: 18vh max(16px, 4vw) 10vh; display: flex; align-items: flex-start; pointer-events: none; }
.ch.tall { min-height: 340vh; }
.ch > * { pointer-events: auto; }
.card { width: min(460px, 100%); background: var(--card); backdrop-filter: blur(14px) saturate(1.2); -webkit-backdrop-filter: blur(14px) saturate(1.2);
  border: 1px solid var(--line); border-radius: 14px; padding: 26px 28px; box-shadow: 0 20px 60px rgba(0, 0, 0, .35); }
.card.sticky { position: sticky; top: 16vh; }
.card p { margin: 0 0 14px; color: var(--text-secondary); }
.step { font: 600 12px var(--mono); color: var(--amber) !important; letter-spacing: .14em; margin-bottom: 6px !important; }
h1, h2 { margin: 0 0 14px; line-height: 1.02; letter-spacing: -.02em; }
h1 { font-size: clamp(46px, 7.4vw, 92px); font-weight: 800; }
h2 { font-size: clamp(28px, 3.4vw, 40px); font-weight: 750; }
.kicker { font: 600 12px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--amber) !important; }
.hero { position: relative; min-height: 100vh; align-items: flex-end; padding-bottom: 16vh; }
.hero-card { background: transparent; border: 0; box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; padding: 0; width: min(620px, 100%); }
.hero-card h1 { text-shadow: 0 4px 40px rgba(0, 0, 0, .6); }
.lead { font-size: clamp(17px, 1.6vw, 20px); color: #e7e5dd !important; text-shadow: 0 2px 18px rgba(0, 0, 0, .8); max-width: 34em; }
.cue { position: absolute; left: 50%; bottom: 4vh; transform: translateX(-50%); display: grid; justify-items: center; gap: 8px;
  text-decoration: none; font: 600 11px var(--mono); letter-spacing: .2em; text-transform: uppercase; color: var(--text-secondary); }
.cue i { width: 1px; height: 46px; background: linear-gradient(var(--amber), transparent); animation: drip 1.8s ease-in-out infinite; }
@keyframes drip { 0% { transform: scaleY(0); transform-origin: top; } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }
@media (prefers-reduced-motion: reduce) { .cue i { animation: none; } }

.facts { display: grid; gap: 10px; margin: 18px 0 4px; }
.facts div { display: grid; grid-template-columns: minmax(92px, auto) 1fr; gap: 14px; align-items: baseline; border-top: 1px solid var(--line); padding-top: 10px; }
.facts dt { font-size: 26px; font-weight: 700; color: #fff; letter-spacing: -.01em; white-space: nowrap; }
.facts dd { margin: 0; color: var(--text-secondary); font-size: 14.5px; }
.facts small { color: var(--muted); font: 12px var(--mono); display: block; }

.toggle { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; }
.toggle button, .years button { font: 600 13px var(--sans); color: var(--text-secondary); background: rgba(255, 255, 255, .05);
  border: 1px solid var(--line); border-radius: 999px; padding: 7px 13px 5px; cursor: pointer; min-height: 34px; }
.toggle button:hover, .years button:hover { color: #fff; border-color: rgba(255, 255, 255, .25); }
.toggle button.on, .years button.on { color: #1a1205; background: var(--amber); border-color: var(--amber); }
.years { display: flex; flex-wrap: wrap; gap: 6px; margin: 18px 0 12px; }
.years button { font: 600 13px var(--mono); padding: 7px 10px 5px; }
.years.small button { font-size: 12px; padding: 5px 8px 3px; min-height: 30px; }
.note { font-size: 13px; color: var(--muted) !important; min-height: 1.4em; }
.streets { list-style: none; padding: 0; margin: 16px 0 0; display: flex; flex-wrap: wrap; gap: 6px; }
.streets li { font: 600 12px var(--mono); padding: 4px 7px 2px; border-radius: 4px; background: rgba(255, 177, 42, .12); color: #ffd58a; border: 1px solid rgba(255, 177, 42, .25); }
.streets li.other { background: rgba(255, 255, 255, .05); color: var(--text-secondary); border-color: var(--line); }

/* ------------------------------------------------------------------ numbers */
.origins { padding-top: 14vh; }
.numbers { padding-left: max(16px, 4vw); padding-right: max(16px, 4vw); min-height: auto; padding-bottom: 14vh; }
.panel { width: min(1180px, 100%); margin: 0 auto; background: rgba(9, 12, 16, .9); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  border: 1px solid var(--line); border-radius: 18px; padding: clamp(22px, 4vw, 48px); }
.panel .sub { color: var(--text-secondary); max-width: 46em; margin: 0 0 28px; }
.hero-figure { border-top: 1px solid var(--line); padding-top: 22px; margin-bottom: 18px; }
.hero-figure .label { margin: 0; color: var(--text-secondary); font-size: 14px; }
.hero-figure .big { font-size: clamp(56px, 9vw, 104px); font-weight: 750; letter-spacing: -.035em; line-height: 1; margin: 6px 0 8px; }
.hero-figure .delta { margin: 0; color: var(--text-secondary); }
.hero-figure .delta b { color: #7fd17f; }
.tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin: 22px 0 26px; }
@media (max-width: 980px) { .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.tile { background: var(--surface-1); border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px 12px; }
.tile .label { color: var(--text-secondary); font-size: 13px; }
.tile .value { font-size: 28px; font-weight: 700; margin-top: 2px; letter-spacing: -.01em; }
.tile .note { margin: 2px 0 0; font-size: 12.5px; }
.charts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.chart { margin: 0; background: var(--surface-1); border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px 12px; min-width: 0; }
.chart.wide { grid-column: 1 / -1; }
@media (max-width: 860px) { .charts { grid-template-columns: 1fr; } }
.chart figcaption { color: var(--text-secondary); font-size: 13px; margin-bottom: 8px; }
.chart figcaption b { display: block; color: var(--text-primary); font-size: 15.5px; margin-bottom: 2px; }
.chart .foot { color: var(--muted); font-size: 12.5px; margin: 6px 0 0; }
.legend { display: flex; flex-wrap: wrap; gap: 16px; color: var(--text-secondary); font-size: 12.5px; margin-bottom: 4px; }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 6px; vertical-align: -1px; }
svg.c { display: block; width: 100%; height: auto; overflow: visible; }
svg.c text { fill: var(--muted); font: 11px var(--sans); font-variant-numeric: tabular-nums; }
svg.c text.val { fill: var(--text-secondary); font-weight: 600; }
svg.c .gridline { stroke: var(--grid); stroke-width: 1; }
svg.c .baseline { stroke: var(--axis); stroke-width: 1; }
svg.c .mark { cursor: default; outline: none; }
svg.c .mark:hover, svg.c .mark:focus-visible { opacity: .82; }
#tip { position: fixed; z-index: 40; pointer-events: none; background: #1b2028; color: var(--text-primary); border: 1px solid var(--line);
  border-radius: 8px; padding: 8px 10px; font-size: 12.5px; box-shadow: 0 8px 24px rgba(0, 0, 0, .4); display: none; max-width: 260px; }
#tip b { display: block; font-size: 14px; }
#tip div { color: var(--text-secondary); }
.table-view { margin-top: 18px; color: var(--text-secondary); }
.table-view summary { cursor: pointer; font-size: 14px; }
.table-view table { width: 100%; border-collapse: collapse; margin-top: 12px; font-size: 13px; font-variant-numeric: tabular-nums; }
.table-view th, .table-view td { text-align: right; padding: 6px 8px; border-bottom: 1px solid var(--grid); white-space: nowrap; }
.table-view th:first-child, .table-view td:first-child { text-align: left; }
.table-view th { color: var(--muted); font-weight: 600; }
.table-view .tw { overflow-x: auto; }
.table-view h3 { font-size: 14px; color: var(--text-primary); margin: 18px 0 0; }

/* ------------------------------------------------------------------ origins: timeline and facts */
.origins .panel { background: rgba(9, 12, 16, .86); }
.timeline { list-style: none; margin: 8px 0 34px; padding: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 132px; top: 8px; bottom: 8px; width: 1px; background: rgba(255, 177, 42, .3); }
.timeline li { display: grid; grid-template-columns: 116px 1fr; gap: 34px; padding: 14px 0; position: relative; }
.timeline li::before { content: ""; position: absolute; left: 128px; top: 22px; width: 9px; height: 9px; border-radius: 50%;
  background: var(--amber); box-shadow: 0 0 0 4px rgba(255, 177, 42, .14); }
.timeline .when { font: 600 13px/1.3 var(--mono); color: var(--amber); text-align: right; padding-top: 4px; }
.timeline h3 { margin: 0 0 4px; font-size: 18px; letter-spacing: -.01em; }
.timeline p { margin: 0; color: var(--text-secondary); max-width: 62em; }
.timeline .src { font-size: 12px; color: var(--muted); margin-top: 6px; font-style: italic; }
@media (max-width: 760px) {
  .timeline::before { left: 6px; }
  .timeline li { grid-template-columns: 1fr; gap: 4px; padding-left: 26px; }
  .timeline li::before { left: 2px; top: 19px; }
  .timeline .when { text-align: left; }
}
.facts-title { font-size: 22px; margin: 6px 0 14px; }
.factgrid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
@media (max-width: 980px) { .factgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .factgrid { grid-template-columns: 1fr; } }
.fact { background: var(--surface-1); border: 1px solid var(--line); border-radius: 12px; padding: 16px 16px 12px; }
.fact .big { font-size: 30px; font-weight: 750; letter-spacing: -.02em; color: #fff; line-height: 1.05; }
.fact p { margin: 6px 0 0; color: var(--text-secondary); font-size: 14px; }
.fact .src { color: var(--muted); font-size: 11.5px; margin-top: 8px; font-style: italic; }

/* ------------------------------------------------------------------ explore */
.explore { min-height: 100vh; align-items: flex-end; padding-bottom: 4vh; }
.card.dock { width: min(560px, 100%); }
.toggle .zoom { display: inline-flex; gap: 6px; margin-left: auto; }
.toggle .zoom button { width: 34px; padding: 0; font: 600 18px/1 var(--sans); }
.check { display: inline-flex; gap: 8px; align-items: center; color: var(--text-secondary); font-size: 14px; cursor: pointer; }
.check input { accent-color: var(--amber); width: 16px; height: 16px; }
.hint-touch { display: none; }
@media (hover: none) { .hint-touch { display: block; } .hint-mouse { display: none !important; } }
html[data-lang="fr"] .hint-touch.en, html[data-lang="en"] .hint-touch.fr { display: none !important; }
body.exploring #scene { cursor: grab; }
body.exploring #scene:active { cursor: grabbing; }

footer { position: relative; z-index: 7; padding: 40px max(16px, 4vw) 48px; background: var(--page); border-top: 1px solid var(--line); }
footer > div { max-width: 1180px; margin: 0 auto; }
footer .notice { border: 1px solid rgba(255, 177, 42, .28); background: rgba(255, 177, 42, .05); border-radius: 12px;
  padding: 18px 20px 8px; margin: 0 0 26px; }
footer .notice h2 { font-size: 17px; margin: 0 0 10px; color: var(--amber); letter-spacing: 0; }
footer .notice p { color: var(--text-secondary); font-size: 13.5px; max-width: 78em; }
footer .notice b { color: var(--text-primary); }
footer a, .legal-line a, .caveat a { color: var(--amber); }
.legal-line { font-size: 13px !important; color: rgba(255, 255, 255, .62) !important; text-shadow: 0 1px 10px rgba(0, 0, 0, .8); margin-top: 6px !important; }
.caveat { font-size: 13px; color: var(--muted); margin: -16px 0 26px; }
footer p { color: var(--muted); font-size: 13px; max-width: 70em; margin: 0 0 10px; }
footer b { color: var(--text-secondary); }
.dim { color: var(--muted); }

@media (max-width: 760px) {
  .ch { padding-top: 64vh; }
  .hero { padding-top: 0; padding-bottom: 14vh; }
  .card { padding: 20px 20px; }
  .card.sticky { top: auto; bottom: 2vh; position: sticky; }
  .ch.tall { align-items: flex-end; }
  .facts dt { font-size: 22px; }
  #shade { background: linear-gradient(180deg, rgba(5, 7, 10, .0) 30%, rgba(5, 7, 10, .55) 100%); }
  #yearbig { top: 70px; bottom: auto; }
  .explore { padding-top: 60vh; }
}
#yearnote { font-size: 15px; color: var(--text-secondary) !important; min-height: 3.2em; }

/* ------------------------------------------------------------------ the history page */
body.doc { background: radial-gradient(1200px 600px at 80% -10%, rgba(255, 177, 42, .07), transparent 60%), var(--page); }
.docmain { max-width: 1060px; margin: 0 auto; padding: 120px max(16px, 4vw) 40px; }
.dochero { margin-bottom: 30px; }
.dochero h1 { font-size: clamp(38px, 6vw, 68px); }
.dochero .lead { text-shadow: none; }
.docsec { border-top: 1px solid var(--line); padding: 36px 0 18px; }
.docsec h2 { font-size: clamp(24px, 3vw, 32px); }
.docsec .sub { color: var(--text-secondary); margin: -4px 0 18px; max-width: 60em; }
.docsec .src { color: var(--muted); font-size: 12px; font-style: italic; }
.docsec a, .dochero a { color: var(--amber); }
.thumbs { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
@media (max-width: 900px) { .thumbs { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.thumb { margin: 0; background: var(--surface-1); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.thumb img { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; }
.thumb figcaption { padding: 8px 10px 10px; font-size: 12.5px; color: var(--text-secondary); line-height: 1.4; }
.thumb figcaption b { display: block; font: 600 14px var(--mono); color: var(--amber); margin-bottom: 2px; }
.checklist { margin: 0 0 12px; padding: 0; list-style: none; display: grid; gap: 8px; }
.checklist li { padding: 10px 14px 10px 36px; position: relative; background: var(--surface-1); border: 1px solid var(--line); border-radius: 8px; color: var(--text-secondary); }
.checklist li::before { content: ""; position: absolute; left: 14px; top: 17px; width: 8px; height: 8px; border-radius: 2px; background: var(--amber); }
.tw { overflow-x: auto; }
.doctable { width: 100%; border-collapse: collapse; font-size: 14px; font-variant-numeric: tabular-nums; margin-bottom: 10px; }
.doctable th { text-align: left; color: var(--muted); font-weight: 600; font-size: 12.5px; padding: 8px 10px; border-bottom: 1px solid var(--axis); }
.doctable td { padding: 8px 10px; border-bottom: 1px solid var(--grid); color: var(--text-secondary); }
.doctable td:first-child { color: var(--text-primary); font-weight: 600; }
.doctable td.num { white-space: nowrap; }
.doctable tr.gone td { color: var(--muted); }
.doctable tr.gone td:first-child { text-decoration: line-through; text-decoration-color: rgba(255, 255, 255, .35); }
.timeline-more { display: inline-flex; gap: 8px; align-items: center; margin: -14px 0 30px 166px; color: var(--amber); font-weight: 600; text-decoration: none;
  border: 1px solid rgba(255, 177, 42, .35); border-radius: 999px; padding: 8px 16px 6px; }
.timeline-more:hover { background: rgba(255, 177, 42, .1); }
@media (max-width: 760px) { .timeline-more { margin-left: 0; } }

.src a, .fact .src a, #tax-links a { color: var(--amber); text-decoration: none; font-style: normal; white-space: nowrap; }
.src a:hover, #tax-links a:hover { text-decoration: underline; }
@media (max-width: 560px) { .src a, .fact .src a, #tax-links a { white-space: normal; } }   /* a long source name may wrap on a phone */
#tax-links .src { font-size: 12.5px; margin: 6px 0 0; color: var(--muted); }
.src .sep { margin: 0 .2em; color: var(--muted); font-style: normal; }

/* explore: layers, street card, share */
.toggle.layers { align-items: center; }
.toggle .lbl { font: 600 12px var(--mono); color: var(--muted); letter-spacing: .06em; text-transform: uppercase; margin-right: 4px; }
.layernote { min-height: 0; margin: 6px 0 0 !important; }
.streetpick { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 14px; }
.streetpick label { font: 600 12px var(--mono); color: var(--muted); letter-spacing: .06em; text-transform: uppercase; }
.streetpick select { font: 600 14px var(--sans); color: var(--text-primary); background: rgba(255, 255, 255, .06); border: 1px solid var(--line);
  border-radius: 8px; padding: 7px 10px 5px; min-height: 34px; }
button.drive, button.share { font: 600 13px var(--sans); color: #1a1205; background: var(--amber); border: 0; border-radius: 999px; padding: 8px 14px 6px;
  cursor: pointer; min-height: 34px; }
button.drive:disabled { opacity: .4; cursor: default; }
button.share { background: rgba(255, 255, 255, .08); color: var(--text-primary); border: 1px solid var(--line); }
.streetcard { margin-top: 12px; border-top: 1px solid var(--line); padding-top: 10px; }
.streetcard .row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.streetcard .k { color: var(--muted); font-size: 11.5px; }
.streetcard .v { font-size: 18px; font-weight: 700; }
.streetcard svg { display: block; width: 100%; height: 70px; margin-top: 8px; }
.streetcard svg text { fill: var(--muted); font: 10px var(--sans); }
.dockfoot { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; margin-top: 14px; }
.streets li a { color: inherit; text-decoration: none; }
.streets li a:hover { text-decoration: underline; }

.chart.havelock { margin: 0 0 12px; }
.havtext { color: var(--text-secondary); font-size: 14.5px; max-width: 62em; margin: 10px 0 0; }

/* ------------------------------------------------------------------ the private streets page */
.law .docsec > p { color: var(--text-secondary); max-width: 62em; }
.law blockquote { margin: 14px 0 18px; padding: 14px 18px 12px; border-left: 3px solid var(--amber); background: var(--surface-1);
  border-radius: 0 10px 10px 0; max-width: 62em; }
.law blockquote p { margin: 0 0 8px; color: var(--text-primary); font-size: 15.5px; line-height: 1.55; }
.law blockquote cite { font-style: normal; font-size: 12.5px; }
.law blockquote cite a { color: var(--amber); text-decoration: none; }
.law blockquote cite a:hover { text-decoration: underline; }
.law a { color: var(--amber); }
.roles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 6px 0 4px; max-width: 62em; }
@media (max-width: 700px) { .roles { grid-template-columns: 1fr; } }
.role { background: var(--surface-1); border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px 8px; }
.role .term { font: 600 18px var(--mono); color: var(--amber); margin: 0 0 6px; }
.role p { color: var(--text-secondary); margin: 0 0 8px; }
.glossary { display: grid; grid-template-columns: max-content 1fr; gap: 10px 20px; max-width: 62em; margin: 0; }
.glossary dt { font: 600 14px var(--mono); color: var(--amber); }
.glossary dd { margin: 0; color: var(--text-secondary); }
@media (max-width: 600px) { .glossary { grid-template-columns: 1fr; gap: 2px; } .glossary dd { margin-bottom: 10px; } }
.morelink { display: inline-block; margin-top: 14px; color: var(--amber) !important; font-weight: 600; text-decoration: none; }
.morelink:hover { text-decoration: underline; }

/* history page: compare slider, NAPL, plan, sales */
.cmpbar { display: flex; gap: 16px; margin-bottom: 10px; color: var(--text-secondary); font-size: 14px; }
.cmpbar select { font: 600 14px var(--mono); color: var(--text-primary); background: rgba(255, 255, 255, .06); border: 1px solid var(--line); border-radius: 8px; padding: 6px 8px 4px; }
.compare { position: relative; max-width: 820px; aspect-ratio: 1; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); touch-action: pan-y; cursor: ew-resize; user-select: none; }
.compare img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.cmpclip { position: absolute; inset: 0; }
.cmphandle { position: absolute; top: 0; bottom: 0; width: 2px; background: var(--amber); transform: translateX(-1px); pointer-events: none; }
.cmphandle span { position: absolute; top: 50%; left: 50%; width: 34px; height: 34px; border-radius: 50%; background: var(--amber); transform: translate(-50%, -50%);
  box-shadow: 0 2px 12px rgba(0, 0, 0, .5); }
.cmphandle span::before { content: "‹ ›"; position: absolute; inset: 0; display: grid; place-items: center; color: #1a1205; font: 700 16px var(--sans); }
.cmptag { position: absolute; top: 10px; font: 600 14px var(--mono); color: #fff; background: rgba(0, 0, 0, .55); padding: 4px 8px 2px; border-radius: 6px; pointer-events: none; }
.cmptag.l { left: 10px; } .cmptag.r { right: 10px; }
.compare input[type=range] { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; opacity: 0; height: 30px; }
.napl { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
@media (max-width: 900px) { .napl { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.napl .thumb img { aspect-ratio: auto; height: 200px; object-fit: cover; filter: contrast(1.1); }
.napl .rec { color: var(--amber); text-decoration: none; font-size: 12px; }
.planfig { margin: 0 0 8px; max-width: 560px; background: #f4f2ea; border-radius: 10px; overflow: hidden; }
.planfig img { display: block; width: 100%; height: auto; }
.coverage { color: var(--muted); font-size: 13px; padding-left: 18px; margin: 10px 0 0; }
#saleschart svg { display: block; width: 100%; height: auto; }

.locator { margin: 0 0 26px; background: var(--surface-1); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px 10px; }
.locator figcaption { color: var(--text-secondary); font-size: 14px; }
.locator figcaption b { display: block; font-size: 15.5px; color: var(--text-primary); margin-bottom: 2px; }
.locmaps { display: grid; grid-template-columns: 1fr 2.55fr; gap: 10px; align-items: start; margin-top: 10px; }
.locmaps > div { min-width: 0; }
@media (max-width: 720px) { .locmaps { grid-template-columns: 1fr; } #locinset { order: 2; width: min(100%, 300px); margin: 0 auto; } }
.locator svg { display: block; width: 100%; height: auto; border-radius: 8px; background: #151b21; }
.locator svg text { fill: var(--text-secondary); font-family: var(--sans); paint-order: stroke; stroke: rgba(9, 12, 16, .82); stroke-linejoin: round; }
.locator svg text.me { fill: #ffb12a; font-weight: 700; }
.locator svg text.city, .locator svg text.town { fill: #f3f1ea; font-weight: 600; }
.locator svg text.village { fill: #c9c6bc; }
.locator svg text.peak { fill: #cfe0b8; font-weight: 600; }
.locator svg text.cty { fill: #a8a69c; font-family: var(--mono); font-weight: 600; letter-spacing: .14em; }
.locator svg text.relief { fill: #bfc9a8; font-style: italic; letter-spacing: .08em; }
.locator svg text.wlabel, .locator svg text.river { fill: #8fb8f0; font-style: italic; }
.locator svg text.dist { fill: #ffb12a; font-family: var(--mono); font-weight: 600; }
.locator svg text.post { fill: #c3c2b7; }
.locator svg text.shieldt { fill: #e9e6dc; font-family: var(--mono); font-weight: 600; stroke: none; }
.locator svg .water { fill: #2c5f9e; stroke: none; }
.locator svg .rivers, .locator svg .rivers_big { fill: none; stroke: #3f7fd0; stroke-linejoin: round; stroke-linecap: round; }
.locator svg .roads_major { fill: none; stroke: rgba(235, 226, 205, .62); stroke-linejoin: round; stroke-linecap: round; }
.locator svg .roads_minor { fill: none; stroke: rgba(235, 226, 205, .3); stroke-linejoin: round; stroke-linecap: round; }
.locator svg .border { fill: none; stroke: #e7e3d8; stroke-dasharray: 7 4; opacity: .85; }
.locator svg .states { fill: none; stroke: rgba(231, 227, 216, .45); stroke-dasharray: 4 3; }
.locator svg .shield { fill: #232a33; stroke: rgba(235, 226, 205, .55); }
.locator svg .mehalo { fill: rgba(255, 177, 42, .22); stroke: rgba(255, 177, 42, .6); stroke-width: 1px; }
.locator svg .medot { fill: #ffb12a; stroke: #090c10; }
.locator svg .pt { fill: #f3f1ea; stroke: #090c10; }
.locator svg .pt.village { fill: #c9c6bc; }
.locator svg .peak { fill: #b9d19a; }
.locator svg .post, .locator svg .north { fill: #c3c2b7; }
.locator svg .scale { stroke: #c3c2b7; }
.locator svg .distline { stroke: #ffb12a; fill: none; }
.locator svg .frame { fill: rgba(255, 177, 42, .08); stroke: #ffb12a; }
.locator .src { color: var(--muted); font-size: 12px; font-style: italic; margin: 8px 0 0; }

.law h3 { font-size: 18px; margin: 22px 0 10px; }
.checklist.rights li { color: var(--text-secondary); }
.checklist.rights a, .dodont a { color: var(--amber); }
.dodont { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; max-width: 62em; }
@media (max-width: 760px) { .dodont { grid-template-columns: 1fr; } }
.dodont > div { background: var(--surface-1); border: 1px solid var(--line); border-radius: 12px; padding: 14px 18px 6px; }
.dodont h3 { margin: 0 0 8px; font-size: 16px; }
.dodont .do h3 { color: #7fd17f; } .dodont .dont h3 { color: #ec835a; }
.dodont ul { margin: 0; padding-left: 18px; color: var(--text-secondary); }
.dodont li { margin-bottom: 8px; }
.compare2 td:first-child { white-space: nowrap; }
.compare2 td { vertical-align: top; }
.hero-links { margin: 4px 0 6px !important; }
.hero-links .morelink { margin-top: 0; font-size: 16px; text-shadow: 0 2px 14px rgba(0, 0, 0, .8); }

.qa { background: var(--surface-1); border: 1px solid var(--line); border-radius: 12px; padding: 12px 18px 6px; margin: 0 0 10px; max-width: 62em; }
.qa summary { cursor: pointer; font-weight: 700; font-size: 16.5px; color: var(--text-primary); padding: 4px 0 8px; }
.qa > p { color: var(--text-secondary); }
.qa blockquote { margin: 6px 0 12px; }
.qa .src a { color: var(--amber); text-decoration: none; white-space: normal; }

.speedbox { display: grid; grid-template-columns: auto 1fr; gap: 4px 18px; align-items: center; margin: 12px 0 6px; padding: 14px 18px;
  border: 1px solid rgba(255, 177, 42, .4); background: rgba(255, 177, 42, .07); border-radius: 12px; }
.speedbox .big { grid-row: span 2; margin: 0; font-size: 34px; font-weight: 800; color: var(--amber); letter-spacing: -.02em; white-space: nowrap; }
.speedbox p { margin: 0; color: var(--text-secondary); }
@media (max-width: 560px) { .speedbox { grid-template-columns: 1fr; } .speedbox .big { grid-row: auto; } }

/* "copie": the site's copy of an outside document (js/cache.js, cache.php) */
a.copy { margin-left: .4em; padding: 2px 4px 1px; border: 1px solid var(--line); border-radius: 4px; font: 600 10px/1 var(--mono) !important;
  letter-spacing: .06em; text-transform: uppercase; color: var(--muted) !important; text-decoration: none !important; white-space: nowrap; vertical-align: 1px; }
a.copy:hover { color: var(--amber) !important; border-color: var(--amber); }

/* ------------------------------------------------------------------ the council minutes page */
.pvfilter { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 6px; }
.pvfilter[hidden] { display: none; }
.pvfilter button { font: 600 13px var(--sans); color: var(--text-secondary); background: rgba(255, 255, 255, .05); border: 1px solid var(--line);
  border-radius: 999px; padding: 7px 14px 5px; min-height: 34px; cursor: pointer; }
.pvfilter button:hover { color: var(--text-primary); border-color: rgba(255, 177, 42, .45); }
.pvfilter button[aria-pressed="true"] { color: #1a1205; background: var(--amber); border-color: var(--amber); }
.pvfilter .n { font: 600 11.5px var(--mono); margin-left: 6px; opacity: .7; }
.pvtimeline li[hidden] { display: none; }
.pvtimeline .q { margin: 10px 0 0; padding: 8px 14px 6px; border-left: 2px solid rgba(255, 177, 42, .6); background: var(--surface-1);
  border-radius: 0 8px 8px 0; color: var(--text-primary); font-size: 15px; }
.pvtimeline .src { font-style: normal; }
.pvindex td { vertical-align: top; }
.pvtable { min-width: 640px; }
.pvtable td:first-child { white-space: nowrap; }
.morelink2 { margin-left: 18px; }
@media (max-width: 560px) { .morelink2 { display: block; margin-left: 0; } }

/* ------------------------------------------------------------------ the document viewer (js/pdfview.js) */
.pvview { width: min(1000px, calc(100vw - 24px)); max-width: none; max-height: calc(100dvh - 24px); padding: 0; border: 1px solid var(--line);
  border-radius: 14px; background: var(--card-solid); color: var(--text-primary); overflow: hidden; }
.pvview[open] { display: flex; flex-direction: column; }
.pvview::backdrop { background: rgba(4, 6, 9, .74); }
html:has(.pvview[open]) { overflow: hidden; }
.pvhead { position: relative; display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: flex-start; justify-content: space-between; padding: 14px 64px 12px 16px;
  border-bottom: 1px solid var(--line); }
.pvtitle { flex: 1 1 320px; min-width: 0; }
.pvkicker { margin: 0; font: 600 11.5px var(--mono); color: var(--amber); letter-spacing: .04em; }
.pvhead h2 { margin: 3px 0 0; font-size: 17px; line-height: 1.3; }
.pvtools { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.pvmode { display: inline-flex; gap: 6px; }
.pvtools button, .pvtools a, .pvclose { font: 600 12.5px var(--sans); color: var(--text-secondary); background: rgba(255, 255, 255, .05); border: 1px solid var(--line);
  border-radius: 999px; padding: 7px 12px 5px; min-height: 34px; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; }
.pvtools button:hover, .pvtools a:hover, .pvclose:hover { color: var(--text-primary); border-color: rgba(255, 177, 42, .45); }
.pvtools button[aria-pressed="true"] { color: #1a1205; background: var(--amber); border-color: var(--amber); }
.pvclose { position: absolute; top: 12px; right: 14px; font-size: 20px !important; line-height: 1; padding: 4px 12px !important; }
.pvbody { flex: 1; min-height: 220px; overflow: auto; padding: 14px 16px 20px; background: #0b0e12; }
.pvplabel { margin: 0 auto 4px; font: 600 11px var(--mono); color: var(--muted); }
.pvpage { position: relative; margin: 0 auto 16px; background: #fff; border-radius: 3px; box-shadow: 0 2px 16px rgba(0, 0, 0, .55); }
.pvpage canvas { display: block; }
.pvpage svg { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.pvpage .dim { fill: rgba(9, 12, 16, .5); fill-rule: evenodd; }
.pvpage .span { fill: none; stroke: var(--amber); stroke-width: 2.5px; vector-effect: non-scaling-stroke; }
.pvpage .key { fill: rgba(255, 177, 42, .3); }
.pvmsg { color: var(--text-secondary); margin: 20px 4px; }
@media (max-width: 560px) {
  .pvview { width: 100vw; max-height: 100dvh; height: 100dvh; border: 0; border-radius: 0; }
  .pvbody { padding: 10px 8px 16px; }
}

/* "Proposer une correction" (js/corrections.js, corrections.php) */
.fixbtn { display: inline-flex; align-items: center; gap: .35em; margin-top: 14px; padding: 6px 12px 5px; border-radius: 999px; border: 1px solid var(--line);
  background: rgba(255, 255, 255, .04); color: var(--text-secondary); font: 600 12.5px var(--sans); cursor: pointer; }
.fixbtn:hover, .fixbtn:focus-visible { color: var(--amber); border-color: rgba(255, 177, 42, .55); }
.docsec > .fixbtn { margin-top: 20px; }
.fixdlg { width: min(640px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); padding: 0; border: 1px solid var(--line); border-radius: 14px;
  background: #12161c; color: var(--text-primary); box-shadow: 0 20px 60px rgba(0, 0, 0, .55); }
.fixdlg::backdrop { background: rgba(0, 0, 0, .62); }
.fixdlg form { display: grid; gap: 12px; padding: 22px 22px 18px; }
.fixdlg h2 { margin: 0; font-size: 22px; }
.fixdlg .fixlead { margin: 0; color: var(--text-secondary); font-size: 14px; }
.fixdlg label { display: grid; gap: 5px; font-size: 13.5px; color: var(--text-secondary); }
.fixdlg input[type=text], .fixdlg input[type=email], .fixdlg textarea, .fixdlg select { box-sizing: border-box; width: 100%; padding: 9px 10px;
  font: 15px/1.4 var(--sans); color: var(--text-primary); background: #0b0e12; border: 1px solid rgba(255, 255, 255, .16); border-radius: 8px; }
.fixdlg input[type=file] { font: 13px var(--sans); color: var(--text-secondary); }
.fixdlg textarea { resize: vertical; }
.fixdlg :focus-visible { outline: 2px solid var(--amber); outline-offset: 1px; }
.fixrow { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 560px) { .fixrow { grid-template-columns: 1fr; } .fixdlg form { padding: 18px 16px 14px; } }
.fixdlg label.fixconsent { grid-template-columns: auto 1fr; align-items: start; gap: 9px; font-size: 12.5px; }
.fixconsent input { margin: 2px 0 0; }
.fixhp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.fixfiles { margin: -6px 0 0; padding: 0; list-style: none; font-size: 12.5px; color: var(--muted); }
.fixstatus { margin: 0; min-height: 1.3em; font-size: 13.5px; color: var(--text-secondary); }
.fixstatus.err { color: #ff8f80; }
.fixstatus.ok { color: #7ed7a6; }
.fixbtns { display: flex; justify-content: flex-end; gap: 10px; }
.fixbtns button { padding: 9px 16px 8px; border-radius: 8px; border: 1px solid var(--line); background: rgba(255, 255, 255, .06); color: var(--text-primary);
  font: 600 14px var(--sans); cursor: pointer; }
.fixbtns .fixsend { background: var(--amber); border-color: var(--amber); color: #1a1205; }
.fixbtns .fixsend[disabled] { opacity: .6; cursor: wait; }
.fixwho { display: grid; gap: 12px; margin: 0; padding: 12px 14px 14px; border: 1px solid var(--line); border-radius: 10px; }
.fixwho legend { padding: 0 6px; font-weight: 600; font-size: 14px; color: var(--text-primary); }
.fixnote { margin: -2px 0 0; font-size: 12.5px; color: var(--muted); }
.fixdlg input[type=tel] { box-sizing: border-box; width: 100%; padding: 9px 10px; font: 15px/1.4 var(--sans); color: var(--text-primary); background: #0b0e12;
  border: 1px solid rgba(255, 255, 255, .16); border-radius: 8px; }
.fixdlg [hidden] { display: none !important; }
