/* ── Google Fonts ─────────────────────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@400;600&display=swap');

/* ── Reset & base ─────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* ── Light theme (default) ────────────────────────────────────────────────── */
:root {
    --bg:           #e4eaf0;
    --bg-card:      #edf1f5;
    --bg-hover:     #dce3ea;
    --bg-header:    #0f172a;
    --bg-th:        #0f172a;
    --text:         #0f172a;
    --text-owner:   #0f172a;
    --text-score:   #0f172a;
    --text-cat:     #0f172a;
    --text-muted:   #64748b;
    --text-faint:   #94a3b8;
    --text-header:  #ffffff;
    --border:       #c4cdd7;
    --border-th:    #1e293b;
    --navy:         #0f172a;
    --slate:        #64748b;
    --muted:        #94a3b8;
    --green:        #059669;
    --green-bg:     #bbf7d0;
    --green-text:   #065f46;
    --red:          #dc2626;
    --red-bg:       #fecaca;
    --red-text:     #991b1b;
    --mid-bg:       #d4dce5;
    --mid-text:     #475569;
    --radius-sm:    4px;
    --radius-md:    8px;
    --radius-lg:    12px;
    --toggle-bg:    #334155;
    --toggle-icon:  #94a3b8;
    --title-gradient: linear-gradient(95deg, #f8fafc 0%, #f59e0b 60%, #fcd34d 100%);
    --place-1-bg:   #EFBF04;
    --place-1-text: #3d1a00;
    --place-2-bg:   #C4C4C4;
    --place-2-text: #1e293b;
    --place-3-bg:   #CE8946;
    --place-3-text: #3d1a00;
    --place-shadow: 0 1px 4px rgba(0,0,0,0.18), 0 0 0 1.5px rgba(0,0,0,0.07);
}

/* ── Dark theme ───────────────────────────────────────────────────────────── */
[data-theme="dark"] {
    --bg:           #0f172a;
    --bg-card:      #1e293b;
    --bg-hover:     #263349;
    --bg-header:    #020817;
    --bg-th:        #020817;
    --text:         #e2e8f0;
    --text-owner:   #f1f5f9;
    --text-score:   #f1f5f9;
    --text-cat:     #cbd5e1;
    --text-muted:   #94a3b8;
    --text-faint:   #64748b;
    --text-header:  #f1f5f9;
    --border:       #334155;
    --border-th:    #0f172a;
    --slate:        #94a3b8;
    --muted:        #64748b;
    --green:        #34d399;
    --green-bg:     #0d3d23;
    --green-text:   #34d399;
    --red:          #f87171;
    --red-bg:       #2a1f1f;
    --red-text:     #f87171;
    --mid-bg:       #1e293b;
    --mid-text:     #94a3b8;
    --toggle-bg:    #334155;
    --toggle-icon:  #f59e0b;
    --title-gradient: linear-gradient(95deg, #f1f5f9 0%, #fcd34d 55%, #f59e0b 100%);
    --place-1-bg:   #EFBF04;
    --place-1-text: #3d1a00;
    --place-2-bg:   #C4C4C4;
    --place-2-text: #1e293b;
    --place-3-bg:   #CE8946;
    --place-3-text: #3d1a00;
    --place-shadow: 0 1px 4px rgba(0,0,0,0.45), 0 0 0 1.5px rgba(255,255,255,0.06);
}

/* ── Scrollbar gutter — prevents layout shift when scrollbar appears ──────── */
html {
    scrollbar-gutter: stable;
}

/* ── Radial theme reveal ──────────────────────────────────────────────────── */
@keyframes theme-reveal {
    from { clip-path: circle(0% at var(--reveal-x, 50%) var(--reveal-y, 50%)); }
    to   { clip-path: circle(150% at var(--reveal-x, 50%) var(--reveal-y, 50%)); }
}

.theme-revealing {
    animation: theme-reveal 0.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

/* ── Base ─────────────────────────────────────────────────────────────────── */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background: var(--bg);
    color: var(--text);
    font-size: 14px;
    line-height: 1.5;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ── Layout ───────────────────────────────────────────────────────────────── */
.page-wrap {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 1.5rem 1rem;
    flex: 1;
}

/* ── Header ───────────────────────────────────────────────────────────────── */
header {
    background: var(--bg-header);
    color: var(--text-header);
}

.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.25rem 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.header-left { flex: 1; min-width: 0; }

.header-title {
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 600;
    font-size: 22px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    background: var(--title-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.1;
}

.header-subtitle {
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 400;
    font-size: 13px;
    letter-spacing: 0.03em;
    color: var(--muted);
    margin-top: 3px;
}

/* ── Site logo ────────────────────────────────────────────────────────────── */
.site-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    flex-shrink: 0;
}

.site-logo svg {
    width: 34px;
    height: 34px;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    min-width: 0;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-shrink: 0;
}

.header-meta {
    display: flex;
    gap: 1.5rem;
    font-size: 13px;
    color: var(--muted);
}

.header-meta strong {
    color: var(--text-header);
    font-weight: 500;
}

/* ── Dark mode toggle ─────────────────────────────────────────────────────── */
.theme-toggle {
    background: var(--toggle-bg);
    border: none;
    border-radius: 20px;
    cursor: pointer;
    width: 40px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background 0.2s;
    padding: 0;
}

.theme-toggle:hover { opacity: 0.85; }

.theme-toggle svg {
    width: 14px;
    height: 14px;
    fill: var(--toggle-icon);
    transition: fill 0.2s;
}

/* ── Section heading ──────────────────────────────────────────────────────── */
.section-heading {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 0.75rem;
}

/* ── Status bar ───────────────────────────────────────────────────────────── */
.status-bar {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.status-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--green);
    flex-shrink: 0;
}

/* ── Legend ───────────────────────────────────────────────────────────────── */
.legend {
    display: flex;
    gap: 1rem;
    font-size: 12px;
    color: var(--text-muted);
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 5px;
}

.legend-dot {
    width: 10px;
    height: 10px;
    border-radius: 2px;
    flex-shrink: 0;
}

/* ── Table wrapper — scrollable on mobile ─────────────────────────────────── */
.table-wrap {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-bottom: 1.5rem;
}

/* When the table is scrollable, remove right-side rounding so the corner
   matches the square bottom-right corner created by the scrollbar. */
.table-wrap.is-scrollable {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

/* ── Leaderboard table ────────────────────────────────────────────────────── */
.leaderboard {
    width: 100%;
    border-collapse: collapse;
    min-width: 640px;
}

.leaderboard thead th {
    background: var(--bg-th);
    color: var(--muted);
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 10px 10px;
    text-align: center;
    white-space: nowrap;
    border-bottom: 1px solid var(--border-th);
}

.leaderboard thead th.col-left { text-align: left; }

/* Sticky first two columns on mobile */
.leaderboard thead th:nth-child(1),
.leaderboard thead th:nth-child(2) {
    position: sticky;
    left: 0;
    z-index: 2;
    background: var(--bg-th);
}

.leaderboard thead th:nth-child(2) { left: 44px; }

.leaderboard td:nth-child(1),
.leaderboard td:nth-child(2) {
    position: sticky;
    z-index: 1;
    background: var(--bg-card);
}

.leaderboard td:nth-child(1) { left: 0; }
.leaderboard td:nth-child(2) { left: 44px; }

.leaderboard tbody tr {
    border-bottom: 1px solid var(--border);
    transition: background 0.1s;
}

.leaderboard tbody tr:last-child { border-bottom: none; }

.leaderboard tbody tr:hover td { background: var(--bg-hover); }
.leaderboard tbody tr:hover td:nth-child(1),
.leaderboard tbody tr:hover td:nth-child(2) { background: var(--bg-hover); }

.leaderboard tbody tr.inactive { opacity: 0.5; }

.leaderboard td {
    padding: 10px 10px;
    text-align: center;
    vertical-align: middle;
}

.leaderboard td.col-left { text-align: left; }

/* ── Place badge ──────────────────────────────────────────────────────────── */
.place {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    font-size: 13px;
    font-weight: 600;
    box-shadow: var(--place-shadow);
}

.place-1 { background: var(--place-1-bg); color: var(--place-1-text); }
.place-2 { background: var(--place-2-bg); color: var(--place-2-text); }
.place-3 { background: var(--place-3-bg); color: var(--place-3-text); }
.place-n { background: transparent; color: var(--text-muted); }

/* ── Owner name & score ───────────────────────────────────────────────────── */
.owner-name {
    font-weight: 600;
    font-size: 14px;
    color: var(--text-owner);
}

.score {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-score);
}

/* ── Category cell ────────────────────────────────────────────────────────── */
.cat-cell {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
}

.cat-val {
    font-size: 13px;
    color: var(--text-cat);
    font-weight: 500;
}

.cat-pts {
    font-size: 10px;
    font-weight: 600;
    padding: 1px 5px;
    border-radius: 10px;
    min-width: 22px;
    text-align: center;
}

.pts-high { background: var(--green-bg); color: var(--green-text); }
.pts-mid  { background: var(--mid-bg);   color: var(--mid-text); }
.pts-low  { background: var(--red-bg);   color: var(--red-text); }
.pts-none { background: transparent;     color: var(--text-faint); font-weight: 400; }

/* ── Loading / error ──────────────────────────────────────────────────────── */
.state-msg {
    padding: 3rem;
    text-align: center;
    color: var(--text-muted);
    font-size: 14px;
}

/* ── Footer note ──────────────────────────────────────────────────────────── */
.footer-note {
    font-size: 11px;
    color: var(--text-faint);
    text-align: right;
}

/* ── Site footer ──────────────────────────────────────────────────────────── */
.site-footer {
    border-top: 1px solid var(--border);
    background: var(--bg-card);
    margin-top: auto;
    /* Prevent Safari bottom nav from obscuring the footer on iOS */
    padding-bottom: env(safe-area-inset-bottom, 0);
}

.site-footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0.875rem 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.footer-updated {
    font-size: 12px;
    color: var(--text-faint);
}

/* ── Dash for inactive ────────────────────────────────────────────────────── */
.dash { color: var(--text-faint); }

/* ── Mobile: tighten padding, hide meta ──────────────────────────────────── */
@media (max-width: 640px) {
    .header-meta        { display: none; }
    .header-title       { font-size: 16px; }
    .page-wrap          { padding: 1rem 0.75rem; }
    .leaderboard td,
    .leaderboard thead th { padding: 8px 7px; }
    .cat-val            { font-size: 12px; }
    .owner-name         { font-size: 13px; }
    .score              { font-size: 14px; }
}

/* ── Owner page ───────────────────────────────────────────────────────────── */
.back-link {
    color: var(--muted);
    -webkit-text-fill-color: var(--muted);
    text-decoration: none;
    font-size: 12px;
}

.back-link:hover {
    color: var(--text-header);
    -webkit-text-fill-color: var(--text-header);
}

.owner-link {
    color: var(--text-owner);
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
}

.owner-link:hover {
    text-decoration: underline;
    text-underline-offset: 2px;
}

/* ── Collapsible section ──────────────────────────────────────────────────── */
.section-toggle-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.75rem;
}

.section-toggle-btn {
    display: flex;
    align-items: center;
    gap: 5px;
    background: none;
    border: 0.5px solid var(--border);
    border-radius: var(--radius-md);
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 500;
    padding: 4px 10px;
    cursor: pointer;
    transition: background 0.1s, color 0.1s;
}

.section-toggle-btn:hover {
    background: var(--bg-hover);
    color: var(--text);
}

.collapsible-section { margin-bottom: 1.5rem; }

/* ── Responsive visibility ────────────────────────────────────────────────── */
.mobile-only  { display: none; }
.desktop-only { display: block; }

@media (max-width: 640px) {
    .mobile-only  { display: block; }
    .desktop-only { display: none !important; }
    .header-meta  { display: none; }
    .header-title { font-size: 16px; }
    .page-wrap    { padding: 1rem 0.75rem; }
}

/* ── Mobile standing cards ────────────────────────────────────────────────── */
.mob-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    margin-bottom: 8px;
    overflow: hidden;
}

