﻿/* ==========================================================
   Concord Cup 2026 style
   Header/nav/footer (Site.Master) + home page (Home.aspx).
   Everything is scoped under .cc-* / .cc26 so older page
   styles in 2025.css / ConcordCup1.css keep working.
   ========================================================== */

:root {
    --cc-green: #16301f;
    --cc-green-2: #1f4a2e;
    --cc-cream: #f7f3ea;
    --cc-paper: #fffdf8;
    --cc-gold: #b8914a;
    --cc-gold-2: #d9b36c;
    --cc-red: #b3261e;
    --cc-blue: #1f4e9c;
    --cc-ink: #1b1e1a;
    --cc-muted: #6b6f66;
    --cc-soft: #b9c6b9;
    --cc-line: #e6dfcf;
    --cc-serif: 'Cormorant Garamond', Georgia, serif;
    --cc-sans: 'Inter', system-ui, sans-serif;
}

/* Cormorant defaults to old-style figures, which make "11" look like "II" */
.cc26 .board .score, .cc26 .tally .big {
    font-variant-numeric: lining-nums;
}

body {
    background: var(--cc-cream);
    overflow-x: hidden; /* .cc26 is 100vw, which includes the scrollbar */
}

/* ========== Header ========== */
.cc-header {
    background: var(--cc-green);
    color: var(--cc-cream);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 2px solid var(--cc-gold);
    padding: 0;
    text-align: left;
    font-family: var(--cc-sans);
}

.cc-header .cc-bar {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 20px;
    min-height: 70px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.cc-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--cc-cream);
    text-decoration: none;
}

.cc-brand .cc-cup {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--cc-cream);
    border: 2px solid var(--cc-gold-2);
    display: grid;
    place-items: center;
    overflow: hidden;
    flex: none;
}

    .cc-brand .cc-cup img {
        width: 36px;
        height: auto;
        max-width: none;
        padding: 0;
    }

.cc-brand .cc-word {
    display: block;
    font-family: var(--cc-serif);
    font-weight: 600;
    font-size: 26px;
    letter-spacing: 6px;
    line-height: 1.1;
}

.cc-brand .cc-est {
    display: block;
    font-size: 10px;
    letter-spacing: 3px;
    color: var(--cc-gold-2);
}

.cc-header .nav-container {
    background: none;
    box-shadow: none;
    padding: 0;
    border-radius: 0;
}

.cc-header .cuplinks {
    display: flex;
    gap: 2px;
    font-size: 1rem;
}

    .cc-header .cuplinks li {
        padding: 0;
        line-height: 1;
    }

    .cc-header .cuplinks a {
        background: none;
        box-shadow: none;
        border-radius: 6px;
        color: #cfd8cf;
        font-family: var(--cc-sans);
        font-weight: 500;
        font-size: 14px;
        padding: 9px 14px;
    }

        .cc-header .cuplinks a:hover {
            background: rgba(255, 255, 255, .07);
            color: #fff;
            box-shadow: none;
        }

        .cc-header .cuplinks a.on {
            color: #fff;
            box-shadow: inset 0 -2px 0 var(--cc-gold-2);
        }

        .cc-header .cuplinks a.admin {
            border: 1px solid rgba(255, 255, 255, .25);
            margin-left: 10px;
        }

.cc-header .nav-toggle .bar {
    background-color: var(--cc-cream);
}

@media (max-width: 720px) {
    .cc-header .cc-bar {
        flex-wrap: wrap;
    }

    .cc-header nav {
        margin-left: auto;
    }

    .cc-header #mainNav {
        display: none;
        position: absolute;
        right: 16px;
        top: 64px;
        background: var(--cc-green);
        border: 1px solid var(--cc-gold);
        padding: 8px;
        min-width: 180px;
    }

        .cc-header #mainNav.show {
            display: flex;
        }

    .cc-header .cuplinks a {
        display: block;
        text-align: left;
    }

        .cc-header .cuplinks a.admin {
            margin: 6px 0 0;
        }

    .cc-brand .cc-word {
        font-size: 20px;
        letter-spacing: 4px;
    }
}

/* ========== Footer ========== */
.cc-footer {
    background: var(--cc-green);
    color: var(--cc-soft);
    border-top: 2px solid var(--cc-gold);
    padding: 30px 0;
    font-family: var(--cc-sans);
    font-size: 13px;
    text-align: left;
}

    .cc-footer .cc-bar {
        max-width: 1140px;
        margin: 0 auto;
        padding: 0 20px;
        display: flex;
        justify-content: space-between;
        gap: 16px;
        flex-wrap: wrap;
    }

    .cc-footer .cc-word {
        font-family: var(--cc-serif);
        font-size: 20px;
        letter-spacing: 5px;
        color: var(--cc-cream);
    }

    .cc-footer a {
        color: var(--cc-soft);
    }

/* ========== Home page ========== */
/* Site.Master's <main> is 900px wide; the home page breaks out to full width. */
.cc26 {
    width: 100vw;
    margin: -20px calc(50% - 50vw) 0;
    font-family: var(--cc-sans);
    color: var(--cc-ink);
    line-height: 1.55;
    text-align: left;
}

    .cc26 *, .cc26 *::before, .cc26 *::after {
        box-sizing: border-box;
    }

    .cc26 a {
        color: inherit;
        text-decoration: none;
    }

    .cc26 h1, .cc26 h2, .cc26 h3 {
        text-align: left;
        margin: 0;
    }

    .cc26 img {
        max-width: 100%;
        padding: 0;
    }

    .cc26 .wrap {
        max-width: 1140px;
        margin: 0 auto;
        padding: 0 20px;
    }

    .cc26 section.block {
        padding: 56px 0 0;
    }

    .cc26 .kicker {
        font-size: 12px;
        letter-spacing: 3px;
        text-transform: uppercase;
        color: var(--cc-gold-2);
        font-weight: 600;
    }

/* Hero scoreboard */
.cc26 .hero {
    background: radial-gradient(1200px 500px at 50% -10%, #2b5e3c 0%, var(--cc-green) 60%);
    color: var(--cc-cream);
    padding: 56px 0 64px;
    text-align: center;
}

    .cc26 .hero h1 {
        font-family: var(--cc-serif);
        font-weight: 600;
        font-size: clamp(34px, 5vw, 56px);
        line-height: 1.05;
        color: var(--cc-cream);
        text-align: center;
        max-width: 780px;
        margin: 10px auto 8px;
    }

    .cc26 .hero .date {
        color: var(--cc-soft);
        font-size: 14px;
    }

.cc26 .board {
    margin: 34px auto 0;
    max-width: 760px;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, .35);
}

    .cc26 .board .side {
        padding: 22px 24px;
        display: flex;
        flex-direction: column;
        justify-content: center;
        color: #fff;
    }

        .cc26 .board .side.blue {
            background: var(--cc-blue);
            text-align: left;
        }

        .cc26 .board .side.red {
            background: var(--cc-red);
            text-align: right;
        }

        .cc26 .board .side small {
            font-size: 11px;
            letter-spacing: 2px;
            text-transform: uppercase;
            opacity: .8;
        }

        .cc26 .board .side b {
            font-size: 26px;
            font-weight: 800;
            letter-spacing: 1px;
        }

        .cc26 .board .side span {
            font-size: 13px;
            opacity: .85;
        }

        .cc26 .board .side .win-badge {
            display: inline-block;
            margin-top: 6px;
            background: var(--cc-gold);
            color: var(--cc-green);
            font-size: 11px;
            font-weight: 800;
            letter-spacing: 1.5px;
            padding: 3px 8px;
            border-radius: 4px;
            align-self: flex-start;
            opacity: 1;
        }

    .cc26 .board .score {
        background: #0d1f14;
        padding: 12px 28px;
        display: flex;
        align-items: center;
        gap: 14px;
        font-family: var(--cc-serif);
        font-weight: 700;
        font-size: 72px;
        line-height: 1;
    }

        .cc26 .board .score i {
            font-style: normal;
            font-size: 32px;
            color: var(--cc-gold-2);
        }

.cc26 .sessions {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 22px;
}

