/* 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;

  /* type: Fraunces for display, Inter for text */
  --font-heading: 'Fraunces', 'Fraunces Fallback', Georgia, serif;
  --font-body: 'Inter', 'Inter Fallback', 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;
}

/* Fallbacks sized to match Fraunces and Inter, so the font swap does not reflow text (CLS). */
@font-face { font-family: "Fraunces Fallback"; font-display: swap; src: local("Georgia"); size-adjust: 97%; ascent-override: 100.8%; descent-override: 26.3%; line-gap-override: 0%; }
@font-face { font-family: "Inter Fallback"; font-display: swap; src: local("Arial"); size-adjust: 106%; ascent-override: 90.2%; descent-override: 22.5%; line-gap-override: 0%; }
@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;
}


/* ---------- 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 (width < 48em) { .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 ---------- */
.page-top { padding-top: 32px; } /* site pages: the same gap under the header rule as .intro, without its flex gap */
.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; padding-block: 2px; }
.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 (width > 70em) { .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; }
  .js [data-reveal]:not(.is-in) { animation: reveal-safe 0s 4s forwards; } /* if site.js never runs (blocked, failed), the content shows after 4 s anyway */
  [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 { padding-block: 2px; 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 (width > 37.5em) {
  .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 (width < 48em) { .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 { padding-block: 2px; 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 (width < 48em) { .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) */
.page-prose > :is(p, h2, ul, ol) { max-width: 68ch; }
.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 { padding-block: 2px; 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 / 600 * 1px); } /* 550 to 687 px wide here: 12.8 to 16 px on screen */
  .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 */
  .home-cards { grid-template-columns: repeat(5, 1fr); }
}
@media (min-width: 750px) { .map-main text, .map-in text { font-size: calc(var(--w) * 14 / 740 * 1px); } }
@media (min-width: 64em) { .map-main text { font-size: calc(var(--w) * 14 / 440 * 1px); } .map-in text { font-size: calc(var(--w) * 14 / 275 * 1px); } } /* the homepage map columns are 560/350 px wide at 1024, 438/274 at 1199 and 471/294 from 1280 up: about 13.5 to 15 px on screen */
.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; } }

.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: 11.5px; color: var(--soft); align-self: end; }
  .hm-footy::after { content: "Dec"; grid-column: 11 / 13; grid-row: 1; text-align: right; font-size: 11.5px; 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; } }


.ab-tile.is-hit { outline: 2px solid var(--ink); outline-offset: 4px; background: var(--yellow); } /* the suburb a search sent without JS asked for (/melbourne/areas/?q=) */



