/* ==========================================================================
   University details page — "Sonnet v2" design.
   Loaded only by resources/views/frontend/pages/university-details.blade.php.
   Everything is namespaced .ud-* and scoped under main.ud so the live site
   header, footer, cookie banner, chat widget and the shared course grid /
   info sections are untouched. JS: public/frontend/assets/js/university-details-sonnet.js
   ========================================================================== */

main.ud {
    overflow: visible;
    overflow: clip;
}

@media (prefers-reduced-motion: no-preference) {
    html { scroll-behavior: smooth; }
}

.ud {
    --ink: #0C1F4A;
    --ink-2: #17307E;
    --ink-soft: #3C4C73;
    --amber: #F7A400;
    --amber-deep: #E08600;
    --sun: #FFD37A;
    --peach: #FFE9CC;
    --paper: #FFF9F0;
    --paper-2: #FFF1DC;
    --sage: #DDEBE3;
    --line: rgba(12, 31, 74, .14);
    --radius: 22px;
    --ud-display: 'Bricolage Grotesque', 'Trebuchet MS', sans-serif;
    --ud-body: 'Hanken Grotesk', 'Segoe UI', sans-serif;
    --ease: cubic-bezier(.2, .7, .2, 1);
    font-family: var(--ud-body);
    color: var(--ink);
    background: var(--paper);
    line-height: 1.6;
    font-size: 17px;
    -webkit-font-smoothing: antialiased;
}

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

:where(.ud) h1,
:where(.ud) h2,
:where(.ud) h3,
:where(.ud) p,
:where(.ud) ul,
:where(.ud) ol,
:where(.ud) figure { margin: 0; }
:where(.ud) ul,
:where(.ud) ol { padding: 0; }
.ud img,
.ud svg { max-width: 100%; }
.ud-hero img,
.ud-hero svg,
.ud-campuses img,
.ud-campuses svg { display: block; }
.ud button { font: inherit; }
.ud h1,
.ud h2,
.ud h3 {
    font-family: var(--ud-display);
    line-height: 1.05;
    letter-spacing: -.025em;
    color: inherit;
    text-transform: none;
}
.ud h2 { font-size: clamp(2rem, 4.2vw, 3.2rem); font-weight: 700; }
.ud a { color: inherit; }

.ud-wrap { width: min(1160px, calc(100% - 48px)); margin-inline: auto; }
.ud-eyebrow {
    font-family: var(--ud-body);
    font-weight: 700;
    font-size: .78rem;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--amber-deep);
    display: flex;
    align-items: center;
    gap: .7rem;
    margin-bottom: 1rem;
}
.ud-eyebrow::before { content: ""; width: 34px; height: 3px; border-radius: 3px; background: var(--amber); }
.ud > section { padding: clamp(64px, 9vw, 120px) 0; position: relative; scroll-margin-top: 90px; }
.ud-lead { font-size: 1.15rem; color: var(--ink-soft); max-width: 56ch; }

/* Pointer cursor (project rule: clickable things must show a pointer) */
.ud button:not(:disabled),
.ud [role=button]:not(:disabled),
.ud label[for],
.ud summary,
.ud a[href] { cursor: pointer; }
.ud button:disabled { cursor: not-allowed; }

