:root {
    --ink: #0c1720;
    --panel: #13232e;
    --panel2: #182c38;
    --gold: #e5b72e;
    --gold2: #f1cc5c;
    --paper: #f4f1e9;
    --muted: #aebbc2;
    --line: rgba(255,255,255,.1);
    --green: #1f7a52;
    --shadow: 0 18px 45px rgba(0,0,0,.18);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: Arial, Helvetica, sans-serif;
}

.shell {
    width: min(1180px,calc(100% - 36px));
    margin: auto;
}

.site-header {
    background: #09131a;
    color: white;
    position: sticky;
    top: 0;
    z-index: 20;
    border-bottom: 1px solid rgba(229,183,46,.35);
}

.header-inner {
    height: 76px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand {
    display: flex;
    gap: 12px;
    align-items: center;
    color: white;
    text-decoration: none;
}

.brand-mark {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border: 2px solid var(--gold);
    border-radius: 50%;
    font: bold 23px Arial;
    color: var(--gold);
}

.brand strong,
.brand small {
    display: block;
}

.brand strong {
    font-size: 18px;
    letter-spacing: .3px;
}

.brand small {
    font-size: 12px;
    color: var(--gold2);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-top: 2px;
}

.main-nav {
    display: flex;
    gap: 7px;
}

    .main-nav a {
        color: #dce4e8;
        text-decoration: none;
        padding: 11px 13px;
        border-radius: 7px;
        font-size: 14px;
    }

        .main-nav a:hover,
        .main-nav a.active {
            background: rgba(255,255,255,.08);
            color: var(--gold2);
        }

.nav-toggle {
    display: none;
    background: none;
    border: 0;
    color: white;
    font-size: 26px;
}

.hero {
    background: radial-gradient(circle at 78% 30%,#274657 0,#142a36 27%,#0b1922 65%,#071117 100%);
    color: white;
    overflow: hidden;
}

.hero-inner {
    min-height: 285px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
}

    .hero-inner:after {
        content: "";
        position: absolute;
        right: 12%;
        width: 300px;
        height: 235px;
        opacity: .35;
        pointer-events: none;
        background: url("/images/skittles-diamond.png") center / contain no-repeat;
    }

.eyebrow,
.kicker {
    color: var(--gold);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 2px;
}

.page-title {
    margin: 5px 0 0;
    font-size: 34px;
    font-weight: 700;
    line-height: 1.05;
}

.field-label {
    display: block;
    margin-bottom: 8px;
    color: #66706f;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .7px;
    text-transform: uppercase;
}


.page-meta {
    color: #77838a;
    font-size: 12px;
    font-weight: 700;
}


/* Shared information notice */

.info-notice {
    margin: 0 0 18px 0;
    padding: 11px 14px;
    border-left: 4px solid var(--gold);
    background: #faf8f0;
    color: #555;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.45;
    text-align: left;
}

/* Shared content typography */

.section-label {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 1.4px;
    text-transform: uppercase;
    color: var(--gold);
}

.subsection-heading {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 18px;
    font-weight: 700;
}

.item-heading {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 16px;
    font-weight: bold;
}

.content-label {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 14px;
    font-weight: bold;
}

.card-heading {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 22px;
    font-weight: 700;
}

.content-link {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 14px;
    font-weight: 400;
    text-decoration: none;
}

.content-link-white {
    color: white;
}

.content-link-dark {
    color: var(--ink);
}

.content-link-gold {
    color: var(--gold);
}

.content-link:hover {
    text-decoration: underline;
}


.division-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: auto;
    min-height: 27px;
    padding: 4px 9px;
    border-radius: 999px;
    background: #e9edeb;
    color: #47545a;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.1;
    text-transform: uppercase;
    white-space: nowrap;
}

.hero h1 {
    font: 700 clamp(38px,5vw,68px)/.98 Arial, sans-serif;
    margin: 13px 0 17px;
    letter-spacing: -1px;
}

    .hero h1 span {
        color: var(--gold2);
    }

.hero p {
    color: #c7d0d5;
    font-size: 17px;
    margin: 0;
}

.hero-badge {
    position: relative;
    z-index: 2;
    width: 145px;
    height: 145px;
    border: 1px solid rgba(229,183,46,.5);
    border-radius: 50%;
    display: grid;
    place-content: center;
    text-align: center;
    background: rgba(0,0,0,.16);
}

    .hero-badge span {
        font-size: 11px;
        letter-spacing: 2px;
        color: #cbd4d8;
    }

    .hero-badge strong {
        font: 700 24px Arial;
        color: var(--gold2);
        margin-top: 5px;
    }

.demo-strip {
    text-align: center;
    background: #fff1b8;
    color: #5b4800;
    padding: 8px 15px;
    font-size: 12px;
    font-weight: bold;
    letter-spacing: .7px;
}

.ticker {
    background: var(--gold);
    border-bottom: 1px solid #c99a13;
}

.ticker-row {
    height: 49px;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.ticker-controls {
    display: flex;
    align-items: center;
    flex: none;
}

.ticker-label {
    font-size: 12px;
    letter-spacing: 1.4px;
    padding-right: 12px;
    white-space: nowrap;
}

.ticker-window {
    position: relative;
    flex: 1;
    height: 49px;
    overflow: hidden;
    border-left: 1px solid rgba(0,0,0,.2);
}

.ticker-roller {
    position: relative;
    height: 100%;
}

.ticker-result {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    white-space: nowrap;
    font-size: 14px;
    opacity: 0;
    transform: translateY(100%);
}

    .ticker-result.active {
        opacity: 1;
        transform: translateY(0);
    }

    .ticker-result.roll-out {
        opacity: 0;
        transform: translateY(-100%);
        transition: transform .5s ease, opacity .5s ease;
    }

    .ticker-result.roll-in {
        opacity: 1;
        transform: translateY(0);
        transition: transform .5s ease, opacity .5s ease;
    }

    .ticker-result em {
        font-style: normal;
    }

    .ticker-result small {
        background: #101c24;
        color: white;
        padding: 3px 6px;
        border-radius: 3px;
        font-size: 9px;
    }

/* Phone-style ON/OFF switch */

.ticker-switch {
    position: relative;
    width: 38px;
    height: 20px;
    margin: 0 14px 0 0;
    flex: none;
    cursor: pointer;
}

    .ticker-switch input {
        position: absolute;
        opacity: 0;
        width: 0;
        height: 0;
    }

.ticker-switch-slider {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,.35);
    border-radius: 20px;
    transition: background .2s ease;
}

    .ticker-switch-slider::before {
        content: "";
        position: absolute;
        width: 16px;
        height: 16px;
        left: 2px;
        top: 2px;
        background: white;
        border-radius: 50%;
        transition: transform .2s ease;
    }

.ticker-switch input:checked + .ticker-switch-slider {
    background: #173b2b;
}

    .ticker-switch input:checked + .ticker-switch-slider::before {
        transform: translateX(18px);
    }


/* Shared fixture mode and week navigation */

.fixture-mode-buttons {
    display: flex;
    gap: 8px;
    margin: 14px 0 12px 0;
    flex-wrap: wrap;
}

.fixture-mode-button {
    display: inline-block;
    padding: 9px 15px;
    border: 1px solid #d4d8d7;
    border-radius: 6px;
    background: #f3f4f4;
    color: #222;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
}

    .fixture-mode-button.active {
        background: #172b4d;
        border-color: #172b4d;
        color: white !important;
        box-shadow: inset 0 -3px 0 #d6a928;
    }

.week-selector {
    display: grid;
    grid-template-columns: auto minmax(220px, 1fr) auto;
    gap: 8px;
    align-items: center;
    margin-bottom: 16px;
    padding: 10px;
    background: #f5f6f5;
    border: 1px solid #e0e3e2;
    border-radius: 7px;
    max-width: 615px;
}

    .week-selector select {
        width: 100%;
        height: 38px;
        padding: 0 10px;
        border: 1px solid #cbd0ce;
        border-radius: 5px;
        background: white;
        color: #222;
        font-family: Arial, sans-serif;
        font-size: 15px;
        font-weight: 700;
    }

.week-nav {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 92px;
    height: 38px;
    padding: 0 12px;
    border: 1px solid var(--navy);
    border-radius: 5px;
    color: var(--navy);
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}

    .week-nav:hover {
        background: #eef0ef;
        color: var(--navy);
    }

    .week-nav.disabled {
        border-color: #d7dbda;
        color: #a7acab;
        pointer-events: none;
    }

.page-content {
    padding: 34px 0 52px;
}

.quick-grid {
    display: grid;
    grid-template-columns: 1.55fr .85fr;
    gap: 12px;
}

.panel,
.league-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(12,23,32,.08);
    border: 1px solid #e5e0d6;
    overflow: hidden;
}

