/* CPSE Parent Voice
   Harbor teal for trust, marigold for the parent's seat. Alegreya for
   headings (a handbook voice), Atkinson Hyperlegible for body text (built
   for low-vision readers). */

/* Self-hosted so no visitor request reaches a third party. Alegreya is under
   the SIL Open Font License 1.1; Atkinson Hyperlegible is published free to
   use by the Braille Institute. Both permit self-hosting. Latin and latin-ext
   subsets only, which covers English and Spanish diacritics. */
@font-face {
    font-family: 'Alegreya';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('Content/Fonts/alegreya-700-800-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: 'Alegreya';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('Content/Fonts/alegreya-700-800-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: 'Alegreya';
    font-style: normal;
    font-weight: 800;
    font-display: swap;
    src: url('Content/Fonts/alegreya-700-800-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: 'Alegreya';
    font-style: normal;
    font-weight: 800;
    font-display: swap;
    src: url('Content/Fonts/alegreya-700-800-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: 'Atkinson Hyperlegible';
    font-style: italic;
    font-weight: 400;
    font-display: swap;
    src: url('Content/Fonts/atkinson-hyperlegible-italic-400-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: 'Atkinson Hyperlegible';
    font-style: italic;
    font-weight: 400;
    font-display: swap;
    src: url('Content/Fonts/atkinson-hyperlegible-italic-400-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: 'Atkinson Hyperlegible';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('Content/Fonts/atkinson-hyperlegible-400-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: 'Atkinson Hyperlegible';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('Content/Fonts/atkinson-hyperlegible-400-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: 'Atkinson Hyperlegible';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('Content/Fonts/atkinson-hyperlegible-700-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: 'Atkinson Hyperlegible';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('Content/Fonts/atkinson-hyperlegible-700-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
    --ink: #1C2E3A;
    --ink-soft: #4A5D69;
    --sky: #EEF4F7;
    --paper: #FFFFFF;
    --mist: #D3E0E7;
    --harbor: #1F5F7A;
    --harbor-deep: #164A5F;
    --marigold: #E9A23B;
    --marigold-soft: #FCEFD8;

    --font-head: "Alegreya", Georgia, "Times New Roman", serif;
    --font-body: "Atkinson Hyperlegible", "Segoe UI", system-ui, -apple-system, sans-serif;

    --wrap: 1120px;
    --gutter: clamp(1.25rem, 4vw, 2.5rem);
    --band-pad: clamp(3.5rem, 8vw, 6rem);
    --radius: 10px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 1rem; }

body {
    margin: 0;
    font-family: var(--font-body);
    font-size: 1.0625rem;
    line-height: 1.6;
    color: var(--ink);
    background: var(--sky);
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
    font-family: var(--font-head);
    line-height: 1.12;
    margin: 0 0 0.5em;
    color: var(--ink);
    text-wrap: balance;
}
h1 { font-size: clamp(2.4rem, 5.5vw, 3.9rem); font-weight: 800; letter-spacing: -0.01em; }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.5rem); font-weight: 800; }
h3 { font-size: 1.35rem; font-weight: 700; }
p { margin: 0 0 1em; }

a { color: var(--harbor); text-underline-offset: 0.18em; }
a:hover { color: var(--harbor-deep); }

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

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

.skip-link {
    position: absolute;
    left: 1rem;
    top: -3rem;
    background: var(--ink);
    color: var(--paper);
    padding: 0.5rem 1rem;
    border-radius: var(--radius);
    z-index: 10;
}
.skip-link:focus { top: 1rem; color: var(--paper); }

/* Header */
.site-header {
    background: var(--paper);
    border-bottom: 1px solid var(--mist);
}
.header-row {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    min-height: 72px;
}
.wordmark {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    font-family: var(--font-head);
    font-weight: 800;
    font-size: 1.35rem;
    color: var(--ink);
    text-decoration: none;
}
.wordmark:hover { color: var(--ink); }
.wordmark-mark {
    width: 22px;
    height: 16px;
    border-radius: 6px;
    background: var(--marigold);
    box-shadow: 0 -7px 0 -3px var(--harbor);
}
.site-nav {
    display: flex;
    gap: 1.5rem;
    margin-left: auto;
}
.site-nav a {
    color: var(--ink-soft);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.95rem;
    margin: auto;
}
.site-nav a:hover { color: var(--harbor); text-decoration: underline; }

/* Social links */
.social {
    list-style: none;
    display: flex;
    gap: 0.25rem;
    margin: 0;
    padding: 0;
}
.social a {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--ink-soft);
    text-decoration: none;
    padding: 0.5rem;
    border-radius: 8px;
}
.social a:hover { color: var(--harbor); background: var(--sky); }

.social--join { flex-wrap: wrap; gap: 0.75rem; }
.social--join a {
    color: var(--paper);
    border: 1.5px solid rgba(255, 255, 255, 0.45);
    padding: 0.65rem 1.1rem;
    font-weight: 700;
}
.social--join a:hover { color: var(--ink); background: var(--marigold); border-color: var(--marigold); }

.social--footer { margin-bottom: 1rem; }
.social--footer a { color: var(--mist); }
.social--footer a:hover { color: var(--paper); background: rgba(255, 255, 255, 0.08); }

/* Hero */
.hero {
    background: var(--paper);
    padding-block: clamp(3rem, 7vw, 5.5rem);
}
.hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: clamp(2rem, 5vw, 4rem);
    align-items: center;
}
.hero h1 { max-width: 14ch; }
.hero-lockup {
    max-width: none;
    margin-bottom: 1.25rem;
}
.hero-logo {
    display: block;
    width: min(100%, 30rem);
    height: auto;
    margin-bottom: 1.25rem;
}
.hero-headline {
    display: block;
    font-size: clamp(1.6rem, 3.4vw, 2.3rem);
    line-height: 1.2;
    max-width: 18ch;
}
.lede {
    font-size: 1.2rem;
    color: var(--ink-soft);
    max-width: 52ch;
    margin-bottom: 2rem;
}
.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }

.btn {
    display: inline-block;
    padding: 0.85rem 1.4rem;
    border-radius: var(--radius);
    font-weight: 700;
    text-decoration: none;
    line-height: 1.2;
}
.btn-primary { background: var(--harbor); color: var(--paper); }
.btn-primary:hover { background: var(--harbor-deep); color: var(--paper); }
.btn-quiet { color: var(--harbor); box-shadow: inset 0 0 0 1.5px var(--mist); }
.btn-quiet:hover { box-shadow: inset 0 0 0 1.5px var(--harbor); }

/* The table illustration */
.table-art { width: 100%; height: auto; display: block; overflow: visible; }
.table-top { fill: var(--sky); stroke: var(--mist); stroke-width: 2; }
.table-center {
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 21px;
    fill: var(--ink-soft);
}
.seat-chair { fill: var(--paper); stroke: var(--mist); stroke-width: 2; }
.seat-label { font-family: var(--font-body); font-size: 15px; fill: var(--ink-soft); }
.seat--you .seat-chair { fill: var(--marigold); stroke: var(--marigold); }
.seat--you .seat-label { font-weight: 700; font-size: 18px; fill: var(--ink); }

/* One moment of motion: your chair pulls up to the table. */
@media (prefers-reduced-motion: no-preference) {
    .seat--you .seat-chair {
        transform-box: fill-box;
        transform-origin: center;
        animation: pull-up 900ms cubic-bezier(.2, .8, .2, 1) 300ms both;
    }
    @keyframes pull-up {
        from { transform: translateY(36px); opacity: 0; }
        to   { transform: translateY(0); opacity: 1; }
    }
}

/* Sections */
.band { padding-block: var(--band-pad); }
.band--paper { background: var(--paper); }
.section-head { max-width: 60ch; margin-bottom: 2.5rem; }
.section-head p { color: var(--ink-soft); font-size: 1.1rem; }

/* Rights */
.rights {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2rem 3rem;
    margin: 0;
}
.right {
    border-left: 4px solid var(--marigold);
    padding-left: 1.1rem;
}
.right dt {
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 1.3rem;
    line-height: 1.2;
    margin-bottom: 0.35rem;
}
.right dd { margin: 0; color: var(--ink-soft); max-width: 46ch; }

/* Meeting steps: a real sequence, so it is numbered */
.steps {
    list-style: none;
    counter-reset: step;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2rem;
    margin: 0;
    padding: 0;
}
.steps li {
    counter-increment: step;
    position: relative;
    padding-top: 3.75rem;
}
.steps li::before {
    content: counter(step);
    position: absolute;
    top: 0;
    left: 0;
    width: 2.6rem;
    height: 2.6rem;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--harbor);
    color: var(--paper);
    font-family: var(--font-head);
    font-weight: 800;
    font-size: 1.25rem;
}
.steps li:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 1.3rem;
    left: 3.4rem;
    right: -1.25rem;
    height: 2px;
    background: var(--mist);
}
.steps p { color: var(--ink-soft); }