.mob-card.inactive { opacity: 0.55; }

.mob-card-header {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    color: var(--text);
}

.mob-card-header:hover { background: var(--bg-hover); }

.mob-owner {
    flex: 1;
    font-size: 15px;
}

.mob-score {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-score);
    min-width: 40px;
    text-align: right;
}

.mob-chevron {
    width: 16px;
    height: 16px;
    color: var(--text-muted);
    flex-shrink: 0;
    transition: transform 0.2s;
}

/* ── Mobile detail panel ──────────────────────────────────────────────────── */
.mob-detail {
    border-top: 1px solid var(--border);
    padding: 12px 14px 14px;
}

.mob-cat-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-bottom: 12px;
}

.mob-cat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 8px 4px 6px;
    gap: 2px;
}

.mob-cat-label {
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
}

.mob-cat-val {
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
}

.mob-detail-link {
    display: block;
    text-align: center;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-muted);
    text-decoration: none;
    padding: 6px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
}

.mob-detail-link:hover {
    background: var(--bg-hover);
    color: var(--text);
}

/* ── Ad units ─────────────────────────────────────────────────────────────── */
.ad-unit {
    overflow: hidden;
    border-radius: var(--radius-md);
    line-height: 0;
}

.ad-img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: var(--radius-md);
}

