:root {
  color-scheme: light;
  --ink: #1a342d;
  --muted: #4e645a;
  --accent: #166653;
  --dark: #153a32;
  --ground: #f6f7f0;
  --line: #d6e2d8;
  --white: #fff;
  font: 16px/1.55 system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: var(--ground);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; min-width: 0; }
button, select { font: inherit; }
p { margin: 0; }
a { color: var(--accent); text-underline-offset: 3px; overflow-wrap: anywhere; }
:focus-visible { outline: 3px solid #258c74; outline-offset: 4px; }
h1, h2, h3 { line-height: 1.16; margin: 0; letter-spacing: -.025em; overflow-wrap: anywhere; }
h1 { font-size: clamp(42px, 7vw, 72px); font-weight: 790; }
h2 { font-size: clamp(24px, 3vw, 34px); }
h3 { font-size: clamp(18px, 2vw, 21px); }
.wrap { width: min(1120px, calc(100% - 36px)); margin-inline: auto; }
.skip-link { position: fixed; top: 8px; left: 8px; z-index: 10; background: white; padding: 10px; transform: translateY(-150%); }
.skip-link:focus { transform: none; }
.masthead { background: var(--dark); border-bottom: 1px solid #326053; color: white; padding-top: env(safe-area-inset-top, 0px); }
.header-inner, .foot-inner { display: flex; align-items: center; justify-content: space-between; gap: 14px; min-height: 66px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-size: 18px; font-weight: 780; text-decoration: none; }
.brand img { border-radius: 9px; }
.masthead a { color: #f4fbf5; }
.back-link { display: inline-flex; align-items: center; min-height: 44px; font-size: 14px; }
.intro { display: flex; justify-content: space-between; align-items: end; gap: 24px; padding: clamp(28px, 5vw, 62px) 0 24px; }
.intro p { max-width: 52ch; margin-top: 9px; color: var(--muted); font-size: 17px; }
.district-label, .category-label { display: grid; gap: 6px; font-weight: 700; font-size: 14px; }
.district-label { min-width: min(215px, 100%); }
select {
  color: var(--ink); background: white; border: 1px solid #8da99b; border-radius: 8px;
  padding: 8px 10px; width: 100%; min-height: 44px; font-size: 16px;
}
.section-nav { display: flex; flex-wrap: wrap; gap: 2px 18px; border-block: 1px solid var(--line); padding: 4px 0; }
.section-nav a { min-height: 44px; display: inline-flex; align-items: center; font-weight: 720; text-decoration-thickness: 1px; }
.block { margin-top: clamp(34px, 5vw, 62px); scroll-margin-top: 16px; }
.section-head { margin-bottom: 16px; }
.section-head p { margin-top: 6px; color: var(--muted); max-width: 62ch; }
.section-row { display: flex; gap: 12px 18px; justify-content: space-between; align-items: end; flex-wrap: wrap; }
.guides { background: #e7f0e5; border-radius: 16px; padding: clamp(16px, 4vw, 36px); }
.guide-list { display: grid; gap: 8px; }
.guide { background: white; border: 1px solid #cadccf; border-radius: 11px; }
.guide summary { font-weight: 770; font-size: clamp(16px, 2.2vw, 20px); padding: 12px 15px; cursor: pointer; touch-action: manipulation; min-height: 50px; }
.guide summary::marker { color: var(--accent); }
.guide[open] summary { border-bottom: 1px solid var(--line); }
.guide-body { padding: 15px; max-width: 72ch; }
.guide-body ol { margin: 10px 0; padding-left: 22px; }
.guide-body li + li { margin-top: 8px; }
.controls { margin-top: 12px; display: flex; flex-wrap: wrap; gap: 8px; }
.button {
  display: inline-flex; align-items: center; justify-content: center; text-align: center;
  color: white; background: var(--accent); border: 1px solid var(--accent); border-radius: 8px;
  min-height: 44px; padding: 8px 12px; font-weight: 720; font-size: 14px; text-decoration: none; cursor: pointer;
  touch-action: manipulation; overflow-wrap: anywhere;
}
.button.secondary { color: var(--accent); background: white; }
.button:disabled { opacity: .65; cursor: default; }
@media (hover:hover) and (pointer:fine) {
  .button:hover { background: #0d5443; color: white; }
  .button.secondary:hover { background: #edf5ed; color: var(--accent); }
}
.panel { min-width: 0; background: white; border: 1px solid var(--line); border-radius: 12px; padding: clamp(16px, 3vw, 23px); }
.agenda-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 14px; }
.own-plan { background: #fcf3df; border-color: #e8d9b8; }
.own-plan p, .info-body { color: var(--muted); margin: 7px 0 12px; }
.own-plan p { color: #624c29; }
.announcements { margin-top: 18px; }
.announcements ul { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 18px; }
.announcements ul a { display: inline-flex; align-items: center; min-height: 44px; }
.note { color: var(--muted); font-size: 14px; margin: 8px 0 12px; }
.network-note { margin-top: 16px; background: #fcf3df; border-radius: 10px; color: #65491d; padding: 12px; }
.switch { display: flex; background: white; border: 1px solid #aac3b6; padding: 3px; border-radius: 9px; }
.switch button { min-height: 40px; padding: 5px 16px; background: transparent; border: 0; border-radius: 6px; color: var(--ink); font-weight: 720; cursor: pointer; }
.switch button[aria-pressed="true"] { background: var(--dark); color: white; }
.category-label { width: min(330px,100%); }
.service-list { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
.service-type, .date { color: var(--accent); font-size: 13px; font-weight: 730; margin-bottom: 5px; }
.service-list .info-body { margin-bottom: 6px; }
.service-list .links { display: flex; gap: 3px 12px; flex-wrap: wrap; font-size: 14px; align-items: center; }
.service-list .links a, .text-button { min-height: 44px; display: inline-flex; align-items: center; }
.text-button { color: var(--accent); background: none; border: 0; padding: 0; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; font-size: 14px; }
.map-panel { margin-top: 12px; padding: 10px; }
#service-map { height: clamp(270px, 55vw, 430px); background: #e1ebe4; border-radius: 9px; position: relative; isolation: isolate; overflow: hidden; }
#map-notice:empty, #unmapped-services:empty { display: none; }
.resource-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; }
.resource { display: flex; flex-direction: column; scroll-margin-top: 16px; }
.resource audio { width: 100%; max-width: 100%; margin-top: auto; }
.resource .controls { gap: 7px; }
.timeline { display: grid; gap: 12px; }
.timeline .panel { display: grid; grid-template-columns: minmax(110px, .35fr) minmax(0,1fr); gap: 10px 18px; align-items: start; }
.timeline .panel h3 { margin-bottom: 6px; }
.source-link { color: var(--accent); font-size: 14px; }
.site-foot { margin-top: 56px; border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom, 0px); color: var(--muted); font-size: 13px; }
.foot-inner { flex-wrap: wrap; padding: 12px 0; }
#print-sheet { display: none; }
@media (max-width: 760px) {
  .intro { flex-direction: column; align-items: stretch; gap: 14px; }
  .district-label select { max-width: 400px; }
  .agenda-grid, .service-list, .resource-grid { grid-template-columns: 1fr; }
}
@media (max-width: 460px) {
  .timeline .panel { grid-template-columns: 1fr; }
  .section-nav { column-gap: 13px; }
  .section-nav a { font-size: 14px; }
}
@media print {
  body { background: white; }
  body[data-printing] > :not(#print-sheet) { display: none !important; }
  body[data-printing] #print-sheet { display: block; padding: 12mm; font-size: 14pt; }
  #print-sheet h1 { margin: 8mm 0 4mm; font-size: 28pt; }
  #print-sheet li { margin-bottom: 5mm; }
  #print-sheet .print-url { overflow-wrap: anywhere; font-size: 11pt; }
  audio, .controls, .switch, #service-map, .skip-link { display: none !important; }
}

.quick-nav { display:flex; align-items:center; justify-content:end; flex-wrap:wrap; gap:1px 13px; }
.quick-nav .back-link { white-space:nowrap; }
