/* =========================================================
   Pro Carp Community — the club
   Competitions, socials, sponsors, giving and angler profiles
   ========================================================= */

/* ---------- Navigation dropdown ---------- */

.nav-group {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.nav-group-toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0;
    border: 0;
    background: transparent;
    color: rgba(243, 239, 227, .68);
    font-family: var(--font-body);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .14em;
    line-height: 1;
    text-transform: uppercase;
    cursor: pointer;
    transition: color .2s ease;
}

.nav-group-toggle svg {
    transition: transform .28s cubic-bezier(.2, .7, .2, 1);
}

.nav-group-toggle:hover,
.nav-group.is-active .nav-group-toggle,
.nav-group.is-open .nav-group-toggle {
    color: var(--paper);
}

.nav-group.is-open .nav-group-toggle svg {
    transform: rotate(180deg);
}

.nav-group.is-active .nav-group-toggle::after {
    content: '';
    position: absolute;
    right: 0;
    bottom: -9px;
    left: 0;
    height: 1px;
    background: var(--gold);
}

.nav-dropdown {
    position: absolute;
    top: calc(100% + 20px);
    left: 50%;
    z-index: 120;
    display: grid;
    width: 310px;
    padding: 10px;
    border: 1px solid rgba(240, 232, 213, .14);
    background: rgba(12, 21, 14, .98);
    box-shadow: 0 30px 70px -30px rgba(0, 0, 0, .75);
    transform: translateX(-50%) translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity .22s ease, transform .22s ease, visibility .22s;
    backdrop-filter: blur(18px);
}

.nav-dropdown[hidden] {
    display: grid;
}

.nav-group.is-open .nav-dropdown {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
    visibility: visible;
}

.nav-dropdown::before {
    content: '';
    position: absolute;
    top: -6px;
    left: 50%;
    width: 10px;
    height: 10px;
    border-top: 1px solid rgba(240, 232, 213, .14);
    border-left: 1px solid rgba(240, 232, 213, .14);
    background: rgba(12, 21, 14, .98);
    transform: translateX(-50%) rotate(45deg);
}

.nav-dropdown a {
    display: flex;
    flex-direction: column;
    gap: 3px;
    padding: 12px 14px;
    border-radius: 2px;
    color: rgba(243, 239, 227, .72);
    transition: background .2s ease, color .2s ease, padding-left .2s ease;
}

.nav-dropdown a:hover,
.nav-dropdown a.is-active {
    padding-left: 18px;
    background: rgba(201, 168, 106, .1);
    color: var(--paper);
}

.nav-dropdown strong {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.nav-dropdown small {
    color: rgba(243, 239, 227, .45);
    font-size: 11px;
    letter-spacing: .01em;
    line-height: 1.4;
}

/* ---------- Shared club hero ---------- */

.club-head {
    --club-glow: rgba(201, 168, 106, .3);
    position: relative;
    overflow: hidden;
    padding: 14px 0 12px;
    background:
        radial-gradient(circle at 78% 18%, var(--club-glow), transparent 42%),
        radial-gradient(circle at 12% 92%, rgba(130, 151, 127, .16), transparent 46%),
        linear-gradient(135deg, #0a130c 0%, #0e1b12 52%, #122318 100%);
    color: var(--paper);
}

.club-head::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: linear-gradient(rgba(255, 255, 255, .025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .025) 1px, transparent 1px);
    background-size: 64px 64px;
    mask-image: linear-gradient(to bottom, rgba(0, 0, 0, .8), transparent 78%);
    pointer-events: none;
}

.club-head--social {
    --club-glow: rgba(130, 151, 127, .34);
}

.club-head--donate {
    --club-glow: rgba(189, 91, 56, .3);
}

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

.club-head-glow {
    position: absolute;
    top: -160px;
    right: -120px;
    width: 480px;
    height: 480px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--club-glow), transparent 68%);
    filter: blur(10px);
    pointer-events: none;
    animation: club-glow 11s ease-in-out infinite alternate;
}

@keyframes club-glow {
    from { transform: translate3d(0, 0, 0) scale(1); opacity: .75; }
    to { transform: translate3d(-36px, 28px, 0) scale(1.14); opacity: 1; }
}

.club-head-inner {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
    align-items: center;
}

.club-head h1 {
    margin-top: 2px;
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 3.2vw, 2.8rem);
    font-weight: 400;
    letter-spacing: .01em;
    line-height: .92;
    text-transform: uppercase;
}

.club-head h1 em {
    color: var(--gold);
    font-style: normal;
}

.club-head p {
    max-width: 480px;
    padding-bottom: 4px;
    color: rgba(243, 239, 227, .8);
    font-size: 12px;
    line-height: 1.7;
}

.club-head-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.club-lede {
    max-width: 620px;
    margin-top: 16px;
    color: rgba(243, 239, 227, .82);
    font-size: 14px;
    line-height: 1.75;
}

.breadcrumb--light {
    color: rgba(243, 239, 227, .72);
}

.breadcrumb--light a:hover {
    color: var(--gold);
}

.breadcrumb--light span:nth-last-child(1) {
    color: rgba(243, 239, 227, .85);
}

/* ---------- Club fact card ---------- */

.club-fact-card {
    position: relative;
    padding: 26px;
    border: 1px solid rgba(240, 232, 213, .16);
    background: rgba(251, 248, 239, .055);
    box-shadow: 0 30px 60px -34px rgba(0, 0, 0, .6);
    backdrop-filter: blur(12px);
}

.club-fact-card .capacity {
    margin-bottom: 18px;
}

.club-fact-card .capacity-bar {
    background: rgba(255, 255, 255, .12);
}

.club-fact-card .capacity-labels {
    color: rgba(243, 239, 227, .74);
}

.club-fact {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    padding: 11px 0;
    border-top: 1px solid rgba(240, 232, 213, .12);
    font-size: 11px;
}

.club-fact span {
    color: rgba(243, 239, 227, .72);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .13em;
    text-transform: uppercase;
}

.club-fact strong {
    font-weight: 700;
    text-align: right;
}

.club-fact-card .button {
    margin-top: 16px;
}

/* ---------- Panels ---------- */

.club-panel {
    position: relative;
    padding: clamp(24px, 3vw, 38px);
    border: 1px solid var(--line);
    background: var(--paper);
    box-shadow: var(--shadow-soft);
}

.club-panel--tight {
    padding: 24px;
}

// Search, the library and the venue page were written before the club- prefix
// arrived, so they ask for .panel-head and got nothing.
.club-panel-head,
.panel-head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 22px;
}

.club-panel h2 {
    margin-top: 7px;
    font-family: var(--font-display);
    font-size: clamp(2.2rem, 3.4vw, 3.2rem);
    font-weight: 400;
    letter-spacing: .015em;
    line-height: .92;
    text-transform: uppercase;
}

.club-panel h3 {
    font-family: var(--font-display);
    font-size: 1.6rem;
    font-weight: 400;
    letter-spacing: .02em;
    line-height: 1;
    text-transform: uppercase;
}

.club-panel .section-kicker {
    margin-bottom: 2px;
}

.club-big-number {
    margin: 12px 0 6px;
    font-family: var(--font-display);
    font-size: clamp(2.6rem, 4vw, 3.8rem);
    letter-spacing: .02em;
    line-height: .9;
}

.club-stat-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-top: 20px;
    padding-top: 18px;
    border-top: 1px solid var(--line);
}

.club-stat-row div {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.club-stat-row strong {
    font-family: var(--font-display);
    font-size: 1.6rem;
    font-weight: 400;
    line-height: 1;
}

.club-stat-row span {
    color: var(--muted);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.club-form-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px;
}

.club-panel .form-stack {
    margin-top: 4px;
}

.staff-chip {
    display: inline-flex;
    align-items: center;
    padding: 5px 10px;
    border: 1px solid rgba(201, 168, 106, .45);
    background: rgba(201, 168, 106, .1);
    color: var(--gold-deep);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .13em;
    line-height: 1.3;
    text-transform: uppercase;
}

.section-head--tight {
    grid-template-columns: minmax(0, 1fr) auto;
    margin-bottom: 24px;
}

.section-head--tight h2 {
    font-size: clamp(2.4rem, 4vw, 3.4rem);
}

/* ---------- Page headers ---------- */

// News, the online list and the help desk open with a cream page header rather
// than the dark club hero. The class had never been written, so all three
// rendered as a plain <h1> with a full-size paragraph under it — the same
// missing-rule bug that once left the leaderboard as a raw HTML table.

.page-head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: clamp(22px, 3vw, 34px);
}

// An open ticket is a tall header — the back link, the title, the byline — and
// bottom-aligning that against a button leaves the button floating.
.page-head--ticket {
    align-items: flex-start;
}

.page-head h1 {
    margin-top: 6px;
    font-family: var(--font-display);
    font-size: clamp(1.9rem, 3.6vw, 3rem);
    font-weight: 400;
    letter-spacing: .01em;
    line-height: .94;
    text-transform: uppercase;
}

.page-lede {
    max-width: 620px;
    margin-top: 12px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.75;
}

// The row of buttons under a title. Used both inside the dark hero and on cream.
.club-head-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

// "No news yet." A panel has padding; a bare paragraph inside one has none, so
// the line sat against the border.
.club-empty {
    padding: 10px 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.7;
}

// ---------- Layouts ---------- */

.detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: clamp(24px, 3vw, 40px);
    align-items: start;
}

.detail-main {
    display: flex;
    flex-direction: column;
    gap: 24px;
    min-width: 0;
}

.detail-rail {
    position: sticky;
    top: calc(var(--header-h) + 24px);
    display: flex;
    flex-direction: column;
    gap: 18px;
    min-width: 0;
}

.prose {
    color: var(--ink-soft);
    font-size: 13px;
    line-height: 1.85;
}

.prose + .prose {
    margin-top: 14px;
}

/* ---------- Pills ---------- */

.status-pill,
.price-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .12em;
    line-height: 1.3;
    text-transform: uppercase;
}

.status-pill {
    border: 1px solid rgba(130, 151, 127, .4);
    background: rgba(130, 151, 127, .12);
    color: #4f6d55;
}

.status-pill--open {
    border-color: rgba(130, 151, 127, .5);
    background: rgba(130, 151, 127, .14);
    color: #4d6b52;
}

.status-pill--closed,
.status-pill--draft {
    border-color: rgba(109, 115, 105, .32);
    background: rgba(109, 115, 105, .1);
    color: var(--muted);
}

.status-pill--drawn {
    border-color: rgba(201, 168, 106, .5);
    background: rgba(201, 168, 106, .16);
    color: var(--gold-deep);
}

.price-pill {
    border: 1px solid rgba(201, 168, 106, .45);
    background: rgba(201, 168, 106, .13);
    color: var(--gold-deep);
}

.price-pill--free {
    border-color: rgba(130, 151, 127, .5);
    background: rgba(130, 151, 127, .14);
    color: #4d6b52;
}

.club-head .status-pill,
.club-head .price-pill {
    border-color: rgba(240, 232, 213, .24);
    background: rgba(255, 255, 255, .08);
    color: rgba(243, 239, 227, .82);
}

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

.club-head .status-pill--open {
    color: #b7d0b8;
}

.club-head .price-pill--free {
    color: #b7d0b8;
}

/* ---------- Capacity ---------- */

.capacity {
    margin-top: 16px;
}

.capacity-bar {
    overflow: hidden;
    height: 4px;
    border-radius: 999px;
    background: rgba(18, 23, 16, .1);
}

.capacity-bar span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--gold-deep), var(--gold-light));
    transition: width .8s cubic-bezier(.2, .7, .2, 1);
}

.capacity-labels {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-top: 7px;
    color: var(--muted);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

/* ---------- Sponsor board ---------- */

.sponsor-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.sponsor-card {
    --sponsor-accent: var(--gold);
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    padding: 28px;
    border: 1px solid var(--line);
    background: var(--paper);
    box-shadow: var(--shadow-soft);
    transition: transform .35s cubic-bezier(.2, .7, .2, 1), box-shadow .35s ease, border-color .35s ease;
}

.sponsor-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--sponsor-accent), transparent 82%);
}

