:root {
  color-scheme: light;
  --navy: #192f40;
  --ink: #182d3a;
  --muted: #4e626b;
  --link: #14555d;
  --teal: #12646a;
  --yellow: #f5c653;
  --wash: #eef3f3;
  --line: #c6d0d1;
  --page: #fcfdfb;
  --sans: "Inter", "Avenir Next", "Segoe UI", Helvetica, Arial, sans-serif;
  --display: "Archivo Narrow", "Avenir Next Condensed", "Arial Narrow", var(--sans);
  --reading: "Spectral", Georgia, serif;
  --mono: "IBM Plex Mono", "Courier New", monospace;
}
* { box-sizing: border-box; }
html { scroll-padding-top: 1rem; }
body { margin: 0; color: var(--ink); background: var(--page); font: 1rem/1.55 var(--sans); }
h1, h2, h3, p, ul, ol { margin: 0; }
h1, h2, h3 { font-family: var(--display); font-weight: 720; line-height: 1.12; text-wrap: balance; }
h1 { font-size: clamp(2.6rem,5.5vw,5.2rem); letter-spacing: -.055em; }
h2 { font-size: clamp(1.65rem,3vw,2.7rem); letter-spacing: -.035em; }
h3 { font-size: 1.3rem; letter-spacing: -.025em; }
a { color: var(--link); text-decoration-thickness: 1px; text-underline-offset: .19em; }
a:hover { color: #8c3c12; text-decoration-thickness: 2px; }
a, p, h1, h2, h3, small, span { overflow-wrap: break-word; }
button, input, select, summary { font: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid #ad4822; outline-offset: 3px; }
:target { scroll-margin-top: 1rem; }
.wrap { width: min(100% - clamp(2rem,7.2vw,7rem), 88rem); margin-inline: auto; }
.skip { position: absolute; z-index: 5; inset: -8rem auto auto 1rem; background: white; padding: .7rem 1rem; }
.skip:focus { top: .5rem; }
main { min-height: 56vh; }
img { display: block; max-width: 100%; height: auto; }
small { font-size: .8rem; }

/* Persistent navigation and the mobile agenda/services switch */
.masthead { color: white; background: var(--navy); border-top: 4px solid var(--yellow); }
.mast-inner { display: flex; align-items: center; gap: 1.25rem; min-height: 76px; }
.wordmark { color: inherit; font: 750 2.45rem/.95 Georgia,serif; letter-spacing: -.09em; text-decoration: none; white-space: nowrap; }
.wordmark span { color: var(--yellow); }
.wordmark:hover { color: inherit; }
.brand-label { max-width: 8em; padding-left: 1.2rem; border-left: 1px solid #80949b; color: #e2eceb; font: 700 .68rem/1.45 var(--mono); letter-spacing: .1em; text-transform: uppercase; }
.wide-nav, .footnav, .switch, .jump-bar, .service-links, .footer-base nav { display: flex; align-items: center; flex-wrap: wrap; }
.wide-nav { margin-left: auto; gap: clamp(.8rem,2.3vw,2.1rem); }
.wide-nav a, .phone-menu a { color: white; }
.wide-nav a, .switch a, .footnav a, .jump-bar a, .footer-base a, .service-links a, .inline-action, .text-link { display: inline-flex; align-items: center; min-height: 44px; font-weight: 650; }
.wide-nav a, .switch a, .footnav a, .jump-bar a { text-decoration: none; }
.wide-nav a { font-size: .91rem; }
.wide-nav a:hover, .wide-nav a[aria-current], .footnav a:hover, .jump-bar a:hover { text-decoration: underline; text-underline-offset: .35em; }
.masthead :focus-visible, footer :focus-visible { outline-color: var(--yellow); }
.switch-band { background: #e9f0f0; border-bottom: 1px solid #b6c4c7; }
.switch { gap: 0; }
.switch a { min-height: 43px; padding: .5rem 1.2rem; color: var(--navy); font-size: .9rem; gap: .55rem; border-inline-end: 1px solid #bac7c8; }
.switch a:first-child { border-inline-start: 1px solid #bac7c8; }
.switch a[aria-current] { background: var(--yellow); border-color: #c69d37; }
.switch a:hover { text-decoration: underline; }
.switch-band :focus-visible { outline-color: #ad4822; outline-offset: -4px; }
.phone-menu { display: none; }
.wordmark:focus-visible { outline-offset: 5px; }

/* Date register and filters */
.agenda-head, .desk-head, .page-head { padding: clamp(1.9rem,3.8vw,3.8rem) 0 1.65rem; }
.agenda-head { display: flex; align-items: end; justify-content: space-between; gap: 1.5rem; }
.agenda-head h1 { font-size: clamp(2.7rem,5.2vw,5rem); }
.overline, .eyebrow, .kicker, .label, .agenda-columns, .kind, .issue-date span, .ledger-heading > span {
  color: var(--muted); font: 700 .73rem/1.4 var(--mono); letter-spacing: .085em; text-transform: uppercase;
}
.overline span { color: var(--teal); padding: 0 .3em; }
h1 { margin: .38rem 0 .55rem; }
.deck, .standfirst { max-width: 50rem; color: var(--muted); font: 1.14rem/1.45 var(--sans); }
.issue-date { flex: 0 0 auto; display: grid; gap: .1rem; border-left: 4px solid var(--yellow); padding: .25rem 0 .25rem 1rem; }
.issue-date time { font: 700 1.15rem/1.3 var(--display); }
.filter-form, .planner form { display: flex; align-items: end; flex-wrap: wrap; gap: .75rem 1rem; }
.filter-form { padding: .95rem 1.25rem; background: var(--wash); border-top: 2px solid var(--navy); }
.filter-form label, .planner label { display: grid; gap: .2rem; font: 650 .85rem/1.45 var(--sans); }
.filter-form label { flex: 1 1 11rem; }
select, input { min-width: 0; width: 100%; min-height: 44px; border: 1px solid #8b9b9f; border-radius: 2px; background: white; color: var(--ink); padding: .55rem .7rem; font: .98rem/1.35 var(--sans); }
select { padding-right: 1.6rem; }
button, .btn { min-height: 44px; border: 1px solid var(--navy); border-radius: 2px; padding: .55rem 1rem; cursor: pointer; background: var(--navy); color: white; font: 650 .9rem/1.4 var(--sans); }
button:hover, .btn:hover { color: white; background: #254f5d; }
.result-count { padding: .45rem 1.25rem; margin-bottom: .8rem; background: #f4f7f6; color: var(--muted); border-bottom: 1px solid var(--line); font-size: .83rem; }
.empty { padding: 1.4rem; background: var(--wash); }
.ledger-heading, .section-heading { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .6rem 1rem; margin: 1.25rem 0 .7rem; }
.ledger-heading h2 { font-size: clamp(1.4rem,2.4vw,2rem); }
.agenda-columns, .agenda-row { display: grid; grid-template-columns: minmax(5.5rem,.56fr) minmax(12rem,2fr) minmax(10rem,1.42fr) minmax(10rem,1.36fr); gap: clamp(.8rem,2vw,2rem); align-items: start; padding-inline: 1.1rem; }
.agenda-columns { padding-block: .53rem; color: white; background: var(--navy); font-size: .67rem; }
.agenda-list, .place-list, .city-catalog, .moving-list, .local-dates, .link-list { list-style: none; padding: 0; }
.agenda-row { padding-block: 1.05rem; border-bottom: 1px solid var(--line); }
.date-block { display: grid; justify-items: start; width: fit-content; min-width: 4.2rem; }
.date-block b { font: 720 2.65rem/.98 var(--display); letter-spacing: -.065em; font-variant-numeric: tabular-nums; }
.date-block span { margin-top: .24rem; color: #394b4a; background: #f7e7ad; padding: .14rem .3rem; font: bold .66rem/1.3 var(--mono); text-transform: uppercase; white-space: nowrap; }
.kind { display: inline-flex; align-items: center; gap: .45rem; font-size: .66rem; }
.kind::before { content: ""; width: .5rem; height: .5rem; background: currentColor; }
.kind-market { color: #256045; }
.kind-civic { color: #284e80; }
.kind-workshop { color: #864326; }
.kind-workshop::before { transform: rotate(45deg); }
.kind-market::before { border-radius: 50%; }
.listing-title h3, .place-row h3 { margin: .12rem 0 .23rem; font-size: clamp(1.2rem,1.95vw,1.65rem); }
.listing-title h3 a, .place-row h3 a, .city-catalog h2 a { color: var(--ink); text-decoration: none; }
.listing-title h3 a:hover, .place-row h3 a:hover, .city-catalog h2 a:hover { color: var(--link); text-decoration: underline; }
.listing-title p, .listing-place span, .place-row p, .listing-source { font-size: .93rem; }
.listing-place, .listing-source, .provenance { display: grid; align-content: start; gap: .2rem; }
.listing-place strong a { color: var(--ink); font-weight: 680; }
.listing-source small, .provenance small, .moving-list small, .local-dates small { display: block; color: var(--muted); font-size: .79rem; }
.market-register { border-bottom: 1px solid var(--line); background: #f1f5f4; padding-inline: 1.1rem; }
summary { cursor: pointer; padding-block: .75rem; min-height: 44px; font-weight: 650; }
.market-register summary { font-family: var(--display); font-size: 1.23rem; }
.market-register summary span { color: var(--muted); font: .85rem var(--sans); margin-left: .6rem; }
.market-register > p { margin: .25rem 0 .95rem; }
.place-row, .local-market, .task-row, .transport-row, .moving-list li, .local-dates li, .route-row { display: grid; gap: clamp(.8rem,3vw,3rem); padding: 1rem 0; border-top: 1px solid var(--line); }
.place-row, .local-market, .task-row { grid-template-columns: minmax(0,2.2fr) minmax(12rem,1fr); }
.market-register .place-list { padding-bottom: .5rem; }

/* Public service index and city sheets */
.section { padding: clamp(1.75rem,3.4vw,3.2rem) 0; border-top: 1px solid var(--line); }
.agenda-board, .directory-board, .service-board { margin-bottom: 2.25rem; }
.section .overline + h2 { margin-top: .4rem; }
.section > h2 { margin-bottom: .9rem; }
.service-links, .jump-bar { gap: .15rem 1.35rem; padding-block: .35rem; }
.service-links a { font-size: .98rem; }
.jump-bar { border-block: 1px solid var(--line); background: var(--wash); padding-inline: .9rem; }
.jump-bar a { color: var(--navy); }
.city-links { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); column-gap: 2rem; }
.city-links a { padding: .6rem 0; min-height: 44px; border-bottom: 1px solid var(--line); }
.bread { display: flex; flex-wrap: wrap; gap: .45rem; align-items: center; color: var(--muted); font-size: .85rem; margin-top: .35rem; }
.bread a { min-height: 44px; display: inline-flex; align-items: center; }
.bread + .desk-head, .bread + .page-head, .topic-banner .page-head { padding-top: .8rem; }
.city-services, .service-board { margin-top: 1.5rem; }
.city-services { margin-bottom: 1.7rem; }
.task-row p, .local-market p, .route-row p { max-width: 50rem; margin-top: .38rem; }
.task-title { font: 700 1.18rem/1.35 var(--display); }
.task-title span { color: var(--teal); font: .85em var(--sans); }
.provenance { border-left: 2px solid #a8c2c5; padding-left: 1rem; }
.owner { font-weight: 650; font-size: .94rem; }
.service-group > h3 { margin: 1rem 0 0; padding: .45rem .75rem; background: var(--wash); }
.city-catalog > li { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .95rem 0; border-bottom: 1px solid var(--line); }
.city-catalog h2 { font-size: 1.7rem; margin-block: .18rem; }
.city-catalog nav { display: flex; flex-wrap: wrap; gap: .1rem 1.1rem; }
.city-catalog nav a, .link-list a { display: inline-flex; align-items: center; min-height: 44px; }
.section-intro { max-width: 70ch; margin: .5rem 0 1.2rem; }
.route-row, .transport-row, .moving-list li, .local-dates li { grid-template-columns: minmax(10rem,.65fr) minmax(0,2.4fr); }
.transport-row .task-row { padding: 0; border: 0; }
.transport-row h3 { font-size: 1.15rem; }
.route-row h3 { font-size: 1.45rem; }
.local-dates time { font-weight: 700; }
.city-reading { display: grid; grid-template-columns: minmax(13rem,.8fr) minmax(0,2fr); gap: clamp(2rem,6vw,6rem); }
.city-reading .standfirst { margin-top: .55rem; font-family: var(--reading); font-size: 1.3rem; }
.link-list li { border-bottom: 1px solid var(--line); }
.inline-action, .text-link { width: fit-content; gap: .4rem; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; }
.btn { display: inline-flex; align-items: center; text-decoration: none; }
.error-actions { margin-bottom: 3rem; }

/* Long reads, service notes and contact */
.article-grid { display: grid; grid-template-columns: minmax(0,2fr) minmax(15rem,.85fr); gap: clamp(2rem,6vw,6rem); padding: 2rem 0 3.5rem; border-top: 2px solid var(--navy); }
.prose { max-width: 49rem; min-width: 0; }
.prose p, .prose li { margin: .65rem 0; font: 1.12rem/1.63 var(--reading); }
.prose h2 { margin: 1.8rem 0 .65rem; font-size: clamp(1.7rem,2.9vw,2.5rem); }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin: 1.2rem 0 .5rem; }
.rail .note { border-top: 3px solid var(--teal); padding: 1rem 0; }
.note h2, .planner h2 { margin: .35rem 0 .6rem; font-size: 1.65rem; }
.planner { border-block: 1px solid var(--line); background: var(--wash); padding: 1.3rem; margin-bottom: 2rem; }
.planner details { margin-top: .8rem; }
.selection { border-top: 1px solid var(--line); margin-top: 1rem; padding-top: 1rem; display: grid; gap: .35rem; }
.selection a { width: fit-content; min-height: 44px; display: inline-flex; align-items: center; }
.resource-row { padding: 1rem 0; border-top: 1px solid var(--line); }
.form-frame { border: 1px solid var(--line); width: 100%; min-height: 400px; background: white; }
.form-intro { margin: .7rem 0 1rem; }

/* Footer */
footer { background: var(--navy); color: white; margin-top: 1.2rem; padding: 1.7rem 0 .7rem; }
footer a { color: white; }
footer a:hover, .wide-nav a:hover, .phone-menu a:hover { color: var(--yellow); }
.footer-index, .footer-base { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .6rem 2rem; }
.footer-index p { color: #d1dbdc; font-size: .84rem; margin-top: .5rem; }
.footnav { gap: .1rem 1rem; }
.footnav a { font-size: .9rem; }
.footer-base { margin-top: 1rem; padding-top: .55rem; border-top: 1px solid #6a808a; font-size: .86rem; }
.footer-base nav { gap: 0 1rem; }
@media (max-width: 65rem) {
  .brand-label { display: none; }
  .agenda-columns, .agenda-row { grid-template-columns: 4.8rem minmax(10rem,1.5fr) minmax(8.5rem,1.15fr) minmax(8.5rem,1fr); }
}
@media (max-width: 48rem) {
  .wide-nav { display: none; }
  .phone-menu { display: block; margin-left: auto; }
  .phone-menu summary { padding: .65rem .5rem; min-height: 44px; }
  .phone-menu nav { position: absolute; z-index: 3; right: 1rem; display: grid; min-width: 13rem; padding: .4rem .85rem; border: 1px solid #6d8791; background: var(--navy); }
  .phone-menu a { padding: .6rem 0; min-height: 44px; }
  .mast-inner { min-height: 57px; }
  .wordmark { font-size: 2.05rem; }
  .switch a { flex: 1; justify-content: center; min-height: 44px; }
  .agenda-columns { display: none; }
  .agenda-row { grid-template-columns: 4.2rem minmax(0,1fr); gap: .35rem 1rem; padding: 1rem .2rem; }
  .agenda-row:first-child { border-top: 2px solid var(--navy); }
  .date-block { grid-row: span 3; }
  .listing-place, .listing-source { grid-column: 2; }
  .listing-place { display: flex; gap: .1rem .55rem; align-items: baseline; flex-wrap: wrap; }
  .listing-source { margin-top: .2rem; }
  .listing-source a { width: fit-content; }
  .issue-date { display: none; }
  .agenda-head { padding-block: 1.45rem 1.1rem; }
  .agenda-head h1 { font-size: clamp(2.5rem,8.5vw,3.65rem); }
  .filter-form { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: .55rem .7rem; padding: .75rem; }
  .filter-form button { align-self: end; }
  .city-links { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .article-grid, .city-reading, .transport-row { grid-template-columns: 1fr; gap: 1.35rem; }
  .moving-list li, .local-dates li, .route-row { grid-template-columns: minmax(7rem,.7fr) minmax(0,2fr); }
  .brand-label { display: inline; }
}
@media (max-width: 34rem) {
  .wrap { width: calc(100% - 2rem); }
  .brand-label { max-width: 7rem; padding-left: .8rem; font-size: .6rem; }
  .mast-inner { gap: .8rem; }
  .switch { width: 100%; }
  .switch a { padding-inline: .5rem; }
  .deck, .standfirst { font-size: 1.03rem; }
  .desk-head, .page-head { padding-bottom: 1.3rem; }
  .place-row, .task-row, .local-market, .moving-list li, .local-dates li, .route-row { grid-template-columns: 1fr; gap: .65rem; }
  .task-row .provenance { padding-left: .75rem; }
  .market-register summary span { display: block; margin: .1rem 0 0 1rem; }
  .city-catalog > li { align-items: start; flex-direction: column; gap: .1rem; }
  .jump-bar, .service-links { gap: 0 1rem; }
  .jump-bar a, .service-links a { font-size: .9rem; }
  .result-count { padding-inline: .75rem; }
  .planner form { align-items: stretch; flex-direction: column; }
}
@media print {
  .masthead, .filter-form, .result-count, .jump-bar, .skip, .phone-menu, footer nav { display: none; }
  body, footer { background: white; color: black; }
  .wrap { width: 100%; }
  .agenda-row, .task-row, .route-row { break-inside: avoid; }
  footer a { color: black; }
}

@media (max-width: 48rem) {
  .listing-title h3 a, .listing-source a { display: inline-flex; align-items: center; min-height: 44px; }
}