.cc26 .chip {
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 99px;
    padding: 6px 14px;
    font-size: 13px;
}

    .cc26 .chip b {
        color: #8fb4ff;
    }

    .cc26 .chip em {
        font-style: normal;
        color: #ff9a92;
        font-weight: 700;
    }

.cc26 .cta {
    margin-top: 26px;
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

.cc26 .btn {
    display: inline-block;
    font-weight: 600;
    font-size: 14px;
    padding: 11px 18px;
    border-radius: 8px;
}

.cc26 .btn-gold {
    background: var(--cc-gold);
    color: var(--cc-green);
}

.cc26 .btn-line {
    border: 1px solid rgba(255, 255, 255, .35);
}

/* Section heads */
.cc26 .head {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 16px;
    margin-bottom: 22px;
    border-bottom: 1px solid var(--cc-line);
    padding-bottom: 12px;
}

    .cc26 .head h2 {
        font-family: var(--cc-serif);
        font-size: 36px;
        font-weight: 600;
        color: var(--cc-green);
        line-height: 1;
    }

    .cc26 .head a {
        font-size: 14px;
        font-weight: 600;
        color: var(--cc-gold);
    }

.cc26 .subhead {
    font-size: 12px;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--cc-muted);
    margin: 26px 0 10px;
}

/* Match cards */
.cc26 .matches {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 12px;
}

