/* Shared brand shell: compact, responsive and consistent on every route. */
#site-header{background:var(--page-bg,#faf8f3)}
#site-header .topline{background:transparent;color:#34425a;border:0;padding:0;font-size:12px}
#site-header .topline>.wrap{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:38px;padding-top:4px;padding-bottom:4px;border-bottom:1px solid #d7dde7}
#site-header .language-choice{display:inline-flex;align-items:center;gap:6px;white-space:nowrap;margin:0;font-size:12px;color:#263952;font-weight:600}
#site-header .language-choice select{width:54px!important;min-width:54px!important;max-width:54px;height:30px;min-height:30px;padding:2px 4px;margin:0;border:1px solid #afbed2;background:transparent;color:#174ba8;border-radius:5px;font-size:12px}
#site-header .header{background:transparent;border:0;box-shadow:none;position:relative}
#site-header .navrow{min-height:92px;gap:22px;padding-top:12px;padding-bottom:12px;border-bottom:1px solid #d7dde7;align-items:center}
#site-header .brand,#site-footer .brand{display:block;width:224px;max-width:100%;height:auto;aspect-ratio:2048/683;position:relative;overflow:visible;background:transparent;border:0;border-radius:0;flex:0 0 auto;box-shadow:none;padding:0}
#site-header .brand img,#site-footer .brand img{display:block;position:static!important;inset:auto!important;left:auto!important;top:auto!important;transform:none!important;width:100%!important;height:100%!important;object-fit:contain;max-width:100%;margin:0;mix-blend-mode:normal}
#site-header .nav{display:flex;align-items:center;gap:24px;margin-left:auto}
#site-header .nav>a{display:flex;position:relative;align-items:center;justify-content:center;gap:7px;min-height:48px;padding:8px 0;background:transparent!important;border:0!important;box-shadow:none;border-radius:0;color:#23354f;font-size:14px;font-weight:600;white-space:nowrap;text-decoration:none;transition:color .18s ease}
#site-header .nav>a:after{content:"";position:absolute;left:0;right:0;bottom:2px;height:3px;background:#cc233b;border-radius:2px;transform:scaleX(0);transform-origin:left;transition:transform .22s ease}
#site-header .nav>a:hover,#site-header .nav>a[aria-current="page"]{color:#1452bb!important}
#site-header .nav>a:hover:after,#site-header .nav>a[aria-current="page"]:after{transform:scaleX(1)}
#site-header .account{color:#1452bb!important;flex-direction:column;gap:2px!important;line-height:1.15;font-size:11px!important;min-width:66px}
.account-icon{width:30px;height:30px;color:#1452bb;flex-shrink:0}
#site-header .menu-toggle{display:none;background:transparent;color:#1452bb;border:1px solid #bbc9de;box-shadow:none;padding:8px 12px;min-height:44px;font-size:14px}
#site-footer .footer{background:var(--page-bg,#faf8f3);color:#37465b;padding:26px 0 14px;border-top:1px solid #d7dde7;font-size:12px}
#site-footer .footer-grid{display:grid;grid-template-columns:1.15fr 1fr 1fr 1fr;gap:24px;margin:0 0 14px}
#site-footer .brand{width:190px;margin:0 0 6px}
#site-footer .footer p{font-size:12px;line-height:1.5;margin:4px 0;max-width:28em;color:#4b5a6e}
#site-footer .footer h3{font-size:13px;color:#223751;margin:0 0 5px}
#site-footer .footer-links{display:flex;flex-direction:column;gap:0}
#site-footer .footer-links a{min-height:30px;padding:5px 0;line-height:1.35;color:#3a4f6b;font-size:12px;text-decoration:none}
#site-footer .footer-links a:hover{color:#1452bb;text-decoration:underline}
#site-footer .disclaimer{border-top:1px solid #dce1e8;padding:10px 0 0;margin:0;font-size:10px;line-height:1.5;color:#5c697c}
#site-footer .footer-bottom{padding:8px 0 0;margin:0;gap:8px;font-size:10px;line-height:1.4;color:#5c697c}
/* Compact authentication cards inspired by AdminLTE's layout, using our brand. */
.auth-page{background:#f4f5f8;color:#23354f}
.auth-page .layout{display:block;min-height:0}
.auth-page .portal-main{padding:42px 16px 50px;min-height:480px}
.auth-page #auth-root{width:100%;max-width:400px;padding:0;margin:0 auto}
.auth-page .auth-brand{display:block;width:230px;max-width:75%;margin:0 auto 18px}
.auth-page .auth-brand img{width:100%;height:auto;display:block}
.auth-page .auth-card{width:100%;padding:24px;background:#fff;border:1px solid #dce1e8;border-top:3px solid #1452bb;border-radius:5px;box-shadow:0 5px 22px #2537500a;margin:0;max-width:none}
.auth-page .auth-card h1{font-family:inherit;font-size:21px;line-height:1.3;text-align:center;letter-spacing:0;margin:0 0 12px;color:#23354f}
.auth-page .auth-intro{font-size:13px;line-height:1.55;text-align:center;color:#536176;margin:0 0 20px}
.auth-page .portal-field{margin:0 0 15px;gap:5px;position:relative}
.auth-page .portal-field label{font-size:12px;font-weight:600;color:#35465e;margin-bottom:4px;display:block}
.auth-page .portal-field input{width:100%;min-height:44px;height:44px;padding:10px 40px 10px 12px;border:1px solid #c6ceda;border-radius:4px;background:white;color:#23354f;font-size:14px;box-shadow:none}
.auth-page .portal-field input:focus{outline:2px solid #b2cbfa;outline-offset:1px;border-color:#1452bb}
.auth-page .field-icon{position:absolute;right:12px;bottom:13px;width:18px;height:18px;color:#67798e;pointer-events:none}
.auth-page .portal-check{display:flex;align-items:flex-start;gap:8px;font-size:12px;line-height:1.5;margin:12px 0;color:#43536a;font-weight:400}
.auth-page .portal-check input{width:16px;height:16px;min-height:16px;margin:2px 0 0;accent-color:#1452bb;flex-shrink:0}
.auth-page .button{background:#1452bb;border:1px solid #1452bb;border-radius:4px;min-height:44px;padding:10px 16px;font-size:13px;line-height:1.4;font-weight:600;box-shadow:none;letter-spacing:0;color:white}
.auth-page form>.button{width:100%;margin-top:6px}
.auth-page .login-row{display:flex;justify-content:space-between;align-items:center;gap:12px;margin:0 0 14px}
.auth-page .login-row .portal-check{margin:0}
.auth-page .login-row>.button{margin:0;flex-shrink:0}
.auth-page .portal-actions{display:flex;flex-direction:column;align-items:flex-start;gap:0;margin:12px 0 0;padding:0}
.auth-page .auth-action-link,.auth-page .text-link{display:inline-block;background:none;border:0;color:#1452bb;padding:6px 0;font-size:13px;min-height:30px;text-align:left;text-decoration:underline;text-underline-offset:3px;line-height:1.4}
.auth-page .auth-or{display:flex;gap:12px;align-items:center;margin:14px 0;color:#778294;font-size:11px;text-align:center}
.auth-page .auth-or:before,.auth-page .auth-or:after{content:"";height:1px;background:#e2e6ec;flex:1}
.auth-page .auth-socials{display:grid;gap:8px}
.auth-page .auth-socials .button{width:100%;display:flex;align-items:center;justify-content:center;gap:10px}
.auth-page .auth-socials .google{background:#c6263d;border-color:#c6263d}
.auth-page .social-mark{font-size:19px;font-weight:700;width:20px}
.auth-page .auth-provider-note,.auth-page .portal-help{font-size:11px;color:#67758a;line-height:1.5;margin:10px 0 0}
.auth-page .auth-feedback{font-size:12px;padding:10px 12px;line-height:1.5;margin:0 0 16px;border-radius:4px;background:#eef4ff;color:#274b82}
.auth-page .auth-feedback.error{background:#fff0f2;color:#9b2033}
@media(max-width:1100px){#site-header .nav{gap:16px}#site-header .nav>a{font-size:12px}#site-header .brand{width:190px}}
@media(max-width:1100px){#site-header .navrow{position:relative;min-height:78px;flex-wrap:wrap;justify-content:space-between;gap:8px}#site-header .brand{width:198px;max-width:65%}#site-header .menu-toggle{display:block;margin-left:auto}#site-header .nav{display:none;width:100%;flex-direction:column;align-items:stretch;gap:0;margin:8px 0 0;padding:8px 0;border-top:1px solid #dce1e8}#site-header .nav.open{display:flex;animation:menuReveal .2s ease}#site-header .nav>a{justify-content:flex-start;font-size:14px;padding:10px 8px}#site-header .nav>a:after{right:auto;width:32px;left:8px}#site-header .account{flex-direction:row;gap:8px!important;font-size:14px!important}#site-footer .footer-grid{grid-template-columns:1fr 1fr;gap:20px}#site-footer .footer-grid>div:first-child{grid-column:1/-1}#site-footer .footer-grid>div:first-child p{max-width:45em}.auth-page .portal-main{padding-top:28px}}
@media(max-width:480px){#site-header .topline>.wrap{align-items:center;gap:8px;min-height:40px}#site-header .topline>.wrap>span{font-size:10px;line-height:1.35;max-width:190px}#site-header .language-choice{font-size:11px;gap:4px}#site-header .language-choice select{width:49px!important;min-width:49px!important}#site-header .navrow{padding-top:8px;padding-bottom:8px}.auth-page .auth-card{padding:20px}.auth-page .portal-main{padding-left:16px;padding-right:16px}#site-footer .footer-grid{gap:14px 20px}#site-footer .footer-bottom{display:flex;flex-direction:column;gap:3px}}
@keyframes menuReveal{from{opacity:0;transform:translateY(-4px)}to{opacity:1;transform:translateY(0)}}
@media(prefers-reduced-motion:reduce){#site-header .nav.open{animation:none}#site-header .nav>a:after{transition:none}}
.auth-page .auth-socials [aria-disabled="true"]{opacity:.68;cursor:not-allowed}
.auth-page .auth-card p:not([class]){font-size:13px;line-height:1.55;color:#536176}
/* Neutralise legacy form margins so trailing icons remain inside their inputs. */
.auth-page .portal-field input{margin:0}
#site-header .nav .account .account-icon{width:30px!important;height:30px!important;max-width:none}
/* The Belgian flag is a vector asset, independent of emoji support on Windows. */
#hero-title .belgium-flag{display:inline-block;width:.62em;height:auto;min-width:26px;max-width:58px;aspect-ratio:3/2;object-fit:contain;vertical-align:baseline;border-radius:2px;margin-left:.08em;box-shadow:0 0 0 1px #172a4420}
#site-footer .footer-bottom.footer-copyright{display:block;text-align:center;width:100%;padding-top:10px;font-size:11px}
.admin-data-card>.portal-help{margin:0;padding:12px 20px;font-size:12px;line-height:1.5}
.admin-data-table{min-width:980px}
.admin-data-table .record-id{font-family:ui-monospace,SFMono-Regular,Consolas,monospace;font-size:11px;max-width:145px;overflow-wrap:anywhere}
.admin-data-table .record-email{max-width:240px;overflow-wrap:anywhere}
.admin-data-table .record-actions{white-space:nowrap;width:118px}
.admin-data-table .row-action{display:inline-flex;align-items:center;justify-content:center;width:48px;height:48px;min-height:48px;padding:12px;background:transparent;border:1px solid transparent;border-radius:6px;color:#202834;cursor:pointer;vertical-align:middle;box-shadow:none}
.admin-data-table .row-action+ .row-action{margin-left:2px}
.admin-data-table .row-action svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;pointer-events:none}
.admin-data-table .row-action-delete{color:#c5263d}
.admin-data-table .row-action:hover{background:#e0eaff;border-color:#b9cdeb}
.admin-data-table .row-action-delete:hover{background:#ffedf0;border-color:#efb4bf}
.admin-data-table .row-action:disabled{opacity:.35;cursor:not-allowed;background:transparent;border-color:transparent}
.admin-data-table .clickable-record{cursor:pointer}
.admin-data-table .clickable-record:focus-visible{outline:2px solid #1452bb;outline-offset:-2px;background:#edf3ff}
.admin-data-table .row-action:focus-visible{outline:2px solid #1452bb;outline-offset:1px}
.managed-profile:focus,.case-summary:focus{outline:none;box-shadow:0 0 0 2px #bed1ed}
@media(max-width:600px){.admin-data-card>.portal-help{padding:10px 12px}.managed-profile .portal-actions{flex-wrap:wrap}}

.admin-data-table .record-id{font-family:inherit;font-size:13px;font-variant-numeric:tabular-nums;width:64px;max-width:80px;white-space:nowrap}
.admin-data-table th:first-child input{min-width:48px}
.auth-page .portal-field select{width:100%;height:44px;min-height:44px;margin:0;padding:10px 12px;border:1px solid #c6ceda;border-radius:4px;background:#fff;color:#23354f;font-size:14px}
.auth-page .portal-field select:focus{outline:2px solid #b2cbfa;outline-offset:1px;border-color:#1452bb}
/* Focused navigation, readable resource cards and factual dossier milestones. */
.resource-page{max-width:1120px}.resource-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}.resource-grid .portal-card{margin:0;display:flex;flex-direction:column}.resource-grid a{margin-top:auto;min-height:48px;display:inline-flex;align-items:center}.resource-page .page-heading{padding:20px 0 30px}.next-action{border-left:4px solid #1452bb}.student-timeline{list-style:none;padding:0;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin:24px 0}.student-timeline li{padding:14px;border:1px solid #c7ced7;border-radius:8px;background:#fff;color:#414e60}.student-timeline .complete{border-color:#1452bb;background:#eef4ff;color:#123f88}.student-timeline span{display:block}.journey-short{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:28px;padding-left:24px}.journey-short li{padding-left:8px}.home-intro>.buttons{margin:0 auto 28px;justify-content:center}.home-film{margin-top:12px}.portal-card>.text-link{display:inline-flex;min-height:48px;align-items:center;margin-right:16px}
@media(max-width:760px){.student-timeline{grid-template-columns:repeat(2,minmax(0,1fr))}.resource-grid,.journey-short{grid-template-columns:1fr}.resource-grid{gap:14px}.home-intro>.buttons{padding:0 20px}.home-intro>.buttons a{width:100%;text-align:center}.journey-short{gap:12px}.resource-page .page-heading h1{font-size:clamp(2rem,8vw,3rem)}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;transition:none!important;animation:none!important}}

/* Keep recovery links on separate lines at every screen width. */
.auth-page .auth-secondary-links{display:flex;flex-direction:column;align-items:flex-start;gap:4px;margin-top:12px}
.auth-page .auth-secondary-links>a{display:inline-flex;align-items:center;min-height:44px;max-width:100%;margin:0;overflow-wrap:anywhere}

.auth-page .password-toggle {
  right: 4px;
  bottom: 2px;
  width: 42px;
  height: 40px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  background: transparent;
  pointer-events: auto;
}
.auth-page .password-toggle svg {width: 18px; height: 18px}
.auth-page .privacy-trigger {padding: 0; border: 0; background: transparent; text-align: left}
.auth-page .privacy-dialog {
  width: min(42rem, calc(100vw - 2rem));
  max-height: min(75dvh, 44rem);
  padding: 1.25rem;
  border: 1px solid #cbd5e1;
  border-radius: 14px;
  color: #24364d;
  background: #fff;
}
.auth-page .privacy-dialog::backdrop {background: #12233ac2}
.auth-page .privacy-dialog-body {margin-top: 1rem; text-align: left}

.auth-page .privacy-dialog {overflow: hidden; padding: 0}
.auth-page .privacy-dialog-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  padding: .85rem 1rem;
  border-bottom: 1px solid #dce3eb;
}
.auth-page .privacy-dialog .privacy-dialog-header h2 {
  margin: 0;
  text-align: left;
  font-size: clamp(1rem, 3.8vw, 1.4rem) !important;
  line-height: 1.2;
}
.auth-page .privacy-dialog-header button {flex: none; margin: 0}
.auth-page .privacy-dialog-body {
  margin: 0;
  padding: 1rem;
  max-height: calc(min(75dvh, 44rem) - 5.5rem);
  overflow: auto;
}
.auth-page .privacy-dialog .privacy-dialog-body h2 {
  font-size: clamp(.95rem, 3.2vw, 1.15rem) !important;
  line-height: 1.3;
  margin: 1rem 0 .35rem;
}
.auth-page .privacy-dialog-body h2:first-child {margin-top: 0}

.auth-page .password-control {position:relative}
.auth-page .password-control input {width:100%;padding-right:50px}
.auth-page .password-toggle svg {width:22px;height:22px}
.auth-page .password-visible .eye-slash {display:none}
.auth-page .password-meter {margin-top:8px;display:grid;gap:5px}
.auth-page .password-progress {appearance:none;width:100%;height:7px;border:0;border-radius:99px;overflow:hidden;background:#e6ebf2;--meter-color:#b45309}
.auth-page .password-meter[data-result="valid"] .password-progress {--meter-color:#15803d}
.auth-page .password-progress::-webkit-progress-bar {background:#e6ebf2}
.auth-page .password-progress::-webkit-progress-value {background:var(--meter-color)}
.auth-page .password-progress::-moz-progress-bar {background:var(--meter-color)}
.auth-page .password-feedback {font-size:.84rem;color:#475569}
