@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=IBM+Plex+Mono:wght@500;600&family=Playfair+Display:wght@600;700;800&display=swap');

* {
    box-sizing: border-box;
}

:root {
    --bg: #f3f1ea;
    --panel: #f7f5f1;
    --white: #ffffff;
    --ink: #111111;
    --muted: #5a5a54;
    --line: rgba(17, 17, 17, 0.08);
    --green: #183a2a;
    --green-soft: #dfeee3;
    --gold: #b98b3d;
    --archive: #f0e7d3;
    --archive-deep: #4a3f2d;
    --nav: #101311;
    --shadow: 0 18px 40px rgba(17, 17, 17, 0.10);
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body a {
    color: inherit;
}

body > header {
    background: var(--nav);
    color: white;
}

.home-hero {
    display: grid;
    grid-template-columns: 1.4fr 0.8fr;
    gap: 28px;
    align-items: stretch;
    margin-top: 18px;
    padding: 26px 0 0;
}

.hero-copy {
    background: linear-gradient(135deg, rgba(17, 19, 17, 0.96), rgba(24, 58, 42, 0.96));
    color: white;
    border-radius: 28px;
    padding: 42px 38px 36px;
    box-shadow: var(--shadow);
}

.hero-copy .eyebrow {
    color: rgba(255, 255, 255, 0.72);
}

.hero-copy h1 {
    margin: 0;
    font-size: clamp(42px, 6vw, 84px);
    line-height: 0.94;
    letter-spacing: -4px;
}

.hero-copy h1 span {
    display: block;
    color: #d9c89b;
}

.hero-text {
    max-width: 540px;
    margin-top: 18px;
    font-size: 18px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.8);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 20px;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 700;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn-primary {
    background: #f3d6a0;
    color: #111;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.08);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.22);
}

.hero-brief {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 28px;
    padding: 26px 24px;
    box-shadow: var(--shadow);
}

.brief-header h3 {
    margin: 0;
    font-size: clamp(26px, 3vw, 34px);
    line-height: 1.1;
    letter-spacing: -1px;
}

.dark {
    color: #5d5f5d !important;
}

.brief-list {
    list-style: none;
    padding: 0;
    margin: 28px 0 0;
    display: grid;
    gap: 16px;
}

.brief-list li {
    padding: 16px 14px 14px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--panel);
}

.brief-label {
    display: block;
    font-size: 11px;
    letter-spacing: 0.12em;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 6px;
}

.brief-list strong {
    font-size: 18px;
    font-weight: 700;
}

.home-feature-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    margin-top: 28px;
}

.feature-card {
    display: block;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 24px;
    padding: 28px 24px 22px;
    text-decoration: none;
    color: inherit;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 24px rgba(17, 17, 17, 0.04);
}

.feature-card::after {
    content: "";
    position: absolute;
    inset: auto 0 0 0;
    height: 4px;
    background: rgba(17, 17, 17, 0.12);
}