.cc26 .match {
    background: var(--cc-paper);
    border: 1px solid var(--cc-line);
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

    .cc26 .match .mh {
        display: flex;
        justify-content: space-between;
        font-size: 11px;
        letter-spacing: 1px;
        text-transform: uppercase;
        color: var(--cc-muted);
        padding: 8px 12px;
        border-bottom: 1px solid var(--cc-line);
    }

    .cc26 .match .row {
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 8px;
        padding: 8px 12px;
        font-size: 14px;
        border-left: 4px solid transparent;
    }

        .cc26 .match .row.b {
            border-left-color: var(--cc-blue);
        }

        .cc26 .match .row.r {
            border-left-color: var(--cc-red);
        }

        .cc26 .match .row.w {
            font-weight: 700;
            background: linear-gradient(90deg, rgba(184, 145, 74, .12), transparent);
        }

    .cc26 .match .hc {
        font-size: 12px;
        color: var(--cc-muted);
        font-weight: 500;
        white-space: nowrap;
    }

    .cc26 .match .tick {
        color: var(--cc-gold);
        font-weight: 800;
        margin-left: 4px;
    }

    .cc26 .match .note {
        font-size: 13px;
        color: var(--cc-muted);
        padding: 8px 12px;
        border-top: 1px dashed var(--cc-line);
        margin-top: auto;
        display: flex;
        justify-content: space-between;
        gap: 8px;
    }

        .cc26 .match .note b {
            white-space: nowrap;
            font-size: 12px;
        }

    .cc26 .match .odds-blue {
        color: var(--cc-blue);
    }

    .cc26 .match .odds-red {
        color: var(--cc-red);
    }

    .cc26 .match.key {
        border-color: var(--cc-gold);
        box-shadow: 0 0 0 2px rgba(184, 145, 74, .25);
    }

        .cc26 .match.key .mh {
            color: var(--cc-gold);
            font-weight: 700;
        }

/* Series */
.cc26 .series {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 28px;
    align-items: center;
}

.cc26 .tally {
    background: var(--cc-green);
    color: var(--cc-cream);
    border-radius: 14px;
    padding: 26px;
}

    .cc26 .tally .big {
        display: flex;
        align-items: baseline;
        gap: 10px;
        font-family: var(--cc-serif);
        font-weight: 700;
        font-size: 64px;
        line-height: 1;
    }

        .cc26 .tally .big .b {
            color: #8fb4ff;
        }

        .cc26 .tally .big .r {
            color: #ff9a92;
        }

        .cc26 .tally .big small {
            font-size: 22px;
            color: var(--cc-soft);
        }

    .cc26 .tally p {
        font-size: 14px;
        color: var(--cc-soft);
        margin: 8px 0 0;
    }

    .cc26 .tally .bar {
        display: flex;
        height: 10px;
        border-radius: 99px;
        overflow: hidden;
        margin-top: 16px;
    }

.cc26 .years {
    display: grid;
    grid-template-columns: repeat(16, 1fr);
    gap: 6px;
}

.cc26 .yr {
    aspect-ratio: 1;
    border-radius: 6px;
    display: grid;
    place-items: center;
    font-size: 11px;
    font-weight: 700;
    color: #fff !important;
}

    .cc26 .yr.Blue {
        background: var(--cc-blue);
    }

    .cc26 .yr.Red {
        background: var(--cc-red);
    }

    .cc26 .yr.Halved {
        background: repeating-linear-gradient(135deg, var(--cc-blue) 0 6px, var(--cc-red) 6px 12px);
    }

    .cc26 .yr:hover {
        outline: 2px solid var(--cc-gold);
        outline-offset: 1px;
    }

.cc26 .legend {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 12px;
    font-size: 13px;
    color: var(--cc-muted);
}

    .cc26 .legend i {
        display: inline-block;
        width: 10px;
        height: 10px;
        border-radius: 3px;
        margin-right: 6px;
        vertical-align: middle;
    }

/* Articles */
.cc26 .article {
    background: var(--cc-paper);
    border: 1px solid var(--cc-line);
    border-radius: 12px;
    padding: 30px 34px;
    max-width: 820px;
}

    .cc26 .article .tag {
        font-size: 11px;
        letter-spacing: 1.5px;
        text-transform: uppercase;
        font-weight: 700;
        color: var(--cc-gold);
    }

    .cc26 .article h3 {
        font-family: var(--cc-serif);
        font-size: 32px;
        line-height: 1.1;
        font-weight: 600;
        color: var(--cc-green);
        margin: 8px 0 4px;
    }

    .cc26 .article .byline {
        font-size: 13px;
        color: var(--cc-muted);
        margin-bottom: 16px;
        text-align: left;
    }

    .cc26 .article p {
        font-size: 16px;
        margin: 0 0 14px;
    }

.cc26 .stories {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 18px;
    align-items: start;
}

    .cc26 .stories .article {
        max-width: none;
    }

        .cc26 .stories .article h3 {
            font-size: 26px;
        }

        .cc26 .stories .article p {
            font-size: 15px;
        }

.cc26 details.article summary {
    cursor: pointer;
    list-style: none;
}

    .cc26 details.article summary::-webkit-details-marker {
        display: none;
    }

.cc26 details.article .more {
    display: inline-block;
    margin-top: 10px;
    font-size: 14px;
    font-weight: 600;
    color: var(--cc-gold);
}

.cc26 details.article[open] .more {
    display: none;
}

.cc26 details.article .body {
    margin-top: 16px;
}

/* Rosters */
.cc26 .rosters {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.cc26 .team {
    background: var(--cc-paper);
    border: 1px solid var(--cc-line);
    border-radius: 12px;
    overflow: hidden;
}

    .cc26 .team h3 {
        color: #fff;
        padding: 12px 18px;
        font-family: var(--cc-sans);
        font-size: 14px;
        letter-spacing: 2px;
        text-transform: uppercase;
        display: flex;
        justify-content: space-between;
    }

    .cc26 .team.b h3 {
        background: var(--cc-blue);
    }

    .cc26 .team.r h3 {
        background: var(--cc-red);
    }

    .cc26 .team ul {
        list-style: none;
        columns: 2;
        column-gap: 0;
        margin: 0;
        padding: 8px 0;
    }

    .cc26 .team li {
        display: flex;
        justify-content: space-between;
        padding: 7px 18px;
        font-size: 14px;
        break-inside: avoid;
    }

        .cc26 .team li span {
            color: var(--cc-muted);
            font-variant-numeric: tabular-nums;
        }

        .cc26 .team li.cap {
            font-weight: 700;
        }

    .cc26 .team .rk, .cc26 .team .cp {
        font-size: 10px;
        border-radius: 3px;
        padding: 1px 4px;
        margin-left: 6px;
        font-weight: 700;
        color: var(--cc-green);
        background: #eee6d3;
    }

    .cc26 .team .cp {
        background: var(--cc-gold);
        color: #fff;
    }

/* Media */
.cc26 .gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 10px;
}

    .cc26 .gallery img {
        width: 100%;
        aspect-ratio: 4 / 3;
        object-fit: cover;
        border-radius: 10px;
        display: block;
    }

.cc26 .videos {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 18px;
}

    .cc26 .videos figure {
        margin: 0;
        background: var(--cc-paper);
        border: 1px solid var(--cc-line);
        border-radius: 12px;
        overflow: hidden;
    }

    .cc26 .videos video {
        width: 100%;
        display: block;
        background: #000;
    }

    .cc26 .videos figcaption {
        font-size: 14px;
        padding: 10px 14px;
        color: var(--cc-muted);
    }

/* Weekend schedule */
.cc26 .schedule {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 14px;
}

    .cc26 .schedule .day {
        background: var(--cc-paper);
        border: 1px solid var(--cc-line);
        border-top: 4px solid var(--cc-gold);
        border-radius: 10px;
        padding: 16px 18px;
    }

        .cc26 .schedule .day h4 {
            font-family: var(--cc-serif);
            font-size: 24px;
            color: var(--cc-green);
            margin: 0 0 6px;
        }

        .cc26 .schedule .day ul {
            list-style: none;
            margin: 0;
            padding: 0;
            font-size: 14px;
        }

        .cc26 .schedule .day li {
            padding: 4px 0;
        }

.cc26 .tribute {
    margin-top: 56px;
    min-height: 380px;
    background: url(concord/images/ShoopWide.jpg) center / cover;
}

@media (max-width: 900px) {
    .cc26 .series, .cc26 .rosters {
        grid-template-columns: 1fr;
    }

    .cc26 .years {
        grid-template-columns: repeat(8, 1fr);
    }
}

@media (max-width: 560px) {
    .cc26 .wrap {
        padding: 0 16px;
    }

    .cc26 .board {
        grid-template-columns: 1fr 1fr;
    }

        .cc26 .board .score {
            grid-column: 1 / -1;
            grid-row: 1;
            justify-content: center;
            font-size: 56px;
        }

        .cc26 .board .side {
            padding: 14px;
        }

            .cc26 .board .side b {
                font-size: 20px;
            }

    .cc26 .article {
        padding: 22px 20px;
    }

    .cc26 .team ul {
        columns: 1;
    }

    .cc26 .stories, .cc26 .videos {
        grid-template-columns: 1fr;
    }

    .cc26 .tribute {
        min-height: 200px;
    }
}

/* ========== Section sub-menus (History.Master, Stats.master) ========== */
.cc-subnav {
    display: flex;
    align-items: center;
    gap: 6px 14px;
    flex-wrap: wrap;
    margin: 4px 0 26px;
    padding: 10px 0;
    border-bottom: 1px solid var(--cc-line);
    font-family: var(--cc-sans);
}

.cc-subnav-title {
    font-family: var(--cc-serif);
    font-size: 22px;
    font-weight: 600;
    color: var(--cc-green);
    margin-right: 6px;
}

.cc-subnav ul {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.cc-subnav a {
    display: inline-block;
    font-size: 13px;
    font-weight: 500;
    color: var(--cc-ink);
    text-decoration: none;
    padding: 6px 12px;
    border-radius: 99px;
    border: 1px solid var(--cc-line);
    background: var(--cc-paper);
}

    .cc-subnav a:hover {
        border-color: var(--cc-gold);
    }

    .cc-subnav a.on {
        background: var(--cc-green);
        border-color: var(--cc-green);
        color: var(--cc-cream);
    }

/* ========== Inner pages ========== */
.cc-page {
    font-family: var(--cc-sans);
    color: var(--cc-ink);
    text-align: left;
}

.cc-page-head {
    margin-bottom: 18px;
}

    .cc-page-head h2 {
        font-family: var(--cc-serif);
        font-size: 40px;
        font-weight: 600;
        color: var(--cc-green);
        text-align: left;
        line-height: 1.05;
        margin: 2px 0 6px;
    }

    .cc-page-head p {
        color: var(--cc-muted);
        margin: 0;
    }

.cc-kicker {
    font-size: 12px;
    letter-spacing: 3px;
    text-transform: uppercase;
    font-weight: 600;
    color: var(--cc-gold);
}

/* History results */
.hist-tally {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

    .hist-tally .t {
        background: var(--cc-paper);
        border: 1px solid var(--cc-line);
        border-radius: 10px;
        padding: 12px 16px;
    }

        .hist-tally .t b {
            display: block;
            font-family: var(--cc-serif);
            font-variant-numeric: lining-nums;
            font-size: 40px;
            line-height: 1;
            color: var(--cc-green);
        }

        .hist-tally .t span {
            font-size: 12px;
            color: var(--cc-muted);
            text-transform: uppercase;
            letter-spacing: 1px;
        }

        .hist-tally .t.blue {
            background: var(--cc-blue);
            border-color: var(--cc-blue);
        }

        .hist-tally .t.red {
            background: var(--cc-red);
            border-color: var(--cc-red);
        }

            .hist-tally .t.blue b, .hist-tally .t.red b {
                color: #fff;
            }

            .hist-tally .t.blue span, .hist-tally .t.red span {
                color: rgba(255, 255, 255, .8);
            }

.hist-bar {
    display: flex;
    height: 8px;
    border-radius: 99px;
    overflow: hidden;
    margin: 12px 0 8px;
}

    .hist-bar .blue {
        background: var(--cc-blue);
    }

    .hist-bar .red {
        background: var(--cc-red);
    }

    .hist-bar .halved {
        background: var(--cc-gold);
    }

.hist-note {
    font-size: 13px;
    color: var(--cc-muted);
    margin: 0 0 18px;
}

.hist-wrap {
    background: var(--cc-paper);
    border: 1px solid var(--cc-line);
    border-radius: 12px;
    overflow: hidden;
}

.hist-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 15px;
}

    .hist-table th {
        background: var(--cc-green);
        color: var(--cc-cream);
        text-align: left;
        font-size: 11px;
        font-weight: 600;
        letter-spacing: 1.5px;
        text-transform: uppercase;
        padding: 12px 14px;
    }

    .hist-table td {
        padding: 10px 14px;
        border-top: 1px solid var(--cc-line);
        text-align: left;
    }

    .hist-table tr td:first-child {
        border-left: 4px solid transparent;
    }

    .hist-table tr.win-blue td:first-child {
        border-left-color: var(--cc-blue);
    }

    .hist-table tr.win-red td:first-child {
        border-left-color: var(--cc-red);
    }

    .hist-table tr.win-halved td:first-child {
        border-left-color: var(--cc-gold);
    }

    .hist-table tbody tr:hover td {
        background: #f6f0e1;
    }

    .hist-table a {
        color: inherit;
        text-decoration: none;
    }

    .hist-table .c-year a {
        font-family: var(--cc-serif);
        font-variant-numeric: lining-nums;
        font-size: 22px;
        font-weight: 700;
        color: var(--cc-green);
    }

    .hist-table .c-score a {
        white-space: nowrap;
        font-weight: 700;
        font-variant-numeric: tabular-nums;
    }

    .hist-table a:hover {
        color: var(--cc-gold);
        text-decoration: underline;
    }

    .hist-table td.c-lose {
        color: var(--cc-muted);
    }

.hist-pill {
    display: inline-block;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #fff;
    padding: 3px 10px;
    border-radius: 99px;
    background: var(--cc-muted);
}

    .hist-pill.blue {
        background: var(--cc-blue);
    }

    .hist-pill.red {
        background: var(--cc-red);
    }

    .hist-pill.halved {
        background: linear-gradient(90deg, var(--cc-blue) 50%, var(--cc-red) 50%);
    }

@media (max-width: 600px) {
    .hist-tally {
        grid-template-columns: repeat(2, 1fr);
    }

    .hist-table {
        font-size: 13px;
    }

        .hist-table th, .hist-table td {
            padding: 8px;
        }

        .hist-table .c-lose {
            display: none;
        }
}

/* ========== Handicap History (PlayerParticipation.aspx) ========== */
/* Wider than Site.Master's 900px <main> */
.cc-page.pp {
    width: min(1180px, calc(100vw - 32px));
    margin-left: calc(50% - min(590px, 50vw - 16px));
}

.pp-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

    .pp-toolbar input[type=search] {
        flex: 1 1 220px;
        font: inherit;
        font-size: 14px;
        padding: 9px 12px;
        border: 1px solid var(--cc-line);
        border-radius: 8px;
        background: var(--cc-paper);
    }

        .pp-toolbar input[type=search]:focus {
            outline: 2px solid var(--cc-gold);
            border-color: var(--cc-gold);
        }

.pp-filters {
    display: flex;
    border: 1px solid var(--cc-line);
    border-radius: 8px;
    overflow: hidden;
}

    .pp-filters button {
        font: inherit;
        font-size: 13px;
        padding: 8px 12px;
        border: 0;
        background: var(--cc-paper);
        color: var(--cc-ink);
        cursor: pointer;
    }

        .pp-filters button + button {
            border-left: 1px solid var(--cc-line);
        }

        .pp-filters button.on {
            background: var(--cc-green);
            color: var(--cc-cream);
        }

.pp-sortpick {
    font-size: 13px;
    color: var(--cc-muted);
    display: flex;
    align-items: center;
    gap: 6px;
}

    .pp-sortpick select {
        font: inherit;
        font-size: 13px;
        color: var(--cc-ink);
        padding: 8px;
        border: 1px solid var(--cc-line);
        border-radius: 8px;
        background: var(--cc-paper);
    }

.pp-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 18px;
    font-size: 12px;
    color: var(--cc-muted);
    margin-bottom: 10px;
}

    .pp-legend i {
        display: inline-block;
        width: 12px;
        height: 12px;
        border-radius: 3px;
        margin-right: 6px;
        vertical-align: -2px;
    }

        .pp-legend i.b {
            background: #dde7f7;
            box-shadow: inset 0 0 0 1px var(--cc-blue);
        }

        .pp-legend i.r {
            background: #f7dfdd;
            box-shadow: inset 0 0 0 1px var(--cc-red);
        }

        .pp-legend i.rookie {
            background: var(--cc-paper);
            box-shadow: inset 0 0 0 2px var(--cc-gold);
        }

#ppShowing {
    margin-left: auto;
    font-weight: 600;
}

