/* Randolph County, Missouri — public site styles.
 * WCAG 2.1 AA: all text/background pairs meet 4.5:1 (large text 3:1),
 * every interactive element has a visible focus state, and layout reflows
 * to a single column without horizontal scrolling down to 320px.
 */

/* Palette taken from the county's own things: the navy and gold of the seal,
   and the limestone of the courthouse it sits on. */
:root {
    --navy: #1d4289;
    --navy-dark: #14306a;
    --ink: #1f2430;
    --muted: #4c5566;      /* 7.4:1 on white */
    --paper: #ffffff;
    --limestone: #ece8df;  /* the courthouse's own stone — bands, not backgrounds */
    --limestone-line: #d8d2c5;
    --wash: #f2f5fa;
    --line: #d7dee9;
    --gold: #b98a1c;       /* the wheat and acorns in the seal */

    /* Zilla Slab carries the headings: slab serif has the weight of something
       cut into a building, which is what this is. Raleway carries the text.
       The suite numbers and extensions are set in a monospace face, because
       they are coordinates, not prose. */
    --display: 'Zilla Slab', Georgia, 'Times New Roman', serif;
    --body: 'Raleway', Arial, sans-serif;
    --utility: ui-monospace, SFMono-Regular, 'SF Mono', Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: var(--body);
    font-size: 17px;
    line-height: 1.6;
    color: var(--ink);
    background: var(--paper);
}

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

a { color: var(--navy); }
a:hover { color: var(--navy-dark); }
a:focus-visible,
button:focus-visible {
    outline: 3px solid var(--navy);
    outline-offset: 2px;
    border-radius: 2px;
}

h1, h2, h3 {
    font-family: var(--display);
    line-height: 1.15;
    color: var(--navy-dark);
    letter-spacing: -0.005em;
}
h1 { font-size: clamp(2rem, 4vw, 2.6rem); font-weight: 600; }
h2 { font-size: 1.55rem; font-weight: 600; }
h3 { font-size: 1.15rem; font-weight: 600; line-height: 1.25; }

/* Section headings carry a short gold bar — an echo of the seal's banner. */
.page > h2 {
    padding-bottom: 0.45rem;
    position: relative;
}
.page > h2::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 56px;
    height: 3px;
    background: var(--gold);
}

.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    background: var(--navy);
    color: #fff;
    padding: 0.75rem 1.25rem;
    z-index: 100;
}
.skip-link:focus {
    left: 0;
    color: #fff;
}

/* Header — sticky; the seal starts oversized and compacts on scroll. */
.site-header {
    background: var(--paper);
    border-bottom: 4px solid var(--navy);
    position: sticky;
    top: 0;
    z-index: 50;
}
.site-header.is-compact {
    box-shadow: 0 2px 14px rgba(20, 48, 106, 0.18);
}
.site-header__inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0.65rem 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}
.site-brand {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    text-decoration: none;
    /* Must be allowed to shrink, or the brand block sets a floor on the
       document's width and the whole page scrolls sideways on a phone. */
    min-width: 0;
}
.site-brand__logo {
    height: 128px;
    width: auto;
    transition: height 0.25s ease;
}
.site-header.is-compact .site-brand__logo {
    height: 56px;
}
@media (prefers-reduced-motion: reduce) {
    .site-brand__logo { transition: none; }
}
.site-brand__text { display: flex; flex-direction: column; min-width: 0; }
.site-brand__name {
    font-family: var(--display);
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--navy-dark);
    letter-spacing: 0.02em;
}
.site-brand__state {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.28em;
    color: var(--muted);
}
@media (max-width: 640px) {
    .site-brand__logo { height: 64px; }
    .site-header.is-compact .site-brand__logo { height: 44px; }
    .site-brand__name { font-size: 1.15rem; }
    .site-brand__state { font-size: 0.68rem; letter-spacing: 0.1em; }
}
.site-nav { margin-left: auto; }
.site-nav ul {
    list-style: none;
    display: flex;
    gap: 0.25rem;
    margin: 0;
    padding: 0;
    flex-wrap: wrap;
}
.site-nav a {
    display: block;
    padding: 0.5rem 0.85rem;
    text-decoration: none;
    font-weight: 600;
    color: var(--navy-dark);
    border-radius: 4px;
}
.site-nav a:hover { background: var(--wash); }
.site-nav a[aria-current="page"] {
    background: var(--navy);
    color: #fff;
}
.nav-toggle { display: none; }

