/* Epal /old — catalogue pages (University Finder, University profile, Courses & Fees, compare tray).
   Design system v3 "Orbit": tokens, type and motion come from epal.css / motion.css.
   Page prefix: ct- (new layout). ep-* names kept here are JS hooks or JS-rendered markup. */

/* =====================================================================
   1. HERO — dark console (finder + courses + profile share the shell)
   ===================================================================== */
.ct-hero {
    position: relative; isolation: isolate; overflow: hidden; overflow: clip;
    padding: calc(var(--header-h) + clamp(12px, 3vh, 36px)) 0 clamp(40px, 7vh, 80px);
}
.ct-hero__bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.ct-hero__bg img, .ct-hero__bg video { width: 100%; height: 100%; object-fit: cover; opacity: .32; filter: saturate(.85) contrast(1.05); }
.ct-hero__bg::after {
    content: ""; position: absolute; inset: 0;
    background:
        radial-gradient(120% 90% at 85% 10%, transparent 0 30%, var(--ink) 75%),
        linear-gradient(180deg, rgba(5, 12, 34, .55), var(--ink) 92%);
}
.ct-hero__grid { position: relative; display: grid; gap: clamp(24px, 4vw, 56px); align-items: center; }
@media (min-width: 992px) { .ct-hero__grid { grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr); } }
.ct-hero__copy { min-width: 0; }
.ct-hero .ep-crumbs { margin-bottom: 4px; }
.ct-hero__title { margin: 12px 0 14px; max-width: 15ch; }
.ct-hero__lead { max-width: 54ch; color: var(--muted-on-ink); margin: 0; }

/* Search console */
.ct-search {
    position: relative; display: flex; align-items: center; gap: 8px; margin-top: clamp(18px, 3vh, 28px);
    max-width: 620px; padding: 6px 6px 6px 50px; border-radius: var(--radius-pill);
    background: rgba(255, 255, 255, .07); box-shadow: inset 0 0 0 1px var(--line-on-ink), 0 20px 50px -24px rgba(0, 0, 0, .8);
    -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
    transition: box-shadow .3s var(--ease-out), background .3s;
}
.ct-search:focus-within { background: rgba(255, 255, 255, .1); box-shadow: inset 0 0 0 1px rgba(34, 211, 238, .7), 0 0 0 6px rgba(34, 211, 238, .12), var(--glow-cyan, 0 0 40px -10px rgba(34, 211, 238, .6)); }
.ct-search__icon { position: absolute; left: 18px; top: 50%; transform: translateY(-50%); display: inline-flex; color: var(--cyan); }
.ct-search__icon svg { width: 20px; height: 20px; }
.ct-search input {
    flex: 1; min-width: 0; height: 50px; border: 0; background: transparent; color: #fff;
    font: 500 16px/1 var(--sans); outline: 0;
}
.ct-search input::placeholder { color: var(--muted-on-ink); opacity: 1; }
.ct-search input::-webkit-search-cancel-button { filter: invert(1); }
.ct-search .ep-btn { flex: none; min-height: 50px; }
@media (max-width: 520px) {
    .ct-search { padding-left: 44px; }
    .ct-search__icon { left: 15px; }
    .ct-search .ep-btn { padding-inline: 14px; }
    .ct-search .ep-btn span { display: none; }
}

/* Live stats */
.ct-stats { display: flex; flex-wrap: wrap; gap: 10px clamp(20px, 3vw, 40px); margin-top: clamp(18px, 3vh, 30px); }
.ct-stats .nx-stat { position: relative; padding-left: 14px; }
.ct-stats .nx-stat::before { content: ""; position: absolute; left: 0; top: 6px; bottom: 6px; width: 2px; border-radius: 2px; background: var(--grad-brand); box-shadow: 0 0 12px rgba(34, 211, 238, .7); }

/* Country radar (finder) */
.ct-radar { position: relative; padding: clamp(14px, 2vw, 20px); border-radius: var(--radius-lg); min-width: 0; }
.ct-radar__head { margin: 0 0 10px; }
.ct-radar__list { display: grid; gap: 6px; }
.ct-radar__foot { margin: 12px 4px 0; font-size: var(--fs-xs); color: var(--muted-on-ink); letter-spacing: .04em; }
.ct-ctile {
    position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr) auto 28px; align-items: center; gap: 12px;
    min-height: 56px; padding: 8px 12px; border-radius: var(--radius-sm); color: #fff; text-decoration: none;
    background: rgba(255, 255, 255, .03); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06);
    transition: background .25s, box-shadow .25s, transform .35s var(--ease-out);
}
.ct-ctile::before {
    content: ""; position: absolute; left: 0; top: 10px; bottom: 10px; width: 3px; border-radius: 3px;
    background: var(--grad-brand); transform: scaleY(0); transition: transform .35s var(--ease-out);
}
.ct-ctile:hover, .ct-ctile:focus-visible { background: rgba(255, 255, 255, .08); box-shadow: inset 0 0 0 1px rgba(142, 197, 255, .35); transform: translateX(4px); }
.ct-ctile:hover::before, .ct-ctile.is-active::before { transform: scaleY(1); }
.ct-ctile.is-active { background: rgba(34, 211, 238, .12); box-shadow: inset 0 0 0 1px rgba(34, 211, 238, .65), 0 0 30px -12px rgba(34, 211, 238, .9); }
.ct-ctile__flag { width: 28px; height: auto; border-radius: 4px; box-shadow: 0 0 0 1px rgba(255, 255, 255, .2); }
.ct-ctile__name { display: grid; font: 600 15px/1.2 var(--display); min-width: 0; }
.ct-ctile__name small { font: 500 12px/1.4 var(--mono); color: var(--muted-on-ink); text-transform: uppercase; letter-spacing: .06em; }
.ct-ctile__fee { display: grid; justify-items: end; font: 600 13px/1.25 var(--mono); color: var(--sky); text-align: right; white-space: nowrap; }
.ct-ctile__fee small { font-size: 11px; color: var(--muted-on-ink); text-transform: uppercase; letter-spacing: .08em; }
.ct-ctile__fee.is-tbc { color: var(--muted-on-ink); font-size: 12px; }
.ct-ctile__go { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; color: var(--cyan); transition: transform .3s var(--ease-out); }
.ct-ctile__go svg { width: 14px; height: 14px; }
.ct-ctile:hover .ct-ctile__go { transform: translateX(3px); }
@media (max-width: 991px) {
    .ct-radar { padding: 12px 0 0; background: none !important; box-shadow: none !important; -webkit-backdrop-filter: none; backdrop-filter: none; }
    .ct-radar::before, .ct-radar::after { display: none; }
    .ct-radar__head { margin-left: 0; }
    .ct-radar__list { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin-inline: calc(var(--gutter) * -1); padding: 2px var(--gutter) 6px; }
    .ct-radar__list::-webkit-scrollbar { display: none; }
    .ct-ctile { flex: 0 0 auto; width: 210px; grid-template-columns: auto minmax(0, 1fr); grid-template-rows: auto auto; scroll-snap-align: start; background: rgba(255, 255, 255, .06); }
    .ct-ctile__fee { grid-column: 1 / -1; justify-items: start; text-align: left; }
    .ct-ctile__go { display: none; }
    .ct-ctile:hover { transform: none; }
}

/* =====================================================================
   2. FINDER SHELL — glass filter rail (desktop) / bottom sheet (mobile)
   ===================================================================== */
.ct-finder { position: relative; isolation: isolate; background: var(--paper); }
.ct-finder__grid-bg { opacity: .5; -webkit-mask-image: linear-gradient(180deg, #000, transparent 420px); mask-image: linear-gradient(180deg, #000, transparent 420px); }
.ep-browse { position: relative; display: grid; gap: clamp(20px, 2.5vw, 32px); align-items: start; }
@media (min-width: 1100px) { .ep-browse { grid-template-columns: 296px minmax(0, 1fr); } }
.ep-results { min-width: 0; }

.ep-filters {
    background: rgba(255, 255, 255, .78); -webkit-backdrop-filter: blur(18px) saturate(1.4); backdrop-filter: blur(18px) saturate(1.4);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .8), 0 0 0 1px var(--line), var(--shadow-1);
    border-radius: var(--radius-lg); outline: 0;
}
.ep-filters__head { display: flex; align-items: center; gap: 10px; padding: 16px 18px 10px; position: relative; }
.ep-filters__title { margin: 0; flex: 1; font: 500 12px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--brand-deep); display: flex; align-items: center; gap: 8px; }
.ep-filters__title::before { content: ""; width: 8px; height: 8px; border-radius: 2px; background: var(--grad-brand); box-shadow: 0 0 10px rgba(34, 211, 238, .8); }
.ep-filters__reset { min-height: 44px; padding: 0 6px; font: 600 13px/1 var(--sans); color: var(--brand-deep); background: none; border: 0; cursor: pointer; }
.ep-filters__reset:hover { text-decoration: underline; text-underline-offset: 3px; }
.ep-filters__close { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--paper-2); color: var(--ink); cursor: pointer; }
.ep-filters__close svg { width: 18px; height: 18px; }
.ep-filters__grab { display: none; }
.ep-filters__body { padding: 4px 18px 18px; display: grid; gap: 18px; }
.ep-filters__foot { display: none; }