.pp-scroll {
    overflow: auto;
    max-height: 78vh;
    background: var(--cc-paper);
    border: 1px solid var(--cc-line);
    border-radius: 12px;
}

.pp-table {
    border-collapse: separate;
    border-spacing: 0;
    font-size: 12px;
    font-variant-numeric: tabular-nums;
    border: 0 !important;
}

    .pp-table th, .pp-table td {
        border: 0;
        border-bottom: 1px solid #efe9dc;
        padding: 0;
        text-align: center;
        white-space: nowrap;
    }

    .pp-table thead th {
        position: sticky;
        top: 0;
        z-index: 2;
        background: var(--cc-green);
        color: var(--cc-cream);
        font-weight: 600;
        font-size: 11px;
        padding: 10px 0;
        border-bottom: 0;
    }

    .pp-table th.sortable {
        cursor: pointer;
    }

        .pp-table th.sortable:hover, .pp-table th.sorted {
            color: var(--cc-gold-2);
        }

        .pp-table th.sorted::after {
            content: " \25BE";
        }

    /* Player name column stays put while scrolling sideways */
    .pp-table .pp-name {
        position: sticky;
        left: 0;
        z-index: 1;
        background: var(--cc-paper);
        text-align: left;
        padding: 6px 14px;
        min-width: 170px;
        font-size: 13px;
        font-weight: 600;
        border-right: 1px solid var(--cc-line);
    }

        .pp-table .pp-name small {
            display: block;
            font-size: 11px;
            font-weight: 400;
            color: var(--cc-muted);
        }

    .pp-table thead .pp-name {
        z-index: 3;
        background: var(--cc-green);
        color: var(--cc-cream);
        font-size: 11px;
    }

    .pp-table .pp-yr {
        min-width: 30px;
        height: 42px;
    }

    .pp-table td.pp-yr.b {
        background: #dde7f7;
        color: var(--cc-blue);
        font-weight: 600;
    }

    .pp-table td.pp-yr.r {
        background: #f7dfdd;
        color: var(--cc-red);
        font-weight: 600;
    }

    .pp-table td.pp-yr.rookie {
        box-shadow: inset 0 0 0 2px var(--cc-gold);
    }

    .pp-table tbody tr:hover th, .pp-table tbody tr:hover td:not(.b):not(.r) {
        background: #f6f0e1;
    }

    .pp-table .pp-sum {
        padding: 0 12px;
        font-size: 13px;
    }

    .pp-table .pp-first {
        border-left: 2px solid var(--cc-line);
    }

    .pp-table tbody .pp-first {
        font-weight: 700;
    }

    .pp-table tbody td.pp-sum {
        font-size: 12px;
        color: var(--cc-muted);
    }

@media (max-width: 600px) {
    .pp-table .pp-name {
        min-width: 120px;
        padding: 6px 10px;
    }

    #ppShowing {
        margin-left: 0;
    }
}

/* ========== Shared pieces for History / Players sub-pages ========== */
.cc-banner {
    height: 220px;
    border-radius: 14px;
    background: var(--cc-green) center / cover no-repeat;
    margin-bottom: 22px;
}

.cc-section {
    font-family: var(--cc-serif) !important;
    font-size: 28px !important;
    font-weight: 600 !important;
    color: var(--cc-green) !important;
    text-align: left !important;
    margin: 32px 0 12px !important;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--cc-line);
}

    .cc-section span {
        font-family: var(--cc-sans);
        font-size: 12px;
        font-weight: 500;
        letter-spacing: 1px;
        text-transform: uppercase;
        color: var(--cc-muted);
        margin-left: 8px;
    }

.cc-empty {
    display: block;
    color: var(--cc-muted);
    font-style: italic;
}

.cc-footnote {
    font-size: 12px;
    color: var(--cc-muted);
    margin-top: 12px;
}

/* Number tiles (CupHtml.Tiles) */
.cc-tiles {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 10px;
}

    .cc-tiles .t {
        background: var(--cc-paper);
        border: 1px solid var(--cc-line);
        border-radius: 10px;
        padding: 12px 16px;
    }

        .cc-tiles .t b {
            display: block;
            font-family: var(--cc-serif);
            font-variant-numeric: lining-nums;
            font-size: 36px;
            line-height: 1.05;
            color: var(--cc-green);
        }

        .cc-tiles .t span {
            font-size: 11px;
            color: var(--cc-muted);
            text-transform: uppercase;
            letter-spacing: 1px;
        }

        .cc-tiles .t.blue {
            background: var(--cc-blue);
            border-color: var(--cc-blue);
        }

        .cc-tiles .t.red {
            background: var(--cc-red);
            border-color: var(--cc-red);
        }

        .cc-tiles .t.gold {
            background: var(--cc-green);
            border-color: var(--cc-green);
            grid-column: span 2;
            white-space: nowrap;
        }

            .cc-tiles .t.blue b, .cc-tiles .t.red b, .cc-tiles .t.gold b {
                color: #fff;
            }

            .cc-tiles .t.blue span, .cc-tiles .t.red span, .cc-tiles .t.gold span {
                color: rgba(255, 255, 255, .8);
            }

        .cc-tiles .t.small b {
            font-size: 24px;
            padding: 6px 0 4px;
        }

.cc-split {
    display: flex;
    height: 8px;
    border-radius: 99px;
    overflow: hidden;
    margin: 12px 0 4px;
    background: var(--cc-line);
}

    .cc-split .blue {
        background: var(--cc-blue);
    }

    .cc-split .red {
        background: var(--cc-red);
    }

    .cc-split .halved {
        background: var(--cc-gold);
    }

/* Leaderboards (CupHtml.Leaderboard) */
.cc-boards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 14px;
    margin-top: 18px;
}