/* Resources */
.resources {
    list-style: none;
    margin: 0;
    padding: 0;
    border-top: 1px solid var(--mist);
}
.resources li {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
    gap: 0.25rem 2rem;
    padding-block: 1.1rem;
    border-bottom: 1px solid var(--mist);
}
.resources a { font-weight: 700; font-size: 1.1rem; }
.resources p { margin: 0; color: var(--ink-soft); }

/* Events */
.events { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.5rem; }
.event {
    display: grid;
    grid-template-columns: 12rem minmax(0, 1fr);
    gap: 1.5rem;
    padding: 1.5rem;
    border-radius: var(--radius);
    background: var(--sky);
}
.event-when { font-weight: 700; margin: 0; }
.event-when span { font-weight: 400; color: var(--ink-soft); }
.event h3 { margin-bottom: 0.3rem; }
.event p:last-child { margin: 0; color: var(--ink-soft); }
.empty { color: var(--ink-soft); }

/* Join */
.join {
    background: var(--ink);
    color: var(--paper);
    padding-block: clamp(3rem, 6vw, 4.5rem);
}
.join h2 { color: var(--paper); }
.join p { color: var(--mist); max-width: 48ch; margin: 0; }
.join-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

/* Footer */
.site-footer {
    background: var(--harbor-deep);
    color: var(--mist);
    padding-block: 3rem;
    font-size: 0.95rem;
}
.site-footer a { color: var(--paper); }
.footer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}
.footer-name { font-family: var(--font-head); font-weight: 800; font-size: 1.3rem; color: var(--paper); margin-bottom: 0.25rem; }
.footer-tagline { color: var(--paper); }
.disclaimer { max-width: 52ch; }
.copyright { margin: 0; opacity: 0.8; }

