/* ============================================================================
   scholarships.css
   ----------------------------------------------------------------------------
   Clean-sheet redesign of the TigerNet scholarship breakdown pages. Shared
   between Basketball and Football via tiles/custom/misc/scholarships.jspf.

   Design anchors:
     - Editorial sports dashboard, not a 2010 table.
     - Clemson purple (#522D80) used as a sharp accent, not slathered.
     - Clemson orange (#F56600) only for "at limit" and [AUTO] badges.
     - Card-based layout (CSS grid) that reshapes cleanly on mobile.
     - Full dark-mode parity using the existing --dm-* variables from
       site-vars.css.jspf.
     - Motion respects prefers-reduced-motion.

   Bump VERSION_CSS_MAIN in tigernet/config/portal.properties after edits.
   ============================================================================ */

:root {
    --sch-purple:         #522D80;
    --sch-purple-rgb:     82, 45, 128;
    --sch-orange:         #F56600;
    --sch-text:           #1d1d1f;
    --sch-text-muted:     #5a5a60;
    --sch-text-subtle:    #8a8a8f;
    --sch-surface:        #ffffff;
    --sch-surface-warm:   #FAF8F5;
    --sch-surface-line:   rgba(82, 45, 128, 0.18);
    --sch-surface-hover:  rgba(82, 45, 128, 0.06);
    --sch-meter-track:    rgba(82, 45, 128, 0.12);
    --sch-meter-fill:     linear-gradient(90deg, #522D80 0%, #8955c8 100%);

    --sch-radius-sm:      6px;
    --sch-radius:         12px;
    --sch-radius-lg:      16px;

    /* Display font used for the hero big number, page titles, and section
       headings. We dropped "Impact" from the stack because on machines where
       Oswald doesn't load it was producing a crunchy, unreadable render at
       smaller sizes. system-ui is a readable fallback that still looks OK. */
    --sch-font-display:   "Oswald", "Archivo Narrow", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --sch-font-body:      inherit;
}

html.dark-mode {
    --sch-text:           var(--dm-accent-text, #f2f2f2);
    --sch-text-muted:     #c0c0c0;
    --sch-text-subtle:    #8f8f95;
    --sch-surface:        var(--dm-bg-secondary, #15181d);
    --sch-surface-warm:   var(--dm-bg-tertiary, #1c1f25);
    --sch-surface-line:   var(--dm-border-light, rgba(255,255,255,0.12));
    --sch-surface-hover:  var(--dm-hover-accent-bg, rgba(82, 45, 128, 0.25));
    --sch-meter-track:    var(--dm-bg-tertiary, rgba(255,255,255,0.08));
}

/* ---- reset-ish scope ------------------------------------------------------- */
.sch,
.sch * {
    box-sizing: border-box;
}
.sch {
    color: var(--sch-text);
    font-family: var(--sch-font-body);
    line-height: 1.5;
    font-variant-numeric: tabular-nums;
    padding: 0 0 48px;
    max-width: 1200px;
    margin: 0 auto;
}

/* ============================================================================
   HERO
   ============================================================================ */
.sch-hero {
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-areas:
        "kicker  year"
        "title   year"
        "count   count"
        "meter   meter"
        "meta    meta";
    gap: 4px 24px;
    padding: 28px 24px 20px;
    border-radius: var(--sch-radius-lg);
    background: linear-gradient(180deg, var(--sch-surface) 0%, var(--sch-surface-warm) 100%);
    border: 1px solid var(--sch-surface-line);
    margin-bottom: 22px;
    position: relative;
    overflow: visible;
}
html.dark-mode .sch-hero {
    background: linear-gradient(180deg, var(--dm-bg-secondary) 0%, var(--dm-bg-tertiary) 100%);
}

.sch-hero__kicker {
    grid-area: kicker;
    font-family: var(--sch-font-body);
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--sch-purple);
    font-size: 12px;
}
html.dark-mode .sch-hero__kicker { color: #c5a0ff; }

.sch-hero__title {
    grid-area: title;
    font-family: var(--sch-font-display);
    font-weight: 700;
    font-size: clamp(26px, 4vw, 42px);
    line-height: 1.1;
    letter-spacing: -0.01em;
    margin: 4px 0 16px;
    color: var(--sch-text);
}

.sch-hero__count {
    grid-area: count;
    display: flex;
    align-items: baseline;
    gap: 4px;
    font-family: var(--sch-font-display);
}
.sch-hero__used {
    font-size: clamp(52px, 8vw, 92px);
    font-weight: 800;
    line-height: 1;
    color: var(--sch-purple);
    letter-spacing: -0.02em;
    display: inline-block;
    min-width: 1.6ch;
    text-align: right;
}
html.dark-mode .sch-hero__used { color: #c5a0ff; }
.sch-hero__sep {
    font-size: clamp(32px, 5vw, 58px);
    color: var(--sch-text-subtle);
    font-weight: 300;
}
.sch-hero__cap {
    font-size: clamp(32px, 5vw, 58px);
    color: var(--sch-text-muted);
    font-weight: 600;
}

.sch-hero__meta {
    grid-area: meta;
    display: flex;
    flex-wrap: wrap;
    gap: 10px 16px;
    align-items: center;
    margin-top: 10px;
    color: var(--sch-text-muted);
    font-size: 14px;
}
.sch-hero__year {
    grid-area: year;
    justify-self: end;
    align-self: start;
    display: flex;
    gap: 8px;
    align-items: center;
    font-family: var(--sch-font-body);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-size: 12px;
}
.sch-hero__year select {
    font: inherit;
    padding: 6px 10px;
    border: 1px solid var(--sch-surface-line);
    background: transparent;
    color: var(--sch-text);
    border-radius: var(--sch-radius-sm);
    cursor: pointer;
}

/* Capacity meter (lives inside the hero) */
/* Scholarship progress meter: full-width bar beneath the scholarship count.
   Under capacity: purple fill clamped to width=pct. When over the NCAA
   cap, the fill maxes out and we show an orange "overage" bleed at the
   right end so fans can see the excess at a glance. The `--pct` and
   `--over` custom properties are set inline by the JSPF. */
.sch-meter {
    grid-area: meter;
    align-self: stretch;
    height: 10px;
    width: 100%;
    background: var(--sch-meter-track);
    border-radius: 999px;
    position: relative;
    margin: 6px 0 10px;
}
.sch-meter > span:not(.sch-meter__over) {
    display: block;
    height: 100%;
    width: var(--pct, 0%);
    max-width: 100%;
    background: var(--sch-meter-fill);
    border-radius: inherit;
    transform-origin: left center;
    animation: sch-meter-fill 1600ms cubic-bezier(0.2, 0.7, 0.2, 1) both;
}
/* At or over capacity: the fill turns orange with a soft glow. */
.sch-meter--full > span:not(.sch-meter__over) {
    background: linear-gradient(90deg, var(--sch-orange) 0%, #ffa250 100%);
    box-shadow: 0 0 12px rgba(245, 102, 0, 0.35);
}
/* Overage badge - only emitted when the team is over the NCAA limit. Sits
   at the right end of the meter and shows how far over (e.g. "+7"). */
.sch-meter__over {
    position: absolute;
    top: 50%;
    right: -2px;
    transform: translate(0, -50%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 30px;
    height: 20px;
    padding: 0 8px;
    border-radius: 999px;
    font-family: var(--sch-font-display);
    font-weight: 800;
    font-size: 11px;
    letter-spacing: 0.02em;
    color: #fff;
    background: linear-gradient(135deg, #d63249 0%, #f56600 100%);
    box-shadow: 0 2px 10px rgba(214, 50, 73, 0.35);
    animation: sch-meter-fill 1600ms 300ms cubic-bezier(0.2, 0.7, 0.2, 1) both;
}
html.dark-mode .sch-meter__over { box-shadow: 0 2px 10px rgba(255, 100, 120, 0.4); }

@keyframes sch-meter-fill {
    from { transform: scaleX(0); }
    to   { transform: scaleX(1); }
}

/* Balance grade pill (lives in hero meta) */
.sch-grade {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 999px;
    font-family: var(--sch-font-body);
    font-weight: 700;
    letter-spacing: 0.02em;
    font-size: 13px;
    border: 1px solid var(--sch-surface-line);
    background: var(--sch-surface);
    color: var(--sch-text);
}
.sch-grade__letter {
    display: inline-flex;
    width: 22px; height: 22px;
    border-radius: 50%;
    background: var(--sch-purple);
    color: #fff;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 800;
}
.sch-grade--d .sch-grade__letter,
.sch-grade--f .sch-grade__letter { background: var(--sch-orange); }
.sch-grade__label { font-weight: 500; color: var(--sch-text-muted); }
.sch-grade-tip {
    position: relative;
    display: inline-flex;
    align-items: center;
}
.sch-grade-tip:hover,
.sch-grade-tip:focus-within {
    z-index: 90;
}
.sch-grade-tip:hover .sch-grade__pop,
.sch-grade-tip:focus-within .sch-grade__pop {
    opacity: 1;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
}
.sch-grade__pop {
    z-index: 90;
    min-width: 260px;
    max-width: 300px;
}
.sch-grade__pop-body {
    display: flex;
    flex-direction: column;
    gap: 7px;
}
.sch-grade__pop-line,
.sch-grade__pop-counts,
.sch-grade__pop-note {
    display: block;
    font-size: 12px;
    line-height: 1.35;
}
.sch-grade__pop-line strong {
    color: var(--sch-purple);
    font-family: var(--sch-font-display);
    font-size: 16px;
}
.sch-grade__pop-counts {
    color: var(--sch-text);
    font-weight: 700;
}
.sch-grade__pop-note {
    color: var(--sch-text-muted);
    padding-top: 6px;
    border-top: 1px solid var(--sch-surface-line);
}
html.dark-mode .sch-grade__pop-line strong { color: #f3e8ff; }
html.dark-mode .sch-grade__pop-note { border-color: var(--dm-border); }

/* ============================================================================
   COUNTDOWN STRIP (above hero on wide, inline on mobile)
   ============================================================================ */
.sch-countdown {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin: 22px 0 18px;
    font-size: 13px;
    color: var(--sch-text-muted);
}
.sch-countdown__item {
    display: inline-flex;
    gap: 6px;
    padding: 6px 12px;
    background: var(--sch-surface);
    border: 1px solid var(--sch-surface-line);
    border-radius: 999px;
    align-items: center;
}
.sch-countdown__days {
    font-family: var(--sch-font-display);
    font-weight: 700;
    color: var(--sch-purple);
}
.sch-countdown__label { color: var(--sch-text); }
.sch-countdown__date  { color: var(--sch-text-subtle); font-size: 11px; }
.sch-countdown__heading {
    font-family: var(--sch-font-display);
    font-weight: 800;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--sch-purple);
    margin-right: 4px;
}
html.dark-mode .sch-countdown__heading { color: #c5a0ff; }
html.dark-mode .sch-countdown__item { background: var(--dm-bg-secondary); }
html.dark-mode .sch-countdown__days { color: #f3e8ff; }

/* ============================================================================
   PORTAL WATCH STRIP
   ============================================================================ */
.sch-portal-watch {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: var(--sch-radius);
    background: var(--sch-surface);
    border: 1px solid var(--sch-surface-line);
    margin-bottom: 14px;
    font-size: 14px;
}
html.dark-mode .sch-portal-watch { background: var(--dm-bg-secondary); }
.sch-portal-watch__label {
    display: inline-flex;
    align-items: center;
    font-family: var(--sch-font-body);
    letter-spacing: 0.04em;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--sch-purple);
    font-size: 12px;
    line-height: 1;
}
html.dark-mode .sch-portal-watch__label { color: #c5a0ff; }
.sch-portal-watch__stat {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    line-height: 1;
}
.sch-portal-watch__stat strong {
    font-family: var(--sch-font-display);
    font-weight: 800;
    font-size: 18px;
    line-height: 1;
}
.sch-portal-watch__net {
    margin-left: auto;
    color: var(--sch-text-muted);
}
.sch-portal-watch__toggle {
    cursor: pointer;
    background: transparent;
    border: 1px solid var(--sch-surface-line);
    border-radius: 999px;
    padding: 4px 10px;
    font-size: 12px;
    color: var(--sch-text-muted);
}
.sch-portal-watch__list {
    display: none;
    width: 100%;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid var(--sch-surface-line);
    font-size: 13px;
}
.sch-portal-watch.is-open .sch-portal-watch__list { display: block; }

/* ============================================================================
   TOP ROW: main grid stacked on top, next-season preview underneath
   (previously side-by-side, but that forced horizontal scroll on the grid -
   full-width gives every class column breathing room)
   ============================================================================ */
.sch-top-row {
    display: flex;
    flex-direction: column;
    gap: 18px;
    margin-bottom: 18px;
}

/* ============================================================================
   GRID (7 columns on desktop: position + Sr/Jr/So/Fr/RS/Commits)
   ============================================================================ */
/* Scrollable wrapper so the grid can overflow horizontally on narrow
   viewports. Drag-to-scroll is wired up in scholarships.js.
   NOTE: no background fade gradients here - they were obscuring the right
   edge of the table when scrolled fully right. We rely on the native
   scrollbar for overflow affordance. */
.sch-grid-scroll {
    position: relative;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    border-radius: var(--sch-radius);
}
.sch-grid-scroll.is-dragging { user-select: none; }

.sch-grid {
    display: grid;
    grid-template-columns: 92px repeat(5, minmax(120px, 1fr));
    gap: 1px;
    background: var(--sch-surface-line);
    border: 1px solid var(--sch-surface-line);
    border-radius: var(--sch-radius);
    overflow: hidden;
    /* Keep a sensible min-width only for very narrow windows; at full-page
       width the columns now have room to breathe without horizontal scroll. */
    min-width: 740px;
}
.sch-grid > * { background: var(--sch-surface); padding: 10px 12px; min-height: 54px; }
html.dark-mode .sch-grid > * { background: var(--dm-bg-secondary); }

.sch-grid__head {
    display: contents;
    /* Use the site's readable sans-serif, not the narrow display font. */
    font-family: var(--sch-font-body, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);
    letter-spacing: 0.02em;
    text-transform: none;
    font-size: 14px;
    color: var(--sch-text);
}
.sch-grid__head > * {
    display: flex;
    align-items: center;
    background: var(--sch-surface-warm) !important;
    padding: 12px 12px;
    border-bottom: 2px solid var(--sch-purple);
    font-weight: 700;
    text-align: left;
    position: sticky;
    top: 0;
    z-index: 2;
    white-space: nowrap;
}
html.dark-mode .sch-grid__head > * {
    background: var(--dm-bg-tertiary) !important;
    color: var(--dm-text-primary);
    border-bottom-color: var(--sch-purple);
}

.sch-grid__head .sch-col-btn {
    all: unset;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    cursor: pointer;
    color: inherit;
    padding: 4px 6px;
    border-radius: 4px;
    font-weight: 700;
    font-size: 14px;
    line-height: 1.15;
    letter-spacing: 0.02em;
    text-transform: none;
}
.sch-grid__head .sch-col-btn:hover,
.sch-grid__head .sch-col-btn:focus-visible { color: var(--sch-purple); background: var(--sch-surface-hover); outline: none; }
.sch-grid__head .sch-col-btn[aria-pressed="true"] { color: var(--sch-purple); font-weight: 800; }
html.dark-mode .sch-grid__head .sch-col-btn:hover,
html.dark-mode .sch-grid__head .sch-col-btn:focus-visible {
    color: #efe6ff;
    background: rgba(197, 160, 255, 0.16);
    box-shadow: inset 0 0 0 1px rgba(197, 160, 255, 0.22);
}
html.dark-mode .sch-grid__head .sch-col-btn[aria-pressed="true"] {
    color: #efe6ff;
}

/* Per-column totals next to each header label. Rendered small and muted so
   the label dominates - tabular-nums keeps multi-digit counts aligned. */
.sch-col-btn__count {
    font-family: var(--sch-font-display);
    font-size: 12px;
    font-weight: 700;
    color: var(--sch-text-muted);
    font-feature-settings: "tnum";
    letter-spacing: 0;
}
.sch-grid__head .sch-col-btn:hover .sch-col-btn__count,
.sch-grid__head .sch-col-btn:focus-visible .sch-col-btn__count,
.sch-grid__head .sch-col-btn[aria-pressed="true"] .sch-col-btn__count {
    color: var(--sch-purple);
}
html.dark-mode .sch-grid__head .sch-col-btn:hover .sch-col-btn__count,
html.dark-mode .sch-grid__head .sch-col-btn:focus-visible .sch-col-btn__count,
html.dark-mode .sch-grid__head .sch-col-btn[aria-pressed="true"] .sch-col-btn__count {
    color: #ffffff;
}

/* Position row */
.sch-pos {
    display: contents;
}
.sch-pos__badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    font-family: var(--sch-font-display);
    font-weight: 800;
    font-size: 18px;
    letter-spacing: 0.05em;
    background: var(--sch-surface-warm) !important;
    border-right: 2px solid var(--sch-surface-line);
    color: var(--sch-purple);
}
html.dark-mode .sch-pos__badge { background: var(--dm-bg-tertiary) !important; color: #c5a0ff; }
.sch-pos__badge span { font-size: 12px; color: var(--sch-text-muted); font-weight: 600; }

.sch-cell {
    display: flex;
    flex-wrap: wrap;
    gap: 5px 8px;
    align-items: flex-start;
    align-content: flex-start;
    background: var(--sch-surface);
    padding: 10px 2px 10px 5px;
}
html.dark-mode .sch-cell { background: var(--dm-bg-secondary); }
.sch-cell:empty::before { content: "–"; color: var(--sch-text-subtle); font-size: 12px; }

/* Group stats micro-strip */
.sch-pos__stats {
    grid-column: 1 / -1;
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    padding: 4px 14px 10px;
    font-size: 12px;
    color: var(--sch-text-muted);
    border-bottom: 1px dashed var(--sch-surface-line);
}
/* ----- Filter-aware stats strips -----
   One strip per view (all / col-N / rs) is emitted by the JSPF. By default
   only the "all" strip is visible; the column-highlight or redshirts filter
   flips the visibility so the averages track the currently-highlighted
   cohort. If both filters are active the column strip wins (more specific). */
.sch-pos__stats[data-stats-view]           { display: none; }
.sch-pos__stats[data-stats-view="all"]     { display: flex; }

.sch[data-highlight-col] .sch-pos__stats[data-stats-view="all"],
.sch[data-highlight-rs]  .sch-pos__stats[data-stats-view="all"] { display: none; }

.sch[data-highlight-col="0"] .sch-pos__stats[data-stats-view="col-0"],
.sch[data-highlight-col="1"] .sch-pos__stats[data-stats-view="col-1"],
.sch[data-highlight-col="2"] .sch-pos__stats[data-stats-view="col-2"],
.sch[data-highlight-col="3"] .sch-pos__stats[data-stats-view="col-3"],
.sch[data-highlight-col="4"] .sch-pos__stats[data-stats-view="col-4"] { display: flex; }

.sch[data-highlight-rs] .sch-pos__stats[data-stats-view="rs"] { display: flex; }

/* Class filter wins over RS when both are active (avoids two strips at once). */
.sch[data-highlight-col][data-highlight-rs] .sch-pos__stats[data-stats-view="rs"] {
    display: none;
}

.sch-pos__stats[data-stats-view] { transition: background-color 0.2s; }

/* Subtle tint on filtered strips so fans can tell the averages have been
   retargeted - purple for class-column filters, rose for the redshirt filter. */
.sch-pos__stats[data-stats-view^="col-"] {
    background: rgba(var(--sch-purple-rgb), 0.025);
}
.sch-pos__stats[data-stats-view="rs"] {
    background: var(--sch-surface) !important;
    box-shadow: inset 0 2px 0 rgba(214, 51, 78, 0.18);
}
html.dark-mode .sch-pos__stats[data-stats-view^="col-"] { background: rgba(197, 160, 255, 0.06); }
html.dark-mode .sch-pos__stats[data-stats-view="rs"] {
    background: var(--dm-bg-secondary) !important;
    box-shadow: inset 0 2px 0 rgba(255, 130, 150, 0.24);
}

.sch-pos__stats span strong {
    color: var(--sch-text);
    font-family: var(--sch-font-body);
    font-weight: 700;
}

/* Totals row */
.sch-totals {
    display: contents;
    font-family: var(--sch-font-display);
    font-weight: 800;
}
.sch-totals > * {
    display: flex;
    align-items: center;
    background: var(--sch-surface-warm) !important;
    border-top: 2px solid var(--sch-surface-line);
    padding: 10px 18px;
    text-align: left;
    position: sticky;
    bottom: 0;
    z-index: 2;
    font-size: 18px;
}
html.dark-mode .sch-totals > * { background: var(--dm-bg-tertiary) !important; }
.sch-totals__label {
    color: var(--sch-text-muted);
    font-family: var(--sch-font-body);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: none;
}

/* ============================================================================
   PLAYER CHIPS
   ============================================================================ */
.sch-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 2px 8px 2px 2px;
    border-radius: 14px;
    background: var(--sch-surface);
    border: 1px solid rgba(var(--sch-purple-rgb), 0.3);
    font-size: 13px;
    line-height: 1.3;
    color: var(--sch-text);
    transition: transform 0.15s ease-out, box-shadow 0.15s ease-out, border-color 0.15s;
    position: relative;
    cursor: pointer;
    max-width: calc(100% - 4px);
}
html.dark-mode .sch-chip { background: var(--dm-bg-tertiary); color: var(--dm-accent-text); border-color: var(--dm-border-light); }
.sch-chip:hover,
.sch-chip:focus-within {
    border-color: var(--sch-purple);
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(var(--sch-purple-rgb), 0.18);
}
.sch-chip--recruit { border-style: dashed; }
/* Redshirt chip: soft rose tint on the pill. No textual marker - subtle
   visual cue only. The Redshirts toggle filter + the hover title=Redshirt
   attribute make it discoverable without cluttering the grid. */
.sch-chip--rs {
    background: rgba(214, 51, 78, 0.045);
    border-color: rgba(214, 51, 78, 0.24);
}
.sch-chip--rs:hover,
.sch-chip--rs:focus-within {
    border-color: rgba(214, 51, 78, 0.48);
    box-shadow: 0 4px 14px rgba(214, 51, 78, 0.12);
}
html.dark-mode .sch-chip--rs {
    background: rgba(255, 110, 130, 0.09);
    border-color: rgba(255, 130, 150, 0.32);
}
html.dark-mode .sch-chip--rs:hover,
html.dark-mode .sch-chip--rs:focus-within {
    border-color: rgba(255, 150, 170, 0.55);
}
.sch-chip .utip {
    min-width: 0;
    max-width: 100%;
}
.sch-chip--long-name .utip {
    max-width: 19ch;
}
.sch-chip a,
.sch-chip .utip a {
    display: inline-block;
    color: inherit !important;
    text-decoration: none;
    font-weight: 500;
    min-width: 0;
    max-width: 100%;
    line-height: 1.15;
    overflow-wrap: normal;
    word-break: normal;
}
.sch-chip--long-name a,
.sch-chip--long-name .utip a {
    max-width: 19ch;
}
.sch-chip__suffix {
    font-size: 10px;
    font-weight: 700;
    color: var(--sch-orange);
    margin-left: 2px;
    vertical-align: super;
}

/* Avatar (desktop only) */
.sch-chip__avatar {
    display: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background-size: cover;
    background-position: center 20%;
    flex-shrink: 0;
    border: 1px solid var(--sch-surface-line);
}
.sch-chip__avatar--initials {
    background: linear-gradient(135deg, var(--sch-purple) 0%, #8955c8 100%);
    color: #fff;
    font-family: var(--sch-font-display);
    font-weight: 800;
    font-size: 11px;
    align-items: center;
    justify-content: center;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}
@media (min-width: 1024px) {
    .sch-chip__avatar { display: inline-flex; }
}

/* What-If simulator states */
.sch.sch--whatif .sch-chip { cursor: cell; }
.sch-chip--leaving {
    opacity: 0.55;
    text-decoration: line-through;
    text-decoration-color: #d12e2e;
    text-decoration-thickness: 2px;
    border-color: #d12e2e !important;
}

/* ----- Filter highlight states (set by JS on the root container) -----
   Two independent filters: class column (Seniors/Juniors/...) and redshirt
   status. When either is active, non-matching chips fade to ~18% opacity.
   If BOTH are active the behavior is OR (match either) - keeps the logic
   simple and lets fans see "all Seniors plus all redshirts" at a glance. */
.sch[data-highlight-col] .sch-chip,
.sch[data-highlight-rs] .sch-chip { opacity: 0.18; transition: opacity 0.2s; }

/* Keep class filtering readable without flooding the grid in lavender. */
.sch[data-highlight-col] .sch-cell {
    background: var(--sch-surface) !important;
}
.sch[data-highlight-col="0"] .sch-cell[data-col="0"],
.sch[data-highlight-col="1"] .sch-cell[data-col="1"],
.sch[data-highlight-col="2"] .sch-cell[data-col="2"],
.sch[data-highlight-col="3"] .sch-cell[data-col="3"],
.sch[data-highlight-col="4"] .sch-cell[data-col="4"] {
    background: var(--sch-surface) !important;
    box-shadow: inset 0 3px 0 rgba(var(--sch-purple-rgb), 0.28);
}
html.dark-mode .sch[data-highlight-col] .sch-cell {
    background: var(--dm-bg-secondary) !important;
}
html.dark-mode .sch[data-highlight-col="0"] .sch-cell[data-col="0"],
html.dark-mode .sch[data-highlight-col="1"] .sch-cell[data-col="1"],
html.dark-mode .sch[data-highlight-col="2"] .sch-cell[data-col="2"],
html.dark-mode .sch[data-highlight-col="3"] .sch-cell[data-col="3"],
html.dark-mode .sch[data-highlight-col="4"] .sch-cell[data-col="4"] {
    background: var(--dm-bg-secondary) !important;
    box-shadow: inset 0 3px 0 rgba(197, 160, 255, 0.32);
}

.sch[data-highlight-col="0"] .sch-cell[data-col="0"] .sch-chip,
.sch[data-highlight-col="1"] .sch-cell[data-col="1"] .sch-chip,
.sch[data-highlight-col="2"] .sch-cell[data-col="2"] .sch-chip,
.sch[data-highlight-col="3"] .sch-cell[data-col="3"] .sch-chip,
.sch[data-highlight-col="4"] .sch-cell[data-col="4"] .sch-chip { opacity: 1; }

.sch[data-highlight-rs] .sch-chip--rs { opacity: 1; }

/* ============================================================================
   NEXT-SEASON PREVIEW PANEL
   ============================================================================ */
.sch-projection {
    padding: 18px 22px;
    border-radius: var(--sch-radius);
    background: var(--sch-surface);
    border: 1px solid var(--sch-surface-line);
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    align-items: start;
}
html.dark-mode .sch-projection { background: var(--dm-bg-secondary); }
.sch-projection h2 {
    font-family: var(--sch-font-body);
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    font-size: 13px;
    color: var(--sch-purple);
    margin: 0 0 6px;
}
html.dark-mode .sch-projection h2 { color: #c5a0ff; }
.sch-projection__summary {
    display: grid;
    grid-template-columns: minmax(220px, auto) minmax(260px, 420px);
    align-items: center;
    gap: 16px 24px;
}
.sch-projection__big {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 8px;
    font-family: var(--sch-font-display);
    color: var(--sch-text);
    margin: 0;
}
.sch-projection__number {
    font-size: clamp(44px, 6vw, 66px);
    font-weight: 800;
    line-height: 0.95;
    letter-spacing: -0.04em;
    color: var(--sch-text);
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.35);
}
.sch-projection__label {
    font-size: clamp(22px, 3vw, 34px);
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.02em;
    color: var(--sch-text);
}
html.dark-mode .sch-projection__number { text-shadow: none; }
.sch-projection__stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    max-width: 420px;
}
.sch-projection__stat {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 10px 12px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(var(--sch-purple-rgb), 0.08), rgba(245, 102, 0, 0.06));
    border: 1px solid rgba(var(--sch-purple-rgb), 0.14);
}
.sch-projection__stat strong {
    font-family: var(--sch-font-display);
    font-size: 22px;
    line-height: 1;
    color: var(--sch-purple);
}
.sch-projection__stat span {
    font-size: 13px;
    color: var(--sch-text-muted);
}
html.dark-mode .sch-projection__stat {
    background: rgba(255, 255, 255, 0.045);
    border-color: var(--dm-border);
}
html.dark-mode .sch-projection__stat strong { color: #c5a0ff; }
@media (max-width: 520px) {
    .sch-projection__summary,
    .sch-projection__stats { grid-template-columns: 1fr; }
}
.sch-projection__leaving {
    padding-top: 14px;
    border-top: 1px dashed var(--sch-surface-line);
    margin: 0;
}
.sch-projection__leaving h3 {
    font-family: var(--sch-font-body);
    font-size: 12px;
    color: var(--sch-text-muted);
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin: 0 0 10px;
}
.sch-projection__leaving-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    max-width: 100%;
}
.sch-projection__leaving .sch-chip { opacity: 0.85; }
.sch-projection__footnote {
    color: var(--sch-text-subtle);
    font-size: 12px;
    line-height: 1.35;
    margin: 0;
    max-width: 460px;
}

/* ============================================================================
   WALK-ONS
   Sits between the main grid and the next-season preview, intentionally
   styled like a subdued sibling of .sch-projection so it reads as related
   roster context rather than a competing headline section.
   ============================================================================ */
.sch-walkons {
    padding: 16px 20px 18px;
    border-radius: var(--sch-radius);
    background: var(--sch-surface);
    border: 1px solid var(--sch-surface-line);
    display: flex;
    flex-direction: column;
    gap: 12px;
}
html.dark-mode .sch-walkons { background: var(--dm-bg-secondary); }

.sch-walkons__head {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 10px;
}
.sch-walkons__head h2 {
    font-family: var(--sch-font-body);
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    font-size: 13px;
    color: var(--sch-purple);
    margin: 0;
}
html.dark-mode .sch-walkons__head h2 { color: #c5a0ff; }

.sch-walkons__count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 26px;
    padding: 2px 8px;
    border-radius: 999px;
    background: rgba(var(--sch-purple-rgb), 0.12);
    color: var(--sch-purple);
    font-family: var(--sch-font-display);
    font-weight: 800;
    font-size: 13px;
    line-height: 1;
}
html.dark-mode .sch-walkons__count {
    background: rgba(197, 160, 255, 0.18);
    color: #c5a0ff;
}

.sch-walkons__hint {
    color: var(--sch-text-muted);
    font-size: 12px;
    line-height: 1.4;
}

.sch-walkons__empty {
    color: var(--sch-text-muted);
    font-size: 13px;
    margin: 0;
}

.sch-walkons__groups {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px;
}

.sch-walkons__group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 10px 12px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(var(--sch-purple-rgb), 0.05), rgba(245, 102, 0, 0.04));
    border: 1px solid rgba(var(--sch-purple-rgb), 0.12);
}
html.dark-mode .sch-walkons__group {
    background: rgba(255, 255, 255, 0.035);
    border-color: var(--dm-border);
}

.sch-walkons__group-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px;
}
.sch-walkons__group-label {
    font-family: var(--sch-font-body);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--sch-text-muted);
}
.sch-walkons__group-count {
    font-family: var(--sch-font-display);
    font-size: 16px;
    font-weight: 800;
    color: var(--sch-purple);
    line-height: 1;
}
html.dark-mode .sch-walkons__group-count { color: #c5a0ff; }

.sch-walkons__list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.sch-walkons__list .sch-chip { opacity: 0.92; }

/* ============================================================================
   LEGEND
   ============================================================================ */
.sch-legend {
    display: flex;
    justify-content: flex-start;
    margin: 10px 0 0;
}
.sch-legend__item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    max-width: min(100%, 720px);
    padding: 8px 13px;
    color: var(--sch-text-muted);
    font-size: 13px;
    line-height: 1.35;
    text-align: left;
    background: var(--sch-surface);
    border: 1px solid var(--sch-surface-line);
    border-radius: 999px;
    box-shadow: 0 3px 10px rgba(82, 45, 128, 0.05);
}
html.dark-mode .sch-legend__item {
    background: rgba(255, 255, 255, 0.035);
    border-color: var(--dm-border);
    box-shadow: none;
}
.sch-legend__swatch {
    flex: 0 0 auto;
    display: inline-block;
    width: 14px;
    height: 14px;
    border-radius: 999px;
}
.sch-legend__swatch--rs {
    background: rgba(214, 51, 78, 0.12);
    border: 1px solid rgba(214, 51, 78, 0.45);
}
html.dark-mode .sch-legend__swatch--rs {
    background: rgba(255, 110, 130, 0.2);
    border-color: rgba(255, 130, 150, 0.55);
}

/* ============================================================================
   HOMETOWN MAP
   ============================================================================ */
.sch-map {
    padding: 18px;
    border-radius: var(--sch-radius);
    background: var(--sch-surface);
    border: 1px solid var(--sch-surface-line);
    margin-bottom: 22px;
}
html.dark-mode .sch-map { background: var(--dm-bg-secondary); }
.sch-map h2 {
    font-family: var(--sch-font-body);
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    font-size: 13px;
    color: var(--sch-purple);
    margin: 0 0 10px;
}
html.dark-mode .sch-map h2 { color: #c5a0ff; }

/* --- View switcher (Cloud / States / Cities) ----------------------------- */
.sch-map__viewbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}
.sch-map__viewbar h2 { margin: 0; }
.sch-map__tabs {
    display: inline-flex;
    gap: 0;
    padding: 3px;
    border-radius: 999px;
    background: var(--sch-meter-track);
}
html.dark-mode .sch-map__tabs { background: rgba(255, 255, 255, 0.06); }
.sch-map__tab {
    border: 0;
    background: transparent;
    color: var(--sch-text-muted);
    font-family: inherit;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 5px 14px;
    border-radius: 999px;
    cursor: pointer;
    transition: background 140ms ease, color 140ms ease;
}
.sch-map__tab:hover { color: var(--sch-text); }
.sch-map__tab.is-active {
    background: var(--sch-purple);
    color: #fff;
    box-shadow: 0 2px 6px rgba(var(--sch-purple-rgb), 0.35);
}
.sch-map__view[hidden] { display: none; }
.sch-map__svg {
    width: 100%;
    height: auto;
    max-width: 900px;
    margin: 0 auto;
    display: block;
}
.sch-map__svg path.state { fill: var(--sch-meter-track); stroke: var(--sch-surface-line); stroke-width: 0.8; }
.sch-map__svg path.state.has-players { fill: rgba(var(--sch-purple-rgb), 0.25); }
.sch-map__svg path.state.active     { fill: rgba(var(--sch-purple-rgb), 0.55); }
.sch-map__intl {
    text-align: center;
    margin-top: 8px;
    font-size: 12px;
    color: var(--sch-text-muted);
}

/* --- State chip cloud ----------------------------------------------------- */
.sch-map__cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}
.sch-map__chip-wrap {
    position: relative;
    display: inline-flex;
}
.sch-map__chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border: 0;
    border-radius: 999px;
    color: #fff;
    font-weight: 600;
    font-size: 13px;
    font-family: inherit;
    cursor: pointer;
    transition: transform 140ms ease, box-shadow 140ms ease;
}
.sch-map__chip:hover,
.sch-map__chip:focus-visible,
.sch-map__chip[aria-expanded="true"] {
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(var(--sch-purple-rgb), 0.35);
    outline: none;
}
.sch-map__chip-count {
    background: rgba(255, 255, 255, 0.25);
    padding: 0 7px;
    border-radius: 999px;
    font-variant-numeric: tabular-nums;
}

/* --- Popover (player list) ------------------------------------------------- */
.sch-map__pop {
    position: absolute;
    z-index: 40;
    top: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%) translateY(-4px);
    min-width: 240px;
    max-width: 320px;
    padding: 10px 12px 12px;
    background: var(--sch-surface);
    border: 1px solid var(--sch-surface-line);
    border-radius: 14px;
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.12),
                0 2px 6px rgba(0, 0, 0, 0.06);
    opacity: 0;
    pointer-events: none;
    transition: opacity 140ms ease, transform 140ms ease;
    text-align: left;
    color: var(--sch-text);
}
html.dark-mode .sch-map__pop {
    background: var(--dm-bg-primary);
    border-color: var(--dm-border);
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.55),
                0 2px 6px rgba(0, 0, 0, 0.35);
}
/* Little upward arrow */
.sch-map__pop::before {
    content: "";
    position: absolute;
    top: -6px;
    left: 50%;
    transform: translateX(-50%) rotate(45deg);
    width: 10px;
    height: 10px;
    background: inherit;
    border-left: 1px solid var(--sch-surface-line);
    border-top: 1px solid var(--sch-surface-line);
}
html.dark-mode .sch-map__pop::before { border-color: var(--dm-border); }

