/* Headings use Bricolage Grotesque (SIL Open Font License, see /fonts/OFL.txt), served from this
   site so no visitor's browser calls anyone else. Body text uses the device's own font. */
@font-face {
    font-family: "Bricolage Grotesque";
    src: url("../fonts/bricolage-grotesque-latin.woff2") format("woff2");
    font-weight: 200 800;
    font-display: swap;
}

:root {
    --bg: #f5f3ec;
    --surface: #ffffff;
    --text: #121c17;
    --muted: #5b6760;
    --line: #e0e2d9;
    --accent: #0b6b4f;
    --mark-quiet: #aab5ae; /* the other areas on a chart: present, not competing */
    /* The dark band across the top of every page, and the bright colour used on it. */
    --band: #0c2f24;
    --band-text: #f1f6f2;
    --band-muted: #a9c2b6;
    --pop: #c9f26c;
    --pop-text: #10201a;
    /* Buttons and chosen options on the page itself. */
    --solid: #0c2f24;
    --solid-text: #f1f6f2;
    /* Chart colours, one per measure, checked for colour-blind separation and contrast against --surface. */
    --chart-commute: #0a8a5f;
    --chart-outage: #c2570c;
    --chart-rent: #3b6fd4;
    --on-commute: #ffffff; /* a number written on a commute-coloured mark */
    --shadow: 0 1px 2px rgb(16 32 26 / 6%), 0 8px 24px rgb(16 32 26 / 8%);
    --heading: "Bricolage Grotesque", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
    :root {
        --bg: #101412;
        --surface: #1c221f;
        --text: #e8ece9;
        --muted: #9aa69f;
        --line: #2e3732;
        --accent: #5fd0a8;
        --mark-quiet: #56635c;
        --band: #0e2a20;
        --solid: #c9f26c;
        --solid-text: #10201a;
        --chart-commute: #27a577;
        --chart-outage: #cf7f1c;
        --chart-rent: #5b8def;
        --on-commute: #0b1f17;
        --shadow: 0 1px 2px rgb(0 0 0 / 30%), 0 8px 24px rgb(0 0 0 / 35%);
    }
}

/* Each measure has one colour everywhere: bars, small squares beside labels, tile edges. */
.commute { --measure: var(--chart-commute); }
.outage, .bars.outages { --measure: var(--chart-outage); }
.rent, .bars.rents { --measure: var(--chart-rent); }

* { box-sizing: border-box; }

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font: 1rem/1.55 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

a { color: var(--accent); text-underline-offset: 0.15em; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

.wrap { max-width: 68rem; margin: 0 auto; padding: 0 1.25rem; }
main.wrap { padding-top: 2rem; padding-bottom: 1rem; }

h1, h2, h3, .brand { font-family: var(--heading); letter-spacing: -0.01em; }
h1 { font-size: 2rem; line-height: 1.1; margin: 0 0 0.75rem; }
h2 { font-size: 1.5rem; line-height: 1.2; margin: 0 0 0.35rem; }
h3 { font-size: 1.2rem; line-height: 1.2; margin: 0; }

.num { font-variant-numeric: tabular-nums; }
.note { color: var(--muted); font-size: 0.875rem; margin: 0.35rem 0 0.75rem; max-width: 60rem; }
.notice { color: var(--muted); }
.pending { color: var(--muted); font-style: italic; font-weight: 400; }

/* Header: part of the dark band. */
.site-header { background: var(--band); color: var(--band-text); }
.site-header .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.5rem 1.5rem; padding-top: 0.9rem; padding-bottom: 0.9rem; }
.brand-row { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 1.25rem; }
.brand { display: inline-flex; align-items: center; gap: 0.55rem; font-size: 1.3rem; font-weight: 700; text-decoration: none; color: var(--band-text); }
.brand-mark rect { fill: rgb(255 255 255 / 28%); }
.brand-mark .on { fill: var(--pop); }
/* City switch: which city the menu beside it belongs to. */
.city-switch { display: flex; padding: 3px; border: 1px solid rgb(255 255 255 / 22%); border-radius: 999px; }
.city-switch a { padding: 0.15rem 0.75rem; border-radius: 999px; color: var(--band-muted); font-size: 0.85rem; font-weight: 500; text-decoration: none; }
.city-switch a:hover { color: var(--band-text); }
.city-switch a[aria-current] { background: rgb(255 255 255 / 16%); color: var(--band-text); font-weight: 600; }
.site-nav { display: flex; flex-wrap: wrap; gap: 0.25rem; }
.site-nav a { padding: 0.35rem 0.8rem; border-radius: 999px; color: var(--band-text); text-decoration: none; font-size: 0.95rem; font-weight: 500; }
.site-nav a:hover { background: rgb(255 255 255 / 10%); }
.site-nav a[aria-current] { background: var(--pop); color: var(--pop-text); font-weight: 600; }
.site-header :focus-visible, .hero :focus-visible, .site-footer :focus-visible, .cta :focus-visible { outline-color: var(--pop); }