.cc-board {
    background: var(--cc-paper);
    border: 1px solid var(--cc-line);
    border-radius: 10px;
    padding: 14px 18px;
}

    .cc-board h4 {
        margin: 0 0 8px;
        font-size: 11px;
        letter-spacing: 1.5px;
        text-transform: uppercase;
        color: var(--cc-gold);
    }

    .cc-board ol {
        margin: 0;
        padding: 0;
        list-style: none;
        counter-reset: board;
    }

    .cc-board li {
        counter-increment: board;
        display: flex;
        align-items: baseline;
        gap: 10px;
        padding: 5px 0;
        font-size: 14px;
        border-top: 1px solid #efe9dc;
    }

        .cc-board li:first-child {
            border-top: 0;
        }

        .cc-board li::before {
            content: counter(board);
            width: 16px;
            font-size: 12px;
            color: var(--cc-muted);
        }

        .cc-board li a {
            flex: 1;
            color: var(--cc-ink);
            text-decoration: none;
        }

            .cc-board li a:hover {
                color: var(--cc-gold);
            }

/* Match cards (CupHtml.MatchCards) */
.mc-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 10px;
}

.mc {
    background: var(--cc-paper);
    border: 1px solid var(--cc-line);
    border-radius: 10px;
    overflow: hidden;
    font-size: 14px;
}

.mc-h {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    padding: 7px 12px;
    border-bottom: 1px solid var(--cc-line);
    font-size: 11px;
    letter-spacing: .5px;
    text-transform: uppercase;
    color: var(--cc-muted);
}

    .mc-h a {
        color: var(--cc-green);
        font-weight: 700;
        text-decoration: none;
    }

        .mc-h a:hover {
            color: var(--cc-gold);
        }

/* Winner's color runs along the top of the card */
.mc.win-red {
    border-top: 4px solid var(--cc-red);
}

.mc.win-blue {
    border-top: 4px solid var(--cc-blue);
}

.mc.win-halved {
    border-color: #e3d2ad;
    border-top: 4px solid var(--cc-gold);
}

/* Result as a filled badge: "Red 1 up" */
.mc-res {
    font-weight: 700;
    white-space: nowrap;
    text-transform: none;
    letter-spacing: 0;
    font-size: 12px;
    color: #fff;
    padding: 2px 9px;
    border-radius: 99px;
}

    .mc-res.b {
        background: var(--cc-blue);
    }

    .mc-res.r {
        background: var(--cc-red);
    }

    .mc-res.h {
        background: var(--cc-gold);
    }

.mc-row {
    padding: 7px 12px;
    border-left: 4px solid transparent;
}

    .mc-row.b {
        border-left-color: var(--cc-blue);
    }

    .mc-row.r {
        border-left-color: var(--cc-red);
    }

    /* Winning side: bold, washed in its team color */
    .mc-row.w {
        font-weight: 700;
    }

    .mc-row.w.r {
        color: #8e1d17;
        background: linear-gradient(90deg, rgba(179, 38, 30, .16), rgba(179, 38, 30, .04));
    }

    .mc-row.w.b {
        color: #173d7d;
        background: linear-gradient(90deg, rgba(31, 78, 156, .16), rgba(31, 78, 156, .04));
    }

    .mc-row .tick {
        font-weight: 800;
        white-space: nowrap;
    }

    .mc-row.r .tick {
        color: var(--cc-red);
    }

    .mc-row.b .tick {
        color: var(--cc-blue);
    }

    /* Losing side steps back a little */
    .mc.win-red .mc-row.b, .mc.win-blue .mc-row.r {
        color: var(--cc-muted);
    }

/* Hand-written lists (Comebacks, 777) */
.cc-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

    .cc-list.newest-last {
        flex-direction: column-reverse;
    }

    .cc-list li {
        display: flex;
        gap: 14px;
        align-items: baseline;
        background: var(--cc-paper);
        border: 1px solid var(--cc-line);
        border-left: 4px solid var(--cc-muted);
        border-radius: 8px;
        padding: 10px 14px;
        font-size: 15px;
        text-align: left;
    }

        .cc-list li::before {
            display: none;
        }

        .cc-list li.b {
            border-left-color: var(--cc-blue);
        }

        .cc-list li.r {
            border-left-color: var(--cc-red);
        }

        .cc-list li.h {
            border-left-color: var(--cc-gold);
        }

    .cc-list .yr {
        font-family: var(--cc-serif);
        font-variant-numeric: lining-nums;
        font-size: 20px;
        font-weight: 700;
        color: var(--cc-green);
        min-width: 48px;
    }

    .cc-list em {
        font-style: normal;
        font-size: 11px;
        letter-spacing: 1px;
        text-transform: uppercase;
        color: var(--cc-muted);
        margin-left: 6px;
    }

/* 777 Jackpot */
.jp-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.jp-reels {
    display: flex;
    gap: 6px;
    background: var(--cc-green);
    padding: 10px;
    border-radius: 12px;
    border: 2px solid var(--cc-gold);
}

    .jp-reels span {
        width: 54px;
        height: 70px;
        display: grid;
        place-items: center;
        background: var(--cc-cream);
        border-radius: 6px;
        font-family: var(--cc-serif);
        font-variant-numeric: lining-nums;
        font-size: 52px;
        font-weight: 700;
        color: var(--cc-red);
    }

.jp-holes {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-top: 10px;
}

    .jp-holes figure {
        margin: 0;
        background: var(--cc-paper);
        border: 1px solid var(--cc-line);
        border-radius: 10px;
        overflow: hidden;
        text-align: center;
    }

    .jp-holes img {
        width: 100%;
        max-width: 100%;
        padding: 0;
        display: block;
    }

    .jp-holes figcaption {
        font-size: 12px;
        font-weight: 600;
        padding: 6px;
        color: var(--cc-muted);
    }

.jp-score {
    font-variant-numeric: tabular-nums;
    background: #f1ebdd;
    border-radius: 4px;
    padding: 1px 6px;
    margin-left: 6px;
    font-size: 13px;
}

/* Ranked tables (Best Teams, Player Ranking) */
.rank-wrap {
    background: var(--cc-paper);
    border: 1px solid var(--cc-line);
    border-radius: 12px;
    overflow: hidden;
}

.rank-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

    .rank-table th {
        background: var(--cc-green);
        color: var(--cc-cream);
        font-size: 11px;
        font-weight: 600;
        letter-spacing: 1.5px;
        text-transform: uppercase;
        text-align: left;
        padding: 11px 12px;
    }

    .rank-table td {
        padding: 8px 12px;
        border-top: 1px solid #efe9dc;
        text-align: left;
    }

    /* rydercup.css colors .teamred / .teamblue text; here the stripe carries the color */
    .rank-table tr.teamred, .rank-table tr.teamblue {
        color: var(--cc-ink);
        font-weight: 400;
    }

    .rank-table tr td:first-child {
        border-left: 4px solid transparent;
    }

    .rank-table tr.teamblue td:first-child, .rank-table tr.b td:first-child {
        border-left-color: var(--cc-blue);
    }

    .rank-table tr.teamred td:first-child, .rank-table tr.r td:first-child {
        border-left-color: var(--cc-red);
    }

    .rank-table tbody tr:hover td {
        background: #f6f0e1;
    }

    .rank-table .n {
        width: 44px;
        text-align: center;
    }

    .rank-table .rank {
        font-size: 13px;
        font-weight: 600;
        color: var(--cc-muted);
        font-variant-numeric: tabular-nums;
    }

    .rank-table .who a {
        color: var(--cc-ink);
        font-weight: 600;
        text-decoration: none;
    }

        .rank-table .who a:hover {
            color: var(--cc-gold);
            text-decoration: underline;
        }

    .rank-table .rec, .rank-table .num {
        font-variant-numeric: tabular-nums;
        white-space: nowrap;
    }

    .rank-table .num {
        text-align: right;
        font-weight: 600;
    }

    .rank-table .pct {
        width: 160px;
        white-space: nowrap;
        font-variant-numeric: tabular-nums;
        font-size: 13px;
    }

    .rank-table .bar {
        display: inline-block;
        width: 90px;
        height: 6px;
        border-radius: 99px;
        background: #ece5d5;
        margin-right: 8px;
        vertical-align: middle;
        overflow: hidden;
    }

        .rank-table .bar i {
            display: block;
            height: 100%;
            background: var(--cc-green);
        }

