/* ==========================================================================
   WCTVD — Global stylesheet
   Editorial earthy palette, Fraunces serif + Manrope sans, mobile-first.
   This file is loaded on every page (including home). Home-specific
   overrides live in home.css and key off body.home.
   ========================================================================== */

/* --- Brand fonts (variable axes; latin + latin-ext for SA languages) ----- */
@font-face {
    font-family: "Fraunces";
    font-style: normal;
    font-weight: 300 900;
    font-display: swap;
    src: url("/static/fonts/brand/fraunces-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: "Fraunces";
    font-style: normal;
    font-weight: 300 900;
    font-display: swap;
    src: url("/static/fonts/brand/fraunces-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-20C0, U+2113, U+2C60-2C7F,
        U+A720-A7FF;
}
@font-face {
    font-family: "Manrope";
    font-style: normal;
    font-weight: 400 800;
    font-display: swap;
    src: url("/static/fonts/brand/manrope-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: "Manrope";
    font-style: normal;
    font-weight: 400 800;
    font-display: swap;
    src: url("/static/fonts/brand/manrope-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-20C0, U+2113, U+2C60-2C7F,
        U+A720-A7FF;
}

/* --- Brand tokens (global) ---------------------------------------------- */
:root {
    --parchment:      #f4ede0;
    --parchment-2:    #ece2cf;
    --bone:           #e7dcc4;
    --sand:           #d6c6a4;
    --ochre:          #c68f2b;
    --ochre-deep:     #a87519;
    --rust:           #a24a1e;
    --rust-deep:      #7a3413;
    --sage:           #7a8b6f;
    --sage-deep:      #4f5b47;
    --moss:           #2f3a2a;
    --charcoal:       #1f1b16;
    --charcoal-soft:  #2c2620;
    --ink:            #1f1b16;
    --ink-muted:      #6b6358;
    --line:           rgba(31, 27, 22, 0.12);
    --line-strong:    rgba(31, 27, 22, 0.24);

    --success:        #4f7a3a;
    --error:          #b03a1f;
    --warning:        #b67a16;
    --info:           #4d6a8a;

    --serif: "Fraunces", "Iowan Old Style", "Apple Garamond", Georgia,
        "Times New Roman", serif;
    --sans:  "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI",
        system-ui, sans-serif;

    --shadow-soft: 0 1px 2px rgba(31, 27, 22, 0.06),
        0 8px 28px -12px rgba(31, 27, 22, 0.18);
    --shadow-deep: 0 4px 12px rgba(31, 27, 22, 0.10),
        0 24px 56px -20px rgba(31, 27, 22, 0.30);

    --radius-s: 4px;
    --radius-m: 10px;
    --radius-l: 18px;
    --radius-xl: 28px;

    --ease-out:    cubic-bezier(0.16, 1, 0.3, 1);
    --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);

    --nav-height: 64px;
    --bottom-nav-height: 64px;
    --max-width: 1200px;
}

/* --- Reset & base ------------------------------------------------------- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--sans);
    background-color: var(--parchment);
    background-image:
        radial-gradient(ellipse 130% 90% at 90% 0%, rgba(198, 143, 43, 0.12) 0%, transparent 72%),
        radial-gradient(ellipse 110% 80% at 0% 100%, rgba(122, 139, 111, 0.06) 0%, transparent 72%),
        linear-gradient(180deg, var(--parchment) 0%, var(--parchment-2) 100%);
    background-attachment: fixed;
    color: var(--charcoal);
    line-height: 1.65;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    font-feature-settings: "ss01", "cv11";
}

/* Paper-fiber grain — fixed SVG fractal noise, warm-umber tinted, multiplied
   onto the parchment so the page reads as aged hand-bound stock, not flat colour.
   pointer-events: none keeps it inert; body > * lifts content above. */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    opacity: 0.18;
    mix-blend-mode: multiply;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.95' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.45  0 0 0 0 0.34  0 0 0 0 0.20  0 0 0 0.55 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
    background-size: 200px 200px;
}
body > * { position: relative; z-index: 1; }

@media (prefers-reduced-motion: reduce) {
    body { background-attachment: scroll; }
}

a {
    color: var(--rust);
    text-decoration: none;
    transition: color 200ms var(--ease-out), border-color 200ms var(--ease-out);
}
a:hover { color: var(--rust-deep); }

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

::selection { background: var(--ochre); color: var(--parchment); }

/* --- Typography --------------------------------------------------------- */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--serif);
    color: var(--charcoal);
    font-weight: 400;
    letter-spacing: -0.012em;
    line-height: 1.2;
    margin-bottom: 0.5em;
}
h1 { font-size: clamp(1.8rem, 3.4vw, 2.4rem); font-variation-settings: "opsz" 60, "SOFT" 50; }
h2 { font-size: clamp(1.45rem, 2.6vw, 1.85rem); font-variation-settings: "opsz" 48; }
h3 { font-size: 1.25rem; font-variation-settings: "opsz" 36; }
h4 { font-size: 1.1rem; }
h5 { font-size: 1rem; }
h6 { font-size: 0.9rem; }

p { margin-bottom: 0.85em; color: var(--ink); }
p:last-child { margin-bottom: 0; }
small { color: var(--ink-muted); }

hr {
    border: 0;
    border-top: 1px solid var(--line);
    margin: 1.5rem 0;
}

code, kbd, samp, pre {
    font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
    font-size: 0.92em;
}
code {
    background: var(--parchment-2);
    padding: 0.1em 0.35em;
    border-radius: var(--radius-s);
}

/* --- Layout primitives -------------------------------------------------- */
.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1rem;
}
.container-narrow { max-width: 800px; }

.main-content {
    flex: 1;
    width: 100%;
    max-width: 64rem;
    margin: 0 auto;
    padding: 2.5rem 1.5rem 3rem;
}
@media (max-width: 768px) {
    .main-content { padding: 1.5rem 1rem 2rem; }
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    font-family: var(--sans);
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.22em;
    color: var(--rust);
    margin-bottom: 0.75rem;
}
.eyebrow::before {
    content: "";
    width: 28px;
    height: 1px;
    background: currentColor;
    opacity: 0.7;
}

.grid { display: grid; gap: 1.5rem; }
.grid-2 { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }

/* --- Navigation (.navbar / .navbar__*) ---------------------------------- */
.navbar {
    background: var(--parchment);
    border-bottom: 1px solid var(--line);
    height: var(--nav-height);
    display: flex;
    align-items: center;
    padding: 0 1.5rem;
    position: sticky;
    top: 0;
    z-index: 1000;
}
.navbar__brand {
    display: inline-flex;
    align-items: center;
    font-family: var(--sans);
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--charcoal);
    text-transform: uppercase;
    letter-spacing: 0.18em;
    white-space: nowrap;
    transition: color 200ms var(--ease-out);
}
.navbar__brand:hover { color: var(--rust); }

.navbar__toggle {
    display: none;
    background: none;
    border: none;
    color: var(--charcoal);
    font-size: 1.4rem;
    cursor: pointer;
    padding: 0.4rem;
    border-radius: var(--radius-s);
    transition: color 200ms var(--ease-out), background 200ms var(--ease-out);
}
.navbar__toggle:hover { color: var(--rust); background: rgba(31,27,22,0.04); }

.navbar__right-icons {
    display: none;
    align-items: center;
    gap: 0.5rem;
    margin-left: auto;
}

.navbar__menu {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    list-style: none;
    margin-left: auto;
}
.navbar__menu a {
    color: var(--charcoal);
    font-family: var(--sans);
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    transition: color 200ms var(--ease-out);
    padding: 0.4rem 0;
    position: relative;
}
.navbar__menu a:hover { color: var(--rust); }
.navbar__menu a.active { color: var(--rust); }
.navbar__menu a.active::after {
    content: "";
    position: absolute;
    left: 0; right: 0; bottom: -2px;
    height: 1px;
    background: var(--rust);
}

@media (max-width: 768px) {
    .navbar__right-icons { display: flex; }
    .navbar__toggle { display: block; }
    .navbar > .navbar__toggle { margin-left: auto; }
    .navbar__menu {
        display: none;
        flex-direction: column;
        align-items: stretch;
        width: 100%;
        gap: 0;
        position: absolute;
        top: var(--nav-height);
        left: 0;
        right: 0;
        background: var(--parchment);
        border-top: 1px solid var(--line);
        box-shadow: 0 12px 28px -8px rgba(31,27,22,0.18);
        padding: 0.5rem 0;
        z-index: 999;
    }
    .navbar__menu.open { display: flex; }
    .navbar__menu li { width: 100%; }
    .navbar__menu a {
        display: block;
        padding: 0.85rem 1.25rem;
        border-top: 1px solid var(--line);
    }
    .navbar__menu a.active::after { display: none; }
    .navbar__menu .navbar__bell-item,
    .navbar__menu .navbar__user-dropdown { display: none; }
}

/* --- Bell + badge ------------------------------------------------------- */
.navbar__bell {
    position: relative;
    display: inline-flex;
    align-items: center;
    color: var(--charcoal);
    font-size: 1.05rem;
    padding: 0.4rem;
    border-radius: var(--radius-s);
    transition: color 200ms var(--ease-out), background 200ms var(--ease-out);
}
.navbar__bell:hover { color: var(--rust); background: rgba(31,27,22,0.04); }
.navbar__badge {
    position: absolute;
    top: 0;
    right: 0;
    background: var(--rust);
    color: var(--parchment);
    font-family: var(--sans);
    font-size: 0.6rem;
    font-weight: 700;
    min-width: 16px;
    height: 16px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    border: 1.5px solid var(--parchment);
}

/* --- User avatar dropdown trigger --------------------------------------- */
.navbar__user-dropdown { position: relative; }
.navbar__avatar-btn {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.2rem;
    color: var(--charcoal);
}
.navbar__avatar-img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    border: 1.5px solid var(--line-strong);
    transition: border-color 200ms var(--ease-out);
}
.navbar__avatar-btn:hover .navbar__avatar-img { border-color: var(--ochre); }
.navbar__avatar-initials {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--sage);
    color: var(--parchment);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--sans);
    font-size: 0.8rem;
    font-weight: 700;
    border: 1.5px solid var(--line-strong);
    transition: border-color 200ms var(--ease-out);
}
.navbar__avatar-btn:hover .navbar__avatar-initials { border-color: var(--ochre); }
.navbar__avatar-caret {
    font-size: 0.55rem;
    color: var(--ink-muted);
    transition: transform 200ms var(--ease-out);
}
.navbar__user-dropdown[aria-expanded="true"] .navbar__avatar-caret { transform: rotate(180deg); }

