/* ============================================================
   White Robe Vision — shared stylesheet
   Used by all pages outside the homepage's bespoke layout.
   ============================================================ */

:root {
    --bg:           #faf7f0;
    --bg-warm:      #f3ecd9;
    --bg-deep:      #1a1814;
    --bg-deep-alt:  #221f19;
    --ink:          #1f1d18;
    --ink-soft:     #2c2922;
    --muted:        #6a655a;
    --muted-soft:   #8b8478;
    --rule:         #d8d1bf;
    --rule-deep:    #3a352a;
    --gold:         #b08949;
    --gold-bright:  #d4a85f;
    --gold-soft:    #e9d9b3;
    --paper:        #fffdf6;
    --white:        #ffffff;
    --error:        #a23a2a;
    --success:      #4e6b3a;

    --serif-display: 'Cormorant Garamond', 'Iowan Old Style', 'Palatino Linotype', Georgia, serif;
    --serif-body:    'Source Serif 4', 'Source Serif Pro', 'Iowan Old Style', Georgia, serif;
    --sans:          'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

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

html { scroll-behavior: smooth; }
body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: var(--serif-body);
    font-size: 17px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
a:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
::selection { background: var(--gold-soft); color: var(--ink); }

.wrap { width: 100%; max-width: 76rem; margin: 0 auto; padding: 0 1.5rem; }
.measure { max-width: 38rem; margin: 0 auto; }
.measure-wide { max-width: 56rem; margin: 0 auto; }

h1, h2, h3, h4, h5 {
    font-family: var(--serif-display);
    font-weight: 500;
    letter-spacing: -0.005em;
    margin: 0;
    color: var(--ink);
}
h1 { font-size: clamp(2.2rem, 4.5vw, 3.5rem); line-height: 1.08; }
h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); line-height: 1.15; }
h3 { font-size: 1.35rem; line-height: 1.25; }

.eyebrow {
    font-family: var(--sans);
    font-size: 0.72rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.22em;
    color: var(--gold);
    margin: 0 0 1.25rem;
}
.eyebrow .dot {
    display: inline-block;
    width: 4px; height: 4px;
    background: var(--gold);
    border-radius: 50%;
    vertical-align: 3px;
    margin: 0 0.75em;
}
.rule-gold {
    width: 56px; height: 1px;
    background: var(--gold);
    border: 0; margin: 1.25rem 0;
}

/* ----------------- Top nav — floats over dark page-head ----------------- */
header.site-nav {
    position: absolute;
    top: 0; left: 0; right: 0;
    z-index: 10;
    padding: 1.75rem 0;
    background: transparent;
    color: var(--paper);
}

/* Pages without a dark page-head (auth pages, single article view) keep
   the nav as a solid dark band so its text remains readable. */
body.no-dark-head header.site-nav {
    position: relative;
    background: var(--bg-deep);
}
header.site-nav .wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}
.brand {
    font-family: var(--serif-display);
    font-size: 1.05rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    color: var(--paper);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}
.brand .glyph { width: 22px; height: 22px; flex-shrink: 0; }

.brand, .menu-toggle { position: relative; z-index: 2; }

nav.primary {
    display: flex;
    gap: 2rem;
    font-family: var(--sans);
    font-size: 0.78rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.15em;
}
nav.primary a {
    color: var(--paper);
    text-decoration: none;
    opacity: 0.82;
    transition: opacity 0.25s, color 0.25s;
}
nav.primary a:hover,
nav.primary a.is-active {
    opacity: 1;
    color: var(--gold-bright);
}

/* Animated gold underline — appears on hover; active state is color-only */
nav.primary > a,
nav.primary > .has-submenu .submenu-toggle {
    position: relative;
}
nav.primary > a::after,
nav.primary > .has-submenu .submenu-toggle::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -6px;
    height: 1px;
    background: var(--gold-bright);
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}
nav.primary > a:hover::after,
nav.primary > .has-submenu:hover .submenu-toggle::before,
nav.primary > .has-submenu.open .submenu-toggle::before {
    transform: scaleX(1);
}

/* ---- Brand stack: logo + Safe Place pill underneath ---- */
header.site-nav .brand-col {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
    position: relative;
    z-index: 2;
}