/* Invisible "hover bridge" over the 8px gap between the chip and the
   popover. Without this, the mouse crosses dead space and :hover drops
   before the user can reach the popover to scroll it or click the tab
   buttons. The bridge only becomes hoverable once pointer-events are
   active (i.e. the popover is already open), so it doesn't capture
   stray clicks while closed. */
.sch-map__pop::after {
    content: "";
    position: absolute;
    top: -12px;
    left: 0;
    right: 0;
    height: 12px;
}

/* Show on hover, keyboard focus, or explicit open state (touch) -
   applies to both Cloud chips and States grid cells. */
.sch-map__chip-wrap:hover .sch-map__pop,
.sch-map__chip-wrap:focus-within .sch-map__pop,
.sch-map__chip[aria-expanded="true"] + .sch-map__pop,
.sch-map__grid-wrap:hover .sch-map__pop,
.sch-map__grid-wrap:focus-within .sch-map__pop,
.sch-map__grid-cell[aria-expanded="true"] + .sch-map__pop {
    opacity: 1;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
}

/* Keep popover on-screen near cloud edges. Any chip in the last ~25% of
   its row flips its popover to the left; first ~25% flips to the right. */
.sch-map__chip-wrap:nth-child(4n) .sch-map__pop { left: auto; right: 0; transform: translateX(0) translateY(-4px); }
.sch-map__chip-wrap:nth-child(4n) .sch-map__pop::before { left: auto; right: 14px; transform: rotate(45deg); }
.sch-map__chip-wrap:nth-child(4n):hover .sch-map__pop,
.sch-map__chip-wrap:nth-child(4n):focus-within .sch-map__pop,
.sch-map__chip-wrap:nth-child(4n) .sch-map__chip[aria-expanded="true"] + .sch-map__pop {
    transform: translateX(0) translateY(0);
}

