/* =========================================================
   Pro Carp Community × Bank Life Lads — base
   ========================================================= */

:root {
    color-scheme: light;
    --ink: #121710;
    --ink-rgb: 24, 40, 28;
    --ink-soft: #343b33;
    --muted: #4a5447;
    --forest: #0c150e;
    --forest-2: #142218;
    --forest-3: #1c3021;
    --cream: #f3efe3;
    --paper: #fbf8ef;
    --paper-2: #f6f1e4;
    --gold: #c9a86a;
    --gold-light: #e0c58d;
    --gold-deep: #7c5f2c;
    --rust: #9b4226;
    --sage: #82977f;
    --line: #d8d0bd;
    --line-dark: rgba(240, 232, 213, .15);
    --white-line: rgba(255, 255, 255, .12);
    --shadow: 0 28px 70px -34px rgba(15, 24, 16, .45);
    --shadow-soft: 0 16px 40px -26px rgba(15, 24, 16, .32);
    --font-display: 'Bebas Neue', 'Arial Narrow', Impact, sans-serif;
    --font-body: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --radius: 4px;
    --radius-lg: 8px;
    --header-h: 72px;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 90px;
    -webkit-text-size-adjust: 100%;
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
}

body {
    margin: 0;
    background: var(--cream);
    color: var(--ink);
    font-family: var(--font-body);
    font-size: 15px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
    min-width: 0;
}

::selection {
    background: var(--gold);
    color: var(--forest);
}

h1,
h2,
h3,
h4,
p,
figure,
dl,
dd,
ol,
ul {
    margin: 0;
}

ol,
ul {
    padding: 0;
    list-style: none;
}

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

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
select,
textarea {
    font: inherit;
    color: inherit;
}

button {
    cursor: pointer;
}

fieldset {
    border: 0;
    margin: 0;
    padding: 0;
}

[hidden] {
    display: none !important;
}

:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 3px;
}

.skip-link {
    position: fixed;
    top: 12px;
    left: 12px;
    z-index: 500;
    padding: 10px 16px;
    background: var(--gold);
    color: var(--forest);
    font-weight: 700;
    transform: translateY(-150%);
    transition: transform .2s ease;
}

.skip-link:focus {
    transform: translateY(0);
}

.container {
    width: min(100% - clamp(24px, 4vw, 56px), 1260px);
    margin-inline: auto;
    max-width: 100%;
    box-sizing: border-box;
}

.mono {
    font-variant-numeric: tabular-nums;
    letter-spacing: .12em;
}

.muted {
    color: var(--muted);
}

/* ---------- Typography helpers ---------- */

.section-kicker {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--gold-deep);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .2em;
    line-height: 1.4;
    text-transform: uppercase;
}

.section-kicker::before {
    content: "";
    width: 22px;
    height: 1px;
    background: currentColor;
}

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

.text-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border-bottom: 1px solid var(--ink);
    padding-bottom: 2px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
    transition: color .2s ease, border-color .2s ease;
}

.text-link span {
    transition: transform .2s ease;
}

.text-link:hover {
    color: var(--gold-deep);
    border-color: var(--gold-deep);
}

.text-link:hover span {
    transform: translateX(4px);
}

/* ---------- Buttons ---------- */

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 48px;
    padding: 0 28px;
    border: 1px solid transparent;
    border-radius: 999px;
    background: transparent;
    color: var(--ink);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .18em;
    line-height: 1;
    text-align: center;
    text-transform: uppercase;
    transition: background .25s ease, color .25s ease, border-color .25s ease, transform .25s ease, box-shadow .25s ease;
    box-shadow: 0 0 0 rgba(0,0,0,0);
}

.button:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 18px 40px -18px rgba(12, 21, 14, .95);
}

.button--gold {
    background: linear-gradient(90deg, var(--gold) 0%, var(--gold-light) 100%);
    border-color: var(--gold-light);
    color: var(--forest);
    box-shadow: 0 18px 44px -22px rgba(201, 168, 106, .95);
}