.sponsor-card::after {
    content: '';
    position: absolute;
    top: -70px;
    right: -70px;
    width: 170px;
    height: 170px;
    border-radius: 50%;
    background: var(--sponsor-accent);
    opacity: .07;
    transition: transform .5s ease, opacity .5s ease;
    pointer-events: none;
}

.sponsor-card:hover {
    transform: translateY(-6px);
    border-color: rgba(201, 168, 106, .5);
    box-shadow: 0 36px 70px -40px rgba(15, 24, 16, .55);
}

.sponsor-card:hover::after {
    transform: scale(1.4);
    opacity: .12;
}

.sponsor-card--headline {
    grid-column: span 2;
}

.sponsor-card--headline h3 {
    font-size: 2.4rem;
}

.sponsor-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 20px;
}

.sponsor-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border: 1px solid var(--sponsor-accent);
    background: color-mix(in srgb, var(--sponsor-accent) 14%, transparent);
    color: color-mix(in srgb, var(--sponsor-accent) 56%, var(--forest));
    font-family: var(--font-display);
    font-size: 1.4rem;
    letter-spacing: .04em;
    line-height: 1;
    transition: transform .4s cubic-bezier(.2, .7, .2, 1);
}

.sponsor-card:hover .sponsor-mark {
    transform: rotate(-6deg) scale(1.05);
}

.sponsor-mark--logo {
    width: 84px;
    height: 52px;
    padding: 6px;
    background: #fff;
    border-color: var(--line);
}

.sponsor-mark--logo img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
}

.logo-preview {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 8px;
    padding: 10px;
    border: 1px solid var(--line);
    background: #fff;
}

.logo-preview img {
    max-width: 160px;
    max-height: 70px;
    width: auto;
    height: auto;
    object-fit: contain;
}

.sponsor-tier {
    color: var(--muted);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.sponsor-card h3 {
    font-family: var(--font-display);
    font-size: 1.9rem;
    font-weight: 400;
    letter-spacing: .02em;
    line-height: 1;
    text-transform: uppercase;
}

.sponsor-card > p {
    margin-top: 12px;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.75;
}

.sponsor-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 20px;
    padding-top: 18px;
    border-top: 1px solid var(--line);
}

.sponsor-links a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border: 1px solid var(--line);
    color: var(--ink-soft);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
    transition: border-color .2s ease, color .2s ease, background .2s ease, transform .2s ease;
}

.sponsor-links a:hover {
    border-color: var(--gold);
    background: rgba(201, 168, 106, .08);
    color: var(--gold-deep);
    transform: translateY(-2px);
}

.sponsor-admin {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px dashed var(--line);
    color: var(--muted);
    font-size: 11px;
    font-weight: 700;
}

.sponsor-admin form {
    display: inline;
}

.sponsor-admin a:hover,
.sponsor-admin button:hover {
    color: var(--rust);
}

/* A hidden sponsor only exists in the staff view, so it has to read as "off"
   without pretending to be a broken card: the frame stays, the ink fades. */
.sponsor-card--hidden {
    opacity: 0.62;
    border-style: dashed;
}

.sponsor-card--hidden .sponsor-mark {
    filter: grayscale(1);
}

.sponsor-hidden-tag {
    display: inline-block;
    margin-left: auto;
    padding: 4px 9px;
    border-radius: 999px;
    background: rgba(180, 80, 60, 0.14);
    color: var(--rust);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.field-hint {
    display: block;
    margin-top: 6px;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.5;
}

.input--color {
    width: 100%;
    height: 48px;
    padding: 4px;
    cursor: pointer;
}

/* ---------- Competitions ---------- */

.competition-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.competition-card {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 26px;
    border: 1px solid var(--line);
    background: var(--paper);
    box-shadow: var(--shadow-soft);
    transition: transform .35s cubic-bezier(.2, .7, .2, 1), box-shadow .35s ease, border-color .35s ease;
}

.competition-card:hover {
    transform: translateY(-6px);
    border-color: rgba(201, 168, 106, .55);
    box-shadow: 0 34px 66px -40px rgba(15, 24, 16, .55);
}

.competition-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 16px;
}

.competition-card h3 {
    font-family: var(--font-display);
    font-size: 1.9rem;
    font-weight: 400;
    letter-spacing: .02em;
    line-height: .98;
    text-transform: uppercase;
}

.competition-card h3 a:hover {
    color: var(--gold-deep);
}

.competition-card > p {
    margin-top: 10px;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.7;
}

.competition-meta {
    display: grid;
    gap: 8px;
    margin: 18px 0 0;
    padding-top: 16px;
    border-top: 1px solid var(--line);
}

.competition-meta div {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
}

.competition-meta dt {
    color: var(--muted);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.competition-meta dd {
    margin: 0;
    font-size: 11px;
    font-weight: 700;
    text-align: right;
}

.competition-card .capacity {
    margin-top: 18px;
}

.competition-card .button {
    margin-top: 20px;
}

/* ---------- Entry list ---------- */

.angler-list {
    display: flex;
    flex-direction: column;
    margin: 0;
    padding: 0;
    list-style: none;
}

.angler-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-top: 1px solid var(--line);
}

.angler-list li:first-child {
    border-top: 0;
}

.angler-place {
    width: 22px;
    color: var(--gold-deep);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .08em;
}

.angler-list-name {
    display: flex;
    flex-direction: column;
    gap: 1px;
    min-width: 0;
}

.angler-list-name a {
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .01em;
}

.angler-list-name a:hover {
    color: var(--gold-deep);
}

.angler-list-name small {
    color: var(--muted);
    font-size: 11px;
}

.you-chip {
    margin-left: auto;
    padding: 3px 8px;
    border: 1px solid rgba(201, 168, 106, .4);
    background: rgba(201, 168, 106, .12);
    color: var(--gold-deep);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
}

/* ---------- Winners ---------- */

.winner-note {
    max-width: 760px;
    margin: -14px 0 34px;
    color: var(--ink-soft);
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 2.4vw, 2.2rem);
    letter-spacing: .02em;
    line-height: 1.15;
}

.winner-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 18px;
}

.winner-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow: hidden;
    padding: 30px 22px 20px;
    border: 1px solid var(--line);
    background: var(--paper);
    text-align: center;
    box-shadow: var(--shadow-soft);
    transition: transform .35s cubic-bezier(.2, .7, .2, 1), box-shadow .35s ease, border-color .35s ease;
}

.winner-card::before {
    content: '';
    position: absolute;
    top: -60px;
    left: 50%;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(201, 168, 106, .2), transparent 68%);
    transform: translateX(-50%);
    pointer-events: none;
}

.winner-card:hover {
    transform: translateY(-6px);
    border-color: rgba(201, 168, 106, .55);
    box-shadow: 0 36px 70px -40px rgba(15, 24, 16, .55);
}

.winner-place {
    position: absolute;
    top: 14px;
    left: 16px;
    color: var(--gold-deep);
    font-family: var(--font-display);
    font-size: 1.2rem;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.winner-avatar {
    position: relative;
    display: inline-flex;
    margin-bottom: 14px;
}

.winner-avatar::after {
    content: '';
    position: absolute;
    inset: -6px;
    border: 1px solid rgba(201, 168, 106, .35);
    border-radius: 50%;
    transition: transform .4s cubic-bezier(.2, .7, .2, 1);
}

.winner-card:hover .winner-avatar::after {
    transform: scale(1.08);
}

.avatar--large {
    width: 62px;
    height: 62px;
    font-size: 15px;
}

.avatar--hero {
    width: clamp(78px, 10vw, 112px);
    height: clamp(78px, 10vw, 112px);
    font-size: clamp(20px, 3vw, 30px);
    box-shadow: 0 24px 50px -24px rgba(0, 0, 0, .6);
}

.winner-card h3 {
    font-family: var(--font-display);
    font-size: 1.7rem;
    font-weight: 400;
    letter-spacing: .02em;
    line-height: 1;
    text-transform: uppercase;
}

.winner-card h3 a:hover {
    color: var(--gold-deep);
}

.winner-crew {
    margin-top: 4px;
    color: var(--muted);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.winner-prize {
    margin-top: 10px;
    padding: 6px 10px;
    border: 1px solid rgba(201, 168, 106, .3);
    background: rgba(201, 168, 106, .08);
    color: var(--gold-deep);
    font-size: 11px;
    line-height: 1.4;
}

.winner-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    width: 100%;
    margin-top: auto;
    padding-top: 18px;
}

.winner-foot .text-link {
    font-size: 11px;
}

/* ---------- Staff tools ---------- */

.staff-panel {
    margin-top: 28px;
    border-color: rgba(201, 168, 106, .38);
    background:
        linear-gradient(180deg, rgba(201, 168, 106, .055), transparent 36%),
        var(--paper);
}

.staff-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.staff-card {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 20px;
    border: 1px solid var(--line);
    background: rgba(246, 241, 228, .6);
}

.staff-card h3 {
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 400;
    letter-spacing: .02em;
    line-height: 1;
    text-transform: uppercase;
}

.staff-card .field {
    margin-top: 2px;
}

.staff-card .button {
    margin-top: auto;
}

.staff-winner-list {
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid var(--line);
}

.staff-winner-list h3 {
    margin-bottom: 12px;
    font-size: 1.2rem;
}

.staff-winner-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    border-top: 1px solid var(--line);
    font-size: 11px;
}

.staff-winner-row:first-of-type {
    border-top: 0;
}

.staff-winner-row > span:nth-child(3) {
    flex: 1;
    min-width: 0;
}

.staff-note-form {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 12px;
    margin-top: 20px;
    padding-top: 18px;
    border-top: 1px solid var(--line);
}

.staff-note-form .field {
    flex: 1;
    min-width: 240px;
}

/* ---------- Socials ---------- */

.event-list {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.event-card {
    display: grid;
    grid-template-columns: 132px minmax(0, 1fr);
    overflow: hidden;
    border: 1px solid var(--line);
    background: var(--paper);
    box-shadow: var(--shadow-soft);
    transition: transform .35s cubic-bezier(.2, .7, .2, 1), box-shadow .35s ease, border-color .35s ease;
}

.event-card:hover {
    transform: translateY(-4px);
    border-color: rgba(201, 168, 106, .5);
    box-shadow: 0 34px 66px -40px rgba(15, 24, 16, .5);
}

.event-card-date {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    padding: 24px 16px;
    background:
        radial-gradient(circle at 50% 18%, rgba(201, 168, 106, .22), transparent 55%),
        linear-gradient(160deg, #0d1a11, #16281a);
    color: var(--paper);
    text-align: center;
}

.event-card-date span {
    color: rgba(243, 239, 227, .78);
}

.event-day {
    font-family: var(--font-display);
    font-size: 3.2rem;
    letter-spacing: .02em;
    line-height: .85;
}

.event-month {
    color: var(--gold);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .18em;
    text-transform: uppercase;
}

.event-time {
    margin-top: 6px;
    color: rgba(243, 239, 239, .72);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .1em;
}

.event-card-main {
    min-width: 0;
    padding: 24px 28px;
}

.event-card-top {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}

.event-card h3 {
    font-family: var(--font-display);
    font-size: clamp(1.7rem, 2.4vw, 2.2rem);
    font-weight: 400;
    letter-spacing: .02em;
    line-height: .98;
    text-transform: uppercase;
}

.event-card-main > p {
    max-width: 720px;
    margin-top: 8px;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.7;
}

.event-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 14px;
    color: var(--muted);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .03em;
}

.event-meta span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.event-details {
    margin-top: 14px;
    border-top: 1px solid var(--line);
    padding-top: 12px;
}

.event-details summary {
    color: var(--gold-deep);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
    cursor: pointer;
}

.event-details .prose {
    margin-top: 10px;
}

.event-card-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
    margin-top: 18px;
}

.event-card-actions form {
    display: inline-flex;
}

.event-attendees {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px dashed var(--line);
    color: var(--muted);
    font-size: 11px;
    font-weight: 700;
}

.event-attendees .avatar-stack .avatar {
    border-color: var(--paper);
}

/* ---------- Socials: the paid list (staff) ---------- */

.event-staff-row {
    display: flex;
    justify-content: flex-end;
    margin-top: 10px;
}