@media (max-width: 800px) {
    .nav-toggle {
        display: inline-flex;
        align-items: center;
        gap: 0.5rem;
        margin-left: auto;
        background: var(--navy);
        color: #fff;
        border: 0;
        font: inherit;
        font-weight: 600;
        padding: 0.5rem 0.9rem;
        border-radius: 4px;
    }
    .nav-toggle__bars,
    .nav-toggle__bars::before,
    .nav-toggle__bars::after {
        display: block;
        width: 18px;
        height: 2px;
        background: #fff;
        position: relative;
        content: "";
    }
    .nav-toggle__bars::before { position: absolute; top: -6px; }
    .nav-toggle__bars::after { position: absolute; top: 6px; }
    .site-nav { display: none; width: 100%; }
    .site-nav.is-open { display: block; }
    .site-nav ul { flex-direction: column; }
}

/* Hero — resident photographs cross-fading behind the county's name. */
.hero {
    position: relative;
    background: var(--navy-dark);
    height: 460px;
    overflow: hidden;
}
/* The photographs run past in a continuous marquee, several in view at once.
   Each keeps its own proportions (height fixed, width follows the picture), so
   a panorama and a portrait both show whole — no cropping, no letterboxing.
   The run is printed twice and the track scrolls exactly one copy's width, so
   the loop is seamless. */
.hero__marquee {
    display: flex;
    align-items: center;
    height: 100%;
    width: max-content;
    gap: 10px;
    animation: hero-marquee 90s linear infinite;
    will-change: transform;
}
.hero__frame {
    height: 100%;
    width: auto;
    flex: 0 0 auto;
    display: block;
    object-fit: cover;
}

@keyframes hero-marquee {
    from { transform: translateX(0); }
    /* Half the track is one full copy of the photographs. */
    to { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
    .hero__marquee { animation: none; }
}
/* The county's name sits over the photographs, left-aligned and low in the
   frame, with a scrim so it stays legible against any of them. */
.hero__panel {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    max-width: 1100px;
    margin: 0 auto;
    padding: 1rem 1rem 2.25rem;
    pointer-events: none;
}
/* The scrim now weights toward the bottom, where the words sit, so the
   photographs stay open at the top. */
.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(to top, rgba(20, 48, 106, 0.92) 0%, rgba(20, 48, 106, 0.55) 38%, rgba(20, 48, 106, 0) 72%),
        linear-gradient(to right, rgba(20, 48, 106, 0.55) 0%, rgba(20, 48, 106, 0.15) 60%, rgba(20, 48, 106, 0) 100%);
}
.hero__panel { z-index: 2; }
.hero__panel h1 {
    color: #fff;
    font-size: clamp(1.9rem, 5vw, 3.4rem);
    margin: 0 0 0.5rem;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.55);
}
.hero__panel p {
    color: #fff;
    font-size: clamp(1rem, 2.2vw, 1.3rem);
    max-width: 34em;
    margin: 0;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.55);
}
@media (max-width: 640px) {
    .hero { height: 340px; }
}

/* Shared page shell */
.page {
    max-width: 1100px;
    margin: 0 auto;
    padding: 2rem 1rem 3rem;
}
/* Where two sections stack (the home page), don't double the vertical padding —
   the first section's bottom padding alone is the gap between them. */
.page + .page { padding-top: 0; }
.page--narrow { max-width: 800px; }
.lead { font-size: 1.15rem; color: var(--muted); }

/* Card grids */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1rem;
    padding: 0;
    margin: 1.5rem 0;
    list-style: none;
}

/* On a phone the cards go one per row — two columns squeezes the office names. */
@media (max-width: 640px) {
    .card-grid { grid-template-columns: 1fr; }
}
.card {
    background: var(--paper);
    border: 1px solid var(--line);
    border-top: 4px solid var(--navy);
    border-radius: 6px;
    padding: 1.1rem 1.2rem;
}
.card h3 { margin: 0 0 0.4rem; }
.card p { margin: 0; color: var(--muted); font-size: 0.95rem; }
.card a { font-weight: 600; text-decoration: none; }
.card a:hover { text-decoration: underline; }
.card .external-note {
    display: inline-block;
    margin-top: 0.4rem;
    font-size: 0.8rem;
    color: var(--muted);
}