.button--gold:hover {
    background: linear-gradient(90deg, var(--gold-light) 0%, var(--gold) 100%);
    border-color: var(--gold-light);
    box-shadow: 0 22px 50px -18px rgba(201, 168, 106, 1);
}

.button--dark {
    background: var(--forest);
    border-color: var(--forest);
    color: var(--paper);
}

.button--dark:hover {
    background: var(--forest-3);
    border-color: var(--forest-3);
}

.button--outline {
    border-color: rgba(243, 239, 227, .38);
    color: var(--paper);
}

.button--outline:hover {
    border-color: var(--paper);
    background: rgba(255, 255, 255, .06);
}

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

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

.button--ghost {
    border-color: var(--line-dark);
    color: var(--paper);
}

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

.button--gps {
    background: var(--gold);
    border-color: var(--gold);
    color: var(--forest);
}

.button--gps:hover {
    background: var(--gold-light);
}

.button--small {
    min-height: 40px;
    padding: 0 18px;
    font-size: 11px;
}

.button--large {
    min-height: 56px;
    padding: 0 30px;
    font-size: 12px;
}

.button--full {
    width: 100%;
}

.button:disabled {
    cursor: wait;
    opacity: .62;
    transform: none;
}

/* ---------- Header ---------- */

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(10, 18, 12, .96);
    border-bottom: 1px solid rgba(240, 232, 213, .12);
    color: var(--paper);
    backdrop-filter: blur(16px);
}

.header-inner {
    display: flex;
    align-items: center;
    gap: 28px;
    width: min(100% - 40px, 1380px);
    min-height: var(--header-h);
    margin-inline: auto;
    padding: 6px 0;
}

.brand {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 13px;
}

.brand img {
    width: 56px;
    height: 56px;
    display: block;
    object-fit: contain;
    filter: drop-shadow(0 12px 28px rgba(0, 0, 0, .4));
    transition: transform .4s ease;
}

.brand:hover img {
    transform: rotate(-8deg);
}

.brand-copy {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.brand-name {
    font-family: var(--font-display);
    font-size: 1.52rem;
    letter-spacing: .07em;
    line-height: 1;
    white-space: nowrap;
}

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

.brand-sub {
    display: flex;
    align-items: center;
    gap: 7px;
    color: rgba(243, 239, 227, .68);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .15em;
    line-height: 1.4;
    text-transform: uppercase;
    white-space: nowrap;
}

.brand-sub i {
    width: 3px;
    height: 3px;
    background: var(--gold);
    border-radius: 50%;
}

.primary-nav {
    display: flex;
    align-items: center;
    gap: 22px;
    margin-left: 18px;
}

.primary-nav a {
    position: relative;
    padding: 18px 0;
    color: rgba(243, 239, 227, .68);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .13em;
    text-transform: uppercase;
    transition: color .2s ease;
}

.primary-nav a::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: 12px;
    left: 0;
    height: 1px;
    background: var(--gold);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .25s ease;
}

.primary-nav a:hover,
.primary-nav a.is-active {
    color: var(--paper);
}

.primary-nav a.is-active::after,
.primary-nav a:hover::after {
    transform: scaleX(1);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-left: auto;
}

.header-signin {
    color: rgba(243, 239, 227, .72);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
    transition: color .2s ease;
}

.header-signin:hover {
    color: var(--gold);
}

.user-menu {
    position: relative;
}

.user-chip {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 5px 10px 5px 5px;
    border: 1px solid rgba(240, 232, 213, .16);
    border-radius: 999px;
    background: transparent;
    color: var(--paper);
    font-size: 11px;
    font-weight: 700;
    transition: border-color .2s ease, background .2s ease;
}

.user-chip:hover,
.user-chip[aria-expanded="true"] {
    border-color: rgba(201, 168, 106, .6);
    background: rgba(255, 255, 255, .04);
}

