/* ===========================================================================
   site.css — public frontend component styles.
   Loaded ALONGSIDE app.css: tokens (--brand #004400, --soft #d4e8d3, --navy,
   --danger, --radius) and .btn come from app.css so the public site and the
   admin read as one product. This file only overrides the page background to a
   light surface (the frontend is a light page + green header band, not the
   admin's dark-green page) and adds the frontend components. Every component is
   prefixed (.site-, .profile-, .stat-bar, .career-…) to stay scoped.
   Green is the spine; --club-1/--club-2 (set per page by ClubTheme) are accents.
   =========================================================================== */

:root {
    --site-bg: #eaeef2;          /* light page surface */
    --site-card: #ffffff;
    --site-line: #d8dee6;
    --site-soft-line: #e6ebf0;
    --amber: #b45309;
    --amber-dark: #943f06;
    --steel: #2f6f8f;
    --club-1: var(--brand);      /* defaults; overridden inline per page */
    --club-2: var(--soft);
    --club-accent: var(--brand); /* saturated club colour for UI accents + light-hero trim */
    --club-ink: #ffffff;
    --club-name: #ffffff;
    --club-watermark: #296229;
    --club-watermark-op: .55;
    --club-chip-bg: rgba(255,255,255,.16);
    --club-chip-bd: rgba(255,255,255,.28);
    --club-edge: rgba(255,255,255,.25);
}