.event-paid-list {
    margin-top: 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--paper-2);
    padding: 10px 12px;
}

.event-paid-list summary {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--gold-deep);
}

.event-paid-count {
    margin-left: auto;
    padding: 2px 7px;
    border-radius: 999px;
    background: rgba(12, 21, 14, .08);
    font-size: 11px;
    letter-spacing: .04em;
    color: var(--ink-soft);
}

.event-paid-list ul {
    list-style: none;
    margin: 12px 0 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.event-paid-list li {
    display: flex;
    align-items: center;
    gap: 9px;
    font-size: 12px;
}

.event-paid-name {
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-weight: 600;
}

.paid-pill {
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
    white-space: nowrap;
}

.paid-pill--yes {
    background: rgba(60, 110, 70, .16);
    color: #2f5c3a;
}

.paid-pill--no {
    background: rgba(155, 66, 38, .12);
    color: var(--rust);
}

/* ---------- Socials: the album ---------- */

.event-album-pick {
    display: flex;
    align-items: center;
    gap: 8px;
}

.event-album-pick .select {
    min-width: 220px;
    max-width: 320px;
}

.event-album-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 18px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--line);
    color: var(--muted);
    font-size: 11px;
    font-weight: 700;
}

.event-upload {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
    gap: 14px;
    align-items: end;
    margin-bottom: 26px;
    padding: 18px;
    border: 1px dashed var(--line);
    border-radius: var(--radius);
    background: rgba(251, 248, 239, .6);
}

.event-upload .button {
    white-space: nowrap;
}

.event-upload-note {
    margin-bottom: 26px;
    padding: 14px 16px;
    border-left: 3px solid var(--gold);
    background: var(--paper-2);
    font-size: 12px;
    color: var(--muted);
}

.event-album-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 16px;
}

.event-album-card {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--paper);
    text-decoration: none;
    color: var(--ink);
    transition: transform .25s ease, box-shadow .25s ease;
}

.event-album-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-soft);
}

.event-album-card-count {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--gold-deep);
}

.event-album-card h3 {
    margin: 0;
    font-size: 15px;
    font-weight: 700;
}

.event-album-card-when {
    font-size: 11px;
    color: var(--muted);
}

.event-gallery {
    columns: 3 240px;
    column-gap: 14px;
}

.event-photo {
    break-inside: avoid;
    margin: 0 0 14px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--paper);
    overflow: hidden;
}

.event-photo img {
    display: block;
    width: 100%;
    height: auto;
}

.event-photo figcaption {
    padding: 8px 10px 2px;
    font-size: 12px;
    font-weight: 600;
}

.event-photo-by {
    display: block;
    padding: 2px 10px 8px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--muted);
}

.event-photo form {
    padding: 0 10px 10px;
}

.event-photo-remove {
    font-size: 11px;
    letter-spacing: .1em;
    text-transform: uppercase;
}

/* Add and remove sit in one strip now, and the caption editor is a disclosure
   so a hundred photos do not each carry a visible text box. */
.event-photo-tools {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    padding: 0 10px 10px;
}

.event-photo-tools form {
    padding: 0;
}

.event-photo-edit {
    font-size: 11px;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.event-photo-edit summary {
    cursor: pointer;
    color: var(--muted);
    font-weight: 700;
    padding: 2px 0;
    list-style: none;
}

.event-photo-edit summary::-webkit-details-marker { display: none; }

.event-photo-edit summary:hover { color: var(--rust); }

.event-photo-edit[open] {
    flex-basis: 100%;
}

.event-photo-edit[open] summary {
    margin-bottom: 6px;
}

.event-photo-edit form {
    display: flex;
    gap: 6px;
    align-items: center;
    padding: 0;
}

.event-photo-edit .input {
    flex: 1 1 120px;
    min-width: 0;
    padding: 6px 8px;
    font-size: 12px;
    text-transform: none;
    letter-spacing: 0;
}

@media (max-width: 720px) {
    .event-upload {
        grid-template-columns: minmax(0, 1fr);
    }

    .event-album-pick .select {
        min-width: 0;
        max-width: none;
        width: 100%;
    }
}

/* ---------- Donate ---------- */

.donate-intro {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 380px;
    gap: clamp(28px, 5vw, 64px);
    align-items: start;
    margin-bottom: 40px;
}

.donate-intro h2 {
    margin-top: 8px;
    font-family: var(--font-display);
    font-size: clamp(2.8rem, 4.6vw, 4.4rem);
    font-weight: 400;
    letter-spacing: .015em;
    line-height: .9;
    text-transform: uppercase;
}

.donate-intro p {
    max-width: 520px;
    margin-top: 14px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.8;
}

.donate-receipt {
    position: relative;
    padding: 26px;
    border: 1px solid var(--line);
    background: var(--paper);
    box-shadow: var(--shadow-soft);
}

.donate-receipt::before {
    content: '';
    position: absolute;
    top: -1px;
    right: 24px;
    left: 24px;
    height: 3px;
    background: repeating-linear-gradient(90deg, var(--gold) 0 10px, transparent 10px 18px);
}

.donate-receipt > .mono {
    color: var(--gold-deep);
    font-size: 11px;
    letter-spacing: .16em;
}

.donate-receipt ul {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin: 18px 0 0;
    padding: 0;
    list-style: none;
}

.donate-receipt li {
    display: flex;
    flex-direction: column;
    gap: 3px;
    padding-top: 14px;
    border-top: 1px dashed var(--line);
}

.donate-receipt li:first-child {
    padding-top: 0;
    border-top: 0;
}

.donate-receipt strong {
    font-size: 11px;
    font-weight: 800;
}

.donate-receipt span {
    color: var(--muted);
    font-size: 11px;
    line-height: 1.55;
}

.donate-totals {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 1px;
    border: 1px solid var(--line);
    background: var(--line);
    box-shadow: var(--shadow-soft);
}

.donate-totals > div {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 22px 18px;
    background: var(--paper);
}

.donate-totals strong {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 2.6vw, 2.5rem);
    font-weight: 400;
    letter-spacing: .02em;
    line-height: .9;
}