/* Hero: the dark band under the header, with faint grid lines and a glow in the page's colour. */
.hero {
    --chart-commute: #27a577;
    --chart-outage: #cf7f1c;
    --chart-rent: #5b8def;
    position: relative;
    overflow: hidden;
    background: var(--band);
    color: var(--band-text);
    padding: 2.75rem 0 5.5rem;
}
.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(to right, rgb(255 255 255 / 6%) 1px, transparent 1px),
        linear-gradient(to bottom, rgb(255 255 255 / 6%) 1px, transparent 1px);
    background-size: 3.5rem 3.5rem;
    mask-image: linear-gradient(to bottom left, #000 10%, transparent 75%);
}
.hero::after {
    content: "";
    position: absolute;
    right: -10rem;
    top: -14rem;
    width: 36rem;
    height: 36rem;
    border-radius: 50%;
    background: radial-gradient(closest-side, color-mix(in srgb, var(--measure, var(--pop)) 30%, transparent), transparent);
}
.hero .wrap { position: relative; z-index: 1; }
.hero h1 { font-size: clamp(2.4rem, 6vw, 4.25rem); font-weight: 700; line-height: 1; letter-spacing: -0.03em; max-width: 16em; margin: 0 0 1rem; text-wrap: balance; }
.hero-lede { font-size: 1.15rem; color: var(--band-muted); max-width: 40rem; margin: 0; }
.hero a { color: var(--band-text); }
.hero-area, .hero-compare { padding-bottom: 2.75rem; }
.versus { color: var(--pop); font-weight: 400; }

.eyebrow { display: flex; align-items: center; margin: 0 0 0.9rem; font-size: 0.8rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--pop); }
.eyebrow a { color: inherit; }
.swatch { display: inline-block; flex: none; width: 0.65rem; height: 0.65rem; margin-right: 0.5rem; border-radius: 3px; background: var(--measure); }

.hub-picker { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1rem; margin-top: 1.75rem; }
.hub-picker-label { font-family: var(--heading); font-size: 1.2rem; font-weight: 600; }
.pills, .sorts { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.pills a {
    display: inline-flex;
    align-items: baseline;
    gap: 0.4rem;
    padding: 0.5rem 1rem;
    border: 1px solid rgb(255 255 255 / 22%);
    border-radius: 999px;
    background: rgb(255 255 255 / 8%);
    font-weight: 600;
    text-decoration: none;
}
.pills a small { font-size: 0.75rem; font-weight: 400; opacity: 0.75; }
.pills a:hover { background: rgb(255 255 255 / 16%); }
.pills a[aria-current] { background: var(--pop); border-color: var(--pop); color: var(--pop-text); }

.sorts a { padding: 0.3rem 0.8rem; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--text); font-size: 0.875rem; text-decoration: none; }
.sorts a:hover { border-color: var(--muted); }
.sorts a[aria-current] { background: var(--solid); border-color: var(--solid); color: var(--solid-text); font-weight: 600; }

/* Forms. */
select, button, .button {
    font: inherit;
    padding: 0.55rem 0.9rem;
    border: 1px solid var(--line);
    border-radius: 0.6rem;
    background: var(--surface);
    color: var(--text);
}
button, .button { display: inline-block; background: var(--solid); border-color: var(--solid); color: var(--solid-text); font-weight: 600; text-decoration: none; cursor: pointer; }
.hero-form { display: flex; flex-wrap: wrap; align-items: end; gap: 0.75rem 1rem; margin-top: 1.5rem; }
.hero-form label { display: grid; gap: 0.25rem; font-size: 0.85rem; color: var(--band-muted); }
.hero-form > label[for] { align-self: center; font-size: 1rem; color: var(--band-text); }
.hero button, .cta .button { background: var(--pop); border-color: var(--pop); color: var(--pop-text); }

