/* Fire Dept Finder (v0.25 brand). Station Navy, Signal Red, Brass, Paper. Mobile first. Its own stylesheet: nothing here comes from the Santa site.
   Fonts are self-hosted (SIL OFL, see /fonts/OFL-Barlow.txt and /fonts/OFL-PublicSans.txt): Barlow Semi Condensed for headings, menus and buttons, Public Sans for text. */
@font-face {
  font-family: "Barlow Semi Condensed";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/fonts/barlow-semi-condensed-700-latin.woff2) format("woff2");
}
@font-face {
  font-family: "Barlow Semi Condensed";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/fonts/barlow-semi-condensed-600-latin.woff2) format("woff2");
}
@font-face {
  font-family: "Public Sans";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url(/fonts/public-sans-latin.woff2) format("woff2");
}

:root {
  /* The brand */
  --navy: #13294b;
  --red: #c8102e;
  --brass: #c9a24a;
  --paper: #f6f3ec;
  --mist: #dde4ec;
  --night: #0b1522;
  /* Light theme */
  --ink: var(--night);
  --muted: #444f5d;
  --bg: var(--paper);
  --card: #ebeff4;
  --line: #c9d3de;
  --link: var(--navy);
  --heading: var(--navy);
  --accent: var(--red);
  --accent-dark: #a30d26;
  --on-accent: #ffffff;
  --field: #ffffff;
  --note-bg: #fbe9ec;
  --note-line: var(--red);
  --focus: var(--navy);
  --warn: #b00e29;
  --radius: 10px;
  --display: "Barlow Semi Condensed", "Arial Narrow", system-ui, sans-serif;
  --font: "Public Sans", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --ink: #ece9e1;
    --muted: #aab6c5;
    --bg: var(--night);
    --card: #12233a;
    --line: #2b4160;
    --link: #9fc2f2;
    --heading: var(--paper);
    --field: #0e1a2b;
    --note-bg: #2c1722;
    --note-line: #e04a63;
    --focus: var(--brass);
    --warn: #ff8d9b;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 84px; /* the navy bar is the only thing pinned (58 to 66 px); the 911 strip scrolls away */ }
body { margin: 0; font: 1.0625rem/1.6 var(--font); color: var(--ink); background: var(--bg); overflow-wrap: break-word; }
body.fd-menu-open { overflow: hidden; }
strong, b { font-weight: 600; }
a { color: var(--link); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
h1, h2, h3 { font-family: var(--display); font-weight: 700; line-height: 1.15; margin: 0 0 0.5em; color: var(--heading); letter-spacing: 0.005em; }
h1 { font-size: 2.1rem; }
h2 { font-size: 1.55rem; margin-top: 1.5em; }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
ul, ol { padding-left: 1.25em; }
.muted { color: var(--muted); }
.fd-small { font-size: 0.9rem; }
.fd-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.skip-link { position: absolute; left: -9999px; top: 0; background: var(--navy); color: #fff; padding: 12px 16px; z-index: 200; font-weight: 600; }
.skip-link:focus { left: 8px; top: 8px; outline-color: var(--brass); }

/* Layout: a 16px gutter on every width. */
.fd-wrap { width: 100%; max-width: 860px; margin: 0 auto; padding: 0 16px; }
.fd-wide { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 16px; }
.fd-main { padding-top: 20px; padding-bottom: 48px; min-height: 60vh; }

/* ---------- Buttons ---------- */
.fd-btn { display: inline-block; min-height: 48px; padding: 11px 22px; background: var(--accent); color: var(--on-accent); border: 2px solid var(--accent); border-radius: var(--radius); font-family: var(--display); font-size: 1.15rem; font-weight: 700; line-height: 1.3; text-decoration: none; cursor: pointer; text-align: center; margin: 0 8px 8px 0; }
.fd-btn:hover { background: var(--accent-dark); border-color: var(--accent-dark); color: var(--on-accent); }
.fd-btn-quiet { background: transparent; color: var(--link); border-color: var(--link); }
.fd-btn-quiet:hover { background: var(--card); color: var(--link); border-color: var(--link); }

/* ---------- Header ---------- */
/* The 911 strip is a sibling just before the header and scrolls away; only the navy bar is sticky (v0.26). */
.finder-header { position: sticky; top: 0; z-index: 40; background: var(--navy); color: #fff; box-shadow: 0 1px 0 rgba(0, 0, 0, 0.25); }
.finder-header :focus-visible, .finder-footer :focus-visible { outline-color: var(--brass); }
.fd-911 { margin: 0; background: var(--red); color: #fff; text-align: center; padding: 5px 16px; font-size: 0.875rem; line-height: 1.35; }
.fd-911 a { position: relative; color: #fff; font-weight: 600; text-decoration: underline; }
.fd-911 a::after { content: ""; position: absolute; inset: -14px -10px; } /* a 44 px tap area on a small line of text */
.fd-bar { display: flex; align-items: center; gap: 4px; max-width: 1240px; margin: 0 auto; padding: 6px 16px; min-height: 58px; }
.fd-brand { display: flex; align-items: center; margin-right: auto; padding: 4px 0; min-height: 44px; border-radius: 6px; }
.fd-brand img { display: block; height: 34px; width: auto; max-width: 100%; }
.fd-search-icon, .fd-nav-toggle, .fd-nav-close { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; color: #fff; background: transparent; border: 0; border-radius: 8px; font: 600 1.1rem/1 var(--display); letter-spacing: 0.02em; cursor: pointer; text-decoration: none; }
.fd-search-icon:hover, .fd-nav-toggle:hover, .fd-nav-close:hover { background: rgba(255, 255, 255, 0.12); }
.fd-nav-toggle { gap: 8px; padding: 0 12px; border: 2px solid rgba(246, 243, 236, 0.55); }
.fd-nav-toggle::before { content: ""; width: 18px; height: 12px; background: linear-gradient(currentColor 0 0) top / 100% 2px no-repeat, linear-gradient(currentColor 0 0) center / 100% 2px no-repeat, linear-gradient(currentColor 0 0) bottom / 100% 2px no-repeat; }
.fd-nav-close { padding: 0 14px; border: 2px solid rgba(246, 243, 236, 0.55); }
.fd-nav-top { display: none; }
.fd-bar-search { display: none; }

/* Menus */
.fd-menus { list-style: none; margin: 0; padding: 0; }
.fd-menu { position: relative; display: flex; align-items: center; }
.fd-menu-link { display: block; white-space: nowrap; padding: 12px 10px; min-height: 44px; font-family: var(--display); font-size: 1.15rem; font-weight: 700; line-height: 1.25; color: #fff; text-decoration: none; }
.fd-menu-link:hover { text-decoration: underline; text-decoration-color: var(--brass); text-decoration-thickness: 2px; text-underline-offset: 6px; }
.fd-menu-btn { display: none; align-items: center; justify-content: center; width: 44px; min-height: 44px; padding: 0; color: #fff; background: transparent; border: 0; border-radius: 8px; cursor: pointer; }
.fd-menu-btn:hover { background: rgba(255, 255, 255, 0.12); }
.fd-chev { transition: transform 0.15s; }
.fd-menu.is-open > .fd-menu-btn .fd-chev { transform: rotate(180deg); }
.fd-menu-panel { display: none; list-style: none; margin: 0; padding: 0; }
.fd-menu-panel a { display: block; padding: 12px 14px; min-height: 44px; font-weight: 600; color: inherit; text-decoration: none; border-radius: 6px; }
.fd-menu-panel a:hover { background: rgba(255, 255, 255, 0.12); text-decoration: underline; text-underline-offset: 3px; }
.fd-menu-note { padding: 12px 14px; font-size: 0.95rem; line-height: 1.45; }
.fd-menu-note a { display: inline; padding: 0; min-height: 0; text-decoration: underline; font-weight: 600; }
.fd-menu.is-open > .fd-menu-panel { display: block; }

.fd-nav-actions { display: flex; align-items: center; gap: 8px 16px; }
.fd-signin { display: inline-flex; white-space: nowrap; align-items: center; min-height: 44px; padding: 0 6px; color: #fff; font-size: 0.95rem; font-weight: 600; text-underline-offset: 4px; }
.fd-signin:hover { text-decoration-color: var(--brass); }
.fd-nav .fd-btn-claim { margin: 0; min-height: 44px; padding: 8px 18px; font-size: 1.1rem; white-space: nowrap; border-color: #fff; }
.fd-nav .fd-btn-claim:hover { background: var(--accent-dark); border-color: #fff; }

/* Without JavaScript the menus are plain links to real pages, wrapped under the logo. */
html:not(.fd-js) .fd-search-icon { display: inline-flex; }
html:not(.fd-js) .fd-bar { flex-wrap: wrap; }
html:not(.fd-js) .fd-nav { flex: 1 0 100%; display: block; padding-bottom: 8px; }
html:not(.fd-js) .fd-nav-toggle { display: none; }
html:not(.fd-js) .fd-menus { display: flex; flex-wrap: wrap; }
html:not(.fd-js) .fd-nav-actions { margin-top: 4px; flex-wrap: wrap; }

/* Phone and tablet, with JavaScript: the Menu button opens a full-screen panel. */
html.fd-js .fd-nav { display: none; }
html.fd-js .fd-nav.is-open { display: flex; flex-direction: column; position: fixed; inset: 0; z-index: 100; background: var(--navy); overflow-y: auto; overscroll-behavior: contain; padding: 0 16px 24px; }
html.fd-js .fd-nav.is-open .fd-nav-top { display: flex; align-items: center; justify-content: space-between; min-height: 58px; padding: 6px 0; }
.fd-nav-name { font-family: var(--display); font-size: 1.25rem; font-weight: 700; letter-spacing: 0.02em; }
html.fd-js .fd-nav.is-open .fd-nav-top { order: -2; }
html.fd-js .fd-nav.is-open .fd-bar-search { display: flex; order: -1; margin: 4px 0 8px; }
html.fd-js .fd-menu-btn { display: inline-flex; }
html.fd-js .fd-nav.is-open .fd-menu { display: flex; flex-wrap: wrap; align-items: stretch; border-bottom: 1px solid rgba(246, 243, 236, 0.22); }
html.fd-js .fd-nav.is-open .fd-menu-link { flex: 1 1 0; display: flex; align-items: center; min-height: 58px; padding: 10px 4px; font-size: 1.4rem; }
html.fd-js .fd-nav.is-open .fd-menu-btn { width: 58px; min-height: 58px; }
html.fd-js .fd-nav.is-open .fd-menu-panel { flex: 1 0 100%; padding: 0 0 12px; }
html.fd-js .fd-nav.is-open .fd-menu-panel a { min-height: 48px; padding: 13px 8px 13px 16px; font-size: 1.0625rem; font-weight: 400; display: flex; align-items: center; }
html.fd-js .fd-nav.is-open .fd-menu-note { padding: 8px 8px 8px 16px; }
html.fd-js .fd-nav.is-open .fd-nav-actions { margin-top: auto; padding-top: 24px; flex-direction: column; align-items: stretch; }
html.fd-js .fd-nav.is-open .fd-btn-claim { order: -1; min-height: 56px; font-size: 1.3rem; display: flex; align-items: center; justify-content: center; }
html.fd-js .fd-nav.is-open .fd-signin { justify-content: center; min-height: 48px; font-size: 1.05rem; }

/* The compact search box (a bar on wide screens, a row in the phone panel) */
.fd-bar-search input { flex: 1 1 auto; min-width: 0; min-height: 44px; padding: 6px 12px; font: inherit; font-size: 1rem; color: var(--night); background: var(--paper); border: 2px solid transparent; border-right: 0; border-radius: 8px 0 0 8px; width: 100%; }
.fd-bar-search input::placeholder { color: #4b5563; opacity: 1; }
.fd-bar-search button { flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; width: 46px; min-height: 44px; color: #fff; background: var(--red); border: 2px solid var(--red); border-radius: 0 8px 8px 0; cursor: pointer; }
.fd-bar-search button:hover { background: var(--accent-dark); border-color: var(--accent-dark); }

/* Wide screens: the bar holds the logo, four dropdown menus, search, sign in and the button. */
@media (min-width: 1080px) {
  .fd-bar { gap: 8px; padding: 8px 16px; min-height: 66px; }
  .fd-brand { margin-right: 0; }
  .fd-brand img { height: 38px; }
  .fd-search-icon, html:not(.fd-js) .fd-search-icon, .fd-nav-toggle, html:not(.fd-js) .fd-nav-toggle { display: none; }
  .fd-nav, html.fd-js .fd-nav, html:not(.fd-js) .fd-nav { display: flex; flex: 1 1 auto; align-items: center; justify-content: space-between; gap: 8px; padding: 0; position: static; background: none; }
  .fd-menus, html:not(.fd-js) .fd-menus { display: flex; align-items: center; gap: 0; flex-wrap: nowrap; }
  .fd-menu-link { padding: 12px 0 12px 8px; font-size: 1.1rem; }
  .fd-menu-btn, html.fd-js .fd-menu-btn { display: inline-flex; width: 28px; }
  html:not(.fd-js) .fd-menu-btn { display: none; }
  html:not(.fd-js) .fd-menu-link { padding-right: 10px; }
  .fd-menu-panel { position: absolute; top: 100%; left: 0; z-index: 60; min-width: 290px; padding: 8px; background: var(--paper); color: var(--night); border-top: 3px solid var(--red); border-radius: 0 0 10px 10px; box-shadow: 0 14px 30px rgba(11, 21, 34, 0.32); }
  .fd-menu:last-child .fd-menu-panel { left: auto; right: 0; }
  .fd-menu-panel a:hover { background: var(--mist); color: var(--navy); }
  /* The open menu's title carries a brass bar, and the panel eases in (v0.26). */
  .fd-menu::after { content: ""; position: absolute; left: 8px; right: 8px; bottom: 0; height: 3px; border-radius: 2px; background: var(--brass); transform: scaleX(0); transform-origin: left; transition: transform 0.14s ease-out; pointer-events: none; }
  .fd-menu.is-open::after { transform: scaleX(1); }
  .fd-menu.is-open > .fd-menu-panel { animation: fd-panel-in 0.14s ease-out; }
  .fd-menu-panel a { color: var(--navy); }
  .fd-menu-note { color: #3b4655; }
  .fd-menu-note a { color: var(--navy); }
  .fd-nav-actions { gap: 4px; flex-wrap: nowrap; }
  html:not(.fd-js) .fd-nav-actions { margin-top: 0; }
  .fd-nav .fd-btn-claim { padding: 8px 14px; font-size: 1.05rem; }
  .fd-signin { padding: 0 4px; }
}
@media (min-width: 1080px) and (prefers-color-scheme: dark) {
  .fd-menu-panel { background: #10233d; color: var(--paper); border-top-color: var(--brass); }
  .fd-menu-panel a { color: var(--paper); }
  .fd-menu-panel a:hover { background: #1b3659; color: #fff; }
  .fd-menu-note { color: #c4cfdc; }
  .fd-menu-note a { color: #fff; }
}
/* The compact search shows on inner pages once there is room; the home page keeps its big one. */
@media (min-width: 1280px) {
  html.fd-js .fd-bar-search, html:not(.fd-js) .fd-bar-search { display: flex; flex: 0 1 200px; min-width: 150px; margin: 0 2px; }
  html.fd-js body.fd-home .fd-bar-search, html:not(.fd-js) body.fd-home .fd-bar-search { display: none; }
}

/* ---------- Footer ---------- */
.finder-footer { background: var(--night); color: #e6ebf2; font-size: 0.975rem; }
.finder-footer a { color: #e6ebf2; }
.finder-footer a:hover { color: #fff; }
.fd-foot { background: var(--navy); padding: 40px 0 32px; }
.fd-foot-grid { display: grid; gap: 32px; }
.fd-foot-logo { display: inline-flex; align-items: center; min-height: 44px; margin-bottom: 8px; border-radius: 6px; }
.fd-foot-logo img { display: block; height: 40px; width: auto; max-width: 100%; }
.fd-foot-brand p { max-width: 24rem; margin-bottom: 0.8em; }
.fd-foot-911 { font-family: var(--display); font-size: 1.15rem; }
.fd-foot-911 a { color: var(--brass); font-weight: 700; }
.fd-foot-cols { display: grid; gap: 28px 20px; grid-template-columns: 1fr; }
.fd-foot-col h2 { margin: 0 0 6px; font-size: 1.05rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--brass); }
.fd-foot-col ul { list-style: none; margin: 0; padding: 0; }
.fd-foot-col a { display: inline-block; padding: 9px 0; min-height: 44px; text-decoration: none; }
.fd-foot-col a:hover { text-decoration: underline; text-underline-offset: 3px; }
.fd-foot-bar { background: var(--night); padding: 16px 0 22px; font-size: 0.9rem; border-top: 1px solid rgba(255, 255, 255, 0.08); }
.fd-foot-bar-in { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 20px; }
.fd-foot-bar p { margin: 0; }
.fd-copy { flex: 1 1 100%; }
.fd-foot-legal { display: flex; flex-wrap: wrap; gap: 0 18px; list-style: none; margin: 0; padding: 0; }
.fd-foot-legal a { display: inline-block; padding: 11px 3px; min-height: 44px; }
.fd-foot-legal a.fd-foot-credit { text-decoration: none; }
.fd-foot-legal a.fd-foot-credit:hover, .fd-foot-legal a.fd-foot-credit:focus-visible { text-decoration: underline; text-underline-offset: 3px; }
.fd-foot-note { flex: 1 1 100%; color: #b4c0cf; }

@media (min-width: 560px) {
  .fd-foot-cols { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 900px) {
  .fd-foot-grid { grid-template-columns: minmax(240px, 0.9fr) 2.4fr; gap: 56px; }
  .fd-foot-cols { grid-template-columns: repeat(4, 1fr); }
  .fd-copy { flex: 0 0 auto; }
  .fd-foot-note { flex: 1 1 auto; text-align: right; }
  .fd-foot-bar-in { gap: 4px 28px; }
}

/* The newsletter band: full width, above the navy footer. */
.fd-news { background: var(--mist); color: var(--night); padding: 32px 0; }
.fd-news .fd-wrap { max-width: 1240px; display: grid; gap: 8px 40px; }
.fd-news h2 { margin: 0 0 4px; font-size: 1.6rem; color: var(--navy); }
.fd-news-form { display: grid; gap: 8px; max-width: 560px; }
.fd-news-form label { font-weight: 600; }
.fd-news-row { display: flex; flex-wrap: wrap; gap: 10px; }
.fd-news-row input { flex: 1 1 220px; min-width: 0; min-height: 48px; padding: 8px 12px; font: inherit; color: var(--night); background: #fff; border: 2px solid var(--navy); border-radius: var(--radius); }
.fd-news-row .fd-btn { margin: 0; }
.fd-news-consent { margin: 0; color: #2c3746; }
.fd-news-consent a, .fd-news-msg a { color: var(--navy); }
.fd-news-msg { margin: 4px 0 0; font-weight: 600; }
.fd-news-msg:empty { display: none; }
.fd-news-bad { color: #a00d27; }
.fd-news :focus-visible { outline-color: var(--navy); }
@media (min-width: 900px) {
  .fd-news .fd-wrap { grid-template-columns: 1fr 1fr; align-items: start; }
  .fd-news h2 { grid-column: 1; grid-row: 1 / span 2; font-size: 1.9rem; max-width: 26rem; }
  .fd-news-form, .fd-news-msg { grid-column: 2; }
}
@media (prefers-color-scheme: dark) {
  .fd-news { background: #0f1f35; color: var(--paper); border-top: 1px solid var(--line); }
  .fd-news h2 { color: var(--paper); }
  .fd-news-consent { color: #c4cfdc; }
  .fd-news-consent a, .fd-news-msg a { color: #9fc2f2; }
  .fd-news-row input { border-color: var(--mist); }
  .fd-news-bad { color: #ff8d9b; }
  .fd-news :focus-visible { outline-color: var(--brass); }
}
/* On the /newsletter page the box sits in the page itself. */
.fd-main .fd-news { border-radius: var(--radius); padding: 20px 0; margin-top: 24px; }
.fd-main .fd-news .fd-wrap { padding: 0 16px; display: block; }
.fd-main .fd-news h2 { font-size: 1.4rem; }

/* ---------- Breadcrumbs, notes ---------- */
.fd-crumbs ol { list-style: none; margin: 0 0 8px; padding: 0; display: flex; flex-wrap: wrap; font-size: 0.95rem; }
.fd-crumbs li + li::before { content: "\203A"; margin: 0 8px; color: var(--muted); }
.fd-crumbs a, .fd-crumbs [aria-current] { display: inline-block; padding: 10px 0; }
.fd-crumbs [aria-current] { color: var(--muted); }

.fd-lede { font-size: 1.125rem; color: var(--muted); }
.fd-where { color: var(--muted); font-size: 1.05rem; margin-top: -0.2em; }
.fd-note { background: var(--note-bg); border: 1px solid var(--note-line); border-left-width: 6px; border-radius: var(--radius); padding: 10px 14px; }
.fd-draft { background: #f4e8c8; color: #2f2500; border: 1px solid #c9a24a; border-radius: var(--radius); padding: 10px 14px; }

/* ---------- Cards, forms ---------- */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; margin: 0 0 16px; }
.card > :last-child { margin-bottom: 0; }
.card h2 { margin-top: 0; font-size: 1.35rem; }
.card-list { list-style: none; margin: 0 0 16px; padding: 0; display: grid; gap: 10px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .card-list { grid-template-columns: 1fr 1fr; } }
.card-link { display: grid; gap: 2px; min-height: 64px; align-content: center; margin: 0; text-decoration: none; color: var(--ink); border-left: 5px solid var(--navy); }
.card-link strong { color: var(--link); font-family: var(--display); font-size: 1.2rem; font-weight: 700; }
.card-link:hover { border-color: var(--red); }
.card-link:hover strong { text-decoration: underline; text-underline-offset: 3px; }
@media (prefers-color-scheme: dark) { .card-link { border-left-color: var(--brass); } }

.fd-search { display: grid; gap: 6px; margin: 16px 0; }
.fd-search label, .dir-filter label { font-weight: 600; }
.fd-field { display: flex; flex-wrap: wrap; gap: 8px; }
.fd-field input, .dir-filter input { flex: 1 1 200px; min-width: 0; min-height: 48px; padding: 8px 12px; font: inherit; color: var(--ink); background: var(--field); border: 2px solid var(--navy); border-radius: var(--radius); width: 100%; }
@media (prefers-color-scheme: dark) { .fd-field input, .dir-filter input { border-color: var(--line); } }
.fd-field .fd-btn { margin: 0; flex: 0 0 auto; }
.fd-home .fd-search { padding: 20px 16px; background: var(--navy); border-radius: var(--radius); }
.fd-home .fd-search label { color: #fff; font-size: 1.05rem; }
.fd-home .fd-search input { border-color: var(--paper); color: var(--night); background: var(--paper); }
.fd-home .fd-search :focus-visible { outline-color: var(--brass); }

/* ---------- Department page ---------- */
.fd-facts { display: grid; gap: 0; margin-bottom: 16px; }
.fd-fact { padding: 12px 0; border-bottom: 1px solid var(--line); }
.fd-fact:first-child { padding-top: 0; }
.fd-fact:last-child { border-bottom: 0; padding-bottom: 0; }
.fd-fact dt { font-family: var(--display); font-size: 1rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); }
.fd-fact dd { margin: 2px 0 0; }
.fd-warn { color: var(--warn); font-weight: 600; }
.fd-phone { font-family: var(--display); font-size: 1.6rem; font-weight: 700; display: inline-block; padding: 6px 0; }
.fd-fact address { font-style: normal; }
.fd-links { display: flex; flex-wrap: wrap; gap: 0 18px; }
.fd-links a { display: inline-block; padding: 10px 0; }
.fd-source { display: block; font-size: 0.88rem; color: var(--muted); }
.fd-source a { color: var(--muted); }
.fd-sources { padding-left: 1.1em; }
.fd-sources li { margin-bottom: 4px; overflow-wrap: anywhere; }
.fd-actions { margin-top: 24px; }
.fd-santa { border-left: 6px solid var(--red); }
.fd-join { border-left: 6px solid var(--navy); }
@media (prefers-color-scheme: dark) { .fd-join { border-left-color: var(--brass); } }

/* ---------- Lists: counties, towns, departments ---------- */
.dir-list { list-style: none; margin: 0 0 16px; padding: 0; display: grid; gap: 8px; }
.dir-row { margin: 0; padding: 12px 14px; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 12px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
.dir-main { display: grid; min-width: 0; flex: 1 1 220px; }
.dir-name { font-family: var(--display); font-size: 1.2rem; font-weight: 700; overflow-wrap: anywhere; padding: 4px 0; }
.dir-town { font-size: 0.95rem; color: var(--muted); }
.dir-side { display: flex; align-items: center; gap: 8px; }
.fd-chip { display: inline-block; padding: 4px 12px; border-radius: 999px; font-size: 0.88rem; font-weight: 600; white-space: nowrap; background: var(--field); border: 1px solid var(--line); color: var(--ink); }
.fd-chip-volunteer, .fd-chip-mostly_volunteer { border-color: var(--navy); }
@media (prefers-color-scheme: dark) { .fd-chip-volunteer, .fd-chip-mostly_volunteer { border-color: var(--brass); } }
.dir-filter { display: grid; gap: 6px; margin: 20px 0 8px; }
.dir-status { min-height: 1.6em; margin: 0 0 8px; }
.dir-empty { padding: 14px 16px; background: var(--card); border-radius: var(--radius); }
.dir-empty[hidden], .dir-row[hidden], .dir-town-group[hidden] { display: none; }
.dir-town-group h2 { font-size: 1.45rem; margin: 1.4em 0 0.5em; padding-bottom: 4px; border-bottom: 3px solid var(--mist); }
@media (prefers-color-scheme: dark) { .dir-town-group h2 { border-bottom-color: var(--line); } }
.fd-count { font-family: var(--font); font-size: 0.9rem; font-weight: 400; }

/* ---------- Guides and the finder's own pages ---------- */
.fd-prose { max-width: 40rem; }
.fd-prose h2 { margin-top: 1.6em; }
.fd-prose li { margin-bottom: 0.4em; }

@media (min-width: 640px) {
  h1 { font-size: 2.6rem; }
  .fd-main { padding-top: 28px; }
}
@media print { .finder-header, .finder-footer { display: none; } }

/* ---------- Corrections, newsletter and contact forms ---------- */
.fd-now { margin-bottom: 1.5em; }
.fd-form { display: grid; gap: 16px; max-width: 560px; }
.fd-form[hidden] { display: none; }
.fd-choices { border: 1px solid var(--line); border-radius: var(--radius); padding: 8px 14px 6px; margin: 0; }
.fd-choices legend { font-weight: 600; padding: 0 6px; }
.fd-choice { display: flex; align-items: center; gap: 10px; min-height: 44px; }
.fd-choice input { width: 22px; height: 22px; flex: 0 0 auto; accent-color: var(--navy); }
.fd-choice label { flex: 1 1 auto; padding: 8px 0; }
.fd-formrow { display: grid; gap: 6px; }
.fd-formrow label { font-weight: 600; }
.fd-formrow textarea, .fd-formrow input, .fd-formrow select { width: 100%; min-height: 48px; padding: 8px 12px; font: inherit; color: var(--ink); background: var(--field); border: 2px solid var(--navy); border-radius: var(--radius); }
@media (prefers-color-scheme: dark) { .fd-formrow textarea, .fd-formrow input, .fd-formrow select { border-color: var(--line); } }
.fd-formrow textarea { min-height: 120px; resize: vertical; }
.fd-trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.fd-error { margin: 0; padding: 10px 14px; border: 2px solid var(--red); border-radius: var(--radius); background: var(--note-bg); font-weight: 600; }
.fd-turnstile { min-height: 0; }
.fd-govt { display: block; font-size: 0.9rem; }

@keyframes fd-panel-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .fd-chev { transition: none; }
  .fd-menu::after { transition: none; }
  .fd-menu.is-open > .fd-menu-panel { animation: none; }
}

/* ---------- Help center (/support) ---------- */
.fd-kb-search { margin: 12px 0 20px; }
.fd-kb-results { margin-bottom: 20px; }
.fd-kb-ask { margin-top: 28px; font-weight: 600; }
.fd-kb-related { margin-top: 28px; }
.fd-kb-related ul { margin: 0; padding-left: 20px; }
.fd-kb-related li { padding: 4px 0; }
#fd-kb-list > section { margin-top: 24px; }

/* ---- the U.S. map (v0.27): drawn on the server; states we list are red links, the rest are gray ---- */
.fd-map { margin: 16px 0 12px; padding: 0; }
.fd-map-svg { display: block; width: 100%; max-width: 100%; height: auto; }
.fd-map-state { fill: #b9c0ca; stroke: var(--bg); stroke-width: 1.2; stroke-linejoin: round; }
.fd-map-state.is-live { fill: var(--red); }
.fd-map-link { outline: none; cursor: pointer; }
.fd-map-link:hover .fd-map-state.is-live { fill: var(--accent-dark); stroke: var(--brass); stroke-width: 3; }
.fd-map-link:focus-visible .fd-map-state.is-live { fill: var(--accent-dark); stroke: var(--brass); stroke-width: 3.5; }
.fd-map-link:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.fd-map-tap { fill: transparent; stroke: none; }
.fd-map-legend { display: flex; flex-wrap: wrap; gap: 6px 20px; align-items: center; margin-top: 8px; font-size: 0.95rem; }
.fd-map-key { display: inline-flex; align-items: center; gap: 8px; }
.fd-swatch { display: inline-block; width: 16px; height: 16px; border-radius: 3px; }
.fd-swatch-live { background: var(--red); }
.fd-swatch-soon { background: #b9c0ca; }
.fd-map-credit { font-size: 0.85rem; margin-left: auto; }
@media (prefers-color-scheme: dark) {
  .fd-map-state { fill: #3a4a60; }
  .fd-map-state.is-live { fill: #d3263f; }
  .fd-swatch-soon { background: #3a4a60; }
  .fd-swatch-live { background: #d3263f; }
}
.fd-state-list { margin-top: 12px; }

/* ---------- Back to top (v0.28) ----------
   Made by /js/finder.js (src/client/site/top.ts, shared with the Santa site). Bottom right, navy with a brass ring and arrow. */
.to-top {
  position: fixed; right: 16px; z-index: 90;
  bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  width: 48px; height: 48px; padding: 0; display: flex; align-items: center; justify-content: center;
  color: var(--brass); background: var(--navy); border: 2px solid var(--brass); border-radius: 50%;
  box-shadow: 0 4px 14px rgba(11, 21, 34, 0.35); cursor: pointer; transition: transform 0.15s ease-out, background 0.15s ease-out;
}
.to-top[hidden] { display: none; }
.to-top:hover { background: #1c3863; transform: translateY(-2px); }
.to-top:focus-visible { outline: 3px solid var(--brass); outline-offset: 3px; }
.to-top svg { display: block; width: 24px; height: 24px; }
/* Room under the footer's last line so the button never sits on a link. */
html.has-to-top .fd-foot-bar { padding-bottom: 76px; }
body.fd-menu-open .to-top { display: none; }
@media (prefers-reduced-motion: reduce) { .to-top { transition: none; } .to-top:hover { transform: none; } }
@media print { .to-top { display: none !important; } }

/* ===== State page (v0.28.0): banner, stats, county map, recently updated, "Don't see your department?" ===== */
.fd-hero { position: relative; overflow: hidden; background: var(--navy); color: #fff; border-radius: var(--radius); margin: 0 0 20px; border: 1px solid #2b4160; }
.fd-hero-outline { position: absolute; top: 0; right: 0; width: 70%; height: 100%; pointer-events: none; }
.fd-hero-outline path { fill: #1b3865; stroke: var(--brass); stroke-opacity: 0.55; stroke-width: 2; vector-effect: non-scaling-stroke; stroke-linejoin: round; }
.fd-hero-in { position: relative; padding: 14px 18px 22px; max-width: 560px; }
.fd-hero h1 { color: #fff; margin: 4px 0 2px; font-size: 2.6rem; }
.fd-hero-count { margin: 0 0 16px; font-family: var(--display); font-size: 1.35rem; font-weight: 600; color: #f0dca8; }
.fd-hero .fd-crumbs ol { margin: 0; }
.fd-hero .fd-crumbs a { color: #cfdcf0; }
.fd-hero .fd-crumbs li + li::before, .fd-hero .fd-crumbs [aria-current] { color: #b6c6dd; }
.fd-hero-search label { display: block; font-weight: 600; margin-bottom: 6px; color: #fff; }
.fd-hero-search .fd-field input { color: var(--night); background: #fff; border-color: #fff; }
.fd-hero :focus-visible { outline-color: var(--brass); }
@media (min-width: 640px) {
  .fd-hero-in { padding: 18px 28px 30px; }
  .fd-hero h1 { font-size: 3.6rem; }
}
@media (max-width: 639px) {
  .fd-hero-outline { width: 100%; opacity: 0.55; }
}

.fd-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 10px; margin: 0 0 8px; padding: 0; }
.fd-stat { display: flex; flex-direction: column-reverse; justify-content: flex-end; margin: 0; padding: 12px 14px; background: var(--card); border: 1px solid var(--line); border-top: 4px solid var(--navy); border-radius: var(--radius); }
.fd-stat dt { font-size: 0.95rem; font-weight: 600; color: var(--muted); }
.fd-stat dd { margin: 0; font-family: var(--display); font-size: 2rem; font-weight: 700; line-height: 1.1; color: var(--heading); }
.fd-stats-note { margin: 0 0 8px; }
@media (prefers-color-scheme: dark) { .fd-stat { border-top-color: var(--brass); } }

/* The county map. Shade steps run light to dark in the light theme and dark to bright in the dark one; the outline between counties is the page color. */
.fd-cmap { margin: 12px 0 20px; }
.fd-cmap-svg { display: block; width: 100%; max-width: 640px; height: auto; margin: 0 auto; }
.fd-cmap-shape { stroke: #fff; stroke-width: 0.9; stroke-linejoin: round; }
.fd-cmap-0 { fill: #e3e0d7; background: #e3e0d7; }
.fd-cmap-1 { fill: #c4d3e6; background: #c4d3e6; }
.fd-cmap-2 { fill: #86a3c8; background: #86a3c8; }
.fd-cmap-3 { fill: #466a9c; background: #466a9c; }
.fd-cmap-4 { fill: #13294b; background: #13294b; }
.fd-cmap-link { outline: none; cursor: pointer; }
.fd-cmap-link:hover .fd-cmap-shape { fill: var(--accent-dark); stroke: var(--brass); stroke-width: 2.4; }
.fd-cmap-link:focus-visible .fd-cmap-shape { fill: var(--accent-dark); stroke: var(--brass); stroke-width: 2.8; }
.fd-cmap-link:focus-visible { outline: 3px solid var(--focus); outline-offset: 1px; }
.fd-cmap .fd-swatch { border: 1px solid #5d6b7d; }
.fd-cmap-title { font-weight: 600; }
@media (prefers-color-scheme: dark) {
  .fd-cmap-shape { stroke: var(--night); }
  .fd-cmap-0 { fill: #1a2a40; background: #1a2a40; }
  .fd-cmap-1 { fill: #2f5282; background: #2f5282; }
  .fd-cmap-2 { fill: #4f7fba; background: #4f7fba; }
  .fd-cmap-3 { fill: #86b1e6; background: #86b1e6; }
  .fd-cmap-4 { fill: #cfe2fa; background: #cfe2fa; }
  .fd-cmap .fd-swatch { border-color: #8ea3bd; }
}
#fd-counties-az { margin-top: 20px; }

.fd-missing { margin-top: 32px; }
.fd-missing h2 { margin-top: 0; }
.fd-missing-grid { display: grid; gap: 20px; }
.fd-missing .fd-form { max-width: none; }
.fd-pair { border: 0; margin: 0; padding: 0; display: grid; gap: 12px; }
.fd-pair legend { font-weight: 600; padding: 0; margin-bottom: 6px; }
.fd-missing-msg { margin: 12px 0 0; font-weight: 600; }
.fd-missing-msg:empty { display: none; }
.fd-missing-claim { padding: 16px; border: 2px solid var(--line); border-radius: var(--radius); background: var(--bg); align-self: start; }
.fd-missing-claim h3 { margin-top: 0; }
.fd-missing-claim .fd-btn { margin-bottom: 0; }
@media (min-width: 760px) { .fd-missing-grid { grid-template-columns: 1fr 260px; align-items: start; } }

/* ===== Department page (v0.28.0) ===== */
.fd-h { font-size: 1.35rem; margin: 28px 0 10px; }
.fd-banner { position: relative; border-radius: var(--radius); margin: 4px 0 12px; color: #fff; background-color: var(--navy);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='110' viewBox='0 0 180 110' fill='none' stroke='%23ffffff' stroke-opacity='.09' stroke-width='1.6' stroke-linejoin='round' stroke-linecap='round'%3E%3Cpath d='M18 78V46l24-20 24 20v32zM30 78V58a12 12 0 0 1 24 0v20M24 52h36M42 40v0'/%3E%3Ccircle cx='42' cy='38' r='3'/%3E%3Cpath d='M108 98V68l20-16 20 16v30zM118 98V80a10 10 0 0 1 20 0v18M104 74h48'/%3E%3Cpath d='M92 20h36M96 14v12M104 14v12M112 14v12M120 14v12'/%3E%3C/svg%3E"); }
.fd-banner-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }
.fd-banner-photo::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(180deg, rgba(11, 21, 34, 0.15) 0%, rgba(11, 21, 34, 0.82) 100%); }
.fd-banner-in { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; align-items: end; padding: 120px 16px 16px; }
.fd-banner:not(.fd-banner-photo) .fd-banner-in { padding-top: 56px; }
.fd-patch { width: 96px; height: 96px; border-radius: 50%; background: #fff; border: 4px solid #fff; box-shadow: 0 2px 10px rgba(0, 0, 0, 0.35); overflow: hidden; display: grid; place-items: center; }
.fd-patch img { width: 100%; height: 100%; object-fit: cover; }
.fd-patch img[src$=".svg"] { width: 70%; height: 70%; object-fit: contain; }
.fd-banner h1 { color: #fff; margin: 0; font-size: clamp(1.7rem, 5.5vw, 2.6rem); line-height: 1.08; overflow-wrap: anywhere; }
.fd-banner-where, .fd-banner-updated { margin: 6px 0 0; color: #e6ecf4; }
.fd-banner-updated { font-size: 0.9rem; color: #c4cfdc; }
.fd-banner-chip { display: inline-block; margin-left: 10px; padding: 2px 10px; border-radius: 999px; font-size: 0.82rem; font-weight: 600; border: 1px solid rgba(255, 255, 255, 0.6); }
.fd-banner .fd-share { justify-self: start; position: relative; }
.fd-share-menu summary { list-style: none; cursor: pointer; margin: 0; }
.fd-share-menu summary::-webkit-details-marker { display: none; }
.fd-share-list { position: absolute; z-index: 5; left: 0; top: calc(100% + 6px); min-width: 190px; margin: 0; padding: 6px; list-style: none; background: var(--card); color: var(--ink); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 6px 18px rgba(0, 0, 0, 0.3); }
.fd-share-item { display: block; width: 100%; box-sizing: border-box; min-height: 44px; padding: 10px 12px; background: none; border: 0; border-radius: 6px; font: inherit; color: var(--link); text-align: left; text-decoration: none; cursor: pointer; }
.fd-share-item:hover { background: var(--field); text-decoration: underline; }
.fd-share-note { display: block; min-height: 1.2em; font-size: 0.88rem; color: #e6ecf4; margin-top: 4px; }
@media (min-width: 720px) {
  .fd-banner-in { grid-template-columns: auto minmax(0, 1fr) auto; gap: 14px 22px; padding: 150px 24px 22px; }
  .fd-banner:not(.fd-banner-photo) .fd-banner-in { padding-top: 70px; }
  .fd-banner .fd-share { justify-self: end; align-self: end; }
  .fd-share-list { left: auto; right: 0; }
}
.fd-facts dd { overflow-wrap: anywhere; }
.fd-911-line { margin: 0 0 8px; font-weight: 600; }
.fd-stations { list-style: none; margin: 0 0 14px; padding: 0; display: grid; gap: 10px; }
@media (min-width: 720px) { .fd-stations { grid-template-columns: 1fr 1fr; } }
.fd-station { display: grid; gap: 2px; padding: 12px 14px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
.fd-station address { font-style: normal; }
.fd-station-name { font-family: var(--display); font-size: 1.1rem; }
.fd-map { position: relative; height: 320px; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--card); }
.fd-map:not(.fd-map-live) { height: auto; padding: 12px 14px; }
.fd-map-fallback { margin: 0; font-size: 0.95rem; }
.fd-pin { width: 22px; height: 22px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); background: var(--red); border: 3px solid #fff; box-shadow: 0 1px 5px rgba(0, 0, 0, 0.5); }
.fd-pin::after { content: ""; position: absolute; inset: 4px; border-radius: 50%; background: #fff; }
.fd-about { max-width: 68ch; }
.fd-stats { display: grid; gap: 10px; grid-template-columns: 1fr 1fr; margin: 0 0 8px; }
@media (min-width: 720px) { .fd-stats { grid-template-columns: repeat(4, 1fr); } }
.fd-stat { padding: 12px 14px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
.fd-stat dt { font-family: var(--display); font-size: 0.95rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); }
.fd-stat dd { margin: 4px 0 0; }
.fd-stat-n { display: block; font-family: var(--display); font-size: 2rem; font-weight: 700; line-height: 1.1; color: var(--heading); }
.fd-stat-src { display: block; margin-top: 4px; font-size: 0.8rem; color: var(--muted); }
.fd-chips { list-style: none; margin: 0 0 8px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.fd-apparatus { list-style: none; margin: 0 0 8px; padding: 0; display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
.fd-app { display: grid; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.fd-app-media { aspect-ratio: 4 / 3; background: var(--mist); }
.fd-app-media img { display: block; width: 100%; height: 100%; object-fit: cover; }
.fd-app-body { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; padding: 10px 14px; }
.fd-app-type { font-family: var(--display); font-size: 1.1rem; font-weight: 700; color: var(--heading); }
.fd-app-label { flex-basis: 100%; font-size: 0.9rem; color: var(--muted); order: 3; }
.fd-app-count { margin-left: auto; font-family: var(--display); font-size: 1.3rem; font-weight: 700; }
.fd-badge { display: inline-block; padding: 3px 12px; border-radius: 999px; background: var(--navy); color: #fff; font-weight: 600; font-size: 0.9rem; }
.fd-claim p { margin: 0 0 10px; }
.fd-claim, .fd-join { margin-top: 28px; }
@media (prefers-color-scheme: dark) {
  .fd-badge { background: var(--brass); color: var(--night); }
  .fd-share-list { background: #12233a; }
}
@media (prefers-reduced-motion: reduce) { .fd-banner * { transition: none; } }
