/* ================================================================
   PUBLIC PAGE — Shared styles for league/event public pages
   Dark-first. Design tokens throughout. No hardcoded hex in cards.
   Used by PublicStandings.razor + PublicEvent.razor
================================================================ */

/* ── Page wrapper ── */
.pub-page-wrap {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 0 3rem;
}

/* ── Org identity band ── */
/* Draft preview banner (E3). This page is served under PublicLayout to signed-out visitors, so it
   deliberately uses literal colours like the rest of this stylesheet rather than app theme tokens —
   there is no theme switcher here. */
.pub-preview-banner {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    background: #FEF3C7;
    color: #78350F;
    border-bottom: 2px solid #F59E0B;
    padding: 0.75rem 1.25rem;
    font-size: 0.9rem;
    line-height: 1.45;
}

.pub-preview-banner i {
    font-size: 1.05rem;
    line-height: 1.35;
    flex-shrink: 0;
}

.pub-preview-sub {
    display: block;
    font-size: 0.82rem;
    opacity: 0.85;
}

.pub-org-band {
    background: #1a5c2a;
    padding: 0.7rem 1.25rem;
}

.pub-org-inner {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    max-width: 960px;
    margin: 0 auto;
}

.pub-org-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.18);
    border: 2px solid rgba(255, 255, 255, 0.35);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    text-transform: uppercase;
    overflow: hidden;
}

.pub-org-logo-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 50%;
}