/* Tiles: the headline numbers, overlapping the bottom of the hero. */
.lifted { position: relative; z-index: 2; margin-top: -5rem; }
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: 1rem; margin-bottom: 2.5rem; }
.tile {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    padding: 1.1rem 1.25rem 1.2rem;
    border: 1px solid var(--line);
    border-top: 5px solid var(--measure);
    border-radius: 1rem;
    background: var(--surface);
    box-shadow: var(--shadow);
    color: var(--text);
    text-decoration: none;
}
.tile-label { font-size: 0.85rem; color: var(--muted); }
.tile-figure { font-family: var(--heading); font-weight: 700; line-height: 1.1; }
.tile-figure .num { font-size: 2.75rem; letter-spacing: -0.02em; }
.tile-figure .unit { font-size: 1.05rem; font-weight: 500; color: var(--muted); }
.tile-name { font-weight: 600; }
.tile-empty { padding: 0.9rem 0; color: var(--muted); font-style: italic; }
.tile-more { margin-top: 0.6rem; font-size: 0.875rem; color: var(--accent); }
.tile-more::after { content: " →"; }
a.tile { transition: transform 0.15s ease, border-color 0.15s ease; }
a.tile:hover { transform: translateY(-3px); border-color: var(--measure); }
.empty { padding: 1.5rem; border: 1px solid var(--line); border-radius: 1rem; background: var(--surface); box-shadow: var(--shadow); color: var(--muted); font-style: italic; }

/* City cards on the front page. */
.cities { display: grid; grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr)); gap: 1rem; list-style: none; margin-bottom: 2rem; padding: 0; }
.city-card { position: relative; display: flex; flex-direction: column; padding: 1.4rem 1.5rem 1.5rem; border: 1px solid var(--line); border-radius: 1.25rem; background: var(--surface); box-shadow: var(--shadow); transition: transform 0.15s ease, border-color 0.15s ease; }
.city-card:hover, .city-card:focus-within { transform: translateY(-3px); border-color: var(--accent); }
.city-card:focus-within { outline: 3px solid var(--accent); outline-offset: 2px; }
.city-country { font-size: 0.8rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.city-card h2 { font-size: 2.75rem; letter-spacing: -0.03em; margin: 0.1rem 0 0.2rem; }
.city-card h2 a { color: var(--text); text-decoration: none; }
.city-card h2 a::after { content: ""; position: absolute; inset: 0; border-radius: 1.25rem; } /* the whole card is the link */
.city-card h2 a:focus-visible { outline: none; }
.city-size { margin: 0 0 1rem; color: var(--muted); }
.city-measures { display: grid; gap: 0.3rem; list-style: none; margin: 0 0 0.5rem; padding: 0; font-size: 0.95rem; }
.city-measures li { display: flex; align-items: center; }
.city-measures li.missing { color: var(--muted); font-style: italic; }
.city-measures li.missing .swatch { background: transparent; box-shadow: inset 0 0 0 1.5px var(--mark-quiet); }

/* Area cards on a city's home page. */
.section-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.75rem 1.5rem; margin-bottom: 1rem; }
.section-head h2 { margin: 0; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(17.5rem, 1fr)); gap: 1rem; list-style: none; margin: 0 0 1rem; padding: 0; }
.card {
    position: relative;
    padding: 1.1rem 1.2rem 1.2rem;
    border: 1px solid var(--line);
    border-radius: 1rem;
    background: var(--surface);
    transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}