/* --- Dropdown panel ----------------------------------------------------- */
.navbar__dropdown {
    display: none;
    position: absolute;
    right: 1.25rem;
    top: calc(var(--nav-height) - 4px);
    background: var(--parchment);
    border: 1px solid var(--line);
    border-radius: var(--radius-m);
    min-width: 240px;
    box-shadow: var(--shadow-deep);
    z-index: 2000;
    overflow: hidden;
    animation: dropdownIn 220ms var(--ease-out) both;
}
.navbar__dropdown.open { display: block; }
@keyframes dropdownIn {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: translateY(0); }
}
.navbar__dropdown-header {
    padding: 0.85rem 1rem;
    color: var(--charcoal);
    font-family: var(--sans);
    font-weight: 700;
    font-size: 0.88rem;
    border-bottom: 1px solid var(--line);
    background: var(--parchment-2);
}
.navbar__dropdown-email {
    display: block;
    color: var(--ink-muted);
    font-size: 0.72rem;
    font-weight: 400;
    margin-top: 0.15rem;
    letter-spacing: 0.02em;
}
.navbar__dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.6rem 1rem;
    color: var(--charcoal);
    font-family: var(--sans);
    font-size: 0.85rem;
    text-decoration: none;
    transition: background 150ms var(--ease-out), color 150ms var(--ease-out);
}
.navbar__dropdown-item:hover {
    background: rgba(166, 87, 23, 0.08);
    color: var(--rust);
}
.navbar__dropdown-item i {
    width: 16px;
    text-align: center;
    color: var(--ochre);
    font-size: 0.85rem;
}
.navbar__dropdown-btn {
    width: 100%;
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
    text-align: left;
}
.navbar__dropdown-btn--danger { color: var(--rust); }
.navbar__dropdown-btn--danger i { color: var(--rust); }
.navbar__dropdown-divider {
    height: 1px;
    background: var(--line);
    margin: 0;
}
@media (max-width: 768px) {
    .navbar__dropdown {
        position: fixed;
        right: 0.5rem;
        left: 0.5rem;
        top: calc(var(--nav-height) + 4px);
        min-width: auto;
    }
}

/* --- Bottom navigation (mobile PWA) ------------------------------------- */
.bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--parchment);
    border-top: 1px solid var(--line);
    height: var(--bottom-nav-height);
    z-index: 1000;
    padding-bottom: env(safe-area-inset-bottom, 0);
    box-shadow: 0 -4px 14px -8px rgba(31,27,22,0.18);
}
.bottom-nav__list {
    display: flex;
    list-style: none;
    height: 100%;
}
.bottom-nav__item { flex: 1; display: flex; }
.bottom-nav__link {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    color: var(--ink-muted);
    font-family: var(--sans);
    font-size: 0.66rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    gap: 0.2rem;
    transition: color 200ms var(--ease-out);
    text-decoration: none;
}
.bottom-nav__link i { font-size: 1.15rem; }
.bottom-nav__link:hover,
.bottom-nav__link.active {
    color: var(--rust);
    text-decoration: none;
}
@media (max-width: 768px) {
    .bottom-nav { display: block; }
    body { padding-bottom: var(--bottom-nav-height); }
}

/* --- Flash messages ----------------------------------------------------- */
.flashes {
    list-style: none;
    max-width: 64rem;
    margin: 1rem auto 0;
    padding: 0 1.5rem;
    width: 100%;
}
.flashes__item {
    padding: 0.85rem 1.1rem;
    border-radius: var(--radius-s);
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    font-family: var(--sans);
    border-left: 3px solid;
    background: var(--parchment-2);
    color: var(--charcoal);
}
.flashes__item--success { border-left-color: var(--success); background: rgba(79, 122, 58, 0.08); }
.flashes__item--error,
.flashes__item--danger  { border-left-color: var(--error);   background: rgba(176, 58, 31, 0.08); color: var(--rust-deep); }
.flashes__item--warning { border-left-color: var(--warning); background: rgba(182, 122, 22, 0.10); }
.flashes__item--info    { border-left-color: var(--info);    background: rgba(77, 106, 138, 0.08); }

/* --- Footer ------------------------------------------------------------- */
.footer {
    background: var(--charcoal);
    color: var(--parchment-2);
    border-top: none;
    text-align: center;
    padding: 1.75rem 1.5rem;
    font-family: var(--sans);
    font-size: 0.78rem;
    letter-spacing: 0.06em;
    margin-top: auto;
}
.footer a { color: var(--ochre); }
.footer a:hover { color: var(--parchment); }
@media (max-width: 768px) {
    .footer { display: none; }
}

/* --- Cards -------------------------------------------------------------- */
.card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius-m);
    padding: 1.5rem;
    margin-bottom: 1rem;
    box-shadow: var(--shadow-soft);
}
.card-hover {
    transition: transform 240ms var(--ease-out), box-shadow 240ms var(--ease-out);
}
.card-hover:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-deep);
}
.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 0.85rem;
    border-bottom: 1px solid var(--line);
}
.card-body { padding: 0.75rem 0; }
.card-img {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
    border-radius: var(--radius-m) var(--radius-m) 0 0;
    display: block;
    background: var(--parchment-2);
}

/* --- Forms -------------------------------------------------------------- */
.form-group { margin-bottom: 1.1rem; }
.form-group label {
    display: block;
    color: var(--charcoal);
    font-family: var(--sans);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="search"],
input[type="url"],
input[type="tel"],
input[type="date"],
input[type="time"],
input[type="datetime-local"],
input[type="file"],
textarea,
select {
    width: 100%;
    padding: 0.75rem 0.95rem;
    background: #fff;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-s);
    color: var(--charcoal);
    font-size: 0.95rem;
    font-family: var(--sans);
    transition: border-color 200ms var(--ease-out), box-shadow 200ms var(--ease-out);
}
input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--ochre);
    box-shadow: 0 0 0 3px rgba(198, 143, 43, 0.18);
}
input::placeholder,
textarea::placeholder { color: var(--ink-muted); }

textarea { min-height: 110px; resize: vertical; line-height: 1.55; }

.form-row { display: flex; gap: 1rem; flex-wrap: wrap; }
.form-row .form-group { flex: 1; min-width: 200px; }
.form-help { font-size: 0.8rem; color: var(--ink-muted); margin-top: 0.35rem; }

/* --- Buttons ------------------------------------------------------------ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.72rem 1.4rem;
    border: 1px solid transparent;
    border-radius: var(--radius-s);
    font-family: var(--sans);
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    line-height: 1;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    transition: background 200ms var(--ease-out), color 200ms var(--ease-out),
        border-color 200ms var(--ease-out), transform 200ms var(--ease-out),
        box-shadow 200ms var(--ease-out);
}
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow-soft); }
.btn:active { transform: translateY(0); }

.btn-primary {
    background: var(--rust);
    color: var(--parchment);
    border-color: var(--rust);
}
.btn-primary:hover {
    background: var(--rust-deep);
    border-color: var(--rust-deep);
    color: var(--parchment);
}

.btn-secondary {
    background: var(--charcoal);
    color: var(--parchment);
    border-color: var(--charcoal);
}
.btn-secondary:hover {
    background: var(--charcoal-soft);
    border-color: var(--charcoal-soft);
    color: var(--parchment);
}

.btn-outline {
    background: transparent;
    border-color: var(--charcoal);
    color: var(--charcoal);
}
.btn-outline:hover {
    background: var(--charcoal);
    color: var(--parchment);
}

.btn-ghost {
    background: transparent;
    border-color: var(--line);
    color: var(--charcoal);
}
.btn-ghost:hover {
    border-color: var(--ochre);
    color: var(--rust);
}

.btn-danger {
    background: var(--error);
    color: var(--parchment);
    border-color: var(--error);
}
.btn-danger:hover {
    background: var(--rust-deep);
    border-color: var(--rust-deep);
}

.btn-sm  { padding: 0.5rem 0.95rem; font-size: 0.74rem; letter-spacing: 0.12em; }
.btn-lg  { padding: 0.95rem 1.75rem; font-size: 0.9rem; }
.btn-block { display: flex; width: 100%; }
.btn-group { display: flex; gap: 0.6rem; flex-wrap: wrap; }
.btn:disabled, .btn[disabled] { opacity: 0.5; cursor: not-allowed; transform: none; box-shadow: none; }

/* --- Badges ------------------------------------------------------------- */
.badge {
    display: inline-block;
    padding: 0.2rem 0.6rem;
    font-family: var(--sans);
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border-radius: 999px;
    line-height: 1.4;
    background: var(--parchment-2);
    color: var(--charcoal);
}
.badge-success { background: rgba(79, 122, 58, 0.16);  color: var(--success); }
.badge-error   { background: rgba(176, 58, 31, 0.14);  color: var(--rust); }
.badge-warning { background: rgba(182, 122, 22, 0.16); color: var(--ochre-deep); }
.badge-info    { background: rgba(77, 106, 138, 0.14); color: var(--info); }

/* --- Tables ------------------------------------------------------------- */
.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border: 1px solid var(--line);
    border-radius: var(--radius-s);
    background: #fff;
}
table { width: 100%; border-collapse: collapse; }
th, td {
    padding: 0.85rem 1rem;
    text-align: left;
    border-bottom: 1px solid var(--line);
}
th {
    background: var(--parchment-2);
    color: var(--charcoal);
    font-family: var(--sans);
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.14em;
}
tr:hover td { background: rgba(198, 143, 43, 0.05); }
tr:last-child td { border-bottom: 0; }

/* --- Gallery ------------------------------------------------------------ */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}
.gallery-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius-m);
    overflow: hidden;
    transition: transform 240ms var(--ease-out), box-shadow 240ms var(--ease-out);
}
.gallery-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-deep);
}
.gallery-card a { text-decoration: none; color: inherit; }
.gallery-card-img {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
    background: var(--parchment-2);
    display: block;
}
.gallery-card-body { padding: 1rem 1.25rem 1.25rem; }
.gallery-card-title {
    font-family: var(--serif);
    color: var(--charcoal);
    font-size: 1.15rem;
    font-weight: 500;
    margin: 0 0 0.35rem 0;
}
.gallery-card-meta {
    display: flex;
    justify-content: space-between;
    color: var(--ink-muted);
    font-family: var(--sans);
    font-size: 0.78rem;
    letter-spacing: 0.04em;
}

.photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 0.5rem;
}
.photo-thumb {
    aspect-ratio: 1;
    overflow: hidden;
    border-radius: var(--radius-s);
    cursor: pointer;
    position: relative;
    background: var(--parchment-2);
}
.photo-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 400ms var(--ease-out);
    display: block;
}
.photo-thumb:hover img { transform: scale(1.06); }

/* --- Lightbox ----------------------------------------------------------- */
.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(31, 27, 22, 0.96);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}
.lightbox.active { display: flex; }
.lightbox-img {
    max-width: 90vw;
    max-height: 80vh;
    object-fit: contain;
    border-radius: var(--radius-s);
    user-select: none;
}
.lightbox-close {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    background: none;
    border: none;
    color: var(--parchment);
    font-size: 2rem;
    cursor: pointer;
    opacity: 0.75;
    transition: opacity 150ms var(--ease-out);
    z-index: 10;
}
.lightbox-close:hover { opacity: 1; color: var(--ochre); }
.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(244, 237, 224, 0.1);
    border: 1px solid rgba(244, 237, 224, 0.2);
    color: var(--parchment);
    font-size: 1.6rem;
    cursor: pointer;
    padding: 0.85rem 0.7rem;
    border-radius: var(--radius-s);
    opacity: 0.7;
    transition: opacity 150ms var(--ease-out), background 150ms var(--ease-out);
    z-index: 10;
}
.lightbox-nav:hover {
    opacity: 1;
    background: rgba(244, 237, 224, 0.2);
}
.lightbox-prev { left: 1rem; }
.lightbox-next { right: 1rem; }
.lightbox-caption {
    color: var(--parchment-2);
    font-family: var(--serif);
    font-style: italic;
    font-size: 0.95rem;
    margin-top: 0.85rem;
    text-align: center;
    letter-spacing: 0.01em;
}
.lightbox-counter {
    color: var(--ink-muted);
    font-family: var(--sans);
    font-size: 0.74rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    margin-top: 0.4rem;
}

/* --- Empty states ------------------------------------------------------- */
.empty-state {
    text-align: center;
    color: var(--ink-muted);
    padding: 3.5rem 1rem;
    font-family: var(--serif);
    font-style: italic;
    font-size: 1.05rem;
}
.empty-state i {
    display: block;
    font-size: 2.6rem;
    margin-bottom: 1rem;
    color: var(--ochre);
    opacity: 0.5;
}

/* --- Drop zone ---------------------------------------------------------- */
.drop-zone {
    border: 2px dashed var(--line-strong);
    border-radius: var(--radius-m);
    padding: 2.25rem;
    text-align: center;
    color: var(--ink-muted);
    font-family: var(--sans);
    font-size: 0.9rem;
    background: var(--parchment-2);
    transition: border-color 200ms var(--ease-out), background 200ms var(--ease-out);
    cursor: pointer;
}
.drop-zone.dragover {
    border-color: var(--ochre);
    background: rgba(198, 143, 43, 0.06);
    color: var(--rust);
}
.drop-zone i {
    display: block;
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: var(--ochre);
    opacity: 0.7;
}

/* --- Utilities ---------------------------------------------------------- */
.text-center  { text-align: center; }
.text-right   { text-align: right; }
.text-muted   { color: var(--ink-muted); }
.text-accent  { color: var(--rust); }
.text-success { color: var(--success); }
.text-error   { color: var(--error); }
.text-sm      { font-size: 0.85rem; }
.text-xs      { font-size: 0.75rem; }
.font-bold    { font-weight: 700; }
.font-serif   { font-family: var(--serif); }
.font-sans    { font-family: var(--sans); }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.d-flex          { display: flex; }
.d-none          { display: none; }
.d-block         { display: block; }
.flex-wrap       { flex-wrap: wrap; }
.align-center    { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-1           { gap: 0.5rem; }
.gap-2           { gap: 1rem; }
.gap-3           { gap: 1.5rem; }

.w-100           { width: 100%; }
.overflow-hidden { overflow: hidden; }

/* --- Responsive --------------------------------------------------------- */
@media (max-width: 600px) {
    .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 1rem;
    }
    .photo-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 0.4rem;
    }
    .lightbox-nav { padding: 0.7rem 0.5rem; font-size: 1.3rem; }
    .form-row { flex-direction: column; }
    .hide-mobile { display: none; }
}
@media (min-width: 769px) {
    .hide-desktop { display: none; }
}

/* ==========================================================================
   Language picker — editorial passport stamp
   Solid parchment pill that reads like a postmark on the page.
   Identical look across all pages; inverts to charcoal on the home
   scrolled-light navbar so the trigger is always unmissable.
   ========================================================================== */

.lang-picker {
    position: relative;
    display: inline-block;
    margin-left: 0.6rem;
}

/* --- Trigger ------------------------------------------------------------- */
.lang-picker > summary {
    list-style: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.42rem 0.85rem;
    background: #f4ede0;
    color: #1f1b16;
    border: 1px solid #c68f2b;
    border-radius: 999px;
    font-family: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    line-height: 1;
    box-shadow: 0 1px 0 rgba(31, 27, 22, 0.04);
    transition:
        transform 220ms cubic-bezier(0.16, 1, 0.3, 1),
        box-shadow 220ms cubic-bezier(0.16, 1, 0.3, 1),
        background-color 220ms ease,
        color 220ms ease,
        border-color 220ms ease;
}
.lang-picker > summary::-webkit-details-marker { display: none; }
.lang-picker > summary::marker { content: ""; }
.lang-picker > summary:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px -4px rgba(31, 27, 22, 0.28);
    border-color: #a87519;
}
.lang-picker > summary:focus-visible {
    outline: 2px solid #c68f2b;
    outline-offset: 3px;
}

.lang-picker__current {
    display: inline-block;
    min-width: 1.2em;
    text-align: center;
}

.lang-picker__divider {
    display: inline-block;
    width: 1px;
    height: 11px;
    background: rgba(166, 87, 23, 0.32);
}

.lang-picker__caret {
    width: 9px;
    height: 6px;
    transition: transform 260ms cubic-bezier(0.16, 1, 0.3, 1);
    color: #a87519;
}
.lang-picker[open] .lang-picker__caret { transform: rotate(180deg); }