.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 reveal-safe { to { opacity: 1; transform: none; } }
@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 (width > 37.5em) { .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 (width > 37.5em) { [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; }
  .page-top { padding-top: 16px; }
  .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:has(> :nth-child(8)) { min-height: calc(2 * 1.5em + 8px); align-content: flex-start; } } /* only the long Australia / Victoria / ... trail can wrap */

/* 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 11.5px/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); }
.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; }


/* 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; }
.hero--a2 .hero-text > h1.balance { --len: 17; } /* the homepage name is a sentence: sized for two lines of about 17 characters */
.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 (height < 300px) and (width >= 500px) { .ml:not([data-t~="s"]) { display: none; } }
@container (height < 300px) and (width < 500px) { .ml:not([data-t~="p"]) { display: none; } }
@container (300px <= height < 390px) { .ml:not([data-t~="m"]) { display: none; } }
@container (height >= 390px) { .ml:not([data-t~="l"]) { display: none; } }
@media (max-width: 37.5em) { .ml-n, .ml-w { display: none; } }
.am-cbd { r: 3px; }
.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 */

/* the clickable hero tiles and the far "Coming up next" tile (templates/melbourne-story.php) */
.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; }
/* melbourne 2: short sections (a lead beside its cards), the tram picker and the month strip (templates/melbourne-story.php). The picker buttons are the homepage's .hp-routes. */
.mv-sec { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 24px 56px; align-items: start; }
.mv-tx h2 { font-family: var(--font-heading); font-weight: 900; font-size: var(--size-h2); letter-spacing: -0.03em; line-height: 1; margin: 0 0 14px; }
.mv-tx p { font-size: 17px; line-height: 1.55; color: var(--body); margin: 0 0 10px; max-width: 34rem; }
.mv-tx .small { font-size: var(--size-small); }
.section-ink .mv-tx p { color: var(--band-ink); }
.section-ink .mv-tx .soft { color: var(--band-soft); }
.mv-chips, .mv-route-cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.mv-chips--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.mv-chips a, .mv-plain { display: flex; flex-direction: column; gap: 2px; padding: 14px 16px; background: var(--surface); border: var(--frame) solid var(--rule); color: var(--ink); text-decoration: none; height: 100%; }
.mv-chips strong, .mv-route-cards strong { display: block; font-family: var(--font-heading); font-size: 20px; font-weight: 800; letter-spacing: -0.015em; line-height: 1.1; }
.mv-chips span span, .mv-route-cards span span { display: block; font-size: 14px; line-height: 1.4; color: var(--body); }
.mv-chips em { font-style: normal; font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--link); margin-top: 6px; }
.mv-chips a:hover strong, .mv-route-cards a:hover strong { color: var(--link); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: .15em; }
.mv-chips a:focus-visible, .mv-route-cards a:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.mv-route-cards { gap: 12px; }
.mv-route-cards a { display: grid; grid-template-columns: 120px 1fr; gap: 14px; align-items: center; padding: 0; background: var(--surface); border: var(--frame) solid var(--rule); color: var(--ink); text-decoration: none; }
.mv-route-cards a > span { padding-right: 12px; }
.mv-route-cards a:not(:has(img)) > span { padding: 14px 16px; }
.mv-route-cards img { width: 120px; height: 88px; object-fit: cover; display: block; border-right: var(--frame) solid var(--rule); }
.mv-tx .hp-routes { margin: 6px 0 10px; }
.hp-routes.mv-months { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); }
.hp-routes.mv-months button { min-width: 0; padding: 0 4px; }
.mv-chips > li:last-child:nth-child(odd), .mv-route-cards > li:last-child:nth-child(odd) { grid-column: 1 / -1; } /* no lone half-width card */
.mv-chips--3 > li:last-child:nth-child(odd) { grid-column: auto; }
.mv-chips--3 > li:last-child:nth-child(3n+1) { grid-column: span 3; }
.mv-chips--3 > li:last-child:nth-child(3n+2) { grid-column: span 2; }
@media (min-width: 37.5em) { .mv-tx .hp-routes:not(.mv-months) { flex-wrap: nowrap; gap: 6px; } .mv-tx .hp-routes:not(.mv-months) button { flex: 1 1 0; min-width: 0; padding: 0 4px; } }
.hp-map-side > .label { margin: 0; }
.section-ink .hp-routes button { background: transparent; color: var(--band-ink); border-color: var(--band-rule); }
.section-ink .hp-routes button[aria-pressed="true"] { background: var(--yellow); color: #17170F; border-color: var(--yellow); }
.hp-routes.mv-months button { font-family: var(--font-body); font-weight: 600; font-size: 15px; }
.js .mv-rv:not(.is-on) { display: none; }
.mv-route-line { margin: 0 0 12px; font-size: 16px; color: var(--band-ink); }
.mv-month { background: var(--surface); border: var(--frame) solid var(--rule); padding: 22px 26px; }
.mv-month h3 { font-family: var(--font-heading); font-size: 34px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.05; margin: 4px 0 10px; }
.mv-month p { margin: 0 0 10px; font-size: 16px; line-height: 1.5; color: var(--body); }
.mv-month .eyebrow { color: var(--soft); }
.mv-month .mv-wx { font-weight: 600; color: var(--ink); }
.mv-month + .mv-month { margin-top: 12px; }
.mv-map .hp-fallback .map-wrap { display: block; }
.mv-map .hp-map-view.is-live { min-height: 480px; }
/* the sporting capital: five date cards in the order they next come round (js sorts; the first is "Next up") */
.sy-year { list-style: none; margin: 8px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 10px; }
.sy-card { display: grid; grid-row: span 2; grid-template-rows: subgrid; row-gap: 4px; margin-bottom: 10px; } /* frames share one bottom line; a credit sits in the second row */
.sy-card[hidden] { display: none; }
.sy-card > a { display: flex; flex-direction: column; border: var(--frame) solid var(--rule); background: var(--surface); color: var(--ink); text-decoration: none; }
.sy-card > a:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.sy-top { position: relative; display: block; height: 110px; background: var(--ink); border-bottom: var(--frame) solid var(--rule); overflow: hidden; }
.sy-top img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.sy-date { position: absolute; left: 12px; bottom: 10px; display: flex; flex-direction: column; align-items: flex-start; color: var(--bg); line-height: 1; }
.sy-mon { font-size: 13px; letter-spacing: .14em; text-transform: uppercase; font-weight: 700; }
.sy-day { font-family: var(--font-heading); font-size: 44px; font-weight: 800; }
.has-photo .sy-date { background: var(--ink); padding: 8px 10px 6px; left: 0; bottom: 0; }
.has-photo .sy-day { font-size: 32px; }
.is-next .sy-top { background: var(--yellow); }
.is-next .sy-date { color: #17170F; }
.is-next .has-photo .sy-date { background: var(--yellow); }
.sy-next { display: none; position: absolute; right: 8px; top: 8px; background: var(--ink); color: var(--yellow); font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 5px 8px; }
.is-next .sy-next { display: block; }
.sy-tx { display: flex; flex-direction: column; flex: 1; gap: 6px; padding: 14px 14px 16px; font-size: 14.5px; line-height: 1.45; color: var(--body); }
.sy-tx strong { font-family: var(--font-heading); font-size: 22px; font-weight: 800; line-height: 1.1; color: var(--ink); }
.sy-when { font-weight: 700; color: var(--ink); }
.sy-tx em { font-style: normal; font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--link); margin-top: auto; padding-top: 6px; }
.sy-credit { display: block; font-size: 12px; line-height: 1.35; color: var(--soft); }
.sy-note { margin: 14px 0 0; max-width: none; }
/* eat your way out: street-sign cards, a yellow sign for each market and an ink one for each street */
.ey-groups { display: grid; grid-template-columns: 1fr; gap: 24px; margin-top: 8px; }
.ey-groups .label { margin: 0 0 12px; border-top: 2px solid var(--ink); padding-top: 12px; }
.ey-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.ey-card { display: grid; grid-template-columns: 40% 1fr; min-height: 104px; border: var(--frame) solid var(--rule); background: var(--surface); color: var(--ink); text-decoration: none; }
.ey-card:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.ey-sign { display: flex; align-items: center; padding: 14px 16px; font-family: var(--font-heading); font-size: 18px; font-weight: 800; line-height: 1.1; }
.ey-m .ey-sign { background: var(--yellow); color: #17170F; }
.ey-s .ey-sign { background: var(--ink); color: var(--bg); }
.ey-tx { display: flex; flex-direction: column; justify-content: center; gap: 6px; padding: 12px 16px; font-size: 15px; line-height: 1.45; color: var(--body); }
.ey-tx em { font-style: normal; font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--link); }
.ey-card:hover .ey-sign { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: .15em; }
@media (min-width: 43.75em) { .sy-year { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 16px; } .sy-card { margin-bottom: 16px; } .sy-top { height: 150px; } .sy-day { font-size: 64px; } .has-photo .sy-day { font-size: 40px; } .ey-groups { grid-template-columns: 1fr 1fr; gap: 40px; } .ey-sign { font-size: 22px; } .ey-card { grid-template-columns: 44% 1fr; } }
@media (min-width: 68.75em) { .sy-year { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.mv-views { min-width: 0; }
@media (max-width: 70em) {
  .mv-sec { grid-template-columns: 1fr; }
  .mv-chips--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mv-chips--3 > li:last-child:nth-child(3n+1), .mv-chips--3 > li:last-child:nth-child(3n+2) { grid-column: auto; }
  .mv-chips--3 > li:last-child:nth-child(odd) { grid-column: 1 / -1; }
}
@media (max-width: 37.5em) {
  .mv-chips, .mv-chips--3, .mv-route-cards { grid-template-columns: 1fr; }
  .mv-month { padding: 18px 20px; }
  .mv-month h3 { font-size: 28px; }
}
.tile-far { background: var(--surface); color: var(--ink); }

/* day trips 4: pick a day out (chips, nine cards, the open trip below the grid) and the big days out band (templates/day-trips.php; mock docs/design-reference/mock-23nov/mockdt2.css). The season list is day trips 2. */
html:not(.js) .js-only { display: none; }
.dx-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 20px 0 14px; }
.dx-chip { min-height: 40px; padding: 8px 14px; border: 1.5px solid var(--ink); border-radius: 999px; background: var(--surface); color: var(--ink); font: 600 14px/1.2 var(--font-body); cursor: pointer; }
.dx-chip:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.dx-card:focus-visible { outline: 3px solid var(--yellow); outline-offset: -3px; }
.dx-chip[aria-pressed="true"] { background: var(--ink); color: var(--surface); }
.dx-clear { min-height: 40px; padding: 8px 6px; border: 0; background: none; color: var(--link); font: 600 14px/1.2 var(--font-body); text-decoration: underline; white-space: nowrap; cursor: pointer; }
.dx-clear:hover { color: var(--link-hover); }
.dx-clear[hidden] { display: none; }
.dx-count { margin: 0 0 12px; font: 500 14px var(--font-body); color: var(--soft); }
.dx-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); grid-auto-rows: 175px; gap: 14px; }
.dx-grid > li[hidden] { display: none; }
.dx-grid > li.is-first { grid-column: span 2; grid-row: span 2; }
.dx-card { position: relative; display: block; height: 100%; min-height: 150px; overflow: hidden; border: 1px solid var(--ink); background: #2b2b22; color: #fff; text-decoration: none; }
.dx-card:hover, .dx-card:focus-visible { color: #fff; }
.dx-card:hover, .dx-card[aria-current="true"] { outline: 3px solid var(--yellow); outline-offset: -1px; }
.dx-card img, .dx-card-ph { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.dx-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(10, 10, 6, .94) 0%, rgba(10, 10, 6, .75) 45%, rgba(10, 10, 6, 0) 100%); }
.dx-cb { text-shadow: 0 1px 3px rgba(0, 0, 0, .6); position: absolute; left: 14px; right: 14px; bottom: 12px; z-index: 1; display: flex; flex-direction: column; gap: 3px; }
.dx-cn { margin: 0; font: 700 20px/1.15 var(--font-heading); color: #fff; }
.dx-main { margin: 0; font-size: 13.5px; line-height: 1.35; color: #fff; }
.dx-main b { font-weight: 400; }
.dx-more { display: flex; gap: 10px; font: 12px var(--font-body); color: #fff; }
.dx-card:hover .dx-cn, .dx-card:focus-visible .dx-cn { text-decoration: underline; }
.dx-grid > li:not(.is-first) .dx-main .t, .dx-grid > li:not(.is-first) .dx-nocar { display: none; }
.dx-grid > li.is-first .dx-cn { font-size: 30px; }
.dx-grid > li.is-first .dx-main { font-size: 15px; }
.dx-trips { margin-top: 22px; }
.dx-trip { scroll-margin-top: 72px; margin-bottom: 40px; }
.dx-trip[hidden] { display: none; }
.dx-top { display: grid; grid-template-columns: 1.15fr 1fr; border: var(--frame) solid var(--rule); background: var(--surface); }
.dx-ph { margin: 0; display: flex; flex-direction: column; background: var(--fill); }
.dx-ph picture { flex: 1; display: block; min-height: 300px; position: relative; }
.dx-ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.dx-ph .slot-cap { height: auto; min-height: 30px; padding-block: 6px; }
.dx-ph--none { min-height: 300px; background: repeating-linear-gradient(135deg, var(--fill) 0 14px, var(--tone) 14px 28px); }
.dx-tb { padding: 22px 24px; }
.dx-eb { margin: 0; font: 700 12px/1 var(--font-body); letter-spacing: .09em; text-transform: uppercase; color: var(--link); }
.dx-h { margin: 6px 0 10px; font: 600 34px/1.05 var(--font-heading); color: var(--ink); }
.dx-known { margin: 0 0 16px; font-size: 16px; line-height: 1.55; color: var(--body); }
.dx-mainbox { border-left: 5px solid var(--yellow); background: var(--tone); padding: 12px 14px; }
.dx-mainbox h4 { margin: 0 0 4px; font: 700 11.5px/1 var(--font-body); letter-spacing: .08em; text-transform: uppercase; color: var(--soft); }
.dx-mainbox .n { margin: 0 0 6px; font: 600 22px/1.15 var(--font-heading); color: var(--ink); }
.dx-mainbox p { margin: 0 0 8px; font-size: 14.5px; line-height: 1.45; color: var(--body); }
.dx-facts { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 14px; line-height: 1.3; color: var(--body); }
.dx-facts b { color: var(--ink); }
.dx-sh { margin: 26px 0 10px; font: 600 24px/1.1 var(--font-heading); color: var(--ink); display: flex; align-items: baseline; gap: 12px; }
.dx-sh small { font: 500 14px var(--font-body); color: var(--soft); }
.dx-places, .dx-big { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.dx-big { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.dx-big > li[hidden], .bd-more > li[hidden], .bd-more-h[hidden] { display: none; }
.dx-pl.bd-has { padding: 0 0 14px; }
.dx-pl.bd-has > :not(.bd-ph) { margin-left: 14px; margin-right: 14px; }
.bd-ph { margin: 0 0 6px; }
.bd-ph img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
.bd-ph figcaption { font: 400 11.5px/1.3 var(--font-body); color: var(--soft); padding: 4px 14px 0; }
.bd-more-h { font: 600 20px/1.2 var(--font-heading); margin: 28px 0 10px; }
.bd-more { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 24px; border-top: 1px solid var(--rule); }
.bd-row { display: grid; grid-template-columns: 72px 1fr; gap: 10px; padding: 12px 0; border-bottom: 1px solid var(--rule); }
.bd-kind { font: 700 11.5px/1 var(--font-body); letter-spacing: .06em; text-transform: uppercase; color: var(--soft); padding-top: 4px; }
.bd-row .dx-pn { font-size: 17px; }
.bd-row p { margin: 4px 0 0; }
.dx-pl { height: 100%; border: 1px solid var(--rule); background: var(--surface); padding: 12px 14px; display: flex; flex-direction: column; gap: 5px; }
.dx-pl.closed { background: var(--bg); }
.dx-pk { display: flex; gap: 6px; flex-wrap: wrap; font: 700 11.5px/1 var(--font-body); letter-spacing: .06em; text-transform: uppercase; }
.dx-pk span { padding: 4px 6px; background: var(--tone); color: var(--ink); }
.dx-pk .kids { background: var(--color-green-ink); color: var(--color-green-dark); }
.dx-pk .rain { background: var(--fill); color: var(--ink); }
.dx-pk .closed { background: var(--color-error); color: var(--surface); }
.dx-pk .works { background: var(--yellow); color: var(--ink); }
.dx-pn { margin: 0; font: 600 17px/1.2 var(--font-heading); color: var(--ink); }
.dx-pl.closed .dx-pn { color: var(--soft); }
.dx-pt { margin: 0; font-size: 14px; line-height: 1.45; color: var(--body); }
.dx-pw { margin: 0; font-size: 13px; line-height: 1.4; color: var(--ink); }
.dx-ptime { margin: 0; font: 600 13px var(--font-body); color: var(--ink); }
.dx-near { margin: auto 0 0; font: 600 13px var(--font-body); }
.dx-days { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.dx-day { border: var(--frame) solid var(--rule); background: var(--surface); padding: 14px 16px; }
.dx-day h5 { margin: 0 0 8px; font: 600 19px/1.1 var(--font-heading); color: var(--ink); }
.dx-day ol { margin: 0; padding-left: 20px; font-size: 14.5px; line-height: 1.6; color: var(--body); }
.dx-gnote { margin: -4px 0 10px; font-size: var(--size-small); color: var(--soft); }
.dx-go { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.dx-gobox { border: 1px solid var(--rule); background: var(--surface); padding: 14px 16px; font-size: 14.5px; line-height: 1.5; color: var(--body); }
.dx-gobox h5 { margin: 0 0 6px; font: 700 12px/1 var(--font-body); letter-spacing: .08em; text-transform: uppercase; color: var(--soft); }
.dx-gobox p { margin: 0 0 8px; }
.dx-gobox ol { margin: 0 0 8px; padding-left: 20px; }
.dx-notes { margin: 12px 0 0; padding: 10px 14px; border-left: 4px solid var(--yellow); background: var(--tone); font-size: 14px; line-height: 1.45; color: var(--ink); }
@media (max-width: 64em) {
  .dx-places, .dx-days, .dx-big { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dx-top { grid-template-columns: 1fr; }
  .dx-ph picture, .dx-ph--none { min-height: 0; aspect-ratio: 16 / 9; }
}
@media (max-width: 700px) {
  .dx-grid { grid-template-columns: 1fr 1fr; grid-auto-rows: 132px; gap: 10px; }
  .dx-card { min-height: 0; }
  .dx-cb { left: 10px; right: 10px; bottom: 9px; }
  .dx-cn { font-size: 16.5px; }
  .dx-main { font-size: 12.5px; }
  .dx-more { display: none; }
  .dx-grid > li.is-first .dx-more { display: flex; }
  .dx-grid > li.is-first .dx-cn { font-size: 24px; }
}
@media (max-width: 40em) {
  .dx-chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-right: calc(var(--gutter) * -1); padding-right: var(--gutter); }
  .dx-chip { white-space: nowrap; font-size: 13.5px; padding: 7px 12px; }
  .dx-places, .dx-days, .dx-go { grid-template-columns: 1fr; }
  .dx-big { gap: 10px; }
  .dx-pl.bd-has .dx-pt { display: none; }
  .bd-more { grid-template-columns: 1fr; }
  .dx-tb { padding: 16px; }
  .dx-h { font-size: 28px; }
}
.dl-seasons { list-style: none; margin: 24px 0 0; padding: 0; border-top: 2px solid var(--rule); }
.dl-seasons li { display: grid; grid-template-columns: 160px 1fr; gap: 4px 24px; padding: 16px 0; border-bottom: 1px solid var(--rule-soft); align-items: baseline; }
.dl-seasons strong { font-family: var(--font-heading); font-size: 26px; font-weight: 800; letter-spacing: -0.015em; grid-row: 1; }
.dl-seasons .soft { font-size: 12px; letter-spacing: .06em; text-transform: uppercase; grid-column: 1; }
.dl-seasons p { grid-column: 2; grid-row: 1 / span 2; margin: 0; font-size: 16px; line-height: 1.55; color: var(--body); }
.dl-seasons p a { font-weight: 600; }
@media (max-width: 37.5em) {
  .dl-seasons li { grid-template-columns: 1fr; } .dl-seasons p { grid-column: 1; grid-row: auto; }
}

.slot--none .slot-band { background: repeating-linear-gradient(135deg, var(--fill) 0 14px, var(--tone) 14px 28px); } /* the hero tile when a page has no photos and no poster */

/* ---------- homepage 2: search results, finder, map, compare, Melbourne card, shortlist, and the heart on a suburb page (templates/home-thereabouts.php; mock docs/design-reference/mock-18nov/home-v4.css) ---------- */
.hp-lead { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
@media (min-width: 64em) { .hero--r9 .hero-text > .hp-lead { grid-area: lead; } }
.hp-paths { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 0; }
.hp-path { display: inline-flex; align-items: center; padding: 9px 12px; border: 2px solid var(--ink); background: var(--surface); color: var(--ink); font: 600 14px/1.2 var(--font-body); text-decoration: none; }
.hp-path:first-child { background: var(--ink); color: var(--surface); }
.hp-path:hover { background: var(--yellow); color: var(--ink); }
@media (min-width: 48em) { .hp-paths { gap: 10px; } .hp-path { padding: 10px 16px; font-size: 15px; } }
@media (min-width: 64em) { .hero--r9.hero--a2 .hero-text { grid-template-areas: "eb eb" "h1 lead" "paths lead"; grid-template-rows: auto auto 1fr; } .hero--r9 .hero-text > .hp-paths { grid-area: paths; align-self: start; margin-top: 26px; } }
.hp-search { position: relative; }
.hp-search-row { display: flex; }
.hp-search-row .field { flex: 1 1 auto; min-width: 0; height: 52px; font-size: 18px; border-right: 0; }
.hp-search-row .search-go { height: 52px; }
.hp-results { list-style: none; margin: 0; padding: 0; border: var(--frame) solid var(--rule); border-top: 0; background: var(--surface); }
.hp-results[hidden] { display: none; }
.hp-results li + li { border-top: 1px solid var(--rule-soft); }
.hp-results a { display: block; padding: 11px 14px; color: var(--ink); text-decoration: none; font-size: 16px; }
.hp-results a:hover, .hp-results a.is-hot { background: var(--tone); }
.hp-results strong, .suggest strong { font-weight: 700; text-decoration: underline; text-decoration-color: var(--yellow); text-decoration-thickness: 3px; text-underline-offset: 2px; }
.hp-results .hp-no { display: block; padding: 11px 14px; font-size: 16px; color: var(--soft); }
.hp-hint { margin: 8px 0 0; }

.hp-routes button { font: inherit; font-size: 15px; font-weight: 600; min-height: 44px; padding: 0 16px; border: 1px solid var(--rule); background: var(--surface); color: var(--ink); cursor: pointer; }
.hp-routes button[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }

/* homepage 3: "What matters to you?" (eight tick boxes, then the suburb cards), the day trips band */
.f5-wants { display: flex; flex-wrap: wrap; gap: 10px; margin: 22px 0 18px; }
.f5-want { display: inline-flex; align-items: center; gap: 10px; background: var(--surface); border: 1.5px solid var(--ink); border-radius: 999px; padding: 9px 10px 9px 16px; font: inherit; color: var(--ink); cursor: pointer; transition: background .15s, color .15s, transform .1s; }
.f5-want:hover { background: #fff8d6; }
.f5-want:active { transform: scale(.97); }
.f5-want strong { font-family: var(--font-body); font-size: 16px; font-weight: 600; line-height: 1.2; }
.f5-n { min-width: 28px; height: 28px; border-radius: 999px; background: var(--bg); display: inline-flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; color: var(--ink); }
.f5-want[aria-pressed="true"] { background: var(--ink); color: var(--bg); }
.f5-want[aria-pressed="true"] strong::before { content: "\2713\00a0"; color: var(--yellow); }
.f5-want[aria-pressed="true"] .f5-n { background: var(--yellow); }
.f5-want.is-zero, .f7-area.is-zero { opacity: .4; cursor: default; }
.f5-want.is-zero:hover { background: var(--surface); }
html:not(.js) .f5-wants { display: none; } /* the buttons need the script; without it every suburb is listed */
.f5-count { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; font-size: 17px; margin: 0 0 16px; border-top: 2px solid var(--rule); padding-top: 14px; }
.f5-count a { font-weight: 600; }
.f7-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin: 4px 0 18px; }
.f7-areas { display: flex; gap: 6px; flex-wrap: wrap; }
.f7-area { font: 600 14px/1 var(--font-body); padding: 9px 12px; border: 0; border-bottom: 3px solid transparent; background: none; color: var(--soft); cursor: pointer; }
.f7-area span { font-weight: 500; margin-left: 4px; }
.f7-area[aria-pressed="true"] { color: var(--ink); border-bottom-color: var(--yellow); }
.f7-area:hover { color: var(--ink); }
.f7-sort { margin-left: auto; display: inline-flex; border: 1.5px solid var(--ink); border-radius: 999px; overflow: hidden; }
.f7-sort button { font: 600 13px/1 var(--font-body); padding: 8px 14px; border: 0; background: var(--surface); color: var(--ink); cursor: pointer; }
.f7-sort button[aria-pressed="true"] { background: var(--ink); color: var(--bg); }
.f5-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.f5-grid li { position: relative; transition: transform .18s ease, box-shadow .18s ease; }
.f5-grid li:hover, .f5-grid li:focus-within { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(23, 23, 15, .14); }
.f5-grid li[hidden] { display: none; }
.f5-card { display: flex; flex-direction: column; height: 100%; background: var(--surface); border: 1px solid rgba(23, 23, 15, .18); color: var(--ink); text-decoration: none; }
.f5-img { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--color-fill); }
.f5-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s ease; }
.f5-grid li:hover .f5-img img, .f5-grid li:focus-within .f5-img img { transform: scale(1.04); }
.f5-img::after { content: ""; position: absolute; inset: auto 0 0 0; height: 62%; background: linear-gradient(to top, rgba(23, 23, 15, .82), rgba(23, 23, 15, 0)); }
.f5-img:has(img[src$=".svg"])::after { height: 80%; background: linear-gradient(to top, rgba(23, 23, 15, .92), rgba(23, 23, 15, .75) 50%, rgba(23, 23, 15, 0)); } /* street-map posters: darker so the name reads */
.f7-over { position: absolute; left: 14px; right: 14px; bottom: 12px; z-index: 1; color: #fff; }
.f7-over .eyebrow { display: block; line-height: 1.25; color: var(--yellow); font-size: 11.5px; letter-spacing: .08em; }
.f7-over strong { display: block; font-family: var(--font-heading); font-size: 24px; line-height: 1.1; margin-top: 2px; }
.f5-tx { display: flex; flex-direction: column; gap: 10px; flex: 1; padding: 12px 14px 14px; }
.f5-card:hover .f7-over strong { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: .15em; }
.f5-line { font-size: 14px; line-height: 1.45; color: var(--body); }
.f5-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; }
.f5-chip { font-size: 12px; font-weight: 600; border: 1px solid var(--rule-soft); padding: 3px 8px; background: var(--bg); }
.f5-heart { position: absolute; right: 10px; top: 10px; z-index: 2; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 999px; background: rgba(255, 255, 255, .92); border: var(--frame) solid var(--rule); font: inherit; font-size: 22px; line-height: 1; color: var(--link); cursor: pointer; }
.f5-heart[hidden] { display: none; }
.f5-heart.is-saved { background: var(--yellow); color: #17170F; }
.f5-more { margin: 20px 0 0; text-align: center; display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.f5-more[hidden], .f5-more button[hidden] { display: none; }
.btn-outline { font: inherit; cursor: pointer; border: 1.5px solid var(--ink); padding: 12px 22px; font-weight: 600; color: var(--ink); background: var(--surface); }
@media (max-width: 75em) { .f5-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.hp-map { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); margin-top: 28px; border: var(--frame) solid var(--rule); background: var(--surface); }
.hp-map-view { position: relative; overflow: hidden; background: var(--bg); border-right: var(--frame) solid var(--rule); min-width: 0; }
.hp-map-view.is-live { min-height: 620px; }
.hp-fallback .map-wrap { margin: 0; }
.hp-fallback .map-svg { border: 0; }
.hp-map-view.is-live .hp-fallback { visibility: hidden; }
.hp-live { position: absolute; inset: 0; }
html:not(.js) .slot-cap .ctl button, html:not(.js) .dz-actions { display: none; } /* controls that need JS */
.hp-map-side { padding: 20px 24px; display: flex; flex-direction: column; gap: 12px; }
.hp-areas { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--rule); }
.hp-areas a { display: flex; justify-content: space-between; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--rule-soft); color: var(--ink); text-decoration: none; }
.hp-areas strong { font-weight: 600; }
.hp-areas a:hover strong { color: var(--link); text-decoration: underline; }

.hp-vs { font-family: var(--font-heading); font-size: 24px; font-style: italic; padding-bottom: 8px; }

.hp-next { border: var(--frame) solid var(--rule); }
.hp-next strong { font-family: var(--font-heading); font-size: 28px; font-weight: 800; letter-spacing: -0.015em; line-height: 1.05; }
.hp-next .sub { font-size: 14px; }
.hp-routes { display: flex; flex-wrap: wrap; gap: 8px; }
.hp-routes[hidden] { display: none; }
.hp-routes button { font-family: var(--font-heading); font-weight: 800; font-size: 18px; min-width: 44px; padding: 0 10px; }


/* the save button beside a suburb page's eyebrow (preview build only; the script shows it once storage can be read) */
.hero .eyebrow { flex-wrap: wrap; }
.save-heart { margin-left: auto; flex: none; font: inherit; font-size: 14px; font-weight: 600; text-transform: none; letter-spacing: 0; color: var(--ink); background: transparent; border: var(--frame) solid var(--rule); border-radius: 0; height: 36px; padding: 0 12px; display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }
.save-heart[hidden] { display: none; }
.save-heart:hover { background: var(--tone); }
.save-ico { font-size: 18px; line-height: 1; color: var(--link); }
.save-heart.is-saved { background: var(--yellow); color: #17170F; border-color: #17170F; }
.save-heart.is-saved .save-ico { color: #17170F; }
.save-heart.is-saved .save-long { display: none; }
/* ---------- homepage: the four sections under "Melbourne, mapped" (24 Nov mock; templates/home-thereabouts.php, js/site.js "homepage 2") ---------- */
/* Compare (ink band): two photo heads, the label in the middle, the figures with bars growing out from the centre */
.cmp4 { display: flex; flex-direction: column; }
.hp-vs { font-family: var(--font-heading); font-size: 24px; font-style: italic; padding-bottom: 8px; }
.hp-cmp-pick { display: none; } /* kept in the HTML for the default pair; the heads' Change choosers replace it */
.cmp4-change, .cmp4-pairs { display: none; }
.js .cmp4-change { display: block; }
.js .cmp4-pairs { display: contents; }
.cmp4-heads { display: grid; grid-template-columns: minmax(0, 1fr) 150px minmax(0, 1fr); align-items: end; gap: 0 12px; }
.cmp4-head { position: relative; display: block; aspect-ratio: 16 / 7; background: var(--color-fill); border: var(--frame) solid var(--band-rule); color: #fff; }
.cmp4-img { position: absolute; inset: 0; overflow: hidden; }
.cmp4-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cmp4-img::after { content: ""; position: absolute; inset: auto 0 0 0; height: 70%; background: linear-gradient(to top, rgba(23, 23, 15, .88), rgba(23, 23, 15, 0)); }
.cmp4-over { position: absolute; left: 18px; right: 18px; bottom: 14px; z-index: 1; color: #fff; text-decoration: none; }
.section-ink a.cmp4-over { color: #fff; }
.cmp4-over .eyebrow { display: block; color: var(--yellow); font-size: 11.5px; letter-spacing: .1em; }
.cmp4-over strong { display: block; font-family: var(--font-heading); font-size: 36px; line-height: 1.05; margin-top: 2px; letter-spacing: -0.01em; }
.cmp4-over:hover strong { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: .15em; }
.cmp4-vs { text-align: center; font-family: var(--font-heading); font-style: italic; font-size: 26px; color: var(--band-soft); padding-bottom: 22px; }
.cmp4-change { position: absolute; top: 10px; right: 10px; z-index: 2; }
.cmp4-change summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; background: rgba(255, 255, 255, .94); color: var(--ink); border: var(--frame) solid var(--rule); border-radius: 999px; padding: 7px 12px; font: 600 13px/1 var(--font-body); }
.cmp4-change summary::-webkit-details-marker { display: none; }
.cmp4-change[open] summary { background: var(--yellow); }
.cmp4-pick { position: absolute; top: 40px; right: 0; width: min(520px, 92vw); max-height: 360px; overflow: auto; background: var(--surface); color: var(--ink); border: var(--frame) solid var(--rule); box-shadow: 0 12px 30px rgba(0, 0, 0, .35); padding: 12px; z-index: 5; }
.cmp4-pick .field { width: 100%; height: 40px; margin-bottom: 10px; }
.cmp4-pick ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.cmp4-pick button { width: 100%; display: grid; grid-template-columns: 56px 1fr; align-items: center; gap: 10px; text-align: left; font: inherit; cursor: pointer; color: var(--ink); border: 1px solid var(--rule-soft); background: var(--bg); padding: 0; min-height: 48px; }
.cmp4-pick button:hover, .cmp4-pick button:focus-visible { border-color: var(--ink); background: var(--surface); }
.cmp4-pick img { width: 56px; height: 46px; object-fit: cover; display: block; }
.cmp4-pick strong { display: block; font-size: 14px; line-height: 1.2; }
.cmp4-pick .sub { display: block; font-size: 12px; color: var(--soft); }
.cmp4-rows { margin: 0; padding: 0; border-top: 2px solid var(--band-ink); }
.cmp4-row { display: grid; grid-template-columns: minmax(0, 1fr) 150px minmax(0, 1fr); gap: 0 12px; align-items: center; min-height: 58px; border-bottom: 1px solid var(--band-rule); }
.cmp4-row dt { text-align: center; font-size: 13px; letter-spacing: .04em; color: var(--band-soft); line-height: 1.3; padding: 8px 0; }
.cmp4-row dd { margin: 0; padding: 10px 0; font-size: 16px; line-height: 1.4; }
.cmp4-row dd.a { text-align: right; }
.cmp4-row dd small { font-size: 13px; color: var(--band-soft); }
.cmp4-row.is-fig dd { display: flex; flex-direction: column; gap: 6px; }
.cmp4-row.is-fig dd.a { align-items: flex-end; }
.cmp4-fig { font-family: var(--font-heading); font-weight: 800; font-size: 26px; line-height: 1; letter-spacing: -0.02em; color: var(--band-ink); font-variant-numeric: tabular-nums; }
.cmp4-bar { display: block; height: 8px; width: var(--w, 0%); background: var(--yellow); }
.cmp4-row dd .none { color: var(--band-soft); font-style: italic; }
.cmp4-try { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 18px; }
.cmp4-try .label { color: var(--band-soft); margin-right: 6px; }
.cmp4-try a { display: inline-flex; align-items: center; gap: 6px; border: 1.5px solid var(--band-rule); border-radius: 999px; padding: 7px 14px; color: var(--band-ink); font: 600 14px/1.2 var(--font-body); text-decoration: none; }
.cmp4-try a:hover, .cmp4-try a:focus-visible { border-color: var(--yellow); }
.cmp4-try a[aria-current="true"] { background: var(--yellow); color: #17170F; border-color: var(--yellow); }
.cmp4-try .cmp4-fromlist { margin-left: auto; border-style: dashed; color: var(--band-soft); }
.cmp4 > .small { margin-top: 14px; color: var(--band-soft); }

/* Start with Melbourne: the poster, the Coming up tile and tram picker, the day trips band */
.mel4 { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); grid-template-rows: 1fr auto; gap: 0 16px; align-items: stretch; }
.mel4-poster, .mel4-credit { grid-column: 1; }
.mel4-side { grid-column: 2; grid-row: 1 / 3; display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.mel4-credit { margin: 6px 0 0; }
.mel4-poster { position: relative; display: block; min-height: 420px; overflow: hidden; border: var(--frame) solid var(--rule); background: var(--ink); color: #fff; text-decoration: none; }
.mel4-poster:hover, .mel4-poster:focus-visible { background: var(--ink); color: #fff; }
.mel4-poster img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.mel4-poster::after { content: ""; position: absolute; inset: auto 0 0 0; height: 70%; background: linear-gradient(to top, rgba(23, 23, 15, .9), rgba(23, 23, 15, 0)); }
.mel4-over { position: absolute; left: 26px; right: 26px; bottom: 24px; z-index: 1; display: flex; flex-direction: column; gap: 6px; }
.mel4-over .eyebrow { color: var(--yellow); }
.mel4-over strong { font-family: var(--font-heading); font-size: clamp(24px, 6.4vw, 40px); line-height: 1.05; letter-spacing: -0.01em; }
.mel4-over > span:last-child { font-size: 16px; line-height: 1.45; color: rgba(255, 255, 255, .9); max-width: 48ch; }
.mel4-poster:hover strong { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: .15em; }
.mel4-side .hp-next { flex: 0 0 auto; padding: 18px 20px; gap: 4px; }
.mel4-side .hp-next strong { font-size: 24px; }
.mel4-trams { flex: 1; border: var(--frame) solid var(--rule); background: var(--surface); padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.mel4-trams .label { color: var(--soft); }
.mel4-routes { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.mel4-routes a { display: inline-flex; align-items: center; justify-content: center; font: 600 13px/1 var(--font-body); min-width: 38px; height: 32px; padding: 0 8px; border: 1.5px solid var(--ink); background: var(--surface); color: var(--ink); border-radius: 999px; text-decoration: none; }
.mel4-routes a:hover { background: var(--yellow); }
.mel4-routes a[aria-current="true"] { background: var(--ink); color: var(--bg); }
.js .mel4-route:not(.is-on) { display: none; }
.mel4-route + .mel4-route { border-top: 1px solid var(--rule-soft); padding-top: 10px; }
.js .mel4-route + .mel4-route { border-top: 0; padding-top: 0; }
.mel4-line { margin: 4px 0 0; font-size: 15px; line-height: 1.45; color: var(--body); }
.mel4-line strong { font-family: var(--font-heading); font-size: 18px; color: var(--ink); }
.mel4-stops { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.mel4-stops a { display: inline-flex; align-items: center; gap: 8px; padding: 4px 10px 4px 4px; border: 1px solid var(--rule-soft); background: var(--bg); color: var(--ink); text-decoration: none; font-size: 13px; font-weight: 600; }
.mel4-stops img { width: 30px; height: 30px; border-radius: 999px; object-fit: cover; display: block; border: 1px solid var(--rule); }
.mel4-stops a:hover { border-color: var(--ink); }
.mel4-trips { margin-top: 8px; display: flex; flex-direction: column; gap: 18px; background: var(--band); color: var(--band-ink); padding: 26px 28px; border: var(--frame) solid var(--rule); }
.mel4-trips-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 24px; }
.mel4-trips-head > div { max-width: 640px; }
.mel4-trips h3 { font-size: 28px; margin: 4px 0 6px; line-height: 1.1; color: var(--band-ink); }
.mel4-trips .btn-y { display: inline-block; background: var(--yellow); color: #17170F; padding: 12px 20px; font-weight: 700; text-decoration: none; }
.mel4-trips .eyebrow { color: var(--yellow); }
.mel4-trips p { color: var(--band-soft); font-size: 15px; line-height: 1.5; margin: 0; }
.mel4-strip { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(9, minmax(0, 1fr)); gap: 8px; }
.mel4-strip a { position: relative; display: block; aspect-ratio: 4 / 5; overflow: hidden; border: 1px solid var(--band-rule); background: var(--band-surface); color: #fff; text-decoration: none; }
.mel4-strip img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mel4-strip a::after { content: ""; position: absolute; inset: auto 0 0 0; height: 65%; background: linear-gradient(to top, rgba(23, 23, 15, .9), rgba(23, 23, 15, 0)); }
.mel4-strip span { position: absolute; left: 10px; right: 8px; bottom: 10px; z-index: 1; font: 700 14px/1.2 var(--font-body); }
.mel4-strip a:hover span { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: .15em; }

/* Your shortlist (tone band): the Saved pocket, three slots (more saved = more rows) */
.sl4 { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 16px; align-items: stretch; }
.sl4-pocket { display: flex; flex-direction: column; gap: 6px; padding: 20px 22px; border: var(--frame) solid var(--rule); background: var(--yellow); color: #17170F; }
.sl4-pocket .label { color: #3D3C35; }
.sl4-count { font-family: var(--font-heading); font-weight: 900; font-size: 64px; line-height: 1; letter-spacing: -0.03em; }
.sl4-pocket p { margin: 0; font-size: 14px; line-height: 1.45; color: #3D3C35; }
.sl4-pocket .sl4-cmp { margin-top: auto; align-self: flex-start; background: var(--ink); color: var(--bg); padding: 10px 14px; font: 700 14px/1.2 var(--font-body); text-decoration: none; }
.sl4-slots { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.sl4-slots > li { position: relative; }
.sl4-slot { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; min-height: 180px; border: 1.5px dashed rgba(23, 23, 15, .3); background: rgba(255, 255, 255, .4); color: var(--soft); text-align: center; padding: 16px; font-size: 14px; line-height: 1.4; }
.sl4-heart { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 999px; border: var(--frame) solid var(--rule); background: var(--surface); color: var(--link); font-size: 22px; line-height: 1; }
.sl4-slot strong { display: block; color: var(--ink); font-weight: 600; }
.sl4-card { position: relative; display: block; height: 100%; min-height: 180px; overflow: hidden; border: var(--frame) solid var(--rule); background: var(--color-fill); color: #fff; text-decoration: none; }
.sl4-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.sl4-card::after { content: ""; position: absolute; inset: auto 0 0 0; height: 70%; background: linear-gradient(to top, rgba(23, 23, 15, .88), rgba(23, 23, 15, 0)); }
.sl4-card .f7-over { z-index: 1; }
.sl4-card .f7-over .sub { display: block; color: rgba(255, 255, 255, .85); font-size: 13px; }
.sl4-card:hover .f7-over strong { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: .15em; }
.sl4-actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 0; }

/* How it works: three tiles with a footer pinned to the bottom */
.how4 { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.how4 > li { padding: 24px 24px 26px; gap: 10px; }
.how4 .eyebrow { color: var(--link); }
.how4 h3 { font-family: var(--font-heading); font-size: 24px; line-height: 1.1; letter-spacing: -0.01em; margin: 0; }
.how4 p { margin: 0; font-size: 15px; line-height: 1.5; color: var(--body); }
.how4-foot { margin-top: auto; padding-top: 14px; display: flex; flex-direction: column; } /* flex, so an inline button adds no line-box gap under it and both buttons end at the same line */
.how4-foot > .btn-outline { align-self: flex-start; }
.how4-fact { display: flex; flex-direction: column; gap: 4px; border-left: 4px solid var(--yellow); background: var(--bg); padding: 10px 14px; }
.how4-fact-v { font-size: 15px; line-height: 1.4; color: var(--ink); font-weight: 600; }
.how4-fact-s { font-size: 12px; color: var(--soft); }
.how4-fact-k { font-weight: 600; letter-spacing: .04em; text-transform: uppercase; font-size: 11.5px; }
.how4-demo { display: inline-flex; align-items: center; gap: 8px; }
.how4-demo svg { width: 16px; height: 16px; }

@media (max-width: 980px) {
  .mel4 { grid-template-columns: 1fr; grid-template-rows: none; }
  .mel4-poster, .mel4-credit, .mel4-side { grid-column: auto; grid-row: auto; }
  .mel4-side { margin-top: 16px; }
  .mel4-poster { min-height: 0; height: clamp(280px, 70vw, 420px); }
  .mel4-trips { padding: 20px; }
  .mel4-strip { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .cmp4-heads { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 8px; }
  .cmp4-head { aspect-ratio: 4 / 3; }
  .cmp4-vs { display: none; }
  .cmp4-over { left: 10px; right: 10px; bottom: 10px; }
  .cmp4-over strong { font-size: 22px; }
  .cmp4-change summary { padding: 6px 9px; font-size: 12px; }
  .cmp4-change { position: static; }
  .cmp4-change summary { position: absolute; top: 10px; right: 10px; }
  .cmp4-pick { top: calc(100% + 6px); right: auto; left: 0; width: calc(200% + 8px); } /* under the heads, across both columns */
  .cmp4-head[data-side="b"] .cmp4-pick { left: auto; right: 0; }
  .cmp4-pick ul { grid-template-columns: 1fr; }
  .cmp4-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 8px; padding: 10px 0; }
  .cmp4-row dt { order: -1; grid-column: 1 / -1; text-align: left; padding: 0 0 4px; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; }
  .cmp4-row dd { padding: 0; font-size: 15px; }
  .cmp4-row dd.a { text-align: left; }
  .cmp4-row.is-fig dd.a { align-items: flex-start; }
  .cmp4-fig { font-size: 22px; }
  .cmp4-try .cmp4-fromlist { margin-left: 0; }
  .sl4 { grid-template-columns: 1fr; }
  .sl4-pocket { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 4px 16px; }
  .sl4-count { font-size: 44px; }
  .sl4-pocket .label { width: 100%; }
  .sl4-pocket p { flex: 1; min-width: 160px; }
  .sl4-pocket .sl4-cmp { width: 100%; margin-top: 10px; text-align: center; }
  .sl4-slots { grid-template-columns: 1fr; gap: 8px; }
  .sl4-slot { min-height: 0; flex-direction: row; justify-content: flex-start; text-align: left; padding: 10px 12px; }
  .sl4-heart { width: 36px; height: 36px; font-size: 18px; flex: 0 0 auto; }
  .sl4-card { min-height: 150px; }
  .how4 { grid-template-columns: 1fr; }
  .how4 > li { padding: 18px 18px 20px; }
}
@media (max-width: 600px) {
  .mel4-over { left: 18px; right: 18px; bottom: 18px; }
  .mel4-over > span:last-child { font-size: 14px; }
  .mel4-trips h3 { font-size: 24px; }
}

.hp-next.tile-yellow strong { color: #17170F; }
input[type="search"]::-webkit-search-cancel-button { appearance: none; }
@media (max-width: 70em) {
  .hp-map { grid-template-columns: 1fr; }
  .hp-map-view { border-right: 0; border-bottom: var(--frame) solid var(--rule); }
}
@media (max-width: 37.5em) {
  .save-heart { height: 32px; } .save-long { display: none; }
  .hero .eyebrow { flex-wrap: nowrap; } /* the heart stays on the eyebrow row; the text beside it wraps */
  .hp-map-view.is-live { min-height: 420px; }
}

.slot--none .slot-band { display: flex; align-items: center; justify-content: center; padding: 16px; }
.slot--none span { font-family: var(--font-heading); font-size: 22px; font-weight: 800; color: var(--ink); text-align: center; }

/* Day trips from <Suburb> (suburb pages): four photo cards, the rest as chips */
.dtr { list-style: none; margin: 20px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.dtr a { display: flex; flex-direction: column; height: 100%; background: var(--surface); color: var(--ink); text-decoration: none; border: 1px solid var(--rule-soft); }
.dtr a:hover .dtr-name, .dtr a:focus-visible .dtr-name { text-decoration: underline; }
.dtr img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; display: block; }
.dtr-cap { padding: 4px 14px 0; font-size: 12px; line-height: 1.5; min-height: calc(2 * 1.5em + 4px); color: var(--soft); }
.dtr a:focus-visible { outline-offset: -2px; }
.dtr-body { display: flex; flex-direction: column; gap: 4px; padding: 10px 14px 14px; flex: 1; }
.dtr-name { font-family: var(--font-heading); font-size: 1.25rem; line-height: 1.2; font-weight: 600; }
.dtr-kick { font-size: .95rem; }
.dtr-how { font-size: .85rem; color: var(--green); font-weight: 600; margin-top: auto; padding-top: 6px; }
.dtr-more { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-top: 18px; }
.dtr-more ul { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; }
.dtr-more li a { display: inline-block; padding: 6px 12px; border: 1px solid var(--rule-soft); border-radius: 999px; color: var(--ink); text-decoration: none; font-size: .9rem; }
.dtr-more li a:hover { border-color: var(--ink); }
.dtr-more .btn-y { margin-left: auto; display: inline-block; background: var(--yellow); color: var(--ink); padding: 12px 20px; font-weight: 700; text-decoration: none; }
@media (max-width: 60em) { .dtr { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 30em) {
  .dtr { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 12px; margin-right: -16px; padding-right: 16px; }
  .dtr li { flex: 0 0 78%; scroll-snap-align: start; }
  .dtr-more .btn-y { margin-left: 0; }
}

@media (max-width: 48em) {
  .f5-wants { flex-wrap: nowrap; overflow-x: auto; margin-right: -16px; padding: 2px 16px 6px 0; scrollbar-width: none; }
  .f5-want { flex: 0 0 auto; } .f5-want strong { font-size: 15px; white-space: nowrap; }
  .f7-areas { flex-wrap: nowrap; overflow-x: auto; margin-right: -16px; scrollbar-width: none; } .f7-area { white-space: nowrap; }
  .f7-sort { margin-left: 0; }
  .f5-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .f7-over strong { font-size: 18px; } .f5-line { display: none; }
}
@media (prefers-reduced-motion: reduce) { .f5-grid li, .f5-img img { transition: none; } .f5-grid li:hover, .f5-grid li:focus-within { transform: none; } .f5-grid li:hover .f5-img img, .f5-grid li:focus-within .f5-img img { transform: none; } }

/* ---------- homepage 4: "Melbourne, mapped" (templates/home-thereabouts.php, js/site.js section "homepage 4") ----------
   Without JS the inner view is a fixed-ratio stage: pins and grey names sit by percent, every pin is a link. js/site.js adds .is-live,
   fits the stage to the screen, places everything in px, and keeps labels from overlapping. */
.mb { --mb-land: #EFEBE0; --mb-sub: #F8E7A0; --mb-red: #9B2C1F; border: var(--frame) solid var(--rule); background: var(--surface); margin-top: 28px; }
.mb-bar { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 12px; border-bottom: 1px solid var(--rule-soft); }
.mb-bar[hidden], .mb-sub-bar[hidden] { display: none; }
.mb-modes { display: flex; gap: 8px; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding: 2px; }
.mb-mode, .mb-zoom { display: inline-flex; align-items: center; white-space: nowrap; min-height: 40px; padding: 8px 14px; border: 1.5px solid var(--ink); background: var(--surface); color: var(--ink); font: 600 14px/1.2 var(--font-body); cursor: pointer; }
.mb-mode { border-radius: 999px; }
.mb-mode[aria-pressed="true"] { background: var(--ink); color: var(--surface); }
.mb-zoom { position: absolute; top: 14px; left: 14px; z-index: 4; box-shadow: 0 2px 6px rgba(0, 0, 0, .15); }
.mb-zoom[hidden] { display: none; }
.mb-zoom[aria-pressed="true"] { background: var(--yellow); }
.mb-sub-bar { display: flex; align-items: center; gap: 6px 14px; flex-wrap: wrap; padding: 8px 12px; border-bottom: 1px solid var(--rule-soft); background: var(--tone); font: 500 13px/1.3 var(--font-body); color: var(--body); }
.mb-lg { display: inline-flex; align-items: center; gap: 6px; }
.mb-lg i { background: var(--c); width: 14px; height: 14px; display: inline-block; outline: 1px solid var(--rule-soft); }
.mb-lg-note { color: var(--soft); margin-left: auto; }
.mb-trams { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
.mb-tramrow { display: flex; gap: 6px; }
.mb-tl { font-weight: 600; color: var(--ink); white-space: nowrap; margin-right: 4px; }
.mb-tram { min-width: 40px; min-height: 36px; padding: 5px 8px; border: 1.5px solid var(--link); background: var(--surface); color: var(--link-hover); font: 700 13px/1 var(--font-body); cursor: pointer; }
.mb-tram[aria-pressed="true"] { background: var(--link); color: #fff; }
.mb-stage { position: relative; overflow: hidden; background: var(--mb-land); aspect-ratio: 1264 / 1300; max-width: 640px; margin-inline: auto; }
.mb.is-live .mb-stage { aspect-ratio: auto; max-width: none; height: clamp(440px, 68svh, 640px); touch-action: pan-y; }
.mb-svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.mb-bg { fill: var(--mb-land); }
.mb-sea { fill: var(--water); }
.mb-g { fill: var(--color-fill); stroke: #fff; stroke-width: 1; vector-effect: non-scaling-stroke; }
.mb-sub { fill: var(--mb-sub); stroke: var(--ink); stroke-width: 1.3; vector-effect: non-scaling-stroke; transition: fill .2s; cursor: pointer; }
.mb-sub.is-on { fill: var(--yellow); stroke-width: 2.6; }
.mb-route { fill: none; stroke: var(--link); stroke-width: 3; stroke-linejoin: round; vector-effect: non-scaling-stroke; pointer-events: none; }
.mb-route[hidden] { display: none; }
.mb.dim .mb-sub:not(.is-lit) { fill: #F5EDCF; stroke: #C9BE97; }
.mb.dim .mb-sub.is-lit { fill: var(--yellow); }
.mb.is-all .mb-g { stroke: none; fill: var(--mb-land); }
.mb-layer { position: absolute; inset: 0; pointer-events: none; }
.mb-pin { position: absolute; width: var(--d, 40px); height: var(--d, 40px); transform: translate(-50%, -50%); pointer-events: auto; display: block; color: var(--ink); text-decoration: none; }
.mb-pin:hover, .mb-pin.is-on, .mb-pin:focus-visible { z-index: 3; outline: none; }
.mb-ph { font-size: calc(var(--d, 40px) * .42); position: relative; width: var(--d, 40px); height: var(--d, 40px); border-radius: 50%; background: var(--yellow); box-shadow: 0 0 0 2.5px #fff, 0 0 0 4px var(--ink), 0 3px 8px rgba(23, 23, 15, .35); display: grid; place-items: center; font: 700 14px/1 var(--font-heading); transition: transform .15s; }
.mb-ph img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; display: block; }
.mb-pin:hover .mb-ph, .mb-pin:focus-visible .mb-ph, .mb-pin.is-on .mb-ph { transform: scale(1.18); }
.mb-pin:focus-visible .mb-ph { box-shadow: 0 0 0 2.5px #fff, 0 0 0 5px var(--ink), 0 0 0 7px var(--yellow); }
.mb-pin.is-on .mb-ph { box-shadow: 0 0 0 3px var(--yellow), 0 0 0 5.5px var(--ink), 0 4px 10px rgba(23, 23, 15, .4); }
.mb-nm { position: absolute; left: 0; top: 100%; visibility: hidden; font: 700 12px/1.1 var(--font-body); color: var(--ink); white-space: nowrap; text-shadow: 0 0 3px #fff, 0 0 3px #fff, 0 0 2px #fff, 0 0 1px #fff; letter-spacing: -.01em; }
.mb.is-live .mb-nm { visibility: visible; }
.mb.is-live .mb-nm.off { visibility: hidden; }
.mb-pin:hover .mb-nm, .mb-pin:focus-visible .mb-nm, .mb-pin.is-on .mb-nm { visibility: visible !important; z-index: 3; }
.mb-pin:focus-visible .mb-nm { outline: 2px solid var(--ink); outline-offset: 2px; background: #fff; }
.mb.dim .mb-pin:not(.is-lit) { opacity: .38; }
.mb-min { position: absolute; top: -6px; right: -14px; background: var(--ink); color: #fff; font: 700 11.5px/1 var(--font-body); padding: 3px 4px; white-space: nowrap; }
.mb-ord { position: absolute; top: -7px; left: -9px; background: var(--link); color: #fff; font: 700 11.5px/1 var(--font-body); width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; box-shadow: 0 0 0 1.5px #fff; }
.mb-grey { position: absolute; transform: translate(-50%, -50%); font: italic 500 11.5px/1 var(--font-body); color: #77746A; white-space: nowrap; letter-spacing: .01em; pointer-events: none; }
.mb-todo { position: absolute; transform: translate(calc(var(--q, 22px) / -2), -100%); pointer-events: auto; border: 0; background: none; padding: 0; cursor: pointer; display: flex; align-items: center; gap: 4px; }
.mb-todo[hidden] { display: none; }
.mb-todo b { width: var(--q, 22px); height: var(--q, 22px); background: var(--mb-red); color: #fff; display: grid; place-items: center; font: 700 12px/1 var(--font-body); box-shadow: 0 0 0 2px #fff, 0 2px 5px rgba(0, 0, 0, .3); }
.mb-todo span { font: 600 11.5px/1.1 var(--font-body); color: #5A1910; background: rgba(255, 253, 247, .92); padding: 2px 4px; white-space: nowrap; }
.mb-todo:hover, .mb-todo:focus-visible { z-index: 3; }
.mb-todo:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.mb-edge { position: absolute; z-index: 2; border: 1.5px solid var(--ink); background: var(--surface); color: var(--ink); font: 600 13px/1.2 var(--font-body); padding: 6px 10px; text-decoration: none; box-shadow: 0 2px 6px rgba(0, 0, 0, .15); }
.mb-edge:hover { background: var(--yellow); }
.mb-edge--west { margin-left: 14px; transform: translateY(-50%); }
.mb-edge--north { margin-top: 14px; transform: translateX(-50%); }
.mb-edge--south { margin-bottom: 14px; transform: translateX(-50%); }
.mb-cluster { position: absolute; transform: translate(-50%, -50%); pointer-events: auto; border: 2px solid var(--ink); background: var(--yellow); color: var(--ink); font: 700 13px/1.2 var(--font-body); padding: 9px 12px; cursor: pointer; box-shadow: 0 3px 10px rgba(0, 0, 0, .25); text-align: left; }
.mb-cluster span { display: block; font-weight: 500; font-size: 12px; }
.mb-card { position: absolute; top: 14px; right: 14px; width: 320px; max-height: calc(100% - 28px); overflow: auto; background: var(--surface); border: 1.5px solid var(--ink); box-shadow: 0 8px 24px rgba(23, 23, 15, .25); z-index: 5; }
.mb-card[hidden] { display: none; }
.mb-card:focus { outline: none; }
.mb-cimg { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: var(--fill); }
.mb-cposter { display: grid; place-items: center; aspect-ratio: 16 / 9; background: var(--yellow); font: 600 28px/1 var(--font-heading); }
.mb-cb { padding: 12px 14px 14px; }
.mb-ca { margin: 0; font: 700 11.5px/1.2 var(--font-body); letter-spacing: .08em; text-transform: uppercase; color: var(--soft); }
.mb-cn { padding-right: 40px; margin: 2px 0 8px; font: 600 26px/1.05 var(--font-heading); color: var(--ink); }
.mb-cf { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 7px; }
.mb-cf li { display: block; font: 14px/1.35 var(--font-body); color: var(--body); }
.mb-cf li b { display: block; color: var(--ink); font: 700 11.5px/1.3 var(--font-body); letter-spacing: .06em; text-transform: uppercase; }
.mb-go { display: flex; justify-content: space-between; align-items: center; padding: 11px 14px; background: var(--link); color: #fff; font: 600 15px/1 var(--font-body); text-decoration: none; }
.mb-go:hover, .mb-go:focus-visible, .mb-go:active { background: var(--link-hover); color: #fff; } /* a:hover alone would turn the text the bar's own green */
.mb-x { position: absolute; top: 8px; right: 8px; width: 36px; height: 36px; border: 0; background: rgba(23, 23, 15, .75); color: #fff; font: 20px/1 var(--font-body); cursor: pointer; }
.mb-finder, .mb-routeline { margin: 0; border-top: 1px solid var(--rule-soft); background: var(--tone); padding: 9px 12px; font: 14px/1.4 var(--font-body); color: var(--body); }
.mb-finder[hidden], .mb-routeline[hidden] { display: none; }
.mb-finder button { border: 0; background: none; color: var(--link); font: 600 14px var(--font-body); text-decoration: underline; cursor: pointer; padding: 6px 0; margin-left: 6px; }
.mb-routeline b, .mb-finder b { color: var(--ink); }
.mb-areas { list-style: none; margin: 0; padding: 10px 12px 2px; border-top: 1px solid var(--rule-soft); display: flex; flex-wrap: wrap; gap: 4px 18px; font: 500 15px/1.5 var(--font-body); }
.mb-areas a { display: inline-block; padding: 6px 0; }
.mb-cap { margin: 0; padding: 7px 12px; border-top: 1px solid var(--rule-soft); }
@media (max-width: 48em) {
  .mb-bar { flex-direction: column; align-items: stretch; padding: 8px; }
  .mb-modes { gap: 5px; }
  .mb-mode { padding: 7px 10px; font-size: 13px; }
  .mb.is-live .mb-edge { display: none; }
  .mb-zoom { top: 10px; left: 10px; padding: 7px 11px; font-size: 13px; }
  .mb.is-live .mb-stage { height: min(520px, 66svh); }
  .mb-card { top: auto; bottom: 0; left: 0; right: 0; width: auto; max-height: none; overflow: visible; border-width: 1.5px 0 0; display: grid; grid-template-columns: 118px 1fr; }
  .mb-card .mb-cimg, .mb-card .mb-cposter { aspect-ratio: auto; height: 100%; min-height: 140px; }
  .mb-x { width: 36px; height: 36px; top: 4px; right: 4px; }
  .mb-finder, .mb-routeline { font-size: 13px; }
  .mb-cb { padding: 10px 12px; }
  .mb-cn { font-size: 22px; margin-bottom: 6px; }
  .mb-cf { gap: 4px; margin-bottom: 8px; }
  .mb-cf li { font-size: 13px; }
  .mb-go { grid-column: 1 / -1; }
  .mb-lg-note { display: none; }
}
@media (prefers-reduced-motion: reduce) { .mb-ph, .mb-sub { transition: none; } }
.mb:not(.is-live) .mb-out { display: none; }
.mb.is-all .mb-edge { display: none; }
.mb-todo:hover span, .mb-todo:focus-visible span { display: block !important; position: relative; z-index: 3; }
.mb-ca a { color: inherit; text-decoration: underline; }
.mb-ca a:hover { color: var(--link); }

/* ---------- areas 5: the all-areas page (templates/areas.php, templates/_areas_hero.php, js/site.js areasMode; mock docs/design-reference/mock-23nov/areas2-mock.html) ----------
   Top: eight photo cards (each with its area colour) over the title and intro, and the homepage's map (.mb, data-mode="areas") beside them. Below: "Area by area", a band per area.
   Each area's colour comes in as --c (and --on, the text colour that reads on it) from data/editorial/areas.json. JS adds .has-on to .mb--areas and .is-on to the lit card, shape and edge button. */
.hero.hero--r9.hero--areas { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); grid-template-areas: "fig side" "text side"; column-gap: 16px; align-items: start; }
.hero--r9.hero--areas > .hero-art { grid-area: fig; margin: 0; }
.hero--r9.hero--areas > .ah-side { grid-area: side; align-self: stretch; display: flex; min-width: 0; }
.hero--r9.hero--areas > .hero-text { grid-area: text; grid-template-columns: 1fr; grid-template-areas: "eb" "h1" "lead"; padding-top: 18px; }
.hero--r9.hero--areas > .hero-text h1 { font-size: clamp(34px, 3.4vw, 52px); }
.hero--r9.hero--areas > .hero-text .lead { margin-top: 8px; max-width: 40em; }
.ah-wrap { padding: 12px; background: var(--surface); }
.ah-cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(var(--ah-cols, 4), minmax(0, 1fr)); gap: 10px; }
.ah-card a { position: relative; display: flex; flex-direction: column; justify-content: flex-end; height: 100%; min-height: clamp(100px, 13.5svh, 128px); overflow: hidden; color: #fff; text-decoration: none; background: var(--fill); }
.ah-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.ah-img img.ah-f { height: 160%; object-position: var(--fx) 50%; top: clamp(-60%, calc(22% - 160% * var(--fy)), 0%); } /* card_photo.focus: the photo runs taller than the card and slides up so its subject (fx, fy = its place in the photo) sits in the clear band above the name */
.ah-img::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 5px; background: var(--c); z-index: 3; } /* the area's colour along the bottom */
.ah-card a::after { content: ""; position: absolute; inset: auto 0 0 0; height: 80%; background: linear-gradient(to top, rgba(23, 23, 15, .88), rgba(23, 23, 15, 0)); }
.ah-over { position: relative; margin: 0 10px 11px 12px; z-index: 1; } /* in the flow: a wrapped name or tag line makes the card (and its row) taller */
.ah-over::before { content: ""; position: absolute; z-index: -1; inset: -30px -12px -11px -12px; background: linear-gradient(to bottom, rgba(23, 23, 15, 0), rgba(23, 23, 15, .86) 30px); } /* a darker band behind the count and name: white reads on any photo and on the pale street-map poster */
.ah-count { display: flex; align-items: center; gap: 6px; font: 700 11.5px/1.2 var(--font-body); letter-spacing: .08em; text-transform: uppercase; color: #fff; }
.ah-count::before { content: ""; flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 1.5px #fff; }
.ah-over strong { display: block; margin: 2px 0 3px; font: 600 20px/1.08 var(--font-heading); text-wrap: balance; }
.ah-tags { display: block; font: 500 12px/1.3 var(--font-body); color: rgba(255, 253, 247, .92); }
.ah-card a:hover strong { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: .15em; }
.ah-card a:hover .ah-img img, .ah-card a:focus-visible .ah-img img, .ah-card.is-on .ah-img img { transform: scale(1.05); }
.ah-card a::before { content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none; } /* the lit and focus rings sit on top of the photo */
.ah-card.is-on a::before { box-shadow: inset 0 0 0 4px var(--c); }
.ah-card a:focus { outline: none; }
.ah-card a:focus-visible { outline: 3px solid transparent; outline-offset: -3px; } /* shows in forced colours */
.ah-card a:focus-visible::before { box-shadow: inset 0 0 0 3px var(--ink), inset 0 0 0 7px var(--yellow); } /* inside the card: never clipped by the swipe row, seen on paper and on a photo */
.ah-hero .slot-cap { height: auto; min-height: 30px; padding-block: 6px; font-size: 12px; white-space: normal; line-height: 1.35; } /* as tall as its text */
.ah-hero .slot-cap .cap-text { display: block; -webkit-line-clamp: none; overflow: visible; } /* never cut: the checked date is the last words */
.ah-list[hidden] { display: none; }
.ah-lh { margin: 0 0 3px; font: 15px/1.35 var(--font-body); color: var(--ink); }
.ah-ls { margin: 0; font: 13.5px/1.45 var(--font-body); color: var(--body); }
.ah-ls a { color: var(--ink); }
.ah-ls a:hover { color: var(--link-hover); }
/* the map: homepage 4's component in areas mode */
.mb--areas { flex: 1; min-width: 0; display: flex; flex-direction: column; margin: 0; min-height: 430px; }
.mb--areas .mb-stage { width: 100%; } /* without JS: the opening view at its own ratio */
.mb--areas.is-live .mb-stage { flex: 1; aspect-ratio: auto; height: auto; min-height: 340px; max-width: none; }
.mb--areas .mb-sub { fill: var(--c); fill-opacity: .55; stroke: #fff; stroke-width: 1.4; transition: fill-opacity .18s, fill .18s; }
.mb--areas .mb-sub:hover, .mb--areas a:focus-visible .mb-sub { fill-opacity: .9; }
.mb--areas.has-on .mb-sub { fill: #D9D3C2; fill-opacity: .6; stroke-width: 1.4; }
.mb--areas.has-on .mb-sub.is-on { fill: var(--c); fill-opacity: .88; stroke-width: 2; }
.mb--areas svg a:focus { outline: none; }
.mb--areas svg a:focus-visible .mb-sub { stroke: var(--ink); stroke-width: 3; }
.mb--areas .mb-pin[hidden] { display: none; }
.mb--areas .mb-ph { background: var(--c); box-shadow: 0 0 0 2.5px #fff, 0 0 0 4.5px var(--c), 0 3px 8px rgba(23, 23, 15, .35); }
.mb--areas .mb-pin:focus-visible .mb-ph { box-shadow: 0 0 0 2.5px #fff, 0 0 0 5px var(--ink), 0 0 0 7px #fff; }
.mb--areas .mb-nm small { display: block; font-weight: 500; font-size: 11.5px; color: var(--body); letter-spacing: 0; }
.mb--areas.is-moving .mb-nm { visibility: hidden !important; } /* names are set down when the map stops */
.mb-alab { position: absolute; transform: translate(-50%, -50%); pointer-events: auto; padding: 5px 8px; background: var(--c); color: var(--on); font: 700 13px/1.1 var(--font-body); white-space: nowrap; text-decoration: none; box-shadow: 0 2px 6px rgba(0, 0, 0, .25); }
.mb-alab small { margin-left: 5px; font-weight: 500; }
.mb-alab:hover { box-shadow: 0 0 0 2px var(--ink), 0 2px 6px rgba(0, 0, 0, .25); }
.mb-alab:focus { outline: none; }
.mb-alab:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.mb--areas .mb-edge { display: flex; align-items: center; gap: 6px; line-height: 1; white-space: nowrap; transition: background-color .16s, color .16s, opacity .16s; }
.mb--areas.has-on .mb-edge:not(:hover):not(:focus-visible) { opacity: 0; pointer-events: none; } /* hidden while an area is lit, so they cover no pin (opacity, so they stay in the tab order) */
.mb--areas .mb-edge i { flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--c); }
.mb--areas .mb-edge:hover, .mb--areas .mb-edge:focus-visible, .mb--areas .mb-edge.is-on { background: var(--c); border-color: var(--c); color: var(--on); }
.mb--areas .mb-edge:hover i, .mb--areas .mb-edge:focus-visible i, .mb--areas .mb-edge.is-on i { box-shadow: 0 0 0 1.5px var(--on); }
.mb--areas .mb-edge:focus { outline: none; }
.mb--areas .mb-edge:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.mb-edge--east { margin-right: 14px; transform: translateY(-50%); }
.mb-lists { min-height: 74px; padding: 10px 14px 12px; border-top: 1px solid var(--rule-soft); }
/* Area by area */
.ab { margin: 8px 0 0; }
.ab-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 16px; }
.ab-head h2 { margin: 0; font: 600 clamp(30px, 3vw, 40px)/1.05 var(--font-heading); color: var(--ink); }
.ab-head p { margin: 0; max-width: 30em; }
.ab-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.ab-band { display: grid; grid-template-columns: minmax(260px, .9fr) minmax(0, 2.1fr); border: 1px solid var(--rule); background: var(--surface); border-top: 6px solid var(--c); min-height: 250px; }
.ab-photo { display: block; position: relative; overflow: hidden; }
.ab-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.ab-band:hover .ab-photo img { transform: scale(1.03); }
.ab-body { padding: 16px 20px; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.ab-eb { margin: 0; display: flex; align-items: center; gap: 7px; font: 700 11.5px/1.2 var(--font-body); letter-spacing: .08em; text-transform: uppercase; color: var(--soft); }
.ab-eb i { flex: none; width: 11px; height: 11px; border-radius: 50%; background: var(--c); }
.ab-h { margin: 0; font: 600 30px/1.05 var(--font-heading); }
.ab-h a { color: var(--ink); text-decoration: none; }
.ab-h a:hover { text-decoration: underline; }
.ab-line { margin: 0; font: 15.5px/1.5 var(--font-body); color: var(--body); max-width: 52em; }
.ab-tiles { list-style: none; margin: 4px -20px 0 0; padding: 2px 20px 6px 0; display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: thin; }
.ab-tiles li { flex: 0 0 172px; scroll-snap-align: start; }
.ab-tile { display: block; text-decoration: none; color: var(--ink); border: 1px solid var(--rule-soft); background: var(--surface); }
.ab-ti { display: block; aspect-ratio: 4 / 3; background: var(--fill); border-bottom: 3px solid var(--c); }
.ab-ti img { display: block; width: 100%; height: 100%; object-fit: cover; }
.ab-tn { display: block; padding: 7px 9px 0; font: 600 15px/1.2 var(--font-heading); }
.ab-tm { display: block; padding: 2px 9px 8px; font: 500 12.5px/1.3 var(--font-body); color: var(--soft); }
.ab-tile:hover .ab-tn { text-decoration: underline; }
.ab-tile:hover { border-color: var(--c); }
.ab-tile:focus-visible, .ab-more:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.ab-more { align-self: flex-start; margin-top: auto; font: 600 14.5px var(--font-body); color: var(--link); }
@media (min-width: 110em) { .ah-over strong { font-size: 21px; } }
/* up to 64em: the cards one sideways row (a phone shows about three quarters of a card; the next one peeks), then the title and intro, then the map */
@media (max-width: 64em) {
  .hero.hero--r9.hero--areas { grid-template-columns: 1fr; grid-template-areas: "fig" "text" "side"; }
  .ah-wrap { padding: 10px; }
  .ah-cards { display: flex; gap: 10px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; margin-right: -10px; padding-right: 10px; scrollbar-width: thin; }
  .ah-card { flex: 0 0 clamp(220px, 38%, 300px); scroll-snap-align: start; }
  .ah-card a { min-height: 150px; }
  .ah-over strong { font-size: 22px; }
  .mb--areas { min-height: 0; }
  .mb--areas.is-live .mb-stage { flex: none; height: min(520px, 66svh); min-height: 0; }
  .mb--areas.is-live .mb-edge { display: flex; }
  .ab-band { grid-template-columns: 1fr; }
  .ab-photo { aspect-ratio: 16 / 7; }
  .ab-head { flex-direction: column; align-items: flex-start; gap: 6px; }
  .ab-tiles li { flex-basis: 150px; }
}
@media (max-width: 48em) {
  .ah-cards { scrollbar-width: none; }
  .ah-card { flex-basis: 74%; }
  .ah-card a { height: 108px; }
  .ah-lh { font-size: 13.5px; }
  .ah-ls { font-size: 13px; line-height: 1.4; }
}
@media (prefers-reduced-motion: reduce) { .ah-img img, .mb--areas .mb-sub, .mb--areas .mb-edge, .ab-photo img { transition: none; } .ah-card a:hover .ah-img img, .ah-card a:focus-visible .ah-img img, .ah-card.is-on .ah-img img, .ab-band:hover .ab-photo img { transform: none; } .ah-cards { scroll-behavior: auto; } }