body.site {
    background: var(--site-bg);
    color: var(--ink);
    margin: 0;
    overflow-x: hidden;
    font-family: 'Source Sans 3', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
/* Display + mono faces from the mockup — the type IS the design. */
.site-brand, .profile-name, .stat-bar .n, .career-cap h3, table.career th,
.tabs a, .info-block h3, .lastmatch .sc, .empty-state h3 {
    font-family: 'Oswald', 'Source Sans 3', sans-serif;
}
.profile-id, .career .feeval, .match-row .date, .info-row .v.mono {
    font-family: 'Roboto Mono', ui-monospace, monospace;
}
.site-wrap { max-width: 1040px; margin: 0 auto; padding: 0 16px 48px; }

/* ── site header ─────────────────────────────────────────────────────────── */
.site-header {
    position: sticky; top: 0; z-index: 1000;
    background: var(--brand);
    color: #fff;
    border-bottom: 3px solid var(--brand-dark);
    box-shadow: 0 2px 10px rgba(0,0,0,.18);
}
.site-header-in {
    max-width: 1040px; margin: 0 auto; padding: 12px 16px;
    display: flex; align-items: center; gap: 20px;
}
.site-brand { font-weight: 800; font-size: 20px; color: #fff; text-decoration: none; letter-spacing: .2px; white-space: nowrap; }
.site-brand .dot { color: var(--soft); }
.site-nav { display: flex; gap: 16px; flex: 1; flex-wrap: wrap; }
.site-nav a { color: #dff0dd; text-decoration: none; font-size: 14px; font-weight: 600; }
.site-nav a:hover { color: #fff; }
.site-search { display: flex; gap: 0; }
.site-search input {
    border: 1px solid var(--brand-dark); border-right: 0; border-radius: var(--radius) 0 0 var(--radius);
    padding: 6px 10px; font-size: 14px; min-width: 180px; background: #fff; color: var(--ink);
}
.site-search button {
    border: 1px solid var(--brand-dark); background: var(--brand-dark); color: #fff;
    border-radius: 0 var(--radius) var(--radius) 0; padding: 6px 12px; cursor: pointer; font-weight: 600;
}

/* ── breadcrumb trail (the real click-path) ──────────────────────────────── */
.site-trail {
    background: #fff; border-bottom: 1px solid var(--site-line);
    font-size: 13px;
}
.site-trail-in { max-width: 1040px; margin: 0 auto; padding: 8px 16px; color: var(--muted); }
.site-trail a { color: var(--brand); text-decoration: none; font-weight: 600; }
.site-trail a:hover { text-decoration: underline; }
.site-trail .sep { color: var(--site-line); margin: 0 8px; }
.site-trail .here { color: var(--ink); font-weight: 600; }

/* ── footer ──────────────────────────────────────────────────────────────── */
.site-footer { background: var(--brand); color: #cfe6cc; text-align: center; padding: 16px; font-size: 13px; margin-top: 40px; }
.site-footer a { color: #fff; text-decoration: none; }

/* ── profile hero (green spine + club accent + nickname-style watermark) ──── */
.profile-hero {
    position: relative; overflow: hidden;
    background:
        linear-gradient(180deg, rgba(255,255,255,.06), rgba(0,0,0,.10)),
        var(--club-1);
    color: var(--club-ink);
    border-radius: var(--radius) var(--radius) 0 0;
    margin-top: 18px;
    padding: 22px;
    display: flex; gap: 22px; align-items: flex-start;
}
.profile-watermark {
    --wm-size: 135px;          /* ◄◄ HERO WATERMARK SIZE — change this one value (desktop) */
    position: absolute; right: 14px; top: 50%; transform: translateY(-50%);
    font-family: 'Oswald', sans-serif;
    font-size: var(--wm-size); font-weight: 700; line-height: 1; letter-spacing: -4px;
    color: var(--club-watermark); opacity: var(--club-watermark-op, .55); pointer-events: none; user-select: none;
    white-space: nowrap; z-index: 0; text-transform: uppercase; text-align: right;
}
/* lift ONLY the real content above the watermark — must NOT re-position the
   absolutely-placed watermark/top-right (that bug pushed the photo off the left). */
.profile-hero > .profile-photo,
.profile-hero > .silhouette,
.profile-hero > .profile-id-block { position: relative; z-index: 1; }
.profile-photo {
    width: 116px; height: 150px; border-radius: 8px; object-fit: cover; object-position: top;
    border: 3px solid var(--club-edge); background: #0a2a0a; flex: 0 0 auto;
}
/* top-right: player id + quiet edit icon (admin) */
.profile-topright { position: absolute; top: 14px; right: 16px; z-index: 2; display: flex; align-items: center; gap: 10px; }
.profile-id { font-size: 12px; opacity: .65; font-weight: 500; letter-spacing: .02em; }
.edit-icon {
    display: inline-flex; align-items: center; justify-content: center;
    width: 26px; height: 26px; border-radius: 6px;
    background: var(--club-chip-bg); border: 1px solid var(--club-chip-bd);
    color: var(--club-ink); text-decoration: none; line-height: 1;
}
.edit-icon:hover { background: rgba(255,255,255,.22); }
.edit-icon svg { width: 14px; height: 14px; fill: currentColor; }
.profile-name { font-size: 36px; font-weight: 700; margin: 0 0 3px; line-height: 1.05; letter-spacing: -.5px; color: var(--club-name); }
.profile-sub { font-size: 13px; opacity: .8; margin-bottom: 10px; }
.profile-pills { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.pill {
    display: inline-flex; align-items: center; gap: 6px;
    background: var(--club-chip-bg); border: 1px solid var(--club-chip-bd);
    color: var(--club-ink); border-radius: 999px; padding: 4px 11px; font-size: 12.5px; font-weight: 600;
}
.pill.danger { background: rgba(220,38,38,.22); border-color: rgba(220,38,38,.5); }
.pill.edit { background: #f6e58d; border-color: #e8d24a; color: #5b4b00; text-decoration: none; }
.pill.edit:hover { background: #f3df72; }

/* ── stat bar (4 headline figures) ───────────────────────────────────────── */
.stat-bar {
    display: grid; grid-template-columns: repeat(4, 1fr);
    background: var(--brand-dark); color: #fff; border-radius: 0;
}
.stat-bar .cell { padding: 16px; text-align: center; border-right: 1px solid rgba(255,255,255,.12); }
.stat-bar .cell:last-child { border-right: 0; }
.stat-bar .n { font-size: 28px; font-weight: 700; line-height: 1; letter-spacing: -.5px; }
.stat-bar .l { font-size: 9px; letter-spacing: .08em; text-transform: uppercase; opacity: .7; margin-top: 4px; }

/* hero honour badges — gold tag straddling the bottom edge of its stat cell */
.stat-bar-wrap { position: relative; }
.stat-bar-wrap.has-badges { padding-bottom: 13px; }
.badge-rail { position: absolute; left: 0; right: 0; bottom: 13px; transform: translateY(50%);
    display: grid; grid-template-columns: repeat(4, 1fr); pointer-events: none; }
.badge-rail .slot { display: flex; justify-content: center; }
.hero-badge { pointer-events: auto; display: inline-flex; align-items: center; gap: 5px;
    font-family: 'Oswald','Source Sans 3',sans-serif; font-size: 10.5px; font-weight: 600;
    letter-spacing: .03em; text-transform: uppercase; color: #3a2c00;
    background: linear-gradient(135deg, #f3d985, #c89a2c); padding: 4px 10px 4px 8px;
    border-radius: 999px; box-shadow: 0 2px 5px rgba(0,0,0,.28); white-space: nowrap;
    border: 1px solid rgba(255,255,255,.35); }
.hero-badge .star { font-size: 10px; line-height: 1; color: #5a4400; }

/* ── completeness (admin overlay only) ───────────────────────────────────── */
.completeness { background: var(--site-card); border: 1px solid var(--site-line); border-top: 0; padding: 12px 16px; }
.completeness .top { display: flex; justify-content: space-between; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.completeness .bar { height: 8px; border-radius: 4px; background: #e3e9ef; overflow: hidden; }
.completeness .bar span { display: block; height: 100%; background: var(--brand); }

/* ── info panels (Personal / Career) ─────────────────────────────────────── */
.panel { background: var(--site-card); border: 1px solid var(--site-line); border-radius: var(--radius); }
.profile-info { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 16px; }
.info-block { padding: 16px 18px; }
.info-block h3 { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin: 0 0 12px; font-weight: 700; }
.info-row { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; border-bottom: 1px solid var(--site-soft-line); font-size: 14px; }
.info-row:last-child { border-bottom: 0; }
.info-row .k { color: var(--muted); }
.info-row .v { font-weight: 700; text-align: right; }
.info-row .v.dim { color: var(--danger); }

/* ── tabs ────────────────────────────────────────────────────────────────── */
.tabs { display: flex; gap: 4px; border-bottom: 2px solid var(--site-line); margin-top: 22px; }
.tabs a {
    padding: 10px 16px; font-size: 14px; font-weight: 700; color: var(--muted); text-decoration: none;
    border-bottom: 3px solid transparent; margin-bottom: -2px;
}
.tabs a.active { color: var(--brand); border-bottom-color: var(--club-accent); }
.tabs a:hover { color: var(--ink); }
.tab-note { font-size: 13px; color: var(--muted); }

/* ── family tree (relationships tab) ─────────────────────────────────────── */
.family-panel { margin-top: 16px; }
.family-tree { display: flex; flex-direction: column; gap: 10px; }
.fam-band { border: 1px solid var(--site-line); border-radius: 8px; padding: 10px 14px; background: var(--site-card); }
.fam-band.is-focus { background: #f3f7f3; border-color: #c2d8c0; }
.fam-band-label {
    font-family: 'Oswald', 'Source Sans 3', sans-serif; font-size: 11px; font-weight: 700;
    letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px;
}
.fam-row { display: flex; flex-wrap: wrap; gap: 8px; }
.fam-card {
    display: inline-flex; flex-direction: column; gap: 1px; padding: 7px 11px;
    background: var(--site-card); border: 1px solid var(--site-line); border-radius: 7px; text-decoration: none;
}
a.fam-card:hover { border-color: var(--club-accent); }
.fam-name { font-weight: 700; font-size: 14px; color: var(--ink); }
a.fam-card .fam-name { color: var(--brand); }
.fam-role { font-size: 12px; color: var(--muted); }
.fam-card.fam-focus { background: var(--club-accent); border-color: var(--club-accent); }
.fam-card.fam-focus .fam-name { color: #ffffff; }

/* ── career / season table ───────────────────────────────────────────────── */
.career-wrap { margin-top: 16px; }
.career-cap { display: flex; justify-content: space-between; align-items: center; background: var(--soft); padding: 10px 16px; border-bottom: 1px solid #c8d8c8; }
.career-cap h3 { font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--brand); margin: 0; font-weight: 600; display: flex; align-items: center; gap: 7px; }
.career-cap .hint { font-size: 11px; color: var(--muted); }
table.career { width: 100%; border-collapse: collapse; font-size: 12.5px; table-layout: fixed; }
table.career .c-season { width: 108px; }
table.career .c-transfer { width: 96px; }
table.career .c-num { width: 56px; }
table.career .c-unused { width: 72px; }
table.career .c-card { width: 44px; }
table.career td.l .team-cell { min-width: 0; }
table.career td.l .team-link { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
table.career th { background: #eef5ee; color: var(--brand); font-size: 10px; padding: 7px 9px; text-align: center; font-weight: 600; border-bottom: 1px solid var(--soft); white-space: nowrap; letter-spacing: .04em; text-transform: uppercase; }
table.career th.l, table.career td.l { text-align: left; }
table.career td { padding: 7px 9px; text-align: center; font-size: 12.5px; color: #2a3a2a; border-bottom: 1px solid #eef5ee; vertical-align: middle; }
table.career td.fee { font-size: 11px; color: var(--muted); white-space: nowrap; }
table.career td.fee .how { font-style: italic; color: #5a6e5a; }
table.career td.fee .feeval { font-family: 'Roboto Mono', monospace; color: #2a3a2a; }
table.career tr.loan td { font-style: italic; }
table.career tr.loan td.l .team-cell { font-style: italic; }
table.career tbody tr.season-row { cursor: default; }
table.career tbody td.season-toggle { cursor: pointer; }
table.career tbody td.season-toggle:hover { background: #eef6ee; }
.team-cell .team-link { color: var(--brand); text-decoration: none; }
.team-cell .team-link:hover { text-decoration: underline; }
.info-block .v .club-link { color: var(--brand); text-decoration: none; }
.info-block .v .club-link:hover { text-decoration: underline; }
table.career tbody tr.season-row:hover td { background: #f5fbf5; }
table.career tbody tr:last-child td { border-bottom: 0; }
table.career tr.totals td { font-weight: 700; border-top: 1px solid #c8d8c8; background: var(--soft); color: var(--brand); }
.team-cell { display: flex; align-items: center; gap: 7px; justify-content: flex-start; }
.flag { width: 18px; height: 12px; border-radius: 2px; object-fit: cover; flex: 0 0 auto; box-shadow: 0 0 0 1px rgba(0,0,0,.1); }
.flag-ph { width: 18px; height: 12px; border-radius: 2px; background: var(--soft); flex: 0 0 auto; }
.pill .flag { width: 16px; height: 11px; }
.goal-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--brand); vertical-align: middle; }
.dash { color: var(--site-line); }
.chev { color: var(--muted); font-size: 11px; display: inline-block; width: 10px; transition: transform .15s; }
tr.season-row.open .chev { transform: rotate(90deg); }
tr.drill td { background: #f7faf6; padding: 0; }
.drill-inner { padding: 6px 10px 12px; }

/* ── match row (the atom: drill-down, matches tab, last match) ────────────── */
.match-row { display: grid; grid-template-columns: 26px 92px 26px 1fr auto 30px 28px 42px 26px 26px; gap: 10px; align-items: center; padding: 7px 6px; border-top: 1px solid var(--site-soft-line); font-size: 13.5px; }
.match-row:first-child { border-top: 0; }
.outcome { width: 22px; height: 22px; border-radius: 4px; color: #fff; font-weight: 800; font-size: 12px; display: flex; align-items: center; justify-content: center; }
.outcome.W { background: var(--brand); }
.outcome.D { background: #9aa6b2; }
.outcome.L { background: var(--danger); }
.outcome.P { background: #c2ccd6; color: #4a5663; }
.ha { font-size: 11px; font-weight: 800; border-radius: 3px; padding: 1px 5px; text-align: center; }
.ha.H { background: #2c2c2c; color: #fff; } .ha.A { background: #e3e7eb; color: #333; } .ha.N { background: #cfe2f3; color: #1b3a5c; }
.match-row .date { color: var(--muted); font-variant-numeric: tabular-nums; }
.match-row .date a { color: inherit; text-decoration: none; }
.match-row .date a:hover { color: var(--brand); text-decoration: underline; }
.match-row .opp { font-weight: 600; }
.match-row .opp .comp { color: var(--muted); font-weight: 400; font-size: 12px; }
.match-row .score { font-weight: 800; font-variant-numeric: tabular-nums; }
.match-row .outcome.none { background: #c2ccd6; color: #4a5663; font-weight: 700; }
.match-row .score .has-pens { cursor: help; }
.match-row .score .pen-mark { font-size: .68em; font-weight: 700; color: var(--brand); vertical-align: super; margin: 0 1px; }
.match-row .score .score-note { font-size: .72em; font-weight: 400; color: var(--muted); margin-left: 4px; }
.match-row .score .muted { color: var(--muted); font-weight: 600; }
.match-row .mins { color: var(--muted); font-size: 12px; }

/* appearance-type indicator slots (echo the season table's Pld / Subs On / Goals) */
.match-row .apx { text-align: center; color: var(--navy); font-variant-numeric: tabular-nums; white-space: nowrap; }
.match-row .apx.goals { font-weight: 700; }
.ap-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--navy); vertical-align: middle; }
.sub-off { color: var(--danger); font-weight: 900; font-size: 15px; line-height: 1; margin-left: 1px; vertical-align: middle; }
.match-row.mhead { padding-top: 2px; padding-bottom: 5px; border-top: 0; }
.match-row.mhead .apx { font-size: 10.5px; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); font-weight: 700; }

/* focus the season being viewed: dim/blur the others while a drill is open */
table.career tbody tr.season-row td { transition: opacity .15s ease, filter .15s ease; }
table.career.has-open tbody tr.season-row:not(.open) td { opacity: .32; filter: blur(.7px); }
table.career.has-open tbody tr.season-row:not(.open):hover td { opacity: .75; filter: none; }

/* ── last-match card ─────────────────────────────────────────────────────── */
.lastmatch { margin-top: 22px; padding: 16px; }
.lastmatch h3 { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin: 0 0 4px; }
.lastmatch .when { color: var(--muted); font-size: 13px; }
.lastmatch .fix { font-size: 18px; font-weight: 700; margin: 6px 0; }
.lastmatch .fix .sc { background: var(--brand); color: #fff; border-radius: 4px; padding: 2px 8px; margin: 0 6px; }

/* ── related players ─────────────────────────────────────────────────────── */
.related { margin-top: 16px; padding: 16px 18px; }
.related h3 { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin: 0 0 10px; }
.related .rel { display: flex; justify-content: space-between; padding: 6px 0; border-bottom: 1px solid var(--site-soft-line); font-size: 14px; }
.related .rel:last-child { border-bottom: 0; }
.related .rel a { color: var(--brand); text-decoration: none; font-weight: 600; }
.related .rel .role { color: var(--muted); font-size: 12px; }

/* ── empty / dormant ─────────────────────────────────────────────────────── */
.empty-state { text-align: center; padding: 40px 20px; color: var(--muted); }
.empty-state .icon { font-size: 34px; opacity: .35; }
.empty-state h3 { color: var(--ink); margin: 10px 0 6px; }
.empty-state p { max-width: 440px; margin: 0 auto 16px; font-size: 14px; }
.dormant-hero { background: #5a6470; color: #fff; }
.dormant-hero .profile-watermark { color: #4c555f; }
.dormant-hero .edit-icon { background: rgba(255,255,255,.15); border-color: rgba(255,255,255,.32); color: #fff; }
.dormant-hero .edit-icon:hover { background: rgba(255,255,255,.26); }
.silhouette { width: 96px; height: 120px; border-radius: 6px; background: #2f343a; display: flex; align-items: center; justify-content: center; border: 3px solid var(--club-edge); }
.silhouette svg { width: 56px; height: 56px; fill: #7b838c; }

/* ── responsive ──────────────────────────────────────────────────────────── */
@media (max-width: 720px) {
    .profile-info { grid-template-columns: 1fr; }
    .stat-bar { grid-template-columns: repeat(2, 1fr); }
    .stat-bar .cell:nth-child(2) { border-right: 0; }
    .stat-bar-wrap.has-badges { padding-bottom: 0; }
    .badge-rail { position: static; transform: none; display: flex; flex-wrap: wrap;
        justify-content: center; gap: 6px; padding: 10px 8px 2px; }
    .badge-rail .slot { display: contents; }
    .hero-badge { font-size: 9.5px; padding: 3px 8px; }
    .profile-watermark { font-size: 120px; }
    .profile-name { font-size: 26px; }
    .match-row { grid-template-columns: 22px 1fr auto 22px 20px 34px 22px 22px; }
    .match-row .ha, .match-row .mins, .match-row .date { display: none; }
    .site-nav { display: none; }
}

/* ── career sections: grouped headers, card glyphs, reserve toggle, collapsibles ── */
.career-section { margin-top: 16px; background: var(--site-card); border: 1px solid #c8d8c8; border-radius: 10px; overflow: hidden; box-shadow: 0 2px 12px rgba(0,0,0,.06); }
table.career thead th.grp { border-bottom: 1px solid var(--soft); }
table.career thead th.sub { font-size: 9px; padding-top: 3px; padding-bottom: 3px; color: var(--muted); font-weight: 500; }
/* discipline chips — own class names so they never inherit the admin .card panel
   (which carries padding + border and turned these into blobs). Mockup .ycard/.rcard. */
.ycard, .rcard { display: inline-block; width: 8px; height: 11px; border-radius: 1px; padding: 0; border: 0; vertical-align: middle; }
.ycard { background: #ffd600; }
.rcard { background: #e05252; }
.team-cell .lvl { font-size: 9px; color: var(--muted); background: #eef5ee; border-radius: 3px; padding: 1px 5px; margin-left: 2px; font-family: 'Roboto Mono', monospace; text-transform: uppercase; }

/* 1st-team-only default: hide reserve/youth rows until toggled */
table.career.hide-reserve tr.reserve { display: none; }
.team-toggle { font-size: 12px; color: var(--muted); cursor: pointer; user-select: none; display: inline-flex; align-items: center; gap: 6px; }
.team-toggle input { accent-color: var(--brand); }

/* collapsible International / Guest panels */
.career-section.collapsible .toggle-cap { cursor: pointer; }
.career-section.collapsible .toggle-cap:hover { background: #c9e1c8; }
.career-section.collapsible .toggle-cap .chev { transition: transform .15s; font-size: 10px; }
.career-section.collapsible:not(.collapsed) .toggle-cap .chev { transform: rotate(90deg); }
.career-section.collapsible.collapsed .career-cap { border-bottom: 0; }
.career-section.collapsible.collapsed .career-body { display: none; }

/* nationality flag alignment in info rows + match opponent */
.info-row .v { display: flex; align-items: center; gap: 6px; justify-content: flex-end; }
.match-row .opp { display: flex; align-items: center; gap: 6px; }
.match-row .opp .flag { width: 16px; height: 11px; }

/* ============================================================
   Career timeline (Player profile, slice 2). Vertical, bookended
   birth→death, club chapters. Scoped under .timeline-panel so the
   generic .tag/.club helpers can't leak into the rest of the site.
   ============================================================ */
.timeline-panel .tl { position: relative; padding: 18px 6px 4px 50px; }
.timeline-panel .tl::before { content: ''; position: absolute; left: 19px; top: 26px; bottom: 26px;
    width: 2px; background: var(--site-line, #d8dee6); }
.timeline-panel .tl-node { position: relative; margin-bottom: 17px; }
.timeline-panel .tl-dot { position: absolute; left: -37px; top: 3px; width: 13px; height: 13px;
    border-radius: 50%; background: var(--muted, #5b6b85); box-shadow: 0 0 0 3px #ffffff; }
.timeline-panel .tl-title { font-size: 14.5px; font-weight: 700; color: var(--navy, #1B365D); line-height: 1.25; }
.timeline-panel .tl-sub { font-size: 13px; color: var(--muted, #5b6b85); margin-top: 1px; }
.timeline-panel .tag { display: inline-block; font-family: 'Oswald', sans-serif; font-size: 10px;
    font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 1px 6px;
    border-radius: 3px; vertical-align: 1.5px; margin-left: 7px; }
/* bookends */
.timeline-panel .tl-book .tl-dot { width: 15px; height: 15px; left: -38px; background: var(--navy, #1B365D); }
.timeline-panel .tl-book .tl-eyebrow,
.timeline-panel .tl-chapter .tl-eyebrow { font-family: 'Oswald', sans-serif; font-size: 10.5px;
    font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted, #5b6b85); margin-bottom: 1px; }
/* chapter header */
.timeline-panel .tl-chapter { margin: 24px 0 14px; }
.timeline-panel .tl-chapter .tl-dot { width: 15px; height: 15px; left: -38px; }
.timeline-panel .tl-chapter .club { font-family: 'Oswald', sans-serif; font-size: 17px; font-weight: 700; line-height: 1.1; }
.timeline-panel .tl-chapter .move { font-size: 13px; color: var(--muted, #5b6b85); margin-top: 2px; }
/* chapter footer total */
.timeline-panel .tl-total { margin: 2px 0 6px; }
.timeline-panel .tl-total .tl-dot { display: none; }
.timeline-panel .tl-total .line { font-size: 12.5px; font-weight: 600; color: var(--muted, #5b6b85);
    border-top: 1px dashed var(--site-line, #d8dee6); padding-top: 7px; }
/* type colours */
.timeline-panel .t-app .tl-dot { background: #4a6fa5; }
.timeline-panel .t-goal .tl-dot { background: #2f7d4f; }
.timeline-panel .t-intl .tl-dot { background: var(--brand, #004400); }
.timeline-panel .t-special .tl-dot { background: #b8860b; }
.timeline-panel .t-red .tl-dot { background: #c0392b; }
.timeline-panel .tag.app { background: #e4ecf6; color: #2f4a72; }
.timeline-panel .tag.goal { background: #e0efe6; color: #236b41; }
.timeline-panel .tag.intl { background: #dde9dd; color: #2f5d2f; }
.timeline-panel .tag.special { background: #f6eccf; color: #7a5a08; }
.timeline-panel .tag.red { background: #f7dedb; color: #9a2f22; }
/* disclaimer */
.timeline-panel .tl-disclaimer { margin: 6px 0 6px; padding: 11px 14px; background: #f4f7fa;
    border: 1px solid var(--site-line, #e6ebf0); border-radius: 6px; font-size: 12px;
    color: var(--muted, #5b6b85); line-height: 1.5; }
.timeline-panel .tl-disclaimer b { color: var(--navy, #1B365D); }
.timeline-panel .tl-loader { padding: 26px 4px; color: var(--muted, #5b6b85); font-size: 13.5px; }

/* ---- Timeline companion (career-at-a-glance + season arc + club bars) ---- */
.timeline-panel .tl-layout { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    gap: 30px; align-items: start; }
@media (max-width: 860px) { .timeline-panel .tl-layout { grid-template-columns: 1fr; } }
.timeline-panel .tl-main { min-width: 0; }
.timeline-panel .tl-aside { position: sticky; top: 16px; align-self: start;
    display: flex; flex-direction: column; gap: 16px; }
@media (max-width: 860px) { .timeline-panel .tl-aside { position: static; } }
.timeline-panel .cl-box { border: 1px solid var(--site-line, #d8dee6); border-radius: 7px;
    padding: 13px 15px; background: #fff; }
.timeline-panel .cl-box h3 { font-family: 'Oswald', sans-serif; font-size: 12px; font-weight: 700;
    letter-spacing: .08em; text-transform: uppercase; color: var(--muted, #5b6b85); margin: 0 0 11px; }
.timeline-panel .cl-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 16px; }
.timeline-panel .cl-f .k { font-size: 11px; letter-spacing: .04em; text-transform: uppercase; color: var(--muted, #5b6b85); }
.timeline-panel .cl-f .v { font-family: 'Oswald', sans-serif; font-size: 19px; font-weight: 700;
    color: var(--navy, #1B365D); line-height: 1.1; }
.timeline-panel .cl-f .v small { font-family: 'Source Sans 3', sans-serif; font-size: 12px; font-weight: 600; color: var(--muted, #5b6b85); }
/* season arc (SVG: apps bars + goals line) */
.timeline-panel .cl-svg { width: 100%; height: auto; display: block; }
.timeline-panel .cl-key { float: right; font-family: 'Source Sans 3', sans-serif; font-size: 10.5px;
    font-weight: 600; text-transform: none; letter-spacing: 0; color: #9aa7ba; }
.timeline-panel .cl-key i { display: inline-block; vertical-align: middle; margin: 0 3px 0 10px; }
.timeline-panel .cl-key .kb { width: 8px; height: 8px; border-radius: 2px; background: #8aa0bd; }
.timeline-panel .cl-key .kl { width: 12px; height: 0; border-top: 2px solid #2f7d4f; margin-bottom: 2px; }
.timeline-panel .cl-axis { display: flex; justify-content: space-between; font-family: 'Oswald', sans-serif;
    font-size: 10px; color: #9aa7ba; margin-top: 5px; }
/* club tenure bars */
.timeline-panel .cl-ten .cl-row { display: grid; grid-template-columns: 100px 1fr 38px;
    align-items: center; gap: 9px; margin-bottom: 9px; }
.timeline-panel .cl-ten .cl-row:last-child { margin-bottom: 0; }
.timeline-panel .cl-ten .nm { font-size: 12.5px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.timeline-panel .cl-ten .track { background: #eef2f6; border-radius: 3px; height: 13px; }
.timeline-panel .cl-ten .bar { height: 13px; border-radius: 3px; }
.timeline-panel .cl-ten .ct { font-size: 12px; font-weight: 700; color: var(--muted, #5b6b85); text-align: right; }
.timeline-panel .cl-note { font-size: 11px; font-style: italic; color: var(--muted, #5b6b85);
    line-height: 1.45; margin: 2px 2px 0; }

/* ---- AutoBio tab ------------------------------------------------------ */
.autobio { max-width: 680px; }
.ab-hook {
    font-family: 'Oswald', sans-serif; font-weight: 600;
    font-size: 20px; line-height: 1.3; color: var(--navy, #1B365D);
    margin: 2px 0 18px; padding: 8px 0 8px 16px;
    border-left: 4px solid var(--brand, #004400);
}
.ab-body p { font-size: 15px; line-height: 1.65; color: #2a3442; margin: 0 0 14px; }
.ab-body p:last-child { margin-bottom: 0; }
.ab-disclaimer {
    font-size: 12px; line-height: 1.5; color: var(--muted, #5b6b85);
    font-style: italic; margin-top: 18px; padding-top: 12px;
    border-top: 1px solid var(--site-line, #d8dee6);
}

/* Match Report (public match page §10.6) — data-driven narrative. */
.match-report { max-width: 680px; }
.match-report .mr-body p { font-size: 15px; line-height: 1.7; color: #2a3442; margin: 0 0 14px; }
.match-report .mr-body p:first-child { font-size: 16px; }
.match-report .mr-body p:last-child { margin-bottom: 0; }
.mr-foot { margin: 16px 0 0; }
.mr-flag {
    background: none; border: 0; padding: 0; cursor: pointer;
    font: inherit; font-size: 13px; color: var(--navy, #1B365D);
    text-decoration: underline; text-underline-offset: 2px;
}
.mr-flag:hover { color: var(--brand, #004400); }
.mr-disclaimer {
    font-size: 12px; line-height: 1.5; color: var(--muted, #5b6b85);
    font-style: italic; margin-top: 14px; padding-top: 12px;
    border-top: 1px solid var(--site-line, #d8dee6);
}

/* Head to Head (public match page §10.7). */
.h2h { max-width: 760px; }
.h2h-lede { font-size: 15px; line-height: 1.6; color: #2a3442; margin: 0 0 14px; }
.h2h-bar {
    display: flex; height: 26px; border-radius: 6px; overflow: hidden;
    border: 1px solid var(--site-line, #d8dee6); background: #eef1f5;
}
.h2h-seg {
    display: flex; align-items: center; justify-content: center;
    font-size: 12px; font-weight: 600; color: #fff; white-space: nowrap;
    min-width: 0;
}
.h2h-w { background: #1a8f3c; }
.h2h-d { background: #8a93a0; }
.h2h-l { background: #c0392b; }
.h2h-bar-key {
    display: flex; justify-content: space-between;
    font-size: 11px; color: var(--muted, #5b6b85); margin: 4px 2px 18px;
}
.h2h-splits { display: flex; gap: 10px; margin: 0 0 20px; flex-wrap: wrap; }
.h2h-split {
    flex: 1 1 120px; border: 1px solid var(--site-line, #d8dee6);
    border-radius: 6px; padding: 8px 12px; background: #f7f9fb;
}
.h2h-split-h { display: block; font-size: 11px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted, #5b6b85); }
.h2h-split-r { display: block; font-size: 16px; font-weight: 600; color: var(--navy, #1B365D); margin-top: 2px; }
.h2h-h { font-size: 15px; font-weight: 600; color: var(--navy, #1B365D); margin: 0 0 8px; }
.h2h-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.h2h-table th {
    text-align: left; font-size: 11px; text-transform: uppercase; letter-spacing: .04em;
    color: var(--muted, #5b6b85); border-bottom: 2px solid var(--site-line, #d8dee6); padding: 6px 8px;
}
.h2h-table td { padding: 7px 8px; border-bottom: 1px solid #eef1f5; vertical-align: middle; }
.h2h-table .h2h-c { text-align: center; }
.h2h-table .h2h-fix { white-space: nowrap; }
.h2h-date a { color: var(--navy, #1B365D); text-decoration: none; }
.h2h-date a:hover { text-decoration: underline; }
.h2h-sc { font-weight: 700; color: var(--navy, #1B365D); padding: 0 2px; }
.h2h-dash { padding: 0 2px; }
.h2h-pen { color: #1a8f3c; font-weight: 700; font-size: .7em; }
.h2h-n { color: var(--muted, #5b6b85); font-size: 11px; }
.h2h-badge {
    display: inline-block; min-width: 20px; padding: 1px 6px; border-radius: 4px;
    font-size: 11px; font-weight: 700; color: #fff;
}
.h2h-b-w { background: #1a8f3c; }
.h2h-b-d { background: #8a93a0; }
.h2h-b-l { background: #c0392b; }
.h2h-neutral td { background: #eef4fc; }
.h2h-att-n { background: #d8e7fb !important; font-weight: 600; }
.h2h-current td { background: #fff7e0; }
.h2h-current td:first-child { box-shadow: inset 3px 0 0 var(--brand, #004400); }
.h2h-this {
    display: inline-block; margin-left: 6px; padding: 0 5px; border-radius: 3px;
    background: var(--brand, #004400); color: #fff; font-size: 10px;
    text-transform: uppercase; letter-spacing: .03em; vertical-align: middle;
}
.h2h-tag {
    display: inline-block; min-width: 20px; padding: 1px 6px; border-radius: 4px;
    font-size: 11px; font-weight: 700; color: #fff; background: #8a93a0;
}
.h2h-v { color: var(--muted, #5b6b85); padding: 0 4px; font-style: italic; }
.h2h-noresult td { color: var(--muted, #5b6b85); }
.h2h-noresult .h2h-fix { font-style: italic; }
.h2h-foot {
    font-size: 12px; line-height: 1.5; color: var(--muted, #5b6b85);
    font-style: italic; margin-top: 14px;
}

/* ── Club Connections tab (§10.8) — players shared by both clubs, by level ── */
.cx { max-width: 760px; }
.cx-lede { margin: 0 0 14px; font-size: 14px; color: var(--navy, #1B365D); }
.cx-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.cx-table th {
    text-align: left; padding: 7px 10px; background: #e3eaf1;
    color: var(--navy, #1B365D); font-weight: 600; border-bottom: 1px solid var(--panel-line, #d1dbe5);
    width: 36%;
}
.cx-table th:first-child { width: 28%; }
.cx-table td { padding: 8px 10px; border-bottom: 1px solid var(--panel-line, #eef2f6); vertical-align: top; }
.cx-table tbody tr:hover { background: #f5f8fb; }
.cx-name a { font-weight: 600; color: var(--navy, #1B365D); text-decoration: none; }
.cx-name a:hover { text-decoration: underline; }
.cx-side { line-height: 1.7; }
.cx-spell { display: block; white-space: nowrap; margin: 1px 0; }
.cx-lvl {
    display: inline-block; font-size: 11px; font-weight: 600; letter-spacing: .2px;
    color: #2b5d8a; background: #e6f0f9; border: 1px solid #cfe0f0;
    border-radius: 3px; padding: 0 5px; vertical-align: 1px; margin-right: 6px;
}
.cx-ag { font-weight: 600; color: var(--navy, #1B365D); margin-right: 6px; }
.cx-ag .cx-g { font-weight: 400; color: var(--muted, #5b6b85); }
.cx-yrs { color: var(--muted, #5b6b85); font-size: 12px; }
.cx-none { color: #aab4c4; }
.cx-foot {
    font-size: 12px; line-height: 1.5; color: var(--muted, #5b6b85);
    font-style: italic; margin-top: 14px;
}

/* ===========================================================================
   Match page (public) — slice 1: two-club score header + meta + strips + tabs.
   Dark header (each club's accent on its own side; programme/stadium/action
   image as a faint texture); white strips + content cards below, matching the
   profile's card system. Uses the shared tokens from app.css.
   =========================================================================== */
.match-hero {
    position: relative; overflow: hidden;
    border-radius: var(--radius) var(--radius) 0 0;
    margin-top: 18px; padding: 22px 24px; color: #fff;
    background: linear-gradient(180deg, #16191d, #004400);   /* no-image fallback */
}
/* The image actually shows: it sits at full strength under a dark scrim that
   keeps the text legible, rather than being faded to a near-invisible 12%. The
   scrim is lighter through the middle (behind the score) and darker top/bottom
   (behind the competition line and meta strip). scale(1.06) hides the blurred
   edge bleed. */
.match-hero-bg {
    position: absolute; inset: 0; z-index: 0;
    background-image:
        linear-gradient(180deg, rgba(9,11,14,.66), rgba(9,11,14,.46) 42%, rgba(9,11,14,.76)),
        var(--hero-img);
    background-size: cover; background-position: center;
    filter: blur(2px) saturate(1.08) brightness(.95);
    transform: scale(1.06);
}
/* Landscape sources (a ground, an action shot) read well — keep them sharp and
   bright. A portrait programme cover is cropped to a vertical slice, so frost it
   a touch more and bias toward the top where the cover art usually sits. */
.match-hero-bg.kind-stadium, .match-hero-bg.kind-action { filter: blur(1px) saturate(1.14) brightness(1); }
.match-hero-bg.kind-programme_cover { filter: blur(3px) saturate(1.05) brightness(.9); background-position: center 28%; }
.match-hero-in { position: relative; z-index: 1; text-shadow: 0 1px 3px rgba(0,0,0,.5); }
.match-hero-in a { color: inherit; text-decoration: none; }
.match-hero-in a:hover { text-decoration: underline; text-underline-offset: 2px; }
.match-hero-in::after {
    content: ''; display: block; height: 3px; margin-top: 14px; border-radius: 2px; opacity: .9;
    background: linear-gradient(90deg, var(--home-team) 0 50%, var(--away-team) 50% 100%);
}
.mh-comp {
    font-family: 'Oswald', sans-serif; text-transform: uppercase; letter-spacing: .06em;
    font-size: 12px; font-weight: 600; color: #b9c4d0; margin-bottom: 14px;
}
.mh-score { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 18px; }
.mh-side { display: flex; flex-direction: column; min-width: 0; }
.mh-side.home { align-items: flex-start; }
.mh-side.away { align-items: flex-end; text-align: right; }
.mh-team { font-family: 'Oswald', sans-serif; font-weight: 700; font-size: 26px; line-height: 1.05; }
.mh-side.home .mh-team { border-left: 4px solid var(--home-team); padding-left: 10px; }
.mh-side.away .mh-team { border-right: 4px solid var(--away-team); padding-right: 10px; }
.mh-ha { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: #8b97a4; margin-top: 3px; }
.mh-figs { display: flex; align-items: center; gap: 10px; font-family: 'Oswald', sans-serif; font-weight: 700; font-size: 46px; line-height: 1; }
.mh-dash { opacity: .5; font-weight: 400; }
.mh-vs { font-size: 24px; color: #8b97a4; font-weight: 600; }
.mh-statustag { font-family: 'Oswald', sans-serif; font-weight: 700; font-size: 34px; line-height: 1; letter-spacing: .02em; color: #aab4bf; }
.mh-subline { display: flex; gap: 16px; justify-content: center; margin-top: 8px; font-size: 12px; color: #aab4bf; font-family: 'Roboto Mono', monospace; }
.mh-status { display: flex; gap: 10px; justify-content: center; align-items: center; margin-top: 10px; flex-wrap: wrap; }
.mh-badge { font-family: 'Oswald', sans-serif; font-weight: 700; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; padding: 3px 11px; border-radius: 20px; }
.mh-badge.home, .mh-badge.away { background: #1f7a34; color: #fff; }
.mh-badge.draw { background: #5a636c; color: #fff; }
.mh-tag { font-size: 12px; font-weight: 600; padding: 3px 11px; border-radius: 20px; }
.mh-tag.warn { background: #b4631a; color: #fff; }
.mh-tag.muted { background: rgba(255,255,255,.14); color: #dfe5ea; }
.mh-tag.live { background: #c4122e; color: #fff; }
.mh-reason, .mh-note { font-size: 12px; color: #c8d0d8; font-style: italic; }
/* Neutral venue drops to its own centred line so it never splits status + reason. */
.mh-neutral-line { flex-basis: 100%; display: flex; justify-content: center; }
/* Match id + admin edit icon, top-right (mirrors the player hero). */
.mh-topright { position: absolute; top: 12px; right: 14px; z-index: 2; display: flex; align-items: center; gap: 10px; }
.mh-id { font-family: 'Roboto Mono', monospace; font-size: 12px; opacity: .6; font-weight: 500; letter-spacing: .02em; color: #fff; }
.mh-walkover { text-align: center; margin-top: 8px; font-size: 13px; color: #dfe5ea; }
.mh-walkover strong { color: #fff; font-weight: 700; }
.mh-walkover .mh-wo-sep { opacity: .4; margin: 0 2px; }
.match-notes { background: var(--site-card); border: 1px solid var(--site-line); border-left: 3px solid var(--site-line); border-radius: 8px; padding: 12px 16px; margin: 14px 0 4px; font-size: 14px; line-height: 1.5; color: var(--ink); }
.mh-meta {
    display: flex; flex-wrap: wrap; gap: 14px; margin-top: 14px; padding-top: 12px;
    border-top: 1px solid rgba(255,255,255,.12); font-size: 12.5px; color: #cdd5dd;
}

.match-strip {
    background: var(--site-card); border: 1px solid var(--site-line); border-top: none;
    padding: 12px 16px; display: flex; align-items: center; gap: 14px;
}
.match-strip:last-of-type { border-radius: 0 0 var(--radius) var(--radius); }
.programme-strip .ps-thumb img { height: 48px; width: auto; border-radius: 4px; border: 1px solid var(--site-line); display: block; }
.programme-strip .ps-meta { display: flex; flex-direction: column; line-height: 1.3; }
.programme-strip .ps-meta strong { font-size: 13px; }
.programme-strip .ps-meta span { font-size: 12px; color: #5a6b7a; }
.programme-strip .ps-view { margin-left: auto; font-size: 12.5px; color: var(--brand); font-weight: 600; text-decoration: none; }
.programme-strip .ps-view:hover { text-decoration: underline; }
.engage-strip { gap: 18px; font-size: 13px; flex-wrap: wrap; }
.engage-strip .es-item { display: inline-flex; align-items: center; gap: 7px; }
.engage-strip .es-dot { width: 12px; height: 12px; border-radius: 50%; display: inline-block; }
.engage-strip .es-dot.attended { background: #1f7a34; }
.engage-strip .es-dot.programme { background: #1B458F; }
.engage-strip .es-hint { margin-left: auto; font-size: 12px; color: #8b97a4; }
/* Other results — a quiet, collapsed-by-default footnote at the foot of the page. */
details.other-results { margin-top: 14px; background: var(--site-card); border: 1px solid var(--site-line); border-radius: var(--radius); }
details.other-results > summary {
    cursor: pointer; list-style: none; padding: 9px 14px; font-size: 12px; font-weight: 600;
    color: var(--navy); font-family: 'Oswald', sans-serif; text-transform: uppercase; letter-spacing: .04em;
    display: flex; align-items: center; gap: 8px;
}
details.other-results > summary::-webkit-details-marker { display: none; }
details.other-results > summary::before { content: '▸'; font-size: 10px; color: #9aa6b2; }
details.other-results[open] > summary::before { content: '▾'; }
details.other-results .or-count { background: var(--site-bg); color: #5a6b7a; border-radius: 10px; padding: 0 8px; font-size: 11px; }
details.other-results .or-list { list-style: none; margin: 0; padding: 2px 12px 12px; display: flex; flex-wrap: wrap; gap: 6px; }
details.other-results .or-list a {
    display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 14px;
    background: var(--site-bg); text-decoration: none; color: var(--ink); font-size: 12px; white-space: nowrap;
}
details.other-results .or-list a:hover { background: #e4eaf0; }
details.other-results .or-sc { font-family: 'Roboto Mono', monospace; font-weight: 600; color: var(--navy); }
.match-tab .tab-note {
    padding: 28px; text-align: center; color: #7a8694; font-size: 14px;
    background: var(--site-card); border: 1px solid var(--site-line); border-top: none;
    border-radius: 0 0 var(--radius) var(--radius);
}

/* Match-photo preview strip + Gallery tab grid. */
.action-strip { gap: 14px; }
.action-strip .as-label { font-family: 'Oswald', sans-serif; text-transform: uppercase; letter-spacing: .04em; font-size: 12px; font-weight: 600; color: var(--navy); white-space: nowrap; }
.action-strip .as-thumbs { display: flex; gap: 6px; overflow: hidden; }
.action-strip .as-thumb { display: block; line-height: 0; }
.action-strip .as-thumb img { height: 44px; width: 64px; object-fit: cover; border-radius: 4px; border: 1px solid var(--site-line); }
.action-strip .as-all { margin-left: auto; font-size: 12.5px; color: var(--brand); font-weight: 600; text-decoration: none; white-space: nowrap; }
.action-strip .as-all:hover { text-decoration: underline; }
.gallery-grid {
    background: var(--site-card); border: 1px solid var(--site-line); border-top: none;
    border-radius: 0 0 var(--radius) var(--radius); padding: 14px;
    display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px;
}
.gallery-grid .gallery-item { display: block; line-height: 0; border-radius: 6px; overflow: hidden; border: 1px solid var(--site-line); }
.gallery-grid .gallery-item img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; transition: transform .15s ease; }
.gallery-grid .gallery-item:hover img { transform: scale(1.04); }

/* ============ Match line-ups (tab) ================================ */
.lineups-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 640px) { .lineups-grid { grid-template-columns: 1fr; gap: 14px; } }
.lineup-col { background: var(--site-card); border: 1px solid var(--site-line); border-radius: 8px; overflow: hidden; }
.lineup-team { font-family: 'Oswald', sans-serif; font-weight: 600; font-size: 15px; color: var(--ink); padding: 10px 12px; border-left: 4px solid var(--lc, var(--site-line)); background: var(--site-soft-line); }
.lineup-group { padding: 2px 0 6px; }
.lineup-group-head { font-family: 'Oswald','Source Sans 3',sans-serif; font-size: 10.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); padding: 9px 12px 3px; }
.lineup-row { display: grid; grid-template-columns: 34px 1fr auto; align-items: center; gap: 8px; padding: 5px 12px; border-top: 1px solid var(--site-soft-line); font-size: 14px; }
.lineup-group .lineup-row:first-of-type { border-top: none; }
.lp-pos { font-size: 10.5px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.lp-name a { color: var(--ink); text-decoration: none; font-weight: 600; }
.lp-name a:hover { text-decoration: underline; }
.lp-cap { display: inline-flex; align-items: center; justify-content: center; width: 15px; height: 15px; margin-left: 5px; border-radius: 50%; background: var(--navy, #1B365D); color: #fff; font-size: 9px; font-weight: 700; vertical-align: middle; }
.lp-events { display: inline-flex; align-items: center; gap: 7px; flex-wrap: wrap; justify-content: flex-end; }
.ev { display: inline-flex; align-items: center; gap: 2px; font-size: 13px; line-height: 1; white-space: nowrap; }
.ev-min { color: var(--muted); font-size: 11px; font-variant-numeric: tabular-nums; }
.ev-goal.og { opacity: .85; }
.ev-note { font-size: 8.5px; font-weight: 700; color: var(--muted); vertical-align: super; margin-left: 1px; }
.ev-card { display: inline-block; width: 9px; height: 12px; border-radius: 2px; box-shadow: 0 0 0 .5px rgba(0,0,0,.2); }
.ev-card.yc { background: #f2c200; }
.ev-card.rc { background: #d8392b; }
/* Second-yellow dismissal: red overlaps the yellow — one event, one minute. */
.ev-card-dbl { position: relative; display: inline-block; width: 14px; height: 12px; }
.ev-card-dbl .ev-card { position: absolute; top: 0; }
.ev-card-dbl .yc { left: 0; z-index: 1; }
.ev-card-dbl .rc { left: 5px; z-index: 2; box-shadow: -1px 0 0 rgba(255,255,255,.55), 0 0 0 .5px rgba(0,0,0,.2); }
.ev-sub { font-weight: 700; font-size: 13px; }
.ev-sub.on { color: #1e8449; }
.ev-sub.off { color: #c0392b; }
.lineup-empty { padding: 12px; color: var(--muted); font-size: 13px; }
.lineup-key { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 16px; padding-top: 12px; border-top: 1px solid var(--site-soft-line); font-size: 12px; color: var(--muted); }
.lineup-key .lk { display: inline-flex; align-items: center; gap: 5px; }
.lineup-key .lp-cap { margin-left: 0; }

/* ============ Match: previous/next per team (under hero) ========== */
.match-nav { margin: 14px 0 4px; display: flex; flex-direction: column; gap: 8px; }
.mn-row { display: grid; grid-template-columns: minmax(96px, 150px) 1fr auto 1fr; align-items: center; gap: 12px;
    background: var(--site-card); border: 1px solid var(--site-line); border-left: 4px solid var(--lc, var(--site-line));
    border-radius: 8px; padding: 8px 12px; font-size: 13px; }
.mn-team { font-family: 'Oswald', sans-serif; font-weight: 600; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mn-prev { text-align: right; }
.mn-next { text-align: left; }
.mn-this { font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
.mn-cell { display: inline-flex; align-items: baseline; gap: 5px; color: var(--ink); text-decoration: none; }
.mn-cell:hover { text-decoration: underline; text-underline-offset: 2px; }
.mn-arr { color: var(--muted); font-size: 15px; }
.mn-date { color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.mn-opp { font-weight: 600; }
.mn-res { font-family: 'Roboto Mono', monospace; font-weight: 700; font-variant-numeric: tabular-nums; }
.mn-res.w { color: #1e8449; }
.mn-res.l { color: #c0392b; }
.mn-res.d { color: var(--muted); }
.mn-res.tag { color: var(--muted); font-weight: 600; }
.mn-pen, details.other-results .or-pen { font-size: 9px; font-weight: 800; color: var(--brand); vertical-align: super; line-height: 0; margin: 0 1px; }
.mn-nk { color: var(--muted); }
.mn-none { color: var(--muted); font-style: italic; }
@media (max-width: 640px) {
    .mn-row { grid-template-columns: 1fr; row-gap: 3px; }
    .mn-prev, .mn-next { text-align: left; }
    .mn-this { display: none; }
}

/* ── Match Timeline (§10.5) ─────────────────────────────────────────────── */
.timeline { list-style: none; margin: 14px 0 4px; padding: 0; position: relative; }
.timeline::before { content: ''; position: absolute; left: 50%; top: 6px; bottom: 6px; width: 2px; background: var(--site-line); transform: translateX(-1px); }
.tl-event { position: relative; padding: 4px 0; }
.tl-body { display: flex; align-items: baseline; gap: 7px; width: 50%; box-sizing: border-box; font-size: 14px; line-height: 1.35; }
.tl-home .tl-body { justify-content: flex-end; padding-right: 20px; text-align: right; }
.tl-away .tl-body { margin-left: 50%; justify-content: flex-start; padding-left: 20px; text-align: left; }
.tl-min { color: var(--muted); font: 600 12px/1.4 'Roboto Mono', monospace; }
.tl-text a { color: var(--ink); text-decoration: none; }
.tl-text a:hover { text-decoration: underline; }
.tl-note { color: var(--muted); font-size: 12px; }
.tl-score { font-weight: 700; color: var(--ink); }
.tl-sub { display: inline-flex; flex-direction: column; gap: 1px; }
.tl-sub .tl-on { color: #1a8f3c; }
.tl-sub .tl-off { color: #c0392b; }
.tl-sub a { color: inherit; }
.tl-dot { position: absolute; left: 50%; top: 8px; transform: translateX(-50%); width: 11px; height: 11px; border-radius: 50%; box-shadow: 0 0 0 3px var(--site-card); }
.tl-d-goal { background: #1a8f3c; }
.tl-d-yellow { background: #e3b50a; }
.tl-d-red { background: #c0392b; }
.tl-d-sub { background: #8a93a0; }
.tl-d-miss { background: var(--site-card); border: 2px solid #8a93a0; box-shadow: 0 0 0 3px var(--site-card); }
.tl-d-other { background: #8a93a0; }
.tl-marker { display: flex; justify-content: center; align-items: center; gap: 9px; margin: 9px 0; position: relative; }
.tl-m-label { background: var(--site-soft-line); color: var(--muted); font: 700 11px/1 'Oswald', sans-serif; letter-spacing: .06em; text-transform: uppercase; padding: 4px 12px; border-radius: 11px; }
.tl-m-score { font: 700 14px/1 'Oswald', sans-serif; color: var(--ink); }
.tl-shootout { margin: 16px 0 4px; border-top: 1px solid var(--site-soft-line); padding-top: 12px; }
.tl-shootout-head { font: 700 13px/1.3 'Oswald', sans-serif; text-transform: uppercase; letter-spacing: .04em; color: var(--ink); }
.tl-shootout-score { color: #1a8f3c; margin-left: 4px; }
.tl-shootout-note { display: block; font: 400 12px/1.4 'Source Sans 3', sans-serif; text-transform: none; letter-spacing: 0; color: var(--muted); margin-top: 2px; }
.tl-kicks { list-style: none; margin: 10px 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 3px 24px; }
.tl-kick { font-size: 14px; }
.tl-kick.tl-away { text-align: right; }
.tl-kick-mark { font-weight: 700; margin: 0 5px; }
.tl-kick.scored .tl-kick-mark { color: #1a8f3c; }
.tl-kick.missed .tl-kick-mark { color: #c0392b; }
.tl-kick a { color: var(--ink); text-decoration: none; }
.tl-kick a:hover { text-decoration: underline; }
.tl-key { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 14px; padding-top: 10px; border-top: 1px solid var(--site-soft-line); font-size: 12px; color: var(--muted); }
.tl-key .lk { display: inline-flex; align-items: center; gap: 6px; }
.tl-key .tl-dot { position: static; left: auto; transform: none; box-shadow: none; }
/* Replay controls (§10.5) */
.tl-replay { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 4px 0 14px; padding: 8px 12px; background: var(--site-soft-line); border-radius: 8px; }
.tl-rp-toggle { border: 1px solid var(--site-line); background: var(--site-card); color: var(--ink); font: 600 13px 'Source Sans 3', sans-serif; padding: 5px 12px; border-radius: 6px; cursor: pointer; white-space: nowrap; }
.tl-rp-toggle:hover { border-color: var(--brand); color: var(--brand); }
.tl-rp-track { flex: 1 1 120px; min-width: 100px; height: 6px; background: var(--site-line); border-radius: 3px; overflow: hidden; }
.tl-rp-fill { display: block; width: 0; height: 100%; background: var(--brand); }
.tl-rp-clock { font: 700 13px 'Roboto Mono', monospace; color: var(--ink); min-width: 38px; text-align: right; }
.tl-rp-speeds { display: inline-flex; gap: 4px; }
.tl-rp-speed { border: 1px solid var(--site-line); background: var(--site-card); color: var(--muted); font: 600 12px 'Source Sans 3', sans-serif; padding: 4px 9px; border-radius: 5px; cursor: pointer; }
.tl-rp-speed.is-on { background: var(--brand); color: #fff; border-color: var(--brand); }
/* Progressive reveal: un-shown rows hide instantly, then fade in as the clock passes. */
.tl-stage.tl-playing .tl-event,
.tl-stage.tl-playing .tl-marker,
.tl-stage.tl-playing .tl-shootout { opacity: 0; }
.tl-stage.tl-playing .tl-shown { opacity: 1; transition: opacity .35s ease; }
/* Goal celebration banner */
.tl-goal-banner { position: fixed; top: 26vh; left: 50%; z-index: 60; min-width: 240px; max-width: 86vw;
    padding: 20px 46px; border-radius: 12px; text-align: center; background: var(--gc1, #004400);
    box-shadow: 0 14px 44px rgba(0, 0, 0, .4); opacity: 0; pointer-events: none;
    transform: translateX(-50%) translateY(-10px) scale(.96); transition: opacity .3s ease, transform .3s ease; }
.tl-goal-banner.show { opacity: 1; transform: translateX(-50%) translateY(0) scale(1); }
.tl-goal-banner.flashing { animation: tlGoalFlash .5s steps(1, end) infinite; }
@keyframes tlGoalFlash { 0%, 49% { background: var(--gc1, #004400); } 50%, 100% { background: var(--gc2, #ffffff); } }
.tl-gb-main { font: 800 34px/1 'Oswald', sans-serif; letter-spacing: .08em; text-transform: uppercase; color: #fff;
    text-shadow: -1px -1px 0 rgba(0,0,0,.45), 1px -1px 0 rgba(0,0,0,.45), -1px 1px 0 rgba(0,0,0,.45), 1px 1px 0 rgba(0,0,0,.45), 0 3px 10px rgba(0,0,0,.45); }
.tl-gb-sub { margin-top: 6px; min-height: 1px; font: 700 15px/1.2 'Source Sans 3', sans-serif; color: #fff;
    text-shadow: -1px -1px 0 rgba(0,0,0,.4), 1px 1px 0 rgba(0,0,0,.4), 0 2px 6px rgba(0,0,0,.4); }
.tl-goal-banner.rm { animation: none; }
@media (prefers-reduced-motion: reduce) { .tl-goal-banner.flashing { animation: none; } }
@media (max-width: 560px) {
    .timeline::before { left: 8px; }
    .tl-body, .tl-home .tl-body, .tl-away .tl-body { width: auto; margin-left: 0; padding-left: 26px; padding-right: 0; justify-content: flex-start; text-align: left; }
    .tl-dot { left: 8px; }
    .tl-kicks { grid-template-columns: 1fr; }
    .tl-kick.tl-away { text-align: left; }
}

/* ── Club page (design §3, agreed PoC) ─────────────────────────────────────
   Reuses ClubTheme's --club-* vars; the hero is a Colour1→Colour2 gradient
   (content left-anchored on the Colour1 end where --club-ink contrast holds).
   The stat band mirrors the player stat bar: number over caps label. */
.club-hero {
    position: relative; overflow: hidden;
    background:
        linear-gradient(180deg, rgba(255,255,255,.06), rgba(0,0,0,.10)),
        var(--club-1);
    color: var(--club-ink);
    border-radius: var(--radius) var(--radius) 0 0;
    margin-top: 18px;
    padding: 24px 26px 30px;
    min-height: 104px;
}
.club-watermark {
    --wm-size: 150px;
    position: absolute; right: 18px; top: 50%; transform: translateY(-50%);
    font-family: 'Oswald', sans-serif;
    font-size: var(--wm-size); font-weight: 700; line-height: 1; letter-spacing: -5px;
    color: var(--club-watermark); opacity: var(--club-watermark-op, .55);
    pointer-events: none; user-select: none; white-space: nowrap; z-index: 0;
    text-transform: lowercase; text-align: right;
}
.club-id-block { position: relative; z-index: 1; }
.club-eyebrow {
    font-size: 11.5px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase;
    color: var(--club-ink); opacity: .62; margin-bottom: 8px;
}
.club-name { font-size: 40px; font-weight: 700; margin: 0; line-height: 1.02; letter-spacing: -.5px; color: var(--club-name); }
.club-edit { position: absolute; top: 14px; right: 14px; z-index: 2; }
.club-meta {
    position: absolute; right: 22px; bottom: 12px; z-index: 1;
    font-size: 12px; color: var(--club-ink); opacity: .6; text-align: right; max-width: 60%;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.club-meta a { color: inherit; text-decoration: none; }
.club-meta a:hover { text-decoration: underline; opacity: 1; }

/* Six-cell W/D/L stat band — number over label, like .stat-bar but light. */
.club-stats {
    display: grid; grid-template-columns: repeat(6, 1fr);
    background: var(--panel); border: 1px solid var(--site-soft-line); border-top: 0;
}
.club-stats .cell { text-align: center; padding: 14px 6px; border-left: 1px solid var(--site-soft-line); }
.club-stats .cell:first-child { border-left: 0; }
.club-stats .n { font-size: 27px; font-weight: 800; line-height: 1; letter-spacing: -.5px; color: var(--navy); font-variant-numeric: tabular-nums; }
.club-stats .n.win  { color: #1f8a3b; }
.club-stats .n.loss { color: #c0392b; }
.club-stats .n.draw { color: #6b7682; }
.club-stats .l { font-size: 9.5px; letter-spacing: .09em; text-transform: uppercase; color: var(--muted); margin-top: 5px; }

.wdl-bar { display: flex; height: 7px; overflow: hidden; border: 1px solid var(--site-soft-line); border-top: 0; }
.wdl-bar span { display: block; height: 100%; }
.wdl-bar .w { background: #2aa84a; }
.wdl-bar .d { background: #c2ccd6; }
.wdl-bar .l { background: #d65745; }

/* Latest result + record attendance strip */
.club-summary-strip {
    display: flex; justify-content: space-between; align-items: flex-start; gap: 18px;
    background: #fff; border: 1px solid var(--site-soft-line); border-top: 0;
    border-radius: 0 0 var(--radius) var(--radius);
    padding: 14px 18px;
}
.club-summary-strip .ss-k { font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 3px; }
.club-summary-strip .ss-record { text-align: right; }
.club-summary-strip .ss-result { font-size: 16px; font-weight: 700; color: var(--navy); }
.club-summary-strip .ss-result a { color: inherit; text-decoration: none; }
.club-summary-strip .ss-result a:hover { color: var(--brand); text-decoration: underline; }
.club-summary-strip .ss-pens { font-size: 12px; font-weight: 600; color: var(--muted); }
.club-summary-strip .ss-sub { font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.club-summary-strip .ss-att { font-size: 16px; font-weight: 700; color: var(--navy); font-variant-numeric: tabular-nums; }

/* Team-level selector */
.club-levels { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 4px; align-items: center; }
.club-levels .lvl-sel-wrap { position: relative; display: inline-flex; }
.club-levels .lvl-sel-wrap::after {
    content: "\25BE"; position: absolute; right: 11px; top: 50%; transform: translateY(-50%);
    pointer-events: none; font-size: 10px; color: var(--club-accent);
}
.club-levels .lvl-sel-wrap.active::after { color: var(--club-ink); }
.club-levels .lvl-btn,
.club-levels .lvl-select {
    box-sizing: border-box; height: 32px; line-height: 1;
    font-size: 13px; font-weight: 600;
    border-radius: 999px; border: 1.5px solid var(--club-accent);
    color: var(--club-accent); background: #fff;
}
.club-levels .lvl-btn {
    display: inline-flex; align-items: center; padding: 0 14px;
    text-decoration: none; transition: background .12s, color .12s;
}
.club-levels .lvl-select {
    appearance: none; -webkit-appearance: none;
    padding: 0 26px 0 12px; cursor: pointer; max-width: 200px;
}
.club-levels .lvl-btn:hover,
.club-levels .lvl-select:hover { background: var(--soft); }
.club-levels .lvl-btn.active,
.club-levels .lvl-select.active { background: var(--club-1); color: var(--club-ink); border-color: transparent; }
.club-tabs-placeholder { margin-top: 16px; }

/* Biggest win / defeat + archive-depth line */
.club-records { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 16px; }
.club-records .cs-rec {
    background: var(--panel); border: 1px solid var(--site-soft-line); border-radius: var(--radius);
    padding: 12px 14px; border-left-width: 3px;
}
.club-records .cs-rec.win  { border-left-color: #1f8a3b; }
.club-records .cs-rec.loss { border-left-color: #c0392b; }
.club-records .ss-k { font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 3px; }
.club-records .cs-rec-score { font-size: 20px; font-weight: 800; color: var(--navy); font-variant-numeric: tabular-nums; }
.club-records .cs-rec-score a { color: inherit; text-decoration: none; }
.club-records .cs-rec-score a:hover { color: var(--brand); text-decoration: underline; }
.club-records .cs-rec-sub { font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.club-records .cs-rec-sub a { color: var(--brand); text-decoration: none; }
.club-records .cs-rec-sub a:hover { text-decoration: underline; }
.club-depth { margin-top: 12px; font-size: 12.5px; color: var(--muted); }

/* ---- Content tab bar ---- */
.club-tabs {
    display: flex; flex-wrap: wrap; gap: 2px; margin: 18px 0 0;
    border-bottom: 2px solid var(--site-line);
}
.club-tab {
    text-decoration: none; font-size: 13.5px; font-weight: 600; color: var(--muted);
    padding: 9px 15px; border-bottom: 2px solid transparent; margin-bottom: -2px;
}
.club-tab:hover { color: var(--navy); }
.club-tab.active { color: var(--club-accent); border-bottom-color: var(--club-1); }
.club-tab.disabled { color: var(--site-line); cursor: default; }
.club-tab-content { margin-top: 16px; }

/* ---- Shared season navigator ---- */
.season-nav { margin-bottom: 14px; display: flex; align-items: center; gap: 8px; justify-content: flex-end; }
.sn-select {
    font: inherit; font-size: 13px; font-weight: 600; color: var(--navy);
    padding: 6px 12px; border-radius: 8px; border: 1px solid var(--site-line);
    background: #fff; cursor: pointer; width: 200px;
}
.sn-select:focus { outline: 2px solid var(--navy); outline-offset: 1px; }
.sn-arrow {
    flex: 0 0 auto; text-decoration: none; font-size: 20px; line-height: 1; color: var(--navy);
    padding: 4px 10px; border-radius: 7px; border: 1px solid var(--site-line); background: #fff;
}
.sn-arrow:hover { background: var(--soft); }
.sn-arrow.disabled { color: var(--site-line); pointer-events: none; }

/* ---- Chips (pager) ---- */
.cm-chip {
    text-decoration: none; font-size: 12px; font-weight: 600; color: var(--muted);
    padding: 4px 11px; border-radius: 999px; border: 1px solid var(--site-line); background: #fff;
}
.cm-chip:hover { color: var(--navy); }

/* ---- View summary line ---- */
.cm-summary { display: flex; align-items: baseline; gap: 12px; margin: 6px 0 8px; }
.cm-count { font-size: 12px; color: var(--muted); }
.cm-rec { font-size: 11.5px; font-weight: 700; color: var(--navy); font-variant-numeric: tabular-nums; }
.cm-empty { padding: 24px; text-align: center; color: var(--muted); font-size: 13.5px; }

/* ---- Match row ---- */
.cm-list { display: flex; flex-direction: column; }
.cmr {
    display: grid; align-items: center; gap: 10px;
    grid-template-columns: 22px 112px 54px 24px minmax(0,1.4fr) minmax(0,1fr) 56px;
    padding: 7px 6px; border-bottom: 1px solid var(--site-soft-line); font-size: 13px;
}
.cmr:hover { background: var(--soft); }
.cmr-oc {
    width: 22px; height: 22px; border-radius: 5px; display: inline-flex; align-items: center;
    justify-content: center; font-size: 11px; font-weight: 800; color: #fff;
}
.cmr-oc.w { background: #2aa84a; }
.cmr-oc.d { background: #8a96a2; }
.cmr-oc.l { background: #d65745; }
.cmr-oc.p { background: #c2ccd6; color: #5a6672; }
.cmr-date { color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.cmr-score {
    justify-self: end; display: inline-flex; flex-direction: column; align-items: flex-end;
    line-height: 1.05; font-weight: 700; color: var(--navy); text-decoration: none;
    font-variant-numeric: tabular-nums; white-space: nowrap;
}
.cmr-score:hover { color: var(--brand); }
.cmr-score .muted { color: var(--muted); font-weight: 600; }
.cmr-score .has-pens { cursor: help; }
.cmr-score .pen-mark { font-size: .68em; font-weight: 700; color: var(--brand); vertical-align: super; margin: 0 1px; }
.cmr-score .score-note { display: block; font-size: .64em; font-weight: 400; color: var(--muted); margin: 0; text-transform: none; }
.cmr-venue {
    width: 24px; height: 20px; border-radius: 4px; display: inline-flex; align-items: center;
    justify-content: center; font-size: 10px; font-weight: 700;
}
.cmr-venue.v-h { background: #2c3540; color: #fff; }
.cmr-venue.v-a { background: #e3e8ed; color: #5a6672; }
.cmr-venue.v-n { background: #d4e6f7; color: #2e6da4; }
.cmr-opp { min-width: 0; }
.cmr-opp a { color: var(--navy); text-decoration: none; font-weight: 600; }
.cmr-opp a:hover { color: var(--brand); text-decoration: underline; }
.cmr-playedas { display: block; font-size: 11px; font-style: italic; color: #b07a14; margin-top: 1px; }
.cmr-comp { min-width: 0; color: var(--muted); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cmr-comp a { color: inherit; text-decoration: none; }
.cmr-comp a:hover { color: var(--brand); text-decoration: underline; }
.cmr-att { justify-self: end; color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; }
.cmr-bcd { text-decoration: none; border-bottom: 1px dotted var(--muted); cursor: help; font-weight: 600; letter-spacing: .3px; }

/* ---- Pager ---- */
.cm-pager { display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: 16px; }
.cm-page { font-size: 12.5px; color: var(--muted); }

/* ---- Squad table ---- */
.club-squad { margin-top: 4px; overflow-x: auto; }
.squad-table { width: 100%; table-layout: fixed; border-collapse: collapse; font-size: 13px; min-width: 760px; }
.squad-table th, .squad-table td { padding: 7px 8px; border-bottom: 1px solid var(--site-soft-line); }
.squad-table thead th {
    text-align: left; font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
    color: var(--muted); border-bottom: 2px solid var(--site-line); user-select: none; white-space: nowrap;
}
.squad-table thead th:hover { color: var(--navy); }
/* Proportional columns fill the full width — identity left, stats spread right. */
.squad-table th.sq-fav   { width: 3%; }
.squad-table th.sq-name  { width: 23%; }
.squad-table th.sq-pos   { width: 9%; }
.squad-table th.sq-birth { width: 18%; }
.squad-table th.sq-born  { width: 16%; }
.squad-table th.sq-num   { width: 6.2%; }
.squad-table th.sq-num, .squad-table td.sq-num { text-align: center; }
.squad-table th.sq-pos, .squad-table td.sq-pos { text-align: left; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.squad-table th.sq-birth, .squad-table td.sq-birth { text-align: left; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--muted); }
.squad-table th.sq-born, .squad-table td.sq-born { text-align: left; white-space: nowrap; color: var(--muted); }
.squad-table td.sq-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.squad-table td.sq-born .sq-bage { color: var(--navy); font-variant-numeric: tabular-nums; }
.squad-table td.sq-pos span { font-weight: 600; color: var(--muted); }
.squad-table td.sq-name a.sq-loan { font-style: italic; }
/* A little air between the identity columns and the stat group. */
.squad-table th.sq-gap, .squad-table td.sq-gap { padding-left: 16px; }
/* Favourite star — inert placeholder until member accounts land. */
.squad-table th.sq-fav, .squad-table td.sq-fav { padding-left: 2px; padding-right: 2px; text-align: center; }
.squad-table .fav { display: inline-flex; color: var(--site-line); vertical-align: middle; }
.squad-table th[data-dir]::after { content: ' ▾'; font-size: 9px; color: var(--club-accent); }
.squad-table th[data-dir="asc"]::after { content: ' ▴'; }
.squad-table tbody tr:hover { background: var(--soft); }
.squad-table td.sq-name { white-space: nowrap; }
.squad-table td.sq-name .flag { width: 16px; height: auto; vertical-align: -2px; margin-right: 5px; border-radius: 2px; }
.squad-table td.sq-name a { color: var(--navy); text-decoration: none; font-weight: 600; }
.squad-table td.sq-name a:hover { color: var(--brand); text-decoration: underline; }
.squad-table td.sq-num { font-variant-numeric: tabular-nums; color: var(--navy); }
.sq-zero { color: var(--site-line); }
.squad-table tr.sq-dim td.sq-name a, .squad-table tr.sq-dim td { color: var(--muted); font-weight: 400; }
.squad-table tr.sq-dim td.sq-name a { font-weight: 500; }

@media (max-width: 640px) {
    .cmr { grid-template-columns: 20px 1fr auto; row-gap: 2px; column-gap: 8px; }
    .cmr-oc { grid-row: 1 / 3; align-self: start; }
    .cmr-date { grid-column: 2; grid-row: 1; }
    .cmr-score { grid-column: 3; grid-row: 1; justify-self: end; }
    .cmr-venue { display: none; }
    .cmr-att { display: none; }
    .cmr-opp { grid-column: 2 / 4; grid-row: 2; }
    .cmr-comp { grid-column: 2 / 4; grid-row: 3; }
}

@media (max-width: 640px) {
    .club-name { font-size: 27px; }
    .club-watermark { font-size: 118px; }
    .club-meta { position: static; max-width: none; text-align: left; margin-top: 12px; opacity: .7; }
    .club-stats { grid-template-columns: repeat(3, 1fr); }
    .club-stats .cell:nth-child(4) { border-left: 0; }
    .club-summary-strip { flex-direction: column; gap: 12px; }
    .club-summary-strip .ss-record { text-align: left; }
    .club-records { grid-template-columns: 1fr; }
}

/* ============================================================================
   Club — On This Day tab (design §6)
   ========================================================================= */
.club-otd { margin-top: 4px; }

/* Date navigation: prev/next steppers, the day-month label, a jump picker. */
.otd-nav { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 16px; }
.otd-step {
    display: inline-flex; align-items: center; justify-content: center;
    width: 30px; height: 30px; border: 1px solid var(--site-line); border-radius: 7px;
    background: var(--site-card); color: var(--navy); font-size: 18px; line-height: 1; text-decoration: none;
}
.otd-step:hover { border-color: var(--club-accent); color: var(--club-accent); }
.otd-date { display: flex; align-items: baseline; gap: 8px; }
.otd-label { font-family: 'Oswald', sans-serif; font-size: 20px; font-weight: 600; color: var(--navy); letter-spacing: .01em; }
.otd-today {
    font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em;
    color: #fff; background: var(--club-accent); border-radius: 10px; padding: 2px 8px;
}
.otd-pick { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.otd-pick input[type=date] { font: inherit; padding: 5px 8px; border: 1px solid var(--site-line); border-radius: 7px; background: var(--site-card); color: var(--navy); }
.otd-go { font: inherit; font-size: 13px; padding: 6px 12px; border: 1px solid var(--site-line); border-radius: 7px; background: var(--site-card); color: var(--navy); cursor: pointer; }
.otd-go:hover { border-color: var(--club-accent); color: var(--club-accent); }

.otd-empty { padding: 28px 8px; color: var(--muted); font-size: 15px; text-align: center; }

/* Notable strip — gold, one row per cup final on this date. */
.otd-notable { background: linear-gradient(180deg, #fbe9a8, #f4cf57); border: 1px solid #e3b53b; border-radius: 10px; padding: 4px 0; margin-bottom: 18px; }
.otd-notable-row { display: flex; align-items: center; gap: 10px; padding: 8px 14px; border-top: 1px solid rgba(160,120,20,.22); }
.otd-notable-row:first-child { border-top: 0; }
.otd-trophy { font-size: 18px; line-height: 1; }
.otd-notable-text { color: #5b4406; font-size: 14px; }
.otd-notable-text strong { color: #4a3700; }
.otd-vs a { color: #6a4e07; text-decoration: underline; }
.otd-notable-link { margin-left: auto; font-size: 13px; font-weight: 600; color: #6a4e07; text-decoration: none; white-space: nowrap; }
.otd-notable-link:hover { text-decoration: underline; }

/* Sections + headings. */
.otd-section { margin-bottom: 20px; }
.otd-h { font-family: 'Oswald', sans-serif; font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); margin: 0 0 8px; }

/* Highlight match — context header above a reused match row. */
.otd-highlight { border: 1px solid var(--site-line); border-radius: 10px; background: var(--site-card); padding: 4px 14px 6px; }
.otd-hl-head { display: flex; align-items: center; gap: 10px; padding: 10px 0 8px; border-bottom: 1px solid var(--site-soft-line); margin-bottom: 2px; }
.otd-hl-year { font-family: 'Oswald', sans-serif; font-size: 22px; font-weight: 700; color: var(--navy); line-height: 1; }
.otd-hl-comp { font-size: 13px; color: var(--muted); }
.otd-hl-final { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: #6a4e07; background: #f4cf57; border-radius: 10px; padding: 2px 8px; margin-left: auto; }
.otd-highlight .cmr { border: 0; }

/* "N more on this date" disclosure. */
.otd-more { margin-bottom: 20px; }
.otd-more > summary { cursor: pointer; font-size: 13px; font-weight: 600; color: var(--club-accent); padding: 6px 2px; user-select: none; }
.otd-more > summary:hover { text-decoration: underline; }
.otd-more .cm-list { margin-top: 4px; }

/* Born / Remembered — collapsible card grids. */
.otd-people > summary { cursor: pointer; display: flex; align-items: center; gap: 8px; }
.otd-people > summary::-webkit-details-marker { display: none; }
.otd-people > summary .otd-n { font-size: 11px; font-weight: 700; color: var(--muted); background: var(--site-soft-line); border-radius: 9px; padding: 1px 7px; }
.otd-person-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; margin-top: 10px; }
.otd-person { display: grid; grid-template-columns: 1fr auto; align-items: baseline; gap: 2px 8px; border: 1px solid var(--site-line); border-radius: 9px; background: var(--site-card); padding: 10px 12px; text-decoration: none; }
.otd-person:hover { border-color: var(--club-accent); }
.otd-person-name { grid-column: 1; font-weight: 600; color: var(--navy); }
.otd-person-pos { grid-column: 2; font-size: 11px; font-weight: 700; color: var(--muted); }
.otd-person-life { grid-column: 1 / -1; font-size: 12.5px; color: var(--muted); }
.otd-person-apps { grid-column: 1 / -1; font-size: 12px; color: var(--navy); font-variant-numeric: tabular-nums; margin-top: 2px; }

/* ============================================================================
   Club — History tab (design §7): Cup History + deferred league note
   ========================================================================= */
.club-history { margin-top: 4px; }
.ch-wrap { overflow-x: auto; }
.ch-table { width: 100%; border-collapse: collapse; font-size: 13px; min-width: 560px; }
.ch-table th, .ch-table td { padding: 8px 10px; border-bottom: 1px solid var(--site-soft-line); text-align: left; vertical-align: middle; }
.ch-table thead th { font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); border-bottom: 2px solid var(--site-line); white-space: nowrap; }
.ch-table td.ch-season { font-variant-numeric: tabular-nums; color: var(--navy); white-space: nowrap; }
.ch-table td.ch-comp { color: var(--navy); }
.ch-table th.ch-reached, .ch-table td.ch-reached { white-space: nowrap; }

/* Phase badge — gold Winners, blue Final, green SF, grey QF, red early. */
.ch-badge { display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: .03em; border-radius: 10px; padding: 2px 9px; white-space: nowrap; }
.ch-badge.ch-win   { background: #f4cf57; color: #5b4406; }
.ch-badge.ch-final { background: #dbe7fb; color: #25467e; }
.ch-badge.ch-sf    { background: #d9efdd; color: #1f6b34; }
.ch-badge.ch-qf    { background: #e6e9ee; color: #4a5360; }
.ch-badge.ch-early { background: #f7dcdc; color: #9a2b2b; }

/* Result cell — outcome chip, scoreline, opponent, venue. */
.ch-result { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.ch-oc { display: inline-flex; align-items: center; justify-content: center; width: 18px; height: 18px; border-radius: 4px; font-size: 11px; font-weight: 700; color: #fff; }
.ch-oc.w { background: #2e7d3a; } .ch-oc.d { background: #9097a1; } .ch-oc.l { background: #b23b3b; }
.ch-score { color: var(--navy); font-variant-numeric: tabular-nums; text-decoration: none; font-weight: 600; }
.ch-score:hover { text-decoration: underline; }
.ch-score .pen-mark { font-size: 9px; vertical-align: super; color: var(--club-accent); font-weight: 700; }
.ch-score .score-note { font-size: 10px; color: var(--muted); margin-left: 3px; }
.ch-vs { color: var(--muted); }
.ch-vs a { color: var(--navy); text-decoration: none; }
.ch-vs a:hover { text-decoration: underline; }
.ch-venue { display: inline-flex; align-items: center; justify-content: center; width: 17px; height: 17px; border-radius: 4px; font-size: 10px; font-weight: 700; background: var(--site-soft-line); color: var(--muted); }
.ch-venue.v-h { background: #e3efe3; color: #2e7d3a; }
.ch-venue.v-a { background: #eef1f5; color: #5a6472; }
.ch-venue.v-n { background: #efe7f5; color: #6a4a86; }

.ch-soon { color: var(--muted); font-size: 13.5px; padding: 6px 2px; }

/* ---- League record table (design §7.3) ---- */
.lr-wrap { overflow-x: auto; }
.lr-table { width: 100%; border-collapse: collapse; font-size: 13px; min-width: 680px; }
.lr-table th, .lr-table td { padding: 7px 8px; border-bottom: 1px solid var(--site-soft-line); text-align: left; white-space: nowrap; }
.lr-table thead th { font-size: 11px; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; color: var(--muted); border-bottom: 2px solid var(--site-line); }
.lr-table th.lr-n, .lr-table td.lr-n { text-align: center; width: 38px; font-variant-numeric: tabular-nums; }
.lr-table td.lr-season { font-variant-numeric: tabular-nums; color: var(--navy); }
.lr-table td.lr-comp { color: var(--navy); white-space: normal; }
.lr-level { font-size: 11px; color: var(--muted); margin-left: 6px; }
.lr-table td.lr-pos { text-align: left; font-variant-numeric: tabular-nums; color: var(--navy); }
.lr-champ { display: inline-block; background: #f4cf57; color: #5b4406; font-weight: 700; border-radius: 9px; padding: 1px 8px; }
.lr-pts strong { color: var(--navy); }
.lr-mile { white-space: normal; }
.lr-badge { display: inline-block; font-size: 11px; font-weight: 700; color: #fff; border-radius: 9px; padding: 2px 8px; margin-right: 4px; }
.lr-prov { display: inline-block; font-size: 11px; font-weight: 700; color: #8a5a00; background: #fbeac2; border-radius: 9px; padding: 1px 8px; }
.lr-exp { opacity: .6; }
.lr-exp td.lr-season, .lr-exp td.lr-comp { text-decoration: line-through; }
.lr-exp-tag { color: #9a2b2b; background: #f7dcdc; }

/* ---- History sub-tabs (League / Cup) + cup filters ---- */
.hist-tabs { display: inline-flex; gap: 2px; background: var(--site-soft-line); border-radius: 9px; padding: 3px; margin-bottom: 16px; }
.hist-tab { font-size: 13px; font-weight: 600; color: var(--muted); text-decoration: none; padding: 5px 16px; border-radius: 7px; }
.hist-tab:hover { color: var(--navy); }
.hist-tab.active { background: var(--site-card); color: var(--navy); box-shadow: 0 1px 2px rgba(0,0,0,.08); }

.cup-filters { display: flex; align-items: flex-end; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.cf-field { display: flex; flex-direction: column; gap: 4px; }
.cf-label { font-size: 11px; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; color: var(--muted); }
.cup-filters select { font: inherit; font-size: 13px; padding: 6px 10px; border: 1px solid var(--site-line); border-radius: 7px; background: var(--site-card); color: var(--navy); min-width: 160px; }
.cup-filters select:focus { outline: 2px solid var(--club-accent); outline-offset: -1px; }

/* ---- League position chart (design §7.2) ---- */
.pc-wrap { margin-top: 4px; }
.pc-svg { width: 100%; height: auto; max-width: 820px; display: block; }
.pc-band { fill: transparent; }
.pc-band.alt { fill: rgba(27, 54, 93, .035); }
.pc-grid { stroke: var(--site-soft-line); stroke-width: 1; }
.pc-ylabel { fill: var(--muted); font-size: 11px; font-weight: 600; }
.pc-xlabel { fill: var(--muted); font-size: 10px; }
.pc-line { stroke: var(--navy); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.pc-dot { fill: var(--navy); stroke: #fff; stroke-width: 1.5; }
.pc-orphan { fill: var(--navy); }
.pc-pt { cursor: default; }
.pc-pt:hover .pc-dot { stroke: var(--club-accent); stroke-width: 2; }
.pc-note { color: var(--muted); font-size: 12.5px; margin-top: 10px; max-width: 820px; line-height: 1.5; }

/* ---- Position chart range (zoom) control ---- */
.pc-range { display: flex; align-items: flex-end; gap: 14px; flex-wrap: wrap; margin-bottom: 14px; }
.pc-range-form { display: flex; align-items: flex-end; gap: 10px; flex-wrap: wrap; }
.pc-range select { font: inherit; font-size: 13px; padding: 6px 10px; border: 1px solid var(--site-line); border-radius: 7px; background: var(--site-card); color: var(--navy); min-width: 96px; }
.pc-range select:focus { outline: 2px solid var(--club-accent); outline-offset: -1px; }
.pc-reset { font-size: 13px; font-weight: 600; color: var(--club-accent); text-decoration: none; align-self: center; }
.pc-reset:hover { text-decoration: underline; }
.pc-span { font-size: 12.5px; color: var(--muted); align-self: center; font-variant-numeric: tabular-nums; }

/* ============ Programmes tab (Archive) ============ */
.pg-modes { display: flex; gap: 8px; margin-bottom: 16px; flex-wrap: wrap; }
.pg-mode { font-size: 13px; font-weight: 600; padding: 7px 14px; border-radius: 999px; border: 1px solid var(--site-line); color: var(--muted); background: var(--site-card); }
.pg-mode.active { background: var(--club-accent); border-color: var(--club-accent); color: #fff; }
.pg-mode.locked { opacity: .6; cursor: default; display: inline-flex; align-items: center; gap: 7px; }
.pg-lock { font-size: 9.5px; text-transform: uppercase; letter-spacing: .05em; background: var(--site-line); color: var(--muted); padding: 2px 6px; border-radius: 4px; }
.pg-tally { font-size: 12.5px; color: var(--muted); align-self: center; }

.pg-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(148px, 1fr)); gap: 16px; margin-top: 16px; }
.pg-card { display: flex; flex-direction: column; text-decoration: none; color: inherit; border: 1px solid var(--site-line); border-radius: 10px; overflow: hidden; background: var(--site-card); transition: box-shadow .15s, transform .15s; }
.pg-card:hover { box-shadow: 0 6px 18px rgba(0,0,0,.14); transform: translateY(-2px); }
.pg-cover { position: relative; aspect-ratio: 3 / 4; background: #1a2230; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.pg-cover img { width: 100%; height: 100%; object-fit: cover; }
.pg-ph { font-size: 12px; font-weight: 600; color: #aeb6c2; text-align: center; padding: 0 8px; }
.pg-card.is-missing .pg-cover { background: repeating-linear-gradient(45deg, #232c3a, #232c3a 8px, #1c2431 8px, #1c2431 16px); }
.pg-card.is-missing .pg-ph { color: #e0a64e; }
.pg-card.is-none .pg-cover { background: #202733; }
.pg-contrib { position: absolute; left: 6px; bottom: 6px; max-width: 78%; font-size: 10.5px; font-weight: 600; color: #fff; background: rgba(0,0,0,.62); padding: 2px 7px; border-radius: 5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pg-venue { position: absolute; right: 6px; top: 6px; width: 20px; height: 20px; border-radius: 50%; font-size: 11px; font-weight: 700; color: #fff; display: flex; align-items: center; justify-content: center; }
.pg-venue-H { background: #2f8f4e; } .pg-venue-A { background: #b4564e; } .pg-venue-N { background: #5a6b86; }
.pg-meta { display: flex; flex-direction: column; gap: 2px; padding: 9px 10px 11px; }
.pg-date { font-size: 11px; color: var(--muted); }
.pg-opp { font-size: 13.5px; font-weight: 700; color: var(--navy); line-height: 1.2; }
.pg-comp { font-size: 11.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pg-status { margin-top: 5px; align-self: flex-start; font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: .03em; color: var(--muted); border: 1px solid var(--site-line); border-radius: 999px; padding: 2px 8px; }
.pg-status.none { opacity: .65; }

/* ============ Books tab ============ */
.bk-strip { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; margin-bottom: 18px; padding-bottom: 12px; border-bottom: 1px solid var(--site-line); }
.bk-count { font-size: 15px; font-weight: 700; color: var(--navy); }
.bk-contrib-prompt { font-size: 13px; color: var(--muted); }
.bk-contrib-prompt a { color: var(--club-accent); font-weight: 600; }
.bk-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 18px; align-items: start; grid-auto-flow: row dense; }
.bk-card { position: relative; display: block; text-decoration: none; color: inherit; border-radius: 8px; overflow: hidden; box-shadow: 0 3px 10px rgba(0,0,0,.14); transition: transform .15s, box-shadow .15s; }
.bk-card:hover { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(0,0,0,.22); }
.bk-card.is-landscape { grid-column: span 2; }
.bk-cover { position: relative; aspect-ratio: 2 / 3; background: #1a2230; display: block; }
.bk-card.is-landscape .bk-cover { aspect-ratio: 3 / 2; }
.bk-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.bk-cover::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 14px; background: linear-gradient(90deg, rgba(0,0,0,.45), rgba(0,0,0,.04)); z-index: 2; }
.bk-hover { position: absolute; inset: auto 0 0 0; padding: 26px 12px 12px; background: linear-gradient(transparent, rgba(0,0,0,.86)); color: #fff; opacity: 0; transition: opacity .15s; }
.bk-card:hover .bk-hover { opacity: 1; }
.bk-h-title { display: block; font-size: 13px; font-weight: 700; line-height: 1.25; }
.bk-h-sub { display: block; font-size: 11.5px; color: #cfd6e0; margin-top: 2px; }

.bk-modal { display: none; position: fixed; inset: 0; z-index: 1000; align-items: center; justify-content: center; padding: 20px; }
.bk-modal:target { display: flex; }
.bk-modal-bg { position: absolute; inset: 0; background: rgba(8,12,20,.72); }
.bk-modal-card { position: relative; z-index: 2; display: flex; max-width: 760px; width: 100%; max-height: 88vh; min-height: 380px; background: var(--site-card); border-radius: 14px; overflow: hidden; box-shadow: 0 30px 80px rgba(0,0,0,.5); }
.bk-modal-cover { flex: 0 0 40%; background: #11161f; display: flex; align-items: center; justify-content: center; }
.bk-modal-cover img { width: 100%; height: auto; max-height: 88vh; object-fit: contain; display: block; }
.bk-modal-body { flex: 1 1 0; position: relative; min-height: 0; }
.bk-modal-body-inner { position: absolute; inset: 0; overflow-y: auto; padding: 24px 26px; }
.bk-close { position: absolute; right: 12px; top: 10px; z-index: 3; font-size: 24px; line-height: 1; color: var(--muted); text-decoration: none; width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; border-radius: 50%; }
.bk-close:hover { background: var(--site-line); color: var(--navy); }
.bk-m-title { margin: 0 0 2px; font-size: 20px; color: var(--navy); }
.bk-m-author { margin: 0 0 14px; font-size: 14px; color: var(--muted); }
.bk-m-synopsis { font-size: 13.5px; line-height: 1.55; color: var(--navy); }
.bk-m-meta { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px 18px; margin: 16px 0; }
.bk-m-meta dt { font-size: 10.5px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.bk-m-meta dd { margin: 1px 0 0; font-size: 13px; color: var(--navy); }
.bk-m-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 14px 0; }
.bk-tag { font-size: 11.5px; font-weight: 600; color: var(--club-accent); background: var(--site-card); border: 1px solid var(--club-accent); border-radius: 999px; padding: 3px 10px; }
.bk-m-link a { color: var(--club-accent); font-weight: 600; text-decoration: none; }
@media (max-width: 560px) {
    .bk-modal-card { flex-direction: column; min-height: 0; overflow-y: auto; }
    .bk-modal-cover { flex: 0 0 auto; align-items: center; }
    .bk-modal-cover img { width: auto; max-width: 62%; max-height: 42vh; }
    .bk-modal-body { position: static; }
    .bk-modal-body-inner { position: static; padding: 20px; }
}

/* Book modal — collapsible description (keeps the default view compact) */
.bk-syn { margin: 4px 0 14px; }
.bk-syn > summary { cursor: pointer; font-size: 13px; font-weight: 600; color: var(--club-accent); list-style: none; display: inline-flex; align-items: center; gap: 6px; padding: 5px 0; user-select: none; }
.bk-syn > summary::-webkit-details-marker { display: none; }
.bk-syn > summary::after { content: "▾"; font-size: 10px; transition: transform .15s; }
.bk-syn[open] > summary::after { transform: rotate(180deg); }

/* ---- Programme modal (reuses the .bk-modal shell) ---- */
.pg-modal-cover { background: #fff; }
.pg-modal-cover.is-missing { background: repeating-linear-gradient(45deg, #232c3a, #232c3a 10px, #1c2431 10px, #1c2431 20px); }
.pg-modal-cover.is-none { background: #202733; }
.pg-modal-ph { color: #aeb6c2; font-size: 13px; font-weight: 600; text-align: center; padding: 0 14px; }
.pg-modal-cover.is-missing .pg-modal-ph { color: #e0a64e; }
.pg-head { text-align: center; margin-bottom: 16px; padding-bottom: 16px; border-bottom: 1px solid var(--site-line); }
.pg-head-comp { font-size: 11.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); margin-bottom: 9px; }
.pg-head-fixture { display: flex; align-items: center; justify-content: center; gap: 12px; }
.pg-head-team { flex: 1 1 0; min-width: 0; font-size: 15.5px; font-weight: 700; color: var(--navy); line-height: 1.2; }
.pg-head-team:first-child { text-align: right; }
.pg-head-team:last-child { text-align: left; }
.pg-head-team.mine { font-weight: 800; }   /* colour set inline from ClubTheme::pageAccent */
.pg-head-score { flex: 0 0 auto; font-size: 22px; font-weight: 800; color: var(--navy); white-space: nowrap; }
.pg-head-score .pen-mark { font-size: 11px; vertical-align: super; color: var(--club-accent); }
.pg-head-score .score-note { font-size: 10px; font-weight: 600; color: var(--muted); text-transform: uppercase; margin-left: 5px; }
.pg-head-score .pg-h-tag, .pg-head-score .pg-h-v { font-size: 16px; font-weight: 600; color: var(--muted); }
.pg-head-meta { margin-top: 10px; font-size: 12px; color: var(--muted); }
.pg-modal-status { font-size: 13px; color: var(--navy); margin: 0 0 14px; }
.pg-modal-status strong { font-weight: 700; }
.pg-modal-actions { margin: 0 0 18px; }
.pg-view-match { display: inline-block; background: var(--club-accent); color: #fff; font-weight: 700; font-size: 13.5px; padding: 9px 16px; border-radius: 8px; text-decoration: none; }
.pg-view-match:hover { filter: brightness(1.07); }
.pg-modal-locked { border: 1px dashed var(--site-line); border-radius: 9px; padding: 12px 14px; margin-bottom: 12px; opacity: .8; }
.pg-modal-locked h4 { margin: 0 0 4px; font-size: 11px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.pg-modal-locked p { margin: 0; font-size: 12.5px; color: var(--muted); line-height: 1.45; }

/* League record — season note (wars/COVID) + points deduction */
.lr-note { display: block; margin-top: 2px; font-size: 11px; line-height: 1.3; color: var(--muted); font-weight: 500; }
.lr-pts-adj { margin-left: 3px; font-size: 11px; font-weight: 600; color: #b4564e; }

/* ============ Club Summary — leaders, grounds, related, address ============ */
.cs-leaders { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; margin-top: 18px; }
.cs-leader { background: var(--site-card); border: 1px solid var(--site-line); border-radius: 10px; padding: 12px 14px; }
.cs-leader-name { font-size: 16px; font-weight: 700; color: var(--navy); margin-top: 3px; line-height: 1.2; }
.cs-leader-name a { color: inherit; text-decoration: none; }
.cs-leader-name a:hover { text-decoration: underline; }
.cs-leader-num { font-size: 12.5px; color: var(--muted); margin-top: 2px; }

.cs-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px 28px; margin-top: 22px; }
.cs-fact-h { font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); margin: 0 0 8px; padding-bottom: 6px; border-bottom: 1px solid var(--site-line); }
.cs-grounds, .cs-related { list-style: none; margin: 0; padding: 0; }
.cs-grounds li, .cs-related li { font-size: 13.5px; color: var(--navy); padding: 4px 0; line-height: 1.35; }
.cs-ground-name { font-weight: 600; }
.cs-ground-span { color: var(--muted); margin-left: 4px; font-variant-numeric: tabular-nums; }
.cs-ground-cur { display: inline-block; margin-left: 6px; font-size: 10.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .03em; color: #2f8f4e; border: 1px solid #2f8f4e; border-radius: 999px; padding: 1px 7px; }
.cs-rel-label { color: var(--muted); }
.cs-related a { color: var(--club-accent); font-weight: 600; text-decoration: none; }
.cs-related a:hover { text-decoration: underline; }
.cs-address { font-size: 13.5px; color: var(--navy); line-height: 1.5; margin: 0; }

/* ============ Club Attendances tab ============ */
.att-views { display: flex; gap: 8px; margin-bottom: 18px; }
.att-view-pill { display: inline-block; padding: 6px 16px; border-radius: 999px; font-size: 13px; font-weight: 600; text-decoration: none; color: var(--navy); background: var(--site-card); border: 1px solid var(--site-line); }
.att-view-pill:hover { background: #e8eef5; }
.att-view-pill.active { background: var(--club-accent); color: #fff; border-color: var(--club-accent); }

.att-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-bottom: 18px; }
.att-stat { background: var(--site-card); border: 1px solid var(--site-line); border-radius: 10px; padding: 12px 14px; }
.att-k { font-size: 11.5px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.att-v { font-size: 24px; font-weight: 700; color: var(--navy); line-height: 1.1; margin-top: 4px; font-variant-numeric: tabular-nums; }
.att-n { font-size: 11.5px; color: var(--muted); margin-top: 2px; }

.att-filter { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; }
.att-filter label { font-size: 12.5px; font-weight: 600; color: var(--muted); }
.att-filter select { font-size: 13px; padding: 5px 8px; border: 1px solid var(--input-border, #b6c4d4); border-radius: 7px; background: var(--input-bg, #fff); color: var(--navy); }

.att-panel { background: var(--site-card); border: 1px solid var(--site-line); border-radius: 10px; overflow: hidden; }
.att-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.att-table th { text-align: left; font-size: 11.5px; text-transform: uppercase; letter-spacing: .03em; color: var(--muted); background: #e3eaf1; padding: 8px 12px; border-bottom: 1px solid var(--site-line); }
.att-table th.num { text-align: right; }
.att-table td { padding: 7px 12px; border-bottom: 1px solid var(--site-line); color: var(--navy); }
.att-table tbody tr:last-child td { border-bottom: 0; }
.att-table tbody tr:hover { background: #eef3f9; }
.att-table td.num { text-align: right; font-variant-numeric: tabular-nums; }
.att-season, .att-ground { font-weight: 600; }
.att-overall { font-weight: 700; }
.att-cnt { display: inline-block; min-width: 1.4em; font-size: 11px; color: var(--muted); font-weight: 400; }
.att-att a { color: var(--club-accent); font-weight: 700; text-decoration: none; }
.att-att a:hover { text-decoration: underline; }
.att-muted { color: var(--muted); }
.att-foot { font-size: 11.5px; color: var(--muted); padding: 8px 12px; margin: 0; }
.att-empty { color: var(--muted); font-size: 14px; padding: 8px 0; }

/* ----- Attendances: combined filter + line chart ----- */
.att-filter { flex-wrap: wrap; }
.att-fl { display: inline-flex; align-items: center; gap: 6px; }
.att-fl > span { font-size: 12.5px; font-weight: 600; color: var(--muted); }
.att-fl select { font-size: 13px; padding: 5px 8px; border: 1px solid var(--input-border, #b6c4d4); border-radius: 7px; background: var(--input-bg, #fff); color: var(--navy); }
.att-reset { font-size: 12.5px; color: var(--club-accent); text-decoration: none; }
.att-reset:hover { text-decoration: underline; }

.ac-wrap { background: var(--site-card); border: 1px solid var(--site-line); border-radius: 10px; padding: 12px 14px 6px; margin-bottom: 18px; }
.ac-svg { width: 100%; height: auto; display: block; }
.ac-grid { stroke: var(--site-line); stroke-width: 1; }
.ac-ylabel, .ac-xlabel { font-size: 10px; fill: var(--muted); font-variant-numeric: tabular-nums; }
.ac-line { stroke: var(--club-accent); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.ac-dot { fill: var(--club-accent); stroke: #fff; stroke-width: 1.5; }
.ac-pt { cursor: default; }
.ac-note { font-size: 11.5px; color: var(--muted); margin: 6px 0 4px; }

/* ============ Club Versus tab ============ */
.vs-finder { margin-bottom: 18px; }
.vs-form { display: flex; align-items: center; gap: 8px; }
.vs-form label { font-size: 12.5px; font-weight: 600; color: var(--muted); }
.vs-form select { font-size: 14px; padding: 7px 10px; min-width: 240px; border: 1px solid var(--input-border, #b6c4d4); border-radius: 7px; background: var(--input-bg, #fff); color: var(--navy); }
.vs-prompt, .vs-empty { color: var(--muted); font-size: 14px; padding: 6px 0; }

/* ---- Club Gallery tab ---- */
.gal-finder { margin-bottom: 14px; }
.gal-form { display: flex; align-items: flex-end; gap: 14px; flex-wrap: wrap; }
.gal-field { display: flex; flex-direction: column; gap: 4px; }
.gal-field label { font-size: 12.5px; font-weight: 600; color: var(--muted); }
.gal-field select { font-size: 14px; padding: 7px 10px; min-width: 180px; border: 1px solid var(--input-border, #b6c4d4); border-radius: 7px; background: var(--input-bg, #fff); color: var(--navy); }
.gal-reset { align-self: center; padding-bottom: 8px; font-size: 12.5px; font-weight: 600; color: var(--muted); text-decoration: none; }
.gal-reset:hover { color: var(--navy); }
.gal-empty { color: var(--muted); font-size: 14px; padding: 10px 0; }
/* Standalone panel (the shared grid omits its top border to butt under a header). */
.gal-grid { border-top: 1px solid var(--site-line); border-radius: var(--radius); }
.gal-pager { display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: 18px; }
.gal-page { font-size: 12.5px; color: var(--muted); }
.gal-chip { text-decoration: none; font-size: 12px; font-weight: 600; color: var(--muted); padding: 4px 11px; border-radius: 999px; border: 1px solid var(--site-line); background: #fff; }
.gal-chip:hover { color: var(--navy); }
/* Site-wide gallery page (/photos) chrome. */
.gal-h1 { font-family: 'Oswald', sans-serif; font-weight: 600; font-size: 30px; color: var(--ink); margin: 18px 0 14px; }
.lib-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 2px 0 16px; }
.lib-tag { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--navy); background: var(--site-card); border: 1px solid var(--site-line); border-radius: 999px; padding: 5px 12px; text-decoration: none; }
.lib-tag:hover { border-color: var(--brand); }
.lib-tag.active { background: var(--brand); color: #fff; border-color: var(--brand); }
.lib-tag .lib-n { font-size: 11px; font-weight: 700; color: var(--muted); }
.lib-tag.active .lib-n { color: #dff0dd; }
.lib-count { font-size: 13px; font-weight: 600; color: var(--muted); margin: 0 0 12px; }
.gal-search input { font-size: 14px; padding: 7px 10px; min-width: 240px; border: 1px solid var(--input-border, #b6c4d4); border-radius: 7px; background: #fff; color: var(--navy); }
.gal-go { font-size: 13px; font-weight: 600; padding: 8px 16px; border: 0; border-radius: 7px; background: var(--brand); color: #fff; cursor: pointer; }
.gal-go:hover { background: var(--brand-dark, #036); }

/* ── Stadium page ─────────────────────────────────────────────────────────── */
.stadium-hero { position: relative; border-radius: var(--radius); overflow: hidden; margin-top: 16px; background: var(--brand); min-height: 150px; display: flex; }
.stadium-hero.has-photo { min-height: 280px; }
.sh-photo { position: absolute; inset: 0; background-size: cover; background-position: center; display: block; cursor: zoom-in; }
.sh-overlay { position: relative; z-index: 1; align-self: flex-end; width: 100%; padding: 30px 26px 22px; }
.stadium-hero.has-photo .sh-overlay { background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,.12) 45%, rgba(0,0,0,.82) 100%); }
.sh-id-block { color: #fff; }
.sh-eyebrow { font-size: 12px; letter-spacing: .09em; text-transform: uppercase; opacity: .85; margin-bottom: 6px; }
.sh-name { font-family: 'Oswald', sans-serif; font-weight: 700; font-size: 34px; line-height: 1.05; margin: 0; color: #fff; text-shadow: 0 2px 10px rgba(0,0,0,.55); }
.sh-pills { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.sh-pills .pill { background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.30); color: #fff; border-radius: 999px; padding: 3px 12px; font-size: 12.5px; font-weight: 600; }
.sh-edit { position: absolute; top: 12px; right: 12px; z-index: 3; background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.30); color: #fff; }
.sh-edit:hover { background: rgba(255,255,255,.28); }

.stadium-info { margin-top: 16px; }
.stadium-info .info-row .k a { color: var(--brand); text-decoration: none; font-weight: 700; }
.stadium-info .info-row .k a:hover { text-decoration: underline; }
.info-row .sh-lvl { font-size: 11px; color: var(--muted); background: var(--site-soft-line); border-radius: 4px; padding: 1px 6px; margin-left: 6px; }
.info-row.sh-address { flex-direction: column; align-items: flex-start; gap: 3px; }
.info-row.sh-address .v { font-weight: 400; text-align: left; }
.sh-ground-stats { margin-top: 6px; padding-top: 4px; border-top: 1px solid var(--site-soft-line); }
.sh-ground-stats .info-row .v a { color: var(--brand); text-decoration: none; font-weight: 700; }
.sh-ra-sub { font-size: 12.5px; color: var(--muted); padding: 2px 0 4px; }

.stadium-gallery { margin-top: 24px; }
.sh-gal-h { font-family: 'Oswald', sans-serif; font-weight: 600; font-size: 20px; color: var(--ink); margin: 0 0 12px; display: flex; align-items: center; gap: 8px; }
.sh-gal-n { font-size: 12px; font-weight: 600; color: var(--muted); background: var(--site-card); border: 1px solid var(--site-line); border-radius: 10px; padding: 1px 9px; }
/* Mixed-orientation grid: landscape tiles are twice as wide as portrait, and
   cards size to their image (align-items:start) so a shorter landscape doesn't
   leave a white gap beneath it. Ratios are picked so a 2-wide landscape and a
   1-wide portrait come out the same height, keeping rows tidy. */
.gal-grid { align-items: start; grid-auto-flow: row dense; }
.gal-grid .gallery-item img { height: auto; }
.gal-grid .gallery-item.is-portrait img { aspect-ratio: 3 / 4; }
.gal-grid .gallery-item.is-landscape { grid-column: span 2; }
.gal-grid .gallery-item.is-landscape img { aspect-ratio: 3 / 2; }

/* Lightbox (base styles in app.css): keep nav + caption hidden until hover/focus
   so small, low-res images aren't masked, and bound the caption so a heavily
   tagged image (e.g. a programme cover tagged to 25 matches) can't bury it. */
.lightbox-nav, .lightbox-caption { opacity: 0; transition: opacity .14s ease; }
.lightbox-stage:hover .lightbox-nav,
.lightbox-stage:hover .lightbox-caption,
.lightbox-stage:focus-within .lightbox-nav,
.lightbox-stage:focus-within .lightbox-caption { opacity: 1; }
.lightbox-caption { max-height: 46%; overflow-y: auto; }
.vs-lede { font-size: 14px; color: var(--navy); margin: 0 0 14px; }

.vs-group { margin-bottom: 20px; }
.vs-h { font-size: 14px; font-weight: 700; color: var(--navy); margin: 0 0 6px; padding-bottom: 6px; border-bottom: 2px solid var(--club-accent); }
.vs-lvl { font-weight: 600; color: var(--muted); }
.vs-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.vs-table td { padding: 7px 10px; border-bottom: 1px solid var(--site-line); color: var(--navy); vertical-align: middle; }
.vs-table tr:last-child td { border-bottom: 0; }
.vs-table tr:hover td { background: #eef3f9; }
.vs-date { white-space: nowrap; }
.vs-date a { color: var(--club-accent); text-decoration: none; font-weight: 600; }
.vs-date a:hover { text-decoration: underline; }
.vs-comp { color: var(--muted); }
.vs-opp { font-weight: 600; }
.vs-va { color: var(--muted); font-weight: 400; }
.vs-ha { display: inline-block; margin-left: 4px; font-size: 10px; font-weight: 700; width: 16px; height: 16px; line-height: 16px; text-align: center; border-radius: 4px; vertical-align: middle; }
.vs-ha-h { background: #d4e8d3; color: #1f6f3a; }
.vs-ha-a { background: #e3eaf1; color: #44607f; }
.vs-ha-n { background: #efe4cf; color: #7a5a1e; }
.vs-score { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; font-weight: 700; }
.vs-dash { color: var(--muted); margin: 0 1px; font-weight: 400; }
.vs-pen { color: #b45309; font-size: .7em; }
.vs-tag { color: var(--muted); font-weight: 600; font-size: 12px; }
.vs-note { color: var(--muted); font-weight: 400; font-size: 11px; }

/* ===================== Competition page (/competition/{id}) ===================== */
#competition { max-width: 1040px; margin: 0 auto; }
/* Competition hero — standard header with the competition watermarked behind */
.comp-hero {
    position: relative; overflow: hidden;
    border-radius: var(--radius) var(--radius) 0 0;
    margin-top: 18px; padding: 26px 24px; color: #fff;
    background: linear-gradient(180deg, #16191d, #004400);
}
.comp-hero-wm {
    position: absolute; right: 16px; top: 50%; transform: translateY(-50%);
    font-family: 'Oswald', sans-serif;
    font-size: 64px; font-weight: 700; line-height: 1; letter-spacing: -2px;
    color: #fff; opacity: .07; pointer-events: none; user-select: none;
    white-space: nowrap; z-index: 0; text-transform: uppercase; text-align: right;
    max-width: 84%; overflow: hidden;
}
.comp-hero-in { position: relative; z-index: 1; }
.comp-hero-h1 { margin: 0; font-size: 32px; font-weight: 700; line-height: 1.06; letter-spacing: -.5px; color: #fff; }
.comp-hero-country { color: rgba(255,255,255,.8); font-weight: 600; font-size: 14px; margin-top: 4px; display: flex; align-items: center; gap: 6px; }
.comp-hero-country .flag { height: 13px; width: auto; border-radius: 2px; display: inline-block; }
.comp-hero-pills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.comp-hero-pill { display: inline-flex; align-items: center; gap: 6px; background: rgba(255,255,255,.13); border: 1px solid rgba(255,255,255,.24); color: #fff; border-radius: 999px; padding: 4px 11px; font-size: 12.5px; font-weight: 600; }

.comp-season-bar { display: flex; align-items: center; gap: 10px; margin-top: 14px; }
.comp-season-lab { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.comp-season-wrap { position: relative; display: inline-block; }
.comp-season-wrap::after { content: "\25BE"; position: absolute; right: 10px; top: 50%; transform: translateY(-50%); pointer-events: none; color: var(--brand); font-size: 11px; }
.comp-season-sel { appearance: none; -webkit-appearance: none; border: 1px solid var(--brand-dark); background: #fff; color: var(--ink); border-radius: var(--radius); padding: 6px 28px 6px 10px; font: inherit; font-size: 14px; cursor: pointer; }

/* Browser journey choice + pyramid page */
.comp-journey-alt { display: inline-flex; align-items: center; gap: 10px; }
.comp-journey-or { color: var(--muted); font-size: 13px; font-style: italic; }
.btn-pyramid { display: inline-block; background: var(--brand); color: #fff; font-weight: 700; font-size: 13.5px; text-decoration: none; padding: 7px 14px; border-radius: var(--radius); }
.btn-pyramid:hover { background: var(--brand-dark); }
.comp-journey-back { margin-left: auto; font-size: 13px; font-weight: 600; color: var(--brand); text-decoration: none; }
.comp-journey-back:hover { text-decoration: underline; }

.pyramid { margin-top: 18px; display: flex; flex-direction: column; gap: 10px; }
.pyr-tier { text-align: center; padding: 6px 0; }
.pyr-level { display: block; font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-weight: 700; margin-bottom: 6px; }
.pyr-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.pyr-comp { display: inline-block; background: var(--site-card); border: 1px solid var(--site-line); border-top: 3px solid var(--brand); border-radius: 8px; padding: 9px 16px; min-width: 150px; font-size: 14px; font-weight: 700; color: var(--ink); text-decoration: none; }
.pyr-comp:hover { border-color: var(--brand); background: #fff; color: var(--brand); }
@media (max-width: 720px) { .pyr-comp { min-width: 120px; padding: 8px 12px; font-size: 13px; } }

.comp-podium { display: flex; flex-wrap: wrap; gap: 12px; margin: 18px 0 16px; }
.comp-pod { flex: 1 1 180px; border: 1px solid var(--site-line); border-radius: 10px; padding: 14px 16px; background: #fff; border-top: 4px solid var(--muted); }
.comp-pod-gold { border-top-color: #c9a227; }
.comp-pod-silver { border-top-color: #9aa0a6; }
.comp-pod-bronze { border-top-color: #b07a45; }
.comp-pod-rank { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.comp-pod-team { font-size: 18px; font-weight: 700; margin: 4px 0 2px; }
.comp-pod-team a { color: var(--ink); text-decoration: none; }
.comp-pod-team a:hover { color: var(--brand); text-decoration: underline; }
.comp-pod-pts { color: var(--muted); font-size: 13px; }
.comp-podium-cup .comp-pod { flex: 1 1 220px; }
.comp-pod-score { line-height: 1.35; }

.comp-facts { display: flex; flex-wrap: wrap; gap: 10px; margin: 6px 0 4px; }
.comp-fact { flex: 0 0 auto; min-width: 92px; border: 1px solid var(--site-line); border-radius: 8px; padding: 10px 14px; background: var(--soft); display: flex; flex-direction: column; gap: 2px; }
.comp-fact .cf-n { font-size: 20px; font-weight: 800; color: var(--brand); font-variant-numeric: tabular-nums; }
.comp-fact .cf-l { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.comp-fact-wide { flex: 1 1 200px; justify-content: center; }
.comp-fact-wide .cf-team { font-size: 16px; font-weight: 700; }
.comp-more { margin: 16px 0 0; }
.comp-more a, .comp-clublink { color: var(--brand); font-weight: 700; text-decoration: none; }
.comp-more a:hover, .comp-clublink:hover { text-decoration: underline; }
.comp-empty { color: var(--muted); padding: 24px 0; font-size: 15px; }

/* Standings table (views/site/_partials/standings_table.php) */
.cs-block { margin: 18px 0 8px; }
.cs-cap { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-weight: 700; margin-bottom: 8px; }
.cs-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.cs-table th { text-align: center; font-size: 11px; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); font-weight: 700; padding: 6px; border-bottom: 2px solid var(--site-line); }
.cs-table th.l { text-align: left; }
.cs-table td { padding: 7px 6px; border-bottom: 1px solid var(--site-line); text-align: center; font-variant-numeric: tabular-nums; }
.cs-table td.l { text-align: left; }
.cs-table td.pos { color: var(--muted); font-weight: 700; width: 36px; }
.cs-team { color: var(--ink); text-decoration: none; font-weight: 600; }
.cs-team:hover { color: var(--brand); text-decoration: underline; }
.cs-banded td.pos { border-left: 4px solid var(--band); padding-left: 8px; }
.cs-note { color: var(--muted); font-weight: 400; font-size: 12px; }
.cs-adj { color: #b45309; font-size: 12px; font-weight: 700; }
.cs-exp-sep td { text-align: left; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 700; padding-top: 12px; border-bottom: none; }
.cs-exp td { color: var(--muted); }
.cs-legend { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 10px; }
.cs-leg { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); }
.cs-sw { width: 12px; height: 12px; border-radius: 3px; display: inline-block; }


/* Competition summary — provisional note, relegation, season records */
.comp-asof { color: var(--muted); font-size: 13px; margin: 2px 0 4px; }
.comp-releg { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px; margin: 4px 0 10px; padding: 10px 14px; border: 1px solid var(--site-line); border-left: 4px solid #a12020; border-radius: 8px; background: #fff; }
.comp-releg-lab { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: #a12020; font-weight: 700; }
.comp-releg-teams { font-weight: 600; }
.comp-rec-h { font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 700; margin: 20px 0 10px; }
.comp-records { display: flex; flex-wrap: wrap; gap: 12px; }
.comp-rec { flex: 1 1 200px; border: 1px solid var(--site-line); border-radius: 10px; padding: 12px 16px; background: #fff; }
.comp-rec-lab { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.comp-rec-who { font-size: 16px; font-weight: 700; margin: 4px 0 2px; line-height: 1.35; }
.comp-rec-val { color: var(--brand); font-weight: 700; font-size: 14px; }

/* Related seasons strip + allocated-goals sub-line */
.comp-related { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px; margin: 12px 0 0; padding: 8px 0; }
.comp-related-lab { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.comp-related-list a { color: var(--brand); font-weight: 700; text-decoration: none; }
.comp-related-list a:hover { text-decoration: underline; }
.comp-related-yr { color: var(--muted); font-weight: 600; }
.comp-fact .cf-sub { font-size: 11px; color: var(--muted); font-weight: 600; margin-top: 2px; }

/* Competition Results tab */
.results { margin-top: 16px; }
.res-date { font-size: 12px; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); font-weight: 700; margin: 16px 0 6px; padding-bottom: 4px; border-bottom: 1px solid var(--site-line); }
.res-row { position: relative; padding: 8px 4px; border-bottom: 1px solid var(--site-soft-line); }
.res-row:hover { background: var(--soft); }
.res-cluster { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; max-width: 540px; margin: 0 auto; }
.res-home { text-align: right; font-weight: 600; }
.res-away { text-align: left; font-weight: 600; }
.res-home a, .res-away a { color: var(--ink); text-decoration: none; }
.res-home a:hover, .res-away a:hover { color: var(--brand); text-decoration: underline; }
.res-score-cell { display: flex; flex-direction: column; align-items: center; gap: 1px; }
.res-score { min-width: 52px; text-align: center; font-weight: 700; font-variant-numeric: tabular-nums; color: var(--ink); text-decoration: none; padding: 2px 8px; border-radius: 6px; background: var(--soft); }
.res-row:hover .res-score { background: #fff; }
.res-score:hover { background: var(--site-line); }
.res-aet { font-size: 10px; line-height: 1; color: var(--muted); font-weight: 600; }
.res-v { color: var(--muted); font-weight: 400; }
.res-pen { color: #b45309; font-size: .72em; vertical-align: super; font-weight: 700; }
.res-meta { position: absolute; right: 6px; top: 0; bottom: 0; display: flex; align-items: center; gap: 6px; justify-content: flex-end; text-align: right; max-width: 180px; }
.res-note { font-size: 11px; color: var(--muted); font-weight: 600; }
.res-round { font-size: 11px; color: var(--muted); font-weight: 600; white-space: nowrap; }
.res-att { font-size: 11px; color: var(--muted); font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.res-bcd { text-decoration: none; border-bottom: 1px dotted currentColor; cursor: help; letter-spacing: .3px; }

/* Results round/month filter on the tab line; sections; capped tie-lists */
.tabs-filter { margin-left: auto; align-self: center; padding-bottom: 4px; }
.tabs-filter .comp-season-sel { font-size: 13px; padding: 4px 26px 4px 9px; }
.res-round-head { font-size: 16px; color: var(--ink); margin: 18px 0 8px; font-weight: 700; }
.res-round-sec .cs-block { margin: 4px 0 16px; }
.comp-more-n { color: var(--muted); font-weight: 600; font-size: 13px; }

/* Goals tab — paginated scorer list (.gtab, reusable) */
.gtab { max-width: 560px; }
.gtab-head, .gtab-row { display: grid; grid-template-columns: 44px 1fr auto; align-items: center; gap: 10px; padding: 7px 8px; }
.gtab-head { font-size: 11px; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); font-weight: 700; border-bottom: 2px solid var(--site-line); }
.gtab-row { border-bottom: 1px solid var(--site-soft-line); }
.gtab-row[hidden] { display: none; }
.gtab-pager[hidden] { display: none; }
.gtab-row:hover { background: var(--soft); }
.gtab-rank { color: var(--muted); font-weight: 700; font-variant-numeric: tabular-nums; }
.gtab-name a { color: var(--ink); text-decoration: none; font-weight: 600; }
.gtab-name a:hover { color: var(--brand); text-decoration: underline; }
.gtab-val { font-weight: 700; font-variant-numeric: tabular-nums; text-align: right; min-width: 40px; }
.gtab-pager { display: flex; align-items: center; gap: 14px; margin-top: 14px; }
.gtab-btn { border: 1px solid var(--brand-dark); background: #fff; color: var(--brand); border-radius: var(--radius); padding: 5px 12px; font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; }
.gtab-btn:hover:not(:disabled) { background: var(--soft); }
.gtab-btn:disabled { color: var(--muted); border-color: var(--site-line); cursor: default; }
.gtab-info { font-size: 13px; color: var(--muted); font-weight: 600; }
.comp-rec-more { color: var(--brand); font-weight: 700; text-decoration: none; }
.comp-rec-more:hover { text-decoration: underline; }

/* Club History tab — linked season/competition cells */
.lr-season a, .lr-comp a, .ch-season a, .ch-comp a { color: var(--ink); text-decoration: none; font-weight: 600; }
.lr-season a:hover, .lr-comp a:hover, .ch-season a:hover, .ch-comp a:hover { color: var(--brand); text-decoration: underline; }

@media (max-width: 720px) {
    .comp-hero-wm { font-size: 46px; }
    .comp-hero-h1 { font-size: 26px; }
}

/* Attendances tab — per-club average bar chart with league-average line */
.att-chart { max-width: 660px; margin-top: 8px; display: grid; grid-template-columns: 150px 1fr auto; align-items: center; column-gap: 12px; row-gap: 10px; }
.att-legend { grid-column: 1 / -1; display: flex; align-items: center; gap: 7px; font-size: 12px; color: var(--muted); font-weight: 600; margin-bottom: 2px; }
.att-legend-mark { display: inline-block; width: 14px; height: 0; border-top: 2px solid #b45309; }
.att-row { display: contents; }
.att-name { font-size: 13px; font-weight: 600; text-align: right; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.att-name a { color: var(--ink); text-decoration: none; }
.att-name a:hover { color: var(--brand); text-decoration: underline; }
.att-bar-wrap { position: relative; background: var(--soft); border-radius: 4px; height: 22px; overflow: hidden; }
.att-bar { display: block; height: 100%; background: var(--brand); border-radius: 4px 0 0 4px; min-width: 2px; }
.att-avgline { position: absolute; top: -3px; bottom: -3px; left: var(--avg-pos, 50%); width: 2px; background: #b45309; opacity: .9; }
.att-val { font-size: 12.5px; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.att-frac { color: var(--muted); font-weight: 600; font-size: 11px; }
.att-frac.is-partial { color: #b45309; }
.comp-fact-link { text-decoration: none; cursor: pointer; }
.comp-fact-link:hover { background: var(--soft); }
@media (max-width: 720px) { .att-chart { grid-template-columns: 104px 1fr auto; column-gap: 8px; } .att-name { font-size: 12px; } }

/* ── homepage (/) ──────────────────────────────────────────────────────────
   Scoped under .home so generic names (feed/row/stat/badge/ann) can't leak to
   other public pages. Hero is a full-bleed band continuing the green nav. */
.home-hero {
    margin-inline: calc(50% - 50vw);
    position: relative;
    overflow: hidden;
    background: linear-gradient(160deg, #024a02, #003300);
    color: #fff;
    border-radius: 0 0 14px 14px;
    padding: 28px 16px 24px;
    text-align: center;
}
.home-hero-wm {
    position: absolute; left: 50%; top: 30%; transform: translate(-50%, -50%);
    font-family: 'Oswald', sans-serif; font-weight: 700; font-size: clamp(40px, 9vw, 110px); line-height: 1;
    letter-spacing: -3px; color: #fff; opacity: .08; text-align: center;
    white-space: nowrap; pointer-events: none; user-select: none; z-index: 0;
    max-width: 96%; overflow: hidden;
}
.home-hero-in { position: relative; z-index: 1; max-width: 1040px; margin: 0 auto; }
.home-hero .eyebrow { color: #bcdcb8; font-family: 'Oswald', sans-serif; text-transform: uppercase; letter-spacing: .16em; font-size: 11.5px; font-weight: 600; }
.home-hero h1 { font-family: 'Oswald', sans-serif; font-weight: 600; font-size: 33px; margin: 6px 0 4px; color: #fff; }
.home-hero p { margin: 0 auto 16px; color: #cfe6cc; max-width: 52ch; }

.home .hsearch { display: inline-flex; width: min(560px, 92%); }
.home .hsearch input { flex: 1; min-width: 0; border: 0; border-radius: 6px 0 0 6px; padding: 12px 16px; font-size: 15px; color: var(--ink); }
.home .hsearch input::placeholder { color: #7e8aa0; }
.home .hsearch button { border: 0; background: var(--amber); color: #fff; border-radius: 0 6px 6px 0; padding: 12px 22px; font-weight: 700; cursor: pointer; font-family: 'Oswald', sans-serif; font-size: 15px; }
.home .hsearch button:hover { background: var(--amber-dark); }

.home .statrow { display: flex; flex-wrap: wrap; justify-content: center; gap: 28px; margin-top: 20px; }
.home .stat .v { font-family: 'Roboto Mono', monospace; font-weight: 500; font-size: 20px; color: #fff; }
.home .stat .k { font-size: 10.5px; text-transform: uppercase; letter-spacing: .07em; color: #bcdcb8; }

.home .ann { display: flex; align-items: center; gap: 11px; background: var(--site-card); border: 1px solid var(--site-line); border-left: 4px solid var(--amber); border-radius: 8px; padding: 11px 14px; margin-top: 16px; }
.home .ann .tag { font-family: 'Oswald', sans-serif; text-transform: uppercase; font-size: 10.5px; letter-spacing: .1em; color: var(--amber); font-weight: 600; white-space: nowrap; }
.home .ann .msg { font-size: 14px; color: var(--ink); }
.home .ann .ann-date { margin-left: auto; font-family: 'Roboto Mono', monospace; font-size: 11.5px; color: var(--muted); white-space: nowrap; }
.home .ann.has-body { cursor: pointer; }
.home .ann-chev { margin-left: auto; flex: 0 0 auto; font-size: 11px; color: var(--muted); transition: transform .15s ease; }
.home .ann-date + .ann-chev { margin-left: 8px; }
.home .ann.open { border-bottom-left-radius: 0; border-bottom-right-radius: 0; }
.home .ann.open .ann-chev { transform: rotate(180deg); }
.home .ann-body {
    background: var(--site-card); border: 1px solid var(--site-line); border-left: 4px solid var(--amber);
    border-top: 0; border-radius: 0 0 8px 8px; margin-top: -1px; padding: 12px 16px 14px;
    font-size: 14px; line-height: 1.6; color: var(--ink); white-space: pre-wrap;
}

.home-sect { margin-top: 22px; }
.home-sect-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.home-sect-head h2 { font-family: 'Oswald', sans-serif; font-weight: 600; font-size: 20px; margin: 0; }

.home-tabs { display: flex; gap: 2px; border-bottom: 2px solid var(--site-line); margin-bottom: 6px; flex-wrap: wrap; }
.home-tab { font-family: 'Oswald', sans-serif; font-size: 14px; font-weight: 600; color: var(--muted); background: none; border: 0; padding: 8px 14px; cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -2px; }
.home-tab.on { color: var(--brand); border-bottom-color: var(--brand); }

.home .feed { background: var(--site-card); border: 1px solid var(--site-line); border-radius: 10px; }
.home .feed .row { display: grid; grid-template-columns: auto 1fr auto; gap: 11px; align-items: center; padding: 11px 14px; border-bottom: 1px solid var(--site-soft-line); }
.home .feed .row:last-child { border-bottom: 0; }
.home .feed .row .ln { font-size: 14px; color: var(--ink); }
.home .feed .row .ln a { color: var(--brand); font-weight: 600; }
.home .feed .row .ln .act { color: var(--muted); font-size: 12.5px; }
.home .feed .t-ago { font-family: 'Roboto Mono', monospace; font-size: 11.5px; color: var(--muted); white-space: nowrap; }
.home .feed-empty { padding: 18px 14px; color: var(--muted); font-size: 13.5px; display: none; }

.home .badge { display: inline-block; font-family: 'Oswald', sans-serif; text-transform: uppercase; letter-spacing: .08em; font-size: 10.5px; font-weight: 600; color: #fff; padding: 2px 7px; border-radius: 4px; white-space: nowrap; }
.home .b-match { background: var(--brand); }
.home .b-player { background: var(--ink); }
.home .b-image { background: var(--amber); }
.home .b-club { background: var(--steel); }
.home .b-stadium { background: #5b6b85; }
.home .b-book { background: #7c4a1e; }
.home .b-team { background: #2f8f6f; }

@media (max-width: 560px) {
    .home .statrow { gap: 16px; }
    .home .hsearch { width: 100%; }
    .home-hero h1 { font-size: 27px; }
    .home .feed .row { grid-template-columns: auto 1fr; }
    .home .feed .t-ago { grid-column: 2; justify-self: start; }
}

/* ── search (/search) ──────────────────────────────────────────────────────── */
.search-hero { position: relative; overflow: hidden; border-radius: var(--radius) var(--radius) 0 0; margin-top: 18px; padding: 24px 24px 22px; color: #fff; background: linear-gradient(180deg, #16191d, #004400); }
.search-hero-wm { position: absolute; right: 18px; top: 50%; transform: translateY(-50%); font-family: 'Oswald', sans-serif; font-size: 72px; font-weight: 700; line-height: 1; letter-spacing: -2px; color: #fff; opacity: .06; pointer-events: none; user-select: none; white-space: nowrap; z-index: 0; text-transform: uppercase; text-align: right; max-width: 70%; overflow: hidden; }
.search-hero-in { position: relative; z-index: 1; max-width: 620px; }
.search-hero-h1 { margin: 0 0 12px; font-family: 'Oswald', sans-serif; font-weight: 600; font-size: 28px; color: #fff; }
.search-hero-box { display: flex; max-width: 560px; }
.search-hero-box input { flex: 1; min-width: 0; border: 0; border-radius: 6px 0 0 6px; padding: 11px 14px; font-size: 15px; color: var(--ink); }
.search-hero-box input::placeholder { color: #7e8aa0; }
.search-hero-box button { border: 0; background: var(--amber); color: #fff; border-radius: 0 6px 6px 0; padding: 11px 20px; font-weight: 700; font-family: 'Oswald', sans-serif; font-size: 15px; cursor: pointer; }
.search-hero-box button:hover { background: var(--amber-dark); }
.search-hero-sub { margin-top: 10px; color: rgba(255,255,255,.82); font-size: 13px; font-family: 'Roboto Mono', monospace; }

.search-body { margin-top: 6px; }
.search-hint { color: var(--muted); margin-top: 22px; font-size: 15px; }

.sr-group { margin-top: 22px; }
.sr-group-h { font-family: 'Oswald', sans-serif; font-weight: 600; font-size: 15px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 0 0 10px; display: flex; align-items: baseline; gap: 8px; }
.sr-count { font-family: 'Roboto Mono', monospace; font-size: 12px; color: var(--muted); font-weight: 400; }
.sr-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
@media (max-width: 640px) { .sr-list { grid-template-columns: 1fr; } }

.sr-card { display: flex; align-items: center; gap: 12px; padding: 10px 12px; background: var(--site-card); border: 1px solid var(--site-line); border-radius: 10px; text-decoration: none; transition: border-color .12s, box-shadow .12s, transform .12s; }
.sr-card:hover { border-color: var(--brand); box-shadow: 0 2px 10px rgba(0,0,0,.07); transform: translateY(-1px); }
.sr-media { flex: none; overflow: hidden; display: grid; place-items: center; }
.sr-media--round { width: 46px; height: 46px; border-radius: 50%; }
.sr-media--portrait { width: 44px; height: 58px; border-radius: 7px; }
.sr-img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.sr-mono { color: #fff; font-family: 'Oswald', sans-serif; font-weight: 600; font-size: 15px; letter-spacing: .02em; }
.sr-text { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.sr-title { font-weight: 700; color: var(--ink); font-size: 15px; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sr-card:hover .sr-title { color: var(--brand); }
.sr-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; min-width: 0; }
.sr-sub { color: var(--muted); font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sr-flag { border-radius: 2px; display: inline-block; height: 13px; width: auto; }
.sr-tag { font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--brand); background: var(--soft); border-radius: 4px; padding: 1px 6px; }
.sr-more { display: inline-block; margin-top: 12px; font-family: 'Oswald', sans-serif; font-weight: 600; font-size: 13px; letter-spacing: .02em; color: var(--brand); text-decoration: none; }
.sr-more:hover { text-decoration: underline; }
.search-back { display: inline-block; margin: 2px 0 10px; font-weight: 600; font-size: 13px; color: var(--brand); text-decoration: none; }
.search-back:hover { text-decoration: underline; }

/* ── Standard index/landing hero + fused toolbar (_partials/site_hero.php) ─── */
.site-hero {
    position: relative; overflow: hidden;
    border-radius: var(--radius) var(--radius) 0 0;
    margin-top: 18px; padding: 26px 24px; color: #fff;
    background: linear-gradient(180deg, #16191d, #004400);
}
.site-hero-wm {
    position: absolute; right: 16px; top: 50%; transform: translateY(-50%);
    font-family: 'Oswald', sans-serif; font-size: 72px; font-weight: 700;
    line-height: 1; letter-spacing: -2px; color: #fff; opacity: .06;
    pointer-events: none; user-select: none; white-space: nowrap; z-index: 0;
    text-transform: uppercase; text-align: right; max-width: 70%; overflow: hidden;
}
.site-hero-in { position: relative; z-index: 1; max-width: 700px; }
.site-hero-h1 {
    margin: 0; font-family: 'Oswald', sans-serif; font-weight: 600;
    font-size: 32px; line-height: 1.06; letter-spacing: -.5px; color: #fff;
}
.site-hero-sub { margin: 9px 0 0; color: rgba(255,255,255,.82); font-size: 14.5px; line-height: 1.4; }
.site-hero-pills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.site-hero-pill {
    display: inline-flex; align-items: center; gap: 6px;
    background: rgba(255,255,255,.13); border: 1px solid rgba(255,255,255,.24);
    color: #fff; border-radius: 999px; padding: 4px 11px; font-size: 12.5px; font-weight: 600;
}

/* Light controls bar fused to the foot of the hero (one connected unit). */
.site-toolbar {
    background: var(--site-card); border: 1px solid var(--site-line); border-top: 0;
    border-radius: 0 0 var(--radius) var(--radius); padding: 14px 18px; margin-bottom: 18px;
}
.site-toolbar > .gal-finder { margin-bottom: 0; }
.site-toolbar > .comp-season-bar { margin-top: 0; flex-wrap: wrap; }
.site-toolbar > .comp-season-bar + .comp-season-bar { margin-top: 12px; }
.site-toolbar > .lib-tags { margin: 13px 0 0; padding-top: 13px; border-top: 1px solid var(--site-soft-line); }

@media (max-width: 640px) {
    .site-hero { padding: 22px 18px; }
    .site-hero-h1 { font-size: 26px; }
    .site-hero-wm { font-size: 52px; max-width: 60%; }
    .site-toolbar { padding: 12px 14px; }
}

/* ── Around the leagues (homepage final-table cards) ───────────────────── */
.home-sect-more { color: var(--amber-dark); font-size: 13px; font-weight: 600; text-decoration: none; white-space: nowrap; }
.home-sect-more:hover { text-decoration: underline; }
.leagues-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.league-card { background: var(--site-card); border: 1px solid var(--site-line); border-radius: var(--radius); overflow: hidden; }
.league-card-head { display: flex; align-items: center; gap: 8px; padding: 10px 12px; background: #f3ede1; border-bottom: 1px solid var(--site-line); }
.league-flag { width: 20px; height: 14px; object-fit: cover; border-radius: 2px; box-shadow: 0 0 0 1px rgba(0,0,0,.10); }
.league-title { font-weight: 700; color: var(--ink); font-size: 14px; }
.league-tag { margin-left: auto; color: var(--muted); font-size: 11px; }
.mini-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.mini-table th { text-align: right; color: var(--muted); font-size: 10.5px; text-transform: uppercase; letter-spacing: .04em; font-weight: 600; padding: 9px 12px 6px; }
.mini-table th.c { text-align: left; }
.mini-table td { padding: 7px 12px; border-top: 1px solid var(--site-soft-line); text-align: right; color: var(--ink); font-variant-numeric: tabular-nums; }
.mini-table td.c { text-align: left; }
.mini-table td.pts { font-weight: 700; }
.mt-pos { display: inline-block; min-width: 15px; color: var(--muted); }
.mt-team { font-weight: 600; margin-left: 7px; }
@media (max-width: 760px) { .leagues-grid { grid-template-columns: 1fr; } }

/* ── Homepage two-column: feed + On this day aside ─────────────────────── */
.home-cols { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 20px; align-items: start; margin-top: 22px; }
.home-cols > .home-sect { margin-top: 0; }
.home-otd { background: var(--site-card); border: 1px solid var(--site-line); border-radius: var(--radius); padding: 14px 16px; }
.home-otd .home-sect-head { margin-bottom: 12px; }
.home-otd .home-sect-head h2 { font-size: 17px; }
.otd-date { color: var(--amber-dark); font-weight: 600; font-size: 13px; }
.otd-empty { color: var(--muted); font-size: 13px; margin: 4px 0; }
.otd-card { border: 1px solid var(--site-soft-line); border-radius: var(--radius); padding: 12px; background: #faf8f3; margin-bottom: 12px; }
.otd-year { font-family: 'Oswald', sans-serif; font-weight: 700; color: var(--ink); font-size: 22px; line-height: 1; margin-bottom: 9px; }
.otd-final { display: inline-block; vertical-align: middle; margin-left: 6px; font-family: 'Source Sans 3', sans-serif; font-size: 10px; text-transform: uppercase; letter-spacing: .04em; font-weight: 700; color: #fff; background: var(--brand); border-radius: 3px; padding: 2px 6px; }
.otd-fix { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 8px; }
.otd-team { font-weight: 600; color: var(--ink); font-size: 13.5px; }
.otd-team.away { text-align: right; }
.otd-score { font-family: 'Roboto Mono', monospace; font-weight: 500; color: var(--ink); white-space: nowrap; }
.otd-na { color: var(--muted); }
.otd-aet { font-size: 9.5px; color: var(--muted); text-transform: uppercase; vertical-align: super; }
.otd-pens { font-size: 9px; font-weight: 700; color: var(--amber-dark); vertical-align: super; }
.otd-meta { margin-top: 8px; color: var(--muted); font-size: 12px; }
.otd-list { list-style: none; margin: 0; padding: 0; }
.otd-row { padding: 8px 0; border-top: 1px solid var(--site-soft-line); display: grid; grid-template-columns: 38px 1fr; gap: 3px 8px; align-items: baseline; }
.otd-row-yr { color: var(--muted); font-variant-numeric: tabular-nums; font-size: 12px; font-weight: 600; }
.otd-row-fix { font-size: 13px; color: var(--ink); }
.otd-row-fix b { font-family: 'Roboto Mono', monospace; font-weight: 500; }
.otd-row-comp { grid-column: 2; color: var(--muted); font-size: 11.5px; }
@media (max-width: 860px) { .home-cols { grid-template-columns: 1fr; } }

/* ── On this day cards are links to the match page ─────────────────────── */
a.otd-card { display: block; text-decoration: none; color: inherit; transition: border-color .12s, background .12s; }
a.otd-card:hover { border-color: var(--brand); background: #f4efe6; }
a.otd-row { text-decoration: none; color: inherit; }
a.otd-row:hover .otd-row-fix { color: var(--amber-dark); }

/* ── From the programme archive (homepage reel) ────────────────────────── */
.reel { display: flex; gap: 14px; overflow-x: auto; padding: 2px 2px 10px; scroll-snap-type: x proximity; }
.reel-item { flex: 0 0 auto; width: 118px; text-decoration: none; color: inherit; scroll-snap-align: start; }
.reel-cover { display: block; aspect-ratio: 3 / 4; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--site-line); background: #e9e3d6; box-shadow: 0 1px 3px rgba(0,0,0,.10); }
.reel-cover img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .18s; }
.reel-item:hover .reel-cover img { transform: scale(1.04); }
.reel-item:hover .reel-cover { border-color: var(--brand); }
.reel-cap { display: block; margin-top: 7px; font-size: 11.5px; line-height: 1.3; color: var(--muted); }

/* ── Cup bracket: Road to the final (wheel + flat two-sided) ───────────── */
.comp-bracket { margin: 4px 0 8px; }
.comp-bracket-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.comp-bracket-head h2 { margin: 0; font-size: 18px; color: #1B365D; }
.bracket-toggle { display: inline-flex; border: 1px solid #c9d3df; border-radius: 999px; overflow: hidden; flex: none; }
.bracket-tg { appearance: none; border: 0; background: #fff; color: #1B365D; font: inherit; font-size: 13px; font-weight: 600; padding: 6px 16px; cursor: pointer; }
.bracket-tg + .bracket-tg { border-left: 1px solid #c9d3df; }
.bracket-tg.on { background: var(--brand, #004400); color: #fff; }
.bracket-stage { position: relative; }
.bracket-stage.is-magnify { cursor: none; }
.bracket-pane[hidden] { display: none; }
.bracket-wheel { text-align: center; }
.bw-svg { display: block; width: 100%; max-width: 660px; height: auto; margin: 0 auto; }
.bracket-flat { overflow-x: auto; padding-bottom: 6px; }
.bf-svg { display: block; width: 100%; min-width: 720px; height: auto; }
.bracket-hint { margin: 0 0 10px; font-size: 12px; color: #6b7a90; }
.bracket-loupe { position: absolute; width: 300px; height: 200px; border: 2px solid #1B365D; border-radius: 12px; overflow: hidden; background: #fff; box-shadow: 0 8px 26px rgba(20,30,50,.28); pointer-events: none; z-index: 6; }
.bracket-loupe[hidden] { display: none; }
.bracket-loupe-in { position: absolute; left: 0; top: 0; transform-origin: 0 0; will-change: transform; }
.bracket-loupe-in svg { display: block; }
@media (hover: none) { .bracket-hint { display: none; } }

/* ── Competitions browser: combined type-searchable competition combobox ── */
.comp-combo { position: relative; display: inline-block; }
.comp-combo::after { content: none; }
.comp-combo-input { min-width: 360px; }
.comp-combo-list { position: absolute; left: 0; right: auto; top: calc(100% + 5px); z-index: 30; margin: 0; padding: 5px; list-style: none; background: #fff; border: 1px solid #c9d3df; border-radius: 11px; box-shadow: 0 10px 28px rgba(20,30,50,.18); max-height: 340px; overflow-y: auto; min-width: 100%; width: max-content; max-width: min(680px, 92vw); }
.comp-combo-list[hidden] { display: none; }
.comp-combo-list li { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 8px 11px; border-radius: 8px; cursor: pointer; overflow: hidden; }
.comp-combo-list li[hidden] { display: none; }
.comp-combo-list li:hover, .comp-combo-list li.is-active { background: #eef3f8; }
.comp-combo-name { font-size: 14px; font-weight: 600; color: #1B365D; white-space: nowrap; }
.comp-combo-kind { flex: none; font-size: 10.5px; font-weight: 700; letter-spacing: .5px; text-transform: uppercase; padding: 2px 8px; border-radius: 999px; background: #e3eaf1; color: #5b6b85; }
.comp-kind-league { background: #e1efe2; color: #2f6b34; }
.comp-kind-cup { background: #f5e7d4; color: #97560f; }
.comp-kind-intl { background: #e2e8f5; color: #2f458f; }

/* Header auth controls (sign in / account / admin) */
.site-auth { display: flex; align-items: center; gap: 12px; white-space: nowrap; }
.site-auth a, .site-auth .site-auth-name { color: #dff0dd; text-decoration: none; font-size: 14px; font-weight: 600; }
.site-auth a:hover { color: #fff; }
.site-auth .site-auth-name { opacity: .75; font-weight: 500; }
.site-auth .site-auth-admin { background: rgba(255,255,255,.16); padding: 4px 10px; border-radius: 6px; }
.site-auth form { margin: 0; }
.site-auth button.site-auth-out { background: none; border: 0; color: #dff0dd; font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; padding: 0; }
.site-auth button.site-auth-out:hover { color: #fff; }

/* My-account area */
.account { max-width: 640px; margin: 0 auto; }
.account h1 { color: var(--navy, #1B365D); }
.account-card { background: #fff; border: 1px solid #e2e8f0; border-radius: 10px; padding: 18px 20px; margin: 16px 0; }
.account-card h2 { margin: 0 0 12px; font-size: 17px; color: var(--navy, #1B365D); }
.account-dl { display: grid; grid-template-columns: 160px 1fr; gap: 6px 12px; margin: 0; }
.account-dl dt { color: #6b7a8d; }
.account-dl dd { margin: 0; }
.account-form { display: flex; flex-direction: column; gap: 10px; max-width: 360px; }
.account-form label { display: flex; flex-direction: column; gap: 3px; font-size: 14px; color: #42566b; }
.account-form input { padding: 8px 10px; border: 1px solid #b6c4d4; border-radius: 6px; }
.account-form button { align-self: flex-start; }
.account-note { padding: 10px 14px; border-radius: 8px; }
.account-note.ok { background: #e6f4ea; color: #1e6b34; }
.account-note.err { background: #fdecea; color: #b3261e; }

/* Favourites heart */
.fav { display: inline-flex; align-items: center; gap: 2px; vertical-align: middle; background: rgba(255,255,255,.92); border-radius: 999px; padding: 2px 9px 2px 7px; box-shadow: 0 1px 3px rgba(0,0,0,.18); }
.fav-heart { background: none; border: 0; cursor: pointer; font-size: 18px; line-height: 1; color: #b9c2cc; padding: 0; transition: color .12s, transform .1s; }
.fav-heart:hover { color: #e2828f; }
.fav-heart.on { color: #e23b4e; }
.fav-heart:active { transform: scale(1.25); }
.fav-count { font-size: 12px; color: #6b7a8d; min-width: 8px; font-weight: 600; }
.fav-count[hidden] { display: none; }
.site-auth-fav { color: #ffd0d6 !important; }
.site-auth-fav:hover { color: #fff !important; }

/* My favourites cards */
.fav-groups { display: flex; flex-direction: column; gap: 18px; }
.fav-group h3 { margin: 0 0 8px; font-size: 15px; color: var(--navy, #1B365D); text-transform: capitalize; }
.fav-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px; }
.fav-card { display: flex; align-items: center; justify-content: space-between; gap: 8px; background: #fff; border: 1px solid #e2e8f0; border-radius: 8px; padding: 8px 10px; }
.fav-card a { color: var(--navy, #1B365D); text-decoration: none; font-weight: 600; font-size: 14px; }
.fav-card a:hover { text-decoration: underline; }
.fav-card-tools { display: flex; gap: 2px; align-items: center; }
.fav-card-tools button { background: none; border: 0; cursor: pointer; color: #9aa7b4; font-size: 14px; padding: 2px 4px; }
.fav-card-tools button:hover { color: #1B365D; }
.fav-card-tools .rm:hover { color: #c0392b; }
.fav-empty { color: #7c8a9a; }

/* My-account favourites section (between hero and settings) */
.fav-section { margin: 18px 0; }
.fav-section-h { color: var(--navy, #1B365D); font-size: 18px; margin: 0 0 10px; }

/* Profile two-column layout (owner + future public view) */
.profile-cols { display: grid; grid-template-columns: 45fr 55fr; gap: 16px; margin: 18px 0; align-items: start; }
.profile-main { display: flex; flex-direction: column; gap: 16px; }
.profile-side { position: sticky; top: 12px; display: flex; flex-direction: column; gap: 16px; }
@media (max-width: 760px) { .profile-cols { grid-template-columns: 1fr; } .profile-side { position: static; } }

/* Favourites box — tabbed, list */
.fav-box { background: #fff; border: 1px solid #e2e8f0; border-radius: 10px; overflow: hidden; }
.fav-box-head { padding: 12px 16px; border-bottom: 1px solid #eef2f6; }
.fav-box-head h2 { margin: 0; font-size: 16px; color: var(--navy, #1B365D); }
.fav-box .fav-empty { padding: 16px; margin: 0; }
.fav-tabs { display: flex; flex-wrap: wrap; gap: 6px; padding: 12px 14px; border-bottom: 1px solid #eef2f6; }
.fav-tab { background: #eef2f6; border: 1px solid #e2e8f0; border-radius: 999px; padding: 5px 13px; font-size: 13px; font-weight: 600; color: #5b6b7d; cursor: pointer; }
.fav-tab:hover { color: #1B365D; border-color: #cdd8e3; }
.fav-tab.on { background: var(--navy, #1B365D); color: #fff; border-color: var(--navy, #1B365D); }
.fav-list { list-style: none; margin: 0; padding: 6px 14px 12px; }
.fav-list[hidden] { display: none; }
.fav-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 9px 2px; border-bottom: 1px solid #f0f3f7; }
.fav-row:last-child { border-bottom: none; }
.fav-row-link { color: var(--navy, #1B365D); font-weight: 600; font-size: 14px; text-decoration: none; }
.fav-row-link:hover { text-decoration: underline; }
.fav-row-tools { display: flex; gap: 1px; align-items: center; }
.fav-row-tools form { margin: 0; }
.fav-row-tools button { background: none; border: 0; cursor: pointer; color: #9aa7b4; font-size: 13px; padding: 2px 5px; line-height: 1; }
.fav-row-tools button:hover:not(:disabled) { color: #1B365D; }
.fav-row-tools button:disabled { opacity: .28; cursor: default; }
.fav-row-tools .rm { font-size: 16px; }
.fav-row-tools .rm:hover:not(:disabled) { color: #c0392b; }

/* Consistent hero top-right (heart · #id · edit) */
.hero-topright { position: absolute; top: 14px; right: 16px; z-index: 5; display: flex; align-items: center; gap: 10px; }
.hero-id { font-size: 12px; opacity: .65; font-weight: 500; letter-spacing: .02em; }

/* Around-the-leagues: highlight a favourited club's row in a centred window */
.mini-table tr.mt-fav { background: #fdeef0; }
.mini-table tr.mt-fav .mt-team { font-weight: 700; }
.mini-table tr.mt-fav .mt-pos { color: #e23b4e; }

/* Favourite growth alert (Layer 4) */
.fav-row-main { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.fav-growth { font-size: 11px; color: #2e7d32; font-weight: 600; }

/* Favourites leaderboard (Layer 6) */
.lb { margin-top: 16px; }
.lb-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.lb-card { background: #fff; border: 1px solid #e2e8f0; border-radius: 10px; overflow: hidden; display: flex; flex-direction: column; }
.lb-card-head { padding: 12px 16px; border-bottom: 1px solid #eef2f6; }
.lb-card-head h2 { margin: 0; font-size: 16px; color: var(--navy, #1B365D); }
.lb-list { list-style: none; margin: 0; padding: 6px 10px; flex: 1; }
.lb-list-full { max-width: 560px; }
.lb-row { display: flex; align-items: center; gap: 10px; padding: 8px 6px; border-bottom: 1px solid #f2f5f8; }
.lb-row:last-child { border-bottom: none; }
.lb-rank { width: 24px; text-align: right; color: #9aa7b4; font-weight: 700; font-size: 13px; flex: 0 0 auto; }
.lb-name { flex: 1; min-width: 0; color: var(--navy, #1B365D); font-weight: 600; font-size: 14px; text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lb-name:hover { text-decoration: underline; }
.lb-count { flex: 0 0 auto; color: #e23b4e; font-size: 12.5px; font-weight: 600; }
.lb-more { display: block; padding: 10px 16px; border-top: 1px solid #eef2f6; color: var(--navy, #1B365D); font-weight: 600; font-size: 13px; text-decoration: none; }
.lb-more:hover { background: #f7f9fb; }

/* Around-the-leagues: team names link to their club page */
.mt-team a { color: inherit; text-decoration: none; }
.mt-team a:hover { text-decoration: underline; }

/* Match engagement: extra dots + member "Your record" controls */
.engage-strip .es-dot.tv { background: #7a5cc4; }
.engage-strip .es-dot.want { background: #c99a2e; }
.your-record { margin-left: auto; display: inline-flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.your-record .yr-lab { margin: 0; font-size: 12px; font-weight: 700; color: #5a6b7a; text-transform: uppercase; letter-spacing: .03em; }
.yr-group { display: inline-flex; gap: 6px; }
.yr-btn {
    background: #eef2f6; border: 1px solid #dbe3ea; border-radius: 999px;
    padding: 5px 13px; font-size: 13px; font-weight: 600; color: #5b6b7d; cursor: pointer;
    transition: background .12s, color .12s, border-color .12s;
}
.yr-btn:hover:not(:disabled) { color: #1B365D; border-color: #c3d0db; }
.yr-btn:disabled { opacity: .5; cursor: default; }
.yr-btn.on { background: var(--brand, #004400); color: #fff; border-color: var(--brand, #004400); }
.yr-btn.on:hover:not(:disabled) { background: #0a5a0a; color: #fff; border-color: #0a5a0a; }
.your-record .es-hint a { color: var(--brand); font-weight: 600; }

/* Profile collection modules (matches / programmes) */
.pm-block .pm-stat { margin: 0 0 8px; font-size: 14px; color: #33414f; }
.pm-block .pm-stat strong { color: var(--navy, #1B365D); font-size: 15px; }
.pm-sub { margin: 10px 0 4px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; color: #8b97a4; }
.pm-list { list-style: none; margin: 0; padding: 0; }
.pm-list li { display: flex; justify-content: space-between; gap: 8px; padding: 5px 0; border-bottom: 1px solid #f2f5f8; font-size: 13.5px; }
.pm-list li:last-child { border-bottom: none; }
.pm-list a { color: var(--navy, #1B365D); font-weight: 600; text-decoration: none; }
.pm-list a:hover { text-decoration: underline; }
.pm-date { color: #9aa7b4; font-size: 12px; flex: 0 0 auto; }
.pm-more { margin: 6px 0 0; font-size: 12px; color: #8b97a4; }

/* Match band: compact engagement pills (left) + per-club nav (right) */
.match-band { align-items: stretch; gap: 16px; }
.mb-left { display: flex; align-items: center; gap: 12px; flex: 1 1 0; min-width: 0; }
.mb-prog { flex: 0 0 54px; position: relative; }
.mb-cover { display: block; width: 54px; height: 74px; border-radius: 5px; overflow: hidden; }
.mb-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mb-empty { display: flex; align-items: center; justify-content: center; text-align: center; background: #f2f5f8; border: 1px dashed #d7dee6; box-sizing: border-box; padding: 4px; }
.mb-empty span { font-size: 9px; color: #9aa7b4; line-height: 1.25; }
.mb-badge { position: absolute; top: -5px; left: -5px; font-size: 9px; font-weight: 700; color: #fff; padding: 1px 5px; border-radius: 3px; }
.mb-badge.got { background: #1f7a34; }
.mb-badge.want { background: #c99a2e; }
.mb-pills { display: grid; grid-template-columns: repeat(2, auto); gap: 5px; }
.mb-pill { display: inline-flex; align-items: center; gap: 5px; background: var(--site-card, #fff); border: 0.5px solid var(--site-line, #dbe3ea); border-radius: 999px; padding: 3px 10px; font-size: 12px; color: #5b6b7d; cursor: pointer; white-space: nowrap; }
.mb-pill .mb-ic { width: 13px; height: 13px; fill: currentColor; flex: 0 0 auto; opacity: .75; }
.mb-pill .mb-n { font-weight: 700; color: var(--navy, #1B365D); }
.mb-pill:hover:not(.mb-off) { border-color: #b6c4d4; }
.mb-pill.on { background: #004400; border-color: #004400; color: #fff; }
.mb-pill.on .mb-ic { opacity: 1; }
.mb-pill.on .mb-n { color: #fff; }
.mb-pill.mb-off { opacity: .45; cursor: default; }
.mb-nav { flex: 1 1 0; min-width: 0; border-left: 0.5px solid var(--site-line, #dbe3ea); padding-left: 16px; display: flex; flex-direction: column; justify-content: center; gap: 8px; }
.mb-nav-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 12.5px; }
.mb-nav-team { font-weight: 600; color: var(--navy, #1B365D); border-left: 3px solid var(--ac, #888); padding-left: 7px; flex: 0 0 auto; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mb-nav-pair { display: inline-flex; align-items: center; gap: 8px; min-width: 0; justify-content: flex-end; }
.mb-nav-sep { color: var(--navy, #1B365D); font-weight: 700; flex: 0 0 auto; }
.mb-nav-link { color: #5b6b7d; text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mb-nav-link:hover { color: var(--navy, #1B365D); text-decoration: underline; }
.mb-nav-none { color: #b3bcc6; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 680px) {
  .match-band { flex-wrap: wrap; }
  .mb-nav { border-left: none; border-top: 0.5px solid var(--site-line, #dbe3ea); padding-left: 0; padding-top: 10px; flex-basis: 100%; }
}
.mb-hint { padding: 8px 16px; font-size: 12px; color: #8b97a4; background: var(--site-card, #fff); border: 1px solid var(--site-line, #dbe3ea); border-top: none; border-radius: 0 0 var(--radius) var(--radius); }
.mb-hint a { color: var(--brand); font-weight: 600; }

/* Club programme gallery: member got/want badge + modal credit */
.pg-fav { position: absolute; top: 6px; left: 6px; font-size: 10px; font-weight: 700; color: #fff; padding: 2px 7px; border-radius: 4px; z-index: 2; }
.pg-fav.got { background: #1f7a34; }
.pg-fav.want { background: #c99a2e; }
.pg-modal-collection { margin-top: 14px; }
.pg-modal-collection h4 { margin: 0 0 4px; }
.pg-modal-collection .pg-fav { position: static; display: inline-block; margin-right: 5px; vertical-align: 1px; }
.pg-modal-credit { font-size: 12px; color: #8b97a4; margin: 6px 0 0; }

/* Programme modes as links + collection sub-toggle + in-modal got/want toggle */
.pg-mode { text-decoration: none; cursor: pointer; transition: border-color .12s, background .12s; }
.pg-mode.locked { cursor: default; }
.pg-mode:not(.active):not(.locked):hover { border-color: var(--club-accent); color: var(--text-primary); }
.pg-coll-toggle { display: flex; gap: 8px; margin-bottom: 16px; }
.pg-ct { font-size: 13px; font-weight: 600; text-decoration: none; padding: 6px 14px; border-radius: 999px; border: 1px solid var(--site-line); color: var(--muted); background: var(--site-card); display: inline-flex; align-items: center; gap: 6px; }
.pg-ct.on { border-color: var(--club-accent); color: var(--club-accent); }
.pg-ct-n { font-weight: 700; }
.pg-coll-btns { display: flex; gap: 8px; margin-top: 4px; }
.pg-cbtn { font-size: 13px; font-weight: 600; padding: 6px 16px; border-radius: 999px; border: 1px solid var(--site-line); background: var(--site-card); color: var(--text-secondary); cursor: pointer; }
.pg-cbtn:hover { border-color: #b6c4d4; }
.pg-cbtn.got.on { background: #1f7a34; border-color: #1f7a34; color: #fff; }
.pg-cbtn.want.on { background: #c99a2e; border-color: #c99a2e; color: #fff; }
.pg-fav.hide { display: none; }
.pg-coll-none { color: var(--muted); font-size: 13px; }

/* Club Matches tab — per-row Got/Want (collectors only) */
.cm-list.has-prog .cmr { grid-template-columns: 22px 112px 54px 24px minmax(0,1.4fr) minmax(0,1fr) 56px auto; }
.cmr-prog { display: flex; justify-content: flex-end; margin-left: 12px; padding-left: 14px; border-left: 1px solid var(--site-soft-line); }
.cmr-pg { display: inline-flex; gap: 4px; margin-top: 0; }
.cmr-pg .pg-cbtn { padding: 2px 9px; font-size: 11px; }
.cmr-pg-none { color: var(--site-line); }
@media (max-width: 640px) {
    .cm-list.has-prog .cmr { grid-template-columns: 20px 1fr auto; }
    .cmr-prog { grid-column: 2 / 4; grid-row: 4; justify-content: flex-start; margin-top: 2px; margin-left: 0; padding-left: 0; border-left: 0; }
}

/* Public member profile (single column) + account link */
.profile-public { max-width: 640px; margin: 20px auto 0; display: flex; flex-direction: column; gap: 16px; }
.profile-selfnote { max-width: 640px; margin: 14px auto 0; padding: 10px 14px; background: var(--site-card, #fff); border: 1px solid var(--site-line, #dbe3ea); border-radius: var(--radius); font-size: 13px; color: var(--muted); }
.profile-selfnote a { color: var(--brand); font-weight: 600; }
.profile-empty { text-align: center; color: var(--muted); }
.profile-viewpublic { margin-top: 8px; }
.profile-viewpublic a { color: #fff; font-size: 13px; font-weight: 600; opacity: .9; text-decoration: none; }
.profile-viewpublic a:hover { opacity: 1; text-decoration: underline; }

/* Profile: on-this-day, browse links, and the full matches browse page */
.otd-block h3 .otd-date { font-weight: 400; color: var(--muted); font-size: 12.5px; margin-left: 4px; }
.otd-list { list-style: none; margin: 8px 0 0; padding: 0; }
.otd-list li { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; padding: 5px 0; border-bottom: 1px solid var(--site-soft-line); font-size: 13px; }
.otd-list li:last-child { border-bottom: 0; }
.otd-list li a { color: var(--navy, #1B365D); text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.otd-list li a:hover { text-decoration: underline; }
.otd-year { color: var(--muted); font-size: 12px; flex: 0 0 auto; }
.pm-more { margin: 10px 0 0; font-size: 13px; }
.pm-more a { color: var(--brand); font-weight: 600; text-decoration: none; }
.pm-more a:hover { text-decoration: underline; }
.profile-browse { max-width: 720px; margin: 0 auto; }
.pb-head { margin-bottom: 16px; }
.pb-back { font-size: 13px; color: var(--muted); text-decoration: none; }
.pb-back:hover { color: var(--navy, #1B365D); }
.pb-head h1 { margin: 6px 0 2px; font-size: 22px; }
.pb-count { color: var(--muted); font-size: 13px; margin: 0; }
.pb-list { display: flex; flex-direction: column; margin-top: 6px; }
.pb-row { display: grid; grid-template-columns: 96px minmax(0,1fr) minmax(0,0.9fr); align-items: center; gap: 12px; padding: 8px 6px; border-bottom: 1px solid var(--site-soft-line); font-size: 13.5px; text-decoration: none; color: inherit; }
.pb-row:hover { background: var(--soft); }
.pb-date { color: var(--muted); font-size: 12.5px; }
.pb-teams { font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pb-v { color: var(--site-line); font-weight: 400; margin: 0 3px; }
.pb-comp { color: var(--muted); font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 640px) {
    .pb-row { grid-template-columns: 80px 1fr; row-gap: 2px; }
    .pb-comp { grid-column: 2; color: var(--muted); }
}

/* "You both…" — things in common between viewer and profile */
.common-box { margin-bottom: 18px; padding: 16px 18px; border-left: 3px solid var(--brand, #004400); }
.common-head { margin: 0 0 12px; font-size: 17px; }
.common-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
.common-col h4 { margin: 0 0 6px; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.common-list { list-style: none; margin: 0; padding: 0; }
.common-list li { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; padding: 4px 0; font-size: 13.5px; border-bottom: 1px solid var(--site-soft-line); }
.common-list li:last-child { border-bottom: 0; }
.common-list li a { color: var(--navy, #1B365D); text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.common-list li a:hover { text-decoration: underline; }
.common-year { color: var(--muted); font-size: 12px; flex: 0 0 auto; }
.common-more { color: var(--muted); font-size: 12.5px; font-style: italic; }

/* Profile programmes browse — reuses the programme card grid, wider container */
.programmes-browse { max-width: 960px; }
.programmes-browse .pg-opp { text-decoration: none; display: block; }
.programmes-browse .pg-opp:hover { text-decoration: underline; }
.programmes-browse a.pg-cover { cursor: zoom-in; }
.programmes-browse .cup-filters { margin-top: 6px; }

/* 92 Club progress module */
.ninety-two .n2-headline { display: flex; align-items: baseline; gap: 6px; margin: 6px 0 8px; }
.n2-count { font-size: 30px; font-weight: 800; color: var(--brand, #004400); line-height: 1; }
.n2-total { font-size: 16px; font-weight: 600; color: var(--muted); }
.n2-label { font-size: 12.5px; color: var(--muted); margin-left: 4px; }
.n2-bar { height: 8px; border-radius: 999px; background: var(--site-soft-line, #e6ecf2); overflow: hidden; }
.n2-fill { display: block; height: 100%; background: var(--brand, #004400); border-radius: 999px; transition: width .4s ease; }
.n2-sub { font-size: 12.5px; color: var(--muted); margin: 8px 0 0; }
.n2-details { margin-top: 10px; }
.n2-details summary { font-size: 12.5px; color: var(--brand, #004400); font-weight: 600; cursor: pointer; }
.n2-list { list-style: none; margin: 8px 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 2px 14px; }
.n2-list li { font-size: 12.5px; padding: 3px 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.n2-list li a { color: var(--navy, #1B365D); text-decoration: none; }
.n2-list li a:hover { text-decoration: underline; }
@media (max-width: 480px) { .n2-list { grid-template-columns: 1fr; } }

/* Anorak — member leaderboard table */
.anorak { max-width: 720px; margin: 24px auto 0; }
.anorak-scroll { overflow-x: auto; }
.anorak-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.anorak-table thead th { background: var(--brand, #004400); color: #fff; text-align: left; padding: 9px 12px; font-weight: 600; white-space: nowrap; }
.anorak-table th.num { text-align: right; }
.anorak-table th a { color: #fff; text-decoration: none; }
.anorak-table th a:hover, .anorak-table th.is-sort a { text-decoration: underline; }
.ak-arr { font-size: 11px; }
.anorak-table th.ak-92 { background: #063f14; }
.anorak-table td { padding: 7px 12px; border-bottom: 1px solid var(--site-soft-line); }
.anorak-table td.num { text-align: right; font-variant-numeric: tabular-nums; }
.anorak-table td.ak-92 { background: #eaf3e6; }
.anorak-table td.ak-92.ak-done { color: #1f7a34; font-weight: 700; }
.anorak-table tbody tr:hover { background: var(--soft); }
.anorak-table tbody tr:hover td.ak-92 { background: #e0efd9; }
.ak-user a { color: var(--navy, #1B365D); font-weight: 600; text-decoration: none; }
.ak-user a:hover { text-decoration: underline; }

/* Anorak — highlight the signed-in member's own row */
.anorak-table tr.ak-me td { background: #fff7e0; }
.anorak-table tr.ak-me td.ak-92 { background: #f2eecf; }
.anorak-table tr.ak-me:hover td { background: #fdf1cf; }
.ak-you { display: inline-block; margin-left: 6px; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: #fff; background: #c99a2e; border-radius: 3px; padding: 1px 5px; vertical-align: 1px; }

/* Achievement pills — right side of the hero, badge-styled (distinct from the
   flat "member since / points" data pills) */
.ach-pills { margin-left: auto; display: flex; flex-direction: column; align-items: flex-end; gap: 6px; position: relative; z-index: 1; max-width: 260px; }
.ach-pills-head { font-size: 10px; text-transform: uppercase; letter-spacing: .1em; opacity: .55; margin-bottom: 1px; }
.ach-pill { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; color: var(--club-ink, #fff); background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.30); border-radius: 7px; padding: 4px 11px; }
.ach-pill::before { content: "\2605"; font-size: 11px; opacity: .85; line-height: 1; }
.ach-pill.ach-ninety_two { background: #d7b13a; border-color: #e6c65a; color: #241c00; box-shadow: 0 1px 8px rgba(215,177,58,.45); }
.ach-pill.ach-ninety_two.historic { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.22); color: #d7e3d2; font-style: italic; font-weight: 600; box-shadow: none; }
@media (max-width: 620px) {
  .profile-hero { flex-wrap: wrap; }
  .ach-pills { margin-left: 0; align-items: flex-start; max-width: none; width: 100%; margin-top: 10px; }
}

/* Profile insights — first match, most-watched clubs, grounds */
.insight-first .insight-fm { font-size: 15px; font-weight: 700; margin: 4px 0 2px; }
.insight-first .insight-fm a { color: var(--navy, #1B365D); text-decoration: none; }
.insight-first .insight-fm a:hover { text-decoration: underline; }
.insight-sub { font-size: 12px; color: var(--muted); margin: 0; }
.insight-rank { list-style: none; counter-reset: ir; margin: 6px 0 0; padding: 0; }
.insight-rank li { counter-increment: ir; display: flex; align-items: baseline; gap: 8px; padding: 4px 0; border-bottom: 1px solid var(--site-soft-line); font-size: 13.5px; }
.insight-rank li:last-child { border-bottom: 0; }
.insight-rank li::before { content: counter(ir); flex: 0 0 16px; color: var(--muted); font-size: 11px; font-weight: 700; text-align: right; }
.insight-rank li a { flex: 1 1 auto; color: var(--navy, #1B365D); text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.insight-rank li a:hover { text-decoration: underline; }
.insight-n { flex: 0 0 auto; color: var(--muted); font-variant-numeric: tabular-nums; font-size: 12.5px; }
.insight-headline { font-size: 13.5px; margin: 4px 0 2px; }
.insight-headline strong { font-size: 22px; color: var(--brand, #004400); vertical-align: -1px; }
.insight-sub-head { font-size: 11px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); margin: 12px 0 2px; }
.insight-latest { font-size: 12.5px; color: var(--muted); margin: 12px 0 0; }
.insight-latest a { color: var(--navy, #1B365D); text-decoration: none; font-weight: 600; }
.insight-latest a:hover { text-decoration: underline; }
.insight-date { color: var(--muted); }

/* Shareable achievement pills (now buttons) + share icon */
button.ach-pill { cursor: pointer; font-family: inherit; line-height: 1.15; }
button.ach-pill:hover { filter: brightness(1.08); }
.ach-share-ico { font-size: 10px; opacity: .7; margin-left: 1px; }

/* Share modal */
.share-modal { position: fixed; inset: 0; z-index: 1000; display: none; align-items: center; justify-content: center; background: rgba(0,0,0,.55); padding: 20px; }
.share-modal.open { display: flex; }
.share-modal-box { background: #fff; border-radius: 12px; max-width: 360px; width: 100%; padding: 22px; position: relative; box-shadow: 0 20px 60px rgba(0,0,0,.35); }
.share-modal-close { position: absolute; top: 8px; right: 12px; background: none; border: 0; font-size: 24px; line-height: 1; color: var(--muted); cursor: pointer; }
.share-modal-title { margin: 0 0 4px; font-size: 17px; color: var(--navy, #1B365D); padding-right: 20px; }
.share-modal-lead { margin: 0 0 14px; font-size: 13px; color: var(--muted); }
.share-modal-btns { display: flex; flex-direction: column; gap: 8px; }
.share-btn { padding: 10px 14px; border-radius: 8px; border: 0; font-size: 14px; font-weight: 600; cursor: pointer; color: #fff; text-align: center; }
.share-fb { background: #1877f2; }
.share-x { background: #111; }
.share-ig { background: #c13584; }
.share-btn:hover { filter: brightness(1.08); }
.share-modal-note { margin: 12px 0 0; font-size: 11.5px; color: var(--muted); }

/* Achievement share landing page */
.ach-share-page { max-width: 680px; margin: 24px auto; text-align: center; }
.ach-share-card img { width: 100%; height: auto; border-radius: 12px; box-shadow: 0 10px 30px rgba(0,0,0,.18); }
.ach-share-cta { margin-top: 20px; }
.ach-share-cta h1 { font-size: 24px; margin: 0 0 6px; }
.ach-share-label { color: var(--brand, #004400); }
.ach-share-sub { color: var(--muted); margin: 0 0 18px; }
.ach-share-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }

/* Share modal — download-image button */
.share-dl { background: #004400; text-decoration: none; display: block; }
.share-dl:hover { filter: brightness(1.12); }

/* Achievement unlocked toast */
.ach-toast-wrap { position: fixed; right: 20px; bottom: 20px; z-index: 1100; display: flex; flex-direction: column; gap: 10px; max-width: 340px; }
.ach-toast { display: flex; align-items: center; gap: 12px; background: #004400; color: #fff; border: 1px solid #d7b13a; border-radius: 10px; padding: 12px 14px; box-shadow: 0 10px 30px rgba(0,0,0,.3); cursor: pointer; transform: translateY(16px); opacity: 0; transition: transform .35s ease, opacity .35s ease; }
.ach-toast.show { transform: translateY(0); opacity: 1; }
.ach-toast-star { color: #e4c14a; font-size: 22px; line-height: 1; flex: 0 0 auto; }
.ach-toast-body { display: flex; flex-direction: column; gap: 1px; flex: 1 1 auto; }
.ach-toast-kicker { font-size: 10px; text-transform: uppercase; letter-spacing: .08em; color: #9fc699; }
.ach-toast-label { font-size: 15px; font-weight: 700; }
.ach-toast-close { color: #9fc699; font-size: 18px; line-height: 1; flex: 0 0 auto; align-self: flex-start; }
@media (max-width: 480px) { .ach-toast-wrap { right: 12px; left: 12px; bottom: 12px; max-width: none; } }

/* Top-right share button on stat cards */
.info-block:has(> .card-share) { position: relative; }
.card-share { position: absolute; top: 12px; right: 12px; width: 26px; height: 26px; padding: 0; border: 1px solid var(--site-line); border-radius: 6px; background: #fff; color: var(--muted); font-size: 14px; line-height: 1; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.card-share:hover { color: var(--brand, #004400); border-color: var(--brand, #004400); }

/* Data-admin contribution badges on the public profile */
.contrib-badges { padding: 14px 16px; margin-bottom: 16px; }
.cb-head { font-size: 14px; margin: 0 0 10px; color: var(--navy, #1B365D); }
.cb-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.cb-pill { display: inline-flex; align-items: center; gap: 5px; padding: 5px 12px; border-radius: 999px; font-size: 13px; font-weight: 600; border: 1px solid transparent; background: #eef3ee; color: #1B365D; }
.cb-pill.cb-points  { background: #004400; color: #fff; }
.cb-pill.cb-service { background: #f3e2a6; color: #7a5c00; border-color: #e4c14a; }
button.cb-pill { cursor: pointer; }
button.cb-pill .ach-share-ico { font-size: 11px; opacity: .75; }

/* Special contribution badges (Complete the Set, First Image) */
.cb-pill.cb-special { background: #e6f4ea; color: #1f7a34; border-color: #b7e0c2; }

/* Account avatar upload */
.avatar-edit { display: flex; gap: 16px; align-items: flex-start; }
.avatar-preview { width: 96px; height: 120px; border-radius: 8px; overflow: hidden; background: #eef3ee; border: 1px solid var(--site-line); flex: 0 0 auto; display: flex; align-items: center; justify-content: center; }
.avatar-preview img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.avatar-none { font-size: 12px; color: var(--muted); text-align: center; }
.avatar-controls { flex: 1 1 auto; min-width: 0; }
.avatar-controls input[type=file] { display: block; margin-bottom: 8px; font-size: 13px; max-width: 100%; }

/* Admin-since pill — more prominent than the standard member pill */
.pill.pill-admin { background: #e4c14a; color: #3a2c00; border: 1px solid #caa53a; font-weight: 700; box-shadow: 0 1px 3px rgba(0,0,0,.22); }
.pill-admin-ico { color: #7a5c00; font-size: 11px; margin-right: 1px; }

/* Second hero pill row (Admin since + contribution points, under Member since) */
.profile-pills.profile-pills-2 { margin-top: 6px; }

/* Round picker with prev/next arrows (Results tab) */
.round-nav { display: flex; align-items: center; gap: 8px; justify-content: flex-end; }
.round-nav button.sn-arrow { font-family: inherit; font-size: 20px; line-height: 1; cursor: pointer; -webkit-appearance: none; appearance: none; }

/* ── Nav search: magnifier button + modal with live suggestions ─────────── */
.nav-search-btn {
    display: inline-flex; align-items: center; justify-content: center;
    width: 34px; height: 34px; margin-left: 4px; padding: 0;
    background: transparent; border: 0; border-radius: 8px; cursor: pointer;
    color: var(--muted-on-dark, #b9d7b4); transition: background .12s, color .12s;
}
.nav-search-btn:hover { background: rgba(255,255,255,.12); color: #fff; }
.nav-search-btn svg { width: 19px; height: 19px; }

.search-modal { position: fixed; inset: 0; z-index: 2000; display: flex; align-items: flex-start; justify-content: center; padding: 12vh 16px 16px; }
.search-modal[hidden] { display: none; }
.sm-backdrop { position: absolute; inset: 0; background: rgba(8,12,20,.6); backdrop-filter: blur(2px); }
.sm-card {
    position: relative; z-index: 2; width: 100%; max-width: 620px;
    background: var(--site-card, #fff); border-radius: 14px; overflow: hidden;
    box-shadow: 0 30px 80px rgba(0,0,0,.45); display: flex; flex-direction: column; max-height: 76vh;
    animation: smIn .12s ease-out;
}
@keyframes smIn { from { transform: translateY(-8px); opacity: 0; } to { transform: none; opacity: 1; } }
.sm-form { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--site-soft-line, #e6ebf0); }
.sm-ico { width: 20px; height: 20px; color: var(--muted); flex: 0 0 auto; }
.sm-input { flex: 1 1 auto; border: 0; outline: 0; font-size: 16px; color: var(--ink); background: transparent; }
.sm-input::placeholder { color: var(--muted); }
.sm-close { flex: 0 0 auto; border: 0; background: transparent; font-size: 24px; line-height: 1; color: var(--muted); cursor: pointer; padding: 0 4px; border-radius: 6px; }
.sm-close:hover { color: var(--ink); background: var(--soft); }

.sm-results { overflow-y: auto; overflow-x: hidden; padding: 6px 0; }
.sm-group-title { font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 700; padding: 10px 16px 4px; }
.sm-item { display: flex; align-items: center; gap: 11px; padding: 8px 16px; text-decoration: none; color: var(--ink); }
.sm-item:hover, .sm-item.active { background: var(--soft, #f1f5f9); }
.sm-media { flex: 0 0 auto; width: 34px; height: 34px; border-radius: 8px; overflow: hidden; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; color: #fff; }
.sm-media.round { border-radius: 50%; }
.sm-media img { width: 100%; height: 100%; object-fit: cover; }
.sm-text { min-width: 0; overflow: hidden; }
.sm-title { font-weight: 600; font-size: 14px; }
.sm-sub { font-size: 12px; color: var(--muted); margin-left: 7px; }
/* Most rows keep title + sub on one line, truncating the whole line with an ellipsis. */
.sm-item:not(.sm-item-books) .sm-text { white-space: nowrap; text-overflow: ellipsis; }
/* Books carry long titles AND long author lists, so the sub drops to its own line;
   both lines truncate independently rather than forcing the modal to scroll sideways. */
.sm-item-books .sm-title,
.sm-item-books .sm-sub { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sm-item-books .sm-sub { margin-left: 0; }
.sm-state { padding: 22px 16px; text-align: center; color: var(--muted); font-size: 13px; }
.sm-foot { border-top: 1px solid var(--site-soft-line, #e6ebf0); }
.sm-all { display: block; padding: 12px 16px; text-align: center; font-weight: 600; font-size: 13px; color: var(--brand); text-decoration: none; }
.sm-all:hover { background: var(--soft); }

@media (max-width: 560px) {
    .search-modal { padding: 0; align-items: stretch; }
    .sm-card { max-width: none; max-height: 100vh; height: 100%; border-radius: 0; }
}

/* ── Contact form ──────────────────────────────────────────────────────── */
.contact-wrap { max-width: 620px; margin: 8px auto; }
.contact-h { font-size: 26px; color: var(--ink); margin: 0 0 6px; }
.contact-lead { color: var(--muted); font-size: 14.5px; margin: 0 0 20px; line-height: 1.5; }
.contact-ctx { background: var(--soft); border: 1px solid var(--site-soft-line); border-left: 3px solid var(--brand); border-radius: 8px; padding: 10px 14px; margin-bottom: 18px; font-size: 13.5px; color: var(--ink); }
.contact-ctx-k { font-weight: 700; color: var(--brand); text-transform: uppercase; letter-spacing: .06em; font-size: 11px; margin-right: 6px; }
.contact-form { display: flex; flex-direction: column; gap: 16px; }
.contact-field { display: flex; flex-direction: column; gap: 6px; }
.contact-flabel { font-size: 13px; font-weight: 600; color: var(--ink); }
.contact-opt { font-weight: 400; color: var(--muted); }
.contact-input { font: inherit; font-size: 15px; color: var(--ink); background: #fff; border: 1px solid var(--site-line); border-radius: 8px; padding: 10px 12px; width: 100%; box-sizing: border-box; }
.contact-input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(0,68,0,.1); }
.contact-textarea { resize: vertical; min-height: 130px; line-height: 1.5; }
.contact-input.has-err { border-color: #c0392b; }
.contact-err { font-size: 12.5px; color: #c0392b; }
.contact-actions { margin-top: 4px; }
.contact-submit { font: inherit; font-size: 15px; font-weight: 700; color: #fff; background: var(--brand); border: 0; border-radius: 8px; padding: 11px 22px; cursor: pointer; }
.contact-submit:hover { background: var(--brand-dark); }
/* Honeypot — off-screen, never shown to real users */
.contact-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.contact-sent { text-align: center; padding-top: 24px; }
.contact-sent-ico { width: 64px; height: 64px; margin: 0 auto 16px; border-radius: 50%; background: #e7f4e7; color: #1f8a3b; display: flex; align-items: center; justify-content: center; }
.contact-sent-ico svg { width: 34px; height: 34px; }
.contact-back-wrap { margin-top: 20px; }
.contact-back { color: var(--brand); text-decoration: none; font-weight: 600; }
.contact-back:hover { text-decoration: underline; }

/* ── Account view tabs ─────────────────────────────────────────────────── */
.tab-panel.account-tab { margin-top: 18px; }
.tab-panel[hidden] { display: none; }
.acc-public-intro { margin: 0 0 16px; padding: 10px 14px; background: var(--soft); border: 1px solid var(--site-soft-line); border-radius: 8px; font-size: 13.5px; color: var(--muted); }
.acc-public-intro a { color: var(--brand); font-weight: 600; text-decoration: none; white-space: nowrap; }
.acc-public-intro a:hover { text-decoration: underline; }

.account-pending { margin: 4px 0 10px; padding: 9px 12px; background: #fff8e6; border: 1px solid #f0e0b0; border-radius: 7px; font-size: 12.5px; color: #7a5c12; }
.account-pending strong { color: #5c4409; }

.otd-block .otd-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.otd-block .otd-title { min-width: 0; }
.otd-block .otd-when { flex: 0 0 auto; font-family: 'Roboto Mono', monospace; font-size: 12px; font-weight: 400; color: var(--muted); white-space: nowrap; }
