/* ============================================================================
   Lions Sports Club, Game Day stylesheet
   ----------------------------------------------------------------------------
   Everything /gameday needs on top of site.css. Split out of the page on
   2026-08-12; it had grown to 1,012 lines living inside a 69KB PHP file, which
   meant every style change was text surgery on a file that also held the
   markup and the data calls. Three CSS bugs in one day traced back to that.

   Loaded by /gameday/index.php after site.css, so it can override the shared
   tokens and cascade normally. Bump the ?v= token in the page when this file
   changes; it is cached hard.

   Section order matches the page: hero, tickets, sticky bar, team colors,
   seniors, level sections and the matchup table, roster views, cheer,
   schedule, sponsor band.
   ============================================================================ */

/* Pattern A: blue page surface, dark hero. Flat throughout, no gradients
   and no shadows, per the design system. */
.page-bg { background-color: var(--blue-primary); min-height: 100vh; }

/* ===== HERO SCOREBOARD =====
   Reads the way a broadcast lower third reads: state first, teams at
   scale, fixture detail underneath. Solid color blocking only. */
.gd-hero { background: var(--black); padding: 34px 0 0; }
@media (min-width: 768px) { .gd-hero { padding: 48px 0 0; } }

.gd-status {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    padding: 8px 16px;
    border-radius: 3px;
    margin-bottom: 26px;
}
/* Labels, not controls. These were filled pills, which put a button-shaped
   blue object at the top of the page a few inches above two real buttons and
   under a header full of them. Nothing happens when you tap a status, so it
   should not look like something you tap. Same reason Game Day is set as
   display type rather than as a larger pill.

   Gold stays reserved for game day. Everything else is a quiet label above the
   countdown, which carries the information anyone actually wants. */
.gd-status--upcoming,
.gd-status--past {
    background: none;
    padding: 0;
    font-size: 0.8125rem;
    letter-spacing: 0.22em;
    margin-bottom: 8px;
}
.gd-status--upcoming { color: var(--white); }
.gd-status--past     { color: var(--gray-text); }
.gd-status--title    { color: var(--gold); }

/* Game day is the one status worth celebrating, so it is the loudest thing
   in the hero. It is set as display type rather than as a larger filled
   pill: a filled gold pill the size of a button, sitting a few inches above
   an actual gold button, reads as tappable and is not. Type carries the
   emphasis without claiming an action, and it leaves Buy Tickets as the
   only filled gold shape on the page, which is what should be clicked. */
.gd-status--today {
    background: none;
    padding: 0;
    color: var(--gold);
    font-size: 1.875rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    gap: 14px;
    margin-bottom: 10px;
}
.gd-status__ball {
    width: 1.45em;
    height: 1.45em;
    flex-shrink: 0;
}
@media (max-width: 620px) { .gd-status--today { font-size: 1.375rem; letter-spacing: 0.1em; } }

/* Minute resolution. A second-by-second clock on a page somebody opens
   once is motion for its own sake. Empty until the script fills it, so it
   never flashes a wrong figure, and it collapses at kickoff. */
.gd-countdown {
    font-family: var(--font-heading);
    font-size: 0.8125rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--gray-text);
    margin-bottom: 26px;
    min-height: 1em;
}
.gd-countdown:empty { display: none; }

.gd-hero__head { text-align: center; }

.gd-scoreboard {
    display: grid;
    grid-template-columns: 1fr;
    align-items: center;
    gap: 14px;
    text-align: center;
}
/* Content width columns, centered as a group, NOT 1fr auto 1fr. Equal columns
   give LIONS the same 550px the longest opponent name needs, so on a wide
   screen the board reads as two teams at opposite ends of an empty field with
   a medallion adrift between them. Sized to their content they sit together
   and the whole board centers, which is what a scoreboard looks like. */
@media (min-width: 860px) {
    .gd-scoreboard {
        grid-template-columns: minmax(0, max-content) auto minmax(0, max-content);
        justify-content: center;
        gap: 28px;
        text-align: left;
    }
}

.gd-side { display: flex; flex-direction: column; gap: 6px; min-width: 0; }

/* THE CREST SITS ABOVE THE NAME ON A PHONE AND BESIDE IT ON A DESKTOP.

   On a phone the sides are stacked, the whole board is centered, and a crest
   above the name reads as a header for it. Jason confirmed that one. Setting it
   beside there was measured and is worse: it takes the width the longest school
   names need and pushes the right hand badge over the edge of the screen.

   On a desktop the board is three columns across with room either side, so the
   crest goes where a scoreboard puts it, next to the block it belongs to, ours
   on the outside left and theirs on the outside right. Mirrored, so the two
   badges frame the matchup rather than both leaning the same way.

   display: contents on a phone is what lets one piece of markup do both. The
   wrapper stops existing, the label and the name and the score go back to being
   direct children of the column, and the phone layout is exactly what it was. */
.gd-side__body { display: contents; }

@media (min-width: 860px) {
    .gd-side {
        flex-direction: row;
        align-items: center;
        gap: 18px;
    }
    .gd-side--opp { flex-direction: row-reverse; }

    .gd-side__body {
        display: flex;
        flex-direction: column;
        gap: 6px;
        min-width: 0;
    }
    .gd-side--opp .gd-side__body { text-align: right; align-items: flex-end; }
    .gd-side--lions .gd-side__body { align-items: flex-start; }
}

/* The club mark on our side of the board, and the opponent's on theirs.

   Ours is drawn as a background, the same way the header draws the same mark
   and for the same reason. Theirs stays an <img>: the path changes per fixture,
   and their logo is not a site asset of ours to treat like one.

   The source is 128px and never renders above 64, so it is crisp on a two times
   phone screen without shipping a second file to the gate over cellular. */