.current-feature {
    background: linear-gradient(135deg, #eef7f0, #e3f1e3);
}

.archive-feature {
    background: linear-gradient(135deg, #f8f3eb, #efe5d1);
}

.feature-card h2 {
    margin: 10px 0 12px;
    font-size: clamp(28px, 2.9vw, 40px);
    letter-spacing: -1.5px;
}

.feature-card p {
    margin: 0;
    color: var(--muted);
    line-height: 1.6;
}

.feature-link {
    display: inline-block;
    margin-top: 18px;
    font-weight: 700;
    color: var(--ink);
}

.home-meta-strip {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-top: 26px;
    padding: 18px 20px;
    background: var(--nav);
    color: white;
    border-radius: 16px;
    max-width: 500px;
}

.home-meta-strip p,
.home-meta-strip span {
    margin: 0;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.home-meta-strip span {
    color: #d9c89b;
}

/* Homepage publication layout — toggle shown via shared mobile rules */
.home-page .nav-toggle {
    display: none;
}


.home-page header {
    position: relative;
    z-index: 10;
    background: rgba(8, 13, 14, 0.98);
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.home-page .container {
    max-width: none;
    padding: 0;
}

.home-page .nav-container {
    max-width: 1280px;
    min-height: 64px;
    padding: 8px 32px;
}

.home-page .brand {
    display: flex;
    align-items: center;
    gap: 13px;
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 21px;
    font-weight: 700;
}

.brand-shield {
    display: block;
    width: 44px;
    height: 44px;
    object-fit: contain;
    flex-shrink: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
}

.brand-copy {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.brand-name {
    line-height: 1;
}

.brand-tagline {
    color: #bbbdb8;
    font-family: 'DM Sans', sans-serif;
    font-size: 8px;
    font-weight: 600;
    letter-spacing: 0.38em;
    text-transform: uppercase;
}

.home-page nav {
    align-items: center;
    gap: 34px;
}

.home-page nav a {
    position: relative;
    padding: 22px 0 18px;
    color: #b9bcb8;
    font-size: 13px;
}

.home-page nav a:first-child {
    color: white;
}

.home-page nav a:first-child::after {
    content: '';
    position: absolute;
    right: 0;
    bottom: 11px;
    left: 0;
    height: 2px;
    background: #e7e0d0;
}

.search-mark {
    width: 14px;
    height: 14px;
    border: 2px solid #e2e3df;
    border-radius: 50%;
    position: relative;
    margin-left: 4px;
}

.search-mark::after {
    content: '';
    position: absolute;
    right: -5px;
    bottom: -3px;
    width: 6px;
    height: 2px;
    background: #e2e3df;
    transform: rotate(48deg);
}

.home-page .home-hero {
    position: relative;
    display: flex;
    min-height: 648px;
    margin: 0;
    padding: 72px max(5.3vw, 48px) 108px;
    align-items: flex-start;
    background-image: linear-gradient(rgba(7, 16, 16, 0.62), rgba(7, 14, 15, 0.9)), url('https://www.newsletter.co.uk/webimg/TUFZMTM3NDAxODE0.jpg?crop=3:2,smart&trim=&width=1800&quality=78');
    background-position: center;
    background-size: auto;
    isolation: isolate;
}

.home-page .home-hero::before {
    content: '';
    position: absolute;
    z-index: -2;
    inset: 0;
    background: linear-gradient(180deg, rgba(7, 12, 16, 0.30) 0%, rgba(7, 13, 14, 0.17) 32%, rgba(7, 13, 14, 0.88) 100%);
}

.home-page .home-hero::after {
    content: '';
    position: absolute;
    z-index: -1;
    inset: 0;
    background: linear-gradient(90deg, rgba(6, 12, 14, 0.14), transparent 65%, rgba(5, 10, 12, 0.52));
}

.hero-overlay {
    display: none;
}

.home-page .hero-headline {
    position: relative;
    z-index: 1;
    width: min(920px, 78%);
    margin: 0 auto;
    text-align: left;
}

.home-page .hero-headline .eyebrow {
    display: none;
}

.home-page .hero-headline h1 {
    margin: 0;
    color: #fbfaf7;
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(42px, 5vw, 68px);
    font-weight: 700;
    line-height: 0.98;
    letter-spacing: -2px;
    text-shadow: 0 2px 18px rgba(0, 0, 0, 0.3);
}

.home-page .hero-headline h1 span {
    color: #fbfaf7;
}

.home-page .hero-text {
    margin: 18px 0 0 9%;
    color: rgba(255, 255, 255, 0.85);
    font-size: 17px;
    line-height: 1.35;
}

.hero-side-note {
    position: absolute;
    top: 67px;
    right: max(5.3vw, 48px);
    margin: 0;
    color: rgba(255, 255, 255, 0.68);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.34em;
    line-height: 2.45;
    text-transform: uppercase;
}

.home-page .home-feature-grid {
    position: absolute;
    right: max(5.3vw, 48px);
    bottom: -1px;
    left: max(5.3vw, 48px);
    z-index: 2;
    display: grid;
    grid-template-columns: 1.08fr 0.92fr;
    gap: 14px;
    margin: 0;
}

.home-page .feature-card {
    position: relative;
    min-height: 221px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.38);
    border-radius: 9px;
    color: white;
    overflow: hidden;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.22);
    transition: transform 0.25s ease, border-color 0.25s ease;
}

.home-page .feature-card:hover {
    border-color: rgba(255, 255, 255, 0.78);
    transform: translateY(-4px);
}

.current-feature,
.archive-feature {
    background-position: center;
    background-size: cover;
}

.current-feature {
    background-image: url('https://cdn.ulster.rugby/sites/default/files/styles/cc_960x720/public/archive/82dcc8ce-d434-46da-9a30-54b043d78acd.jpg?itok=11KZ9Kjo');
    border-width: 2px !important;
}

.archive-feature {
    background-image: url('https://www.irishtimes.com/resizer/v2/YS2AL26XZ6S6J7ZXKX5V2DEDKY.jpg?auth=708c5159d0f3712906e192165eecc6990ed8d4425f98716eba1595c57e9fb985&smart=true&width=1200&height=800');
    opacity: 0.92;
}

.feature-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(105deg, rgba(7, 31, 21, 0.9), rgba(5, 19, 14, 0.25));
}

.archive-feature .feature-shade {
    background: linear-gradient(105deg, rgba(38, 31, 23, 0.86), rgba(31, 26, 21, 0.29));
}

.feature-content {
    position: relative;
    z-index: 1;
    padding: 25px 30px 23px;
}

.home-page .feature-card .eyebrow {
    margin: 0;
    color: #e4e8dc;
    font-size: 10px;
    letter-spacing: 0.3em;
}

.archive-feature .eyebrow {
    color: #f0ddac;
}

.feature-rule {
    display: block;
    width: 44px;
    height: 3px;
    margin: 10px 0 10px;
    background: #a5db99;
}

.archive-feature .feature-rule {
    background: #ddc077;
}

.home-page .feature-card h2 {
    margin: 0 0 8px;
    color: white;
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(26px, 3vw, 34px);
    letter-spacing: -1px;
}

.home-page .feature-card p {
    color: rgba(255, 255, 255, 0.87);
    font-size: 14px;
    line-height: 1.45;
}

.feature-arrow {
    display: grid;
    place-items: center;
    width: 43px;
    height: 43px;
    margin-top: 12px;
    border-radius: 50%;
    background: #2b725b;
    color: white;
    font-size: 24px;
    line-height: 1;
}

.archive-feature .feature-arrow {
    background: #b39255;
}

.home-utility-strip {
    display: flex;
    justify-content: center;
    gap: 0;
    padding: 30px max(5.3vw, 48px) 27px;
    background: #0b1112;
}

.utility-item {
    display: flex;
    align-items: center;
    gap: 13px;
    min-width: 178px;
    padding: 0 28px;
    border-right: 1px solid rgba(255, 255, 255, 0.12);
    color: white;
    text-decoration: none;
}

.utility-item:first-child {
    padding-left: 0;
}

.utility-item:last-child {
    border-right: 0;
}

.utility-icon {
    width: 29px;
    color: #f3f1e9;
    font-family: Georgia, serif;
    font-size: 28px;
    line-height: 1;
    text-align: center;
}

.utility-item strong,
.utility-item small {
    display: block;
}

.utility-item strong {
    font-size: 10px;
    letter-spacing: 0.19em;
    text-transform: uppercase;
}

.utility-item small {
    margin-top: 6px;
    color: #aeb3af;
    font-size: 10px;
}

.home-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 22px max(5.3vw, 48px) 25px;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    background: #0b1112;
    color: #aaaead;
}

.home-footer-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.home-footer-logo {
    width: 36px;
    height: 36px;
    object-fit: contain;
    flex-shrink: 0;
}

.home-footer p,
.home-footer small {
    display: block;
    margin: 0;
    text-transform: uppercase;
}

.home-footer p {
    font-size: 9px;
    letter-spacing: 0.32em;
}

.home-footer small {
    margin-top: 9px;
    color: #737a76;
    font-size: 8px;
    letter-spacing: 0.29em;
}

.home-source-links {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
    gap: 7px 12px;
    max-width: 430px;
    font-size: 8px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.home-source-links span {
    color: #737a76;
}

.home-source-links a {
    color: #aeb3af;
    text-decoration: none;
}

.home-source-links a:hover {
    color: white;
}

@media (max-width: 820px) {
    .home-page .home-hero {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        min-height: 0;
        padding: 40px 24px 28px;
        gap: 28px;
    }

    .home-page .hero-headline {
        position: relative;
        z-index: 1;
        width: 100%;
        max-width: 100%;
        margin: 0;
    }

    .home-page .hero-headline h1 {
        font-size: clamp(36px, 9vw, 56px);
    }

    .home-page .hero-text {
        margin-left: 0;
        margin-top: 14px;
        max-width: 36rem;
    }

    .hero-side-note {
        display: none;
    }

    .home-page .home-feature-grid {
        position: relative;
        inset: auto;
        right: auto;
        bottom: auto;
        left: auto;
        z-index: 1;
        width: 100%;
        margin: 0;
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }

    .home-page .feature-card {
        min-height: 180px;
    }

    .home-page .feature-card:hover {
        transform: none;
    }

    .home-utility-strip {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 0;
        padding: 8px 12px 18px;
    }

    .utility-item,
    .utility-item:first-child {
        min-width: 0;
        padding: 14px 12px;
        border-right: 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    }

    .utility-item:nth-child(odd) {
        border-right: 1px solid rgba(255, 255, 255, 0.08);
    }

    .around-grounds-header {
        flex-wrap: wrap;
        gap: 8px 16px;
    }

    .around-grounds-grid {
        grid-template-columns: 1fr 1fr;
    }

    .fantasy-home-promo {
        padding: 28px 24px;
    }
}

@media (max-width: 560px) {
    .home-page .nav-container {
        padding: 8px 16px;
    }

    .home-page .brand {
        font-size: 16px;
        max-width: calc(100% - 56px);
    }

    .brand-shield {
        width: 36px;
        height: 36px;
    }

    .home-page .brand-tagline {
        font-size: 6px;
        letter-spacing: 0.18em;
    }

    .search-mark {
        display: none;
    }

    .home-page .home-hero {
        min-height: 0;
        padding: 28px 16px 22px;
        gap: 22px;
        background-size: cover;
        background-position: 62% center;
    }

    .home-page .hero-headline h1 {
        font-size: clamp(32px, 10vw, 44px);
        letter-spacing: -1px;
    }

    .home-page .hero-text {
        margin-left: 0;
        font-size: 15px;
        line-height: 1.45;
    }

    .desktop-only {
        display: none;
    }

    .home-page .home-feature-grid {
        position: relative;
        inset: auto;
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .home-page .feature-card {
        min-height: 148px;
    }

    .feature-content {
        padding: 18px 18px 16px;
    }

    .home-page .feature-card h2 {
        font-size: 22px;
    }

    .home-page .feature-card p {
        font-size: 12px;
        max-width: none;
    }

    .feature-arrow {
        width: 34px;
        height: 34px;
        font-size: 18px;
    }

    .home-utility-strip {
        grid-template-columns: 1fr;
        padding: 4px 0 12px;
    }

    .utility-item,
    .utility-item:first-child,
    .utility-item:nth-child(odd) {
        border-right: 0;
        padding: 14px 16px;
    }

    .around-grounds {
        padding: 24px 16px 28px;
    }

    .around-grounds-grid {
        grid-template-columns: 1fr;
    }

    .around-item {
        min-height: 0;
        padding: 14px 14px 16px;
    }

    .fantasy-home-promo {
        padding: 24px 16px;
    }

    .home-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
        padding: 20px 16px 24px;
    }

    .home-source-links {
        flex-wrap: wrap;
        gap: 10px 14px;
    }
}

.nav-container {
    max-width: 1150px;
    margin: auto;
    padding: 18px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand {
    color: white;
    font-weight: 800;
    font-size: 20px;
    text-decoration: none;
}

nav {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}

nav a {
    color: #bbb;
    text-decoration: none;
}

nav a:hover {
    color: white;
}

.container {
    max-width: 1050px;
    margin: auto;
    padding: 40px 24px 80px;
}

.hero {
    padding: 70px 0 65px;
    max-width: 800px;
}

.hero h1 {
    margin: 0;
    font-size: clamp(42px, 7vw, 76px);
    line-height: 0.98;
    letter-spacing: -3px;
}

.hero-text {
    font-size: 20px;
    color: #666;
    max-width: 570px;
}

.eyebrow {
    font-size: 12px;
    letter-spacing: 2px;
    font-weight: 800;
    color: #66736a;
}

.section-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 45px;
}

.section-heading a {
    color: #444;
}

.match-list {
    display: grid;
    gap: 10px;
}

.match-card {
    display: block;
    background: white;
    border: 1px solid #e4e4e4;
    border-radius: 12px;
    padding: 18px 20px;
    color: inherit;
    text-decoration: none;
}

.match-card:hover {
    border-color: #aaa;
}

.match-meta {
    font-size: 13px;
    color: #777;
    margin-bottom: 12px;
}

.teams,
.result-row {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 20px;
    align-items: center;
}

.result-row a {
    color: inherit;
    text-decoration: none;
}

.result-row a:hover {
    text-decoration: underline;
}

.right {
    text-align: right;
}

.versus {
    color: #888;
}

.venue,
.comments {
    font-size: 13px;
    color: #777;
    margin-top: 10px;
}

.date-heading {
    margin-top: 35px;
}

.school-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 12px;
}

.school-card {
    background: white;
    border: 1px solid #e4e4e4;
    border-radius: 12px;
    padding: 18px;
    display: flex;
    gap: 14px;
    align-items: center;
    color: inherit;
    text-decoration: none;
}

.school-badge,
.big-school-badge,
.school-badge-sm,
.school-badge-md,
.school-badge-lg {
    display: grid;
    place-items: center;
    background: #1a1f1a;
    color: #f3efe6;
    font-family: "IBM Plex Mono", "SF Mono", Consolas, monospace;
    font-weight: 600;
    letter-spacing: 0.02em;
    line-height: 1;
    text-transform: none;
    flex-shrink: 0;
    border: 1px solid #2c332c;
}

.school-badge[data-len="4"],
.school-badge-sm[data-len="4"],
.school-badge-md[data-len="4"],
.school-badge-lg[data-len="4"] {
    letter-spacing: -0.02em;
}

.school-badge,
.school-badge-sm {
    min-width: 44px;
    height: 32px;
    padding: 0 8px;
    border-radius: 6px;
    font-size: 11px;
}

.school-badge-md {
    min-width: 52px;
    height: 36px;
    padding: 0 10px;
    border-radius: 7px;
    font-size: 12px;
}

.big-school-badge,
.school-badge-lg {
    min-width: 88px;
    height: 56px;
    padding: 0 14px;
    border-radius: 10px;
    font-size: 18px;
}

.school-logo {
    display: block;
    object-fit: contain;
    background: #fff;
    border: 1px solid #e6e2d8;
    flex-shrink: 0;
}

.school-logo-sm {
    width: 40px;
    height: 32px;
    border-radius: 6px;
    padding: 3px;
}

.school-logo-md {
    width: 48px;
    height: 36px;
    border-radius: 7px;
    padding: 4px;
}

.school-logo-lg {
    width: 88px;
    height: 72px;
    border-radius: 10px;
    padding: 8px;
}

.school-hero-mark {
    flex-shrink: 0;
}

.school-card .school-logo,
.school-card .school-badge,
.school-card .school-badge-sm,
.school-card .school-badge-md {
    margin: 0;
}

.school-header {
    display: flex;
    gap: 20px;
    align-items: center;
    margin-bottom: 30px;
}

.school-header h1 {
    margin: 0;
}

.stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    background: white;
    border: 1px solid #e4e4e4;
    border-radius: 12px;
    margin-bottom: 40px;
}