/* ---- Safe Place Pledge pill (special designation, under the brand) ---- */
.nav-safe-place {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.28rem 0.7rem 0.26rem 0.55rem;
    border: 1px solid var(--gold-soft);
    border-radius: 999px;
    color: var(--gold);
    background: rgba(212, 168, 95, 0.08);
    text-decoration: none;
    font-family: var(--sans);
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.13em;
    opacity: 1;
    transition: background 0.25s, border-color 0.25s, color 0.25s, box-shadow 0.25s;
}
.nav-safe-place:hover,
.nav-safe-place.is-active {
    background: rgba(212, 168, 95, 0.18);
    color: var(--gold-bright);
    border-color: var(--gold);
    box-shadow: 0 0 0 1px rgba(212, 168, 95, 0.35);
}
.nav-safe-place .shield {
    width: 13px;
    height: 13px;
    flex-shrink: 0;
    stroke: currentColor;
}

/* Dropdown submenu */
.has-submenu {
    position: relative;
    display: inline-flex;
    align-items: center;
}
.submenu-toggle {
    background: transparent;
    border: 0;
    cursor: pointer;
    font: inherit;
    color: var(--paper);
    padding: 0;
    opacity: 0.82;
    text-transform: inherit;
    letter-spacing: inherit;
    transition: opacity 0.25s, color 0.25s;
}
.submenu-toggle:hover,
.submenu-toggle:focus-visible,
.has-submenu.open .submenu-toggle,
.has-submenu.is-active .submenu-toggle {
    opacity: 1;
    color: var(--gold-bright);
}
.submenu-toggle::after {
    content: " \25BE";
    font-size: 0.7em;
    margin-left: 0.4em;
    opacity: 0.7;
    transition: transform 0.3s ease;
    display: inline-block;
}
.has-submenu:hover .submenu-toggle::after,
.has-submenu.open .submenu-toggle::after {
    transform: rotate(180deg);
}
.submenu {
    position: absolute;
    top: calc(100% + 4px);
    left: 50%;
    transform: translateX(-50%) translateY(8px);
    background: var(--bg-deep);
    border: 1px solid rgba(176, 137, 73, 0.20);
    padding: 0.6rem 0;
    min-width: 14rem;
    border-radius: 3px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
    z-index: 50;
    box-shadow:
        0 22px 50px -14px rgba(0, 0, 0, 0.55),
        0 0 0 1px rgba(176, 137, 73, 0.05);
}
.submenu a {
    display: block;
    padding: 0.7rem 1.5rem;
    text-transform: none;
    letter-spacing: 0.02em;
    font-size: 0.92rem;
    font-weight: 400;
    opacity: 0.78;
    color: var(--paper);
    text-decoration: none;
    transition: opacity 0.15s, color 0.15s, background 0.15s;
}
.submenu a:hover,
.submenu a.is-active {
    opacity: 1;
    color: var(--gold-bright);
    background: rgba(176, 137, 73, 0.08);
}
.has-submenu:hover .submenu,
.has-submenu:focus-within .submenu,
.has-submenu.open .submenu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

/* Mobile overlay — show submenu inline as a labeled group */
@media (max-width: 760px) {
    .has-submenu {
        display: block;
        text-align: center;
        margin: 0.5rem 0;
    }
    .submenu-toggle {
        font-size: 0.7rem;
        text-transform: uppercase;
        letter-spacing: 0.22em;
        color: var(--gold);
        opacity: 1;
        cursor: default;
        margin-bottom: 0.5rem;
        pointer-events: none;
    }
    .submenu-toggle::after { display: none; }
    .submenu {
        position: static;
        transform: none !important;
        background: transparent;
        border: 0;
        box-shadow: none;
        padding: 0;
        opacity: 1 !important;
        visibility: visible !important;
        display: flex;
        flex-direction: column;
        gap: 0.65rem;
        min-width: 0;
    }
    .submenu a {
        padding: 0.25rem 0;
        font-size: 1rem;
        opacity: 0.9;
    }
}

.menu-toggle {
    display: none;
    background: transparent; border: 0; cursor: pointer; padding: 0;
    width: 44px; height: 44px; flex-direction: column;
    align-items: center; justify-content: center;
    color: var(--paper);
}
.menu-toggle .bar {
    display: block;
    width: 22px; height: 1.5px;
    background: currentColor;
    margin: 3.5px 0;
    transition: transform 0.3s ease, opacity 0.2s ease;
}
.menu-toggle[aria-expanded="true"] .bar:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .bar:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] .bar:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