.gd-side__crest {
    /* 40 on a phone, not 48. The cover fits a 390 by 844 screen at 40 and
       overflows it at 48, and eight pixels of crest is not worth the scroll on
       the one page a parent opens at the gate. */
    width: 40px;
    height: 40px;
    flex: 0 0 auto;
    align-self: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.gd-side__crest--lions {
    background: url('/media/lsc_head_128.png') center / contain no-repeat;
}

.gd-side__mark {
    width: 100%;
    height: 100%;
    object-fit: contain;

    /* A RING AND BREATHING SPACE, ruled by Jason 2026-09-16.
       Their mark arrives as whatever the school or MaxPreps publishes, most
       often a JPEG on a white ground. Painted flush into the crest box it read
       as a white square jammed against the opponent's name, with the artwork
       touching all four edges.

       box-sizing keeps the padding and the ring inside the 40, 64 and 88 pixel
       boxes above, so nothing reflows and the cover still fits a 390 wide
       screen. The padding is a percentage rather than a pixel count so one
       declaration scales across all three sizes: 16 percent of 40 is 6.4
       pixels, of 88 it is 14.1.

       SIXTEEN IS MEASURED, NOT CHOSEN BY EYE. A school mark is a square file
       and this ring is the circle inscribed in it, so artwork that reaches into
       its own corners is exactly what gets clipped. Christel House's eagle
       reaches 1.240 times the image half-width, which is 24 percent past the
       inscribed circle, and the beak and the tail sweep are what sit out there.
       Solving for the padding that pulls that radius back inside a 64 pixel
       crest with a 2 pixel ring gives 9.07 percent as the point where the ink
       touches the ring exactly. Twelve cleared it by 2.3 pixels, which is
       correct and still reads tight. Sixteen clears by 5.5 and reads as a badge
       with air in it. Anything under nine clips, whatever it looks like on one
       particular mark.

       The white ground is deliberate and not a guess about any one school. A
       mark drawn in dark ink on transparency would otherwise be invisible on
       this near-black cover, and a mark already on white now clips to the
       circle instead of showing its corners.

       The border matches .gd-side__mono exactly, which is the initials
       fallback. That is the point: a hotlink that stops answering is swapped
       for the mono by gameday.js, and the two states are now the same shape
       and the same ring rather than a square becoming a circle. */
    box-sizing: border-box;
    padding: 16%;
    background: #FFFFFF;
    border: 2px solid rgba(255, 255, 255, 0.26);
    border-radius: 50%;
}

/* Initials, for a school that has not sent a mark. Outlined the way the VS
   medallion is, so both sides of the board carry the same kind of object and
   the empty side reads as a fact rather than as a broken image. */
.gd-side__mono {
    width: 100%;
    height: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    color: var(--gray-light);
    border: 2px solid rgba(255, 255, 255, 0.26);
    border-radius: 50%;
}

@media (min-width: 860px) {
    .gd-side__crest { width: 64px; height: 64px; }
    .gd-side__mono  { font-size: 1.3125rem; }
}

.gd-side__label {
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: var(--blue-light);
}
/* --gray-mid is 2.8:1 on the hero. Its opposite number, HOME, is the blue
   accent, so this one takes the same weight of gray the rest of the hero
   uses for secondary text. */
.gd-side--opp .gd-side__label { color: #9A9A9A; }

.gd-side__name {
    font-family: var(--font-heading);
    font-size: 2.75rem;
    font-weight: 900;
    line-height: 0.94;
    letter-spacing: -0.005em;
    text-transform: uppercase;
    color: var(--white);
    overflow-wrap: break-word;
}
@media (min-width: 860px)  { .gd-side__name { font-size: 3.875rem; } }
@media (min-width: 1280px) { .gd-side__name { font-size: 5rem; } }

/* School names are not all one word long. Irvington Preparatory Academy at
   the full size breaks mid-word and runs under the medallion, so the
   scoreboard steps down by the length of the longer name. */
.gd-scoreboard.is-long .gd-side__name { font-size: 2.125rem; }
@media (min-width: 860px)  { .gd-scoreboard.is-long .gd-side__name { font-size: 2.875rem; } }
@media (min-width: 1280px) { .gd-scoreboard.is-long .gd-side__name { font-size: 3.625rem; } }

.gd-scoreboard.is-xlong .gd-side__name { font-size: 1.6875rem; line-height: 1.02; }
@media (min-width: 860px)  { .gd-scoreboard.is-xlong .gd-side__name { font-size: 2.1875rem; } }
@media (min-width: 1280px) { .gd-scoreboard.is-xlong .gd-side__name { font-size: 2.75rem; } }

.gd-side__meta {
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--gray-text);
}

/* The final score, in the slot the roster count occupies before the game. Set
   at display size rather than at the 12px the count uses: after the whistle
   the number of players dressed is not what the page is for, and a score that
   size under a 44px team name would read as a footnote to the name instead of
   as the outcome. It stays smaller than the name, because this is a program
   and the rosters are still the point. */
.gd-side__score {
    font-family: var(--font-heading);
    font-size: 2.125rem;
    font-weight: 900;
    line-height: 1;
    letter-spacing: 0.01em;
    color: var(--white);
}
@media (min-width: 860px) { .gd-side__score { font-size: 2.875rem; } }

/* Two levels that played two different games have two scores, and the board
   above can only carry one pair of numbers. They print underneath it in the
   same shape a doubleheader uses for its own rows, so a day with two results
   reads the same way whether or not the opponent was the same. */
.gd-scores {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    margin-top: 18px;
}
.gd-scores__row {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: center;
    gap: 4px 14px;
}
.gd-scores__level {
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--gold);
    min-width: 108px;
    text-align: right;
}
.gd-scores__line {
    font-family: var(--font-heading);
    font-size: 1.375rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    color: var(--white);
    min-width: 108px;
    text-align: left;
}
@media (max-width: 620px) {
    .gd-scores__row { gap: 2px 10px; }
    .gd-scores__level, .gd-scores__line { min-width: 0; text-align: center; }
    .gd-scores__line { font-size: 1.25rem; }
}

.gd-vs {
    font-family: var(--font-heading);
    font-size: 0.9375rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--gold);
    border: 2px solid var(--gold);
    border-radius: 50%;
    width: 54px;
    height: 54px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    justify-self: center;
    flex-shrink: 0;
}
@media (min-width: 860px) { .gd-vs { width: 64px; height: 64px; font-size: 1.0625rem; } }

/* THE MEDALLION GOES AWAY ON A PHONE, and the crests are why.

   The cover was measured to fit a 390 by 844 screen with nothing to spare, so
   two badges had to be paid for out of something. Setting them beside the names
   instead of above was tried first and is worse: it takes the width the longest
   opponent names need, and on the right hand side the badge ends up over the
   edge of the screen.

   The medallion is what was spent. Stacked on a phone it is a circle sitting
   between two crests that already separate the sides far better than it did,
   and HOME and AWAY state the same relationship in words directly underneath.
   The screen reader text stays either way. On a desktop the board is three
   columns across and the medallion is the middle one, so there it stays. */
@media (max-width: 859px) {
    .gd-vs { display: none; }
}

/* Fixture line. Sits on the deepest surface so it separates from the
   scoreboard without a rule or a shadow. */
.gd-fixture { background: var(--darker); margin-top: 34px; }
.gd-fixture__inner {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 10px 14px;
    padding: 16px 24px;
    font-family: var(--font-heading);
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--gray-light);
    text-align: center;
}
@media (min-width: 768px) { .gd-fixture__inner { font-size: 0.9375rem; gap: 12px 22px; } }
.gd-fixture__day { color: var(--white); }
.gd-fixture__inner span + span::before {
    content: '';
    display: inline-block;
    width: 4px;
    height: 4px;
    background: var(--gray-dark);
    vertical-align: middle;
    margin-right: 14px;
}
@media (max-width: 620px) {
    .gd-fixture__inner { flex-direction: column; gap: 5px; }
    .gd-fixture__inner span + span::before { display: none; }
}