/* Home sections */
.band { background: var(--wash); }
.band .page { padding-top: 2.5rem; padding-bottom: 2.5rem; }

.photo-strip {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 0.75rem;
    margin: 1.5rem 0 0;
    padding: 0;
    list-style: none;
}
.photo-strip img {
    width: 100%;
    height: 190px;
    object-fit: cover;
    border-radius: 6px;
    display: block;
}
.photo-strip figcaption {
    font-size: 0.85rem;
    color: var(--muted);
    margin-top: 0.3rem;
}

/* Contact card on department pages — limestone, like the building. */
.contact-card {
    background: var(--limestone);
    border: 1px solid var(--limestone-line);
    border-radius: 6px;
    padding: 1.2rem 1.4rem;
    margin: 1.25rem 0;
}
.contact-card dt {
    font-weight: 700;
    color: var(--navy-dark);
    margin-top: 0.6rem;
}
.contact-card dt:first-child { margin-top: 0; }
.contact-card dd { margin: 0; }

/* Document lists (agendas, ordinances, dept documents) */
.doc-list {
    list-style: none;
    margin: 1rem 0;
    padding: 0;
}
.doc-list li {
    border-bottom: 1px solid var(--line);
    padding: 0.7rem 0.25rem;
    display: flex;
    align-items: baseline;
    gap: 0.75rem;
    flex-wrap: wrap;
}
.doc-list .doc-date {
    color: var(--muted);
    font-size: 0.9rem;
    min-width: 9em;
}
.doc-list a { font-weight: 600; }

/* Tables (holiday schedule) */
.table-wrap { overflow-x: auto; }
table.plain {
    border-collapse: collapse;
    width: 100%;
    margin: 1rem 0;
}
table.plain caption {
    text-align: left;
    font-weight: 700;
    color: var(--navy-dark);
    padding-bottom: 0.5rem;
}
table.plain th,
table.plain td {
    text-align: left;
    padding: 0.55rem 0.75rem;
    border-bottom: 1px solid var(--line);
}
table.plain th { background: var(--wash); color: var(--navy-dark); }

/* Buttons */
.btn-primary {
    display: inline-block;
    background: var(--navy);
    color: #fff;
    font-weight: 600;
    padding: 0.65rem 1.3rem;
    border-radius: 5px;
    text-decoration: none;
}
.btn-primary:hover { background: var(--navy-dark); color: #fff; }

/* Flash messages */
.message {
    max-width: 1100px;
    margin: 1rem auto 0;
    padding: 0.8rem 1.1rem;
    border-radius: 5px;
    background: var(--wash);
    border: 1px solid var(--line);
}
.message.error { background: #faeaea; border-color: #d99; }
.message.success { background: #e9f5ec; border-color: #9c9; }

/* Footer */
.site-footer {
    background: var(--navy-dark);
    color: #fff;
    margin-top: 3rem;
}
.site-footer a { color: #fff; }
.site-footer__inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 2.25rem 1rem 1rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
}
.site-footer__heading {
    color: #fff;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin: 0 0 0.6rem;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 0.35rem; }
.site-footer address { font-style: normal; }
.site-footer__bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    max-width: 1100px;
    margin: 0 auto;
    padding: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.25);
    font-size: 0.9rem;
}
.site-footer__copy { margin: 0; }
.site-footer__legal { display: flex; gap: 0.6rem; align-items: center; }
.site-footer__legal a { text-decoration: none; }
.site-footer__legal a:hover { text-decoration: underline; }

/* Official-website callout on department pages */
.official-site-callout {
    background: var(--navy);
    color: #fff;
    border-radius: 6px;
    padding: 1.25rem 1.4rem;
    margin: 1.25rem 0;
}
.official-site-callout p { margin: 0 0 0.9rem; }
.official-site-callout .btn-primary {
    background: #fff;
    color: var(--navy-dark);
}
.official-site-callout .btn-primary:hover {
    background: var(--wash);
    color: var(--navy-dark);
}

/* Urgent callout — used where a phone call must come before a web form */
.urgent-callout {
    border: 2px solid var(--navy);
    border-left: 6px solid var(--gold);
    border-radius: 6px;
    padding: 1.1rem 1.3rem;
    margin: 1.5rem 0;
    background: var(--wash);
}
.urgent-callout h2 { margin: 0 0 0.4rem; font-size: 1.15rem; }
.urgent-callout p { margin: 0; }

/* Public forms */
.county-form fieldset {
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: 1.1rem 1.3rem 1.4rem;
    margin: 1.5rem 0;
}
.county-form legend {
    font-family: var(--display);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--navy-dark);
    padding: 0 0.5rem;
}
.form-row { margin-bottom: 1rem; }
.form-row label,
.form-row__label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.3rem;
}
.county-form input[type="text"],
.county-form input[type="tel"],
.county-form input[type="email"],
.county-form input[type="date"],
.county-form input[type="time"],
.county-form select,
.county-form textarea {
    width: 100%;
    padding: 0.55rem 0.7rem;
    border: 1px solid var(--line);
    border-radius: 4px;
    font: inherit;
    color: var(--ink);
    background: #fff;
}
/* No drag handle: the boxes are sized for what they hold, and a resized one
   only breaks the column. */