.sch-map__pop-head {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 8px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--sch-surface-line);
}
html.dark-mode .sch-map__pop-head { border-color: var(--dm-border); }
.sch-map__pop-title {
    font-family: var(--sch-font-display);
    font-weight: 800;
    font-size: 14px;
    color: var(--sch-purple);
    letter-spacing: 0.02em;
}
html.dark-mode .sch-map__pop-title { color: #c5a0ff; }

.sch-map__pop-tabs {
    display: inline-flex;
    gap: 0;
    padding: 2px;
    border-radius: 999px;
    background: var(--sch-meter-track);
    align-self: flex-start;
}
html.dark-mode .sch-map__pop-tabs { background: rgba(255, 255, 255, 0.06); }
.sch-map__pop-tab {
    border: 0;
    background: transparent;
    color: var(--sch-text-muted);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 4px 12px;
    border-radius: 999px;
    cursor: pointer;
    font-family: inherit;
    transition: background 140ms ease, color 140ms ease;
}
.sch-map__pop-tab:hover { color: var(--sch-text); }
.sch-map__pop-tab[aria-pressed="true"] {
    background: var(--sch-purple);
    color: #fff;
}

.sch-map__pop-body {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 300px;
    overflow-y: auto;
}
.sch-map__pop-body[hidden] { display: none; }

.sch-map__group-head {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--sch-text-muted);
    margin-bottom: 4px;
}
.sch-map__group-count {
    padding: 1px 6px;
    border-radius: 999px;
    background: var(--sch-meter-track);
    color: var(--sch-text);
    font-weight: 700;
    font-size: 10px;
}
html.dark-mode .sch-map__group-count { background: rgba(255, 255, 255, 0.08); }

