/* Thereabouts — site.css
   Direction A, as the owner approved it: Fraunces display, Inter text, warm paper, ink, one yellow, link green,
   square corners, ink rules. Every size, space, border and rule value comes from the inline styles of
   docs/design-reference/direction-a/Suburb.dc.html (1,280px container, 40px gutters). Tokens: assets/design-tokens.css. */

/* assets/design-tokens.css, inlined (one request fewer; keep the two in step) */
/* Thereabouts design tokens. Values from docs/brand-guidelines.md v1.1: the owner chose the Direction A mockup's
   fonts and colours (Fraunces display, Inter text, warm paper, ink, yellow, green). assets/design-tokens.json mirrors them. */
:root {
  --water: #CBD9DC;                /* areas 2: the bay on the area maps */
  /* palette */
  --color-ink: #17170F;
  --color-ink-soft: #5B5A52;      /* captions, labels, sources */
  --color-ink-body: #3D3C35;      /* running text and leads */
  --color-bg: #F3F0E8;            /* warm paper */
  --color-tone: #ECE8DD;          /* alternate section ground, footer */
  --color-surface: #FFFDF7;       /* fields, panels, chips, white tiles */
  --color-fill: #E6E1D4;          /* image and map frames */
  --color-rule-soft: #CFCBBE;     /* row rules inside tables and lists */
  --color-yellow: #F6D64A;        /* the one bright accent: the population tile, route ends, the claim button */
  --color-green: #146B3A;         /* links, section numbers, the CBD band */
  --color-green-dark: #0E4F2B;    /* link hover */
  --color-green-ink: #E4EFE7;     /* soft text on the green band */
  --color-band-rule: #4A4942;     /* row rules on the ink section */
  --color-success: #146B3A;
  --color-warning: #8A6D00;
  --color-error: #9B2C1F;

  /* dark scheme: the same roles, ground and ink swapped */
  --color-dark-bg: #17170F;
  --color-dark-tone: #201F18;
  --color-dark-surface: #2A2921;
  --color-dark-fill: #33322A;
  --color-dark-ink: #F3F0E8;
  --color-dark-ink-soft: #B5B3A8;
  --color-dark-ink-body: #D9D6CB;
  --color-dark-rule-soft: #4A4942;
  --color-dark-green: #7FD3A0;    /* links on the dark ground, 10.1:1 */

  /* type: Fraunces for display, Inter for text */
  --font-heading: 'Fraunces', Georgia, serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --size-display: clamp(64px, 9vw, 136px); /* H1 */
  --size-h2: 40px; --size-h2-band: 52px;
  --size-stat: 44px; --size-stat-word: 32px; --size-figure: 36px;
  --size-lead: 20px; --size-body: 16px; --size-small: 13px; --size-label: 12px;

  /* space and motion */
  --space-1: 0.25rem; --space-2: 0.5rem; --space-3: 0.75rem; --space-4: 1rem;
  --space-5: 1.5rem; --space-6: 2rem; --space-7: 3rem; --space-8: 4.5rem;
  --radius: 0;
  --ease-out: cubic-bezier(0.2, 0.7, 0.2, 1);
  --t-ui: 160ms;
  --t-reveal: 600ms;
}

@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../assets/fonts/fraunces-latin-opsz-normal.woff2") format("woff2-variations"), url("../assets/fonts/fraunces-latin-opsz-normal.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: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../assets/fonts/inter-latin-wght-normal.woff2") format("woff2-variations"), url("../assets/fonts/inter-latin-wght-normal.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;
}

/* ---------- roles ---------- */
:root {
  color-scheme: light;
  --bg: var(--color-bg);
  --tone: var(--color-tone);
  --surface: var(--color-surface);
  --fill: var(--color-fill);
  --ink: var(--color-ink);
  --soft: var(--color-ink-soft);
  --body: var(--color-ink-body);
  --rule: var(--ink);
  --rule-soft: var(--color-rule-soft);
  --yellow: var(--color-yellow);
  --link: var(--color-green);
  --link-hover: var(--color-green-dark);
  --frame: 1.5px;
  --green: var(--color-green);       /* the getting-to-the-CBD band */
  --green-ink: var(--color-green-ink);
  --band: var(--color-ink);          /* the ink section */
  --band-surface: #2A2921;
  --band-ink: var(--color-bg);
  --band-soft: var(--color-rule-soft);
  --band-rule: var(--color-band-rule);
  --gutter: clamp(16px, 4vw, 40px);
  --tabs-h: 3.5rem;
}
@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --bg: var(--color-dark-bg);
    --tone: var(--color-dark-tone);
    --surface: var(--color-dark-surface);
    --fill: var(--color-dark-fill);
    --ink: var(--color-dark-ink);
    --soft: var(--color-dark-ink-soft);
    --body: var(--color-dark-ink-body);
    --rule-soft: var(--color-dark-rule-soft);
    --link: var(--color-dark-green);
    --link-hover: var(--color-dark-ink);
    --band: #24231B;
    --water: #26302F;
    --band-surface: #33322A;
    --band-ink: var(--color-dark-ink);
    --band-soft: #C9C6BA;
    --band-rule: #4F4E45;
  }
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--tabs-h) + 1rem); }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font-body); font-size: var(--size-body); line-height: 1.5; }
h1, h2, h3 { font-family: var(--font-heading); margin: 0; }
h2 { font-weight: 700; font-size: var(--size-h2); line-height: 1.05; letter-spacing: -0.02em; }
h3 { font-weight: 700; font-size: 22px; line-height: 1.2; letter-spacing: -0.015em; }
p { margin: 0; }
a { color: var(--link); text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
a:hover { color: var(--link-hover); }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
img, svg { max-width: 100%; }
ul, ol { margin: 0; padding: 0; list-style: none; }
dd { margin: 0; }
.wrap { max-width: 1280px; margin: 0 auto; padding: 0 var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.sr-only:focus { position: fixed; top: 0.5rem; left: 0.5rem; width: auto; height: auto; clip-path: none; background: var(--yellow); color: #17170F; padding: 0.5rem 1rem; z-index: 50; }
.small { font-size: 14px; line-height: 1.45; }
.source, .note { font-size: var(--size-small); line-height: 1.45; color: var(--soft); max-width: 52rem; }
.soft, .muted { color: var(--soft); }
.lead { font-size: var(--size-lead); line-height: 1.5; color: var(--body); max-width: 640px; }
.measure { max-width: 44rem; }
.empty { background: var(--surface); color: var(--soft); font-size: 15px; padding: 16px 22px; max-width: 52rem; border-left: 3px solid var(--rule); }
.eyebrow, .label { font-size: var(--size-label); text-transform: uppercase; letter-spacing: 0.1em; font-weight: 600; }

/* ---------- header: 3px rule, logo / nav / search, double rule ---------- */
.site-header .wrap { padding-top: 20px; }
.masthead, .site-header .wrap:not(:has(.masthead)) { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; border-top: 3px solid var(--rule); padding: 16px 0 14px; }
.site-header .wrap:not(:has(.masthead)) { padding-top: 16px; } /* index page header (no .masthead), until it gets its own round */
.rule-double { height: 3px; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.logo { text-decoration: none; color: var(--ink); display: inline-flex; align-items: center; min-height: 58px; }
.logo:hover { color: var(--ink); }
.tagline { margin: 0; color: var(--soft); font-size: var(--size-small); } /* index page only */
.logo svg { height: 31px; width: auto; display: block; }
.wordmark { font-family: var(--font-heading); font-weight: 900; font-size: 40px; letter-spacing: -0.03em; line-height: 1; }
.site-nav { display: flex; flex-wrap: wrap; gap: 0 28px; font-size: 15px; font-weight: 500; }
.site-nav a { color: var(--ink); text-decoration: none; padding: 10px 0; border-bottom: 2px solid transparent; }
.site-nav a:hover, .site-nav a[aria-current] { border-bottom-color: var(--link); color: var(--ink); }
.search { position: relative; display: flex; flex: 0 1 360px; min-width: 240px; }
.search .field { flex: 1 1 auto; min-width: 0; border-right: 0; }
.search-go { font: inherit; font-size: 15px; font-weight: 600; height: 44px; padding: 0 18px; border: var(--frame) solid var(--rule); background: var(--ink); color: var(--bg); cursor: pointer; }
.search-go:hover { background: var(--soft); }
@media (max-width: 47.99em) { .search { flex: 1 1 100%; min-width: 0; } }
.suggest { position: absolute; left: 0; right: 0; top: 100%; background: var(--surface); border: var(--frame) solid var(--rule); border-top: 0; display: none; z-index: 30; }
.suggest.is-open { display: block; }
.suggest a { display: flex; justify-content: space-between; gap: 1rem; padding: 0.65rem 14px; text-decoration: none; color: var(--ink); font-size: 15px; }
.suggest a:hover, .suggest a.is-hot { background: var(--tone); }
.suggest .small { color: var(--soft); }

/* ---------- intro: breadcrumb, hero, stat row ---------- */
.intro { padding-top: 32px; display: flex; flex-direction: column; gap: 28px; }
.dateline { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 8px 24px; font-size: var(--size-small); }
.dateline .small { font-size: var(--size-small); }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: var(--size-small); color: var(--soft); }
.crumbs a { color: var(--soft); text-decoration: none; }
.crumbs a:hover { text-decoration: underline; color: var(--ink); }
.crumbs [aria-current] { font-weight: 600; color: var(--ink); }

.hero-text { min-width: 0; display: flex; flex-direction: column; gap: 16px; container-type: inline-size; }
.hero .eyebrow { font-size: var(--size-small); letter-spacing: 0.14em; color: var(--link); }
/* the name fits its column: never wider than the longest word allows */
.hero h1 { font-weight: 900; font-size: var(--size-display); font-size: min(var(--size-display), calc(100cqi / (var(--len, 7) * 0.62))); line-height: 0.88; letter-spacing: -0.04em; overflow-wrap: break-word; }
.postcode { font-size: 0.42em; font-weight: 500; color: var(--soft); letter-spacing: -0.02em; vertical-align: 0.35em; white-space: nowrap; }

/* ---------- ink-framed grids: stat row, figures, parks ---------- */
/* flex rows, not grid: the last row stretches, and each cell draws its own right and bottom line, so no block of ink shows */
.tiles, .figures, .park-grid, .list:not(.list-rows) { display: flex; flex-wrap: wrap; border: solid var(--rule); border-width: var(--frame) 0.5px 0.5px var(--frame); overflow: hidden; background: var(--bg); margin: 0; }
.tiles > *, .figures > *, .park-grid > *, .list:not(.list-rows) > * { box-shadow: inset -1px 0 0 var(--rule), inset 0 -1px 0 var(--rule); min-width: 0; } /* inset, so no neighbour covers the line; the frame's thin right and bottom edges add up to 1.5px with the last cell's line */
.tile { flex: 1 1 200px; padding: 20px 22px; display: flex; flex-direction: column; gap: 6px; background: var(--surface); }
.tile .label { color: var(--soft); }
.tile .figure { font-family: var(--font-heading); font-weight: 900; font-size: var(--size-stat); line-height: 1; letter-spacing: -0.03em; overflow-wrap: break-word; }
.tile-word .figure { font-size: var(--size-stat-word); line-height: 1.1; letter-spacing: -0.02em; }
.tile .figure small { font-size: inherit; font-weight: inherit; letter-spacing: inherit; }
.tile .sub { font-size: var(--size-small); line-height: 1.4; color: var(--soft); }
.figure-empty { font-size: 0.6em; color: var(--soft); }
.tile-yellow { background: var(--yellow); color: #17170F; }
.tile-yellow .label, .tile-yellow .sub, .tile-yellow .figure-empty { color: #3D3C35; }

/* ---------- on this page: links between two rules; stays in view ---------- */
.tabs { position: sticky; top: 0; z-index: 20; background: var(--bg); margin-top: 28px; }
.tabs-row { display: flex; gap: 4px 24px; overflow-x: auto; scrollbar-width: none; padding: 14px 0; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); font-size: 14px; font-weight: 600; }
.tabs-row::-webkit-scrollbar { display: none; }
.tabs a { white-space: nowrap; color: var(--ink); text-decoration: none; padding: 8px 0; border-bottom: 2px solid transparent; }
.tabs a:hover { border-bottom-color: var(--soft); color: var(--ink); }
.tabs a.is-current { border-bottom-color: var(--link); }

/* ---------- getting to the CBD: the green band ---------- */
/* Round 1b: heading row with one small line, the route on a paper strip with one trip line under it, the toggle, one source
   line. Each slot has a fixed height per width, so the band is one height on every suburb (about 380px at 1440). The strip
   keeps paper and ink in both schemes, like a printed line diagram, so every line colour reads on it. */
.band { border-top: 1px solid var(--rule); background: var(--green); color: #F3F0E8; padding: 40px 0; }
.band .wrap { display: flex; flex-direction: column; gap: 20px; }
.band a { color: inherit; }
.band .source, .band .soft { color: var(--green-ink); }
.band-head { display: flex; flex-wrap: wrap; gap: 8px 40px; align-items: baseline; justify-content: space-between; }
.band-head h2 { font-weight: 900; font-size: var(--size-h2-band); line-height: 1; letter-spacing: -0.03em; }
.band-sub { font-size: 15px; line-height: 20px; font-weight: 600; color: var(--green-ink); min-height: 40px; }
@media (max-width: 70em) { .band-head { flex-direction: column; } } /* the small line sits under the heading, whatever its length, so the head is one height */
@media (min-width: 70.01em) { .band-head { flex-wrap: nowrap; } .band-sub { flex: 1 1 0; min-width: 0; text-align: right; } } /* F7: a long route line wraps inside its own column, so the head keeps one height */
@media (max-width: 37.5em) { .band-head h2 { font-size: 40px; } .band-sub { min-height: 60px; } }

/* ---------- numbered sections ---------- */
.section { border-top: 1px solid var(--rule); padding: 48px 0; }
.section > .wrap { display: flex; flex-direction: column; gap: 24px; }
.section-tone { background: var(--tone); }
.sec-head { display: flex; flex-wrap: wrap; gap: 16px 24px; align-items: flex-start; justify-content: space-between; }
.sec-head p { max-width: 460px; font-size: 15px; line-height: 1.5; color: var(--body); }
.sec-n { color: var(--link); font-variant-numeric: tabular-nums; }
.section-ink { background: var(--band); color: var(--band-ink); }
.section-ink .sec-n { color: var(--yellow); }
.section-ink .sec-head p, .section-ink .source, .section-ink .soft { color: var(--band-soft); }
.section-ink a { color: var(--band-ink); }
section#neighbours { padding-bottom: 64px; }
.subhead { font-family: var(--font-body); font-size: var(--size-small); font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--soft); margin: 0 0 12px; }
.split { display: flex; flex-wrap: wrap; gap: 40px; align-items: flex-start; }
.split > * { flex: 1 1 340px; min-width: 0; }
.split > :first-child:not(:only-child) { flex: 999 1 520px; }
/* schools: list and zone box side by side at equal width, so a short list leaves no empty gap beside the taller box */
.split-schools > :first-child:not(:only-child) { flex: 1 1 340px; }

/* people: figure tiles, then the largest groups */
.figures > div { flex: 1 1 180px; padding: 20px; display: flex; flex-direction: column; gap: 8px; background: var(--bg); }
.figures dt { font-size: var(--size-label); font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--soft); line-height: 1.4; }
.figures dd { font-family: var(--font-heading); font-weight: 900; font-size: var(--size-figure); line-height: 1; letter-spacing: -0.03em; }
.bar-groups { display: grid; gap: 24px 40px; grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr)); }
.bar-groups h3 { font-family: var(--font-body); font-size: var(--size-small); font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--soft); margin-bottom: 12px; }
.bars { display: grid; gap: 10px; border-top: 2px solid var(--rule); padding-top: 14px; }
.bar { display: grid; grid-template-columns: minmax(0, 8rem) 1fr 2.75rem; gap: 12px; align-items: center; font-size: 15px; }
.track { background: var(--rule-soft); height: 10px; }
.fill { display: block; height: 100%; background: var(--ink); }
.bar .num { text-align: right; font-variant-numeric: tabular-nums; font-weight: 700; }

