/* Main navigation and footer are shared by the preview pages. */
#header {
  --nav-height: 78px;
  --nav-gutter: clamp(22px, 3.3vw, 56px);
  position: sticky;
  z-index: 30;
  top: 0;
  isolation: isolate;
  color: var(--ink, #112844);
  background: #fff;
  border-bottom: 1px solid #d8dee1;
}

#header [hidden] { display: none !important; }
#header .skip {
  position: absolute;
  z-index: 4;
  top: 8px;
  left: 8px;
  padding: 12px 16px;
  color: #fff;
  background: #112844;
  border-radius: 5px;
  transform: translateY(-150%);
}
#header .skip:focus { transform: none; }
#header :where(a, button, summary):focus-visible,
#footer a:focus-visible {
  outline: 3px solid #236888;
  outline-offset: 3px;
}
#header :where(button, summary) { cursor: pointer; }
#header button { color: inherit; font: inherit; }

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(12px, 1.7vw, 28px);
  width: 100%;
  max-width: 1440px;
  min-height: var(--nav-height);
  margin: 0 auto;
  padding: 0 var(--nav-gutter);
  box-sizing: border-box;
}
#header .brand, #footer .footer-inner > a {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
}
#header .brand img, #footer .footer-inner img {
  display: block;
  width: clamp(100px, 8.8vw, 128px);
  height: auto;
}
.desktop-nav, .nav-actions, .nav-pair, .languages {
  display: flex;
  align-items: center;
}
.desktop-nav {
  align-self: stretch;
  justify-content: center;
  gap: clamp(8px, 1.15vw, 21px);
}
#header .desktop-nav > a, #header .nav-pair > a,
#header .nav-actions :is(.price, .login) {
  display: inline-flex;
  min-height: 39px;
  align-items: center;
  color: #152c47;
  font-size: clamp(13px, .98vw, 15px);
  font-weight: 600;
  line-height: 1.15;
  white-space: nowrap;
  text-decoration: none;
}
#header .desktop-nav > a:hover, #header .nav-pair > a:hover,
#header .nav-actions :is(.price, .login):hover,
#header .nav-pair > a.current {
  text-decoration: underline;
  text-underline-offset: 5px;
  text-decoration-thickness: 2px;
  text-decoration-color: #d9a921;
}
.nav-pair { position: relative; align-self: stretch; gap: 1px; }
.disclosure {
  display: inline-grid;
  width: 21px;
  min-height: 36px;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 4px;
  background: transparent;
}
.disclosure:hover, .disclosure[aria-expanded="true"] { background: #f2f4f3; }
.chev {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-top: -3px;
  border-right: 1.6px solid currentColor;
  border-bottom: 1.6px solid currentColor;
  transform: rotate(45deg);
}
.disclosure[aria-expanded="true"] .chev,
#mobile-menu details[open] > summary .chev { transform: rotate(225deg); margin-top: 4px; }
.nav-actions { justify-content: flex-end; flex: 0 0 auto; gap: clamp(8px, 1.05vw, 16px); }
.languages {
  gap: 1px;
  padding: 2px;
  border: 1px solid #c6cdd1;
  border-radius: 8px;
  background: #fff;
}
#header .languages :is(a, span) {
  display: inline-grid;
  min-width: 29px;
  min-height: 28px;
  padding: 0 4px;
  box-sizing: border-box;
  place-items: center;
  color: #40516a;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  border-radius: 5px;
  text-decoration: none;
}
#header .languages [aria-current="true"] { color: white; background: #112844; }
#header .languages a:hover { background: #edf1f1; }
#header .nav-actions .start {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 40px;
  padding: 0 15px;
  white-space: nowrap;
  font-size: 14px;
}
#hamburger, #mobile-menu { display: none; }

.mega {
  position: absolute;
  inset: 100% 0 auto;
  max-height: calc(100vh - var(--nav-height));
  max-height: calc(100dvh - var(--nav-height));
  overflow: auto;
  overscroll-behavior: contain;
  box-sizing: border-box;
  background: #fff;
  border-top: 1px solid #e0e4e5;
  border-bottom: 1px solid #d8dee1;
  box-shadow: 0 16px 28px -22px rgba(17, 40, 68, .4);
}
.mega-inner {
  display: grid;
  grid-template-columns: minmax(178px, 1fr) minmax(0, 3fr);
  gap: clamp(24px, 4vw, 72px);
  max-width: 1440px;
  margin: 0 auto;
  padding: 31px var(--nav-gutter) 34px;
  box-sizing: border-box;
}
.mega-head { align-self: start; padding: 2px 0 12px; }
.mega-head h2 {
  margin: 0 0 15px;
  color: #112844;
  font-size: clamp(29px, 2.6vw, 39px);
  font-weight: 650;
  line-height: 1.12;
  letter-spacing: -.045em;
}
#header .mega-head .text-link, #header .mobile-list > .text-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: #153954;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.35;
  text-decoration: underline;
  text-decoration-color: #c19427;
  text-underline-offset: 5px;
}
.menu-columns { display: grid; align-items: start; gap: clamp(18px, 2.2vw, 45px); }
.menu-columns.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.menu-column { display: flex; min-width: 0; flex-direction: column; align-items: flex-start; }
.menu-column > p {
  margin: 0 0 8px;
  color: #55666d;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: .035em;
}
#header .menu-column > a {
  display: block;
  width: fit-content;
  max-width: 100%;
  padding: 7px 0;
  color: #142b45;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.3;
  text-decoration: none;
}
#header .menu-column > a:hover, #header .mega-head .text-link:hover,
#header .mobile-list > .text-link:hover {
  color: #19546b;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.menu-columns.compact { grid-template-columns: 1fr; }