/* --- Dropdown menu (editorial card) -------------------------------------- */
.lang-picker__menu {
    position: absolute;
    top: calc(100% + 0.55rem);
    right: 0;
    min-width: 230px;
    background: #f4ede0;
    border: 1px solid #c68f2b;
    border-radius: 4px;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.4),
        0 22px 44px -14px rgba(31, 27, 22, 0.38),
        0 6px 14px rgba(31, 27, 22, 0.16);
    margin: 0;
    padding: 0;
    z-index: 1100;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: langPickerOpen 240ms cubic-bezier(0.16, 1, 0.3, 1) both;
}
.lang-picker__menu::before {
    content: "";
    position: absolute;
    top: -5px;
    right: 18px;
    width: 8px;
    height: 8px;
    background: #f4ede0;
    border-left: 1px solid #c68f2b;
    border-top: 1px solid #c68f2b;
    transform: rotate(45deg);
    z-index: -1;
}
@keyframes langPickerOpen {
    from { opacity: 0; transform: translateY(-6px) scale(0.985); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

.lang-picker__heading {
    margin: 0;
    padding: 0.7rem 0.95rem 0.5rem;
    font-family: "Manrope", -apple-system, sans-serif;
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: #a87519;
    border-bottom: 1px solid rgba(166, 87, 23, 0.18);
}

/* --- Options ------------------------------------------------------------- */
.lang-picker__option {
    background: transparent;
    border: 0;
    border-bottom: 1px solid rgba(166, 87, 23, 0.1);
    padding: 0.7rem 0.95rem;
    text-align: left;
    cursor: pointer;
    display: grid;
    grid-template-columns: 30px 1fr 12px;
    align-items: center;
    gap: 0.7rem;
    color: #1f1b16;
    font-family: "Manrope", -apple-system, sans-serif;
    transition: background-color 160ms ease, color 160ms ease, padding-left 200ms cubic-bezier(0.16, 1, 0.3, 1);
    opacity: 0;
    animation: langOptionIn 320ms cubic-bezier(0.16, 1, 0.3, 1) both;
}
.lang-picker__option:nth-of-type(1) { animation-delay: 40ms; }
.lang-picker__option:nth-of-type(2) { animation-delay: 70ms; }
.lang-picker__option:nth-of-type(3) { animation-delay: 100ms; }
.lang-picker__option:nth-of-type(4) { animation-delay: 130ms; }
.lang-picker__option:nth-of-type(5) { animation-delay: 160ms; }
.lang-picker__option:nth-of-type(6) { animation-delay: 190ms; }
.lang-picker__option:last-child { border-bottom: 0; }

@keyframes langOptionIn {
    from { opacity: 0; transform: translateX(-6px); }
    to   { opacity: 1; transform: translateX(0); }
}

.lang-picker__option:hover:not(:disabled),
.lang-picker__option:focus-visible:not(:disabled) {
    background: rgba(166, 87, 23, 0.08);
    color: #a24a1e;
    padding-left: 1.15rem;
    outline: none;
}
.lang-picker__option:focus-visible:not(:disabled) {
    box-shadow: inset 3px 0 0 #a24a1e;
}

.lang-picker__option.is-active {
    background: rgba(198, 143, 43, 0.1);
    color: #a24a1e;
    cursor: default;
}
.lang-picker__option.is-active:hover { background: rgba(198, 143, 43, 0.1); padding-left: 0.95rem; }
.lang-picker__option:disabled { cursor: default; }

.lang-picker__option-code {
    font-family: "Fraunces", "Iowan Old Style", "Apple Garamond", Georgia, "Times New Roman", serif;
    font-style: italic;
    font-weight: 600;
    font-size: 1.08rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #c68f2b;
    text-align: center;
    line-height: 1;
}
.lang-picker__option.is-active .lang-picker__option-code { color: #a24a1e; }

.lang-picker__option-name {
    font-size: 0.86rem;
    font-weight: 500;
    letter-spacing: 0.005em;
    line-height: 1.2;
}

.lang-picker__option-mark {
    color: #c68f2b;
    font-size: 0.55rem;
    line-height: 1;
    text-align: right;
}
.lang-picker__option.is-active .lang-picker__option-mark { color: #a24a1e; }

/* --- Home: scrolled-light navbar inverts the trigger to charcoal --------- */
body.home .navbar.is-scrolled .lang-picker > summary {
    background: #1f1b16;
    color: #f4ede0;
    border-color: #1f1b16;
}
body.home .navbar.is-scrolled .lang-picker > summary:hover {
    background: #2c2620;
    border-color: #2c2620;
    box-shadow: 0 6px 16px -4px rgba(31, 27, 22, 0.32);
}
body.home .navbar.is-scrolled .lang-picker__divider { background: rgba(244, 237, 224, 0.3); }
body.home .navbar.is-scrolled .lang-picker__caret { color: #c68f2b; }

/* --- Mobile -------------------------------------------------------------- */
@media (max-width: 768px) {
    .lang-picker { margin-left: 0.4rem; }
    .lang-picker > summary {
        padding: 0.4rem 0.75rem;
        font-size: 0.72rem;
        letter-spacing: 0.18em;
    }
    .lang-picker__menu {
        right: 0;
        min-width: 210px;
    }
}

/* --- Reduced motion ------------------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* =====================================================================
   DONATE / SPONSOR / PARTNERS — appended for donation & sponsorship UX
   ===================================================================== */

/* --- shared layout helpers (donate/sponsor pages extend base.html and
       don't load home.css, so .wrap and .lead live here) --------------- */
.dispatch .wrap, .donor-wall .wrap,
.sponsor-tier-detail .wrap, .sponsor-apply .wrap, .sponsor-dashboard .wrap,
.partners .wrap {
    max-width: 1100px; margin: 0 auto; padding: 0 1.25rem; width: 100%;
}

.dispatch, .donor-wall, .sponsor-tier-detail, .sponsor-apply,
.sponsor-thanks, .sponsor-dashboard, .donate-thanks, .partners {
    color: var(--ink);
    background: var(--parchment);
}
.dispatch .lead, .donor-wall .lead, .sponsor-tier-detail .lead,
.sponsor-apply .lead, .sponsor-thanks .lead, .sponsor-dashboard .lead, .donate-thanks .lead {
    font-size: 1.15rem; line-height: 1.6; color: var(--ink); max-width: 640px;
    margin: 0.75rem 0 1.25rem;
}
.sr-only {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* =====================================================================
   DISPATCH — Field Journal Nº · The Dome Press
   Editorial natural-history aesthetic for /donate and /sponsors.
   ===================================================================== */

.dispatch {
    padding: 0 0 4rem;
    background:
        radial-gradient(1100px 540px at 50% -120px, rgba(198, 143, 43, 0.08), transparent 70%),
        var(--parchment);
    color: var(--ink);
    font-feature-settings: "ss01", "ss02";
}

/* --- masthead (top edition strip) ------------------------------------- */
.dispatch__masthead {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 1rem;
    align-items: center;
    max-width: 1100px;
    margin: 0 auto;
    padding: 1.25rem 1.5rem 0.75rem;
    border-bottom: 1px solid rgba(31, 27, 22, 0.18);
    font-family: var(--sans);
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--ink-muted);
}
.dispatch__masthead-issue { text-align: left; }
.dispatch__masthead-issue strong {
    font-family: var(--serif);
    font-style: italic;
    font-weight: 600;
    font-size: 1rem;
    letter-spacing: 0;
    color: var(--rust);
    text-transform: none;
}
.dispatch__masthead-mark {
    text-align: center;
    font-family: var(--serif);
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: 0.32em;
    color: var(--ink);
    text-transform: uppercase;
}
.dispatch__masthead-date { text-align: right; }
@media (max-width: 640px) {
    .dispatch__masthead { grid-template-columns: 1fr; text-align: center; gap: 0.35rem; padding: 1rem; }
    .dispatch__masthead-issue, .dispatch__masthead-date { text-align: center; }
}

/* --- lede (hero) ------------------------------------------------------ */
.dispatch__lede {
    max-width: 760px;
    margin: 0 auto;
    padding: 3rem 1.5rem 2rem;
    text-align: center;
}
.dispatch__section-mark {
    font-family: var(--serif);
    font-style: italic;
    font-size: 0.95rem;
    color: var(--rust);
    margin: 0 0 1rem;
    letter-spacing: 0.04em;
}
.dispatch__section-mark span {
    font-family: var(--sans);
    font-style: normal;
    font-weight: 600;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.22em;
    color: var(--ink-muted);
    margin-left: 0.5rem;
}
.dispatch__headline {
    font-family: var(--serif);
    font-weight: 600;
    font-size: clamp(2.1rem, 5.5vw, 3.4rem);
    line-height: 1.05;
    letter-spacing: -0.01em;
    margin: 0 0 1.5rem;
    color: var(--charcoal);
}
.dispatch__headline em {
    font-style: italic;
    font-weight: 400;
    color: var(--rust);
}
.dispatch__lede-body {
    font-family: var(--serif);
    font-size: 1.18rem;
    line-height: 1.65;
    color: var(--ink);
    max-width: 56ch;
    margin: 0 auto;
    text-align: left;
}
.dispatch__lede .dropcap,
.dropcap {
    float: left;
    font-family: var(--serif);
    font-style: italic;
    font-weight: 600;
    font-size: 4.6em;
    line-height: 0.85;
    color: var(--rust);
    margin: 0.18em 0.12em -0.05em 0;
    padding: 0;
}
.dispatch__lede-cta {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 1.25rem;
    flex-wrap: wrap;
}

/* --- asterism (⁂) ----------------------------------------------------- */
.asterism {
    text-align: center;
    color: var(--ochre);
    font-size: 1.05rem;
    letter-spacing: 0.4em;
    margin: 1.5rem 0;
    line-height: 1;
}
.asterism--rule {
    position: relative;
    margin: 2rem 0;
}
.asterism--rule::before, .asterism--rule::after {
    content: "";
    position: absolute;
    top: 50%;
    width: 28%;
    height: 1px;
    background: rgba(31, 27, 22, 0.18);
}
.asterism--rule::before { left: 8%; }
.asterism--rule::after { right: 8%; }

/* --- stats / ledger numbers in the lede ------------------------------- */
.dispatch__stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin: 1.5rem 0 0;
    padding: 0;
    flex-wrap: wrap;
    font-variant-numeric: tabular-nums lining-nums;
}
.dispatch__stats > div { text-align: center; }
.dispatch__stats dt {
    font-family: var(--sans);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: var(--ink-muted);
    margin-bottom: 0.25rem;
}
.dispatch__stats dd {
    margin: 0;
    font-family: var(--serif);
    font-weight: 600;
    font-size: 1.6rem;
    color: var(--charcoal);
    letter-spacing: -0.01em;
}
.dispatch__stats dd .num { color: var(--rust); }

/* --- body grid (form + colophon) -------------------------------------- */
.dispatch__body {
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
    gap: 2.5rem;
    margin: 1.5rem auto 0;
    align-items: start;
}
@media (max-width: 880px) { .dispatch__body { grid-template-columns: 1fr; gap: 2rem; } }

/* --- ledger (the donation form as accountant's ledger) ---------------- */
.ledger {
    background:
        repeating-linear-gradient(transparent 0 36px, rgba(31, 27, 22, 0.04) 36px 37px),
        #fffaf2;
    border: 1px solid rgba(31, 27, 22, 0.14);
    border-radius: 4px;
    padding: 2rem 2.25rem;
    box-shadow: var(--shadow-soft);
    position: relative;
}
.ledger::before {
    content: "";
    position: absolute;
    inset: 6px;
    border: 1px solid rgba(198, 143, 43, 0.25);
    pointer-events: none;
    border-radius: 2px;
}
.ledger__section { border: 0; padding: 0; margin: 0 0 1.25rem; }
.ledger__section legend {
    display: block;
    margin-bottom: 1rem;
    padding: 0;
    font-family: var(--serif);
    line-height: 1.2;
}
.ledger__roman {
    display: inline-block;
    font-style: italic;
    font-weight: 600;
    color: var(--rust);
    font-size: 1.5rem;
    margin-right: 0.55rem;
    vertical-align: baseline;
}
.ledger__title {
    font-weight: 600;
    color: var(--charcoal);
    font-size: 1.4rem;
    letter-spacing: -0.005em;
}
.ledger__sub {
    display: block;
    margin-top: 0.2rem;
    font-family: var(--sans);
    font-size: 0.82rem;
    color: var(--ink-muted);
    font-weight: 400;
    letter-spacing: 0.01em;
}

/* specimen tiles */
.specimens {
    list-style: none;
    padding: 0;
    margin: 0 0 1rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 0.6rem;
    font-variant-numeric: tabular-nums lining-nums;
}
.specimen { margin: 0; }
.specimen label {
    display: block;
    cursor: pointer;
    border: 1px solid rgba(31, 27, 22, 0.18);
    background: #fffaf2;
    padding: 0.85rem 0.75rem 0.9rem;
    text-align: center;
    transition: border-color .15s, background .15s, transform .15s, box-shadow .15s;
    position: relative;
}
.specimen label:hover { border-color: var(--ochre); background: #fff; transform: translateY(-1px); }
.specimen input { position: absolute; opacity: 0; pointer-events: none; inset: 0; }
.specimen input:focus-visible + .specimen__no { outline: 2px solid var(--rust); outline-offset: 2px; }
.specimen label:has(input:checked) {
    border-color: var(--rust);
    background: #fff;
    box-shadow: inset 0 0 0 1px var(--rust);
}
.specimen label:has(input:checked) .specimen__no { color: #fff; background: var(--rust); }
.specimen__no {
    display: inline-block;
    font-family: var(--serif);
    font-style: italic;
    font-size: 0.7rem;
    letter-spacing: 0.04em;
    color: var(--rust);
    background: rgba(162, 74, 30, 0.08);
    padding: 0.1rem 0.45rem;
    border-radius: 999px;
    margin-bottom: 0.5rem;
}
.specimen__amt {
    display: block;
    font-family: var(--serif);
    font-weight: 600;
    font-size: 1.55rem;
    color: var(--charcoal);
    letter-spacing: -0.01em;
    line-height: 1;
}
.specimen__amt em { font-style: italic; font-weight: 500; font-size: 1.15rem; color: var(--rust); }
.specimen__amt-r {
    font-size: 0.7em;
    color: var(--ochre-deep);
    margin-right: 0.05em;
    vertical-align: 0.15em;
}
.specimen__note {
    display: block;
    font-family: var(--sans);
    font-size: 0.75rem;
    color: var(--ink-muted);
    margin-top: 0.45rem;
    line-height: 1.35;
}
.specimen--custom label { background: rgba(198, 143, 43, 0.08); }

/* custom amount panel */
.ledger__custom {
    margin-top: 1rem;
    padding: 1rem 1.1rem;
    background: rgba(198, 143, 43, 0.08);
    border-left: 3px solid var(--ochre);
}
.ledger__custom-input { display: flex; align-items: baseline; gap: 0.45rem; }
.ledger__custom-input span {
    font-family: var(--serif);
    font-weight: 600;
    color: var(--rust);
    font-size: 1.4rem;
}
.ledger__custom-input input {
    flex: 1;
    padding: 0.5rem 0.75rem;
    border: 0;
    border-bottom: 1px solid var(--ink);
    background: transparent;
    font-family: var(--serif);
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--charcoal);
    font-variant-numeric: tabular-nums lining-nums;
}
.ledger__custom-input input:focus { outline: none; border-bottom-color: var(--rust); }
.ledger__help { font-size: 0.78rem; color: var(--ink-muted); margin: 0.5rem 0 0; }

/* form rows */
.ledger__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 580px) { .ledger__row { grid-template-columns: 1fr; } }
.ledger__field { display: flex; flex-direction: column; }
.ledger__field label,
.ledger__sublabel {
    font-family: var(--sans);
    font-weight: 600;
    font-size: 0.78rem;
    color: var(--charcoal);
    margin-bottom: 0.35rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}
.ledger__req { color: var(--rust); margin-left: 0.15rem; }
.ledger__field input,
.ledger textarea {
    width: 100%; box-sizing: border-box;
    padding: 0.55rem 0.1rem;
    border: 0;
    border-bottom: 1px solid rgba(31, 27, 22, 0.4);
    background: transparent;
    font-family: var(--serif);
    font-size: 1.05rem;
    color: var(--charcoal);
    border-radius: 0;
}
.ledger textarea {
    resize: vertical;
    min-height: 3.4rem;
    border: 1px solid rgba(31, 27, 22, 0.18);
    padding: 0.7rem 0.85rem;
    background: rgba(255, 250, 242, 0.6);
}
.ledger__field input:focus,
.ledger textarea:focus {
    outline: none;
    border-color: var(--rust);
    background: rgba(255, 250, 242, 0.9);
}
.ledger__check {
    display: flex; align-items: flex-start; gap: 0.6rem;
    margin-top: 0.6rem; cursor: pointer;
    font-family: var(--sans);
    font-size: 0.92rem;
    color: var(--ink);
    line-height: 1.5;
}
.ledger__check input { margin-top: 0.3rem; accent-color: var(--rust); }
.ledger__display { margin-top: 0.85rem; }

.ledger__sign { margin-top: 1.5rem; text-align: center; }
.ledger__submit {
    font-family: var(--serif);
    font-weight: 600;
    font-style: italic;
    font-size: 1.1rem;
    letter-spacing: 0.01em;
    padding: 0.95rem 2rem;
}
.ledger__assurance {
    margin: 0.85rem 0 0;
    font-family: var(--sans);
    font-size: 0.78rem;
    color: var(--ink-muted);
    letter-spacing: 0.02em;
}

/* --- colophon (sidebar panels) --------------------------------------- */
.colophon { display: flex; flex-direction: column; gap: 1.25rem; }
.colophon__panel {
    background: #fffaf2;
    border: 1px solid rgba(31, 27, 22, 0.14);
    border-top: 3px solid var(--ochre);
    padding: 1.5rem 1.6rem;
    position: relative;
}
.colophon__roman {
    margin: 0;
    font-family: var(--serif);
    font-style: italic;
    font-weight: 600;
    font-size: 1.2rem;
    color: var(--rust);
}
.colophon__title {
    font-family: var(--serif);
    font-weight: 600;
    font-size: 1.25rem;
    color: var(--charcoal);
    margin: 0.2rem 0 0;
    letter-spacing: -0.005em;
}
.colophon__rule {
    text-align: center;
    color: var(--ochre);
    margin: 0.85rem 0 1rem;
    font-size: 0.95rem;
    letter-spacing: 0.4em;
}
.colophon__entries { list-style: none; padding: 0; margin: 0; }
.colophon__entries li {
    display: grid;
    grid-template-columns: 2rem 1fr;
    gap: 0.5rem;
    padding: 0.6rem 0;
    border-bottom: 1px dashed rgba(31, 27, 22, 0.18);
    font-family: var(--serif);
    font-size: 0.95rem;
    line-height: 1.5;
    color: var(--ink);
}
.colophon__entries li:last-child { border-bottom: none; }
.colophon__entry-num {
    font-style: italic;
    color: var(--rust);
    font-weight: 600;
}
.colophon__entry-body strong { font-weight: 600; color: var(--charcoal); }
.colophon__more {
    margin: 0.85rem 0 0;
    font-family: var(--sans);
    font-size: 0.85rem;
}
.colophon__more a {
    color: var(--rust);
    font-weight: 600;
    text-decoration: none;
    border-bottom: 1px solid rgba(162, 74, 30, 0.4);
    padding-bottom: 1px;
}
.colophon__more a:hover { color: var(--rust-deep); border-bottom-color: var(--rust-deep); }

.colophon__roll {
    list-style: none;
    padding: 0;
    margin: 0;
    counter-reset: roll;
    font-variant-numeric: tabular-nums lining-nums;
}
.colophon__roll li {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 0.5rem 0.65rem;
    align-items: baseline;
    padding: 0.55rem 0;
    border-bottom: 1px dashed rgba(31, 27, 22, 0.14);
}
.colophon__roll li:last-child { border-bottom: none; }
.colophon__roll-no {
    font-family: var(--serif);
    font-style: italic;
    font-size: 0.78rem;
    color: var(--ink-muted);
    letter-spacing: 0.02em;
}
.colophon__roll-name {
    font-family: var(--sans);
    font-weight: 600;
    color: var(--charcoal);
    font-size: 0.92rem;
}
.colophon__roll-amt {
    font-family: var(--serif);
    font-weight: 600;
    color: var(--rust);
    font-size: 0.95rem;
    text-align: right;
}
.colophon__roll-ded {
    grid-column: 2 / -1;
    font-family: var(--serif);
    font-style: italic;
    color: var(--ink-muted);
    font-size: 0.85rem;
    line-height: 1.45;
    margin-top: 0.15rem;
}

/* --- footer colophon strip ------------------------------------------- */
.dispatch__colophon {
    max-width: 1100px;
    margin: 3rem auto 0;
    padding: 1.5rem 1.5rem 0;
    border-top: 1px solid rgba(31, 27, 22, 0.18);
    text-align: center;
    font-family: var(--serif);
    font-style: italic;
    font-size: 0.85rem;
    color: var(--ink-muted);
}
.dispatch__colophon p { margin: 0; }
.dispatch__footer-cta {
    max-width: 760px;
    margin: 3.5rem auto 0;
    padding: 0 1.5rem;
    text-align: center;
}
.dispatch__footer-headline {
    font-family: var(--serif);
    font-weight: 600;
    font-size: clamp(1.6rem, 4vw, 2.4rem);
    line-height: 1.1;
    margin: 0.4rem 0 1rem;
    color: var(--charcoal);
}
.dispatch__footer-headline em { font-style: italic; font-weight: 400; color: var(--rust); }
.dispatch__footer-body {
    font-family: var(--serif);
    font-size: 1.05rem;
    line-height: 1.55;
    color: var(--ink);
    max-width: 56ch;
    margin: 0 auto;
}

/* --- DONOR WALL --------------------------------------------------------- */
.donor-wall { padding: 3rem 0; }
.donor-wall__head { text-align: center; max-width: 720px; margin: 0 auto 2rem; padding: 0 1.25rem; }
.donor-wall__head h1 { font-size: clamp(1.8rem, 4vw, 2.4rem); margin: 0.5rem 0 0.85rem; }
.donor-wall__head h1 em { color: var(--rust); font-style: italic; }
.donor-wall__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1rem; max-width: 1100px; margin: 0 auto; padding: 0 1.25rem; }
.donor-wall__card { background: #fff; border-radius: 12px; padding: 1.25rem; box-shadow: var(--shadow-soft); border-left: 3px solid var(--ochre); }
.donor-wall__name { font-weight: 700; color: var(--ink); font-size: 1rem; margin-bottom: 0.25rem; }
.donor-wall__amt { color: var(--rust); font-weight: 700; font-size: 1.1rem; margin-bottom: 0.5rem; }
.donor-wall__ded { font-style: italic; color: var(--ink-muted); font-size: 0.88rem; line-height: 1.45; border-left: 2px solid var(--parchment-2); padding-left: 0.75rem; margin: 0.5rem 0 0.5rem; }
.donor-wall__date { font-size: 0.75rem; color: var(--ink-muted); text-transform: uppercase; letter-spacing: 0.06em; }
.donor-wall__empty { text-align: center; padding: 3rem 1rem; color: var(--ink-muted); }
.donor-wall__pager { display: flex; justify-content: center; gap: 0.5rem; margin-top: 2rem; }

/* --- DONATE THANKS ------------------------------------------------------ */
.donate-thanks, .sponsor-thanks { padding: 4rem 1.25rem; min-height: 70vh; display: flex; align-items: center; justify-content: center; }
.donate-thanks__inner, .sponsor-thanks__inner { max-width: 640px; text-align: center; }
.donate-thanks__seal, .sponsor-thanks__seal {
    width: 80px; height: 80px; margin: 0 auto 1.25rem;
    background: linear-gradient(135deg, var(--rust), var(--ochre));
    color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center;
    font-size: 2rem; box-shadow: var(--shadow-deep);
}
.donate-thanks h1, .sponsor-thanks h1 { font-size: clamp(1.8rem, 4vw, 2.5rem); margin: 0.5rem 0 1rem; line-height: 1.1; }
.donate-thanks h1 em, .sponsor-thanks h1 em { color: var(--rust); font-style: italic; }
.donate-thanks__ded { font-style: italic; color: var(--ink); border-left: 3px solid var(--ochre); padding: 0.75rem 1rem; background: var(--parchment-2); border-radius: 0 8px 8px 0; margin: 1rem auto; max-width: 500px; }
.donate-thanks__wall { color: var(--ink-muted); font-size: 0.9rem; margin: 0.75rem 0 1rem; }
.donate-thanks__cta, .sponsor-thanks__cta { display: flex; gap: 0.75rem; justify-content: center; margin-top: 1.5rem; flex-wrap: wrap; }
.donate-thanks__note, .sponsor-thanks__note { color: var(--ink-muted); font-size: 0.85rem; margin-top: 1.5rem; }
.donate-thanks__note a, .sponsor-thanks__note a { color: var(--rust); }
.sponsor-thanks__steps { list-style: none; padding: 0; margin: 1.5rem auto; max-width: 480px; text-align: left; }
.sponsor-thanks__steps li { display: flex; gap: 0.75rem; align-items: flex-start; padding: 0.6rem 0; border-bottom: 1px dashed var(--parchment-2); color: var(--ink); font-size: 0.92rem; }
.sponsor-thanks__steps li:last-child { border-bottom: none; }
.sponsor-thanks__steps i { color: var(--rust); margin-top: 0.2rem; }

/* --- PLATE (sponsor tier section, like a botanical plate) ----------- */
.plate {
    padding: 2.5rem 0;
    position: relative;
}
.plate + .plate {
    border-top: 1px solid rgba(31, 27, 22, 0.12);
}
.plate__inner { width: 100%; }
.plate__head {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 1.75rem;
}
.plate__caption {
    font-family: var(--sans);
    text-transform: uppercase;
    letter-spacing: 0.22em;
    font-size: 0.7rem;
    color: var(--ink-muted);
    margin: 0 0 0.65rem;
}
.plate__caption span {
    font-family: var(--serif);
    font-style: italic;
    font-size: 1rem;
    letter-spacing: 0;
    color: var(--tier-accent, var(--rust));
    text-transform: none;
    margin-left: 0.25rem;
}
.plate__name {
    font-family: var(--serif);
    font-weight: 600;
    font-size: clamp(1.5rem, 3.5vw, 2rem);
    color: var(--charcoal);
    margin: 0;
    line-height: 1.15;
    letter-spacing: -0.005em;
}
.plate__name em { font-style: italic; font-weight: 400; color: var(--tier-accent, var(--rust)); }
.plate__tagline {
    font-family: var(--serif);
    font-style: italic;
    font-size: 1.05rem;
    color: var(--ink);
    margin: 0.6rem auto 0;
    max-width: 52ch;
    line-height: 1.5;
}

.plate__grid {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1.25rem;
    counter-reset: plate-item;
}

.plate__sponsor {
    position: relative;
    background: #fffaf2;
    border: 1px solid rgba(31, 27, 22, 0.14);
    border-top: 3px solid var(--tier-accent, var(--rust));
    padding: 1.5rem 1.25rem 1.25rem;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
    display: flex;
    flex-direction: column;
    text-align: center;
}
.plate__sponsor::before {
    content: "";
    position: absolute;
    inset: 5px;
    border: 1px solid rgba(198, 143, 43, 0.22);
    pointer-events: none;
}
.plate__sponsor:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-deep);
}
.plate__sponsor a {
    color: inherit;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    height: 100%;
}
.plate__sponsor-no {
    align-self: center;
    font-family: var(--serif);
    font-style: italic;
    font-size: 0.75rem;
    color: var(--tier-accent, var(--rust));
    letter-spacing: 0.04em;
    background: rgba(255, 255, 255, 0.7);
    padding: 0.1rem 0.55rem;
    border: 1px solid currentColor;
    border-radius: 999px;
    margin-bottom: 0.85rem;
}
.plate__sponsor-logo {
    width: 100%;
    aspect-ratio: 1.6;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.85rem;
    background: #fff;
    border: 1px solid rgba(31, 27, 22, 0.08);
    padding: 0.75rem;
}
.plate__sponsor-logo img { max-width: 100%; max-height: 100%; object-fit: contain; }
.plate__sponsor-initials {
    font-family: var(--serif);
    font-style: italic;
    font-size: 2rem;
    font-weight: 600;
    color: var(--tier-accent, var(--rust));
    letter-spacing: 0.05em;
}
.plate__sponsor-body { flex: 1; }
.plate__sponsor-body h3 {
    font-family: var(--serif);
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--charcoal);
    margin: 0 0 0.35rem;
    letter-spacing: -0.005em;
}
.plate__sponsor-body p {
    font-family: var(--serif);
    font-size: 0.92rem;
    color: var(--ink);
    line-height: 1.5;
    margin: 0;
}
.plate__sponsor-cta {
    margin-top: 0.85rem;
    font-family: var(--sans);
    font-size: 0.72rem;
    color: var(--tier-accent, var(--rust));
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.16em;
}
.plate__sponsor-cta i { margin-left: 0.25rem; font-size: 0.85em; }

.plate--empty {
    text-align: center;
    padding: 2.5rem 1.25rem;
    border: 1px dashed rgba(31, 27, 22, 0.25);
    background: rgba(255, 250, 242, 0.6);
    margin: 1.5rem auto;
    max-width: 640px;
}
.plate--empty .plate__caption { margin-bottom: 0.85rem; }

/* --- SUBSCRIPTION TIERS (dispatch--tiers) ------------------------------ */
.dispatch--tiers .dispatch__lede,
.dispatch--tier-signup .dispatch__lede { padding-bottom: 1.5rem; }

.tiers {
    list-style: none;
    padding: 0;
    margin: 0 auto 2.5rem;
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    counter-reset: tier;
}
@media (min-width: 720px) {
    .tiers { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.75rem; }
}
@media (min-width: 1100px) {
    .tiers { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.5rem; }
}

.tier {
    position: relative;
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 4px;
    padding: 1.75rem 1.5rem 1.5rem;
    box-shadow: var(--shadow-soft);
    border-top: 3px solid var(--tier-accent, var(--rust));
}

.tier__head { text-align: center; margin-bottom: 1rem; }
.tier__caption {
    font-family: var(--sans);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--ink-muted);
    margin: 0 0 0.6rem;
}
.tier__caption span {
    font-family: var(--serif);
    font-style: italic;
    color: var(--tier-accent, var(--rust));
    text-transform: none;
    letter-spacing: 0;
    margin-left: 0.15rem;
}
.tier__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px; height: 48px;
    border-radius: 50%;
    color: var(--tier-accent, var(--rust));
    background: rgba(255, 250, 242, 0.9);
    border: 1px solid rgba(31, 27, 22, 0.12);
    font-size: 1.1rem;
    margin: 0 0 0.65rem;
}
.tier__name {
    font-family: var(--serif);
    font-size: clamp(1.4rem, 2.4vw, 1.7rem);
    font-weight: 600;
    color: var(--charcoal);
    margin: 0 0 0.35rem;
    letter-spacing: -0.01em;
}
.tier__tagline {
    font-family: var(--serif);
    font-style: italic;
    font-size: 0.92rem;
    color: var(--ink-muted);
    margin: 0;
    line-height: 1.45;
}

