/* ========== Course schedule ========== */
.sch {
    --sch-brand: #006699;
    --sch-brand-dark: #00527a;
    --sch-navy: #0e3a52;
    --sch-ink: #0e2233;
    --sch-text: #1d2a3a;
    --sch-muted: #4a5868;
    --sch-subtle: #5b6878;
    --sch-border: #dbe4ee;
    --sch-border-strong: #cfdae6;
    --sch-divider: #e6edf4;
    --sch-surface: #ffffff;
    --sch-surface-alt: #f6f9fc;
    --sch-tint: #e4f0f7;
    --sch-radius: 16px;
    display: flex;
    flex-direction: column;
    gap: 28px;
    margin: 24px 0 35px 0;
    color: var(--sch-text);
    font-size: 15px;
    line-height: 1.5;
}

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

.sch [hidden] { display: none !important; }

.visually-hidden {
    position: absolute !important;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

.sch a:focus-visible,
.sch button:focus-visible,
.sch-search input:focus-visible,
.sch-chip input:focus-visible + span,
.sch-pill input:focus-visible + span {
    outline: 2px solid var(--sch-brand);
    outline-offset: 2px;
}

/* Venue palette (the dot is never the only signal: the venue name is always shown) */
.venue--virtual   { --venue: #1f8a62; }
.venue--newcastle { --venue: #0b7fa3; }
.venue--durham    { --venue: #b3570a; }
.venue--leeds     { --venue: #6e5aa6; }
.venue--other     { --venue: #6b7280; }

.sch-dot {
    flex: none;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--venue, #6b7280);
}

.sch-venue {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--sch-muted);
}

.sch-tag {
    align-self: flex-start;
    padding: 4px 8px;
    font-size: 12px;
    font-weight: 600;
    color: var(--sch-brand-dark);
    background: var(--sch-tint);
    border-radius: 6px;
}

.sch-label {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--sch-subtle);
}

/* ---------- Header ---------- */
.sch-header {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    justify-content: space-between;
    align-items: flex-end;
}

.sch-header__intro {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 660px;
}

.sch-header__intro p {
    margin: 0;
    font-size: 16px;
    line-height: 1.6;
    color: var(--sch-muted);
}

.sch-header__intro .sch-header__note {
    font-size: 13px;
    color: var(--sch-subtle);
}

.sch-title {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin: 0;
    font-weight: 700;
    color: var(--sch-ink);
}

.sch-title__eyebrow {
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--sch-brand);
}

.sch-title__range {
    font-size: 36px;
    line-height: 1.15;
}

.sch-help {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding: 18px 20px;
    background: var(--sch-surface);
    border: 1px solid var(--sch-border);
    border-radius: 14px;
}

.sch-help__lead {
    font-size: 15px;
    font-weight: 600;
    color: var(--sch-ink);
}

.sch-help__text {
    margin: 0;
    max-width: 280px;
    font-size: 14px;
    line-height: 1.5;
    color: var(--sch-muted);
}

.sch-help__action {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 0 18px;
    font-size: 14px;
    font-weight: 600;
    color: #ffffff;
    text-decoration: none;
    background: var(--sch-brand);
    border-radius: 10px;
}

.sch-help__action:hover {
    color: #ffffff;
    background: var(--sch-brand-dark);
}

.sch-note {
    padding: 16px 20px;
    color: var(--sch-ink);
    background: var(--sch-tint);
    border-radius: 14px;
}

.sch-note p { margin: 0; color: var(--sch-muted); }

.sch-note .sch-note__title {
    margin-bottom: 4px;
    font-size: 16px;
    font-weight: 600;
    color: var(--sch-ink);
}

/* ---------- Filter bar ---------- */
.sch-filters {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.sch-filters__top {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

.sch-search {
    position: relative;
    flex: 1 1 320px;
}

.sch-search svg {
    position: absolute;
    top: 50%;
    left: 16px;
    color: var(--sch-subtle);
    transform: translateY(-50%);
    pointer-events: none;
}

.sch-search input {
    width: 100%;
    height: 48px;
    padding: 0 16px 0 46px;
    font: inherit;
    font-size: 15px;
    color: var(--sch-text);
    background: var(--sch-surface-alt);
    border: 1px solid var(--sch-border-strong);
    border-radius: 12px;
}

.sch-filter-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 48px;
    padding: 0 16px;
    font: inherit;
    font-size: 14px;
    font-weight: 600;
    color: var(--sch-ink);
    background: var(--sch-surface);
    border: 1px solid var(--sch-border-strong);
    border-radius: 12px;
    cursor: pointer;
    transition: background-color 0.15s, border-color 0.15s, color 0.15s;
}

.sch-filter-toggle:hover { border-color: var(--sch-brand); }

.sch-filter-toggle[aria-expanded="true"] {
    color: var(--sch-brand-dark);
    background: var(--sch-tint);
    border-color: var(--sch-brand);
}

.sch-filter-toggle__badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    font-size: 12px;
    color: #ffffff;
    background: var(--sch-brand);
    border-radius: 999px;
}

.sch-view {
    display: inline-flex;
    gap: 4px;
    padding: 4px;
    background: #eef3f8;
    border-radius: 12px;
}

.sch-view__btn {
    min-height: 40px;
    padding: 0 18px;
    font: inherit;
    font-size: 14px;
    font-weight: 500;
    color: var(--sch-muted);
    background: transparent;
    border: 0;
    border-radius: 9px;
    cursor: pointer;
}

.sch-view__btn[aria-pressed="true"] {
    font-weight: 600;
    color: var(--sch-ink);
    background: var(--sch-surface);
    box-shadow: 0 1px 3px rgb(14 34 51 / 0.12);
}

/* Active filter chips */
.sch-active {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 12px;
    align-items: center;
}

.sch-active__label {
    font-size:0.7em;
    font-weight: 600;
    color: var(--sch-muted);
}

.sch-active__list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.sch-active__chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 25px;
    padding: 0 8px 0 12px;
    font: inherit;
    font-size: 0.7em;
    font-weight: 600;
    color: #00527a;
    background: #eef6fb;
    border: 1px solid #eef6fb;
    border-radius: 10px;
    cursor: pointer;
    transition: border-color 0.15s, background-color 0.15s;
}
.sch-active__chip:hover {
    background: #e1eff8;
    border-color: #006699;
}
.sch-active__chip svg { flex: none; }

.sch-reset {
    padding: 8px 0;
    font: inherit;
    font-size: 0.8em;
    color: var(--sch-brand-dark);
    background: none;
    border: 0;
    text-decoration: underline;
    cursor: pointer;
}

/* Filter panel (hidden until "Show filters") */
.sch-filters__panel {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--sch-divider);
}

.sch-filter-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 16px;
    align-items: center;
}