#panel-faq .menu-column {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: clamp(18px, 2.4vw, 42px);
}
#panel-faq .menu-column > p { grid-column: 1 / -1; }

#footer { border-top: 1px solid #d8dee1; color: #112844; background: #fff; }
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  max-width: 1440px;
  min-height: 102px;
  margin: 0 auto;
  padding: 20px clamp(22px, 3.3vw, 56px);
  box-sizing: border-box;
}
.footer-inner nav { display: flex; flex-wrap: wrap; gap: 12px 22px; }
.footer-inner nav a { color: #263e55; font-size: 14px; font-weight: 550; text-decoration: none; }
.footer-inner nav a:hover { text-decoration: underline; text-underline-offset: 4px; }
.footer-inner small { color: #52606c; font-size: 12px; white-space: nowrap; }

@media (max-width: 1099px) {
  #header { --nav-height: 68px; --nav-gutter: clamp(16px, 4.8vw, 34px); }
  #header .desktop-nav, #desktop-panels, #header .nav-actions :is(.login, .start) { display: none; }
  #header .brand img { width: clamp(96px, 17.3vw, 122px); }
  .topbar { gap: 10px; }
  .nav-actions { gap: clamp(12px, 3.2vw, 22px); }
  #header .nav-actions .price { font-size: 15px; }
  #header .languages :is(a, span) { min-height: 31px; min-width: 31px; }
  #hamburger {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 36px;
    min-height: 44px;
    padding: 0;
    border: 0;
    border-radius: 4px;
    background: transparent;
  }
  #hamburger i { display: block; width: 23px; height: 2px; border-radius: 2px; background: #112844; }
  #hamburger[aria-expanded="true"] i:first-child { transform: translateY(4px) rotate(45deg); }
  #hamburger[aria-expanded="true"] i:last-child { transform: translateY(-4px) rotate(-45deg); }
  #mobile-menu {
    display: block;
    position: absolute;
    inset: 100% 0 auto;
    max-height: calc(100vh - var(--nav-height));
    max-height: calc(100dvh - var(--nav-height));
    padding: 0 var(--nav-gutter) 22px;
    box-sizing: border-box;
    overflow-y: auto;
    overscroll-behavior: contain;
    background: #fff;
    border-top: 1px solid #d8dee1;
    border-bottom: 1px solid #d8dee1;
    box-shadow: 0 18px 30px -26px rgba(17, 40, 68, .45);
  }
  #mobile-menu > a:not(.button), #mobile-menu > details > summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 53px;
    margin: 0;
    padding: 8px 1px;
    box-sizing: border-box;
    color: #152b45;
    font-size: 18px;
    font-weight: 500;
    line-height: 1.25;
    text-decoration: none;
    list-style: none;
  }
  #mobile-menu > details, #mobile-menu > a:not(.button) { border-bottom: 1px solid #d8dee1; }
  #mobile-menu summary::-webkit-details-marker { display: none; }
  #mobile-menu summary .chev { width: 9px; height: 9px; margin-right: 6px; }
  #mobile-menu details[open] > summary { font-weight: 700; }
  .mobile-list { padding: 0 1px 14px 14px; }
  #header .mobile-list > .text-link { min-height: 39px; }
  .mobile-list .menu-column { margin: 9px 0 0; }
  .mobile-list .menu-column + .menu-column { margin-top: 15px; }
  .mobile-list .menu-column > p { margin: 0 0 3px; }
  #header .mobile-list .menu-column > a { padding: 9px 0; overflow-wrap: anywhere; }
  #mobile-menu > .button { display: inline-flex; margin-top: 15px; }
}

@media (max-width: 660px) {
  .footer-inner {
    flex-wrap: wrap;
    justify-content: flex-start;
    align-items: center;
    gap: 18px 24px;
    padding: 24px clamp(16px, 4.8vw, 34px);
  }
  .footer-inner nav { order: 3; width: 100%; gap: 10px 18px; }
  .footer-inner small { margin-left: auto; }
}

@media (max-width: 359px) {
  #header { --nav-gutter: 13px; --nav-height: 61px; }
  #header .brand img { width: 86px; }
  .nav-actions { gap: 8px; }
  #header .languages :is(a, span) { min-width: 27px; min-height: 28px; }
  #header .nav-actions .price { font-size: 14px; }
  #hamburger { width: 31px; }
}
