/* Marion County, Arkansas: "Contour" theme.
   A county website drawn like a USGS topographic map: paper, contour brown, water blue,
   a woodland-green tint, and road-sign lettering (Overpass, derived from Highway Gothic). */

@font-face {
  font-family: "Overpass";
  src: url("fonts/overpass-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Overpass";
  src: url("fonts/overpass-latin-wght-italic.woff2") format("woff2");
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}

:root {
  --paper: #f6f4ee;
  --paper-2: #ece7dc;
  --paper-3: #e2dccd;
  --ink: #24201c;
  --ink-2: #574e45;
  --rule: #d6ccbb;
  --contour: #c49a6c;
  --contour-2: #a8794a;
  --brown: #74461f;
  --water: #c6e3f3;
  --water-2: #a9d3ec;
  --water-line: #3a83c4;
  --water-ink: #17578c;
  --forest: #e1eed8;
  --forest-2: #cfe3c1;
  --forest-ink: #2c5527;
  --road: #c8352b;
  --focus: #0b5cad;
  --wrap: 1360px;
  --gutter: clamp(16px, 4vw, 48px);
  --font: "Overpass", "Highway Gothic", "Arial Narrow", Arial, sans-serif;
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: 16px;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 18px;
  line-height: 1.55;
  font-weight: 400;
  font-optical-sizing: auto;
}

img { max-width: 100%; height: auto; }
svg { overflow: visible; }

h1, h2, h3, h4 {
  margin: 0;
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: -0.005em;
  text-wrap: balance;
}
h2 { font-size: clamp(1.6rem, 1.2rem + 1.2vw, 2.1rem); }
h3 { font-size: 1.3rem; font-weight: 750; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

a { color: var(--water-ink); text-decoration-thickness: 1.5px; text-underline-offset: 0.18em; }
a:hover { color: var(--ink); text-decoration-thickness: 2.5px; }

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

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -200px;
  z-index: 100;
  padding: 0.7rem 1.1rem;
  background: var(--ink);
  color: var(--paper);
  font-weight: 700;
  text-decoration: none;
}
.skip-link:focus { top: 12px; }
.skip-link:focus-visible { outline-color: var(--water-2); }

/* ---------- Header: a map sheet's top margin, with a double neatline ---------- */

.site-header {
  position: relative;
  z-index: 20;
  background: var(--paper);
  border-bottom: 1px solid var(--ink);
  box-shadow: 0 3px 0 var(--paper), 0 6px 0 var(--ink);
  margin-bottom: 6px;
}
.header-bar {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  min-height: 84px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--ink);
  text-decoration: none;
  margin-right: auto;
  padding: 0.35rem 0;
}
.brand:hover { color: var(--ink); }
.brand-mark { width: 34px; height: 38px; flex: none; }
.brand-shape { fill: var(--forest-2); stroke: var(--ink); stroke-width: 1.4; stroke-linejoin: round; }
.brand-seat { fill: var(--road); }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name { font-size: 1.45rem; font-weight: 800; letter-spacing: -0.01em; }
.brand-state { font-size: 1.02rem; font-weight: 600; color: var(--ink-2); margin-top: 0.3rem; letter-spacing: 0.02em; }

.menu-toggle { display: none; }

.nav-list {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 48px;
  padding: 0.35rem 0.8rem;
  border: 0;
  background: none;
  color: var(--ink);
  font: inherit;
  font-size: 1.05rem;
  font-weight: 650;
  text-decoration: none;
  cursor: pointer;
  border-radius: 2px;
}
.nav-link:hover { color: var(--ink); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 0.3em; }
.nav-link[aria-current="page"] {
  text-decoration: underline;
  text-decoration-color: var(--contour-2);
  text-decoration-thickness: 4px;
  text-underline-offset: 0.35em;
}
.dept-toggle::after {
  content: "";
  width: 0.5em;
  height: 0.5em;
  border-right: 2.5px solid currentColor;
  border-bottom: 2.5px solid currentColor;
  transform: translateY(-0.15em) rotate(45deg);
  margin-left: 0.2rem;
}
.dept-toggle[aria-expanded="true"]::after { transform: translateY(0.1em) rotate(-135deg); }
.dept-toggle[aria-expanded="true"] { background: var(--paper-2); }
.dept-toggle.is-section { text-decoration: underline; text-decoration-color: var(--contour-2); text-decoration-thickness: 4px; text-underline-offset: 0.35em; }
.dept-list a[aria-current="page"] { color: var(--brown); text-decoration: underline; text-decoration-thickness: 3px; }