@media (max-width: 760px) {
    header.site-nav,
    body.no-dark-head header.site-nav {
        position: fixed;
        padding: 1.1rem 0;
        background: transparent;
        transition: background 0.3s ease;
    }
    header.site-nav.scrolled,
    body.no-dark-head header.site-nav {
        background: rgba(20, 18, 14, 0.88);
        -webkit-backdrop-filter: blur(10px);
        backdrop-filter: blur(10px);
    }
    .menu-toggle { display: inline-flex; }
    nav.primary {
        position: fixed; inset: 0; z-index: 1;
        background: var(--bg-deep);
        flex-direction: column;
        justify-content: center; align-items: center;
        gap: 2.25rem;
        font-size: 1rem;
        padding: 4rem 1.5rem;
        opacity: 0; visibility: hidden;
        transform: translateY(-6px);
        transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
    }
    nav.primary.open {
        opacity: 1; visibility: visible; transform: translateY(0);
    }
    nav.primary a { opacity: 1; padding: 0.4rem 0; }
    body.menu-open { overflow: hidden; }
}

/* ----------------- Page header band (under nav, dark to cream transition) ----------------- */
section.page-head {
    background: var(--bg-deep);
    color: var(--paper);
    padding: 6rem 0 5rem;
    position: relative;
    overflow: hidden;
}
section.page-head::before {
    content: "";
    position: absolute;
    top: -10%; left: 50%;
    transform: translateX(-50%);
    width: 70vw; max-width: 700px;
    height: 70vw; max-height: 700px;
    background: radial-gradient(circle at center, rgba(212, 168, 95, 0.18) 0%, rgba(212, 168, 95, 0.04) 35%, transparent 65%);
    filter: blur(30px);
    pointer-events: none;
}
section.page-head .wrap { position: relative; z-index: 1; text-align: center; }
section.page-head .eyebrow { color: var(--gold-bright); }
section.page-head h1 {
    color: var(--paper);
    font-weight: 400;
    margin-bottom: 1rem;
}
section.page-head h1 em { color: var(--gold-bright); font-style: italic; font-weight: 400; }
section.page-head p.lede {
    color: rgba(255, 253, 246, 0.78);
    max-width: 38rem;
    margin: 0 auto;
    font-size: 1.1rem;
    line-height: 1.7;
    font-weight: 300;
}

/* ----------------- Section / article ----------------- */
section.section { padding: 5rem 0; }
section.section + section.section { padding-top: 2rem; }
section.section.alt { background: var(--bg-warm); }

/* ----------------- Forms ----------------- */
form.form-card {
    background: var(--paper);
    border: 1px solid var(--rule);
    border-radius: 3px;
    padding: 2.5rem;
    max-width: 28rem;
    margin: 0 auto;
}
form.form-card.wide { max-width: 38rem; }

.form-row { margin-bottom: 1.25rem; }
.form-row.inline { display: flex; gap: 1rem; align-items: center; }

label {
    display: block;
    font-family: var(--sans);
    font-size: 0.74rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--muted);
    margin-bottom: 0.4rem;
}
.help {
    font-family: var(--serif-body);
    font-style: italic;
    font-size: 0.9rem;
    color: var(--muted);
    margin-top: 0.4rem;
}

input[type="text"], input[type="email"], input[type="password"],
input[type="url"], input[type="number"], select, textarea {
    width: 100%;
    font-family: var(--serif-body);
    font-size: 1rem;
    color: var(--ink);
    background: var(--white);
    border: 1px solid var(--rule);
    border-radius: 2px;
    padding: 0.75rem 0.9rem;
    transition: border-color 0.15s, box-shadow 0.15s;
}
input:focus, select:focus, textarea:focus {
    outline: 0;
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(176, 137, 73, 0.18);
}
textarea { min-height: 6rem; resize: vertical; }

.checkbox-row { display: flex; gap: 0.65rem; align-items: flex-start; }
.checkbox-row input[type="checkbox"] {
    margin-top: 0.25rem;
    accent-color: var(--gold);
    width: 18px; height: 18px;
}
.checkbox-row label {
    text-transform: none; letter-spacing: 0;
    font-family: var(--serif-body); font-size: 1rem;
    color: var(--ink); margin: 0;
}

