html { scroll-behavior: smooth; }
body { -webkit-font-smoothing: antialiased; }
button, input { font: inherit; }
button, a, input { -webkit-tap-highlight-color: transparent; }
a, button { touch-action: manipulation; }
:focus-visible { outline: 3px solid #b48126; outline-offset: 4px; }
.brand { text-decoration: none; }
.skip-link { position: fixed; top: 12px; left: 12px; z-index: 10; padding: 12px 18px; background: white; color: var(--navy); transform: translateY(-160%); }
.skip-link:focus { transform: translateY(0); }
.navlinks { align-items: center; gap: 8px; }
.navlinks a { padding: 10px 12px; border-radius: 6px; transition: background .18s, color .18s; }
.navlinks a:hover { background: #f0f4f7; }
.navlinks a[aria-current="page"] { background: var(--navy); color: white; }
.visitor-bar { display: flex; align-items: center; justify-content: space-between; gap: 14px; min-height: 57px; font-size: 13px; }
.visitor-bar span { overflow-wrap: anywhere; }
.text-button { background: none; border: 0; color: var(--navy); padding: 12px 0 12px 14px; cursor: pointer; font-weight: 650; white-space: nowrap; }
.text-button:hover { text-decoration: underline; }
.hero { padding: 60px 0 75px; }
.hero h1 { max-width: 900px; }
.hero p { max-width: 720px; }
.panel p:last-child { margin-bottom: 0; }
.panel .fine { color: var(--muted); }
.panel a:not(.button) { overflow-wrap: anywhere; text-underline-offset: 4px; }
.scope article { transition: transform .18s, box-shadow .18s; }
.scope article:hover { transform: translateY(-3px); box-shadow: 0 10px 24px #12304c12; }
.button { border: 0; cursor: pointer; min-height: 48px; transition: background .18s, transform .18s; }
.button:hover { background: #e9bd6b; transform: translateY(-1px); }
.button:active { transform: translateY(0); }
.button:disabled { cursor: wait; opacity: .65; transform: none; }
.page-pagination { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 30px 0 0; margin-top: 40px; border-top: 1px solid var(--line); }
.page-pagination a { text-decoration: none; padding: 12px 0; }
.page-pagination a:hover strong { color: #94691f; }
.page-pagination small { display: block; color: var(--muted); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; }
.page-pagination strong { display: block; color: var(--navy); margin-top: 5px; }
.next-page { text-align: right; }
.page-position { font-size: 13px; color: var(--muted); }
.message-page { padding-top: 15vh; padding-bottom: 50px; }
.message-page h1 { color: var(--navy); font-size: clamp(30px, 5vw, 48px); line-height: 1.2; }
.entry-page { background: #f6f7f8; }
.entry-reference { color: var(--muted); font-size: 11px; letter-spacing: .1em; }
.entry-layout { display: grid; grid-template-columns: 1.15fr 1fr; align-items: center; gap: 70px; padding-top: 62px; padding-bottom: 46px; }
.entry-intro { padding: 14px 0; }
.entry-intro .eyebrow { color: #987029; font-size: 11px; }
.entry-intro h1 { font-family: Georgia, 'Times New Roman', serif; font-size: clamp(44px, 5.5vw, 72px); font-weight: 500; line-height: 1.06; letter-spacing: -.045em; color: var(--navy); margin: 22px 0; }
.intro-copy { color: #607185; max-width: 440px; font-size: 16px; line-height: 1.8; }
.entry-location { margin-top: 24px; color: var(--navy); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
.page-preview { padding: 0; list-style: none; margin: 30px 0 0; max-width: 430px; border-top: 1px solid var(--line); }
.page-preview li { display: flex; gap: 20px; align-items: center; padding: 15px 0; border-bottom: 1px solid var(--line); }
.page-preview li > span { color: #a57930; font-size: 12px; font-weight: 750; }
.page-preview strong { display: block; color: var(--navy); font-size: 14px; }
.page-preview small { display: block; color: var(--muted); font-size: 12px; margin-top: 2px; }
.entry-card { padding: 34px; border-top: 4px solid var(--gold); box-shadow: 0 20px 55px #12304c0d; }
.entry-card h2 { color: var(--navy); font-family: Georgia, 'Times New Roman', serif; font-size: 32px; line-height: 1.2; font-weight: 500; margin: 13px 0; }
.entry-description { color: var(--muted); font-size: 13px; margin-bottom: 25px; }
#entry-form > label:not(.consent) { display: block; color: var(--navy); font-size: 12px; font-weight: 700; margin: 18px 0 7px; }
#entry-form > input { width: 100%; min-height: 48px; padding: 12px 14px; border: 1px solid #cfd9e3; border-radius: 6px; background: #fbfcfd; color: #203347; font-size: 16px; }
#entry-form > input::placeholder { color: #8a98a6; font-size: 14px; }
#entry-form > input:focus { border-color: #b48126; background: white; }
.field-help { display: block; color: var(--muted); font-size: 11px; margin-top: 6px; }
.consent { display: flex; align-items: flex-start; gap: 10px; font-size: 12px; color: #596b7c; margin: 20px 0 5px; cursor: pointer; }
.consent input { width: 18px; height: 18px; flex-shrink: 0; margin: 1px 0 0; accent-color: var(--navy); }
#entry-submit { display: flex; width: 100%; align-items: center; justify-content: space-between; padding: 13px 17px; }
.form-error { color: #952e24; font-size: 13px; padding: 12px; background: #fff1ed; border: 1px solid #f2c8bf; border-radius: 6px; }
.entry-note { border-top: 1px solid var(--line); padding-top: 19px; margin-top: 21px; font-size: 11px; color: var(--muted); line-height: 1.7; }
.entry-note strong { color: var(--navy); font-weight: 650; }
.entry-note p { margin: 5px 0 0; }
.entry-disclaimer { font-size: 12px; color: #697888; padding-bottom: 10px; }
.entry-page .footer { margin-top: 28px; }
@keyframes page-arrive { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
main { animation: page-arrive .3s ease-out both; }
@media(max-width: 900px) {
  .nav .wrap { flex-wrap: wrap; padding-top: 20px; padding-bottom: 16px; }
  .entry-layout { gap: 35px; grid-template-columns: 1fr 1fr; }
  .entry-card { padding: 26px; }
}
@media(max-width: 700px) {
  .entry-layout { grid-template-columns: 1fr; gap: 24px; padding-top: 28px; }
  .entry-intro h1 { font-size: 52px; }
  .entry-intro { padding: 0; }
  .intro-copy { max-width: none; }
  .page-preview { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; max-width: none; }
  .page-preview li { gap: 12px; }
  .page-preview small { display: none; }
  .entry-location { margin-top: 16px; }
  .navlinks { gap: 4px; width: 100%; }
  .navlinks a { padding: 10px 9px; font-size: 12px; }
  .entry-reference { font-size: 10px; }
  .hero { padding: 42px 0 60px; }
  .entry-card { padding: 25px; }
}
@media(max-width: 380px) {
  .wrap { padding-left: 16px; padding-right: 16px; }
  .entry-card { padding: 21px; }
  .entry-intro h1 { font-size: 44px; }
  .navlinks a { font-size: 11px; padding: 10px 6px; }
  .page-pagination strong { font-size: 13px; }
}
@media(prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  main { animation: none; }
  *, *::before, *::after { transition: none !important; }
}

:root { --navy: #1e2b32; --navy2: #176c8a; --gold: #176c8a; --muted: #68757c; --line: #dce1e4; --bg: #f3f6fa; }
body { color: var(--navy); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
:focus-visible { outline-color: #176c8a; }
.portal-header { background: #fff; border-top: 12px solid #efcf24; }
.portal-header::before { content: ''; display: block; height: 8px; background: #176132; }
.portal-branding.wrap { position: relative; max-width: none; height: clamp(185px, 23vw, 300px); padding: 0; }
.header-slideshow { position: absolute; inset: 0; }
.header-slides { position: relative; height: 100%; overflow: hidden; }
.header-slide { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; background: #183745; opacity: 0; animation: header-cycle 54s linear infinite; animation-delay: -54s; }
.header-slide:nth-child(2) { animation-delay: -48s; }
.header-slide:nth-child(3) { animation-delay: -42s; }
.header-slide:nth-child(4) { animation-delay: -36s; }
.header-slide:nth-child(5) { animation-delay: -30s; }
.header-slide:nth-child(6) { animation-delay: -24s; }
.header-slide:nth-child(7) { animation-delay: -18s; }
.header-slide:nth-child(8) { animation-delay: -12s; }
.header-slide:nth-child(9) { animation-delay: -6s; }
@keyframes header-cycle { 0%, 9.25% { opacity: 1; } 11.11%, 98.14% { opacity: 0; } 100% { opacity: 1; } }
.slideshow-pause { position: absolute; right: 20px; bottom: 12px; width: 60px; height: 44px; margin: 0; opacity: 0; z-index: 2; cursor: pointer; }
.slideshow-control { position: absolute; right: 20px; bottom: 12px; z-index: 1; min-width: 60px; min-height: 44px; display: flex; align-items: center; justify-content: center; padding: 8px 10px; border: 1px solid var(--line); border-radius: 5px; background: #fffffff2; color: var(--navy); font-size: 12px; line-height: 18px; }
.slideshow-pause:focus-visible + .slideshow-control { outline: 3px solid #176c8a; outline-offset: 3px; }
.slideshow-pause:checked ~ .header-slides .header-slide { animation-play-state: paused; }
.play-label, .slideshow-pause:checked + .slideshow-control .pause-label { display: none; }
.slideshow-pause:checked + .slideshow-control .play-label { display: inline; }
.portal-home { position: absolute; top: 0; left: 24px; display: block; width: 280px; transform: translateY(-50%); background: #fff; z-index: 1; }
.education-logo { display: block; width: 100%; height: auto; }
.portal-symbols { position: absolute; top: 16px; right: 24px; display: flex; align-items: center; gap: 18px; padding: 10px 14px; background: #fffffff2; border-radius: 6px; }
.national-flag { display: block; width: 92px; height: auto; }
.ndp-logo { display: block; width: 76px; height: auto; }
.portal-strip { background: #164b28; color: #fff; }
.portal-strip .wrap { position: relative; min-height: 60px; display: flex; align-items: center; gap: 16px; }
.portal-strip .wrap > span { font-size: 20px; line-height: 1.3; padding: 16px 0 16px 310px; }
.social-sharing { display: flex; align-items: center; gap: 8px; margin-left: auto; flex-shrink: 0; }
.social-share { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border: 1px solid #ffffff70; border-radius: 50%; color: #fff; background: #ffffff12; text-decoration: none; transition: background .18s, transform .18s; }
.social-share:hover { background: #ffffff30; transform: translateY(-2px); }
.social-share:focus-visible { outline-color: #efcf24; }
.social-share img { display: block; width: 21px; height: 21px; }
.page-progress { display: flex; list-style: none; gap: 11px; margin: 53px auto 28px; }
.page-progress li { flex: 1; height: 8px; border-radius: 8px; background: #dce3e8; }
.page-progress .current, .page-progress .completed { background: #176c8a; }
.project-navigation { display: flex; justify-content: center; margin-bottom: 6px; }
.navlinks a { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; }
.navlinks a[aria-current="page"] { background: #176c8a; }
.visitor-bar { margin-bottom: 12px; }
.hero { background: none; overflow: visible; color: var(--navy); padding-top: 0; padding-bottom: 28px; }
.hero::after { display: none; }
.page-card, .entry-card { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 36px; box-shadow: 0 10px 30px #18374506; overflow: hidden; }
.page-card { position: relative; }
.hero .page-card::before, .entry-card::before { content: ''; position: absolute; top: 50%; left: 50%; width: min(92%, 640px); aspect-ratio: 1; transform: translate(-50%, -50%); background: url('/assets/education-crest.jpg') center / contain no-repeat; opacity: .2; pointer-events: none; }
.page-card > *, .entry-card > * { position: relative; }
.eyebrow, .kicker { color: #176c8a; font-size: 13px; letter-spacing: .14em; }
.hero h1, .entry-card h1 { color: var(--navy); font-family: inherit; font-size: clamp(30px, 4.8vw, 44px); font-weight: 750; line-height: 1.16; letter-spacing: -.025em; margin: 16px 0 20px; }
.hero p, .entry-description { color: var(--muted); font-size: 18px; line-height: 1.65; }
.tag, .tag.gold { border-color: #d4e4ea; color: #176c8a; background: #eff7fa; }
.notice { margin-top: 0; box-shadow: none; border-left-color: #b48126; }
.section { padding-top: 32px; }
.heading { font-size: 27px; }
.num { color: #176c8a; }
.entry-page { background: var(--bg); }
.entry-layout { display: block; max-width: 740px; padding-top: 0; padding-bottom: 40px; }
.entry-page .page-progress { max-width: 740px; }
.entry-card { position: relative; margin: 0; padding: 36px; }
.entry-description { margin-bottom: 26px; }
#entry-form > label:not(.consent) { color: var(--navy); font-size: 18px; margin-top: 20px; margin-bottom: 8px; }
#entry-form > input { background: #ffffffde; border: 1px solid #cdd3d6; border-radius: 9px; padding: 15px 17px; min-height: 58px; font-size: 18px; color: var(--navy); }
#entry-form > input::placeholder { color: #92999c; font-size: inherit; }
#entry-form > input:focus { border-color: #176c8a; box-shadow: 0 0 0 3px #176c8a18; outline: none; }
.consent { align-items: flex-start; font-size: 15px; line-height: 1.55; margin: 23px 0 9px; color: var(--navy); }
.consent input { width: 20px; height: 20px; flex-shrink: 0; margin-top: 3px; accent-color: #176c8a; }
.button { background: #176c8a; color: #fff; border-radius: 9px; padding: 15px 20px; }
.button:hover { background: #115873; }
#entry-submit { width: 100%; min-height: 56px; font-size: 17px; }
.entry-note { padding: 20px; background: #edf8fc; border: 1px solid #d5e9f0; border-radius: 11px; margin-top: 24px; font-size: 15px; line-height: 1.6; color: var(--navy); }
.entry-note p { margin: 0; }
.entry-note summary, .notice summary { cursor: pointer; font-weight: 700; }
.entry-note[open] p, .notice[open] p { margin-top: 12px; }
.recording-message { margin: 23px 0 9px; color: var(--navy); font-size: 15px; line-height: 1.6; }
.entry-disclaimer { max-width: 740px; }
.footer { background: #183745; margin-top: 40px; }
.message-page { padding-top: 55px; }
@media (max-width: 1000px) {
  .portal-strip .wrap { flex-wrap: wrap; gap: 0 16px; padding-top: 44px; padding-bottom: 12px; }
  .portal-strip .wrap > span { padding: 12px 0; }
}
@media (max-width: 600px) {
  .wrap { padding-left: 24px; padding-right: 24px; }
  .portal-branding.wrap { height: 200px; }
  .portal-home { width: 220px; }
  .portal-symbols { top: 12px; right: 24px; gap: 10px; padding: 8px 10px; }
  .national-flag { width: 54px; }
  .ndp-logo { width: 46px; }
  .portal-strip .wrap { padding-top: 36px; }
  .portal-strip .wrap > span { font-size: 17px; padding: 12px 0; }
  .social-sharing { width: 100%; margin-left: 0; padding-bottom: 4px; }
  .page-card, .entry-card { padding: 28px; }
  .entry-card h1, .hero h1 { font-size: 34px; }
  .entry-description, .hero p { font-size: 18px; }
  .project-navigation { gap: 6px; }
  .navlinks a { flex: 1 1 calc(50% - 6px); font-size: 13px; padding: 10px 6px; }
  .visitor-bar { font-size: 12px; gap: 8px; }
  .grid, .scope, .two { grid-template-columns: minmax(0, 1fr); }
  .panel { padding: 22px; }
  .entry-note { padding: 18px; }
}
@media (max-width: 380px) {
  .wrap { padding-left: 18px; padding-right: 18px; }
  .portal-home { left: 18px; width: 210px; }
  .entry-card, .page-card { padding: 22px; }
  .entry-card h1, .hero h1 { font-size: 29px; }
  #entry-submit { font-size: 15px; }
  .page-pagination { gap: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .header-slide { animation: none; }
  .header-slide:first-child { opacity: 1; }
  .slideshow-pause, .slideshow-control { display: none; }
}