.user-chip-name {
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.user-chip > svg {
    color: rgba(243, 239, 227, .5);
}

.user-dropdown {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    z-index: 120;
    width: 252px;
    padding: 10px;
    border: 1px solid var(--line);
    background: var(--paper);
    color: var(--ink);
    box-shadow: var(--shadow);
}

.user-dropdown::before {
    content: "";
    position: absolute;
    top: -6px;
    right: 28px;
    width: 10px;
    height: 10px;
    border-top: 1px solid var(--line);
    border-left: 1px solid var(--line);
    background: var(--paper);
    transform: rotate(45deg);
}

.user-dropdown-head {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 8px 8px 14px;
    border-bottom: 1px solid var(--line);
    margin-bottom: 7px;
}

.user-dropdown-head div {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.user-dropdown-head strong {
    overflow: hidden;
    font-size: 12px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.user-dropdown-head span:not(.avatar) {
    color: var(--muted);
    font-size: 11px;
}

.user-dropdown > a,
.user-dropdown form button {
    display: block;
    width: 100%;
    padding: 9px 8px;
    border: 0;
    background: transparent;
    color: var(--ink-soft);
    font-size: 11px;
    font-weight: 700;
    text-align: left;
    transition: background .2s ease, color .2s ease;
}

.user-dropdown > a:hover,
.user-dropdown form button:hover {
    background: var(--paper-2);
    color: var(--ink);
}

.user-dropdown form {
    border-top: 1px solid var(--line);
    margin-top: 7px;
    padding-top: 7px;
}

.user-dropdown form button {
    color: var(--rust);
}

.nav-toggle {
    display: none;
    width: 42px;
    height: 42px;
    padding: 0;
    border: 1px solid rgba(240, 232, 213, .18);
    border-radius: 50%;
    background: transparent;
}

.nav-toggle span {
    display: block;
    width: 16px;
    height: 1.5px;
    margin: 4px auto;
    background: var(--paper);
    transition: transform .2s ease;
}

.nav-toggle[aria-expanded="true"] span:first-child {
    transform: translateY(2.75px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:last-child {
    transform: translateY(-2.75px) rotate(-45deg);
}

.mobile-nav {
    padding: 18px 28px 28px;
    border-top: 1px solid var(--line-dark);
    background: var(--forest);
}

.mobile-nav nav a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 0;
    border-bottom: 1px solid var(--line-dark);
    font-family: var(--font-display);
    font-size: 2rem;
    letter-spacing: .04em;
    line-height: 1;
}

.mobile-nav nav a.is-active {
    color: var(--gold);
}

.mobile-nav-index {
    color: rgba(243, 239, 239, .66);
    font-family: var(--font-body);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .1em;
}

.mobile-nav-actions {
    display: flex;
    gap: 10px;
    margin-top: 22px;
}

.mobile-nav-actions .button {
    flex: 1;
}

.mobile-nav-actions form {
    flex: 1;
}

.mobile-nav-actions form .button {
    width: 100%;
}

.mobile-nav-note {
    margin-top: 24px;
    color: rgba(243, 239, 227, .35);
    font-size: 11px;
    letter-spacing: .14em;
    line-height: 1.8;
    text-transform: uppercase;
}

/* ---------- Avatars / badges ---------- */

.avatar {
    position: relative;
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--avatar-color, var(--gold));
    color: var(--forest);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .02em;
    line-height: 1;
}

.avatar--small,
.avatar--sm {
    width: 34px;
    height: 34px;
    font-size: 11px;
}

.avatar--tiny {
    width: 25px;
    height: 25px;
    font-size: 11px;
}

// Between the default 42px and .avatar--small. The leaderboard podium asks for it.
.avatar--md {
    width: 38px;
    height: 38px;
    font-size: 11px;
}

.avatar-stack {
    display: flex;
}

.avatar-stack .avatar {
    margin-left: -7px;
    border: 2px solid var(--forest);
}

.avatar-stack .avatar:first-child {
    margin-left: 0;
}

.crew-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 8px;
    border-radius: 2px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .12em;
    line-height: 1.3;
    text-transform: uppercase;
}

.crew-badge--bank-life {
    background: var(--gold);
    color: var(--forest);
}

.crew-badge--pro-carp {
    background: rgba(12, 21, 14, .8);
    color: var(--paper);
    backdrop-filter: blur(6px);
}

.crew-tag {
    padding: 2px 6px;
    border-radius: 2px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.crew-tag--bank-life {
    background: rgba(201, 168, 106, .18);
    color: var(--gold-deep);
}

.crew-tag--pro-carp {
    background: rgba(12, 21, 14, .08);
    color: var(--muted);
}

.gps-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 7px;
    border-radius: 2px;
    background: rgba(12, 21, 14, .72);
    color: var(--paper);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .1em;
    line-height: 1.2;
    text-transform: uppercase;
    backdrop-filter: blur(4px);
}

.gps-chip--light {
    background: rgba(12, 21, 14, .07);
    color: var(--forest);
    backdrop-filter: none;
}

.gps-chip--floating {
    position: absolute;
    right: 20px;
    bottom: 20px;
    background: rgba(12, 21, 14, .8);
    color: var(--paper);
}

.live-dot {
    position: relative;
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--gold);
}

.live-dot::after {
    content: "";
    position: absolute;
    inset: -4px;
    border: 1px solid var(--gold);
    border-radius: 50%;
    animation: pulse 2s ease-out infinite;
}

@keyframes pulse {
    0% { opacity: .9; transform: scale(.6); }
    75%, 100% { opacity: 0; transform: scale(1.6); }
}

.live-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    border: 1px solid rgba(201, 168, 106, .35);
    border-radius: 999px;
    color: var(--gold-deep);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.live-badge--dark {
    border-color: rgba(201, 168, 106, .35);
    color: var(--gold);
}

/* ---------- Flash ---------- */

.flash {
    position: fixed;
    top: calc(var(--header-h) + 16px);
    right: 24px;
    z-index: 300;
    display: flex;
    align-items: center;
    gap: 11px;
    max-width: min(440px, calc(100vw - 32px));
    padding: 13px 15px;
    border: 1px solid var(--line);
    background: var(--paper);
    box-shadow: var(--shadow-soft);
    font-size: 12px;
    font-weight: 600;
    animation: flash-in .35s ease both;
}

.flash-icon {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    width: 23px;
    height: 23px;
    border-radius: 50%;
    font-size: 11px;
    font-weight: 800;
}

.flash--success .flash-icon {
    background: var(--forest);
    color: var(--gold);
}

.flash--error .flash-icon {
    background: var(--rust);
    color: #fff;
}

.flash button {
    flex: 0 0 auto;
    margin-left: 6px;
    padding: 0 2px;
    border: 0;
    background: transparent;
    color: var(--muted);
    font-size: 18px;
    line-height: 1;
}

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

/* ---------- Generic forms ---------- */

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

.field label {
    color: var(--ink-soft);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .1em;
    line-height: 1.3;
    text-transform: uppercase;
}

.field label span {
    color: var(--rust);
}

.field label small {
    color: var(--muted);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .04em;
    text-transform: none;
}

// A caption above a field where the field is not inside a <label>. The admin
// pages ask for it; it is the same line as .field label.
.field-label {
    display: block;
    color: var(--ink-soft);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .1em;
    line-height: 1.3;
    text-transform: uppercase;
}

// A file input. The browser draws its own button, so there is not much to say
// beyond "make it behave like .input rather than a full-width default".
.input--file {
    display: block;
    width: 100%;
    padding: 9px 10px;
    font: inherit;
    font-size: 13px;
}

.field-label-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    }