.tier__price { text-align: center; margin: 0.5rem 0 0.85rem; }
.tier__price-amt {
    display: block;
    font-family: var(--serif);
    font-size: clamp(1.8rem, 3.5vw, 2.2rem);
    font-weight: 600;
    color: var(--tier-accent, var(--rust));
    letter-spacing: -0.02em;
    line-height: 1;
}
.tier__price-r {
    font-size: 0.65em;
    font-weight: 500;
    color: var(--ink-muted);
    margin-right: 0.1em;
    vertical-align: 0.15em;
}
.tier__price-per {
    display: block;
    font-family: var(--sans);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: var(--ink-muted);
    margin-top: 0.45rem;
}

.tier .asterism--rule { margin: 0.25rem 0 1rem; font-size: 0.95rem; }

.tier__desc {
    font-family: var(--serif);
    font-size: 0.95rem;
    color: var(--ink);
    line-height: 1.55;
    margin: 0 0 1rem;
    text-align: center;
}

.tier__perks {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem;
    flex: 1;
}
.tier__perks li {
    display: flex;
    gap: 0.5rem;
    align-items: baseline;
    padding: 0.45rem 0;
    border-bottom: 1px dashed rgba(31, 27, 22, 0.12);
    font-family: var(--serif);
    font-size: 0.92rem;
    color: var(--ink);
    line-height: 1.4;
}
.tier__perks li:last-child { border-bottom: none; }
.tier__perk-mark {
    color: var(--tier-accent, var(--rust));
    font-weight: 700;
    flex-shrink: 0;
}

