/* ============================================================
   Editorial UX system — interior pages (homepage stays separate)
   ============================================================ */

body:not(.home-page) {
    background: #f3f1ea;
    color: #111;
    font-family: "DM Sans", system-ui, sans-serif;
}

body:not(.home-page) .container {
    max-width: 1120px;
    padding: 0 24px 72px;
}

/* ---------- Site header (interior) ---------- */
body:not(.home-page) > header {
    position: sticky;
    top: 0;
    z-index: 40;
    background: rgba(16, 19, 17, 0.97);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
}

body:not(.home-page) .nav-container {
    max-width: 1120px;
    margin: 0 auto;
    min-height: 64px;
    padding: 8px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

body:not(.home-page) .brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: #f5f2eb;
    font-family: "Playfair Display", Georgia, serif;
    font-size: 18px;
    font-weight: 700;
}

body:not(.home-page) .brand-tagline {
    color: #9aa09a;
}

body:not(.home-page) .nav-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: transparent;
    color: #f5f2eb;
    cursor: pointer;
    border-radius: 4px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
}

body:not(.home-page) .nav-toggle span {
    display: block;
    width: 18px;
    height: 1.5px;
    background: currentColor;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

body:not(.home-page) .site-nav {
    display: flex;
    align-items: center;
    gap: 28px;
}

body:not(.home-page) .site-nav a {
    position: relative;
    color: #b9bcb8;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.02em;
    padding: 22px 0 18px;
    transition: color 0.2s ease;
}

body:not(.home-page) .site-nav a:hover {
    color: #fff;
}

body:not(.home-page) .site-nav a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 12px;
    height: 2px;
    background: #c5a35a;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.22s ease;
}

body:not(.home-page) .site-nav a:hover::after,
body:not(.home-page) .site-nav a.is-active::after {
    transform: scaleX(1);
}

body:not(.home-page) .site-nav a.is-active {
    color: #fff;
}

/* ---------- Internal hero ---------- */
.internal-hero {
    position: relative;
    z-index: 0;
    margin: 0 -24px 0;
    padding: 48px 24px 56px;
    background:
        radial-gradient(ellipse at 18% 20%, rgba(197, 163, 90, 0.16), transparent 42%),
        linear-gradient(145deg, #101311 0%, #183a2a 55%, #0f1c16 100%);
    color: #f5f2eb;
    overflow: hidden;
}

.internal-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(16, 19, 17, 0.2), transparent 40%),
        repeating-linear-gradient(
            -12deg,
            transparent,
            transparent 18px,
            rgba(255, 255, 255, 0.015) 18px,
            rgba(255, 255, 255, 0.015) 19px
        );
    pointer-events: none;
}