.field-label-actions {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    }

.input {
    width: 100%;
    min-height: 48px;
    padding: 11px 13px;
    border: 1px solid var(--line);
    border-radius: 2px;
    background: var(--paper);
    color: var(--ink);
    font-size: 13px;
    line-height: 1.4;
    transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}

.input::placeholder {
    color: #9b9d92;
}

.input:hover {
    border-color: #bdb39c;
}

.input:focus {
    outline: none;
    border-color: var(--gold-deep);
    box-shadow: 0 0 0 3px rgba(201, 168, 106, .18);
}

.input.has-error {
    border-color: var(--rust);
}

.textarea {
    min-height: 116px;
    resize: vertical;
}

.select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='m1 1 5 5 5-5' fill='none' stroke='%236d7369' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 13px center;
    padding-right: 38px;
}

.field-error {
    color: var(--rust);
    font-size: 11px;
    font-weight: 700;
    line-height: 1.4;
}

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

.form-alert {
    margin-bottom: 20px;
    padding: 13px 15px;
    border-left: 3px solid var(--rust);
    background: rgba(189, 91, 56, .08);
    color: #853b24;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.5;
}

.form-alert--soft {
    border-left-color: var(--gold-deep);
    background: rgba(201, 168, 106, .12);
    color: #6f582b;
}