/* ----------------------------------------------------------------------------
   A LARGE DESKTOP IS NOT A BIG PHONE.

   Every size in this file was set for a phone and then nudged once at 768 and
   once at 860. On a 2560 wide screen that leaves a program set at phone scale
   in the middle of a very large piece of glass, which is what "everything looks
   small" means. This block raises the type and the furniture together so the
   proportions hold rather than one part growing and the rest staying put.

   1600 is the floor because a 1440 laptop is already served: it is a normal
   reading distance from a normal sized screen. This is for the monitor on a
   desk, and for the board watching /gameday on a television.
   ---------------------------------------------------------------------------- */
@media (min-width: 1600px) {
    .gd-status--upcoming,
    .gd-status--past      { font-size: 1rem; }
    .gd-countdown         { font-size: 1rem; }

    .gd-side__label       { font-size: 0.9375rem; }
    .gd-side__meta        { font-size: 0.9375rem; }
    .gd-side__score       { font-size: 3.875rem; }
    .gd-side__crest       { width: 88px; height: 88px; }
    .gd-side__mono        { font-size: 1.75rem; }

    .gd-vs                { width: 84px; height: 84px; font-size: 1.3125rem; }

    .gd-scores__level     { font-size: 0.9375rem; }
    .gd-scores__line      { font-size: 1.75rem; }

    .gd-fixture__inner    { font-size: 1.125rem; gap: 14px 28px; }
    .gd-tickets__btn      { font-size: 1.125rem; padding: 17px 34px; }
    .gd-tickets__btn svg  { width: 20px; height: 20px; }
    .gd-tickets__note     { font-size: 0.9375rem; }

    .gd-player__num       { min-width: 42px; font-size: 1.0625rem; padding: 5px 9px; }
    .gd-player__name      { font-size: 1.1875rem; }
    .gd-player__detail    { font-size: 0.9375rem; }
    .gd-team-side         { font-size: 0.8125rem; }

    .gd-schedule__row     { font-size: 1.25rem; padding: 19px 14px; }
    .gd-schedule__date    { min-width: 150px; }
    .gd-schedule__level,
    .gd-schedule__tag,
    .gd-schedule__result  { font-size: 0.8125rem; padding: 4px 11px; }
    .gd-schedule__meta    { font-size: 0.9375rem; }

    .gd-sponsor-tile      { max-width: 250px; }

    .gd-find__input       { font-size: 1rem; padding: 12px 16px; min-width: 240px; }
    .gd-team-name         { font-size: 1.45em; }
}

.gd-hero__notice {
    text-align: center;
    padding: 14px 24px 0;
    font-size: 0.875rem;
    color: var(--gray-text);
}

/* ===== TICKETS =====
   EventLink sells every ticket, so this leaves the site and says so. It
   sits directly under the fixture line because someone who scanned the QR
   at the gate arrives with one question and it is not the roster. Solid
   gold is the only thing in the hero that is not type, which is the point.
   Hidden on a past game, where a ticket link is an error. */
.gd-tickets { text-align: center; padding: 20px 24px 4px; }

.gd-tickets__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 52px;
    padding: 14px 30px;
    background: var(--gold);
    color: var(--black);
    font-family: var(--font-heading);
    font-size: 0.9375rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    transition: background 0.2s;
}
.gd-tickets__btn:hover, .gd-tickets__btn:focus-visible { background: #E8C45C; outline: none; }
.gd-tickets__btn svg { width: 17px; height: 17px; flex-shrink: 0; }
@media (max-width: 420px) { .gd-tickets__btn { width: 100%; padding: 14px 18px; } }

.gd-tickets__note {
    margin-top: 9px;
    font-size: 0.8125rem;
    color: var(--gray-text);
}

/* A fixture with its own day plan links to it under the ticket button. Set by
   'agenda_url' in the game file, so it appears and goes with that fixture. */
.gd-tickets__agenda {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    margin-top: 6px;
    font-family: var(--font-heading);
    font-size: 0.875rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--white);
    transition: opacity 0.2s;
}
.gd-tickets__agenda span { border-bottom: 2px solid var(--gold); padding-bottom: 2px; }
.gd-tickets__agenda svg { width: 13px; height: 13px; color: var(--gold); }
.gd-tickets__agenda:hover, .gd-tickets__agenda:focus-visible { opacity: 0.7; outline: none; }

/* ===== STICKY CONTROL BAR =====
   Game picker, level selector, and the jump to the sponsor band. The
   matchup reappears here once the scoreboard scrolls away, so a visitor
   deep in a roster always knows what they are looking at. */
.gd-bar {
    position: sticky;
    top: 0;
    z-index: 40;
    background: var(--dark);
    border-top: 2px solid var(--gold);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.gd-bar__inner {
    max-width: 1160px;
    margin: 0 auto;
    padding: 6px 24px;
    /* Landscape on a notched phone puts the rounded corner over the left
       edge of the bar, which would clip the game picker. */
    padding-left: max(24px, env(safe-area-inset-left));
    padding-right: max(24px, env(safe-area-inset-right));
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px 14px;
}
@media (min-width: 900px) and (pointer: fine) { .gd-bar__inner { padding-top: 9px; padding-bottom: 9px; } }
@media (min-width: 1536px) { .gd-bar__inner { max-width: 1280px; } }

.gd-mini {
    display: none;
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--white);
    align-items: center;
    gap: 9px;
    margin-right: 4px;
}
.gd-mini__vs { color: var(--gold); font-weight: 600; }
@media (min-width: 1024px) { .gd-bar.is-pinned .gd-mini { display: inline-flex; } }

.gd-picker { display: flex; align-items: center; gap: 8px; margin-right: auto; }

.gd-picker select {
    font-family: var(--font-heading);
    /* 16px, not 13. iOS Safari zooms the whole page when a form control
       under 16px takes focus, and does not zoom back out. This is the one
       control somebody at the gate actually taps. */
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--white);
    background: var(--dark-card);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 4px;
    padding: 10px 12px;
    min-height: 44px;
    max-width: 250px;
    cursor: pointer;
}
/* Keyed to the pointer, not the width. An iPad in landscape is 1180px
   wide and still a finger; only a mouse gets the compact control. */
@media (min-width: 900px) and (pointer: fine) {
    .gd-picker select { font-size: 0.8125rem; padding: 9px 12px; min-height: 0; }
}
.gd-picker select:focus-visible { outline: 2px solid var(--blue-light); outline-offset: 1px; }

.gd-picker button {
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--white);
    background: var(--blue-primary);
    border-radius: 4px;
    padding: 9px 14px;
}