/* Leaderboard banner: full width, fixed height */
.ad-leaderboard {
    width: 100%;
    margin: 1.5rem 0 0.5rem;
}

.ad-img-banner {
    height: 90px;
    object-fit: cover;
}

@media (max-width: 640px) {
    .ad-img-banner { height: 50px; }
}

/* Medium rectangle: centred, fixed 300×250 */
.ad-rectangle {
    width: 300px;
    height: 250px;
    margin: 1.5rem auto;
}

/* To activate ads: remove the .ad-hidden class from the ad-unit divs
   in index.html and owner.html. The SVG placeholders will then be visible,
   ready to be swapped for real ad network tags. */
.ad-hidden {
    display: none;
}

/* Site footer ── simplified */
.site-footer-inner {
    justify-content: flex-end;
}

/* ── Accessibility ────────────────────────────────────────────────────────── */

/* Visually hidden but available to screen readers */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Focus ring for keyboard navigation */
a:focus-visible,
button:focus-visible {
    outline: 2px solid #f59e0b;
    outline-offset: 3px;
    border-radius: var(--radius-sm);
}

/* Respect prefers-reduced-motion — disable radial reveal animation only.
   If you are not seeing the theme transition animation, check Windows Settings
   → Accessibility → Visual Effects → Animation effects (must be ON). */