.form-stack,
.stacked-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

// A row of buttons under a form. Without it they sit on one line with no air
// between them, because a form gives its children no layout of their own.
.button-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 4px;
}

// A form that lives inside a flex row — a Mark paid button next to a pill.
.inline-form {
    display: inline-flex;
    margin: 0;
}

.field-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.input-prefix-wrap,
.input-suffix-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.input-prefix-wrap > span,
.input-suffix-wrap > span {
    position: absolute;
    z-index: 1;
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
    pointer-events: none;
}

.input-prefix-wrap > span {
    left: 13px;
}

.input-prefix-wrap .input {
    padding-left: 28px;
}

.input-suffix-wrap > span {
    right: 13px;
    text-transform: lowercase;
}

.input-suffix-wrap .input {
    padding-right: 38px;
}

.text-button {
    padding: 0;
    border: 0;
    border-bottom: 1px solid currentColor;
    background: transparent;
    color: var(--gold-deep);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .08em;
    line-height: 1.4;
    text-transform: uppercase;
}

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

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

.check-row.has-error {
    color: var(--rust);
}

/* ---------- Footer ---------- */

.site-footer {
    position: relative;
    overflow: hidden;
    padding: 80px 0 26px;
    background: #080f0a;
    color: var(--paper);
}

.site-footer::before {
    content: "";
    position: absolute;
    top: -180px;
    right: -120px;
    width: 560px;
    height: 560px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(201, 168, 106, .11), transparent 65%);
    pointer-events: none;
}

.footer-top {
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    gap: 70px;
    width: min(100% - 56px, 1260px);
    margin-inline: auto;
    padding-bottom: 54px;
    border-bottom: 1px solid var(--line-dark);
}

.footer-brand {
    display: flex;
    align-items: flex-start;
    gap: 22px;
}

.footer-brand img {
    width: 64px;
    height: 64px;
}

/* The club's own logo is whatever shape they sent. A wide wordmark in a 64px
   square shrinks to a stamp, so let it run wide and cap the width instead. */
.footer-brand img.footer-logo--custom {
    width: auto;
    height: 64px;
    max-width: 15rem;
    object-fit: contain;
    border-radius: 8px;
}

/* ------------------------------------------------------------------
   Join us on social — the club's own accounts in the footer
   ------------------------------------------------------------------ */

.footer-social {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
    margin: 26px 0 4px;
    padding-top: 22px;
    border-top: 1px solid rgba(240, 232, 213, .12);
}

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

.footer-social-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.footer-social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid rgba(240, 232, 213, .2);
    border-radius: 10px;
    color: var(--paper);
    transition: transform .25s ease, border-color .25s ease, color .25s ease;
}

.footer-social-link:hover,
.footer-social-link:focus-visible {
    transform: translateY(-2px);
    border-color: var(--gold);
    color: var(--gold);
}

.social-preview {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 6px;
}

.social-preview .button svg {
    flex: 0 0 auto;
}

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