.gd-levels { display: flex; gap: 6px; }

.gd-level-link {
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    color: var(--level-ink, rgba(255, 255, 255, 0.72));
    background: var(--level, transparent);
    border: 1px solid var(--level, rgba(255, 255, 255, 0.18));
    border-radius: 4px;
    opacity: 0.62;
    padding: 9px 16px;
    /* 44px is the smallest reliable touch target. These sit in a sticky
       bar a parent taps one-handed while holding a phone at a game. */
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
}
@media (min-width: 900px) and (pointer: fine) { .gd-level-link { min-height: 0; } }
.gd-level-link:hover,
.gd-level-link:focus-visible {
    opacity: 1;
    outline: none;
}
/* Every button wears the color of the band it points at, all the time, so
   the current one cannot be marked by being the only one that is filled.
   A gold rule inside the bottom edge does it without changing the size. */
.gd-level-link.is-current {
    opacity: 1;
    box-shadow: inset 0 -3px 0 var(--gold);
}

.gd-jump {
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    color: var(--gold);
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 9px 8px;
    min-height: 44px;
}
@media (min-width: 900px) and (pointer: fine) { .gd-jump { min-height: 0; padding: 9px 4px; } }
.gd-jump:hover, .gd-jump:focus-visible { color: #e8c45c; outline: none; }
.gd-jump svg { width: 14px; height: 14px; }

/* ===== TEAM COLORS =====

   The band and the jersey chip are always the same color, and the field
   behind the athletes is always the neutral card. A tinted field was tried
   and pulled: blue chips on a blue field is the one combination where the
   number stops reading as a separate object, and the number is the thing
   people are scanning for.

       high school   #0059A9  brand Royal Blue, white ink
       junior high   #C0C0C0  silver, near-black ink
       cheer         #A8215A  deep raspberry, white ink

   Silver rather than a second hue. Green was tried and pulled: a saturated
   second color reads as a different club rather than a different level,
   which is the opposite of the point. Silver is a metal, not a team color,
   so it separates the two squads without implying they play for anyone
   else. It also inverts, which does more work at chip size than any two
   dark bands can.

   THE OPPONENT IS GRAY, in three shades, one for each of our three groups
   and in the same order: high school darkest, then junior high, then cheer.

       high school    #384149   white ink 9.8:1
       junior high    #5B646C   white ink 5.7:1
       cheer          #8E97A0   dark ink  6.2:1

   HOW IT GOT HERE. Until 2026-10-06 every opposing block took --gray-dark, on
   the rule that another school does not wear our colors. With the opposing
   coaches interleaved with ours on the Coaching Staff page, three identical
   gray bands read as one undifferentiated block, and for a day the opponent
   had three hues of its own, orange, violet and green. Jason ruled on
   2026-10-07 that six colors read as clutter, that the staff page goes team
   by team, ours then theirs, and that the opponent takes three shades of one
   gray. The rule above holds again: color belongs to us, gray to the visitor.

   WHAT THE SHADES CAN AND CANNOT DO. They give the opponent the same three
   part structure as ours, so a page with both teams on it reads as one
   pattern shown twice. They do not identify a group on their own: nobody on
   the junior high page will know the middle gray is the junior high gray.
   The words do that. Every band names its group and its team, so no reader
   depends on the shade.

   HOW THEY WERE CHOSEN. The darkest has to lift off the card and the lightest
   has to carry its text, so the range is narrow. Letting the lightest take
   dark ink, as our silver does, widens it. Measured as typical vision and as
   the three common kinds of color blindness see it (Machado 2009 simulation,
   CIEDE2000 difference, where 10 is clear at a glance):

       high school to junior high      12 or more
       junior high to cheer            19 or more
       high school gray beside blue    17 or more
       cheer gray under magenta        23 or more

   The slight cool tint is deliberate. To a red-green color blind reader our
   magenta looks like a warm gray, and a dead neutral gray sat 8.6 from it.
   The light shade is 12.8 from our silver; it is the cheer shade because
   cheer never sits beside silver. One step lighter lands 9.7 from silver and
   starts to read as ours. Do not lighten it further.

   Each shade is set by a class on the opposing block itself, .gd-opp--hs,
   --jh or --cheer, not inherited from the level it sits in. The ink travels
   with the fill for the reason the junior high number chip gave: a fill that
   takes its ink from somewhere else is right only until that somewhere
   changes. --gray-dark stays as the fallback, so an opposing block with no
   class still draws as it always did. */
:root {
    --level-hs:    #0059A9;
    --level-jh:    #C0C0C0;
    --level-cheer: #A8215A;

    --opp-hs:      #384149;
    --opp-jh:      #5B646C;
    --opp-cheer:   #8E97A0;
}
.gd-level--hs    { --level: var(--level-hs);    --level-ink: var(--white); --level-ink-2: rgba(255, 255, 255, 0.82); }
.gd-level--jh    { --level: var(--level-jh);    --level-ink: var(--black); --level-ink-2: #3A3A3A; }
.gd-level--cheer { --level: var(--level-cheer); --level-ink: var(--white); --level-ink-2: rgba(255, 255, 255, 0.82); }

.gd-opp--hs    { --opp: var(--opp-hs);    --opp-ink: #F8F8FF; }
.gd-opp--jh    { --opp: var(--opp-jh);    --opp-ink: #F8F8FF; }
.gd-opp--cheer { --opp: var(--opp-cheer); --opp-ink: #141413; }

/* WINDOWS HIGH CONTRAST MODE replaces every fill with the system's own
   background, so a band became a heading floating on the page and a number
   chip a bare number. The outline is their edge in that mode only, and the
   system chooses its color. Measured 2026-10-07 with the mode emulated. */
@media (forced-colors: active) {
    .gd-numcol__head,
    .gd-cheer__head,
    .pgm-staff__group,
    .gd-player__num { outline: 1px solid CanvasText; outline-offset: -1px; }
}

/* ===== SENIORS =====

   Stated rather than encoded. A fourth hue would have to compete with three
   level colors and with gold, and a color alone asks the reader to work
   out what it means. The pip says SR, the rule anchors it down the column,
   and the wash lifts the row without touching the name, which stays white
   and fully legible. Works on the cheer list too, where there is no
   position token to carry it. */
.gd-player--senior,
.gd-cheer__member--senior {
    border-left-color: var(--gold);
    background: rgba(212, 175, 55, 0.16);
}
/* Filled, not outlined. The position tokens on the same line are gold text,
   and an outlined gold pip beside them read as one more of those. A solid
   chip is a different kind of object at a glance. */
.gd-senior-pip {
    display: inline-block;
    margin-left: 8px;
    font-family: var(--font-heading);
    font-size: 0.625rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    background: var(--gold);
    color: var(--black);
    border-radius: 2px;
    padding: 2px 6px;
    vertical-align: 1px;
}

/* ===== LEVEL SECTIONS AND MATCHUP TABLE ===== */
/* scroll-margin clears the sticky bar, which wraps to two rows on a phone. */
/* ===== DOUBLEHEADER HERO =====
   Two matchups stacked where the scoreboard would be. Deliberately quieter
   than the scoreboard: two of them at that weight fight each other, and on
   a day with two games the date and the two kickoff times are what a
   family actually needs off this screen. */
/* Junior high and high school sit on different fields at the same address
   on a doubleheader, so each level states its own. */
.gd-level-sub--where { margin-top: -18px; color: rgba(255, 255, 255, 0.55); }

/* A scrimmage is not a regular season game. Gold so it is not read as
   another gray token in the fixture strip. */
.gd-fixture__type { color: var(--gold); font-weight: 800; }

.gd-dh {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    margin: 0;
}
.gd-dh__label {
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--gray-text);
}
.gd-dh__row {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: center;
    gap: 6px 16px;
}
.gd-dh__level {
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--gold);
    min-width: 108px;
    text-align: right;
}
.gd-dh__match {
    font-family: var(--font-heading);
    font-size: 1.375rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: var(--white);
}
.gd-dh__match span { color: var(--gray-text); font-weight: 500; }
.gd-dh__time {
    font-family: var(--font-heading);
    font-size: 0.8125rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    color: var(--gray-text);
    min-width: 74px;
}
/* The same footprint as the kickoff time it replaces, so the two rows of a
   doubleheader stay in column whether one level has been played or both. */
.gd-dh__score {
    font-family: var(--font-heading);
    font-size: 0.9375rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    color: var(--white);
    min-width: 74px;
}
@media (min-width: 768px) { .gd-dh__match { font-size: 1.875rem; } }
@media (max-width: 620px) {
    .gd-dh__row { flex-direction: column; gap: 2px; }
    .gd-dh__level, .gd-dh__time, .gd-dh__score { min-width: 0; text-align: center; }
    .gd-dh__match { font-size: 1.25rem; }
}

/* THE CRESTS ON A DOUBLEHEADER ROW, ruled by Jason 2026-10-02: "We need logos".

   Each row carries the pair the scoreboard carries, ours and theirs. The boxes
   are the scoreboard's own (.gd-side__crest and what sits inside it), so the
   ring, the white ground and the initials come from the rules above and only
   the size and the placement are stated here.

   OURS ON THE OUTSIDE LEFT, THEIRS ON THE OUTSIDE RIGHT, AT EVERY WIDTH. The
   pair frames the matchup the way the desktop scoreboard does.

   From 860 up the row is the single line it always was, with a crest either
   side of the names.

   Below 860 the row is a three column grid: crest, the stack of level, names
   and kickoff, crest. The crests span the stack and centre on it, so they add
   no height of their own. That is the reason for this arrangement and not a
   pair on a line above the names, which was built first and measured: it added
   44 pixels to each row and pushed Buy Tickets under the tab bar on a 640 tall
   screen. Here a short name costs nothing and a long one ("Lions vs Warsaw
   Homeschool" on a 390 wide screen) wraps to a second line between the crests.

   FORTY EIGHT ON A PHONE, where the scoreboard's crest is 40. The scoreboard
   stacks its crest above the name, so every pixel of crest is a pixel of
   height, and 40 is what fits. Here the crest sits beside a stack that is
   already 72 tall, so the larger box is free, and a mark inside the ring and
   its padding is small enough at 40 to be worth the difference.

   It also means a row between 621 and 859 wide stacks where it used to run on
   one line. With two crests added it no longer fits on one at 768, and a row
   that wraps mid-line reads as broken. */
.gd-dh__crest { width: 48px; height: 48px; }
.gd-dh__crest .gd-side__mono { font-size: 1rem; }

@media (max-width: 859px) {
    .gd-dh__row {
        display: grid;
        grid-template-columns: auto minmax(0, auto) auto;
        justify-content: center;
        align-items: center;
        gap: 2px 10px;
    }
    .gd-dh__row > .gd-dh__crest--lions { grid-column: 1; grid-row: 1 / span 3; }
    .gd-dh__row > .gd-dh__crest--opp   { grid-column: 3; grid-row: 1 / span 3; }
    .gd-dh__row > .gd-dh__level { grid-column: 2; grid-row: 1; min-width: 0; text-align: center; }
    .gd-dh__row > .gd-dh__match { grid-column: 2; grid-row: 2; text-align: center; }
    .gd-dh__row > .gd-dh__time,
    .gd-dh__row > .gd-dh__score { grid-column: 2; grid-row: 3; min-width: 0; text-align: center; }
    .gd-dh__row > .gd-map { grid-column: 1 / -1; grid-row: 4; }
}

@media (min-width: 860px) {
    .gd-dh__crest { width: 52px; height: 52px; }
    .gd-dh__crest .gd-side__mono { font-size: 1.125rem; }
}
}

.gd-level-section { padding: 44px 0 8px; scroll-margin-top: 112px; }
@media (min-width: 720px) { .gd-level-section { scroll-margin-top: 72px; } }
.gd-level-section:last-of-type { padding-bottom: 44px; }

.gd-level-heading {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--white);
    text-align: center;
    margin-bottom: 6px;
}
@media (min-width: 768px) { .gd-level-heading { font-size: 1.875rem; } }

.gd-level-sub {
    text-align: center;
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.8125rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-family: var(--font-heading);
    margin-bottom: 24px;
}

/* The page behind these sections is Lions Blue and the high school band is the
   same blue, so the block needs to be separated from it. A 1px rule was tried
   first and pulled: a hairline between two fields of the same color reads as a
   seam, not a decision.

   The card is the separation instead. It sits behind the band with a margin of
   its own, so the band is held inside a dark field rather than butting against
   the page. Same move as the game week bar, and it works for the same reason:
   the block stops sharing an edge with the thing behind it. */
.gd-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    background: var(--dark-card);
    padding: 10px;
}
@media (max-width: 620px) { .gd-table-wrap { padding: 6px; } }