/* Ask a question */
.wrap--narrow { max-width: 46rem; }

.nav-cta {
    font-weight: 700;
    color: var(--harbor);
    box-shadow: inset 0 0 0 1.5px var(--mist);
    border-radius: var(--radius);
    padding: 0.35rem 0.8rem;
}
.nav-cta:hover { box-shadow: inset 0 0 0 1.5px var(--harbor); text-decoration: none; }

.ask-band { background: var(--marigold-soft); }
.ask-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem 2.5rem;
}
.ask-row > div { max-width: 56ch; }
.ask-row h2 { margin-bottom: 0.3em; }
.ask-row p { margin: 0; color: var(--ink-soft); }

.notice {
    border-radius: var(--radius);
    padding: 1rem 1.25rem;
    margin-bottom: 1.75rem;
}
.notice p:last-child { margin-bottom: 0; }
.notice--care { background: var(--marigold-soft); border-left: 5px solid var(--marigold); }
.notice--good { background: var(--sky); border-left: 5px solid var(--harbor); padding: 1.75rem; }
.notice--bad { background: #FBE9E7; border-left: 5px solid #B3261E; }

.askform { max-width: 40rem; }
.field { margin-bottom: 1.5rem; }
.field label {
    display: block;
    font-weight: 700;
    margin-bottom: 0.3rem;
}
.req { color: #B3261E; font-weight: 400; }
.opt { color: var(--ink-soft); font-weight: 400; }
.hint {
    margin: 0 0 0.45rem;
    font-size: 0.95rem;
    color: var(--ink-soft);
}

.askform input[type="text"],
.askform input[type="email"],
.askform input[type="password"],
.askform textarea,
.askform select {
    width: 100%;
    font: inherit;
    color: var(--ink);
    background: var(--paper);
    border: 1.5px solid var(--mist);
    border-radius: var(--radius);
    padding: 0.7rem 0.85rem;
}
.askform textarea { resize: vertical; min-height: 9rem; line-height: 1.5; }
.askform input:hover, .askform textarea:hover, .askform select:hover { border-color: var(--harbor); }

.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1.5rem; }

.check {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: start;
    gap: 0.65rem;
    margin-bottom: 1rem;
}
.check input[type="checkbox"] { width: 1.25rem; height: 1.25rem; margin-top: 0.2rem; accent-color: var(--harbor); }
.check label { font-weight: 400; margin: 0; }

.validation-message {
    display: block;
    margin-top: 0.35rem;
    color: #B3261E;
    font-weight: 700;
    font-size: 0.95rem;
}
.askform .invalid { border-color: #B3261E; }

.fineprint {
    margin: 1.5rem 0 0;
    font-size: 0.95rem;
    color: var(--ink-soft);
}

/* Honeypot: off-screen rather than display:none, which some bots skip. */
.trap {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* Review page */
.qlist { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }
.qitem {
    background: var(--paper);
    border: 1.5px solid var(--mist);
    border-radius: var(--radius);
    padding: 1.1rem 1.35rem;
}
.qmeta { margin: 0; font-size: 0.95rem; color: var(--ink-soft); }
.qtext { margin: 0.5rem 0; white-space: pre-wrap; }
.tag {
    display: inline-block;
    margin-left: 0.5rem;
    padding: 0.05rem 0.5rem;
    border-radius: 999px;
    background: var(--marigold-soft);
    color: var(--ink);
    font-size: 0.85rem;
}

/* Help assistant. Runs entirely in the browser; see wwwroot/chat.js. */
.hc-sr {
    position: absolute;
    width: 1px; height: 1px;
    margin: -1px; padding: 0;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}

/* An author `display` rule beats the browser's own [hidden] { display: none },
   so without these the panel and launcher render even while marked hidden.
   Compound selectors outrank the plain class rules below without !important. */
.hc-launcher[hidden], .hc-panel[hidden] { display: none; }

.hc-launcher {
    position: fixed;
    right: clamp(1rem, 3vw, 1.75rem);
    bottom: clamp(1rem, 3vw, 1.75rem);
    z-index: 40;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font: inherit;
    font-weight: 700;
    color: var(--paper);
    background: var(--harbor);
    border: none;
    border-radius: 999px;
    padding: 0.8rem 1.35rem;
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(28, 46, 58, 0.28);
}
.hc-launcher:hover { background: var(--harbor-deep); }
.hc-launcher-icon {
    display: grid;
    place-items: center;
    width: 1.5rem; height: 1.5rem;
    border-radius: 50%;
    background: var(--marigold);
    color: var(--ink);
    font-weight: 800;
}

.hc-panel {
    position: fixed;
    right: clamp(1rem, 3vw, 1.75rem);
    bottom: clamp(1rem, 3vw, 1.75rem);
    z-index: 41;
    display: flex;
    flex-direction: column;
    width: min(26rem, calc(100vw - 2rem));
    max-height: min(36rem, calc(100vh - 2rem));
    background: var(--paper);
    border: 1.5px solid var(--mist);
    border-radius: var(--radius);
    box-shadow: 0 12px 40px rgba(28, 46, 58, 0.3);
}

.hc-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.85rem 0.85rem 0.85rem 1.1rem;
    background: var(--harbor);
    border-radius: calc(var(--radius) - 1px) calc(var(--radius) - 1px) 0 0;
}
.hc-head h2 { margin: 0; font-size: 1.2rem; color: var(--paper); }
.hc-head-actions { display: flex; align-items: center; gap: 0.35rem; }
.hc-textbtn, .hc-close {
    font: inherit;
    color: var(--paper);
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.45);
    border-radius: 6px;
    cursor: pointer;
}
.hc-textbtn { font-size: 0.9rem; padding: 0.2rem 0.6rem; }
.hc-close { font-size: 1.3rem; line-height: 1; padding: 0.05rem 0.45rem 0.2rem; }
.hc-textbtn:hover, .hc-close:hover { background: rgba(255, 255, 255, 0.16); }

.hc-privacy {
    margin: 0;
    padding: 0.6rem 1.1rem;
    font-size: 0.88rem;
    line-height: 1.45;
    color: var(--ink-soft);
    background: var(--marigold-soft);
    border-bottom: 1px solid var(--mist);
}

.hc-log {
    flex: 1 1 auto;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 1rem 1.1rem 0.5rem;
}

.hc-msg { margin-bottom: 1rem; }
.hc-msg p { margin: 0 0 0.6rem; }
.hc-msg p:last-child { margin-bottom: 0; }
.hc-msg--bot {
    background: var(--sky);
    border-radius: var(--radius);
    padding: 0.85rem 1rem;
}
.hc-msg--me {
    background: var(--harbor);
    color: var(--paper);
    border-radius: var(--radius);
    padding: 0.6rem 0.9rem;
    margin-left: 2.5rem;
    font-weight: 700;
}
.hc-title { margin: 0 0 0.5rem; font-size: 1.1rem; }

.hc-lead {
    margin: 0.85rem 0 0.4rem !important;
    font-size: 0.88rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--ink-soft);
}
.hc-options { display: flex; flex-direction: column; gap: 0.4rem; }
.hc-option {
    font: inherit;
    text-align: left;
    color: var(--harbor);
    background: var(--paper);
    border: 1.5px solid var(--mist);
    border-radius: var(--radius);
    padding: 0.55rem 0.8rem;
    cursor: pointer;
}
.hc-option:hover { border-color: var(--harbor); background: var(--paper); }