/* tables: schools, distances */
.table-scroll { overflow-x: auto; }
.table-ruled { border-top: 2px solid var(--rule); }
table { width: 100%; border-collapse: collapse; font-size: 15px; }
thead th { text-align: left; font-size: var(--size-label); font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--soft); padding: 12px; border-bottom: 1px solid var(--rule); }
tbody th, td { text-align: left; padding: 14px 12px; border-bottom: 1px solid var(--rule-soft); vertical-align: top; }
thead th:first-child, tbody th:first-child, td:first-child { padding-left: 0; }
thead th:last-child, td:last-child { padding-right: 0; }
tbody th { font-weight: 600; }
.schools { min-width: 640px; }
.schools tbody th { font-size: 17px; }
.schools .sub { display: block; font-size: var(--size-small); font-weight: 400; color: var(--soft); margin-top: 2px; }
.num { text-align: right !important; white-space: nowrap; font-variant-numeric: tabular-nums; }

/* rows: nearby schools, sources */
.list-rows { border-top: 2px solid var(--rule); }
.list-rows li { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--rule-soft); }
.list-rows .k { font-size: 16px; font-weight: 600; min-width: 0; }
.list-rows .k .soft { font-weight: 400; font-size: 14px; }
.list-rows .v { font-size: 15px; color: var(--soft); white-space: nowrap; text-align: right; font-variant-numeric: tabular-nums; }
#data .list-rows .k { font-size: 15px; }
#data .list-rows .v { white-space: normal; font-size: var(--size-small); }
@media (max-width: 30em) { .list-rows li { flex-direction: column; gap: 2px; } .list-rows .v { text-align: left; white-space: normal; } }

/* the plain list grid (index page) */
.list:not(.list-rows) > li { flex: 1 1 16.5rem; display: flex; flex-direction: column; gap: 0.2rem; padding: 14px 20px; background: var(--bg); }
.list:not(.list-rows) .v { font-size: 14px; color: var(--soft); }
.list .k .soft { display: block; font-size: 14px; }

/* parks */
.park-grid > li { flex: 1 1 240px; padding: 20px; display: flex; flex-direction: column; gap: 6px; min-height: 120px; background: var(--bg); }
.section-tone .park-grid > li { background: var(--bg); }
.park-grid strong { font-family: var(--font-heading); font-weight: 700; font-size: 22px; line-height: 1.2; letter-spacing: -0.015em; }
.park-grid span { font-size: 14px; line-height: 1.45; color: var(--body); }

/* shops and cafés: the rolling shelf is under D4 below; the claim card follows it */