.gd-table { width: 100%; border-collapse: collapse; color: var(--white); }

.gd-table thead th {
    background: var(--level, var(--blue-primary));
    color: var(--level-ink, var(--white));
    font-family: var(--font-heading);
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    text-align: left;
    padding: 13px 10px;
    font-size: 0.75rem;
    vertical-align: bottom;
}
@media (min-width: 768px) { .gd-table thead th { font-size: 0.875rem; padding: 16px 18px; } }
.gd-numcol--opp .gd-numcol__head { color: var(--opp-ink, var(--white)); }
.gd-numcol--opp .gd-team-side { color: var(--opp-ink, var(--white)); }

.gd-team-name { display: block; font-size: 1.3em; line-height: 1.1; overflow-wrap: break-word; }
.gd-team-side {
    display: block;
    /* Absolute, not em. Relative to a 12px header this computed to 9.6px
       on a phone, and to 8.8px inside the narrow position column. 12px since
       2026-10-07: at 11 it was the smallest text on any band, and the line
       that says whose band it is should not be the hardest one to read. */
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.14em;
    /* The second line steps down from the team name rather than matching
       it. On silver that step is toward black, not toward white: white on
       #C0C0C0 measures 1.72:1 and is unreadable. #3A3A3A is 6.25:1 and
       still reads as the quieter of the two. */
    color: var(--level-ink-2, rgba(255, 255, 255, 0.72));
    margin-top: 4px;
}