.hc-link, .hc-ask {
    display: inline-block;
    margin-top: 0.75rem;
    font-weight: 700;
}

.hc-form {
    display: flex;
    gap: 0.5rem;
    padding: 0.75rem 1.1rem;
    border-top: 1px solid var(--mist);
}
.hc-input {
    flex: 1 1 auto;
    min-width: 0;
    font: inherit;
    color: var(--ink);
    background: var(--paper);
    border: 1.5px solid var(--mist);
    border-radius: var(--radius);
    padding: 0.55rem 0.7rem;
}
.hc-input:hover { border-color: var(--harbor); }
.hc-send {
    font: inherit;
    font-weight: 700;
    color: var(--paper);
    background: var(--harbor);
    border: none;
    border-radius: var(--radius);
    padding: 0.55rem 1rem;
    cursor: pointer;
}
.hc-send:hover { background: var(--harbor-deep); }

.hc-input:disabled, .hc-send:disabled { opacity: 0.55; cursor: not-allowed; }
.hc-send:disabled:hover { background: var(--harbor); }
.hc-input:disabled:hover { border-color: var(--mist); }

.hc-disclaimer {
    margin: 0;
    padding: 0 1.1rem 0.85rem;
    font-size: 0.85rem;
    color: var(--ink-soft);
}