@media (prefers-reduced-motion: reduce) {
    .theme-revealing {
        animation: none !important;
    }
}

/* ── DNP rows ─────────────────────────────────────────────────────────────── */
.dnp-row { opacity: 0.55; }

.dnp-badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    background: var(--mid-bg);
    border-radius: var(--radius-sm);
    padding: 2px 8px;
}

/* ── Trend indicators ─────────────────────────────────────────────────────── */
.trend {
    font-size: 10px;
    font-weight: 700;
    margin-right: 4px;
    vertical-align: middle;
}

/* Wrapper keeps score right-aligned regardless of whether trend arrow is present */
.score-cell {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2px;
}

.trend-up   { color: var(--green); }
.trend-down { color: var(--red); }

/* ── Season totals footer row ─────────────────────────────────────────────── */
.totals-footer td {
    border-top: 2px solid var(--border);
    font-weight: 600;
    background: var(--bg-card);
}

/* ── Sortable column headers ──────────────────────────────────────────────── */
.sortable-col {
    cursor: pointer;
    user-select: none;
    white-space: nowrap;
}

.sortable-col:hover {
    background: var(--bg-hover);
}

.sort-indicator {
    font-size: 10px;
    margin-left: 3px;
    opacity: 0.5;
}

.sort-active-header .sort-indicator {
    opacity: 1;
    color: var(--accent);
}

