/* =========================================================================
   Pro Carp Community — the uplift layer

   Loaded last, after redesign.css, so it refines nine stylesheets without
   editing any of them. It is a light layer: air, paper, gold, and one deep
   green used sparingly to frame the page.

   Sections
     1. Tokens            lighter paper, a softer green, one shadow family
     2. Type              a fluid display scale and a comfortable measure
     3. Layout            container, rhythm, grids that reflow
     4. The page hero     light, airy, 44 pages at a stroke
     5. Surfaces          cards, panels, rules
     6. Header            deep green glass, gold hairline
     7. Buttons           sheen, press, focus
     8. Forms             fields that look like they belong
     9. Tables            warm zebra, sticky heads, scroll on phones
    10. The photo wall    portrait cards, scrim captions
    11. Small things      pills, empty states, scrollbars, focus rings
    12. Phones            one column, thumb-sized targets, safe areas
    13. Tablets           two columns where three do not fit
    14. Wide screens      the layout opens up, it does not stretch
    15. Motion, print
   ========================================================================= */

/* ---------------------------------------------------------------- 1. tokens */

:root {
    /* The greens are for ink and for framing, not for painting the page. */
    --forest: #0d1a12;
    --forest-2: #142219;
    --forest-3: #1d3124;

    /* Paper: warm, but light enough that a page of it never feels heavy. */
    --cream: #f7f3e9;
    --paper: #fffdf8;
    --paper-2: #faf6ec;
    --paper-3: #f1ebdb;

    --gold: #c9a86a;
    --gold-light: #e8d3a2;
    --gold-deep: #7a5c28;
    --gold-glow: rgba(201, 168, 106, .32);

    --ink: #12170f;
    --ink-soft: #333b31;
    --muted: #5a6455;
    --line: #e2dac7;
    --line-soft: rgba(18, 23, 16, .07);

    /* One shadow family, four weights. Nothing heavier than it needs to be. */
    --shadow-xs: 0 1px 2px rgba(15, 24, 16, .05);
    --shadow-sm: 0 2px 8px -2px rgba(15, 24, 16, .07), 0 1px 2px rgba(15, 24, 16, .04);
    --shadow-md: 0 12px 30px -18px rgba(15, 24, 16, .26), 0 2px 8px -3px rgba(15, 24, 16, .06);
    --shadow-lg: 0 34px 68px -40px rgba(15, 24, 16, .38), 0 10px 24px -16px rgba(15, 24, 16, .12);
    --shadow-gold: 0 20px 44px -26px rgba(201, 168, 106, .8);

    --radius: 8px;
    --radius-lg: 16px;
    --radius-xl: 24px;

    --ease: cubic-bezier(.22, .68, 0, 1);
    --ease-out: cubic-bezier(.16, 1, .3, 1);

    --gutter: clamp(18px, 4vw, 56px);
    --section-y: clamp(44px, 6.5vw, 92px);
}

/* ------------------------------------------------------------------ 2. type */

body {
    background:
        radial-gradient(1100px 520px at 88% -10%, rgba(201, 168, 106, .10), transparent 60%),
        radial-gradient(900px 480px at 0% 2%, rgba(130, 151, 127, .10), transparent 56%),
        var(--cream);
    background-attachment: fixed;
    color: var(--ink);
    font-size: 15.5px;
    line-height: 1.68;
    letter-spacing: -.002em;
}

::selection {
    background: rgba(201, 168, 106, .35);
    color: var(--forest);
}

h1,
h2,
h3,
.hero-title,
.page-title {
    font-family: var(--font-display);
    font-weight: 400;
    letter-spacing: .014em;
    line-height: .95;
    text-wrap: balance;
}

h1 {
    font-size: clamp(2.3rem, 5.4vw, 4.1rem);
}

h2 {
    font-size: clamp(1.55rem, 3vw, 2.3rem);
    line-height: 1;
}

h3 {
    font-size: clamp(1.1rem, 1.7vw, 1.35rem);
    line-height: 1.08;
    letter-spacing: .022em;
}

.section-kicker {
    color: var(--gold-deep);
    font-size: 11px;
    letter-spacing: .26em;
}

.section-kicker::before {
    width: 26px;
    background: linear-gradient(90deg, transparent, currentColor);
}

.section-kicker--light {
    color: var(--gold-light);
}

p {
    text-wrap: pretty;
}

/* --------------------------------------------------------------- 3. layout */

.container {
    width: min(100% - (var(--gutter) * 2), 1280px);
    margin-inline: auto;
}

.section {
    padding-block: var(--section-y);
}

/* A page that ends in a card should end with air, not with a border. */
.page > .container:last-child,
main > .container:last-child {
    padding-bottom: var(--section-y);
}

/* Cards inside a panel line up instead of drifting. */
.club-panel > .button-row,
.club-panel > .button-row:last-child {
    margin-top: 18px;
}

/* ----------------------------------------------------------- 4. page hero */

/* Forty-four pages open with this. Making it light is the whole difference
   between a site that reads as a dark brochure and one that reads as a club
   you can walk into. */
.club-head {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding: clamp(30px, 4.4vw, 56px) 0 clamp(26px, 3.6vw, 44px);
    border-bottom: 1px solid var(--line);
    background:
        radial-gradient(760px 320px at 82% 8%, rgba(201, 168, 106, .22), transparent 62%),
        radial-gradient(620px 300px at 6% 96%, rgba(130, 151, 127, .20), transparent 58%),
        linear-gradient(168deg, #fffdf8 0%, #faf5e9 58%, #f4eddd 100%);
    color: var(--ink);
    box-shadow: 0 1px 0 rgba(255, 255, 255, .9) inset;
}

/* A faint laid-paper texture: it keeps a large flat area from looking like a
   placeholder. */
.club-head::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    opacity: .5;
    background-image:
        repeating-linear-gradient(0deg, rgba(18, 23, 16, .022) 0 1px, transparent 1px 4px),
        repeating-linear-gradient(90deg, rgba(18, 23, 16, .018) 0 1px, transparent 1px 5px);
    pointer-events: none;
}