@media (max-width: 480px) {
    .hc-panel {
        right: 0.5rem;
        left: 0.5rem;
        bottom: 0.5rem;
        width: auto;
        max-height: calc(100vh - 1rem);
    }
    .hc-launcher { right: 0.75rem; bottom: 0.75rem; }
}

/* ---------------------------------------------------------------- Articles
   The /articles index, the article page, and the strip on the home page. */

/* Topic filter chips */
.tagbar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 2.5rem;
}
.tagchip {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 0.85rem;
    border-radius: 999px;
    background: var(--sky);
    box-shadow: inset 0 0 0 1.5px var(--mist);
    color: var(--ink-soft);
    font-size: 0.95rem;
    font-weight: 700;
    text-decoration: none;
    font-family: var(--font-body);
    cursor: pointer;
}
.tagchip:hover { color: var(--harbor); box-shadow: inset 0 0 0 1.5px var(--harbor); }
.tagchip--on {
    background: var(--harbor);
    color: var(--paper);
    box-shadow: inset 0 0 0 1.5px var(--harbor);
}
.tagchip--on:hover { background: var(--harbor-deep); color: var(--paper); }
.tagchip-count { font-weight: 400; opacity: 0.75; font-size: 0.85rem; }
.tagchip--small { padding: 0.15rem 0.6rem; font-size: 0.85rem; font-weight: 400; }

/* The featured article, given the wide card */
.articlelead {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    gap: clamp(1.5rem, 4vw, 3rem);
    align-items: center;
    padding: clamp(1.25rem, 3vw, 2rem);
    margin-bottom: 3rem;
    background: var(--sky);
    border-radius: var(--radius);
    box-shadow: inset 0 0 0 1.5px var(--mist);
}
.articlelead-art { display: block; border-radius: var(--radius); overflow: hidden; }
.articlelead-art img { width: 100%; height: 100%; aspect-ratio: 16 / 10; object-fit: cover; display: block; }
.articlelead-copy h2 { margin-bottom: 0.3em; }
.articlelead-copy h2 a { color: var(--ink); text-decoration: none; }
.articlelead-copy h2 a:hover { color: var(--harbor); text-decoration: underline; }
.articletag-row { margin: 0 0 0.6rem; }
.articlemore { margin: 0; font-weight: 700; }

/* The article list and the home-page strip share one card */
.articlelist {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 19rem), 1fr));
    gap: 2rem;
}
.articlecard { height: 100%; }
.articlecard h3 { margin-bottom: 0.35rem; }
.articlecard h3 a { color: var(--ink); text-decoration: none; }
.articlecard h3 a:hover { color: var(--harbor); text-decoration: underline; }
.articlecard-art {
    display: block;
    margin-bottom: 1rem;
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--sky);
}
.articlecard-art img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; display: block; }

.articlemeta {
    margin: 0 0 0.6rem;
    font-size: 0.9rem;
    color: var(--ink-soft);
}
.articlemeta-tags { display: inline-flex; flex-wrap: wrap; gap: 0.35rem; margin-left: 0.35rem; }
.articlesummary { margin: 0; color: var(--ink-soft); }

.feednote { margin: 3rem 0 0; color: var(--ink-soft); font-size: 0.95rem; }

/* One article */
.crumbs { margin-bottom: 1.5rem; font-size: 0.95rem; }
.articlehead { margin-bottom: 2rem; }
.articlehead h1 { font-size: clamp(2rem, 4.5vw, 3rem); margin-bottom: 0.4em; }
.articlehead .lede { margin-bottom: 0; }

