:root {
  --portal-blue: #2158c9;
  --portal-navy: #142748;
  --portal-text: #1e304c;
  --portal-muted: #52637a;
  --portal-line: #dce4ef;
  --portal-font: "DM Sans", "Segoe UI", Arial, sans-serif;
}

.portal-shell { margin: 0; }
.portal-shell .portal-wrap { width: min(1160px, 91%); margin-inline: auto; }
.portal-shell .portal-header,
.portal-shell .portal-footer {
  box-sizing: border-box;
  background: #fff;
  color: var(--portal-text);
  font: 400 15px/1.5 var(--portal-font);
}
.portal-shell .portal-header { position: relative; inset: auto; z-index: 10; border: 0; border-bottom: 1px solid #e8edf5; backdrop-filter: none; }
.portal-shell .portal-header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 76px; padding-block: 10px; box-sizing: border-box; }
.portal-shell :is(.portal-header,.portal-footer) a { color: inherit; text-decoration: none; }
.portal-shell .portal-brand { display: inline-flex; align-items: center; gap: 11px; flex: none; min-height: 44px; }
.portal-shell .portal-brand-mark { width: clamp(54px, 4.7vw, 64px); flex: none; }
.portal-shell .portal-brand-mark img { display: block; width: 100%; height: auto; }
.portal-shell .portal-wordmark {
  color: var(--portal-navy);
  font: 700 clamp(20px, 1.95vw, 25px)/1.1 Georgia, "Times New Roman", serif;
  letter-spacing: -.035em;
  white-space: nowrap;
}
.portal-shell .portal-header .portal-wordmark { font-size: clamp(17px, 1.55vw, 20px); }
.portal-shell .portal-nav { display: flex; align-items: center; gap: clamp(10px, 1.45vw, 23px); height: auto; min-height: 0; padding: 0; }
.portal-shell .portal-nav a { display: flex; align-items: center; min-height: 44px; font-size: 13px; font-weight: 700; line-height: 1.25; letter-spacing: 0; text-transform: none; }
.portal-shell .portal-nav a { white-space: nowrap; }
.portal-shell :is(.portal-nav,.portal-footer-nav) a:hover,
.portal-shell .portal-nav [aria-current="page"] { color: var(--portal-blue); }
.portal-shell .portal-menu { display: none; }
.portal-shell .portal-footer { background: #f5f8fd; padding: clamp(28px, 4vw, 48px) 0 0; border: 0; border-top: 1px solid #e8edf5; }
.portal-shell .portal-footer-top { display: grid; grid-template-columns: 1.3fr 1fr .85fr; align-items: start; gap: 22px clamp(24px, 6vw, 88px); padding-bottom: 28px; }
.portal-shell .portal-footer .portal-brand { gap: 9px; }
.portal-shell .portal-footer .portal-brand-mark { width: 44px; }
.portal-shell .portal-footer .portal-wordmark { font-size: 19px; }
.portal-shell .portal-footer h2 { margin: 8px 0 10px; color: var(--portal-navy); font: 750 15px/1.3 var(--portal-font); letter-spacing: 0; text-transform: none; }
.portal-shell .portal-footer-about p { margin: 8px 0 4px; max-width: 33ch; color: var(--portal-muted); font-size: 14px; }
.portal-shell .portal-footer address { display: grid; justify-items: start; margin: 0; font-style: normal; }
.portal-shell .portal-footer address span { margin: 6px 0 4px; color: var(--portal-muted); }
.portal-shell .portal-footer-nav { display: grid; justify-items: start; gap: 0; height: auto; min-height: 0; padding: 0; }
.portal-shell .portal-footer :is(.portal-footer-detail, address a, .portal-footer-nav a) {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 38px;
  font-size: 14px;
  font-weight: 650;
  letter-spacing: 0;
  text-transform: none;
}
.portal-shell .portal-footer .portal-footer-detail { color: #1747a9; }
.portal-shell .portal-footer a:not(.portal-brand):hover { text-decoration: underline; text-underline-offset: 3px; }
.portal-shell .portal-footer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 15px; border-top: 1px solid var(--portal-line); color: var(--portal-muted); font-size: 12px; }
.portal-shell .portal-footer-bottom a { display: inline-flex; align-items: center; min-height: 48px; white-space: nowrap; }
.portal-shell :is(.portal-header,.portal-footer) :is(button,a):focus-visible { outline: 3px solid var(--portal-blue); outline-offset: 3px; }
.portal-skip { position: absolute; z-index: 30; inset: 8px auto auto 8px; transform: translateY(-150%); padding: 10px 14px; color: #fff; background: var(--portal-navy); }
.portal-skip:focus { transform: none; }

@media (max-width: 980px) {
  .portal-shell .portal-header-inner { position: relative; flex-wrap: wrap; gap: 0 12px; min-height: 66px; }
  .portal-shell .portal-header .portal-brand { gap: 8px; }
  .portal-shell .portal-header .portal-brand-mark { width: 48px; }
  .portal-shell .portal-header .portal-wordmark { font-size: 17px; }
  .portal-shell .portal-nav { flex-basis: 100%; display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; }
  .portal-shell .portal-nav a { white-space: normal; padding: 7px 4px; }
  .portal-shell .portal-header[data-portal-ready] .portal-menu {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 44px;
    min-width: 96px;
    border: 1px solid #d7e1f1;
    border-radius: 9px;
    padding: 7px 10px;
    background: #f5f8fd;
    color: var(--portal-navy);
    font: 700 13px/1.2 var(--portal-font);
    cursor: pointer;
  }
  .portal-shell .portal-menu-icon { position: relative; width: 16px; height: 14px; flex: none; }
  .portal-shell .portal-menu-icon::before,
  .portal-shell .portal-menu-icon::after {
    content: "";
    position: absolute;
    left: 0;
    width: 100%;
    height: 2px;
    border-radius: 2px;
    background: currentColor;
  }
  .portal-shell .portal-menu-icon::before { top: 3px; }
  .portal-shell .portal-menu-icon::after { top: 9px; }
  .portal-shell .portal-menu[aria-expanded="true"] { background: #eaf1fc; }
  .portal-shell .portal-menu[aria-expanded="true"] .portal-menu-icon::before { top: 6px; transform: rotate(45deg); }
  .portal-shell .portal-menu[aria-expanded="true"] .portal-menu-icon::after { top: 6px; transform: rotate(-45deg); }

  .portal-shell .portal-header[data-portal-ready] .portal-nav {
    position: absolute;
    inset: calc(100% + 6px) 0 auto;
    z-index: 1;
    box-sizing: border-box;
    width: min(100%, 440px);
    margin-left: auto;
    max-height: calc(100vh - 84px);
    max-height: calc(100dvh - 84px);
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 8px;
    border: 1px solid #dce5f1;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 18px 38px #10274825;
  }
  .portal-shell .portal-header[data-portal-ready] .portal-menu[aria-expanded="false"] + .portal-nav { display: none; }
  .portal-shell .portal-header[data-portal-ready] .portal-nav a {
    box-sizing: border-box;
    justify-content: space-between;
    gap: 10px;
    min-height: 46px;
    padding: 10px 13px;
    border-radius: 7px;
    font-size: 14px;
    font-weight: 650;
  }
  .portal-shell .portal-header[data-portal-ready] .portal-nav a + a { border-top: 1px solid #eef2f7; }
  .portal-shell .portal-header[data-portal-ready] .portal-nav a::after {
    content: "";
    width: 6px;
    height: 6px;
    margin-right: 4px;
    flex: none;
    border-top: 1.5px solid currentColor;
    border-right: 1.5px solid currentColor;
    color: #778ca6;
    transform: rotate(45deg);
  }
  .portal-shell .portal-header[data-portal-ready] .portal-nav a:is(:hover, [aria-current]:not([aria-current="false"])) {
    background: #edf3ff;
    color: #1747a9;
  }
  .portal-shell .portal-header[data-portal-ready] .portal-nav a[aria-current]:not([aria-current="false"]) { box-shadow: inset 3px 0 #2158c9; }
  .portal-shell .portal-header[data-portal-ready] .portal-nav a:focus-visible { outline-offset: -3px; }
}

@media (max-width: 640px) {
  .portal-shell .portal-footer-top { grid-template-columns: 1fr 1fr; }
  .portal-shell .portal-footer-about { grid-column: 1 / -1; }
  .portal-shell .portal-footer-top > :not(.portal-footer-about) { border-top: 1px solid var(--portal-line); padding-top: 10px; }
  .portal-shell .portal-footer :is(.portal-footer-detail, address a, .portal-footer-nav a) { min-height: 44px; }
}

@media (max-width: 480px) {
  .portal-shell .portal-footer-top { grid-template-columns: 1fr; gap: 12px; }
}

@media (max-width: 370px) {
  .portal-shell .portal-header-inner { column-gap: 10px; }
  .portal-shell .portal-header .portal-brand-mark { width: 42px; }
  .portal-shell .portal-header .portal-wordmark { font-size: 16px; }
}
