/* NWLEPG, direction C: Service Desk. Mobile-first, one accent, one radius, 8px grid. */
@font-face {
  font-family: "Inter";
  src: url("InterVariable-latin.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #15262e;
  --muted: #4b5d64;
  --accent: #0f5c5a;
  --accent-deep: #0b4745;
  --accent-ink: #143f52;
  --accent-wash: #e1eeec;
  --accent-line: #5f9690;
  --bg: #f4f7f7;
  --surface: #ffffff;
  --line: #d6e0e0;
  --line-soft: #e6eded;
  --wheat: #d9b86a;
  --wheat-wash: #f6edd6;
  --wheat-line: #e6d19c;
  --wheat-ink: #5a420c;
  --warn-bg: var(--wheat-wash);
  --warn-ink: var(--wheat-ink);
  --r: 8px;
  --tap: 44px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --qbar: 64px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  color: var(--ink);
  background: var(--bg);
  font-feature-settings: "cv11", "ss01";
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-underline-offset: 2px; }
a:hover { color: var(--accent-deep); }
h1, h2, h3 { color: var(--accent-ink); line-height: 1.2; letter-spacing: -0.015em; margin: 0 0 8px; }
h1 { font-size: 28px; font-weight: 700; letter-spacing: -0.025em; }
h2, .h3 { font-size: 20px; font-weight: 650; }
h3, .h3 { font-size: 17px; font-weight: 650; }
p { margin: 0 0 16px; }
address { font-style: normal; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.nw { white-space: nowrap; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.i { width: 20px; height: 20px; flex: none; }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
main:focus { outline: none; }

.skip {
  position: absolute; left: 8px; top: -64px; z-index: 50;
  background: var(--accent); color: #fff; padding: 12px 16px; border-radius: var(--r); font-weight: 600;
}
.skip:focus { top: 8px; color: #fff; }

.wrap { width: 100%; max-width: 1160px; margin: 0 auto; padding-inline: 16px; }

/* ---------- header ---------- */
.top { background: var(--surface); border-bottom: 1px solid var(--line); position: relative; z-index: 20; }
.top-in { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 16px; min-height: 64px; padding-top: 8px; padding-bottom: 8px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); min-height: var(--tap); flex: 1 1 0; min-width: 0; }
.menu-btn { flex: none; }
.brand-logo { height: 52px; width: auto; flex: none; color: var(--accent-ink); display: block; }
.brand-tx { display: flex; flex-direction: column; }
.brand-s { font-weight: 700; font-size: 17px; letter-spacing: 0.02em; color: var(--accent-ink); line-height: 1.1; }
.brand-l { font-size: 13px; line-height: 1.3; color: var(--accent-ink); font-weight: 550; max-width: 170px; }
.menu-btn {
  display: inline-flex; align-items: center; gap: 8px; min-height: var(--tap); padding: 0 12px;
  border: 1px solid var(--line); border-radius: var(--r); background: var(--surface);
  font: 600 15px var(--font); color: var(--accent-ink); cursor: pointer; text-decoration: none;
  appearance: none; -webkit-appearance: none; margin: 0;
}
.menu-btn[hidden] { display: none; }
.nav { width: 100%; display: none; scroll-margin-top: 80px; }
.nav:target, .nav.is-open { display: block; padding-bottom: 8px; }
.nav:target ul, .nav.is-open ul { flex-direction: column; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px; }
.nav a {
  display: flex; align-items: center; justify-content: center; min-height: var(--tap); min-width: var(--tap); padding: 0 12px; border-radius: var(--r);
  text-decoration: none; color: var(--ink); font-weight: 550; font-size: 15px;
}
.nav a:hover { background: var(--accent-wash); color: var(--accent-deep); }
.nav a[aria-current="page"] { color: var(--accent); box-shadow: inset 0 -2px 0 var(--accent); border-radius: var(--r) var(--r) 0 0; }
.nav:target a[aria-current="page"], .nav.is-open a[aria-current="page"] { box-shadow: inset 3px 0 0 var(--accent); border-radius: 0 var(--r) var(--r) 0; }
.mycty { display: none; }

/* ---------- page head ---------- */
.phead { background: var(--surface); border-bottom: 1px solid var(--line-soft); padding: 16px 0 24px; }
.phead .lead { font-size: 17px; color: var(--muted); max-width: 64ch; margin: 8px 0 0; }
.phead .pill { margin: 8px 0 0; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; align-items: center; gap: 0 6px; margin: 0 0 8px; padding: 0; font-size: 14px; }
.crumbs li + li::before { content: "/"; color: var(--line); margin-right: 4px; }
.crumbs a { color: var(--muted); display: inline-flex; align-items: center; justify-content: center; min-height: var(--tap); min-width: var(--tap); }
.crumbs [aria-current] { color: var(--muted); display: inline-flex; align-items: center; min-height: var(--tap); }
.page { padding-top: 24px; padding-bottom: 48px; }
.page > section, .page > .gets, .page > .cols, .page > details { margin-bottom: 40px; }
.sec-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin-bottom: 8px; }
.sec-head h2 { margin: 0; }

/* ---------- launcher ---------- */
.launch { background: linear-gradient(180deg, var(--surface) 0, #f8f4e9 100%); border-bottom: 1px solid var(--line); padding: 24px 0 32px; }
.launch h1 { font-size: 32px; margin-bottom: 4px; }
.launch-call { color: var(--muted); margin-bottom: 20px; }
.launch-call a { font-weight: 600; white-space: nowrap; }
.tiles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.tile {
  position: relative; display: flex; flex-direction: column; gap: 4px; height: 100%; min-height: 136px;
  padding: 16px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface);
  text-decoration: none; color: var(--ink);
}
.tile-ic {
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: var(--r);
  background: var(--wheat-wash); color: var(--accent-ink); margin-bottom: 8px; box-shadow: inset 0 0 0 1px var(--wheat-line);
}
.tile-ic .i { width: 24px; height: 24px; }
.tile-t { font-weight: 650; font-size: 16px; line-height: 1.25; color: var(--accent-ink); }
.tile-s { font-size: 13px; line-height: 1.35; color: var(--muted); }
.tile:hover { border-color: var(--accent); color: var(--ink); }
.tile:hover .tile-ic { background: var(--accent); color: #fff; box-shadow: none; }
.tile-map .tile-ic { background: var(--surface); box-shadow: none; }
.tile-map:hover .tile-ic { background: var(--surface); }
.tile:active { background: var(--accent-wash); }

/* ---------- bands ---------- */
.band { padding: 32px 0; }
.band + .band { border-top: 1px solid var(--line-soft); }
.band h2 { margin-bottom: 16px; }
.split { display: grid; gap: 24px; }
.mission { font-size: 17px; max-width: 60ch; }
.link { font-weight: 600; }
.office-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 16px; }
.office-card address { margin-bottom: 16px; }
.office-acts { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.office-acts .btn { flex: 1 1 200px; }

/* programs */
.progs { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.prog a {
  height: 100%; display: flex; align-items: center; gap: 12px; min-height: 72px; padding: 12px 16px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); text-decoration: none; color: var(--ink);
}
.prog a:hover { border-color: var(--accent); }
.prog-ic { display: grid; place-items: center; width: 40px; height: 40px; border-radius: var(--r); background: var(--wheat-wash); color: var(--accent-ink); flex: none; box-shadow: inset 0 0 0 1px var(--wheat-line); }
.prog-closed .prog-s { color: var(--wheat-ink); font-weight: 600; }
.prog-live .prog-ic { background: var(--accent); color: #fff; box-shadow: none; }
.prog-tx { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.prog-t { font-weight: 650; color: var(--accent-ink); }
.prog-s { font-size: 14px; color: var(--muted); }
.prog-live .prog-s { color: var(--accent); font-weight: 600; }
.i-go { color: var(--muted); }

/* ---------- buttons, pills ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: var(--tap);
  padding: 0 16px; border-radius: var(--r); border: 1px solid var(--accent-line); background: var(--surface);
  color: var(--accent-deep); font: 600 15px/1.2 var(--font); text-decoration: none; cursor: pointer;
}
.btn:hover { background: var(--accent-wash); color: var(--accent-deep); border-color: var(--accent); }
.btn-primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-deep); border-color: var(--accent-deep); color: #fff; }
.btn-quiet { border-color: #768a8d; color: var(--ink); }
.btn-wide { width: 100%; }
.js [data-nojs] { display: none; }

.pill {
  display: inline-flex; align-items: center; gap: 4px; min-height: 24px; padding: 2px 8px; border-radius: var(--r);
  background: #edf1f1; color: var(--muted); font-size: 12.5px; font-weight: 600; line-height: 1.2; white-space: nowrap; vertical-align: middle;
}
.pill .i { width: 16px; height: 16px; }
.pill-fill { background: var(--accent-wash); color: var(--accent-deep); }
.pill-plain { background: transparent; border: 1px solid var(--line); }
.pill-warn { background: var(--warn-bg); color: var(--warn-ink); box-shadow: inset 0 0 0 1px var(--wheat-line); }
.pill-live { background: var(--accent); color: #fff; font-size: 14px; min-height: 32px; padding: 4px 12px; }

/* ---------- county picker ---------- */
.chips-form fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.chips-form legend { font-size: 15px; color: var(--muted); margin-bottom: 12px; padding: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chip label {
  display: inline-flex; align-items: center; min-height: var(--tap); padding: 0 14px; border-radius: var(--r);
  border: 1px solid #768a8d; background: var(--surface); font-weight: 550; font-size: 15px; cursor: pointer; color: var(--ink);
}
.chip label:hover { border-color: var(--accent); }
.chip input:checked + label { background: var(--accent); border-color: var(--accent); color: #fff; }
.chip input:focus-visible + label { outline: 3px solid var(--accent); outline-offset: 2px; }
.chips-form .btn { margin-top: 12px; }
.home-dept:not(:empty) { margin-top: 16px; }

.cty-form label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 4px; }
.cty-row { display: flex; gap: 8px; }
select, input[type="text"], input[type="email"], input[type="search"], textarea {
  font: 16px/1.4 var(--font); color: var(--ink); background: var(--surface);
  border: 1px solid #768a8d; border-radius: var(--r); min-height: 48px; padding: 10px 12px; width: 100%;
}
select {
  appearance: none; padding-right: 40px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23143f52' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6.5 9.5 5.5 5.5 5.5-5.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; background-size: 20px;
}
select:hover, input:hover, textarea:hover { border-color: var(--accent); }
textarea { resize: vertical; min-height: 144px; }

/* twelve-county map (geometry from direction B) */
.cty-split { display: grid; gap: 16px; }
.cmap-wrap { max-width: 340px; }
.cmap { width: 100%; height: auto; display: block; font-family: var(--font); }
.cmap-n path { fill: none; stroke: #b9c6c7; stroke-width: 1.5; stroke-dasharray: 6 6; }
.cmap-n text { fill: #5a6b6e; font-size: 19px; text-anchor: middle; }
.cmap-m path { fill: var(--surface); stroke: var(--accent-ink); stroke-width: 2; }
.cmap-m text { fill: var(--accent-ink); font-size: 22px; font-weight: 600; text-anchor: middle; pointer-events: none; }
.mc { cursor: pointer; }
.mc:hover path { fill: var(--wheat-wash); }
.mc.is-sel path { fill: var(--accent); }
.mc.is-sel text { fill: #fff; }
.cmap-colby { fill: var(--wheat); stroke: var(--accent-ink); stroke-width: 2.5; pointer-events: none; }
.cmap-cl { fill: var(--accent-ink); font-size: 16px; font-weight: 700; pointer-events: none; }
.mc.is-sel ~ .cmap-cl { fill: #fff; }
.mmap { width: 48px; height: 48px; display: block; }
.tile-map .tile-ic { width: 48px; height: 48px; }
.mmap path { fill: var(--wheat-wash); stroke: var(--accent-ink); stroke-width: 14; }
.mmap path.is-sel { fill: var(--accent); }
.mmap circle { fill: var(--wheat); stroke: var(--accent-ink); stroke-width: 10; }
.my .cmap-wrap { max-width: 300px; }

/* dept cards */
.depts { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.dept { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 16px; display: flex; flex-direction: column; align-items: flex-start; gap: 8px; scroll-margin-top: 16px; }
.dept-h { display: flex; align-items: center; justify-content: space-between; gap: 8px; width: 100%; }
.dept h3 { margin: 0; }
.dept-m { margin: 0; font-size: 14px; color: var(--muted); overflow-wrap: anywhere; }
.dept.is-mine { border-color: var(--accent); box-shadow: inset 4px 0 0 var(--accent); }
.my { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 16px; scroll-margin-top: 16px; }
.my .cty-form { max-width: 420px; margin-bottom: 8px; }
.my .muted.small { margin: 0; }
.my-slot:not(:empty) { margin-top: 16px; }
.my-slot .dept { border-color: var(--accent); background: #f6fbfa; }
.mine-tag { font-size: 13px; font-weight: 650; color: var(--accent); margin-bottom: -4px; }

/* ---------- document rows ---------- */
.docs-l { list-style: none; margin: 0; padding: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); }
.docs-l li + li { border-top: 1px solid var(--line-soft); }
.doc { display: flex; align-items: center; gap: 12px; min-height: 64px; padding: 12px 16px; text-decoration: none; color: var(--ink); }
.doc:hover { background: #f7fafa; color: var(--ink); }
.docs-l li:first-child .doc { border-radius: var(--r) var(--r) 0 0; }
.docs-l li:last-child .doc { border-radius: 0 0 var(--r) var(--r); }
.doc-ic { display: grid; place-items: center; width: 36px; height: 36px; border-radius: var(--r); background: var(--wheat-wash); color: var(--accent-ink); flex: none; box-shadow: inset 0 0 0 1px var(--wheat-line); }
.doc-tx { display: flex; flex-direction: column; flex: 1; min-width: 0; gap: 2px; }
.doc-t { font-weight: 600; color: var(--accent-ink); line-height: 1.3; }
.doc-m { font-size: 13px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: center; }
.doc-n { font-size: 14px; color: var(--ink); }
.doc-go { color: var(--accent); flex: none; }
.docs-big .doc { min-height: 72px; }

/* ---------- forms index ---------- */
.tasks { display: grid; gap: 16px; }
.task h3 { font-size: 15px; color: var(--muted); font-weight: 600; margin-bottom: 8px; }
.fam { list-style: none; margin: 0; padding: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); }
.fam li + li { border-top: 1px solid var(--line-soft); }
.fam a { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 6px 12px; min-height: 60px; padding: 12px 12px 12px 16px; text-decoration: none; color: var(--ink); }
.fam a:hover { background: #f7fafa; }
.fam-t { font-weight: 600; color: var(--accent-ink); line-height: 1.3; grid-column: 1; }
.fam-m { display: flex; flex-wrap: wrap; gap: 4px; grid-column: 1; }
.fam .i-go { grid-column: 2; grid-row: 1 / span 2; }
.fam-inline a { min-height: 52px; }
#permits, #all { scroll-margin-top: 16px; }

.filters {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 12px; margin-bottom: 12px;
  display: grid; gap: 12px;
}
.filters label { font-weight: 600; font-size: 14px; display: block; margin-bottom: 4px; }
.f-input { position: relative; }
.f-input .i { position: absolute; left: 12px; top: 14px; color: var(--muted); }
.f-input input { padding-left: 40px; }
.f-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 12px; align-items: end; }
.f-check { grid-column: 1 / -1; display: flex; align-items: center; gap: 8px; min-height: var(--tap); }
.f-check label { margin: 0; font-weight: 550; font-size: 15px; cursor: pointer; }
.f-check input { width: 24px; height: 24px; accent-color: var(--accent); margin: 0; }
.count { font-size: 14px; font-weight: 600; color: var(--muted); margin: 0 0 8px; }
.docs > .small { margin-top: 12px; }
input[type="search"]::-webkit-search-cancel-button { filter: grayscale(1) brightness(0.5); cursor: pointer; }
.empty { background: var(--surface); border: 1px dashed var(--line); border-radius: var(--r); padding: 16px; }

.tbl-wrap { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.tbl { width: 100%; border-collapse: collapse; font-size: 15px; }
.tbl th, .tbl td { text-align: left; padding: 12px 16px; vertical-align: top; }
.roster tbody th { font-weight: 400; color: var(--ink); }
.tbl tbody tr + tr th { border-top: 1px solid var(--line-soft); }
.tbl thead th { font-size: 13px; color: var(--muted); font-weight: 600; background: #f8fafa; border-bottom: 1px solid var(--line); }
.tbl tbody tr + tr td { border-top: 1px solid var(--line-soft); }
.dt { table-layout: fixed; }
.dt + .dt { border-top: 1px solid var(--line); }
.dt-cap { caption-side: top; text-align: left; background: #f1f6f5; color: var(--accent-ink); font-size: 14px; font-weight: 650; padding: 10px 16px; border-bottom: 1px solid var(--line-soft); }
.dt-h-rep { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.dt[hidden] { display: none; }
.dt-a { font-weight: 600; color: var(--accent-ink); display: flex; align-items: center; min-height: var(--tap); margin: -10px 0 -4px; padding: 6px 0; text-decoration: none; }
.dt-a:hover { text-decoration: underline; }
.dt-a:hover { color: var(--accent); }
.dt-n { display: block; font-size: 14px; color: var(--muted); }
.dt-n::first-letter, .doc-n::first-letter { text-transform: uppercase; }
.dt td .pill + .pill { margin-left: 4px; }
.dt-s { color: var(--muted); font-size: 14px; white-space: nowrap; }
.dt-ty { white-space: nowrap; }
@media (min-width: 720px) { .dt-ty { width: 190px; } .dt-s { width: 150px; } }
.dt [hidden] { display: none; }

@media (max-width: 719.98px) {
  .dt thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .dt, .dt tbody, .dt tr, .dt td, .dt th { display: block; }
  .dt caption { display: block; }
  .dt tr[data-doc] { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; padding: 12px 16px; }
  .dt tr[data-doc][hidden] { display: none; }
  .dt tr[data-doc] td { padding: 0; border: 0 !important; }
  .dt tr[data-doc] td:first-child { grid-column: 1 / -1; }
  .dt tbody tr + tr { border-top: 1px solid var(--line-soft); }
  .dt-s { text-align: right; }
  .roster thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .roster, .roster tbody, .roster td { display: block; }
  .roster tr { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; padding: 12px 16px; }
  .roster td { padding: 0; border: 0 !important; }
  .roster th, .roster td { display: block; }
  .roster th { padding: 0; border: 0 !important; }
  .roster tbody th { grid-column: 1; grid-row: 2; font-size: 14px; color: var(--muted); }
  .roster td:nth-child(2) { grid-column: 1; grid-row: 1; font-weight: 600; color: var(--accent-ink); }
  .roster td:nth-child(3) { grid-column: 2; grid-row: 1 / span 2; align-self: center; text-align: right; font-size: 14px; }
  .roster tbody tr + tr { border-top: 1px solid var(--line-soft); }
}

/* ---------- form family page ---------- */
.gets { display: grid; gap: 12px; }
.get { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 16px; display: flex; flex-direction: column; align-items: flex-start; }
.get-ic { display: grid; place-items: center; width: 40px; height: 40px; border-radius: var(--r); background: var(--wheat-wash); color: var(--accent-ink); margin-bottom: 12px; box-shadow: inset 0 0 0 1px var(--wheat-line); }
.get h3, .get .h3 { margin-bottom: 4px; }
.get .muted { font-size: 15px; flex: 1; }
.get .btn { width: 100%; }
.get-m { font-size: 13px; color: var(--muted); margin: 8px 0 0; }
.get-hero { border-color: var(--accent); }
.cols { display: grid; gap: 24px; }
.quote { margin: 0 0 16px; padding: 4px 0 4px 16px; border-left: 3px solid var(--accent); }
.quote blockquote { margin: 0; }
.quote p { font-size: 17px; margin: 0 0 8px; max-width: 62ch; }
.quote figcaption { font-size: 13px; color: var(--muted); }
.note { display: flex; gap: 8px; align-items: flex-start; background: var(--accent-wash); border-radius: var(--r); padding: 12px 16px; color: var(--accent-ink); max-width: 70ch; }
.note .i { margin-top: 2px; color: var(--accent); }
.note-closed { background: var(--wheat-wash); color: var(--wheat-ink); box-shadow: inset 0 0 0 1px var(--wheat-line); margin-bottom: 24px; font-weight: 550; }
.note-closed .i { color: var(--wheat-ink); }
.ret { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 16px; align-self: start; }
.ret p { margin-bottom: 4px; font-weight: 600; }
.ret address { margin-bottom: 12px; }
.ret-l { list-style: none; margin: 0; padding: 0; }
.ret-l a, .ret-l span { display: flex; align-items: center; gap: 8px; min-height: var(--tap); overflow-wrap: anywhere; }
.ret-l span { color: var(--muted); }
.older { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 0 16px; }
.older summary { min-height: 52px; display: flex; align-items: center; justify-content: space-between; gap: 12px; font-weight: 600; cursor: pointer; color: var(--accent-ink); list-style: none; }
.older summary::-webkit-details-marker { display: none; }
.older summary .i { color: var(--accent); transform: rotate(90deg); }
.older[open] summary .i { transform: rotate(-90deg); }
.older[open] { padding-bottom: 16px; }
.older .docs-l { margin-top: 8px; }

/* ---------- about, services ---------- */
.county-list, .tags { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.county-list a { display: inline-flex; align-items: center; min-height: var(--tap); padding: 0 14px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); text-decoration: none; font-weight: 550; color: var(--accent-ink); }
.county-list a:hover { border-color: var(--accent); }
.tags li { padding: 6px 12px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line-soft); font-size: 15px; }
.foot-note { font-size: 14px; color: var(--muted); margin-top: 12px; max-width: 70ch; }
.ticks, .svc { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.ticks li { position: relative; padding-left: 20px; max-width: 72ch; }
.ticks li::before { content: ""; position: absolute; left: 4px; top: 10px; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.svc { gap: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); margin-bottom: 16px; }
.svc li { display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 8px 16px; }
.svc li + li { border-top: 1px solid var(--line-soft); }
.i-dot { color: var(--accent); }
.prose { max-width: 70ch; }
.prose ul { padding-left: 20px; margin: 0 0 16px; }
.prose li { margin-bottom: 6px; }
.callout { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 16px; }
.callout p { margin: 0; color: var(--muted); }
.acts { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.act { display: flex; align-items: center; gap: 12px; min-height: 64px; padding: 12px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); text-decoration: none; color: var(--ink); }
.act > span { display: flex; flex-direction: column; }
.act .i { color: var(--accent); width: 24px; height: 24px; }
.act:hover { border-color: var(--accent); }
.acts-row { display: flex; flex-wrap: wrap; gap: 8px; }

/* board */
.year { margin-top: 24px; }
.year h3 { font-size: 15px; color: var(--muted); margin-bottom: 8px; }
.meet { list-style: none; margin: 0; padding: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); }
.meet li { display: grid; gap: 4px; padding: 12px 16px; }
.meet li + li { border-top: 1px solid var(--line-soft); }
.meet-d { font-weight: 650; color: var(--accent-ink); }
.meet-docs { display: flex; flex-direction: column; gap: 0 24px; }
@media (min-width: 720px) { .meet-docs { flex-direction: row; flex-wrap: wrap; } }
.meet-docs a { display: inline-flex; align-items: center; gap: 6px; min-height: var(--tap); text-decoration: none; }
.meet-docs a span:first-of-type { text-decoration: underline; text-underline-offset: 2px; }
.meet-docs a:hover span:first-of-type { text-decoration-thickness: 2px; }
.meet-docs .i { color: var(--accent); }

/* grant */
.tiers td strong { color: var(--accent-ink); font-size: 17px; }
.steps { list-style: none; counter-reset: s; margin: 0; padding: 0; display: grid; gap: 8px; max-width: 72ch; }
.steps li { counter-increment: s; position: relative; padding: 12px 16px 12px 56px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); min-height: 56px; }
.steps li::before { content: counter(s); position: absolute; left: 16px; top: 12px; width: 28px; height: 28px; border-radius: var(--r); background: var(--accent-wash); color: var(--accent-deep); font-weight: 700; display: grid; place-items: center; font-size: 14px; }
.letter { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 24px 16px; max-width: 760px; }
.letter p { max-width: 66ch; }
.letter p:last-child { margin-bottom: 0; color: var(--accent-ink); font-weight: 550; }

/* contact */
.cform { display: grid; gap: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 16px; }
.fld label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 4px; }
.fld .muted { font-weight: 400; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-status { margin: 0; font-weight: 600; color: var(--accent-ink); }
.form-status:empty { display: none; }

/* ---------- footer ---------- */
.foot { background: var(--surface); border-top: 1px solid var(--line); padding: 32px 0 calc(16px + var(--qbar) + env(safe-area-inset-bottom)); font-size: 15px; }
.foot h2 { font-size: 15px; font-weight: 650; margin-bottom: 12px; color: var(--accent-ink); }
.foot-grid { display: grid; gap: 32px; }
.foot p { margin-bottom: 4px; }
.foot address { margin-bottom: 8px; }
.tel { display: inline-flex; align-items: center; gap: 8px; min-height: var(--tap); font-weight: 650; font-size: 17px; }
.foot-office a { display: inline-flex; align-items: center; min-height: var(--tap); }
.foot-dept { margin-top: 12px; }
.foot-dept .small, .home-dept .small { margin-top: 8px; }
.foot-dept .dept { padding: 12px; }
.foot-nav ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.foot-nav a { display: inline-flex; align-items: center; min-height: var(--tap); }
.foot-base { margin-top: 24px; color: var(--muted); font-size: 14px; }
.foot-base p { border-top: 1px solid var(--line-soft); padding-top: 16px; margin: 0; }

/* ---------- quick bar (phones) ---------- */
.qbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: grid; grid-template-columns: repeat(3, 1fr);
  background: rgba(255, 255, 255, 0.97); border-top: 1px solid var(--line);
  padding-bottom: env(safe-area-inset-bottom);
}
.qbar a {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; height: var(--qbar);
  text-decoration: none; color: var(--accent-ink); font-size: 12.5px; font-weight: 600; min-width: 0; padding: 0 4px;
}
.qbar a span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.qbar a:first-child { color: var(--accent); }
.qbar .i { width: 24px; height: 24px; }
.qbar a:active { background: var(--accent-wash); }

/* ---------- wider screens ---------- */
@media (min-width: 560px) {
  .brand-l { max-width: none; }
}
@media (min-width: 720px) {
  .wrap { padding-inline: 24px; }
  h1 { font-size: 34px; }
  .launch { padding: 40px 0 48px; }
  .launch h1 { font-size: 40px; }
  .page { padding-top: 32px; }
  .tiles { grid-template-columns: repeat(3, 1fr); gap: 12px; }
  .tile { min-height: 152px; padding: 20px; }
  .progs { grid-template-columns: 1fr 1fr; }
  .progs .prog-live { grid-column: 1 / -1; }
  .depts { grid-template-columns: 1fr 1fr; }
  .gets { grid-template-columns: 1fr 1fr; }
  .gets-one { grid-template-columns: minmax(0, 420px); }
  .f-row { grid-template-columns: 1fr 1fr auto; }
  .f-check { grid-column: auto; }
  .acts { grid-template-columns: repeat(3, 1fr); }
  .meet li { grid-template-columns: 200px 1fr; align-items: center; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .letter { padding: 32px; }
}
@media (min-width: 960px) {
  .foot { padding-bottom: 16px; }
  .qbar { display: none; }
  .top { position: sticky; top: 0; }
  .split { grid-template-columns: 1.4fr 1fr; gap: 48px; align-items: start; }
  .cty-split { grid-template-columns: 400px 1fr; gap: 40px; align-items: start; }
  .my .cty-split { grid-template-columns: 380px 1fr; }
  .cmap-wrap, .my .cmap-wrap { max-width: none; }
  .tasks { grid-template-columns: 1.3fr 1fr 1fr; align-items: start; }
  .cols { grid-template-columns: minmax(0, 1.6fr) minmax(280px, 1fr); gap: 40px; }
  .cols-contact { grid-template-columns: minmax(0, 1.4fr) minmax(280px, 1fr); }
  .foot-grid { grid-template-columns: 1.1fr 1.2fr 1fr; gap: 48px; }
  .filters { position: sticky; z-index: 5; top: 80px; box-shadow: 0 8px 16px -12px rgba(20, 63, 82, 0.25); grid-template-columns: minmax(280px, 1.2fr) 2fr; align-items: end; }
  #permits, #all, .dept, .my { scroll-margin-top: 88px; }
}
@media (min-width: 1200px) {
  /* Full desktop header: below 1200 the Menu button keeps the bar to one row. */
  .brand-l { max-width: 170px; }
  /* One row; under text-spacing overrides the nav and brand wrap inside themselves instead of overflowing (1.4.12). */
  .top-in { flex-wrap: nowrap; min-height: 72px; column-gap: 12px; }
  .nav { flex: 0 1 auto; min-width: 0; }
  .nav ul { justify-content: flex-end; }
  .brand { flex: 0 1 auto; margin-right: auto; }
  .mycty { flex: none; }
  .menu-btn { display: none; }
  .nav, .nav:target, .nav.is-open { display: block; width: auto; padding-bottom: 0; }
  .nav ul, .nav:target ul, .nav.is-open ul { flex-wrap: wrap; flex-direction: row; }
  .nav:target a[aria-current="page"], .nav.is-open a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--accent); border-radius: var(--r) var(--r) 0 0; }
  .nav a { padding: 0 9px; }
  .nav-contact a { margin-left: 8px; border: 1px solid var(--accent-line); color: var(--accent-deep); }
  .nav-contact a[aria-current="page"] { box-shadow: none; background: var(--accent-wash); border-radius: var(--r); }
  .mycty {
    display: inline-flex; align-items: center; gap: 6px; min-height: var(--tap); padding: 0 12px; border-radius: var(--r);
    background: var(--accent-wash); color: var(--accent-deep); font-weight: 600; font-size: 14px; text-decoration: none; white-space: nowrap;
  }
  .mycty:hover { background: var(--accent); color: #fff; }
  .wrap { padding-inline: 32px; }
  .progs { grid-template-columns: repeat(3, 1fr); }
  .progs .prog-live { grid-column: auto; }
  .tile { display: grid; grid-template-columns: 56px 1fr; grid-template-rows: auto auto; column-gap: 16px; align-content: center; min-height: 112px; padding: 20px 24px; }
  .tile-ic { grid-row: 1 / span 2; width: 56px; height: 56px; margin: 0; align-self: center; }
  .tile-ic .i { width: 28px; height: 28px; }
  .mmap, .tile-map .tile-ic { width: 56px; height: 56px; }
  .tile-t { font-size: 18px; align-self: end; }
  .tile-s { font-size: 15px; align-self: start; }
  .depts { grid-template-columns: repeat(3, 1fr); }
}

/* ---------- motion, only when welcome ---------- */
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
  .tile, .tile-ic, .btn, .prog a, .doc, .chip label, .dept, .mycty { transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease; }
  .tile:hover { transform: translateY(-2px); }
  .dept.is-flash { animation: flash 0.9s ease; }
  @keyframes flash { from { box-shadow: 0 0 0 4px var(--accent-line); } to { box-shadow: 0 0 0 0 transparent; } }
}

@media print {
  .qbar, .top, .foot, .filters, .skip { display: none !important; }
  body { padding: 0; background: #fff; }
}