.ep-fgroup { border: 0; margin: 0; padding: 0; min-width: 0; display: grid; gap: 8px; }
.ep-fgroup[hidden] { display: none; }
.ep-fgroup > .ep-fgroup + .ep-fgroup { margin-top: 10px; }
.ep-fgroup--2 { grid-template-columns: 1fr 1fr; gap: 10px; }
.ep-fgroup--2 > div { display: grid; gap: 8px; min-width: 0; }
.ep-flabel { display: block; padding: 0; font: 500 12px/1.2 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.ep-flabel-row { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.ep-range-out { font: 600 13px/1.2 var(--mono); color: var(--brand-deep); text-align: right; }
.ep-fhint { margin: 0; font-size: 13px; color: var(--muted); line-height: 1.45; }

/* Search inside the rail */
.ep-finput { position: relative; }
.ep-finput svg { position: absolute; left: 14px; top: 50%; width: 18px; height: 18px; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.ep-finput input {
    width: 100%; height: 46px; padding: 0 14px 0 42px; border: 0; border-radius: var(--radius-sm);
    background: #fff; box-shadow: inset 0 0 0 1px var(--line); font: 500 16px/1 var(--sans); color: var(--text);
    transition: box-shadow .2s;
}
.ep-finput input:focus { outline: 0; box-shadow: inset 0 0 0 2px var(--brand), 0 0 0 5px rgba(47, 107, 255, .14); }

/* Radio chips: country grid + level/region chipset */
.ep-seg, .ep-chipset { display: flex; flex-wrap: wrap; gap: 6px; }
.ep-seg--grid { display: grid; grid-template-columns: 1fr 1fr; }
.ep-seg label, .ep-chipset label { position: relative; display: flex; cursor: pointer; min-width: 0; }
.ep-seg input, .ep-chipset input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.ep-seg span, .ep-chipset span {
    display: inline-flex; align-items: center; gap: 7px; width: 100%; min-height: 40px; padding: 0 12px;
    border-radius: 10px; background: #fff; box-shadow: inset 0 0 0 1px var(--line);
    font: 600 14px/1.15 var(--sans); color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    transition: background .2s, color .2s, box-shadow .25s, transform .2s var(--ease-out);
}
.ep-chipset span { width: auto; border-radius: var(--radius-pill); }
.ep-seg span img, .ep-seg .ep-flag { width: 20px; height: auto; border-radius: 3px; flex: none; }
.ep-seg label:hover span, .ep-chipset label:hover span { box-shadow: inset 0 0 0 1px rgba(47, 107, 255, .5); }
.ep-seg input:checked + span, .ep-chipset input:checked + span {
    background: var(--ink); color: #fff; box-shadow: inset 0 0 0 1px rgba(34, 211, 238, .6), 0 6px 18px -8px rgba(47, 107, 255, .8);
}
.ep-seg input:focus-visible + span, .ep-chipset input:focus-visible + span { outline: 2px solid var(--brand); outline-offset: 2px; }
.ep-seg label:active span, .ep-chipset label:active span { transform: scale(.97); }

/* Selects */
.ep-select {
    width: 100%; height: 46px; padding: 0 38px 0 14px; border: 0; border-radius: var(--radius-sm);
    -webkit-appearance: none; appearance: none; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2 4l4 4 4-4' fill='none' stroke='%231b4fe0' stroke-width='1.6'/%3E%3C/svg%3E") no-repeat right 14px center / 11px;
    box-shadow: inset 0 0 0 1px var(--line); font: 500 16px/1 var(--sans); color: var(--text); cursor: pointer; text-overflow: ellipsis;
    transition: box-shadow .2s;
}
.ep-select:hover { box-shadow: inset 0 0 0 1px rgba(47, 107, 255, .45); }
.ep-select:focus { outline: 0; box-shadow: inset 0 0 0 2px var(--brand), 0 0 0 5px rgba(47, 107, 255, .14); }
.ep-select--sm { height: 44px; width: auto; max-width: 220px; font-size: 15px; font-weight: 600; border-radius: var(--radius-pill); padding-left: 16px; }
@media (max-width: 480px) { .ep-select--sm { font-size: 16px; } }

/* Budget slider (catalog.js writes --p) */
.ep-range { -webkit-appearance: none; appearance: none; width: 100%; height: 30px; background: transparent; cursor: pointer; --p: 100%; }
.ep-range:focus { outline: 0; }
.ep-range::-webkit-slider-runnable-track { height: 6px; border-radius: 6px; background: linear-gradient(90deg, var(--brand), var(--cyan) var(--p), rgba(10, 18, 40, .12) var(--p)); }
.ep-range::-moz-range-track { height: 6px; border-radius: 6px; background: rgba(10, 18, 40, .12); }
.ep-range::-moz-range-progress { height: 6px; border-radius: 6px; background: linear-gradient(90deg, var(--brand), var(--cyan)); }
.ep-range::-webkit-slider-thumb { -webkit-appearance: none; width: 24px; height: 24px; margin-top: -9px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 2px var(--brand), 0 0 0 7px rgba(47, 107, 255, .14), 0 4px 14px rgba(47, 107, 255, .5); transition: box-shadow .2s; }
.ep-range::-moz-range-thumb { width: 24px; height: 24px; border: 0; border-radius: 50%; background: #fff; box-shadow: 0 0 0 2px var(--brand), 0 0 0 7px rgba(47, 107, 255, .14), 0 4px 14px rgba(47, 107, 255, .5); }
.ep-range:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 2px var(--brand), 0 0 0 9px rgba(34, 211, 238, .35); }

/* Toggle switch (courses: English route) */
.ep-switch { position: relative; display: grid; grid-template-columns: 46px 1fr; gap: 12px; align-items: start; padding: 12px; border-radius: var(--radius-sm); background: #fff; box-shadow: inset 0 0 0 1px var(--line); cursor: pointer; }
.ep-switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.ep-switch__ui { position: relative; width: 46px; height: 26px; border-radius: 26px; background: rgba(10, 18, 40, .16); transition: background .25s; }
.ep-switch__ui::after { content: ""; position: absolute; left: 3px; top: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(5, 12, 34, .3); transition: transform .3s var(--ease-out); }
.ep-switch input:checked + .ep-switch__ui { background: var(--grad-brand); box-shadow: 0 0 14px -2px rgba(34, 211, 238, .8); }
.ep-switch input:checked + .ep-switch__ui::after { transform: translateX(20px); }
.ep-switch input:focus-visible + .ep-switch__ui { outline: 2px solid var(--brand); outline-offset: 2px; }
.ep-switch__text { display: grid; gap: 2px; }
.ep-switch__text b { font: 600 14px/1.3 var(--sans); }
.ep-switch__text small { font-size: 13px; color: var(--muted); line-height: 1.4; }

/* Desktop: the rail sticks below the header and scrolls on its own */
@media (min-width: 1100px) {
    .ep-filters {
        position: sticky; top: calc(var(--header-h) + 12px);
        max-height: calc(100vh - var(--header-h) - 24px); max-height: calc(100dvh - var(--header-h) - 24px);
        display: flex; flex-direction: column;
    }
    .ep-filters__body { overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: rgba(47, 107, 255, .3) transparent; }
    .ep-filters__close { display: none; }
    .ep-sheet-backdrop { display: none; }
    .ep-fbtn, .ep-fab { display: none !important; }
}
@media (min-width: 1100px) and (max-height: 760px) {
    .ep-filters__body { gap: 14px; }
    .ep-seg span, .ep-chipset span { min-height: 36px; font-size: 13px; }
    .ep-select, .ep-finput input { height: 42px; }
}

/* Mobile: bottom sheet */
@media (max-width: 1099px) {
    .ep-filters {
        position: fixed; z-index: 120; left: 0; right: 0; bottom: 0; max-height: 88vh; max-height: 88dvh;
        display: flex; flex-direction: column; border-radius: var(--radius-lg) var(--radius-lg) 0 0;
        background: var(--paper); -webkit-backdrop-filter: none; backdrop-filter: none;
        box-shadow: 0 -30px 80px -20px rgba(2, 6, 26, .55);
        transform: translateY(calc(100% + 24px)); visibility: hidden;
        transition: transform .5s var(--ease-out), visibility 0s .5s;
    }
    .ep-filters.is-open { transform: translateY(var(--drag, 0px)); visibility: visible; transition: transform .5s var(--ease-out), visibility 0s; }
    .ep-filters.is-dragging { transition: none; }
    .ep-filters__head { padding-top: 22px; touch-action: none; border-bottom: 1px solid var(--line); }
    .ep-filters__grab { display: block; position: absolute; top: 8px; left: 50%; width: 44px; height: 5px; margin-left: -22px; border-radius: 5px; background: rgba(10, 18, 40, .2); }
    .ep-filters__body { overflow-y: auto; overscroll-behavior: contain; padding-top: 16px; }
    .ep-filters__foot {
        display: grid; grid-template-columns: auto 1fr; gap: 10px; padding: 12px 18px calc(12px + env(safe-area-inset-bottom));
        border-top: 1px solid var(--line); background: rgba(255, 255, 255, .9);
    }
    .ep-filters__foot .ep-btn { justify-content: center; }
    .ep-sheet-backdrop {
        position: fixed; inset: 0; z-index: 110; background: rgba(2, 6, 26, .55); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
        opacity: 0; pointer-events: none; transition: opacity .4s;
    }
    .ep-sheet-backdrop.is-open { opacity: 1; pointer-events: auto; }
    html.ep-sheet-lock, html.ep-sheet-lock body { overflow: hidden; }
}

/* =====================================================================
   3. RESULTS BAR, ACTIVE CHIPS, FAB
   ===================================================================== */
.ep-rbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.ep-rbar__count { margin: 0; display: flex; align-items: baseline; gap: 8px; font: 500 13px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.ep-rbar__count b { font: 700 clamp(1.8rem, 3vw, 2.4rem)/1 var(--display); letter-spacing: -.02em; color: var(--ink); font-variant-numeric: tabular-nums; background: var(--grad-text-ink); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.ep-rbar__tools { display: flex; align-items: center; gap: 8px; }
.ep-sort { display: flex; }
.ep-fbtn {
    position: relative; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border: 0; border-radius: var(--radius-pill);
    background: var(--ink); color: #fff; font: 600 15px/1 var(--sans); cursor: pointer; box-shadow: 0 8px 20px -10px rgba(5, 12, 34, .7);
}
.ep-fbtn svg { width: 18px; height: 18px; color: var(--cyan); }
.ep-fbtn i, .ep-fab i { font-style: normal; display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px; background: var(--grad-brand); font: 700 12px/1 var(--mono); color: #fff; }
.ep-fbtn i[hidden] { display: none; }

.ep-active { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.ep-active:empty { display: none; }
.ep-achip {
    display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 10px 0 14px; border: 0; border-radius: var(--radius-pill);
    background: rgba(47, 107, 255, .1); color: var(--brand-deep); font: 600 13px/1 var(--sans); cursor: pointer;
    box-shadow: inset 0 0 0 1px rgba(47, 107, 255, .25); animation: ct-chip .35s var(--ease-out) both;
    transition: background .2s, color .2s;
}
.ep-achip svg { width: 14px; height: 14px; }
.ep-achip:hover { background: var(--brand); color: #fff; }
.ep-achip--clear { background: transparent; box-shadow: none; color: var(--muted); padding-right: 12px; text-decoration: underline; text-underline-offset: 3px; }
@keyframes ct-chip { from { opacity: 0; transform: scale(.85); } }

.ep-fab {
    position: fixed; z-index: 90; left: 50%; bottom: calc(var(--ep-float-stack) + env(safe-area-inset-bottom));
    display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 22px; border: 0; border-radius: var(--radius-pill);
    background: rgba(5, 12, 34, .88); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); color: #fff;
    box-shadow: inset 0 0 0 1px rgba(34, 211, 238, .45), 0 16px 40px -12px rgba(2, 6, 26, .8), 0 0 30px -10px rgba(34, 211, 238, .7);
    font: 600 15px/1 var(--sans); cursor: pointer;
    transform: translate(-50%, 140%); opacity: 0; pointer-events: none; transition: transform .45s var(--ease-out), opacity .3s;
}
.ep-fab svg { width: 18px; height: 18px; color: var(--cyan); }
.ep-fab b { font-family: var(--mono); }
.ep-fab.is-visible { transform: translate(-50%, 0); opacity: 1; pointer-events: auto; }

/* =====================================================================
   4. UNIVERSITY CARDS (finder)
   ===================================================================== */
.ep-ucs { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: clamp(12px, 1.6vw, 18px); }
.ep-ucs[hidden] { display: none; }
.ep-ucw { position: relative; min-width: 0; }
.ep-ucw[hidden] { display: none; }
.ep-ucw.is-enter { animation: ct-card-in .55s var(--ease-out) both; animation-delay: var(--enter-d, 0ms); }
@keyframes ct-card-in { from { opacity: 0; transform: translateY(18px) scale(.97); filter: blur(4px); } }
.ep-uc {
    position: relative; display: flex; flex-direction: column; height: 100%; border-radius: var(--radius);
    background: #fff; color: var(--text); text-decoration: none; overflow: hidden; isolation: isolate;
    box-shadow: 0 0 0 1px var(--line), var(--shadow-1);
    transition: transform .45s var(--ease-out), box-shadow .45s var(--ease-out);
}
/* gradient rim + cursor light, visible on hover */
.ep-uc::before {
    content: ""; position: absolute; inset: 0; z-index: 3; border-radius: inherit; padding: 1.5px; pointer-events: none;
    background: linear-gradient(135deg, var(--brand), var(--cyan), var(--violet));
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
    opacity: 0; transition: opacity .35s;
}
.ep-uc::after {
    content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none; border-radius: inherit;
    background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 0%), rgba(47, 107, 255, .1), transparent 70%);
    opacity: 0; transition: opacity .35s;
}
@media (hover: hover) {
    .ep-uc:hover { transform: translateY(-6px); box-shadow: 0 0 0 1px transparent, var(--shadow-2), 0 24px 50px -28px rgba(47, 107, 255, .55); }
    .ep-uc:hover::before, .ep-uc:hover::after { opacity: 1; }
    .ep-uc:hover .ep-uc__media img { transform: scale(1.07); }
    .ep-uc:hover .ep-uc__name { color: var(--brand-deep); }
}
.ep-uc:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; }
.ep-uc__media { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--ink-2); }
.ep-uc__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease-out); }
.ep-uc__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(5, 12, 34, .05) 30%, rgba(5, 12, 34, .55)); pointer-events: none; }
.ep-uc__media.is-fb::after { background: linear-gradient(135deg, color-mix(in srgb, var(--c, #1b4fe0) 55%, transparent), rgba(5, 12, 34, .55)); }
.ep-uc__media.is-t1 img { object-position: 15% 40%; filter: saturate(1.1) hue-rotate(-12deg); }
.ep-uc__media.is-t2 img { object-position: 85% 50%; filter: saturate(.9); }
.ep-uc__media.is-t3 img { object-position: 50% 80%; filter: hue-rotate(10deg); }
.ep-uc__logo { position: absolute; z-index: 1; left: 12px; bottom: 10px; }
.ep-uc__logo .ep-ulogo { height: 40px; max-width: 150px; padding: 4px 8px; border-radius: 10px; box-shadow: 0 6px 18px -6px rgba(2, 6, 26, .5); }
.ep-uc__logo .ep-ulogo img { max-height: 30px; }
.ep-uc__logo .ep-mono { width: 40px; height: 40px; font-size: 14px; border-radius: 10px; box-shadow: 0 6px 18px -6px rgba(2, 6, 26, .5); }
.ep-uc__tag {
    position: absolute; z-index: 1; left: 12px; top: 12px; padding: 5px 9px; border-radius: var(--radius-pill);
    background: rgba(5, 12, 34, .6); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); color: #fff;
    font: 500 11px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; box-shadow: inset 0 0 0 1px rgba(255, 181, 71, .6);
}
.ep-uc__tag::before { content: "★ "; color: var(--warm); }
.ep-uc__body { display: grid; gap: 6px; align-content: start; flex: 1; padding: 14px 16px 10px; }
.ep-uc__name { font: 600 1.05rem/1.25 var(--display); letter-spacing: -.01em; transition: color .25s; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ep-uc__loc { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); }
.ep-uc__loc .ep-flag { width: 18px; height: auto; border-radius: 2px; }
.ep-uc__region { justify-self: start; padding: 3px 8px; border-radius: var(--radius-pill); background: rgba(47, 107, 255, .08); color: var(--brand-deep); font: 500 11px/1.2 var(--mono); letter-spacing: .06em; text-transform: uppercase; }
.ep-uc__region.is-north { background: rgba(255, 181, 71, .16); color: #8a5300; }
.ep-uc__levels { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 2px; }
.ep-uc__levels span { padding: 3px 8px; border-radius: 6px; background: var(--paper); font: 500 11px/1.3 var(--mono); letter-spacing: .04em; text-transform: uppercase; color: var(--muted); transition: background .25s, color .25s; }
.ep-uc__levels span.is-hit { background: var(--ink); color: var(--cyan); }
.ep-uc__foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; padding: 10px 16px 14px; border-top: 1px dashed var(--line); margin: 0 0; }
.ep-uc__fee { display: grid; gap: 2px; }
.ep-uc__fee small { font: 500 11px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.ep-uc__fee b { font: 600 15px/1.2 var(--mono); color: var(--ink); }
.ep-uc__n { padding: 4px 9px; border-radius: var(--radius-pill); background: rgba(34, 211, 238, .12); color: #0b6c80; font: 600 12px/1.2 var(--mono); white-space: nowrap; }

/* Compare toggle (cards, rows, profile) */
.ep-cmp-btn {
    position: absolute; z-index: 4; top: 10px; right: 10px; display: inline-grid; place-items: center; width: 44px; height: 44px; padding: 0;
    border: 0; border-radius: 50%; cursor: pointer; color: #fff;
    background: rgba(5, 12, 34, .55); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .3);
    transition: background .25s, box-shadow .25s, transform .3s var(--ease-out);
}
.ep-cmp-btn svg { width: 20px; height: 20px; transition: transform .35s var(--ease-out); }
.ep-cmp-btn:hover { background: var(--brand); box-shadow: 0 0 0 4px rgba(47, 107, 255, .25); }
.ep-cmp-btn[aria-pressed="true"] { background: var(--grad-brand); box-shadow: 0 0 0 3px rgba(255, 255, 255, .9), 0 0 22px rgba(34, 211, 238, .9); }
.ep-cmp-btn[aria-pressed="true"] svg { transform: rotate(45deg); }
.ep-cmp-btn.is-pop { animation: ct-pop .5s var(--ease-out); }
@keyframes ct-pop { 40% { transform: scale(1.25); } }
.ep-cmp-btn:focus-visible { outline: 3px solid var(--cyan); outline-offset: 2px; }

/* Empty state + fee note */
.ep-empty { padding: clamp(28px, 5vw, 56px) 20px; text-align: center; border-radius: var(--radius-lg); background: #fff; box-shadow: 0 0 0 1px var(--line); }
.ep-empty[hidden] { display: none; }
.ep-empty .ep-h3 { margin: 0 0 6px; }
.ep-empty .ep-muted { margin: 0 auto 18px; max-width: 46ch; color: var(--muted); }
.ep-empty::before { content: ""; display: block; width: 64px; height: 64px; margin: 0 auto 16px; border-radius: 50%; background: radial-gradient(circle at 50% 50%, transparent 0 40%, rgba(47, 107, 255, .35) 41% 44%, transparent 45% 62%, rgba(34, 211, 238, .3) 63% 66%, transparent 67%); animation: ct-ping 2.4s var(--ease-out) infinite; }
@keyframes ct-ping { 50% { transform: scale(1.12); opacity: .6; } }
.ep-feenote { display: flex; gap: 12px; align-items: flex-start; margin-top: 22px; padding: 14px 16px; border-radius: var(--radius); background: rgba(255, 181, 71, .1); box-shadow: inset 0 0 0 1px rgba(232, 137, 12, .25); }
.ep-feenote__icon { flex: none; display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--grad-warm); color: var(--ink); font: 700 14px/1 var(--display); }
.ep-feenote strong { font: 600 14px/1.3 var(--sans); }
.ep-feenote .ep-disclaimer { margin: 4px 0 0; font-size: 13px; color: var(--muted); line-height: 1.5; }

/* =====================================================================
   5. GUIDE (finder) — glowing checkpoint rail
   ===================================================================== */
.ct-guide__head { margin-bottom: clamp(20px, 3vw, 36px); }
.ct-guide__head .ep-lead { color: var(--muted-on-ink); }
.ct-guide__grid { display: grid; gap: clamp(20px, 3vw, 40px); align-items: start; }
@media (min-width: 960px) { .ct-guide__grid { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); } }
.ct-guide__pic { position: relative; margin: 0; border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 4 / 3; box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .9), inset 0 0 0 1px var(--line-on-ink); }
.ct-guide__pic img { width: 100%; height: 100%; object-fit: cover; }
.ct-guide__pic::after { content: ""; position: absolute; inset: 0; background: linear-gradient(200deg, transparent 40%, rgba(5, 12, 34, .7)), linear-gradient(90deg, rgba(47, 107, 255, .25), transparent 50%); mix-blend-mode: normal; }
@media (max-width: 959px) { .ct-guide__pic { aspect-ratio: 16 / 9; } }
.ct-steps { position: relative; list-style: none; margin: 0; padding: 0 0 0 4px; display: grid; gap: 4px; --sp: 0; }
.ct-steps::before { content: ""; position: absolute; left: 25px; top: 18px; bottom: 18px; width: 2px; background: var(--line-on-ink); }
.ct-steps::after { content: ""; position: absolute; left: 25px; top: 18px; width: 2px; height: calc((100% - 36px) * min(1, var(--sp) * 1.6)); background: var(--grad-brand); box-shadow: 0 0 12px rgba(34, 211, 238, .9); }
.ct-step { position: relative; display: grid; grid-template-columns: 44px 1fr; gap: 16px; padding: 12px 14px 12px 0; border-radius: var(--radius); transition: background .3s; }
.ct-step:hover { background: rgba(255, 255, 255, .04); }
.ct-step__n { position: relative; z-index: 1; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--ink-2); box-shadow: inset 0 0 0 1px rgba(34, 211, 238, .5), 0 0 18px -4px rgba(34, 211, 238, .6); font: 500 13px/1 var(--mono); color: var(--cyan); }
.ct-step h3 { margin: 4px 0 4px; font: 600 var(--fs-h3)/1.25 var(--display); color: #fff; }
.ct-step p { margin: 0; color: var(--muted-on-ink); font-size: 15px; line-height: 1.55; }
.ct-guide__cta { margin-top: clamp(20px, 3vw, 32px); justify-content: flex-start; }
@media (prefers-reduced-motion: reduce) { .ct-steps::after { height: calc(100% - 36px); } }

/* =====================================================================
   6. COMPARE TRAY + DIALOG (shared by all catalogue pages)
   ===================================================================== */
.ep-cmp {
    position: fixed; z-index: 95; left: 50%; bottom: calc(var(--ep-float-stack) + env(safe-area-inset-bottom));
    width: min(720px, calc(100% - 24px)); transform: translateX(-50%);
    border-radius: var(--radius-lg); color: #fff;
    background: rgba(5, 12, 34, .9); -webkit-backdrop-filter: blur(16px) saturate(1.3); backdrop-filter: blur(16px) saturate(1.3);
    box-shadow: inset 0 0 0 1px rgba(34, 211, 238, .4), 0 24px 60px -16px rgba(2, 6, 26, .85), 0 0 40px -14px rgba(34, 211, 238, .7);
    animation: ct-tray-in .5s var(--ease-out);
    transition: bottom .4s var(--ease-out);
}
.ep-cmp[hidden] { display: none; }
@keyframes ct-tray-in { from { opacity: 0; transform: translate(-50%, 30px); } }
html.ep-fab-on .ep-cmp { bottom: calc(var(--ep-float-stack) + 64px + env(safe-area-inset-bottom)); }
.ep-cmp.is-nudge { animation: ct-nudge .5s; }
@keyframes ct-nudge { 20%, 60% { transform: translateX(calc(-50% - 8px)); } 40%, 80% { transform: translateX(calc(-50% + 8px)); } }
.ep-cmp__in { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 10px 10px 10px 14px; }
.ep-cmp__list { display: flex; flex-wrap: wrap; gap: 6px; flex: 1 1 260px; min-width: 0; margin: 0; padding: 0; list-style: none; }
.ep-cmp__list li { display: inline-flex; align-items: center; gap: 2px; max-width: 100%; padding-left: 12px; border-radius: var(--radius-pill); background: rgba(255, 255, 255, .08); box-shadow: inset 0 0 0 1px var(--line-on-ink); font: 600 13px/1 var(--sans); animation: ct-chip .35s var(--ease-out); }
.ep-cmp__list span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 150px; }
.ep-cmp__list button { display: inline-grid; place-items: center; width: 36px; height: 36px; border: 0; border-radius: 50%; background: none; color: var(--muted-on-ink); cursor: pointer; }
.ep-cmp__list button:hover { color: #fff; background: rgba(255, 255, 255, .1); }
.ep-cmp__list svg { width: 14px; height: 14px; }
.ep-cmp__count { margin: 0; font: 500 12px/1.3 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--cyan); }
.ep-cmp__acts { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.ep-cmp__clear { min-height: 44px; padding: 0 10px; border: 0; background: none; color: var(--muted-on-ink); font: 600 13px/1 var(--sans); cursor: pointer; }
.ep-cmp__clear:hover { color: #fff; }
.ep-cmp__go { min-height: 44px; }
.ep-cmp__go:disabled { opacity: .45; cursor: not-allowed; filter: grayscale(.4); }
@media (max-width: 520px) {
    .ep-cmp__in { padding: 10px; }
    .ep-cmp__count { order: -1; flex-basis: 100%; }
    .ep-cmp__acts { margin-left: 0; width: 100%; justify-content: space-between; }
}

.ep-cmpd {
    width: min(900px, calc(100% - 32px)); max-height: min(86vh, 760px); padding: 0; border: 0; border-radius: var(--radius-lg);
    background: #fff; color: var(--text); box-shadow: var(--shadow-3); overflow: hidden;
}
.ep-cmpd[open] { display: flex; flex-direction: column; animation: nx-pop .45s var(--ease-out); }
.ep-cmpd::backdrop { background: rgba(2, 6, 26, .62); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.ep-cmpd__head { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 20px; background: var(--ink); color: #fff; overflow: hidden; }
.ep-cmpd__head::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--grad-brand); box-shadow: 0 0 14px rgba(34, 211, 238, .9); }
.ep-cmpd__head .ep-h3 { margin: 0; color: #fff; }
.ep-cmpd__close { display: inline-grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .1); color: #fff; cursor: pointer; }
.ep-cmpd__close:hover { background: rgba(255, 255, 255, .2); }
.ep-cmpd__close svg { width: 18px; height: 18px; }
.ep-cmpd__scroll { overflow: auto; flex: 1; -webkit-overflow-scrolling: touch; }
.ep-cmpd__table { width: 100%; min-width: 520px; border-collapse: collapse; font-size: 15px; }
.ep-cmpd__table th, .ep-cmpd__table td { padding: 14px 16px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.ep-cmpd__table thead th { position: sticky; top: 0; background: var(--paper); font: 600 16px/1.3 var(--display); }
.ep-cmpd__table thead th a { color: var(--ink); text-decoration: none; }
.ep-cmpd__table thead th a:hover { color: var(--brand-deep); }
.ep-cmpd__table thead td { background: var(--paper); }
.ep-cmpd__table tbody th { width: 150px; font: 500 12px/1.4 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.ep-cmpd__table tbody td [data-money] { font-family: var(--mono); font-weight: 600; }
.ep-cmpd__table tbody tr:hover td { background: rgba(47, 107, 255, .04); }
.ep-cmpd__table small { color: var(--muted); }
.ep-cmpd > .ep-disclaimer { margin: 0; padding: 12px 20px 16px; font-size: 13px; color: var(--muted); border-top: 1px solid var(--line); }
@media (max-width: 599px) {
    .ep-cmpd { width: 100%; max-width: 100%; max-height: 90dvh; margin: auto 0 0; border-radius: var(--radius-lg) var(--radius-lg) 0 0; }
    .ep-cmpd[open] { animation: nx-sheet .45s var(--ease-out); }
}

/* =====================================================================
   7. COURSES: presets, fee spectrum, data rows
   ===================================================================== */
.ct-hero__bg video { opacity: 0; transition: opacity 1.2s; }
.ct-hero__bg video.is-on { opacity: .34; }
.ct-hero--courses .ct-hero__bg { background: url("video/v3/students-classroom-poster.webp") center / cover no-repeat; }
.ct-hero--courses .ct-hero__bg::before { content: ""; position: absolute; inset: 0; background: var(--ink); opacity: .66; }
.ct-presets { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin-top: clamp(16px, 2.6vh, 24px); }
.ct-presets__k { font: 500 12px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted-on-ink); }
.ct-presets__list { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.ct-presets__list a {
    display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 6px 0 14px; border-radius: var(--radius-pill);
    background: rgba(255, 255, 255, .06); box-shadow: inset 0 0 0 1px var(--line-on-ink); color: #fff; text-decoration: none; font: 600 14px/1 var(--sans);
    transition: background .25s, box-shadow .25s, transform .3s var(--ease-out);
}
.ct-presets__list a:hover { background: rgba(34, 211, 238, .12); box-shadow: inset 0 0 0 1px rgba(34, 211, 238, .6); transform: translateY(-2px); }
.ct-presets__list i { font: 600 12px/1 var(--mono); font-style: normal; padding: 6px 8px; border-radius: var(--radius-pill); background: rgba(34, 211, 238, .16); color: var(--cyan); }
@media (max-width: 600px) {
    .ct-presets__list { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-inline: calc(var(--gutter) * -1); padding: 2px var(--gutter); }
    .ct-presets__list::-webkit-scrollbar { display: none; }
    .ct-presets__list li { flex: none; }
}

.ct-ladder { padding: clamp(16px, 2vw, 22px); border-radius: var(--radius-lg); min-width: 0; }
.ct-ladder__k { margin: 0 0 12px; font-size: inherit; }
.ct-ladder__list { display: grid; gap: 4px; margin: 0; padding: 0; list-style: none; }
.ct-ladder__list a {
    display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; padding: 10px 12px; border-radius: var(--radius-sm);
    color: #fff; text-decoration: none; transition: background .25s, transform .35s var(--ease-out);
}
.ct-ladder__list a:hover { background: rgba(255, 255, 255, .07); transform: translateX(4px); }
.ct-ladder__txt { display: grid; gap: 2px; }
.ct-ladder__txt b { font: 600 15px/1.2 var(--display); }
.ct-ladder__txt small { font-size: 12px; color: var(--muted-on-ink); }
.ct-ladder__fee { font: 600 13px/1.3 var(--mono); color: var(--sky); text-align: right; white-space: nowrap; align-self: center; }
.ct-ladder__fee small { color: var(--muted-on-ink); }
.ct-ladder__track { grid-column: 1 / -1; position: relative; height: 6px; border-radius: 6px; background: rgba(255, 255, 255, .08); overflow: hidden; }
.ct-ladder__track i { position: absolute; top: 0; bottom: 0; left: var(--a); right: var(--b); min-width: 6px; border-radius: 6px; background: var(--grad-brand); box-shadow: 0 0 12px rgba(34, 211, 238, .9); transform-origin: left; animation: ct-grow 1.2s var(--ease-out) both; }
@keyframes ct-grow { from { transform: scaleX(0); } }
.ct-ladder__note { margin: 10px 4px 0; font-size: 12px; color: var(--muted-on-ink); line-height: 1.45; }
@media (min-width: 992px) and (max-height: 760px) { .ct-ladder__list a { padding-block: 7px; } }

.ep-courses { display: grid; gap: 12px; }
.ep-courses:empty { display: none; }
.ep-course {
    position: relative; display: grid; gap: 14px; padding: 18px 18px 16px 22px; border-radius: var(--radius); background: #fff; overflow: hidden; isolation: isolate;
    box-shadow: 0 0 0 1px var(--line), var(--shadow-1); transition: transform .4s var(--ease-out), box-shadow .4s var(--ease-out);
}
@media (min-width: 760px) { .ep-course { grid-template-columns: minmax(0, 1fr) minmax(210px, 250px); align-items: stretch; } }
.ep-course::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: linear-gradient(180deg, var(--c, var(--brand)), var(--cyan)); }
.ep-course::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: radial-gradient(320px circle at var(--mx, 0) var(--my, 0), rgba(47, 107, 255, .08), transparent 70%); opacity: 0; transition: opacity .3s; }
@media (hover: hover) {
    .ep-course:hover { transform: translateY(-3px); box-shadow: 0 0 0 1px rgba(47, 107, 255, .35), var(--shadow-2); }
    .ep-course:hover::after { opacity: 1; }
}
.ep-course.is-enter { animation: ct-card-in .5s var(--ease-out) both; animation-delay: var(--enter-d, 0ms); }
.ep-course.is-lowest { box-shadow: 0 0 0 1.5px rgba(255, 181, 71, .8), var(--shadow-1); }
.ep-course__flag { grid-column: 1 / -1; justify-self: start; margin: -4px 0; padding: 4px 10px; border-radius: var(--radius-pill); background: var(--grad-warm); color: var(--ink); font: 600 11px/1.3 var(--mono); letter-spacing: .1em; text-transform: uppercase; }
.ep-course__main { min-width: 0; display: grid; gap: 6px; align-content: start; }
.ep-course__kicker { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font: 500 12px/1.2 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.ep-course__name { margin: 0; font: 600 clamp(1.05rem, 1.4vw, 1.2rem)/1.3 var(--display); letter-spacing: -.01em; }
.ep-course__name a { color: var(--ink); text-decoration: none; background: linear-gradient(var(--brand), var(--brand)) 0 100% / 0 2px no-repeat; transition: background-size .4s var(--ease-out), color .2s; }
.ep-course__name a:hover { color: var(--brand-deep); background-size: 100% 2px; }
.ep-course__uni { margin: 0; display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: center; font-size: 14px; color: var(--muted); }
.ep-course__uni b { color: var(--text); font-weight: 600; }
.ep-course__uni span { display: inline-flex; align-items: center; gap: 6px; }
.ep-course__uni .ep-flag { width: 18px; height: auto; border-radius: 2px; }
.ep-course__facts { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 0; padding: 0; list-style: none; }
.ep-course__facts li { display: inline-flex; align-items: center; gap: 6px; min-height: 28px; padding: 0 10px; border-radius: var(--radius-pill); background: var(--paper); font-size: 13px; color: var(--text); }
.ep-course__facts li.ep-badge { font-size: 12px; }
.ep-course__facts svg { width: 15px; height: 15px; color: var(--brand); }
.ep-course__price { display: grid; gap: 10px; align-content: space-between; padding: 14px; border-radius: var(--radius-sm); background: linear-gradient(160deg, var(--paper), #fff); box-shadow: inset 0 0 0 1px var(--line); }
.ep-course__fee { display: grid; gap: 6px; }
.ep-course__fee small { font: 500 11px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.ep-course__fee strong { font: 700 1.25rem/1.15 var(--mono); color: var(--ink); letter-spacing: -.02em; }
.ep-flipv.is-flip { animation: ct-flip .5s var(--ease-out); }
@keyframes ct-flip { from { opacity: 0; transform: rotateX(70deg) translateY(-6px); filter: blur(3px); } }
.ep-course__bar { display: block; height: 4px; border-radius: 4px; background: rgba(10, 18, 40, .08); overflow: hidden; }
.ep-course__bar i { display: block; height: 100%; border-radius: 4px; background: var(--grad-brand); }
.ep-course__total { font-size: 13px; color: var(--muted); line-height: 1.4; }
.ep-course__total [data-money] { font-family: var(--mono); font-weight: 600; color: var(--text); }
.ep-flip { display: inline-flex; justify-self: start; padding: 3px; border-radius: var(--radius-pill); background: rgba(10, 18, 40, .06); }
.ep-flip button { min-width: 44px; min-height: 32px; padding: 0 10px; border: 0; border-radius: var(--radius-pill); background: none; font: 600 12px/1 var(--mono); color: var(--muted); cursor: pointer; }
.ep-flip button[aria-pressed="true"] { background: var(--ink); color: var(--cyan); }
.ep-course__acts { display: flex; align-items: center; gap: 6px; }
.ep-course__acts .ep-cmp-btn { position: static; width: 44px; height: 44px; background: var(--paper-2); color: var(--ink); box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
.ep-course__acts .ep-cmp-btn:hover { background: var(--brand); color: #fff; }
.ep-course__acts .ep-cmp-btn[aria-pressed="true"] { color: #fff; background: var(--grad-brand); }
.ep-course__ask { flex: 1; display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 12px; border-radius: var(--radius-pill); box-shadow: inset 0 0 0 1px var(--line); color: var(--brand-deep); font: 600 14px/1 var(--sans); text-decoration: none; transition: background .2s; }
.ep-course__ask:hover { background: rgba(47, 107, 255, .08); }
.ep-course__go { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--ink); color: #fff; transition: transform .35s var(--ease-out), background .25s; }
.ep-course__go svg { width: 15px; height: 15px; }
.ep-course__go:hover { background: var(--brand); transform: rotate(45deg); }

/* Level pills (courses + profile) */
.ep-lvl { display: inline-flex; align-items: center; padding: 4px 9px; border-radius: 6px; font: 500 11px/1.2 var(--mono); letter-spacing: .08em; text-transform: uppercase; background: rgba(47, 107, 255, .1); color: var(--brand-deep); }
.ep-lvl[data-lv="foundation"] { background: rgba(19, 163, 107, .12); color: #0b7a4f; }
.ep-lvl[data-lv="diploma"] { background: rgba(34, 211, 238, .14); color: #0b6c80; }
.ep-lvl[data-lv="master"] { background: rgba(124, 92, 255, .12); color: #5a3ee0; }
.ep-lvl[data-lv="phd"] { background: var(--ink); color: var(--cyan); }

/* Show more */
.ep-more { display: grid; justify-items: center; gap: 10px; margin-top: 22px; text-align: center; }
.ep-more[hidden] { display: none; }
.ep-more__txt { margin: 0; font: 500 12px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.ep-more__bar { width: min(260px, 70%); height: 4px; border-radius: 4px; background: rgba(10, 18, 40, .1); overflow: hidden; }
.ep-more__bar i { display: block; height: 100%; width: 100%; background: var(--grad-brand); transform-origin: left; transform: scaleX(var(--p, 0)); transition: transform .6s var(--ease-out); }

@media (prefers-reduced-motion: reduce) {
    .ep-ucw.is-enter, .ep-course.is-enter, .ct-ladder__track i, .ep-empty::before, .ep-cmp, .ep-achip { animation: none !important; }
    .ep-uc, .ep-course, .ct-ctile { transition: none; }
}

/* ═════ Restructure v4: display titles, less prose, bento guide, accordions ═════ */
.ct-hero__title { font-size: clamp(2.25rem, 1.2rem + 4.2vw, 4.5rem); line-height: 1.02; letter-spacing: -.03em; max-width: 14ch; }
.ep-uh__title { font-size: clamp(2.1rem, 1.2rem + 3.4vw, 4rem); }
.ct-hero__lead { max-width: 42ch; font-size: var(--fs-lead); }
:is(.ct-finder, .ct-guide, .ep-uo-sec, .ep-uprog, .ep-um-sec, .ct-related) .ep-h2 { font-size: clamp(1.75rem, 1rem + 2.6vw, 3rem); line-height: 1.05; letter-spacing: -.025em; }
.ct-guide__head .ep-lead, .ct-railhead .ep-lead { max-width: 36ch; }
.ct-bento { display: grid; gap: 14px; grid-template-columns: 1.3fr 1fr 1fr; grid-template-rows: auto auto; }
.ct-bento__pic { grid-row: span 2; margin: 0; border-radius: var(--radius-lg, 20px); overflow: hidden; min-height: 260px; }
.ct-bento__pic img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ct-bento__tile { position: relative; padding: 22px; border-radius: var(--radius-lg, 20px); display: flex; flex-direction: column; justify-content: flex-end; min-height: 170px; }
.ct-bento__tile:last-child { grid-column: span 2; }
.ct-bento__n { position: absolute; top: 14px; right: 18px; font: 700 clamp(2.4rem, 1.6rem + 2vw, 3.6rem)/1 var(--display); color: transparent; -webkit-text-stroke: 1px rgba(34, 211, 238, .55); }
.ct-bento__tile h3 { margin: 0 0 6px; font: 650 clamp(1.15rem, 1rem + .5vw, 1.45rem)/1.15 var(--display); color: #fff; max-width: 18ch; }
.ct-bento__tile p { margin: 0; color: var(--muted-on-ink); font-size: 15px; line-height: 1.45; }
@media (max-width: 860px) { .ct-bento { grid-template-columns: 1fr; } .ct-bento__pic { grid-row: auto; min-height: 200px; } .ct-bento__tile:last-child { grid-column: auto; } .ct-bento__tile { min-height: 0; padding-top: 48px; } }
details.ep-feenote { display: block; }
details.ep-feenote > summary { display: flex; gap: 10px; align-items: center; cursor: pointer; list-style: none; }
details.ep-feenote > summary::-webkit-details-marker, .ep-uo__more > summary::-webkit-details-marker, .ep-usection > summary::-webkit-details-marker { display: none; }
details.ep-feenote > summary::after, .ep-uo__more > summary::after, .ep-usection > summary::after { content: "+"; margin-left: auto; font: 500 18px/1 var(--mono, monospace); transition: transform .25s; }
details[open].ep-feenote > summary::after, .ep-uo__more[open] > summary::after, .ep-usection[open] > summary::after { transform: rotate(45deg); }
details.ep-feenote .ep-disclaimer { margin: 10px 0 0 36px; }
.ep-uo__more { margin-top: 18px; border-top: 1px solid var(--line, rgba(0,0,0,.1)); padding-top: 12px; }
.ep-uo__more > summary { display: flex; cursor: pointer; list-style: none; font-weight: 600; color: var(--brand, inherit); }
.ep-uo__more p { margin: 10px 0 0; max-width: 64ch; line-height: 1.6; }
.ep-usection > summary { display: flex; align-items: center; cursor: pointer; list-style: none; }
.ep-usection > summary h3 { margin: 0; }
.ep-usection p { margin: 10px 0 0; }
.ep-uo__hl { display: flex; flex-wrap: wrap; gap: 8px; }
.ep-uo__hl li { padding: 6px 12px; border-radius: 999px; background: rgba(34, 211, 238, .08); box-shadow: inset 0 0 0 1px rgba(34, 211, 238, .25); font-size: 14px; }
@media (prefers-reduced-motion: reduce) { details.ep-feenote > summary::after, .ep-uo__more > summary::after, .ep-usection > summary::after { transition: none; } }

/* ═════════════════════════════════════════════════════════════════════
   v4 POLISH (white, restrained). Overrides everything above.
   8px grid, radii 8/16, hairlines, no glow/gradient/glass.
   ═════════════════════════════════════════════════════════════════════ */
:where(.ct-hero, .ct-finder, .ct-guide, .ep-uo-sec, .ep-uprog, .ep-um-sec, .ct-related, .ep-cmpd, .ep-cmp) { --mono: var(--sans); }

/* — Hero: white band, big title, one search field — */
.ct-hero { background: #fff; color: var(--text); padding: calc(var(--header-h) + clamp(16px, 3vh, 40px)) 0 clamp(32px, 5vh, 56px); border-bottom: 1px solid var(--line); }
.ct-hero.nx-fade-bottom::after, .ct-hero::after, .ct-hero::before { display: none; }
.ct-hero__bg { display: none; }
.ct-hero .ep-eyebrow { display: inline-block; margin: 8px 0 0; }
.ct-hero__title { margin: 8px 0 16px; color: var(--ink); font-size: clamp(2.5rem, 1.3rem + 3.6vw, 4.25rem); line-height: 1.04; letter-spacing: -.035em; max-width: 12ch; text-wrap: balance; }
.ct-hero__lead { margin: 0; max-width: 44ch; color: var(--muted); font-size: clamp(1rem, .95rem + .3vw, 1.2rem); line-height: 1.5; }
.ct-hero .ep-crumbs { margin-bottom: 8px; }
.ct-search {
    margin-top: 24px; max-width: 560px; padding: 4px 4px 4px 48px; border-radius: var(--radius-sm);
    background: #fff; box-shadow: inset 0 0 0 1px var(--line-strong); -webkit-backdrop-filter: none; backdrop-filter: none;
    transition: box-shadow 200ms ease-out;
}
.ct-search:hover { box-shadow: inset 0 0 0 1px var(--g-400, #9aa5b5); }
.ct-search:focus-within { background: #fff; box-shadow: inset 0 0 0 1px var(--brand), 0 0 0 3px var(--brand-100, #dfe8ff); }
.ct-search__icon { color: var(--muted); left: 16px; }
.ct-search input { height: 40px; color: var(--ink); font-size: 16px; }
.ct-search input::placeholder { color: var(--g-500, #7a8696); }
.ct-search input::-webkit-search-cancel-button { filter: none; }
.ct-search .ep-btn { min-height: 40px; height: 40px; }
.ct-stats { gap: 8px 40px; margin-top: 24px; }
.ct-stats .nx-stat { padding-left: 0; }
.ct-stats .nx-stat::before { display: none; }
.ct-stats .nx-stat__n { font-variant-numeric: tabular-nums; }

/* Country list (finder hero, right) */
.ct-radar { background: #fff; box-shadow: inset 0 0 0 1px var(--line), var(--shadow-2); -webkit-backdrop-filter: none; backdrop-filter: none; padding: 16px; border-radius: 16px; }
.ct-radar::before, .ct-radar::after { display: none; }
.ct-radar__head .nx-badge { background: none; padding: 0; box-shadow: none; color: var(--muted); font: 600 14px/1.3 var(--sans); letter-spacing: 0; text-transform: none; }
.ct-radar__head .nx-badge::before { display: none; }
.ct-radar__foot { color: var(--muted); font: 400 13px/1.4 var(--sans); letter-spacing: 0; text-transform: none; margin: 8px 4px 0; }
.ct-ctile { color: var(--ink); background: #fff; box-shadow: inset 0 0 0 1px var(--line); border-radius: 8px; min-height: 56px; transition: background 150ms ease-out, box-shadow 150ms ease-out; }
.ct-ctile::before { display: none; }
.ct-ctile:hover, .ct-ctile:focus-visible { background: var(--paper-2); box-shadow: inset 0 0 0 1px var(--line-strong); transform: none; }
.ct-ctile:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.ct-ctile.is-active { background: var(--brand-50, #eef3ff); box-shadow: inset 0 0 0 1.5px var(--brand); }
.ct-ctile__flag { box-shadow: 0 0 0 1px var(--line); }
.ct-ctile__name small { color: var(--muted); font: 400 13px/1.3 var(--sans); text-transform: none; letter-spacing: 0; }
.ct-ctile__fee { color: var(--ink); font: 600 14px/1.25 var(--sans); font-variant-numeric: tabular-nums; }
.ct-ctile__fee small { color: var(--muted); font: 400 12px/1.2 var(--sans); text-transform: none; letter-spacing: 0; }
.ct-ctile__fee.is-tbc { color: var(--muted); font-weight: 400; }
.ct-ctile__go { color: var(--brand); }
@media (max-width: 991px) { .ct-ctile { background: #fff; width: 220px; } }

/* Presets + fee ladder (courses hero) */
.ct-presets__k { color: var(--muted); font: 600 14px/1 var(--sans); letter-spacing: 0; text-transform: none; }
.ct-presets__list a { color: var(--ink); background: #fff; box-shadow: inset 0 0 0 1px var(--line-strong); min-height: 40px; transition: background 150ms ease-out, box-shadow 150ms ease-out; }
.ct-presets__list a:hover { background: var(--paper-2); box-shadow: inset 0 0 0 1px var(--g-400, #9aa5b5); transform: none; }
.ct-presets__list a:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.ct-presets__list i { background: var(--paper-2); color: var(--ink); font: 600 12px/1 var(--sans); font-variant-numeric: tabular-nums; }
.ct-ladder { background: #fff; box-shadow: inset 0 0 0 1px var(--line), var(--shadow-2); -webkit-backdrop-filter: none; backdrop-filter: none; border-radius: 16px; }
.ct-ladder::before, .ct-ladder::after { display: none; }
.ct-ladder__k { color: var(--ink); }
.ct-ladder__list a { color: var(--ink); transition: background 150ms ease-out; }
.ct-ladder__list a:hover { background: var(--paper-2); transform: none; }
.ct-ladder__txt small, .ct-ladder__fee small, .ct-ladder__note { color: var(--muted); }
.ct-ladder__fee { color: var(--ink); font: 600 13px/1.3 var(--sans); font-variant-numeric: tabular-nums; }
.ct-ladder__track { background: var(--g-100, #eef1f6); }
.ct-ladder__track i { background: var(--brand); box-shadow: none; animation-duration: .5s; }

/* — Finder shell — */
.ct-finder { background: #fff; padding-top: clamp(32px, 5vh, 56px); }
.ct-finder__grid-bg { display: none; }
.ep-filters { background: #fff; -webkit-backdrop-filter: none; backdrop-filter: none; box-shadow: inset 0 0 0 1px var(--line); border-radius: 16px; }
.ep-filters__title { font: 600 16px/1 var(--sans); letter-spacing: -.01em; text-transform: none; color: var(--ink); }
.ep-filters__title::before { display: none; }
.ep-filters__reset { color: var(--brand-deep); border-radius: 8px; }
.ep-filters__reset:hover { background: var(--brand-50, #eef3ff); text-decoration: none; }
.ep-filters__close { background: var(--paper-2); transition: background 150ms ease-out; }
.ep-filters__close:hover { background: var(--g-100, #eef1f6); }
.ep-flabel { font: 600 14px/1.3 var(--sans); letter-spacing: 0; text-transform: none; color: var(--ink); }
.ep-range-out { color: var(--ink); font-family: var(--sans); font-variant-numeric: tabular-nums; }
.ep-finput input, .ep-select { height: 48px; border-radius: 8px; box-shadow: inset 0 0 0 1px var(--line-strong); background-color: #fff; transition: box-shadow 150ms ease-out; }
.ep-finput input:hover, .ep-select:hover { box-shadow: inset 0 0 0 1px var(--g-400, #9aa5b5); }
.ep-finput input:focus, .ep-select:focus { outline: 0; box-shadow: inset 0 0 0 1px var(--brand), 0 0 0 3px var(--brand-100, #dfe8ff); }
.ep-select--sm { height: 40px; }
.ep-seg span, .ep-chipset span { min-height: 40px; border-radius: 999px; background: #fff; box-shadow: inset 0 0 0 1px var(--line-strong); transition: background 150ms ease-out, box-shadow 150ms ease-out, color 150ms ease-out; }
.ep-seg label:hover span, .ep-chipset label:hover span { background: var(--paper-2); }
.ep-seg input:checked + span, .ep-chipset input:checked + span { background: var(--ink); color: #fff; box-shadow: none; }
.ep-seg input:focus-visible + span, .ep-chipset input:focus-visible + span { outline: 2px solid var(--brand); outline-offset: 2px; }
.ep-range::-webkit-slider-runnable-track { background: linear-gradient(90deg, var(--brand) var(--p), var(--g-100, #e3e8ef) var(--p)); }
.ep-range::-moz-range-progress { background: var(--brand); }
.ep-range::-moz-range-track { background: var(--g-100, #e3e8ef); }
.ep-range::-webkit-slider-thumb { box-shadow: 0 0 0 2px var(--brand), var(--shadow-1); }
.ep-range::-moz-range-thumb { box-shadow: 0 0 0 2px var(--brand), var(--shadow-1); }
.ep-switch { border-radius: 8px; transition: box-shadow 150ms ease-out; }
.ep-switch:hover { box-shadow: inset 0 0 0 1px var(--g-400, #9aa5b5); }
.ep-switch__ui::after { box-shadow: var(--shadow-1); }

/* Results bar */
.ep-rbar { margin-bottom: 16px; }
.ep-rbar__count { font: 400 15px/1 var(--sans); letter-spacing: 0; text-transform: none; color: var(--muted); }
.ep-rbar__count b { font: 600 clamp(2rem, 3vw, 2.5rem)/1 var(--sans); letter-spacing: -.03em; color: var(--ink); background: none; -webkit-text-fill-color: currentColor; }
.ep-fbtn { min-height: 40px; border-radius: 8px; background: #fff; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-strong); transition: background 150ms ease-out; }
.ep-fbtn:hover { background: var(--paper-2); }
.ep-fbtn svg { color: var(--ink); }
.ep-fbtn i, .ep-fab i { background: var(--brand); font-family: var(--sans); }
.ep-achip { background: var(--paper-2); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); animation-duration: .2s; }
.ep-achip:hover { background: var(--ink); color: #fff; }
.ep-achip:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.ep-achip--clear { background: none; box-shadow: none; color: var(--brand-deep); }
.ep-achip--clear:hover { background: var(--brand-50, #eef3ff); color: var(--brand-deep); }
.ep-fab { background: var(--ink); -webkit-backdrop-filter: none; backdrop-filter: none; box-shadow: var(--shadow-3); border-radius: 999px; min-height: 48px; }
.ep-fab svg { color: #fff; }
.ep-fab b { font-family: var(--sans); }

/* — University cards — */
@keyframes ct-card-in { from { opacity: 0; transform: translateY(8px); } }
.ep-uc { border-radius: 16px; background: #fff; box-shadow: inset 0 0 0 1px var(--line); transition: box-shadow 200ms ease-out; }
.ep-uc::before, .ep-uc::after { display: none; }
@media (hover: hover) {
    .ep-uc:hover { transform: none; box-shadow: inset 0 0 0 1px var(--line-strong), var(--shadow-2); }
    .ep-uc:hover .ep-uc__media img { transform: none; }
}
.ep-uc:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.ep-uc__media { background: var(--g-100, #eef1f6); }
.ep-uc__media::after { background: linear-gradient(180deg, transparent 55%, rgba(11, 18, 32, .35)); }
.ep-uc__media.is-t1 img, .ep-uc__media.is-t2 img, .ep-uc__media.is-t3 img { filter: none; }
.ep-uc__tag { background: #fff; color: var(--ink); -webkit-backdrop-filter: none; backdrop-filter: none; box-shadow: var(--shadow-1); font: 600 12px/1 var(--sans); letter-spacing: 0; text-transform: none; padding: 6px 10px; }
.ep-uc__tag::before { content: none; }
.ep-uc__name { font-size: 1.125rem; letter-spacing: -.015em; color: var(--ink); }
.ep-uc__region { background: var(--brand-50, #eef3ff); font: 600 12px/1.2 var(--sans); letter-spacing: 0; text-transform: none; }
.ep-uc__region.is-north { background: #fdf3e3; color: var(--warm); }
.ep-uc__levels span { background: var(--paper-2); color: var(--muted); font: 500 12px/1.3 var(--sans); letter-spacing: 0; text-transform: none; }
.ep-uc__levels span.is-hit { background: var(--ink); color: #fff; }
.ep-uc__foot { border-top: 1px solid var(--line); }
.ep-uc__fee small { font: 400 12px/1 var(--sans); letter-spacing: 0; text-transform: none; }
.ep-uc__fee b { font: 600 16px/1.2 var(--sans); letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.ep-uc__n { background: var(--paper-2); color: var(--ink); font: 600 12px/1.2 var(--sans); }

/* Compare toggle: white disc on photos */
.ep-cmp-btn { background: #fff; color: var(--ink); -webkit-backdrop-filter: none; backdrop-filter: none; box-shadow: var(--shadow-1); transition: background 150ms ease-out, color 150ms ease-out; }
.ep-cmp-btn:hover { background: var(--ink); color: #fff; box-shadow: var(--shadow-1); }
.ep-cmp-btn[aria-pressed="true"] { background: var(--brand); color: #fff; box-shadow: var(--shadow-1); }
.ep-cmp-btn.is-pop { animation: none; }
.ep-cmp-btn:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.ep-cmp-btn--id { position: static; box-shadow: inset 0 0 0 1px var(--line-strong); }

/* Empty + fee note */
.ep-empty { border-radius: 16px; background: var(--paper-2); box-shadow: none; }
.ep-empty::before { width: 48px; height: 48px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231f5bff' stroke-width='1.8' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='6.5'/%3E%3Cpath d='M16 16l4.5 4.5'/%3E%3C/svg%3E") center / 24px no-repeat; box-shadow: inset 0 0 0 1px var(--line); animation: none; }
.ep-feenote { background: var(--paper-2); box-shadow: inset 0 0 0 1px var(--line); border-radius: 16px; }
.ep-feenote__icon { background: var(--ink); color: #fff; font-family: var(--sans); }

/* — Guide (finder, below results) — */
.ct-guide { background: var(--paper-2); }
.ct-guide__head .ep-lead, .ct-bento__tile p, .ct-step p { color: var(--muted); }
.ct-bento__pic { border-radius: 16px; }
.ct-bento__tile { background: #fff; box-shadow: inset 0 0 0 1px var(--line); border-radius: 16px; -webkit-backdrop-filter: none; backdrop-filter: none; }
.ct-bento__n { color: var(--brand); -webkit-text-stroke: 0; font: 600 14px/1 var(--sans); top: 20px; left: 22px; right: auto; font-variant-numeric: tabular-nums; }
.ct-bento__tile h3 { color: var(--ink); letter-spacing: -.02em; }
.ct-guide__pic { box-shadow: inset 0 0 0 1px var(--line); border-radius: 16px; }
.ct-guide__pic::after { display: none; }
.ct-steps::before { background: var(--line); }
.ct-steps::after { background: var(--brand); box-shadow: none; }
.ct-step:hover { background: #fff; }
.ct-step__n { background: #fff; box-shadow: inset 0 0 0 1px var(--line-strong); color: var(--brand-deep); font-family: var(--sans); font-weight: 600; }
.ct-step h3 { color: var(--ink); }

/* — Compare tray: the one small dark accent — */
.ep-cmp { background: var(--ink); -webkit-backdrop-filter: none; backdrop-filter: none; box-shadow: var(--shadow-3); border-radius: 16px; animation: ct-tray-in .25s ease-out; }
@keyframes ct-tray-in { from { opacity: 0; transform: translate(-50%, 16px); } }
.ep-cmp.is-nudge { animation: none; }
.ep-cmp__list li { background: rgba(255, 255, 255, .1); box-shadow: none; animation: none; font-weight: 600; }
.ep-cmp__list button { transition: background 150ms ease-out, color 150ms ease-out; }
.ep-cmp__list button:focus-visible, .ep-cmp__clear:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.ep-cmp__count { color: rgba(255, 255, 255, .72); font: 500 13px/1.3 var(--sans); letter-spacing: 0; text-transform: none; }
.ep-cmp__go { background: #fff; color: var(--ink); box-shadow: none; }
.ep-cmp__go:hover:not(:disabled) { background: var(--g-100, #eef1f6); color: var(--ink); }
.ep-cmp__go:disabled { filter: none; }

/* Compare dialog */
.ep-cmpd { border-radius: 16px; }
.ep-cmpd::backdrop { background: rgba(11, 18, 32, .5); -webkit-backdrop-filter: none; backdrop-filter: none; }
.ep-cmpd__head { background: #fff; color: var(--ink); border-bottom: 1px solid var(--line); }
.ep-cmpd__head::after { display: none; }
.ep-cmpd__head .ep-h3 { color: var(--ink); letter-spacing: -.02em; }
.ep-cmpd__close { background: var(--paper-2); color: var(--ink); transition: background 150ms ease-out; }
.ep-cmpd__close:hover { background: var(--g-100, #e3e8ef); }
.ep-cmpd__table thead th, .ep-cmpd__table thead td { background: var(--paper-2); font: 600 15px/1.3 var(--sans); }
.ep-cmpd__table tbody th { font: 600 13px/1.4 var(--sans); letter-spacing: 0; text-transform: none; color: var(--muted); }
.ep-cmpd__table tbody td [data-money] { font-family: var(--sans); font-variant-numeric: tabular-nums; }
.ep-cmpd__table tbody tr:hover td { background: var(--paper-2); }

/* — Courses rows — */
.ep-course { border-radius: 16px; background: #fff; box-shadow: inset 0 0 0 1px var(--line); padding: 20px 20px 16px 24px; transition: box-shadow 200ms ease-out; }
.ep-course::before { width: 3px; background: var(--c, var(--brand)); }
.ep-course::after { display: none; }
@media (hover: hover) { .ep-course:hover { transform: none; box-shadow: inset 0 0 0 1px var(--line-strong), var(--shadow-2); } }
.ep-course.is-lowest { box-shadow: inset 0 0 0 1.5px var(--ok); }
.ep-course__flag { background: #e6f5ee; color: var(--ok); font: 600 12px/1.3 var(--sans); letter-spacing: 0; text-transform: none; }
.ep-course__kicker { font: 500 13px/1.2 var(--sans); letter-spacing: 0; text-transform: none; }
.ep-course__name { font-size: clamp(1.125rem, 1.5vw, 1.25rem); letter-spacing: -.015em; }
.ep-course__name a { background-image: none; }
.ep-course__name a:hover { text-decoration: underline; text-underline-offset: 3px; }
.ep-course__facts li { background: var(--paper-2); }
.ep-course__price { background: var(--paper-2); box-shadow: none; border-radius: 8px; }
.ep-course__fee small { font: 400 12px/1 var(--sans); letter-spacing: 0; text-transform: none; }
.ep-course__fee strong { font: 600 1.375rem/1.15 var(--sans); letter-spacing: -.025em; font-variant-numeric: tabular-nums; }
@keyframes ct-flip { from { opacity: 0; } }
.ep-flipv.is-flip { animation: ct-flip .2s ease-out; }
.ep-course__bar { background: var(--g-100, #e3e8ef); }
.ep-course__bar i { background: var(--brand); }
.ep-course__total [data-money] { font-family: var(--sans); font-variant-numeric: tabular-nums; }
.ep-flip { background: var(--g-100, #e3e8ef); }
.ep-flip button { font: 600 13px/1 var(--sans); transition: background 150ms ease-out, color 150ms ease-out; }
.ep-flip button[aria-pressed="true"] { background: #fff; color: var(--ink); box-shadow: var(--shadow-1); }
.ep-flip button:focus-visible { outline: 2px solid var(--brand); outline-offset: 1px; }
.ep-course__acts .ep-cmp-btn { background: var(--paper-2); color: var(--ink); box-shadow: none; }
.ep-course__acts .ep-cmp-btn:hover { background: var(--ink); color: #fff; }
.ep-course__acts .ep-cmp-btn[aria-pressed="true"] { background: var(--brand); color: #fff; }
.ep-course__ask { border-radius: 8px; color: var(--brand-deep); transition: background 150ms ease-out; }
.ep-course__ask:hover { background: var(--brand-50, #eef3ff); }
.ep-course__go { border-radius: 8px; transition: background 150ms ease-out; }
.ep-course__go:hover { background: var(--brand); transform: none; }
.ep-lvl { border-radius: 6px; font: 600 12px/1.2 var(--sans); letter-spacing: 0; text-transform: none; background: var(--brand-50, #eef3ff); color: var(--brand-deep); }
.ep-lvl[data-lv="foundation"] { background: #e6f5ee; color: var(--ok); }
.ep-lvl[data-lv="diploma"] { background: var(--paper-2); color: var(--ink); }
.ep-lvl[data-lv="master"] { background: var(--brand-50, #eef3ff); color: var(--brand-deep); }
.ep-lvl[data-lv="phd"] { background: var(--ink); color: #fff; }
.ep-more__txt { font: 400 14px/1 var(--sans); letter-spacing: 0; text-transform: none; font-variant-numeric: tabular-nums; }
.ep-more__bar { background: var(--g-100, #e3e8ef); }
.ep-more__bar i { background: var(--brand); }
.ep-uo__hl li { background: var(--paper-2); box-shadow: none; }

/* ═════ University profile ═════ */
.ct-uhero .ct-hero__grid { align-items: center; }
.ct-uhero .ct-hero__title { max-width: 16ch; font-size: clamp(2.25rem, 1.2rem + 3vw, 3.75rem); }
.ep-uh__id { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 8px 0 8px; }
.ep-uh__badges { display: flex; flex-wrap: wrap; gap: 8px; }
.ep-uh__badges > span { display: inline-flex; align-items: center; gap: 6px; min-height: 32px; padding: 0 12px; border-radius: 999px; background: var(--paper-2); box-shadow: inset 0 0 0 1px var(--line); font: 500 14px/1 var(--sans); color: var(--ink); }
.ep-uh__badges .ep-flag { width: 18px; height: auto; border-radius: 2px; }
.ep-uh__badges .is-north { background: #fdf3e3; color: var(--warm); }
.ep-uh__badges .is-russell, .ep-uh__badges .is-feat { background: var(--brand-50, #eef3ff); color: var(--brand-deep); }
.ep-uh__loc { display: flex; align-items: center; gap: 8px; margin: 0 0 24px; color: var(--muted); font-size: 18px; }
.ep-uh__loc svg { width: 18px; height: 18px; color: var(--brand); }
.ct-uhero__acts { gap: 16px; align-items: center; }
.ep-uh__book { font-weight: 600; }
.ct-uhero__media { position: relative; min-width: 0; }
.ct-uhero__pic { display: block; aspect-ratio: 16 / 10; overflow: hidden; border-radius: 16px; background: var(--g-100, #eef1f6); box-shadow: inset 0 0 0 1px var(--line); }
.ct-uhero__pic img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ep-uh__tag { position: absolute; left: 16px; top: 16px; padding: 6px 10px; border-radius: 8px; background: #fff; color: var(--ink); font: 600 12px/1 var(--sans); box-shadow: var(--shadow-1); }
.ep-uh__plate { position: absolute; left: 16px; bottom: 16px; display: inline-flex; align-items: center; gap: 8px; min-height: 56px; padding: 8px 12px; border-radius: 8px; background: #fff; box-shadow: var(--shadow-2); }
.ep-uh__plate img { height: 40px; width: auto; max-width: 160px; object-fit: contain; display: block; }
.ep-uh__plate--mono { padding: 8px 16px 8px 8px; }
.ep-uh__plate--mono b { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 8px; background: var(--c, var(--brand)); color: #fff; font: 600 15px/1 var(--sans); }
.ep-uh__plate--mono small { font: 600 14px/1.2 var(--sans); color: var(--ink); }
.ep-uh__approx { color: var(--muted); font-weight: 400; }
.ep-uh__next { display: block; margin-top: 4px; color: var(--muted); font-weight: 400; font-size: 13px; }

.ct-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(168px, 1fr)); margin: clamp(24px, 4vh, 40px) 0 0; padding: 0; border-radius: 16px; background: #fff; box-shadow: inset 0 0 0 1px var(--line); overflow: hidden; -webkit-backdrop-filter: none; backdrop-filter: none; }
.ct-facts::before, .ct-facts::after { display: none; }
.ct-facts > div { min-width: 0; padding: 16px 20px; box-shadow: -1px 0 0 var(--line); margin-left: 1px; }
.ct-facts > div:first-child { box-shadow: none; margin-left: 0; }
.ct-facts dt { margin: 0 0 4px; color: var(--muted); font: 500 13px/1.3 var(--sans); }
.ct-facts dd { margin: 0; color: var(--ink); font: 600 17px/1.3 var(--sans); letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.ct-facts dd small { display: block; font-weight: 400; font-size: 13px; color: var(--muted); }
@media (max-width: 600px) { .ct-facts { grid-template-columns: 1fr 1fr; } .ct-facts > div { box-shadow: 0 1px 0 var(--line); margin: 0; } }

.ep-uo-sec, .ep-uprog, .ep-um-sec, .ct-related { padding-block: clamp(40px, 7vh, 80px); }
.ep-uprog, .ct-related { background: var(--paper-2); }
.ep-uo { display: grid; gap: clamp(24px, 4vw, 56px); align-items: start; }
@media (min-width: 992px) { .ep-uo { grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); } }
.ep-uo__copy { min-width: 0; display: grid; gap: 24px; }
.ep-uo__copy .ep-h2 { margin: 0; }
.ep-uo__hl { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.ep-uo__hl li { display: inline-flex; align-items: center; gap: 8px; }
.ep-uo__hl svg { width: 16px; height: 16px; color: var(--ok); flex: none; }
.ep-uo__notes { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.ep-uo__note { padding: 16px 20px; border-radius: 16px; background: var(--paper-2); box-shadow: inset 0 0 0 1px var(--line); }
.ep-uo__note h3 { margin: 0 0 4px; font: 600 15px/1.3 var(--sans); color: var(--ink); }
.ep-uo__note p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.5; }
.ep-uo__note.is-warn { background: #fdf3e3; box-shadow: inset 0 0 0 1px #f0d9b0; }
.ep-uo__note.is-warn h3 { color: var(--warm); }
.ep-uo__more { margin: 0; }
.ep-uo__photos { display: grid; grid-template-columns: 2fr 1fr; gap: 16px; }
.ep-uo__photos img { width: 100%; height: 100%; object-fit: cover; border-radius: 16px; display: block; }
.ep-uo__photos img:first-child { aspect-ratio: 3 / 2; }
.ep-uo__side { display: grid; gap: 16px; min-width: 0; }
.ep-uo__sidepic { margin: 0; }
.ep-uo__sidepic img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 16px; }
@media (max-width: 991px) { .ep-uo__sidepic { display: none; } }

.ep-costcard { padding: 24px; border-radius: 16px; background: #fff; box-shadow: inset 0 0 0 1px var(--line), var(--shadow-2); display: grid; gap: 16px; }
.ep-costcard__head { display: grid; gap: 4px; }
.ep-costcard__head .ep-h3 { margin: 0; letter-spacing: -.02em; }
.ep-costbar { display: flex; height: 8px; border-radius: 8px; overflow: hidden; background: var(--g-100, #e3e8ef); gap: 2px; }
.ep-costbar i { display: block; width: var(--w); height: 100%; }
.is-t { background: var(--brand); } .is-l { background: var(--ink); } .is-o { background: var(--g-400, #9aa5b5); }
.ep-costlist { display: grid; margin: 0; }
.ep-costlist > div { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 12px 0; border-top: 1px solid var(--line); }
.ep-costlist > div:first-child { border-top: 0; }
.ep-costlist dt { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 15px; }
.ep-costlist dt i { width: 8px; height: 8px; border-radius: 2px; flex: none; }
.ep-costlist dd { margin: 0; text-align: right; font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; }
.ep-costlist__total dt { color: var(--ink); font-weight: 600; }
.ep-costlist__total dd { font-size: 1.125rem; }
.ep-btn--block { width: 100%; justify-content: center; }

/* Programs */
.ct-railhead { margin-bottom: 24px; }
.ep-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 24px; }
.ep-tab { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 16px; border: 0; border-radius: 999px; background: #fff; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-strong); font: 600 14px/1 var(--sans); cursor: pointer; transition: background 150ms ease-out, color 150ms ease-out; }
.ep-tab:hover { background: var(--paper-2); }
.ep-tab[aria-selected="true"] { background: var(--ink); color: #fff; box-shadow: none; }
.ep-tab:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.ep-tab i { font-style: normal; font-weight: 500; opacity: .7; font-variant-numeric: tabular-nums; }
.ep-plist { border-radius: 16px; background: #fff; box-shadow: inset 0 0 0 1px var(--line); overflow: hidden; }
.ep-plist__head, .ep-prog > summary { display: grid; grid-template-columns: minmax(0, 2.2fr) .8fr .8fr 1fr 1fr 1fr 24px; gap: 16px; align-items: center; padding: 14px 20px; }
.ep-plist__head { background: var(--paper-2); color: var(--muted); font: 600 13px/1.3 var(--sans); border-bottom: 1px solid var(--line); }
.ep-prog { border-top: 1px solid var(--line); }
.ep-prog > summary { cursor: pointer; list-style: none; transition: background 150ms ease-out; }
.ep-prog > summary::-webkit-details-marker { display: none; }
.ep-prog > summary:hover { background: var(--paper-2); }
.ep-prog > summary:focus-visible { outline: 2px solid var(--brand); outline-offset: -2px; }
.ep-prog__name { display: grid; gap: 2px; min-width: 0; }
.ep-prog__name b { font-weight: 600; color: var(--ink); letter-spacing: -.01em; }
.ep-prog__name small { color: var(--muted); font-size: 13px; }
.ep-prog__cell { font-size: 15px; color: var(--ink); min-width: 0; font-variant-numeric: tabular-nums; }
.ep-prog__fee { font-weight: 600; }
.ep-prog__chev { width: 10px; height: 10px; border-right: 1.5px solid var(--muted); border-bottom: 1.5px solid var(--muted); transform: rotate(45deg); transition: transform 200ms ease-out; justify-self: end; }
.ep-prog[open] .ep-prog__chev { transform: rotate(-135deg); }
.ep-prog__body { display: grid; gap: 24px; padding: 8px 20px 24px; }
@media (min-width: 760px) { .ep-prog__body { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); } }
.ep-prog__req p, .ep-prog__side p { margin: 4px 0 0; color: var(--muted); line-height: 1.55; }
.ep-prog__side { display: grid; gap: 12px; align-content: start; }
.ep-prog__total { display: grid; gap: 4px; padding: 16px; border-radius: 8px; background: var(--paper-2); }
.ep-prog__total strong { font: 600 1.375rem/1.2 var(--sans); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.ep-prog__total small { color: var(--muted); }
.ep-prog__alt { display: flex; gap: 8px; align-items: flex-start; font-size: 14px; }
.ep-prog__alt svg { width: 16px; height: 16px; color: var(--ok); flex: none; margin-top: 2px; }
.ep-mt-s { margin-top: 12px; }
@media (max-width: 899px) {
    .ep-plist__head { display: none; }
    .ep-prog > summary { grid-template-columns: 1fr auto; gap: 8px 16px; padding: 16px; }
    .ep-prog__name { grid-column: 1 / 2; }
    .ep-prog__chev { grid-column: 2; grid-row: 1; }
    .ep-prog__cell { display: flex; justify-content: space-between; gap: 12px; grid-column: 1 / -1; font-size: 14px; }
    .ep-prog__cell[data-k]::before { content: attr(data-k); color: var(--muted); }
    .ep-prog__lvl { grid-column: 1 / 2; grid-row: 2; justify-content: flex-start; }
}
.ep-uprog__checked { color: var(--ink); }
.ep-uempty { display: grid; gap: 24px; padding: 24px; border-radius: 16px; background: #fff; box-shadow: inset 0 0 0 1px var(--line); }
@media (min-width: 760px) { .ep-uempty { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); align-items: center; } }
.ep-uempty__media { position: relative; border-radius: 8px; overflow: hidden; aspect-ratio: 16 / 10; }
.ep-uempty__media > img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ep-uempty__logo { position: absolute; left: 12px; bottom: 12px; display: inline-grid; place-items: center; padding: 6px 10px; border-radius: 8px; background: #fff; }
.ep-uempty__logo img { height: 32px; width: auto; }
.ep-uempty__media .ep-mono { position: absolute; left: 12px; bottom: 12px; }
.ep-uempty__copy { display: grid; gap: 12px; justify-items: start; }
.ep-uempty__copy .ep-h3 { margin: 0; letter-spacing: -.02em; }
.ep-uempty__copy p { margin: 0; color: var(--muted); }
.ep-uempty__list { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.ep-uempty__list li { display: flex; gap: 8px; align-items: flex-start; }
.ep-uempty__list svg { width: 16px; height: 16px; color: var(--ok); flex: none; margin-top: 4px; }

/* More details */
.ep-um__head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.ep-um__head .ep-h2 { margin: 0; }
.ep-um__body { display: grid; gap: 32px; }
@media (min-width: 992px) { .ep-um__body { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; } }
.ep-ufacts { display: grid; margin: 0; border-top: 1px solid var(--line); }
.ep-ufacts > div { display: grid; grid-template-columns: minmax(110px, .4fr) 1fr; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.ep-ufacts dt { color: var(--muted); font-size: 15px; }
.ep-ufacts dd { margin: 0; color: var(--ink); }
.ep-um__sections { display: grid; border-top: 1px solid var(--line); }
.ep-usection { border-bottom: 1px solid var(--line); padding: 4px 0; }
.ep-usection > summary { min-height: 48px; }
.ep-usection > summary h3 { font: 600 17px/1.3 var(--sans); letter-spacing: -.01em; }
.ep-usection > summary::after, .ep-uo__more > summary::after, details.ep-feenote > summary::after { font-family: var(--sans); }
.ep-usection p { color: var(--muted); max-width: 64ch; padding-bottom: 12px; line-height: 1.6; }
.ep-uo__more { border-top: 1px solid var(--line); }
.ep-uo__more > summary { min-height: 48px; align-items: center; color: var(--brand-deep); }

/* Related */
.ct-rel { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.ct-rel__row { display: grid; grid-template-columns: 96px minmax(0, 1fr) auto auto 32px; align-items: center; gap: 8px 24px; padding: 12px 16px 12px 12px; border-radius: 16px; background: #fff; box-shadow: inset 0 0 0 1px var(--line); color: var(--ink); text-decoration: none; transition: box-shadow 200ms ease-out; }
.ct-rel__row:hover { box-shadow: inset 0 0 0 1px var(--line-strong), var(--shadow-2); }
.ct-rel__row:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.ct-rel__thumb { display: block; width: 96px; aspect-ratio: 16 / 10; border-radius: 8px; overflow: hidden; background: var(--g-100, #eef1f6); }
.ct-rel__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ct-rel__thumb .ep-mono { width: 100%; height: 100%; border-radius: 0; }
.ct-rel__main { display: grid; gap: 2px; min-width: 0; }
.ct-rel__main strong { font-weight: 600; letter-spacing: -.01em; }
.ct-rel__main > span { color: var(--muted); font-size: 14px; }
.ct-rel__fee { display: grid; text-align: right; }
.ct-rel__fee small { color: var(--muted); font-size: 12px; }
.ct-rel__fee b { font-weight: 600; font-variant-numeric: tabular-nums; }
.ct-rel__n { color: var(--muted); font-size: 14px; white-space: nowrap; }
.ct-rel__go { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 8px; color: var(--ink); transition: background 150ms ease-out, color 150ms ease-out; }
.ct-rel__go svg { width: 14px; height: 14px; }
.ct-rel__row:hover .ct-rel__go { background: var(--ink); color: #fff; }
@media (max-width: 760px) {
    .ct-rel__row { grid-template-columns: 72px minmax(0, 1fr) 24px; gap: 4px 16px; }
    .ct-rel__thumb { width: 72px; grid-row: span 2; }
    .ct-rel__fee { grid-column: 2; text-align: left; }
    .ct-rel__n { display: none; }
    .ct-rel__go { grid-column: 3; grid-row: 1 / span 2; }
}
@media (min-width: 992px) and (max-height: 800px) {
    .ct-hero { padding-block: calc(var(--header-h) + 16px) 32px; }
    .ct-hero__title { font-size: clamp(2.25rem, 1rem + 3vw, 3.5rem); margin-bottom: 12px; }
    .ct-search, .ct-stats, .ct-presets { margin-top: 16px; }
}
@media (prefers-reduced-motion: reduce) { .ep-tab, .ep-prog__chev, .ct-rel__row, .ep-uc, .ep-course, .ep-cmp { transition: none; animation: none; } }
.ct-stats .nx-stat__n { font: 600 2rem/1 var(--sans); letter-spacing: -.03em; color: var(--ink); background: none; -webkit-text-fill-color: currentColor; }
.ct-stats .nx-stat__l { font: 400 14px/1.3 var(--sans); letter-spacing: 0; text-transform: none; color: var(--muted); }
.ct-stats .nx-stat { display: grid; gap: 4px; }
.ct-hero .ep-crumbs { padding-left: 0; }
.ep-seg--grid span { padding-inline: 10px; gap: 6px; font-size: 14px; white-space: nowrap; }
.ep-uc__logo .ep-ulogo { display: inline-flex; align-items: center; justify-content: center; overflow: hidden; background: #fff; border-radius: 8px; box-shadow: var(--shadow-1); }
.ep-uc__logo .ep-ulogo img { width: auto; height: auto; max-width: 100%; max-height: 30px; object-fit: contain; }
.ep-uc__logo .ep-mono { border-radius: 8px; box-shadow: var(--shadow-1); }
.ct-ladder .nx-badge, .ct-ladder__k .nx-badge { background: none; padding: 0; box-shadow: none; color: var(--muted); font: 600 14px/1.3 var(--sans); letter-spacing: 0; text-transform: none; }
.ct-ladder .nx-badge::before { display: none; }
.ep-course { padding-left: 20px; }
.ep-course::before { display: none; }
.ep-course .ep-badge, .ep-prog .ep-badge, .ep-uc .ep-badge { text-transform: none; letter-spacing: 0; font-weight: 600; background: var(--paper-2); color: var(--ink); }
.ep-course .ep-badge--ok, .ep-prog .ep-badge--ok { background: #e6f5ee; color: var(--ok); }
.ep-prog .ep-badge--muted { color: var(--muted); }
.ep-uh__plate:not(.ep-uh__plate--mono) { display: none; }

/* ═════════ v5 "Passport Colours" — catalog (finder, courses, university profile) ═════════ */
.ct-hero { background: #fff; border-bottom: 0; padding: calc(var(--header-h) + 10px) clamp(8px, 1.5vw, 24px) clamp(14px, 2.4vh, 28px); }
.ct-hero > .ep-container { max-width: none; }
.ct-hero__grid {
    position: relative; isolation: isolate; border-radius: var(--radius-lg); overflow: hidden;
    background-color: var(--c-tint, var(--brand-50));
    background-image: radial-gradient(circle at 1px 1px, color-mix(in srgb, var(--c, var(--brand)) 22%, transparent) 1.3px, transparent 1.6px); background-size: 18px 18px;
    padding: clamp(16px, 3vh, 36px) clamp(18px, 3.5vw, 48px);
}
.ct-hero__title { font-family: var(--display); font-weight: 800; letter-spacing: -.035em; line-height: .98; font-size: clamp(2.5rem, 1rem + 4.2vw, 4.75rem); max-width: 11ch; }
.ct-hero__title em { font-style: normal; color: var(--brand); background: linear-gradient(var(--sun), var(--sun)) no-repeat 0 88% / 100% .16em; padding-inline: .04em; }
.ct-hero__lead { color: var(--ink-2); }
.ct-hero .ep-eyebrow { color: var(--brand); }
.ct-search { box-shadow: inset 0 0 0 1.5px var(--line-strong), var(--shadow-1); border-radius: 999px; padding-left: 52px; }
.ct-search:focus-within { box-shadow: inset 0 0 0 1.5px var(--brand), 0 0 0 4px var(--brand-100, #dfe8ff); }
.ct-search .ep-btn { border-radius: 999px; }
.ct-stats .nx-stat__n { font-family: var(--display); font-weight: 800; font-size: clamp(2rem, 1.4rem + 1.6vw, 2.75rem); color: var(--brand); }
.ct-hero__route { position: absolute; z-index: 0; left: 36%; right: 40%; top: 10%; height: 40%; color: var(--brand); opacity: .45; pointer-events: none; }
.ct-hero__route path { fill: none; stroke: currentColor; stroke-width: 2.5; stroke-linecap: round; stroke-dasharray: 0 .016; }
.ep-mo .ct-hero__route path { animation: v5-dash 26s linear infinite; }
.ct-hero .ct-hero__grid > .v5-stamp { position: absolute; z-index: 2; right: clamp(10px, 2vw, 26px); bottom: clamp(10px, 2vw, 26px); }
@media (max-width: 991px) { .ct-hero__route, .ct-hero__grid > .v5-stamp { display: none; } }

/* radar tiles: one colour per country */
.ct-radar { box-shadow: var(--shadow-3); border-radius: var(--radius-lg); }
.ct-ctile { border-radius: 14px; box-shadow: inset 0 0 0 1.5px var(--line); position: relative; overflow: hidden; transition: background 200ms var(--ease), box-shadow 200ms var(--ease), color 200ms var(--ease), transform 220ms var(--spring); }
.ct-ctile::after { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 6px; background: var(--c); transition: width 220ms var(--ease); }
.ct-ctile:hover, .ct-ctile:focus-visible, .ct-ctile.is-active { background: var(--c); color: var(--c-on); box-shadow: none; transform: translateX(4px); }
.ct-ctile:hover::after, .ct-ctile.is-active::after { width: 0; }
.ct-ctile:hover .ct-ctile__name small, .ct-ctile:hover .ct-ctile__fee, .ct-ctile:hover .ct-ctile__fee small, .ct-ctile:hover .ct-ctile__go,
.ct-ctile.is-active .ct-ctile__name small, .ct-ctile.is-active .ct-ctile__fee, .ct-ctile.is-active .ct-ctile__fee small, .ct-ctile.is-active .ct-ctile__go { color: inherit; }
.ct-ctile__go { background: var(--c-tint, var(--brand-50)); color: var(--c); }
.ct-ctile:hover .ct-ctile__go, .ct-ctile.is-active .ct-ctile__go { background: var(--c-on); color: var(--c); }
.ct-ctile__name { font: 700 16px/1.2 var(--display); }
.ct-ctile__name small { font: 500 12px/1.4 var(--sans); text-transform: none; letter-spacing: 0; color: var(--muted); }
.ct-ctile__fee { font: 700 13px/1.25 var(--display); color: var(--c); }
.ct-ctile__fee small { font: 500 11px/1.2 var(--sans); color: var(--muted); }

/* fee ladder (courses) */
.ct-ladder { background: #fff; box-shadow: var(--shadow-3); border-radius: var(--radius-lg); }
.ct-ladder__list a { border-radius: 12px; transition: background 180ms var(--ease), transform 220ms var(--ease); }
.ct-ladder__list a:hover { background: var(--brand-50); transform: translateX(4px); }
.ct-ladder__track i { background: var(--brand); border-radius: 999px; box-shadow: 6px 0 0 -1px var(--sun); }
.ct-presets__list a { border-radius: 999px; transition: background 160ms var(--ease), transform 200ms var(--spring); }
.ct-presets__list a:hover { background: var(--sun); color: var(--ink); transform: translateY(-2px); }

/* finder layout */
.ct-finder, .ep-browse-section { background: #fff; }
.ep-filters { border-radius: var(--radius-lg); box-shadow: inset 0 0 0 1.5px var(--line), var(--shadow-1); }
.ep-filters .ep-flabel, .ep-filters legend { font-family: var(--display); font-weight: 700; }
.ep-seg--grid span { white-space: normal; line-height: 1.15; text-align: left; font-size: 13.5px; padding-inline: 8px; min-width: 0; }
.ep-uc { border-radius: 20px; box-shadow: inset 0 0 0 1.5px var(--line); transition: transform 260ms var(--spring), box-shadow 220ms var(--ease); overflow: hidden; }
.ep-uc::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 5px; background: var(--c, var(--brand)); transform-origin: left; transform: scaleX(.18); transition: transform 360ms var(--ease); pointer-events: none; z-index: 2; }
.ep-uc:hover { transform: translateY(-5px); box-shadow: inset 0 0 0 1.5px var(--c, var(--brand)), var(--shadow-3); }
.ep-uc:hover::after { transform: scaleX(1); }
.ep-cmp-btn { transition: transform 220ms var(--spring), background 160ms var(--ease); }
.ep-cmp-btn:hover { background: var(--sun); color: var(--ink); transform: rotate(90deg) scale(1.08); }
.ep-cmp-btn[aria-pressed="true"] { background: var(--sun); color: var(--ink); }

/* university profile */
.ct-uhero .ct-hero__grid { background-color: color-mix(in srgb, var(--c) 10%, #fff); }
.ct-uhero .ct-hero__title { max-width: 14ch; font-size: clamp(2.2rem, 1rem + 3.2vw, 4rem); }
.ct-uhero__pic { border-radius: var(--radius-lg) var(--radius-lg) var(--radius-lg) 0; box-shadow: 0 0 0 6px #fff, var(--shadow-3); transform: rotate(1.2deg); }
.ct-facts { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-3); backdrop-filter: none; -webkit-backdrop-filter: none; }
.ct-facts > div { border-left: 2px dashed var(--line-strong); }
.ct-facts > div:first-child { border-left: 0; }
.ct-facts dd { font-family: var(--display); font-weight: 800; }
.ep-costcard { background: var(--brand); color: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow-3); }
.ep-costcard * { color: inherit; }
.ep-costcard .ep-btn { background: var(--sun); color: var(--ink); }
.ep-uprog, .ct-related { background: #fff; }
.ep-prog, .ep-course { border-radius: 18px; transition: transform 240ms var(--ease), box-shadow 200ms var(--ease); }
.ep-prog:hover, .ep-course:hover { transform: translateY(-3px); box-shadow: inset 0 0 0 1.5px var(--brand), var(--shadow-2); }
.ct-rel__row { border-radius: 16px; transition: background 180ms var(--ease), transform 220ms var(--ease); }
.ct-rel__row:hover { background: var(--brand-50); transform: translateX(4px); }
@media (max-width: 760px) { .ct-hero { padding-inline: 8px; } .ct-uhero__pic { transform: none; } .ct-facts > div { border-left: 0; } }
@media (min-width: 992px) and (max-height: 800px) { .ct-hero__title { font-size: clamp(2.25rem, 1rem + 3vw, 3.75rem); } }
@media (prefers-reduced-motion: reduce) { .ct-ctile, .ep-uc, .ep-uc::after, .ep-cmp-btn, .ct-ladder__list a, .ct-presets__list a, .ep-prog, .ep-course, .ct-rel__row { transition: none; } .ep-uc:hover, .ct-ctile:hover { transform: none; } }
.ct-hero__grid > :not(.ct-hero__route):not(.v5-stamp) { position: relative; z-index: 1; }
.ct-hero .ct-hero__grid > .v5-stamp { right: auto; left: 41%; bottom: clamp(8px, 1.6vw, 20px); }
.ct-hero .ep-crumbs, .ct-hero .ep-crumbs a, .ct-hero .ep-crumbs span { color: var(--ink-2); opacity: 1; }
.ct-hero .ep-crumbs a:hover { color: var(--brand); }
.ct-stats .nx-stat { justify-items: start; text-align: left; }
.ep-costcard :is(h2, h3, p, span, b, small, li, div, dt, dd, strong, em, a:not(.ep-btn)) { color: #fff; }
.ep-costcard :is(small, p) { color: rgba(255, 255, 255, .88); }
.ep-costcard .ep-btn { background: var(--sun); color: var(--ink); }
.ep-costcard .ep-btn * { color: inherit; }
.ep-costcard .ep-btn :is(span, svg, b) { color: var(--ink); }
.ep-costbar { background: rgba(255, 255, 255, .25); border-radius: 999px; overflow: hidden; }
.ep-costbar .is-t, .ep-costlist .is-t::before { background: #fff; }
.ep-costbar .is-l, .ep-costlist .is-l::before { background: var(--sun); }
.ep-costbar .is-o, .ep-costlist .is-o::before { background: rgba(255, 255, 255, .55); }
.ep-cmp { background: var(--brand); color: #fff; border-radius: 999px; box-shadow: var(--shadow-3), 0 0 0 4px #fff; -webkit-backdrop-filter: none; backdrop-filter: none; }
.ep-cmp__count, .ep-cmp__clear { color: #fff; }
.ep-cmp__go { background: var(--sun); color: var(--ink); border-radius: 999px; }
.ep-cmp__go:disabled { background: rgba(255, 255, 255, .25); color: rgba(255, 255, 255, .8); }
.ep-cmp__list li { background: rgba(255, 255, 255, .16); color: #fff; border-radius: 999px; }