.donate-totals span {
    color: var(--muted);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.donate-kinds {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    margin: 0 0 6px;
    padding: 0;
    border: 0;
}

.donate-kinds legend {
    margin-bottom: 9px;
    color: var(--ink-soft);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.donate-kind {
    position: relative;
    display: block;
    cursor: pointer;
}

.donate-kind input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
}

.donate-kind-inner {
    display: flex;
    flex-direction: column;
    gap: 2px;
    height: 100%;
    padding: 14px;
    border: 1px solid var(--line);
    background: rgba(246, 241, 228, .5);
    transition: border-color .2s ease, background .2s ease, transform .2s ease, box-shadow .2s ease;
}

.donate-kind-inner strong {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.donate-kind-inner small {
    color: var(--muted);
    font-size: 11px;
    line-height: 1.4;
}

.donate-kind:hover .donate-kind-inner {
    border-color: rgba(201, 168, 106, .55);
    transform: translateY(-2px);
}

.donate-kind input:checked + .donate-kind-inner {
    border-color: var(--gold);
    background: rgba(201, 168, 106, .14);
    box-shadow: 0 12px 26px -18px rgba(201, 168, 106, .9);
}

.donate-kind input:focus-visible + .donate-kind-inner {
    outline: 2px solid var(--gold);
    outline-offset: 2px;
}

.donation-list {
    display: flex;
    flex-direction: column;
    margin: 0;
    padding: 0;
    list-style: none;
}

.donation-row {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 16px 0;
    border-top: 1px solid var(--line);
}

.donation-row:first-child {
    border-top: 0;
    padding-top: 0;
}

.donation-kind {
    flex: 0 0 auto;
    min-width: 62px;
    padding: 5px 8px;
    border: 1px solid var(--line);
    color: var(--muted);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .1em;
    line-height: 1.3;
    text-align: center;
    text-transform: uppercase;
}

.donation-kind--cash {
    border-color: rgba(201, 168, 106, .45);
    background: rgba(201, 168, 106, .1);
    color: var(--gold-deep);
}

.donation-kind--gear {
    border-color: rgba(130, 151, 127, .45);
    background: rgba(130, 151, 127, .1);
    color: #4d6b52;
}

.donation-kind--boat {
    border-color: rgba(142, 157, 194, .45);
    background: rgba(142, 157, 194, .1);
    color: #586a94;
}

.donation-kind--prize {
    border-color: rgba(189, 91, 56, .4);
    background: rgba(189, 91, 56, .08);
    color: var(--rust);
}

.donation-body {
    flex: 1;
    min-width: 0;
}

.donation-body strong {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    font-weight: 800;
}

.donation-body p {
    margin-top: 3px;
    color: var(--muted);
    font-size: 11px;
    line-height: 1.5;
}

.donation-body .donation-message {
    color: var(--ink-soft);
    font-style: italic;
}

.donation-body small {
    display: block;
    margin-top: 4px;
    color: var(--muted);
    font-size: 11px;
}

.received-chip {
    padding: 2px 6px;
    border: 1px solid rgba(130, 151, 127, .45);
    background: rgba(130, 151, 127, .12);
    color: #4d6b52;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.donation-admin {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
}

.text-button--danger:hover {
    color: var(--rust);
}

.donate-aside-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin: 16px 0 0;
    padding: 0;
    list-style: none;
}

.donate-aside-list li {
    display: flex;
    flex-direction: column;
    gap: 3px;
    padding-top: 14px;
    border-top: 1px solid var(--line);
}

.donate-aside-list li:first-child {
    padding-top: 0;
    border-top: 0;
}

.donate-aside-list strong {
    font-size: 11px;
    font-weight: 800;
}

.donate-aside-list span {
    color: var(--muted);
    font-size: 11px;
    line-height: 1.5;
}

.donate-aside-list .text-link {
    margin-top: 4px;
    font-size: 11px;
}

.donate-thanks {
    margin-top: 12px;
    color: var(--ink-soft);
    font-family: var(--font-display);
    font-size: 1.5rem;
    letter-spacing: .015em;
    line-height: 1.15;
}

.donate-sign {
    display: block;
    margin-top: 10px;
    color: var(--muted);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .06em;
}

/* ---------- Angler profile ---------- */

.profile-head {
    position: relative;
    overflow: hidden;
    padding: 72px 0 56px;
    background:
        radial-gradient(circle at 82% 8%, rgba(201, 168, 106, .24), transparent 42%),
        linear-gradient(135deg, #0a130c 0%, #101d13 58%, #16281a 100%);
    color: var(--paper);
}

.profile-head::after {
    content: '';
    position: absolute;
    right: -80px;
    bottom: -160px;
    width: 420px;
    height: 420px;
    border: 1px solid rgba(201, 168, 106, .16);
    border-radius: 50%;
    pointer-events: none;
}

.profile-head-inner {
    position: relative;
    z-index: 1;
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 36px;
}

.profile-identity {
    display: flex;
    align-items: center;
    gap: 24px;
    min-width: 0;
}

.profile-identity h1 {
    margin-top: 8px;
    font-family: var(--font-display);
    font-size: clamp(3rem, 6vw, 5.4rem);
    font-weight: 400;
    letter-spacing: .015em;
    line-height: .85;
    text-transform: uppercase;
}

.profile-handle {
    margin-top: 8px;
    color: rgba(243, 239, 227, .74);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.profile-bio {
    max-width: 520px;
    margin-top: 12px;
    color: rgba(243, 239, 227, .84);
    font-size: 12px;
    line-height: 1.7;
}

.profile-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1px;
    border: 1px solid rgba(240, 232, 213, .16);
    background: rgba(240, 232, 213, .14);
}

.profile-stats div {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 104px;
    padding: 18px 16px;
    background: rgba(10, 19, 12, .68);
}

.profile-stats strong {
    font-family: var(--font-display);
    font-size: 1.8rem;
    font-weight: 400;
    letter-spacing: .02em;
    line-height: .9;
}

.profile-stats span {
    color: rgba(243, 239, 227, .74);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.profile-list {
    display: flex;
    flex-direction: column;
    margin: 14px 0 0;
    padding: 0;
    list-style: none;
}

.profile-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 0;
    border-top: 1px solid var(--line);
}

.profile-list li:first-child {
    border-top: 0;
    padding-top: 0;
}

.profile-list .mono {
    flex: 0 0 auto;
    color: var(--gold-deep);
    font-size: 11px;
    font-weight: 700;
}

.profile-list div {
    display: flex;
    flex-direction: column;
    gap: 1px;
    min-width: 0;
}

.profile-list a {
    font-size: 11px;
    font-weight: 800;
}

.profile-list a:hover {
    color: var(--gold-deep);
}

.profile-list small {
    color: var(--muted);
    font-size: 11px;
}

.catch-grid--profile {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

/* ---------- Misc ---------- */

.is-disabled {
    cursor: not-allowed;
    opacity: .55;
    pointer-events: none;
}

.club-page .empty-state {
    background: rgba(251, 248, 239, .62);
    box-shadow: var(--shadow-soft);
}

/* ---------- Responsive ---------- */

@media (max-width: 1120px) {
    .sponsor-grid,
    .competition-grid,
    .catch-grid--profile {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .sponsor-card--headline {
        grid-column: span 2;
    }

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

    .donate-totals {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

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

    .profile-stats {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    .club-head {
        padding: 64px 0 56px;
    }

    .club-head-inner,
    .donate-intro {
        grid-template-columns: 1fr;
    }

    .club-head p {
        padding-bottom: 0;
    }

    .detail-layout {
        grid-template-columns: 1fr;
    }

    .detail-rail {
        position: static;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

    .event-card {
        grid-template-columns: 108px minmax(0, 1fr);
    }

    .profile-head-inner {
        align-items: flex-start;
    }

    .profile-stats {
        width: 100%;
    }
}

@media (max-width: 720px) {
    .sponsor-grid,
    .competition-grid,
    .catch-grid--profile {
        grid-template-columns: 1fr;
    }

    .sponsor-card--headline {
        grid-column: auto;
    }

    .donate-totals {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .donate-kinds {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .event-card {
        grid-template-columns: 1fr;
    }

    .event-card-date {
        flex-direction: row;
        gap: 10px;
        padding: 14px 20px;
        text-align: left;
    }

    .event-day {
        font-size: 1.8rem;
    }

    .event-card-main {
        padding: 20px;
    }

    .donation-row {
        flex-wrap: wrap;
    }

    .donation-admin {
        width: 100%;
        flex-direction: row;
        justify-content: flex-end;
    }

    .profile-identity {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .profile-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .profile-stats div {
        min-width: 0;
    }

    .detail-rail {
        grid-template-columns: 1fr;
    }

    .winner-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 520px) {
    .club-head {
        padding: 52px 0 46px;
    }

    .club-head h1 {
        font-size: clamp(3rem, 14vw, 4.2rem);
    }

    .donate-totals {
        grid-template-columns: 1fr;
    }

    .donate-kinds {
        grid-template-columns: 1fr;
    }

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

    .club-stat-row {
        grid-template-columns: 1fr 1fr;
    }

    .staff-note-form {
        flex-direction: column;
        align-items: stretch;
    }
}


.feed-layout { display: grid; grid-template-columns: minmax(0,1fr) 280px; gap: 18px; align-items: start; }
.feed-composer, .feed-card, .club-panel { border: 1px solid var(--line); background: var(--paper); box-shadow: var(--shadow-soft); }
.feed-composer form { display: flex; flex-direction: column; gap: 12px; padding: 16px; }
.feed-composer textarea { width: 100%; border: 1px solid var(--line); padding: 12px; font-family: var(--font-body); }
.feed-composer-actions { display: flex; justify-content: space-between; align-items: center; }
.feed-card { margin-top: 16px; }
.feed-card-head { padding: 14px 16px; border-bottom: 1px solid var(--line); }
.feed-author { display: flex; gap: 12px; align-items: center; }
.feed-author div { display: flex; flex-direction: column; }
.feed-author span span { color: var(--muted); font-size: 12px; }
.feed-card-body { padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.feed-card-body img { width: 100%; max-height: 420px; object-fit: cover; }
.feed-card-foot { padding: 10px 16px; border-top: 1px solid var(--line); }
.feed-like { border: none; background: transparent; cursor: pointer; }
.feed-like.is-liked { color: var(--rust); }
.challenge-grid, .market-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px,1fr)); gap: 16px; }
.challenge-card, .market-card { border: 1px solid var(--line); background: var(--paper); box-shadow: var(--shadow-soft); display: flex; flex-direction: column; }
.challenge-card-head, .market-card-body { padding: 18px; }

// The head is padded all round; the body sits under it, so it takes the sides and
// the bottom only. Without this the description ran flush against the border.
.challenge-card-body { padding: 0 18px 18px; }

.challenge-card-body > p:first-child { margin-top: 0; }
.challenge-card-foot, .market-card-foot { padding: 14px 18px; border-top: 1px solid var(--line); margin-top: auto; }
.challenge-meta { display: flex; flex-direction: column; gap: 6px; color: var(--muted); margin-top: 12px; }
.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; }
.care-steps { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px; }
.care-step { border: 1px solid var(--line); background: var(--paper); padding: 20px; }
.care-num { font-family: var(--font-display); font-size: 1.1rem; color: var(--gold-deep); letter-spacing: .1em; }
.care-step h2 { font-family: var(--font-display); text-transform: uppercase; font-size: 1.25rem; margin: 6px 0 8px; }
.care-step p { font-size: 14px; color: #3f4a3d; }
.care-rules { margin-top: 32px; border: 2px solid var(--ink, #14231a); background: var(--paper); padding: 24px; }
.care-rules h2 { font-family: var(--font-display); text-transform: uppercase; font-size: 1.7rem; margin: 6px 0 14px; }
.care-rule-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.care-rule-list li { padding-left: 24px; position: relative; font-size: 14px; }
.care-rule-list li::before { content: "✓"; position: absolute; left: 0; color: var(--gold-deep); font-weight: 700; }
.care-footer-note { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 18px; align-items: center; justify-content: space-between; padding: 20px; background: var(--paper-2); border: 1px solid var(--line); }
.care-footer-note p { max-width: 62ch; font-size: 14px; margin: 0; }
.match-card { background: #fff; border: 2px solid #14231a; padding: 28px; max-width: 900px; margin: 0 auto; color: #14231a; }
.match-card-head { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; border-bottom: 2px solid #14231a; padding-bottom: 14px; margin-bottom: 18px; }
.match-card-brand { font-family: var(--font-display); letter-spacing: .18em; font-size: 12px; text-transform: uppercase; }
.match-card-head h2 { font-family: var(--font-display); text-transform: uppercase; font-size: 2rem; margin: 4px 0; }
.match-card-meta { display: flex; flex-direction: column; gap: 4px; font-size: 13px; text-align: right; }
.match-card-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.match-card-table th, .match-card-table td { border-bottom: 1px solid #c9d2c9; padding: 7px 8px; text-align: left; }
.match-card-table th { font-size: 11px; text-transform: uppercase; letter-spacing: .1em; }
.match-card-table td:nth-child(4), .match-card-table td:nth-child(5) { border-left: 1px solid #c9d2c9; min-width: 70px; }
.match-card-foot { display: flex; justify-content: space-between; font-size: 11px; color: #5b6a5e; margin-top: 18px; border-top: 1px solid #c9d2c9; padding-top: 10px; }
.match-card-winners { margin-top: 20px; }
.match-card-winners h3 { font-family: var(--font-display); text-transform: uppercase; }
@media print {
    .no-print, .site-header, .site-footer, .header-actions, .nav, .mobile-nav { display: none !important; }
    .match-card { border-width: 2px; box-shadow: none; }
    body { background: #fff; }
}
.search-form { display: flex; gap: 10px; margin-top: 20px; max-width: 640px; }
.search-form .input { flex: 1 1 auto; }
.search-people { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
.search-person { display: flex; align-items: center; gap: 10px; padding: 8px; border: 1px solid var(--line); background: var(--paper); color: var(--ink); }
.search-person small { display: block; color: var(--muted); font-size: 12px; }
.search-post { padding: 10px 0; border-bottom: 1px solid var(--line); }
.search-post p { font-size: 14px; margin: 4px 0 0; }
.library-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin-bottom: 28px; }
.library-head { font-family: var(--font-display); text-transform: uppercase; font-size: 1.5rem; margin-bottom: 12px; }
.library-grid { display: grid; gap: 12px; }
.library-card { border: 1px solid var(--line); background: var(--paper); padding: 16px; }
.library-kind { font-size: 11px; text-transform: uppercase; letter-spacing: .12em; color: var(--gold-deep); }
.library-card h3 { font-family: var(--font-display); text-transform: uppercase; font-size: 1.15rem; margin: 4px 0 8px; }
.library-card p { font-size: 14px; }
.library-steps { margin: 8px 0 0; padding-left: 18px; font-size: 13px; color: var(--muted); }
.library-foot { margin-top: 10px; font-size: 12px; color: var(--muted); border-top: 1px solid var(--line); padding-top: 8px; }
@media (max-width: 860px) { .library-columns { grid-template-columns: 1fr; } .field-pair { grid-template-columns: 1fr; } }
.venue-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; margin-bottom: 32px; }
.venue-card { display: block; padding: 18px; border: 1px solid var(--line); background: var(--paper); color: var(--ink); transition: transform .18s ease, border-color .18s ease; }
.venue-card:hover { transform: translateY(-2px); border-color: var(--gold); }
.venue-card-county { font-size: 11px; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); }
.venue-card h2 { font-family: var(--font-display); text-transform: uppercase; font-size: 1.35rem; margin: 6px 0 10px; }
.venue-card-stats { display: flex; gap: 18px; font-size: 13px; color: var(--muted); }
.venue-card-stats strong { color: var(--ink); font-size: 16px; display: block; }
.field-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.venue-pressure { display: flex; align-items: baseline; gap: 10px; font-family: var(--font-display); font-size: 1.6rem; margin: 6px 0 2px; }
.catch-grid--compact { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.header-search-link { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 999px; border: 1px solid var(--line); color: var(--ink); }
.header-search-link:hover { background: var(--paper-2); }
.notif-bell { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 999px; border: 1px solid var(--line); color: var(--ink); background: transparent; }
.notif-bell:hover { background: var(--paper-2); }
.notif-bell-dot { position: absolute; top: -4px; right: -4px; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 999px; background: var(--gold); color: #10160f; font-size: 10px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }
.notif-list { list-style: none; margin: 0; padding: 0; }
.notif-item { display: flex; gap: 14px; align-items: flex-start; padding: 14px 16px; border: 1px solid var(--line); background: var(--paper); margin-bottom: 8px; }
.notif-item.is-unread { border-left: 3px solid var(--gold); background: var(--paper-2); }
.notif-item p { margin: 0 0 4px; font-size: 14px; }
.notif-kind { font-size: 18px; line-height: 1; }
.notif-item > div { flex: 1 1 auto; }
.weather-now { display: flex; flex-wrap: wrap; gap: 24px; align-items: center; margin-top: 12px; }
.weather-now-main { display: flex; align-items: baseline; gap: 12px; }
.weather-now-main strong { font-family: var(--font-display); font-size: 3rem; line-height: 1; }
.weather-now-main small { font-size: 1rem; font-family: var(--font-body); color: var(--muted); }
.weather-trend { font-size: 12px; text-transform: uppercase; letter-spacing: .1em; padding: 3px 8px; border-radius: 999px; border: 1px solid var(--line); }
.weather-trend--rising { color: #2f6b3a; border-color: #2f6b3a55; }
.weather-trend--falling { color: var(--rust); border-color: #a85a3c55; }
.weather-now-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 14px; flex: 1 1 320px; }
.weather-now-grid div { display: flex; flex-direction: column; gap: 2px; }
.weather-now-grid span { font-size: 11px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.weather-now-grid strong { font-size: 15px; }
.weather-subhead { font-family: var(--font-display); text-transform: uppercase; font-size: 1.1rem; margin: 20px 0 10px; }
.pressure-bars { display: flex; align-items: flex-end; gap: 3px; height: 90px; margin-top: 8px; }
.pressure-bar { flex: 1 1 auto; background: linear-gradient(180deg, var(--gold), var(--gold-deep)); border-radius: 2px 2px 0 0; min-width: 3px; }
.pressure-bars-axis { display: flex; justify-content: space-between; font-size: 11px; color: var(--muted); margin-top: 4px; }
.diary-catches { border: 1px solid var(--line); padding: 12px; margin: 4px 0; }
.diary-catches legend { font-size: 11px; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); padding: 0 6px; }
.check-row { display: flex !important; flex-direction: row !important; align-items: center; gap: 8px; font-size: 13px; text-transform: none; letter-spacing: 0; color: var(--ink); }
.check-row input { width: auto; }
.diary-insight { margin-top: 20px; padding: 14px 16px; border: 1px solid var(--line); background: var(--paper-2); }
.diary-insight h3 { font-family: var(--font-display); text-transform: uppercase; font-size: 1.1rem; margin-bottom: 8px; }
.diary-catch-list { margin: 8px 0 0; padding-left: 18px; font-size: 14px; }
.diary-catch-list a { color: var(--ink); }
.diary-card-foot { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 10px 16px; border-top: 1px solid var(--line); }
.diary-link-form { display: flex; gap: 8px; align-items: center; flex: 1 1 220px; }
.diary-link-form .input { flex: 1 1 auto; min-width: 0; }
.market-card-photo { display: block; line-height: 0; background: var(--paper-2); }
.market-card-photo img { width: 100%; height: 200px; object-fit: cover; display: block; }
.listing-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.listing-actions form { display: inline-flex; }
.listing-row { flex-direction: row !important; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.profile-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.profile-actions form { display: inline-flex; }
.badge-strip { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.badge-pill { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border: 1px solid var(--line); background: var(--paper); font-size: 12px; border-radius: 999px; }
.badge-pill b { font-family: var(--font-display); color: var(--gold-deep); font-size: 13px; }
.profile-gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 12px; }
.profile-gallery img { width: 100%; aspect-ratio: 1; object-fit: cover; display: block; border-radius: 4px; }
.profile-gallery a { display: block; line-height: 0; }
.month-picker { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.month-picker .input { padding: 8px 12px; min-width: 0; max-width: 100%; }
/* ---------- Leaderboard ---------- */

/* The page used to be two bare tables and a flat list: no classes had ever been
   written for .leaderboard-table, .rank-badge or .leader-angler, so it rendered
   as browser-default HTML next to cards that look finished. This block is the
   whole board — the band, the podium, the panels and the form cards. */

/* "Your place" — the one thing a member came for, so it goes above the rest. */
.board-you-band {
    background: var(--paper);
    border-bottom: 1px solid var(--line);
}

.board-you {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 20px 28px;
    padding: 18px 0;
}

.board-you-rank {
    display: flex;
    align-items: baseline;
    gap: 8px;
    flex: 0 0 auto;
}

.board-you-rank span {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--muted);
}

.board-you-rank strong {
    font-family: var(--font-display);
    font-size: 2rem;
    line-height: 1;
    color: var(--gold-deep);
}

.board-you-rank small {
    font-size: 12px;
    color: var(--muted);
}

.board-you-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    flex: 1 1 320px;
}

.board-you-stats div {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.board-you-stats span {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--muted);
}

.board-you-stats strong {
    font-size: 16px;
}

.board-podium {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 32px;
}

.board-podium-card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 20px;
    border: 1px solid var(--line);
    border-top: 3px solid var(--line);
    background: var(--paper);
}

.board-podium-card--gold { border-top-color: #c9a86a; }
.board-podium-card--silver { border-top-color: #9aa3ab; }
.board-podium-card--bronze { border-top-color: #a9714b; }

.board-podium-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
}

.board-podium-place {
    font-family: var(--font-display);
    font-size: 2.4rem;
    line-height: 0.9;
    color: var(--ink);
}

.board-podium-metal {
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: var(--muted);
}

.board-podium-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin: 0;
}

.board-podium-stats div {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.board-podium-stats dt {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--muted);
}

.board-podium-stats dd {
    margin: 0;
    font-size: 15px;
    font-weight: 700;
}

.board-podium-crew {
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px dashed var(--line);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--muted);
}

/* Panels: the table is the point, so it sits on a plain sheet with a rule
   under the head and one between rows, and nothing else competing. */
.board-panel {
    border: 1px solid var(--line);
    background: var(--paper);
    overflow-x: auto;
}

/* Four columns of numbers is fine on a laptop and not on a phone. body has
   overflow-x: hidden, so without this the table is clipped rather than
   scrollable and the last column simply cannot be read. */
.table-scroll {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.table-scroll > table {
    min-width: 420px;
}

.board-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.board-table thead th {
    padding: 12px 16px;
    border-bottom: 1px solid var(--line);
    background: var(--paper-2);
    color: var(--muted);
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    text-align: left;
    white-space: nowrap;
}

.board-table td {
    padding: 11px 16px;
    border-bottom: 1px solid var(--line);
    vertical-align: middle;
}

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

.board-table tbody tr:hover { background: var(--paper-2); }

.board-table .numeric { text-align: right; }

.board-table-rank {
    width: 64px;
    color: var(--muted);
    font-family: var(--font-display);
    font-size: 1rem;
}

.board-table-weight { font-weight: 700; }

.board-table-crew {
    color: var(--muted);
    font-size: 12px;
    white-space: nowrap;
}

.leader-angler {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--ink);
    text-decoration: none;
}

.leader-angler:hover strong { text-decoration: underline; }

.leader-angler strong {
    display: block;
    font-size: 14px;
    font-weight: 600;
}

.leader-angler small {
    display: block;
    color: var(--muted);
    font-size: 12px;
}

.improved-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 16px;
}

.improved-card {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 18px;
    border: 1px solid var(--line);
    background: var(--paper);
}

.improved-card-stats {
    display: flex;
    gap: 20px;
}

.improved-card-stats div {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.improved-card-stats span {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--muted);
}

.improved-card-stats strong { font-size: 15px; }

.improved-delta {
    align-self: flex-start;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.04em;
}

.improved-delta.is-up { background: rgba(47, 107, 58, 0.14); color: #2f6b3a; }
.improved-delta.is-down { background: rgba(168, 90, 60, 0.14); color: var(--rust); }

@media (max-width: 860px) {
    .board-podium { grid-template-columns: 1fr; }
    .board-you { padding: 16px 0; }
}
.challenge-board { list-style: none; margin: 14px 0 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.challenge-board li { display: grid; grid-template-columns: 22px 1fr auto; align-items: center; gap: 10px; padding: 6px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.challenge-board li:last-child { border-bottom: 0; }
.challenge-place { font-family: var(--font-display); font-size: 1rem; color: var(--gold-deep); }
.challenge-board a { color: var(--ink); text-decoration: none; }
.challenge-board a:hover { text-decoration: underline; }
.challenge-board strong { font-variant-numeric: tabular-nums; }
.challenge-card-foot { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.challenge-enter { display: flex; gap: 8px; align-items: center; flex: 1 1 220px; }
.challenge-enter .input { flex: 1 1 auto; min-width: 0; }
.challenge-withdraw { display: inline-flex; }

.market-category { text-transform: uppercase; font-size: 9px; letter-spacing: .16em; color: var(--gold-deep); }
.market-meta { display: flex; justify-content: space-between; align-items: center; margin-top: 12px; }
.market-meta strong { font-family: var(--font-display); font-size: 1.6rem; }
.sell-panel { margin-top: 24px; border: 1px solid var(--line); background: var(--paper); padding: 20px; }
.sell-panel h2 { font-family: var(--font-display); font-size: 1.6rem; text-transform: uppercase; margin-bottom: 8px; }
.sell-panel form { display: flex; flex-direction: column; gap: 12px; margin-top: 14px; }
.sell-panel label { display: flex; flex-direction: column; gap: 6px; font-size: 12px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.sell-panel input, .sell-panel textarea, .sell-panel select { font: inherit; padding: 10px 12px; border: 1px solid var(--line); background: var(--paper-2); color: var(--ink); }
.sell-panel input:focus-visible, .sell-panel textarea:focus-visible, .sell-panel select:focus-visible { outline: 2px solid var(--gold-deep); outline-offset: 1px; }
.listing-row { flex-direction: row !important; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.listing-row:last-of-type { border-bottom: 0; }
.listing-row span { font-size: 14px; }
.weather-card--full .pressure-guide { margin-top: 12px; }



.kids-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px,1fr)); gap: 18px; }
.kids-card { border: 1px solid var(--line); background: var(--paper); box-shadow: var(--shadow-soft); overflow: hidden; }
.kids-card-head { padding: 16px 18px; border-bottom: 1px solid var(--line); background: var(--paper-2); }
.kids-card-body { padding: 18px; display: flex; flex-direction: column; gap: 14px; }
.kids-steps, .kids-tips { display: flex; flex-direction: column; gap: 10px; padding-left: 18px; }
.kids-video { position: relative; width: 100%; padding-top: 56.25%; }
.kids-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.kids-note { margin-top: 24px; padding: 16px 18px; border: 1px solid var(--line); background: var(--paper); text-align: center; }



.app-hero { background: linear-gradient(135deg, var(--forest) 0%, #1a2f23 100%); color: var(--paper); padding: 80px 0; }
.app-hero-inner { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px,1fr)); gap: 40px; align-items: center; }
.app-hero-copy h1 { font-family: var(--font-display); font-size: clamp(3rem, 6vw, 5rem); text-transform: uppercase; margin: 12px 0; }
.app-hero-copy p { color: rgba(243,239,227,.8); max-width: 460px; }
.app-badges { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.app-badge { display: flex; align-items: center; gap: 12px; background: #000; color: #fff; padding: 10px 18px; border-radius: 12px; text-decoration: none; }
.app-badge span { display: flex; flex-direction: column; line-height: 1.1; }
.app-badge small { font-size: 9px; text-transform: uppercase; letter-spacing: .1em; }
.app-badge strong { font-size: 16px; }
/* A listing that does not exist yet must not look like a link. */
.app-badge--soon { cursor: default; opacity: .72; }
.app-badge-soon { align-self: center; font-style: normal; font-size: 9px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; padding: 3px 6px; border: 1px solid rgba(255,255,255,.45); border-radius: 4px; }
.app-phone-mock { width: min(280px, 80vw); margin: 0 auto; background: #111; border-radius: 36px; padding: 12px; box-shadow: 0 60px 120px -60px rgba(0,0,0,.9); }
.app-phone-screen { background: linear-gradient(180deg, #1a2f23 0%, #0f1913 100%); border-radius: 28px; overflow: hidden; }
.app-screen-header { text-align: center; padding: 16px; font-weight: 800; }
.app-screen-content { padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.app-screen-card { background: rgba(243,239,227,.08); border: 1px solid rgba(243,239,227,.12); padding: 12px; border-radius: 12px; }
.app-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px,1fr)); gap: 18px; }
.app-step { border: 1px solid var(--line); background: var(--paper); padding: 24px; text-align: center; box-shadow: var(--shadow-soft); }
.app-step-num { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; background: var(--gold); color: var(--forest); font-weight: 800; margin-bottom: 12px; }
.app-requirements { text-align: center; }
.app-req-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px,1fr)); gap: 14px; margin-top: 24px; }
.app-req-card { border: 1px solid var(--line); background: var(--paper); padding: 18px; box-shadow: var(--shadow-soft); }

/* What is inside — the six things the app does. */
.app-features { max-width: 1000px; margin: 0 auto; }
.app-features-lede { max-width: 62ch; margin: 8px 0 26px; color: var(--ink-soft); }
.app-feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.app-feature-card { position: relative; border: 1px solid var(--line); background: var(--paper); padding: 22px; box-shadow: var(--shadow-soft); }
.app-feature-num { display: block; margin-bottom: 8px; color: var(--gold); font-size: 10px; font-weight: 800; letter-spacing: .18em; }
.app-feature-card h3 { margin: 0 0 8px; font-size: 1.05rem; line-height: 1.25; }
.app-feature-card p { margin: 0; color: var(--ink-soft); font-size: .93rem; line-height: 1.6; }



.messages-layout { display: grid; grid-template-columns: 300px minmax(0,1fr); gap: 16px; align-items: start; }
.messages-sidebar, .messages-thread { border: 1px solid var(--line); background: var(--paper); box-shadow: var(--shadow-soft); }
.messages-sidebar-head { padding: 12px 14px; border-bottom: 1px solid var(--line); font-weight: 800; text-transform: uppercase; font-size: 9px; letter-spacing: .16em; }
.messages-item { display: flex; gap: 10px; padding: 10px 12px; border-bottom: 1px solid var(--line); text-decoration: none; color: inherit; }
.messages-item.is-active { background: var(--paper-2); }
.messages-item div { display: flex; flex-direction: column; min-width: 0; }
.messages-item div span { color: var(--muted); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.messages-new { padding: 12px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 8px; }
.messages-new form { display: flex; flex-direction: column; gap: 8px; }
.messages-new select, .messages-new textarea, .messages-thread-foot input { width: 100%; border: 1px solid var(--line); padding: 8px; font-family: var(--font-body); }
.messages-thread-head { padding: 12px 16px; border-bottom: 1px solid var(--line); }
.messages-author { display: flex; align-items: center; gap: 10px; }
.messages-thread-body { padding: 16px; display: flex; flex-direction: column; gap: 10px; min-height: 320px; max-height: 520px; overflow-y: auto; }
.message-bubble { max-width: 70%; padding: 10px 14px; border-radius: 16px; }
.message-bubble.is-in { align-self: flex-start; background: var(--paper-2); }
.message-bubble.is-out { align-self: flex-end; background: var(--forest); color: var(--paper); }
.message-bubble span { display: block; font-size: 11px; color: var(--muted); margin-top: 4px; }
.message-bubble.is-out span { color: rgba(243,239,227,.6); }
.messages-thread-foot { padding: 12px; border-top: 1px solid var(--line); }
.messages-thread-foot form { display: flex; gap: 8px; }
.messages-empty { padding: 40px; text-align: center; color: var(--muted); }



.spots-map-wrap { border: 1px solid var(--line); background: var(--paper); box-shadow: var(--shadow-soft); overflow: hidden; }
.spots-map { height: 520px; width: 100%; }
.spots-list { margin-top: 24px; }
.spots-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px,1fr)); gap: 12px; margin-top: 16px; }
.spot-card { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px; border: 1px solid var(--line); background: var(--paper); box-shadow: var(--shadow-soft); text-decoration: none; color: inherit; }
.spot-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lift); }



.badges-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px,1fr)); gap: 14px; }
.badge-card { border: 1px solid var(--line); background: var(--paper); padding: 18px; text-align: center; box-shadow: var(--shadow-soft); position: relative; }
.badge-icon { font-size: 2rem; margin-bottom: 10px; }
.badge-card.is-earned { border-color: var(--gold); }
.badge-earned { position: absolute; top: 10px; right: 10px; font-size: 9px; text-transform: uppercase; letter-spacing: .12em; color: var(--gold-deep); }



.diary-layout { display: grid; grid-template-columns: 320px minmax(0,1fr); gap: 18px; align-items: start; }
.diary-form, .diary-card { border: 1px solid var(--line); background: var(--paper); box-shadow: var(--shadow-soft); padding: 16px; }
.diary-form form { display: flex; flex-direction: column; gap: 10px; }
.diary-form label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; }
.diary-form input, .diary-form textarea { border: 1px solid var(--line); padding: 8px; font-family: var(--font-body); }
.diary-list { display: flex; flex-direction: column; gap: 12px; }
.diary-card-head { display: flex; justify-content: space-between; border-bottom: 1px solid var(--line); padding-bottom: 8px; margin-bottom: 10px; }
.diary-card-body { display: flex; flex-direction: column; gap: 6px; }



.weather-layout { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px,1fr)); gap: 16px; }
.weather-card { border: 1px solid var(--line); background: var(--paper); box-shadow: var(--shadow-soft); padding: 18px; display: flex; flex-direction: column; gap: 12px; }
.weather-card--full { grid-column: 1 / -1; }
.pressure-guide { display: flex; flex-direction: column; gap: 10px; }
.pressure-row { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid var(--line); }
.weather-tips { display: flex; flex-direction: column; gap: 8px; padding-left: 18px; list-style: disc; }



.goals-list { display: flex; flex-direction: column; gap: 12px; }
.goal-item { display: flex; gap: 16px; align-items: flex-start; border: 1px solid var(--line); background: var(--paper); padding: 16px 18px; box-shadow: var(--shadow-soft); }
.goal-num { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 50%; background: var(--gold); color: var(--forest); font-weight: 800; flex-shrink: 0; }
.goal-item a { color: var(--gold-deep); font-weight: 700; }



.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px,1fr)); gap: 14px; }
.stat-card { border: 1px solid var(--line); background: var(--paper); padding: 22px; text-align: center; box-shadow: var(--shadow-soft); display: flex; flex-direction: column; gap: 6px; }
.stat-card strong { font-family: var(--font-display); font-size: clamp(2rem, 4vw, 3rem); letter-spacing: .02em; }
.stat-card span { color: var(--muted); text-transform: uppercase; font-size: 9px; letter-spacing: .16em; }

/* Accessibility: readable muted text on cream, and visible focus on every new control. */
.muted, .muted-note { color: #3f4a3d; }
.notif-bell:focus-visible, .header-search-link:focus-visible, .badge-pill:focus-visible,
.venue-card:focus-visible, .library-card a:focus-visible, .market-card-photo:focus-visible,
.profile-gallery a:focus-visible, .notif-item a:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.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; }
@media (prefers-reduced-motion: reduce) {
    .venue-card { transition: none; }
    .venue-card:hover { transform: none; }
}
@media (max-width: 640px) {
    .profile-gallery { grid-template-columns: repeat(3, 1fr); }
    .weather-now-main strong { font-size: 2.2rem; }
}

.privacy-body { max-width: 78ch; }
.privacy-body h2 { font-family: var(--font-display); text-transform: uppercase; font-size: 1.4rem; margin: 26px 0 10px; }
.privacy-body h2:first-child { margin-top: 0; }
.privacy-body ul { margin: 0 0 8px; padding-left: 20px; display: grid; gap: 8px; }
.privacy-body li { font-size: 14px; color: #3f4a3d; }
.privacy-body p { font-size: 14px; }
.privacy-body code { background: var(--paper-2); padding: 1px 5px; border-radius: 3px; font-size: 13px; }

/* =========================================================
   Settings & account — owner branding + member self-service
   ========================================================= */

.settings-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: clamp(24px, 3vw, 40px);
    align-items: start;
}

.settings-form {
    display: block;
    min-width: 0;
}

.settings-form-head {
    margin-bottom: 20px;
}

.settings-form-head h2 {
    margin-top: 6px;
}

.settings-form-head p {
    margin-top: 8px;
}

.settings-field {
    display: flex;
    flex-direction: column;
    gap: 7px;
    margin-bottom: 18px;
    min-width: 0;
}

.settings-field > label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--ink-soft);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .1em;
    line-height: 1.3;
    text-transform: uppercase;
}

.settings-field > label svg {
    flex: 0 0 auto;
}

.settings-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    margin-bottom: 18px;
}

.settings-row .settings-field {
    margin-bottom: 0;
}

.settings-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 4px;
}

.field-hint-row {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 6px 16px;
}

.char-count {
    color: var(--muted);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .04em;
    white-space: nowrap;
}

.settings-note {
    color: var(--muted);
    font-size: 11px;
    line-height: 1.6;
}

.settings-check {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: var(--ink-soft);
    font-size: 12px;
    line-height: 1.5;
    cursor: pointer;
}

.settings-check input {
    flex: 0 0 auto;
    width: 16px;
    height: 16px;
    margin: 2px 0 0;
    accent-color: var(--forest);
}

.settings-logo-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 18px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--line);
}