.tier__cta {
    margin-top: auto;
    width: 100%;
    background: var(--tier-accent, var(--rust));
    border-color: var(--tier-accent, var(--rust));
    text-align: center;
    justify-content: center;
}
.tier__cta:hover, .tier__cta:focus-visible {
    background: var(--charcoal);
    border-color: var(--charcoal);
}
.tier__cta i { margin-right: 0.4rem; }

/* --- TIER SIGN-UP (dispatch--tier-signup) ------------------------------ */
.tier-signup__back {
    font-family: var(--sans);
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--ink-muted);
    text-decoration: none;
    border-bottom: 1px dotted rgba(31, 27, 22, 0.25);
    padding-bottom: 0.1rem;
}
.tier-signup__back:hover { color: var(--tier-accent, var(--rust)); border-bottom-color: var(--tier-accent, var(--rust)); }

.tier-signup__lede { font-style: italic; color: var(--ink-muted); }

.tier-signup__stats dd .num { color: var(--tier-accent, var(--rust)); }

.tier-signup__desc {
    font-family: var(--serif);
    font-size: 0.95rem;
    color: var(--ink);
    line-height: 1.55;
    margin: 0 0 0.85rem;
}

.dispatch--tier-signup .ledger { border-top: 3px solid var(--tier-accent, var(--rust)); }
.dispatch--tier-signup .ledger__roman { color: var(--tier-accent, var(--rust)); }
.dispatch--tier-signup .ledger__submit { background: var(--tier-accent, var(--rust)); border-color: var(--tier-accent, var(--rust)); }
.dispatch--tier-signup .ledger__submit:hover,
.dispatch--tier-signup .ledger__submit:focus-visible { background: var(--charcoal); border-color: var(--charcoal); }
.dispatch--tier-signup .colophon__panel { border-top-color: var(--tier-accent, var(--rust)); }