.stats div {
    padding: 20px;
    text-align: center;
}

.stats strong {
    display: block;
    font-size: 28px;
}

.stats span {
    color: #777;
    font-size: 13px;
}

.team-selector {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 18px;
}

.team-selector a {
    padding: 9px 14px;
    border: 1px solid #d8ddd9;
    border-radius: 8px;
    color: #303630;
    text-decoration: none;
    background: white;
}

.team-selector a.selected,
.team-selector a:hover {
    background: #151815;
    border-color: #151815;
    color: white;
}

.update-warning {
    margin: 0 0 24px;
    padding: 12px 14px;
    border-left: 4px solid #c98a2e;
    background: #fff8eb;
    color: #654719;
    font-size: 14px;
}

.home-hero {
    max-width: none;
    padding-top: 40px;
}

.home-cta-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    margin-top: 8px;
}

.cta-panel {
    display: block;
    background: white;
    border: 1px solid #dfe4df;
    border-radius: 18px;
    padding: 28px 24px;
    text-decoration: none;
    box-shadow: 0 8px 24px rgba(17, 17, 17, 0.04);
}

.current-panel {
    background: linear-gradient(135deg, #f5f9f4, #edf6ee);
}

.archive-panel {
    background: linear-gradient(135deg, #f8f5ee, #f2ead8);
}

.cta-panel h2 {
    margin: 8px 0 12px;
    font-size: clamp(28px, 4vw, 40px);
}

.cta-panel p {
    margin: 0;
    line-height: 1.6;
    color: #505a52;
}

.mini-note {
    margin-top: 26px;
    padding: 18px 20px;
    background: #101311;
    color: white;
    border-radius: 12px;
    max-width: 500px;
}

.section-header {
    margin-bottom: 22px;
}

.section-header h1 {
    margin: 0;
    font-size: clamp(32px, 5vw, 52px);
}

.subnav {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0 0 26px;
}

.subnav a {
    padding: 8px 12px;
    border: 1px solid #dfe3df;
    border-radius: 999px;
    background: white;
    text-decoration: none;
    color: #2f3432;
}

.subnav a.selected,
.subnav a:hover {
    background: #101311;
    color: white;
    border-color: #101311;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    margin-bottom: 22px;
}

.panel {
    background: white;
    border: 1px solid #e4e4e4;
    border-radius: 14px;
    padding: 20px;
    margin-bottom: 20px;
}

.panel-large {
    min-height: 300px;
}

.panel-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.panel-heading h2 {
    margin: 0;
}

.panel-heading a {
    color: #414641;
    text-decoration: none;
}

.list-row {
    padding: 12px 0;
    border-top: 1px solid #eef0ef;
}

.meta-line {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #697369;
    margin-bottom: 6px;
}

.score {
    margin: 0 10px;
    font-weight: 700;
}

.empty-state {
    color: #666;
}

.compact-grid {
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
}

.competition-list {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.competition-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 18px;
    border-radius: 999px;
    background: #edf3ee;
    color: #1a1f1b;
    text-decoration: none;
    font-weight: 600;
}

.archive-hero {
    padding: 20px 0 12px;
}

.archive-lead {
    font-size: 18px;
    color: #4e574f;
    max-width: 700px;
    line-height: 1.6;
}

.archive-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 18px;
}

.archive-card {
    display: block;
    background: white;
    border: 1px solid #e5e1d8;
    border-radius: 16px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
}

.archive-card-visual {
    height: 140px;
    background: linear-gradient(135deg, #4f573b, #bca36a);
    color: white;
    display: grid;
    place-items: center;
    font-size: 28px;
    font-weight: 800;
}

.archive-card-visual-small {
    height: 100px;
    font-size: 18px;
}

.archive-card-body {
    padding: 18px 16px 20px;
}

.archive-card-body h3 {
    margin: 0 0 8px;
    font-size: 22px;
}

.archive-card-body p {
    margin: 0;
    color: #4d564f;
    line-height: 1.5;
}

.archive-meta {
    color: #786b43;
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 10px !important;
}

.archive-header {
    margin-bottom: 12px;
}

.archive-nav {
    margin-top: 10px;
}

.archive-list .archive-card {
    border-color: #e5e4dd;
}

.table-header-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.table-title-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    margin-top: 6px;
}

.table-title-row h1 {
    margin: 0;
}

.table-note {
    margin: 10px 0 0;
    font-size: 14px;
    color: #6b726c;
}

.season-select {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: white;
    border: 1px solid #dfe3df;
    border-radius: 999px;
    padding: 8px 14px;
}

.season-select label {
    font-size: 11px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #697369;
    font-weight: 700;
}

.season-select select {
    border: 0;
    background: transparent;
    font: inherit;
    font-weight: 700;
    color: #101311;
    cursor: pointer;
    max-width: min(280px, 70vw);
}

.scoring-help {
    position: relative;
}

.scoring-help-trigger {
    border: 0;
    background: transparent;
    color: #183a2a;
    font: inherit;
    font-size: 14px;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
    cursor: pointer;
    padding: 0;
}

.scoring-popover {
    position: absolute;
    right: 0;
    top: calc(100% + 10px);
    z-index: 20;
    width: min(240px, 78vw);
    background: white;
    border: 1px solid #e4e4e4;
    border-radius: 12px;
    box-shadow: var(--shadow);
    padding: 12px 14px;
}

.scoring-popover p {
    margin: 0 0 6px;
    color: #2f3432;
    font-size: 13px;
    line-height: 1.4;
}

.scoring-popover-note {
    margin-top: 8px !important;
    padding-top: 8px;
    border-top: 1px solid #eef0ef;
    color: #697369 !important;
    font-size: 12px !important;
}

.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);
}