/* Event Summary */
.es-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 18px;
}

    .es-top .cc-page-head {
        margin: 0;
    }

.es-nav {
    display: flex;
    align-items: center;
    gap: 10px;
}

.es-step {
    white-space: nowrap;
    font-size: 13px;
    font-weight: 600;
    color: var(--cc-green) !important;
    text-decoration: none;
    padding: 8px 12px;
    border: 1px solid var(--cc-line);
    border-radius: 8px;
    background: var(--cc-paper);
}

    .es-step:hover {
        border-color: var(--cc-gold);
    }

.cc-picker {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--cc-muted);
}

    .cc-picker select {
        font: inherit;
        font-size: 14px;
        font-weight: 500;
        letter-spacing: 0;
        text-transform: none;
        color: var(--cc-ink);
        padding: 8px 10px;
        border: 1px solid var(--cc-line);
        border-radius: 8px;
        background: var(--cc-paper);
        max-width: 100%;
    }

        .cc-picker select:focus {
            outline: 2px solid var(--cc-gold);
        }

    .cc-picker.blue select {
        border-left: 4px solid var(--cc-blue);
    }

    .cc-picker.red select {
        border-left: 4px solid var(--cc-red);
    }

.es-board {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    border-radius: 14px;
    overflow: hidden;
    color: #fff;
    box-shadow: 0 10px 24px rgba(20, 30, 20, .18);
}

    .es-board .side {
        padding: 18px 22px;
        display: flex;
        flex-direction: column;
        justify-content: center;
        gap: 2px;
    }

        .es-board .side.blue {
            background: var(--cc-blue);
        }

        .es-board .side.red {
            background: var(--cc-red);
            text-align: right;
            align-items: flex-end;
        }

        .es-board .side small {
            font-size: 11px;
            letter-spacing: 1.5px;
            text-transform: uppercase;
            opacity: .85;
        }

        .es-board .side b {
            font-size: 24px;
            font-weight: 800;
            letter-spacing: 1px;
        }

    .es-board .score {
        background: #0d1f14;
        padding: 10px 26px;
        display: flex;
        align-items: center;
        gap: 12px;
        font-family: var(--cc-serif);
        font-variant-numeric: lining-nums;
        font-weight: 700;
        font-size: 52px;
        white-space: nowrap;
    }

        .es-board .score i {
            font-style: normal;
            font-size: 26px;
            color: var(--cc-gold-2);
        }

.es-won {
    display: inline-block;
    align-self: flex-start;
    background: var(--cc-gold);
    color: var(--cc-green);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1.5px;
    padding: 3px 8px;
    border-radius: 4px;
    margin-top: 4px;
}

.es-board .side.red .es-won {
    align-self: flex-end;
}

.es-details {
    font-size: 13px;
    color: var(--cc-muted);
    margin: 10px 0 0;
}

.es-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
}

.es-chip {
    background: var(--cc-paper);
    border: 1px solid var(--cc-line);
    border-radius: 99px;
    padding: 6px 14px;
    font-size: 13px;
}

    .es-chip .b {
        color: var(--cc-blue);
    }

    .es-chip .r {
        color: var(--cc-red);
    }

.cc-article {
    background: var(--cc-paper);
    border: 1px solid var(--cc-line);
    border-radius: 12px;
    padding: 24px 28px;
    font-size: 15px;
    line-height: 1.65;
    text-align: left;
}

    .cc-article img {
        max-width: 100%;
        height: auto;
        padding: 0;
        border-radius: 8px;
    }

@media (max-width: 600px) {
    .cc-banner {
        height: 150px;
    }

    .es-board {
        grid-template-columns: 1fr 1fr;
    }

        .es-board .score {
            grid-column: 1 / -1;
            grid-row: 1;
            justify-content: center;
            font-size: 44px;
        }

    .jp-holes {
        grid-template-columns: 1fr 1fr 1fr;
        gap: 6px;
    }

    .rank-table .pct .bar {
        display: none;
    }

    .rank-table .pct {
        width: auto;
    }

    .cc-article {
        padding: 18px;
    }
}

/* Player / year pickers above a page head */
.cc-pickers {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 18px;
    align-items: center;
    background: var(--cc-paper);
    border: 1px solid var(--cc-line);
    border-radius: 10px;
    padding: 10px 14px;
    margin-bottom: 20px;
}

    .cc-pickers .cc-picker small {
        font-weight: 400;
        text-transform: none;
        letter-spacing: 0;
    }

.cc-page-head h2 .hist-pill {
    vertical-align: middle;
    font-family: var(--cc-sans);
    margin-left: 6px;
}

.cc-tiles .t small {
    font-family: var(--cc-sans);
    font-size: 12px;
    color: var(--cc-muted);
}

.rk-showing {
    margin-left: auto;
    font-size: 12px;
    font-weight: 600;
    color: var(--cc-muted);
}

.yr-table .who a {
    font-family: var(--cc-serif);
    font-variant-numeric: lining-nums;
    font-size: 18px;
    font-weight: 700;
    color: var(--cc-green);
}

@media (max-width: 600px) {
    .cc-picker {
        flex: 1 1 100%;
        justify-content: space-between;
    }

        .cc-picker select {
            flex: 1;
            min-width: 0;
        }

    .rank-table th, .rank-table td {
        padding: 7px 6px;
    }

    .rank-table .hide-sm {
        display: none;
    }

    .rank-wrap {
        overflow-x: auto;
    }
}

/* ========== Course (Course.aspx) ========== */
/* Hole strip: all 18 holes, Out / In, current one lit */
.co-strip {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 14px;
}

.co-nine {
    display: flex;
    align-items: stretch;
    gap: 6px;
}

.co-nine-label {
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--cc-muted);
    text-align: center;
}

.co-holes {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(9, 1fr);
    gap: 3px;
}

    .co-holes a {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding: 6px 0 5px;
        border-radius: 6px;
        background: var(--cc-paper);
        border: 1px solid var(--cc-line);
        color: var(--cc-green);
        text-decoration: none;
        font-family: var(--cc-serif);
        font-variant-numeric: lining-nums;
        font-size: 18px;
        font-weight: 700;
        line-height: 1;
    }

        .co-holes a small {
            font-family: var(--cc-sans);
            font-size: 9px;
            font-weight: 500;
            color: var(--cc-muted);
            margin-top: 3px;
        }

        .co-holes a:hover {
            border-color: var(--cc-gold);
        }

        .co-holes a.on {
            background: var(--cc-gold);
            border-color: var(--cc-gold);
            color: #fff;
            transform: scale(1.08);
            box-shadow: 0 4px 10px rgba(184, 145, 74, .45);
        }

            .co-holes a.on small {
                color: rgba(255, 255, 255, .9);
            }

