:root {
    --school-list-ink: #111827;
    --school-list-muted: #6b7280;
    --school-list-gold: #e8ba00;
    --school-list-yellow: #ffcb45;
    --school-list-line: rgba(107, 114, 128, .22);
    --school-list-chip: #f2f2f2;
    --school-list-green: #008000;
    --school-list-shadow: 1px 4px 10px rgba(0, 0, 0, .10);
}

*, *::before, *::after { box-sizing: border-box; }
body.school-list-sheet-open { overflow: hidden; }
[data-school-list] [hidden] { display: none !important; }
[data-school-list] button,
[data-school-list] select,
[data-school-list] a { font-family: inherit; }
[data-school-list] button,
[data-school-list] a { -webkit-tap-highlight-color: transparent; }

.school-list {
    width: 100%;
    min-height: 100vh;
    margin: 0 auto;
    overflow-x: clip;
    background: #fff;
    color: var(--school-list-ink);
    font-family: "Rubik", sans-serif;
}

.school-list-ranking {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin: 0 0 16px;
    padding: 14px 16px;
    border: 1px solid rgba(232, 186, 0, .35);
    border-radius: 14px;
    background: linear-gradient(180deg, #fffdf5 0%, #fff8e0 100%);
    color: var(--school-list-ink);
}
.school-list-ranking > i { margin-top: 2px; color: var(--school-list-gold); font-size: 18px; }
.school-list-ranking strong { display: block; margin-bottom: 4px; font-size: 13px; font-weight: 500; }
.school-list-ranking p { margin: 0; color: var(--school-list-muted); font-size: 12px; font-weight: 300; line-height: 1.6; }

.school-list-hero {
    position: relative;
    height: 204px;
    overflow: hidden;
    background: linear-gradient(180deg, #fffdf7 0%, #fff8db 100%);
}
.school-list-hero::after {
    content: "";
    position: absolute;
    z-index: 0;
    width: 408px;
    height: 279px;
    inset-inline-start: 250px;
    top: -75px;
    border-radius: 50%;
    background: rgba(255, 249, 220, .75);
}

.school-list-hero__copy {
    position: relative;
    z-index: 1;
    width: min(342px, calc(100% - 48px));
    margin: 35px auto 0;
    text-align: center;
}
.school-list-hero__copy h1 {
    margin: 0 0 5px;
    font-size: 24px;
    font-weight: 400;
    line-height: 28px;
}
.school-list-hero__copy p {
    margin: 0;
    color: var(--school-list-muted);
    font-size: 16px;
    font-weight: 300;
    line-height: 19px;
}

.school-list-content { min-height: calc(100vh - 204px); padding: 12px 16px 90px; background: #fff; }
.school-list-toolbar {
    width: 100%;
    margin: 0 auto 12px;
    border-bottom: 2px solid rgba(107, 114, 128, .12);
}
.school-list-toolbar__row {
    display: flex;
    direction: ltr;
    align-items: center;
    justify-content: space-between;
    height: 30px;
    margin-bottom: 12px;
}
.school-list-count { color: var(--school-list-muted); direction: rtl; font-size: 12px; font-weight: 300; }
.school-list-filter-trigger {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-width: 90px;
    height: 30px;
    border: 1px solid rgba(107, 114, 128, .12);
    border-radius: 10px;
    background: #fff;
    box-shadow: 1px 4px 7px rgba(0, 0, 0, .10);
    color: var(--school-list-ink);
    cursor: pointer;
    direction: rtl;
    font-size: 12px;
}
.school-list-filter-trigger i { color: var(--school-list-gold); }

.school-list-active { padding: 0 0 12px; }
.school-list-active__heading { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.school-list-active__heading strong { font-size: 12px; font-weight: 400; }
.school-list-active__heading button,
.school-list-active__heading a {
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--school-list-ink);
    cursor: pointer;
    font-size: 11px;
    text-decoration: none;
}
.school-list-active__chips { display: flex; flex-wrap: wrap; gap: 10px; }
.school-list-active__chip {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    height: 30px;
    padding: 0 12px;
    border: 0;
    border-radius: 10px;
    background: var(--school-list-chip);
    color: var(--school-list-muted);
    cursor: pointer;
    font-size: 12px;
    text-decoration: none;
}
.school-list-active__chip span { font-size: 18px; font-weight: 300; line-height: 1; }
.school-list-filter-note { width: 100%; margin: -4px auto 12px; color: var(--school-list-muted); font-size: 10px; }

.school-list-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
    width: 100%;
    margin: 0 auto;
}

.school-list-empty { width: min(358px, calc(100% - 32px)); margin: 40px auto; color: var(--school-list-muted); text-align: center; }
.school-list-empty i { color: var(--school-list-gold); font-size: 34px; }
/* Neutralize the global unscoped `nav {}` rule (landing.css) that otherwise
   makes this <nav> position:absolute/height:82px/padding:10px 80px and float
   over the grid on large screens. */
.school-list-pagination { position: static; inset: auto; width: auto; height: auto; min-height: 0; padding: 0; z-index: auto; display: flex; flex-wrap: wrap; direction: ltr; align-items: center; justify-content: center; gap: 8px; margin: 30px auto 0; color: var(--school-list-muted); font-size: 13px; background-color: #ffffff08;}
.school-list-pagination__pages { display: flex; align-items: center; gap: 6px; }
.school-list-pagination__nav,
.school-list-pagination__page { display: grid; width: 36px; height: 36px; place-items: center; border: 1px solid var(--school-list-line); border-radius: 10px; background: #fff; color: var(--school-list-ink); text-decoration: none; }
.school-list-pagination__page.is-current { border-color: var(--school-list-gold); background: var(--school-list-yellow); color: #111827; font-weight: 500; }
.school-list-pagination__nav.is-disabled { opacity: .35; }
.school-list-pagination__ellipsis { display: grid; width: 22px; height: 36px; place-items: center; }

.school-list-backdrop {
    position: fixed;
    z-index: 70;
    inset: 0;
    background: rgba(17, 24, 39, .56);
}
.school-list-sheet {
    position: fixed;
    z-index: 80;
    inset-inline: 0;
    bottom: 0;
    width: min(390px, 100%);
    min-height: 343px;
    margin: 0 auto;
    padding: 32px 20px 14px;
    border-radius: 20px 20px 0 0;
    background: #fff;
    box-shadow: 0 -10px 30px rgba(0, 0, 0, .12);
    transition: transform .24s cubic-bezier(.22, 1, .36, 1);
    will-change: transform;
}
.school-list-sheet.is-dragging { transition: none; }
.school-list-sheet__handle {
    position: absolute;
    z-index: 2;
    top: 0;
    left: 50%;
    width: 88px;
    height: 24px;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: grab;
    touch-action: none;
    transform: translateX(-50%);
}
.school-list-sheet__handle::after { content: ""; position: absolute; top: 8px; left: 16px; width: 56px; height: 4px; border-radius: 6px; background: rgba(107, 114, 128, .42); }
.school-list-sheet.is-dragging .school-list-sheet__handle { cursor: grabbing; }
.school-list-sheet__close {
    position: absolute;
    top: 14px;
    left: 12px;
    display: grid;
    width: 30px;
    height: 30px;
    padding: 0;
    place-items: center;
    border: 0;
    border-radius: 50%;
    background: #fff;
    box-shadow: var(--school-list-shadow);
    color: var(--school-list-ink);
    cursor: pointer;
}
.school-list-sheet h2 { margin: 0 0 17px; text-align: center; font-size: 14px; font-weight: 400; }
.school-list-sheet form { display: grid; gap: 8px; }
.school-list-sheet label { display: grid; gap: 8px; }
.school-list-sheet label > span { font-size: 14px; }
.school-list-sheet select {
    width: 100%;
    height: 45px;
    padding: 0 15px;
    border: 1px solid rgba(107, 114, 128, .30);
    border-radius: 15px;
    background: #fcfbfb;
    color: var(--school-list-muted);
    font-size: 14px;
}
.school-list-sheet__apply,
.school-list-sheet__reset {
    display: grid;
    place-items: center;
    width: 100%;
    height: 41px;
    border-radius: 12px;
    cursor: pointer;
    color: var(--school-list-ink);
    font-size: 14px;
    text-decoration: none;
}
.school-list-sheet__apply { margin-top: 2px; border: 0; background: linear-gradient(180deg, #fff 0%, var(--school-list-gold) 100%); box-shadow: var(--school-list-shadow); }
.school-list-sheet__reset { border: 1px solid rgba(232, 186, 0, .50); background: #fff; }

[data-school-list] :focus-visible { outline: 3px solid rgba(232, 186, 0, .45); outline-offset: 2px; }

@media (min-width: 768px) {
    .school-list-hero__copy { width: min(920px, calc(100% - 64px)); }
    .school-list-hero__copy p { max-width: 560px; margin-inline: auto; }
    .school-list-content { padding-inline: 24px; }
    .school-list-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
    .school-list-sheet { width: min(620px, calc(100% - 40px)); min-height: 343px; border-radius: 24px 24px 0 0; }
}

@media (min-width: 1024px) {
    .school-list { background: #f5f6f8; }
    .school-list-hero { height: 278px; background: linear-gradient(135deg, #fffdf7 0%, #fff8dc 66%, #fff4c4 100%); }
    .school-list-hero__copy { width: min(760px, calc(100% - 64px)); margin-top: 90px; }
    .school-list-hero__copy h1 { margin-bottom: 12px; font-size: 36px; line-height: 43px; }
    .school-list-hero__copy p { max-width: 720px; font-size: 18px; line-height: 27px; }
    .school-list-content { min-height: calc(100vh - 278px); padding: 32px 24px 100px; background: #f5f6f8; }
    .school-list-toolbar { width: 100%; margin-bottom: 24px; padding: 16px 20px 12px; border: 1px solid rgba(107, 114, 128, .12); border-radius: 18px; background: #fff; box-shadow: 0 8px 26px rgba(17, 24, 39, .06); }
    .school-list-toolbar__row { height: 36px; margin-bottom: 0; }
    .school-list-filter-trigger { min-width: 112px; height: 36px; font-size: 14px; }
    .school-list-count { font-size: 14px; }
    .school-list-active { padding-top: 14px; }
    .school-list-filter-note { width: 100%; margin-top: -12px; font-size: 12px; }
    .school-list-grid { gap: 20px; }
    .school-list-sheet { width: min(720px, calc(100% - 48px)); padding-inline: 28px; }
}

@media (min-width: 1200px) {
    .school-list-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