.footer-brand > div {
    /* Without this a long wordmark pushes the column wider than its grid track
       and runs under the two "est." cards beside it. */
    min-width: 0;
}

.footer-wordmark {
    font-family: var(--font-display);
    font-size: clamp(1.6rem, 2.5vw, 2.3rem);
    letter-spacing: .02em;
    /* .82 was set for a two-word wordmark. With the club's full name on one
       line and its accent on the next, the descenders met the caps below. */
    line-height: 1.04;
    overflow-wrap: anywhere;
}

.footer-wordmark em {
    display: block;
    margin-top: .16em;
    color: var(--gold);
    font-size: .56em;
    font-style: normal;
    letter-spacing: .07em;
    line-height: 1.15;
}

.footer-legacy {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    align-content: end;
}

.footer-legacy > div {
    padding-top: 14px;
    border-top: 1px solid var(--line-dark);
}

.footer-legacy span {
    display: block;
    margin-bottom: 6px;
    color: var(--gold);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .15em;
    text-transform: uppercase;
}

.footer-legacy strong {
    display: block;
    font-size: 12px;
    letter-spacing: .02em;
}

.footer-legacy p {
    margin-top: 5px;
    color: rgba(243, 239, 227, .68);
    font-size: 11px;
    line-height: 1.55;
}

.footer-links {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 30px;
    row-gap: 16px;
    width: min(100% - 56px, 1260px);
    margin-inline: auto;
    padding-top: 24px;
}

.footer-links nav {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
}

.footer-links nav a {
    color: rgba(243, 239, 227, .62);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
    transition: color .2s ease;
}

.footer-links nav a:hover {
    color: var(--gold);
}

.footer-motto {
    margin-left: auto;
    color: rgba(243, 239, 227, .66);
    font-size: 11px;
    font-style: italic;
}

.footer-copy {
    color: rgba(243, 239, 227, .58);
    font-size: 11px;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.back-to-top {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 80;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border: 1px solid rgba(201, 168, 106, .55);
    border-radius: 50%;
    background: rgba(12, 21, 14, .9);
    color: var(--gold);
    opacity: 0;
    pointer-events: none;
    transform: translateY(8px);
    transition: opacity .25s ease, transform .25s ease;
    backdrop-filter: blur(6px);
}

.back-to-top.is-visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

/* ---------- Shared catch cards ---------- */

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

.catch-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--line);
    background: var(--paper);
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.catch-card:hover {
    border-color: #c6bba3;
    box-shadow: var(--shadow-soft);
    transform: translateY(-4px);
}

.catch-media {
    position: relative;
    display: block;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    background: var(--forest-2);
}

.catch-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .55s ease;
}

.catch-card:hover .catch-media img {
    transform: scale(1.035);
}

.catch-media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(8, 15, 10, .2), transparent 40%, rgba(8, 15, 10, .25));
    pointer-events: none;
}

.catch-weight {
    position: absolute;
    bottom: 12px;
    left: 12px;
    z-index: 2;
    padding: 5px 9px;
    background: var(--gold);
    color: var(--forest);
    font-family: var(--font-display);
    font-size: 1.45rem;
    letter-spacing: .03em;
    line-height: 1;
}

.crew-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 2;
}

.catch-media .gps-chip {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 2;
}

.catch-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 18px 18px 16px;
}

.catch-topline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 5px;
}

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

.catch-time {
    color: var(--muted);
    font-size: 11px;
}

.catch-body h3 {
    font-family: var(--font-display);
    font-size: 1.65rem;
    letter-spacing: .02em;
    line-height: 1.05;
}

.catch-body h3 a:hover {
    color: var(--gold-deep);
}

.catch-peg {
    margin-top: 3px;
    color: var(--muted);
    font-size: 11px;
}

.catch-bait {
    display: flex;
    align-items: baseline;
    gap: 7px;
    margin-top: 13px;
    padding-top: 11px;
    border-top: 1px solid var(--line);
    font-size: 11px;
}

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