.county-form textarea { resize: none; }
.county-form input:focus-visible,
.county-form select:focus-visible,
.county-form textarea:focus-visible {
    outline: 3px solid var(--navy);
    outline-offset: 1px;
    border-color: var(--navy);
}
/* FormHelper wraps a radio group in .input.radio: the first label is the
   question, the rest are the options. The options run side by side —
   ( ) Yes  ( ) No — the way they read on the paper form. */
.county-form .input.radio > label:first-of-type {
    display: block;
    font-weight: 600;
    margin-bottom: 0.4rem;
}
.county-form .input.radio label:not(:first-of-type) {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-weight: 400;
    margin-right: 1.75rem;
    cursor: pointer;
}
.county-form .input.radio input[type="radio"] {
    width: auto;
    margin: 0;
    accent-color: var(--navy);
}
.req { color: #a12525; font-weight: 700; }
.form-note { color: var(--muted); font-size: 0.95rem; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ─── The courthouse directory ───────────────────────────────────────────────
   The board in the courthouse lobby, rendered as a page. Each row is an
   office; the right-hand column carries where it is (suite) and how to reach
   it (extension), set in the utility face because they are coordinates.
   The gold rule under a floor heading is the only ornament here. */

.directory {
    margin: 2.5rem 0;
}
.directory__floor {
    font-size: 1.05rem;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: var(--navy-dark);
    margin: 0;
    padding-bottom: 0.5rem;
    border-bottom: 3px solid var(--gold);
}
.directory__blurb {
    color: var(--muted);
    margin: 0.6rem 0 0.25rem;
    font-size: 0.95rem;
}

.directory__list {
    list-style: none;
    margin: 0;
    padding: 0;
}
.directory__row + .directory__row {
    border-top: 1px solid var(--limestone-line);
}
.directory__link {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1.5rem;
    padding: 0.95rem 0.75rem;
    text-decoration: none;
    color: inherit;
    /* The row lights up as a whole — it is one target, not a link in a line. */
    transition: background-color 0.12s ease, padding-left 0.12s ease;
}
.directory__link:hover,
.directory__link:focus-visible {
    background: var(--limestone);
    padding-left: 1.1rem;
    color: inherit;
}

.directory__office {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    min-width: 0;
}
.directory__name {
    font-family: var(--display);
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--navy-dark);
}
.directory__link:hover .directory__name { text-decoration: underline; }
.directory__holder {
    font-size: 0.9rem;
    color: var(--muted);
}

/* Two fixed columns, so suites line up under suites and extensions under
   extensions — a ragged right edge would defeat the point of a board. */
.directory__coords {
    display: grid;
    grid-template-columns: 2.9rem 8.5rem;
    align-items: baseline;
    gap: 0.9rem;
    flex: 0 0 auto;
    font-family: var(--utility);
}
.directory__suite-cell { display: block; }
/* The suite reads like the plate beside the office door. */
.directory__suite {
    display: inline-block;
    min-width: 2.9rem;
    text-align: center;
    padding: 0.2rem 0.5rem;
    background: var(--navy-dark);
    color: #fff;
    border-radius: 3px;
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.04em;
}
.directory__ext {
    font-size: 0.95rem;
    color: var(--ink);
    white-space: nowrap;
}
.directory__ext-label {
    color: var(--muted);
    margin-right: 0.2rem;
}

@media (max-width: 560px) {
    .directory__link {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.55rem;
    }
    .directory__coords {
        grid-template-columns: auto auto;
        justify-content: start;
    }
}

/* The office's own plaque, echoing the directory board. */
.office-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1.5rem;
    flex-wrap: wrap;
    padding-bottom: 1rem;
    border-bottom: 3px solid var(--gold);
    margin-bottom: 1.5rem;
}
.office-head h1 { margin: 0.25rem 0 0; }
.office-head__holder {
    margin: 0.35rem 0 0;
    color: var(--muted);
    font-size: 1.05rem;
}
.office-head__plaque {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.45rem;
    font-family: var(--utility);
    text-align: right;
}
.office-head__suite {
    display: inline-flex;
    align-items: baseline;
    gap: 0.45rem;
    background: var(--navy-dark);
    color: #fff;
    padding: 0.35rem 0.7rem;
    border-radius: 3px;
    font-size: 1.15rem;
    font-weight: 600;
    letter-spacing: 0.04em;
}
.office-head__suite-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    opacity: 0.8;
}
.office-head__ext {
    font-size: 0.95rem;
    color: var(--ink);
    text-decoration: none;
    white-space: nowrap;
}
.office-head__ext:hover { text-decoration: underline; }
.office-head__ext-num { color: var(--navy); font-weight: 600; }

