:root {
    color-scheme: light;
    --ink: #251a33;
    --muted: #574a64;
    --accent: #553586;
    --accent-dark: #412564;
    --hero: #f1eaf8;
    --soft: #f6f1fa;
    --paper: #fff;
    --line: #ded4e7;
    --gutter: clamp(16px, 4vw, 56px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: 20px; }
body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font: 16px/1.6 "Segoe UI", Arial, sans-serif;
}
a { color: var(--accent-dark); text-underline-offset: .22em; }
a:hover { color: var(--accent); }
a:focus-visible, summary:focus-visible {
    outline: 3px solid #8254c0;
    outline-offset: 4px;
}
img { display: block; max-width: 100%; }
h1, h2, h3, p, dl, dd, figure { margin: 0; }
.container { width: min(100% - 2 * var(--gutter), 1140px); margin-inline: auto; }
.skip-link {
    position: absolute;
    inset: 12px auto auto 12px;
    z-index: 3;
    padding: 8px 12px;
    background: var(--paper);
    transform: translateY(-160%);
}
.skip-link:focus { transform: none; }
.site-header { border-bottom: 1px solid var(--line); }
.header-inner, .footer-inner {
    min-height: 68px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px 24px;
}
.wordmark {
    font-size: 19px;
    font-weight: 800;
    letter-spacing: -.025em;
    color: var(--ink);
    text-decoration: none;
    white-space: nowrap;
}
.wordmark span { margin-left: .28em; color: var(--accent); }
.login-link {
    font-size: 14px;
    font-weight: 650;
    text-align: right;
}
.login-link span { display: inline-block; margin-left: 4px; }
.hero { background: var(--hero); padding: clamp(32px, 5vw, 68px) 0 0; }
.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, .84fr);
    align-items: center;
    gap: 36px clamp(28px, 5vw, 78px);
}
.programme-type {
    color: var(--accent-dark);
    font-weight: 650;
    font-size: 14px;
    margin-bottom: 15px;
}
h1 {
    font-weight: 760;
    font-size: clamp(36px, 4.35vw, 62px);
    line-height: 1.03;
    letter-spacing: -.045em;
    text-wrap: balance;
}
.english-title {
    color: var(--accent);
    font-weight: 550;
    font-size: clamp(21px, 2.45vw, 30px);
    letter-spacing: -.025em;
    margin-top: 11px;
}
.hero-lead {
    max-width: 53ch;
    margin-top: 13px;
    font-size: clamp(16px, 1.45vw, 19px);
    color: var(--muted);
}
.hero-figure { border-radius: 12px; overflow: hidden; background: #d7cbde; }
.hero-figure img { width: 100%; height: auto; aspect-ratio: 5 / 4; object-fit: cover; object-position: center; }
.button {
    display: inline-flex;
    min-height: 48px;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 10px 18px;
    border-radius: 6px;
    font-weight: 700;
    line-height: 1.35;
    text-decoration: none;
}
.button-primary { margin-top: 24px; background: var(--accent); color: #fff; }
.button-primary:hover { background: var(--accent-dark); color: #fff; }
.facts {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1px;
    border-top: 1px solid var(--line);
}
.facts div { padding: 18px 14px; }
.facts div:first-child { padding-left: 0; }
.facts div + div { border-left: 1px solid var(--line); }
.facts dt { color: var(--muted); font-size: 13px; }
.facts dd { font-weight: 720; font-size: clamp(14px, 1.65vw, 20px); }
.section-nav { border-block: 1px solid var(--line); background: var(--paper); }
.nav-inner { display: flex; flex-wrap: wrap; gap: 0 clamp(16px, 3vw, 38px); }
.nav-inner a {
    display: inline-flex;
    align-items: center;
    min-height: 48px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 650;
}
.nav-inner a:hover { text-decoration: underline; }
.section {
    padding: clamp(40px, 6vw, 74px) 0;
    border-bottom: 1px solid var(--line);
    scroll-margin-top: 10px;
}
.section-pair {
    display: grid;
    align-items: start;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 24px clamp(26px, 6vw, 86px);
}
h2 {
    font-size: clamp(29px, 3.4vw, 44px);
    line-height: 1.12;
    letter-spacing: -.04em;
    text-wrap: balance;
}
h3 { font-size: 19px; line-height: 1.3; letter-spacing: -.02em; }
.section-lead { color: var(--muted); font-size: 17px; margin-top: 16px; max-width: 60ch; }
.audience {
    background: var(--soft);
    border-left: 3px solid #a48ac3;
    padding: 19px 22px 21px;
}
.audience p + p { margin-top: 9px; }
.audience h3, .format-details h3 { margin-bottom: 6px; }
.outcomes { margin: 0; padding-left: 20px; }
.outcomes li + li { margin-top: 9px; }
.outcomes li::marker, .module-body li::marker { color: var(--accent); }
.modules { margin-top: 25px; border-top: 1px solid var(--line); }
.modules details { border-bottom: 1px solid var(--line); }
.modules summary {
    display: grid;
    grid-template-columns: 2rem minmax(0, 1fr) auto 1.25rem;
    align-items: center;
    gap: 10px 16px;
    min-height: 66px;
    padding: 12px 6px 12px 0;
    cursor: pointer;
    list-style: none;
}
.modules summary::-webkit-details-marker { display: none; }
.modules summary::after {
    content: "";
    width: 9px;
    height: 9px;
    justify-self: center;
    align-self: center;
    border-bottom: 2px solid currentColor;
    border-right: 2px solid currentColor;
    color: var(--accent);
    transform: translateY(-2px) rotate(45deg);
}
.modules details[open] summary::after { transform: translateY(2px) rotate(225deg); }
.modules summary:hover strong { color: var(--accent); }
.module-number, .hours { color: var(--accent-dark); font-size: 13px; font-weight: 650; }
.module-number { font-variant-numeric: tabular-nums; }
.modules strong { font-size: clamp(16px, 1.75vw, 21px); line-height: 1.25; }
.module-body { padding: 0 32px 18px 48px; color: var(--muted); }
.module-body ul { margin: 0; padding-left: 20px; }
.module-body li + li { margin-top: 6px; }
.format-details article + article { margin-top: 18px; }
.format-details p { max-width: 56ch; color: var(--muted); }
.document-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 17px 20px;
    border: 1px solid var(--line);
    border-radius: 8px;
    text-decoration: none;
}
.document-link:hover { background: var(--soft); }
.document-link strong { text-decoration: underline; }
.document-link span span { display: block; color: var(--muted); font-size: 14px; }
.apply {
    background: #38244f;
    color: var(--paper);
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 22px 40px;
    margin: clamp(36px, 6vw, 64px) 0;
    padding: clamp(24px, 5vw, 50px);
    border-radius: 12px;
}
.apply p { margin-top: 12px; max-width: 62ch; color: #f0e6fa; }
.apply-actions { display: grid; justify-items: start; gap: 10px; }
.button-light { color: #38244f; background: #f8f1ff; }
.button-light:hover { color: #38244f; background: #ede0f8; }
.course-link, .course-link:hover { color: #f8f1ff; font-size: 14px; }
.site-footer { background: var(--soft); border-top: 1px solid var(--line); }
.footer-inner { min-height: 75px; font-size: 14px; color: var(--muted); }

@media (max-width: 800px) {
    .hero-grid { grid-template-columns: minmax(0, 1fr) minmax(0, .78fr); gap: 24px; }
    .hero-figure img { aspect-ratio: 4 / 5; }
    .section-pair { column-gap: 28px; }
}

@media (max-width: 640px) {
    .header-inner { min-height: 59px; }
    .login-link { font-size: 13px; }
    .hero-grid, .section-pair, .apply { grid-template-columns: minmax(0, 1fr); }
    .hero-figure img { aspect-ratio: 3 / 2; }
    .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; }
    .facts div { padding: 12px; }
    .facts div:nth-child(odd) { padding-left: 0; border-left: 0; }
    .facts div:nth-child(n + 3) { border-top: 1px solid var(--line); }
    .nav-inner { padding-block: 4px; column-gap: 16px; }
    .nav-inner a { min-height: 38px; }
    .modules summary {
        grid-template-columns: 1.4rem minmax(0, 1fr) 1.15rem;
        gap: 4px 10px;
    }
    .module-number { grid-column: 1; grid-row: 1; }
    .modules summary strong { grid-column: 2; grid-row: 1; }
    .hours { grid-column: 2; grid-row: 2; }
    .modules summary::after { grid-column: 3; grid-row: 1 / 3; }
    .module-body { padding-left: 32px; }
    .footer-inner { padding-block: 15px; flex-wrap: wrap; gap: 4px 16px; }
}