.catch-bait strong {
    overflow: hidden;
    color: var(--ink-soft);
    font-size: 11px;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.catch-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: auto;
    padding-top: 13px;
}

.catch-angler {
    display: flex;
    align-items: center;
    gap: 7px;
    min-width: 0;
    color: var(--ink-soft);
    font-size: 11px;
    font-weight: 700;
}

.catch-angler > span:last-child {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.catch-kudos {
    display: flex;
    align-items: center;
}

.kudos-button {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 7px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: transparent;
    color: var(--muted);
    font-size: 11px;
    font-weight: 800;
    line-height: 1;
    transition: color .2s ease, border-color .2s ease, background .2s ease;
}

.kudos-button:hover,
.kudos-button.is-active {
    border-color: rgba(189, 91, 56, .4);
    background: rgba(189, 91, 56, .06);
    color: var(--rust);
}

.kudos-static {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: var(--muted);
    font-size: 11px;
    font-weight: 700;
}

.kudos-button--large {
    min-height: 44px;
    padding: 0 17px;
    border-color: var(--line);
    background: var(--paper);
    color: var(--ink);
    font-size: 11px;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.kudos-button--large.is-active {
    border-color: rgba(189, 91, 56, .35);
    background: rgba(189, 91, 56, .07);
    color: var(--rust);
}

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

.empty-state {
    padding: 64px 24px;
    border: 1px dashed var(--line);
    background: rgba(251, 248, 239, .5);
    text-align: center;
}

.empty-state > span {
    color: var(--gold-deep);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .18em;
    text-transform: uppercase;
}

.empty-state h1,
.empty-state .empty-state-title,
.empty-state h3 {
    margin-top: 8px;
    font-family: var(--font-display);
    font-size: 2.6rem;
    font-weight: 400;
    letter-spacing: .02em;
    line-height: 1;
}

.empty-state p {
    max-width: 460px;
    margin: 10px auto 20px;
    color: var(--muted);
    font-size: 12px;
}

.empty-state--page {
    padding: 110px 24px;
}

/* ---------- Map ---------- */

.map-card {
    overflow: hidden;
    border: 1px solid var(--line);
    background: var(--paper);
}

.map-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 15px 16px;
    border-bottom: 1px solid var(--line);
}

.map-card-head > div {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.map-card-head span:not(.map-count) {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.map-card-head small {
    color: var(--muted);
    font-size: 11px;
}

.map-count {
    padding: 3px 7px;
    background: var(--forest);
    color: var(--gold);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.catch-map {
    width: 100%;
    height: 310px;
    background: #dfe4d8;
}

.map-note {
    display: flex;
    align-items: flex-start;
    gap: 7px;
    padding: 12px 16px;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: 11px;
    line-height: 1.55;
}

.map-note svg {
    flex: 0 0 auto;
    margin-top: 1px;
}

.leaflet-container {
    font-family: var(--font-body);
    font-size: 11px;
}

.leaflet-control-attribution {
    font-size: 11px !important;
    opacity: .7;
}

.map-pin {
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    border: 2px solid var(--forest);
    border-radius: 50% 50% 50% 0;
    background: var(--gold);
    color: var(--forest);
    font-size: 11px;
    font-weight: 800;
    transform: rotate(-45deg);
    box-shadow: 0 4px 10px rgba(12, 21, 14, .28);
}

.map-pin span {
    transform: rotate(45deg);
}

.map-pin--mine {
    background: var(--forest);
    border-color: var(--gold);
    color: var(--gold);
}

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

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

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 28px;
    color: var(--muted);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

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

.breadcrumb span:nth-last-child(1) {
    color: var(--ink-soft);
}

[data-reveal].is-revealed {
    animation: reveal-up .7s cubic-bezier(.2, .7, .2, 1) both;
}

@keyframes reveal-up {
    from { opacity: 0; transform: translateY(18px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ---------- Reduced motion ---------- */

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