.settings-logo-current {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}

.settings-logo-current strong {
    display: block;
    font-size: 13px;
}

.settings-logo-current small {
    display: block;
    color: var(--muted);
    font-size: 11px;
}

.settings-logo-preview {
    width: 64px;
    height: 64px;
    flex: 0 0 auto;
    padding: 6px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--paper-2);
    object-fit: contain;
}

/* Owner live preview card */
.settings-preview {
    position: sticky;
    top: calc(var(--header-h) + 24px);
    display: flex;
    flex-direction: column;
    gap: 14px;
    min-width: 0;
}

.preview-card {
    overflow: hidden;
    border: 1px solid var(--line);
    background: var(--paper);
    box-shadow: var(--shadow-soft);
}

.preview-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 18px;
    border-bottom: 1px solid var(--line);
}

.preview-logo {
    width: 44px;
    height: 44px;
    flex: 0 0 auto;
    object-fit: contain;
}

.preview-brand-copy {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.preview-brand-copy strong {
    font-size: 14px;
    line-height: 1.2;
}

.preview-brand-copy em {
    color: var(--gold-deep);
    font-style: normal;
}

.preview-brand-copy small {
    color: var(--muted);
    font-size: 11px;
}

.preview-body {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 20px 18px;
    background: var(--forest);
    color: var(--paper);
}

.preview-kicker {
    color: var(--gold);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .18em;
    text-transform: uppercase;
}

.preview-wordmark {
    font-family: var(--font-display);
    font-size: 2rem;
    letter-spacing: .015em;
    line-height: .95;
    text-transform: uppercase;
}

.preview-wordmark em {
    color: var(--gold);
    font-style: normal;
}

.preview-motto {
    color: rgba(243, 239, 227, .68);
    font-size: 11px;
    font-style: italic;
    line-height: 1.55;
}

/* Member account preview (dark card in the rail) */
.account-preview {
    border-color: var(--forest);
    background: var(--forest);
    color: var(--paper);
}

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

.account-preview-id {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 14px;
    min-width: 0;
}

.account-preview-name {
    display: block;
    font-family: var(--font-display);
    font-size: 1.9rem;
    font-weight: 400;
    letter-spacing: .015em;
    line-height: 1;
    text-transform: uppercase;
    overflow-wrap: anywhere;
}

.account-preview-handle {
    display: block;
    margin-top: 5px;
    color: rgba(243, 239, 227, .7);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.account-preview-bio {
    margin-top: 12px;
    color: rgba(243, 239, 227, .82);
    font-size: 12px;
    line-height: 1.65;
}

.account-preview-crew {
    display: inline-block;
    margin-top: 14px;
    color: var(--gold);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .14em;
    text-transform: uppercase;
}

@media (max-width: 900px) {
    .settings-layout {
        grid-template-columns: minmax(0, 1fr);
    }

    .settings-preview {
        position: static;
    }
}

@media (max-width: 560px) {
    .settings-row {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* =========================================================
   Admin control panel, newsletters and bans
   ========================================================= */

.admin-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 18px;
}

.admin-card {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 26px;
    border: 1px solid var(--line);
    background: var(--paper);
    box-shadow: var(--shadow-soft);
    color: var(--ink);
    text-decoration: none;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.admin-card:hover {
    transform: translateY(-2px);
    border-color: var(--gold);
    box-shadow: var(--shadow);
}

.admin-card-icon {
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--paper-2);
    color: var(--gold-deep);
}

.admin-card-icon .nav-ico {
    width: 22px;
    height: 22px;
}

.admin-card h2 {
    margin: 0;
    font-family: var(--font-display);
    font-size: 1.9rem;
    font-weight: 400;
    letter-spacing: .015em;
    line-height: .95;
    text-transform: uppercase;
}

.admin-card p {
    color: var(--muted);
    font-size: 13px;
    line-height: 1.6;
}

.admin-card .button {
    margin-top: auto;
    align-self: flex-start;
}

.admin-table-wrap {
    overflow-x: auto;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.admin-table th {
    padding: 10px 12px;
    border-bottom: 1px solid var(--line);
    color: var(--muted);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .14em;
    text-align: left;
    text-transform: uppercase;
    white-space: nowrap;
}

.admin-table td {
    padding: 12px;
    border-bottom: 1px solid var(--line);
    vertical-align: top;
}

.admin-table tr:last-child td {
    border-bottom: 0;
}

.admin-table td small {
    display: block;
    color: var(--muted);
    font-size: 11px;
}

.admin-table a {
    font-weight: 700;
}

/* The members table carries a lot in a narrow row: address, device, place, when.
   It reads as columns of pairs rather than paragraphs, so every cell is a strong
   value over a small label. */
.admin-table--members td {
    white-space: nowrap;
}

.admin-table--members td:first-child {
    white-space: normal;
    min-width: 150px;
}

.admin-table--members .pill {
    margin-left: 6px;
}

.admin-row-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.admin-row-actions form {
    display: inline-flex;
    margin: 0;
}

.admin-row-history {
    margin-top: 8px;
    font-size: 11px;
}

.admin-row-history summary {
    cursor: pointer;
    color: var(--muted);
    font-weight: 700;
}

.admin-row-history summary:hover {
    color: var(--rust);
}

.admin-row-history ul {
    margin: 8px 0 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 6px;
    white-space: normal;
    min-width: 260px;
}

.admin-row-history li {
    padding: 6px 8px;
    border-left: 2px solid var(--line);
    line-height: 1.5;
}

.admin-row-history .muted-note {
    display: inline;
    margin-left: 6px;
}

/* The PIN box is four digits, so it is the width of four digits and not a
   full-width field that looks like it wants a paragraph. */
.pin-input {
    max-width: 160px;
    font-family: var(--font-mono, ui-monospace, monospace);
    font-size: 1.5rem;
    letter-spacing: 0.5em;
    text-align: center;
    padding-left: 0.5em;
}

.pill {
    display: inline-block;
    padding: 3px 9px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
    white-space: nowrap;
}

.pill--active {
    background: rgba(155, 66, 38, .12);
    color: var(--rust);
}

.pill--expired {
    background: rgba(74, 84, 71, .12);
    color: var(--muted);
}

.pill--unread {
    background: var(--gold);
    color: var(--forest);
}

.button--small {
    padding: 8px 14px;
    font-size: 11px;
}

.mono {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.good-note {
    color: var(--gold-deep);
    font-size: 13px;
    font-weight: 600;
}

.newsletter-editor {
    min-height: 280px;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 13px;
    line-height: 1.6;
}

.newsletter-list {
    display: flex;
    flex-direction: column;
}

.newsletter-item {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    padding: 20px 0;
    border-top: 1px solid var(--line);
    color: var(--ink);
    text-decoration: none;
}

.newsletter-item:first-child {
    border-top: 0;
    padding-top: 0;
}

.newsletter-item:hover h3 {
    color: var(--gold-deep);
}

.newsletter-item-main {
    min-width: 0;
}

.newsletter-item-top {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 6px;
}

.newsletter-item h3 {
    margin: 0 0 6px;
    font-size: 1.15rem;
    font-weight: 800;
    line-height: 1.2;
    transition: color .15s ease;
}

.newsletter-item p {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.6;
}

.newsletter-item .text-link {
    flex: 0 0 auto;
    white-space: nowrap;
}

.newsletter-item.is-unread h3::after {
    content: "";
    display: inline-block;
    width: 7px;
    height: 7px;
    margin-left: 8px;
    border-radius: 50%;
    background: var(--gold);
    vertical-align: middle;
}

.newsletter-item-main {
    display: block;
    flex: 1 1 auto;
    color: inherit;
    text-decoration: none;
}

.newsletter-item-side {
    display: flex;
    flex: 0 0 auto;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
}

.newsletter-reactions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.reaction-button {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 34px;
    padding: 6px 12px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--paper);
    color: var(--ink-soft);
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: border-color .15s ease, color .15s ease, background .15s ease;
}

.reaction-button:hover {
    border-color: var(--gold);
    color: var(--ink);
}

.reaction-button.is-active {
    border-color: var(--gold);
    background: rgba(201, 168, 106, .18);
    color: var(--ink);
}

.reaction-button .reaction-count {
    font-variant-numeric: tabular-nums;
    opacity: .75;
}

.reaction-tally {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    font-weight: 700;
    color: var(--muted);
}

.newsletter-reactions--large .reaction-button {
    min-height: 42px;
    padding: 8px 18px;
    font-size: 13px;
}

.newsletter-react {
    margin-top: 20px;
    padding: 18px 20px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--paper);
}

.newsletter-react .muted-note {
    margin: 10px 0 0;
    font-size: 12px;
}

@media (max-width: 720px) {
    .newsletter-item {
        flex-direction: column;
        gap: 12px;
    }

    .newsletter-item-side {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        width: 100%;
    }
}

.newsletter-body {
    color: var(--ink-soft);
    font-size: 14px;
    line-height: 1.8;
}

.newsletter-body h2,
.newsletter-body h3,
.newsletter-body h4 {
    margin: 26px 0 10px;
    font-family: var(--font-display);
    font-weight: 400;
    letter-spacing: .02em;
    line-height: 1;
    text-transform: uppercase;
}

.newsletter-body h2 { font-size: 1.7rem; }
.newsletter-body h3 { font-size: 1.35rem; }
.newsletter-body h4 { font-size: 1.1rem; }

.newsletter-body p { margin: 0 0 14px; }

.newsletter-body a { color: var(--gold-deep); text-decoration: underline; }

.newsletter-body ul,
.newsletter-body ol { margin: 0 0 14px; padding-left: 22px; }

.newsletter-body li { margin-bottom: 6px; }

.newsletter-body blockquote {
    margin: 0 0 14px;
    padding: 6px 16px;
    border-left: 3px solid var(--gold);
    color: var(--muted);
}

.newsletter-body hr {
    margin: 22px 0;
    border: 0;
    border-top: 1px solid var(--line);
}

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

@media (max-width: 560px) {
    .newsletter-item {
        flex-direction: column;
        gap: 8px;
    }
}

/* =========================================================
   Floating staff control panel — visible on every page
   ========================================================= */

.staff-cp {
    position: fixed;
    right: 22px;
    bottom: 84px;
    z-index: 130;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
}

.staff-cp-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border: 1px solid rgba(201, 168, 106, .55);
    border-radius: 999px;
    background: rgba(12, 21, 14, .94);
    color: var(--gold);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
    cursor: pointer;
    box-shadow: var(--shadow);
    backdrop-filter: blur(6px);
    transition: transform .18s ease, background .18s ease, border-color .18s ease;
}

.staff-cp-toggle:hover {
    transform: translateY(-2px);
    border-color: var(--gold);
    background: rgba(12, 21, 14, .99);
}

.staff-cp-ico {
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    flex: 0 0 auto;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--paper-2);
    color: var(--gold-deep);
}

.staff-cp-ico .nav-ico {
    width: 15px;
    height: 15px;
}

.staff-cp-toggle > .staff-cp-ico {
    width: 18px;
    height: 18px;
    border: 0;
    background: transparent;
    color: var(--gold);
}

.staff-cp-toggle > .staff-cp-ico .nav-ico {
    width: 16px;
    height: 16px;
}

.staff-cp-panel {
    width: 268px;
    max-height: min(70vh, 520px);
    overflow-y: auto;
    padding: 14px;
    border: 1px solid var(--line);
    background: var(--paper);
    color: var(--ink);
    box-shadow: var(--shadow);
    animation: staff-cp-in .18s ease;
}

@keyframes staff-cp-in {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

.staff-cp-head {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 4px 6px 12px;
    border-bottom: 1px solid var(--line);
    margin-bottom: 8px;
}

.staff-cp-kicker {
    color: var(--gold-deep);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.staff-cp-head strong {
    font-size: 13px;
    line-height: 1.2;
}

.staff-cp-role {
    color: var(--muted);
    font-size: 11px;
}

.staff-cp-links {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.staff-cp-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px;
    border-radius: var(--radius);
    color: var(--ink-soft);
    text-decoration: none;
    transition: background .15s ease, color .15s ease;
}

.staff-cp-link:hover {
    background: var(--paper-2);
    color: var(--ink);
}

.staff-cp-copy {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

/* How many tickets are waiting. Only shown when there are some, so a quiet desk
   does not carry a permanent zero. */
.staff-cp-badge {
    flex: 0 0 auto;
    margin-left: auto;
    min-width: 20px;
    padding: 2px 6px;
    border-radius: 999px;
    background: var(--rust);
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    line-height: 1.5;
    text-align: center;
}

.staff-cp-copy strong {
    font-size: 12px;
    font-weight: 700;
    line-height: 1.2;
}

.staff-cp-copy small {
    color: var(--muted);
    font-size: 11px;
    line-height: 1.3;
}

.staff-cp-note {
    margin: 10px 6px 2px;
    padding-top: 10px;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: 11px;
    line-height: 1.5;
}

@media (max-width: 560px) {
    .staff-cp {
        right: 14px;
        bottom: 74px;
    }

    .staff-cp-label {
        display: none;
    }

    .staff-cp-toggle {
        padding: 12px;
    }

    .staff-cp-panel {
        width: min(268px, calc(100vw - 28px));
    }
}

/* ---------- Paid advertising ---------- */

// The rate list: six prices, read at a glance. Two columns on a phone, three on a
// laptop, because a price list nobody can scan is a price list nobody buys.
.advert-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 14px;
    margin-top: 6px;
}

.advert-tier {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 18px;
    border: 1px solid var(--line);
    background: var(--paper-2);
}

.advert-tier-days {
    color: var(--muted);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.advert-tier-price {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 400;
    line-height: 1;
    color: var(--gold-deep);
}

.advert-tier p {
    margin: 0;
    font-size: 12px;
    line-height: 1.6;
}

// The four steps, numbered by the list itself rather than by hand.
.advert-steps {
    margin: 0;
    padding-left: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    font-size: 14px;
    line-height: 1.7;
}

.advert-steps li::marker {
    color: var(--gold-deep);
    font-weight: 800;
}

// A running advert on the public page.
.advert-card {
    display: flex;
    flex-direction: column;
    border: 1px solid var(--line);
    background: var(--paper);
    box-shadow: var(--shadow-soft);
}

.advert-card-photo {
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: var(--paper-2);
}

.advert-card-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.advert-card-body {
    padding: 16px 18px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1 1 auto;
}

.advert-card-tier {
    color: var(--muted);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.advert-card-body h3 {
    margin: 0;
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: 400;
    line-height: 1.1;
}

.advert-card-body p {
    margin: 0;
    font-size: 13px;
    line-height: 1.65;
}

.advert-card-days {
    margin-top: auto !important;
    font-size: 11px !important;
}

.advert-card-foot {
    padding: 12px 18px;
    border-top: 1px solid var(--line);
}

// What a member has asked for, with the state it is in.
.advert-list {
    list-style: none;
    margin: 0 0 22px;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.advert-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 0;
    border-top: 1px solid var(--line);
}

.advert-row-main {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.advert-pill {
    display: inline-flex;
    align-items: center;
    padding: 3px 9px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
    white-space: nowrap;
}

.advert-pill.is-pending {
    background: rgba(201, 168, 106, .18);
    color: var(--gold-deep);
}

.advert-pill.is-live {
    background: rgba(47, 122, 78, .16);
    color: #1f5c3a;
}

.advert-pill.is-ended {
    background: rgba(160, 62, 48, .14);
    color: #8c3a2c;
}

.advert-pill.is-stopped {
    background: rgba(90, 90, 90, .14);
    color: #555;
}

// The counts across the top of the advertising desk.
.advert-counts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 10px;
    margin-bottom: 18px;
}

.advert-count {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 14px 16px;
    border: 1px solid var(--line);
    background: var(--paper);
    text-decoration: none;
    color: var(--ink);
}

.advert-count strong {
    font-family: var(--font-display);
    font-size: 1.7rem;
    font-weight: 400;
    line-height: 1;
}

.advert-count span {
    color: var(--muted);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.advert-count.is-on {
    border-color: var(--gold);
    background: var(--paper-2);
    box-shadow: var(--shadow-soft);
}

/* ---------- Marketplace, closed for work ---------- */

.market-closed {
    padding: clamp(28px, 4vw, 48px);
    border: 1px solid var(--line);
    background: var(--paper-2);
    text-align: center;
    margin-bottom: 22px;
}

.market-closed-kicker {
    display: block;
    margin-bottom: 10px;
    color: var(--muted);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .18em;
    text-transform: uppercase;
}

.market-closed h2 {
    margin: 0 auto 10px;
    max-width: 22ch;
    font-family: var(--font-display);
    font-size: clamp(1.4rem, 3vw, 2.1rem);
    font-weight: 400;
    line-height: 1.1;
    text-transform: uppercase;
    letter-spacing: .02em;
}

.market-closed p {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
}

.market-staff {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 18px;
    padding: 14px 16px;
    border: 1px dashed var(--line);
    background: var(--paper);
}

.market-staff p {
    margin: 4px 0 0;
    font-size: 12px;
}

/* ---------------------------------------------------------------
   Verified sellers
   --------------------------------------------------------------- */

.seller-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-left: 6px;
    padding: 2px 8px;
    border: 1px solid var(--line);
    border-radius: 999px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
    white-space: nowrap;
    vertical-align: middle;
    color: var(--ink-soft);
    background: rgba(0, 0, 0, .03);
}

.seller-badge--yes {
    border-color: rgba(31, 92, 58, .35);
    background: rgba(31, 92, 58, .1);
    color: #1f5c3a;
}

.seller-badge--wait {
    border-color: rgba(201, 168, 106, .5);
    background: rgba(201, 168, 106, .16);
    color: var(--gold-deep);
}

/* The honest warning. Not an alarm — a list of what is actually true. */
.seller-warnings {
    margin: 14px 0 18px;
    padding: 14px 18px 14px 34px;
    border: 1px solid var(--line);
    border-left: 3px solid var(--gold);
    background: var(--paper);
    list-style: disc;
}

.seller-warnings li {
    margin: 4px 0;
    font-size: 13px;
    line-height: 1.55;
}

.seller-standing {
    display: flex;
    flex-wrap: wrap;
    gap: 26px;
    margin: 18px 0 6px;
    padding: 16px 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.seller-standing > div {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.seller-standing-num {
    font-family: var(--font-display);
    font-size: 1.5rem;
    line-height: 1;
    color: var(--forest);
}

.seller-standing-label {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--ink-soft);
}

.seller-steps {
    margin: 0;
    padding-left: 22px;
}

.seller-steps li {
    margin: 8px 0;
    font-size: 14px;
    line-height: 1.5;
}

.seller-steps li::marker {
    color: var(--gold-deep);
    font-weight: 800;
}

.seller-focus {
    display: grid;
    grid-template-columns: minmax(0, 200px) minmax(0, 1fr);
    gap: 18px;
    align-items: start;
}

.seller-focus-photo img {
    display: block;
    width: 100%;
    border-radius: 10px;
    border: 1px solid var(--line);
}

.seller-checks {
    margin: 0 0 16px;
    padding: 14px 16px;
    border: 1px solid var(--line);
    background: var(--paper);
}

.seller-checks legend {
    padding: 0 6px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--ink-soft);
}

.seller-checks .settings-check {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 6px 0;
    font-size: 13px;
}

@media (max-width: 640px) {
    .seller-focus {
        grid-template-columns: 1fr;
    }

    .seller-standing {
        gap: 18px;
    }
}
/* The size pill on a download badge — it is a real download, not a listing. */
.app-badge-meta {
    align-self: center;
    font-style: normal;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
    padding: 3px 6px;
    border: 1px solid rgba(255, 255, 255, .45);
    border-radius: 4px;
}
/* ---------------------------------------------------------------
   The photo wall
   --------------------------------------------------------------- */

.gallery-form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    margin-bottom: 16px;
}

.gallery-form .settings-field {
    margin-bottom: 0;
}

.gallery-join {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.gallery-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin: 24px 0 16px;
}

.gallery-count {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--ink-soft);
}

.gallery-tabs {
    display: inline-flex;
    border: 1px solid var(--line);
    background: var(--paper);
}

.gallery-tab {
    padding: 7px 14px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--ink-soft);
    text-decoration: none;
}

.gallery-tab.is-on {
    background: var(--forest);
    color: var(--paper);
}

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

.gallery-card {
    display: flex;
    flex-direction: column;
    border: 1px solid var(--line);
    background: var(--paper);
    box-shadow: var(--shadow-soft);
    overflow: hidden;
}

.gallery-card-photo {
    display: block;
    aspect-ratio: 4 / 3;
    background: rgba(0, 0, 0, .05);
}

.gallery-card-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .5s ease;
}

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

.gallery-card-body {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 14px;
    flex: 1 1 auto;
}

.gallery-card-by,
.gallery-by,
.gallery-comment-by {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    font-size: 12px;
    color: var(--ink-soft);
}

.gallery-card-by a,
.gallery-by a,
.gallery-comment-by a {
    font-weight: 800;
    color: var(--ink);
    text-decoration: none;
}

.gallery-card-caption {
    margin: 0;
    font-size: 13px;
    line-height: 1.5;
    color: var(--ink);
}

.gallery-card-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: auto;
    padding-top: 8px;
    border-top: 1px solid var(--line);
}