/* things to do: the numbered list */
.todo { border-top: 2px solid var(--rule); }
.todo li { display: flex; gap: 20px; padding: 18px 0; border-bottom: 1px solid var(--rule-soft); }
.todo-n { font-family: var(--font-heading); font-weight: 900; font-size: 28px; line-height: 1; color: var(--link); min-width: 40px; }
.todo li > div { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.todo h3 { font-family: var(--font-body); font-size: 19px; font-weight: 600; letter-spacing: 0; }
.todo h3 .small { font-weight: 400; }
.todo p { font-size: 15px; line-height: 1.5; color: var(--body); }
.todo p.small { font-size: 14px; color: var(--soft); }

.panel { background: var(--surface); border: var(--frame) solid var(--rule); padding: 22px; display: grid; gap: 10px; }
.field-row { display: flex; flex-wrap: wrap; gap: 10px; }
.field-row .field { flex: 1 1 14rem; }

.neigh { display: flex; flex-wrap: wrap; gap: 10px; }
.neigh a, .neigh > span { display: inline-flex; align-items: center; gap: 0.6rem; height: 44px; padding: 0 18px; border: var(--frame) solid var(--rule); background: var(--surface); color: var(--ink); text-decoration: none; font-size: 15px; }
.neigh a:hover { background: var(--ink); color: var(--bg); }
.neigh a:hover .soft { color: inherit; }
.neigh strong { font-weight: 600; }
.neigh .small { font-size: var(--size-small); }
.downloads { display: flex; flex-wrap: wrap; gap: 10px; margin: 20px 0; }

/* ---------- controls ---------- */
.field { font: inherit; font-size: 15px; color: var(--ink); background: var(--surface); border: var(--frame) solid var(--rule); border-radius: 0; padding: 0 14px; height: 44px; }
.field::placeholder { color: var(--soft); opacity: 1; }
textarea.field { height: auto; min-height: 6rem; padding: 10px 14px; resize: vertical; width: 100%; }
.button { font: inherit; font-size: 15px; font-weight: 700; color: #17170F; background: var(--yellow); border: var(--frame) solid #17170F; border-radius: 0; padding: 0 20px; height: 48px; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; }
.button:hover { background: #E9C52F; color: #17170F; }
.button-quiet { background: var(--surface); color: var(--ink); border-color: var(--rule); font-weight: 600; }
.button-quiet:hover { background: var(--ink); color: var(--bg); }

/* ---------- distances (the ink section): table and map ---------- */
.section-ink table { font-size: 16px; }
.section-ink thead th { color: var(--band-soft); padding-top: 10px; padding-bottom: 10px; border-bottom-color: var(--band-ink); }
.section-ink td, .section-ink tbody th { border-bottom-color: var(--band-rule); }
.section-ink td[data-figure] { font-weight: 600; }
.section-ink tr.is-cbd td[data-figure] { color: var(--yellow); }
.section-ink tr.is-cbd .row-button { font-family: var(--font-heading); font-weight: 700; font-size: 22px; letter-spacing: -0.015em; }
.row-button { font: inherit; font-weight: 600; color: inherit; background: none; border: 0; padding: 0; text-align: left; cursor: pointer; }
.row-button:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
.row-button .sub { display: block; font-family: var(--font-body); font-size: 14px; font-weight: 400; letter-spacing: 0; color: var(--band-soft); text-decoration: none; }
tr.is-active td { background: var(--band-ink); color: var(--band); }
tr.is-active td[data-figure] { color: var(--band) !important; }
tr.is-active .sub, tr.is-active .soft { color: inherit; }
tr.is-active td:first-child { box-shadow: -0.5rem 0 0 var(--band-ink); }
.map-card { background: var(--band-surface); border: var(--frame) solid var(--band-ink); display: grid; grid-template-rows: auto minmax(0, 1fr) auto; min-height: 26rem; }
@media (min-width: 60em) { .map-card { position: sticky; top: calc(var(--tabs-h) + 1rem); min-height: 30rem; } }
.map-tools { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; padding: 8px; }
.seg { display: flex; gap: 0; }
.seg button { font: inherit; font-size: 14px; font-weight: 600; color: var(--band-ink); background: transparent; border: var(--frame) solid var(--band-ink); margin-right: -1.5px; padding: 0 14px; height: 44px; cursor: pointer; }
.seg button[aria-pressed="true"] { background: var(--band-ink); color: var(--band); }
.map-card .button-quiet { background: transparent; color: var(--band-ink); border-color: var(--band-ink); height: 44px; font-size: 14px; }
.map-card .button-quiet:hover { background: var(--band-ink); color: var(--band); }
.map-view { position: relative; min-height: 20rem; background: var(--color-fill); }
.map-view .live-map { position: absolute; inset: 0; }
.map-fallback { position: absolute; inset: 0; display: grid; place-items: center; padding: 32px; text-align: center; color: #5B5A52; font-size: 14px; }
.map-card.has-map .map-fallback { display: none; }
.map-foot { padding: 8px 12px; color: var(--band-soft); min-height: 2.4rem; }

/* MapLibre base rules (the library's own stylesheet is not loaded) */
.maplibregl-map { overflow: hidden; position: relative; -webkit-tap-highlight-color: rgb(0 0 0 / 0); font-family: inherit; }
.maplibregl-canvas { position: absolute; left: 0; top: 0; }
.maplibregl-canvas-container.maplibregl-interactive { cursor: grab; }
.maplibregl-canvas-container.maplibregl-interactive:active { cursor: grabbing; }
.maplibregl-marker { position: absolute; top: 0; left: 0; will-change: transform; }
.maplibregl-ctrl-bottom-right { position: absolute; bottom: 0; right: 0; pointer-events: none; z-index: 2; }
.maplibregl-ctrl-bottom-left { position: absolute; bottom: 0; left: 0; pointer-events: none; z-index: 2; }
.maplibregl-ctrl-top-right { position: absolute; top: 0; right: 0; pointer-events: none; z-index: 2; }
.maplibregl-ctrl { clear: both; pointer-events: auto; }
.maplibregl-ctrl-group { background: #F3F0E8; border-radius: 0; margin: 10px; box-shadow: 0 1px 4px rgb(0 0 0 / 0.15); overflow: hidden; }
.maplibregl-ctrl-group button { width: 32px; height: 32px; display: block; border: 0; border-bottom: 1px solid #CFCBBE; background: #F3F0E8; }
.maplibregl-ctrl-group button:last-child { border-bottom: 0; }
.maplibregl-ctrl-group button .maplibregl-ctrl-icon { display: block; width: 100%; height: 100%; background-repeat: no-repeat; background-position: center; }
.maplibregl-ctrl-zoom-in .maplibregl-ctrl-icon { background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 29 29'%3E%3Cpath d='M14.5 8.5v12M8.5 14.5h12' stroke='%23333' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E"); }
.maplibregl-ctrl-zoom-out .maplibregl-ctrl-icon { background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 29 29'%3E%3Cpath d='M8.5 14.5h12' stroke='%23333' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E"); }
.maplibregl-ctrl-compass .maplibregl-ctrl-icon { background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 29 29'%3E%3Cpath d='M10.5 14l4-8 4 8z' fill='%23333'/%3E%3Cpath d='M10.5 16l4 8 4-8z' fill='%23ccc'/%3E%3C/svg%3E"); }
.maplibregl-ctrl-attrib { background: rgb(243 240 232 / 0.85); color: #5B5A52; margin: 0; padding: 2px 8px; font-size: 12px; }
.maplibregl-ctrl-attrib a { color: #17170F; }
.maplibregl-ctrl-attrib.maplibregl-compact { margin: 6px; border-radius: 0; }
.maplibregl-ctrl-attrib-button { display: none; }
.maplibregl-ctrl-attrib.maplibregl-compact .maplibregl-ctrl-attrib-inner { display: block; }
.maplibregl-cooperative-gesture-screen { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: rgb(0 0 0 / 0.4); color: #fff; font-size: 1rem; text-align: center; padding: 1rem; opacity: 0; pointer-events: none; transition: opacity 0.3s; }
.maplibregl-cooperative-gesture-screen.maplibregl-show { opacity: 1; }
.maplibregl-cooperative-gesture-screen .maplibregl-mobile-message { display: none; }
@media (hover: none) { .maplibregl-cooperative-gesture-screen .maplibregl-desktop-message { display: none; } .maplibregl-cooperative-gesture-screen .maplibregl-mobile-message { display: block; } }
.mk { display: grid; place-items: center; }
.mk[hidden] { display: none; }
.mk-pin { width: 26px; height: 26px; border-radius: 50%; background: #F3F0E8; box-shadow: inset 0 0 0 5px #17170F; display: grid; place-items: center; }
.mk-pin::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: #F6D64A; }
.mk-school { width: 13px; height: 13px; background: #17170F; }
.mk-station { width: 18px; height: 18px; border-radius: 50%; background: #F3F0E8; box-shadow: inset 0 0 0 4px #17170F; }
.mk-park { width: 11px; height: 11px; background: #146B3A; }
.mk-dest { width: 14px; height: 14px; background: #F6D64A; box-shadow: 0 0 0 3px #17170F; }
.mk-label { position: absolute; left: 50%; top: 100%; transform: translate(-50%, 5px); white-space: nowrap; background: #F3F0E8; color: #17170F; padding: 1px 6px; font-size: 14px; font-weight: 600; line-height: 1.35; }
.mk.is-active .mk-label { background: #17170F; color: #F3F0E8; }

/* ---------- footer ---------- */
.site-footer { border-top: 3px solid var(--rule); background: var(--tone); font-size: var(--size-label); color: var(--soft); padding: 32px 0; }
.site-footer p { margin: 0; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-bottom: 16px; }
.footer-links a { display: inline-block; padding: 8px 0; }

/* ---------- entrances: rise and fade, 80 ms stagger; reduced motion keeps the content still ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js [data-reveal] { opacity: 0; transform: translateY(20px); transition: opacity var(--t-reveal) var(--ease-out), transform var(--t-reveal) var(--ease-out); }
  .js [data-reveal].is-in { opacity: 1; transform: none; }
  [data-reveal]:nth-child(2) { transition-delay: 80ms; }
  [data-reveal]:nth-child(3) { transition-delay: 160ms; }
  [data-reveal]:nth-child(4) { transition-delay: 240ms; }
  [data-reveal]:nth-child(5) { transition-delay: 320ms; }
}

/* index page (templates/index.php keeps its markup until its own round) */
h1 { font-weight: 900; font-size: clamp(40px, 6vw, 72px); line-height: 0.95; letter-spacing: -0.035em; }
.wrap > .section { display: flex; flex-direction: column; gap: 24px; border-top: 0; }
@media (max-width: 37.5em) { .tile { flex-basis: 140px; padding: 16px 18px; } .tile .figure { font-size: clamp(26px, 8vw, 38px); } .tile-word .figure { font-size: clamp(20px, 6vw, 26px); } }

/* Sources: group headings and the collapsible census table list */
.src-h { font: 600 var(--size-small) var(--font-ui, inherit); text-transform: uppercase; letter-spacing: .08em; margin: 28px 0 8px; }
.src-h:first-of-type { margin-top: 0; }
.src-tables { margin-top: 6px; font-weight: 400; }
.src-tables summary { cursor: pointer; font-size: 14px; color: var(--soft); }
.src-tables summary:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }

/* "On this page" bar: tighter on tablet, and the right edge fades so a cut-off link reads as scrollable */
@media (max-width: 64em) {
  .tabs-row { gap: 4px 18px; padding-right: 32px; -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 32px), transparent); mask-image: linear-gradient(to right, #000 calc(100% - 32px), transparent); }
}

/* ---------- hero, current design (pages without the round 9 flag; deleted when the owner approves the new one) ---------- */
.hero .eyebrow { display: flex; align-items: center; gap: 12px; }

/* ---------- D14: one suburb hero (replaces site.css "hero: text left, the slot right", lines 454-470, and any .hero--r9 / .hero-band rules) ----------
   Three rows on every suburb at every width: the illustration band, the words, the facts box. Nothing sits beside a column of a
   different height except the H1 and the intro at 1024 and up, and those two end on the same line. */
.hero.hero--r9 { display: flex; flex-direction: column; align-items: stretch; gap: 28px; }
.hero--r9 .eyebrow { display: flex; align-items: center; gap: 12px; }
.shape-stamp { display: block; height: 40px; width: auto; max-width: 64px; }
.sh-shape { fill: var(--ink); }

/* the slot: same size and place on every page. The drawing (<img>) when assets/illustrations/<slug>.svg exists, else the plan (<svg class="hero-plan">) */
.hero--r9 .hero-art { margin: 0; border: var(--frame) solid var(--rule); background: var(--bg); overflow: hidden; }
.hero--r9 .hero-art > img, .hero--r9 .hero-art > svg { display: block; width: 100%; height: auto; aspect-ratio: 1280 / 340; object-fit: cover; object-position: 65% 50%; }
@media (max-width: 37.5em) { .hero--r9 .hero-art > img, .hero--r9 .hero-art > svg { aspect-ratio: 2 / 1; } }
/* the plan: the suburb's ABS boundary in ink line, hatched, the pin in yellow, a north arrow and a 1 km bar. Drawn by PHP, coloured here, so dark mode follows */

/* the words: one column below 1024; from 1024 the name on the left and the intro on the right, both ending on the same line */
.hero--r9 .hero-text { min-width: 0; display: flex; flex-direction: column; gap: 16px; container-type: inline-size; }
@media (min-width: 64em) {
  .hero--r9 .hero-text { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-areas: "eb eb" "h1 lead"; gap: 0 48px; align-items: start; } /* h1 sits level with the start of the intro */
  .hero--r9 .hero-text > .eyebrow { grid-area: eb; margin-bottom: 16px; }
  .hero--r9 .hero-text > h1 { grid-area: h1; font-size: min(var(--size-display), calc((50cqi - 24px) / (var(--len, 7) * 0.62))); }
  .hero--r9 .hero-text > .lead { grid-area: lead; }
}
.hero--r9 .lead > .empty { margin-top: 12px; padding: 10px 16px; font-size: 14px; }

/* the facts box: one frame, four tiles. 2 + 2 at phone width, one row from 600 */
.hero--r9 .hero-slot { min-width: 0; height: auto; background: var(--surface); }
.hero--r9 .hero-slot > .tiles { height: auto; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.hero--r9 .hero-slot > .tiles > :last-child:nth-child(odd) { grid-column: 1 / -1; }
.hero--r9 .hero-slot .tile { padding: 18px 20px; }
.hero--r9 .hero-slot .tile-word .figure { overflow-wrap: normal; hyphens: manual; }
@media (min-width: 37.51em) {
  .hero--r9 .hero-slot > .tiles { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); } /* four tiles, or three on the CBD page */
  .hero--r9 .hero-slot > .tiles > :last-child:nth-child(odd) { grid-column: auto; }
}
@media (min-width: 64em) {
  .hero--r9 .hero-slot .tile .figure { font-size: clamp(32px, 3.1vw, 44px); }
  .hero--r9 .hero-slot .tile-word .figure { font-size: clamp(22px, 2.2vw, 32px); }
}

/* ---------- D15: Distances, option A elevated (new block; put it after the "distances (the ink section)" rules, which stay for now) ---------- */
/* the band: tone ground, a paste-up frieze along its top edge (decorative, never behind text) */
.dz { background: var(--tone) url("../assets/distances/paste-up.svg") 0 0 / auto 28px repeat-x; padding-top: 76px; }

/* the tiles: one frame, inset rules as in the hero tiles; the last tile runs to the row's end so no cell is left empty */
.dz-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border: solid var(--rule); border-width: var(--frame) 0.5px 0.5px var(--frame); background: var(--surface); margin: 0; }
@media (min-width: 64em) { .dz-tiles { grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr)); } }
/* drawing top left, figure top right, then the kind and the place across the tile's full width */
.dz-tile { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "ico fig" "lbl lbl" "plc plc"; grid-template-rows: auto auto 1fr; align-items: start; gap: 4px 12px; padding: 14px 18px 16px; background: var(--surface); box-shadow: inset -1px 0 0 var(--rule), inset 0 -1px 0 var(--rule); min-width: 0; }
.dz-tile:last-child:nth-child(odd) { grid-column: span 2; } /* two rows of tiles, so an odd count leaves one cell: the last tile takes it */
.dz-ico { grid-area: ico; width: 44px; height: 44px; margin-bottom: 6px; }
.dz-tile .label { grid-area: lbl; color: var(--soft); }
.dz-tile .dz-place { grid-area: plc; }
.dz-tile .dz-fig { grid-area: fig; align-self: center; }
.dz-place { font-family: var(--font-heading); font-weight: 700; font-size: 17px; line-height: 1.2; letter-spacing: -0.01em; }
.dz-fig { font-family: var(--font-heading); font-weight: 900; font-size: 30px; line-height: 1; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; white-space: nowrap; }

@media (max-width: 37.5em) {
  .dz { padding-top: 64px; background-size: auto 22px; }
  .dz-tiles { grid-template-columns: minmax(0, 1fr); }
  .dz-tile:last-child:nth-child(odd) { grid-column: auto; }
  .dz-tile { grid-template-columns: 36px minmax(0, 1fr) auto; grid-template-areas: "ico lbl fig" "ico plc fig"; grid-template-rows: auto auto; align-items: center; gap: 2px 12px; padding: 12px 14px; }
  .dz-ico { width: 36px; height: 36px; margin: 0; }
  .dz-tile .dz-fig { font-size: 24px; }
}

/* the two buttons, the panels they open, and the list and map on the tone ground (the old rules assume the ink band) */
.dz-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.dz-actions .button[aria-expanded="true"] { background: var(--ink); color: var(--bg); }
.dz-panel[hidden] { display: none; }
.dz-table { max-width: 48rem; background: var(--surface); border-top: 2px solid var(--rule); }
.dz-table th, .dz-table td { padding-left: 12px; padding-right: 12px; }
.dz-table td { border-bottom: 1px solid var(--rule-soft); }
.dz-table td[data-figure] { font-weight: 600; }
.dz-table tr.is-cbd td { background: var(--yellow); color: #17170F; }
.dz-table tr.is-cbd .sub { color: #3D3C35; }
.dz .row-button .sub { color: var(--soft); }
.dz tr.is-active td { background: var(--ink); color: var(--bg); }
.dz tr.is-active td:first-child { box-shadow: none; }
.dz-map .map-card { min-height: 26rem; }

/* ---------- D16: one Sources component, homepage and suburb pages (new block; then delete the .hm-sources rules, site.css lines 687-690) ---------- */
.sources-body { display: flex; flex-wrap: wrap; gap: 24px 40px; align-items: flex-start; }
.sources-main { flex: 999 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.sources-body > .panel { flex: 1 1 300px; }
.sources-list { margin-top: 12px; }
.sources-list > summary { display: inline-flex; align-items: center; gap: 12px; height: 44px; padding: 0 16px; border: var(--frame) solid var(--rule); background: var(--surface); color: var(--ink); font-size: 15px; font-weight: 600; cursor: pointer; list-style: none; }
.sources-list > summary::-webkit-details-marker { display: none; }
.sources-list > summary::after { content: "+"; font-size: 20px; font-weight: 400; line-height: 1; }
.sources-list[open] > summary::after { content: "\2212"; }
.sources-list > summary:hover { background: var(--ink); color: var(--bg); }
.sources-list > summary:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.sources-list ol { margin: 16px 0 0; padding: 0; list-style: none; columns: 2 24rem; column-gap: 40px; border-top: 2px solid var(--rule); }
.sources-list li { break-inside: avoid; padding: 8px 0; border-bottom: 1px solid var(--rule-soft); font-size: 14px; line-height: 1.45; overflow-wrap: anywhere; }
.sources-list li .soft { display: block; font-size: var(--size-small); }


/* the route: one horizontal line on a paper strip. Names above the line, minutes below; every stop is a mark at --at (0-100).
   Later: a train element can ride .rl-stops with left: calc(var(--at) * 1%), stop to stop, using these same positions.
   The line takes its colour group (--line, from data/config/train-lines.json); marks follow the network map: a small dot for
   a stop, a ringed mark for an interchange, the yellow-centred ring for the start and end. */
.route-card { --line: #17170F; background: #FFFDF7; color: #17170F; border: var(--frame) solid #17170F; padding: 16px 22px 14px; display: flex; flex-direction: column; gap: 6px; }
.route-card a { color: #146B3A; }
.route-line { container-type: inline-size; padding: 0 14px; }
.rl-stops { position: relative; height: 88px; }
.rl-stops::before { content: ""; position: absolute; left: 0; right: 0; top: 42px; height: 8px; background: var(--line); box-shadow: 0 0 0 1px rgb(23 23 15 / 0.2); }
.rl-stop { position: absolute; top: 0; bottom: 0; left: calc(var(--at) * 1%); width: 0; }
.rl-mark { position: absolute; left: 0; top: 46px; width: 10px; height: 10px; border-radius: 50%; background: #FFFDF7; border: 2px solid #17170F; transform: translate(-50%, -50%); }
.rl-change .rl-mark { width: 20px; height: 20px; border-width: 4px; }
.rl-start .rl-mark, .rl-end .rl-mark { width: 26px; height: 26px; background: var(--yellow); border-width: 4px; }
.rl-name, .rl-min { position: absolute; left: 0; transform: translateX(-50%); white-space: nowrap; }
.rl-name { top: 0; font-weight: 700; font-size: 15px; line-height: 20px; color: #17170F; }
.rl-stop:not(.rl-start):not(.rl-end):not(.rl-change) .rl-name { font-weight: 500; font-size: 13px; color: #5B5A52; } /* minor stops: quieter */
.rl-min { top: 64px; font-size: var(--size-small); line-height: 1.3; color: #5B5A52; }
.rl-start :is(.rl-name, .rl-min) { transform: translateX(-14px); }
.rl-end :is(.rl-name, .rl-min) { transform: translateX(calc(-100% + 14px)); }
/* middle labels show only when the band is wide enough for all of them (PHP works out the width: .rl-n<rem> for names, .rl-m<rem> for minutes) */
:where(.rl-stop:not(.rl-start):not(.rl-end)) :is(.rl-name, .rl-min) { display: none; }
@container (max-width: 36rem) { .rl-start .rl-name, .rl-end .rl-name { width: 46cqw; white-space: normal; font-size: 13px; line-height: 18px; } .rl-end .rl-name { text-align: right; } } /* narrow band: the two end names wrap to two lines instead of meeting */
@container (min-width: 20rem) { .rl-n20 .rl-stop .rl-name, .rl-m20 .rl-stop .rl-min { display: block; } }
@container (min-width: 24rem) { .rl-n24 .rl-stop .rl-name, .rl-m24 .rl-stop .rl-min { display: block; } }
@container (min-width: 28rem) { .rl-n28 .rl-stop .rl-name, .rl-m28 .rl-stop .rl-min { display: block; } }
@container (min-width: 32rem) { .rl-n32 .rl-stop .rl-name, .rl-m32 .rl-stop .rl-min { display: block; } }
@container (min-width: 36rem) { .rl-n36 .rl-stop .rl-name, .rl-m36 .rl-stop .rl-min { display: block; } }
@container (min-width: 40rem) { .rl-n40 .rl-stop .rl-name, .rl-m40 .rl-stop .rl-min { display: block; } }
@container (min-width: 44rem) { .rl-n44 .rl-stop .rl-name, .rl-m44 .rl-stop .rl-min { display: block; } }
@container (min-width: 48rem) { .rl-n48 .rl-stop .rl-name, .rl-m48 .rl-stop .rl-min { display: block; } }
@container (min-width: 52rem) { .rl-n52 .rl-stop .rl-name, .rl-m52 .rl-stop .rl-min { display: block; } }
@container (min-width: 56rem) { .rl-n56 .rl-stop .rl-name, .rl-m56 .rl-stop .rl-min { display: block; } }
@container (min-width: 60rem) { .rl-n60 .rl-stop .rl-name, .rl-m60 .rl-stop .rl-min { display: block; } }
@container (min-width: 64rem) { .rl-n64 .rl-stop .rl-name, .rl-m64 .rl-stop .rl-min { display: block; } }
@container (min-width: 68rem) { .rl-n68 .rl-stop .rl-name, .rl-m68 .rl-stop .rl-min { display: block; } }
@container (min-width: 72rem) { .rl-n72 .rl-stop .rl-name, .rl-m72 .rl-stop .rl-min { display: block; } }
.route-none { height: 88px; display: flex; align-items: center; padding: 0; }
.route-none p { font-size: 15px; line-height: 22px; color: #5B5A52; } /* aligned with the trip line below */
/* the one trip line: time and station distance; side by side on wide screens, stacked on phones (fixed slots per width) */
.trip-line { display: flex; flex-wrap: wrap; column-gap: 1.6em; font-size: 16px; line-height: 24px; color: #3D3C35; min-height: 24px; }
.trip-line strong { color: #17170F; font-weight: 700; }
@media (max-width: 70em) { .trip-line { flex-direction: column; min-height: 48px; } }
@media (max-width: 47.99em) { .trip-line { font-size: 14px; line-height: 22px; min-height: 88px; } }
.route-all { font-size: var(--size-small); color: var(--green-ink); min-height: 20px; }
p.route-all { font-weight: 600; }
.route-all summary { cursor: pointer; font-weight: 600; color: #F3F0E8; width: fit-content; line-height: 20px; }
.route-all summary:focus-visible { outline: 2px solid #F3F0E8; outline-offset: 2px; }
.route-all p { margin-top: 8px; line-height: 1.6; max-width: 72rem; }
.route-all p span { opacity: 0.8; }
.route-note { color: #F3F0E8; font-size: 15px; line-height: 1.5; max-width: 44rem; }
.band-x .source { min-height: 19px; }
@media (min-width: 48em) and (max-width: 70em) { .band-x .source { min-height: 38px; } }
@media (max-width: 47.99em) { .band-x .source { min-height: 57px; } }

.all-link { font-size: 15px; font-weight: 600; text-decoration: none; color: var(--ink); border-bottom: 2px solid var(--link); padding-bottom: 2px; white-space: nowrap; }

/* Phones: each in-suburb school stacks as name, then sector · years · opened · distance on one muted line */
@media (max-width: 40em) {
  .schools, .schools tbody { display: block; min-width: 0; }
  .schools thead { display: none; }
  .schools tr { display: flex; flex-wrap: wrap; align-items: baseline; padding: 14px 0; border-bottom: 1px solid var(--rule-soft); }
  .schools tbody th { flex: 1 0 100%; padding: 0 0 4px; border: 0; }
  .schools td { padding: 0; border: 0; font-size: var(--size-small); color: var(--soft); }
  .schools td + td::before { content: "\00b7"; padding: 0 0.5em; }
  .schools td.num { text-align: left !important; }
}

/* About and FAQ (copy round 1) */
.prose { display: flex; flex-direction: column; gap: 16px; max-width: 44rem; }
.prose p { font-size: var(--size-lead); line-height: 1.55; color: var(--body); }
.faq { display: flex; flex-direction: column; max-width: 48rem; border-top: 2px solid var(--rule); }
.faq-item { border-bottom: 1px solid var(--rule-soft); }
.faq-item summary { padding: 16px 28px 16px 0; font-size: 19px; font-weight: 600; cursor: pointer; list-style: none; position: relative; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; position: absolute; right: 4px; top: 14px; font-weight: 400; font-size: 24px; color: var(--soft); }
.faq-item[open] summary::after { content: "\2212"; }
.faq-item summary:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.faq-item p { font-size: 16px; line-height: 1.55; color: var(--body); padding: 0 0 18px; max-width: 42rem; }
/* About + At a glance: two columns from tablet up; one column on phones */
.about-grid { display: grid; gap: 32px; }
@media (min-width: 800px) { .about-grid { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 56px; } }
.glance-list { border-top: 2px solid var(--rule); margin: 0; }
.glance-list > div { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--rule-soft); }
.glance-list dt { font-size: var(--size-small); color: var(--soft); }
.glance-list dd { margin: 0; text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; }
.glance-list dd small { font-weight: 400; }
.local-note { margin-top: 32px; max-width: 44rem; padding-left: 20px; border-left: 4px solid var(--rule); }
.local-note h3 { font-family: var(--font-body); font-size: var(--size-label); font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--soft); margin-bottom: 8px; }
.local-note p { font-family: var(--font-heading); font-style: italic; font-size: 19px; line-height: 1.5; }
.local-note p + p { margin-top: 8px; }
/* Parks: compact rows; the rest sits behind a toggle styled like the route's */
.park-rows { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--rule); max-width: 48rem; }
.park-rows li { display: flex; gap: 16px; align-items: baseline; padding: 11px 0; border-bottom: 1px solid var(--rule-soft); }
.park-rows .k { flex: 1; font-weight: 600; }
.park-rows .kind, .park-rows .v { font-size: 15px; color: var(--soft); }
.park-rows .v { min-width: 4.5rem; text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.more-all { margin-top: 12px; max-width: 48rem; }
.more-all summary { cursor: pointer; font-weight: 600; font-size: var(--size-small); width: fit-content; line-height: 20px; }
.more-all summary:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.more-all:has(table) { max-width: none; }
.more-all:has(table) > summary { margin-top: 8px; }
.more-all .park-rows { border-top: 0; margin-top: 8px; }

/* Homepage (design round 8): map as one inline SVG. Label size is set per width from --w so it stays 12px+ on phones, 14px+ on desktop. */
.home-intro { padding-top: 32px; padding-bottom: 24px; display: flex; flex-direction: column; gap: 16px; }
.home-intro h1 { font-weight: 900; font-size: clamp(36px, 7vw, 88px); line-height: 0.95; letter-spacing: -0.035em; max-width: 14ch; }
.home-map { padding-bottom: 40px; }
.home-map .wrap { display: flex; flex-direction: column; gap: 12px; }
.map-caption { font-size: 15px; color: var(--body); max-width: 40rem; }
.map-wrap { position: relative; display: flex; flex-direction: column; gap: 16px; --mw: 350; }
.map-svg { display: block; width: 100%; height: auto; border: var(--frame) solid var(--rule); background: var(--bg); }
.map-main { --px: 12; }
.map-inset { border: var(--frame) solid var(--rule); background: var(--bg); }
.map-inset-h { margin: 0; padding: 6px 10px; font-size: 13px; font-weight: 700; border-bottom: 1px solid var(--rule); background: var(--tone); }
.map-inset .map-svg { border: 0; }
.m-water { fill: #D6DCDD; }
.m-land { fill: var(--bg); stroke: var(--ink); stroke-width: 1; vector-effect: non-scaling-stroke; }
.m-ctx { fill: none; stroke: var(--rule-soft); stroke-width: 1; vector-effect: non-scaling-stroke; }
.m-rail { fill: none; stroke: var(--ink); stroke-width: 1.5; vector-effect: non-scaling-stroke; }
.m-sub path { fill: var(--yellow); stroke: var(--ink); stroke-width: 2; vector-effect: non-scaling-stroke; }
.m-sub text, .m-cbd text, .m-rail-name, .m-scale text { font-family: var(--font-body); font-weight: 700; fill: var(--ink); paint-order: stroke; stroke: var(--bg); stroke-width: 4px; stroke-linejoin: round; }
.m-rail-name, .m-scale text { font-weight: 500; }
.m-cbd rect { fill: var(--ink); }
.m-scale path { stroke: var(--ink); stroke-width: 3; vector-effect: non-scaling-stroke; }
.m-sub:hover path, .m-sub:focus path, .m-sub:focus-visible path { fill: #E5B800; stroke-width: 4; }
.m-sub:hover text, .m-sub:focus text { text-decoration: underline; }
.m-sub:focus { outline: none; }
/* text size in user units: panel pixel width W, wanted size P px => P * viewBoxWidth / W */
.map-main text { font-size: calc(var(--w) * 12 / 350 * 1px); }
.map-in text { font-size: calc(var(--w) * 12 / 350 * 1px); }
.home-group .wrap { display: flex; flex-direction: column; gap: 20px; }
.home-cards { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; grid-template-columns: 1fr; }
.home-card { border: var(--frame) solid var(--rule); background: var(--surface); padding: 16px 20px; display: flex; flex-direction: column; gap: 6px; }
.home-card h3 { margin: 0; font-size: 22px; letter-spacing: -0.01em; }
.home-card h3 a { color: var(--ink); text-decoration-color: var(--yellow); text-decoration-thickness: 3px; text-underline-offset: 3px; }
.home-card p { margin: 0; }
.home-about { max-width: 42rem; }
@media (min-width: 600px) {
  .map-main text, .map-in text { font-size: calc(var(--w) * 14 / 740 * 1px); }
  .home-cards { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 900px) {
  /* map page: two panels side by side, never overlapping; text sizes assume ~60% / ~40% of the container */
  .map-main text, .map-in text { font-size: calc(var(--w) * 14 / 850 * 1px); } /* panels stacked, full width */
  .home-cards { grid-template-columns: repeat(5, 1fr); }
}
@media (min-width: 64em) { .map-main text { font-size: calc(var(--w) * 14 / 580 * 1px); } .map-in text { font-size: calc(var(--w) * 14 / 360 * 1px); } }
@media (min-width: 1200px) { .map-main text { font-size: calc(var(--w) * 14 / 730 * 1px); } .map-in text { font-size: calc(var(--w) * 14 / 460 * 1px); } }
.m-box { fill: none; stroke: var(--ink); stroke-width: 1.5; vector-effect: non-scaling-stroke; }
.m-box-t { font-family: var(--font-body); font-weight: 600; fill: var(--ink); paint-order: stroke; stroke: var(--bg); stroke-width: 4px; stroke-linejoin: round; }
.map-fig { margin: 0; }
.map-cap { font-size: var(--size-label); font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--soft); margin-bottom: 6px; }
.map-inset { border: 0; background: none; }
@media (min-width: 64em) { .map-wrap { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 32px; align-items: start; } }
.az-list { columns: 4 14rem; column-gap: 32px; }
.az-list li { break-inside: avoid; display: block; padding: 10px 0; }
.az-live a::before { content: ""; display: inline-block; width: 10px; height: 10px; background: var(--yellow); border: 1px solid var(--ink); margin-right: 10px; }
@media (prefers-color-scheme: dark) { .m-water { fill: #26302F; } .m-sub:hover path, .m-sub:focus path { fill: #D9B52E; } }
.m-sub-plain { fill: var(--yellow); stroke: var(--ink); stroke-width: 1; vector-effect: non-scaling-stroke; }

/* ---------- homepage v2 (round 9) ---------- */
.hm-label { display: flex; align-items: center; gap: 14px; }
.hm-label img { width: 64px; height: 64px; flex: none; }
.hm-sec { border-top: 1px solid var(--rule); padding: 56px 0; }
.hm-sec > .wrap { display: flex; flex-direction: column; gap: 28px; }
.hm-sec h2 { font-size: var(--size-h2); }
@media (max-width: 37.5em) { .hm-sec { padding: 40px 0; } .hm-sec h2 { font-size: 32px; } .hm-label img { width: 48px; height: 48px; } }
.hm-lead { font-size: 17px; line-height: 1.5; color: var(--body); max-width: 40rem; }

/* hero: words left, the drawing right; on a phone the drawing sits above the H1 */
.hm-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); gap: 32px 56px; align-items: center; padding: 40px 0 56px; }
.hm-hero-text { display: flex; flex-direction: column; gap: 22px; }
.hm-hero h1 { font-weight: 900; font-size: clamp(44px, 5.4vw, 78px); line-height: 0.94; letter-spacing: -0.035em; text-wrap: balance; }
.hm-hero .lead { max-width: 34rem; }
.hm-art { display: block; width: 100%; height: auto; }
.hm-buttons { display: flex; flex-wrap: wrap; gap: 12px; }
.hm-btn { display: inline-flex; align-items: center; min-height: 48px; padding: 0 22px; font-size: 16px; font-weight: 600; text-decoration: none; border: var(--frame) solid var(--rule); color: var(--ink); background: transparent; }
.hm-btn:hover { background: var(--tone); color: var(--ink); }
.hm-btn-ink { background: var(--ink); color: var(--bg); }
.hm-btn-ink:hover { background: var(--body); color: var(--bg); }
@media (max-width: 56em) {
  .hm-hero { grid-template-columns: minmax(0, 1fr); padding-top: 20px; }
  .hm-hero-art { order: -1; }
}

/* New here: five numbered items, two columns; the fifth closes the left column */
.hm-five { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 56px; counter-reset: five; }
.hm-five li { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 4px 12px; padding: 20px 0; border-top: 1px solid var(--rule-soft); }
.hm-five li:nth-child(-n+2) { border-top: 2px solid var(--rule); }
.hm-five li::before { counter-increment: five; content: counter(five, decimal-leading-zero); grid-row: span 2; font-family: var(--font-heading); font-weight: 900; font-size: 32px; line-height: 1; letter-spacing: -0.03em; color: var(--link); }
.hm-five h3 { font-size: 22px; }
.hm-five p { font-size: 16px; line-height: 1.55; color: var(--body); }
@media (max-width: 48em) { .hm-five { grid-template-columns: minmax(0, 1fr); } .hm-five li:nth-child(2) { border-top-width: 1px; border-top-color: var(--rule-soft); } }

.hm-links { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 0; border-top: 2px solid var(--rule); padding-top: 14px; font-size: 16px; }
.hm-links .label { color: var(--soft); margin-right: 16px; }
.hm-links a { font-weight: 600; }
.hm-links a + a::before { content: "\00B7"; display: inline-block; color: var(--soft); padding: 0 10px; text-decoration: none; }

/* Area cards (area pages): ruled two-column rows */
.hm-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 2px solid var(--rule); }
.hm-card { padding: 16px 20px 18px 0; border-bottom: 1px solid var(--rule-soft); display: flex; flex-direction: column; gap: 4px; }
.hm-card:nth-child(even) { padding: 16px 0 18px 20px; border-left: 1px solid var(--rule-soft); }
.hm-card .meta { font-size: var(--size-small); line-height: 1.45; color: var(--soft); }
.hm-card p:last-child { font-size: 15px; line-height: 1.5; color: var(--body); }
@media (max-width: 37.5em) { .hm-cards { grid-template-columns: minmax(0, 1fr); } .hm-card:nth-child(even) { padding: 16px 0 18px; border-left: 0; } }


/* Getting around: four short items */
.hm-around { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 32px; }
.hm-around li { border-top: 2px solid var(--rule); padding-top: 14px; display: flex; flex-direction: column; gap: 6px; }
.hm-around h3 { font-family: var(--font-body); font-size: 17px; font-weight: 700; letter-spacing: 0; }
.hm-around p { font-size: 15px; line-height: 1.5; color: var(--body); }
@media (max-width: 64em) { .hm-around { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 32px; } }
@media (max-width: 37.5em) { .hm-around { grid-template-columns: minmax(0, 1fr); gap: 20px; } }


/* hero framing B (portrait close crop), kept ready and not active: add class hm-art-b to the hero img if the owner picks B
.hm-art-b { max-height: 60vh; object-fit: contain; }
*/

/* ---------- D11: coffee feature band (replaces the v2 .hm-coffee rules) ---------- */
.hm-coffee { background: var(--tone); border-top: 2px solid var(--rule); }
.hm-coffee .wrap { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 32px 64px; align-items: start; }
.hm-coffee-main { display: flex; flex-direction: column; gap: 18px; }
.hm-coffee-lead { font-family: var(--font-heading); font-weight: 700; font-size: clamp(30px, 3.6vw, 46px); line-height: 1.08; letter-spacing: -0.025em; text-wrap: balance; max-width: 18em; margin: 0; }
.hm-coffee-main p:not(.hm-coffee-lead):not(.hm-links) { font-size: 17px; line-height: 1.6; color: var(--body); max-width: 38rem; margin: 0; }
.hm-figs { margin: 0; display: flex; flex-direction: column; border-top: 2px solid var(--rule); }
.hm-figs > div { display: grid; grid-template-columns: minmax(0, 1fr); padding: 16px 0 14px; border-bottom: 1px solid var(--rule); }
.hm-figs dd { order: -1; margin: 0; font-family: var(--font-heading); font-weight: 900; font-size: clamp(44px, 5vw, 68px); line-height: 0.95; letter-spacing: -0.035em; font-variant-numeric: tabular-nums; }
.hm-figs dt { font-size: 15px; line-height: 1.4; color: var(--body); margin-top: 6px; }
.hm-figs > div:first-child dd { box-shadow: inset 0 -0.18em 0 var(--yellow); width: fit-content; }   /* the band's one yellow */
.hm-coffee .source { margin: 10px 0 0; }
.hm-order { margin: 22px 0 0; padding: 16px 18px; border: 1px solid var(--rule); background: var(--bg); display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 4px 14px; align-items: center; }
.hm-order img { width: 48px; height: 48px; grid-row: span 2; }
.hm-order .label { color: var(--soft); }
.hm-order p { margin: 0; font-size: 16px; line-height: 1.45; }
@media (max-width: 56em) { .hm-coffee .wrap { grid-template-columns: minmax(0, 1fr); } }

/* ---------- D17: a year in Melbourne, compact (replaces the whole "D12: a year in Melbourne" block, site.css lines 713-736) ---------- */
.hm-months { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); border-top: 3px solid var(--ink); border-bottom: 1px solid var(--rule); }
.hm-months span { font-size: var(--size-label); font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; padding: 6px 0 5px 8px; border-left: 1px solid var(--rule-soft); }
.hm-months span:first-child { border-left: 0; padding-left: 0; }
.hm-cal summary { list-style: none; cursor: pointer; position: relative; }
.hm-cal summary::-webkit-details-marker { display: none; }
.hm-cal summary::after { content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%); font-size: 20px; font-weight: 400; line-height: 1; }
.hm-cal details[open] > summary::after { content: "\2212"; }
.hm-cal summary:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.hm-cal h3 { display: inline; }
/* the footy: one bar from March to October, its line behind the button */
.hm-footy { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); margin: 8px 0 0; }
.hm-footy > details { grid-column: 3 / span 8; background: var(--yellow); color: #17170F; border: var(--frame) solid #17170F; }
.hm-footy summary { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 12px; padding: 6px 36px 6px 12px; }
.hm-footy summary::after { right: 12px; }
.hm-footy h3 { font-size: 18px; }
.hm-footy .when { color: #3D3C35; }
.hm-footy p { margin: 0; padding: 0 12px 10px; font-size: 14px; line-height: 1.45; }
/* the nine others: one line each (month, then name), in date order, five across; the line opens under its name */
.hm-year { list-style: none; margin: 16px 0 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px 0; align-items: start; }
.hm-year li { min-width: 0; border-left: 2px solid var(--ink); padding: 2px 12px 2px 10px; }
.hm-year summary { display: flex; flex-direction: column; gap: 2px; padding-right: 22px; }
.hm-year .when { font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--link); }
.hm-year h3 { font-size: 17px; line-height: 1.2; }
.hm-year p { margin: 6px 0 4px; font-size: 14px; line-height: 1.45; color: var(--body); }
@media (max-width: 64em) { .hm-year { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 56em) {
  .hm-months { display: none; }
  .hm-year { grid-template-columns: minmax(0, 1fr); gap: 0; margin: 0; border-top: 2px solid var(--rule); }
  .hm-year li { border-left: 0; border-bottom: 1px solid var(--rule-soft); padding: 10px 0; }
  .hm-year summary { flex-direction: row; align-items: baseline; gap: 12px; }
  .hm-year .when { flex: none; width: 8.5rem; }
  .hm-footy { row-gap: 4px; margin: 0 0 16px; }
  .hm-footy::before { content: "Jan"; grid-column: 1 / 3; font-size: 11px; color: var(--soft); align-self: end; }
  .hm-footy::after { content: "Dec"; grid-column: 11 / 13; grid-row: 1; text-align: right; font-size: 11px; color: var(--soft); align-self: end; }
  .hm-footy > details { grid-row: 2; }
}
@media (max-width: 30em) { .hm-year summary { flex-direction: column; gap: 2px; } .hm-year .when { width: auto; } }


.az-list li.is-hit { outline: 2px solid var(--ink); outline-offset: 4px; background: var(--yellow); }



.more > summary, .fold > summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 10px; margin-top: 16px; font: 600 15px Inter; color: var(--ink); border: var(--frame) solid var(--rule); padding: 9px 16px; background: var(--bg); }
.more > summary::-webkit-details-marker { display: none; }
.more > summary::after { content: "+"; font: 700 18px/1 Inter; } .more[open] > summary::after { content: "−"; }

/* D4 rolling shelf  */
.ctl { display: flex; margin-left: auto; flex: none; }
.ctl button { font: 600 13px Inter, sans-serif; height: 30px; min-width: 44px; padding: 0 10px; border: var(--frame) solid var(--rule); background: var(--bg); color: var(--ink); cursor: pointer; }
.ctl button:hover { background: var(--ink); color: var(--bg); }
.ctl button[aria-pressed="true"] { background: var(--yellow); color: #17170F; }
.roll { --gap: 12px; --card: 220px; }
.roll-row { margin-top: 20px; }
.roll-head { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.roll-head .ctl button { height: 34px; margin: 0; border: var(--frame) solid var(--rule); }
.roll-view { overflow: hidden; contain: paint; }
.is-rolling .roll-view { -webkit-mask: linear-gradient(90deg, transparent, #000 24px, #000 calc(100% - 24px), transparent); mask: linear-gradient(90deg, transparent, #000 24px, #000 calc(100% - 24px), transparent); }
.roll-track { display: flex; gap: var(--gap); width: max-content; list-style: none; margin: 0; padding: 2px 0; }
.roll-track > li { flex: 0 0 var(--card); min-width: 0; height: 150px; border: var(--frame) solid var(--rule); background: var(--surface); padding: 12px 14px; display: flex; flex-direction: column; gap: 2px; }
.roll-track h4 { font: 700 18px/1.2 Fraunces, Georgia, serif; color: var(--ink); margin: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.roll-track .k { font-size: 13px; color: var(--soft); } .roll-track .a { font-size: 13px; color: var(--body); flex: 1; overflow: hidden; }
.roll-track a { font-size: 14px; font-weight: 600; }
.is-rolling .roll-track { animation: roll var(--dur, 60s) linear infinite; will-change: transform; }
.is-rolling .roll-view:hover .roll-track, .is-rolling .roll-view:focus-within .roll-track, .roll-row.is-paused .roll-track { animation-play-state: paused; }
@keyframes roll { from { transform: translateX(0); } to { transform: translateX(calc(-50% - var(--gap) / 2)); } }
/* manual mode: the swipe shelf the site has today (reduced motion, touch, keyboard, or Pause then swipe) */
.roll-row.is-manual .roll-view { overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: thin; }
.roll-row.is-manual .roll-track { animation: none; } .roll-row.is-manual [data-copy] { display: none; }
@media (prefers-reduced-motion: reduce) { .roll-track { animation: none !important; } .roll-row .roll-view { overflow-x: auto; } .roll-row [data-copy] { display: none; } .roll-row .ctl { display: none; } }
.shelf-none { border: var(--frame) dashed var(--rule); padding: 18px 20px; background: var(--bg); }

/* hero slot : one frame for the photo gallery and the street-map poster; same size on every page */
.slot { border: var(--frame) solid var(--rule); background: var(--fill); position: relative; overflow: hidden; }
.slot-band { position: relative; aspect-ratio: 1280 / 340; overflow: hidden; }
@media (min-width: 37.51em) { .slot-band { aspect-ratio: 1280 / 420; } } /* tablet: the poster's own shape */
@media (min-width: 64em) { .slot-band { aspect-ratio: auto; height: 420px; } } /* desktop: 420 px, same on gallery and poster */
@media (max-width: 37.5em) { .slot-band { aspect-ratio: 3 / 2; } } /* phones: the tall poster and 3:2 photos fill it */
.slot-band picture { display: block; height: 100%; }
.slot-band .poster, .gal img { display: block; width: 100%; height: 100%; object-fit: cover; }
.gal img { object-position: center 40%; }
.slot-cap { height: 30px; display: flex; align-items: center; gap: 12px; padding: 0 12px; border-top: var(--frame) solid var(--rule); background: var(--bg); font-size: 13px; color: var(--soft); white-space: nowrap; overflow: hidden; }
.slot-cap .cap-text { overflow: hidden; text-overflow: ellipsis; flex: 1; }
@media (max-width: 37.5em) {
  .slot-cap { height: 48px; white-space: normal; font-size: 12px; line-height: 1.35; }
  .slot-cap .cap-text { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
}

/* hero gallery: one photo at a time, stacked, a fade and small slide between them */
.slot-cap .ctl { display: flex; align-items: center; }
.slot-cap .ctl button { height: 30px; margin: -1px 0 -1px 0; border-width: 0 0 0 var(--frame); }
.slot-cap .cnt { font: 600 12px Inter, sans-serif; color: var(--ink); padding: 0 12px; white-space: nowrap; }
.pano { position: relative; height: 100%; background: var(--rule); }
.pano > figure { position: absolute; inset: 0; margin: 0; opacity: 0; transform: translateX(14px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); pointer-events: none; }
.pano > figure.is-on, .gal:not(.js-on) .pano > figure:first-child { opacity: 1; transform: none; pointer-events: auto; }
@media (max-width: 37.5em) {
  .gal .ctl { position: absolute; top: 0; right: 0; background: var(--bg); border: 0 solid var(--rule); border-width: 0 0 var(--frame) var(--frame); }
  .gal .ctl button { height: 36px; margin: 0; } .gal .ctl .cnt { padding: 0 8px; }
}
@media (prefers-reduced-motion: reduce) { .pano > figure { transition: none; transform: none; } }

/* D3 page-length cuts : each is switched by $cuts in templates/suburb.php and scoped by a body class cut-N */
.fold > summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 10px; font: 600 15px Inter, sans-serif; color: var(--ink); border: var(--frame) solid var(--rule); padding: 9px 16px; background: var(--bg); margin-top: 12px; }
.fold > summary::-webkit-details-marker { display: none; }
.fold > summary:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }
.fold > summary::after { content: "+"; font: 700 18px/1 Inter, sans-serif; } .fold[open] > summary::after { content: "\2212"; }
.fold[open] > summary { margin-bottom: 16px; }
@media (min-width: 37.51em) { [data-fold-phone] > summary { display: none; } } /* cuts 7 and 9 fold on phones only */
.neigh-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-top: 8px; }
.neigh-head h3 { font: 700 22px/1.2 var(--font-heading); color: var(--ink); margin: 0; }
.cut-6 .section { padding: 36px 0; }
@media (max-width: 37.5em) { .cut-6 .section { padding: 32px 0; } .cut-8 .figures > div { flex-basis: calc(50% - 1px); padding: 14px; } }
@media (min-width: 64em) { .cut-4 .pair { display: grid; grid-template-columns: 1fr 1fr; } .cut-4 .pair > .section > .wrap { max-width: 640px; } .cut-4 .pair > .section:first-child > .wrap { margin-left: auto; } .cut-4 .pair > .section:last-child > .wrap { margin-right: auto; } }
.roll .more-all { max-width: none; } .roll .more-all > summary { margin-bottom: 12px; }

/* desktop: tighter spacing so the 420 px hero, the green line and the big name show at 1440 x 800 */
@media (min-width: 64em) {
  .intro { padding-top: 16px; gap: 14px; }
  .hero.hero--r9 { gap: 14px; }
}

/* phones: reserve two lines for the breadcrumb so a late font swap that wraps it cannot move the hero */
@media (max-width: 37.5em) { .crumbs { min-height: calc(2 * 1.5em + 8px); align-content: flex-start; } }

/* Schools, round 11 "zone first" (preview only until the owner's yes). Template: templates/_schools_r11.php */
.sch11 { display: flex; flex-direction: column; gap: 28px; }
.sch11 h3 { margin: 0; font: 700 28px/1.15 Fraunces, Georgia, serif; letter-spacing: -.015em; color: var(--ink); }
.sch11 h4 { margin: 0; font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ink); }
.sch11 p { margin: 0; }
.s11-lead { margin-top: -26px; }
.s11-box { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 24px; }
.s11-box > p { flex: 1 0 100%; }
.s11-box .s11-fr { flex: 999 1 360px; }
.s11-box p, .s11-st, .s11-meta { font-size: 16px; line-height: 1.5; color: var(--body); }
.s11-fr { display: flex; flex-wrap: wrap; gap: 10px; }
.s11-fr .field { flex: 999 1 280px; box-sizing: border-box; min-width: 0; height: 46px; padding: 0 16px; background: var(--bg); font-size: 17px; }
.s11-fr .button { flex: 1 0 auto; height: 46px; padding: 0 24px; font-size: 16px; }
.s11-zones, .s11-list { display: flex; flex-direction: column; gap: 12px; }
.s11-sub { margin-top: 4px; font-size: 15px; line-height: 1.5; color: var(--soft); }
.s11-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px 28px; }
.s11-col { display: flex; flex-direction: column; gap: 10px; border-top: 2px solid var(--rule); padding-top: 10px; }
.s11-z { display: flex; flex-direction: column; gap: 4px; }
.s11-zn { font-size: 17px; font-weight: 600; color: var(--ink); }
.s11-zw { font-size: 15px; color: var(--body); }
.s11-zb { height: 10px; background: var(--fill); } .s11-zb div { height: 10px; background: var(--link); }
.s11-rest { font-size: 14px; line-height: 1.5; color: var(--body); }
.s11-lh { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 14px; }
.s11-filters { display: flex; flex-wrap: wrap; gap: 8px; } .s11-filters[hidden] { display: none; }
.s11-filters button { min-height: 44px; padding: 0 16px; border: var(--frame) solid var(--rule); background: var(--surface); color: var(--ink); font: 600 15px Inter, Arial, sans-serif; cursor: pointer; }
.s11-filters button[aria-pressed="true"] { background: var(--ink); color: var(--bg); }
.s11-list { gap: 20px; } .s11-list > .s11-lh { margin-bottom: -4px; }
.s11-grp { display: flex; flex-direction: column; }
.s11-grp[hidden], .s11-row[hidden], .s11-more[hidden], .s11-none[hidden] { display: none; }
.s11-gh { display: flex; justify-content: space-between; align-items: baseline; border-bottom: 2px solid var(--rule); padding-bottom: 8px; }
.s11-gh h4 { font: 600 21px Fraunces, Georgia, serif; letter-spacing: 0; text-transform: none; }
.s11-cnt { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ink); }
.s11-row { display: flex; flex-wrap: wrap; gap: 6px 16px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--rule-soft); }
.s11-who { flex: 999 1 300px; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.s11-nm { font-size: 17px; font-weight: 600; color: var(--ink); } .s11-nm a { color: var(--link); }
.s11-st, .s11-meta { font-size: 14px; } .s11-st { margin-top: 0; } .s11-meta { flex: 0 0 auto; min-width: 150px; }
.s11-chip { flex: 0 0 auto; border: var(--frame) solid var(--rule); padding: 4px 8px; font: 700 11px/1 Inter, Arial, sans-serif; letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; color: var(--ink); }
.s11-more { align-self: flex-start; margin-top: 12px; min-height: 44px; padding: 0 18px; font-size: 15px; }
.s11-none { font-size: 15px; color: var(--soft); }
@media (min-width: 64em) { .s11-row { display: grid; grid-template-columns: minmax(0, 1fr) 16rem 8rem; gap: 0 24px; padding: 9px 0; } .s11-chip { justify-self: start; } .s11-who { flex-direction: row; flex-wrap: wrap; align-items: baseline; gap: 0 14px; } }
@media (max-width: 37.5em) { .sch11 { gap: 24px; } .sch11 h3 { font-size: 22px; } }

/* ---------- areas: explore Melbourne by area (homepage boxes, /melbourne/areas/, area pages) ----------
   Maps come from templates/_areamap_hero.php (inline SVG): rest of Melbourne in paper, the suburbs next door in white, the area in yellow, the CBD as a dot. */
.area-map { display: block; width: 100%; height: auto; background: #E9E4D7; } /* land is the ground; the bay is drawn as .am-sea */
.am-sea { fill: var(--water); }
.area-box > .area-map { aspect-ratio: 1.6; }
.am-rest path { fill: var(--fill); stroke: var(--rule-soft); stroke-width: 0.75; vector-effect: non-scaling-stroke; }
.am-near path { fill: var(--surface); stroke: var(--rule-soft); stroke-width: 1; vector-effect: non-scaling-stroke; }
.am-area path { fill: var(--yellow); stroke: #17170F; stroke-width: 1.25; vector-effect: non-scaling-stroke; }
.am-cbd { fill: var(--ink); stroke: var(--bg); stroke-width: 1.5; vector-effect: non-scaling-stroke; }
@media (prefers-color-scheme: dark) {
  .area-map { background: #201F18; }
  .am-rest path { fill: var(--color-dark-tone); stroke: var(--color-dark-fill); }
  .am-near path { fill: #4A4942; stroke: #5B5A52; }
}

/* the area boxes: three across from 1024, two from 600, one on a phone */
.area-intro { display: flex; flex-direction: column; gap: 16px; }
.area-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
@media (max-width: 64em) { .area-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 37.5em) { .area-grid { grid-template-columns: minmax(0, 1fr); gap: 16px; } }
.area-box { display: flex; flex-direction: column; border: var(--frame) solid var(--rule); background: var(--surface); }
.area-box > .area-map { border-bottom: 1px solid var(--rule); }
.area-box-body { flex: 1 1 auto; display: flex; flex-direction: column; gap: 8px; padding: 18px 20px 20px; }
.area-box-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.area-box-head > h2, .area-box-head > h3 { font-size: 26px; font-weight: 700; line-height: 1.15; letter-spacing: -0.015em; }
.area-count { flex: none; font-size: var(--size-small); color: var(--soft); }
.area-subs { font-size: 15px; line-height: 1.55; color: var(--body); }
.area-subs a { color: var(--body); text-decoration-color: var(--rule-soft); }
.area-subs a:hover { color: var(--link-hover); text-decoration-color: currentColor; }
.area-more { margin-top: auto; padding-top: 6px; font-size: 15px; font-weight: 600; align-self: flex-start; }

/* find a suburb by name: the existing /melbourne/?q= search */
.area-find { display: flex; flex-direction: column; gap: 10px; border-top: 1px solid var(--rule); padding-top: 24px; }
.area-find label { font-size: 15px; font-weight: 600; }
.area-find-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.area-find-field { flex: 1 1 20rem; display: flex; min-width: 0; } /* field and button joined, as in the header search */
.area-find-field .field { flex: 1 1 auto; min-width: 0; border-right: 0; }
.area-find-az { font-size: 15px; font-weight: 600; }

/* the areas page and an area page */
.area-page { padding-top: 32px; padding-bottom: 56px; display: flex; flex-direction: column; gap: 28px; }
.hm-card h3 { font-family: var(--font-heading); font-size: 22px; font-weight: 700; line-height: 1.2; letter-spacing: -0.015em; margin: 0; }
.hm-card h3 a { color: var(--ink); text-decoration: none; }
.hm-card h3 a:hover { color: var(--link); text-decoration: underline; }
.area-next { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 24px; border-top: 1px solid var(--rule); padding-top: 20px; font-size: 15px; }
.area-next > a { font-weight: 600; }
.area-next-label { font-weight: 600; }
.area-next ul { display: flex; flex-wrap: wrap; gap: 8px 20px; }

/* the box on a suburb page: straight after the intro, so the name and the intro do not move */

/* ---------- areas 2: one hero for every page (the picture sized by the screen), area maps as heroes in look A, the short end of the page ---------- */
.hero--a2 { --hero-h: clamp(240px, calc(100svh - 430px), 420px); } /* the name and the intro stay on the first screen; the picture crops */
@media (max-width: 37.5em) { .hero--a2 { --hero-h: 200px; } .hero.hero--a2 { gap: 16px; } .hero--a2 .eyebrow { font-size: 12px; letter-spacing: .1em; } }
.hero--a2 .slot-band { aspect-ratio: auto; height: var(--hero-h); }
.hero--a2 .eyebrow a { color: var(--link); }
.hero--a2 .hero-text > h1.balance { text-wrap: balance; }
.area-hero { container-type: inline-size; }
.area-hero > .slot-band { container-type: size; height: min(var(--hero-h), calc(100cqw / 1.6)); } /* never cut an area suburb on a narrow screen */
.area-hero .area-map { height: 100%; }
/* map labels are HTML over the map, in the same box the slice crop draws (5:1, covering the band), so they keep their size on screen */
.map-labels { position: absolute; left: 50%; top: 50%; width: max(100cqw, 500cqh); aspect-ratio: 5 / 1; transform: translate(-50%, -50%); pointer-events: none; }
.ml { position: absolute; left: calc(50% + var(--x) * 20%); top: var(--y); transform: translate(-50%, -50%); white-space: nowrap; line-height: 1; paint-order: stroke fill; -webkit-text-stroke: 3px var(--bg); color: var(--ink); }
.ml-a { font: 700 14px var(--font-heading); }
.ml-n { font: 500 13px var(--font-body); color: var(--soft); -webkit-text-stroke-color: var(--surface); }
.ml-w { font: italic 500 14px var(--font-heading); color: var(--soft); -webkit-text-stroke: 0; }
.ml-c { font: 700 13px var(--font-body); letter-spacing: .06em; }
.area-hero .ml.ml-c { transform: translate(8px, -50%); } /* the CBD label sits just right of its dot */
.ml[data-al="e"] { transform: translate(0, -50%); } /* an area label beside its area: anchored at its west edge (east side) or its east edge (west side) */
.ml[data-al="w"] { transform: translate(-100%, -50%); }
@container (max-height: 299px) and (min-width: 500px) { .ml:not([data-t~="s"]) { display: none; } }
@container (max-height: 299px) and (max-width: 499px) { .ml:not([data-t~="p"]) { display: none; } }
@container (min-height: 300px) and (max-height: 389px) { .ml:not([data-t~="m"]) { display: none; } }
@container (min-height: 390px) { .ml:not([data-t~="l"]) { display: none; } }
@media (max-width: 37.5em) { .ml-n, .ml-w { display: none; } }
.am-cbd { r: 3px; }
.area-box .am-cbd { r: 12px; }
.am-link { cursor: pointer; }
.am-link path { transition: fill 160ms; }
.am-link:hover path, .am-link:focus-visible path, .am-link.is-hover path { fill: var(--link); }
.am-link:focus { outline: none; }
.am-link:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; } /* a ring round the shape's box; the fill goes green and the outline thickens as well */
.am-link:focus-visible path { stroke-width: 4px; }
.am-area .am-edge { fill: none; stroke: #17170F; stroke-width: 4px; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.am-area .am-fill { stroke-width: .75px; }
.area-cards .hm-card, .area-cards .hm-card:nth-child(even) { padding-left: 20px; border-left: 0; }
.area-cards .hm-card:nth-child(odd) { padding-left: 20px; }
.hm-card.is-hover { background: var(--surface); box-shadow: inset 5px 0 0 var(--link); }
.hm-card.is-hover h3 a { color: var(--link); text-decoration: underline; }
@media (prefers-reduced-motion: reduce) { .am-link path { transition: none; } }

/* the end of a suburb page: questions in two columns, sources in one slim strip */
.faq-sec .sec-head h2 { font-size: 28px; }
@media (min-width: 48em) { .faq--cols { max-width: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 48px; align-items: start; } .faq--cols .faq-item { border-top: 0; } }
.faq--cols .faq-item summary { font-size: 17px; }
.sources--slim { padding: 0; }
.sources--slim > .wrap { display: flex; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 12px 24px; padding-top: 20px; padding-bottom: 20px; }
.sources--slim .sec-head { margin: 0; }
.sources--slim .sec-head h2 { font-size: 15px; letter-spacing: .08em; text-transform: uppercase; }
.src-strip { display: contents; }
.sources--slim .sources-list { margin: 0; }
.sources--slim .sources-list[open] { flex: 1 0 100%; order: 9; }
.sources--slim .sources-list > summary { height: 40px; }
.src-about { font-size: 15px; }
.src-fix { margin-left: auto; height: 40px; background: transparent; font-weight: 600; }
.src-note { flex: 1 0 100%; order: 8; margin: 0; }
@media (max-width: 37.5em) { .src-fix { margin-left: 0; } }
@media (max-width: 37.5em) { .site-nav .nav-claim { display: none; } } /* a phone's header stays on one line; For businesses is in the footer */
.hero.hero--a2 { gap: 20px; } /* 1366x650: the intro first line must end inside the screen */

/* melbourne story 1: the stop header, the month rows, the far "Coming up next" tile (templates/melbourne-story.php; spec team/melbourne-story-1-design.md) */
.tile-link { color: inherit; text-decoration: none; }
.tile-link:hover .figure { text-decoration: underline; }
.tile-link:focus-visible { outline: 2px solid var(--ink); outline-offset: -4px; }
.stop-head h2 { display: flex; align-items: center; gap: 16px; }
.stop-sign { flex: none; display: inline-flex; flex-direction: column; align-items: center; justify-content: center; min-width: 60px; padding: 6px 10px 8px; background: var(--surface); border: var(--frame) solid var(--rule); border-top-width: 6px; line-height: 1; }
.stop-k { font-family: var(--font-body); font-size: 11px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--soft); }
.stop-n { margin-top: 4px; font-family: var(--font-heading); font-weight: 900; font-size: 30px; letter-spacing: -0.03em; color: var(--link); font-variant-numeric: tabular-nums; }
@media (max-width: 37.5em) { .stop-head h2 { gap: 12px; font-size: 30px; } .stop-sign { min-width: 50px; padding: 5px 8px 6px; border-top-width: 5px; } .stop-n { font-size: 24px; } }
.months { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--rule); }
.mo { display: grid; grid-template-columns: 12rem minmax(0, 1fr) minmax(0, 1.4fr); gap: 4px 32px; align-items: baseline; padding: 14px 0; border-bottom: 1px solid var(--rule-soft); }
.mo-name { font-size: 22px; line-height: 1.2; }
.mo-season { margin-left: 8px; font-family: var(--font-body); font-size: var(--size-label); font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--soft); }
.mo-wx { font-size: 15px; line-height: 1.5; color: var(--soft); }
.mo-on { font-size: 15px; line-height: 1.5; color: var(--body); }
.mo-on a { font-weight: 600; }
@media (max-width: 64em) { .mo { grid-template-columns: 9rem minmax(0, 1fr); grid-template-rows: auto 1fr; } .mo-on { grid-column: 2; } .mo-name { grid-row: span 2; align-self: start; } }
@media (max-width: 37.5em) { .mo { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; gap: 2px; padding: 12px 0; } .mo-on { grid-column: auto; margin-top: 6px; } .mo-name { grid-row: auto; } .mo-name { font-size: 20px; } }
.tile-far { background: var(--surface); color: var(--ink); }

/* day trips 1: the trip tiles, the season panels, the trip block and its stop line (templates/day-trips.php; spec team/day-trips-1-design.md) */
.hero--r9 .hero-slot--trips { background: none; }
.dt-tiles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--frame); border: var(--frame) solid var(--rule); background: var(--rule); }
.dt-tiles > li { min-width: 0; }
.dt-tiles > li:last-child:nth-child(odd) { grid-column: 1 / -1; }
.dt-tile { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; color: #F3F0E8; text-decoration: none; background: var(--color-dark-surface); }
.dt-tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.dt-tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(23,23,15,0) 30%, rgba(23,23,15,0.78) 100%); }
.dt-tile-tx { position: absolute; left: 14px; right: 14px; bottom: 12px; z-index: 1; display: flex; flex-direction: column; gap: 2px; }
.dt-tile b { font-family: var(--font-heading); font-weight: 800; font-size: 19px; line-height: 1.05; letter-spacing: -0.01em; }
.dt-tile small { font-size: var(--size-small); line-height: 1.3; color: #F3F0E8; opacity: 0.92; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dt-dir { position: absolute; top: 10px; left: 10px; z-index: 1; padding: 3px 7px; font-style: normal; font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; background: var(--yellow); color: #17170F; }
.dt-tile:hover b { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 0.15em; }
.dt-tile:hover, .dt-tile:focus-visible { outline: 4px solid var(--yellow); outline-offset: -4px; }
.dt-tile:focus-visible { box-shadow: inset 0 0 0 6px #17170F; }
.dt-tiles > li:last-child:nth-child(odd) .dt-tile { aspect-ratio: 8 / 3; } /* spans two columns, same height as the others */
@media (min-width: 37.51em) {
  .dt-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .dt-tiles > li:last-child:nth-child(odd) { grid-column: auto; }
  .dt-tile, .dt-tiles > li:last-child:nth-child(odd) .dt-tile { aspect-ratio: 5 / 2; }
  .dt-tile b { font-size: 22px; }
}
@media (max-width: 37.5em) { .dt-tile small { display: none; } }

.dt-seasons { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--rule); }
.dt-season { display: grid; grid-template-columns: 12rem minmax(0, 1fr); gap: 8px 32px; align-items: start; padding: 20px 0; border-bottom: 1px solid var(--rule-soft); }
.dt-season h3 { font-size: 32px; line-height: 1; letter-spacing: -0.02em; }
.dt-months { display: block; margin-top: 8px; font-family: var(--font-body); font-size: var(--size-label); font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--soft); }
.dt-picks { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); gap: 14px 32px; }
.dt-picks a { font-family: var(--font-heading); font-weight: 700; font-size: 20px; line-height: 1.2; }
.dt-picks p { margin-top: 4px; max-width: 40rem; font-size: 15px; line-height: 1.5; color: var(--body); }
@media (max-width: 37.5em) { .dt-season { grid-template-columns: minmax(0, 1fr); padding: 16px 0; } .dt-season h3 { font-size: 28px; } .dt-picks { grid-template-columns: minmax(0, 1fr); } }

.dt-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 40px; }
.dt-trip { border: var(--frame) solid var(--rule); background: var(--surface); }
.dt-top { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.dt-ph { margin: 0; display: flex; flex-direction: column; min-height: 380px; background: var(--fill); border-right: var(--frame) solid var(--rule); }
.dt-ph img { flex: 1; width: 100%; height: 100%; min-height: 0; object-fit: cover; display: block; }
.dt-ph .slot-cap { flex: none; }
.dt-trip:nth-child(even) .dt-ph { order: 2; border-right: 0; border-left: var(--frame) solid var(--rule); }
.dt-tx { padding: 28px 30px; display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.dt-kick { font-size: var(--size-label); font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--link); }
.dt-kick span { color: var(--soft); }
.dt-tx h3 { font-size: clamp(30px, 3.2vw, 46px); line-height: 1.02; letter-spacing: -0.02em; }
.dt-tx p:not(.dt-kick) { font-size: 17px; line-height: 1.55; color: var(--body); }

/* the stop line: top to bottom on the phone, left to right from 48em */
.dt-line { list-style: none; margin: 0; padding: 22px 30px 24px 56px; border-top: var(--frame) solid var(--rule); position: relative; }
.dt-line li { position: relative; padding: 0 0 16px 0; }
.dt-line li:last-child { padding-bottom: 0; }
.dt-line li::before { content: ""; position: absolute; left: -26px; top: 2px; width: 18px; height: 18px; border-radius: 50%; box-sizing: border-box; border: 3px solid var(--ink); background: var(--surface); z-index: 1; }
.dt-line li::after { content: ""; position: absolute; left: -19px; top: 2px; bottom: -2px; width: 4px; background: var(--ink); }
.dt-line li:last-child::after { display: none; }
.dt-line li:first-child::before, .dt-line li:last-child::before { background: var(--yellow); }
.dt-line b { display: block; font-family: var(--font-heading); font-weight: 800; font-size: 18px; line-height: 1.2; }
.dt-line span { display: block; margin-top: 2px; font-size: 14px; line-height: 1.4; color: var(--soft); }
@media (min-width: 64em) {
  .dt-line { display: grid; grid-template-columns: repeat(var(--n, 4), minmax(0, 1fr)); gap: 0 16px; padding: 22px 30px 24px; }
  .dt-line li { padding: 30px 0 0; }
  .dt-line li::before { left: 0; top: 0; }
  .dt-line li::after { left: 9px; right: -16px; top: 7px; bottom: auto; width: auto; height: 4px; }
}

/* the two panels */
.dt-bottom { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); border-top: var(--frame) solid var(--rule); }
.dt-panel { padding: 24px 30px 26px; display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.dt-panel[hidden] { display: none; }
.dt-good { border-left: var(--frame) solid var(--rule); background: var(--bg); }
.dt-ph-h { margin: 0; font-family: var(--font-body); font-size: var(--size-label); font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--soft); }
.dt-ways { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px 28px; }
.dt-ways > :only-child { grid-column: 1 / -1; }
.dt-way h5 { margin: 0 0 10px; font-family: var(--font-heading); font-size: 20px; font-weight: 800; }
.dt-way h5 span { display: block; margin: 4px 0 0; font-family: var(--font-body); font-size: 14px; font-weight: 400; color: var(--soft); }
.dt-steps { list-style: none; margin: 0; padding: 0; counter-reset: s; display: flex; flex-direction: column; gap: 10px; }
.dt-steps li { counter-increment: s; display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 10px; font-size: 15px; line-height: 1.45; }
.dt-steps li::before { content: counter(s); width: 24px; height: 24px; border-radius: 50%; background: var(--ink); color: var(--bg); font-size: 12px; font-weight: 700; display: grid; place-items: center; }
.dt-steps li span { display: block; font-size: 14px; color: var(--soft); }
.dt-last { margin-top: 14px; padding: 10px 14px; border: var(--frame) solid var(--rule); border-left: 6px solid var(--yellow); background: var(--surface); font-size: 15px; font-weight: 650; line-height: 1.4; }
.dt-know { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule-soft); }
.dt-know li { padding: 12px 0; border-bottom: 1px solid var(--rule-soft); font-size: 15px; line-height: 1.5; color: var(--body); }
@media (max-width: 64em) {
  .dt-ways { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 48em) {
  .dt-top, .dt-bottom { grid-template-columns: minmax(0, 1fr); }
  .dt-ph, .dt-trip:nth-child(even) .dt-ph { order: 0; min-height: 0; border: 0; border-bottom: var(--frame) solid var(--rule); }
  .dt-ph img { aspect-ratio: 3 / 2; height: auto; }
  .dt-good { border-left: 0; border-top: var(--frame) solid var(--rule); }
}
@media (max-width: 37.5em) {
  .dt-tx, .dt-panel { padding: 20px 18px; }
  .dt-line { padding: 20px 18px 22px 44px; }
  .dt-tx h3 { font-size: 30px; }
}

.dt-top--nophoto { grid-template-columns: minmax(0, 1fr); }
.dt-bottom--one { grid-template-columns: minmax(0, 1fr); }
