@font-face {
    font-family: "DM Sans";
    src: url("/static/school/dm-sans.woff2") format("woff2");
    font-weight: 400 800;
    font-style: normal;
    font-display: swap;
}
.school-site, .portal-site {
    --navy: #102c50;
    --deep: #0a2039;
    --royal: #194db3;
    --paper: #f9f8f4;
    --muted: #526478;
    --rule: #dbe2e9;
    --blue: var(--royal);
    color: var(--navy);
    font-family: "DM Sans", system-ui, sans-serif;
    background: var(--paper);
}
.site-wrap { width: min(90%, 1220px); margin-inline: auto; }
.site-header, .site-footer {
    min-height: 72px;
    background: #fff;
    padding-inline: max(5vw, calc((100vw - 1220px) / 2));
    border-color: var(--rule);
}
.site-header nav { gap: clamp(14px, 2vw, 30px); }
.site-header nav a { font-weight: 650; }
.site-footer { margin-top: 28px; padding-block: 12px; }
.site-header .brand img, .site-footer .brand img { width: 62px; height: auto; }
.site-header .pill, .school-site .button { border-radius: 8px; }
.school-site .button:hover, .site-header .pill:hover, .siscom-entry:hover { background: #143d8c; }
.site-hero {
    display: grid;
    grid-template-columns: minmax(0, .9fr) minmax(0, 1fr);
    align-items: center;
    gap: clamp(22px, 5.5vw, 84px);
    padding-block: clamp(42px, 7vw, 105px);
}
.eyebrow {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 14px;
    color: var(--royal);
    font-size: .74rem;
    font-weight: 800;
    letter-spacing: .15em;
    text-transform: uppercase;
}
.eyebrow span { width: 22px; height: 2px; background: currentColor; }
.site-hero h1 {
    margin: 0 0 20px;
    font-size: clamp(2.35rem, 5.8vw, 5.15rem);
    font-weight: 790;
    line-height: 1.03;
    letter-spacing: -.076em;
}
.site-hero h1 em { font-style: normal; color: var(--royal); }
.hero-intro { color: var(--muted); max-width: 31rem; line-height: 1.66; font-size: clamp(1rem,1.4vw,1.18rem); }
.hero-image {
    position: relative;
    border-radius: 16px 70px 16px 16px;
    background: #dce7f1;
    margin: 0;
    overflow: hidden;
    box-shadow: 0 24px 52px -34px #14395b;
}
.hero-image img, .service-card img { display: block; width: 100%; object-fit: cover; }
.hero-image img { aspect-ratio: 1.36; }
.site-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.hero-copy .site-actions { margin: 25px 0 17px; }
.school-site .button { display: inline-flex; align-items: center; gap: 10px; font-size: .91rem; }
.school-site .button-light { color: var(--navy); background: #fff; box-shadow: inset 0 0 0 1px #b5c5d8; }
.school-site .button-light:hover { color: var(--royal); background: #eaf1ff; }
.inline-link { color: var(--royal); font-weight: 700; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.inline-link:hover { color: var(--navy); }
.site-section { padding-block: clamp(37px, 5.5vw, 78px); border-top: 1px solid var(--rule); }
.school-site h2 { font-size: clamp(1.85rem, 3.5vw, 3.2rem); margin: 0 0 22px; }
.school-site h3 { font-size: 1.35rem; margin: 0; }
.service-grid, .registration-steps { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: clamp(12px,2vw,24px); }
.service-card {
    display: flex;
    flex-direction: column;
    background: white;
    border: 1px solid var(--rule);
    border-radius: 14px;
    overflow: hidden;
}
.service-card img { aspect-ratio: 1.8; background: #e3edf3; }
.service-copy { display: flex; flex-direction: column; align-items: start; flex: 1; padding: clamp(17px,2vw,25px); }
.service-copy p, .registration-steps p, .registration-cta p { line-height: 1.62; color: var(--muted); }
.service-copy p { margin: 10px 0; }
.service-copy .service-audience { color: var(--royal); font-weight: 700; font-size: .77rem; line-height: 1.45; margin: 0 0 8px; }
.service-copy .inline-link { margin-top: auto; padding-top: 10px; }
.module-section { padding-block: clamp(40px, 6vw, 82px); background: #e9f0fa; }
.module-layout { display: grid; grid-template-columns: minmax(0,.82fr) minmax(0,1.18fr); gap: clamp(18px,6vw,86px); }
.module-layout > div:first-child > p:last-child { max-width: 26rem; line-height: 1.6; color: var(--muted); }
.module-list { display: grid; align-content: start; gap: 8px; }
.module-list details, .credential-details { background: #fff; border: 1px solid var(--rule); border-radius: 9px; }
.module-list summary, .credential-details summary {
    cursor: pointer;
    color: var(--navy);
    font-weight: 750;
    padding: 15px 17px;
}
.module-list details p { margin: 0; padding: 0 17px 16px; line-height: 1.6; color: var(--muted); }
.registration-steps { list-style-position: inside; padding: 0; margin: 0 0 26px; }
.registration-steps li { border-top: 2px solid #9db3dd; padding: 16px 12px 2px 0; }
.registration-steps li::marker { color: var(--royal); font-weight: 800; }
.registration-steps h3 { display: inline; font-size: 1.08rem; }
.registration-steps p { margin-top: 8px; }
.registration-cta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 22px;
    border-radius: 14px;
    background: #e9f0fa;
    padding: clamp(19px, 3vw, 33px);
}
.registration-cta p { margin: 5px 0 0; }

.portal-site .workspace { width: min(92%, 1150px); }
.portal-site #auth {
    display: grid;
    grid-template-columns: minmax(0, .94fr) minmax(0, 1fr);
    border: 1px solid var(--rule);
    border-radius: 18px;
    overflow: hidden;
    max-width: none;
    padding: 0;
    margin: 0;
    background: #fff;
    box-shadow: 0 24px 58px -42px #142b5a;
}
.auth-visual { position: relative; isolation: isolate; min-height: 520px; background: var(--deep); color: #fff; }
.auth-visual img, .auth-visual::after { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.auth-visual img { z-index: -2; object-position: 47% 50%; }
.auth-visual::after { content: ""; z-index: -1; background: linear-gradient(0deg,#071b36 2%,#071b36db 23%,#071b3660 61%,#071b3620 100%); }
.auth-visual-copy { position: absolute; inset: auto 0 0; padding: clamp(22px, 4vw, 52px); }
.auth-visual .eyebrow { color: #bfdeff; }
.auth-visual-title { margin: 0; font-size: clamp(2.3rem, 4vw, 4.1rem); line-height: 1; letter-spacing: -.065em; font-weight: 780; }
.auth-visual-copy p:last-child { max-width: 19rem; color: #e2ecf9; margin-bottom: 0; line-height: 1.55; }
.auth-content { align-self: center; min-width: 0; padding: clamp(24px, 4.5vw, 62px); }
.auth-content h1 { margin: 0 0 9px; line-height: 1.05; font-size: clamp(1.75rem, 3.15vw, 3rem); letter-spacing: -.059em; }
.auth-intro, .auth-register, .auth-cbt, #auth #code-help { color: var(--muted); line-height: 1.5; }
.auth-intro { margin: 0 0 21px; }
.siscom-entry {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    color: #fff;
    text-decoration: none;
    background: var(--royal);
    border-radius: 9px;
    padding: 15px 17px;
    margin-bottom: 12px;
}
.siscom-entry small {
    display: block;
    margin-top: 4px;
    color: #f1f5ff;
    font-size: .79rem;
    font-weight: 500;
    letter-spacing: 0;
    line-height: 1.4;
}
.credential-details { background: #f9fbff; }
.credential-details.is-registration { border: 0; background: transparent; }
#auth #code-help { margin: 0; padding: 0 16px 12px; font-size: .88rem; }
#auth .is-registration #code-help { padding: 6px 0 14px; font-size: .94rem; }
#authform .panel { background: transparent; margin: 0; padding: 0 16px 16px; border: 0; box-shadow: none; }
.is-registration #authform .panel { padding: 0; }
#authform label { gap: 6px; }
#authform input, #authform select { min-height: 42px; border-radius: 7px; }
#authform button[type="submit"] { width: 100%; margin-top: 4px; }
#authform fieldset { min-width: 0; margin: 0; border: 1px solid var(--rule); border-radius: 8px; }
#authform fieldset label { display: flex; gap: 7px; align-items: center; }
#authform fieldset input { width: auto; min-height: 24px; }
.auth-register { margin: 17px 0; }
.auth-cbt { display: flex; flex-wrap: wrap; gap: 4px 11px; border-top: 1px solid var(--rule); padding-top: 17px; font-size: .87rem; }

@media (max-width: 860px) {
    .site-hero { gap: 25px; }
    .service-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 730px) {
    .site-header { min-height: 63px; }
    .site-header nav a:not(.desktop-link), .site-header .pill { display: inline-flex; }
    .site-header .brand img, .site-footer .brand img { width: 43px; }
    .site-hero, .module-layout, .portal-site #auth { grid-template-columns: 1fr; }
    .site-hero { padding-block: 35px; }
    .hero-image img { aspect-ratio: 1.6; }
    .registration-cta { flex-direction: column; align-items: start; }
    .portal-site .workspace { padding-top: 20px; }
    .auth-visual { min-height: 192px; }
    .auth-visual-copy { padding: 16px 21px; }
    .auth-visual-title br { display: none; }
    .auth-visual-title { font-size: clamp(1.55rem, 5.3vw, 2.15rem); }
    .auth-visual-copy p:last-child { display: none; }
    .auth-visual img { object-position: 50% 42%; }
}
@media (max-width: 540px) {
    .service-grid, .registration-steps { grid-template-columns: 1fr; }
    .site-header nav .pill { font-size: .8rem; gap: 3px; }
    .site-header .brand { font-size: .84rem; }
}
.module-list summary, .credential-details summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    list-style: none;
}
.module-list summary::-webkit-details-marker, .credential-details summary::-webkit-details-marker { display: none; }
.module-list summary::after, .credential-details summary::after {
    content: "";
    width: 7px;
    height: 7px;
    flex: 0 0 7px;
    border: solid var(--royal);
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}
.module-list details[open] summary::after, .credential-details[open] summary::after { transform: rotate(225deg); }
body.school-site, body.portal-site { min-height: 100vh; }
.external-arrow {
    display: inline-block;
    position: relative;
    flex: 0 0 12px;
    width: 12px;
    height: 12px;
    vertical-align: -.09em;
}
.external-arrow::before, .external-arrow::after { content: ""; position: absolute; }
.external-arrow::before {
    width: 7px;
    height: 7px;
    top: 1px;
    right: 1px;
    border: solid currentColor;
    border-width: 1.5px 1.5px 0 0;
}
.external-arrow::after {
    width: 12px;
    height: 1.5px;
    top: 5px;
    right: 0;
    background: currentColor;
    transform: rotate(-45deg);
}

.hero-image { perspective: 980px; }
.hero-image img { transform: scale(1.015); transition: transform .65s cubic-bezier(.2,.7,.25,1); }
.service-card img { transition: transform .55s cubic-bezier(.2,.7,.25,1); }
.service-card { transition: box-shadow .3s, border-color .3s; }
.auth-visual { background: #102b51; }
.auth-visual img {
    height: 75%;
    object-position: 51% 42%;
}
.auth-visual::after {
    background: linear-gradient(0deg,#102b51 25%,#102b51ed 35%,#102b5100 66%);
}
.auth-visual-copy { padding-inline: clamp(23px,4vw,49px); }
@media (prefers-reduced-motion: no-preference) {
    .hero-image img { animation: school-art-depth 2.8s cubic-bezier(.16,.7,.3,1) both; }
    @keyframes school-art-depth {
        from { transform: scale(1.1) rotateY(-4deg) translateX(-1%); }
        to { transform: scale(1.015); }
    }
}
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
    .service-card:hover img { transform: scale(1.045); }
    .service-card:hover { border-color: #a0b8da; box-shadow: 0 15px 35px -25px #214573; }
}
@media (prefers-reduced-motion: reduce) {
    .hero-image img, .service-card, .service-card img { animation: none; transition: none; }
}
@media (max-width: 730px) {
    .auth-visual { min-height: 210px; }
    .auth-visual img { height: 100%; object-position: 50% 47%; }
    .auth-visual::after { background: linear-gradient(0deg,#102b51 4%,#102b51ce 22%,#102b5100 62%); }
}