.card:hover, .card:focus-within { transform: translateY(-3px); border-color: var(--accent); box-shadow: var(--shadow); }
.card-top { display: flex; align-items: center; gap: 0.6rem; margin-bottom: 0.9rem; }
.card h3 { flex: 1; min-width: 0; }
.card h3 a { color: var(--text); text-decoration: none; }
.card h3 a::after { content: ""; position: absolute; inset: 0; border-radius: 1rem; } /* the whole card is the link */
.card h3 a:focus-visible { outline: none; }
.card:focus-within { outline: 3px solid var(--accent); outline-offset: 2px; }
.rank { flex: none; display: grid; place-items: center; min-width: 1.9rem; height: 1.9rem; padding: 0 0.4rem; border-radius: 999px; background: var(--solid); color: var(--solid-text); font-family: var(--heading); font-size: 0.95rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.chip { display: inline-block; padding: 0.1rem 0.6rem; border: 1px solid var(--line); border-radius: 999px; font-size: 0.75rem; font-weight: 500; color: var(--muted); white-space: nowrap; }
.hero .chip { border-color: rgb(255 255 255 / 30%); color: var(--band-text); font-size: 0.85rem; padding: 0.2rem 0.8rem; }
.chips { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.chips .chip { font-size: 0.9rem; padding: 0.25rem 0.8rem; color: var(--text); }

.metrics { display: grid; gap: 0.65rem; margin: 0; }
.metric dt { display: flex; align-items: center; font-size: 0.78rem; color: var(--muted); }
.metric dt::before { content: ""; flex: none; width: 0.5rem; height: 0.5rem; margin-right: 0.4rem; border-radius: 2px; background: var(--measure); }
.metric dd { display: grid; grid-template-columns: 7.75rem 1fr; align-items: baseline; column-gap: 0.5rem; margin: 0; white-space: nowrap; }
.metric dd { font-size: 0.85rem; color: var(--muted); }
.metric .num { font-family: var(--heading); font-size: 1.25rem; font-weight: 700; color: var(--text); }
.metric dd.pending { display: block; font-size: 0.9rem; }
.meter { grid-column: 2; display: block; height: 8px; border-radius: 4px; background: var(--line); }
.meter::before { content: ""; display: block; height: 100%; width: calc(var(--v) * 100%); min-width: 4px; border-radius: 4px; background: var(--measure); }

.cta { position: relative; overflow: hidden; margin: 3rem 0 1rem; padding: 2rem; border-radius: 1.25rem; background: var(--band); color: var(--band-text); }
.cta h2 { font-size: 1.9rem; }
.cta p { margin: 0 0 1.1rem; color: var(--band-muted); max-width: 36rem; }

/* Charts. One colour per measure; everything else is quiet. Text on a chart always uses the
   text colours, never the bar colour. */
.chart { margin: 0 0 2.5rem; }
.pair { display: grid; grid-template-columns: repeat(auto-fit, minmax(19rem, 1fr)); gap: 0 1.5rem; }
.source { margin: 2rem 0 0; padding: 1.25rem 1.5rem; border: 1px solid var(--line); border-radius: 1rem; background: var(--surface); }
.source h2 { font-size: 1.15rem; }
.source p { margin: 0; color: var(--muted); }

/* Ranked horizontal bars: a name, a bar from the shared baseline, the value at its tip. */
.bars, .calendar { list-style: none; margin: 0.75rem 0; padding: 0.75rem 1.1rem; background: var(--surface); border: 1px solid var(--line); border-radius: 1rem; }
.bars li { display: grid; grid-template-columns: 11rem 1fr; align-items: center; gap: 0.75rem; padding: 0.4rem 0.4rem; border-radius: 0.4rem; }
.bars li:hover, .calendar li:not(.calendar-head):hover { background: color-mix(in srgb, var(--accent) 8%, transparent); }
.bars a, .calendar a, table a { font-weight: 600; text-decoration: none; }
.bars a:hover, .calendar a:hover, table a:hover { text-decoration: underline; }
.bar-cell { display: flex; align-items: center; gap: 0.5rem; border-left: 1px solid var(--line); min-width: 0; }
.bar { flex: none; height: 14px; width: calc((100% - 4.5rem) * var(--v)); min-width: 2px; background: var(--measure, var(--chart-commute)); border-radius: 0 4px 4px 0; }
.bars.rents .bar { width: calc((100% - 6rem) * var(--v)); }
.bar-value { font-size: 0.875rem; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }

/* Tables with a small bar in each cell: the same measure repeated across columns. */
.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: 1rem; background: var(--surface); }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 0.6rem 1rem; border-bottom: 1px solid var(--line); vertical-align: middle; }
tbody tr:last-child > * { border-bottom: 0; }
thead th { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); white-space: nowrap; }
thead th[aria-sort] { color: var(--text); }
thead th[aria-sort]::after { content: " ↑"; }
tbody th { font-weight: 600; white-space: nowrap; }
tbody th .swatch { vertical-align: 1px; }
td { min-width: 9rem; }
.cell-bar { display: flex; align-items: center; gap: 0.5rem; }
.cell-value { flex: none; min-width: 1.75rem; text-align: right; font-variant-numeric: tabular-nums; }
.cell-bar .bar { height: 10px; width: calc((100% - 3rem) * var(--v)); border-radius: 0 3px 3px 0; }
.versus-table .cell-value { min-width: 6.5rem; text-align: left; }
.versus-table .cell-bar .bar { width: calc((100% - 7.5rem) * var(--v)); }
.versus-table td { min-width: 13rem; }
.versus-table td.lower .cell-value { font-weight: 700; }
.versus-table td.difference { min-width: 11rem; color: var(--muted); font-size: 0.9rem; }