.panel {
    padding: 24px;
}

.panel-heading,
.section-heading,
.league-title {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 15px;
}

    .panel h2,
    .section-heading h2 {
        font: 700 28px Arial;
        margin: 5px 0 0;
    }

    .panel-heading a {
        color: #596a73;
        font-size: 12px;
        text-decoration: none;
    }

.fixture-list {
    margin-top: 16px;
}

.fixture-row {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 13px 0;
    border-top: 1px solid #ece8df;
}

.date-tile {
    width: 51px;
    height: 55px;
    border-radius: 8px;
    background: var(--ink);
    color: white;
    text-align: center;
    display: grid;
    place-content: center;
    flex: none;
}

    .date-tile strong {
        font-size: 20px;
    }

    .date-tile span {
        font-size: 9px;
        color: var(--gold);
        letter-spacing: 1px;
    }

.fixture-main {
    min-width: 0;
}

    .fixture-main small {
        color: #73818a;
        font-size: 10px;
        font-weight: bold;
        letter-spacing: 1px;
    }

    .fixture-main strong {
        display: block;
        margin: 3px 0;
        font-family: Arial, Helvetica, sans-serif;
        font-size: 14px;
        font-weight: bold;
    }

        .fixture-main strong span {
            color: #89949a;
            font-weight: normal;
            padding: 0 5px;
        }

    .fixture-main p {
        margin: 0;
        color: #7b858b;
        font-size: 12px;
    }