.gd-table tbody tr + tr th,
.gd-table tbody tr + tr td { border-top: 1px solid rgba(255, 255, 255, 0.09); }
.gd-table tbody tr:hover td { background: rgba(255, 255, 255, 0.03); }

.gd-table tbody th,
.gd-table tbody td {
    padding: 10px 8px;
    vertical-align: top;
    font-size: 0.8125rem;
    line-height: 1.4;
}
@media (min-width: 768px) { .gd-table tbody th, .gd-table tbody td { padding: 14px 18px; } }


/* Player entry, broadcast style: jersey chip, name, then the detail line.
   Same tokens as the printed roster format, laid out so a number can be
   found at a glance from a phone in a crowd. */
.gd-players li + li { margin-top: 10px; }

.gd-player {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    border-left: 3px solid transparent;
    padding-left: 11px;
}

.gd-player__num {
    flex: 0 0 auto;
    min-width: 30px;
    padding: 3px 6px;
    text-align: center;
    font-family: var(--font-heading);
    font-size: 0.8125rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    color: var(--level-ink, var(--white));
    background: var(--level, var(--blue-primary));
    border-radius: 3px;
}
@media (min-width: 768px) { .gd-player__num { min-width: 34px; font-size: 0.875rem; padding: 4px 7px; } }

.gd-player__body { min-width: 0; }

.gd-player__name {
    display: block;
    font-family: var(--font-heading);
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: var(--white);
    overflow-wrap: break-word;
}
@media (min-width: 768px) { .gd-player__name { font-size: 1rem; } }

.gd-player__detail {
    display: block;
    font-size: 0.78125rem;
    letter-spacing: 0.03em;
    color: var(--gray-text);
    margin-top: 1px;
}
@media (min-width: 768px) { .gd-player__detail { font-size: 0.8125rem; } }

/* Gold, uppercase and tracked out, sized to the detail line it sits in. This
   read "same treatment as .gd-pos" until 2026-09-08; that rule was removed
   that day and the description is spelled out here rather than pointing at
   something that no longer exists. */
.gd-player__pos {
    font-family: var(--font-heading);
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--gold);
    white-space: nowrap;
}

@media (max-width: 480px) {
    .gd-table tbody th, .gd-table tbody td { padding: 9px 5px; }
    .gd-table thead th { padding: 10px 5px; font-size: 0.6875rem; }
    .gd-player { gap: 6px; }
    .gd-player__num { min-width: 25px; font-size: 0.71875rem; padding: 2px 4px; }
    .gd-player__name { font-size: 0.78125rem; }
    .gd-player__detail { font-size: 0.75rem; }
}

.gd-away-missing {
    text-align: center;
    vertical-align: middle;
    color: var(--gray-text);
    font-family: var(--font-heading);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    font-size: 0.8125rem;
    padding: 24px 16px;
    min-width: 150px;
}
/* --gray-mid is 2.6:1 on this card. It is also ink on a light band on the
   contact page, so it cannot be fixed at the token. */
.gd-away-missing small {
    display: block;
    margin-top: 8px;
    letter-spacing: 0.02em;
    text-transform: none;
    font-family: var(--font-body);
    font-size: 0.75rem;
    color: #9A9A9A;
}

.gd-roster-empty {
    background: var(--dark-card);
    color: var(--gray-text);
    padding: 28px 20px;
    text-align: center;
    font-size: 0.9375rem;
}

/* ===== ROSTER VIEWS =====

   Two readings of the same roster. By position is the matchup: the two
   teams sit against each other and the table means something across a row.
   By number is a lookup, which is what somebody in the stands is actually
   doing, and it is the default for that reason.

   Number order deliberately abandons the table. Lions 9 has nothing to do
   with the opponent's 9, so aligning them across a row would assert a
   relationship that does not exist. It renders as two independent lists.

   Without JavaScript the toggle does nothing and the number view stands as
   the whole roster, which is the more useful of the two to be left with. */
.gd-roster [hidden] { display: none !important; }

.gd-roster__controls {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 12px;
}

.gd-view { display: inline-flex; }
/* THE .gd-view__btn RULES WERE REMOVED 2026-09-08, with the rest of the By
   Position leftovers. Four rules here and one inside the 768 media query, all
   for a class no element on this property carries any more.

   Each of the eight classes removed that day was checked three ways first,
   because a grep alone gets this wrong: for uses outside the stylesheets, for
   a longer class name sharing its prefix, and against every class attribute
   built by PHP interpolation. This file emits gd-level--, gd-schedule__level--,
   gd-cheer__member, gd-numgrid, gd-schedule__row, gd-scoreboard and
   gd-sponsor-tile by concatenation; none of them can produce one of the eight.

   .gd-view below is the container those buttons sat in and is dead by the same
   measure, but it was not on the approved list and is left for a ruling. */


.gd-find__input {
    font-family: var(--font-body);
    font-size: 0.875rem;
    padding: 9px 12px;
    min-width: 190px;
    color: var(--white);
    background: var(--dark-card);
    border: 1px solid rgba(255, 255, 255, 0.14);
}
.gd-find__input::placeholder { color: var(--gray-mid); }
@media (max-width: 480px) { .gd-find__input { width: 100%; } }

.gd-numgrid { display: grid; grid-template-columns: 1fr; }
@media (min-width: 700px) { .gd-numgrid { grid-template-columns: 1fr 1fr; } }
.gd-numcol { min-width: 0; }
@media (min-width: 700px) {
    .gd-numcol + .gd-numcol { border-left: 1px solid rgba(255, 255, 255, 0.09); }
}
.gd-numcol__head {
    background: var(--level, var(--blue-primary));
    color: var(--level-ink, var(--white));
    font-family: var(--font-heading);
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 13px 10px;
    font-size: 0.75rem;
}
.gd-numcol--opp .gd-numcol__head { background: var(--opp, var(--gray-dark)); }
.gd-numcol--opp .gd-player__num  { background: var(--opp, var(--gray-dark)); color: var(--opp-ink, var(--white)); }
@media (min-width: 768px) { .gd-numcol__head { font-size: 0.875rem; padding: 16px 18px; } }

