/* Public editorial theme and layout. */
/* Editorial colour and type tokens. */
:root {
    --editorial-ink: #172935;
    --editorial-muted: #425560;
    --editorial-paper: #fcfbf7;
    --editorial-warm: #f0eadd;
    --editorial-rule: #ddd7c8;
    --editorial-accent: #805522;
    --editorial-serif: Georgia, 'Times New Roman', serif;
}
body { background: var(--editorial-paper); color: var(--editorial-ink); }
.announcement { background: #142633; }
.site-header { background: var(--editorial-paper); border-color: var(--editorial-rule); }
.site-header .identity b { letter-spacing: .025em; }
.site-header .nav-cta { background: var(--editorial-ink); border-radius: 4px; }
.site-nav a:focus-visible, .button:focus-visible { outline-color: #a56b24; }

/* Homepage hero refinements. */
.surya-home .hero {
    background: var(--editorial-warm);
    color: var(--editorial-ink);
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    gap: clamp(24px, 4vw, 64px);
    padding: 24px max(24px, calc((100% - 1192px) / 2));
    align-items: center;
}
.surya-home .hero-inner { padding: 0; }
.surya-home .hero-inner > .eyebrow {
    color: var(--editorial-accent);
    font-size: 12px;
    letter-spacing: .095em;
    text-transform: uppercase;
}
.surya-home .hero h1 {
    font: 400 clamp(31px, 3.9vw, 57px)/1.04 var(--editorial-serif);
    letter-spacing: -.045em;
    max-width: 16ch;
    margin: 11px 0 13px;
}
.surya-home .hero-copy {
    color: var(--editorial-muted);
    max-width: 50ch;
    font-size: 15px;
}
.surya-home .hero-art {
    aspect-ratio: 5 / 3;
    min-height: 0;
    background-color: #203442;
    border-radius: 6px;
}
.hero-editorial img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.hero-editorial:before, .hero-editorial:after { content: none; }
.hero-photo img { padding: 9px; }
.surya-home .hero .button { border-radius: 4px; font-size: 14px; letter-spacing: 0; }
.surya-home .hero .button.gold { background: var(--editorial-ink); color: #fff; }
.surya-home .hero .button.gold:hover { background: #284457; }
.surya-home .hero .button.outline { color: var(--editorial-ink); border-color: #82715b; }
.surya-home .trust-line {
    background: #f7f4ec;
    color: var(--editorial-ink);
    border-bottom: 1px solid var(--editorial-rule);
}
/* Programme card and link refinements. */
.surya-home .programmes { padding-block: 27px 18px; }
.surya-home .programmes .section-heading {
    align-items: end;
    margin-bottom: 14px;
}
.section-heading .eyebrow { margin: 0; }
.section-link { color: var(--editorial-accent); font-weight: 700; padding-block: 6px; }
.section-link:hover { color: var(--editorial-ink); }
.surya-home .programmes h2 { font-size: clamp(26px, 3.2vw, 41px); margin: 6px 0 0; }
.surya-home .programme-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.surya-home .programme-card {
    background: #fff;
    border: 1px solid var(--editorial-rule);
    border-top: 3px solid #b48a5a;
    border-radius: 4px;
    padding: 14px 12px;
    min-height: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.surya-home .programme-card h3 {
    font: 600 16px/1.3 system-ui, sans-serif;
    margin: 0;
}
.surya-home .programme-card .course-num,
.surya-home .programme-card .course-native { margin: 0; color: var(--editorial-accent); }
.surya-home .programme-card a { margin-top: auto; padding-top: 5px; }
.surya-home .research-band { background: #1a303d; }
.surya-home .closing { background: var(--editorial-warm); }

/* Interior page refinements. */
body.surya-inner { background: var(--editorial-paper); }
.surya-content .page-intro { border-color: var(--editorial-rule); }
.surya-content .page-intro h1 {
    font-family: var(--editorial-serif);
    font-weight: 400;
    font-size: clamp(33px, 4vw, 55px);
}
.surya-content .catalogue-list { border: 1px solid var(--editorial-rule); border-radius: 6px; background: #fff; }
.surya-content .catalogue-entry { padding-inline: 18px; border-color: var(--editorial-rule); }
.surya-content .catalogue-entry:nth-child(even) { background: #f9f7f1; }
.surya-content .catalogue-entry:last-child { border-bottom: 0; }
.surya-content .catalogue-link { color: var(--editorial-accent); }
/* Contact form surface. */
.contact-layout > form {
    background: #fff;
    border-color: var(--editorial-rule);
    border-radius: 8px;
    box-shadow: 0 10px 25px #17293509;
}
.contact-layout > form button { background: var(--editorial-ink); }
@media (max-width: 1060px) {
    .surya-home .programme-grid { display: flex; flex-wrap: wrap; }
    .surya-home .programme-card { flex: 1 1 26%; }
}
@media (max-width: 760px) {
    .surya-home .hero { grid-template-columns: minmax(0, 1fr); gap: 16px; padding: 20px 16px; }
    .surya-home .hero-art.hero-editorial { display: block; aspect-ratio: 12 / 5; }
    .surya-home .hero .hero-photo { margin: 0; }
    .surya-home .programmes .section-heading { align-items: start; gap: 4px; }
    .surya-home .programme-card { flex: 1 1 40%; }
}
@media (max-width: 410px) {
    .surya-home .programme-card { flex-basis: 100%; }
}

/* About and History introductions. */
.institutional-feature {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    align-items: center;
    gap: clamp(24px, 4vw, 54px);
    padding: 18px 0 26px;
    margin-bottom: 22px;
    border-bottom: 1px solid var(--editorial-rule);
}
.institutional-feature h1 {
    font: 400 clamp(34px, 4vw, 59px)/1.06 var(--editorial-serif);
    letter-spacing: -.035em;
    margin: 0 0 15px;
}
.institutional-feature h2 {
    font: 650 clamp(18px, 2vw, 23px)/1.35 system-ui, sans-serif;
    margin: 0 0 9px;
}
.institutional-feature p { margin: 0 0 9px; }
.institutional-feature figure { margin: 0; background: var(--editorial-warm); }
.institutional-feature img {
    display: block;
    width: 100%;
    aspect-ratio: 3 / 2;
    height: auto;
    object-fit: contain;
}
.editorial-reading > .content-block > p:first-child { margin-top: 0; }
.editorial-reading-vision-mission h2 { padding-top: 8px; border-top: 1px solid var(--editorial-rule); }
.surya-content .catalogue-entry {
    display: grid;
    grid-template-columns: 46px minmax(0, 1fr) auto;
    gap: 10px 16px;
}
.programme-code {
    color: var(--editorial-accent);
    font-size: 13px;
    font-variant-numeric: tabular-nums;
}
@media (max-width: 760px) {
    .institutional-feature {
        grid-template-columns: minmax(0, 1fr);
        gap: 14px;
        padding: 6px 0 16px;
        margin-bottom: 14px;
    }
    .institutional-feature img { max-height: 280px; }
}
@media (max-width: 600px) {
    .surya-content .catalogue-entry { grid-template-columns: 36px minmax(0, 1fr); }
    .surya-content .catalogue-link { grid-column: 2; }
}

.surya-content .prose p,
.reading-copy p,
.institutional-feature-copy .content-block p,
.surya-content .academic-overview p {
    text-align: justify;
    text-align-last: start;
    hyphens: auto;
    overflow-wrap: anywhere;
}
/* Library card imagery and excerpts. */
.editorial-article-cards article {
    display: flex;
    flex-direction: column;
}
.editorial-article-cards .record-cover,
.home-course-cover {
    display: block;
    width: 100%;
    aspect-ratio: 3 / 2;
    object-fit: cover;
}
.editorial-article-cards .record-cover { max-height: 180px; }
.editorial-article-cards .article-teaser {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
    min-height: 4.5em;
    line-height: 1.5;
}
.editorial-article-cards article > a:last-child { margin-top: auto; }
.surya-home .programme-card .home-course-cover { max-height: 115px; }
.surya-content .catalogue-cover { width: clamp(64px, 8vw, 112px); height: auto; aspect-ratio: 3 / 2; object-fit: cover; }

.surya-home .hero .hero-photo { background: transparent; }
.surya-home .hero .hero-photo::before,
.surya-home .hero .hero-photo::after { content: none; }
@media (min-width: 761px) {
    .surya-home .hero.hero-viewport { min-height: var(--hero-height, 100vh); }
}
.announcement a { display: inline-block; margin-inline: 7px; color: #fff; }
.announcement a:hover { color: #e2c486; }
.nav-submenu summary { display: flex; align-items: center; gap: 6px; color: var(--editorial-ink); }
.nav-submenu summary:hover { color: var(--editorial-accent); }
.site-nav .dropdown .nav-group { display: flex; padding-right: 10px; justify-content: space-between; }
.site-nav .dropdown .nav-group > .nav-submenu:only-child { padding: 10px 18px; }
.site-nav .dropdown .dropdown { inset: 0 auto auto calc(100% - 2px); }
.site-nav .dropdown .dropdown .dropdown { inset: 0 100% auto auto; }
/* FAQ disclosure layout. */
.course-faq { margin-block: 24px; }
.course-faq details { border-top: 1px solid var(--editorial-rule); padding: 10px 0; }
.course-faq summary { cursor: pointer; font-weight: 650; color: var(--editorial-ink); }
.content-block img { display: block; max-width: 100%; height: auto; margin: 12px auto; }
.training-callout { display: flex; gap: 12px; align-items: center; justify-content: space-between; }
.training-callout p { margin: 0; }
@media (max-width: 760px) {
    .site-nav .dropdown .nav-group { display: block; }
    .site-nav .dropdown .dropdown { position: static; }
    .training-callout { display: block; }
}

/* Shared viewport shell: pin short-page footers to the bottom and reserve a scrollbar gutter. */
html { overflow-y: scroll; }
@supports (scrollbar-gutter: stable) {
    html { overflow-y: auto; scrollbar-gutter: stable; }
}
body.surya-home,
body.surya-inner {
    --site-width: 1240px;
    --site-gutter: 24px;
    --page-inset: max(var(--site-gutter), calc((100% - var(--site-width)) / 2 + var(--site-gutter)));
    --section-space: clamp(32px, 3.8vw, 52px);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}
body.surya-home > main,
body.surya-inner > main { flex: 1 0 auto; min-width: 0; }
.surya-content { width: 100%; max-width: var(--site-width); padding-inline: var(--site-gutter); }
.site-header,
.site-footer {
    padding-inline: var(--page-inset);
}
.site-footer { flex-shrink: 0; }

/* Public sections: keep one rhythm from the hero to the final call to action. */
.surya-home .section { max-width: var(--site-width); padding: var(--section-space) var(--site-gutter); }
.surya-home .research-band,
.surya-home .closing { padding-block: var(--section-space); }
.surya-home .programmes + .research-band { margin-top: 4px; }
.surya-content > .page-intro { margin-bottom: 26px; }

/* Public forms: centre the whole form while keeping labels easy to scan. */
.public-form-layout { width: min(100%, 720px); margin-inline: auto; }
.public-form-layout > form { width: 100%; margin: 0; background: #fff; border-color: var(--editorial-rule); }
.public-form-layout > p { text-align: center; }
.public-form-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 14px; }
.public-form-layout .contact-consent { display: flex; align-items: baseline; gap: 8px; }

/* Narrow screens: share smaller gutters and stack form inputs. */
@media (max-width: 760px) {
    body.surya-home,
    body.surya-inner { --site-gutter: 16px; --section-space: 30px; }
}
@media (max-width: 600px) {
    .public-form-fields { grid-template-columns: minmax(0, 1fr); }
    .public-form-layout > form { padding: 14px; }
}

/* Inner-page title band: extend the paint to the viewport edges without moving the title. */
body.surya-inner .surya-content { padding-top: 0; }
.surya-content > .page-intro {
    min-height: 128px;
    margin-inline: calc(-1 * var(--site-gutter));
    padding: clamp(20px, 3vw, 36px) var(--site-gutter);
    --title-band-background: #142c3e;
    background: var(--title-band-background);
    color: #fff;
    border: 0;
    border-radius: 0;
    box-shadow: 0 0 0 100vmax var(--title-band-background);
    clip-path: inset(0 -100vmax);
    margin-bottom: clamp(24px, 3vw, 38px);
    overflow-wrap: anywhere;
}
.surya-content > .page-intro .eyebrow,
.surya-content > .page-intro p,
.surya-content > .page-intro a { color: #f3dfb3; }
.surya-content > .page-intro h1::after { background: #d8ad61; }


/* Public branding: keep the logo and editable title within the shared page edges. */
.site-header .identity { min-width: 0; }
.site-header .identity-logo,
.site-header .sun { flex-shrink: 0; }
.site-header .identity > span:last-child { min-width: 0; overflow-wrap: anywhere; }
@media (max-width: 760px) {
    .site-header .mobile-toggle { flex-shrink: 0; }
    .site-header .identity-logo { width: 40px; height: 40px; }
}

/* Desktop slider values work without inline styles or public JavaScript. */
.hero-vh-40 { --hero-height: 40vh; }
.hero-vh-45 { --hero-height: 45vh; }
.hero-vh-50 { --hero-height: 50vh; }
.hero-vh-55 { --hero-height: 55vh; }
.hero-vh-60 { --hero-height: 60vh; }
.hero-vh-65 { --hero-height: 65vh; }
.hero-vh-70 { --hero-height: 70vh; }
.hero-vh-75 { --hero-height: 75vh; }
.hero-vh-80 { --hero-height: 80vh; }
.hero-vh-85 { --hero-height: 85vh; }
.hero-vh-90 { --hero-height: 90vh; }
.hero-vh-95 { --hero-height: 95vh; }
.hero-vh-100 { --hero-height: 100vh; }

/* Mobile hero: centre the copy and wrap the calls to action. */
@media (max-width: 760px) {
    .surya-home .hero { grid-template-columns: minmax(0, 1fr); gap: 20px; padding: 28px var(--site-gutter); }
    .surya-home .hero-inner { text-align: center; min-width: 0; }
    .surya-home .hero h1,
    .surya-home .hero-copy { margin-inline: auto; }
    .surya-home .hero-copy p { text-align: center; }
    .surya-home .hero .actions { justify-content: center; flex-wrap: wrap; }
}

/* Mobile navigation: icon toggle and full-width, separated touch targets. */
@media (max-width: 760px) {
    .site-header { position: relative; }
    .site-header .mobile-toggle {
        display: grid;
        place-items: center;
        width: 44px;
        height: 44px;
        color: var(--editorial-ink);
    }
    .mobile-menu-icon {
        width: 19px;
        height: 14px;
        border-block: 2px solid currentColor;
        background: linear-gradient(currentColor, currentColor) center / 100% 2px no-repeat;
    }
    .site-header > .site-nav {
        top: 100%;
        gap: 0;
        padding: 0;
        max-height: 70vh;
        overflow-y: auto;
        border-block: 1px solid var(--editorial-rule);
    }
    .site-nav > .nav-group + .nav-group { border-top: 1px solid var(--editorial-rule); }
    .site-nav .nav-group > a,
    .site-nav .nav-submenu > summary {
        display: flex;
        align-items: center;
        min-height: 48px;
        padding: 11px var(--site-gutter);
    }
    .site-nav .nav-submenu > summary { justify-content: space-between; }
    .site-nav .nav-submenu[open] > .dropdown {
        position: static;
        padding: 0 0 0 14px;
        box-shadow: none;
        background: var(--editorial-paper);
    }
    .site-nav .dropdown .nav-group { padding: 0; }
    .site-nav .dropdown .nav-group > .nav-submenu:only-child { padding: 0; }
    .site-nav .dropdown .nav-group > a,
    .site-nav .dropdown .nav-submenu > summary { border-top: 1px solid var(--editorial-rule); }
    .site-nav :is(a, summary):focus-visible { outline-offset: -3px; }
}

/* Homepage typography and adjustable desktop artwork scale. */
.surya-home .hero h1 {
    line-height: var(--hero-title-leading, 1.2);
    letter-spacing: var(--hero-title-tracking, 0em);
    max-width: 22ch;
    text-wrap: balance;
}
@media (min-width: 761px) {
    .surya-home .hero { padding-block: 22px; gap: clamp(18px, 3vw, 38px); }
    .surya-home .hero > .hero-art { width: var(--hero-media-width, 85%); justify-self: center; }
}
@media (max-width: 760px) {
    .surya-home .hero h1 { font-size: clamp(27px, 7.4vw, 42px); }
}
.hero-media-50 { --hero-media-width: 50%; }
.hero-media-55 { --hero-media-width: 55%; }
.hero-media-60 { --hero-media-width: 60%; }
.hero-media-65 { --hero-media-width: 65%; }
.hero-media-70 { --hero-media-width: 70%; }
.hero-media-75 { --hero-media-width: 75%; }
.hero-media-80 { --hero-media-width: 80%; }
.hero-media-85 { --hero-media-width: 85%; }
.hero-media-90 { --hero-media-width: 90%; }
.hero-media-95 { --hero-media-width: 95%; }
.hero-media-100 { --hero-media-width: 100%; }
.hero-leading-108 { --hero-title-leading: 1.08; }
.hero-leading-110 { --hero-title-leading: 1.1; }
.hero-leading-112 { --hero-title-leading: 1.12; }
.hero-leading-114 { --hero-title-leading: 1.14; }
.hero-leading-116 { --hero-title-leading: 1.16; }
.hero-leading-118 { --hero-title-leading: 1.18; }
.hero-leading-120 { --hero-title-leading: 1.2; }
.hero-leading-122 { --hero-title-leading: 1.22; }
.hero-leading-124 { --hero-title-leading: 1.24; }
.hero-leading-126 { --hero-title-leading: 1.26; }
.hero-leading-128 { --hero-title-leading: 1.28; }
.hero-leading-130 { --hero-title-leading: 1.3; }
.hero-leading-132 { --hero-title-leading: 1.32; }
.hero-leading-134 { --hero-title-leading: 1.34; }
.hero-leading-136 { --hero-title-leading: 1.36; }
.hero-leading-138 { --hero-title-leading: 1.38; }
.hero-leading-140 { --hero-title-leading: 1.4; }
.hero-leading-142 { --hero-title-leading: 1.42; }
.hero-leading-144 { --hero-title-leading: 1.44; }
.hero-leading-146 { --hero-title-leading: 1.46; }
.hero-leading-148 { --hero-title-leading: 1.48; }
.hero-leading-150 { --hero-title-leading: 1.5; }
.hero-tracking-0 { --hero-title-tracking: 0.0em; }
.hero-tracking-5 { --hero-title-tracking: 0.005em; }
.hero-tracking-10 { --hero-title-tracking: 0.01em; }
.hero-tracking-15 { --hero-title-tracking: 0.015em; }
.hero-tracking-20 { --hero-title-tracking: 0.02em; }