.sch-map__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.sch-map__player {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 13px;
    line-height: 1.2;
}
.sch-map__player:hover { background: var(--sch-meter-track); }
html.dark-mode .sch-map__player:hover { background: rgba(255, 255, 255, 0.05); }
.sch-map__player--rs {
    background: rgba(244, 63, 94, 0.08);
}
.sch-map__player--rs:hover { background: rgba(244, 63, 94, 0.15); }
.sch-map__player--recruit .sch-map__name {
    font-style: italic;
}
.sch-map__name {
    font-weight: 500;
    color: var(--sch-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-decoration: none;
}
/* Anchor variant - names link to the player's profile. Kept visually
   quiet (no underline, no purple color) until hover so the popover
   doesn't turn into a wall of underlines. */
a.sch-map__name { cursor: pointer; }
a.sch-map__name:hover,
a.sch-map__name:focus-visible {
    color: var(--sch-purple);
    text-decoration: underline;
    text-underline-offset: 2px;
    outline: none;
}
html.dark-mode a.sch-map__name:hover,
html.dark-mode a.sch-map__name:focus-visible { color: #c5a0ff; }
.sch-map__tag {
    flex: 0 0 auto;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--sch-text-muted);
    padding: 3px 6px;
    border-radius: 4px;
    background: var(--sch-meter-track);
    line-height: 1;
    font-variant-numeric: tabular-nums;
}
html.dark-mode .sch-map__tag { background: rgba(255, 255, 255, 0.08); }

/* --- States view: statebin choropleth ------------------------------------
   A CSS grid of same-sized squares positioned at approximate US geography.
   Color intensity encodes player count; empty cells are rendered as faint
   dashed outlines so the shape of the US stays recognizable. */
.sch-map__grid {
    display: grid;
    grid-template-columns: repeat(12, minmax(36px, 1fr));
    grid-template-rows: repeat(8, auto);
    gap: 4px;
    max-width: 640px;
    margin: 6px auto 10px;
}
.sch-map__grid-wrap {
    position: relative;
    display: flex;
}
.sch-map__grid-cell {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1px;
    width: 100%;
    aspect-ratio: 1 / 1;
    border: 0;
    border-radius: 6px;
    padding: 4px 2px;
    color: #fff;
    font-family: inherit;
    font-weight: 700;
    cursor: pointer;
    transition: transform 140ms ease, box-shadow 140ms ease;
    line-height: 1;
}
.sch-map__grid-cell:hover,
.sch-map__grid-cell:focus-visible,
.sch-map__grid-cell[aria-expanded="true"] {
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(var(--sch-purple-rgb), 0.35);
    outline: none;
}
.sch-map__grid-code {
    font-size: 11px;
    letter-spacing: 0.03em;
}
.sch-map__grid-count {
    font-size: 10px;
    font-weight: 800;
    padding: 0 5px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.28);
    font-variant-numeric: tabular-nums;
}
.sch-map__grid-cell--empty,
.sch-map__grid-cell[disabled] {
    cursor: default;
    color: var(--sch-text-muted);
    border: 1px dashed var(--sch-surface-line);
    background: transparent;
    box-shadow: none;
    opacity: 0.55;
}
.sch-map__grid-cell--empty:hover,
.sch-map__grid-cell[disabled]:hover { transform: none; box-shadow: none; }
html.dark-mode .sch-map__grid-cell--empty { border-color: var(--dm-border); }
.sch-map__grid-note {
    text-align: center;
    font-size: 11px;
    color: var(--sch-text-muted);
    margin: 4px 0 0;
}

