/* ==========================================================================
   Series section — hub + profile
   Plan: docs/series/02-series-section-foundation.md

   Rides theme-v2.css tokens (--t-*, loaded globally by header.php) and
   results-v4.css chrome (.rs-crumbs / .rs-header) so the section reads as a
   sibling of the standings pages rather than a bolt-on.

   The typographic monogram is the FINISHED design for series without artwork
   (ODSS, NWDS) — not a placeholder. The hub must look deliberate showing
   NHRDA's real logo alongside two monograms.
   ========================================================================== */

.series-page {
    --sr-accent: var(--t-accent);
    --sr-radius: 14px;
}

.series-page .sr-wrap {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 24px 80px;
}

.series-page .sr-lede {
    max-width: 62ch;
    margin: 14px 0 0;
    font-size: 16px;
    line-height: 1.65;
    color: var(--t-text-secondary);
}

/* ── Shape pill ─────────────────────────────────────────────────────────── */
.series-page .sr-shape {
    display: inline-block;
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.4px;
    text-transform: uppercase;
    color: var(--sr-accent);
    background: color-mix(in srgb, var(--sr-accent) 12%, transparent);
    border: 1px solid color-mix(in srgb, var(--sr-accent) 34%, transparent);
    border-radius: 999px;
    padding: 4px 11px;
}
/* Fallback for engines without color-mix */
@supports not (color: color-mix(in srgb, red 10%, transparent)) {
    .series-page .sr-shape {
        background: rgba(230, 57, 70, .12);
        border-color: rgba(230, 57, 70, .34);
    }
}

/* ── Monogram (typographic fallback) ────────────────────────────────────── */
.series-page .sr-monogram {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    font-family: 'Barlow Condensed', 'Oswald', sans-serif;
    font-weight: 800;
    font-size: 30px;
    letter-spacing: 1px;
    line-height: 1;
    text-transform: uppercase;
    color: var(--t-text-hero);
    background:
        linear-gradient(150deg,
            color-mix(in srgb, var(--sr-accent) 26%, var(--t-bg-surface)) 0%,
            var(--t-bg-surface) 62%);
}
.series-page .sr-monogram.lg { font-size: 44px; letter-spacing: 2px; }

/* ── Hub grid ───────────────────────────────────────────────────────────── */
.series-page .sr-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.series-page .sr-card {
    display: flex;
    flex-direction: column;
    background: var(--t-bg-card);
    border: 1px solid var(--t-border-mid);
    border-radius: var(--sr-radius);
    overflow: hidden;
    text-decoration: none;
    transition: border-color .18s ease, transform .18s ease, background .18s ease;
}
.series-page .sr-card:hover,
.series-page .sr-card:focus-visible {
    border-color: var(--sr-accent);
    background: var(--t-bg-card-hover);
    transform: translateY(-2px);
}
.series-page .sr-card:focus-visible { outline: 2px solid var(--sr-accent); outline-offset: 2px; }

/* The mark sits in a fixed box so a real logo and a monogram occupy identical
   space — this is what stops the mixed-art hub looking half-loaded. */
.series-page .sr-card-mark {
    height: 104px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--t-bg-surface);
    border-bottom: 1px solid var(--t-border);
}
.series-page .sr-card-mark img {
    max-height: 62px;
    max-width: 72%;
    object-fit: contain;
}

.series-page .sr-card-body { padding: 18px 20px 6px; flex: 1; }

.series-page .sr-card-title {
    font-family: 'Barlow Condensed', 'Oswald', sans-serif;
    font-size: 23px;
    font-weight: 700;
    line-height: 1.15;
    text-transform: uppercase;
    letter-spacing: .4px;
    color: var(--t-text-hero);
    margin: 10px 0 0;
}
.series-page .sr-card-tagline {
    margin: 8px 0 0;
    font-size: 14px;
    line-height: 1.55;
    color: var(--t-text-secondary);
}

.series-page .sr-card-cta {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 14px 20px 18px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.1px;
    text-transform: uppercase;
    color: var(--sr-accent);
}
.series-page .sr-card .sr-arrow { transition: transform .18s ease; }
.series-page .sr-card:hover .sr-arrow { transform: translateX(4px); }

/* "Coming soon" series still get a card — the hub's job is to show the roster */
.series-page .sr-card.is-soon .sr-card-cta { color: var(--t-text-muted); }
.series-page .sr-card.is-soon:hover { border-color: var(--t-border-light); }

/* ── Profile hero ───────────────────────────────────────────────────────── */
.series-profile .sr-hero {
    position: relative;
    border-bottom: 1px solid var(--t-border);
    background: var(--t-bg-deep);
    overflow: hidden;
}
.series-profile .sr-hero.has-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: var(--sr-hero);
    background-size: cover;
    background-position: center;
    opacity: .17;
    filter: saturate(.7);
}
.series-profile .sr-hero.has-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(8,8,12,.55) 0%, var(--t-bg-deep) 96%);
}