.standings-scroll {
    overflow-x: auto;
}

.standings-table {
    width: 100%;
    border-collapse: collapse;
    font-family: "DM Sans", system-ui, sans-serif;
    font-variant-numeric: tabular-nums;
    font-size: 14px;
}

.standings-table th,
.standings-table td {
    padding: 13px 11px;
    text-align: center;
    white-space: nowrap;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    vertical-align: middle;
}

.standings-table tbody tr:last-child td {
    border-bottom: 0;
}

.standings-table thead th {
    background: #183a2a;
    color: rgba(244, 241, 234, 0.72);
    font-size: 11px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-weight: 700;
}

.standings-table thead th.has-tip {
    position: relative;
    cursor: default;
}

.standings-table thead th.has-tip::after {
    content: attr(data-tip);
    position: absolute;
    left: 50%;
    top: calc(100% + 8px);
    transform: translateX(-50%) translateY(-4px);
    padding: 7px 10px;
    border-radius: 8px;
    background: #f4f1ea;
    color: #1a1f1b;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.01em;
    text-transform: none;
    white-space: nowrap;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.28);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.12s ease, transform 0.12s ease, visibility 0.12s ease;
    z-index: 40;
}

.standings-table thead th.has-tip::before {
    content: "";
    position: absolute;
    left: 50%;
    top: calc(100% + 2px);
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-bottom-color: #f4f1ea;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.12s ease, visibility 0.12s ease;
    z-index: 40;
}