/* Buttons */
.ud-btn {
    display: inline-flex;
    align-items: center;
    gap: .6rem;
    padding: 1rem 1.6rem;
    border-radius: 999px;
    font-weight: 700;
    text-decoration: none;
    border: 2px solid transparent;
    transition: transform .2s, box-shadow .2s, background .2s;
    font-size: 1rem;
    line-height: 1;
    font-family: var(--ud-body);
    text-transform: none;
}
.ud-btn:hover { transform: translateY(-2px); }
.ud-btn::before,
.ud-btn::after { display: none !important; }
.ud-btn--primary { background: var(--amber); color: var(--ink) !important; box-shadow: 0 10px 24px -10px rgba(247, 164, 0, .9); }
.ud-btn--primary:hover { background: #FFB41F; box-shadow: 0 16px 30px -12px rgba(247, 164, 0, .95); }
.ud-btn--ghost { border-color: rgba(255, 255, 255, .55); color: #fff !important; background: transparent; }
.ud-btn--ghost:hover { background: rgba(255, 255, 255, .12); }
.ud-btn--dark { background: var(--ink); color: #fff !important; }
.ud-btn--dark:hover { background: var(--ink-2); }
.ud-btn--outline { border-color: rgba(255, 255, 255, .55); color: #fff !important; background: transparent; }
.ud-btn--outline:hover { background: rgba(255, 255, 255, .12); }
.ud-btn svg { width: 18px; height: 18px; }

/* ============ HERO ============ */
.ud > section.ud-hero {
    position: relative;
    isolation: isolate;
    color: #fff;
    overflow: hidden;
    background: #0A1A40;
    min-height: max(640px, calc(100svh - 150px));
    display: flex;
    align-items: flex-end;
    padding: 0;
}
.ud-hero__media { position: absolute; inset: 0; z-index: -3; }
.ud-hero__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 62% 40%;
    animation: ud-drift 18s var(--ease) both;
}
.ud-hero__media--logo img { object-fit: contain; padding: 8%; opacity: .25; filter: blur(2px); animation: none; }
@keyframes ud-drift { from { transform: scale(1.1); } to { transform: scale(1); } }
.ud-hero__warm {
    position: absolute;
    inset: 0;
    z-index: -2;
    mix-blend-mode: soft-light;
    opacity: .9;
    background: radial-gradient(70% 90% at 82% 30%, rgba(255, 176, 41, .95), transparent 62%), linear-gradient(180deg, rgba(247, 164, 0, .25), transparent 50%);
}
.ud-hero__veil {
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        linear-gradient(180deg, rgba(10, 26, 64, .5) 0%, rgba(10, 26, 64, .12) 28%, rgba(10, 26, 64, .5) 62%, rgba(8, 20, 52, .94) 100%),
        linear-gradient(90deg, rgba(10, 26, 64, .8) 0%, rgba(18, 48, 107, .38) 55%, rgba(10, 26, 64, 0) 100%);
}
.ud-hero__glow {
    position: absolute;
    right: -8%;
    top: 8%;
    width: min(52vw, 720px);
    aspect-ratio: 1;
    border-radius: 50%;
    z-index: -1;
    pointer-events: none;
    background: radial-gradient(circle, rgba(255, 211, 122, .42), rgba(247, 164, 0, .12) 45%, transparent 68%);
    filter: blur(10px);
}
.ud-hero__inner {
    padding: clamp(70px, 12vh, 130px) 0 clamp(48px, 8vh, 96px);
    width: min(1160px, calc(100% - 48px));
    margin-inline: auto;
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(0, .8fr);
    column-gap: clamp(32px, 6vw, 90px);
    align-items: end;
}
.ud-hero__sig {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    font-weight: 700;
    font-size: .78rem;
    letter-spacing: .2em;
    text-transform: uppercase;
    margin-bottom: clamp(18px, 3vh, 30px);
    color: var(--sun);
}
.ud-hero__sig i { display: block; width: 44px; height: 2px; background: var(--amber); border-radius: 2px; }
.ud-hero__sig span:last-child { color: rgba(255, 255, 255, .78); }
.ud .ud-hero h1 {
    font-size: clamp(2.5rem, min(6.4vw, 12vh), 5.4rem);
    font-weight: 800;
    max-width: 14ch;
    text-wrap: balance;
    line-height: 1;
    text-shadow: 0 2px 30px rgba(8, 20, 52, .35);
    color: #fff;
}
.ud .ud-hero--long h1 { font-size: clamp(2.1rem, min(5vw, 10vh), 4.2rem); max-width: 18ch; }
.ud-hero h1 em { font-style: normal; color: var(--sun); }
.ud-hero__lede { font-size: clamp(1.05rem, 1.6vw, 1.3rem); max-width: none; width: 100%; margin: 1.4rem 0 2.1rem !important; color: rgba(255, 255, 255, .92); }
.ud-cta-row { display: flex; gap: .9rem; flex-wrap: wrap; }
.ud-hero__note { margin-top: 1.2rem !important; font-size: .9rem; color: rgba(255, 255, 255, .78); }
/* VA-style free assurance, tuned for the dark hero */
.ud p.ud-hero__assure {
    display: flex;
    align-items: flex-start;
    gap: 7px;
    margin: 1.15rem 0 0 !important;
    max-width: none;
    width: 100%;
    font-size: .8125rem;
    line-height: 1.45;
    color: rgba(255, 255, 255, .82);
}
.ud-hero__assure i {
    margin-top: 2px;
    color: #4ade80;
    font-size: .8125rem;
    flex: none;
}
.ud-hero__assure strong {
    color: #fff;
    font-weight: 700;
}
.ud-hero__meta { list-style: none; display: flex; flex-wrap: wrap; gap: .5rem 1.4rem; margin: .9rem 0 0; padding: 0; font-size: .85rem; font-weight: 600; color: var(--sun); }
.ud-hero__meta li { list-style: none; }
.ud-hero-card {
    align-self: end;
    background: rgba(255, 249, 240, .12);
    border: 1px solid rgba(255, 255, 255, .28);
    backdrop-filter: blur(14px) saturate(1.2);
    -webkit-backdrop-filter: blur(14px) saturate(1.2);
    border-radius: var(--radius);
    padding: 0;
    overflow: hidden;
    box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .55);
}
.ud-hero-card__media { display: block; margin: 0; width: 100%; aspect-ratio: 16 / 10; overflow: hidden; background: rgba(255, 255, 255, .92); position: relative; }
.ud-hero-card__media img { width: 100%; height: 100%; object-fit: cover; object-position: center 40%; }
.ud-hero-card__media--contain img { object-fit: contain; padding: 14px; }
.ud-hero-card__badge {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 2;
    padding: .35rem .7rem;
    border-radius: 999px;
    background: rgba(8, 20, 52, .88);
    color: #fff;
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
    line-height: 1;
    box-shadow: 0 8px 18px -10px rgba(0, 0, 0, .55);
}
.ud-hero-card__body { padding: 22px 26px; }
.ud .ud-hero-card h2 { font-size: 1.15rem; font-weight: 700; margin-bottom: .9rem; color: var(--sun); }
.ud-hero-card ul { list-style: none; }
.ud-hero-card li { list-style: none; position: relative; padding: .4rem 0 .4rem 1.9rem; font-weight: 600; font-size: .98rem; color: #fff; }
.ud-hero-card li::before { content: ""; position: absolute; left: 0; top: .8rem; width: 13px; height: 7px; border-left: 3px solid var(--amber); border-bottom: 3px solid var(--amber); transform: rotate(-45deg); }
.ud-hero-card small { display: block; margin-top: .8rem; padding-top: .8rem; border-top: 1px solid rgba(255, 255, 255, .22); color: rgba(255, 255, 255, .8); font-size: .85rem; line-height: 1.45; }

/* ============ PROOF STRIP ============ */
.ud-proof { margin-top: -1px; background: var(--ink); color: #fff; }
.ud-proof .ud-wrap { display: grid; grid-template-columns: repeat(var(--ud-proof-cols, 4), 1fr); }
.ud-proof__item { padding: 34px 24px; border-left: 1px solid rgba(255, 255, 255, .14); }
.ud-proof__item:first-child { border-left: 0; padding-left: 0; }
.ud-proof b { display: block; font-family: var(--ud-display); font-size: clamp(2rem, 3.6vw, 3rem); font-weight: 800; color: var(--sun); line-height: 1; }
.ud-proof span { font-size: .95rem; opacity: .85; display: block; margin-top: .5rem; }

/* ============ OVERVIEW ============ */
.ud > section.ud-overview { background: linear-gradient(180deg, var(--paper) 0%, var(--paper-2) 100%); }
.ud-overview__grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(32px, 6vw, 90px); align-items: start; }
.ud-overview h2 { margin-bottom: 1.4rem; max-width: 14ch; }
.ud-overview p + p { margin-top: 1rem; }
.ud-overview .ud-lead + p { color: var(--ink-soft); }
.ud-prose p { color: var(--ink-soft); }
.ud-prose a { color: var(--ink-2); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.ud-prose__links { margin-top: 1.2rem !important; font-size: .98rem; }
.ud-help { list-style: none; counter-reset: s; border-left: 3px solid var(--amber); padding-left: 0; }
.ud-help li { counter-increment: s; padding: 0 0 28px 32px; position: relative; list-style: none; }
.ud-help li:last-child { padding-bottom: 0; }
.ud-help li::before { content: counter(s); position: absolute; left: -17px; top: -2px; width: 31px; height: 31px; border-radius: 50%; background: var(--ink); color: #fff; font-family: var(--ud-display); font-weight: 700; display: grid; place-items: center; font-size: .9rem; }
.ud .ud-help h3 { font-size: 1.25rem; margin-bottom: .25rem; }
.ud-help p { font-size: .98rem; color: var(--ink-soft); }
.ud-side-title { font-family: var(--ud-display); font-weight: 700; font-size: 1.05rem; margin-bottom: 1.4rem; color: var(--ink-2); }

/* ============ WHY ============ */
.ud > section.ud-why { background: var(--paper-2); padding-top: 0; padding-bottom: 0; }
.ud-why__band { background: linear-gradient(120deg, var(--ink-2), var(--ink)); color: #fff; padding: clamp(56px, 8vw, 100px) 0; position: relative; overflow: hidden; border-radius: 0 0 60px 60px; }
.ud-why__band::after { content: ""; position: absolute; right: -120px; top: -120px; width: 520px; height: 520px; border-radius: 50%; background: repeating-radial-gradient(circle, rgba(255, 211, 122, .18) 0 2px, transparent 2px 22px); }
.ud-why__band .ud-eyebrow { color: var(--sun); }
.ud-why__band .ud-eyebrow::before { background: var(--sun); }
.ud-why__grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(30px, 6vw, 90px); position: relative; z-index: 1; }
.ud-why h2 { max-width: 11ch; color: #fff; }
.ud-reasons { list-style: none; }
.ud-reasons li { display: grid; grid-template-columns: 70px 1fr; gap: 1rem; padding: 24px 0; border-top: 1px solid rgba(255, 255, 255, .18); list-style: none; }
.ud-reasons li:first-child { border-top: 0; padding-top: 0; }
.ud-reasons__n { font-family: var(--ud-display); font-size: 2.4rem; font-weight: 800; color: var(--amber); line-height: 1; }
.ud .ud-reasons h3 { font-size: 1.4rem; margin-bottom: .3rem; color: #fff; }
.ud-reasons p { color: rgba(255, 255, 255, .8); font-size: 1rem; }

/* ============ COURSES & STUDY MODES ============ */
.ud > section.ud-modes { background: var(--paper-2); padding-top: clamp(12px, 2vw, 28px); margin-top: 0; }
.ud-modes__head { display: flex; justify-content: space-between; align-items: end; gap: 2rem; flex-wrap: wrap; margin-bottom: 2.4rem; }
.ud-modes__head h2 { max-width: 13ch; }
.ud-tabs { display: inline-flex; background: #fff; border-radius: 999px; padding: 6px; box-shadow: 0 10px 30px -18px rgba(12, 31, 74, .5); flex-wrap: wrap; }
.ud-tab { border: 0; background: transparent; padding: .7rem 1.3rem; border-radius: 999px; font-weight: 700; color: var(--ink-soft); }
.ud-tab[aria-selected="true"] { background: var(--ink); color: #fff; }
.ud-panel { display: none; grid-template-columns: 1fr 1fr; gap: clamp(24px, 5vw, 70px); background: #fff; border-radius: var(--radius); padding: clamp(28px, 4vw, 52px); box-shadow: 0 30px 60px -40px rgba(12, 31, 74, .5); }
.ud-panel.is-on { display: grid; }
.ud .ud-panel h3 { font-size: 1.8rem; margin-bottom: .6rem; }
.ud-panel__intro { color: var(--ink-soft); margin-bottom: 1.4rem !important; }
.ud-tags { display: flex; flex-wrap: wrap; gap: .5rem; }
.ud-tag { padding: .45rem .95rem; border-radius: 999px; background: var(--peach); font-weight: 600; font-size: .92rem; }
.ud-tag--b { background: var(--sage); }
.ud-ladder { list-style: none; position: relative; align-self: start; }
.ud-ladder li { display: flex; align-items: center; gap: 1rem; padding: .95rem 0; border-bottom: 1px dashed var(--line); font-weight: 600; list-style: none; }
.ud-ladder li:last-child { border: 0; }
.ud-ladder__lvl { min-width: 78px; font-family: var(--ud-display); font-weight: 800; color: var(--amber-deep); }
.ud-ladder small { display: block; font-weight: 500; color: var(--ink-soft); }
.ud-mini-foundation { margin-top: 1.8rem; padding: 1.2rem 1.4rem; border-radius: 16px; background: linear-gradient(100deg, var(--sun), var(--peach)); font-weight: 600; }
.ud-mini-foundation b { font-family: var(--ud-display); font-size: 1.3rem; }
.ud-all-courses { margin-top: 2rem; display: flex; gap: 1rem; align-items: center; flex-wrap: wrap; color: var(--ink-soft); }
.ud-all-courses a { font-weight: 700; color: var(--ink-2); }

/* ============ WHAT YOU'LL STUDY ============ */
.ud > section.ud-study {
    background:
        radial-gradient(rgba(23, 48, 126, .10) 1px, transparent 1.4px) 0 0 / 26px 26px,
        linear-gradient(180deg, var(--paper) 0%, #FFFDF8 100%);
}
.ud-study__grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); column-gap: clamp(36px, 7vw, 100px); align-items: start; }
.ud-study__intro { position: sticky; top: 96px; display: grid; gap: 1.3rem; }
.ud-study__intro h2 { max-width: 11ch; }
.ud-study__intro h2 em { font-style: normal; color: var(--amber-deep); }
.ud-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.ud-chip { min-height: 42px; padding: 0 17px; border-radius: 999px; border: 1.5px solid rgba(12, 31, 74, .2); background: rgba(255, 255, 255, .8); font-size: .9rem; font-weight: 700; color: var(--ink); transition: all .25s var(--ease); }
.ud-chip:hover { border-color: var(--ink); }
.ud-chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.ud-study__hint { font-size: .92rem; color: var(--ink-soft); display: flex; gap: .6rem; align-items: flex-start; }
.ud-study__hint svg { width: 18px; height: 18px; flex: none; margin-top: .2rem; color: var(--amber-deep); }
.ud-subjects { background: #fff; border-radius: var(--radius); border-top: 4px solid var(--amber); box-shadow: 0 34px 70px -44px rgba(12, 31, 74, .55); overflow: hidden; }
.ud-subject { position: relative; display: grid; grid-template-columns: 42px minmax(0, 1fr) 46px; column-gap: 14px; align-items: center; padding: 24px 22px 24px 20px; border-bottom: 1px solid var(--line); text-decoration: none; color: inherit; transition: background-color .3s var(--ease), padding .3s var(--ease); }
.ud-subject[hidden] { display: none; }
.ud-subject__no { align-self: start; padding-top: .5rem; font-family: var(--ud-display); font-weight: 800; font-size: .95rem; color: var(--amber-deep); }
.ud-subject__name { display: block; font-family: var(--ud-display); font-weight: 700; font-size: clamp(1.4rem, 2.5vw, 2.05rem); line-height: 1.1; letter-spacing: -.02em; color: var(--ink); transition: color .25s; }
.ud-subject__eg { display: block; margin-top: .45rem; font-size: .93rem; line-height: 1.5; color: var(--ink-soft); }
.ud-subject__go { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 50%; border: 1.5px solid rgba(12, 31, 74, .2); color: var(--ink); transition: all .3s var(--ease); }
.ud-subject__go svg { width: 18px; height: 18px; }
.ud-subject:hover,
.ud-subject:focus-visible { background: var(--paper); padding-left: 30px; }
.ud-subject:hover .ud-subject__name { color: var(--ink-2); }
.ud-subject:hover .ud-subject__go { background: var(--amber); border-color: var(--amber); transform: rotate(-45deg); }
.ud-subjects__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; padding: 20px 22px; font-size: .92rem; color: var(--ink-soft); background: var(--paper); }
.ud-subjects__foot a { font-weight: 700; color: var(--ink-2); }

/* ============ LIVE COURSE LIST (shared grid, existing markup/JS) ============ */
.ud > section.ud-live { background: #fff; padding-bottom: clamp(48px, 6vw, 84px); font-family: var(--tg-body-font-family, 'Inter', sans-serif); font-size: 16px; }
.ud-live__head { margin-bottom: 1.6rem; }
.ud-live__head h2 { max-width: 20ch; }
.ud-live .available-courses-card { margin-bottom: 0; }

/* ============ WHERE YOU'LL STUDY ============ */
.ud > section.ud-campuses { background: var(--paper-2); overflow: hidden; padding-bottom: clamp(56px, 7vw, 96px); }
.ud-camp__head { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); column-gap: clamp(30px, 7vw, 110px); align-items: end; margin-bottom: clamp(30px, 4vw, 54px); }
.ud-camp__head h2 { max-width: 14ch; }
.ud-camp__head h2 em { font-style: normal; color: var(--amber-deep); }
.ud-camp__ctrl { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 20px; margin-top: 1.3rem; }
.ud-camp__ctrl a { font-weight: 700; color: var(--ink-2); }
.ud-camp__arrows { display: flex; gap: 10px; }
.ud-arrow { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 50%; border: 1.5px solid rgba(12, 31, 74, .25); background: #fff; color: var(--ink); transition: all .25s var(--ease); padding: 0; }
.ud-arrow:hover { background: var(--ink); border-color: var(--ink); color: #fff; }
.ud-arrow svg { width: 18px; height: 18px; }
.ud-track { --edge: max(24px, calc((100% - 1160px) / 2)); display: flex; gap: clamp(14px, 1.8vw, 24px); overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-padding-inline: var(--edge); padding: 6px var(--edge) 14px; scrollbar-width: none; }
.ud-track::-webkit-scrollbar { display: none; }
.ud-city { flex: none; width: clamp(250px, 28vw, 380px); scroll-snap-align: start; color: inherit; display: block; }
.ud-city__link { display: block; text-decoration: none; color: inherit; }
.ud-city__img { position: relative; aspect-ratio: 3 / 4; overflow: hidden; border-radius: var(--radius); background: linear-gradient(160deg, var(--ink-2), var(--ink)); box-shadow: 0 26px 50px -34px rgba(12, 31, 74, .7); margin: 0; }
.ud-city__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.6s var(--ease); }
.ud-city__link:hover .ud-city__img img { transform: scale(1.06); }
.ud-city__img::after { content: ""; position: absolute; inset: 42% 0 0 0; background: linear-gradient(180deg, transparent, rgba(10, 26, 64, .9)); }
.ud-city__img::before { content: ""; position: absolute; inset: 0; z-index: 1; border-radius: inherit; box-shadow: inset 0 0 0 0 var(--amber); transition: box-shadow .3s; }
.ud-city__link:hover .ud-city__img::before,
.ud-city.is-picked .ud-city__img::before { box-shadow: inset 0 0 0 4px var(--amber); }
.ud-city__name { position: absolute; left: 22px; right: 22px; bottom: 20px; z-index: 2; color: #fff; }
.ud-city__name small { display: block; font-family: var(--ud-display); font-weight: 800; font-size: .95rem; color: var(--sun); margin-bottom: .2rem; }
.ud .ud-city__name h3 { font-weight: 800; font-size: clamp(1.7rem, 2.6vw, 2.4rem); line-height: 1; color: #fff; overflow-wrap: anywhere; }
.ud-city__meta { display: flex; justify-content: space-between; gap: 12px; padding: 14px 4px 0; font-size: .88rem; line-height: 1.45; }
.ud-city__meta b { font-weight: 700; color: var(--ink); }
.ud-city__meta span { color: var(--ink-soft); text-align: right; }
.ud-city__sites { padding: 10px 0 0; display: grid; gap: .75rem; }
.ud-city__site {
    padding: 12px 14px;
    border-radius: 14px;
    background: #fff;
    border: 1px solid rgba(12, 31, 74, .08);
    box-shadow: 0 10px 24px -20px rgba(12, 31, 74, .45);
    font-size: .84rem;
    line-height: 1.45;
    color: var(--ink-soft);
}
.ud-city__site b { display: block; color: var(--ink); font-weight: 700; margin-bottom: .35rem; }
.ud-city__address {
    display: block;
    margin: 0;
    font-style: normal;
    font-weight: 600;
    color: var(--ink);
    font-size: .9rem;
    line-height: 1.4;
}
.ud-city__site-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .35rem .85rem;
    margin-top: .55rem;
}
.ud-city__site-meta em { font-style: normal; color: var(--ink-soft); }
.ud-city__site-meta a { font-weight: 700; color: var(--ink-2); text-decoration: none; }
.ud-city__site-meta a:hover { text-decoration: underline; text-underline-offset: 2px; }
.ud-city--online .ud-city__img {
    background:
        repeating-linear-gradient(115deg, rgba(255, 255, 255, .06) 0 1px, transparent 1px 18px),
        radial-gradient(380px 300px at 50% 15%, rgba(247, 164, 0, .6), transparent 70%),
        linear-gradient(180deg, #1B3A8C, var(--ink));
}
.ud-city--online .ud-city__img::after { display: none; }
.ud-city__online { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end; padding: 26px 22px; color: #fff; z-index: 2; }
.ud-city__online .ud-city__name { position: static; }
.ud-city__online p { margin-top: .7rem !important; font-size: .95rem; line-height: 1.5; color: rgba(255, 255, 255, .85); }
.ud-city__filter { margin-top: .6rem; border: 0; background: rgba(25, 29, 136, .08); color: var(--ink-2); font-weight: 700; font-size: .82rem; border-radius: 999px; padding: .4rem .9rem; transition: background .2s, color .2s; }
.ud-city__filter:hover { background: var(--ink-2); color: #fff; }
.ud-camp__note { margin-top: 1.4rem !important; font-size: .86rem; color: var(--ink-soft); }

/* Campus map — Leaflet panes (200–700) / controls (1000) must stay BELOW the sticky AF header
   (.sticky-menu z-index:99): isolate the whole block in its own stacking context. */
.ud-maps { margin-top: clamp(36px, 5vw, 64px); padding-top: clamp(28px, 4vw, 48px); border-top: 1px solid var(--line); position: relative; z-index: 1; isolation: isolate; }
.ud-maps__head { max-width: 52ch; margin-bottom: clamp(22px, 3vw, 36px); }
.ud .ud-maps__head h3 { font-size: clamp(1.45rem, 2.6vw, 2rem); font-weight: 700; letter-spacing: -.02em; line-height: 1.15; margin-bottom: .55rem; }
.ud-maps__head p { font-size: .95rem; color: var(--ink-soft); }
.ud-maps__frame { position: relative; z-index: 0; isolation: isolate; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; background: #fff; box-shadow: 0 18px 36px -28px rgba(12, 31, 74, .45); }
.ud-maps__frame::after { content: ""; position: absolute; inset: 0; pointer-events: none; box-shadow: inset 0 0 0 1px rgba(12, 31, 74, .06); border-radius: inherit; z-index: 10; }
.ud-map { position: relative; z-index: 0; width: 100%; height: clamp(360px, 52vw, 520px); background: var(--paper-2); }
.ud-maps .leaflet-container { position: relative; z-index: 0; font-family: var(--ud-body); }
.ud-maps .leaflet-pane { z-index: 1; }
.ud-maps .leaflet-map-pane { z-index: 1; }
.ud-maps .leaflet-tile-pane { z-index: 1; }
.ud-maps .leaflet-overlay-pane { z-index: 2; }
.ud-maps .leaflet-shadow-pane { z-index: 3; }
.ud-maps .leaflet-marker-pane { z-index: 4; }
.ud-maps .leaflet-tooltip-pane { z-index: 5; }
.ud-maps .leaflet-popup-pane { z-index: 6; }
.ud-maps .leaflet-top,
.ud-maps .leaflet-bottom { z-index: 7; }
.ud-maps .leaflet-control { z-index: 7; }
.ud-maps__cap { padding: 12px 16px 14px; font-size: .8rem; color: var(--ink-soft); line-height: 1.4; border-top: 1px solid var(--line); background: linear-gradient(180deg, var(--paper), #fff); margin: 0; }
.ud-maps .leaflet-popup-content-wrapper { border-radius: 12px; box-shadow: 0 12px 28px -16px rgba(12, 31, 74, .45); font-family: var(--ud-body); color: var(--ink); }
.ud-maps .leaflet-popup-content { margin: 10px 14px; font-size: .9rem; font-family: var(--ud-display); }
.ud-maps .leaflet-popup-content strong { display: block; font-weight: 700; }
.ud-maps .leaflet-popup-content span { display: block; font-family: var(--ud-body); font-weight: 500; font-size: .82rem; color: var(--ink-soft); margin: 2px 0 4px; }
.ud-maps .leaflet-popup-content a { font-family: var(--ud-body); font-weight: 700; font-size: .82rem; color: var(--ink-2); }
.ud-maps .leaflet-popup-tip { box-shadow: none; }
.ud-maps .leaflet-container a.leaflet-popup-close-button { color: var(--ink-soft); }

/* ============ ENTRY & FEES ============ */
.ud > section.ud-entry { background: linear-gradient(180deg, var(--paper) 0%, var(--sage) 100%); }
.ud-entry__grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(30px, 6vw, 80px); }
.ud-entry h2 { max-width: 12ch; margin-bottom: 1.2rem; }
.ud-routes { display: flex; flex-direction: column; gap: .6rem; margin-top: 2rem; }
.ud-route { text-align: left; border: 0; background: rgba(255, 255, 255, .65); padding: 1.1rem 1.3rem; border-radius: 16px; font-weight: 700; display: flex; justify-content: space-between; align-items: center; gap: 1rem; color: var(--ink); transition: background .2s, transform .2s; }
.ud-route:hover { background: #fff; }
.ud-route[aria-selected="true"] { background: var(--ink); color: #fff; transform: translateX(8px); }
.ud-route small { font-weight: 500; opacity: .75; }
.ud-route-detail { background: #fff; border-radius: var(--radius); padding: clamp(28px, 4vw, 48px); box-shadow: 0 30px 60px -40px rgba(12, 31, 74, .6); min-height: 300px; }
.ud .ud-route-detail h3 { font-size: 1.7rem; margin-bottom: 1rem; }
.ud-route-detail ul { list-style: none; padding: 0; }
.ud-route-detail li { padding: .7rem 0 .7rem 2rem; position: relative; border-bottom: 1px solid var(--line); list-style: none; }
.ud-route-detail li::before { content: ""; position: absolute; left: 0; top: 1.05rem; width: 14px; height: 8px; border-left: 3px solid var(--amber-deep); border-bottom: 3px solid var(--amber-deep); transform: rotate(-45deg); }
.ud-route-detail p { margin-top: 1rem !important; color: var(--ink-soft); font-size: .95rem; }
.ud-fee-bar { margin-top: 2.4rem; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 3px solid var(--ink); }
.ud-fee-bar div { padding: 1.2rem 1.2rem 0 0; }
.ud-fee-bar b { font-family: var(--ud-display); font-size: 1.15rem; display: block; margin-bottom: .3rem; }
.ud-fee-bar span { font-size: .92rem; color: var(--ink-soft); display: block; }
.ud-eng { margin-top: 2rem !important; font-size: .95rem; color: var(--ink-soft); padding: 1.1rem 1.3rem; border-left: 4px solid var(--amber); background: rgba(255, 255, 255, .6); border-radius: 0 14px 14px 0; }
.ud-eng b { color: var(--ink); }
.ud-entry__info { margin-top: clamp(32px, 5vw, 56px); padding: clamp(20px, 3vw, 34px); background: #fff; border-radius: var(--radius); box-shadow: 0 30px 60px -44px rgba(12, 31, 74, .5); font-family: var(--tg-body-font-family, 'Inter', sans-serif); font-size: 16px; }
.ud-entry__info-title { font-family: var(--ud-display); font-size: clamp(1.3rem, 2.4vw, 1.8rem); font-weight: 700; letter-spacing: -.02em; margin-bottom: 1.2rem !important; color: var(--ink); }

/* ============ ENQUIRY ============ */
.ud > section.ud-enquiry { background: linear-gradient(135deg, #0A1A40 0%, var(--ink-2) 55%, #E88F1A 130%); color: #fff; overflow: hidden; }
.ud-enquiry::before { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(115deg, transparent 0 46px, rgba(255, 255, 255, .03) 46px 47px); pointer-events: none; }
.ud-enquiry__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 6vw, 90px); align-items: center; position: relative; }
.ud-enquiry h2 { max-width: 12ch; margin-bottom: 1.2rem; color: #fff; }
.ud-enquiry .ud-eyebrow { color: var(--sun); }
.ud-enquiry .ud-eyebrow::before { background: var(--sun); }
.ud-enquiry .ud-lead { color: rgba(255, 255, 255, .85); }
.ud-enq-points { list-style: none; margin: 1.6rem 0 2rem; }
.ud-enq-points li { padding: .5rem 0 .5rem 2rem; position: relative; color: rgba(255, 255, 255, .9); list-style: none; }
.ud-enq-points li::before { content: ""; position: absolute; left: 0; top: .95rem; width: 14px; height: 8px; border-left: 3px solid var(--amber); border-bottom: 3px solid var(--amber); transform: rotate(-45deg); }
.ud-contact { display: flex; flex-direction: column; gap: .4rem; font-weight: 600; }
.ud-contact a { text-decoration: none; color: var(--sun); }
.ud-contact span { font-weight: 500; opacity: .8; }
.ud-enq-extras { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.8rem; }
.ud-form { background: var(--paper); color: var(--ink); border-radius: 28px; padding: clamp(26px, 4vw, 44px); box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .6); margin: 0; }
.ud .ud-form h3 { font-size: 1.7rem; margin-bottom: .3rem; color: var(--ink); }
.ud-form__sub { color: var(--ink-soft); font-size: .95rem; margin-bottom: 1.4rem !important; }
.ud-prefill { display: none; margin: -.6rem 0 1.2rem; padding: .7rem 1rem; border-radius: 12px; background: var(--peach); font-size: .9rem; font-weight: 600; color: var(--ink); }
.ud-prefill.is-on { display: block; animation: ud-pop .5s var(--ease); }
@keyframes ud-pop { from { transform: scale(.97); opacity: 0; } to { transform: none; opacity: 1; } }
.ud-fields { display: grid; grid-template-columns: 1fr 1fr; gap: .9rem; }
.ud-fields .is-full { grid-column: 1 / -1; }
.ud-form label { font-size: .82rem; font-weight: 700; letter-spacing: .02em; display: block; margin: 0 0 .3rem; color: var(--ink); }
.ud-form input,
.ud-form select { width: 100%; height: auto; padding: .9rem 1rem; border-radius: 12px; border: 1.5px solid rgba(12, 31, 74, .2); background: #fff; font: inherit; color: var(--ink); box-shadow: none; }
.ud-form input:focus,
.ud-form select:focus { outline: 3px solid rgba(247, 164, 0, .45); border-color: var(--amber-deep); }
.ud-form select.is-flash { animation: ud-flash 1.4s var(--ease); }
@keyframes ud-flash { 0%, 40% { outline: 3px solid var(--amber); background: #FFF4DA; } 100% { outline: 3px solid transparent; } }
.ud-form .ud-btn { width: 100%; justify-content: center; margin-top: 1.2rem; }
.ud-form .ud-btn[disabled] { opacity: .7; }
.ud-form__msg { display: none; margin-top: 1rem; padding: .8rem 1rem; border-radius: 12px; font-size: .92rem; font-weight: 600; }
.ud-form__msg.is-on { display: block; }
.ud-form__msg--ok { background: #E3F4EA; color: #14633A; }
.ud-form__msg--err { background: #FDE8E8; color: #9B1C1C; }
.ud-consent { font-size: .78rem; color: var(--ink-soft); margin-top: .9rem !important; text-align: center; }

/* ============ FAQ ============ */
.ud > section.ud-faq { background: var(--paper); }
.ud-faq__grid { display: grid; grid-template-columns: .7fr 1.3fr; gap: clamp(30px, 6vw, 80px); }
.ud-faq details { border-top: 1px solid var(--line); padding: 1.2rem 0; }
.ud-faq details:last-child { border-bottom: 1px solid var(--line); }
.ud-faq summary { font-family: var(--ud-display); font-weight: 700; font-size: 1.2rem; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.ud-faq summary::-webkit-details-marker { display: none; }
.ud-faq summary::after { content: "+"; font-size: 1.6rem; line-height: 1; color: var(--amber-deep); }
.ud-faq details[open] summary::after { content: "\2013"; }
.ud-faq details p { margin-top: .8rem; color: var(--ink-soft); max-width: 60ch; }

/* Sticky mobile CTA */
.ud-sticky { display: none; }
.ud-sticky-spacer { display: none; height: 78px; background: var(--paper); }

@media (max-width: 1100px) {
    .ud-hero__inner { grid-template-columns: minmax(0, 1fr); }
    .ud-hero-card { display: none; }
}
@media (max-width: 900px) {
    .ud { font-size: 16px; }
    .ud-wrap,
    .ud-hero__inner { width: min(1160px, calc(100% - 36px)); }
    .ud-overview__grid,
    .ud-why__grid,
    .ud-entry__grid,
    .ud-enquiry__grid,
    .ud-faq__grid,
    .ud-panel,
    .ud-study__grid,
    .ud-camp__head { grid-template-columns: 1fr; }
    .ud-study__intro { position: static; }
    .ud-proof .ud-wrap { grid-template-columns: 1fr 1fr; }
    .ud-proof__item { border-left: 0; padding: 24px 12px 24px 0; border-bottom: 1px solid rgba(255, 255, 255, .12); }
    .ud > section.ud-hero { min-height: max(600px, calc(100svh - 70px)); }
    .ud-hero__media img { object-position: 70% 40%; }
    .ud-hero__veil { background: linear-gradient(180deg, rgba(10, 26, 64, .62) 0%, rgba(10, 26, 64, .2) 24%, rgba(10, 26, 64, .66) 54%, rgba(8, 20, 52, .97) 100%); }
    .ud .ud-hero h1 { max-width: 12ch; }
    .ud-hero__sig { gap: .4rem .8rem; letter-spacing: .16em; }
    .ud-hero__sig i { display: none; }
    .ud-hero__sig span:first-child::after { content: " \00b7 "; color: var(--amber); }
    .ud-cta-row .ud-btn { flex: 1 1 100%; justify-content: center; }
    .ud-fee-bar { grid-template-columns: 1fr; }
    .ud-fee-bar div { padding: 1rem 0; border-bottom: 1px solid var(--line); }
    .ud-fields { grid-template-columns: 1fr; }
    .ud-camp__arrows { display: none; }
    .ud-city { width: 76vw; }
    .ud-track { --edge: 18px; }
    .ud-subject { grid-template-columns: 30px minmax(0, 1fr) 40px; padding: 20px 14px; }
    .ud-subject:hover { padding-left: 14px; }
    .ud-subject__go { width: 40px; height: 40px; }
    .ud-sticky { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; gap: .6rem; padding: 10px 14px calc(10px + env(safe-area-inset-bottom)); background: rgba(255, 249, 240, .96); backdrop-filter: blur(10px); box-shadow: 0 -10px 30px -12px rgba(12, 31, 74, .35); }
    .ud-sticky .ud-btn { flex: 1; justify-content: center; padding: .9rem .8rem; font-size: .95rem; }
    .ud-sticky-spacer { display: block; }
}
@media (prefers-reduced-motion: reduce) {
    .ud *,
    .ud *::before,
    .ud *::after { animation: none !important; scroll-behavior: auto !important; transition: none !important; }
}