/* --- SPONSOR APPLY ------------------------------------------------------ */
.sponsor-apply { padding-bottom: 3rem; }
.sponsor-apply__hero { padding: 3rem 1.25rem 1.5rem; max-width: 720px; margin: 0 auto; text-align: center; }
.sponsor-apply__hero h1 { font-size: clamp(1.8rem, 4vw, 2.4rem); margin: 0.5rem 0; }
.sponsor-apply__hero h1 em { color: var(--rust); font-style: italic; }
.sponsor-apply__form { max-width: 720px; margin: 1.5rem auto 0; padding: 2rem; background: #fff; border-radius: 16px; box-shadow: var(--shadow-soft); }

/* --- SPONSOR DASHBOARD -------------------------------------------------- */
.sponsor-dashboard { padding-bottom: 3rem; }
.sponsor-dashboard__hero { padding: 3rem 1.25rem 1.5rem; max-width: 800px; margin: 0 auto; text-align: center; }
.sponsor-dashboard__hero h1 { font-size: clamp(1.8rem, 4vw, 2.4rem); margin: 0.5rem 0; }
.sponsor-dashboard__hero h1 em { color: var(--rust); font-style: italic; }
.sponsor-dashboard__list { max-width: 900px; margin: 1.5rem auto 0; padding: 0 1.25rem; }
.sponsor-dashboard__card { background: #fff; border-radius: 16px; padding: 1.5rem; box-shadow: var(--shadow-soft); margin-bottom: 1.25rem; }
.sponsor-dashboard__card-head { display: flex; justify-content: space-between; gap: 0.75rem; flex-wrap: wrap; align-items: flex-start; padding-bottom: 0.75rem; border-bottom: 1px solid var(--parchment-2); }
.sponsor-dashboard__card-head h2 { margin: 0; font-size: 1.2rem; color: var(--ink); }
.sponsor-dashboard__tier { font-size: 0.8rem; color: var(--ink-muted); margin: 0.25rem 0 0; }
.sponsor-dashboard__period { font-size: 0.85rem; color: var(--ink-muted); margin: 0.75rem 0; }
.sponsor-dashboard__grid { display: grid; grid-template-columns: 220px 1fr; gap: 1.5rem; margin-top: 1rem; }
@media (max-width: 700px) { .sponsor-dashboard__grid { grid-template-columns: 1fr; } }
.sponsor-dashboard__logo-col label { font-weight: 600; font-size: 0.85rem; color: var(--ink); }
.sponsor-dashboard__logo-preview { width: 100%; aspect-ratio: 1.4; background: var(--parchment-2); border-radius: 10px; display: flex; align-items: center; justify-content: center; padding: 0.75rem; margin: 0.5rem 0 1rem; overflow: hidden; }
.sponsor-dashboard__logo-preview img { max-width: 100%; max-height: 100%; object-fit: contain; }
.sponsor-dashboard__actions { margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--parchment-2); display: flex; gap: 0.75rem; align-items: center; flex-wrap: wrap; }
.sponsor-dashboard__actions .form-help { margin: 0; font-size: 0.78rem; }
.sponsor-dashboard__status .pill { font-size: 0.7rem; }

/* --- PILLS -------------------------------------------------------------- */
.pill { display: inline-flex; align-items: center; gap: 0.3rem; padding: 0.2rem 0.55rem; border-radius: 999px; font-size: 0.72rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; }
.pill--ok { background: rgba(122, 139, 111, 0.18); color: var(--sage-deep); }
.pill--warn { background: rgba(198, 143, 43, 0.18); color: var(--ochre-deep); }
.pill--muted { background: rgba(107, 99, 88, 0.15); color: var(--ink-muted); }

/* --- HOMEPAGE PARTNERS SECTION ----------------------------------------- */
.partners { padding: 4rem 0; background: var(--parchment-2); }
.partners__intro { text-align: center; max-width: 720px; margin: 0 auto 2rem; }
.partners__intro h2 { font-size: clamp(1.6rem, 3.5vw, 2.2rem); margin: 0.5rem 0; }
.partners__intro h2 em { color: var(--rust); font-style: italic; }
.partners__featured { display: grid; grid-template-columns: 220px 1fr; gap: 2rem; align-items: center; background: #fff; border-radius: 18px; padding: 2rem; box-shadow: var(--shadow-soft); border-left: 4px solid var(--ochre); margin-bottom: 2rem; }
@media (max-width: 700px) { .partners__featured { grid-template-columns: 1fr; text-align: center; } }
.partners__featured-logo { width: 100%; aspect-ratio: 1.2; display: flex; align-items: center; justify-content: center; background: var(--parchment-2); border-radius: 12px; padding: 1.25rem; }
.partners__featured-logo img { max-width: 100%; max-height: 100%; object-fit: contain; }
.partners__featured-initials { font-size: 2.5rem; font-weight: 700; color: var(--rust); letter-spacing: 0.05em; }
.partners__featured-body h3 { margin: 0.35rem 0 0.75rem; font-size: 1.6rem; }
.partners__featured-body blockquote { font-style: italic; font-size: 1.05rem; line-height: 1.55; color: var(--ink); border-left: 3px solid var(--ochre); padding-left: 1rem; margin: 0.5rem 0 1rem; }
.partners__featured-body p { font-size: 1rem; color: var(--ink); line-height: 1.55; margin: 0.5rem 0 1rem; }
.partners__featured-cta { display: flex; gap: 0.75rem; align-items: center; flex-wrap: wrap; margin-top: 0.5rem; }
.partners__featured-link { color: var(--rust); font-weight: 600; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.06em; text-decoration: none; }
.partners__featured-link:hover { color: var(--rust-deep); }
.partners__strip { list-style: none; padding: 1.5rem 1rem; margin: 0 0 1.5rem; display: flex; flex-wrap: wrap; gap: 1.5rem 2.5rem; align-items: center; justify-content: center; background: #fff; border-radius: 14px; box-shadow: var(--shadow-soft); }
.partners__strip-item { display: flex; align-items: center; justify-content: center; min-height: 48px; }
.partners__strip-item a { display: block; }
.partners__strip-item img { max-height: 48px; max-width: 140px; object-fit: contain; filter: grayscale(0.3); opacity: 0.85; transition: filter .2s, opacity .2s; }
.partners__strip-item img:hover { filter: grayscale(0); opacity: 1; }
.partners__strip-name { font-size: 0.85rem; color: var(--ink-muted); font-weight: 600; }
.partners__cta { text-align: center; margin-top: 1rem; }

/* --- FOOTER SPONSOR LOGO BAR ------------------------------------------- */
.footer { padding: 0; }
.footer__sponsors { padding: 2rem 1.25rem 1.5rem; text-align: center; border-top: 1px solid rgba(244, 237, 224, 0.15); }
.footer__sponsors-label { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.12em; color: rgba(244, 237, 224, 0.6); margin: 0 0 1rem; }
.footer__sponsors-list { list-style: none; padding: 0; margin: 0 auto 1rem; display: flex; flex-wrap: wrap; gap: 1rem 2rem; align-items: center; justify-content: center; max-width: 1000px; }
.footer__sponsor { display: flex; align-items: center; }
.footer__sponsor img { max-height: 36px; max-width: 110px; object-fit: contain; filter: brightness(0) invert(1); opacity: 0.65; transition: opacity .2s; }
.footer__sponsor a:hover img { opacity: 1; }
.footer__sponsors-link { color: var(--ochre); font-size: 0.8rem; font-weight: 600; text-decoration: none; text-transform: uppercase; letter-spacing: 0.08em; }
.footer__sponsors-link:hover { color: var(--parchment); }
.footer__base { padding: 1rem; text-align: center; }

/* --- NAVBAR DONATE CTA ------------------------------------------------- */
.navbar__cta-item { margin-left: 0.5rem; }
.navbar__menu .navbar__donate {
    background: var(--rust); color: #fff !important;
    padding: 0.5rem 1.1rem; border-radius: 999px;
    font-weight: 600; letter-spacing: 0.04em;
    transition: background .15s, transform .15s;
    display: inline-flex; align-items: center; gap: 0.4rem;
}
.navbar__menu .navbar__donate:hover { background: var(--rust-deep); color: #fff !important; transform: translateY(-1px); }
.navbar__menu .navbar__donate.active::after { display: none; }
.navbar__menu .navbar__donate i { font-size: 0.85em; }
@media (max-width: 768px) {
    .navbar__cta-item { margin-left: 0; }
    .navbar__menu .navbar__donate { display: inline-flex; width: auto; align-self: flex-start; }
}

/* ==========================================================================
   PITCH DISPATCHES — /for/<slug>, /with/<slug>, /documents
   Reuses existing .dispatch / .dispatch__masthead / .dispatch__lede vocabulary.
   New patterns live below. Print styles at the very bottom.
   ========================================================================== */

/* --- Dispatch variant for pitches --------------------------------------- */
.dispatch--pitch .dispatch__lede,
.dispatch--documents .dispatch__lede { padding-bottom: 1.25rem; }

/* --- Download bar (sits above the lede on live pages, hidden on print) -- */
.pitch-download-bar {
    max-width: 980px;
    margin: 0 auto 1.5rem;
    padding: 0.85rem 1.25rem;
    background: rgba(31, 27, 22, 0.04);
    border: 1px solid var(--line);
    border-radius: var(--radius-m);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}
.pitch-download-bar__label {
    font-family: var(--sans);
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: var(--ink-muted);
    margin: 0;
}
.pitch-download-bar__label i {
    color: var(--rust);
    margin-right: 0.4rem;
}
.pitch-download-bar__actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

/* --- Pitch body blocks -------------------------------------------------- */
.dispatch--pitch .dispatch__body {
    display: block;       /* override any grid layout from sister dispatches */
    max-width: 760px;
}

.pitch-block { margin: 2rem 0; }
.pitch-block p {
    font-family: var(--serif);
    font-size: 1.15rem;
    line-height: 1.7;
    color: var(--ink);
    margin: 0 0 1rem;
}
.pitch-block p:last-child { margin-bottom: 0; }

.pitch-block__mark {
    font-family: var(--sans);
    font-size: 0.78rem !important;
    line-height: 1.3 !important;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--rust);
    margin: 0 0 1rem !important;
    font-weight: 600;
}
.pitch-block__mark span {
    color: var(--ink-muted);
    font-weight: 400;
    margin-left: 0.4em;
    text-transform: none;
    letter-spacing: 0.04em;
    font-style: italic;
}

.pitch-block strong {
    font-weight: 600;
    color: var(--charcoal);
    background: linear-gradient(180deg, transparent 60%, rgba(198,143,43,0.18) 60%);
    padding: 0 0.05em;
}

/* --- Bulleted list inside a pitch block --------------------------------- */
.pitch-list {
    list-style: none;
    margin: 0.5rem 0 1rem;
    padding: 0;
}
.pitch-list li {
    font-family: var(--serif);
    font-size: 1.1rem;
    line-height: 1.65;
    color: var(--ink);
    padding: 0.7rem 0 0.7rem 1.6rem;
    position: relative;
    border-bottom: 1px dotted var(--line);
}
.pitch-list li:last-child { border-bottom: 0; }
.pitch-list li::before {
    content: "·";
    position: absolute;
    left: 0.4rem;
    top: 0.5rem;
    color: var(--rust);
    font-weight: 700;
    font-size: 1.4rem;
    line-height: 1;
}
.pitch-list li strong {
    background: none;
    padding: 0;
    color: var(--charcoal);
}

/* --- Numbered offerings (Andy page) ------------------------------------- */
.pitch-offerings {
    list-style: none;
    counter-reset: offering;
    margin: 0.5rem 0;
    padding: 0;
}
.pitch-offerings > li {
    counter-increment: offering;
    padding: 1.4rem 0 1.4rem 3rem;
    border-bottom: 1px solid var(--line);
    position: relative;
}
.pitch-offerings > li:last-child { border-bottom: 0; }
.pitch-offerings > li::before {
    content: counter(offering, decimal-leading-zero);
    position: absolute;
    left: 0;
    top: 1.5rem;
    font-family: var(--serif);
    font-size: 1.5rem;
    color: var(--rust);
    font-weight: 600;
    letter-spacing: 0.04em;
}
.pitch-offerings h3 {
    font-family: var(--serif);
    font-size: 1.4rem;
    font-weight: 500;
    color: var(--charcoal);
    margin: 0 0 0.25rem;
    letter-spacing: -0.01em;
}
.pitch-offerings__sub {
    font-family: var(--sans) !important;
    font-size: 0.78rem !important;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--ink-muted);
    margin: 0 0 0.6rem !important;
}
.pitch-offerings p:not(.pitch-offerings__sub) {
    font-family: var(--serif);
    font-size: 1.05rem;
    line-height: 1.65;
    margin: 0.25rem 0 0 !important;
}

/* --- CTA block + button row --------------------------------------------- */
.pitch-block--cta {
    margin-top: 2.5rem;
    padding: 2rem 1.5rem;
    background: rgba(198, 143, 43, 0.08);
    border: 1px solid rgba(198, 143, 43, 0.28);
    border-radius: var(--radius-m);
}
.pitch-cta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.25rem;
}

/* --- Colophon (closes each dispatch + sister index) --------------------- */
.pitch-colophon {
    max-width: 760px;
    margin: 4rem auto 2rem;
    text-align: center;
}
.pitch-colophon__sig {
    font-family: var(--serif);
    font-size: 1.05rem;
    color: var(--ink-muted);
    line-height: 1.6;
    margin: 1rem 0 2.5rem;
}
.pitch-colophon__sig em {
    color: var(--charcoal);
    font-style: italic;
    font-size: 1.15rem;
    display: inline-block;
    margin-bottom: 0.2rem;
}
.pitch-colophon__more {
    font-family: var(--sans);
    font-size: 0.74rem;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--ink-muted);
    margin: 0 0 1rem;
}
.pitch-colophon__list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 0.5rem;
    text-align: left;
}
.pitch-colophon__list a {
    display: block;
    padding: 1rem 1.1rem;
    background: rgba(31, 27, 22, 0.03);
    border: 1px solid var(--line);
    border-radius: var(--radius-s);
    text-decoration: none;
    color: var(--ink);
    transition: background 0.18s var(--ease-out), border-color 0.18s var(--ease-out);
}
.pitch-colophon__list a:hover,
.pitch-colophon__list a:focus-visible {
    background: rgba(198, 143, 43, 0.08);
    border-color: rgba(198, 143, 43, 0.35);
}
.pitch-colophon__issue {
    display: block;
    font-family: var(--sans);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: var(--rust);
    margin-bottom: 0.25rem;
}
.pitch-colophon__title {
    display: block;
    font-family: var(--serif);
    font-size: 1.1rem;
    color: var(--charcoal);
    margin-bottom: 0.3rem;
}
.pitch-colophon__blurb {
    display: block;
    font-family: var(--serif);
    font-size: 0.92rem;
    color: var(--ink-muted);
    line-height: 1.5;
}