.gallery-like {
    margin: 0;
}

.gallery-like-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: 0;
    background: none;
    padding: 4px 0;
    font: inherit;
    font-size: 12px;
    font-weight: 800;
    color: var(--ink-soft);
    cursor: pointer;
}

.gallery-like-btn.is-on {
    color: var(--gold-deep);
}

.gallery-like-btn:disabled {
    cursor: not-allowed;
    opacity: .6;
}

.gallery-comment-count {
    font-size: 11px;
    color: var(--ink-soft);
    text-decoration: none;
}

.gallery-comment-count:hover {
    color: var(--gold-deep);
    text-decoration: underline;
}

/* One photo, big. */
.gallery-photo {
    margin: 0 0 18px;
    background: rgba(0, 0, 0, .06);
    border: 1px solid var(--line);
}

.gallery-photo img {
    display: block;
    width: 100%;
    height: auto;
}

.gallery-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-top: 16px;
}

.gallery-comments {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.gallery-comment {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.gallery-comment > div {
    min-width: 0;
}

.gallery-comment-body {
    margin: 4px 0 0;
    font-size: 14px;
    line-height: 1.6;
    overflow-wrap: anywhere;
}

@media (max-width: 560px) {
    .gallery-grid {
        grid-template-columns: 1fr;
    }
}
/* The fee on a verification is a yes or a no, and either answer can be changed. */
.seller-fee-toggle {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin: 0 0 16px;
    padding: 12px 14px;
    border: 1px solid var(--line);
    background: rgba(0, 0, 0, .02);
}

.seller-fee-state {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .16em;
    text-transform: uppercase;
}

.seller-fee-state.is-paid {
    color: var(--gold-deep);
}

.seller-fee-state.is-unpaid {
    color: var(--ink-soft);
}

.seller-fee-toggle .inline-form {
    margin: 0;
}
/* Reporting a photo: a disclosure, so the rail does not fill with a form. */
.gallery-report {
    border-top: 1px solid var(--line);
    margin-top: 4px;
    padding-top: 12px;
}

.gallery-report summary {
    cursor: pointer;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--ink-soft);
}

.gallery-report summary:hover {
    color: var(--gold-deep);
}

.gallery-report .stacked-form {
    margin-top: 12px;
}

/* --------------------------------------------------------- crew battles
   Two crews, one scoreboard. The bar is the whole idea: a number on each side
   is a score, but a bar is a race, and a race is what a member came to see. */

.battle-scoreboard {
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: var(--paper);
    box-shadow: var(--shadow-soft);
    padding: clamp(20px, 3vw, 34px);
}

.battle-score-head {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    align-items: flex-start;
    justify-content: space-between;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--line);
}