.internal-hero--archive {
    background:
        radial-gradient(ellipse at 80% 10%, rgba(240, 231, 211, 0.12), transparent 40%),
        linear-gradient(160deg, #2a2418 0%, #4a3f2d 50%, #1a1712 100%);
}

.internal-hero--cup {
    background:
        radial-gradient(ellipse at 70% 30%, rgba(197, 163, 90, 0.28), transparent 45%),
        linear-gradient(150deg, #0d1610 0%, #1a3d2a 48%, #0b1112 100%);
}

.internal-hero--predict {
    background:
        radial-gradient(ellipse at 12% 80%, rgba(197, 163, 90, 0.12), transparent 40%),
        linear-gradient(160deg, #0b1112 0%, #14201a 60%, #101311 100%);
}

.internal-hero-inner {
    position: relative;
    z-index: 1;
    max-width: 1120px;
    margin: 0 auto;
}

.internal-hero .eyebrow {
    margin: 0 0 14px;
    color: rgba(245, 242, 235, 0.62);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.22em;
}

.internal-hero h1 {
    margin: 0;
    max-width: 14ch;
    font-family: "Playfair Display", Georgia, serif;
    font-size: clamp(2.4rem, 5.5vw, 4.4rem);
    font-weight: 700;
    line-height: 0.98;
    letter-spacing: -0.03em;
}

.internal-hero h1 em,
.internal-hero h1 span {
    display: block;
    font-style: normal;
    color: #d9c89b;
}

.internal-hero-text {
    max-width: 40rem;
    margin: 18px 0 0;
    color: rgba(245, 242, 235, 0.78);
    font-size: 1.05rem;
    line-height: 1.65;
}

/* ---------- Editorial tabs / subnav ---------- */
.subnav.rugby-subnav,
.cup-tabs.subnav,
.archive-nav.subnav {
    position: relative;
    z-index: 2;
    display: flex;
    gap: 4px 18px;
    flex-wrap: nowrap;
    overflow-x: auto;
    margin: 18px 0 0;
    padding: 0 0 12px;
    background: transparent;
    border: 0;
    border-bottom: 1px solid rgba(17, 17, 17, 0.1);
    border-radius: 0;
    box-shadow: none;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
}

.subnav.rugby-subnav a,
.cup-tabs.subnav a,
.archive-nav.subnav a {
    position: relative;
    flex: 0 0 auto;
    margin: 0;
    padding: 8px 2px 10px;
    border: 0;
    border-radius: 0;
    border-right: 0;
    background: transparent;
    color: #6b6b64;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-decoration: none;
    white-space: nowrap;
    transition: color 0.2s ease;
}

.subnav.rugby-subnav a:last-child,
.cup-tabs.subnav a:last-child,
.archive-nav.subnav a:last-child {
    border-right: 0;
}

.subnav.rugby-subnav a::after,
.cup-tabs.subnav a::after,
.archive-nav.subnav a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 2px;
    background: #c5a35a;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.2s ease;
}

.subnav.rugby-subnav a:hover,
.cup-tabs.subnav a:hover,
.archive-nav.subnav a:hover {
    color: #183a2a;
    background: transparent;
}

.subnav.rugby-subnav a:hover::after,
.cup-tabs.subnav a:hover::after,
.archive-nav.subnav a:hover::after {
    transform: scaleX(1);
}

.subnav.rugby-subnav a.selected,
.cup-tabs.subnav a.selected,
.archive-nav.subnav a.selected {
    color: #101311;
    background: transparent;
}

.subnav.rugby-subnav a.selected::after,
.cup-tabs.subnav a.selected::after,
.archive-nav.subnav a.selected::after {
    transform: scaleX(1);
}

/* Table page composition */
.table-compose {
    margin-top: 18px;
}

.table-controls-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px 20px;
    margin: 0 0 10px;
}

.table-filters {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    gap: 10px;
}

.fancy-select {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 118px;
    padding: 8px 12px 9px 14px;
    background: #faf8f3;
    border: 1px solid rgba(17, 17, 17, 0.12);
    border-radius: 4px;
    transition: border-color 0.15s ease, background 0.15s ease;
}

.fancy-select.is-open,
.fancy-select:hover {
    background: #fff;
    border-color: rgba(24, 58, 42, 0.35);
}

.fancy-select--week {
    flex: 1 1 240px;
    max-width: 360px;
}

.fancy-select .table-filter-label {
    display: block;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #8a7a4a;
    line-height: 1;
}

.fancy-select-trigger {
    display: grid;
    gap: 2px;
    width: 100%;
    margin: 0;
    padding: 0 18px 0 0;
    border: 0;
    background:
        linear-gradient(45deg, transparent 50%, #183a2a 50%) calc(100% - 10px) calc(50% + 1px) / 5px 5px no-repeat,
        linear-gradient(135deg, #183a2a 50%, transparent 50%) calc(100% - 5px) calc(50% + 1px) / 5px 5px no-repeat,
        transparent;
    color: #111;
    font: inherit;
    text-align: left;
    cursor: pointer;
}

.fancy-select-trigger:focus {
    outline: none;
}

.fancy-select-value {
    font-size: 14px;
    font-weight: 600;
    letter-spacing: -0.01em;
    line-height: 1.3;
}

.fancy-select-sub {
    font-size: 12px;
    font-weight: 500;
    color: #6b6b64;
    line-height: 1.3;
}

.fancy-select-native {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.fancy-select-menu {
    position: absolute;
    top: calc(100% + 6px);
    left: -1px;
    right: -1px;
    z-index: 30;
    margin: 0;
    padding: 6px;
    list-style: none;
    background: #fffdf8;
    border: 1px solid rgba(17, 17, 17, 0.14);
    border-radius: 4px;
    box-shadow: 0 16px 36px rgba(17, 17, 17, 0.12);
    max-height: min(320px, 55vh);
    overflow-y: auto;
}

.fancy-select-menu[hidden] {
    display: none;
}

.fancy-select-menu li {
    display: grid;
    gap: 2px;
    margin: 0;
    padding: 10px 12px;
    border-radius: 3px;
    cursor: pointer;
    color: #111;
}

.fancy-select-menu li:hover,
.fancy-select-menu li:focus {
    outline: none;
    background: rgba(24, 58, 42, 0.07);
}

.fancy-select-menu li.is-selected {
    background: #183a2a;
    color: #f5f2eb;
}

.fancy-select-menu li.is-selected .fancy-option-meta {
    color: rgba(245, 242, 235, 0.72);
}

.fancy-select-menu li.is-current:not(.is-selected) {
    box-shadow: inset 3px 0 0 #c5a35a;
}

.fancy-option-title {
    font-size: 14px;
    font-weight: 600;
    letter-spacing: -0.01em;
    line-height: 1.3;
}

.fancy-option-meta {
    font-size: 12px;
    font-weight: 500;
    color: #6b6b64;
    line-height: 1.35;
}

@media (max-width: 560px) {
    .fancy-select,
    .fancy-select--week {
        flex: 1 1 100%;
        max-width: none;
    }
}

.table-compose-note {
    margin: 0 0 18px;
    color: #6b6b64;
    font-size: 0.92rem;
    line-height: 1.5;
}

.league-pulse {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    margin: 0 0 20px;
    background: #ebe6da;
    border: 1px solid rgba(17, 17, 17, 0.08);
}

.league-pulse-item {
    padding: 16px 18px;
    border-right: 1px solid rgba(17, 17, 17, 0.08);
    min-width: 0;
}

.league-pulse-item:last-child {
    border-right: 0;
}

.league-pulse-label {
    display: block;
    margin-bottom: 8px;
    color: #6b6b64;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.league-pulse-item strong {
    display: block;
    font-family: "Playfair Display", Georgia, serif;
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: #101311;
}

.league-pulse-item small {
    display: block;
    margin-top: 6px;
    color: #5a5a54;
    font-size: 12px;
    line-height: 1.35;
}

@media (max-width: 900px) {
    .league-pulse {
        grid-template-columns: 1fr 1fr;
    }

    .league-pulse-item:nth-child(2) {
        border-right: 0;
    }

    .league-pulse-item:nth-child(1),
    .league-pulse-item:nth-child(2) {
        border-bottom: 1px solid rgba(17, 17, 17, 0.08);
    }
}

@media (max-width: 560px) {
    .league-pulse {
        grid-template-columns: 1fr;
    }

    .league-pulse-item {
        border-right: 0;
        border-bottom: 1px solid rgba(17, 17, 17, 0.08);
    }

    .league-pulse-item:last-child {
        border-bottom: 0;
    }
}

/* ---------- Section shells ---------- */
.ed-section {
    margin: 0 0 48px;
}

.ed-section--cream {
    margin-left: -24px;
    margin-right: -24px;
    padding: 40px 24px;
    background: #ebe6da;
}

.ed-section--dark {
    margin-left: -24px;
    margin-right: -24px;
    padding: 48px 24px;
    background: linear-gradient(145deg, #101311, #183a2a);
    color: #f5f2eb;
}

.ed-section--dark a {
    color: inherit;
}

.ed-section-inner {
    max-width: 1120px;
    margin: 0 auto;
}

.ed-section-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 22px;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(17, 17, 17, 0.1);
}

.ed-section--dark .ed-section-head {
    border-bottom-color: rgba(255, 255, 255, 0.12);
}

.ed-section-head h2 {
    margin: 0;
    font-family: "Playfair Display", Georgia, serif;
    font-size: clamp(1.5rem, 2.5vw, 2rem);
    font-weight: 700;
    letter-spacing: -0.02em;
}

.ed-section-note {
    margin: 6px 0 0;
    color: #5a5a54;
    font-size: 0.92rem;
}

.ed-section--dark .ed-section-note {
    color: rgba(245, 242, 235, 0.65);
}

.ed-section-link {
    color: #183a2a;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s ease, color 0.2s ease;
}

.ed-section-link:hover {
    border-bottom-color: currentColor;
}

.ed-section--dark .ed-section-link {
    color: #d9c89b;
}

.cal-switch {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;
    align-items: baseline;
    margin: 0 0 16px;
    font-size: 14px;
}

.cal-switch a {
    color: #183a2a;
    font-weight: 700;
}

.cal-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 8px 0 4px;
}

.cal-nav h2 {
    margin: 0;
    font-family: "Playfair Display", Georgia, serif;
    font-size: 1.8rem;
}

.cal-nav a {
    color: #183a2a;
    font-weight: 700;
    text-decoration: none;
    border-bottom: 1px solid rgba(24, 58, 42, 0.35);
}

.cal-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 1px;
    background: rgba(17, 17, 17, 0.12);
    border: 1px solid rgba(17, 17, 17, 0.12);
    margin-bottom: 28px;
}

.cal-head,
.cal-day {
    background: #f7f4ee;
    min-width: 0;
}

.cal-head {
    padding: 8px 6px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #5a5a54;
}

.cal-day {
    min-height: 124px;
    padding: 6px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.cal-day.is-out {
    background: #efece4;
}

.cal-day.is-out .cal-num {
    color: #9a958b;
}

.cal-day.is-today .cal-num {
    background: #183a2a;
    color: #f7f4ee;
}

.cal-num {
    display: inline-grid;
    place-items: center;
    width: 1.6rem;
    height: 1.6rem;
    border-radius: 999px;
    font-weight: 700;
    font-size: 13px;
}

.cal-matches {
    display: grid;
    gap: 4px;
    max-height: 168px;
    overflow: auto;
}

.cal-match {
    display: grid;
    gap: 0;
    padding: 4px 5px;
    background: #fff;
    border-left: 3px solid #183a2a;
    color: inherit;
    text-decoration: none;
    font-size: 12px;
    line-height: 1.25;
}

.cal-match.is-played {
    border-left-color: #8a7340;
}

.cal-match time,
.cal-match strong {
    font-size: 11px;
    letter-spacing: 0.02em;
}

.cal-match span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

@media (max-width: 800px) {
    .cal-day {
        min-height: 88px;
        padding: 4px;
    }

    .cal-head {
        font-size: 10px;
        letter-spacing: 0.04em;
        padding: 6px 2px;
    }

    .cal-match {
        font-size: 10px;
        padding: 3px;
    }
}

/* ---------- Date rail + boards ---------- */
.date-block {
    display: grid;
    grid-template-columns: 72px 1fr;
    gap: 18px;
    margin: 0 0 28px;
    align-items: start;
}

.date-rail {
    display: grid;
    justify-items: center;
    padding-top: 4px;
    color: #183a2a;
    border-right: 1px solid rgba(17, 17, 17, 0.1);
    padding-right: 14px;
}

.date-rail-dow {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.14em;
}

.date-rail-day {
    font-family: "Playfair Display", Georgia, serif;
    font-size: 2rem;
    font-weight: 700;
    line-height: 1;
    margin: 2px 0;
}

.date-rail-mon {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.12em;
    color: #5a5a54;
}

.date-block-body {
    min-width: 0;
}

.fx-row,
.res-row {
    display: block;
    padding: 14px 0;
    border-top: 1px solid rgba(17, 17, 17, 0.08);
    text-decoration: none;
    color: inherit;
    transition: background 0.18s ease, padding 0.18s ease;
}

.fx-row:first-child,
.res-row:first-child {
    border-top: 0;
    padding-top: 4px;
}

.fx-row:hover,
.res-row:hover {
    background: rgba(24, 58, 42, 0.04);
}

.fx-row.is-conflict,
.res-row.is-conflict {
    background: #fff8f4;
}

.fx-row {
    display: grid;
    grid-template-columns: 64px 1fr auto;
    gap: 16px;
    align-items: center;
}

.fx-row-time strong {
    font-family: "IBM Plex Mono", monospace;
    font-size: 13px;
}

.fx-row-date {
    display: block;
    font-size: 11px;
    color: #5a5a54;
    margin-bottom: 2px;
}

.fx-row-teams {
    display: grid;
    gap: 2px;
}

.fx-home,
.fx-away {
    font-weight: 600;
    letter-spacing: -0.01em;
}

.fx-vs {
    display: none;
}

.fx-row-meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
    align-items: center;
}

.fx-venue {
    font-size: 12px;
    color: #5a5a54;
}

.res-row-main {
    display: grid;
    gap: 8px;
}

.res-side {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 16px;
    align-items: baseline;
}

.res-name {
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.res-score {
    font-family: "Playfair Display", Georgia, serif;
    font-size: clamp(1.8rem, 3vw, 2.4rem);
    font-weight: 700;
    line-height: 1;
    color: #183a2a;
    min-width: 2ch;
    text-align: right;
}

.res-row-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    margin-top: 10px;
    font-size: 12px;
    color: #5a5a54;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.res-status {
    color: #183a2a;
    font-weight: 700;
}

/* ---------- Featured match ---------- */
.featured-match {
    display: block;
    padding: 28px 0 8px;
    text-decoration: none;
    color: inherit;
    border-bottom: 1px solid rgba(17, 17, 17, 0.1);
    margin-bottom: 8px;
    transition: opacity 0.2s ease;
}

.featured-match:hover {
    opacity: 0.92;
}

.featured-match-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 14px;
    align-items: center;
    margin-bottom: 18px;
    font-size: 13px;
    color: #5a5a54;
}

.featured-match-teams {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 18px;
    align-items: center;
}

.featured-match-team {
    display: grid;
    gap: 8px;
}

.featured-match-team strong {
    font-family: "Playfair Display", Georgia, serif;
    font-size: clamp(1.35rem, 2.8vw, 2rem);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.featured-match-team-away {
    text-align: right;
}

.featured-match-mid {
    text-align: center;
    color: #5a5a54;
    font-size: 12px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.featured-match-cta {
    display: inline-flex;
    margin-top: 22px;
    padding: 12px 18px;
    border: 1px solid #183a2a;
    color: #183a2a;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    transition: background 0.2s ease, color 0.2s ease;
}

.featured-match:hover .featured-match-cta {
    background: #183a2a;
    color: #f5f2eb;
}

.featured-match .dual-prob-bar {
    margin-top: 18px;
}

/* ---------- Cup feature panel ---------- */
.cup-feature {
    display: grid;
    grid-template-columns: 1.3fr 0.9fr;
    gap: 36px;
    align-items: end;
}

.cup-feature h2 {
    margin: 0 0 12px;
    font-family: "Playfair Display", Georgia, serif;
    font-size: clamp(2rem, 4vw, 3.2rem);
    line-height: 0.98;
    letter-spacing: -0.03em;
}

.cup-feature h2 span {
    display: block;
    color: #d9c89b;
}

.cup-feature p {
    margin: 0 0 22px;
    max-width: 36rem;
    color: rgba(245, 242, 235, 0.78);
    line-height: 1.6;
}

.cup-feature-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.btn-gold {
    display: inline-flex;
    align-items: center;
    padding: 13px 20px;
    background: #c5a35a;
    color: #101311;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    text-decoration: none;
    border: 1px solid #c5a35a;
    transition: transform 0.2s ease, background 0.2s ease;
}

.btn-gold:hover {
    transform: translateY(-1px);
    background: #d4b36a;
}

.btn-ghost-light {
    display: inline-flex;
    align-items: center;
    padding: 13px 20px;
    border: 1px solid rgba(245, 242, 235, 0.28);
    color: #f5f2eb;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    text-decoration: none;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.btn-ghost-light:hover {
    border-color: #d9c89b;
    background: rgba(255, 255, 255, 0.04);
}

.cup-feature-stats {
    display: grid;
    gap: 14px;
    padding: 18px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.cup-feature-stat {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    font-size: 14px;
}

.cup-feature-stat span {
    color: rgba(245, 242, 235, 0.6);
}

.cup-feature-stat strong {
    color: #d9c89b;
    font-weight: 600;
}

/* ---------- Editorial spotlight ---------- */
.spotlight-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 28px;
}

.spotlight-photo {
    min-height: 260px;
    background:
        linear-gradient(160deg, rgba(16, 19, 17, 0.35), rgba(24, 58, 42, 0.55)),
        repeating-linear-gradient(
            45deg,
            #2a332c,
            #2a332c 12px,
            #24302a 12px,
            #24302a 24px
        );
    border: 1px solid rgba(17, 17, 17, 0.08);
    display: grid;
    align-content: end;
    padding: 24px;
    color: #f5f2eb;
}

.spotlight-photo p {
    margin: 0;
    font-size: 11px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    opacity: 0.7;
}

.spotlight-photo h3 {
    margin: 8px 0 0;
    font-family: "Playfair Display", Georgia, serif;
    font-size: 1.8rem;
    line-height: 1.1;
}

.spotlight-stats {
    display: grid;
    gap: 0;
    border-top: 1px solid rgba(17, 17, 17, 0.1);
}

.spotlight-stat {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 0;
    border-bottom: 1px solid rgba(17, 17, 17, 0.1);
}

.spotlight-stat span {
    color: #5a5a54;
    font-size: 13px;
}

.spotlight-stat strong {
    font-family: "Playfair Display", Georgia, serif;
    font-size: 1.25rem;
}

/* ---------- Schools directory ---------- */
.school-directory {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 0;
    border-top: 1px solid rgba(17, 17, 17, 0.1);
}

.school-directory-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 16px;
    border-bottom: 1px solid rgba(17, 17, 17, 0.1);
    border-right: 1px solid rgba(17, 17, 17, 0.1);
    text-decoration: none;
    color: inherit;
    transition: background 0.18s ease;
}

.school-directory-item:hover {
    background: #fff;
}

.school-directory-item strong {
    font-size: 0.95rem;
    letter-spacing: -0.01em;
}

.school-directory-item small {
    display: block;
    margin-top: 3px;
    color: #5a5a54;
    font-size: 12px;
}

/* School profile */
.school-profile-hero {
    display: flex;
    flex-wrap: wrap;
    gap: 22px;
    align-items: center;
    justify-content: space-between;
}

.school-profile-identity {
    display: flex;
    gap: 18px;
    align-items: center;
}

.school-profile-identity h1 {
    max-width: none;
}

.school-stat-band {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    margin: 0 0 36px;
    background: #fff;
    border: 1px solid rgba(17, 17, 17, 0.08);
}

.school-stat-band > div {
    padding: 18px 16px;
    border-right: 1px solid rgba(17, 17, 17, 0.08);
    text-align: center;
}

.school-stat-band > div:last-child {
    border-right: 0;
}

.school-stat-band strong {
    display: block;
    font-family: "Playfair Display", Georgia, serif;
    font-size: 1.8rem;
    line-height: 1;
}

.school-stat-band span {
    display: block;
    margin-top: 6px;
    color: #5a5a54;
    font-size: 11px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

/* ---------- Predictions analytical ---------- */
.predict-record {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    margin-bottom: 36px;
    background: #101311;
    color: #f5f2eb;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.predict-record > div {
    padding: 22px 18px;
    border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.predict-record > div:last-child {
    border-right: 0;
}

.predict-record strong {
    display: block;
    font-family: "Playfair Display", Georgia, serif;
    font-size: 2rem;
    color: #d9c89b;
}

.predict-record span {
    display: block;
    margin-top: 6px;
    font-size: 12px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(245, 242, 235, 0.6);
}

.predict-card {
    display: block;
    padding: 20px 0;
    border-top: 1px solid rgba(17, 17, 17, 0.1);
    text-decoration: none;
    color: inherit;
    transition: background 0.18s ease;
}

.predict-card:hover {
    background: rgba(24, 58, 42, 0.04);
}

.predict-explain {
    margin: 0 0 28px;
    padding: 18px 0;
    border-top: 1px solid rgba(17, 17, 17, 0.1);
    border-bottom: 1px solid rgba(17, 17, 17, 0.1);
    color: #5a5a54;
    font-size: 0.95rem;
    line-height: 1.65;
    max-width: 52rem;
}

/* ---------- Archive museum ---------- */
.archive-decade-strip {
    display: flex;
    gap: 0;
    overflow-x: auto;
    margin: 0 0 36px;
    border: 1px solid rgba(74, 63, 45, 0.18);
    background: #f7f1e4;
}

.archive-decade-strip span,
.archive-decade-strip a {
    flex: 0 0 auto;
    padding: 14px 18px;
    border-right: 1px solid rgba(74, 63, 45, 0.14);
    color: #4a3f2d;
    font-family: "Playfair Display", Georgia, serif;
    font-size: 1.15rem;
    text-decoration: none;
}

.archive-gallery {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.archive-tile {
    position: relative;
    display: grid;
    grid-template-rows: 160px auto;
    text-decoration: none;
    color: inherit;
    border: 1px solid rgba(74, 63, 45, 0.16);
    background: #fffdf8;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    overflow: hidden;
}

.archive-tile:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(74, 63, 45, 0.1);
}

.archive-tile.is-wip {
    cursor: default;
}

.archive-tile.is-wip:hover {
    transform: none;
    box-shadow: none;
}

.archive-tile.is-wip .archive-tile-visual,
.archive-tile.is-wip .archive-tile-body {
    filter: grayscale(0.35) brightness(0.97);
}

/* Rubber-stamp “Work in progress” mark */
.wip-stamp {
    position: absolute;
    z-index: 3;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -55%) rotate(-14deg);
    pointer-events: none;
}

.wip-stamp-ink {
    display: inline-block;
    padding: 8px 14px;
    border: 3px double rgba(140, 42, 34, 0.85);
    border-radius: 4px;
    color: rgba(140, 42, 34, 0.88);
    font-family: "Playfair Display", Georgia, serif;
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    line-height: 1.1;
    white-space: nowrap;
    background: rgba(255, 250, 245, 0.12);
    box-shadow: inset 0 0 0 1px rgba(140, 42, 34, 0.25);
    text-shadow: 0 0 1px rgba(140, 42, 34, 0.15);
    opacity: 0.92;
}

.archive-wip-banner {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    margin: 0 0 22px;
    padding: 22px 20px;
    border: 1px dashed rgba(140, 42, 34, 0.35);
    background:
        repeating-linear-gradient(
            -12deg,
            rgba(140, 42, 34, 0.03),
            rgba(140, 42, 34, 0.03) 8px,
            transparent 8px,
            transparent 16px
        );
    overflow: hidden;
}

.archive-wip-banner .wip-stamp {
    position: relative;
    top: auto;
    left: auto;
    transform: rotate(-10deg);
    flex-shrink: 0;
}

.archive-wip-banner p {
    margin: 0;
    max-width: 28rem;
    color: #5a5048;
    font-size: 0.95rem;
    line-height: 1.45;
}

.archive-wip-empty {
    position: relative;
    display: grid;
    place-items: center;
    gap: 18px;
    min-height: 220px;
    margin: 12px 0 28px;
    padding: 40px 24px;
    border: 1px solid rgba(74, 63, 45, 0.14);
    background: #fffdf8;
    text-align: center;
    overflow: hidden;
}

.archive-wip-empty .wip-stamp {
    position: relative;
    top: auto;
    left: auto;
    transform: rotate(-12deg);
}

.archive-gallery--wip .archive-tile.is-wip::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(255, 252, 247, 0.18);
    pointer-events: none;
    z-index: 1;
}

/* —— Secret admin pulse —— */
body.admin-pulse main.container {
    max-width: 1100px;
}

.admin-hero {
    margin: 8px 0 28px;
}

.admin-logo {
    display: block;
    width: 56px;
    height: 56px;
    object-fit: contain;
    margin: 0 0 12px;
}

.admin-hero h1 {
    margin: 0 0 8px;
    font-family: "Playfair Display", Georgia, serif;
    font-size: clamp(2rem, 4vw, 2.6rem);
    letter-spacing: -0.02em;
}

.admin-lede {
    margin: 0;
    color: #5a5a54;
    font-size: 0.95rem;
}

.admin-stat-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1px;
    margin: 0 0 28px;
    border: 1px solid rgba(17, 17, 17, 0.1);
    background: rgba(17, 17, 17, 0.1);
}

.admin-stat {
    padding: 16px 14px;
    background: #fffdf8;
}

.admin-stat span {
    display: block;
    margin-bottom: 6px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #6a6a64;
}

.admin-stat strong {
    font-family: "IBM Plex Mono", ui-monospace, monospace;
    font-size: 1.45rem;
    font-weight: 600;
    color: #111;
}

.admin-columns {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 48px;
}

.admin-panel {
    padding: 18px 18px 8px;
    border: 1px solid rgba(17, 17, 17, 0.1);
    background: #fffdf8;
}

.admin-panel h2 {
    margin: 0 0 12px;
    font-family: "Playfair Display", Georgia, serif;
    font-size: 1.15rem;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.admin-table th,
.admin-table td {
    padding: 7px 0;
    border-bottom: 1px solid rgba(17, 17, 17, 0.06);
    text-align: left;
    vertical-align: top;
}

.admin-table th {
    font-size: 11px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #6a6a64;
}

.admin-table .num {
    text-align: right;
    font-family: "IBM Plex Mono", ui-monospace, monospace;
    white-space: nowrap;
}

.stat-block {
    margin-bottom: 20px;
}

.stat-chart {
    width: 100%;
    height: auto;
    display: block;
}

.stat-legend {
    display: flex;
    gap: 8px;
    align-items: center;
    margin: 0 0 8px;
    color: #5a5a54;
    font-size: 0.9rem;
}

.stat-swatch {
    width: 18px;
    height: 3px;
    display: inline-block;
    margin-left: 12px;
}

.stat-swatch-views {
    background: #1a3a2a;
}

.stat-swatch-people {
    background: #b5812f;
}

.stat-bars {
    list-style: none;
    margin: 0;
    padding: 0;
}

.stat-bars li {
    display: grid;
    grid-template-columns: 7.5rem 1fr 3rem;
    gap: 8px;
    align-items: center;
    margin: 0 0 8px;
}

.stat-bar {
    height: 8px;
    background: rgba(17, 17, 17, 0.08);
    border-radius: 99px;
    overflow: hidden;
}

.stat-bar span {
    display: block;
    height: 100%;
    background: #1a3a2a;
}

.admin-table .indent {
    padding-left: 14px;
    color: #5a5a54;
}

.admin-table .muted {
    color: #8a8a84;
    text-align: right;
    font-size: 12px;
}

@media (max-width: 760px) {
    .admin-stat-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .admin-columns {
        grid-template-columns: 1fr;
    }

    .internal-hero h1 {
        font-size: clamp(1.6rem, 7vw, 2.2rem);
        overflow-wrap: anywhere;
    }

    .subnav.rugby-subnav,
    .cup-tabs.subnav,
    .archive-nav.subnav,
    .fantasy-subnav.subnav {
        margin-left: -4px;
        margin-right: -4px;
        padding-left: 4px;
        padding-right: 4px;
    }

    .wip-stamp-ink {
        font-size: 0.78rem;
        padding: 6px 10px;
        letter-spacing: 0.1em;
    }

    .error-panel {
        padding: 8px 8px 24px;
    }

    .error-actions {
        flex-direction: column;
    }

    .error-actions .btn-primary,
    .error-actions .btn-ghost {
        width: 100%;
        justify-content: center;
    }
}

.archive-tile-visual {
    display: grid;
    place-items: center;
    background:
        linear-gradient(145deg, #4a3f2d, #2a2418);
    color: #f0e7d3;
    font-family: "Playfair Display", Georgia, serif;
    font-size: 2.4rem;
}

.archive-tile-body {
    padding: 18px 18px 22px;
}

.archive-tile-body h3 {
    margin: 0 0 8px;
    font-family: "Playfair Display", Georgia, serif;
    font-size: 1.35rem;
}

.archive-tile-body p {
    margin: 0;
    color: #5a5a54;
    font-size: 0.92rem;
    line-height: 1.5;
}

/* Soften legacy panels on interior pages */
body:not(.home-page) .panel {
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    padding: 0;
    margin: 0 0 40px;
}

body:not(.home-page) .panel-heading {
    align-items: end;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(17, 17, 17, 0.1);
}

body:not(.home-page) .panel-heading h2 {
    font-family: "Playfair Display", Georgia, serif;
    font-size: 1.55rem;
    letter-spacing: -0.02em;
}

body:not(.home-page) .dashboard-grid {
    display: block;
}

body:not(.home-page) .match-card {
    border-radius: 0;
    box-shadow: none;
    border: 0;
    border-top: 1px solid rgba(17, 17, 17, 0.08);
    background: transparent;
    padding: 14px 0;
}

body:not(.home-page) .school-card {
    border-radius: 0;
    box-shadow: none;
}

body:not(.home-page) .cup-entry-banner {
    display: none;
}

.has-internal-hero .section-header,
.has-internal-hero .archive-hero {
    display: none;
}

.has-internal-hero .section-header.table-controls {
    display: block;
    margin: 0 0 20px;
    padding: 0;
}

.has-internal-hero .section-header.table-controls h1,
.has-internal-hero .section-header.table-controls .eyebrow {
    display: none;
}

/* Keep friendlies / Cup standings on their original dark board —
   do not flatten to white (breaks contrast + sticky columns). */
body:not(.home-page) .standings {
    background: #101311;
    color: #f4f1ea;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.18);
}

body:not(.home-page) .standings-table {
    background: transparent;
    color: inherit;
}

.internal-hero .season-select {
    color: #f5f2eb;
}

.internal-hero .season-select label {
    color: #344d40;
}

.ed-section--dark .list-row,
.ed-section--dark .school-match-line,
.ed-section--dark .meta-line {
    color: rgba(245, 242, 235, 0.92);
}

.ed-section--dark .list-row {
    border-color: rgba(255, 255, 255, 0.1);
}

.featured-match-team .school-badge,
.featured-match-team .school-logo {
    margin-bottom: 4px;
}


/* ---------- Responsive ---------- */
@media (max-width: 900px) {
    .cup-feature,
    .spotlight-grid,
    .featured-match-teams {
        grid-template-columns: 1fr;
    }

    .featured-match-team-away {
        text-align: left;
    }

    .featured-match-mid {
        text-align: left;
        padding: 4px 0;
    }

    .predict-record,
    .school-stat-band {
        grid-template-columns: repeat(2, 1fr);
    }

    .predict-record > div:nth-child(2),
    .school-stat-band > div:nth-child(2) {
        border-right: 0;
    }

    .archive-gallery {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 760px) {
    body > header {
        position: sticky;
        top: 0;
        z-index: 50;
    }

    body:not(.home-page) > header {
        position: sticky;
    }

    body:not(.home-page) .nav-container,
    .home-page .nav-container {
        position: relative;
    }

    .nav-toggle,
    body:not(.home-page) .nav-toggle {
        display: inline-flex;
    }

    body:not(.home-page) .site-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 8px 0 16px;
        background: #101311;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    }

    body:not(.home-page).nav-open .site-nav {
        display: flex;
    }

    body:not(.home-page) .site-nav a {
        padding: 14px 24px;
    }

    body:not(.home-page) .site-nav a::after {
        display: none;
    }

    body.nav-open .nav-toggle span:nth-child(1) {
        transform: translateY(6.5px) rotate(45deg);
    }

    body.nav-open .nav-toggle span:nth-child(2) {
        opacity: 0;
    }

    body.nav-open .nav-toggle span:nth-child(3) {
        transform: translateY(-6.5px) rotate(-45deg);
    }

    .date-block {
        grid-template-columns: 56px 1fr;
        gap: 12px;
    }

    .fx-row {
        grid-template-columns: 52px 1fr;
    }

    .fx-row-meta {
        grid-column: 1 / -1;
        justify-content: flex-start;
        padding-left: 52px;
    }

    .res-row-main {
        gap: 6px;
    }

    .internal-hero {
        padding: 36px 20px 48px;
        margin: 0 -20px 0;
    }

    body:not(.home-page) .container {
        padding: 0 20px 56px;
    }

    .ed-section--cream,
    .ed-section--dark {
        margin-left: -20px;
        margin-right: -20px;
        padding-left: 20px;
        padding-right: 20px;
    }

    .featured-match-teams {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .featured-match-team-away {
        text-align: left;
    }

    .featured-match-mid {
        text-align: left;
        padding: 2px 0;
    }

    .featured-match-cta {
        width: 100%;
        justify-content: center;
    }

    .cup-feature,
    .spotlight-grid {
        grid-template-columns: 1fr;
    }

    .subnav.rugby-subnav,
    .cup-tabs.subnav,
    .archive-nav.subnav {
        margin-top: 14px;
        padding-bottom: 14px;
        scroll-padding-inline: 16px;
        mask-image: linear-gradient(90deg, #000 85%, transparent);
    }

    .weekend-summary {
        margin: 20px 0 28px;
        padding: 4px 0 22px;
    }

    .weekend-summary-stats {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .predict-record,
    .school-stat-band,
    .league-pulse {
        grid-template-columns: 1fr 1fr;
    }

    .site-footer-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 24px;
        padding: 32px 20px 40px;
    }

    .site-footer-nav {
        flex-wrap: wrap;
        gap: 12px 18px;
    }

    .fancy-select,
    .fancy-select--week {
        flex: 1 1 calc(50% - 6px);
        max-width: none;
    }

    .fancy-select-menu {
        left: 0;
        right: auto;
        min-width: min(320px, calc(100vw - 40px));
        max-width: calc(100vw - 40px);
    }

    .table-controls-row {
        flex-direction: column;
        align-items: stretch;
    }

    .scoring-help {
        align-self: flex-start;
    }

    .dual-prob-bar {
        margin: 0 0 14px;
    }
}

@media (max-width: 560px) {
    body:not(.home-page) .container {
        padding: 0 16px 48px;
    }

    .internal-hero {
        padding: 28px 16px 40px;
        margin: 0 -16px 0;
    }

    .internal-hero h1 {
        font-size: clamp(1.85rem, 9vw, 2.4rem);
    }

    .ed-section--cream,
    .ed-section--dark {
        margin-left: -16px;
        margin-right: -16px;
        padding-left: 16px;
        padding-right: 16px;
    }

    .ed-section-head {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .predict-record,
    .school-stat-band,
    .league-pulse {
        grid-template-columns: 1fr;
    }

    .predict-record > div,
    .school-stat-band > div,
    .league-pulse-item {
        border-right: 0;
        border-bottom: 1px solid rgba(17, 17, 17, 0.08);
    }

    .predict-record > div:last-child,
    .school-stat-band > div:last-child,
    .league-pulse-item:last-child {
        border-bottom: 0;
    }

    .fancy-select,
    .fancy-select--week {
        flex: 1 1 100%;
    }

    .prediction-teams,
    .why-columns {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .prediction-team-away,
    .why-side + .why-side {
        text-align: left;
    }

    .prob-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .fx-row {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .fx-row-meta {
        padding-left: 0;
        justify-content: flex-start;
    }

    .fx-vs {
        display: inline;
        color: #5a5a54;
        font-size: 12px;
        font-weight: 600;
    }

    .prediction-mid {
        justify-items: start;
        text-align: left;
    }

    .match-centre-hero .match-score {
        font-size: clamp(2rem, 10vw, 2.8rem);
    }

    .model-leaderboard-wrap,
    .standings-scroll,
    .bracket-scroll {
        -webkit-overflow-scrolling: touch;
    }

    .subnav.rugby-subnav a,
    .cup-tabs.subnav a,
    .archive-nav.subnav a {
        padding-inline: 12px;
        font-size: 12px;
    }

    .about-prose {
        padding-bottom: 8px;
    }

    .empty-state {
        padding: 22px 16px;
    }

    .home-page .coverage-section,
    .home-page .site-footer-inner {
        padding-left: 16px;
        padding-right: 16px;
    }
}

/* Weekend summary + about / footer / empty (shared) */
.weekend-summary {
    margin: 28px 0 40px;
    padding: 8px 0 28px;
    border-bottom: 1px solid rgba(17, 17, 17, 0.1);
}

.weekend-summary-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 14px 28px;
    font-size: 15px;
    line-height: 1.4;
    color: #5a5a54;
}

.weekend-summary-stats strong {
    color: #111;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.weekend-summary-stats .is-awaiting strong {
    color: #6a5a2e;
}

.weekend-summary-note {
    margin: 16px 0 0;
    max-width: 38rem;
    font-size: 13px;
    line-height: 1.55;
    color: #7a7468;
}

.about-prose {
    max-width: 640px;
    margin: 8px auto 0;
    padding: 8px 0 24px;
}

.about-prose h2 {
    margin: 28px 0 10px;
    font-family: "Playfair Display", Georgia, serif;
    font-size: 1.3rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.about-prose p {
    margin: 0 0 14px;
    font-size: 15px;
    line-height: 1.65;
    color: #333;
}

.about-links {
    margin-top: 32px !important;
    padding-top: 18px;
    border-top: 1px solid rgba(17, 17, 17, 0.1);
}

.site-footer {
    margin-top: auto;
    background: #0b1112;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    color: #9aa09a;
}

.site-footer-inner {
    max-width: 1120px;
    margin: 0 auto;
    padding: 40px 24px 48px;
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 32px 48px;
}

.home-page .site-footer-inner {
    max-width: 1280px;
    padding: 36px max(5.3vw, 48px) 40px;
}

.site-footer-brand {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 12px;
}

.site-footer-logo {
    width: 40px;
    height: 40px;
    object-fit: contain;
    flex-shrink: 0;
}

.site-footer-brand-text {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.site-footer-brand strong {
    font-family: "Playfair Display", Georgia, serif;
    font-size: 17px;
    font-weight: 700;
    color: #f5f2eb;
}

.site-footer-brand span {
    font-size: 11px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #737a76;
}

.site-footer-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 28px;
}

.site-footer-nav a {
    color: #b9bcb8;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
}

.site-footer-nav a:hover {
    color: #f5f2eb;
}

.site-footer-meta {
    flex: 1 1 240px;
    max-width: 420px;
}

.site-footer-meta p {
    margin: 0 0 8px;
    font-size: 12px;
    line-height: 1.55;
    color: #8a908a;
}

.site-footer-meta a {
    color: #c4b48a;
    text-decoration: none;
}

.site-footer-fresh {
    color: #c4b48a !important;
}

.site-footer-copy {
    margin-top: 12px !important;
    font-size: 11px !important;
    color: #6a706a !important;
}

/* The footer crest keeps its usual appearance; its credit is revealed on demand. */
.footer-crest-secret { position: relative; flex: 0 0 auto; }
.footer-crest-button {
    display: grid;
    place-items: center;
    min-width: 44px;
    min-height: 44px;
    padding: 0;
    margin: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
    cursor: pointer;
    touch-action: manipulation;
}
.footer-crest-button:focus-visible { outline: 2px solid #c4b48a; outline-offset: 4px; }
.footer-secret-credit {
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: 6px;
    white-space: nowrap;
    color: #c4b48a;
    font-size: 11px;
    opacity: 0;
    transition: opacity .3s ease;
    pointer-events: none;
}
.footer-secret-credit.is-visible { opacity: 1; }
@media (prefers-reduced-motion: reduce) {
    .footer-secret-credit { transition: none; }
}

.empty-state {
    margin: 28px 0;
    padding: 28px 24px;
    border: 1px dashed rgba(17, 17, 17, 0.18);
    background: rgba(255, 255, 255, 0.35);
    color: #5a605a;
    font-size: 14px;
    line-height: 1.55;
    text-align: center;
}

.empty-state--panel {
    margin-top: 8px;
    border-style: solid;
    border-color: rgba(17, 17, 17, 0.1);
    background: #faf8f3;
}

.empty-state--panel a {
    color: #1a3a2a;
    font-weight: 600;
    text-decoration: none;
}

/* —— Error pages (404 / 500) —— */
body.error-page main.container {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: min(70vh, 640px);
}

.error-panel {
    width: 100%;
    max-width: 36rem;
    margin: 24px auto 48px;
    padding: 8px 0 28px;
    text-align: center;
}

.error-code {
    margin: 0 0 4px;
    font-family: "Playfair Display", Georgia, serif;
    font-size: clamp(5rem, 18vw, 8rem);
    font-weight: 800;
    line-height: 0.9;
    letter-spacing: -0.04em;
    color: #1a3a2a;
    opacity: 0.14;
    user-select: none;
}

.error-panel .eyebrow {
    margin: -1.5rem 0 10px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #8a6d32;
}

.error-panel h1 {
    margin: 0 0 12px;
    font-family: "Playfair Display", Georgia, serif;
    font-size: clamp(1.75rem, 4vw, 2.35rem);
    letter-spacing: -0.02em;
    line-height: 1.15;
    color: #111;
}

.error-text {
    margin: 0 auto 28px;
    max-width: 28rem;
    color: #5a5a54;
    font-size: 1.05rem;
    line-height: 1.55;
}

.error-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    align-items: center;
}

.error-actions .btn-ghost {
    display: inline-flex;
    align-items: center;
    padding: 10px 16px;
    border: 1px solid rgba(17, 17, 17, 0.16);
    background: transparent;
    color: #1a3a2a;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
}

.error-actions .btn-ghost:hover {
    background: rgba(26, 58, 42, 0.06);
}

.rc-links {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.rc-links a {
    color: #1a3a2a;
    font-weight: 700;
}

.rc-level-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 14px;
}

.rc-level-filter a {
    padding: 6px 14px;
    border-radius: 999px;
    border: 1px solid rgba(17, 17, 17, 0.16);
    color: #1a3a2a;
    font-weight: 700;
    font-size: 0.9rem;
    text-decoration: none;
}

.rc-level-filter a.is-on {
    background: #1a3a2a;
    border-color: #1a3a2a;
    color: #f5f2eb;
}

.sat-coverage {
    background: #111;
    color: #f5f5f5;
    border: 1px solid #2a2a2a;
    border-radius: 16px;
    padding: 22px 24px 18px;
}

.sat-coverage-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.sat-coverage-head h2 {
    margin: 0;
    color: #fff;
    font-family: inherit;
    font-size: 1.05rem;
    font-weight: 650;
    letter-spacing: -0.01em;
}

.sat-coverage-alert {
    flex: 0 0 auto;
    background: #3a2614;
    color: #e39a45;
    border-radius: 999px;
    padding: 6px 12px;
    font-size: 0.82rem;
    font-weight: 650;
}

.sat-coverage-main {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 16px;
    margin-top: 18px;
}

.sat-coverage-main p {
    margin: 0;
}

.sat-coverage-main strong {
    font-size: 1.85rem;
    font-weight: 650;
    letter-spacing: -0.03em;
}

.sat-coverage-main span,
.sat-coverage-pct {
    color: #b5b5b5;
    font-size: 1.05rem;
}

.sat-coverage-pct {
    font-size: 1.7rem;
    font-weight: 600;
}

.sat-coverage-track {
    margin: 16px 0 20px;
    height: 6px;
    border-radius: 999px;
    background: #3a3a3a;
    overflow: hidden;
}

.sat-coverage-track span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: #ececec;
}

.sat-coverage-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    text-align: center;
}

.sat-coverage-stats strong {
    display: block;
    font-size: 1.65rem;
    font-weight: 650;
    letter-spacing: -0.03em;
}

.sat-coverage-stats div:first-child strong {
    color: #fff;
}

.sat-coverage-stats div:not(:first-child) strong {
    color: #c8c8c8;
}

.sat-coverage-stats span {
    display: block;
    margin-top: 2px;
    color: #8d8d8d;
    font-size: 0.92rem;
}

.sat-coverage-note {
    margin: 10px 2px 22px;
    color: #6d6d66;
    font-size: 0.85rem;
}

.rc-flashes {
    list-style: none;
    margin: 0 0 16px;
    padding: 0;
}

.rc-flash {
    padding: 10px 12px;
    margin-bottom: 8px;
    background: #f4f1ea;
}

.rc-flash-error {
    background: #f8e6e0;
}

.rc-saturday,
.rc-card {
    padding: 12px 0;
    border-top: 1px solid rgba(17, 17, 17, 0.08);
    scroll-margin-top: 88px;
}

.rc-fixture-form {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 14px 16px;
    align-items: end;
}

.rc-fixture-form label {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-weight: 700;
    font-size: 0.9rem;
}

.rc-fixture-form input,
.rc-fixture-form select {
    padding: 8px;
    font: inherit;
    font-weight: 500;
}

.rc-fixture-form .rc-btn {
    justify-self: start;
}

.rc-delete {
    margin-top: 22px;
    padding-top: 16px;
    border-top: 1px solid rgba(17, 17, 17, 0.08);
}

.rc-delete label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
}

.rc-edit {
    margin-left: 8px;
    font-weight: 700;
}

.rc-inline,
.rc-actions,
.rc-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin-top: 8px;
}

.rc-stack {
    flex-direction: column;
    align-items: stretch;
}

.rc-score {
    width: 4.2rem;
    padding: 8px;
    font-size: 1rem;
}

.rc-url,
.rc-stack textarea,
.rc-stack select,
.rc-inline select {
    width: min(100%, 28rem);
    padding: 8px;
}

.rc-btn {
    border: 0;
    background: #1a3a2a;
    color: #f5f2eb;
    padding: 8px 12px;
    font-weight: 700;
    cursor: pointer;
}

.rc-btn-quiet {
    background: transparent;
    color: #1a3a2a;
    border: 1px solid rgba(17, 17, 17, 0.2);
}

.rc-pill {
    display: inline-block;
    margin-left: 8px;
    padding: 2px 8px;
    font-size: 0.75rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    background: #efe8d8;
}

.rc-pill-urgent,
.rc-urgent {
    background: #f3d6a0;
    font-weight: 700;
}

.rc-conflict {
    border-left: 3px solid #8a6232;
    padding-left: 12px;
}

.rc-conflict-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
}

.rc-done {
    font-weight: 700;
}

.rc-list {
    margin: 0;
    padding-left: 18px;
}

.result-note {
    display: block;
    margin-top: 8px;
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(245, 242, 235, 0.8);
}

.result-note-reported,
.result-note-pending,
.result-note-conflict {
    color: #f3d6a0;
}

@media (max-width: 760px) {
    .sat-coverage-head,
    .sat-coverage-main {
        flex-wrap: wrap;
    }

    .rc-inline {
        align-items: stretch;
    }

    .rc-btn,
    .rc-score,
    .rc-url {
        width: 100%;
    }
}

/* Public discovery and compact, keyboard-accessible navigation. */
.skip-link { position: fixed; top: -80px; left: 16px; z-index: 1000; padding: 12px; background: #f5f2eb; color: #173529; }
.skip-link:focus { top: 12px; }
.nav-group { position: relative; }
.nav-group summary { cursor: pointer; padding: 12px 0; font: inherit; color: inherit; }
.nav-group[data-active] summary { text-decoration: underline; text-underline-offset: 7px; }
.nav-group-links { position: absolute; top: 100%; left: 0; z-index: 100; min-width: 210px; padding: 12px 18px; background: #173529; color: #f5f2eb; border: 1px solid #b39b68; box-shadow: 0 8px 20px #0003; }
.site-nav .nav-group-links a { display: block; padding: 12px 0; color: #f5f2eb; white-space: nowrap; }
.school-finder { margin: 28px 0; padding: clamp(20px, 4vw, 36px); background: #eee9df; color: #173529; border-top: 3px solid #b39b68; }
.school-finder h2 { margin-top: 0; }
.school-finder label { display: block; margin: 18px 0 8px; font-weight: 700; }
.school-finder-controls { display: flex; gap: 10px; }
.school-finder input { flex: 1; min-width: 0; padding: 14px; border: 1px solid #6b756b; border-radius: 0; font: inherit; background: #fff; color: #173529; }
.school-finder button { padding: 12px 20px; border: 0; background: #173529; color: #f5f2eb; font: inherit; cursor: pointer; }
#school-search-help { font-size: .85rem; }
#school-matches ul { list-style: none; padding: 0; margin: 0 0 18px; max-height: 280px; overflow-y: auto; }
#school-matches a { display: block; padding: 12px 8px; border-bottom: 1px solid #17352933; color: #173529; }
#school-matches small { margin-left: 8px; }
/* Keep homepage additions inside the existing dark publication layout. */
.home-page main.container { background: #0b1112; }
.home-discovery {
    width: min(100%, 1280px);
    box-sizing: border-box;
    margin: 0 auto;
    padding: 0 48px 40px;
    color: #f5f2eb;
}
.home-school-finder {
    display: grid;
    grid-template-columns: minmax(240px, 1fr) minmax(0, 1.4fr);
    align-items: center;
    gap: 24px 56px;
    margin: 0;
    padding: 30px 0;
    border: 0;
    border-top: 1px solid rgba(217, 200, 155, .22);
    border-bottom: 1px solid rgba(217, 200, 155, .22);
    background: transparent;
    color: inherit;
}
.home-school-finder h2, .home-discovery .discovery-panel h2 {
    margin: 0 0 10px;
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(24px, 2.2vw, 30px);
    font-weight: 700;
    letter-spacing: -.025em;
    line-height: 1.15;
    color: #f5f2eb;
}
.school-finder-copy p { margin: 0 0 12px; color: #b1b9b3; font-size: 13px; line-height: 1.5; }
.school-finder-copy > a, .home-discovery .discovery-panel > .discovery-more {
    color: #d9c89b; font-size: 12px; text-decoration: none;
}
.school-finder-copy > a:hover, .home-discovery .discovery-panel > .discovery-more:hover { text-decoration: underline; }
.school-finder-search { position: relative; min-width: 0; }
.home-school-finder label { margin: 0 0 8px; font-size: 11px; font-weight: 500; color: #b1b9b3; }
.home-school-finder input {
    height: 46px; padding: 12px 14px; font-size: 14px;
    background: #151e1d; border: 1px solid #58615a; color: #f5f2eb;
}
.home-school-finder input::placeholder { color: #a6afa8; opacity: 1; }
.home-school-finder button {
    height: 46px; padding: 12px 20px; background: #d9c89b; color: #101817;
    font-size: 12px; font-weight: 700; white-space: nowrap;
}
.home-school-finder #school-search-help { margin: 8px 0 0; color: #8f9a92; font-size: 11px; }
.home-school-finder #school-matches {
    position: absolute; z-index: 5; left: 0; right: 0; top: 100%;
    padding: 12px 16px; background: #17211f; border: 1px solid #58615a;
    box-shadow: 0 12px 24px #0005;
}
.home-school-finder #school-matches a { color: #f5f2eb; border-bottom-color: #ffffff1a; }
.home-school-finder #school-matches a:hover { background: #ffffff0a; }
.home-school-finder .school-match-status { font-size: 12px; color: #b1b9b3; }
.home-school-finder #school-matches small { color: #d9c89b; }
.discovery-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px; margin: 32px 0 0; }
.home-discovery .discovery-panel { padding: 0; border: 0; min-width: 0; background: transparent; color: #f5f2eb; }
.home-discovery .discovery-panel a { color: inherit; }
.home-discovery .discovery-panel > .discovery-more { display: inline-block; margin-top: 16px; color: #d9c89b; }
.home-discovery .fx-row, .home-discovery .res-row { border-color: #ffffff1a; }
.home-discovery .fx-row:hover, .home-discovery .res-row:hover { background: #ffffff05; }
.home-discovery .discovery-match-list { display: grid; grid-template-columns: minmax(0, 1fr); margin-top: 24px; }
.home-discovery .discovery-match-list > a { width: 100%; min-width: 0; box-sizing: border-box; margin: 0; padding: 20px 0; text-decoration: none; }
.home-discovery .discovery-match-list .res-row { display: block; }
.home-discovery .discovery-match-list .fx-row { display: grid; grid-template-columns: 80px minmax(0, 1fr); gap: 8px 20px; align-items: start; }
.home-discovery .res-row-main { display: grid; gap: 10px; }
.home-discovery .res-side { grid-template-columns: minmax(0, 1fr) 3ch; gap: 20px; }
.home-discovery .res-row-meta { display: flex; flex-wrap: wrap; gap: 8px 12px; margin-top: 14px; }
.home-discovery .res-status { color: #a6afa8; }
.home-discovery .fx-row-teams { min-width: 0; gap: 6px; font-size: 15px; line-height: 1.45; }
.home-discovery .fx-home, .home-discovery .fx-away, .home-discovery .res-name { overflow-wrap: anywhere; }
.home-discovery .fx-row-time { padding-top: 2px; }
.home-discovery .fx-row-time strong { display: block; margin-top: 5px; }
.home-discovery .fx-venue { overflow-wrap: anywhere; }
.home-discovery .fx-row-meta { grid-column: 2; justify-content: flex-start; }
.home-discovery .fx-row-date, .home-discovery .fx-venue, .home-discovery .res-row-meta { color: #a6afa8; }
.home-discovery .res-score { color: #d9c89b; font-size: 26px; }
.home-discovery .res-name { font-size: 15px; text-transform: none; letter-spacing: 0; }
.home-discovery .comp-chip { color: #d9c89b; background: #d9c89b12; border-color: #d9c89b33; }
.home-discovery .archive-discovery { margin: 32px 0 0; padding: 24px 0 0; border-top: 1px solid #ffffff1a; }
.home-discovery .archive-discovery > p:not(.eyebrow) { max-width: 65ch; color: #a6afa8; font-size: 14px; line-height: 1.6; }
/* Feature the next real Tier 1 fixture beneath the upcoming matches. */
.big-matchup { margin-top: 28px; border: 1px solid #d9c89b55; background: linear-gradient(135deg, #1c2924, #111a18); }
.big-matchup-heading { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; padding: 16px 20px; border-bottom: 1px solid #d9c89b33; }
.big-matchup-heading h3 { margin: 0; color: #d9c89b; font-size: 12px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; }
.big-matchup-heading > span { color: #a6afa8; font-size: 11px; }
.big-matchup-link { display: block; padding: 24px 20px 20px; text-decoration: none; }
.big-matchup-link:hover { background: #ffffff04; }
.big-matchup-teams { display: grid; grid-template-columns: minmax(0, 1fr) 24px minmax(0, 1fr); align-items: center; gap: 12px; }
.big-matchup-team { display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; min-width: 0; }
.big-matchup-team strong { font-family: 'Playfair Display', Georgia, serif; font-size: clamp(18px, 1.8vw, 24px); line-height: 1.25; overflow-wrap: anywhere; color: #f5f2eb; }
.big-matchup-vs { text-align: center; font-family: Georgia, serif; font-size: 24px; font-style: italic; color: #d9c89b; }
.big-matchup-date { margin: 24px 0 8px; text-align: center; font-size: 13px; color: #f5f2eb; line-height: 1.5; }
.big-matchup-detail { margin: 0; text-align: center; font-size: 12px; color: #a6afa8; line-height: 1.5; }
.big-matchup-cta { display: block; margin-top: 20px; text-align: center; color: #d9c89b; font-size: 12px; }
@media (max-width: 480px) {
    .home-discovery .discovery-match-list .fx-row { grid-template-columns: 68px minmax(0, 1fr); gap: 8px 14px; }
    .big-matchup-link { padding-inline: 14px; }
    .big-matchup-teams { gap: 8px; }
}
@media (max-width: 760px) {
    .home-discovery { padding: 0 24px 28px; }
    .home-school-finder { grid-template-columns: 1fr; gap: 20px; padding: 24px 0; }
    .discovery-grid { grid-template-columns: 1fr; gap: 28px; margin-top: 28px; }
}
@media (max-width: 480px) {
    .home-discovery { padding-inline: 18px; }
    .home-school-finder .school-finder-controls { flex-direction: row; gap: 8px; }
    .home-school-finder input { width: 0; }
    .home-school-finder button { width: auto; padding-inline: 12px; }
}
.explore-links { display: flex; flex-wrap: wrap; gap: 12px 24px; margin: 24px 0; }
.explore-links a { padding: 8px 0; text-underline-offset: 4px; }
:where(a, button, input, select, summary):focus-visible { outline: 3px solid #b08a3d; outline-offset: 4px; }
[hidden] { display: none !important; }
@media (max-width: 1100px) {
    .site-nav { gap: 16px; }
    .nav-group-links { left: auto; right: 0; }
}
@media (max-width: 760px) {
    .nav-group { width: 100%; }
    .nav-group-links { position: static; box-shadow: none; margin: 0 0 10px; }
    .nav-group summary { min-height: 44px; }
}
@media (max-width: 650px) {
    .discovery-grid { grid-template-columns: 1fr; }
    .school-finder:not(.home-school-finder) .school-finder-controls { flex-direction: column; }
    .school-finder:not(.home-school-finder) input, .school-finder:not(.home-school-finder) button { width: 100%; box-sizing: border-box; }
}

@media (min-width: 761px) {
    body:not(.home-page) .site-nav, .home-page .site-nav { gap: clamp(10px, 1.3vw, 24px); }
    body:not(.home-page) .site-nav a, .home-page .site-nav a, .nav-group summary { font-size: 12px; }
}
@media (max-width: 760px) {
    .site-nav { max-height: calc(100dvh - 90px); overflow-y: auto; }
    .nav-group summary { padding: 14px 24px; }
    .home-page .site-footer-nav { position: static; display: flex; flex-wrap: wrap; background: transparent; padding: 0; border: 0; }
}

@media (max-width: 1050px) {
    body .nav-container { position: relative; }
    body .nav-toggle { display: inline-flex; }
    body .site-nav, body:not(.home-page) .site-nav, .home-page nav.site-nav {
        display: none; position: absolute; top: 100%; left: 0; right: 0;
        flex-direction: column; align-items: stretch; gap: 0;
        padding: 8px 0 16px; background: #101311; color: #f5f2eb;
        max-height: calc(100vh - 90px); max-height: calc(100dvh - 90px);
        overflow-y: auto; z-index: 100;
    }
    body.nav-open .site-nav, body:not(.home-page).nav-open .site-nav, .home-page.nav-open nav.site-nav { display: flex; }
    .site-nav > * { flex-shrink: 0; }
    .nav-group-links { position: static; box-shadow: none; margin: 0 0 10px; }
    .site-nav .nav-group-links a { white-space: normal; }
    body .site-nav > a, .nav-group summary { padding: 14px 24px; min-height: 44px; box-sizing: border-box; }
}
/* Continue the homepage's dark palette through the final content bands. */
.home-page .around-grounds,
.home-page .fantasy-home-promo {
    background: #0b1112;
    color: #f5f2eb;
    border-top: 1px solid #ffffff14;
    border-bottom: 0;
    padding: 28px 48px;
}
.home-page .around-grounds-header,
.home-page .around-grounds-grid,
.home-page .around-movers,
.home-page .fantasy-home-promo-inner { max-width: 1184px; }
.home-page .around-grounds-header .eyebrow,
.home-page .fantasy-home-promo .fantasy-kicker { color: #d9c89b; }
.home-page .around-grounds-header a { color: #b1b9b3; }
.home-page .around-grounds-header a:hover { color: #d9c89b; }
.home-page .around-item { min-width: 0; background: #151e1d; border-color: #ffffff1a; color: #f5f2eb; }
.home-page .around-item strong,
.home-page .fantasy-home-promo h2 { color: #f5f2eb; }
.home-page .around-item span,
.home-page .fantasy-home-promo p { color: #b1b9b3; }
.home-page .around-item.around-weekend-primary { background: #1c352b; border-color: #d9c89b55; }
.home-page .around-item:hover { border-color: #d9c89b88; }
.home-page .around-movers .mover-up { color: #93c6a3; }
.home-page .around-movers .mover-down { color: #dca5a0; }
.home-discovery .archive-discovery h2 a { text-decoration: none; }
.home-discovery .archive-discovery h2 a:hover { text-decoration: underline; text-underline-offset: 5px; }
.archive-discovery-links { display: flex; flex-wrap: wrap; gap: 12px 28px; margin-top: 20px; }
.home-discovery .archive-discovery-links a { color: #d9c89b; font-size: 12px; text-decoration: none; }
.home-discovery .archive-discovery-links a:hover { text-decoration: underline; }
#cup-bracket { scroll-margin-top: 90px; }
@media (max-width: 760px) {
    .home-page .around-grounds, .home-page .fantasy-home-promo { padding: 24px; }
}
@media (max-width: 480px) {
    .home-page .around-grounds, .home-page .fantasy-home-promo { padding-inline: 18px; }
}

/* Shared audit fixes: disclosure and form feedback use the existing palette. */
.school-next-fixture { margin: 24px 0; border-left: 4px solid var(--gold, #b9985a); }
.school-scoring-details { margin: 0 0 24px; }
.school-scoring-details summary { cursor: pointer; padding: 12px 0; font-weight: 600; }
.form-errors { padding: 12px 16px; border-left: 3px solid #a32929; background: #fff1ec; color: #672121; margin: 12px 0; }
.form-errors a { color: inherit; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .nav-toggle, .site-nav, .nav-group-links { transition: none !important; } }

.interior-page main .explore-links { background: #f3f0e8; color: #244538; padding: 8px 16px; border-bottom: 1px solid #d7d7cc; }
.interior-page main .explore-links a { color: #244538; min-height: 44px; display: inline-flex; align-items: center; text-decoration: underline; }
.school-next-fixture { padding: 20px; }


/* School directory: rugby jersey colours, with readable solid name panels.
   Palette source: Ulster Rugby Schools Contacts (2017/18); see docs/SCHOOL_COLOURS.md. */
.school-directory { gap: 10px; border: 0; }
.school-directory-item {
    --school-primary: #28332f;
    --school-secondary: #66746d;
    --school-third: var(--school-secondary);
    position: relative;
    overflow: hidden;
    isolation: isolate;
    min-height: 100px;
    padding: 18px 56px 18px 16px;
    border: 1px solid rgba(255,255,255,.16);
    border-radius: 10px;
    background: var(--school-primary);
    color: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,.08);
    transition: transform .18s ease, box-shadow .18s ease;
}
.school-directory-item::after {
    content: "";
    position: absolute;
    inset: 0 0 0 auto;
    width: 38px;
    background: repeating-linear-gradient(0deg,
        var(--school-primary) 0 16px,
        var(--school-secondary) 16px 28px,
        var(--school-third) 28px 32px);
    border-left: 1px solid rgba(255,255,255,.2);
    pointer-events: none;
}
.school-directory-item > span { min-width: 0; }
.school-directory-item strong { color: #fff; overflow-wrap: anywhere; }
.school-directory-item small { color: #fff; opacity: .85; }
.school-directory-item .school-logo { background: #fff; }
.school-directory-item .school-badge { background: rgba(255,255,255,.12); color: #fff; border: 1px solid rgba(255,255,255,.4); }
.school-directory-item:hover { background: var(--school-primary); color: #fff; transform: translateY(-2px); box-shadow: 0 5px 12px rgba(0,0,0,.2); }
.school-directory-item:focus-visible { outline: 3px solid #1264a3; outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) {
    .school-directory-item { transition: none; }
    .school-directory-item:hover { transform: none; }
}
.school-directory-item[data-school="ballyclare-high-school"]::after {
    background: conic-gradient(var(--school-primary) 25%, var(--school-secondary) 0 50%, var(--school-primary) 0 75%, var(--school-secondary) 0);
}

/* Display available header crests at badge size without altering source pixels. */
.school-logo[data-school="dromore-high-school"],
.ko-crest[data-school="dromore-high-school"],
.school-directory-item .school-logo[data-school="dromore-high-school"] {
    background: #193b69;
    object-fit: cover;
    object-position: left center;
    padding: 0;
}
.school-logo[data-school="down-high-school"],
.ko-crest[data-school="down-high-school"] {
    object-fit: cover;
    object-position: left center;
    padding: 0;
}