.meeting-panel {
    background: var(--panel);
    color: white;
    border-color: transparent;
    padding: 0;
}

.rhs-section {
    padding: 22px 24px;
    border-top: 1px solid rgba(255,255,255,.12);
}

.rhs-section-first {
    border-top: 0;
}

.rhs-section-title {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 12px;
}

.meeting-panel .kicker,
.meeting-panel .rhs-heading,
.meeting-panel .venue-lookup-label {
    color: var(--gold);
    font-size: 16px;
    font-weight: 800;
    letter-spacing: 1.4px;
    text-transform: uppercase;
}

.rhs-icon,
.rhs-link-icon,
.rhs-button-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: none;
}

.rhs-icon {
    width: 22px;
    height: 22px;
    color: var(--gold);
}

    .rhs-icon svg,
    .rhs-link-icon svg,
    .rhs-button-icon svg {
        width: 100%;
        height: 100%;
        fill: none;
        stroke: currentColor;
        stroke-width: 1.8px;
        stroke-linecap: round;
        stroke-linejoin: round;
    }


.meeting-panel h2 {
    margin-top: 4px;
}

.rhs-meeting {
    color: rgba(255,255,255,.85);
    line-height: 1.5;
    margin: 16px 0 18px;
}

.button-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--gold);
    color: #172028;
    text-decoration: none;
    padding: 11px 14px;
    border-radius: 6px;
    font-weight: bold;
    font-size: 12px;
}

.rhs-button-icon {
    width: 16px;
    height: 16px;
}

.venue-lookup select {
    width: 100%;
    height: 44px;
    padding: 0 12px;
    border: 1px solid rgba(255,255,255,.25);
    border-radius: 5px;
    background: white;
    color: #222;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
}

.rhs-links {
    margin-top: 2px;
}

    .rhs-links a {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        padding: 12px 0;
        border-top: 1px solid rgba(255,255,255,.1);
        color: var(--gold);
        font-family: Arial, Helvetica, sans-serif;
        font-size: 16px;
        font-weight: 400;
        text-decoration: none;
    }

        .rhs-links a:first-child {
            border-top: 0;
        }

.rhs-link-main {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: inherit;
    font: inherit;
    text-decoration: inherit;
}

.rhs-link-icon {
    width: 20px;
    height: 20px;
    color: var(--gold);
}

.rhs-arrow {
    color: var(--gold);
    font-size: 17px;
}

.rhs-links a:hover {
    color: var(--gold2);
}

.section-block {
    margin-top: 38px;
}

.section-heading {
    margin-bottom: 16px;
}

.updated {
    font-size: 12px;
    color: #77838a;
}

.tables-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 22px;
}

.league-title {
    padding: 18px 20px;
    background: var(--panel);
    color: white;
}

    .league-title h3 {
        margin: 0;
    }

    .league-title a:hover {
        text-decoration: underline;
    }

.table-scroll {
    overflow-x: auto;
}