/* Hole header */
.co-hero {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 22px;
    background: radial-gradient(700px 260px at 0% 0%, #2b5e3c 0%, var(--cc-green) 70%);
    color: var(--cc-cream);
    border-radius: 14px;
    padding: 18px 22px;
    border-bottom: 3px solid var(--cc-gold);
}

.co-big {
    font-family: var(--cc-serif);
    font-variant-numeric: lining-nums;
    font-weight: 700;
    font-size: 112px;
    line-height: .85;
    color: var(--cc-gold-2);
    min-width: 1.1em;
    text-align: center;
}

.co-where {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: var(--cc-gold-2);
}

.co-info h2 {
    font-family: var(--cc-serif);
    font-size: 46px;
    font-weight: 600;
    color: var(--cc-cream);
    text-align: left;
    line-height: 1.05;
    margin: 2px 0 10px;
}

.co-facts {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

    .co-facts span {
        background: rgba(255, 255, 255, .08);
        border: 1px solid rgba(255, 255, 255, .16);
        border-radius: 99px;
        padding: 4px 12px;
        font-size: 13px;
        color: #d6dfd6;
    }

    .co-facts b {
        color: #fff;
        font-weight: 700;
    }

    .co-facts span:first-child {
        background: var(--cc-gold);
        border-color: var(--cc-gold);
    }

        .co-facts span:first-child b {
            color: var(--cc-green);
        }

.co-arrows {
    display: flex;
    gap: 8px;
}

    .co-arrows a {
        width: 64px;
        height: 64px;
        border-radius: 12px;
        border: 1px solid rgba(255, 255, 255, .25);
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        color: #fff;
        text-decoration: none;
        font-size: 22px;
        line-height: 1;
    }

        .co-arrows a small {
            font-size: 10px;
            color: var(--cc-soft);
            margin-top: 4px;
        }

        .co-arrows a:hover {
            background: rgba(255, 255, 255, .1);
            border-color: var(--cc-gold-2);
        }
.co-endings {
    margin-top: 12px;
    background: var(--cc-paper);
    border: 1px solid var(--cc-line);
    border-radius: 10px;
    padding: 12px 16px 6px;
    font-size: 14px;
}

    .co-endings b {
        font-family: var(--cc-serif);
        font-variant-numeric: lining-nums;
        font-size: 22px;
        color: var(--cc-green);
    }

    .co-endings .b {
        color: var(--cc-blue);
        font-weight: 600;
    }

    .co-endings .r {
        color: var(--cc-red);
        font-weight: 600;
    }

    .co-endings a {
        color: var(--cc-gold);
        font-weight: 600;
        text-decoration: none;
    }

/* Hole diagram on top, then the photo, both full width */
.co-media {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    margin-top: 18px;
}

    .co-media figure {
        margin: 0;
        background: var(--cc-paper);
        border: 1px solid var(--cc-line);
        border-radius: 12px;
        overflow: hidden;
    }

    .co-media img {
        display: block;
        width: 100%;
        max-width: 100%;
        padding: 0;
    }

    .co-photo {
        background: #0d1f14 !important;
    }

        .co-photo img {
            max-height: 460px;
            object-fit: contain;
            margin: 0 auto;
            width: auto;
        }

        /* Diagrams are small, wide strips; show them at a fixed, modest height */
        .co-diagram img {
            width: auto;
            height: 180px;
            max-width: calc(100% - 20px);
            object-fit: contain;
            margin: 0 auto;
            padding: 10px 0;
        }

    .co-diagram {
        background: #fff !important;
    }

        .co-diagram figcaption {
            font-size: 12px;
            font-weight: 600;
            color: var(--cc-muted);
            text-align: center;
            padding: 6px;
            border-top: 1px solid var(--cc-line);
        }

.co .cc-article p {
    margin: 0 0 14px;
}

/* Older write-ups use fixed-width layout tables (width="610" align="left");
   flatten them so photos and captions stay inside the article */
.cc-article {
    display: flow-root;
}

    .cc-article table, .cc-article tbody, .cc-article tr, .cc-article td {
        display: block;
        width: auto !important;
        float: none !important;
        border: 0;
        padding: 0;
    }

    .cc-article table {
        margin: 6px 0 16px;
    }

    .cc-article td img {
        display: block;
        height: auto !important;
        width: auto !important;
        max-width: 100% !important;
        margin: 0 auto 6px;
    }

    .cc-article font {
        font-size: 13px;
        color: var(--cc-muted);
    }

.co-card {
    clear: both;
}

/* Scorecard */
.co-card {
    overflow-x: auto;
    background: var(--cc-paper);
    border: 1px solid var(--cc-line);
    border-radius: 12px;
}

    .co-card table {
        border-collapse: collapse;
        width: 100%;
        font-size: 13px;
        font-variant-numeric: tabular-nums;
    }

    .co-card th, .co-card td {
        padding: 7px 6px;
        text-align: center;
        border: 0;
        border-left: 1px solid #efe9dc;
        white-space: nowrap;
    }

    .co-card tbody th {
        text-align: left;
        font-size: 11px;
        font-weight: 600;
        letter-spacing: 1px;
        text-transform: uppercase;
        color: var(--cc-muted);
        padding-left: 12px;
        border-left: 0;
    }

    .co-card thead th {
        background: var(--cc-green);
        color: var(--cc-cream);
        font-weight: 700;
        border-left-color: rgba(255, 255, 255, .1);
    }

        .co-card thead th:first-child {
            text-align: left;
            padding-left: 12px;
            font-size: 11px;
            letter-spacing: 1px;
            text-transform: uppercase;
            font-weight: 600;
        }

    .co-card a {
        color: inherit;
        text-decoration: none;
        display: block;
    }

    .co-card tbody tr {
        border-top: 1px solid #efe9dc;
    }

    .co-card tr.nick td {
        font-size: 11px;
        white-space: normal;
        line-height: 1.2;
        min-width: 58px;
        color: var(--cc-muted);
    }

        .co-card tr.nick td a:hover {
            color: var(--cc-gold);
        }

    .co-card tr.par td {
        font-weight: 700;
    }

    .co-card .sub {
        background: #f3eddf;
        font-weight: 700;
    }

    .co-card thead th.sub {
        background: #0d1f14;
    }

    .co-card .on {
        background: #f6ecd2;
        box-shadow: inset 0 0 0 1px var(--cc-gold);
    }

    .co-card thead th.on {
        background: var(--cc-gold);
        color: var(--cc-green);
    }

@media (max-width: 600px) {
    .co-media {
        grid-template-columns: 1fr;
    }

    .co-strip {
        grid-template-columns: 1fr;
        gap: 6px;
    }

    .co-holes a {
        font-size: 15px;
    }

    .co-hero {
        grid-template-columns: auto 1fr;
        gap: 12px 16px;
        padding: 16px;
    }

    .co-big {
        font-size: 72px;
    }

    .co-info h2 {
        font-size: 32px;
    }

    .co-arrows {
        grid-column: 1 / -1;
    }

        .co-arrows a {
            flex: 1;
            height: 48px;
            flex-direction: row;
            gap: 8px;
        }

            .co-arrows a small {
                margin: 0;
                font-size: 12px;
            }
}

/* ========== Photos (Photos.aspx) ========== */
.cc-page.ph-page {
    width: min(1180px, calc(100vw - 32px));
    margin-left: calc(50% - min(590px, 50vw - 16px));
}

.ph-years {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    position: sticky;
    top: 72px;
    z-index: 5;
    background: var(--cc-cream);
    padding: 10px 0;
    border-bottom: 1px solid var(--cc-line);
}

    .ph-years button {
        font: inherit;
        font-size: 13px;
        font-weight: 600;
        color: var(--cc-green);
        background: var(--cc-paper);
        border: 1px solid var(--cc-line);
        border-radius: 99px;
        padding: 5px 12px;
        cursor: pointer;
    }

        .ph-years button small {
            font-weight: 500;
            color: var(--cc-muted);
            margin-left: 2px;
        }

        .ph-years button:hover {
            border-color: var(--cc-gold);
        }

        .ph-years button.on {
            background: var(--cc-green);
            border-color: var(--cc-green);
            color: var(--cc-cream);
        }

            .ph-years button.on small {
                color: var(--cc-gold-2);
            }

.ph-year .cc-section a {
    color: var(--cc-gold);
    text-decoration: none;
    text-transform: none;
    letter-spacing: 0;
    font-weight: 600;
}

.ph-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
    gap: 8px;
}

a.ph {
    position: relative;
    display: block;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-radius: 8px;
    background: #e9e3d4;
}

    a.ph img {
        width: 100%;
        height: 100%;
        max-width: none;
        padding: 0;
        object-fit: cover;
        display: block;
        transition: transform .25s ease;
    }

    a.ph:hover img {
        transform: scale(1.05);
    }

    a.ph span {
        position: absolute;
        left: 0;
        right: 0;
        bottom: 0;
        padding: 16px 8px 6px;
        font-size: 12px;
        color: #fff;
        background: linear-gradient(transparent, rgba(0, 0, 0, .65));
    }

.ph-videos {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 10px;
}

    .ph-videos video {
        width: 100%;
        border-radius: 10px;
        background: #000;
    }

/* Large view */
.ph-box {
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: rgba(8, 16, 10, .94);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px;
}

    .ph-box[hidden] {
        display: none;
    }

    .ph-box figure {
        margin: 0;
        max-width: min(1400px, 100%);
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .ph-box img {
        max-width: 100%;
        max-height: calc(100vh - 90px);
        padding: 0;
        border-radius: 6px;
        box-shadow: 0 10px 40px rgba(0, 0, 0, .5);
    }

    .ph-box figcaption {
        display: flex;
        gap: 16px;
        align-items: center;
        color: var(--cc-cream);
        font-size: 13px;
        margin-top: 10px;
    }

        .ph-box figcaption a {
            color: var(--cc-gold-2);
        }

    #phCount {
        color: var(--cc-soft);
    }

    .ph-box button {
        font: inherit;
        color: #fff;
        background: rgba(255, 255, 255, .08);
        border: 1px solid rgba(255, 255, 255, .25);
        border-radius: 50%;
        width: 48px;
        height: 48px;
        font-size: 22px;
        cursor: pointer;
        flex: none;
    }

        .ph-box button:hover {
            background: rgba(255, 255, 255, .18);
            border-color: var(--cc-gold-2);
        }

    .ph-box .ph-close {
        position: absolute;
        top: 14px;
        right: 14px;
        font-size: 28px;
        line-height: 1;
    }

@media (max-width: 600px) {
    .ph-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 4px;
    }

    a.ph {
        border-radius: 4px;
        aspect-ratio: 1;
    }

    .ph-box {
        padding: 8px;
    }

        .ph-box .ph-prev, .ph-box .ph-next {
            position: absolute;
            bottom: 16px;
        }

        .ph-box .ph-prev {
            left: 16px;
        }

        .ph-box .ph-next {
            right: 16px;
        }

    .ph-years {
        top: 64px;
        flex-wrap: nowrap;
        overflow-x: auto;
    }

        .ph-years button {
            flex: none;
        }
}