.btn {
    display: inline-block;
    font-family: var(--sans);
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--paper);
    background: var(--gold);
    padding: 0.95rem 1.85rem;
    border-radius: 2px;
    text-decoration: none;
    border: 1px solid var(--gold);
    cursor: pointer;
    transition: background 0.2s, color 0.2s, transform 0.15s;
}
.btn:hover { background: var(--ink); border-color: var(--ink); transform: translateY(-1px); }
.btn.btn-block { display: block; width: 100%; }
.btn.btn-ghost { background: transparent; color: var(--gold); }
.btn.btn-ghost:hover { background: var(--gold); color: var(--paper); }
.btn.btn-danger { background: var(--error); border-color: var(--error); }
.btn.btn-quiet {
    background: transparent; color: var(--muted); border-color: var(--rule);
    font-size: 0.72rem; padding: 0.5rem 1rem; letter-spacing: 0.12em;
}
.btn.btn-quiet:hover { color: var(--ink); border-color: var(--ink); background: transparent; transform: none; }

/* ----------------- Alerts ----------------- */
.alert {
    padding: 1rem 1.2rem;
    border-radius: 2px;
    border-left: 3px solid var(--gold);
    background: var(--bg-warm);
    margin-bottom: 1.5rem;
    color: var(--ink);
    font-size: 0.95rem;
}
.alert.alert-error   { border-color: var(--error);   background: #f3e8e5; }
.alert.alert-success { border-color: var(--success); background: #ebefdf; }

/* ----------------- Footer ----------------- */
footer.site-footer {
    background: #14120e;
    color: rgba(255, 253, 246, 0.6);
    padding: 4rem 0 3rem;
    font-family: var(--serif-body);
    font-size: 0.92rem;
}
footer .footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}
footer .brand-block {
    font-family: var(--serif-display);
    font-size: 1.4rem; color: var(--paper);
    margin-bottom: 0.75rem;
}
footer .brand-block .mark { color: var(--gold-bright); font-style: italic; }
footer p { margin: 0 0 0.75rem; line-height: 1.65; }
footer h5 {
    font-family: var(--sans);
    font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.18em;
    color: var(--gold-bright); margin: 0 0 1rem; font-weight: 600;
}
footer ul { list-style: none; padding: 0; margin: 0; }
footer ul li { margin-bottom: 0.55rem; }
footer ul li a {
    color: rgba(255, 253, 246, 0.7); text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s, color 0.2s;
}
footer ul li a:hover { color: var(--paper); border-bottom-color: var(--gold); }
.footer-fineprint {
    border-top: 1px solid var(--rule-deep);
    padding-top: 2rem;
    font-size: 0.78rem;
    color: rgba(255, 253, 246, 0.45);
}
@media (max-width: 760px) {
    footer .footer-grid { grid-template-columns: 1fr; gap: 2.5rem; }
}

/* ============================================================
   Donor wall
   ============================================================ */
.tier-section { margin-bottom: 4rem; }
.tier-heading {
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--rule);
}
.tier-heading h2 {
    font-style: italic;
    font-weight: 400;
    margin: 0 0 0.4rem;
}
.tier-heading .tier-tag {
    font-family: var(--sans);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.22em;
    color: var(--gold);
}
.tier-heading p {
    color: var(--muted);
    font-style: italic;
    margin: 0.5rem 0 0;
    font-size: 0.95rem;
}

.donor-grid {
    display: grid;
    gap: 1.25rem;
}
.donor-grid.founding   { grid-template-columns: 1fr; }
.donor-grid.witness    { grid-template-columns: repeat(2, 1fr); }
.donor-grid.sojourner  { grid-template-columns: repeat(3, 1fr); }
.donor-grid.companion  { grid-template-columns: repeat(4, 1fr); }
.donor-grid.friend     { grid-template-columns: repeat(5, 1fr); }

.donor {
    background: var(--paper);
    border: 1px solid var(--rule);
    padding: 1.4rem 1.4rem 1.25rem;
    border-radius: 2px;
    text-align: center;
    min-height: 100px;
    display: flex; flex-direction: column; justify-content: center;
    transition: transform 0.2s, box-shadow 0.2s;
}
.donor:hover { transform: translateY(-2px); box-shadow: 0 8px 22px -10px rgba(31, 29, 24, 0.18); }
.donor .name {
    font-family: var(--serif-display);
    font-size: 1.25rem;
    color: var(--ink);
    line-height: 1.2;
}
.donor .link {
    margin-top: 0.5rem;
    font-family: var(--sans);
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--gold);
    text-decoration: none;
    border-bottom: 1px solid transparent;
}
.donor .link:hover { border-bottom-color: var(--gold); color: var(--ink); }