.battle-score-head h2 {
    margin: 6px 0 4px;
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 3vw, 2.1rem);
    line-height: 1.05;
}

.battle-state {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 11px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: var(--paper-2);
    color: var(--muted);
    font-size: .74rem;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    white-space: nowrap;
}

.battle-state--live {
    border-color: rgba(125, 144, 121, .5);
    background: rgba(125, 144, 121, .14);
    color: var(--ink-soft);
}

.battle-state--ended {
    border-color: rgba(184, 147, 79, .55);
    background: rgba(184, 147, 79, .16);
    color: var(--gold-deep);
}

.battle-state--final {
    border-color: var(--forest);
    background: var(--forest);
    color: var(--paper);
}

.battle-sides {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(12px, 2vw, 22px);
    margin: 22px 0 16px;
}

.battle-side {
    position: relative;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--cream);
    padding: 18px;
}

.battle-side.is-mine {
    border-color: var(--gold-deep);
    box-shadow: inset 0 0 0 1px rgba(111, 83, 35, .28);
}

.battle-crew {
    display: block;
    font-size: .74rem;
    font-weight: 700;
    letter-spacing: .09em;
    text-transform: uppercase;
    color: var(--muted);
}

.battle-yours {
    display: inline-block;
    margin-top: 4px;
    padding: 2px 8px;
    border-radius: 999px;
    background: var(--gold-deep);
    color: var(--paper);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.battle-total {
    display: block;
    margin: 10px 0 12px;
    font-family: var(--font-display);
    font-size: clamp(1.7rem, 4vw, 2.4rem);
    line-height: 1;
    color: var(--ink);
}

.battle-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin: 0;
}