.gd-numcol .gd-players { padding: 12px 8px; }
@media (min-width: 768px) { .gd-numcol .gd-players { padding: 16px 18px; } }

/* ===== CHEER SQUAD =====
   Two fields per person against the football roster's six, so it reflows as
   a plain grid rather than borrowing the player row. Grades print as
   EventLink holds them because the squad spans 6th to 12th in one list. */
.gd-cheer__head {
    background: var(--level, var(--blue-primary));
    color: var(--level-ink, var(--white));
    font-family: var(--font-heading);
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 13px 10px;
    font-size: 0.75rem;
}
@media (min-width: 768px) { .gd-cheer__head { font-size: 0.875rem; padding: 16px 18px; } }

.gd-cheer__list {
    list-style: none;
    margin: 0;
    padding: 12px 8px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 2px 24px;
}
@media (min-width: 560px) { .gd-cheer__list { grid-template-columns: 1fr 1fr; } }
@media (min-width: 900px) { .gd-cheer__list { grid-template-columns: repeat(3, 1fr); padding: 16px 18px; } }

.gd-cheer__member {
    display: flex;
    align-items: baseline;
    gap: 10px;
    padding: 7px 0 7px 11px;
    border-left: 3px solid transparent;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}
.gd-cheer__name {
    font-family: var(--font-heading);
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: var(--white);
    overflow-wrap: break-word;
    min-width: 0;
}
@media (min-width: 768px) { .gd-cheer__name { font-size: 1rem; } }
.gd-cheer__class {
    margin-left: auto;
    flex-shrink: 0;
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    color: var(--gold);
}

/* ===== OPPOSING CHEER SQUAD =====
   Under ours, inside the same card. It reuses .gd-numcol--opp for its header,
   so the heading over their squad is the same object as the heading over their
   players. Nothing here sets a color: the gray and its ink come from that
   header, and outdoor mode already paints it. */
.gd-oppcheer { margin-top: 20px; }

.gd-player.is-hidden { display: none; }
.gd-no-results {
    background: var(--dark-card);
    color: var(--gray-text);
    padding: 24px 16px;
    text-align: center;
    font-size: 0.875rem;
}

/* ===== SCHEDULE ===== */
.gd-schedule { background: var(--black); padding: 56px 0; }
.gd-schedule .section-heading { color: var(--white); }

.gd-schedule__list { max-width: 780px; margin: 0 auto; }

.gd-schedule__row {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 4px 16px;
    padding: 15px 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.09);
    border-left: 3px solid transparent;
    color: var(--white);
    font-family: var(--font-heading);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    font-size: 0.875rem;
    transition: background 0.2s, border-color 0.2s;
}
@media (min-width: 768px) { .gd-schedule__row { font-size: 1rem; } }
a.gd-schedule__row:hover { background: rgba(255, 255, 255, 0.05); border-left-color: var(--blue-light); }
.gd-schedule__row.is-current { border-left-color: var(--gold); background: rgba(255, 255, 255, 0.04); }

.gd-schedule__date { color: var(--gold); min-width: 118px; font-weight: 600; }
.gd-schedule__opp { font-weight: 800; margin-right: auto; }
/* A date with two opponents prints each game on its own line inside the name,
   with its time beside it. X-4, 2026-10-01. The time reuses the meta style,
   and outdoor mode's size for it, rather than a new class. */
.gd-schedule__game { display: block; }
.gd-schedule__game + .gd-schedule__game { margin-top: 3px; }

/* The right hand end of the row: the Today tag, the score, the kickoff.
   Whichever comes first claims the free space so the group sits against the
   right edge, and the ones after it sit tight against that one instead of
   being spread apart by a second auto margin.

   This is what a wrapped row needs. The longest school names already overrun
   the 780px measure on a desktop and the cheer chip put one more row over it;
   when that happens the tail drops to a second line, and with nothing pushing
   it, it lands underneath the date, the one column it does not belong to. An
   auto margin follows it down there. Doing it here rather than with
   justify-content on the row is deliberate: justify-content applies to every
   line, and on a row whose name has also wrapped it would take the date with
   it. An auto margin only moves the item that carries it. */
.gd-schedule__tag,
.gd-schedule__result,
.gd-schedule__meta { margin-left: auto; }

.gd-schedule__tag ~ .gd-schedule__result,
.gd-schedule__tag ~ .gd-schedule__meta,
.gd-schedule__result ~ .gd-schedule__result,
.gd-schedule__result ~ .gd-schedule__meta { margin-left: 0; }

/* Which team is playing, carried by a chip rather than by the color of the
   row. A schedule that encodes the level in color alone is unreadable to
   anyone who cannot separate the two hues, and it says nothing at all on a
   day both teams play. The chip states it, and the color reinforces it.

   The opponent name stays white. Blue on near-black is legible for a short
   date but not for the longest school names on the list.

   Cheer gets a chip too, and takes the same shape as the two football ones
   deliberately. It is a squad that travels rather than a level of its own, but
   to somebody scanning for the date their daughter cheers, that distinction is
   internal bookkeeping. The row already wraps, so a doubleheader carrying all
   three drops to a second line rather than squeezing the opponent. */
.gd-schedule__level {
    font-size: 0.6875rem;
    letter-spacing: 0.12em;
    font-weight: 800;
    color: var(--white);
    padding: 3px 8px;
    border-radius: 3px;
    flex-shrink: 0;
}
.gd-schedule__level--hs    { background: var(--level-hs);    color: var(--white); }
.gd-schedule__level--jh    { background: var(--level-jh);    color: var(--black); }
.gd-schedule__level--cheer { background: var(--level-cheer); color: var(--white); }
.gd-schedule__tag {
    font-size: 0.6875rem;
    letter-spacing: 0.12em;
    font-weight: 700;
    color: var(--black);
    background: var(--gold);
    padding: 3px 9px;
    border-radius: 3px;
}
.gd-schedule__meta { color: var(--gray-text); font-size: 0.75rem; letter-spacing: 0.06em; }

/* Outlined, not filled. The Today tag is the one thing on this list that has
   to be found without reading, and it is a filled gold block. Late in the
   season a filled result on every played row would leave that block sitting in
   a column of blocks exactly like it. */
.gd-schedule__result {
    font-size: 0.6875rem;
    letter-spacing: 0.12em;
    font-weight: 700;
    color: var(--gray-light);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 3px;
    padding: 2px 8px;
    flex-shrink: 0;
}

.gd-schedule__empty {
    max-width: 620px;
    margin: 0 auto;
    text-align: center;
    color: var(--gray-light);
    font-size: 1rem;
    line-height: 1.7;
}
.gd-schedule__empty p + p { margin-top: 14px; }
.gd-schedule__actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
    margin-top: 30px;
}