.donor-grid.founding .donor {
    padding: 2.25rem;
    border: 1px solid var(--gold);
    background: linear-gradient(180deg, var(--paper) 0%, #fbf3df 100%);
}
.donor-grid.founding .donor .name  { font-size: 2.1rem; font-style: italic; color: var(--gold); }
.donor-grid.witness  .donor .name  { font-size: 1.6rem; }
.donor-grid.sojourner .donor .name { font-size: 1.35rem; }
.donor-grid.companion .donor .name { font-size: 1.15rem; }
.donor-grid.friend    .donor       { padding: 0.9rem; min-height: 70px; }
.donor-grid.friend    .donor .name { font-size: 1rem; }

.donor.anonymous .name {
    font-style: italic;
    color: var(--muted-soft);
}

@media (max-width: 900px) {
    .donor-grid.witness, .donor-grid.sojourner { grid-template-columns: repeat(2, 1fr); }
    .donor-grid.companion, .donor-grid.friend  { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 540px) {
    .donor-grid.witness, .donor-grid.sojourner,
    .donor-grid.companion, .donor-grid.friend { grid-template-columns: repeat(2, 1fr); }
    .donor-grid.founding .donor .name { font-size: 1.6rem; }
}

.anonymous-count {
    text-align: center;
    margin-top: 2rem;
    font-style: italic;
    color: var(--muted);
}

/* ============================================================
   Goals
   ============================================================ */
.goal {
    background: var(--paper);
    border: 1px solid var(--rule);
    border-radius: 3px;
    padding: 2.25rem;
    margin-bottom: 1.5rem;
}
.goal.primary {
    border: 1px solid var(--gold);
    background: linear-gradient(180deg, var(--paper) 0%, #fbf3df 100%);
    padding: 3rem;
}
.goal-head {
    display: flex; justify-content: space-between; align-items: flex-start; gap: 1.5rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}
.goal-title h3 {
    font-family: var(--serif-display);
    font-size: 1.7rem; font-weight: 500;
    margin: 0 0 0.3rem;
}
.goal.primary .goal-title h3 { font-size: 2.4rem; font-style: italic; color: var(--gold); }
.goal-title .tag {
    font-family: var(--sans);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--gold);
    margin-bottom: 0.4rem;
}
.goal-amount {
    font-family: var(--serif-display);
    font-size: 1.1rem;
    color: var(--muted);
    text-align: right;
    min-width: 9rem;
}
.goal-amount .big {
    display: block;
    font-size: 1.7rem; color: var(--ink); font-weight: 500;
}
.goal.primary .goal-amount .big { color: var(--gold); }

.goal-summary {
    font-style: italic;
    color: var(--muted);
    font-size: 1rem;
    margin: 0 0 1rem;
}
.goal-desc { font-size: 1rem; line-height: 1.7; color: var(--ink-soft); }
.goal-desc p { margin: 0 0 1rem; }

.progress {
    margin: 1.25rem 0 1rem;
    background: var(--bg-warm);
    border-radius: 999px;
    height: 8px;
    overflow: hidden;
}
.progress .bar {
    height: 100%;
    background: linear-gradient(90deg, var(--gold) 0%, var(--gold-bright) 100%);
    transition: width 0.6s ease;
}
.goal.primary .progress { height: 12px; }
.progress-label {
    display: flex; justify-content: space-between;
    font-family: var(--sans);
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--muted);
}

/* ============================================================
   Account / dashboard
   ============================================================ */
.dashboard-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
}
.card {
    background: var(--paper);
    border: 1px solid var(--rule);
    border-radius: 3px;
    padding: 2rem;
}
.card h3 {
    font-family: var(--serif-display);
    font-size: 1.4rem;
    margin: 0 0 0.5rem;
}
.card .help { margin-bottom: 1.25rem; }
@media (max-width: 760px) {
    .dashboard-grid { grid-template-columns: 1fr; }
}