.articlehero { margin: 0 0 2.5rem; }
.articlehero img {
    width: 100%;
    border-radius: var(--radius);
    display: block;
    background: var(--sky);
}
.articlehero figcaption {
    margin-top: 0.6rem;
    font-size: 0.9rem;
    color: var(--ink-soft);
}

/* Article body. Styles only what the editor can produce, since everything
   here comes through the sanitiser's allowlist. */
.prose { font-size: 1.1rem; }
.prose > :first-child { margin-top: 0; }
.prose h2 { font-size: clamp(1.5rem, 3vw, 1.9rem); margin-top: 2.5rem; }
.prose h3 { font-size: 1.3rem; margin-top: 2rem; }
.prose h4 { font-family: var(--font-head); font-size: 1.15rem; margin: 1.75rem 0 0.5em; }
.prose p { margin: 0 0 1.2em; }
.prose ul, .prose ol { margin: 0 0 1.2em; padding-left: 1.4em; }
.prose li { margin-bottom: 0.5em; }
.prose li > ul, .prose li > ol { margin-top: 0.5em; }
.prose a { font-weight: 700; }
.prose strong { font-weight: 700; }
.prose blockquote {
    margin: 2rem 0;
    padding: 0.25rem 0 0.25rem 1.5rem;
    border-left: 5px solid var(--marigold);
    font-family: var(--font-head);
    font-size: 1.2rem;
    color: var(--ink);
}
.prose blockquote p:last-child { margin-bottom: 0; }
.prose img, .prose iframe { max-width: 100%; border-radius: var(--radius); display: block; }
.prose img { height: auto; margin: 2rem auto; }
.prose iframe { width: 100%; aspect-ratio: 16 / 9; height: auto; margin: 2rem 0; border: 0; }
.prose figure { margin: 2rem 0; }
.prose figure img { margin: 0; }
.prose figcaption { margin-top: 0.6rem; font-size: 0.9rem; color: var(--ink-soft); }
.prose hr { margin: 2.5rem 0; border: 0; border-top: 1.5px solid var(--mist); }
.prose code {
    background: var(--sky);
    padding: 0.1em 0.35em;
    border-radius: 4px;
    font-size: 0.92em;
}
.prose table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
    font-size: 1rem;
}
.prose th, .prose td {
    border: 1.5px solid var(--mist);
    padding: 0.6rem 0.8rem;
    text-align: left;
    vertical-align: top;
}
.prose th { background: var(--sky); font-weight: 700; }

/* A wide table on a phone scrolls inside the article rather than stretching it. */
.prose table { display: block; overflow-x: auto; }

.articleupdated { margin-top: 2.5rem; font-size: 0.9rem; color: var(--ink-soft); font-style: italic; }

.articlefoot {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1.5px solid var(--mist);
}
.articlefoot h2 { font-size: 1.5rem; }
.articlefoot p { color: var(--ink-soft); }

/* ---------------------------------------------------------------- Admin
   Writing pages, behind the sign-in. Utility styling: a parent never
   sees these. */