/* Outage calendar: one row per area, one square per day. */
.calendar li { display: grid; grid-template-columns: 11rem 1fr 4.5rem; align-items: center; gap: 0.75rem; padding: 0.35rem 0.4rem; border-radius: 0.4rem; }
.calendar .days { margin: 0; }
.calendar .days .day { height: 18px; }
.calendar-head { font-size: 0.72rem; color: var(--muted); }
.calendar-axis { display: flex; justify-content: space-between; }
.calendar-count { text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; }
.calendar-head .calendar-count { font-weight: 400; }

.agenda { list-style: none; margin: 0.75rem 0; padding: 0; display: grid; gap: 0.6rem; }
.agenda li { display: grid; grid-template-columns: 7rem 1fr; gap: 1rem; align-items: baseline; padding: 0.9rem 1.1rem; border: 1px solid var(--line); border-left: 5px solid var(--chart-outage); border-radius: 0.75rem; background: var(--surface); }
.agenda-date { font-family: var(--heading); font-size: 1.1rem; font-weight: 700; }
.agenda-what a { font-weight: 600; }

/* Area facts: one card per figure, grouped under headings. */
.group { margin: 2rem 0 0.75rem; }
.group:first-of-type { margin-top: 0; }
h3.group { font-size: 1rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); font-family: inherit; margin-top: 1.5rem; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(16.5rem, 1fr)); gap: 1rem; margin: 0; }
.fact { padding: 1rem 1.2rem 1.1rem; border: 1px solid var(--line); border-top: 5px solid var(--measure, var(--line)); border-radius: 1rem; background: var(--surface); min-width: 0; }
.fact.wide { grid-column: 1 / -1; }
.fact dt { color: var(--muted); font-size: 0.85rem; }
.fact dd { margin: 0.2rem 0 0; }
.fact dd.pending { padding: 0.6rem 0; }
.figure { font-family: var(--heading); font-weight: 700; line-height: 1.15; margin-right: 0.5rem; }
.figure .num { font-size: 2.4rem; letter-spacing: -0.02em; }
.figure .unit { font-size: 1rem; font-weight: 500; color: var(--muted); }
.badge { display: inline-block; padding: 0.15rem 0.65rem; border-radius: 999px; background: color-mix(in srgb, var(--measure) 16%, transparent); font-size: 0.8rem; font-weight: 600; vertical-align: 0.45rem; }
.detail { display: block; margin-top: 0.3rem; font-size: 0.8rem; color: var(--muted); }

.compare { display: grid; grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr)); gap: 2rem; margin-top: 1rem; }
.compare-name { display: flex; align-items: center; gap: 0.6rem; font-size: 1.75rem; }
.compare-name a { color: var(--text); text-decoration: none; }

.message { padding: 3rem 0; }
.message h1 { font-size: 2.5rem; }

/* Strip: every area as a tick on one axis, this area as the dot. */
.strip { display: block; position: relative; height: 28px; margin: 0.6rem 7px 0; border-bottom: 1px solid var(--line); }
.strip .tick, .strip .dot { position: absolute; left: calc(var(--v) * 100%); bottom: -1px; transform: translateX(-50%); }
.strip .tick { width: 12px; height: 20px; } /* wider than the mark, so it can be hit */
.strip .tick::before { content: ""; position: absolute; left: 5px; bottom: 0; width: 2px; height: 12px; background: var(--mark-quiet); border-radius: 1px; }
.strip .tick:hover::before, .strip .tick:focus-visible::before { background: var(--text); height: 16px; }
.strip .tick:focus-visible { outline: none; }
.strip .dot { width: 14px; height: 14px; bottom: -8px; border-radius: 50%; background: var(--chart-commute); box-shadow: 0 0 0 2px var(--surface); }
.strip [data-tip]:hover::after, .strip [data-tip]:focus-visible::after,
.days [data-tip]:hover::after, .days [data-tip]:focus-visible::after {
    content: attr(data-tip);
    position: absolute;
    bottom: calc(100% + 6px);
    left: 50%;
    transform: translateX(-50%);
    padding: 0.2rem 0.5rem;
    border-radius: 0.3rem;
    background: var(--text);
    color: var(--bg);
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
    z-index: 3;
    pointer-events: none;
}
.strip-axis { display: flex; justify-content: space-between; margin: 0.5rem 7px 0.35rem; font-size: 0.7rem; color: var(--muted); font-variant-numeric: tabular-nums; }