/* ===== SPONSOR BAND =====
   A static grid. No motion, no scrolling, no rotation.

   Two earlier versions are worth recording so neither gets reintroduced.
   A marquee of two copies animated to -50% is seamless only while one copy
   is wider than the viewport; eight tiles at 188px is 1,504px, so on a
   3,185px display both copies showed at once, every sponsor appeared twice
   and the track still fell 177px short of the right edge. Rotating one
   large logo at a time fixed the size but cost coverage: eight sponsors at
   5s is a 40 second cycle and nobody checking a roster stays 40 seconds,
   so most sponsors were never seen at all.

   A sponsor is paying to be seen, and eight logos fit on a screen. So all
   eight are on screen, always, and none of them move. auto-fit rather than
   fixed columns means the grid reflows on its own: eight across on a wide
   display, four on a tablet, two on a phone, without a breakpoint guessing
   at anyone's device. */
.gd-sponsors { background: var(--black); padding: 52px 0 56px; scroll-margin-top: 104px; }
@media (min-width: 720px) { .gd-sponsors { scroll-margin-top: 64px; } }
.gd-sponsors .section-heading { color: var(--white); margin-bottom: 34px; }

.gd-sponsor-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(132px, 1fr));
    gap: 18px;
    max-width: 1160px;
    margin: 0 auto;
    padding: 0 24px;
    justify-items: center;
}
/* Caps the run so eight logos read as one band rather than a thin stripe
   stretched across an ultrawide display. */
@media (min-width: 1240px) {
    .gd-sponsor-grid { grid-template-columns: repeat(4, 1fr); max-width: 900px; gap: 22px; }
}

.gd-sponsor-tile {
    width: 100%;
    max-width: 200px;
    aspect-ratio: 1 / 1;
    background: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    transition: border-color 0.2s;
}
.gd-sponsor-tile:hover { border-color: var(--gold); }
/* object-fit rather than max-width, so an SVG with only a viewBox and no
   intrinsic size still fills the tile instead of collapsing to nothing. */
.gd-sponsor-tile img { width: 100%; height: 100%; object-fit: contain; }
.gd-sponsor-tile:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

/* A mark drawn white on transparent vanishes on a white tile. */
.gd-sponsor-tile.is-dark { background: var(--dark-card); border-color: rgba(255, 255, 255, 0.18); }

/* Artwork that has not been uploaded yet degrades to the sponsor's name.
   A band of broken images is worse than no band at all. */
.gd-sponsor-tile__name {
    display: none;
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    line-height: 1.3;
    text-transform: uppercase;
    text-align: center;
    color: var(--black);
    overflow-wrap: break-word;
}
.gd-sponsor-tile.is-missing img { display: none; }
.gd-sponsor-tile.is-missing .gd-sponsor-tile__name { display: block; }
.gd-sponsor-tile.is-dark .gd-sponsor-tile__name { color: var(--white); }

.gd-sponsors__cta { text-align: center; margin-top: 34px; }

/* Screen-reader-only text, used for table captions. */
.gd-sr-only {
    position: absolute;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

/* ===== MAP LINK =====
   A parent reads this in a car, so it is a link and not an address. Gold
   because it is the one thing in the hero worth tapping other than tickets,
   and the ticket button is filled while this is not, so the two do not read
   as a pair. 44px tall for a thumb. */
.gd-map {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 44px;
    color: var(--gold);
    font-family: var(--font-heading);
    font-weight: 700;
    letter-spacing: 0.06em;
    text-decoration: none;
    border-bottom: 1px solid rgba(212, 175, 55, 0.45);
    transition: color 0.2s, border-color 0.2s;
}
.gd-map:hover,
.gd-map:focus-visible { color: var(--white); border-bottom-color: var(--white); outline: none; }
.gd-map svg { width: 14px; height: 14px; flex-shrink: 0; }

/* In the doubleheader hero the link is its own line under the matchup, so the
   row wraps rather than running the venue on after the kickoff time. */
.gd-dh__row .gd-map { flex-basis: 100%; justify-content: center; min-height: 32px; font-size: 0.75rem; }
@media (min-width: 768px) { .gd-dh__row .gd-map { font-size: 0.8125rem; } }

.gd-level-sub--where .gd-map { min-height: 32px; font-size: 0.8125rem; letter-spacing: 0.12em; }

/* ===== STALE PAGE NOTICE =====
   Shown by /js/gameday.js when a page left open no longer matches the files
   behind it. The reasoning is above the markup in /gameday/index.php.

   The same object as the game week bar, on purpose: a gold plaque held in on
   a dark field, near-black type, and the one action as a filled black button.
   Gold is the only brand color that separates from both the dark header and
   the blue bands (the measured table is in gameweek-bar.php), and a visitor
   who has seen the game week bar already reads this shape as "a notice from
   the club" rather than as part of the roster.

   Fixed to the top of the viewport rather than placed in the flow, because
   the visitor it is for is scrolled somewhere in a roster. Above the sticky
   control bar (40) and the nav dropdowns (60). */
.gd-stale {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: var(--dark);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding: 8px 10px;
    padding-top: max(8px, env(safe-area-inset-top));
    padding-left: max(10px, env(safe-area-inset-left));
    padding-right: max(10px, env(safe-area-inset-right));
}
.gd-stale[hidden] { display: none; }

.gd-stale__inner {
    max-width: 1160px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 0 10px;
    padding: 0 0 0 16px;
    background: var(--gold);
    border-radius: 3px;
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--black);
}

.gd-stale__text {
    flex: 1 1 auto;
    min-width: 0;
    padding: 6px 0;
}

.gd-stale__refresh {
    flex-shrink: 0;
    min-height: 34px;
    padding: 0 14px;
    background: var(--black);
    color: var(--gold);
    border: 0;
    border-radius: 2px;
    font: inherit;
    font-weight: 800;
    letter-spacing: 0.09em;
    /* A button does not inherit the case of its parent; the UA sets none. */
    text-transform: inherit;
    white-space: nowrap;
    cursor: pointer;
    transition: background 0.2s;
}
.gd-stale__refresh:hover,
.gd-stale__refresh:focus-visible { background: #2E2E2C; outline: none; }

.gd-stale__close {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    background: none;
    border: 0;
    color: rgba(0, 0, 0, 0.55);
    cursor: pointer;
    transition: color 0.2s;
}
.gd-stale__close:hover,
.gd-stale__close:focus-visible { color: var(--black); outline: none; }
.gd-stale__close svg { width: 15px; height: 15px; }

@media (min-width: 900px) {
    .gd-stale__inner { font-size: 0.8125rem; padding-left: 24px; }
}