.battle-stats div {
    border-top: 1px solid var(--line);
    padding-top: 8px;
}

.battle-stats dt {
    font-size: 11px;
    letter-spacing: .07em;
    text-transform: uppercase;
    color: var(--muted);
}

.battle-stats dd {
    margin: 2px 0 0;
    font-weight: 700;
    font-size: .95rem;
}

.battle-bar {
    display: flex;
    height: 9px;
    border-radius: 999px;
    overflow: hidden;
    background: var(--paper-3);
}

.battle-bar-a {
    background: linear-gradient(90deg, var(--gold-deep), var(--gold));
    transition: width .5s ease;
}

.battle-bar-b {
    background: linear-gradient(90deg, var(--forest-3), var(--forest));
    transition: width .5s ease;
}

.battle-verdict {
    margin: 14px 0 0;
    text-align: center;
    font-size: 1rem;
    color: var(--ink-soft);
}

.battle-catches {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(14px, 2vw, 26px);
}

.battle-catch-col h3 {
    margin: 0 0 10px;
    font-size: .78rem;
    letter-spacing: .09em;
    text-transform: uppercase;
    color: var(--muted);
}

.battle-catch-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 8px;
}

.battle-catch-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--paper-2);
}

.battle-catch-what {
    display: grid;
    gap: 1px;
    min-width: 0;
}

.battle-catch-weight {
    margin-left: auto;
    font-weight: 700;
    white-space: nowrap;
}

.battle-rules {
    list-style: none;
    margin: 0 0 12px;
    padding: 0;
    display: grid;
    gap: 10px;
}

.battle-rules li {
    display: grid;
    gap: 2px;
    border-left: 2px solid var(--gold);
    padding-left: 12px;
}

.battle-rules strong {
    font-size: .95rem;
}

.battle-rules span {
    font-size: .86rem;
    color: var(--muted);
}

.battle-list,
.battle-admin-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 10px;
}

.battle-list a {
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 12px;
    align-items: center;
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--paper-2);
    color: inherit;
    text-decoration: none;
    transition: border-color .16s ease, transform .16s ease;
}

.battle-list a:hover {
    border-color: var(--gold-deep);
    transform: translateY(-1px);
}

.battle-list-title {
    font-weight: 700;
}

.battle-list-line {
    font-size: .9rem;
    color: var(--ink-soft);
    white-space: nowrap;
}

.battle-admin-list li {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
}

.battle-admin-list li:last-child {
    border-bottom: 0;
}

.battle-admin-main {
    display: grid;
    gap: 2px;
    min-width: 0;
}

.battle-admin-main a {
    font-weight: 700;
}

.battle-admin-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.battle-admin-actions form {
    margin: 0;
}

.club-empty--tight {
    padding: 14px 0;
    margin: 0;
}

@media (max-width: 760px) {
    .battle-sides,
    .battle-catches {
        grid-template-columns: 1fr;
    }

    .battle-list a {
        grid-template-columns: 1fr;
        gap: 6px;
    }
}