/* --- Cities view: Mapbox container + toolbar/legend ---------------------- */
.sch-map__cities-toolbar {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px 16px;
    margin-bottom: 10px;
    font-size: 12px;
    color: var(--sch-text-muted);
}
.sch-map__cities-label {
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-size: 11px;
}
.sch-map__cities-toggle {
    display: inline-flex;
    padding: 2px;
    border-radius: 999px;
    background: var(--sch-meter-track);
}
html.dark-mode .sch-map__cities-toggle { background: rgba(255, 255, 255, 0.06); }
.sch-map__cities-toggle-btn {
    border: 0;
    background: transparent;
    color: var(--sch-text-muted);
    font-family: inherit;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 4px 12px;
    border-radius: 999px;
    cursor: pointer;
    transition: background 140ms ease, color 140ms ease;
}
.sch-map__cities-toggle-btn:hover { color: var(--sch-text); }
.sch-map__cities-toggle-btn.is-active {
    background: var(--sch-purple);
    color: #fff;
}
.sch-map__cities-legend {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px 12px;
    font-size: 11px;
    color: var(--sch-text);
}
.sch-map__cities-legend[hidden] { display: none; }
.sch-map__cities-legend-item {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 2px 6px;
    border-radius: 999px;
    cursor: pointer;
    transition: background 120ms ease;
    user-select: none;
}
.sch-map__cities-legend-item:hover,
.sch-map__cities-legend-item:focus-visible {
    background: var(--sch-meter-track);
    outline: none;
}
html.dark-mode .sch-map__cities-legend-item:hover,
html.dark-mode .sch-map__cities-legend-item:focus-visible {
    background: rgba(255, 255, 255, 0.08);
}
.sch-map__cities-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    vertical-align: middle;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.15);
    flex: 0 0 auto;
}
.sch-map__cities-dot--diamond {
    border-radius: 2px;
    transform: rotate(45deg);
}
.sch-map__cities {
    width: 100%;
    height: 480px;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--sch-surface-line);
}
html.dark-mode .sch-map__cities { border-color: var(--dm-border); }
.sch-map__cities-empty {
    padding: 24px;
    text-align: center;
    color: var(--sch-text-muted);
    font-size: 13px;
    background: var(--sch-meter-track);
    border-radius: 12px;
}
html.dark-mode .sch-map__cities-empty { background: rgba(255, 255, 255, 0.04); }