.admin-header {
    background: var(--ink);
    color: var(--paper);
    padding-block: 0.75rem;
}
.admin-header-row { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.admin-header .wordmark, .admin-header a { color: var(--paper); }
.admin-badge {
    margin: 0;
    padding: 0.15rem 0.6rem;
    border-radius: 999px;
    background: var(--marigold);
    color: var(--ink);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.admin-nav {
    margin-left: auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.4rem 1.1rem;
    font-size: 0.95rem;
}
.admin-signout { margin: 0; }
.admin-signout button {
    padding: 0.25rem 0.75rem;
    border: 1.5px solid var(--paper);
    border-radius: 999px;
    background: transparent;
    color: var(--paper);
    font: inherit;
    cursor: pointer;
}
.admin-signout button:hover { background: var(--paper); color: var(--ink); }
.admin-subhead { margin-top: 2.5rem; }
.admin-main { min-height: 60vh; }

.adminlist { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }
.adminrow {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 1rem 2rem;
    align-items: start;
    padding: 1.25rem;
    background: var(--sky);
    border-radius: var(--radius);
    box-shadow: inset 0 0 0 1.5px var(--mist);
}
.adminrow-main h2 { font-size: 1.3rem; margin-bottom: 0.4rem; }
.adminrow-main h2 a { color: var(--ink); }
.adminrow-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; }
.adminrow-actions form { margin: 0; }

.btn-small { padding: 0.4rem 0.9rem; font-size: 0.9rem; }
.btn-danger { background: #B3261E; color: var(--paper); }
.btn-danger:hover { background: #8C1D18; color: var(--paper); }
.adminrow-del:hover { color: #B3261E; box-shadow: inset 0 0 0 1.5px #B3261E; }

.pill {
    display: inline-block;
    padding: 0.1rem 0.55rem;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}
.pill--live { background: #1F7A4D; color: #FFFFFF; }
.pill--soon { background: var(--marigold); color: var(--ink); }
.pill--draft { background: var(--mist); color: var(--ink-soft); }
.pill--bad { background: #B3261E; color: #FFFFFF; }

.askform--wide { max-width: 56rem; }

.slugrow { display: flex; align-items: stretch; }
.slugrow-prefix {
    display: flex;
    align-items: center;
    padding: 0 0.75rem;
    border-radius: var(--radius) 0 0 var(--radius);
    background: var(--sky);
    box-shadow: inset 0 0 0 1.5px var(--mist);
    color: var(--ink-soft);
    font-size: 0.95rem;
    white-space: nowrap;
}
.slugrow input { border-start-start-radius: 0; border-end-start-radius: 0; }

.hint--warn { color: #8C5000; font-weight: 700; }

.fieldset {
    border: 1.5px solid var(--mist);
    border-radius: var(--radius);
    padding: 1.25rem;
    margin-bottom: 1.5rem;
}
.fieldset legend {
    padding-inline: 0.5rem;
    font-weight: 700;
    font-family: var(--font-head);
    font-size: 1.15rem;
}

.radiorow { display: grid; gap: 0.75rem; }
.radioline { display: flex; gap: 0.75rem; align-items: start; font-weight: 400; }
.radioline input[type="radio"] { width: 1.15rem; height: 1.15rem; margin-top: 0.25rem; accent-color: var(--harbor); }
.radioline .hint { display: block; margin: 0.15rem 0 0; }

.heroupload { display: inline-block; cursor: pointer; }
.heroupload input[type="file"] {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
}
.heroupload:focus-within { outline: 3px solid var(--marigold); outline-offset: 3px; }

.heropick { display: flex; gap: 1rem; align-items: start; margin-bottom: 1rem; }
.heropick img {
    width: 12rem;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    border-radius: var(--radius);
    background: var(--sky);
}

.mediagrid {
    list-style: none;
    margin: 0.5rem 0 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(6rem, 1fr));
    gap: 0.6rem;
}
.mediagrid button {
    width: 100%;
    padding: 0;
    border: 1.5px solid var(--mist);
    border-radius: 6px;
    background: var(--sky);
    cursor: pointer;
    overflow: hidden;
    display: block;
}
.mediagrid button:hover { border-color: var(--harbor); }
.mediagrid img { width: 100%; aspect-ratio: 1; object-fit: cover; display: block; }

/* The editor is a third-party control; give it the site's own frame. */
.rz-html-editor {
    border-radius: var(--radius);
    border-color: var(--mist);
    font-family: var(--font-body);
}

/* ------------------------------------------------------- Parent stories
   The carousel on the home page. Rendered as a plain list by the server and
   grouped into slides by wwwroot/stories.js; everything below has to look
   right either way. */
.stories {
    background: var(--ink);
    color: var(--mist);
    padding-block: var(--band-pad);
}
.stories-head { max-width: 60ch; margin-bottom: 2.5rem; }
.stories-head h2 { color: var(--paper); }
.stories-head p { color: var(--mist); margin: 0; }

.storycar { --storycar-gap: 1.5rem; position: relative; }

.storycar-track {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: var(--storycar-gap);
    align-items: stretch;
}
.storycar-item { flex: 1 1 100%; min-width: 0; display: flex; }

/* The `display: flex` above would otherwise beat the browser's own
   [hidden] { display: none }, and every story would stay on screen however
   many slides stories.js grouped them into. Same trap as .hc-panel above. */
.storycar-item[hidden] { display: none; }

.storycard {
    margin: 0;
    padding: clamp(1.5rem, 3vw, 2.25rem);
    background: rgba(255, 255, 255, 0.06);
    border-radius: var(--radius);
    border-left: 5px solid var(--marigold);
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    width: 100%;
}
.storycard blockquote {
    margin: 0;
    font-family: var(--font-head);
    font-size: clamp(1.15rem, 2vw, 1.4rem);
    line-height: 1.45;
    color: var(--paper);
    flex: 1;
}
.storycard blockquote::before { content: "\201C"; }
.storycard blockquote::after { content: "\201D"; }

.storycard figcaption { display: flex; flex-direction: column; gap: 0.1rem; }
.storycard-who { font-weight: 700; color: var(--paper); }
.storycard-where { font-size: 0.92rem; color: var(--mist); }

/* Shown on the editor against a light background rather than the dark band. */
.storycard--preview {
    background: var(--sky);
    color: var(--ink);
    max-width: 34rem;
}
.storycard--preview blockquote { color: var(--ink); }
.storycard--preview .storycard-who { color: var(--ink); }
.storycard--preview .storycard-where { color: var(--ink-soft); }

/* Built by stories.js, so it is absent for a reader with no JavaScript. */
.storycar-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
}
.storycar-controls[hidden] { display: none; }

.storycar-arrow {
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 999px;
    border: 1.5px solid rgba(255, 255, 255, 0.35);
    background: transparent;
    color: var(--paper);
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    display: grid;
    place-items: center;
    flex: none;
}
.storycar-arrow:hover { background: rgba(255, 255, 255, 0.12); border-color: var(--marigold); }

.storycar-dots { display: flex; gap: 0.5rem; align-items: center; }
.storycar-dot {
    width: 0.75rem;
    height: 0.75rem;
    padding: 0;
    border-radius: 999px;
    border: 1.5px solid rgba(255, 255, 255, 0.5);
    background: transparent;
    cursor: pointer;
}
.storycar-dot:hover { border-color: var(--marigold); }
.storycar-dot--on { background: var(--marigold); border-color: var(--marigold); }

/* Admin list quotes */
.adminquote {
    margin: 0 0 0.6rem;
    padding-left: 1rem;
    border-left: 4px solid var(--marigold);
    font-family: var(--font-head);
    font-size: 1.1rem;
    color: var(--ink);
}

/* Question review: notes and the row of actions */
.qnotes {
    margin: 0.5rem 0;
    padding: 0.6rem 0.9rem;
    background: var(--marigold-soft);
    border-radius: 6px;
    font-size: 0.95rem;
}
.qactions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
    margin-top: 0.75rem;
}
.qactions form { margin: 0; }

.qnoteform { margin-top: 1rem; }
.qnoteform label { display: block; font-weight: 700; margin-bottom: 0.35rem; font-size: 0.95rem; }
.qnoteform textarea {
    width: 100%;
    padding: 0.6rem 0.8rem;
    border: 1.5px solid var(--mist);
    border-radius: var(--radius);
    font: inherit;
    font-size: 1rem;
    resize: vertical;
}
.qnoteform textarea:hover { border-color: var(--harbor); }
.qnoteform .actions { margin-top: 0.6rem; }

/* Question review: replies already sent, and the reply form */
.qreply {
    margin: 0.5rem 0;
    padding: 0.5rem 0.9rem;
    background: var(--paper);
    border-radius: 6px;
    box-shadow: inset 0 0 0 1.5px var(--mist);
    font-size: 0.95rem;
}
.qreply summary { cursor: pointer; }
.qreply-body {
    margin: 0.5rem 0 0;
    white-space: pre-wrap;
    font-family: inherit;
    font-size: 0.95rem;
}
.qreplyform {
    margin-top: 1.25rem;
    padding: 1.25rem;
    background: var(--paper);
    border-radius: var(--radius);
    box-shadow: inset 0 0 0 1.5px var(--harbor);
}
.qreplyform h2 { font-size: 1.2rem; }

/* Shown once after a password reset, so it must be easy to read aloud. */
.pwshow { font-size: 1.3rem; letter-spacing: 0.05em; user-select: all; }

/* Smaller screens */
@media (max-width: 900px) {
    .hero-grid { grid-template-columns: 1fr; }
    .field-row { grid-template-columns: 1fr; }
    .hero-art { max-width: 480px; }
    .steps { grid-template-columns: 1fr; }
    .steps li:not(:last-child)::after { display: none; }
    .footer-grid { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
    .header-row { flex-wrap: wrap; gap: 0.5rem 1rem; padding-block: 0.75rem; }
    .site-nav {
        order: 3;
        width: 100%;
        margin-left: 0;
        overflow-x: auto;
        padding-bottom: 0.25rem;
    }
    .site-nav a { white-space: nowrap; }
    .social--header { margin-left: auto; }
    .rights { grid-template-columns: 1fr; }
    .resources li { grid-template-columns: 1fr; }
    .event { grid-template-columns: 1fr; gap: 0.5rem; }
    .articlelead { grid-template-columns: 1fr; }
    .adminrow { grid-template-columns: 1fr; }
    .heropick { flex-direction: column; }
    .heropick img { width: 100%; }
    .storycar-item { flex-basis: 100% !important; }
    .qactions { gap: 0.4rem; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
}