.series-profile .sr-hero-inner {
    position: relative;
    z-index: 1;
    max-width: 1180px;
    margin: 0 auto;
    padding: 44px 24px 40px;
    display: flex;
    gap: 26px;
    align-items: flex-start;
}
.series-profile .sr-hero-mark {
    flex: 0 0 118px;
    height: 118px;
    border-radius: var(--sr-radius);
    background: var(--t-bg-surface);
    border: 1px solid var(--t-border-mid);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.series-profile .sr-hero-mark img { max-height: 78px; max-width: 82%; object-fit: contain; }

.series-profile .sr-hero-text { flex: 1; min-width: 0; }
.series-profile .sr-hero-title {
    font-family: 'Barlow Condensed', 'Oswald', sans-serif;
    font-size: clamp(30px, 5vw, 46px);
    font-weight: 800;
    line-height: 1.03;
    text-transform: uppercase;
    letter-spacing: -.4px;
    color: var(--t-text-hero);
    margin: 12px 0 0;
}
.series-profile .sr-hero-tagline {
    margin: 10px 0 0;
    font-size: 16px;
    line-height: 1.6;
    color: var(--t-text-secondary);
    max-width: 60ch;
}

/* ── Buttons ────────────────────────────────────────────────────────────── */
.series-page .sr-hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.series-page .sr-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 20px;
    border-radius: 8px;
    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    text-decoration: none;
    border: 1px solid transparent;
    transition: background .18s ease, border-color .18s ease, transform .18s ease;
}
.series-page .sr-btn.primary {
    background: var(--sr-accent);
    color: #fff;
}
.series-page .sr-btn.primary:hover { transform: translateY(-1px); filter: brightness(1.08); }
.series-page .sr-btn.primary:hover .sr-arrow { transform: translateX(4px); }
.series-page .sr-btn.ghost {
    border-color: var(--t-border-light);
    color: var(--t-text-primary);
    background: transparent;
}
.series-page .sr-btn.ghost:hover { border-color: var(--t-text-secondary); color: var(--t-text-hero); }
.series-page .sr-btn.is-disabled {
    background: var(--t-bg-surface);
    border-color: var(--t-border-mid);
    color: var(--t-text-muted);
    cursor: default;
}
.series-page .sr-btn .sr-arrow { transition: transform .18s ease; }
.series-page .sr-note {
    margin: 12px 0 0;
    font-size: 13px;
    color: var(--t-text-muted);
}

/* ── Stats ──────────────────────────────────────────────────────────────── */
.series-page .sr-stats { margin-top: 34px; }
.series-page .sr-stats-head {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--t-text-muted);
    margin-bottom: 12px;
}
.series-page .sr-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 14px;
}
.series-page .sr-stat {
    background: var(--t-bg-card);
    border: 1px solid var(--t-border-mid);
    border-radius: var(--sr-radius);
    padding: 18px 20px;
}
.series-page .sr-stat-value {
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-size: 28px;
    font-weight: 700;
    line-height: 1;
    color: var(--t-text-hero);
}
.series-page .sr-stat-label {
    margin-top: 7px;
    font-size: 12px;
    letter-spacing: .3px;
    color: var(--t-text-secondary);
}

/* ── Prose blocks ───────────────────────────────────────────────────────── */
.series-page .sr-h2 {
    font-family: 'Barlow Condensed', 'Oswald', sans-serif;
    font-size: 20px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--t-text-hero);
    margin: 0 0 10px;
}
.series-page .sr-about, .series-page .sr-org { margin-top: 34px; }
.series-page .sr-prose {
    max-width: 68ch;
    font-size: 15.5px;
    line-height: 1.7;
    color: var(--t-text-primary);
    margin: 0;
}
.series-page .sr-prose a { color: var(--sr-accent); }

.series-page .sr-backlink { margin-top: 40px; }
.series-page .sr-backlink a {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .4px;
    color: var(--t-text-secondary);
    text-decoration: none;
}
.series-page .sr-backlink a:hover { color: var(--t-text-hero); }

.series-page .sr-empty {
    text-align: center;
    padding: 60px 20px;
    color: var(--t-text-secondary);
}
.series-page .sr-empty .ttl {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 22px;
    text-transform: uppercase;
    color: var(--t-text-hero);
}

/* ── Responsive ─────────────────────────────────────────────────────────── */
@media (max-width: 640px) {
    .series-profile .sr-hero-inner { flex-direction: column; gap: 18px; padding: 30px 20px 30px; }
    .series-profile .sr-hero-mark { flex: 0 0 auto; width: 92px; height: 92px; }
    .series-profile .sr-monogram.lg { font-size: 34px; }
    .series-page .sr-wrap { padding: 0 18px 60px; }
    .series-page .sr-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
    .series-page .sr-card,
    .series-page .sr-btn,
    .series-page .sr-arrow { transition: none; }
    .series-page .sr-card:hover { transform: none; }
    .series-page .sr-card:hover .sr-arrow,
    .series-page .sr-btn.primary:hover .sr-arrow { transform: none; }
}