table.contributions {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
    font-size: 0.95rem;
}
table.contributions th, table.contributions td {
    text-align: left;
    padding: 0.85rem 0.9rem;
    border-bottom: 1px solid var(--rule);
}
table.contributions th {
    font-family: var(--sans);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--muted);
    font-weight: 600;
}
table.contributions tbody tr:last-child td { border-bottom: 0; }
table.contributions .status {
    font-family: var(--sans);
    font-size: 0.66rem;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    padding: 0.18rem 0.55rem;
    border-radius: 2px;
    display: inline-block;
}
.status.pending  { background: var(--bg-warm);     color: var(--gold); }
.status.approved { background: #ebefdf;            color: var(--success); }
.status.declined { background: #f3e8e5;            color: var(--error); }

/* ============================================================
   CTAs / tier-table on contribute page
   ============================================================ */
.tier-table {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0.75rem;
    margin: 2rem 0;
}
.tier-table .col {
    background: var(--paper);
    border: 1px solid var(--rule);
    padding: 1.2rem 1rem;
    border-radius: 2px;
    text-align: center;
}
.tier-table .col h4 {
    font-family: var(--serif-display);
    font-size: 1.1rem;
    color: var(--ink); font-weight: 500;
    margin: 0 0 0.4rem;
    font-style: italic;
}
.tier-table .col .range {
    font-family: var(--sans);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--gold);
}
@media (max-width: 720px) { .tier-table { grid-template-columns: repeat(2, 1fr); } }

/* ============================================================
   Auth pages
   ============================================================ */
.auth-page {
    min-height: 60vh;
    padding: 5rem 1rem;
}
.auth-page h1 { text-align: center; margin-bottom: 0.5rem; }
.auth-page p.lede {
    text-align: center; color: var(--muted);
    max-width: 28rem; margin: 0 auto 2.5rem;
    font-style: italic;
}
.auth-page .alt {
    text-align: center;
    margin-top: 1.5rem;
    color: var(--muted);
    font-size: 0.95rem;
}
.auth-page .alt a { color: var(--gold); text-decoration: none; border-bottom: 1px solid var(--gold-soft); }
.auth-page .alt a:hover { color: var(--ink); border-bottom-color: var(--ink); }

/* ============================================================
   Admin
   ============================================================ */
.admin-tabs {
    display: flex; gap: 0.5rem;
    border-bottom: 1px solid var(--rule);
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
}
.admin-tabs a {
    font-family: var(--sans);
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: var(--muted);
    text-decoration: none;
    padding: 0.85rem 1.25rem;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
}
.admin-tabs a.active { color: var(--gold); border-color: var(--gold); }
.admin-tabs a:hover { color: var(--ink); }

/* ============================================================
   References page
   ============================================================ */
.toc {
    background: var(--bg-warm);
    border: 1px solid var(--rule);
    border-radius: 4px;
    padding: 1.25rem 1.5rem;
    margin: 0 0 3rem;
}
.toc h2 {
    font-family: var(--sans);
    font-size: 0.78rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--muted);
    margin: 0 0 0.75rem;
}
.toc ol {
    margin: 0; padding-left: 1.2rem;
    column-count: 2; column-gap: 2rem;
}
.toc li { margin: 0.2rem 0; }
.toc a { color: var(--ink-soft); text-decoration: none; }
.toc a:hover { color: var(--gold); }
.refs-section { margin-bottom: 3.5rem; scroll-margin-top: 1rem; }
.refs-section h2 {
    font-size: 1.7rem;
    color: var(--gold);
    border-bottom: 1px solid var(--rule);
    padding-bottom: 0.5rem;
    margin: 0 0 1.5rem;
    font-style: italic;
    font-weight: 500;
}
article.ref {
    padding: 1rem 0 1.25rem;
    border-bottom: 1px dashed var(--rule);
}
article.ref:last-child { border-bottom: 0; }
.ref-title {
    font-family: var(--serif-display);
    font-size: 1.18rem;
    font-weight: 500;
    line-height: 1.3;
    margin: 0 0 0.4rem;
    color: var(--ink);
}
.ref-synopsis { margin: 0 0 0.5rem; color: var(--ink-soft); font-size: 1rem; }
.ref-links { margin: 0; font-size: 0.92rem; }
.ref-links a {
    color: var(--gold);
    text-decoration: none;
    margin-right: 0.65rem;
    border-bottom: 1px solid var(--gold-soft);
}
.ref-links a:hover { color: var(--ink); border-bottom-color: var(--ink); }

.badge {
    display: inline-block;
    font-family: var(--sans);
    font-size: 0.62rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 0.12rem 0.5rem;
    border-radius: 2px;
    vertical-align: middle;
    margin-left: 0.4rem;
    font-weight: 600;
}
.badge-type   { background: var(--bg-warm); color: var(--accent, var(--gold)); border: 1px solid var(--rule); }
.badge-amazon { background: #ff9900; color: #232f3e; }

@media (max-width: 600px) { .toc ol { column-count: 1; } }