.club-head h1,
.club-head h1 em {
    color: var(--ink);
}

.club-head h1 em {
    font-style: normal;
    background: linear-gradient(96deg, var(--gold-deep) 4%, #8a6a2f 62%, #7d5f2a 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.club-head p,
.club-head .club-lede {
    color: var(--muted);
    max-width: 66ch;
}

.club-head .section-kicker,
.club-head .section-kicker--light {
    color: var(--gold-deep);
}

/* Buttons that were drawn for a dark hero, on a light one. */
.club-head .button--outline,
.club-head .button--ghost {
    border-color: rgba(18, 23, 16, .22);
    background: rgba(255, 255, 255, .7);
    color: var(--ink);
}

.club-head .button--outline:hover,
.club-head .button--ghost:hover {
    border-color: var(--gold);
    background: #fff;
    color: var(--ink);
}

/* The glow was a gold blob on near-black; on paper it is a warm bloom. */
.club-head-glow {
    top: -140px;
    right: -80px;
    width: 420px;
    height: 420px;
    opacity: .55;
    background: radial-gradient(circle, rgba(201, 168, 106, .38), transparent 66%);
    filter: blur(18px);
}

/* A hero that is only a heading and a line does not need the full height. */
.club-head--detail {
    padding: clamp(24px, 3.2vw, 40px) 0 clamp(22px, 3vw, 34px);
}

/* -------------------------------------------------------------- 5. surfaces */

.club-panel,
.panel,
.card,
.settings-card,
.board-panel,
.ticket,
.sponsor-card,
.advert-card,
.challenge-card,
.news-card,
.event-card,
.competition-card,
.library-card,
.venue-card,
.badge-card,
.update-card,
.helpdesk-card {
    position: relative;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background:
        linear-gradient(180deg, #fff 0%, rgba(255, 255, 255, 0) 90px),
        var(--paper);
    box-shadow: var(--shadow-sm), inset 0 1px 0 #fff;
}

.club-panel-head {
    align-items: flex-start;
    gap: 16px;
    padding-bottom: 15px;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--line-soft);
}

.club-panel-head h2,
.club-panel-head h3 {
    margin: 2px 0 0;
}

/* Alternate bands, so a long page has a rhythm instead of one long cream. */
.section--cream {
    background:
        radial-gradient(900px 380px at 50% -12%, rgba(255, 255, 255, .85), transparent 68%),
        transparent;
}

.section--paper,
.section--tint {
    background: linear-gradient(180deg, var(--paper-2), var(--paper-3));
    border-block: 1px solid var(--line);
}

/* The dark bands that are left: a deep green, not a black hole, and used for
   emphasis only — a closing note, a call to join. */
.section--forest,
.section--dark {
    background:
        radial-gradient(700px 340px at 86% 10%, rgba(201, 168, 106, .22), transparent 58%),
        radial-gradient(620px 320px at 4% 92%, rgba(130, 151, 127, .22), transparent 56%),
        linear-gradient(155deg, #101d14 0%, #16261b 55%, #1b2f21 100%);
    color: var(--paper);
}

.section--forest .section-kicker,
.section--dark .section-kicker {
    color: var(--gold-light);
}

.section--forest p,
.section--dark p {
    color: rgba(247, 243, 233, .82);
}

/* ---------------------------------------------------------------- 6. chrome */

.site-header {
    background: linear-gradient(180deg, rgba(13, 26, 18, .97), rgba(16, 30, 21, .93));
    border-bottom: 1px solid rgba(201, 168, 106, .26);
    box-shadow: 0 1px 0 rgba(255, 255, 255, .04), 0 20px 40px -36px rgba(0, 0, 0, .9);
}

.site-header.is-scrolled {
    background: linear-gradient(180deg, rgba(11, 22, 15, .99), rgba(14, 27, 19, .97));
    box-shadow: 0 1px 0 rgba(201, 168, 106, .18), 0 22px 44px -30px rgba(0, 0, 0, .75);
}

.header-inner {
    min-height: var(--header-h);
}

.nav-link[aria-current="page"],
.nav-link.is-active {
    position: relative;
    color: var(--gold-light);
}

.nav-link[aria-current="page"]::after,
.nav-link.is-active::after {
    content: "";
    position: absolute;
    inset: auto 8px -2px 8px;
    height: 2px;
    border-radius: 2px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.brand-name em {
    background: linear-gradient(96deg, var(--gold-light), var(--gold));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* --------------------------------------------------------------- 7. buttons */

.button {
    position: relative;
    overflow: hidden;
    min-height: 46px;
    border-radius: 999px;
    letter-spacing: .16em;
    transition:
        transform .35s var(--ease-out),
        box-shadow .35s var(--ease),
        background .3s ease,
        border-color .3s ease,
        color .3s ease;
}

.button::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(105deg, transparent 34%, rgba(255, 255, 255, .5) 48%, transparent 62%);
    transform: translateX(-130%);
    transition: transform .7s var(--ease-out);
    pointer-events: none;
}

.button--gold {
    background: linear-gradient(140deg, var(--gold-light) 0%, var(--gold) 48%, #b8933f 100%);
    border-color: rgba(255, 255, 255, .3);
    box-shadow: var(--shadow-gold), inset 0 1px 0 rgba(255, 255, 255, .6), inset 0 -2px 6px rgba(122, 92, 40, .28);
    color: #1b1405;
}

.button--gold:hover {
    background: linear-gradient(140deg, #f2e0b0 0%, var(--gold-light) 48%, var(--gold) 100%);
    box-shadow: 0 26px 56px -24px rgba(201, 168, 106, 1), inset 0 1px 0 rgba(255, 255, 255, .7);
}

.button--dark,
.button--primary {
    background: linear-gradient(150deg, var(--forest-3), var(--forest));
    border-color: rgba(201, 168, 106, .3);
    color: var(--paper);
    box-shadow: var(--shadow-md), inset 0 1px 0 rgba(255, 255, 255, .08);
}

.button--dark:hover,
.button--primary:hover {
    background: linear-gradient(150deg, #26432f, var(--forest-2));
    border-color: rgba(201, 168, 106, .55);
}

.button--ghost,
.button--outline {
    border-color: rgba(201, 168, 106, .5);
    background: rgba(255, 255, 255, .05);
    color: inherit;
}

.button--ghost:hover,
.button--outline:hover {
    border-color: var(--gold);
    background: rgba(201, 168, 106, .14);
    color: inherit;
}

.button--outline-dark {
    border-color: rgba(18, 23, 16, .28);
    background: rgba(255, 255, 255, .6);
    color: var(--ink);
}

.button--outline-dark:hover {
    background: var(--ink);
    border-color: var(--ink);
    color: var(--paper);
}

.button--danger {
    background: linear-gradient(150deg, #b04c2c, #8b3a20);
    border-color: rgba(155, 66, 38, .45);
    color: #fff6f2;
    box-shadow: 0 16px 34px -22px rgba(155, 66, 38, .85);
}

.button--danger:hover {
    background: linear-gradient(150deg, #c25634, #9b4226);
}

.button:active {
    transform: translateY(-1px) scale(.996);
}

.button--small {
    min-height: 38px;
    padding-inline: 18px;
}

/* ----------------------------------------------------------------- 8. forms */

.input,
select.input,
textarea.input,
.field input,
.field select,
.field textarea {
    border: 1px solid var(--line);
    border-radius: 12px;
    background: linear-gradient(180deg, #fff, var(--paper));
    box-shadow: inset 0 1px 2px rgba(15, 24, 16, .04);
    font-size: 15px;
    letter-spacing: 0;
    transition: border-color .22s ease, box-shadow .22s ease, background .22s ease;
}

.input:hover,
.field input:hover,
.field select:hover,
.field textarea:hover {
    border-color: #cec2a6;
}

.input:focus,
.input:focus-visible,
.field input:focus,
.field select:focus,
.field textarea:focus {
    outline: none;
    border-color: var(--gold);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(201, 168, 106, .2), inset 0 1px 2px rgba(15, 24, 16, .03);
}

select.input {
    appearance: none;
    -webkit-appearance: none;
    padding-right: 42px;
    background-image:
        linear-gradient(45deg, transparent 50%, var(--gold-deep) 50%),
        linear-gradient(135deg, var(--gold-deep) 50%, transparent 50%);
    background-position: calc(100% - 20px) calc(50% + 1px), calc(100% - 14px) calc(50% + 1px);
    background-size: 6px 6px, 6px 6px;
    background-repeat: no-repeat;
}

.input--file {
    padding: 11px 14px;
    border-style: dashed;
    border-color: #cec2a6;
    background: var(--paper-2);
    cursor: pointer;
}

.input--file::file-selector-button {
    margin-right: 14px;
    padding: 9px 18px;
    border: 0;
    border-radius: 999px;
    background: linear-gradient(140deg, var(--gold-light), var(--gold));
    color: #1b1405;
    font: inherit;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .16em;
    text-transform: uppercase;
    cursor: pointer;
    transition: filter .22s ease;
}

.input--file::file-selector-button:hover {
    filter: brightness(1.05);
}

.field-hint {
    color: var(--muted);
    font-size: 12.5px;
    line-height: 1.55;
}

/* ---------------------------------------------------------------- 9. tables */

.table-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: var(--radius);
}

.board-table,
.table,
.advert-table,
.helpdesk-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 14px;
}

.board-table thead th,
.table thead th,
.advert-table thead th,
.helpdesk-table thead th {
    position: sticky;
    top: 0;
    z-index: 1;
    padding: 11px 14px;
    border-bottom: 1px solid var(--line);
    background: linear-gradient(180deg, var(--paper-2), var(--paper));
    color: var(--muted);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .18em;
    text-align: left;
    text-transform: uppercase;
    white-space: nowrap;
}

.board-table tbody td,
.table tbody td,
.advert-table tbody td,
.helpdesk-table tbody td {
    padding: 12px 14px;
    border-bottom: 1px solid var(--line-soft);
    vertical-align: middle;
}

.board-table tbody tr:nth-child(even),
.table tbody tr:nth-child(even) {
    background: rgba(201, 168, 106, .055);
}

.board-table tbody tr:hover,
.table tbody tr:hover,
.advert-table tbody tr:hover {
    background: rgba(201, 168, 106, .12);
}

.board-table tbody tr:last-child td,
.table tbody tr:last-child td {
    border-bottom: 0;
}

/* ------------------------------------------------------------ 10. photo wall */

.gallery-grid {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: clamp(14px, 1.8vw, 22px);
}

.gallery-card {
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: var(--paper);
    box-shadow: var(--shadow-sm);
    transition: transform .5s var(--ease-out), box-shadow .5s var(--ease), border-color .35s ease;
}

.gallery-card-photo {
    position: relative;
    aspect-ratio: 4 / 5;
    overflow: hidden;
    background: linear-gradient(150deg, #e9e2d0, #f6f1e4);
}

.gallery-card-photo::after {
    content: "";
    position: absolute;
    inset: auto 0 0 0;
    height: 42%;
    background: linear-gradient(180deg, transparent, rgba(10, 18, 12, .5));
    opacity: 0;
    transition: opacity .4s ease;
    pointer-events: none;
}

.gallery-card-body {
    padding: 14px 15px 15px;
    border-top: 1px solid var(--line-soft);
}

.gallery-card-caption {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    overflow: hidden;
    font-size: 13.5px;
    line-height: 1.5;
}

.gallery-like-btn {
    padding: 5px 12px 5px 9px;
    border: 1px solid transparent;
    border-radius: 999px;
    transition: background .22s ease, color .22s ease, border-color .22s ease;
}

.gallery-like-btn.is-on {
    border-color: rgba(201, 168, 106, .55);
    background: rgba(201, 168, 106, .18);
    color: var(--gold-deep);
}

.gallery-photo img {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

.gallery-tabs {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--paper);
    box-shadow: var(--shadow-xs);
}

.gallery-tab.is-on {
    background: linear-gradient(140deg, var(--forest-3), var(--forest));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08);
}

.gallery-comment {
    padding: 2px 0;
    border-radius: var(--radius-lg);
    background: linear-gradient(180deg, rgba(255, 255, 255, .65), transparent);
}

/* --------------------------------------------------------- 11. small things */

.seller-badge,
.advert-pill,
.status-pill,
.badge-pill,
.chip {
    border: 1px solid rgba(18, 23, 16, .1);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .75);
    letter-spacing: .1em;
}

.seller-badge--yes,
.advert-pill.is-live {
    border-color: rgba(201, 168, 106, .6);
    background: linear-gradient(150deg, #f8ecc9, #e8d3a2);
    color: #4a3410;
}

.seller-badge--wait,
.advert-pill.is-pending {
    border-color: rgba(155, 66, 38, .3);
    background: linear-gradient(150deg, #f9e7de, #f1d5c6);
    color: #6d2c15;
}

.club-empty,
.empty-state,
.no-results {
    padding: 30px 22px;
    border: 1px dashed #d3c8ae;
    border-radius: var(--radius-lg);
    background:
        repeating-linear-gradient(135deg, rgba(201, 168, 106, .05) 0 10px, transparent 10px 20px),
        rgba(255, 255, 255, .55);
    color: var(--muted);
    text-align: center;
}

.mono,
.tabular {
    font-variant-numeric: tabular-nums;
}

* {
    scrollbar-width: thin;
    scrollbar-color: #cdc1a6 transparent;
}

::-webkit-scrollbar {
    width: 11px;
    height: 11px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    border: 3px solid transparent;
    border-radius: 999px;
    background: #cdc1a6;
    background-clip: content-box;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--gold-deep);
    background-clip: content-box;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible,
[tabindex]:focus-visible {
    outline: 2px solid var(--gold-deep);
    outline-offset: 3px;
    border-radius: 5px;
}

/* ---------------------------------------------------------------- 12. phone */

@media (max-width: 640px) {
    :root {
        --gutter: 16px;
        --section-y: 38px;
        --header-h: 60px;
    }

    body {
        font-size: 15px;
        line-height: 1.62;
    }

    h1 {
        font-size: clamp(2rem, 9.4vw, 2.9rem);
    }

    h2 {
        font-size: clamp(1.4rem, 6.6vw, 1.9rem);
    }

    .club-head {
        padding: 24px 0 22px;
    }

    .club-head-inner {
        gap: 10px;
    }

    .club-head-glow {
        width: 260px;
        height: 260px;
        top: -90px;
        right: -70px;
    }

    /* Everything that was two columns is one, and the gap does the work. */
    .detail-layout,
    .club-layout,
    .chat-layout,
    .logger-layout,
    .footer-top {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .club-panel {
        border-radius: 14px;
        padding: 18px 16px;
    }

    .club-panel-head {
        flex-wrap: wrap;
        gap: 10px;
    }

    .button {
        min-height: 46px;
        padding-inline: 20px;
        font-size: 11px;
    }

    .button-row {
        gap: 8px;
    }

    .button-row .button {
        flex: 1 1 auto;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .gallery-card-photo {
        aspect-ratio: 4 / 3;
    }

    /* A table on a phone scrolls; it does not shrink to a rumour. */
    .board-table,
    .table,
    .advert-table,
    .helpdesk-table {
        min-width: 560px;
    }

    .input,
    select.input,
    textarea.input,
    .field input,
    .field select,
    .field textarea {
        font-size: 16px; /* stops iOS zooming the page on focus */
    }

    .footer-social {
        padding-bottom: calc(18px + env(safe-area-inset-bottom));
    }

    /* Thumb room at the end of a long page. */
    body {
        padding-bottom: env(safe-area-inset-bottom);
    }
}

/* --------------------------------------------------------------- 13. tablet */

@media (min-width: 641px) and (max-width: 1024px) {
    :root {
        --gutter: clamp(20px, 4vw, 36px);
        --section-y: clamp(44px, 6vw, 68px);
    }

    .detail-layout {
        grid-template-columns: minmax(0, 1fr) 300px;
        gap: 24px;
    }

    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    }

    .club-head h1 {
        font-size: clamp(2.2rem, 5.6vw, 3.2rem);
    }

    /* A rail that no longer fits moves under the page rather than squeezing. */
    .club-layout {
        grid-template-columns: 1fr;
    }

    .footer-top {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
}

@media (max-width: 1080px) {
    .detail-layout {
        grid-template-columns: 1fr;
    }

    .detail-rail {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
        gap: 16px;
        align-items: start;
    }

    .detail-rail > * {
        margin: 0;
    }
}

/* ----------------------------------------------------------- 14. wide screens */

@media (min-width: 1500px) {
    .container {
        width: min(100% - (var(--gutter) * 2), 1380px);
    }

    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(268px, 1fr));
    }
}

/* --------------------------------------------------------- 15. motion, print */

@media (hover: hover) and (pointer: fine) {
    .club-panel:hover,
    .card:hover,
    .sponsor-card:hover,
    .news-card:hover,
    .event-card:hover {
        border-color: #d3c7ab;
        box-shadow: var(--shadow-md), inset 0 1px 0 #fff;
    }

    .gallery-card:hover {
        transform: translateY(-4px);
        border-color: #d3c7ab;
        box-shadow: var(--shadow-lg);
    }

    .gallery-card:hover .gallery-card-photo::after {
        opacity: 1;
    }

    .gallery-card:hover .gallery-card-photo img {
        transform: scale(1.045);
    }

    .button:hover::after {
        transform: translateX(130%);
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: .001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .001ms !important;
        scroll-behavior: auto !important;
    }

    .button:hover,
    .gallery-card:hover {
        transform: none;
    }

    .button::after {
        display: none;
    }
}

@media print {
    body {
        background: #fff;
        color: #000;
        font-size: 11pt;
    }

    .site-header,
    .sticky-header,
    .app-sidebar,
    .sidebar-close,
    .club-head-glow,
    .gallery-form,
    .button,
    .staff-cp,
    .footer-social {
        display: none !important;
    }

    .club-panel,
    .card,
    .gallery-card {
        border: 1px solid #bbb;
        box-shadow: none;
        break-inside: avoid;
    }

    a[href^="http"]::after {
        content: " (" attr(href) ")";
        font-size: 9pt;
        color: #444;
    }
}
/* The hero pills were drawn for a dark ground; on paper they need ink. */
.club-head .price-pill,
.club-head .status-pill {
    border-color: rgba(18, 23, 16, .16);
    background: rgba(255, 255, 255, .75);
    color: var(--ink-soft);
    box-shadow: inset 0 1px 0 #fff;
}

.club-head .price-pill {
    border-color: rgba(201, 168, 106, .55);
    color: var(--gold-deep);
}

.club-head .status-pill--open,
.club-head .price-pill--free {
    color: #2f6b3c;
}

.club-head .club-head-badges .seller-badge,
.club-head .club-head-badges .advert-pill {
    box-shadow: inset 0 1px 0 #fff;
}

/* Any pill or chip inside a hero that is not one of the above still has to be
   readable on light paper. */
.club-head .chip,
.club-head .badge-pill {
    border-color: rgba(18, 23, 16, .14);
    background: rgba(255, 255, 255, .7);
    color: var(--ink-soft);
}
/* ---------------------------------------------------------- the front page */

/* The home hero was a 690px near-black block: the first thing a visitor met was
   the darkest thing on the site. It is the same paper as every other page now,
   with the lake photograph used as a soft backdrop rather than a wall. */
.hero {
    background:
        radial-gradient(720px 340px at 84% 6%, rgba(201, 168, 106, .26), transparent 62%),
        linear-gradient(168deg, #fffdf8 0%, #faf5e9 56%, #f3ecdb 100%);
    color: var(--ink);
    border-bottom: 1px solid var(--line);
}

.hero-image {
    opacity: .34;
    mix-blend-mode: multiply;
    transform: none;
    -webkit-mask-image: linear-gradient(100deg, transparent 8%, rgba(0, 0, 0, .55) 46%, #000 78%);
    mask-image: linear-gradient(100deg, transparent 8%, rgba(0, 0, 0, .55) 46%, #000 78%);
}

.hero-vignette {
    background:
        linear-gradient(96deg, rgba(255, 253, 248, .94) 0%, rgba(255, 253, 248, .74) 42%, rgba(255, 253, 248, .18) 76%, rgba(255, 253, 248, .42) 100%),
        linear-gradient(0deg, #f4eddd 0%, transparent 26%);
}

.hero-inner {
    min-height: clamp(480px, 58vh, 620px);
    padding-top: clamp(46px, 6vw, 76px);
    padding-bottom: clamp(34px, 4vw, 52px);
}

.hero-eyebrow,
.hero-presence {
    color: var(--muted);
}

.hero-presence strong {
    color: var(--ink);
}

.eyebrow-rule {
    background: rgba(18, 23, 16, .22);
}

.hero h1 {
    color: var(--ink);
    font-size: clamp(2.4rem, 5.6vw, 4.4rem);
    line-height: .88;
}

.hero h1 em {
    background: linear-gradient(96deg, var(--gold-deep) 4%, #8a6a2f 60%, #7d5f2a 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.hero-lede {
    color: var(--muted);
    font-size: 15px;
    max-width: 54ch;
}

.hero-actions .button--outline,
.hero-actions .button--ghost {
    border-color: rgba(18, 23, 16, .24);
    background: rgba(255, 255, 255, .72);
    color: var(--ink);
}

.hero-actions .button--outline:hover,
.hero-actions .button--ghost:hover {
    border-color: var(--gold);
    background: #fff;
    color: var(--ink);
}

.hero-card {
    border: 1px solid var(--line);
    border-radius: 4px;
    box-shadow: var(--shadow-lg);
}

.hero-catch-image {
    background: linear-gradient(150deg, #e6e0cf, #d5cdb8);
}

.hero-stats {
    border-top: 1px solid var(--line);
}

.hero-stats strong {
    color: var(--gold-deep);
}

.hero-stats span {
    color: var(--muted);
}

.hero-stats-link {
    color: var(--ink);
}

.hero-stats-link:hover {
    color: var(--gold-deep);
}

/* Phone: the photograph is a texture, not a backdrop to read text on. */
@media (max-width: 900px) {
    .hero-image {
        opacity: .22;
        -webkit-mask-image: linear-gradient(180deg, transparent, #000 70%);
        mask-image: linear-gradient(180deg, transparent, #000 70%);
    }

    .hero-vignette {
        background:
            linear-gradient(180deg, rgba(255, 253, 248, .88) 0%, rgba(255, 253, 248, .82) 60%, #f4eddd 100%);
    }

    .hero-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 18px;
    }
}
/* =========================================================================
   The shell: dark green as an accent, not as the theme

   redesign.css declares a second, dark set of tokens on .app-main — --ink,
   --cream, --paper all near-black, --gold acid lime — and paints the rail, the
   top bar and the page behind them near-black too. uplift.css then patched the
   heroes light one rule at a time, which is why the site read as a dark theme
   with light patches: the front page hero was #060807 because
   ".home-page .hero" outranks ".hero".

   This section turns the shell light in one place and leaves the dark green
   where it earns its keep: buttons, the closing band on a page, the footer,
   chat bubbles, and the active item in the menu. The rest is paper.
   ========================================================================= */

:root {
    --bg: #f6f2e8;
    --surface: #fffdf8;
    --surface-2: #f8f4ea;
    --surface-3: #f0e9d9;

    --fg: #14180f;
    --fg-soft: #363d32;
    --muted-fg: #646c5c;

    /* Brass, not lime. The lime was the loudest thing in the design and it was
       only ever a highlight. */
    --accent: #a8853f;
    --accent-2: #c9a86a;
    /* Brass is mid-tone: paper on it is 2.7:1, ink is 6.6:1. Every use of this
       token is text sitting on --accent, so it has to be the dark one. */
    --accent-ink: #14180f;

    --line-2: rgba(20, 24, 15, .11);
    --line-2-strong: rgba(20, 24, 15, .2);
}

/* The page behind the app, and the app itself. */
html:has(.app-main),
body:has(.app-main) {
    background: var(--bg);
}

.app-main {
    color-scheme: light;

    --ink: #14180f;
    --ink-rgb: 20, 24, 15;
    --ink-soft: #363d32;
    --muted: #646c5c;

    --forest: #0b1a12;
    --forest-2: #10241a;
    --forest-3: #173024;

    --cream: #f6f2e8;
    --paper: #fffdf8;
    --paper-2: #f8f4ea;
    --paper-3: #f0e9d9;

    --gold: #b8934f;
    --gold-light: #e6d0a0;
    --gold-deep: #6f5323;

    --rust: #9b4226;
    --sage: #7d9079;

    --line: #e4dccb;
    --line-dark: rgba(255, 253, 248, .16);
    --white-line: rgba(20, 24, 15, .1);

    --shadow: 0 28px 70px -40px rgba(20, 24, 15, .34);
    --shadow-soft: 0 16px 40px -28px rgba(20, 24, 15, .24);

    background: var(--cream);
    color: var(--ink);
}

.app-main .muted,
.app-main .muted-note {
    color: var(--muted);
}

/* ------------------------------------------------------------- the rail */

/* The menu is paper with a hairline, not a black column. The dark green comes
   back on the item you are on, which is the one place a menu needs weight. */
.app-sidebar {
    background: var(--surface);
    border-right: 1px solid var(--line-2);
    color: var(--ink);
}

.sidebar-head {
    border-bottom: 1px solid var(--line-2);
    background: linear-gradient(180deg, #fffdf8, #faf6ec);
}

.sidebar-head .brand-name {
    color: var(--ink);
}

.sidebar-head .brand-name em {
    color: var(--gold-deep);
}

.sidebar-group {
    border-color: var(--line-2);
}

.sidebar-group-label {
    color: var(--muted-fg);
}

.sidebar-link {
    color: var(--fg-soft);
    border-radius: 8px;
}

.sidebar-link:hover {
    background: var(--surface-2);
    color: var(--fg);
}

.sidebar-link.is-active,
.sidebar-link[aria-current='page'] {
    background: linear-gradient(150deg, var(--forest-3), var(--forest));
    box-shadow: 0 6px 16px -12px rgba(11, 26, 18, .9);
    color: var(--paper);
}

.sidebar-link.is-active .sidebar-ico,
.sidebar-link[aria-current='page'] .sidebar-ico {
    color: var(--gold-light);
}

.sidebar-foot {
    border-top: 1px solid var(--line-2);
    color: var(--muted-fg);
}

/* The drawer's scrim is the one thing over the page that should be dark. */
.sidebar-scrim {
    background: rgba(11, 26, 18, .42);
}

/* ------------------------------------------------------------ the top bar */

.app-topbar {
    background: rgba(255, 253, 248, .9);
    border-bottom: 1px solid var(--line-2);
    color: var(--fg);
    backdrop-filter: blur(14px) saturate(1.05);
}

.app-topbar.is-scrolled {
    background: rgba(255, 253, 248, .97);
    box-shadow: 0 14px 30px -26px rgba(20, 24, 15, .4);
}

.topbar-kicker {
    color: var(--muted-fg);
    /* The club's name and the year are one line by design, and on a tablet they
       are a few pixels too long: the heading is 402px and the words need 416.
       Shorten them with an ellipsis rather than let them run into the rail. */
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
}

.topbar-title {
    color: var(--fg);
}

.topbar-icon {
    color: var(--fg-soft);
}

.topbar-icon:hover {
    background: var(--surface-2);
    color: var(--fg);
}

/* --------------------------------------------------------- the front page */

/* The one rule that kept the front page black while everything else went light. */
.home-page .hero {
    background:
        radial-gradient(760px 340px at 84% 4%, rgba(184, 147, 79, .18), transparent 62%),
        linear-gradient(168deg, #fffdf8 0%, #faf5e9 56%, #f3ecdb 100%);
    color: var(--ink);
}

.home-page .hero-eyebrow,
.home-page .hero-presence {
    color: var(--muted);
}

.home-page .hero-presence strong,
.home-page .hero-stats-link {
    color: var(--ink);
}

.home-page .eyebrow-rule {
    background: rgba(20, 24, 15, .2);
}

.home-page .hero-stats {
    border-top: 1px solid var(--line);
}

.home-page .hero-stats strong {
    color: var(--gold-deep);
}

.home-page .hero-stats span {
    color: var(--muted);
}

/* ------------------------------------------------- surfaces that stay dark */

/* These are dark on purpose: the closing band, the footer, the sign-in panel,
   chat and the small personal cards. Their backgrounds did not change, so their
   text has to be told to stay light — the tokens they read from are dark now. */
.legacy,
.cta-panel,
.site-footer,
.auth-visual,
.feature-card--chat,
.message-bubble.is-out,
.channel.is-active,
.rail-card--personal,
.rail-card--quote,
.gps-box,
.event-card-date {
    color: var(--paper);
}

.legacy p,
.cta-panel p,
.site-footer p,
.rail-card--personal p,
.rail-card--quote p {
    color: rgba(255, 253, 248, .76);
}

.rail-card--personal .text-link,
.rail-card--personal .rail-eyebrow,
.gps-box .rail-eyebrow,
.site-footer a {
    color: var(--gold-light);
}

.site-footer a:hover {
    color: #fffdf8;
}

/* A chip that sits on a photograph is dark glass whatever the theme is. */
.gps-chip,
.gps-chip--light {
    background: rgba(11, 26, 18, .74);
    color: #f7f3e8;
}

/* -------------------------------------------------------- small repairs */

/* The gold badge carries the deep pine, not the page colour. */
.crew-badge--bank-life {
    background: linear-gradient(150deg, #d9bb80, var(--gold));
    color: var(--forest);
}

.crew-badge--pro-carp {
    background: rgba(11, 26, 18, .82);
    color: #f7f3e8;
}

/* A dark button on a light page is a dark button. */
.button--dark {
    background: var(--forest);
    border-color: var(--forest);
    color: var(--paper);
}

.home-page .button--dark {
    background: var(--forest);
    border-color: var(--forest);
    color: var(--paper);
}
/* ---------------------------------------------- the .home-page specificity */

/* redesign.css carries a whole dark home theme under ".home-page", and two
   classes beat one: ".home-page .legacy" outranks ".legacy" whatever the file
   order. These are the same declarations, repeated with the same specificity as
   the rules they have to beat. */

.home-page .legacy,
.home-page .cta-panel,
.home-page .site-footer,
.home-page .feature-card--chat {
    color: var(--paper);
}

.home-page .legacy p,
.home-page .cta-panel p,
.home-page .site-footer p,
.home-page .feature-card--chat p {
    color: rgba(255, 253, 248, .76);
}

.home-page .legacy-quote p {
    color: var(--gold-light);
}

.home-page .site-footer a {
    color: var(--gold-light);
}

.home-page .site-footer a:hover {
    color: #fffdf8;
}

.home-page .cta-panel {
    border-color: rgba(184, 147, 79, .3);
}

.home-page .cta-stamp {
    border-color: rgba(230, 208, 160, .4);
    color: rgba(230, 208, 160, .5);
}

.home-page .gps-chip,
.home-page .gps-chip--light {
    background: rgba(11, 26, 18, .74);
    color: #f7f3e8;
}

.home-page .crew-badge {
    color: inherit;
}

.home-page .crew-badge--bank-life {
    background: linear-gradient(150deg, #d9bb80, var(--gold));
    color: var(--forest);
}

.home-page .crew-badge--pro-carp {
    background: rgba(11, 26, 18, .82);
    color: #f7f3e8;
}

/* The lime-tinted home accents, now brass. */
.home-page .live-badge {
    border-color: rgba(184, 147, 79, .45);
    color: var(--gold-deep);
}

.home-page .live-badge .live-dot {
    background: var(--gold);
}

.home-page .ticker {
    background: linear-gradient(90deg, #a8853f, var(--gold) 42%, #c9a86a 72%, #a8853f);
    color: #221a08;
}

.home-page .ticker-track span,
.home-page .ticker-track i {
    color: #221a08;
}

.home-page .button--gold {
    background: linear-gradient(150deg, #d9bb80 0%, var(--gold) 46%, #a8853f 100%);
    border-color: rgba(111, 83, 35, .3);
    color: #221a08;
}

.home-page .button--gold:hover {
    background: linear-gradient(150deg, #e6cd97 0%, #c9a86a 46%, var(--gold) 100%);
    border-color: rgba(111, 83, 35, .4);
}

.home-page .button--outline {
    border-color: rgba(20, 24, 15, .28);
    color: var(--ink);
}

.home-page .cta-actions .button--outline-dark {
    border-color: rgba(255, 253, 248, .38);
    color: var(--paper);
}

.home-page .cta-actions .button--outline-dark:hover {
    border-color: var(--gold-light);
    background: var(--gold-light);
    color: var(--forest);
}
/* --------------------------------------------------- the rail's foot */

/* The rail went light, and this strip at the bottom of it did not: it is the
   signed-in member's block and it was painted #070a09, so the one place a
   member looks to see who they are signed in as was a black bar under a paper
   menu. It is a slightly deeper paper now, which is what a footer inside a
   panel should be. */

.sidebar-foot {
    border-top: 1px solid var(--line-2);
    background: linear-gradient(180deg, #f8f3e7, #f2ebdb);
    color: var(--muted);
}

.sidebar-user {
    background: transparent;
}

.sidebar-user-copy strong,
.sidebar-user-name {
    color: var(--ink);
}

.sidebar-user-copy span,
.sidebar-user-role {
    color: var(--muted-fg);
}

/* The staff link in the menu keeps its brass, which reads on paper. */
.sidebar-link--staff .sidebar-ico {
    color: var(--gold-deep);
}

.sidebar-link--staff:hover {
    background: rgba(184, 147, 79, .12);
    color: var(--gold-deep);
}
/* --------------------------------------------------- 24. gold that can be read
   Gold on paper is 2.82:1: fine on a dark band, invisible as text on a light one.
   Everywhere the design painted small gold text on paper it now uses the deep
   brass (7.03:1). The bright gold stays a surface colour -- buttons, rules, the
   ring on a badge -- which is what it was ever good at. The dark bands are left
   alone on purpose: there it is 6.26:1 and it belongs.
   tools/contrast-audit.php holds this line, so a token that slips below AA fails
   the build instead of waiting for a member with tired eyes.
   --------------------------------------------------------------------------- */

.club-head h1 em,
.logger-stats strong,
.hero-stats-link:hover,
.header-signin:hover,
.header-icon:hover,
.nav-link.is-active,
.brand-name em,
.section-kicker,
.preview-kicker,
.preview-wordmark em,
.account-preview-crew,
.sponsor-links a:hover,
.event-month,
.donate-kind input:checked + .donate-kind-inner,
.reaction-button:hover,
.reaction-button.is-active,
.advert-count.is-on,
.game-chip:hover,
.chat-empty span,
.button--ghost:hover,
.button--outline:hover,
.user-dropdown a:hover .nav-ico,
.mobile-nav nav a.is-active .mobile-nav-ico,
.mobile-nav nav a:hover .mobile-nav-ico,
.news-lead h2 a:hover,
.changelog-item--feature,
.team-card--owner {
    color: var(--gold-deep);
}

/* A focus ring is the one thing that cannot be a 2.82:1 gold: it is the only
   signal a keyboard user has for where they are. */
.app-main :where(a, button, input, select, textarea, [tabindex]):focus-visible {
    outline-color: var(--gold-deep);
}

/* ------------------------------------------- 10. the bands that stayed dark */

/* The list above is most of them. These three are dark in this theme too and
   were missing: without them a page heading is ink on forest. */
.logger-head,
.chat-page-head,
.news-lead {
    color: var(--paper);
}

.logger-head .section-kicker,
.chat-page-head .section-kicker {
    color: var(--gold-light);
}

/* Two dark bands were missing from the list above: the app and profile heroes
   kept their forest background, so their heading was ink on forest. */
.app-hero,
.profile-head {
    color: var(--paper);
}

/* Every dark surface, for the kicker that sits on it. */
.legacy .section-kicker,
.cta-panel .section-kicker,
.site-footer .section-kicker,
.auth-visual .section-kicker,
.feature-card--chat .section-kicker,
.message-bubble.is-out .section-kicker,
.channel.is-active .section-kicker,
.rail-card--personal .section-kicker,
.rail-card--quote .section-kicker,
.gps-box .section-kicker,
.event-card-date .section-kicker,
.logger-head .section-kicker,
.chat-page-head .section-kicker,
.app-hero .section-kicker,
.profile-head .section-kicker {
    color: var(--gold-light);
}

/* Accent chips were given light text for the dark theme. On paper they need
   their ink back. */
.app-main .status-pill,
.app-main .status-pill--open,
.app-main .price-pill--free,
.app-main .improved-delta.is-up,
.app-main .weather-trend--rising,
.app-main .ticket-status--answered,
.app-main .donation-kind--gear,
.app-main .received-chip,
.role-chip--mod {
    color: #2f6b3a;
}

.app-main .ticket-status--waiting,
.role-chip--helpdesk {
    color: #5b3f8c;
}

.app-main .donation-kind--boat {
    color: #46578a;
}

.app-main .ticket-status--open {
    color: var(--gold-deep);
}

.app-main .form-alert--soft {
    color: var(--gold-deep);
}

.post-hidden-note,
.changelog-draft {
    color: #9b2f22;
}

.role-key {
    color: var(--ink-soft);
}

/* Gradient headings were cut from a gold that stops at 2.8:1 on paper. Both ends
   now clear AA for display text. */
.app-feature-num {
    color: var(--gold-deep);
}

.news-lead h2 a {
    color: var(--paper);
}

/* The call to join sits in the dark closing band: a white pill with paper text
   in it is 2.5:1. */
.home-page .cta-actions .button--outline-dark {
    background: rgba(255, 253, 248, .08);
    border-color: rgba(255, 253, 248, .45);
    color: var(--paper);
}

/* The chosen crew tile paints forest with paper text; the dark theme had turned
   the label to ink because both were dark. */
.app-main .crew-option input:checked + .crew-option-inner,
.app-main .crew-option input:checked + .crew-option-inner strong {
    color: var(--paper);
}

/* The settings preview body is forest; the dark theme had turned its text to ink
   because forest was ink then. */
.app-main .preview-body {
    color: var(--paper);
}

.preview-body .preview-kicker,
.preview-body .preview-brand-copy em,
.preview-body .preview-wordmark em {
    color: var(--gold-light);
}

/* The account card went light with the rest of the rail, so the colours written
   for a forest card had to come back down. */
.account-preview .section-kicker {
    color: var(--gold-deep);
}

.account-preview-handle {
    color: var(--muted);
}

.account-preview-bio {
    color: var(--ink-soft);
}

.crew-tag {
    color: var(--ink-soft);
}

/* Gold-deep on the footer's near-black is 2.5:1. */
.footer-kicker,
.site-footer .preview-kicker {
    color: var(--gold-light);
}

/* The logger's stat number sits in the forest band. */
.logger-head .logger-stats strong {
    color: var(--gold-light);
}

.chat-char-count {
    color: var(--muted);
}

/* A 40px icon button is a 40px target. On a phone it is 44, which is what a
   thumb aims at. The header has room for the four pixels. */
@media (pointer: coarse) {
    .topbar-icon {
        width: 44px;
        height: 44px;
    }

    .leaflet-control-zoom a {
        width: 34px;
        height: 34px;
        line-height: 32px;
    }
}

/* WCAG 2.5.8 asks for a 24px target, not 44. These are text controls that sit a
   couple of pixels under it, and two pixels of padding is all they need. */
.text-link {
    min-height: 24px;
    padding-block: 2px;
}

.text-button {
    min-height: 24px;
    padding: 4px 0;
}

.hero-stats-link {
    min-height: 24px;
    padding: 1px 0;
}

.footer-links nav a {
    min-height: 24px;
    padding-block: 3px;
}

/* The last of the small type and the last of the small targets. */
.market-category,
.app-badge small,
.app-badge-soon,
.messages-sidebar-head,
.app-feature-num,
.badge-earned,
.stat-card span {
    font-size: 11px;
}

.demo-fill {
    min-height: 24px;
}

.leaflet-control-attribution a {
    display: inline-block;
    padding-block: 5px;
}

/* The × that clears a flash message, and the × that removes a chat line, were
   13 and 20 pixels. Both are things a thumb has to hit. */
[data-dismiss-flash] {
    min-width: 24px;
    min-height: 24px;
    display: inline-grid;
    place-items: center;
}

.chat-message-mod button {
    width: 24px;
    height: 24px;
}

.notif-bell-dot {
    font-size: 11px;
}

/* The hint under a file field was the last thing under 11px. */
label small,
.field small,
.sell-panel label small {
    font-size: 11px;
}

/* The newsletter desk: how many went out, and how many the mail server refused. */
.failed-count {
    color: var(--rust);
    font-weight: 600;
}