.standings-table thead th.has-tip:hover::after,
.standings-table thead th.has-tip:focus-visible::after {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.standings-table thead th.has-tip:hover::before,
.standings-table thead th.has-tip:focus-visible::before {
    opacity: 1;
    visibility: visible;
}

.standings-table thead th.has-tip.tip-start::after {
    left: 0;
    transform: translateX(0) translateY(-4px);
}

.standings-table thead th.has-tip.tip-start::before {
    left: 14px;
    transform: none;
}

.standings-table thead th.has-tip.tip-start:hover::after,
.standings-table thead th.has-tip.tip-start:focus-visible::after {
    transform: translateX(0) translateY(0);
}

.standings-table thead th.has-tip.tip-end::after {
    left: auto;
    right: 0;
    transform: translateX(0) translateY(-4px);
}

.standings-table thead th.has-tip.tip-end::before {
    left: auto;
    right: 14px;
    transform: none;
}

.standings-table thead th.has-tip.tip-end:hover::after,
.standings-table thead th.has-tip.tip-end:focus-visible::after {
    transform: translateX(0) translateY(0);
}

.standings-table .col-pos {
    width: 64px;
    color: rgba(244, 241, 234, 0.55);
    position: sticky;
    left: 0;
    z-index: 2;
    background: #101311;
    padding-left: 16px;
    padding-right: 8px;
}

.standings-table thead .col-pos {
    background: #183a2a;
    z-index: 3;
}

.standings-table .col-team {
    text-align: left;
    padding-left: 10px;
    padding-right: 20px;
    min-width: 230px;
    position: sticky;
    left: 64px;
    background: #101311;
    z-index: 2;
    font-weight: 600;
}

.standings-table thead .col-team {
    background: #183a2a;
    z-index: 3;
}

.standings-table .team-name {
    font-family: "Playfair Display", Georgia, serif;
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #f7f4ec;
}

.standings-table .col-soft {
    color: rgba(244, 241, 234, 0.28);
    font-size: 12px;
    font-weight: 500;
}

.standings-table thead .col-soft {
    color: rgba(244, 241, 234, 0.4);
    font-size: 10px;
}

.standings-table .col-score {
    color: rgba(244, 241, 234, 0.82);
}

.standings-table .col-diff.pos {
    color: #9dcea8;
    font-weight: 600;
}

.standings-table .col-diff.neg {
    color: #e0a3a3;
    font-weight: 600;
}

.standings-table .col-pts {
    font-weight: 800;
    font-size: 16px;
    color: #d9c89b;
    background: rgba(185, 139, 61, 0.1);
    min-width: 48px;
}

.standings-table thead .col-pts {
    color: #d9c89b;
    background: #183a2a;
    font-size: 11px;
    font-weight: 700;
}

.standings-table .col-form {
    min-width: 132px;
    padding-left: 12px;
    padding-right: 12px;
}

.standings-table tbody tr.standings-top td {
    background: rgba(24, 58, 42, 0.32);
}

.standings-table tbody tr.standings-top .col-pos,
.standings-table tbody tr.standings-top .col-team {
    background: #14261c;
}

.standings-table tbody tr.standings-top .col-pts {
    background: rgba(185, 139, 61, 0.16);
}

.standings-table tbody tr.is-clickable {
    cursor: pointer;
}

.standings-table tbody tr.is-clickable:hover td {
    background: rgba(255, 255, 255, 0.05);
}

.standings-table tbody tr.is-clickable:hover .col-pos,
.standings-table tbody tr.is-clickable:hover .col-team {
    background: #1a1f1b;
}

.standings-table tbody tr.is-clickable:hover .col-pts {
    background: rgba(185, 139, 61, 0.2);
}

.standings-table tbody tr.is-clickable:focus {
    outline: 2px solid #d9c89b;
    outline-offset: -2px;
}

.pos-stack {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.pos-mark {
    display: inline-grid;
    place-items: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    font-size: 13px;
    font-weight: 700;
    color: #f4f1ea;
}

.standings-top .pos-mark {
    background: #b98b3d;
    color: #101311;
}

.pos-move {
    font-size: 10px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    line-height: 1;
    letter-spacing: 0.02em;
}

.pos-move-up {
    color: #9dcea8;
}

.pos-move-down {
    color: #e0a3a3;
}

.pos-move-same {
    color: rgba(244, 241, 234, 0.3);
}

.pos-move-new {
    color: #d9c89b;
    font-size: 9px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.form-pips {
    display: inline-flex;
    gap: 4px;
    align-items: center;
    flex-wrap: nowrap;
}

.form-pip {
    display: inline-grid;
    place-items: center;
    flex: 0 0 auto;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    font-size: 9px;
    font-weight: 800;
    line-height: 1;
}

.form-pip.form-w {
    background: #2f6b45;
    color: #f4f1ea;
}

.form-pip.form-d {
    background: #8a7a4a;
    color: #f4f1ea;
}

.form-pip.form-l {
    background: #6b3a3a;
    color: #f4f1ea;
}

.standings-preview {
    display: grid;
    gap: 8px;
}

.standings-preview-row {
    display: grid;
    grid-template-columns: auto 1fr auto auto;
    gap: 14px;
    align-items: center;
    padding: 10px 0;
    border-top: 1px solid #eef0ef;
}

.standings-preview-row .pos-mark {
    background: #183a2a;
    color: #f4f1ea;
}

.standings-preview-team {
    font-weight: 600;
    text-decoration: none;
}

.standings-preview-record {
    color: #697369;
    font-variant-numeric: tabular-nums;
    font-size: 13px;
}

.standings-preview-pts {
    font-variant-numeric: tabular-nums;
    min-width: 28px;
    text-align: right;
}

.tries-line {
    margin-top: 8px;
}

.school-hero {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 18px;
}

.school-hero-top {
    display: flex;
    gap: 18px;
    align-items: center;
}

.school-hero h1 {
    margin: 0;
}

.school-position {
    margin: 8px 0 0;
    color: #183a2a;
    font-weight: 700;
}

.school-stats-panel {
    background: white;
    border: 1px solid #e4e4e4;
    border-radius: 16px;
    padding: 18px;
    margin-bottom: 22px;
}

.school-stat-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.school-stat-grid + .school-stat-grid {
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid #eef0ef;
}

.school-stat-grid div {
    text-align: center;
}

.school-stat-grid strong {
    display: block;
    font-size: 28px;
    line-height: 1.1;
}

.school-stat-grid span {
    color: #697369;
    font-size: 12px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.school-stat-grid-secondary strong {
    font-size: 22px;
}

.school-form-block {
    display: grid;
    gap: 8px;
    place-items: center;
}

.school-form-label {
    color: #697369;
    font-size: 12px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.form-pips-light .form-pip {
    width: 22px;
    height: 22px;
    font-size: 10px;
}

.school-columns {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.school-match-row .school-match-line {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: baseline;
}

.school-match-line a {
    text-decoration: none;
    font-weight: 600;
}

.school-match-line a:hover {
    text-decoration: underline;
}

.outcome-pill {
    display: inline-grid;
    place-items: center;
    min-width: 18px;
    height: 18px;
    margin-left: 6px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 800;
    color: white;
}

.outcome-pill.outcome-w { background: #2f6b45; }
.outcome-pill.outcome-d { background: #8a7a4a; }
.outcome-pill.outcome-l { background: #6b3a3a; }

.archive-data-panel .panel-heading {
    padding: 16px 18px 0;
}

.archive-count {
    color: #697369;
    font-size: 13px;
}

.archive-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    font-variant-numeric: tabular-nums;
}

.archive-table th,
.archive-table td {
    padding: 10px 12px;
    text-align: left;
    border-bottom: 1px solid #eef0ef;
    white-space: nowrap;
}

.archive-table th {
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #697369;
    background: #f7f8f7;
}

.archive-table .col-team-plain {
    font-weight: 600;
    white-space: normal;
    min-width: 180px;
}

.archive-note-row td {
    white-space: normal;
    color: #697369;
    font-size: 13px;
    background: #fafaf8;
}

.shared-mark {
    color: #b98b3d;
    font-weight: 700;
}

.archive-fact-list .list-row:first-child {
    border-top: 0;
}

.bracket-panel {
    margin-bottom: 22px;
    overflow: hidden;
    scroll-margin-top: 24px;
    transition: opacity 0.18s ease;
}

.bracket-panel.is-loading,
.bracket-panel.is-swapping {
    opacity: 0.45;
}

.bracket-heading {
    flex-wrap: wrap;
    gap: 12px;
}

.bracket-season-nav {
    margin: 0;
}

.bracket-scroll {
    overflow-x: auto;
    padding: 8px 0 8px;
}

.bracket {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0 20px;
    width: 100%;
    min-width: 0;
    --slot: 88px;
}

.bracket-col h3 {
    margin: 0 0 14px;
    font-size: 11px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #697369;
    font-weight: 700;
}

.bracket-col-body {
    display: grid;
    align-items: center;
}

.bracket-col:nth-child(1) .bracket-col-body {
    grid-template-rows: repeat(8, var(--slot));
}

.bracket-col:nth-child(2) .bracket-col-body {
    grid-template-rows: repeat(4, calc(var(--slot) * 2));
}

.bracket-col:nth-child(3) .bracket-col-body {
    grid-template-rows: repeat(2, calc(var(--slot) * 4));
}

.bracket-col:nth-child(4) .bracket-col-body {
    grid-template-rows: calc(var(--slot) * 8);
}

.bracket-slot {
    display: flex;
    align-items: center;
    position: relative;
    height: 100%;
    padding-right: 14px;
}

.bracket-slot::after {
    content: "";
    position: absolute;
    right: 0;
    top: 50%;
    width: 14px;
    height: 1px;
    background: #c9cfc8;
}

.bracket-col:nth-child(4) .bracket-slot::after {
    display: none;
}

.bracket-slot-qf::before,
.bracket-slot-sf::before,
.bracket-slot-final::before {
    content: "";
    position: absolute;
    left: -14px;
    top: 50%;
    width: 14px;
    height: 1px;
    background: #c9cfc8;
}

.bracket-col:nth-child(1) .bracket-slot:nth-child(odd)::after {
    height: calc(var(--slot) / 2);
    top: 50%;
    width: 14px;
    box-sizing: border-box;
    background: transparent;
    border-top: 1px solid #c9cfc8;
    border-right: 1px solid #c9cfc8;
}

.bracket-col:nth-child(1) .bracket-slot:nth-child(even)::after {
    height: calc(var(--slot) / 2);
    top: calc(50% - var(--slot) / 2);
    width: 14px;
    box-sizing: border-box;
    background: transparent;
    border-bottom: 1px solid #c9cfc8;
    border-right: 1px solid #c9cfc8;
}

.bracket-col:nth-child(2) .bracket-slot:nth-child(odd)::after {
    height: var(--slot);
    top: 50%;
    width: 14px;
    box-sizing: border-box;
    background: transparent;
    border-top: 1px solid #c9cfc8;
    border-right: 1px solid #c9cfc8;
}

.bracket-col:nth-child(2) .bracket-slot:nth-child(even)::after {
    height: var(--slot);
    top: calc(50% - var(--slot));
    width: 14px;
    box-sizing: border-box;
    background: transparent;
    border-bottom: 1px solid #c9cfc8;
    border-right: 1px solid #c9cfc8;
}

.bracket-col:nth-child(3) .bracket-slot:nth-child(odd)::after {
    height: calc(var(--slot) * 2);
    top: 50%;
    width: 14px;
    box-sizing: border-box;
    background: transparent;
    border-top: 1px solid #c9cfc8;
    border-right: 1px solid #c9cfc8;
}

.bracket-col:nth-child(3) .bracket-slot:nth-child(even)::after {
    height: calc(var(--slot) * 2);
    top: calc(50% - var(--slot) * 2);
    width: 14px;
    box-sizing: border-box;
    background: transparent;
    border-bottom: 1px solid #c9cfc8;
    border-right: 1px solid #c9cfc8;
}

.bm {
    width: 100%;
    background: #101311;
    color: #f4f1ea;
    border-radius: 10px;
    padding: 8px 10px;
    box-shadow: 0 8px 18px rgba(17, 17, 17, 0.12);
}

.bm-final {
    background: linear-gradient(160deg, #183a2a 0%, #101311 70%);
    border: 1px solid rgba(185, 139, 61, 0.5);
}

.bm-date {
    font-size: 10px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(244, 241, 234, 0.45);
    margin-bottom: 4px;
}

.bm-team {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 8px;
    align-items: center;
    min-height: 22px;
    font-size: 12px;
    line-height: 1.25;
    color: rgba(244, 241, 234, 0.72);
}

.bm-team + .bm-team {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 4px;
    margin-top: 4px;
}

.bm-team.win {
    color: #f4f1ea;
    font-weight: 700;
}

.bm-team.win .bm-score {
    color: #d9c89b;
}

.bm-name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.bm-score {
    font-variant-numeric: tabular-nums;
    font-weight: 700;
    min-width: 1.2em;
    text-align: right;
}

.bm-replay,
.bm-champ {
    margin-top: 6px;
    font-size: 11px;
    color: rgba(244, 241, 234, 0.55);
}

.bm-champ {
    color: #d9c89b;
    font-weight: 700;
}

@media (max-width: 820px) {
    .table-title-row {
        align-items: flex-start;
        flex-direction: column;
    }

    .scoring-popover {
        right: auto;
        left: 0;
    }

    .school-columns,
    .school-stat-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 820px) {
    .dashboard-grid,
    .home-cta-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 650px) {
    nav {
        gap: 12px;
        font-size: 14px;
    }

    .teams,
    .result-row {
        grid-template-columns: 1fr auto 1fr;
        gap: 8px;
        font-size: 14px;
    }

    .hero {
        padding-top: 40px;
    }

    .brand {
        font-size: 18px;
    }
}

/* Match centre + predictions */

.match-card {
    position: relative;
}

.match-card-hint {
    float: right;
    color: #9a8a68;
    font-size: 12px;
}

.list-row-link {
    display: block;
    color: inherit;
    text-decoration: none;
    transition: background 0.15s ease;
}

.list-row-link:hover {
    background: rgba(0, 0, 0, 0.03);
}

.match-hero {
    margin: 12px 0 28px;
    padding-bottom: 22px;
    border-bottom: 1px solid #e6e0d4;
}

.match-hero-date {
    margin: 6px 0 0;
    color: #666;
}

.match-hero-scoreboard {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 18px;
    align-items: center;
    margin-top: 22px;
}

.match-side {
    display: grid;
    gap: 8px;
}

.match-side a,
.match-side strong {
    font-size: clamp(1.15rem, 2.4vw, 1.7rem);
    color: inherit;
    text-decoration: none;
    font-weight: 700;
}

.match-side a:hover {
    text-decoration: underline;
}

.match-side-away {
    text-align: right;
    justify-items: end;
}

.rating-chip {
    display: inline-block;
    font-size: 12px;
    color: #6d634f;
    background: #f1ebe0;
    padding: 3px 8px;
    border-radius: 999px;
}

.match-score-block {
    display: grid;
    gap: 4px;
    justify-items: center;
    min-width: 110px;
}

.match-final-score,
.match-versus {
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    letter-spacing: 0.02em;
}

.match-tries,
.match-model-score {
    font-size: 13px;
    color: #777;
}

.match-meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 14px 22px;
    margin-top: 18px;
    font-size: 13px;
    color: #777;
}

.match-meta-row a {
    color: #6d5a2e;
}

.prediction-panel .panel-note,
.panel-note {
    font-size: 12px;
    color: #888;
}

.prob-grid {
    display: grid;
    grid-template-columns: 1fr 0.7fr 1fr;
    gap: 16px;
    margin-top: 8px;
}

.prob-col {
    display: grid;
    gap: 8px;
}

.prob-draw {
    text-align: center;
}

.prob-label {
    font-size: 13px;
    color: #666;
}

.prob-value {
    font-size: 1.6rem;
}

.prob-bar {
    height: 8px;
    background: #ece7dc;
    border-radius: 999px;
    overflow: hidden;
}

.prob-bar span {
    display: block;
    height: 100%;
    background: #2f4a38;
}

.prob-draw .prob-bar span {
    background: #8a7a4a;
    margin: 0 auto;
}

.prediction-summary {
    margin: 18px 0 8px;
    color: #444;
}

.why-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    margin-top: 16px;
}

.why-prediction {
    margin: 22px 0 8px;
    padding: 16px 18px;
    background: #f7f3ea;
    border: 1px solid #e6dfd0;
    border-radius: 12px;
}

.why-prediction h3 {
    margin: 0 0 14px;
    font-size: 1rem;
}

.why-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.why-side h4 {
    margin: 0 0 8px;
    font-size: 0.95rem;
}

.why-factors {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 6px;
}

.why-factors li {
    display: grid;
    grid-template-columns: 16px 1fr;
    gap: 8px;
    font-size: 14px;
    color: #3d3a34;
}

.why-factors li span {
    font-weight: 800;
}

.why-plus span {
    color: #2f6b45;
}

.why-minus span {
    color: #6b3a3a;
}

.why-grid h3 {
    margin: 0 0 6px;
    font-size: 1rem;
}

.why-grid p {
    margin: 0 0 10px;
    color: #555;
    font-size: 14px;
}

.model-disclaimer,
.muted {
    color: #888;
    font-size: 13px;
}

.model-hit {
    color: #2f6b45;
    font-weight: 700;
}

.model-miss {
    color: #6b3a3a;
    font-weight: 700;
}

.h2h-summary {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin: 8px 0 16px;
    text-align: center;
}

.h2h-summary strong {
    display: block;
    font-size: 1.6rem;
}

.h2h-summary span {
    font-size: 13px;
    color: #666;
}

.h2h-points {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
    font-size: 14px;
    color: #555;
}

.h2h-row {
    display: block;
    color: inherit;
    text-decoration: none;
}

.h2h-line {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 12px;
    align-items: center;
}

.prediction-card {
    display: block;
    padding: 16px 0;
    border-top: 1px solid #ece7dc;
    color: inherit;
    text-decoration: none;
}

.prediction-card:first-of-type {
    border-top: 0;
}

.prediction-card:hover .prediction-teams strong {
    text-decoration: underline;
}

.prediction-teams {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 14px;
    align-items: center;
    margin: 8px 0 12px;
}

.prediction-team {
    display: grid;
    gap: 4px;
}

.prediction-team span {
    font-size: 1.25rem;
    font-weight: 700;
    color: #2f4a38;
}

.prediction-team-away {
    text-align: right;
}

.prediction-mid {
    display: grid;
    justify-items: center;
    gap: 2px;
}

.prediction-model-score {
    font-weight: 700;
}

.dual-prob-bar {
    display: flex;
    height: 7px;
    border-radius: 999px;
    overflow: hidden;
    background: #ece7dc;
}

.dual-prob-bar .home-fill {
    background: #2f4a38;
}

.dual-prob-bar .draw-fill {
    background: #8a7a4a;
}

.dual-prob-bar .away-fill {
    background: #5a3d2e;
}

.model-record-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    text-align: center;
}

.model-record-grid strong {
    display: block;
    font-size: 1.5rem;
}

.model-record-grid span {
    font-size: 13px;
    color: #666;
}

.ratings-list {
    display: grid;
    gap: 8px;
}

.ratings-row {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 12px;
    align-items: center;
    padding: 6px 0;
    border-bottom: 1px solid #f0ebe2;
}

.ratings-name {
    font-weight: 600;
}

.data-warning {
    display: grid;
    gap: 6px;
    margin: 0 0 22px;
    padding: 14px 16px;
    background: #f8efe6;
    border: 1px solid #e0c8a8;
    border-radius: 12px;
    color: #5a4020;
}

.data-warning strong {
    font-size: 0.95rem;
}

.data-warning span,
.data-warning p {
    margin: 0;
    font-size: 14px;
    line-height: 1.45;
}

.school-conflict-panel .conflict-slot {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid rgba(90, 64, 32, 0.15);
}

.school-conflict-panel ul {
    margin: 6px 0 0;
    padding-left: 18px;
}

.school-conflict-panel a {
    color: inherit;
}

.conflict-pill {
    display: inline-block;
    margin-left: 6px;
    padding: 2px 7px;
    border-radius: 999px;
    background: #6b3a3a;
    color: #f7efe8;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.match-card.is-conflict,
.list-row.is-conflict {
    border-color: #e0c8a8;
    background: #fbf6ef;
}

@media (max-width: 820px) {
    .match-hero-scoreboard,
    .prediction-teams,
    .prob-grid,
    .why-grid,
    .why-columns,
    .h2h-summary,
    .model-record-grid {
        grid-template-columns: 1fr;
        text-align: left;
    }

    .match-side-away,
    .prediction-team-away {
        text-align: left;
        justify-items: start;
    }

    .h2h-line {
        grid-template-columns: 1fr;
        gap: 4px;
    }

    .h2h-line .right {
        text-align: left;
    }
}


/* This Weekend + homepage pulse + model leaderboard */
.around-grounds {
    margin: 0;
    padding: 36px max(5.3vw, 48px) 40px;
    max-width: none;
    background: #f7f5f1;
    border-top: 1px solid rgba(17, 17, 17, 0.08);
    border-bottom: 1px solid rgba(17, 17, 17, 0.08);
    color: #111;
}

.home-page .around-grounds {
    color: #111;
}

.around-grounds-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
    margin: 0 auto 18px;
    max-width: 1100px;
}

.around-grounds-header .eyebrow {
    margin: 0;
    color: #183a2a;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.16em;
}

.around-grounds-header a {
    color: #5a5a54;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
}

.around-grounds-header a:hover {
    color: #183a2a;
}

.around-grounds-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin: 0 auto;
    max-width: 1100px;
}

.around-item {
    display: grid;
    gap: 6px;
    align-content: start;
    min-height: 96px;
    padding: 16px 16px 18px;
    background: #fff;
    border: 1px solid rgba(17, 17, 17, 0.1);
    border-radius: 0;
    color: #111;
    text-decoration: none;
    transition: border-color 0.15s ease, transform 0.15s ease;
}

.around-item:hover {
    border-color: rgba(24, 58, 42, 0.35);
    transform: translateY(-1px);
}

.around-item strong {
    font-family: "Playfair Display", Georgia, serif;
    font-size: 1.35rem;
    font-weight: 700;
    line-height: 1.15;
    color: #111;
    letter-spacing: -0.02em;
}

.around-item span {
    font-size: 13px;
    line-height: 1.35;
    color: #5a5a54;
    opacity: 1;
}

.around-item.around-weekend-primary {
    background: #183a2a;
    border-color: #183a2a;
    color: #f4f1ea;
}

.around-item.around-weekend-primary strong {
    color: #fff;
    font-size: 1.75rem;
}

.around-item.around-weekend-primary span {
    color: rgba(244, 241, 234, 0.78);
}

.around-item.around-weekend-primary:hover {
    border-color: #c5a35a;
}

.around-movers {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 18px;
    margin: 16px auto 0;
    max-width: 1100px;
    font-size: 13px;
    font-weight: 700;
}
.source-label {
    margin: 0 0 14px;
    font-size: 12px;
    color: #888;
}
.movers-list { display: grid; gap: 8px; }
.mover-row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 6px 0;
    border-bottom: 1px solid #f0ebe2;
}
.mover-up { color: #2f6b45; }
.mover-down { color: #6b3a3a; }
.weekend-fixture {
    display: block;
    padding: 14px 0;
    border-top: 1px solid #ece7dc;
    color: inherit;
    text-decoration: none;
}
.weekend-fixture:first-of-type { border-top: 0; }
.weekend-fixture.is-conflict {
    background: #fff8f4;
    margin: 0 -12px;
    padding-left: 12px;
    padding-right: 12px;
    border-radius: 8px;
}
.weekend-meta,
.motw-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 12px;
}
.comp-chip {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.02em;
    line-height: 1.4;
    border: 1px solid transparent;
}
.comp-chip-cup {
    background: #1a1f1a;
    color: #f3efe6;
    border-color: #1a1f1a;
}
.comp-chip-friendly {
    background: #f4f1ea;
    color: #3a3a3a;
    border-color: #ddd6c8;
}
.comp-chip-other {
    background: #eef2f0;
    color: #3a4540;
    border-color: #d5ddd8;
}
.weekend-side {
    display: flex;
    align-items: center;
    gap: 8px;
}
.weekend-side-away {
    justify-content: flex-end;
}
.weekend-teams {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 12px;
    align-items: start;
    margin: 8px 0 10px;
}
.weekend-teams > div { display: grid; gap: 2px; }
.weekend-away { text-align: right; }
.weekend-mid { text-align: center; }
.motw-card {
    display: block;
    color: inherit;
    text-decoration: none;
}
.motw-panel { border-color: #d9c89b; }
.weekend-board .date-heading:first-of-type {
    margin-top: 8px;
}

.utility-item.utility-weekend-live {
    background: transparent;
    color: #f3efe6;
    box-shadow: inset 0 -2px 0 #c5a35a;
}
.utility-item.utility-weekend-live small {
    color: rgba(243, 239, 230, 0.78);
}
.utility-item.utility-weekend-live strong {
    color: #fff;
}

.model-leaderboard-wrap { overflow-x: auto; }
.model-leaderboard {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}
.model-leaderboard th,
.model-leaderboard td {
    padding: 10px 8px;
    border-bottom: 1px solid #ece7dc;
    text-align: left;
}
.model-leaderboard th { font-size: 12px; color: #777; font-weight: 600; }
.model-leaderboard a { color: inherit; text-decoration: none; }
.model-leaderboard a:hover { text-decoration: underline; }
.cup-live-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 18px;
}
.cup-entry-banner {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 20px;
    flex-wrap: wrap;
    margin: 0 0 22px;
    padding: 20px 22px;
    border-radius: 16px;
    background:
        linear-gradient(135deg, rgba(24, 58, 42, 0.96), rgba(16, 19, 17, 0.94)),
        #101311;
    color: #f4f1ea;
    border: 1px solid rgba(197, 163, 90, 0.35);
}
.cup-entry-banner .eyebrow {
    color: #c5a35a;
    margin: 0 0 6px;
}
.cup-entry-banner h2 {
    margin: 0 0 6px;
    font-size: 1.45rem;
    color: #f4f1ea;
}
.cup-entry-banner p {
    margin: 0;
    color: rgba(244, 241, 234, 0.72);
    font-size: 14px;
}
.cup-entry-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 16px;
    align-items: center;
}
.cup-entry-btn {
    display: inline-flex;
    align-items: center;
    padding: 10px 16px;
    border-radius: 999px;
    background: #c5a35a;
    color: #101311;
    font-weight: 700;
    text-decoration: none;
    font-size: 14px;
}
.cup-entry-btn:hover {
    filter: brightness(1.05);
}
.cup-entry-link {
    color: #f4f1ea;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    border-bottom: 1px solid rgba(197, 163, 90, 0.55);
    padding-bottom: 2px;
}
.cup-entry-link:hover {
    color: #c5a35a;
}
.cup-tabs {
    margin-top: -4px;
}
@media (max-width: 820px) {
    .cup-entry-banner {
        align-items: flex-start;
    }
}

.cup-groups-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
}
.cup-pulse-list {
    list-style: none;
    margin: 0;
    padding: 0;
}
.cup-pulse-list li {
    display: grid;
    grid-template-columns: minmax(120px, 160px) 1fr;
    gap: 10px 16px;
    padding: 12px 0;
    border-bottom: 1px solid #e8ebe8;
    color: #2f3432;
    font-size: 14px;
    line-height: 1.45;
}
.cup-pulse-list li:last-child {
    border-bottom: 0;
}
.cup-pulse-list strong {
    display: block;
    min-width: 0;
    color: #101311;
    font-weight: 700;
}
.cup-leaders,
.cup-fixture-list,
.cup-qualifier-slots {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.cup-leader-row,
.cup-slot-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid #ece7dc;
    font-size: 14px;
    color: #1a1f1b;
}
.cup-leader-row a,
.cup-slot-row a,
.cup-fixture-list a {
    color: #183a2a;
    text-decoration: none;
    font-weight: 600;
}
.cup-leader-row a:hover,
.cup-slot-row a:hover,
.cup-fixture-list a:hover {
    text-decoration: underline;
}
.cup-leader-row .muted,
.cup-slot-row .muted,
.cup-fixture-list .muted {
    color: #6b726c;
}
.cup-group-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    padding: 2px 8px;
    border-radius: 6px;
    background: #183a2a;
    color: #f4f1ea;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.04em;
}
.tier1-grid {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px 16px;
}
.tier1-grid li {
    padding: 8px 0;
    border-bottom: 1px solid #ece7dc;
    font-size: 14px;
    font-weight: 600;
    color: #1a1f1b;
}
@media (max-width: 640px) {
    .cup-pulse-list li {
        grid-template-columns: 1fr;
        gap: 4px;
    }
}
.cup-fixture-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 16px;
}
.cup-fixture-filters a {
    padding: 6px 12px;
    border-radius: 999px;
    border: 1px solid #dfe3df;
    color: #183a2a;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
}
.cup-fixture-filters a.selected {
    background: #183a2a;
    border-color: #183a2a;
    color: #f4f1ea;
}
.status-pill {
    display: inline-block;
    margin-left: 8px;
    padding: 1px 7px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}
.status-pill.played {
    background: #183a2a;
    color: #f4f1ea;
}
.status-pill.upcoming {
    background: #ece7dc;
    color: #5a615b;
}
.cup-qualify-note {
    margin-bottom: 14px;
}
.standings-table tr.standings-qualify td.col-pos .pos-mark,
.standings-table tr.standings-qualify {
    box-shadow: inset 3px 0 0 #c5a35a;
}
.standings-table tr.standings-outside td.col-pos .pos-mark {
    opacity: 0.7;
}
.school-cup-panel {
    margin: 18px 0;
}
.school-cup-status {
    margin: 0 0 12px;
    font-size: 15px;
}

/* Light theme for Cup group tables inside white panels */
.panel .cup-group-table,
.cup-group-panel .cup-group-table {
    color: #1a1f1b;
    background: #fff;
}

.panel .cup-group-table th,
.panel .cup-group-table td,
.cup-group-panel .cup-group-table th,
.cup-group-panel .cup-group-table td {
    border-bottom: 1px solid #e8ebe8;
    color: #1a1f1b;
}

.panel .cup-group-table thead th,
.cup-group-panel .cup-group-table thead th {
    background: #183a2a;
    color: rgba(244, 241, 234, 0.9);
}

.panel .cup-group-table .col-pos,
.panel .cup-group-table .col-team,
.cup-group-panel .cup-group-table .col-pos,
.cup-group-panel .cup-group-table .col-team {
    background: #fff !important;
    color: #1a1f1b !important;
}

.panel .cup-group-table .col-team,
.cup-group-panel .cup-group-table .col-team {
    left: 64px;
    box-shadow: none;
}

.cup-group-table .col-team {
    left: 64px;
}

.panel .cup-group-table thead .col-pos,
.panel .cup-group-table thead .col-team,
.cup-group-panel .cup-group-table thead .col-pos,
.cup-group-panel .cup-group-table thead .col-team {
    background: #183a2a !important;
    color: rgba(244, 241, 234, 0.9) !important;
}

.panel .cup-group-table .col-soft,
.cup-group-panel .cup-group-table .col-soft {
    color: #4a524c;
}

.panel .cup-group-table .col-pts,
.cup-group-panel .cup-group-table .col-pts {
    background: #f4f1ea;
    color: #101311;
    font-weight: 700;
}

.panel .cup-group-table .col-diff.pos,
.cup-group-panel .cup-group-table .col-diff.pos {
    color: #1f6b3a;
}

.panel .cup-group-table .col-diff.neg,
.cup-group-panel .cup-group-table .col-diff.neg {
    color: #a33b2d;
}

.panel .cup-group-table tbody tr.is-clickable:hover td,
.cup-group-panel .cup-group-table tbody tr.is-clickable:hover td {
    background: #f7f5f1;
}

.panel .cup-group-table tbody tr.is-clickable:hover .col-pos,
.panel .cup-group-table tbody tr.is-clickable:hover .col-team,
.cup-group-panel .cup-group-table tbody tr.is-clickable:hover .col-pos,
.cup-group-panel .cup-group-table tbody tr.is-clickable:hover .col-team {
    background: #f7f5f1 !important;
}

.panel .cup-group-table tbody tr.is-clickable:hover .col-pts,
.cup-group-panel .cup-group-table tbody tr.is-clickable:hover .col-pts {
    background: #ebe6dc;
}

.panel .cup-group-table .pos-mark,
.cup-group-panel .cup-group-table .pos-mark {
    background: #ece7dc;
    color: #183a2a;
}

.panel .cup-group-table .form-pip,
.cup-group-panel .cup-group-table .form-pip {
    color: #fff;
}

.panel .cup-group-table .muted,
.cup-group-panel .cup-group-table .muted {
    color: #8a918b;
}

.panel .cup-group-table tr.standings-qualify,
.cup-group-panel .cup-group-table tr.standings-qualify {
    box-shadow: inset 3px 0 0 #c5a35a;
}
@media (max-width: 820px) {
    .around-grounds-grid,
    .weekend-teams,
    .cup-live-grid,
    .cup-overview-grid,
    .tier1-grid { grid-template-columns: 1fr; }
    .weekend-away { text-align: left; }
}

/* ---------- Mobile support (home + shared) ---------- */
@media (max-width: 760px) {
    .home-page header {
        position: sticky;
        top: 0;
        z-index: 50;
    }

    .home-page .nav-container {
        position: relative;
        min-height: 58px;
        padding: 8px 16px;
    }

    .home-page .nav-toggle {
        display: inline-flex;
        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;
    }

    .home-page .nav-toggle span {
        display: block;
        width: 18px;
        height: 1.5px;
        background: currentColor;
        transition: transform 0.2s ease, opacity 0.2s ease;
    }

    .home-page .site-nav,
    .home-page nav.site-nav,
    .home-page nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 8px 0 16px;
        background: #0b1112;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
        z-index: 40;
    }

    .home-page.nav-open .site-nav,
    .home-page.nav-open nav.site-nav,
    .home-page.nav-open nav {
        display: flex;
    }

    .home-page .site-nav a,
    .home-page nav a {
        padding: 14px 20px;
        color: #b9bcb8;
        font-size: 14px;
    }

    .home-page .site-nav a.is-active,
    .home-page nav a.is-active,
    .home-page nav a:first-child {
        color: #fff;
    }

    .home-page .site-nav a:first-child::after,
    .home-page nav a:first-child::after {
        display: none;
    }

    .home-page.nav-open .nav-toggle span:nth-child(1) {
        transform: translateY(6.5px) rotate(45deg);
    }

    .home-page.nav-open .nav-toggle span:nth-child(2) {
        opacity: 0;
    }

    .home-page.nav-open .nav-toggle span:nth-child(3) {
        transform: translateY(-6.5px) rotate(-45deg);
    }

    .home-page .brand {
        font-size: 16px;
        max-width: calc(100% - 56px);
    }

    .home-page .brand-tagline {
        letter-spacing: 0.22em;
        font-size: 7px;
    }

    .home-utility-strip {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 0;
        padding: 8px 12px 18px;
    }

    .utility-item,
    .utility-item:first-child {
        min-width: 0;
        padding: 14px 12px;
        border-right: 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    }

    .utility-item:nth-child(odd) {
        border-right: 1px solid rgba(255, 255, 255, 0.08);
    }

    .home-page .around-grounds {
        padding: 28px 16px 32px;
    }

    .around-grounds-grid {
        grid-template-columns: 1fr 1fr;
    }

    .bracket {
        width: max-content;
        min-width: 820px;
        grid-template-columns: repeat(4, 180px);
    }

    .bracket-scroll {
        -webkit-overflow-scrolling: touch;
        padding-bottom: 12px;
    }

    .standings-table .col-team {
        min-width: 150px;
    }

    .standings-table .col-soft,
    .cup-group-table .col-soft {
        display: none;
    }
}

@media (max-width: 560px) {
    .home-page .home-hero {
        /* stacking layout already set in earlier 560px block */
        background-size: cover;
        background-position: 62% center;
    }

    .home-utility-strip {
        grid-template-columns: 1fr;
        padding: 4px 0 12px;
    }

    .utility-item,
    .utility-item:nth-child(odd) {
        border-right: 0;
        padding: 16px 18px;
    }

    .standings-table .col-pos {
        width: 48px;
        padding-left: 10px;
        left: 0;
    }

    .standings-table .col-team {
        left: 48px;
        min-width: 132px;
        padding-right: 12px;
    }

    .standings-table .team-name {
        font-size: 0.95rem;
    }

    .standings-table .col-form,
    .standings-table .col-score,
    .cup-group-table .col-form,
    .cup-group-table .col-score {
        display: none;
    }

    .standings-table th,
    .standings-table td {
        padding: 11px 8px;
        font-size: 13px;
    }

    /* Keep Home visible in the open hamburger (old compact-nav rule removed) */
    .home-page.nav-open .site-nav a:first-child,
    .home-page.nav-open nav a:first-child {
        display: block;
        color: #fff;
    }

    .weekend-teams {
        gap: 8px;
    }

    .weekend-mid {
        text-align: left;
        padding: 4px 0;
    }

    .bracket {
        min-width: 720px;
        grid-template-columns: repeat(4, 160px);
    }
}

body.nav-open {
    overflow: hidden;
}
