:root {
  color-scheme: light;
  --text: #251c19;
  --muted: #60504b;
  --red: #9c2826;
  --red-deep: #6e1c20;
  --linen: #faf5ee;
  --line: #e4d9d1;
  --rose: #f8eeea;
  --control-border: #9a827b;
  --serif: Georgia, 'Times New Roman', serif;
  font-family: system-ui, -apple-system, sans-serif;
  line-height: 1.55;
  color: var(--text);
  background: #fff;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body, h1, h2, h3, h4, p, figure { margin: 0; }
a { color: inherit; text-underline-offset: .2em; }
button { font: inherit; }
button, summary { cursor: pointer; }
:focus-visible { outline: 3px solid #215eab; outline-offset: 4px; }
section[id] { scroll-margin-top: 1rem; }
.container { width: min(71rem, calc(100% - 3rem)); margin-inline: auto; }
.visually-hidden, .skip:not(:focus) {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.skip:focus { position: absolute; z-index: 2; inset: .5rem auto auto .5rem; padding: .6rem 1rem; background: #fff; }

html.site-document { height: 100%; overflow: hidden; }
.site-layout {
  position: fixed;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: auto minmax(0, 1fr);
  height: 100%;
  height: 100dvh;
  overflow: hidden;
  overflow: clip;
}
.site-content { min-height: 0; overflow-y: auto; overscroll-behavior-y: contain; }
.site-content:focus-visible { outline-offset: -4px; }
.site-header { z-index: 1; border-bottom: 1px solid var(--line); background: #fff; }
.topbar { min-height: 4.75rem; display: flex; align-items: center; justify-content: space-between; gap: 1.1rem; }
.brand { display: inline-flex; align-items: center; gap: .7rem; font-weight: 750; letter-spacing: -.035em; text-decoration: none; white-space: nowrap; }
.brand-mark { display: grid; width: 2.25rem; aspect-ratio: 1; place-items: center; background: var(--red); color: #fff; border-radius: .15rem; font: 1.45rem var(--serif); }
.navigation { display: flex; flex-wrap: wrap; align-items: center; gap: .2rem clamp(.8rem, 2.55vw, 2rem); }
.navigation a { color: var(--muted); font-weight: 650; font-size: .95rem; text-decoration: none; }
.navigation a:hover { color: var(--red-deep); text-decoration: underline; }
.navigation a[aria-current='page'] { color: var(--red-deep); text-decoration: underline; }
.button { display: inline-flex; min-height: 2.75rem; align-items: center; justify-content: center; border: 1px solid transparent; border-radius: .6rem; padding: .62rem 1rem; font-weight: 700; line-height: 1.3; text-align: center; text-decoration: none; }
.button-primary { background: var(--red); color: #fff; }
.button-primary:hover { background: var(--red-deep); }
.button-outline { border-color: var(--control-border); color: var(--red-deep); background: #fff; }
.button-outline:hover, .button-outline[aria-current='page'] { background: var(--rose); }

.hero { background: var(--linen); }
.hero-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: clamp(2rem, 6vw, 6rem); padding-block: clamp(2rem, 5vw, 4rem); }
.area-label { color: var(--red); font-size: .9rem; font-weight: 750; letter-spacing: .045em; }
h1, h2 { font-family: var(--serif); font-weight: 500; letter-spacing: -.045em; line-height: 1.04; }
h1 { margin-block: .8rem 1rem; font-size: clamp(3.25rem, 6.2vw, 5.9rem); }
.hero h1 em { display: block; color: var(--red); }
.hero-copy > p:last-of-type, .area-intro > p:last-of-type { max-width: 30rem; color: var(--muted); font-size: clamp(1.02rem, 1.7vw, 1.2rem); }
.hero-photo { position: relative; overflow: hidden; min-height: 17rem; aspect-ratio: 1.38; border-radius: 1.4rem; background: #e4d9d1; }
.hero-photo img { position: absolute; width: 100%; height: 100%; object-fit: cover; }
.hero-photo figcaption { position: absolute; right: .8rem; bottom: .8rem; left: auto; border-radius: .4rem; padding: .4rem .68rem; font-size: .875rem; font-weight: 650; background: #fff; }

.home-hero { border-bottom: 1px solid var(--line); background: var(--linen); }
.home-hero .hero-layout { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(1.7rem, 5vw, 4rem); padding-block: clamp(1.65rem, 3.8vw, 3.1rem); }
.home-hero h1 { margin-block: .55rem .7rem; font-size: clamp(2.65rem, 5.4vw, 4.9rem); }
.home-hero h1 em { display: inline; color: var(--red); }
.home-hero .hero-photo { min-height: 0; aspect-ratio: 1.35; border-radius: .1rem; }
.home-hero .hero-photo figcaption { border-radius: 0; color: var(--text); background: var(--linen); }
.quick-find { max-width: 32rem; margin-top: 1.2rem; }
.quick-find label { display: inline-block; margin-bottom: .35rem; font-weight: 690; }
.search-controls { display: flex; gap: .45rem; }
.search-controls input { width: 100%; min-width: 0; min-height: 2.8rem; padding: .55rem .75rem; border: 1px solid var(--control-border); border-radius: .2rem; color: var(--text); background: #fff; font: inherit; }
.search-controls input::placeholder { color: var(--muted); }
.search-controls .button { border-radius: .2rem; background: var(--red); color: #fff; }
.search-controls .button:hover { background: var(--red-deep); }

.content-section { padding-block: clamp(2.5rem, 5vw, 4rem); }
.section-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: .9rem 1.25rem; margin-bottom: 1.45rem; }
h2 { font-size: clamp(1.95rem, 4vw, 3.05rem); }
.section-heading h2 span { font: .67em/1 system-ui, sans-serif; vertical-align: .08em; }
.section-heading p { margin-top: .55rem; color: var(--muted); }
.edition { flex: none; margin-top: .28rem; padding: .36rem .7rem; border-radius: .5rem; color: var(--red-deep); background: var(--rose); font-size: .875rem; font-weight: 680; }
.card-grid, .events { list-style: none; margin: 0; padding: 0; }
.card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .95rem; }
.card { display: flex; flex-direction: column; align-items: flex-start; gap: .5rem; border-top: 1px solid var(--line); padding: .95rem .15rem; }
.card:focus-within { border-color: var(--red); }
.tag { color: var(--red-deep); font-size: .875rem; font-weight: 700; }
h3 { font-size: 1.17rem; letter-spacing: -.02em; line-height: 1.3; }
.overview-trigger { padding: .2rem 0; border: 0; color: inherit; background: transparent; font: inherit; text-align: left; text-decoration: underline; text-underline-offset: .2em; }
.overview-trigger:hover { color: var(--red); text-decoration-thickness: .12em; }
.card-description { color: var(--muted); }
.card-source { margin-top: auto; padding-top: .3rem; color: var(--muted); font-size: .875rem; }
.more-picks { margin-top: .95rem; }
.more-picks summary { width: fit-content; min-height: 2.75rem; padding: .55rem .85rem; border: 1px solid var(--control-border); border-radius: .55rem; color: var(--red); font-weight: 700; }
.more-picks summary:hover { background: var(--rose); }
.more-picks:not([open]) .picks-collapse, .more-picks[open] .picks-expand { display: none; }
.more-picks[open] > .card-grid { margin-top: .95rem; }

.events-section { background: var(--rose); }
.listing-filters { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .65rem; width: min(100%, 21rem); flex: none; }
.listing-filter { display: grid; gap: .25rem; min-width: 0; }
.listing-filter label { color: var(--muted); font-size: .875rem; font-weight: 690; }
.listing-filter :is(select, input) { min-height: 2.75rem; width: 100%; padding: .45rem .6rem; border: 1px solid var(--control-border); border-radius: .25rem; color: var(--text); background: #fff; font: inherit; }
.service-search-field { grid-column: 1 / -1; }
.listing-count:not(:empty) { margin-bottom: .45rem; color: var(--muted); font-size: .875rem; }
.events { border-block: 1px solid var(--line); background: #fff; }
.events:empty { display: none; }
.event { display: grid; grid-template-columns: 3rem minmax(0, 1fr) minmax(0, 10rem); gap: 1rem; align-items: center; padding: .85rem 1rem; }
.event + .event { border-top: 1px solid var(--line); }
.event-date { display: grid; min-height: 3.1rem; align-content: center; justify-items: center; border-radius: .5rem; background: var(--rose); color: var(--red-deep); line-height: 1.05; }
.event-day { font: 1.45rem/1 var(--serif); }
.event-month { margin-top: .12rem; font-size: .875rem; font-weight: 700; }
.event-where, .event-source { margin-top: .22rem; color: var(--muted); font-size: .875rem; }
.event-source { text-align: right; }
.calendar-links { display: flex; flex-wrap: wrap; gap: .6rem 1.4rem; margin-top: 1rem; color: var(--red); font-size: .95rem; font-weight: 680; }
.notice { margin-block: 1rem; border-radius: .55rem; padding: .8rem 1rem; background: #f6efdc; color: #513f1b; }
p.container.notice { margin-inline: auto; }

.filters { display: flex; flex-wrap: wrap; gap: .55rem; margin-bottom: 1.15rem; }
.filters button { min-height: 2.75rem; border: 1px solid var(--control-border); border-radius: .2rem; padding: .48rem .85rem; background: #fff; color: var(--red-deep); font-size: .95rem; font-weight: 680; }
.filters button:hover { background: var(--rose); }
.filters button[aria-pressed='true'] { border-color: var(--red); background: var(--red); color: #fff; }
.site-footer { background: var(--linen); border-top: 1px solid var(--line); }
.footer-layout { display: flex; justify-content: space-between; gap: 1rem 2rem; flex-wrap: wrap; padding-block: 1.5rem; color: var(--muted); font-size: .875rem; }
.footer-title { color: var(--red-deep); font-size: 1.1rem; font-weight: 750; }

.area-page { min-height: calc(100vh - 4.75rem); background: var(--linen); padding-block: clamp(2rem, 6vw, 5rem); }
.support-intro { padding-top: clamp(1.2rem, 3vw, 2rem); }
.support-intro + .content-section { padding-top: 1rem; }
.support-now { margin-top: .75rem; padding: clamp(1rem, 3vw, 1.7rem); border: 1px solid var(--line); border-left: 3px solid var(--red); background: var(--linen); }
.support-now > p, .support-now .card-grid { margin-top: .7rem; }
.support-now .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.support-now a { color: var(--red-deep); }
.service-next-step { margin-block: .25rem; color: var(--text); }
@media (max-width: 39rem) {
  .support-now .card-grid { grid-template-columns: minmax(0, 1fr); }
}
.support-options .guide-links { margin-top: auto; }
.support-calendar { background: var(--linen); border-block: 1px solid var(--line); }
.support-event {
  display: grid;
  grid-template-columns: minmax(8.5rem, .25fr) 1fr auto;
  align-items: start;
  gap: .35rem 1.2rem;
  padding-block: .9rem;
  border-top: 1px solid var(--line);
}
.support-event-date, .support-event-venue { font-weight: 700; }
.support-event-when, .support-event-description { color: var(--muted); }
.support-event-details p { margin-top: .25rem; }
.support-event-link { color: var(--red-deep); font-weight: 650; }
@media (max-width: 39rem) {
  .support-event { grid-template-columns: minmax(0, 1fr); }
  .support-event-when { display: flex; flex-wrap: wrap; gap: .15rem .65rem; }
}
.area-links { display: flex; flex-wrap: wrap; gap: .15rem 1.3rem; margin-block: 1rem .85rem; }
.area-links a { display: inline-flex; align-items: center; min-height: 2.75rem; color: var(--red); font-weight: 700; }
.ward-drop-in { max-width: 51rem; border: 1px solid var(--line); border-radius: .85rem; background: var(--rose); padding: clamp(1rem, 3vw, 1.65rem); }
.ward-drop-in p { margin-top: .7rem; }
.drop-in-time { font-size: clamp(1.1rem, 2.5vw, 1.35rem); font-weight: 750; }
.source-note { color: var(--muted); font-size: .875rem; }
.review-notice { border-left: .18rem solid #99763b; padding-left: .65rem; color: #604414; }
.ward-section { margin-top: clamp(2.15rem, 5vw, 3.5rem); }
.councillor-grid { margin-top: 1rem; }
.councillor-grid a { margin-top: auto; padding-block: .4rem; color: var(--red); font-weight: 680; }
.ward-finder { margin-top: .95rem; color: var(--muted); }
.ward-history { max-width: 46rem; }
.ward-history p { margin-top: .7rem; }
.history-page { padding-bottom: 3rem; background: var(--linen); }
.history-masthead { max-height: 70vh; max-height: 70dvh; overflow-y: auto; }
.history-masthead .topbar { position: sticky; top: 0; z-index: 1; background: #fff; }
.history-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(4.5rem, clamp(6.5rem, 24vw, 16rem));
  max-width: 55rem;
  align-items: center;
  gap: .85rem clamp(.65rem, 3vw, 2.5rem);
  padding-block: .6rem;
}
.history-intro h1 { margin-block: .15rem .3rem; font-size: clamp(1.65rem, 4vw, 3.15rem); }
.history-intro > p:last-child { max-width: 37ch; color: var(--muted); font-size: clamp(.85rem, 1.7vw, 1.05rem); }
.history-postcard img { display: block; width: 100%; height: auto; max-height: 6rem; object-fit: cover; border-radius: .15rem; }
.history-postcard figcaption { margin-top: .2rem; color: var(--muted); font-size: .72rem; line-height: 1.25; }
.history-timeline, .history-continue { max-width: 55rem; margin-inline: auto; }
.history-controls {
  padding-block: .45rem .2rem;
  border-top: 1px solid #83524f;
  color: #fff;
  background: #3d1b1e;
  box-shadow: 0 .25rem .75rem #251c1926;
}
.history-controls-inner { max-width: 55rem; }
.history-control-line { display: flex; align-items: center; justify-content: space-between; gap: .55rem 1rem; }
.history-current { min-width: 0; }
#history-period { color: #f7dfce; font-weight: 750; font-variant-numeric: tabular-nums; line-height: 1.25; }
#history-current-story { overflow: hidden; color: #fff; font-size: .875rem; text-overflow: ellipsis; white-space: nowrap; }
#history-chapter {
  width: min(44%, 17rem);
  min-height: 2.75rem;
  border: 1px solid #af8277;
  padding-inline: .4rem;
  border-radius: .25rem;
  color-scheme: dark;
  color: #fff;
  background: #3d1b1e;
  font: inherit;
  font-size: .875rem;
}
.history-scrubber { display: grid; grid-template-columns: 2.75rem minmax(0, 1fr) 2.75rem; align-items: center; gap: .7rem; margin-top: .2rem; }
.history-scrubber button {
  min-height: 2.75rem;
  border: 1px solid #af8277;
  border-radius: .25rem;
  color: #fff;
  background: transparent;
  font-size: 1.2rem;
}
.history-scrubber button:not([aria-disabled='true']):hover { background: #713b3d; }
.history-scrubber button[aria-disabled='true'] { opacity: .5; cursor: default; }
#history-year { width: 100%; height: 2.75rem; margin: 0; accent-color: #f7dfce; cursor: pointer; }
.history-controls :focus-visible { outline-color: #fff; outline-offset: 2px; }
.history-entries { margin: 0; padding: 0; list-style: none; }
.history-entry {
  display: grid;
  grid-template-columns: minmax(7rem, .28fr) minmax(0, 1fr);
  align-content: start;
  gap: .55rem clamp(1rem, 3vw, 2rem);
  min-height: 12rem;
  padding-block: clamp(1.35rem, 4vw, 2.4rem);
  padding-inline: clamp(.65rem, 2.5vw, 1.4rem);
  border-inline-start: .2rem solid transparent;
  border-bottom: 1px solid var(--line);
  scroll-margin-top: .75rem;
}
.history-entry.is-current { border-inline-start-color: var(--red); background: #f3e8db; }
.history-page .history-entry:last-child {
  min-height: max(12rem, calc(var(--history-pane-height, 12rem) - 4rem));
}
.history-chapter-heading {
  grid-column: 1 / -1;
  margin-bottom: .65rem;
  padding-bottom: .45rem;
  border-bottom: 1px solid var(--control-border);
  color: var(--red-deep);
  font-weight: 750;
}
.history-entry-years { color: var(--red-deep); font-size: clamp(1rem, 2.4vw, 1.3rem); font-weight: 750; font-variant-numeric: tabular-nums; }
.history-entry-copy h2 { font-size: clamp(1.75rem, 3.9vw, 2.65rem); }
.history-entry-copy p { max-width: 62ch; margin-block: .6rem .75rem; color: var(--muted); }
.history-source, .history-continue a { color: var(--red-deep); font-weight: 650; }
.history-source { font-size: .9rem; }
.history-story-image { max-width: 35rem; margin-top: 1.15rem; }
.history-story-image img { display: block; width: 100%; height: auto; border-radius: .15rem; }
.history-story-image figcaption { margin-top: .35rem; color: var(--muted); font-size: .8rem; }
.history-continue { padding-top: 1.1rem; }
@media (max-width: 39rem) {
  .history-entry { grid-template-columns: minmax(0, 1fr); }
}
@media (max-height: 35rem) {
  .history-masthead .topbar { min-height: 3rem; }
  .history-hero { padding-block: .3rem; }
  .history-intro h1 { font-size: clamp(1.45rem, 3.8vw, 2.25rem); }
  .history-postcard img { max-height: 3.5rem; }
}
.history-sources { margin-top: .85rem; padding-left: 1.2rem; color: var(--muted); }
.history-sources li + li { margin-top: .25rem; }

.local-intro { padding-block: clamp(2rem, 6vw, 4.4rem); }
.local-intro > p:last-of-type, .map-intro { color: var(--muted); font-size: 1.1rem; }
.local-intro .area-links { margin-bottom: 0; }
.lordship-events, .help-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.help-topic + .help-topic { margin-top: 1.7rem; }
.help-topic > h3 { margin-bottom: .65rem; font-size: 1.35rem; }
.help-grid h4 { font-size: 1.13rem; line-height: 1.3; }
.help-grid a { color: var(--red); font-weight: 670; }
.local-detail { margin-top: 1rem; max-width: 43rem; padding: .7rem .9rem; border: 1px solid var(--line); border-radius: .6rem; }
.local-detail summary { color: var(--red); font-weight: 700; }
.local-detail p { margin-block: .5rem; }

.map-page { padding-block: clamp(1.75rem, 5vw, 3.4rem); }
.map-page h1 { font-size: clamp(2.7rem, 6vw, 4.5rem); }
.map-jump { margin-top: .55rem; color: var(--red); font-weight: 680; }
.map-layout { display: grid; grid-template-columns: minmax(0, 1.9fr) minmax(17rem, 1fr); gap: 1rem; margin-top: 1.25rem; align-items: start; }
.map-panel, .map-details { border: 1px solid var(--line); border-radius: .85rem; padding: 1rem; }
.map-panel { background: var(--rose); }
.map-panel > p { color: var(--muted); font-size: .95rem; }
#ward-map { display: block; width: 100%; aspect-ratio: 1.57; }
.map-readout { display: none; }
.ward-chooser { grid-column: 1 / -1; width: min(100%, 26rem); }
.ward-chooser label { display: block; margin-bottom: .35rem; font-weight: 700; }
.ward-chooser select { width: 100%; min-height: 2.75rem; border: 1px solid var(--control-border); border-radius: .45rem; padding: .42rem .65rem; color: var(--red-deep); background: #fff; font: inherit; }
.map-details :is(h2, h3) { font-size: clamp(1.8rem, 3.5vw, 2.6rem); }
.ward-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .55rem; margin: .85rem 0; }
.ward-stats > div { border-radius: .5rem; padding: .6rem; background: var(--rose); }
.ward-stats .population { grid-column: 1 / -1; }
.ward-stats dt { color: var(--muted); font-size: .875rem; }
.ward-stats dd { margin: 0; font-size: 1.17rem; font-weight: 720; }
.ward-stats .population dd { font-size: 1.65rem; }
#ward-rank { color: var(--muted); }
#noel-park-link { display: inline-block; margin-top: .7rem; color: var(--red); font-weight: 690; }
.map-sources { margin-top: 1rem; max-width: 65rem; }
.ward-budget { margin-top: .95rem; padding-top: .85rem; border-top: 1px solid var(--line); }
.ward-budget p, .ward-budget a { margin-top: .35rem; }
.ward-budget a { display: inline-block; color: var(--red); }
.council-budget { max-width: 55rem; margin-top: clamp(2.5rem, 6vw, 4.5rem); }
.council-budget > p { margin-top: .7rem; }
.budget-total { color: var(--red); font-size: 1.15rem; }
.budget-total data { margin-right: .5rem; font-size: 1.6rem; font-weight: 750; }
.budget-table { width: 100%; margin-top: 1.2rem; border-collapse: collapse; }
.budget-table caption { margin-bottom: .5rem; text-align: left; font-weight: 750; }
.budget-table th, .budget-table td { padding: .55rem .65rem; border-bottom: 1px solid var(--line); text-align: left; }
.budget-table tbody th { font-weight: 500; }
.budget-table :is(th, td):last-child { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.budget-table :is(thead, tfoot), .budget-subtotal { background: var(--rose); }
.budget-table tfoot { font-weight: 750; }
.budget-links { padding-left: 1.2rem; color: var(--red); }

.site-layout:has(.overview[open]) > .site-content { overflow: hidden; }
.overview { width: min(38rem, calc(100% - 2rem)); max-height: calc(100% - 2rem); padding: 0; border: 1px solid var(--line); border-radius: 1rem; color: var(--text); background: #fff; }
.overview::backdrop { background: #30201eaa; }
.overview-controls { display: flex; justify-content: flex-end; padding: .9rem .9rem 0; }
.overview-copy { padding: .65rem clamp(1.15rem, 4vw, 2rem) 1.6rem; }
.overview-copy h2 { font-size: clamp(2rem, 5vw, 2.75rem); }
.overview-copy > p { margin-top: .8rem; color: var(--muted); }
.overview-facts { display: grid; gap: .85rem; margin: 1.3rem 0; padding: 1rem; border-radius: .7rem; background: var(--rose); }
.overview-facts:empty { display: none; }
.overview-facts dt { font-weight: 720; }
.overview-facts dd { margin: .15rem 0 0; }
.overview-map { display: flex; width: fit-content; min-height: 2.75rem; align-items: center; gap: .2rem; color: var(--red-deep); font-weight: 680; }
.overview-source { margin-top: 1.15rem; padding-top: .85rem; border-top: 1px solid var(--line); color: var(--muted); }
.overview-source a { color: var(--red); font-weight: 680; }

.external-link::after { content: ' ↗' / ''; white-space: nowrap; }
.search-list, .service-list, .guide-links { margin: 0; padding: 0; list-style: none; }
.search-list li { padding-block: .8rem; border-top: 1px solid var(--line); }
.search-list .source-note, .service-item .source-note { margin-top: .3rem; }
.service-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(1rem, 4vw, 3rem); }
.service-item { display: flex; flex-direction: column; align-items: flex-start; justify-content: space-between; gap: .45rem; border-top: 1px solid var(--line); padding: .9rem 0; scroll-margin-top: 1rem; }
.service-item:target { background: #faf5ee; }
.service-item .card-description { margin-top: .22rem; }
.service-action, .guide-links a, .guide-body a, .faq-section a { color: var(--red); font-weight: 680; }
.service-action { display: inline-block; padding-block: .4rem; }
.monthly-section { border-bottom: 1px solid var(--line); }
.monthly-section .card { border-top: 3px solid var(--red); background: var(--linen); padding-inline: 1rem; }
.guide-band, .guide-intro { background: var(--linen); }
.guide-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(1.8rem, 5vw, 4rem); padding-block: clamp(2.4rem, 5vw, 3.6rem); }
.guide-grid p { margin-top: .5rem; color: var(--muted); }
.guide-links { display: grid; justify-items: start; gap: .35rem; margin-top: .6rem; }
.guide-links a { display: inline-block; padding-block: .35rem; }
.faq-section details { max-width: 49rem; border-top: 1px solid var(--line); }
.faq-section details:last-of-type { border-bottom: 1px solid var(--line); }
.faq-section details:target { background: var(--linen); }
.faq-section summary { padding: .85rem .7rem; color: var(--red-deep); font-weight: 720; }
.faq-section details div { padding: 0 .7rem 1rem 1.7rem; }
.faq-section details p + p, .faq-section > .source-note { margin-top: .55rem; }
.guide-intro { padding-block: clamp(1.75rem, 4vw, 3rem); }
.guide-intro h1 { font-size: clamp(2.7rem, 6vw, 4.7rem); }
.guide-intro h1 + p { color: var(--muted); font-size: 1.1rem; }
.guide-body { padding-block: 1rem 3rem; }
.guide-body section { max-width: 49rem; padding-block: 1.6rem; border-bottom: 1px solid var(--line); }
.guide-body section > p { margin-block: .7rem; }
.worked-example { border-left: 3px solid var(--red); padding: .75rem 1rem; background: var(--linen); }

.guide-body .mortgage-calculator { max-width: 58rem; }
.calculator-layout { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); border-block: 1px solid var(--line); }
.mortgage-inputs, .mortgage-results { min-width: 0; padding: clamp(1rem, 3.5vw, 1.65rem); }
.mortgage-inputs { display: grid; align-content: start; gap: .9rem; }
.mortgage-inputs .button { justify-self: start; }
.mortgage-field label { display: block; margin-bottom: .22rem; font-weight: 700; }
.mortgage-number { display: flex; align-items: center; gap: .5rem; min-height: 2.75rem; padding-inline: .65rem; border: 1px solid var(--control-border); border-radius: .35rem; background: #fff; }
.mortgage-number input { width: 100%; min-width: 0; padding: .4rem 0; border: 0; background: transparent; color: inherit; font: inherit; }
.mortgage-number:has([aria-invalid='true']) { border-color: #a74334; }
.mortgage-field input[type='range'] { display: block; width: 100%; min-height: 1.65rem; margin: .25rem 0 0; accent-color: var(--red); cursor: pointer; }
.mortgage-field p { margin-top: .25rem; }
.field-error { color: #8c2921; font-size: .875rem; font-weight: 650; }
.mortgage-results { border-top: 3px solid var(--red); background: var(--rose); }
.mortgage-result-label { color: var(--muted); font-weight: 680; }
.mortgage-payment { margin: .35rem 0 .85rem; color: var(--red-deep); font: clamp(2.25rem, 5vw, 3.8rem)/1.05 var(--serif); letter-spacing: -.045em; overflow-wrap: anywhere; }
.mortgage-bar { height: .55rem; background: var(--red); }
.mortgage-bar::before { content: ''; display: block; width: var(--borrowed-share); height: 100%; background: #dcaaa0; }
.mortgage-totals { display: grid; gap: .3rem; margin: .65rem 0 1rem; font-size: .92rem; }
.mortgage-totals > div { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .1rem .6rem; }
.mortgage-totals dd { margin: 0; font-weight: 650; font-variant-numeric: tabular-nums; }
.mortgage-totals div:nth-child(-n+2) dt::before { content: ''; display: inline-block; width: .55rem; height: .55rem; margin-right: .4rem; background: #dcaaa0; }
.mortgage-totals div:nth-child(2) dt::before { background: var(--red); }
.mortgage-totals div:last-child { padding-top: .38rem; border-top: 1px solid var(--control-border); }
.mortgage-scenario { padding-top: .65rem; border-top: 1px solid var(--line); }
.mortgage-scenario p { margin-top: .22rem; font-size: .92rem; }

.guide-body .bill-calculator, .guide-body .inflation-calculator { max-width: 58rem; }
.bill-workspace { display: grid; gap: .85rem; margin-block: .9rem .6rem; }
.bill-column-labels { display: none; }
.bill-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; gap: .45rem .6rem; min-width: 0; margin: 0; padding: .6rem 0 .2rem; border: 0; border-bottom: 1px solid var(--line); }
.bill-name, .bill-row-actions { grid-column: 1 / -1; }
.bill-form label { display: grid; gap: .15rem; min-width: 0; font-size: .875rem; font-weight: 690; }
.bill-form :is(input, select) { width: 100%; min-width: 0; min-height: 2.75rem; padding: .35rem .5rem; border: 1px solid var(--control-border); border-radius: .3rem; color: var(--text); background: #fff; font: inherit; font-weight: 500; }
.bill-form input[aria-invalid='true'] { border-color: #a74334; }
.take-home-pay { margin-bottom: .75rem; border-bottom: 1px solid var(--line); }
.take-home-pay summary { min-height: 2.75rem; padding: .55rem .15rem; color: var(--red-deep); font-weight: 700; }
.take-home-pay summary span { font-weight: 500; }
.pay-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem; max-width: 26rem; padding-bottom: .65rem; }
.take-home-pay .field-error { margin-bottom: .5rem; }
.bill-row-actions { display: flex; justify-content: space-between; gap: .4rem; align-items: flex-start; font-size: .875rem; }
.bill-quantity summary { min-height: 2.75rem; padding: .6rem .15rem; color: var(--red); white-space: nowrap; }
.bill-quantity label { width: 7rem; padding-bottom: .35rem; }
.bill-quantity-value { font-weight: 700; }
.text-button { min-height: 2.75rem; padding: .35rem .45rem; border: 0; background: transparent; color: var(--red); text-decoration: underline; text-underline-offset: .2em; }
.calculator-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .7rem; margin-block: .7rem; }
.calculator-actions button:disabled { border-color: var(--line); color: var(--muted); background: var(--linen); cursor: default; }
.bill-summary { position: sticky; top: 0; z-index: 1; align-self: start; padding: .7rem .8rem; border-top: 3px solid var(--red); border-bottom: 1px solid var(--line); background: var(--rose); }
.bill-totals { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .6rem; margin: 0; }
.bill-totals dt { font-size: .78rem; font-weight: 650; }
.bill-totals dd { margin: .1rem 0 0; font-size: clamp(.95rem, 2.2vw, 1.2rem); font-weight: 650; overflow-wrap: anywhere; }
.bill-total-main dd { color: var(--red-deep); font-family: var(--serif); font-size: clamp(1.15rem, 3vw, 1.65rem); font-weight: 500; line-height: 1.24; }
.bill-form :is(input, select, button, summary) { scroll-margin-top: 6rem; }
.monthly-balance { margin: .55rem 0 0; padding-top: .45rem; border-top: 1px solid var(--control-border); }
.monthly-balance > div { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .1rem .5rem; }
.monthly-balance dt { font-size: .82rem; font-weight: 690; }
.monthly-balance dd { margin: 0; color: var(--red-deep); font: 1.4rem/1.2 var(--serif); overflow-wrap: anywhere; }
.monthly-balance.is-shortfall dt { color: var(--red-deep); }
.bill-workspace:has(.monthly-balance:not([hidden])) .bill-form :is(input, select, button, summary) { scroll-margin-top: 9rem; }
.inflation-bar-row { margin-top: .7rem; }
.inflation-bar-row p { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .1rem .5rem; font-size: .92rem; }
.inflation-bar { height: .55rem; margin-top: .22rem; background: var(--line); }
.inflation-bar::before { content: ''; display: block; width: var(--cost-share); height: 100%; background: var(--red); }
.inflation-bar-today::before { background: #bc8379; }
.inflation-difference { margin-top: .85rem; font-weight: 650; }

.feedback-page { padding-block: clamp(1.5rem, 4vw, 3rem); }
.feedback-back { color: var(--red-deep); font-weight: 680; }
.feedback-page h1 { font-size: clamp(2.55rem, 6vw, 4.5rem); }
.feedback-page > p { max-width: 39rem; }
.feedback-form { display: grid; justify-items: start; gap: .75rem; max-width: 37rem; margin-top: 1.25rem; padding-block: 1rem; border-top: 1px solid var(--line); }
.feedback-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; width: 100%; }
.feedback-form label { display: grid; gap: .25rem; width: 100%; min-width: 0; font-weight: 680; }
.feedback-form :is(select, textarea) { width: 100%; min-height: 2.75rem; padding: .55rem .6rem; border: 1px solid var(--control-border); border-radius: .25rem; color: var(--text); background: #fff; font: inherit; font-weight: 500; }
.feedback-form textarea { resize: vertical; }
.feedback-status:not(:empty) { margin-top: .45rem; }

@media (min-width: 52rem) {
  .bill-workspace { grid-template-columns: minmax(0, 1fr) minmax(12rem, .31fr); column-gap: 1.2rem; }
  .bill-summary { grid-area: 1 / 2; top: 1rem; padding: 1rem 1.15rem; }
  .bill-totals { grid-template-columns: minmax(0, 1fr); gap: .55rem; }
  .bill-total-main dd { font-size: clamp(1.7rem, 3vw, 2.35rem); }
  .bill-form { grid-area: 1 / 1; }
  .bill-form :is(input, select, button, summary), .bill-workspace:has(.monthly-balance:not([hidden])) .bill-form :is(input, select, button, summary) { scroll-margin-top: 1rem; }
  .monthly-balance > div { display: block; }
  .monthly-balance dd { margin-top: .18rem; font-size: 1.8rem; }
  .bill-row, .bill-column-labels { grid-template-columns: minmax(0, 1.45fr) minmax(5.5rem, .8fr) minmax(7.2rem, 1fr) 10.5rem; column-gap: .6rem; }
  .bill-column-labels { display: grid; color: var(--muted); font-size: .875rem; font-weight: 690; }
  .bill-name, .bill-row-actions { grid-column: auto; }
  .bill-row > label > span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
}

@media (max-width: 50rem) {
  .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-layout { gap: 1.5rem; }
}

@media (max-width: 39rem) {
  .container { width: calc(100% - 2rem); }
  .topbar { min-height: auto; display: grid; grid-template-columns: minmax(0, 1fr); gap: .35rem; padding-block: .65rem .25rem; }
  .navigation { justify-content: space-between; gap: 0 .4rem; }
  .navigation a { display: inline-flex; align-items: center; justify-content: center; min-width: 2.75rem; min-height: 2.75rem; font-size: .875rem; }
  .hero-layout, .home-hero .hero-layout, .card-grid, .map-layout, .service-list, .guide-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-layout { gap: 1.3rem; }
  .hero-photo { min-height: 0; aspect-ratio: 1.6; border-radius: .85rem; }
  .home-hero .hero-layout { gap: .85rem; padding-block: 1.2rem; }
  .home-hero .hero-photo { aspect-ratio: auto; height: 5.5rem; }
  .home-hero .hero-photo img { object-position: center 51%; }
  .home-hero .hero-photo figcaption { right: .4rem; bottom: .4rem; font-size: .75rem; }
  .quick-find { margin-top: .85rem; }
  .content-section { padding-block: 1.8rem; }
  .section-heading { flex-direction: column; }
  .event { position: relative; grid-template-columns: 2.6rem minmax(0, 1fr); gap: .25rem .75rem; padding-inline: .75rem; }
  .event .overview-trigger::after { content: ''; position: absolute; inset: 0; }
  .event:focus-within { outline: 2px solid var(--red); outline-offset: -2px; }
  .event-date { grid-row: span 2; }
  .event-source { grid-column: 2; text-align: left; }
  .map-readout { display: block; font-weight: 700; }
  .calculator-layout { grid-template-columns: minmax(0, 1fr); }
  .calculator-layout form { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .65rem; padding-inline: 0; }
  .calculator-layout form > :first-child, .calculator-layout .field-error { grid-column: 1 / -1; }
  .bill-form :is(input, select) { font-size: 1rem; }
  .feedback-fields { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 22rem) {
  .brand { gap: .42rem; }
  .navigation { gap: 0 .25rem; }
  .navigation a { font-size: .8rem; }
  .home-hero h1 { font-size: 2.2rem; }
}