@media (max-width: 560px) {
    .office-head__plaque { align-items: flex-start; text-align: left; }
}

/* ─── Start here ────────────────────────────────────────────────────────────
   Tasks, not "features": each row names a thing a resident came to do. The
   first spans the grid because it is the one most of them want — the office
   directory — and the rest sit quietly beneath it. */
.task-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1px;
    background: var(--limestone-line);
    border: 1px solid var(--limestone-line);
    border-radius: 6px;
    overflow: hidden;
    list-style: none;
    margin: 1.5rem 0 0;
    padding: 0;
}
.task--wide { grid-column: 1 / -1; }
.task a {
    display: block;
    height: 100%;
    background: var(--paper);
    padding: 1.15rem 1.3rem;
    text-decoration: none;
    color: inherit;
    transition: background-color 0.12s ease;
}
.task a:hover,
.task a:focus-visible { background: var(--limestone); }
.task h3 {
    margin: 0 0 0.35rem;
    color: var(--navy-dark);
}
.task a:hover h3 { text-decoration: underline; }
.task p {
    margin: 0;
    color: var(--muted);
    font-size: 0.95rem;
}
/* Says plainly that this one leaves the county's site. */
.task__away {
    display: block;
    margin-top: 0.5rem;
    font-family: var(--utility);
    font-size: 0.72rem;
    color: var(--muted);
}
.task--wide h3 { font-size: 1.35rem; }

/* Long unbroken strings — an email address, a URL in a document label — must
   wrap rather than widen the page. */
.contact-card dd,
.doc-list a,
.directory__name,
.office-head__holder { overflow-wrap: anywhere; }

/* ─── Chronology ────────────────────────────────────────────────────────────
   The years are data, so they are set in the utility face and given a column
   of their own; the rule down the left is the thread they hang from. */
.chronology {
    list-style: none;
    margin: 1.5rem 0 2.5rem;
    padding: 0 0 0 1.25rem;
    border-left: 3px solid var(--limestone-line);
}
.chronology__entry {
    display: grid;
    grid-template-columns: 5.5rem 1fr;
    gap: 1.25rem;
    padding: 0.9rem 0;
    align-items: baseline;
}
.chronology__entry + .chronology__entry { border-top: 1px solid var(--limestone-line); }
.chronology__year {
    font-family: var(--utility);
    font-weight: 600;
    color: var(--navy-dark);
    letter-spacing: 0.02em;
}
.chronology__event { color: var(--ink); }

@media (max-width: 560px) {
    .chronology__entry {
        grid-template-columns: 1fr;
        gap: 0.3rem;
    }
}

/* ─── The album ─────────────────────────────────────────────────────────────
   Old photographs, matted on limestone. They are of different shapes and that
   is left alone — nothing is cropped to make a tidy grid of them. */