.nav-cta-item { margin-left: 0.6rem; }
.nav-cta {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 0.4rem 1.1rem;
  background: var(--water-ink);
  color: #fff;
  font-weight: 700;
  font-size: 1.05rem;
  text-decoration: none;
  border-radius: 3px;
}
.nav-cta:hover { background: var(--ink); color: #fff; }

.dept-panel-title { display: none; }
.dept-panel-foot { margin: 1.25rem 0 0; padding-top: 1rem; border-top: 1px solid var(--rule); font-weight: 600; }

/* Desktop: the departments drop panel */
@media (min-width: 1100px) {
  .nav-dept { position: static; }
  .js .dept-panel { display: none; }
  .js .dept-toggle[aria-expanded="true"] + .dept-panel { display: block; }
  .dept-panel {
    position: absolute;
    left: 50%;
    top: calc(100% + 6px);
    transform: translateX(-50%);
    width: min(var(--wrap), 100%);
    padding: 1.75rem var(--gutter) 1.5rem;
    background: var(--paper);
    border-bottom: 1px solid var(--ink);
    box-shadow: 0 3px 0 var(--paper), 0 6px 0 var(--ink), 0 24px 40px -24px rgba(36, 32, 28, 0.35);
  }
  .dept-list {
    columns: 3;
    column-gap: 3rem;
    margin: 0;
    padding: 0;
    list-style: none;
  }
  .dept-list li { break-inside: avoid; border-bottom: 1px solid var(--rule); }
  .dept-list a {
    display: block;
    padding: 0.6rem 0;
    color: var(--ink);
    font-weight: 600;
    text-decoration: none;
  }
  .dept-list a:hover { color: var(--water-ink); text-decoration: underline; }
}

/* ---------- Atlas: intro + tasks beside the county map ---------- */

.atlas {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.38fr);
  gap: clamp(2rem, 4vw, 4.5rem);
  padding-top: clamp(2rem, 4vw, 3.5rem);
  padding-bottom: clamp(2.5rem, 5vw, 4.5rem);
  align-items: start;
}
.atlas-text { min-width: 0; }

.kicker {
  margin: 0 0 0.6rem;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--ink-2);
}
h1 {
  font-size: clamp(2.6rem, 1.5rem + 2.9vw, 4.3rem);
  line-height: 0.98;
  font-weight: 850;
  letter-spacing: -0.02em;
}
.h1-line { display: block; }
.h1-line + .h1-line { color: var(--brown); }
.lede {
  margin: 1.25rem 0 1rem;
  font-size: clamp(1.2rem, 1.05rem + 0.5vw, 1.45rem);
  line-height: 1.4;
  font-weight: 500;
  max-width: 30ch;
}
.open-hours {
  margin: 0;
  padding: 0.85rem 1rem;
  background: var(--forest);
  border-left: 4px solid var(--forest-ink);
  max-width: 40ch;
}
.open-hours-label { font-weight: 750; }

.tasks { margin-top: clamp(2.25rem, 4vw, 3rem); }
.tasks h2 { margin-bottom: 0.4rem; }

/* Index rows: an atlas gazetteer, name ..... detail */
.index-list { margin: 0; padding: 0; list-style: none; }
.index-row {
  display: grid;
  grid-template-columns: max-content minmax(1.25rem, 1fr) minmax(0, max-content);
  align-items: baseline;
  column-gap: 0.6rem;
  padding: 0.8rem 0.5rem 0.8rem 0;
  border-bottom: 1px solid var(--rule);
  color: var(--ink);
  text-decoration: none;
}
.index-list li:first-child .index-row { border-top: 1px solid var(--rule); }
.index-name { font-weight: 700; font-size: 1.12rem; }
.index-leader {
  align-self: baseline;
  height: 0.4em;
  border-bottom: 2.5px dotted var(--contour);
}
.index-detail {
  color: var(--ink-2);
  text-align: right;
  font-variant-numeric: tabular-nums;
}
a.index-row:hover { background: linear-gradient(90deg, var(--forest), var(--forest) 70%, transparent); }
a.index-row:hover .index-name { color: var(--water-ink); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 0.2em; }
a.index-row:focus-visible { outline-offset: 4px; }
.index-static a.index-detail { color: var(--water-ink); font-weight: 650; }

.task-list .index-row { grid-template-columns: 11.5rem minmax(0, 1fr); column-gap: 1rem; padding-block: 0.85rem; }
.task-list .index-name { font-size: 1.15rem; line-height: 1.3; }
.task-list .index-leader { display: none; }
.task-list .index-detail { text-align: left; font-size: 1.02rem; line-height: 1.45; }

/* ---------- The map sheet ---------- */