/* Mapbox markers - small colored dots with a subtle ring for contrast. */
.sch-map__pin {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    box-shadow: 0 0 0 1.5px #fff, 0 1px 3px rgba(0, 0, 0, 0.35);
    cursor: pointer;
    transition: transform 120ms ease;
}
.sch-map__pin:hover { transform: scale(1.35); }
.sch-map__pin--commit {
    border-radius: 2px;
    transform: rotate(45deg);
}
.sch-map__pin--commit:hover { transform: rotate(45deg) scale(1.35); }
/* Legend-hover hide: non-matching pins disappear entirely while a legend
   item is hovered, so only the matching ones remain on the map.  Using
   visibility + opacity (rather than display:none) keeps the marker's
   absolute position intact and lets Mapbox re-show them instantly when
   the user's mouse leaves the legend. pointer-events:none ensures the
   hidden pins never intercept tooltips or hover. */
.sch-map__pin {
    transition: opacity 160ms ease, transform 120ms ease;
}
.sch-map__pin--dim {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}
.sch-map__pin--dim:hover { transform: scale(1); }
.sch-map__pin--commit.sch-map__pin--dim:hover { transform: rotate(45deg); }

/* Marker popup (Mapbox-provided container; we style the inner content). */
.sch-map__pin-pop { min-width: 160px; }
.sch-map__pin-name {
    display: block;
    font-weight: 700;
    color: var(--sch-text);
    text-decoration: none;
    font-size: 13px;
    margin-bottom: 2px;
}
a.sch-map__pin-name:hover { color: var(--sch-purple); text-decoration: underline; }
.sch-map__pin-loc {
    font-size: 11px;
    color: var(--sch-text-muted);
    margin-bottom: 4px;
}
.sch-map__pin-tags { display: flex; flex-wrap: wrap; gap: 4px; }
.sch-map__pin-tag {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--sch-text-muted);
    padding: 2px 6px;
    border-radius: 4px;
    background: var(--sch-meter-track);
    line-height: 1.1;
}
html.dark-mode .sch-map__pin-tag { background: rgba(255, 255, 255, 0.08); }

/* Mobile: widen popovers and stack head */
@media (max-width: 640px) {
    .sch-map__pop { min-width: 220px; max-width: 84vw; }
    .sch-map__viewbar { flex-direction: column; align-items: flex-start; }
    .sch-map__grid { grid-template-columns: repeat(12, minmax(22px, 1fr)); }
    .sch-map__cities { height: 360px; }
}

/* ============================================================================
   TOOLBAR (simulator + filters)
   ============================================================================ */
.sch-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: stretch;
    margin: 4px 0 14px;
}
.sch-simulator,
.sch-filters {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: var(--sch-radius);
    background: var(--sch-surface);
    border: 1px dashed var(--sch-surface-line);
    font-size: 13px;
    color: var(--sch-text-muted);
}
.sch-simulator { flex: 1 1 auto; min-width: 260px; }
.sch-filters   { flex: 0 0 auto; }
html.dark-mode .sch-simulator,
html.dark-mode .sch-filters { background: var(--dm-bg-secondary); }

.sch-simulator__title { font-family: var(--sch-font-body); font-weight: 700; letter-spacing: 0.02em; text-transform: none; color: var(--sch-text); font-size: 13px; }

/* ============================================================================
   DEPARTURE IMPACT PANEL
   Rich replacement for the old What-if simulator. Collapsed state shows
   just a title + Preview/Load/Reset controls. Expanded state reveals the
   metrics row and the per-position impact badges.
   ============================================================================ */