.album {
    list-style: none;
    margin: 1.5rem 0 2.5rem;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    /* Each mat hugs its own photograph. Stretching them to a common row height
       leaves a tall portrait's neighbour sitting over a pool of empty stone. */
    align-items: start;
}
.album li { list-style: none; }
.album figure {
    margin: 0;
    background: var(--limestone);
    border: 1px solid var(--limestone-line);
    border-radius: 4px;
    padding: 0.85rem;
}
.album img {
    width: 100%;
    height: auto;
    display: block;
    background: var(--paper);
}
.album figcaption {
    margin-top: 0.7rem;
    font-size: 0.9rem;
    line-height: 1.45;
    color: var(--muted);
}
/* The newspaper clipping is a long, thin strip — it runs the full width. */
.album__wide { grid-column: 1 / -1; }


/* The Yes/No fieldset reads as one inline row: the question, then the two
   options side by side — a fieldset for the screen reader, flat for the eye. */
.county-form fieldset.yesno {
    border: 0;
    padding: 0;
    margin: 0;
}
.county-form fieldset.yesno legend {
    font-family: var(--body);
    font-size: 1rem;
    font-weight: 600;
    color: var(--ink);
    padding: 0;
    margin-bottom: 0.4rem;
}
.county-form fieldset.yesno label {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-right: 2rem;
    font-weight: 400;
}
.county-form fieldset.yesno input[type="radio"] {
    width: auto;
    margin: 0;
    accent-color: var(--navy);
}

/* ─── Choices dropdowns ─────────────────────────────────────────────────────
   Choices.js ships its own grey, taller theme; make its widget look like the
   text inputs beside it, so a dropdown and a text box read as the same field. */
.county-form .choices { margin: 0; }
.county-form .choices__inner {
    min-height: 0;
    padding: 0.55rem 0.7rem;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 4px;
    font: inherit;
    color: var(--ink);
    line-height: 1.4;
}
.county-form .choices.is-focused .choices__inner,
.county-form .choices.is-open .choices__inner {
    border-color: var(--navy);
    outline: 3px solid var(--navy);
    outline-offset: 1px;
}
.county-form .choices__inner .choices__list--single {
    padding: 0;
}
.county-form .choices__list--single .choices__item {
    color: var(--ink);
}
/* Round only the top when the list opens below, so it reads as one field. */
.county-form .choices.is-open .choices__inner {
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}
.county-form .choices__list--dropdown,
.county-form .choices__list[aria-expanded] {
    border: 1px solid var(--navy);
    border-radius: 0 0 4px 4px;
}
.county-form .choices__list--dropdown .choices__item--selectable.is-highlighted {
    background: var(--wash);
}
.county-form .choices[data-type*="select-one"]::after {
    border-color: var(--muted) transparent transparent;
}
/* The type-to-search box inside the dropdown. */
.county-form .choices__input {
    background: #fff;
    padding: 0.4rem 0.5rem;
    font: inherit;
}

/* ─── Admin bar ─────────────────────────────────────────────────────────────
   Shown only to a signed-in staff member: a black strip across the very top of
   the public site with a one-click way back into the admin. */
.admin-bar {
    background: #111318;
    color: #f4f4f4;
    font-family: var(--body);
    font-size: 0.82rem;
    border-bottom: 2px solid var(--gold);
}
.admin-bar__inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0.4rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}
.admin-bar__brand {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--gold);
    white-space: nowrap;
}
.admin-bar__dot {
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 50%;
    background: var(--gold);
}
.admin-bar__who {
    color: #b7bcc7;
}
.admin-bar__who strong {
    color: #fff;
    font-weight: 600;
}
.admin-bar__role {
    color: #8b93a4;
}
.admin-bar__role::before {
    content: "·";
    margin: 0 0.35rem;
    color: #5a6172;
}
.admin-bar__actions {
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    gap: 1.25rem;
    white-space: nowrap;
}
.admin-bar a {
    color: #fff;
    text-decoration: none;
    font-weight: 600;
}
.admin-bar a:hover,
.admin-bar a:focus-visible {
    text-decoration: underline;
}
.admin-bar__logout {
    color: #ffc9c9;
}
@media (max-width: 640px) {
    .admin-bar__who {
        display: none;
    }
    .admin-bar__inner {
        padding: 0.4rem 1rem;
    }
}