.league-table {
    width: 100%;
    border-collapse: collapse;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 14px;
}

    .league-table th,
    .league-table td,
    .league-table th *,
    .league-table td * {
        font-family: Arial, Helvetica, sans-serif;
    }

    .league-table th {
        background: #edf0ef;
        color: #66737a;
        font-size: 12px;
        font-weight: bold;
        text-transform: uppercase;
        letter-spacing: 0;
        padding: 10px 9px;
        text-align: right;
    }

        .league-table th:nth-child(3) {
            text-align: left;
        }

        .league-table th:nth-child(1),
        .league-table td:nth-child(1) {
            width: 38px;
            padding-left: 5px;
            padding-right: 5px;
            text-align: center;
        }

        .league-table th:nth-child(2),
        .league-table td:nth-child(2),
        .league-table th:nth-child(4),
        .league-table td:nth-child(4),
        .league-table th:nth-child(5),
        .league-table td:nth-child(5),
        .league-table th:nth-child(6),
        .league-table td:nth-child(6) {
            width: 50px;
        }

    .league-table td {
        padding: 6px 9px;
        border-top: 1px solid #eceae5;
        text-align: right;
    }

        .league-table td.team {
            text-align: left;
            font-weight: bold;
        }

.position {
    display: inline-grid;
    place-items: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #e8ecea;
}

.league-table tbody tr:first-child .position {
    background: var(--gold);
    font-weight: bold;
}

.points {
    font-weight: bold;
    color: #12613e;
}

.lower-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 22px;
    margin-top: 30px;
}

.cup-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 0;
    border-top: 1px solid #ece8df;
}

    .cup-row:first-of-type {
        margin-top: 15px;
    }

    .cup-row strong,
    .cup-row small {
        display: block;
    }

    .cup-row small {
        color: #7b858b;
        margin-top: 3px;
    }

    .cup-row span {
        font-size: 12px;
        color: #566770;
    }

.panel:not(.meeting-panel) > p {
    color: #64747c;
    line-height: 1.5;
}

.empty {
    color: #748087;
}

.site-footer {
    background: #081219;
    color: #9eabb2;
    padding: 24px 0;
    font-size: 12px;
}

.footer-inner {
    display: flex;
    justify-content: space-between;
}



@media(max-width:850px) {
        .league-table tbody tr:nth-child(n+4) {
            display: none;
        }
        .page-content {
            display: grid;
            grid-template-columns: 1fr;
            gap: 30px;
        }

        .quick-grid {
            display: contents;
        }

        .next-panel {
            order: 1;
        }

        #tables {
            order: 2;
            margin-top: 0;
        }

        .meeting-panel {
            order: 3;
        }

        .lower-grid {
            order: 4;
        }
        .week-selector {
            grid-template-columns: 1fr;
        }

        .week-selector {
            grid-template-columns: 90px minmax(0, 1fr) 90px;
        }

        .nav-toggle {
            display: block;
        }

        .main-nav {
            display: none;
            position: absolute;
            top: 76px;
            left: 0;
            right: 0;
            background: #0b1720;
            padding: 10px 18px 18px;
            flex-direction: column;
        }

            .main-nav.open {
                display: flex;
            }

        .hero-inner {
            min-height: 245px;
        }

        .hero-badge {
            display: none;
        }

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

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

        .hero-inner:after {
            right: -5%;
            width: 220px;
            height: 190px;
            opacity: .08;
        }
    }

@media(max-width:560px) {
    .page-title {
        font-size: 29px;
    }

    .shell {
        width: min(100% - 22px,1180px);
    }

    .header-inner {
        height: 66px;
    }

    .main-nav {
        top: 66px;
    }

    .brand strong {
        font-size: 16px;
    }

    .hero-inner {
        min-height: 225px;
    }

    .hero h1 {
        font-size: 39px;
    }

    .hero p {
        font-size: 14px;
        max-width: 300px;
    }

    .ticker-row {
        height: 45px;
    }

    .ticker-label {
        padding-right: 12px;
        font-size: 10px;
    }

    .ticker-result {
        padding: 0 17px;
    }

    .page-content {
        padding-top: 22px;
    }

    .panel {
        padding: 19px;
    }

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

    .league-table {
        min-width: 0;
        table-layout: fixed;
    }

    .league-table th:nth-child(3),
    .league-table td:nth-child(3) {
        width: auto;
    }

    .league-table th:nth-child(4),
    .league-table td:nth-child(4),
    .league-table th:nth-child(5),
    .league-table td:nth-child(5) {
        width: 34px;
    }

    .league-table th:nth-child(6),
    .league-table td:nth-child(6) {
        width: 48px;
    }

    .section-heading h2,
    .panel h2 {
        font-size: 25px;
    }

    .footer-inner {
        gap: 8px;
        flex-direction: column;
    }
}

