:root {
    font-family: Inter, system-ui, sans-serif;
    color: #172c42;
    background: #f1f5f8;
    line-height: 1.5;
}

* { box-sizing: border-box; }
body { margin: 0; }
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    padding: 1.2rem max(1rem, calc((100vw - 72rem) / 2));
    background: #15324b;
}
header a { color: white; text-decoration: none; }
header a:hover { text-decoration: underline; }
.brand { font-weight: 750; }
.brand span { color: #bce9de; margin-left: .5rem; }
nav { display: flex; flex-wrap: wrap; gap: .65rem 1.25rem; }
main { max-width: 74rem; margin: auto; padding: 2rem 1rem; }
h1, h2, p { margin: 0 0 .8rem; }
h1 { font-size: clamp(1.8rem, 4vw, 3rem); line-height: 1.15; }
h2 { font-size: 1.25rem; }

.hero {
    background: linear-gradient(120deg, #15324b, #1a635d);
    color: white;
    border-radius: 1rem;
    padding: clamp(1.5rem, 5vw, 3rem);
    margin-bottom: 1.5rem;
}
.hero p, .panel p:last-child { margin-bottom: 0; }
.panel {
    background: white;
    border: 1px solid #d8e3ea;
    border-radius: .9rem;
    margin-bottom: 1rem;
    padding: clamp(1rem, 3vw, 1.75rem);
}
.narrow { max-width: 42rem; }
.setup { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr)); gap: 1rem; }
label { display: block; margin-bottom: .85rem; font-weight: 650; }
input:not([type=checkbox]), select {
    display: block;
    width: 100%;
    min-height: 2.75rem;
    margin-top: .3rem;
    padding: .5rem;
    border: 1px solid #8da6b6;
    border-radius: .45rem;
    background: white;
    color: inherit;
    font: inherit;
}
button {
    border: 0;
    border-radius: .45rem;
    padding: .65rem 1rem;
    background: #185950;
    color: white;
    cursor: pointer;
    font: inherit;
    font-weight: 700;
}
button:hover { background: #103e39; }
:focus-visible { outline: 3px solid #487fa9; outline-offset: 3px; }
.notice { padding: .8rem 1rem; border-left: 4px solid #267268; background: #e5f3ed; }
.notice.error { border-color: #a52f3d; background: #ffe9eb; }
.signout { margin-bottom: 1rem; }
.table-scroll { overflow-x: auto; margin-bottom: 1rem; }
table { border-collapse: collapse; width: 100%; }
th, td { text-align: left; border-bottom: 1px solid #d8e3ea; padding: .65rem; }
th { background: #edf5f7; }
.decision { display: flex; gap: .4rem; align-items: center; }
.decision select { margin: 0; width: auto; }
dt { font-weight: 700; }
dd { margin: 0 0 .65rem; }
.reference { font-family: monospace; overflow-wrap: anywhere; }

@media print {
    header nav, .lookup, .notice { display: none; }
    body, header { background: white; }
    header a, .brand span { color: #172c42; }
}

summary { cursor: pointer; font-weight: 700; font-size: 1.12rem; }
.section-form { margin-top: 1rem; }
textarea { display: block; width: 100%; margin-top: .3rem; padding: .5rem; border: 1px solid #8da6b6; border-radius: .45rem; color: inherit; font: inherit; }
.actions { display: flex; gap: .5rem; flex-wrap: wrap; }
.preserve-lines { white-space: pre-wrap; overflow-wrap: anywhere; }

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .6rem 1rem;
    margin-bottom: .9rem;
}
.form-grid label { margin: 0; min-width: 0; }
.form-grid :is(input, select) { min-height: 2.45rem; padding: .35rem .55rem; }
.form-field-wide { grid-column: 1 / -1; }
@media (max-width: 36rem) {
    .form-grid { grid-template-columns: minmax(0, 1fr); }
}

.centres-landing {
    --landing-width: min(72rem, calc(100% - 2rem));
    background: linear-gradient(135deg, #102638, #185950) fixed;
    color: #142a3a;
}
.centres-landing header {
    width: var(--landing-width);
    margin: clamp(1rem, 4vw, 3rem) auto 0;
    border-radius: 1.15rem 1.15rem 0 0;
    padding: 1.15rem clamp(1rem, 3.5vw, 2.75rem);
    background: #fbfcfa;
}
.centres-landing .brand { color: #102638; }
.centres-landing .brand span { color: #185950; }
.centres-landing nav {
    background: #185950;
    border-radius: 999px;
    padding: .55rem .7rem;
    gap: .2rem;
}
.centres-landing nav a {
    display: block;
    padding: .32rem .7rem;
    font-size: .9rem;
    font-weight: 650;
    border-radius: 999px;
}
.centres-landing nav a:hover {
    background: #ffffff29;
    text-decoration: none;
}
.centres-landing main {
    width: var(--landing-width);
    max-width: none;
    padding: 0 0 1.5rem;
}
.landing-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: center;
    padding: clamp(1.4rem, 5vw, 4rem) clamp(1.15rem, 5vw, 4rem);
    gap: clamp(1rem, 4vw, 3.25rem);
    min-height: 29rem;
    overflow: hidden;
    border-radius: 0 0 1.15rem 1.15rem;
    background: radial-gradient(ellipse at 85% 35%, #d9eee7, transparent 60%), #fbfcfa;
    box-shadow: 0 16px 40px #10263840;
}
.landing-college {
    color: #185950;
    font-size: .92rem;
    font-weight: 750;
}
.landing-intro h1 {
    margin: .45rem 0 1.2rem;
    font-size: clamp(2.6rem, 6vw, 5rem);
    line-height: .99;
    letter-spacing: -.055em;
}
.landing-intro h1 span {
    display: block;
    color: #185950;
}
.landing-intro > p:last-of-type {
    max-width: 39ch;
    color: #3c5361;
    line-height: 1.65;
}
.landing-photo {
    position: relative;
    isolation: isolate;
    width: 100%;
    max-width: 32rem;
    margin-inline: auto;
}
.landing-photo::before {
    position: absolute;
    z-index: -1;
    inset: 6% 1% 2% 12%;
    border-radius: 35% 65% 45% 55% / 43% 38% 62% 57%;
    background: #bcebdd;
    transform: rotate(-12deg);
    content: "";
}
.landing-photo img {
    display: block;
    width: 100%;
    height: clamp(20rem, 36vw, 29rem);
    object-fit: cover;
    object-position: center 48%;
    border-radius: 45% 55% 54% 46% / 38% 52% 48% 62%;
}
.landing-links {
    display: flex;
    flex-wrap: wrap;
    gap: .65rem .8rem;
    align-items: center;
    margin-top: 1.35rem;
}
.landing-links a {
    display: inline-flex;
    gap: .5rem;
    align-items: center;
    padding: .62rem .98rem;
    border: 1px solid #185950;
    border-radius: 999px;
    color: #185950;
    font-weight: 700;
    text-decoration: none;
}
.landing-links a:hover { background: #e0f1eb; }
.landing-links .landing-primary {
    background: #185950;
    color: white;
}
.landing-links .landing-primary:hover { background: #103e39; }
.landing-section {
    scroll-margin-top: 1rem;
    margin-top: 1rem;
}
.landing-section h2 { font-size: clamp(1.35rem, 3vw, 1.75rem); }
.landing-section h3 { margin: 1rem 0 .55rem; font-size: 1rem; }
.landing-centres {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr));
    gap: .5rem;
    margin: 0;
    padding: 0;
    list-style: none;
}
.landing-centres li {
    overflow-wrap: anywhere;
    padding: .65rem .85rem;
    border-radius: .45rem;
    background: #e9f1ed;
}
.landing-services {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}
.landing-services .panel { margin-top: 0; }
.landing-access {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
    gap: 1rem;
    align-items: start;
}
.landing-access .panel {
    box-shadow: 0 7px 26px #1026380c;
    scroll-margin-top: 1rem;
}
.landing-access h2 { margin-bottom: 1rem; }
.landing-track { margin-top: 1.05rem; }
.landing-track a { color: #185950; font-weight: 650; }

@media (max-width: 48rem) {
    .centres-landing nav { border-radius: .85rem; }
    .landing-hero, .landing-access, .landing-services {
        grid-template-columns: minmax(0, 1fr);
    }
    .landing-photo img { height: clamp(15rem, 65vw, 23rem); }
    .landing-services .panel { margin-bottom: 0; }
    .landing-services { margin-bottom: 1rem; }
}

.centres-landing {
    --landing-width: min(66rem, 84%);
    display: flow-root;
    min-height: 100vh;
    background: linear-gradient(125deg, #102638, #185950 72%, #267268) fixed;
}
.centres-landing header {
    padding: .9rem 0 .35rem clamp(1rem, 4vw, 3.5rem);
    border-radius: 0;
    background: #f7f9f8;
}
.centres-landing .brand {
    display: inline-grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    column-gap: .6rem;
    line-height: 1.18;
}
.centres-landing .brand img { grid-row: span 2; object-fit: contain; }
.centres-landing .brand span { margin-left: 0; font-size: .78rem; }
.centres-landing nav {
    border-radius: 999px 0 0 999px;
    padding: .45rem clamp(.6rem, 2.5vw, 1.5rem) .45rem .6rem;
    background: linear-gradient(95deg, #185950, #267268);
}
.centres-landing nav a[aria-current="page"] { background: #10263855; }
.landing-hero {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr);
    padding: clamp(1.4rem, 3.2vw, 2.6rem) clamp(1rem, 4vw, 3.5rem);
    min-height: 0;
    border-radius: 0;
    background:
        radial-gradient(ellipse at 72% 80%, #d8eeea 0, transparent 63%),
        linear-gradient(135deg, #fbf9f7, #eef5f5);
}
.landing-college {
    margin-bottom: .2rem;
    color: #142a3a;
    font-size: clamp(1rem, 2vw, 1.3rem);
    font-weight: 600;
}
.landing-intro h1 { font-size: clamp(2.2rem, 5.4vw, 4.65rem); }
.landing-photo { padding: 3% 4% 3% 2%; }
.landing-photo::before {
    inset: 10% 3% 10% 22%;
    background: #c6e9db;
    transform: rotate(13deg);
}
.landing-photo img {
    height: clamp(16rem, 32vw, 25rem);
    object-position: center 50%;
    border-radius: 0;
    clip-path: polygon(
        9% 66%, 12% 42%, 17% 23%, 23% 13%, 31% 8%, 39% 7%,
        46% 9%, 53% 14%, 64% 25%, 76% 38%, 87% 51%, 94% 61%,
        97% 69%, 96% 76%, 92% 82%, 84% 87%, 73% 90%, 57% 93%,
        41% 96%, 28% 97%, 19% 96%, 12% 93%, 8% 88%, 6% 81%, 7% 74%
    );
}
@media (max-width: 48rem) {
    .centres-landing { --landing-width: calc(100% - 1.25rem); }
    .centres-landing header { padding: .85rem 0 .25rem .85rem; }
    .centres-landing nav { border-radius: .8rem 0 0 .8rem; }
    .centres-landing nav a { padding-inline: .45rem; font-size: .82rem; }
    .landing-hero { grid-template-columns: minmax(0, 1fr); }
    .landing-photo img { height: clamp(15rem, 62vw, 23rem); }
}

.applicant-dialog {
    position: fixed;
    width: min(34rem, calc(100% - 2rem));
    max-height: calc(100% - 2rem);
    padding: 0;
    border: 1px solid #d8e3ea;
    border-radius: 1rem;
    color: #142a3a;
    background: white;
    box-shadow: 0 16px 52px #10263855;
}
.applicant-dialog::backdrop { background: #102638b3; }
.applicant-dialog .panel {
    padding: clamp(1rem, 4vw, 1.75rem);
    margin: 0;
    border: 0;
}
.applicant-dialog h2 { padding-right: 2.5rem; }
.applicant-dialog-close {
    position: absolute;
    top: .65rem;
    right: .65rem;
    display: grid;
    place-items: center;
    width: 2.35rem;
    height: 2.35rem;
    padding: 0;
    border-radius: 50%;
    background: #e9f1ed;
    color: #185950;
    font-size: 1.5rem;
}
.applicant-dialog-close:hover { background: #d6e9e2; }

@font-face {
    font-family: "Centre Bootstrap Icons";
    src: url("fonts/bootstrap-icons.woff2") format("woff2");
    font-display: block;
}
.applicant-icon::before {
    display: block;
    font: normal 1em/1 "Centre Bootstrap Icons";
}
.icon-create::before { content: "\f4dd"; }
.icon-login::before { content: "\f1be"; }
.icon-search::before { content: "\f52a"; }
.icon-centre::before { content: "\f3e8"; }
.icon-person::before { content: "\f4e1"; }
.icon-email::before { content: "\f32f"; }
.icon-lock::before { content: "\f47b"; }
.icon-reference::before { content: "\f40a"; }
.icon-arrow::before { content: "\f138"; }
.icon-chevron::before { content: "\f282"; }

.applicant-form-mark {
    display: inline-grid;
    place-items: center;
    width: 2.85rem;
    height: 2.85rem;
    margin-bottom: .9rem;
    border-radius: .85rem;
    color: #185950;
    background: #e1f1eb;
    font-size: 1.35rem;
}
[data-applicant-popup] h2 {
    margin-bottom: .35rem;
    color: #102638;
    font-size: clamp(1.4rem, 4vw, 1.85rem);
    letter-spacing: -.035em;
    line-height: 1.16;
}
.applicant-form-intro {
    margin-bottom: 1.2rem;
    color: #475d6c;
    font-size: .94rem;
}
.landing-form label {
    margin-bottom: .8rem;
    font-size: .9rem;
}
.applicant-field-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .75rem;
}
.applicant-control {
    position: relative;
    display: block;
    margin-top: .28rem;
}
.applicant-control .applicant-icon {
    position: absolute;
    inset-inline-start: .82rem;
    top: 50%;
    transform: translateY(-50%);
    color: #43776e;
    pointer-events: none;
}
.applicant-control .icon-chevron {
    inset-inline: auto .82rem;
    font-size: .8rem;
}
.applicant-control :is(input, select) {
    margin: 0;
    min-height: 2.9rem;
    padding-inline-start: 2.4rem;
    border-color: #b7cbc7;
    border-radius: .65rem;
    background: #f8fbfa;
    color: #142a3a;
}
.applicant-control select {
    appearance: none;
    padding-inline-end: 2rem;
}
.applicant-control :is(input, select):focus-visible {
    border-color: #185950;
    outline: 2px solid #185950;
    outline-offset: 1px;
}
.applicant-field-help {
    margin: -.4rem 0 .85rem;
    color: #475d6c;
    font-size: .82rem;
}
.landing-form button[type="submit"],
.landing-form button[name="action"] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    min-height: 2.95rem;
    margin-top: .35rem;
    border-radius: .65rem;
    background: linear-gradient(105deg, #185950, #217367);
}
.landing-form button:hover { background: #103e39; }
.applicant-dialog [data-applicant-popup] {
    background: radial-gradient(ellipse at 0 0, #edf7f3 0, transparent 48%), #fff;
}
.applicant-dialog .notice.error { border-radius: .45rem; font-size: .9rem; }

@media (max-width: 30rem) {
    .applicant-field-row { grid-template-columns: minmax(0, 1fr); gap: 0; }
}

@media (prefers-reduced-motion: no-preference) {
    .applicant-dialog[open] { animation: applicant-dialog-enter 180ms ease-out; }
    @keyframes applicant-dialog-enter {
        from { opacity: 0; transform: translateY(.45rem); }
        to { opacity: 1; transform: translateY(0); }
    }
}