.sort-active-header {
    color: var(--accent);
}

.sort-active-col {
    background: var(--bg-hover);
}

/* ── Mobile sort selector ─────────────────────────────────────────────────── */
.mob-sort-bar {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    max-width: 280px;
}

.mob-sort-label {
    font-size: 13px;
    color: var(--text-muted);
    white-space: nowrap;
}

.mob-sort-select {
    font-size: 13px;
    padding: 0.3rem 1.8rem 0.3rem 0.5rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    background: var(--bg-card);
    color: var(--text);
    cursor: pointer;
    flex: 1;
    /* Hide native arrow on all browsers */
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    /* Custom arrow via background SVG — uses currentColor via inline encoding */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 20 20'%3E%3Cpath fill='%2364748b' d='M5.23 7.21a.75.75 0 0 1 1.06.02L10 11.168l3.71-3.938a.75.75 0 1 1 1.08 1.04l-4.25 4.5a.75.75 0 0 1-1.08 0l-4.25-4.5a.75.75 0 0 1 .02-1.06z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.5rem center;
}

.mob-sort-select:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

[data-theme="dark"] .mob-sort-select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 20 20'%3E%3Cpath fill='%2394a3b8' d='M5.23 7.21a.75.75 0 0 1 1.06.02L10 11.168l3.71-3.938a.75.75 0 1 1 1.08 1.04l-4.25 4.5a.75.75 0 0 1-1.08 0l-4.25-4.5a.75.75 0 0 1 .02-1.06z'/%3E%3C/svg%3E");
}

/* Highlighted category in mobile card grid */
.mob-cat-highlighted {
    background: var(--bg-hover);
    border-radius: var(--radius-sm);
}

/* Sort value shown in mobile card header when non-default sort is active —
   matches the size and weight of the total score for visual consistency */
.mob-sort-val {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--accent);
    margin-left: auto;
    margin-right: 4px;
}

.mob-score-hidden {
    display: none;
}

/* ── Leaders page ─────────────────────────────────────────────────────────── */
.leaders-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
}

.leader-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.leader-card-header {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: none;
    border: none;
    border-bottom: 1px solid var(--border);
    padding: 0.75rem 1rem 0.5rem;
    cursor: pointer;
    text-align: left;
}

.leader-card-title {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin: 0;
}

.leader-chevron {
    width: 16px;
    height: 16px;
    color: var(--text-muted);
    flex-shrink: 0;
    transition: transform 0.2s;
}

/* On desktop: always show all cards expanded, hide chevron */
@media (min-width: 641px) {
    .leader-card-header { cursor: default; pointer-events: none; }
    .leader-chevron     { display: none; }
    .leader-card-body   { display: block !important; }
}

.leader-table {
    min-width: unset;
    width: 100%;
}

.leader-owner {
    display: block;
    font-size: 11px;
    color: var(--text-faint);
    margin-top: 1px;
}

.leader-team {
    font-size: 12px;
    color: var(--text-muted);
    text-align: center;
}

.leader-value {
    font-size: 15px;
    font-weight: 700;
    color: var(--text);
    text-align: center;
}

/* ── Leaders nav link ─────────────────────────────────────────────────────── */
.leaders-nav-link {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-header);
    text-decoration: none;
    padding: 0.25rem 0.5rem;
    border-radius: var(--radius-sm);
    transition: opacity 0.15s;
    opacity: 0.75;
}

.leaders-nav-link:hover,
.leaders-nav-active {
    opacity: 1;
}

.leaders-nav-crown {
    font-size: 16px;
    line-height: 1;
    /* Use accent color filter on the emoji via a colored shadow trick */
    filter: drop-shadow(0 0 0 #EFBF04);
}

/* On mobile: hide text, show crown only */
.leaders-nav-text {
    display: none;
}

@media (min-width: 641px) {
    .leaders-nav-text   { display: inline; }
    .leaders-nav-crown  { display: none; }
}