@media(prefers-reduced-motion:reduce) {
    html {
        scroll-behavior: auto;
    }

    .ticker-track {
        animation: none;
    }
}

.season-end-events {
    margin-top: 0;
}

.season-end-heading {
    margin: 18px 0 12px;
    padding: 7px 9px;
    border-left: 4px solid var(--gold);
    background: rgba(255,255,255,.05);
    font-size: 16px;
    font-weight: 700;
    line-height: 1.2;
}

.season-end-item {
    margin-bottom: 16px;
    line-height: 1.35;
}

    .season-end-item:last-child {
        margin-bottom: 0;
    }

    .season-end-item > div {
        font-size: 15px;
        font-weight: 400;
        opacity: .85;
    }

    .season-end-item strong {
        display: block;
        margin-bottom: 3px;
        font-size: 16px;
        font-weight: 700;
    }

.season-end-detail {
    margin: 0;
    font-size: 15px;
    font-weight: 400;
    line-height: 1.3;
    opacity: .85;
}

.team-stats-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 22px;
    padding: 3px;
    border: 1px solid #d4d8d7;
    border-radius: 6px;
    background: #f3f4f4;
    color: #34454f;
    text-decoration: none;
}

    .team-stats-link:hover {
        background: #e8ebea;
    }

    .team-stats-link svg {
        width: 14px;
        height: 14px;
        fill: none;
        stroke: currentColor;
        stroke-width: 1.8;
        stroke-linecap: round;
        stroke-linejoin: round;
    }

/* =====================================================
   FOLD / TABLET PORTRAIT HOMEPAGE
   ===================================================== */

@media (min-width:851px) and (max-width:1100px) and (orientation:portrait) {
    .page-content {
        display: grid;
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .quick-grid {
        display: contents;
    }

    .next-panel {
        order: 1;
    }

    #tables {
        order: 2;
        margin-top: 0;
    }

    .lower-grid {
        order: 3;
        margin-top: 0;
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }

    .meeting-panel {
        order: 4;
        display: grid;
        grid-template-columns: 1fr 1fr;
        align-items: start;
    }

        .meeting-panel .rhs-section {
            min-width: 0;
            border-top: 1px solid rgba(255,255,255,.12);
        }

            .meeting-panel .rhs-section:nth-child(2n) {
                border-left: 1px solid rgba(255,255,255,.12);
            }

        .meeting-panel .rhs-section-first {
            border-top: 0;
        }

        .meeting-panel .season-end-events {
            grid-column: 1 / -1;
            border-left: 0 !important;
        }

    .rhs-meeting {
        white-space: nowrap;
    }

    .tables-grid {
        grid-template-columns: minmax(0,1fr) minmax(0,1fr);
        gap: 12px;
    }

    .league-card {
        min-width: 0;
    }

    .table-scroll {
        overflow-x: hidden;
    }

    .league-table {
        width: 100%;
        min-width: 0;
        table-layout: fixed;
        font-size: 13px;
    }

        .league-table th,
        .league-table td {
            padding-left: 5px;
            padding-right: 5px;
        }

            .league-table th:nth-child(1),
            .league-table td:nth-child(1) {
                width: 26px;
                padding-left: 1px;
                padding-right: 2px;
            }

            .league-table th:nth-child(2),
            .league-table td:nth-child(2) {
                width: 30px;
            }

            .league-table th:nth-child(3),
            .league-table td:nth-child(3) {
                width: auto;
            }

            .league-table th:nth-child(4),
            .league-table td:nth-child(4),
            .league-table th:nth-child(5),
            .league-table td:nth-child(5) {
                width: 28px;
            }

            .league-table th:nth-child(6),
            .league-table td:nth-child(6) {
                width: 38px;
            }

            .league-table td.team {
                white-space: nowrap;
                overflow: hidden;
                text-overflow: ellipsis;
            }

    .league-title {
        padding: 14px 12px;
    }

    .cup-competition-item p {
        max-width: none;
        width: 100%;
        line-height: 1.3;
    }

    .lower-grid .panel {
        min-width: 0;
    }

}