.sch-filter-row__label {
    flex: 0 0 96px;
    font-size: 13px;
    font-weight: 600;
    color: var(--sch-muted);
}

.sch-filter-row__options {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    min-width: 0;
}

.sch-chip,
.sch-pill { position: relative; }

.sch-chip input,
.sch-pill input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.sch-chip > span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 40px;
    padding: 0 14px;
    font-size: 14px;
    color: var(--sch-text);
    background: var(--sch-surface);
    border: 1px solid var(--sch-border-strong);
    border-radius: 999px;
    cursor: pointer;
    transition: background-color 0.15s, border-color 0.15s, color 0.15s;
}

.sch-chip > span:hover { border-color: var(--sch-brand); }

.sch-chip input:checked + span {
    color: #ffffff;
    background: var(--sch-brand);
    border-color: var(--sch-brand);
}

.sch-chip input:checked + span .sch-dot { box-shadow: 0 0 0 2px #ffffff; }

.sch-pill > span {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 64px;
    min-height: 52px;
    padding: 4px 10px;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.2;
    color: var(--sch-text);
    background: var(--sch-surface);
    border: 1px solid var(--sch-border-strong);
    border-radius: 12px;
    cursor: pointer;
    transition: background-color 0.15s, border-color 0.15s, color 0.15s;
}

.sch-pill > span:hover { border-color: var(--sch-brand); }

.sch-pill small {
    font-size: 11px;
    font-weight: 500;
    color: var(--sch-subtle);
}

.sch-pill input:checked + span {
    color: #ffffff;
    background: var(--sch-brand);
    border-color: var(--sch-brand);
}

.sch-pill input:checked + span small { color: #d5e8f3; }

.sch-pill input:disabled + span {
    color: #8a96a3;
    background: var(--sch-surface-alt);
    border-style: dashed;
    border-color: var(--sch-border-strong);
    cursor: default;
}

.sch-pill input:disabled + span small { color: #8a96a3; }

.sch-status {
    margin: 0;
    padding-top: 10px;
    color: var(--sch-muted);
    text-align:right;
}

/* ---------- By course ---------- */
.sch-courses {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.sch-card {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    padding: 24px;
    background: var(--sch-surface);
    border: 1px solid var(--sch-border);
    border-radius: var(--sch-radius);
}

.sch-card__info {
    flex: 1 1 280px;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
}

.sch-card__title {
    margin: 0;
    font-size: 19px;
    font-weight: 600;
    line-height: 1.35;
}

.sch-card__title a {
    color: var(--sch-ink);
    text-decoration: none;
}

.sch-card__title a:hover {
    color: var(--sch-brand-dark);
    text-decoration: underline;
}

.sch-card__meta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--sch-muted);
}

.sch-card__private {
    margin: 0;
    font-size: 14px;
    color: var(--sch-muted);
}

.sch-card__dates {
    flex: 2 1 520px;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.sch-tiles {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.sch-tiles > li {
    display: flex;
    flex: 1 1 140px;
    min-width: 140px;
    max-width: 180px;
}

.sch-tile {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 14px 16px;
    color: var(--sch-text);
    text-decoration: none;
    background: var(--sch-surface);
    border: 1px solid var(--sch-border-strong);
    border-radius: 12px;
    transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s, opacity 0.15s;
}

.sch-tile:hover {
    color: var(--sch-text);
    border-color: var(--sch-brand);
    box-shadow: 0 6px 18px rgb(0 61 92 / 0.12);
    transform: translateY(-2px);
}

.sch-tile__month {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--sch-subtle);
}

.sch-tile__day {
    font-size: 20px;
    font-weight: 600;
    line-height: 1.1;
    color: var(--sch-ink);
}

.sch-tile__until {
    margin-top: -2px;
    font-size: 13px;
    font-weight: 500;
    color: var(--sch-muted);
}

.sch-tile__foot {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: auto;
    padding-top: 4px;
    font-weight: 600;
    color: var(--sch-brand-dark);
}

.sch-tile__price { font-size: 16px; }

.sch-tile__cta {
    margin-left: auto;
    font-size: 13px;
}

.sch-tile.is-dimmed { opacity: 0.35; }

/* ---------- By month ---------- */
.sch-month-view {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.sch-month {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.sch-month__title {
    display: flex;
    align-items: baseline;
    gap: 12px;
    margin: 0;
    font-size: 22px;
    font-weight: 600;
    color: var(--sch-ink);
}

.sch-month__title span {
    font-size: 14px;
    font-weight: 500;
    color: var(--sch-subtle);
}

.sch-table-wrap {
    overflow-x: auto;
    background: var(--sch-surface);
    border: 1px solid var(--sch-border);
    border-radius: 14px;
}

.sch-table {
    width: 100%;
    min-width: 640px;
    border-collapse: collapse;
}

.sch-table th {
    padding: 12px 20px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    text-align: left;
    color: var(--sch-subtle);
    background: var(--sch-surface-alt);
    border-bottom: 1px solid var(--sch-border);
}

.sch-th-note {
    font-weight: 500;
    letter-spacing: 0;
    text-transform: none;
}

.sch-table th:nth-child(1) { width: 96px; }
.sch-table th:nth-child(3) { width: 160px; }
.sch-table th:nth-child(4) { width: 100px; }
.sch-table th:nth-child(5) { width: 110px; }

.sch-table td {
    padding: 14px 20px;
    vertical-align: middle;
    border-bottom: 1px solid var(--sch-divider);
}

.sch-table tbody tr:last-child td { border-bottom: 0; }
.sch-table tbody tr:hover td { background: #f8fbfd; }

.sch-cal {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    line-height: 1.05;
    color: var(--sch-brand-dark);
    background: var(--sch-tint);
    border-radius: 10px;
}

.sch-cal__day {
    font-size: 20px;
    font-weight: 700;
}

.sch-cal__dow {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
}

.sch-table__course {
    font-weight: 600;
    color: var(--sch-ink);
    text-decoration: none;
}

.sch-table__course:hover {
    color: var(--sch-brand-dark);
    text-decoration: underline;
}

.sch-table__meta {
    display: block;
    margin-top: 2px;
    font-size: 13px;
    color: var(--sch-subtle);
}

.sch-table__price {
    font-weight: 600;
    color: var(--sch-brand-dark);
    white-space: nowrap;
}

.sch-table__action { text-align: right; }

.sch-book {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 0 18px;
    font-size: 14px;
    font-weight: 600;
    color: #ffffff;
    text-decoration: none;
    white-space: nowrap;
    background: var(--sch-brand);
    border-radius: 10px;
}

.sch-book:hover {
    color: #ffffff;
    background: var(--sch-brand-dark);
}
/* ---------- Compact ---------- */
.sch-compact-view {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.sch-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 18px;
    font-size: 13px;
    color: var(--sch-muted);
}

.sch-legend > span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

/* Scrolls in both directions so the header row and course column can stay pinned */
.sch-compact-wrap {
    max-height: 75vh;
    overflow: auto;
    background: var(--sch-surface);
    border: 1px solid var(--sch-border);
    border-radius: 14px;
}

.sch-compact {
    width: 100%;
    font-size: 13px;
    border-collapse: separate;
    border-spacing: 0;
}

.sch-compact thead th {
    position: sticky;
    top: 0;
    z-index: 2;
    padding: 10px 8px;
    font-size: 12px;
    font-weight: 600;
    text-align: center;
    white-space: nowrap;
    color: var(--sch-subtle);
    background: var(--sch-surface-alt);
    border-bottom: 1px solid var(--sch-border);
}

.sch-compact thead th small {
    display: block;
    font-size: 11px;
    font-weight: 500;
}

.sch-compact thead .sch-compact__corner {
    left: 0;
    z-index: 3;
    text-align: left;
    padding-left: 14px;
    border-right: 1px solid var(--sch-border);
}

.sch-compact tbody th {
    position: sticky;
    left: 0;
    z-index: 1;
    min-width: 220px;
    max-width: 280px;
    padding: 10px 14px;
    font-weight: 600;
    line-height: 1.35;
    text-align: left;
    vertical-align: top;
    background: var(--sch-surface);
    border-right: 1px solid var(--sch-border);
    border-bottom: 1px solid var(--sch-divider);
}

.sch-compact tbody th a {
    color: var(--sch-ink);
    text-decoration: none;
}

.sch-compact tbody th a:hover {
    color: var(--sch-brand-dark);
    text-decoration: underline;
}

.sch-compact__meta {
    display: block;
    margin-top: 2px;
    font-size: 12px;
    font-weight: 400;
    color: var(--sch-subtle);
}

.sch-compact td {
    min-width: 80px;
    padding: 8px 6px;
    vertical-align: top;
    border-bottom: 1px solid var(--sch-divider);
    border-left: 1px solid var(--sch-divider);
}

.sch-compact tbody tr:last-child th,
.sch-compact tbody tr:last-child td { border-bottom: 0; }

.sch-compact tbody tr:hover th,
.sch-compact tbody tr:hover td { background: #f8fbfd; }

.sch-compact td ul {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.sch-mini {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    min-height: 28px;
    padding: 0 8px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
    color: var(--sch-ink);
    text-decoration: none;
    background: var(--sch-surface);
    border: 1px solid var(--sch-border-strong);
    border-radius: 8px;
    transition: border-color 0.15s, background-color 0.15s, opacity 0.15s;
}

.sch-mini:hover {
    color: var(--sch-brand-dark);
    background: var(--sch-tint);
    border-color: var(--sch-brand);
}

.sch-mini .sch-dot {
    width: 8px;
    height: 8px;
}

.sch-mini.is-dimmed { opacity: 0.3; }

.sch-compact-wrap:focus-visible {
    outline: 2px solid var(--sch-brand);
    outline-offset: 2px;
}
/* ---------- Private-only courses ---------- */
.sch-private {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding-top: 12px;
}

.sch-private h2 {
    margin: 0;
    font-size: 24px;
    font-weight: 600;
    color: var(--sch-ink);
}

.sch-private > p {
    margin: -8px 0 0;
    max-width: 680px;
    line-height: 1.6;
    color: var(--sch-muted);
}

.sch-private__list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 16px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.sch-private__item {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    padding: 20px;
    background: var(--sch-surface);
    border: 1px solid var(--sch-border);
    border-radius: 14px;
}

.sch-private__body {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.sch-private__title {
    font-size: 16px;
    font-weight: 600;
    line-height: 1.4;
    color: var(--sch-ink);
    text-decoration: none;
}

.sch-private__title:hover {
    color: var(--sch-brand-dark);
    text-decoration: underline;
}

.sch-private__price {
    font-size: 13px;
    color: var(--sch-muted);
}

/* Classes passed to the QuoteButton partial via SpecificClassStyles */
.sch-button {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 0 18px;
    font: inherit;
    font-size: 14px;
    font-weight: 600;
    color: #ffffff;
    text-decoration: none;
    background: var(--sch-brand);
    border: 0;
    border-radius: 10px;
    cursor: pointer;
}

.sch-button:hover {
    color: #ffffff;
    background: var(--sch-brand-dark);
}

.sch-link-button {
    padding: 0;
    font: inherit;
    font-size: 14px;
    color: var(--sch-brand-dark);
    background: none;
    border: 0;
    text-decoration: none;
    cursor: pointer;
}

/* ---------- Empty state ---------- */
.sch-empty {
    padding: 28px;
    text-align: center;
    background: var(--sch-surface-alt);
    border: 1px dashed var(--sch-border-strong);
    border-radius: var(--sch-radius);
}

.sch-empty p {
    margin: 4px 0;
    color: var(--sch-muted);
}

.sch-empty .sch-empty__title {
    font-size: 17px;
    font-weight: 600;
    color: var(--sch-ink);
}

/* ---------- Help band ---------- */
.sch-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px 32px;
    align-items: center;
    justify-content: space-between;
    padding: 28px 32px;
    color: #ffffff;
    background: var(--sch-navy);
    border-radius: var(--sch-radius);
}

.sch-cta__title {
    display: block;
    font-size: 20px;
    font-weight: 600;
}

.sch-cta p {
    margin: 6px 0 0;
    max-width: 640px;
    line-height: 1.6;
    color: #d3e3ee;
}

.sch-cta__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.sch-cta__primary,
.sch-cta__secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 22px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 12px;
}

.sch-cta__primary {
    color: var(--sch-navy);
    background: #ffffff;
}

.sch-cta__primary:hover {
    color: var(--sch-navy);
    background: #e8f1f6;
}

.sch-cta__secondary {
    color: #ffffff;
    border: 1px solid #8fb4c9;
}

.sch-cta__secondary:hover {
    color: #ffffff;
    background: rgb(255 255 255 / 0.08);
}

/* ---------- Phones ---------- */
@media (max-width: 640px) {
    .sch { gap: 20px; }

    .sch-title__range { font-size: 26px; }
    .sch-help { width: 100%; }
    .sch-help__text { max-width: none; }

    .sch-filters {
        gap: 14px;
        padding: 16px;
    }

    .sch-search { flex-basis: 100%; }
    .sch-filter-toggle { flex: 1; }
    .sch-view { flex: 1; }
    .sch-view__btn {
        flex: 1;
        padding: 0 10px;
    }

    .sch-filter-row__label { flex-basis: 100%; }

    .sch-filter-row__options--scroll {
        flex-wrap: nowrap;
        overflow-x: auto;
        margin-right: -16px;
        padding: 2px 16px 4px 0;
    }

    .sch-pill { flex: none; }

    .sch-card {
        gap: 14px;
        padding: 18px 16px;
    }

    .sch-card__title { font-size: 17px; }

    .sch-tiles {
        flex-wrap: nowrap;
        overflow-x: auto;
        margin-right: -16px;
        padding: 2px 16px 4px 0;
        scroll-snap-type: x mandatory;
    }

    .sch-tiles > li {
        flex: 0 0 136px;
        min-width: 0;
        max-width: none;
        scroll-snap-align: start;
    }

    .sch-tile:hover { transform: none; }

    .sch-month__title { font-size: 19px; }

    .sch-cta { padding: 22px 20px; }

    .sch-cta__actions,
    .sch-cta__primary,
    .sch-cta__secondary { width: 100%; }
    .sch-compact tbody th {
        min-width: 150px;
        max-width: 180px;
        font-size: 12px;
    }

    .sch-compact td { min-width: 68px; }
}

@media (prefers-reduced-motion: reduce) {
    .sch * { transition: none !important; }
    .sch-tile:hover { transform: none; }
}

/* ---------- Grey band behind the filters and results ---------- */
.sch-body {
    --sch-band: #f1f4f8;

    display: flex;
    flex-direction: column;
    gap: 24px;
    padding: 32px 0 40px;
    background: var(--sch-band);
    /* Extend the background to the full window width without a horizontal scrollbar */
    box-shadow: 0 0 0 100vmax var(--sch-band);
    clip-path: inset(0 -100vmax);
}

.sch-body .sch-search input,
.sch-body .sch-view { background: var(--sch-surface); }

.sch-body .sch-view { border: 1px solid var(--sch-border); }

.sch-body .sch-view__btn[aria-pressed="true"] {
    color: #ffffff;
    background: var(--sch-brand);
    box-shadow: none;
}

.sch-body .sch-empty { background: var(--sch-surface); }