.pub-org-desc {
    display: block;
    color: rgba(255,255,255,0.72);
    font-size: 0.72rem;
    font-weight: 400;
    line-height: 1.3;
    margin-top: 0.1rem;
    max-width: 400px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.pub-org-name {
    color: #fff;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ── Hero ── */
.pub-hero {
    padding: 2.5rem 1.5rem 2rem;
    background: linear-gradient(140deg, #0f172a 0%, #1e3a5f 60%, #0e4d2f 100%);
}

/* Slim hero: the date + format already appear in the info strip just below, so the hero only
   carries the status pill and league name. Much less scroll before the standings. */
.pub-hero--slim { padding: 1.4rem 1.5rem 1.3rem; }
.pub-hero--slim .pub-status-pill { margin-bottom: 0.5rem; }
.pub-hero--slim .pub-event-title { margin-bottom: 0; }

.pub-hero-open     { background: linear-gradient(140deg, #0f172a 0%, #1e3a5f 60%, #0e4d2f 100%); }
.pub-hero-active   { background: linear-gradient(140deg, #1a0a0a 0%, #7f1d1d 55%, #3b1414 100%); }
.pub-hero-closed   { background: linear-gradient(140deg, #0f172a 0%, #1e3050 60%, #0c2340 100%); }
.pub-hero-cancelled { background: linear-gradient(140deg, #1e1e1e 0%, #374151 100%); }

.pub-hero-inner {
    max-width: 960px;
    margin: 0 auto;
    display: flex;
    align-items: flex-start;
    gap: 2rem;
    flex-wrap: wrap;
}

.pub-hero-single { max-width: 760px; }

.pub-hero-left {
    flex: 1;
    min-width: 260px;
}

.pub-status-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 1.5rem;
    padding: 0.25rem 0.75rem;
    font-size: 0.72rem;
    font-weight: 700;
    color: #f1f5f9;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin-bottom: 0.75rem;
}

.pub-status-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    flex-shrink: 0;
}

.pub-dot-open     { background: #4ade80; box-shadow: 0 0 6px #4ade80; animation: pulse-dot 2s infinite; }
.pub-dot-active   { background: #f87171; box-shadow: 0 0 6px #f87171; animation: pulse-dot 2s infinite; }
.pub-dot-closed   { background: #94a3b8; }
.pub-dot-cancelled { background: #6b7280; }

@keyframes pulse-dot {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0.5; }
}

.pub-event-title {
    font-size: 2rem;
    font-weight: 900;
    color: #fff;
    margin: 0 0 0.85rem;
    line-height: 1.15;
    letter-spacing: -0.01em;
}

.pub-hero-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.pub-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.3rem 0.75rem;
    border-radius: 1.5rem;
    font-size: 0.78rem;
    font-weight: 600;
    border: 1px solid rgba(255,255,255,0.15);
    background: rgba(255,255,255,0.1);
    color: #e2e8f0;
}

.pub-chip-org     { background: rgba(99,102,241,.25); color: #c7d2fe; }
.pub-chip-format  { background: rgba(16,185,129,.2);  color: #6ee7b7; }
.pub-chip-hcp     { background: rgba(245,158,11,.2);  color: #fcd34d; }
.pub-chip-rounds  { background: rgba(59,130,246,.2);  color: #93c5fd; }

/* ── Event info strip (date / course / field) ── */
.pub-info-strip {
    background: var(--bg-surface, #0f172a);
    border-bottom: 1px solid var(--border-subtle, rgba(255,255,255,0.08));
    padding: 0.9rem 1.25rem;
}

.pub-info-items {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    max-width: 960px;
    margin: 0 auto;
}

.pub-info-item {
    display: flex;
    align-items: flex-start;
    gap: 0.55rem;
    flex: 1;
    min-width: 160px;
    background: var(--bg-elevated, rgba(255,255,255,0.05));
    border: 1px solid var(--border-subtle, rgba(255,255,255,0.08));
    border-radius: 10px;
    padding: 0.7rem 0.9rem;
}

.pub-info-icon {
    font-size: 1.1rem;
    flex-shrink: 0;
    margin-top: 1px;
    color: var(--text-muted, #64748b);
}

.pub-info-icon--date   { color: #93c5fd; }
.pub-info-icon--course { color: #6ee7b7; }
.pub-info-icon--field  { color: #fca5a5; }

.pub-info-main {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-primary, #f1f5f9);
    line-height: 1.3;
}

.pub-info-sub {
    font-size: 0.72rem;
    color: var(--text-muted, #64748b);
    margin-top: 2px;
}

.pub-field-progress {
    height: 4px;
    background: rgba(255,255,255,0.1);
    border-radius: 4px;
    margin-top: 5px;
    width: 100px;
    overflow: hidden;
}

.pub-field-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #4ade80, #22c55e);
    border-radius: 4px;
}

/* ── Fee + deadline strip ── */
.pub-fee-strip {
    background: rgba(245,158,11,0.08);
    border-top: 1px solid rgba(245,158,11,0.25);
    border-bottom: 1px solid rgba(245,158,11,0.25);
    padding: 0.85rem 1.25rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.pub-fee-item {
    display: flex;
    flex-direction: column;
}

.pub-fee-label {
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #fbbf24;
    margin-bottom: 2px;
}

.pub-fee-amount {
    font-size: 1.5rem;
    font-weight: 900;
    color: #f59e0b;
    line-height: 1;
}

/* Two-tier pricing (a club member rate beside the standard fee): the amounts stack, each tagged
   with who pays it. Single-price events never render a second amount, so the strip is unchanged. */
.pub-fee-amount + .pub-fee-amount {
    margin-top: 0.35rem;
}

.pub-fee-tier {
    font-size: 0.72rem;
    font-weight: 700;
    color: #fbbf24;
    margin-left: 0.4rem;
    white-space: nowrap;
}

.pub-fee-date {
    font-size: 0.875rem;
    font-weight: 700;
    color: #f59e0b;
    line-height: 1;
}

.pub-fee-days-left {
    font-size: 0.72rem;
    font-weight: 600;
    color: #fbbf24;
    margin-top: 2px;
}

/* ── Primary CTA card ── */
.pub-cta-card {
    padding: 1.1rem 1.25rem;
    background: var(--bg-elevated, #1e293b);
    border-bottom: 1px solid var(--border-subtle, rgba(255,255,255,0.08));
}

/* CTA states — all dark-safe */
.pub-cta-open     { background: rgba(34,197,94,0.08);  border-bottom-color: rgba(34,197,94,0.2); }
.pub-cta-enrolled { background: rgba(34,197,94,0.05);  border-bottom-color: rgba(34,197,94,0.12); }
.pub-cta-success  { background: rgba(34,197,94,0.1);   border-bottom-color: rgba(34,197,94,0.25); }
.pub-cta-anon     { background: rgba(59,130,246,0.07); border-bottom-color: rgba(59,130,246,0.18); }
.pub-cta-inactive { background: var(--bg-elevated, #1e293b); }
.pub-cta-full     { background: rgba(245,158,11,0.07); border-bottom-color: rgba(245,158,11,0.2); }
.pub-cta-scoring  { background: rgba(245,158,11,0.07); border-bottom-color: rgba(245,158,11,0.2); }
.pub-cta-error    { background: rgba(239,68,68,0.07);  border-bottom-color: rgba(239,68,68,0.2); }
.pub-cta-closed   { background: var(--bg-elevated, #1e293b); border-bottom-color: var(--border-subtle, rgba(255,255,255,0.08)); }

/* Closed registration is low-priority for spectators — collapse the full lock card to one calm line. */
.pub-cta-card--slim { padding: 0.55rem 1.25rem; }
.pub-reg-closed-line {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.82rem;
    color: var(--text-muted, #94a3b8);
}
.pub-reg-closed-line i { color: var(--text-muted, #94a3b8); flex-shrink: 0; }
.pub-reg-closed-text { font-weight: 700; color: var(--text-secondary, #cbd5e1); }
.pub-reg-closed-sub { color: var(--text-muted, #94a3b8); }

.pub-cta-inner {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
}

.pub-cta-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.pub-cta-icon--green  { background: rgba(34,197,94,0.15);   color: #4ade80; }
.pub-cta-icon--blue   { background: rgba(59,130,246,0.15);  color: #93c5fd; }
.pub-cta-icon--amber  { background: rgba(245,158,11,0.15);  color: #fbbf24; }
.pub-cta-icon--muted  { background: rgba(255,255,255,0.06); color: #94a3b8; }
.pub-cta-icon--red    { background: rgba(239,68,68,0.15);   color: #f87171; }
.pub-cta-icon--orange { background: rgba(249,115,22,0.15);  color: #fb923c; }

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

.pub-cta-headline {
    font-size: 1rem;
    font-weight: 800;
    color: var(--text-primary, #f1f5f9);
    margin: 0 0 0.2rem;
    line-height: 1.25;
}

.pub-cta-sub {
    font-size: 0.82rem;
    color: var(--text-secondary, #cbd5e1);
    line-height: 1.5;
    margin: 0;
}

.pub-cta-sub strong {
    color: var(--text-primary, #f1f5f9);
}

.pub-cta-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-top: 0.85rem;
}

.pub-cta-btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: #16a34a;
    color: #fff;
    font-weight: 700;
    font-size: 0.9rem;
    padding: 0.6rem 1.35rem;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.15s, transform 0.1s;
    white-space: nowrap;
}

.pub-cta-btn-primary:hover { background: #15803d; color: #fff; transform: translateY(-1px); }
.pub-cta-btn-primary:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

.pub-cta-btn-blue {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: #2563eb;
    color: #fff;
    font-weight: 700;
    font-size: 0.9rem;
    padding: 0.6rem 1.35rem;
    border-radius: 10px;
    text-decoration: none;
    transition: background 0.15s, transform 0.1s;
    white-space: nowrap;
}

.pub-cta-btn-blue:hover { background: #1d4ed8; color: #fff; transform: translateY(-1px); }

.pub-cta-btn-ghost {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: transparent;
    color: var(--text-secondary, #94a3b8);
    font-weight: 600;
    font-size: 0.85rem;
    padding: 0.55rem 1.1rem;
    border-radius: 10px;
    border: 1.5px solid var(--border-subtle, rgba(255,255,255,0.15));
    cursor: pointer;
    text-decoration: none;
    transition: border-color 0.15s, color 0.15s;
    white-space: nowrap;
}

.pub-cta-btn-ghost:hover { border-color: rgba(255,255,255,0.35); color: var(--text-primary, #f1f5f9); }
.pub-cta-btn-ghost:disabled { opacity: 0.5; cursor: not-allowed; }

.pub-cta-btn-amber {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: #d97706;
    color: #fff;
    font-weight: 700;
    font-size: 0.9rem;
    padding: 0.6rem 1.35rem;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.15s;
    white-space: nowrap;
}

.pub-cta-btn-amber:hover { background: #b45309; color: #fff; }
.pub-cta-btn-amber:disabled { opacity: 0.5; cursor: not-allowed; }

.pub-cta-waitlisted { border-left-color: #f59e0b; }

.pub-cta-error-msg {
    margin-top: 0.6rem;
    font-size: 0.8rem;
    color: #f87171;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

/* ── Self-link form ── */
.pub-self-link-form {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.75rem;
    flex-wrap: wrap;
}

.pub-self-link-input {
    flex: 1 1 200px;
    padding: 0.45rem 0.7rem;
    border: 1.5px solid var(--border-subtle, rgba(255,255,255,0.15));
    border-radius: 8px;
    font-size: 0.88rem;
    color: var(--text-primary, #f1f5f9);
    background: var(--bg-raised, rgba(255,255,255,0.06));
    outline: none;
    transition: border-color 0.15s;
}

.pub-self-link-input:focus { border-color: #3b82f6; }
.pub-self-link-input--error { border-color: #f87171; }
.pub-self-link-btn { flex-shrink: 0; white-space: nowrap; }

.pub-self-link-error {
    margin-top: 0.55rem;
    font-size: 0.8rem;
    color: #f87171;
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

/* ── Enroll success ── */
.pub-cta-success-row {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.75rem 1rem;
    background: rgba(34,197,94,0.12);
    border: 1px solid rgba(34,197,94,0.3);
    border-radius: 10px;
    color: #4ade80;
}

.pub-cta-success-row i { font-size: 1.25rem; flex-shrink: 0; }

.pub-cta-success-text {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-primary, #f1f5f9);
}

/* ── League standings wrapper ── */
.pub-standings-wrap {
    max-width: 960px;
    margin: 0 auto;
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
}

/* Section order: Standings (default order 0) → Pairings → Teams.
   Reorders the page without moving markup. */
.pub-card--highlights { order: -1; }
.pub-card--pairings { order: 2; }
.pub-card--teams { order: 3; }

/* Live (unofficial) results pill */
.pub-live-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: #34d399;
    background: rgba(16,185,129,0.12);
    border: 1px solid rgba(16,185,129,0.35);
    border-radius: 999px;
    padding: 0.25rem 0.6rem;
}
.pub-live-dot {
    width: 0.5rem; height: 0.5rem; border-radius: 50%;
    background: #34d399;
    animation: pub-live-pulse 1.6s infinite;
}
@keyframes pub-live-pulse {
    0%   { box-shadow: 0 0 0 0 rgba(52,211,153,0.6); }
    70%  { box-shadow: 0 0 0 6px rgba(52,211,153,0); }
    100% { box-shadow: 0 0 0 0 rgba(52,211,153,0); }
}

/* Clickable team rows + expand chevron (public standings only) */
.pub-team-row { cursor: pointer; transition: background 0.12s ease; }
.pub-team-row:hover { background: rgba(255,255,255,0.04); }
.pub-team-row .pub-team-name-cell { position: relative; padding-right: 1.25rem; }
.pub-team-row .pub-team-name-cell::after {
    content: "\F285"; /* bootstrap-icons chevron-right */
    font-family: "bootstrap-icons";
    position: absolute; right: 0; top: 50%; transform: translateY(-50%);
    font-size: 0.7rem; color: #94a3b8;
    transition: transform 0.15s ease, color 0.15s ease;
}
.pub-team-row[aria-expanded="true"] .pub-team-name-cell::after {
    transform: translateY(-50%) rotate(90deg);
    color: #f59e0b;
}

/* Team detail panel (expanded row) */
.pub-team-detail-row > td { background: rgba(2,6,23,0.35); padding: 0 !important; }
.pub-team-detail { padding: 0.85rem 1.1rem; }
.pub-team-detail--loading { color: #94a3b8; font-size: 0.9rem; }
.pub-team-detail-head {
    display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem;
    align-items: baseline; justify-content: space-between;
    margin-bottom: 0.6rem;
}
.pub-team-detail-players { color: #cbd5e1; font-size: 0.9rem; }
.pub-team-detail-total { color: #e2e8f0; font-size: 0.95rem; }
.pub-team-detail-table { width: 100%; border-collapse: collapse; font-size: 0.88rem; }
.pub-team-detail-table th {
    text-align: left; color: #94a3b8; font-weight: 600;
    padding: 0.35rem 0.5rem; border-bottom: 1px solid rgba(255,255,255,0.08);
}
.pub-team-detail-table td {
    padding: 0.35rem 0.5rem; color: #e2e8f0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}
.pub-week-badge {
    display: inline-block; font-size: 0.72rem; font-weight: 700;
    border-radius: 999px; padding: 0.1rem 0.5rem;
}
.pub-week-final  { background: rgba(16,185,129,0.15); color: #34d399; }
.pub-week-live   { background: rgba(59,130,246,0.15); color: #60a5fa; }
.pub-week-warmup { background: rgba(148,163,184,0.15); color: #cbd5e1; }
.pub-week-pending{ background: rgba(245,158,11,0.12); color: #fbbf24; }
.pub-week-noscore{ background: rgba(148,163,184,0.12); color: #94a3b8; }
.pub-week-note-row td { color: #94a3b8; font-size: 0.8rem; padding-top: 0; }
.pub-team-detail-explainer { margin: 0.6rem 0 0; color: #94a3b8; font-size: 0.8rem; }

/* Clickable week row -> hole-by-hole breakdown */
.pub-week-row { cursor: pointer; }
.pub-week-row:hover { background: rgba(255,255,255,0.04); }
.pub-week-holes-row > td { background: rgba(2,6,23,0.55); padding: 0.5rem 0.75rem !important; }
.pub-week-holes-head { color: #e2e8f0; font-weight: 600; font-size: 0.85rem; margin-bottom: 0.4rem; }
.pub-holes-table { width: 100%; border-collapse: collapse; font-size: 0.82rem; }
.pub-holes-table th { text-align: left; color: #94a3b8; font-weight: 600; padding: 0.25rem 0.4rem; border-bottom: 1px solid rgba(255,255,255,0.08); }
.pub-holes-table td { padding: 0.25rem 0.4rem; color: #e2e8f0; border-bottom: 1px solid rgba(255,255,255,0.05); }
.pub-hole-result { display: inline-block; font-size: 0.72rem; font-weight: 700; border-radius: 999px; padding: 0.05rem 0.45rem; }
.pub-hole-won, .pub-hole-bye { background: rgba(16,185,129,0.16); color: #34d399; }
.pub-hole-tied { background: rgba(245,158,11,0.14); color: #fbbf24; }
.pub-hole-lost { background: rgba(148,163,184,0.14); color: #cbd5e1; }
.pub-hole-nocontest { background: rgba(148,163,184,0.10); color: #94a3b8; }

/* ── Card used by all content sections ── */
.pub-standings-card {
    background: var(--bg-elevated, #1e293b);
    border: 1px solid var(--border-subtle, rgba(255,255,255,0.08));
    border-radius: 14px;
    overflow: hidden;
}

.pub-standings-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.9rem 1.1rem;
    border-bottom: 1px solid var(--border-subtle, rgba(255,255,255,0.08));
    flex-wrap: wrap;
}

.pub-standings-title {
    font-size: 0.92rem;
    font-weight: 800;
    color: var(--text-primary, #f1f5f9);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.pub-standings-hint {
    font-size: 0.78rem;
    color: var(--text-muted, #64748b);
}

/* ── Share strip ── */
.pub-share-strip {
    padding: 1rem 1.25rem;
    background: var(--bg-elevated, #1e293b);
    border-top: 1px solid var(--border-subtle, rgba(255,255,255,0.08));
}

.pub-share-strip-label {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted, #64748b);
    margin-bottom: 0.5rem;
}

.pub-share-row-inner {
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

.pub-share-url-box {
    flex: 1;
    background: var(--bg-raised, rgba(255,255,255,0.04));
    border: 1px solid var(--border-subtle, rgba(255,255,255,0.1));
    border-radius: 8px;
    padding: 0.4rem 0.75rem;
    font-size: 0.75rem;
    color: var(--text-secondary, #94a3b8);
    font-family: monospace;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
}

/* ── Results archive (LEAGUE-015) ──────────────────────────────────────────
   These four classes shipped with no rules at all, so the week header fell back
   to the user-agent button colour: pure black on the dark card, a measured
   1.04:1 against AA's 4.5:1. Everything the markup used to declare inline lives
   here now, with the page's own tokens. */
.pub-results-weeks {
    display: flex;
    flex-direction: column;
}

.pub-results-week-header {
    display: flex;
    width: 100%;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    padding: 0.65rem 0.75rem;
    background: none;
    border: 0;
    border-top: 1px solid var(--border-subtle, rgba(255,255,255,0.08));
    color: var(--text-primary, #f1f5f9);
    font: inherit;
    text-align: left;
    cursor: pointer;
}

.pub-results-weeks > .pub-results-week-header:first-child { border-top: 0; }

.pub-results-week-header:hover { background: var(--bg-raised, rgba(255,255,255,0.04)); }

.pub-results-week-header:focus-visible {
    outline: 2px solid var(--text-primary, #f1f5f9);
    outline-offset: -2px;
}

.pub-results-week-header .bi {
    flex-shrink: 0;
    color: var(--text-muted, #94a3b8);
}

.pub-results-week-body { padding: 0 0.75rem 0.75rem; }

.pub-results-week-row {
    display: flex;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 0.3rem 0;
    color: var(--text-secondary, #cbd5e1);
}

.pub-results-week-row strong { color: var(--text-primary, #f1f5f9); }

.pub-results-week-score { margin-left: 0.5rem; }

.pub-share-copy-btn {
    background: #2563eb;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.4rem 0.9rem;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.12s;
    flex-shrink: 0;
}

.pub-share-copy-btn:hover { background: #1d4ed8; }

/* ── Empty / not-found states ── */
.pub-state-page {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 60vh;
    text-align: center;
    padding: 2rem 1.5rem;
    color: var(--text-primary, #f1f5f9);
}

.pub-state-icon  { font-size: 3.5rem; margin-bottom: 1.25rem; line-height: 1; }
.pub-state-title { font-size: 1.4rem; font-weight: 800; margin: 0 0 0.5rem; }
.pub-state-sub   { font-size: 0.9rem; color: var(--text-secondary, #94a3b8); max-width: 340px; line-height: 1.6; }

.pub-timeout-copy { color: var(--text-primary, #f1f5f9); }

/* ── Match Play board ── */
.pub-matchplay-grid { margin-top: 0.15rem; }

.pub-matchplay-column {
    border: 1px solid var(--border-subtle, rgba(255,255,255,0.1));
    border-radius: 12px;
    padding: 0.8rem;
    height: 100%;
    background: var(--bg-surface, #0f172a);
}

.pub-matchplay-column--scheduled  { background: var(--bg-surface, #0f172a); }
.pub-matchplay-column--inprogress { background: rgba(29,78,216,0.08); border-color: rgba(59,130,246,0.3); }
.pub-matchplay-column--closed     { background: rgba(4,120,87,0.08); border-color: rgba(16,185,129,0.3); }

.pub-matchplay-column-title {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-primary, #f1f5f9);
    margin-bottom: 0.65rem;
}

.pub-matchplay-match-row {
    border-top: 1px solid var(--border-subtle, rgba(255,255,255,0.08));
    padding-top: 0.5rem;
    margin-top: 0.5rem;
}

.pub-matchplay-match-row:first-of-type { border-top: none; padding-top: 0; margin-top: 0; }

.pub-matchplay-match-title  { font-size: 0.8rem; font-weight: 700; color: var(--text-primary, #f1f5f9); }
.pub-matchplay-match-sides  { font-size: 0.8rem; color: var(--text-secondary, #cbd5e1); margin-top: 0.1rem; }
.pub-matchplay-state        { display: inline-block; margin-top: 0.2rem; font-size: 0.75rem; font-weight: 600; color: #86efac; }
.pub-matchplay-state--muted { color: var(--text-muted, #64748b); }
.pub-matchplay-empty        { color: var(--text-muted, #64748b); }

/* ── Mobile ── */
@media (max-width: 600px) {
    .pub-event-title { font-size: 1.6rem; }
    .pub-hero { padding: 2rem 1rem 1.75rem; }
    .pub-info-item { min-width: 140px; }

    .pub-cta-btn-primary,
    .pub-cta-btn-blue {
        width: 100%;
        justify-content: center;
        font-size: 0.95rem;
        padding: 0.7rem 1rem;
    }

    .pub-cta-btn-ghost { width: 100%; justify-content: center; }
    .pub-fee-strip { gap: 1rem; }
    .pub-standings-wrap { padding: 0.85rem; }
}
