/* =========================================================================
   SMSIMSR Medical College — landing page (/medical-college/)
   Tokens follow /main/assets/main.css (maroon, cream, Gentium Plus + Gantari);
   copper is taken from the finials on the academic block's domes.
   ========================================================================= */
:root {
    --brand: #7E2320;
    --brand-dark: #6E2523;
    --brand-tint: #EFE5DD;
    --gold: var(--brand);
    --gold-ink: var(--brand);
    --gold-tint: #EFE5DD;
    --icon: var(--brand);
    --green: var(--brand);
    --green-tint: #EFE5DD;
    --ink: #2D2D2D;
    --body: #2D2D2D;
    --muted: #565656;
    --cream: #FCFBF2;
    --sand: #F7F2EA;      /* maroon 4% on cream */
    --stone: #F4EEE5;
    --line: #E3E2DA;
    --white: #fff;
    --serif: 'Gentium Plus', Georgia, 'Times New Roman', serif;
    --sans: 'Gantari', system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;
    --wrap: 1240px;
    --gut: clamp(16px, 4vw, 40px);
    --section: clamp(48px, 6vw, 72px);
    --r: 14px;
    --r-sm: 10px;
    --shadow: 0 10px 30px rgba(126, 35, 32, .07);
    --hdr: 84px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--hdr) + 12px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body { margin: 0; font-family: var(--sans); font-size: 18px; line-height: 1.65; color: var(--body); background: var(--cream); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); text-underline-offset: 3px; }