/* Day strip: one cell per day, the last 30 days then the week ahead. A filled cell is a day
   with a planned outage. */
.days { display: flex; gap: 2px; margin: 0.6rem 0 0; }
.days .day { position: relative; flex: 1 1 0; height: 16px; min-width: 3px; border-radius: 2px; background: var(--line); }
.days .day.ahead { background: transparent; box-shadow: inset 0 0 0 1px var(--line); }
.days .day.out { background: var(--chart-outage); box-shadow: none; }
.days .day.out.ahead { background: repeating-linear-gradient(135deg, var(--chart-outage) 0 3px, transparent 3px 5px); box-shadow: inset 0 0 0 1px var(--chart-outage); }
.days .day.today { margin-right: 4px; }
.days .day.today::before { content: ""; position: absolute; left: 0; right: 0; bottom: -5px; height: 2px; background: var(--text); border-radius: 1px; }
.days .day.out:hover, .days .day.out:focus-visible { outline: 2px solid var(--text); outline-offset: 1px; }
.days-axis { margin-left: 0; margin-right: 0; }

/* Map: two sketch panels. An area is a round mark with its minutes; a hub is a diamond. */
.map-key { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; list-style: none; margin: 0 0 1rem; padding: 0; font-size: 0.9rem; color: var(--muted); }
.map-key li { display: flex; align-items: center; gap: 0.4rem; }
.maps { display: grid; grid-template-columns: repeat(auto-fit, minmax(19rem, 1fr)); gap: 1rem; align-items: start; }
.maps.single { grid-template-columns: minmax(0, 36rem); }
.map { margin: 0; padding: 1rem; border: 1px solid var(--line); border-radius: 1rem; background: var(--surface); }
.map figcaption { font-family: var(--heading); font-size: 1.15rem; font-weight: 700; margin-bottom: 0.25rem; }
.map svg { display: block; width: 100%; height: auto; }
.map-dot { fill: var(--chart-commute); stroke: var(--surface); stroke-width: 2; }
.map-dot.quiet { fill: var(--mark-quiet); }
.map-minutes { fill: var(--on-commute); font-size: 13px; font-weight: 700; font-variant-numeric: tabular-nums; pointer-events: none; }
.map-label { fill: var(--text); font-size: 15px; font-weight: 600; paint-order: stroke; stroke: var(--surface); stroke-width: 4px; stroke-linejoin: round; }
.map-label.hub { fill: var(--muted); font-weight: 500; font-style: italic; }
.map-hub { fill: var(--muted); stroke: var(--surface); stroke-width: 2; }
.map-hub.chosen { fill: var(--text); }
.map-area { text-decoration: none; }
.map-area:hover .map-dot, .map-area:focus-visible .map-dot { stroke: var(--text); stroke-width: 3; }
.map-area:hover .map-label, .map-area:focus-visible .map-label { text-decoration: underline; }
.map-area:focus-visible { outline: none; }
.map-enlarged { fill: color-mix(in srgb, var(--chart-commute) 8%, transparent); stroke: var(--mark-quiet); stroke-width: 1.5; stroke-dasharray: 5 4; }
.map-enlarged-label { fill: var(--muted); font-size: 13px; }

.site-footer { margin-top: 4rem; padding: 2rem 0; background: var(--band); color: var(--band-muted); font-size: 0.9rem; }
.site-footer p { margin: 0 0 0.5rem; max-width: 52rem; }
.site-footer strong { color: var(--band-text); font-family: var(--heading); }
.site-footer a { color: var(--band-text); }

@media (max-width: 40rem) {
    .hero { padding-top: 2rem; }
    .bars li, .calendar li { grid-template-columns: 1fr; gap: 0.15rem; }
    .calendar li { grid-template-columns: 1fr auto; }
    .calendar li .days, .calendar-head .calendar-axis { grid-column: 1 / -1; grid-row: 2; }
    .calendar-head > span:first-child { display: none; }
    .agenda li { grid-template-columns: 1fr; gap: 0.2rem; }
    .cta { padding: 1.5rem; }
}

@media (prefers-reduced-motion: reduce) {
    .card, .city-card, a.tile { transition: none; }
    .card:hover, .card:focus-within, .city-card:hover, .city-card:focus-within, a.tile:hover { transform: none; }
}