.atlas-map {
  margin: 0;
  position: sticky;
  top: 16px;
}
.sheet {
  position: relative;
  width: min(100%, calc((100vh - 150px) * 1132 / 1271.3));
  min-width: min(100%, 520px);
  margin-inline: auto;
  aspect-ratio: 1132 / 1271.3;
}
.relief img {
  position: absolute;
  left: 8.1272%;
  top: 4.5623%;
  width: 88.3392%;
  height: 83.6388%;
  max-width: none;
}
.map-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  font-family: var(--font);
}

.m-lake { fill-rule: evenodd; fill: var(--water); stroke: var(--water-line); stroke-width: 0.9; stroke-linejoin: round; }
.m-river { fill: none; stroke: var(--water-line); stroke-width: 2.8; stroke-linecap: round; stroke-linejoin: round; }
.m-outside { fill: var(--paper); opacity: 0.66; }
.m-ribbon { fill: none; stroke: var(--forest-2); stroke-width: 26; opacity: 0.85; }
.m-county { fill: none; stroke: var(--ink); stroke-width: 2.6; stroke-dasharray: 20 6 3 6; stroke-linejoin: round; }
.m-road-us { fill: none; stroke: var(--road); stroke-width: 3.6; stroke-linecap: round; stroke-linejoin: round; }
.m-road-b { stroke-width: 2.4; }
.m-road-ar { fill: none; stroke: #6f645a; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.m-neat { fill: none; stroke: var(--ink); stroke-width: 1.6; }
.m-ticks { fill: none; stroke: var(--ink); stroke-width: 1.4; }
.m-cross { fill: none; stroke: var(--ink-2); stroke-width: 1.2; opacity: 0.7; }
.m-coord { font-size: 19px; font-weight: 600; fill: var(--ink-2); }
.m-area {
  font-size: 19px;
  font-weight: 650;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  fill: #6c6258;
  paint-order: stroke;
  stroke: var(--paper);
  stroke-width: 5px;
  stroke-linejoin: round;
}
.m-state { font-size: 21px; letter-spacing: 0.3em; }
.m-shield path,
.m-shield rect { fill: #fff; stroke: var(--ink); stroke-width: 1.8; }
.m-shield text { font-size: 17px; font-weight: 800; text-anchor: middle; fill: var(--ink); }
.m-wlabel {
  font-size: 25px;
  font-style: italic;
  font-weight: 650;
  fill: var(--water-ink);
  paint-order: stroke;
  stroke: var(--paper);
  stroke-width: 6px;
  stroke-linejoin: round;
  letter-spacing: 0.02em;
}
.m-wlabel-lake { font-size: 30px; letter-spacing: 0.06em; }
.m-short { display: none; }
.m-town text {
  font-size: 27px;
  font-weight: 750;
  fill: var(--ink);
  paint-order: stroke;
  stroke: var(--paper);
  stroke-width: 6px;
  stroke-linejoin: round;
}
.m-seat text { font-size: 34px; font-weight: 850; }
.m-dot { fill: var(--ink); stroke: var(--paper); stroke-width: 2.5; }
.m-dot-ring { fill: var(--paper); stroke: var(--ink); stroke-width: 3.5; }
.m-bar-a { fill: var(--ink); }
.m-bar-b { fill: var(--paper); stroke: var(--ink); stroke-width: 1.4; }
.m-scale-n { font-size: 18px; font-weight: 600; fill: var(--ink); }
.m-scale-u { font-size: 18px; font-weight: 600; fill: var(--ink-2); }
.m-note { font-size: 19px; font-weight: 650; fill: var(--brown); }
.m-note-2 { font-weight: 500; fill: var(--ink-2); }
.m-ci-200 { display: none; }
.m-north path { fill: var(--ink); }
.m-north text { font-size: 22px; font-weight: 800; fill: var(--ink); }

/* Story focus: the sticky map answers the section being read */
.m-towns, .m-roads, .m-shields, .m-water, .m-water-labels, .relief img { transition: opacity 0.45s ease; }
.m-lake, .m-river { transition: fill 0.45s ease, stroke-width 0.45s ease; }
.sheet[data-focus="towns"] .m-water,
.sheet[data-focus="towns"] .m-water-labels { opacity: 0.35; }
.sheet[data-focus="towns"] .m-roads,
.sheet[data-focus="towns"] .m-shields { opacity: 0.4; }
.sheet[data-focus="towns"] .relief img { opacity: 0.5; }
.sheet[data-focus="towns"] .m-town text { fill: var(--brown); }
.sheet[data-focus="water"] .m-towns,
.sheet[data-focus="water"] .m-roads,
.sheet[data-focus="water"] .m-shields { opacity: 0.3; }
.sheet[data-focus="water"] .m-lake { fill: var(--water-2); }
.sheet[data-focus="water"] .m-river { stroke-width: 4.4; }

/* Rivers draw themselves in once, on first view */
@media (prefers-reduced-motion: no-preference) {
  .js .m-river { stroke-dasharray: 1; stroke-dashoffset: 1; }
  .js .sheet.is-drawn .m-river { stroke-dashoffset: 0; transition: stroke-dashoffset 2.2s ease-out, stroke-width 0.45s ease; }
}

.map-caption { margin-top: 0.75rem; }
.legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.1rem;
  margin: 0 0 0.4rem;
  padding: 0;
  list-style: none;
  font-size: 1rem;
  font-weight: 600;
}
.legend li { display: inline-flex; align-items: center; gap: 0.5rem; }
.key { display: inline-block; flex: none; }
.key-seat { width: 16px; height: 16px; border: 3px solid var(--ink); border-radius: 50%; background: radial-gradient(circle, var(--ink) 0 3px, var(--paper) 3.5px); }
.key-town { width: 10px; height: 10px; border-radius: 50%; background: var(--ink); margin-inline: 3px; }
.key-us { width: 28px; height: 4px; background: var(--road); border-radius: 2px; }
.key-ar { width: 28px; height: 2px; background: #6f645a; }
.key-line { width: 28px; height: 2.5px; background: repeating-linear-gradient(90deg, var(--ink) 0 9px, transparent 9px 12px, var(--ink) 12px 14px, transparent 14px 17px); }
.key-water { width: 26px; height: 14px; background: var(--water); border: 1.5px solid var(--water-line); border-radius: 2px; }
.sources { margin: 0; font-size: 0.95rem; line-height: 1.45; color: var(--ink-2); }

/* ---------- Story sections ---------- */

.story {
  margin-top: clamp(2.5rem, 5vw, 4rem);
  padding-top: 1.5rem;
  border-top: 3px solid var(--ink);
  position: relative;
}
.story h2 { margin-bottom: 0.9rem; }
.story p { max-width: 58ch; }
.postcard {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  gap: 1rem;
  align-items: end;
  margin: 1.5rem 0 0;
}
.postcard img {
  width: 132px;
  border: 6px solid #fff;
  box-shadow: 0 1px 0 var(--rule), 0 6px 18px -8px rgba(36, 32, 28, 0.45);
  transform: rotate(-1.5deg);
}
.postcard figcaption { font-size: 1rem; color: var(--ink-2); font-style: italic; max-width: 30ch; }

.facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  margin: 1.5rem 0;
  border-top: 1px solid var(--ink);
}
.facts div { padding: 0.8rem 0.5rem 0.9rem 0; border-bottom: 1px solid var(--rule); }
.facts div:nth-child(odd) { border-right: 1px solid var(--rule); }
.facts div:nth-child(even) { padding-left: 1rem; }
.facts dt { font-size: 1rem; font-weight: 600; color: var(--ink-2); }
.facts dd { margin: 0.1rem 0 0; font-size: 1.6rem; font-weight: 800; color: var(--brown); line-height: 1.15; font-variant-numeric: tabular-nums; }

/* ---------- Notices: a woodland-tint band ---------- */

.notices {
  background: var(--forest);
  border-top: 1px solid var(--forest-2);
  border-bottom: 1px solid var(--forest-2);
  padding-block: clamp(2rem, 4vw, 3rem);
}
.notices-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.5rem, 3vw, 3rem);
}
.notice-block h2 { font-size: 1.45rem; margin-bottom: 0.75rem; }
.notice-block + .notice-block { border-left: 1px solid var(--forest-2); padding-left: clamp(1.5rem, 3vw, 3rem); }
.notice-strong { font-weight: 700; font-size: 1.15rem; }
.plain-links { margin: 0; padding: 0; list-style: none; }
.plain-links li { margin: 0 0 0.5rem; }
.plain-links a { font-weight: 650; }
.notices a { color: #12507f; }

/* ---------- Offices: the Yellville inset and the gazetteer ---------- */

.offices { padding-block: clamp(3rem, 6vw, 5rem); }
.section-head { margin-bottom: 2rem; }
.section-head h2 { margin-bottom: 0.6rem; }
.section-head p { margin: 0; color: var(--ink-2); max-width: 60ch; font-size: 1.1rem; }
.offices-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(2rem, 4vw, 4rem);
  align-items: start;
}
.inset { margin: 0; position: sticky; top: 16px; }
.inset-svg { display: block; width: 100%; height: auto; overflow: hidden; font-family: var(--font); }
.inset-caption { margin-top: 0.6rem; font-size: 0.95rem; color: var(--ink-2); }
.i-paper { fill: #fbfaf6; }
.i-neat { fill: none; stroke: var(--ink); stroke-width: 2.5; }
.i-contour { fill: none; stroke: #d5b691; stroke-width: 1.1; }
.i-index { stroke: var(--contour); stroke-width: 2; }
.i-branch { fill: none; stroke: var(--water-line); stroke-width: 1.6; }
.i-creek { fill: none; stroke: var(--water-line); stroke-width: 5; stroke-linecap: round; }
.i-street { fill: none; stroke: #9a8f84; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.i-major { fill: none; stroke: var(--ink); stroke-width: 4.5; stroke-linecap: round; stroke-linejoin: round; }
.i-us { fill: none; stroke: var(--road); stroke-width: 7; stroke-linecap: round; stroke-linejoin: round; }
.i-berry { fill: none; stroke: var(--brown); stroke-width: 9; stroke-linecap: round; }
.i-pinlabel { font-size: 23px; font-weight: 800; }
.inset .m-shield text { font-size: 18px; }
.i-pin circle { fill: var(--ink); stroke: #fff; stroke-width: 3; }
.i-pin text { fill: #fff; font-size: 24px; font-weight: 800; text-anchor: middle; }
.i-label { font-size: 22px; font-weight: 700; fill: var(--ink); paint-order: stroke; stroke: #fbfaf6; stroke-width: 7px; stroke-linejoin: round; }
.i-place { font-size: 34px; font-weight: 850; }
.i-street-label { font-size: 22px; font-weight: 750; fill: var(--brown); }
.i-water { font-style: italic; fill: var(--water-ink); font-weight: 650; }

.place { padding: 1.4rem 0 1.6rem; border-top: 3px solid var(--ink); }
.place + .place { margin-top: 0.5rem; }
.place h3 {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  column-gap: 0.75rem;
  align-items: center;
  margin-bottom: 0.9rem;
}
.place-name { font-size: 1.4rem; }
.place-addr { grid-column: 2; font-size: 1.05rem; font-weight: 550; color: var(--ink-2); }
.pin {
  grid-row: span 2;
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  font-size: 1.15rem;
  font-weight: 800;
  line-height: 1;
  padding-top: 0.15em;
}
.pin-street { background: transparent; border-radius: 0; }
.pin-street::before { content: ""; width: 9px; height: 34px; border-radius: 5px; background: var(--brown); }
.pin-none { background: transparent; border: 2px dashed var(--ink-2); }
.place-top { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 1rem; align-items: center; margin-bottom: 0.9rem; }
.place-top h3 { margin-bottom: 0; }
.place-photo {
  width: 128px;
  border: 4px solid #fff;
  box-shadow: 0 6px 18px -10px rgba(36, 32, 28, 0.6);
  transform: rotate(1.2deg);
}

/* ---------- Helpful numbers and links ---------- */

.helpful { padding-block: clamp(2.5rem, 5vw, 4rem); border-top: 1px solid var(--rule); background: var(--paper-2); }
.helpful-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(2rem, 5vw, 5rem); }
.helpful h2 { font-size: 1.45rem; margin-bottom: 1rem; }
.link-columns { columns: 2; column-gap: 2rem; }
.link-columns li { break-inside: avoid; }

/* ---------- Footer ---------- */

.site-footer {
  background: var(--paper-3);
  border-top: 1px solid var(--ink);
  box-shadow: inset 0 3px 0 var(--paper-3), inset 0 6px 0 var(--ink);
  padding-top: clamp(2.5rem, 5vw, 3.5rem);
  font-size: 1.02rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr repeat(3, minmax(0, 1fr));
  gap: 2rem;
}
.footer-name { font-size: 1.35rem; font-weight: 800; margin-bottom: 0.4rem; }
.footer-h { font-size: 1.1rem; font-weight: 750; margin-bottom: 0.6rem; }
.site-footer a { color: #124d7b; }
.footer-base { margin-top: 2.5rem; padding-bottom: 1.5rem; color: var(--ink-2); font-size: 1rem; }
.footer-base p { padding-top: 1.1rem; border-top: 1px solid #c8bfad; }
.footer-name { display: flex; align-items: center; gap: 0.6rem; }
.footer-name .brand-mark { width: 28px; height: 32px; }

/* ---------- Department page ---------- */

.dept-hero {
  background:
    linear-gradient(90deg, var(--paper) 0, rgba(246, 244, 238, 0.75) 32%, rgba(246, 244, 238, 0) 72%),
    linear-gradient(0deg, var(--paper) 0, rgba(246, 244, 238, 0) 40%),
    url("map/band-yellville.svg") 70% 50% / cover no-repeat;
  padding-bottom: 3.5rem;
}
.crumbs { padding-top: 1.25rem; font-size: 1rem; }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 0.25rem 0.5rem; margin: 0; padding: 0; list-style: none; }
.crumbs li + li::before { content: "/"; color: var(--ink-2); margin-right: 0.5rem; }
.crumbs a { font-weight: 600; }

.dept-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 2rem;
  align-items: end;
  padding-top: clamp(1.25rem, 3vw, 2rem);
  padding-bottom: 1.5rem;
}
.dept-head h1 { font-size: clamp(2.6rem, 1.8rem + 3vw, 4.4rem); }
.dept-sub { margin: 0.75rem 0 0; font-size: 1.25rem; font-weight: 550; color: var(--ink-2); }
.locator { margin: 0; display: grid; grid-template-columns: auto auto; gap: 0.9rem; align-items: center; padding: 0.9rem 1.1rem; background: rgba(251, 250, 246, 0.92); border: 1px solid var(--ink); }
.locator svg { width: 112px; height: auto; overflow: visible; }
.locator figcaption { font-size: 1rem; line-height: 1.35; color: var(--ink-2); max-width: 15ch; }
.locator figcaption strong { color: var(--ink); display: block; font-size: 1.05rem; }
.l-county { fill: #fbfaf6; stroke: var(--ink); stroke-width: 6; stroke-linejoin: round; }
.l-lake { fill: var(--water); stroke: var(--water-line); stroke-width: 2; }
.l-river { fill: none; stroke: var(--water-line); stroke-width: 6; stroke-linejoin: round; stroke-linecap: round; }
.l-pin { fill: var(--road); stroke: #fff; stroke-width: 7; }

/* Contact card: a map title block */
.contact-card {
  border: 1px solid var(--ink);
  outline: 3px solid var(--ink);
  outline-offset: 4px;
  background: #fbfaf6;
  margin: -2.5rem 7px 3rem;
  position: relative;
}
.contact-card h2 { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.card-grid {
  display: grid;
  grid-template-columns: 1.15fr 1.25fr 1fr 1fr;
}
.card-cell { padding: 1.2rem 1.4rem 1.3rem; border-right: 1px solid var(--rule); }
.card-cell:last-child { border-right: 0; }
.card-official { background: var(--forest); }
.card-label { display: block; font-size: 0.95rem; font-weight: 650; color: var(--ink-2); margin-bottom: 0.2rem; }
.card-name { font-size: 1.5rem; font-weight: 800; line-height: 1.15; margin: 0; }
.card-title { margin: 0.3rem 0 0; font-weight: 600; color: var(--forest-ink); }
.card-dl { margin: 0; }
.card-dl div + div { margin-top: 0.7rem; }
.card-dl dt { font-size: 0.95rem; font-weight: 650; color: var(--ink-2); }
.card-dl dd { margin: 0; font-weight: 650; overflow-wrap: anywhere; }
.card-dl .tel { font-size: 1.3rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.card-cell address { font-style: normal; }

.dept-body-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
  padding-bottom: clamp(3rem, 6vw, 5rem);
}

/* Prose: generic blocks the county edits */
.prose { max-width: 70ch; }
.prose > * + * { margin-top: 1em; }
.prose h2 {
  margin-top: 2em;
  padding-top: 0.9rem;
  border-top: 3px solid var(--ink);
  font-size: clamp(1.55rem, 1.3rem + 0.8vw, 1.95rem);
}
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 1.9em; font-size: 1.3rem; color: var(--brown); }
.prose h2 + *, .prose h3 + * { margin-top: 0.6em; }
.prose p, .prose li { max-width: 68ch; }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose li + li { margin-top: 0.35em; }
.prose li::marker { color: var(--contour-2); }
.prose strong { font-weight: 750; }
.prose a[href^="tel:"] { white-space: nowrap; }
.prose img { display: block; border: 5px solid #fff; box-shadow: 0 6px 18px -10px rgba(36, 32, 28, 0.6); }
.prose blockquote { margin-inline: 0; padding: 0.2rem 0 0.2rem 1.2rem; border-left: 4px solid var(--contour); }
.prose table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.prose caption { text-align: left; font-weight: 750; padding-bottom: 0.5rem; }
.prose th, .prose td { text-align: left; padding: 0.65rem 0.9rem 0.65rem 0; border-bottom: 1px solid var(--rule); vertical-align: top; }
.prose thead th { border-bottom: 2px solid var(--ink); font-size: 1rem; color: var(--ink-2); }
.prose tbody th { font-weight: 700; }
@media (min-width: 700px) { .prose tbody th { white-space: nowrap; } }
.prose address { font-style: normal; padding: 0.9rem 1.1rem; background: var(--paper-2); border-left: 4px solid var(--contour); }

a.button, .button {
  display: inline-flex;
  align-items: center;
  min-height: 52px;
  padding: 0.65rem 1.4rem;
  background: var(--water-ink);
  color: #fff;
  font-weight: 750;
  font-size: 1.1rem;
  text-decoration: none;
  border-radius: 3px;
  box-shadow: 0 3px 0 #0d3a5f;
}
a.button:hover { background: var(--ink); color: #fff; box-shadow: 0 3px 0 #000; }
a.button:active { transform: translateY(2px); box-shadow: 0 1px 0 #0d3a5f; }

.dept-aside { position: sticky; top: 16px; }
.dept-aside h2 { font-size: 1.25rem; margin-bottom: 0.6rem; }
.aside-list { margin: 0; padding: 0; list-style: none; border-top: 3px solid var(--ink); }
.aside-list a {
  display: block;
  padding: 0.55rem 0.4rem;
  border-bottom: 1px solid var(--rule);
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
}
.aside-list a:hover { background: var(--forest); color: var(--water-ink); text-decoration: underline; }
.aside-list a[aria-current="page"] { background: var(--ink); color: #fff; }
.aside-note { margin-top: 1.25rem; font-size: 1rem; color: var(--ink-2); }

/* ---------- Responsive ---------- */

@media (max-width: 1099px) {
  .header-bar { min-height: 72px; flex-wrap: wrap; gap: 0 1rem; }
  .menu-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    min-height: 48px;
    padding: 0.4rem 1rem;
    border: 2px solid var(--ink);
    border-radius: 3px;
    background: var(--paper);
    color: var(--ink);
    font: inherit;
    font-weight: 750;
    font-size: 1.05rem;
    cursor: pointer;
  }
  .menu-toggle[aria-expanded="true"] { background: var(--ink); color: var(--paper); }
  .menu-icon { position: relative; width: 20px; height: 2.5px; background: currentColor; }
  .menu-icon::before, .menu-icon::after { content: ""; position: absolute; left: 0; width: 20px; height: 2.5px; background: currentColor; transition: transform 0.2s ease; }
  .menu-icon::before { top: -6px; }
  .menu-icon::after { top: 6px; }
  .menu-toggle[aria-expanded="true"] .menu-icon { background: transparent; }
  .menu-toggle[aria-expanded="true"] .menu-icon::before { transform: translateY(6px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] .menu-icon::after { transform: translateY(-6px) rotate(-45deg); }

  .site-nav { flex-basis: 100%; }
  .js .site-nav { display: none; }
  .js .site-nav.is-open { display: block; }
  .site-nav { padding: 0.5rem 0 1.25rem; border-top: 1px solid var(--rule); }
  .nav-list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-list > li { border-bottom: 1px solid var(--rule); }
  .nav-link { width: 100%; padding-inline: 0.25rem; font-size: 1.15rem; }
  .dept-toggle { display: none; }
  .dept-panel { padding: 0.75rem 0 0.5rem; }
  .dept-panel-title { display: block; margin: 0 0 0.25rem; font-weight: 800; font-size: 1.15rem; padding-inline: 0.25rem; }
  .dept-list { margin: 0; padding: 0 0 0 0.75rem; list-style: none; border-left: 3px solid var(--contour); columns: 2 16rem; column-gap: 1.5rem; }
  .dept-list a { display: flex; align-items: center; min-height: 44px; padding: 0.2rem 0.25rem; color: var(--ink); font-weight: 600; text-decoration: none; }
  .dept-list a:hover { text-decoration: underline; color: var(--water-ink); }
  .dept-panel-foot { margin-top: 0.5rem; padding: 0.75rem 0.25rem 0; }
  .nav-cta-item { margin: 1rem 0 0; border-bottom: 0 !important; }
  .nav-cta { width: 100%; justify-content: center; }
}

@media (max-width: 1023px) {
  .atlas { grid-template-columns: minmax(0, 1fr); }
  .atlas-map { position: static; order: 2; }
  .atlas-text { display: contents; }
  .intro { order: 0; }
  .tasks { order: 1; }
  .story { order: 3; }
  .sheet { width: 100%; min-width: 0; }
  .offices-grid { grid-template-columns: minmax(0, 1fr); }
  .inset { position: static; max-width: 720px; }
  .notices-grid { grid-template-columns: minmax(0, 1fr); }
  .notice-block + .notice-block { border-left: 0; padding-left: 0; border-top: 1px solid var(--forest-2); padding-top: 1.5rem; }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .section-head { grid-template-columns: minmax(0, 1fr); gap: 0.75rem; }
  .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .card-cell:nth-child(2) { border-right: 0; }
  .card-cell:nth-child(-n+2) { border-bottom: 1px solid var(--rule); }
  .dept-body-grid { grid-template-columns: minmax(0, 1fr); }
  .dept-aside { position: static; }
}

@media (max-width: 699px) {
  body { font-size: 18px; }
  .brand-name { font-size: 1.25rem; }
  .brand-state { font-size: 0.95rem; }
  .brand-mark { width: 30px; height: 34px; }
  .dept-list { columns: 1; }
  h1 { font-size: 2.6rem; }
  .task-list .index-row { grid-template-columns: minmax(0, 1fr); row-gap: 0.1rem; padding-block: 0.75rem; }
  .index-row { grid-template-columns: minmax(0, max-content) minmax(0.5rem, 1fr) auto; column-gap: 0.4rem; }
  .gazetteer .index-detail:not(.is-note), .index-static .index-detail { white-space: nowrap; }
  .index-detail.is-note { max-width: 9.5rem; }
  .index-name { font-size: 1.05rem; }
  .place-photo { width: 92px; }
  .facts dd { font-size: 1.35rem; }
  .postcard { grid-template-columns: 110px minmax(0, 1fr); }
  .postcard img { width: 110px; }
  .helpful-grid { grid-template-columns: minmax(0, 1fr); }
  .link-columns { columns: 1; }
  .footer-grid { grid-template-columns: minmax(0, 1fr); gap: 1.5rem; }
  .card-grid { grid-template-columns: minmax(0, 1fr); }
  .card-cell { border-right: 0; border-bottom: 1px solid var(--rule); }
  .card-cell:last-child { border-bottom: 0; }
  .dept-head { grid-template-columns: minmax(0, 1fr); gap: 1.25rem; }
  .locator svg { width: 84px; }

  /* Map on a phone: full-bleed sheet (side margins cropped), fewer and larger labels */
  .atlas-map { margin-inline: calc(-1 * var(--gutter)); overflow: hidden; }
  .sheet { width: calc(100% / 0.883392); max-width: none; margin-left: calc(-100% * 0.0920); }
  .map-caption { padding-inline: var(--gutter); }
  .m-coord, .m-cross, .m-ticks, .m-area:not(.m-state), .m-shield.m-minor, .m-km, .m-scale-mid { display: none; }
  .m-neat { stroke-width: 0; }
  .m-state { font-size: 30px; }
  .m-town text { font-size: 40px; stroke-width: 9px; }
  .m-seat text { font-size: 48px; }
  .m-town-yellville text, .m-town-flippin text { text-anchor: end; }
  .m-town-yellville text { transform: translate(-36px, 2px); }
  .m-town-flippin text { transform: translate(-34px, -4px); }
  .m-wlabel { font-size: 36px; stroke-width: 9px; }
  .m-wlabel-lake { font-size: 40px; }
  .m-long { display: none; }
  .m-short { display: inline; }
  .m-river { stroke-width: 4.5; }
  .sheet[data-focus="water"] .m-river { stroke-width: 6; }
  .m-county { stroke-width: 4; stroke-dasharray: 26 8 5 8; }
  .m-road-us { stroke-width: 5.5; }
  .m-road-ar { stroke-width: 3.2; }
  .m-dot { r: 9px; }
  .m-dot-ring { r: 16px; }
  .m-seat .m-dot { r: 7px; }
  .m-shield { transform-box: fill-box; transform-origin: center; transform: scale(1.6); }
  .m-scale-n, .m-scale-u { font-size: 30px; }
  .m-scale-u { transform: translate(4px, 4px); }
  .m-note { font-size: 30px; }
  .m-note-2 { display: none; }
  .m-ci-100 { display: none; }
  .m-ci-200 { display: inline; }
  .m-north text { font-size: 30px; }
  .m-ribbon { stroke-width: 34; }

  .i-pinlabel { font-size: 36px; stroke-width: 10px; }
  .i-place { font-size: 48px; }
  .i-street-label { font-size: 32px; }
  .i-water { font-size: 32px; }
  .i-pin circle { r: 27px; }
  .i-pin text { font-size: 32px; transform: translateY(3px); }
  .inset .m-shield { transform-box: fill-box; transform-origin: center; transform: scale(1.5); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

@media print {
  .site-header, .menu-toggle, .site-nav, .atlas-map, .inset { display: none; }
  body { background: #fff; }
}