a:hover { color: var(--brand-dark); }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--serif); color: var(--ink); font-weight: 700; line-height: 1.15; margin: 0 0 .5em; text-wrap: balance; }
h1 { font-size: clamp(2.25rem, 5.2vw, 3.9rem); letter-spacing: -.01em; }
h2 { font-size: clamp(1.875rem, 3.4vw, 2.7rem); }
h3 { font-size: clamp(1.2rem, 1.8vw, 1.4rem); line-height: 1.25; }
p { margin: 0 0 1em; max-width: 68ch; }
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gut); }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -80px; z-index: 100; padding: 10px 16px; border-radius: 999px; background: var(--brand); color: #fff; font-weight: 600; text-decoration: none; }
.skip:focus { top: 12px; color: #fff; }
.i { width: 1.15em; height: 1.15em; flex: none; }

.kicker { display: inline-flex; align-items: center; gap: .6em; margin: 0 0 1rem; font-size: .9rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-ink); }
.kicker::before { content: ""; width: 28px; height: 2px; background: currentColor; }
.lead { font-size: clamp(1.08rem, 1.5vw, 1.25rem); color: var(--body); }
.section { padding-block: var(--section); }
.section--sand { background: var(--sand); }
.section--ink { background: var(--ink); color: #FCFBF2; }
.section--ink h2, .section--ink .faculty h3 { color: #fff; }
.section--ink .kicker { color: #FCFBF2; }
.section--stone { background: var(--stone); }
.section__head { max-width: 760px; margin-bottom: clamp(28px, 4vw, 48px); }
.section__head p { margin-bottom: 0; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; min-height: 52px; padding: 0 24px; border-radius: 8px; border: 2px solid var(--brand); font: 600 1rem/1.2 var(--sans); text-decoration: none; cursor: pointer; transition: background .2s, color .2s, transform .2s; }
.btn--solid { background: var(--brand); color: #fff; }
.btn--solid:hover { background: var(--brand-dark); border-color: var(--brand-dark); color: #fff; }
.btn--ghost { background: transparent; color: var(--brand); }
.btn--ghost:hover { background: var(--brand-tint); color: var(--brand-dark); }
.btn--sm { min-height: 44px; padding: 0 16px; font-size: .95rem; }
.link-arrow { display: inline-flex; align-items: center; gap: .4em; font-weight: 600; text-decoration: none; min-height: 44px; }
.link-arrow:hover { text-decoration: underline; }

/* Header with submenus (dropdowns; mega panels for departments and NMC disclosures; accordion on phones) */
.hdr { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .97); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.hdr__bar { position: relative; display: flex; align-items: center; gap: 16px; min-height: var(--hdr); }
.hdr__nav { margin-left: auto; }
.nav__list { display: flex; align-items: center; gap: 2px; margin: 0; padding: 0; list-style: none; }
.nav__item { position: relative; }
.nav__top { display: inline-flex; align-items: center; gap: 4px; min-height: 44px; padding: 0 12px; border: 0; border-radius: 8px; background: none; color: var(--ink); font: 600 .98rem/1.2 var(--sans); text-decoration: none; cursor: pointer; white-space: nowrap; }
.nav__top .i { width: 16px; height: 16px; transition: transform .2s; }
.nav__top:hover, .nav__top[aria-expanded="true"] { background: var(--brand-tint); color: var(--brand); }
.nav__top[aria-expanded="true"] .i { transform: rotate(180deg); }
.nav__top.is-current { color: var(--brand); box-shadow: inset 0 -3px 0 var(--brand); border-radius: 8px 8px 0 0; }
.nav__panel { position: absolute; top: calc(100% + 10px); left: 50%; transform: translateX(-50%); z-index: 60; width: 380px; padding: 10px; border-radius: 16px; background: #fff; border: 1px solid var(--line); box-shadow: 0 24px 60px rgba(45, 45, 45, .16); }
.nav__panel::before { content: ""; position: absolute; left: 0; right: 0; top: -12px; height: 12px; }
.nav__panel[hidden] { display: none; }
.nav__links { display: grid; gap: 2px; margin: 0; padding: 0; list-style: none; }
.nav__links a { display: grid; grid-template-columns: 40px 1fr; gap: 12px; align-items: center; padding: 10px 12px; border-radius: 10px; color: var(--ink); text-decoration: none; }
.nav__links a:hover, .nav__links a.is-current { background: var(--brand-tint); }
.nav__links strong { display: block; font-size: 1rem; line-height: 1.3; }
.nav__links small { display: block; font-size: .9rem; line-height: 1.35; color: var(--muted); }
.nav__ico { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; background: var(--brand-tint); color: var(--brand); }
.nav__ico .i { width: 20px; height: 20px; }
.nav__panel--mega { width: min(860px, calc(100vw - 2 * var(--gut))); padding: 22px 24px 16px; }
.nav__item--mega { position: static; }
.nav__item--mega .nav__panel { left: auto; right: 0; transform: none; top: calc(100% - 4px); }
.nav__cols { display: grid; gap: 8px 28px; }
.nav__cols--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.nav__cols--3 { grid-template-columns: 1fr 1fr 1.6fr; }
.nav__cols--3 .nav__col:last-child ul { columns: 2; column-gap: 24px; }
.nav__heading { margin: 0 0 6px; padding-bottom: 8px; border-bottom: 2px solid var(--brand-tint); font-size: .9rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--brand); }
.nav__col ul { margin: 0; padding: 0; list-style: none; }
.nav__col li { break-inside: avoid; }
.nav__col a { display: flex; align-items: center; min-height: 40px; padding: 6px 8px; margin: 0 -8px; border-radius: 8px; color: var(--ink); font-size: .98rem; line-height: 1.3; text-decoration: none; }
.nav__col a:hover, .nav__col a.is-current { background: var(--brand-tint); color: var(--brand); }
.nav__all { display: inline-flex; align-items: center; gap: 6px; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); width: 100%; min-height: 44px; font-weight: 700; text-decoration: none; }
.nav__all:hover { text-decoration: underline; }
.hdr__cta { flex: none; }
.hdr__menu { display: none; margin-left: auto; width: 48px; height: 48px; border: 1px solid var(--line); border-radius: 8px; background: var(--white); color: var(--ink); cursor: pointer; align-items: center; justify-content: center; }
.hdr__menu .i { width: 24px; height: 24px; }
@media (max-width: 1180px) and (min-width: 1101px) { .nav__top { padding: 0 9px; font-size: .95rem; } }
@media (max-width: 1100px) {
    .hdr__menu { display: inline-flex; }
    .hdr__cta { display: none; }
    .hdr__nav { position: absolute; left: 0; right: 0; top: 100%; margin: 0; max-height: calc(100vh - var(--hdr)); max-height: calc(100dvh - var(--hdr)); overflow-y: auto; background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 16px 30px rgba(45,45,45,.08); display: none; }
    .hdr__nav.is-open { display: block; }
    .nav__list { flex-direction: column; align-items: stretch; gap: 0; padding: 8px var(--gut) 16px; }
    .nav__item { border-bottom: 1px solid var(--line); }
    .nav__item--mega { position: relative; }
    .nav__top { width: 100%; justify-content: space-between; min-height: 56px; padding: 0 4px; font-size: 1.05rem; border-radius: 0; }
    .nav__top:hover, .nav__top[aria-expanded="true"] { background: none; }
    .nav__top.is-current { box-shadow: inset 4px 0 0 var(--brand); padding-left: 12px; border-radius: 0; }
    .nav__panel, .nav__item--mega .nav__panel { position: static; transform: none; width: auto; padding: 0 0 12px; border: 0; border-radius: 0; box-shadow: none; background: none; }
    .nav__panel::before { display: none; }
    .nav__links a { grid-template-columns: 36px 1fr; padding: 8px 4px; }
    .nav__ico { width: 36px; height: 36px; }
    .nav__links small { display: none; }
    .nav__cols--2, .nav__cols--3 { grid-template-columns: 1fr; }
    .nav__cols--3 .nav__col:last-child ul { columns: 1; }
    .nav__col a { margin: 0; min-height: 44px; }
    .nav__heading { margin-top: 8px; }
    .hdr__nav .hdr__nav-cta { display: flex; margin-top: 14px; }
    .hdr__nav .hdr__nav-cta a { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 52px; border-radius: 8px; background: var(--brand); color: #fff; font-weight: 700; text-decoration: none; }
}
@media (min-width: 1101px) { .hdr__nav-cta { display: none; } }

/* Hero (layout from the Nov 2026 banner mockup: photo bleeds in from the right, swoosh, floating facts card) */
.hero { position: relative; isolation: isolate; overflow: hidden; padding-block: clamp(32px, 5vw, 80px) clamp(32px, 4vw, 56px); background:
    radial-gradient(70% 60% at 0% 100%, rgba(126,35,32,.06) 0%, rgba(126,35,32,0) 70%),
    linear-gradient(180deg, var(--cream), #FCFBF2); }
.hero__inner { position: relative; z-index: 2; }
.hero__copy { max-width: 600px; }
.hero__copy .lead { max-width: 34em; }
.hero h1 { font-size: clamp(2.5rem, 5.6vw, 4.6rem); line-height: 1.14; }
.hero__heal { position: relative; font-style: italic; color: var(--brand); white-space: nowrap; }
.hero__heal::after { content: ""; position: absolute; left: 0; right: -.1em; bottom: -.02em; height: .16em; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 20' preserveAspectRatio='none'%3E%3Cpath d='M2 14 C 60 2 140 2 198 9' fill='none' stroke='%237E2320' stroke-width='6' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat center / 100% 100%; opacity: .85; }
.hero__serve { color: var(--brand); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin: 28px 0 0; }
.hero__actions .btn { padding: 0 20px; box-shadow: 0 8px 20px rgba(126, 35, 32, .12); }
.hero__actions .btn--ghost { background: #fff; }
.hero__actions .btn .i { width: 1.3em; height: 1.3em; }
.hero__actions .btn .i:last-child { width: 1em; height: 1em; margin-left: .2em; transition: transform .2s; }
.hero__actions .btn:hover .i:last-child { transform: translateX(3px); }

.hero__fig { position: absolute; z-index: 0; top: 0; right: 0; bottom: 0; width: 56%; margin: 0; background: #F4EEE5;
    -webkit-mask-image: linear-gradient(90deg, transparent 0, rgba(45,45,45,.55) 14%, #000 30%);
            mask-image: linear-gradient(90deg, transparent 0, rgba(45,45,45,.55) 14%, #000 30%); }
.hero__fig picture, .hero__fig img { width: 100%; height: 100%; }
.hero__fig img { object-fit: cover; object-position: 50% 45%; transition: opacity .8s ease; }
.hero__cap { position: absolute; top: 16px; right: 16px; display: flex; flex-direction: column; align-items: flex-end; gap: 8px; pointer-events: none; }
.hero__cap span { padding: 6px 12px; border-radius: 999px; background: rgba(255, 255, 255, .92); color: var(--ink); font-size: .875rem; font-weight: 600; line-height: 1.3; }
.hero__swoosh { position: absolute; z-index: 1; left: 0; right: 0; bottom: 0; width: 100%; height: clamp(120px, 18vw, 260px); pointer-events: none; }

.facts { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; margin: clamp(36px, 5vw, 64px) 0 0; padding: 8px; list-style: none;
    background: rgba(255, 255, 255, .94); border: 1px solid rgba(227, 226, 218, .8); border-radius: 22px; box-shadow: 0 18px 44px rgba(126, 35, 32, .14);
    -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.facts li { display: flex; align-items: flex-start; gap: 16px; padding: 20px 22px; border-left: 1px solid var(--line); }
.facts li:first-child { border-left: 0; }
.facts .i { width: 44px; height: 44px; margin-top: 2px; color: var(--icon); stroke-width: 1.4; }
.facts strong { display: block; font-family: var(--sans); font-weight: 700; font-size: clamp(1.8rem, 2.8vw, 2.4rem); line-height: 1.05; color: var(--gold-ink); }
.facts span { display: block; margin-top: 4px; font-size: .95rem; line-height: 1.4; color: var(--ink); }
@media (max-width: 1100px) and (min-width: 901px) {
    .facts li { flex-direction: column; gap: 8px; }
    .facts .i { width: 36px; height: 36px; }
}
@media (max-width: 900px) {
    .hero { padding-top: 0; }
    .hero__fig { position: relative; width: 100%; aspect-ratio: 4 / 3; max-height: 62vh;
        -webkit-mask-image: linear-gradient(180deg, #000 70%, transparent 100%);
                mask-image: linear-gradient(180deg, #000 70%, transparent 100%); }
    .hero__inner { margin-top: -28px; }
    .hero__swoosh { height: 90px; }
    .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .facts li:nth-child(3) { border-left: 0; }
    .facts li:nth-child(n+3) { border-top: 1px solid var(--line); }
}
@media (max-width: 600px) {
    .hero__cap { top: auto; bottom: 22%; left: 8px; right: 8px; }
    .hero__cap span { font-size: .875rem; padding: 5px 10px; }
}
@media (max-width: 520px) {
    .hero__actions .btn { flex: 1 1 100%; }
    .facts li { flex-direction: column; gap: 6px; padding: 14px; }
    .facts .i { width: 32px; height: 32px; }
}

/* Mission */
.why { position: relative; overflow: hidden; background:
    radial-gradient(60% 70% at 100% 10%, rgba(126,35,32,.06) 0%, rgba(126,35,32,0) 70%),
    radial-gradient(50% 50% at 0% 100%, #F4EEE5 0%, rgba(126,35,32,0) 70%),
    linear-gradient(180deg, var(--cream), #FCFBF2); }
.mission { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.mission__motto { font-family: var(--serif); font-size: clamp(1.35rem, 2.3vw, 1.75rem); line-height: 1.35; color: var(--brand); margin: 0 0 1.2rem; }
.pillars { display: grid; gap: 14px; margin: 28px 0 0; padding: 0; list-style: none; }
.pillars li { display: grid; grid-template-columns: 56px 1fr; gap: 0; align-items: center; padding: 16px 20px 16px 16px; border-radius: 16px; background: rgba(255, 255, 255, .72); border: 1px solid rgba(227, 226, 218, .9); box-shadow: 0 8px 24px rgba(126, 35, 32, .06); }
.pillars li > div { padding-left: 18px; margin-left: 18px; border-left: 1px solid var(--line); }
.pillars .ico { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 14px; background: linear-gradient(160deg, #F4EEE5, #EFE5DD); color: var(--icon); box-shadow: inset 0 1px 0 #fff; }
.pillars .ico .i { width: 26px; height: 26px; }
.pillars h3 { margin: 0 0 .2em; font-size: 1.15rem; }
.pillars p { margin: 0; font-size: 1rem; }
.mission__media { position: relative; padding: 0 0 0 clamp(0px, 2vw, 24px); }
.mission__media::before { content: ""; position: absolute; top: -20px; right: -28px; width: 70%; height: 80%; border-radius: 32px; background: linear-gradient(160deg, #EFE5DD, rgba(126,35,32,.03)); z-index: 0; }
.mission__photo { position: relative; z-index: 1; border: 4px solid #fff; border-radius: 28px; overflow: hidden; box-shadow: 0 20px 50px rgba(126, 35, 32, .14); }
.mission__photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.mission__quote { position: absolute; z-index: 2; left: -16px; bottom: 56px; max-width: 340px; margin: 0; padding: 22px 24px; border-radius: 18px; background: #fff; box-shadow: 0 16px 40px rgba(126, 35, 32, .16); }
.mission__quote::before { content: ""; position: absolute; left: -12px; top: 0; bottom: 0; width: 24px; border-radius: 18px 0 0 18px; background: var(--brand); z-index: -1; }
.mission__quote strong { display: block; font-family: var(--serif); font-size: clamp(2.2rem, 3.6vw, 3rem); line-height: 1; color: var(--gold-ink); }
.mission__quote span { display: block; margin-top: 8px; font-size: 1rem; line-height: 1.5; color: var(--ink); }
@media (max-width: 900px) {
    .mission { grid-template-columns: 1fr; }
    .mission__media { max-width: 520px; padding: 0; }
    .mission__media::before { right: -12px; }
    .mission__quote { position: relative; left: auto; bottom: auto; margin: -56px 16px 0 28px; }
}
@media (max-width: 480px) {
    .pillars li { grid-template-columns: 48px 1fr; padding: 14px; }
    .pillars .ico { width: 48px; height: 48px; }
    .pillars li > div { padding-left: 14px; margin-left: 14px; }
}

/* Programmes */
.progs { position: relative; overflow: hidden; background: linear-gradient(180deg, #FCFBF2, var(--sand)); }
.progs > .wrap { position: relative; z-index: 1; }
.progs h2 em { font-style: italic; color: var(--brand); }
.progs .section__head { max-width: 640px; }
.cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(16px, 2.5vw, 28px); }
.card { display: flex; flex-direction: column; padding: clamp(22px, 3vw, 34px); border-radius: var(--r); background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow); }
.card__tag { display: inline-flex; align-items: center; gap: 8px; align-self: flex-start; margin-bottom: 14px; padding: 6px 14px; border-radius: 999px; background: var(--gold-tint); color: var(--gold-ink); font-size: .95rem; font-weight: 700; letter-spacing: .02em; }
.card__tag .i { width: 1.2em; height: 1.2em; }
.card h3 { font-size: clamp(1.5rem, 2.4vw, 1.875rem); }
.card__foot { margin-top: auto; display: flex; flex-wrap: wrap; gap: 10px 22px; align-items: center; }
.card__foot .btn .i { width: 1.1em; height: 1.1em; }
.prog { position: relative; overflow: hidden; border-radius: 22px; background: rgba(255, 255, 255, .92); box-shadow: 0 18px 44px rgba(126, 35, 32, .1); }
.prog__media { position: absolute; top: 0; right: 0; width: 48%; height: 260px; z-index: 0;
    -webkit-mask-image: linear-gradient(105deg, transparent 0 14%, #000 40%), linear-gradient(180deg, #000 70%, transparent 100%); -webkit-mask-composite: source-in;
            mask-image: linear-gradient(105deg, transparent 0 14%, #000 40%), linear-gradient(180deg, #000 70%, transparent 100%); mask-composite: intersect; }
.prog__media picture, .prog__media img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 30%; }
.prog__intro { position: relative; z-index: 1; max-width: 58%; min-height: 220px; }
.prog h3 { font-size: clamp(2rem, 3.4vw, 2.75rem); color: var(--brand); margin-bottom: .25em; }
.prog__intro p { font-size: 1rem; }
.prog__facts { position: relative; z-index: 1; display: grid; grid-template-columns: 1.35fr .8fr 1.35fr; margin: 12px 0 26px; padding: 0; list-style: none; }
.prog__facts li { display: flex; gap: 10px; align-items: flex-start; padding: 4px 12px; border-left: 1px solid var(--line); }
.prog__facts li:first-child { padding-left: 0; border-left: 0; }
.prog__facts .i { width: 26px; height: 26px; color: var(--icon); stroke-width: 1.4; }
.prog__facts strong { display: block; color: var(--ink); font-size: 1rem; }
.prog__facts span { display: block; font-size: .95rem; line-height: 1.45; color: var(--body); }
@media (max-width: 1100px) {
    .prog__facts { grid-template-columns: 1fr; gap: 12px; }
    .prog__facts li { padding: 0; border-left: 0; }
}
@media (max-width: 800px) { .cards { grid-template-columns: 1fr; } }
@media (max-width: 560px) {
    .prog { padding-top: 0; }
    .prog__media { position: relative; width: auto; height: 200px; margin: 0 calc(-1 * clamp(22px, 3vw, 34px)) -24px;
        -webkit-mask-image: linear-gradient(180deg, #000 60%, transparent 100%); mask-image: linear-gradient(180deg, #000 60%, transparent 100%); }
    .prog__intro { max-width: none; min-height: 0; }
}

/* Admissions */
.steps { counter-reset: s; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin: 0 0 clamp(36px, 5vw, 56px); padding: 0; list-style: none; }
.steps li { counter-increment: s; position: relative; padding: 22px 20px 20px; border-radius: var(--r-sm); background: var(--white); border: 1px solid var(--line); }
.steps li::before { content: counter(s); display: grid; place-items: center; width: 36px; height: 36px; margin-bottom: 12px; border-radius: 50%; background: var(--brand); color: #fff; font-weight: 700; }
.steps h3 { font-size: 1.12rem; margin-bottom: .35em; }
.steps p { margin: 0; font-size: .98rem; }
@media (max-width: 960px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

.split { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: clamp(20px, 3vw, 36px); align-items: start; }
@media (max-width: 960px) { .split { grid-template-columns: 1fr; } }
.table-card { padding: clamp(18px, 2.6vw, 28px); border-radius: var(--r); background: var(--white); border: 1px solid var(--line); }
.table-card h3 { margin-bottom: 14px; }
.seats { width: 100%; border-collapse: collapse; font-size: 1rem; }
.seats th, .seats td { padding: 12px 10px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.seats thead th { font-size: .875rem; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
.seats td.num, .seats th.num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.seats tbody th { color: var(--ink); font-weight: 700; }
.seats tfoot td, .seats tfoot th { font-weight: 700; color: var(--ink); border-bottom: 0; }
.pill-free { display: inline-block; padding: 2px 10px; border-radius: 999px; background: #EFE5DD; color: #7E2320; font-weight: 700; font-size: .92rem; }
.note { margin: 14px 0 0; font-size: .95rem; color: var(--muted); }
@media (max-width: 640px) {
    .seats thead { display: none; }
    .seats, .seats tbody, .seats tr, .seats td, .seats th, .seats tfoot { display: block; width: 100%; }
    .seats tr { padding: 12px 0; border-bottom: 1px solid var(--line); }
    .seats tbody th, .seats tfoot th { padding: 0 0 6px; border: 0; font-size: 1.08rem; }
    .seats td { display: flex; justify-content: space-between; gap: 12px; padding: 4px 0; border: 0; text-align: right; }
    .seats td::before { content: attr(data-label); color: var(--muted); text-align: left; }
    .seats td.num { text-align: right; }
    .seats tfoot td:empty { display: none; }
}
.checklist { margin: 0; padding: 0; list-style: none; display: grid; gap: 14px; }
.checklist li { display: grid; grid-template-columns: 24px 1fr; gap: 12px; font-size: 1rem; }
.checklist .i { width: 22px; height: 22px; margin-top: 3px; color: var(--copper); }
.aside-card { padding: clamp(18px, 2.6vw, 28px); border-radius: var(--r); background: var(--sand); border: 1px solid var(--line); }
.aside-card h3 { margin-bottom: 14px; }

/* PG specialties */
.pgrows { display: grid; gap: 16px; margin: 0 0 32px; }
.pgrow { display: grid; grid-template-columns: 260px minmax(0, 1fr); align-items: center; gap: 0; padding: 10px; border-radius: 20px; background: #fff; border: 1px solid rgba(227, 226, 218, .9); box-shadow: 0 10px 28px rgba(126, 35, 32, .06); }
.pgrow__label { display: flex; align-items: center; gap: 16px; align-self: stretch; padding: 14px 20px; border-radius: 14px; background: linear-gradient(120deg, #F4EEE5, #F7F2EA); }
.pgrow__label .i { width: 40px; height: 40px; color: var(--icon); stroke-width: 1.4; }
.pgrow__label h3 { margin: 0; font-size: 1.3rem; color: var(--ink); }
.pgrow__label span { font-size: .95rem; color: var(--body); }
.pgrow .chips { margin: 0; padding: 6px 8px 6px 22px; margin-left: 20px; border-left: 1px solid var(--line); }
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 24px; padding: 0; list-style: none; }
.chips li { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 6px 8px 6px 16px; border-radius: 999px; background: var(--white); border: 1px solid var(--line); font-size: .98rem; font-weight: 500; color: var(--ink); }
.chips b { display: inline-grid; place-items: center; min-width: 28px; height: 28px; padding: 0 6px; border-radius: 999px; background: var(--gold-tint); color: var(--gold-ink); font-size: .9rem; }
@media (max-width: 900px) {
    .pgrow { grid-template-columns: 1fr; gap: 12px; }
    .pgrow .chips { margin-left: 0; padding: 0 4px 4px; border-left: 0; }
}

/* Learning spaces */
.learn { position: relative; overflow: hidden; background: linear-gradient(180deg, var(--cream), #FCFBF2); }
.learn > .wrap { position: relative; z-index: 1; }
.learn .section__head { max-width: 680px; }
.mosaic { display: grid; grid-template-columns: 1.75fr 1fr 1.1fr; grid-template-rows: repeat(2, clamp(200px, 17vw, 236px)); gap: 18px; margin: 0; padding: 0; list-style: none; }
.mosaic li { position: relative; overflow: hidden; border-radius: 18px; background: #fff; box-shadow: 0 12px 30px rgba(126, 35, 32, .1); }
.mosaic li:first-child { grid-row: span 2; }
.mosaic img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.mosaic li:hover img { transform: scale(1.03); }
.mosaic .cap { position: absolute; left: 0; right: 0; bottom: 0; display: flex; align-items: center; gap: 14px; margin: 0; padding: 12px 16px; background: rgba(255, 255, 255, .95); border-radius: 16px 16px 0 0; color: var(--body); font-size: .95rem; line-height: 1.35; }
.mosaic .cap > span:last-child { padding-left: 14px; border-left: 1px solid var(--line); }
.mosaic .cap strong { display: block; font-size: 1.1rem; color: var(--ink); }
.cap__ico { display: grid; place-items: center; flex: none; width: 46px; height: 46px; border-radius: 12px; background: linear-gradient(160deg, #F4EEE5, #EFE5DD); color: var(--icon); }
.cap__ico .i { width: 24px; height: 24px; }
.mosaic li:first-child .cap { padding: 60px 24px 22px; border-radius: 0; background: linear-gradient(180deg, rgba(126, 35, 32, 0), rgba(126, 35, 32, .82) 55%); color: #FCFBF2; }
.mosaic li:first-child .cap strong { color: #fff; font-size: 1.5rem; }
.mosaic li:first-child .cap > span:last-child { border-left-color: rgba(255, 255, 255, .4); }
.mosaic li:first-child .cap__ico { width: 60px; height: 60px; background: none; color: #fff; }
.mosaic li:first-child .cap__ico .i { width: 44px; height: 44px; stroke-width: 1.3; }
.learn__strip { display: flex; justify-content: space-around; flex-wrap: wrap; gap: 8px 0; margin: 28px auto 0; padding: 14px 20px; max-width: 1080px; list-style: none; border-radius: 16px; background: rgba(255, 255, 255, .9); border: 1px solid rgba(227, 226, 218, .9); box-shadow: 0 10px 26px rgba(126, 35, 32, .07); }
.learn__strip li { display: flex; align-items: center; gap: 12px; padding: 8px 18px; color: var(--ink); font-weight: 600; font-size: 1rem; line-height: 1.3; }
.learn__strip li + li { border-left: 1px solid var(--line); }
.learn__strip .i { width: 28px; height: 28px; color: var(--icon); stroke-width: 1.4; }
@media (max-width: 1020px) {
    .mosaic { grid-template-columns: 1fr 1fr; grid-template-rows: none; grid-auto-rows: 220px; }
    .mosaic li:first-child { grid-column: span 2; grid-row: span 1; height: 320px; }
    .learn__strip li + li { border-left: 0; }
}
@media (max-width: 560px) {
    .mosaic { grid-template-columns: 1fr; grid-auto-rows: 230px; gap: 14px; }
    .mosaic li:first-child { grid-column: auto; height: 280px; }
    .learn__strip { justify-content: flex-start; padding: 10px; }
    .learn__strip li { flex: 1 1 50%; padding: 8px 10px; font-size: .95rem; }
}

/* Departments (inside the learning section, as tabs) */
.deps { margin-top: clamp(40px, 5vw, 64px); }
.deps__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 24px; margin-bottom: 18px; }
.deps__title { margin: 0; font-size: clamp(1.6rem, 2.8vw, 2.2rem); }
.deps__head p { margin: 0; color: var(--body); }
.deplinks { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 28px; margin: 0; padding: 0; list-style: none; }
.deplinks a { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 52px; padding: 8px 2px; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; font-size: 1rem; line-height: 1.35; }
.deplinks a .i { width: 16px; height: 16px; color: var(--icon); transition: transform .2s; }
.deplinks a:hover { color: var(--brand); }
.deplinks a:hover .i { transform: translateX(3px); }
@media (max-width: 860px) { .deplinks { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .deplinks { grid-template-columns: 1fr; } }

/* Teaching hospital */
.hospsec { position: relative; overflow: hidden; background:
    radial-gradient(50% 60% at 100% 0%, rgba(126,35,32,.06) 0%, rgba(126,35,32,0) 70%),
    linear-gradient(180deg, var(--cream), #FCFBF2); }
.hosp { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(28px, 4.5vw, 64px); align-items: center; }
.hosp__media { position: relative; border-radius: 32px; overflow: hidden; box-shadow: 0 24px 56px rgba(126, 35, 32, .16); }
.hosp__media img { width: 100%; aspect-ratio: 5 / 4; object-fit: cover; }
.hosp__media::after { content: ""; position: absolute; left: 0; bottom: 0; width: 46%; height: 26%; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 100' preserveAspectRatio='none'%3E%3Cpath d='M0 0 C 20 60 80 92 200 100 L 0 100 Z' fill='%237E2320'/%3E%3C/svg%3E") no-repeat 0 100% / 100% 100%; }
.hospsec h2 { font-size: clamp(2rem, 4vw, 3.2rem); }
.hospsec h2 em { font-style: italic; color: var(--brand); }
.hosp__facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px 0; margin: 26px 0 30px; padding: 0; list-style: none; }
.hosp__facts li { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: 0 18px; border-left: 1px solid var(--line); }
.hosp__facts li:first-child { padding-left: 0; border-left: 0; }
.hosp__facts .ico { display: grid; place-items: center; flex: none; width: 52px; height: 52px; border-radius: 14px; background: linear-gradient(160deg, #F4EEE5, #EFE5DD); color: var(--icon); }
.hosp__facts .ico .i { width: 26px; height: 26px; }
.hosp__facts strong { display: block; color: var(--gold-ink); font-size: 1.2rem; line-height: 1.2; }
.hosp__facts span { display: block; color: var(--body); font-size: .95rem; line-height: 1.35; }
@media (max-width: 860px) { .hosp { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .hosp__facts { grid-template-columns: 1fr; } .hosp__facts li { flex-direction: row; align-items: center; padding: 0; border-left: 0; } }
@media (max-width: 560px) { .hosp__facts { gap: 14px; } .hosp__facts li { padding: 0; border-left: 0; } .hospsec .btn { width: 100%; } }

/* Campus life */
.lifesec { position: relative; overflow: hidden; background:
    radial-gradient(60% 40% at 0% 100%, rgba(126,35,32,.06) 0%, rgba(126,35,32,0) 70%),
    linear-gradient(180deg, #FCFBF2, var(--sand)); }
.lifesec__head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: center; margin-bottom: clamp(24px, 3vw, 40px); }
.lifesec__head .section__head { margin: 0; }
.lifesec h2 { font-size: clamp(2.1rem, 4.2vw, 3.3rem); }
.lifesec__values { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0; padding: 0; list-style: none; }
.lifesec__values li { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 0 10px; text-align: center; color: var(--ink); font-weight: 500; font-size: .98rem; line-height: 1.3; border-left: 1px solid var(--line); }
.lifesec__values li:first-child { border-left: 0; }
.lifesec__values .ico { display: grid; place-items: center; width: 60px; height: 60px; border-radius: 16px; background: linear-gradient(160deg, #F4EEE5, #EFE5DD); color: var(--icon); }
.lifesec__values .ico .i { width: 30px; height: 30px; stroke-width: 1.4; }
.carousel { position: relative; }
.life { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 4 * 16px) / 5); gap: 16px; margin: 0; padding: 4px 2px 18px; list-style: none; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; scrollbar-width: none; scroll-behavior: smooth; }
.life::-webkit-scrollbar { display: none; }
.life li { scroll-snap-align: start; }
.life figure { height: 100%; margin: 0; overflow: hidden; border-radius: 18px; background: #fff; box-shadow: 0 12px 28px rgba(126, 35, 32, .09); }
.life img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }
.life figcaption { padding: 14px 18px 18px; }
.life__t { display: flex; align-items: center; gap: 10px; font-family: var(--serif); font-weight: 700; font-size: 1.3rem; color: var(--ink); }
.life__t .i { width: 26px; height: 26px; color: var(--icon); stroke-width: 1.5; }
.life__s { display: block; margin-top: 6px; color: var(--body); font-size: .95rem; line-height: 1.45; }
.carousel__btn { position: absolute; z-index: 2; top: 38%; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line); background: #fff; color: var(--ink); cursor: pointer; box-shadow: 0 8px 20px rgba(126, 35, 32, .14); }
.carousel__btn .i { width: 22px; height: 22px; }
.carousel__btn--prev { left: -22px; }
.carousel__btn--next { right: -22px; background: var(--brand); border-color: var(--brand); color: #fff; }
.carousel__btn[hidden] { display: none; }
.carousel__dots { display: flex; justify-content: center; gap: 12px; margin-top: 8px; }
.carousel__dots span { width: 10px; height: 10px; border-radius: 50%; background: #D3D2CB; transition: background .2s; }
.carousel__dots span.is-on { background: var(--brand); }
@media (max-width: 1100px) { .life { grid-auto-columns: calc((100% - 2 * 16px) / 3); } }
@media (max-width: 960px) {
    .lifesec__head { grid-template-columns: 1fr; }
    .lifesec__values { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 0; }
    .lifesec__values li:nth-child(3) { border-left: 0; }
}
@media (max-width: 760px) {
    .life { grid-auto-columns: 78%; }
    .carousel__btn { display: none; }
}
@media (prefers-reduced-motion: reduce) { .life { scroll-behavior: auto; } }

/* Results / research */
.ressec { position: relative; overflow: hidden; padding-bottom: 0; background: linear-gradient(180deg, #FCFBF2, #FCFBF2); }
.duo { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(16px, 2.5vw, 28px); }
.res { position: relative; overflow: hidden; padding: clamp(24px, 3vw, 38px); border-radius: 22px; border: 1px solid rgba(227, 226, 218, .9); background: #fff; box-shadow: 0 18px 44px rgba(126, 35, 32, .1); }
.res::after { content: ""; position: absolute; right: 0; bottom: 0; width: 60%; height: 22%; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 300 80' preserveAspectRatio='none'%3E%3Cpath d='M0 80 C 120 70 230 40 300 0 L 300 80 Z' fill='%237E2320' opacity='.88'/%3E%3C/svg%3E") no-repeat 100% 100% / 100% 100%; pointer-events: none; }
.res__art { position: absolute; top: 0; right: 0; bottom: 0; width: 44%;
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 45%); mask-image: linear-gradient(90deg, transparent 0, #000 45%); }
.res__art picture, .res__art img { width: 100%; height: 100%; object-fit: cover; }
.res__body { position: relative; z-index: 1; max-width: 62%; }
.res .res__num { display: flex; align-items: center; gap: 10px; margin: 0 0 6px; font-family: var(--serif); font-style: italic; font-weight: 700; font-size: clamp(3rem, 6vw, 4.6rem); line-height: 1; color: var(--gold-ink); }
.laurel { flex: none; width: .42em; height: .9em; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 64' fill='%237E2320' fill-opacity='.4'%3E%3Cpath d='M22 62 C 8 52 4 34 10 6' fill='none' stroke='%237E2320' stroke-opacity='.4' stroke-width='2.4' stroke-linecap='round'/%3E%3Cellipse cx='7' cy='14' rx='3' ry='7' transform='rotate(-20 7 14)'/%3E%3Cellipse cx='6' cy='28' rx='3' ry='7' transform='rotate(-35 6 28)'/%3E%3Cellipse cx='9' cy='42' rx='3' ry='7' transform='rotate(-50 9 42)'/%3E%3Cellipse cx='15' cy='53' rx='3' ry='6.5' transform='rotate(-65 15 53)'/%3E%3Cellipse cx='15' cy='20' rx='2.6' ry='6' transform='rotate(25 15 20)'/%3E%3Cellipse cx='15' cy='35' rx='2.6' ry='6' transform='rotate(15 15 35)'/%3E%3C/svg%3E") no-repeat center / contain; }
.laurel--r { transform: scaleX(-1); }
.res__icon { margin: 0 0 14px; color: var(--icon); }
.res__icon .i { width: 64px; height: 64px; stroke-width: 1.4; }
.res h3 { font-size: clamp(1.5rem, 2.4vw, 2rem); line-height: 1.2; margin-bottom: .6em; }
.res p { font-size: 1rem; }
.res .btn { margin-top: 8px; }
.res .btn .i { width: 1.1em; height: 1.1em; }
@media (max-width: 1100px) { .res__body { max-width: 70%; } }
@media (max-width: 800px) { .duo { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .res__art { width: 60%; opacity: .35; } .res__body { max-width: none; } .res::after { width: 80%; height: 14%; } .res .btn { width: 100%; } }

/* FAQ */
.faqsec { position: relative; overflow: hidden; background: linear-gradient(180deg, var(--cream), #FCFBF2); }
.faqsec > .wrap { position: relative; z-index: 1; }
.faqsec__main { max-width: 760px; }
.faqsec h2 em { font-style: italic; color: var(--brand); }
.faq { display: grid; gap: 12px; max-width: 760px; }
.faq details { border-radius: 16px; background: #fff; border: 1px solid rgba(227, 226, 218, .95); box-shadow: 0 8px 22px rgba(126, 35, 32, .05); overflow: hidden; transition: border-color .2s, box-shadow .2s; }
.faq details[open] { border-color: #DDC5BE; box-shadow: 0 14px 32px rgba(126, 35, 32, .1); }
.faq summary { display: flex; align-items: center; gap: 16px; min-height: 64px; padding: 10px 20px 10px 12px; cursor: pointer; list-style: none; font-family: var(--serif); font-size: clamp(1.1rem, 1.6vw, 1.3rem); font-weight: 700; color: var(--ink); }
.faq details[open] summary { background: linear-gradient(90deg, #EFE5DD, #F4EEE5); color: var(--brand); }
.faq summary::-webkit-details-marker { display: none; }
.faq__q { flex: 1; line-height: 1.3; }
.faq summary .ico { display: grid; place-items: center; flex: none; width: 46px; height: 46px; border-radius: 12px; background: linear-gradient(160deg, #F4EEE5, #EFE5DD); color: var(--icon); }
.faq summary .ico .i { width: 24px; height: 24px; }
.faq summary::after { content: ""; flex: none; width: 11px; height: 11px; margin-right: 4px; border-right: 2px solid var(--brand); border-bottom: 2px solid var(--brand); transform: rotate(45deg) translateY(-4px); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(-135deg) translateY(-2px); }
.faq details > div { padding: 16px 24px 8px 74px; }
.faq details p { margin: 0 0 .8em; font-size: 1rem; }
@media (max-width: 960px) { .faqsec__art { display: none; } .faqsec__main { max-width: none; } }
@media (max-width: 520px) { .faq summary { gap: 12px; padding-right: 14px; } .faq summary .ico { width: 40px; height: 40px; } .faq details > div { padding: 14px 16px 6px; } }

/* Contact and enquiry form */
.contact { background: var(--white); }
.contact__grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(28px, 4vw, 56px); align-items: start; }
.contact__list { margin: 24px 0 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.contact__list a { display: grid; grid-template-columns: 48px 1fr; gap: 14px; align-items: center; min-height: 60px; padding: 10px 14px; border-radius: 14px; background: var(--cream); border: 1px solid var(--line); color: var(--ink); text-decoration: none; overflow-wrap: anywhere; line-height: 1.4; }
.contact__list a:hover { border-color: var(--gold); }
.contact__list .ico { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 12px; background: var(--gold-tint); color: var(--icon); }
.contact__list small { display: block; color: var(--muted); font-size: .9rem; }
.enquire { padding: clamp(22px, 3vw, 34px); border-radius: 20px; background: var(--cream); border: 1px solid var(--line); box-shadow: 0 18px 44px rgba(45, 45, 45, .08); }
.enquire h3 { margin-bottom: 18px; font-size: 1.5rem; }
.enquire__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 16px; }
.field { display: grid; gap: 6px; font-size: .95rem; font-weight: 600; color: var(--ink); }
.field i { font-style: normal; font-weight: 400; color: var(--muted); }
.field--wide { grid-column: 1 / -1; }
.field input, .field select, .field textarea { width: 100%; min-height: 48px; padding: 10px 12px; border: 1px solid #8C8C8C; border-radius: 10px; background: #fff; color: var(--ink); font: 400 1rem/1.4 var(--sans); }
.field textarea { min-height: 92px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 3px solid rgba(126, 35, 32, .35); outline-offset: 0; border-color: var(--gold-ink); }
.was-checked .field :invalid, .was-checked .consent input:invalid { border-color: #7E2320; box-shadow: 0 0 0 1px #7E2320; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.consent { display: flex; align-items: flex-start; gap: 10px; margin: 16px 0 18px; font-size: .95rem; color: var(--ink); cursor: pointer; }
.consent input { flex: none; width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--brand); }
.enquire .btn { width: 100%; }
.enquire .btn .i { width: 1.15em; height: 1.15em; }
.enquire__status { min-height: 1.5em; margin: 12px 0 0; font-size: .98rem; }
.enquire__status.is-ok, .enquire__ok { color: var(--green); font-weight: 600; }
.enquire__status.is-err, .enquire__err { color: #7E2320; font-weight: 600; }
.enquire__ok, .enquire__err { margin: -6px 0 14px; padding: 10px 12px; border-radius: 10px; background: #fff; }
@media (max-width: 900px) { .contact__grid { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .enquire__grid { grid-template-columns: 1fr; } }

/* Footer */
.ftr { position: relative; overflow: hidden; color: #FCFBF2; font-size: .98rem; background:
    radial-gradient(70% 90% at 0% 100%, rgba(126, 35, 32, 0) 0%, rgba(126,35,32,0) 60%),
    linear-gradient(120deg, #7E2320 0%, #7E2320 55%, #7E2320 100%); }
.ftr__art { position: absolute; top: 0; right: 0; bottom: 64px; width: 30%; opacity: .32; mix-blend-mode: luminosity;
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 50%); mask-image: linear-gradient(90deg, transparent 0, #000 50%); }
.ftr__art picture, .ftr__art img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; }
.ftr__grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.1fr .85fr .95fr 1.5fr; gap: clamp(24px, 3.5vw, 48px); padding-block: clamp(44px, 6vw, 72px); }
.ftr__brand p { margin: 20px 0 0; color: #FCFBF2; line-height: 1.6; max-width: 34ch; }
.ftr__col h2 { position: relative; margin: 0 0 18px; padding-bottom: 12px; font-size: 1.35rem; color: #fff; }
.ftr__col h2::after { content: ""; position: absolute; left: 0; bottom: 0; width: 40px; height: 3px; border-radius: 2px; background: #FCFBF2; }
.ftr__col ul { margin: 0; padding: 0; list-style: none; }
.ftr__col + .ftr__col { padding-left: clamp(0px, 2.5vw, 32px); border-left: 1px solid rgba(255, 255, 255, .16); }
.ftr__col a { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 40px; color: #FCFBF2; text-decoration: none; }
.ftr__col a .i { width: 16px; height: 16px; opacity: .8; transition: transform .2s; }
.ftr__col a:hover { color: #fff; text-decoration: underline; }
.ftr__col a:hover .i { transform: translateX(3px); }
.ftr__contact { display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; align-content: start; }
.ftr__contact a { display: grid; grid-template-columns: 52px 1fr; gap: 14px; align-items: center; padding: 14px 16px; border-radius: 14px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .2); color: #fff; text-decoration: none; overflow-wrap: anywhere; line-height: 1.4; -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.ftr__contact a:hover { background: rgba(255, 255, 255, .14); color: #fff; }
.ftr__contact .ico { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 12px; background: rgba(255, 255, 255, .14); }
.ftr__contact .ico .i { width: 24px; height: 24px; }
.ftr__contact small { display: block; color: #FCFBF2; font-size: .9rem; }
.ftr__contact strong { display: block; font-size: 1.05rem; overflow-wrap: normal; word-break: keep-all; }
.ftr__contact a[href^="mailto"] strong { overflow-wrap: anywhere; word-break: normal; }
.ftr__bar { position: relative; z-index: 1; background: rgba(45, 45, 45, .35); }
.ftr__bar .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 28px; min-height: 64px; padding-block: 10px; }
.ftr__bar p { margin: 0; color: #FCFBF2; font-size: .92rem; }
.ftr__links { display: flex; flex-wrap: wrap; margin: 0; padding: 0; list-style: none; }
.ftr__links li + li { border-left: 1px solid rgba(255, 255, 255, .3); }
.ftr__links a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; color: #FCFBF2; font-size: .95rem; text-decoration: none; }
.ftr__links a:hover { color: #fff; text-decoration: underline; }
.ftr__social { display: flex; gap: 10px; margin: 0; padding: 0; list-style: none; }
.ftr__social a { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid rgba(255, 255, 255, .7); color: #fff; }
.ftr__social a:hover { background: #fff; color: var(--brand); }
.ftr__social .i { width: 20px; height: 20px; }
.ftr :focus-visible { outline-color: #fff; }
@media (max-width: 1100px) {
    .ftr__grid { grid-template-columns: 1fr 1fr; }
    .ftr__art { display: none; }
}
@media (max-width: 760px) { .ftr { padding-bottom: 72px; } }
@media (max-width: 600px) {
    .ftr__grid { grid-template-columns: 1fr; }
    .ftr__col + .ftr__col { padding-left: 0; border-left: 0; }
    .ftr__links a { padding: 0 12px; }
    .ftr__links li:first-child a { padding-left: 0; }
}

/* Phone action bar */
.mbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; display: none; gap: 8px; padding: 8px max(12px, env(safe-area-inset-left)) calc(8px + env(safe-area-inset-bottom)); background: rgba(252, 251, 242, .97); border-top: 1px solid var(--line); box-shadow: 0 -6px 20px rgba(45,45,45,.06); }
.mbar a { flex: 1; min-height: 48px; }
@media (max-width: 760px) { .mbar { display: flex; } }

/* Reveal on scroll (progressive: only when JS adds .js) */
.js .rv { opacity: 0; transform: translateY(12px); transition: opacity .3s ease-out, transform .3s ease-out; }
.js .rv.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .rv { opacity: 1; transform: none; } }

/* =========================================================================
   v2 (review of 18 Nov 2026): section rhythm, trust strip, tabs, fee feature,
   faculty, ask card, active menu, back to top
   ========================================================================= */
/* Alternate cream and white; one dark section (results). */
.trust, .progs, .learn, .lifesec, .contact { background: var(--sand); }
.why, #admissions, .hospsec, .faqsec { background: var(--cream); }
.lifesec, .learn, .progs { background-image: none; }

/* Trust strip under the hero */
.trust { border-block: 1px solid var(--line); }
.trust .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; padding-block: 18px; }
.trust__list { display: grid; grid-template-columns: repeat(4, minmax(0, auto)); gap: 12px 28px; margin: 0; padding: 0; list-style: none; flex: 1; }
.trust__list li { display: flex; align-items: center; gap: 12px; font-size: .95rem; line-height: 1.35; color: var(--muted); }
.trust__list img { width: 48px; height: 48px; object-fit: contain; flex: none; }
.trust__list .ico { display: grid; place-items: center; flex: none; width: 48px; height: 48px; border-radius: 12px; background: var(--gold-tint); color: var(--icon); }
.trust__list .ico .i { width: 24px; height: 24px; }
.trust__list strong { display: block; color: var(--ink); font-size: 1rem; }
.trust__link { display: inline-flex; align-items: center; gap: .4em; min-height: 44px; font-weight: 600; text-decoration: none; white-space: nowrap; }
.trust__link:hover { text-decoration: underline; }
@media (max-width: 1100px) { .trust__list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .trust__list { grid-template-columns: 1fr; } }

/* Tabs */
.tabs__list { display: inline-flex; flex-wrap: wrap; gap: 6px; margin-bottom: 22px; padding: 6px; border-radius: 14px; background: var(--sand); border: 1px solid var(--line); }
.tabs__tab { display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 20px; border: 0; border-radius: 10px; background: transparent; color: var(--ink); font: 600 1rem/1.2 var(--sans); cursor: pointer; }
.tabs__tab .i { width: 20px; height: 20px; color: var(--icon); }
.tabs__tab:hover { background: #fff; }
.tabs__tab[aria-selected="true"] { background: var(--brand); color: #fff; box-shadow: 0 6px 16px rgba(126, 35, 32, .2); }
.tabs__tab[aria-selected="true"] .i { color: #fff; }
.tabs__count { display: inline-grid; place-items: center; min-width: 26px; height: 26px; padding: 0 6px; border-radius: 999px; background: var(--gold-tint); color: var(--gold-ink); font-size: .9rem; }
.tabs__tab[aria-selected="true"] .tabs__count { background: rgba(255, 255, 255, .2); color: #fff; }
.tabs__panel:focus-visible { outline-offset: 6px; }
.progs .prog { max-width: 980px; }
.pgseats { margin-top: 28px; }
.pgseats__title { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; margin-bottom: .4em; }
.pgseats__title span { font-family: var(--sans); font-size: .95rem; font-weight: 600; color: var(--muted); }
.pgseats > p { max-width: 70ch; }
.pgseats .pgrows { margin-top: 18px; }
@media (max-width: 520px) { .tabs__list { display: flex; } .tabs__tab { flex: 1 1 auto; justify-content: center; padding: 0 12px; } }

/* Admissions: no-fee feature card above the table */
.feature { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 20px 36px; align-items: center; margin: 0 0 24px; padding: clamp(20px, 3vw, 32px); border-radius: 20px; background: var(--green); color: #EFE5DD; }
.feature h3 { color: #fff; font-size: clamp(1.4rem, 2.4vw, 1.9rem); margin: 10px 0 8px; }
.feature p { margin: 0; color: #FCFBF2; }
.tag-free { display: inline-flex; padding: 4px 12px; border-radius: 999px; background: #FCFBF2; color: var(--green); font-size: .9rem; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; }
.feature__free { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin: 0; padding: 0; list-style: none; }
.feature__free li { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding: 14px; border-radius: 12px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .18); color: #fff; font-weight: 600; }
.feature__free .i { width: 26px; height: 26px; color: #FCFBF2; }
.seats__free th, .seats__free td { background: var(--green-tint); }
.seats__free th { box-shadow: inset 4px 0 0 var(--green); }
.pill-free { background: #FCFBF2; color: var(--green); }
.muted-label { font-family: var(--sans); font-size: .95rem; font-weight: 600; color: var(--muted); }
@media (max-width: 900px) { .feature { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .feature__free { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Results (dark) and faculty */
.section--ink .res { border-color: transparent; box-shadow: none; }
.section--ink .res h3 { color: var(--ink); }
.faculty { margin-top: clamp(40px, 5vw, 64px); }
.faculty__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 24px; margin-bottom: 18px; }
.faculty__head h3 { margin: 0; font-size: clamp(1.4rem, 2.4vw, 1.8rem); }
.section--ink .link-arrow { color: #FCFBF2; }
.faculty__list { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; margin: 0; padding: 0; list-style: none; }
.faculty__list li { display: flex; flex-direction: column; gap: 2px; }
.faculty__list img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 14px; background: #F4EEE5; margin-bottom: 10px; }
.faculty__list strong { color: #fff; font-size: 1rem; line-height: 1.3; }
.faculty__list span { color: var(--cream); font-size: .95rem; }
@media (max-width: 1020px) { .faculty__list { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 520px) { .faculty__list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; } }

/* FAQ with the ask-admissions card on the right */
.faqsec__grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
.faqsec__main { max-width: none; }
.ask { position: sticky; top: calc(var(--hdr) + 24px); padding: clamp(22px, 3vw, 30px); border-radius: 20px; background: #fff; border: 1px solid var(--line); box-shadow: 0 16px 40px rgba(45, 45, 45, .08); }
.ask__ico { display: grid; place-items: center; width: 56px; height: 56px; margin-bottom: 14px; border-radius: 14px; background: var(--gold-tint); color: var(--icon); }
.ask__ico .i { width: 28px; height: 28px; }
.ask h3 { font-size: 1.45rem; }
.ask p { font-size: 1rem; }
.ask__list { display: grid; gap: 4px; margin: 0 0 18px; padding: 0; list-style: none; }
.ask__list a { display: flex; align-items: center; gap: 10px; min-height: 44px; color: var(--ink); font-weight: 600; text-decoration: none; overflow-wrap: anywhere; }
.ask__list a:hover { color: var(--brand); text-decoration: underline; }
.ask__list .i { width: 20px; height: 20px; color: var(--icon); }
.ask .btn { width: 100%; }
@media (max-width: 960px) { .faqsec__grid { grid-template-columns: 1fr; } .ask { position: static; } }

/* Sticky menu: section in view */
.hdr__nav a.is-active { color: var(--brand); box-shadow: inset 0 -3px 0 var(--gold); border-radius: 6px 6px 0 0; }
@media (max-width: 1100px) { .hdr__nav a.is-active { box-shadow: inset 4px 0 0 var(--gold); } }

/* Back to top */
.totop { position: fixed; z-index: 55; right: 20px; bottom: 24px; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--ink); color: #fff; box-shadow: 0 10px 24px rgba(45, 45, 45, .2); }
.totop:hover { background: var(--brand); color: #fff; }
.totop .i { width: 22px; height: 22px; }
.totop[hidden] { display: none; }
@media (max-width: 760px) { .totop { bottom: calc(80px + env(safe-area-inset-bottom)); right: 14px; } }
.mbar .btn .i { width: 1.1em; height: 1.1em; }
.ressec.section--ink { background: var(--ink); }
.section--ink .res { color: var(--body); }
.section--ink .res p { color: var(--body); }

/* Logo: the client's SMSIMSR seal (vector, from "SMS Institute of Medical Sciences-_white BG.pdf"), unaltered. */
.hdr__logo { display: flex; align-items: center; flex: none; min-height: 48px; }
.hdr__logo img { display: block; width: 228px; height: auto; }
.ftr__logo { display: inline-flex; }
.ftr__logo img { display: block; width: 92px; height: auto; }
@media (max-width: 1180px) { .hdr__logo img { width: 192px; } }
@media (max-width: 420px) { .hdr__logo img { width: 172px; } }

/* =========================================================================
   Inner pages (page.php): hero, breadcrumb, side menu, readable content
   ========================================================================= */
.phero { position: relative; overflow: hidden; padding-block: clamp(24px, 3.5vw, 48px); background:
    radial-gradient(60% 80% at 100% 0%, rgba(126,35,32,.07) 0%, rgba(126,35,32,0) 70%), var(--cream); border-bottom: 1px solid var(--line); }
.phero__grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(24px, 4vw, 56px); align-items: center; }
.phero h1 { font-size: clamp(2rem, 4.2vw, 3.1rem); margin-bottom: .35em; }
.phero .lead { max-width: 40em; margin-bottom: 0; color: var(--ink); }
.phero__media { position: relative; border-radius: 24px; overflow: hidden; aspect-ratio: 3 / 2; box-shadow: 0 20px 48px rgba(126, 35, 32, .14); background: var(--brand-tint); }
.phero__media picture, .phero__media img { width: 100%; height: 100%; object-fit: cover; }
.phero__media::after { content: ""; position: absolute; left: 0; bottom: 0; width: 42%; height: 24%; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 100' preserveAspectRatio='none'%3E%3Cpath d='M0 0 C 20 60 80 92 200 100 L 0 100 Z' fill='%237E2320'/%3E%3C/svg%3E") no-repeat 0 100% / 100% 100%; }
.phero__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.phero__actions .btn .i { width: 1.1em; height: 1.1em; }
.phero__date { display: inline-flex; align-items: center; gap: 8px; margin: 14px 0 0; color: var(--muted); font-weight: 600; }
.phero__date .i { width: 20px; height: 20px; color: var(--brand); }
.phero--plain { padding-block: clamp(48px, 7vw, 96px); }
@media (max-width: 900px) { .phero__grid { grid-template-columns: 1fr; } .phero__media { order: -1; aspect-ratio: 16 / 9; } }

.crumbs ol { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; margin: 0 0 14px; padding: 0; list-style: none; font-size: .95rem; }
.crumbs li { display: inline-flex; align-items: center; gap: 4px; color: var(--muted); }
.crumbs li + li::before { content: "/"; margin: 0 4px; color: var(--line2, #D3D2CB); }
.crumbs a { display: inline-flex; align-items: center; min-height: 32px; color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--brand); text-decoration: underline; }
.crumbs [aria-current] { color: var(--ink); font-weight: 600; }

.section--tight { padding-block: clamp(32px, 4vw, 56px); }
.intro-note { max-width: 70ch; margin: 0 0 clamp(24px, 3vw, 36px); font-size: 1.08rem; color: var(--ink); }

/* Content + side menu */
.pbody { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: clamp(28px, 4vw, 64px); align-items: start; padding-block: clamp(32px, 4vw, 56px); }
.pbody .pside { order: 2; position: sticky; top: calc(var(--hdr) + 20px); display: grid; gap: 16px; max-height: calc(100vh - var(--hdr) - 40px); overflow-y: auto; scrollbar-width: thin; }
.pbody .prose { order: 1; }
@media (max-width: 960px) {
    .pbody { grid-template-columns: 1fr; }
    .pbody .pside { position: static; max-height: none; overflow: visible; order: 2; }
    .pbody--toc .pside .toc { order: -1; }
    .pbody--toc .pside { order: 0; }
}
.toc, .sidenav, .sidecard { border-radius: 16px; background: #fff; border: 1px solid var(--line); }
.toc summary { display: flex; align-items: center; justify-content: space-between; min-height: 52px; padding: 0 18px; cursor: pointer; list-style: none; font-weight: 700; color: var(--ink); }
.toc summary::-webkit-details-marker { display: none; }
.toc summary::after { content: ""; width: 10px; height: 10px; border-right: 2px solid var(--brand); border-bottom: 2px solid var(--brand); transform: rotate(45deg) translateY(-3px); transition: transform .2s; }
.toc[open] summary::after { transform: rotate(-135deg); }
.toc ol { margin: 0; padding: 0 10px 12px; list-style: none; counter-reset: t; }
.toc li { counter-increment: t; }
.toc a { display: grid; grid-template-columns: 26px 1fr; gap: 6px; padding: 8px 8px; border-radius: 8px; color: var(--ink); font-size: .95rem; line-height: 1.4; text-decoration: none; }
.toc a::before { content: counter(t); font-weight: 700; color: var(--brand); }
.toc a:hover, .toc a.is-active { background: var(--brand-tint); color: var(--brand); }
.sidenav { padding: 16px 10px 10px; }
.sidenav__title { margin: 0 8px 8px; font-size: .9rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--brand); }
.sidenav ul { margin: 0; padding: 0; list-style: none; }
.sidenav a { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 44px; padding: 8px; border-radius: 8px; color: var(--ink); font-size: .98rem; line-height: 1.35; text-decoration: none; }
.sidenav a .i { width: 16px; height: 16px; flex: none; color: var(--brand); opacity: .6; }
.sidenav a:hover { background: var(--brand-tint); }
.sidenav a[aria-current] { background: var(--brand); color: #fff; font-weight: 700; }
.sidenav a[aria-current] .i { color: #fff; opacity: 1; }
.sidecard { display: grid; gap: 4px; padding: 18px; background: var(--brand-tint); border-color: transparent; }
.sidecard__title { margin: 0 0 6px; font-family: var(--serif); font-size: 1.15rem; font-weight: 700; color: var(--ink); }
.sidecard > a:not(.btn) { display: flex; align-items: center; gap: 8px; min-height: 40px; color: var(--ink); font-weight: 600; text-decoration: none; overflow-wrap: anywhere; }
.sidecard > a:not(.btn):hover { color: var(--brand); text-decoration: underline; }
.sidecard .i { width: 18px; height: 18px; color: var(--brand); }
.sidecard .btn { margin-top: 8px; }

/* Readable content */
.prose { min-width: 0; max-width: 760px; font-size: 1.08rem; line-height: 1.75; color: var(--ink); }
.prose > * + * { margin-top: 1.1em; }
.prose p { max-width: none; margin: 0; }
.prose > p + p { margin-top: .9em; }
.prose h2 { margin: 2em 0 .6em; padding-top: .2em; font-size: clamp(1.55rem, 2.6vw, 2rem); scroll-margin-top: calc(var(--hdr) + 16px); }
.prose h2::before { content: ""; display: block; width: 40px; height: 3px; margin-bottom: 14px; border-radius: 2px; background: var(--brand); }
.prose > h2:first-child, .prose > .finder + h2, .prose > .dfacts + h2 { margin-top: 0; }
.prose h3 { margin: 1.6em 0 .5em; font-size: clamp(1.2rem, 1.9vw, 1.4rem); }
.prose h4, .prose h5, .prose h6 { margin: 1.4em 0 .4em; font-family: var(--sans); font-size: 1.05rem; font-weight: 700; color: var(--ink); }
.prose .lead-in { font-family: var(--serif); font-size: clamp(1.2rem, 1.8vw, 1.4rem); line-height: 1.5; color: var(--ink); padding-left: 18px; border-left: 3px solid var(--brand); }
.prose .lead { font-size: 1.12rem; }
.prose a { color: var(--brand); font-weight: 600; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.prose a:hover { text-decoration-thickness: 2px; }
.prose a.link-pdf::before { content: "PDF"; display: inline-block; margin-right: 6px; padding: 1px 6px; border-radius: 4px; background: var(--brand); color: #fff; font-size: .72em; font-weight: 700; letter-spacing: .04em; vertical-align: .15em; text-decoration: none; }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose li + li { margin-top: .45em; }
.prose ul li::marker { color: var(--brand); }
.prose ol li::marker { color: var(--brand); font-weight: 700; }
.prose strong, .prose b { color: var(--ink); }
.prose img { max-width: 100%; height: auto; border-radius: 16px; }
.prose figure { margin: 1.6em 0; }
.prose figcaption { margin-top: 8px; font-size: .95rem; color: var(--muted); }
.prose iframe { width: 100%; aspect-ratio: 16 / 9; height: auto; border: 0; border-radius: 16px; }
.prose blockquote { margin: 1.4em 0; padding: 16px 20px; border-left: 4px solid var(--brand); border-radius: 0 12px 12px 0; background: var(--brand-tint); font-family: var(--serif); font-size: 1.15rem; }
.prose hr { margin: 2em 0; border: 0; border-top: 1px solid var(--line); }
.table-wrap { overflow-x: auto; margin: 1.4em 0; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.table-wrap:focus-visible { outline-offset: 2px; }
.prose table { width: 100%; min-width: 520px; border-collapse: collapse; font-size: .98rem; line-height: 1.5; }
.prose th, .prose td { padding: 12px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.prose thead th { background: var(--brand-tint); color: var(--ink); font-weight: 700; }
.prose tbody tr:nth-child(even) td, .prose tbody tr:nth-child(even) th { background: var(--cream); }
.prose tbody tr:last-child td, .prose tbody tr:last-child th { border-bottom: 0; }
.prose td:first-child { font-weight: 600; }
.statrow { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; margin: 1.4em 0; padding: 0; list-style: none; }
.statrow li { margin: 0; padding: 16px; border-radius: 14px; background: #fff; border: 1px solid var(--line); }
.statrow strong { display: block; font-family: var(--serif); font-size: 1.8rem; line-height: 1.1; color: var(--brand); }
.statrow span { display: block; margin-top: 4px; font-size: .95rem; line-height: 1.4; color: var(--ink); }
.prose .statrow li::marker { content: none; }

/* Department page extras */
.dfacts { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; margin: 0 0 2em; padding: 0; list-style: none; }
.dfacts li { display: flex; align-items: flex-start; gap: 12px; margin: 0; padding: 16px; border-radius: 14px; background: #fff; border: 1px solid var(--line); font-size: .95rem; line-height: 1.45; }
.dfacts strong { display: block; font-size: 1.02rem; color: var(--ink); }
.dfacts .ico { display: grid; place-items: center; flex: none; width: 44px; height: 44px; border-radius: 12px; background: var(--brand-tint); color: var(--brand); }
.dfacts .ico .i { width: 22px; height: 22px; }
.prose .dfacts li::marker { content: none; }
.people { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 18px; margin: 1em 0 0; padding: 0; list-style: none; }
.people li { display: flex; flex-direction: column; gap: 2px; margin: 0; }
.people img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; object-position: 50% 15%; border-radius: 14px; background: var(--brand-tint); margin-bottom: 10px; }
.people strong { font-size: 1rem; line-height: 1.3; }
.people span { font-size: .95rem; line-height: 1.35; color: var(--muted); }
.people--wide { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 22px; }
.prose .people li::marker { content: none; }
.prose .people { padding-left: 0; }
.dfaculty { margin-top: 2.4em; }
.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 3em; }
.pager a { display: flex; flex-direction: column; gap: 4px; padding: 16px 18px; border-radius: 14px; background: #fff; border: 1px solid var(--line); font-family: var(--serif); font-size: 1.12rem; font-weight: 700; color: var(--ink); text-decoration: none; }
.pager a:last-child { text-align: right; align-items: flex-end; }
.pager a:hover { border-color: var(--brand); color: var(--brand); }
.pager small { display: inline-flex; align-items: center; gap: 4px; font-family: var(--sans); font-size: .9rem; font-weight: 600; color: var(--muted); }
.pager .i { width: 14px; height: 14px; }
@media (max-width: 560px) { .pager { grid-template-columns: 1fr; } .pager a:last-child { text-align: left; align-items: flex-start; } }

/* Departments index */
.dgroup + .dgroup { margin-top: clamp(36px, 5vw, 56px); }
.dgroup__head { display: flex; align-items: flex-start; gap: 16px; margin-bottom: 18px; }
.dgroup__head .ico { display: grid; place-items: center; flex: none; width: 56px; height: 56px; border-radius: 14px; background: var(--brand-tint); color: var(--brand); }
.dgroup__head .ico .i { width: 28px; height: 28px; }
.dgroup__head h2 { margin: 0 0 4px; font-size: clamp(1.5rem, 2.4vw, 1.9rem); }
.dgroup__head p { margin: 0; color: var(--muted); }
.dgroup__count { display: inline-grid; place-items: center; min-width: 32px; height: 32px; margin-left: 6px; padding: 0 8px; border-radius: 999px; background: var(--brand); color: #fff; font-family: var(--sans); font-size: .95rem; vertical-align: .2em; }
.dcards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; margin: 0; padding: 0; list-style: none; }
.dcards a { position: relative; display: flex; flex-direction: column; gap: 6px; height: 100%; padding: 18px 46px 18px 18px; border-radius: 16px; background: #fff; border: 1px solid var(--line); color: var(--ink); text-decoration: none; transition: border-color .2s, box-shadow .2s, transform .2s; }
.dcards a:hover { border-color: var(--brand); box-shadow: 0 12px 28px rgba(126, 35, 32, .1); transform: translateY(-2px); }
.dcards strong { font-family: var(--serif); font-size: 1.2rem; line-height: 1.25; }
.dcards span { font-size: .95rem; line-height: 1.45; color: var(--muted); }
.dcards__pg { align-self: flex-start; margin-top: 4px; padding: 3px 10px; border-radius: 999px; background: var(--brand-tint); color: var(--brand); font-size: .88rem; font-style: normal; font-weight: 700; }
.dcards a > .i { position: absolute; right: 16px; top: 20px; width: 18px; height: 18px; color: var(--brand); }
@media (prefers-reduced-motion: reduce) { .dcards a:hover { transform: none; } }

/* NMC index */
.ncards { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; }
.ncards a { display: grid; grid-template-columns: 28px 44px 1fr 18px; gap: 12px; align-items: center; min-height: 76px; padding: 14px 16px; border-radius: 14px; background: #fff; border: 1px solid var(--line); color: var(--ink); text-decoration: none; line-height: 1.35; transition: border-color .2s, box-shadow .2s; }
.ncards a:hover { border-color: var(--brand); box-shadow: 0 10px 24px rgba(126, 35, 32, .08); }
.ncards__n { font-weight: 700; color: var(--muted); text-align: right; font-variant-numeric: tabular-nums; }
.ncards .ico { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--brand-tint); color: var(--brand); }
.ncards .ico .i { width: 22px; height: 22px; }
.ncards strong { font-size: 1.02rem; }
.ncards a > .i { width: 18px; height: 18px; color: var(--brand); }

/* Search / filter */
.finder { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin-bottom: 1.6em; padding: 14px; border-radius: 16px; background: #fff; border: 1px solid var(--line); }
.finder__field { position: relative; flex: 1 1 320px; }
.finder__field .i { position: absolute; left: 14px; top: 50%; width: 20px; height: 20px; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.finder input, .finder select { width: 100%; min-height: 48px; padding: 10px 14px 10px 44px; border: 1px solid #8C8C8C; border-radius: 10px; background: #fff; color: var(--ink); font: 400 1rem/1.4 var(--sans); }
.finder select { padding-left: 14px; }
.finder__select { flex: 0 1 260px; }
.finder input:focus, .finder select:focus { outline: 3px solid rgba(126, 35, 32, .35); outline-offset: 0; border-color: var(--brand); }
.finder__count { margin: 0; font-size: .95rem; font-weight: 600; color: var(--muted); }
.finder--row { margin-bottom: 24px; }
[data-filter-item][hidden], .is-filtered-out { display: none !important; }
mark.hit { padding: 0 2px; border-radius: 3px; background: var(--brand-tint); color: var(--brand); }
.prose .dfacts, .prose .statrow, .prose .people { padding-left: 0; }
/* Wide content (research tables): the side menu moves under the content. */
.pbody--wide { grid-template-columns: 1fr; }
.pbody--wide .prose { max-width: none; }
.pbody--wide .pside { position: static; max-height: none; overflow: visible; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); align-items: start; order: 0; }
.pbody--wide .pside .toc { order: -1; }
.prose .table-wrap table { font-size: .95rem; }
.prose--filter .table-wrap th { position: sticky; top: 0; }
@media (max-width: 760px) { .nav__list { padding-bottom: calc(96px + env(safe-area-inset-bottom)); } }
/* Document previews (an image of a PDF page, linking to the PDF): compact card instead of a full-height scan. */
.prose a.doc-preview { position: relative; display: block; max-width: 420px; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: #fff; text-decoration: none; box-shadow: 0 10px 24px rgba(45, 45, 45, .06); transition: border-color .2s, box-shadow .2s; }
.prose a.doc-preview img { display: block; width: 100%; height: 300px; object-fit: cover; object-position: top; border-radius: 0; }
.prose a.doc-preview::after { content: "Open PDF \2197"; position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 16px 14px; background: linear-gradient(180deg, rgba(255,255,255,0), #fff 55%); color: var(--brand); font-weight: 700; font-size: 1rem; }
.prose a.doc-preview:hover { border-color: var(--brand); box-shadow: 0 14px 30px rgba(126, 35, 32, .12); }
.prose figure.media { margin: 1em 0 1.6em; }
.ncards { counter-reset: none; } ol.ncards { padding-left: 0; }