/* --- Documents index ---------------------------------------------------- */
.documents-list {
    list-style: none;
    padding: 0;
    margin: 1.5rem auto 2rem;
    max-width: 880px;
    display: grid;
    gap: 1.25rem;
}
.documents-item {
    background: rgba(247, 240, 226, 0.55);
    border: 1px solid var(--line);
    border-left: 4px solid var(--rust);
    border-radius: var(--radius-s);
    padding: 1.5rem 1.5rem;
}
.documents-item__caption {
    font-family: var(--sans);
    font-size: 0.74rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--ink-muted);
    margin: 0 0 0.4rem;
}
.documents-item__caption span { color: var(--rust); font-weight: 600; }
.documents-item__title {
    font-family: var(--serif);
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--charcoal);
    margin: 0 0 0.5rem;
    letter-spacing: -0.01em;
}
.documents-item__blurb {
    font-family: var(--serif);
    font-size: 1.02rem;
    line-height: 1.6;
    color: var(--ink);
    margin: 0 0 1rem;
}
.documents-item__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}
.documents-item__note {
    font-family: var(--sans);
    font-size: 0.78rem;
    color: var(--ink-muted);
    margin: 0.75rem 0 0;
}

/* --- Disabled link state (download not yet generated) ------------------- */
.is-disabled {
    opacity: 0.45;
    pointer-events: none;
    cursor: not-allowed;
}

/* --- Mobile spacing ----------------------------------------------------- */
@media (max-width: 720px) {
    .pitch-download-bar { padding: 0.75rem 0.85rem; }
    .pitch-download-bar__actions { width: 100%; }
    .pitch-download-bar__actions .btn-sm { flex: 1 1 auto; justify-content: center; }
    .pitch-block p, .pitch-list li { font-size: 1.02rem; }
    .pitch-block--cta { padding: 1.5rem 1rem; }
    .pitch-offerings > li { padding-left: 2.4rem; }
    .documents-item { padding: 1.25rem 1rem; }
}

/* --- Print stylesheet — clean A4 PDF ------------------------------------ */
@media print {
    @page { size: A4; margin: 18mm 16mm 20mm 16mm; }

    html, body {
        background: #ffffff !important;
        color: #1f1b16 !important;
    }
    body::before { display: none !important; }   /* kill paper-fibre noise */

    /* Hide site chrome */
    .navbar, .footer, .bottom-nav, .flashes, .lang-picker,
    #pwa-banners, .no-print { display: none !important; }

    .main-content { padding: 0 !important; margin: 0 !important; }

    /* Dispatch — keep but tighten for print */
    .dispatch--pitch, .dispatch--documents {
        max-width: 100% !important;
        padding: 0 !important;
    }
    .dispatch__masthead {
        border-top: 1px solid #1f1b16 !important;
        border-bottom: 1px solid #1f1b16 !important;
        padding: 6pt 0 !important;
        margin-bottom: 18pt !important;
    }
    .dispatch__masthead-issue,
    .dispatch__masthead-mark,
    .dispatch__masthead-date {
        font-size: 8pt !important;
        color: #1f1b16 !important;
    }

    .dispatch__lede {
        max-width: 100% !important;
        padding: 0 !important;
        margin-bottom: 18pt !important;
    }
    .dispatch__section-mark {
        font-size: 8pt !important;
        color: #a24a1e !important;
    }
    .dispatch__headline {
        font-size: 24pt !important;
        line-height: 1.15 !important;
        margin: 8pt 0 12pt !important;
        color: #1f1b16 !important;
    }
    .dispatch__lede-body {
        font-size: 11pt !important;
        line-height: 1.55 !important;
        color: #1f1b16 !important;
    }
    .dropcap {
        font-size: 38pt !important;
        line-height: 0.9 !important;
        float: left;
        margin: 4pt 6pt 0 0 !important;
        color: #a24a1e !important;
    }
    .asterism { font-size: 14pt !important; color: #c68f2b !important; margin: 12pt 0 !important; }

    .dispatch__body { max-width: 100% !important; padding: 0 !important; display: block !important; }

    .pitch-block { margin: 12pt 0 !important; page-break-inside: avoid; }
    .pitch-block__mark {
        font-size: 8pt !important;
        color: #a24a1e !important;
        margin-bottom: 6pt !important;
    }
    .pitch-block p, .pitch-list li, .pitch-offerings p:not(.pitch-offerings__sub) {
        font-size: 10.5pt !important;
        line-height: 1.55 !important;
        color: #1f1b16 !important;
    }
    .pitch-block strong { background: none !important; color: #1f1b16 !important; font-weight: 700 !important; }

    .pitch-list { margin: 6pt 0 !important; }
    .pitch-list li { padding: 4pt 0 4pt 14pt !important; border-bottom: 1px dotted #d6c6a4 !important; }
    .pitch-list li::before { color: #a24a1e !important; font-size: 12pt !important; top: 2pt !important; left: 2pt !important; }

    .pitch-offerings > li { padding: 8pt 0 8pt 28pt !important; page-break-inside: avoid; border-bottom: 1px solid #ece2cf !important; }
    .pitch-offerings > li::before { color: #a24a1e !important; font-size: 14pt !important; top: 9pt !important; }
    .pitch-offerings h3 { font-size: 13pt !important; margin: 0 0 2pt !important; }
    .pitch-offerings__sub { font-size: 8pt !important; margin: 0 0 4pt !important; color: #6b6358 !important; }

    .pitch-block--cta {
        background: #f4ede0 !important;
        border: 1px solid #c68f2b !important;
        padding: 10pt !important;
        page-break-inside: avoid;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
    .pitch-cta-row .btn { display: inline-block; font-size: 9pt !important; padding: 4pt 8pt !important; }

    .pitch-colophon { margin: 24pt auto 0 !important; }
    .pitch-colophon__sig { font-size: 9.5pt !important; }

    /* Documents index — collapse to a list of links */
    .documents-item {
        page-break-inside: avoid;
        background: #f9f3e6 !important;
        border-left: 3pt solid #a24a1e !important;
        padding: 8pt !important;
        margin-bottom: 8pt !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
    .documents-item__title { font-size: 12pt !important; }
    .documents-item__blurb { font-size: 10pt !important; }
    .documents-item__actions .btn { font-size: 8pt !important; padding: 3pt 6pt !important; }

    /* Show links so the reader can transcribe them */
    a[href]:not(.btn)::after {
        content: " (" attr(href) ")";
        font-size: 8pt;
        color: #6b6358;
        word-break: break-all;
    }
    a[href^="#"]::after, a[href^="javascript:"]::after { content: ""; }
}