.sch-impact {
    flex-direction: column;
    align-items: stretch;
    gap: 8px !important;
}
.sch-impact__head {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.sch-impact__title {
    font-family: var(--sch-font-body);
    font-weight: 700;
    letter-spacing: 0.02em;
    color: var(--sch-text);
    font-size: 13px;
    margin-right: 4px;
}
.sch-impact__hint {
    font-size: 12px;
    color: var(--sch-text-muted);
    line-height: 1.4;
}
.sch-impact__hint strong { color: var(--sch-text); font-weight: 700; }
.sch-impact__body[hidden] { display: none; }

/* --- Metrics row (the big "X -> Y" readouts) ----------------------------- */
.sch-impact__metrics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 10px;
    padding: 10px 0 4px;
    border-top: 1px dashed var(--sch-surface-line);
}
html.dark-mode .sch-impact__metrics { border-top-color: var(--dm-border); }
.sch-impact__metric {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.sch-impact__metric-label {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--sch-text-muted);
}
.sch-impact__metric strong {
    font-family: var(--sch-font-display);
    font-weight: 700;
    font-size: 18px;
    color: var(--sch-text);
    letter-spacing: 0.02em;
    font-variant-numeric: tabular-nums;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.sch-impact__metric strong small {
    font-size: 11px;
    font-weight: 500;
    color: var(--sch-text-muted);
    font-family: inherit;
}
/* Highlight the projected values when they've actually changed */
.sch-impact__metric strong [data-sim-used].is-changed,
.sch-impact__metric strong [data-sim-open].is-changed {
    color: var(--sch-orange);
}
.sch-impact__metric strong [data-sim-leaving] { color: var(--sch-purple); }
html.dark-mode .sch-impact__metric strong [data-sim-leaving] { color: #c5a0ff; }

/* Grade pill */
.sch-impact__grade {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    padding: 2px 10px !important;
    border-radius: 999px;
    font-size: 14px !important;
    background: var(--sch-meter-track);
}
.sch-impact__grade.sch-impact__grade--changed {
    box-shadow: 0 0 0 2px rgba(245, 102, 0, 0.35);
}

/* --- Per-position impact badges ------------------------------------------ */
.sch-impact__positions {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    min-height: 24px;
}
.sch-impact__empty {
    font-size: 12px;
    color: var(--sch-text-muted);
    font-style: italic;
}
.sch-impact__pos {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 999px;
    background: var(--sch-meter-track);
    font-size: 12px;
    color: var(--sch-text);
    font-variant-numeric: tabular-nums;
}
.sch-impact__pos-group { font-weight: 800; letter-spacing: 0.04em; }
.sch-impact__pos-math  { color: var(--sch-text-muted); }
.sch-impact__pos-math b { color: var(--sch-text); font-weight: 700; }
.sch-impact__pos-status {
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 1px 5px;
    border-radius: 4px;
    color: #fff;
}
.sch-impact__pos--watch {
    background: rgba(245, 158, 11, 0.14);
    color: #8a4f00;
    box-shadow: inset 0 0 0 1px rgba(245, 158, 11, 0.34);
}
.sch-impact__pos--watch .sch-impact__pos-math b { color: #8a4f00; }
.sch-impact__pos--watch .sch-impact__pos-status { background: #b86b00; }
.sch-impact__pos--thin {
    background: rgba(214, 50, 73, 0.15);
    color: #b3182d;
    box-shadow: inset 0 0 0 1px rgba(214, 50, 73, 0.35);
}
.sch-impact__pos--thin .sch-impact__pos-math b { color: #b3182d; }
.sch-impact__pos--thin .sch-impact__pos-status { background: #b3182d; }
.sch-impact__pos--critical {
    background: rgba(160, 24, 44, 0.2);
    color: #8f1023;
    box-shadow: inset 0 0 0 1px rgba(160, 24, 44, 0.45);
}
.sch-impact__pos--critical .sch-impact__pos-math b { color: #8f1023; }
.sch-impact__pos--critical .sch-impact__pos-status { background: #8f1023; }
.sch-impact__pos--mayday {
    background: rgba(112, 26, 117, 0.18);
    color: #701a75;
    box-shadow: inset 0 0 0 1px rgba(112, 26, 117, 0.38);
}
.sch-impact__pos--mayday .sch-impact__pos-math b { color: #701a75; }
.sch-impact__pos--mayday .sch-impact__pos-status { background: #701a75; }
html.dark-mode .sch-impact__pos { background: rgba(255, 255, 255, 0.06); }
html.dark-mode .sch-impact__pos--watch {
    background: rgba(245, 180, 70, 0.14);
    color: #ffd18a;
    box-shadow: inset 0 0 0 1px rgba(245, 180, 70, 0.34);
}
html.dark-mode .sch-impact__pos--watch .sch-impact__pos-math b { color: #ffd18a; }
html.dark-mode .sch-impact__pos--watch .sch-impact__pos-status { background: #b87400; }
html.dark-mode .sch-impact__pos--thin {
    background: rgba(255, 120, 130, 0.15);
    color: #ffa0ab;
    box-shadow: inset 0 0 0 1px rgba(255, 120, 130, 0.35);
}
html.dark-mode .sch-impact__pos--thin .sch-impact__pos-math b { color: #ffa0ab; }
html.dark-mode .sch-impact__pos--thin .sch-impact__pos-status { background: #c7374d; }
html.dark-mode .sch-impact__pos--critical {
    background: rgba(255, 90, 105, 0.2);
    color: #ffc0c7;
    box-shadow: inset 0 0 0 1px rgba(255, 90, 105, 0.45);
}
html.dark-mode .sch-impact__pos--critical .sch-impact__pos-math b { color: #ffc0c7; }
html.dark-mode .sch-impact__pos--critical .sch-impact__pos-status { background: #a7182e; }
html.dark-mode .sch-impact__pos--mayday {
    background: rgba(232, 121, 249, 0.18);
    color: #f5d0fe;
    box-shadow: inset 0 0 0 1px rgba(232, 121, 249, 0.38);
}
html.dark-mode .sch-impact__pos--mayday .sch-impact__pos-math b { color: #f5d0fe; }
html.dark-mode .sch-impact__pos--mayday .sch-impact__pos-status { background: #9d174d; }

/* --- Button variants ------------------------------------------------------ */
.sch-impact__portal {
    font: inherit;
    padding: 4px 10px;
    border: 1px solid var(--sch-purple);
    background: transparent;
    color: var(--sch-purple);
    border-radius: 999px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: background 140ms ease, color 140ms ease;
}
.sch-impact__portal:hover:not([disabled]) {
    background: var(--sch-purple);
    color: #fff;
}
.sch-impact__portal[disabled] {
    opacity: 0.4;
    cursor: not-allowed;
}
.sch-impact__portal-count {
    font-size: 10px;
    font-weight: 800;
    padding: 0 6px;
    border-radius: 999px;
    background: rgba(var(--sch-purple-rgb), 0.15);
    color: var(--sch-purple);
}
.sch-impact__portal:hover:not([disabled]) .sch-impact__portal-count {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
}
html.dark-mode .sch-impact__portal {
    background: rgba(197, 160, 255, 0.12);
    color: #f3e8ff;
    border-color: rgba(243, 232, 255, 0.72);
}
html.dark-mode .sch-impact__portal:hover:not([disabled]) {
    background: #c5a0ff;
    color: #160824;
    border-color: #eadcff;
}
html.dark-mode .sch-impact__portal-count {
    background: rgba(243, 232, 255, 0.16);
    color: #f3e8ff;
}
html.dark-mode .sch-impact__portal:hover:not([disabled]) .sch-impact__portal-count {
    background: rgba(22, 8, 36, 0.18);
    color: #160824;
}

.sch-simulator button {
    font: inherit;
    padding: 4px 10px;
    border: 1px solid var(--sch-surface-line);
    background: transparent;
    color: var(--sch-text);
    border-radius: 999px;
    cursor: pointer;
}
.sch-simulator button[aria-pressed="true"] {
    background: var(--sch-purple);
    border-color: var(--sch-purple);
    color: #fff;
}

/* ----- Redshirts quick-filter toggle (in the filters toolbar) -----
   Mirrors the column-header button pattern: press to highlight redshirts
   only; press again to release. The little dot acts as a colour swatch so
   fans know what they're toggling without reading the label. */
.sch-rs-toggle {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font: inherit;
    font-weight: 600;
    padding: 4px 12px 4px 10px;
    border: 1px solid rgba(214, 51, 78, 0.35);
    background: transparent;
    color: var(--sch-text);
    border-radius: 999px;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.sch-rs-toggle:hover,
.sch-rs-toggle:focus-visible {
    border-color: rgba(214, 51, 78, 0.7);
    background: rgba(214, 51, 78, 0.08);
    outline: none;
}
.sch-rs-toggle[aria-pressed="true"] {
    background: rgba(214, 51, 78, 0.85);
    border-color: rgba(214, 51, 78, 0.95);
    color: #fff;
}
.sch-rs-toggle[aria-pressed="true"] .sch-rs-toggle__dot {
    background: #fff;
    border-color: #fff;
}
.sch-rs-toggle__dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(214, 51, 78, 0.5);
    border: 1px solid rgba(214, 51, 78, 0.75);
    flex-shrink: 0;
}
.sch-rs-toggle__count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 18px;
    padding: 0 6px;
    margin-left: 4px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    font-feature-settings: "tnum";
    background: rgba(214, 51, 78, 0.15);
    color: rgba(214, 51, 78, 0.95);
    border: 1px solid rgba(214, 51, 78, 0.35);
}
.sch-rs-toggle[aria-pressed="true"] .sch-rs-toggle__count {
    background: rgba(255, 255, 255, 0.25);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.4);
}
.sch-rs-toggle[disabled] {
    opacity: 0.45;
    cursor: not-allowed;
}

/* ============================================================================
   LATEST UPDATES TIMELINE
   ============================================================================ */
.sch-updates {
    margin-top: 22px;
}
.sch-updates__head {
    display: flex;
    align-items: baseline;
    gap: 12px;
    margin-bottom: 14px;
}
.sch-updates h2 {
    font-family: var(--sch-font-display);
    font-weight: 800;
    font-size: 22px;
    letter-spacing: 0.02em;
    margin: 0;
}
.sch-updates__recency {
    font-size: 12px;
    color: var(--sch-text-muted);
    padding: 2px 8px;
    border: 1px solid var(--sch-surface-line);
    border-radius: 999px;
}
.sch-updates__recency--stale {
    color: var(--sch-orange);
    border-color: rgba(245, 102, 0, 0.5);
}
.sch-updates__feed-link {
    margin-left: auto;
    color: var(--sch-text-muted);
    font-size: 12px;
    text-decoration: none;
}
.sch-updates__feed-link:hover { color: var(--sch-orange); }

.sch-onthisday {
    padding: 10px 14px;
    background: linear-gradient(90deg, rgba(var(--sch-purple-rgb), 0.08) 0%, transparent 100%);
    border-left: 3px solid var(--sch-purple);
    margin-bottom: 14px;
    font-size: 14px;
    color: var(--sch-text);
    border-radius: 0 var(--sch-radius-sm) var(--sch-radius-sm) 0;
}
.sch-onthisday strong { color: var(--sch-purple); font-family: var(--sch-font-body); font-weight: 700; letter-spacing: 0.02em; text-transform: none; font-size: 13px; }
html.dark-mode .sch-onthisday strong { color: #c5a0ff; }

.sch-timeline {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.sch-note {
    position: relative;
    padding: 14px 16px 14px 20px;
    background: var(--sch-surface);
    border: 1px solid var(--sch-surface-line);
    border-radius: var(--sch-radius);
    display: grid;
    grid-template-columns: 110px 1fr;
    gap: 12px;
    align-items: start;
}
html.dark-mode .sch-note { background: var(--dm-bg-secondary); }
.sch-note::before {
    content: "";
    position: absolute;
    left: 0; top: 10px; bottom: 10px;
    width: 3px;
    background: var(--sch-purple);
    border-radius: 999px;
}
.sch-note__date {
    font-family: var(--sch-font-body);
    font-weight: 700;
    text-transform: none;
    font-size: 12px;
    letter-spacing: 0.02em;
    color: var(--sch-text-muted);
    padding: 3px 9px;
    border: 1px solid var(--sch-surface-line);
    border-radius: 999px;
    display: inline-block;
    justify-self: start;
    white-space: nowrap;
}
.sch-note__body { font-size: 14px; line-height: 1.55; color: var(--sch-text); }
.sch-note__body .sch-chip { margin-right: 4px; margin-bottom: 2px; }
.sch-timeline__more {
    align-self: center;
    text-align: center;
    padding: 10px;
    color: var(--sch-text-muted);
    font-size: 13px;
    cursor: pointer;
    border: none;
    background: transparent;
}

/* ============================================================================
   RESPONSIVE: tablet (640-1023px)
   ============================================================================ */
@media (max-width: 1023px) {
    /* grid keeps a readable min-width; .sch-grid-scroll wrapper handles overflow */
    .sch-grid { grid-template-columns: 84px repeat(5, minmax(120px, 1fr)); min-width: 700px; }
    .sch-grid__head > * { font-size: 12px; padding: 10px 8px; }
    .sch-grid__head .sch-col-btn { font-size: 12px; padding: 2px 4px; }
    .sch-cell { padding: 8px 8px 10px; gap: 5px 7px; }
    .sch-chip { font-size: 12px; padding: 2px 8px 2px 3px; }
    .sch-hero { grid-template-areas:
        "kicker year"
        "title  title"
        "count  count"
        "meter  meter"
        "meta   meta"; }
    .sch-hero__meta { flex-wrap: wrap; }
}

/* ============================================================================
   RESPONSIVE: mobile (<640px)
   ============================================================================ */
@media (max-width: 639px) {
    .sch { padding: 0 0 32px; }
    .sch-hero { padding: 20px 18px; }
    .sch-grid-scroll { overflow: visible; background: none; cursor: default; }
    .sch-grid {
        display: flex;
        flex-direction: column;
        background: transparent;
        border: none;
        border-radius: 0;
        gap: 8px;
        min-width: 0;
    }
    .sch-grid > * { background: transparent; padding: 0; border: none !important; min-height: 0; }
    .sch-grid__head { display: none; }
    .sch-pos {
        display: block;
        background: var(--sch-surface) !important;
        border: 1px solid var(--sch-surface-line) !important;
        border-radius: var(--sch-radius);
        padding: 12px 14px !important;
    }
    html.dark-mode .sch-pos { background: var(--dm-bg-secondary) !important; }
    .sch-pos__badge {
        display: inline-flex;
        padding: 2px 10px !important;
        border: none !important;
        background: transparent !important;
        margin-bottom: 6px;
    }
    .sch-cell {
        display: block;
        padding: 2px 0 !important;
    }
    .sch-cell::before {
        content: attr(data-col-label) " — ";
        font-family: var(--sch-font-body);
        font-size: 11px;
        font-weight: 700;
        color: var(--sch-text-muted);
        letter-spacing: 0.02em;
        text-transform: none;
        display: inline-block;
        margin-right: 6px;
    }
    .sch-cell[data-empty="true"] { display: none; }
    .sch-pos__stats { border: none !important; padding: 6px 0 0 !important; }

    .sch-totals {
        display: grid !important;
        grid-template-columns: repeat(3, 1fr);
        gap: 6px;
        padding: 12px !important;
        background: var(--sch-surface-warm) !important;
        border: 1px solid var(--sch-surface-line) !important;
        border-radius: var(--sch-radius);
        position: static;
    }
    .sch-totals > * { padding: 4px 6px !important; border: none !important; font-size: 14px; background: transparent !important; }

    .sch-note { grid-template-columns: 1fr; gap: 6px; padding-left: 16px; }
    .sch-note__date { justify-self: start; }
}

/* ============================================================================
   Motion: respect user preferences
   ============================================================================ */
@media (prefers-reduced-motion: reduce) {
    .sch *,
    .sch *::before,
    .sch *::after {
        animation: none !important;
        transition: none !important;
    }
    .sch-meter > span { transform: scaleX(1); }
}

/* ============================================================================
   PRINT: single-page friendly
   ============================================================================ */
@media print {
    html.dark-mode .sch,
    html.dark-mode .sch * { color: #111 !important; background: #fff !important; border-color: #ccc !important; }
    .sch { max-width: 100%; padding: 0; }
    .sch-countdown, .sch-portal-watch, .sch-simulator, .sch-map,
    .sch-updates__feed-link, .sch-projection__leaving,
    .sch-timeline__more, .sch-hero__year select {
        display: none !important;
    }
    .sch-hero { background: #fff !important; border: 1px solid #ddd !important; padding: 10px 14px; }
    .sch-grid__head > * { position: static; }
    .sch-totals > * { position: static; }
    .sch-note { break-inside: avoid; }
    .sch-chip { background: #fff !important; border-color: #999 !important; color: #111 !important; }
    .sch-chip__avatar { display: none !important; }
}
