:root {
  color-scheme: light;
  --brand: #087d66;
  --brand-dark: #075b4c;
  --ink: #183b34;
  --muted: #4e6761;
  --line: #dbe8e3;
  --mint: #eef8f4;
  --paper: #f7faf8;
}
* { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: var(--paper); font: 16px/1.65 system-ui, sans-serif; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { line-height: 1.35; }
a { color: var(--brand-dark); }
a:focus-visible, summary:focus-visible { outline: 3px solid #0c7a63; outline-offset: 3px; }
.container { width: min(100% - 32px, 1100px); margin-inline: auto; }
.site-header { background: white; border-bottom: 1px solid var(--line); }
.header-row { min-height: 64px; display: flex; justify-content: space-between; align-items: center; gap: 18px; }
.wordmark { color: var(--brand); text-decoration: none; font-weight: 850; font-size: 1.35rem; line-height: 1.1; }
.header-row > a:last-child { font-weight: 700; font-size: .9rem; min-height: 44px; display: inline-flex; align-items: center; }
.breadcrumbs { margin: 16px 0; }
.breadcrumbs ol { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: .2rem .6rem; }
.breadcrumbs li { font-size: .84rem; color: var(--muted); overflow-wrap: anywhere; }
.breadcrumbs li:not(:first-child)::before { content: "›"; margin-inline-end: .6rem; color: var(--brand); }
.hero { border: 1px solid var(--line); border-left: 4px solid var(--brand); border-radius: 16px; padding: clamp(19px, 4vw, 42px); background: linear-gradient(120deg, #fff 54%, #eff9f4); }
.hero h1 { margin-top: 10px; font-size: clamp(1.7rem, 5.4vw, 3.15rem); font-weight: 800; overflow-wrap: anywhere; }
.hero-address { margin-top: .65rem; color: var(--muted); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 19px; }
.badge { display: inline-block; width: fit-content; border-radius: 999px; padding: .25rem .7rem; background: #e2f4ec; color: #065847; font-size: .8rem; font-weight: 750; line-height: 1.45; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: .45rem; min-height: 46px; padding: .55rem .9rem; border-radius: 9px; border: 1px solid var(--line); background: white; color: var(--brand-dark); text-decoration: none; font-weight: 730; text-align: center; }
.button.primary { background: var(--brand); color: white; border-color: var(--brand); }
.detail-grid { display: grid; gap: 14px; margin-top: 14px; min-width: 0; }
.card { min-width: 0; padding: clamp(15px, 3vw, 25px); border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.card h2 { margin-bottom: .8rem; font-size: 1.23rem; }
.card p + p { margin-top: .55em; }
.card.stack { display: grid; gap: 14px; }
.stack { min-width: 0; display: grid; align-content: start; gap: 14px; }
.facility-map { position: relative; height: 230px; border: 1px solid var(--line); border-radius: 11px; overflow: hidden; background: var(--mint); }
.facility-map > .map-canvas, .map-fallback { position: absolute; inset: 0; }
.facility-map > .map-canvas { width: 100%; height: 100%; }
.map-fallback { display: grid; place-content: center; justify-items: center; gap: .4rem; padding: 10px; text-align: center; }
.map-fallback[hidden] { display: none; }
.map-pin { width: 25px; height: 25px; border-radius: 50% 50% 50% 1px; transform: rotate(-45deg); border: 2px solid white; background: var(--brand); box-shadow: 0 2px 5px #183b3460; }
.map-anchor { padding-top: .65rem; font-size: .87rem; }
.key-values { margin: 0; }
.key-values > div { display: grid; grid-template-columns: minmax(5rem, 28%) minmax(0, 1fr); gap: .6rem; padding: .58rem 0; border-bottom: 1px solid var(--line); }
.key-values > div:last-child { border-bottom: 0; padding-bottom: 0; }
.key-values dt { color: var(--muted); }
.key-values dd { margin: 0; font-weight: 660; overflow-wrap: anywhere; }
.station-name { font-size: 1.18rem; font-weight: 800; }
.station-distance { color: var(--brand-dark); font-weight: 720; margin-top: .2rem; }
.note { color: var(--muted); font-size: .85rem; margin-top: .4rem; }
.nearby { list-style: none; margin: 0; padding: 0; }
.nearby li { padding: 10px 0; border-bottom: 1px solid var(--line); min-width: 0; }
.nearby li:last-child { border-bottom: 0; }
.nearby a { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; min-height: 36px; line-height: 1.45; overflow-wrap: anywhere; }
.nearby small { display: block; color: var(--muted); }
.area-link { margin-top: .85rem; }
.ad-reserve { display: grid; text-align: center; place-items: center; min-height: 66px; border: 1px dashed #bdd1c8; border-radius: 12px; background: #f2f6f4; color: var(--muted); font-size: .83rem; }
.sources { margin-top: 14px; }
.sources ul { padding-inline-start: 1.2rem; margin: 0; }
.back-row { margin-block: 16px 24px; }
.site-footer { border-top: 1px solid var(--line); background: white; margin-top: 20px; }
.footer-row { padding-block: 19px; display: flex; gap: 8px 17px; flex-wrap: wrap; align-items: center; }
.footer-row > a:not(.wordmark) { font-size: .86rem; padding-block: 4px; }
.area-page h1 { font-size: clamp(1.55rem, 4.8vw, 2.4rem); margin-bottom: .3rem; }
@media (min-width: 780px) {
  .detail-grid { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 18px; margin-top: 18px; }
  .primary-column { grid-column: 1; }
  .secondary-column { grid-column: 2; }
  .facility-map { height: 325px; }
}
@media (max-width: 420px) {
  .hero-actions > a { width: 100%; }
}
@media (max-width: 779px) {
  .detail-grid > .stack { display: contents; }
  #vicinity { order: 1; }
  [aria-labelledby="profile-title"] { order: 2; }
  [aria-labelledby="operator-title"] { order: 3; }
  [aria-labelledby="station-title"] { order: 4; }
  [aria-labelledby="nearby-title"] { order: 5; }
  .ad-reserve { order: 6; }
}