/* ========== Admin: Rules, Charity, Finances ========== */
.cc-page-head p a, .cc-footnote a {
    color: var(--cc-gold);
    font-weight: 600;
    text-decoration: none;
}

.rules-jump {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 18px;
}

    .rules-jump a {
        font-size: 13px;
        font-weight: 500;
        color: var(--cc-green);
        text-decoration: none;
        padding: 5px 12px;
        border: 1px solid var(--cc-line);
        border-radius: 99px;
        background: var(--cc-paper);
    }

        .rules-jump a:hover {
            border-color: var(--cc-gold);
        }

.rule-card {
    background: var(--cc-paper);
    border: 1px solid var(--cc-line);
    border-radius: 12px;
    padding: 20px 24px;
    margin-bottom: 12px;
    scroll-margin-top: 90px;
}

    .rule-card h3 {
        display: flex;
        align-items: center;
        gap: 12px;
        font-family: var(--cc-serif);
        font-size: 26px;
        font-weight: 600;
        color: var(--cc-green);
        text-align: left;
        margin: 0 0 10px;
    }

        .rule-card h3 span {
            color: var(--cc-gold);
            font-variant-numeric: lining-nums;
        }

            .rule-card h3 span::after {
                content: ".";
            }

    .rule-card p, .rule-card li, .rule-card dd {
        font-size: 15px;
        line-height: 1.6;
    }

    .rule-card p {
        margin: 0;
    }

    .rule-card ul {
        margin: 0;
        padding-left: 20px;
    }

    .rule-card dl {
        display: grid;
        grid-template-columns: 150px 1fr;
        gap: 10px 18px;
        margin: 0;
    }

    .rule-card dt {
        font-size: 12px;
        font-weight: 700;
        letter-spacing: 1px;
        text-transform: uppercase;
        color: var(--cc-muted);
        padding-top: 3px;
    }

    .rule-card dd {
        margin: 0;
    }

        .rule-card dd a {
            display: inline-block;
            margin-top: 4px;
            font-size: 13px;
            color: var(--cc-gold);
            font-weight: 600;
            text-decoration: none;
        }

.rule-example {
    margin: 8px 0 2px;
    padding: 8px 12px;
    background: #f3eddf;
    border-left: 3px solid var(--cc-gold);
    border-radius: 4px;
    font-size: 14px;
}

/* Charity */
.gift-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

    .gift-list li {
        display: flex;
        align-items: baseline;
        gap: 16px;
        flex-wrap: wrap;
        background: var(--cc-paper);
        border: 1px solid var(--cc-line);
        border-left: 4px solid var(--cc-gold);
        border-radius: 8px;
        padding: 10px 16px;
        font-size: 15px;
    }

        .gift-list li::before {
            display: none;
        }

    .gift-list .yr {
        font-family: var(--cc-serif);
        font-variant-numeric: lining-nums;
        font-size: 20px;
        font-weight: 700;
        color: var(--cc-green);
        min-width: 80px;
    }

    .gift-list b {
        font-variant-numeric: tabular-nums;
        min-width: 90px;
    }

    .gift-list .to {
        flex: 1;
    }

    .gift-list a {
        font-size: 13px;
        font-weight: 600;
        color: var(--cc-gold);
        text-decoration: none;
    }

/* Finances */
.cc-page.fin {
    width: min(1180px, calc(100vw - 32px));
    margin-left: calc(50% - min(590px, 50vw - 16px));
}

.fin-scroll {
    overflow-x: auto;
    background: var(--cc-paper);
    border: 1px solid var(--cc-line);
    border-radius: 12px;
}

.fin-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    font-variant-numeric: tabular-nums;
}

    .fin-table th {
        background: var(--cc-green);
        color: var(--cc-cream);
        font-size: 11px;
        font-weight: 600;
        letter-spacing: .5px;
        text-transform: uppercase;
        text-align: right;
        vertical-align: bottom;
        padding: 10px 10px;
        line-height: 1.3;
    }

    .fin-table td {
        text-align: right;
        padding: 8px 10px;
        border-top: 1px solid #efe9dc;
        white-space: nowrap;
    }

    .fin-table .yr {
        text-align: left;
        position: sticky;
        left: 0;
        background: inherit;
    }

    .fin-table td.yr {
        font-variant-numeric: lining-nums;
        font-family: var(--cc-serif);
        font-size: 18px;
        font-weight: 700;
        color: var(--cc-green);
        background: var(--cc-paper);
    }

    .fin-table th.yr {
        background: var(--cc-green);
    }

    .fin-table .tot {
        font-weight: 600;
        border-left: 1px solid var(--cc-line);
    }

    .fin-table td.net {
        font-weight: 700;
        color: var(--cc-green);
        background: #f3eddf;
    }

    .fin-table td.gift {
        font-weight: 700;
        border-left: 1px solid var(--cc-line);
    }

        .fin-table td.gift small {
            display: block;
            font-weight: 400;
            font-size: 11px;
            color: var(--cc-muted);
        }

    .fin-table tbody tr:hover td {
        background: #f6f0e1;
    }

    .fin-table sup {
        color: var(--cc-gold);
        font-weight: 700;
    }

.fin-notes {
    padding-left: 18px;
    margin-bottom: 0;
}

@media (max-width: 600px) {
    .rule-card {
        padding: 16px;
    }

        .rule-card dl {
            grid-template-columns: 1fr;
            gap: 2px;
        }

        .rule-card dd {
            margin-bottom: 10px;
        }

    .gift-list li {
        gap: 4px 12px;
    }
}

/* Player Ranking: All-time / Last 5 Cups */
.pp-filters a {
    font-size: 13px;
    padding: 8px 12px;
    background: var(--cc-paper);
    color: var(--cc-ink);
    text-decoration: none;
}

    .pp-filters a + a {
        border-left: 1px solid var(--cc-line);
    }

    .pp-filters a.on {
        background: var(--cc-green);
        color: var(--cc-cream);
    }

    .pp-filters a small {
        color: var(--cc-muted);
        margin-left: 4px;
    }

    .pp-filters a.on small {
        color: var(--cc-gold-2);
    }

/* Face-Off: W - L - H with a small label underneath */
.es-board .fo-score {
    flex-direction: column;
    justify-content: center;
    gap: 2px;
}

    .es-board .fo-score small {
        font-family: var(--cc-sans);
        font-size: 10px;
        font-weight: 600;
        letter-spacing: 1.5px;
        text-transform: uppercase;
        color: var(--cc-soft);
    }
