/** Two-row navy navigation matching the supplied October header reference. */
.dsq-header {
  background: linear-gradient(90deg, #001334 0%, #001334 25%, #002f6d 70%, #002f6d 100%);
  font-family: var(--dsq-font, 'Inter', sans-serif);
}
.dsq-header__grid {
  max-width: none;
  padding: 0 36px 0 0;
  grid-template-columns: calc(192px + max(0px, (100vw - 1650px) / 2)) minmax(0, 1fr);
  grid-template-rows: 58px 52px;
}
.dsq-header__logo {
  height: 110px;
  padding: 3px 36px 3px max(0px, calc((100vw - 1650px) / 2));
  align-items: center;
  justify-content: center;
  align-self: stretch;
  border-right: 1px solid rgba(255,255,255,.1);
}
.dsq-header__logo img { height: 104px; max-width: 164px; width: 100%; object-fit: contain; }
.dsq-header__utility { height: 100%; gap: 16px; padding-left: 20px; border-bottom: 1px solid rgba(255,255,255,.12); }
.dsq-header__partner-link, .dsq-header__phone { font-size: 18px; font-weight: 600; line-height: 1.4; }
.dsq-header__phone { gap: 8px; padding: 4px 8px; }
.dsq-header__phone-icon { font-size: 20px; }
.dsq-header__careers {
  color: #001334;
  background: #e4b038;
  border-radius: 10px;
  padding: 4px 18px;
  font-weight: 700;
}
.dsq-header__careers:hover { color: #001334; background: #f0c154; }
.dsq-header__utility > .dsq-btn--gold { font-size: 18px; line-height: 1.4; padding: 4px 17px; height: 34px; border: 0; border-radius: 10px; background: #e4b038 !important; color: #001334; }
.dsq-header__primary { height: 100%; justify-content: flex-start; gap: clamp(24px, 4vw, 48px); padding-left: clamp(30px, 5vw, 70px); padding-top: 18px; }
.dsq-header__navlink, .dsq-header__navlink--emphasis,
.dsq-header__primary .dsq-navgrp--wide .dsq-navgrp__trigger { font-size: 26px; line-height: 1.2; font-weight: 700; padding: 8px 10px; }
.dsq-header__navlink-icon { font-size: 26px; }
.dsq-header__primary .dsq-navgrp__caret { font-size: 22px; margin-left: 6px; }
.dsq-header__primary .dsq-navgrp__menu { min-width: 280px; }
@media (min-width: 901px) and (max-width: 1199px) {
  .dsq-header__grid { grid-template-columns: 160px minmax(0,1fr); padding-right: 20px; }
  .dsq-header__logo { padding-left: 0; padding-right: 12px; }
  .dsq-header__logo img { max-width: 148px; }
  .dsq-header__utility { gap: 8px; }
  .dsq-header__partner-link, .dsq-header__phone, .dsq-header__utility > .dsq-btn--gold { font-size: 14px; }
  .dsq-header__primary { gap: 16px; padding-left: 20px; }
  .dsq-header__navlink, .dsq-header__navlink--emphasis,
  .dsq-header__primary .dsq-navgrp--wide .dsq-navgrp__trigger { font-size: 20px; }
}
@media (max-width: 900px) {
  .dsq-header__grid { grid-template-columns: auto minmax(0,1fr) auto; grid-template-rows: auto; padding: 8px 16px; min-height: 76px; }
  .dsq-header__logo { height: 60px; padding: 0; border: 0; }
  .dsq-header__logo img { height: 60px; width: auto; max-width: 130px; }
  .dsq-header__utility { border: 0; padding-left: 8px; gap: 0; }
  .dsq-header__phone { font-size: 14px; }
  .dsq-header__primary { display: none; padding-top: 0; }
  .dsq-header__careers { display: none; }
  .dsq-header__burger { grid-row: 1; }
  /* The off-canvas shadow must not leak into the closed mobile header. */
  .dsq-drawer:not(.is-open) { visibility: hidden; box-shadow: none; }
}
@media (max-width: 400px) {
  .dsq-header__phone { font-size: 12px; gap: 4px; padding-right: 0; }
  .dsq-header__phone-icon { font-size: 16px; }
  .dsq-header__logo img { max-width: 100px; }
}

/* Care exports retain their booking modal and share the same desktop design. */
@media (min-width: 1101px) {
  .dsq-care-header { height: 110px; top: var(--drupal-displace-offset-top, 0px) !important; }
  .dsq-care-header > div:first-child { height: 58px !important; padding-right: 36px !important; gap: 16px !important; }
  .dsq-care-header > div:first-child > a { font-size: 18px !important; line-height: 1.4 !important; }
  .dsq-care-header > div:first-child > a[href^="mailto:"] { padding: 4px 18px !important; border-radius: 10px !important; }
  .dsq-care-header > div:first-child > a:last-of-type { height: 34px; padding: 4px 17px !important; border-radius: 10px !important; }
  .dsq-care-header > div:nth-child(2) { max-width: none !important; height: 52px !important; padding: 0 36px 0 0 !important; }
  .dsq-care-header > div:nth-child(2) > a:first-child { position: absolute; inset: 0 auto 0 0; width: calc(192px + max(0px, (100vw - 1650px) / 2)); height: 110px !important; margin: 0 !important; padding: 3px 36px 3px max(0px, calc((100vw - 1650px) / 2)) !important; align-items: center !important; justify-content: center; }
  .dsq-care-header > div:nth-child(2) > a:first-child img { height: 104px !important; max-width: 164px; width: 100% !important; margin: 0 !important; }
  .dsq-care-header > div:nth-child(2) > div { padding-left: calc(192px + max(0px, (100vw - 1650px) / 2) + clamp(30px,5vw,70px)) !important; padding-top: 18px; margin-top: 0 !important; gap: clamp(24px,4vw,48px) !important; height: 100%; }
  .dsq-care-header [data-nav] { font-size: 26px !important; line-height: 1.2 !important; font-weight: 700 !important; padding: 8px 10px !important; }
  .dsq-care-header [data-nav] > .msi { font-size: 22px !important; }
  .dsq-care-header + [data-header-spacer], [data-header-spacer] { height: 110px !important; }
}

/* Reflow every exported care header, including Specialist Consultation. */
@media (max-width: 1100px) {
  header.dsq-care-header { position: relative !important; height: auto; }
  .dsq-care-header > div:first-child { height: auto !important; min-height: 40px; flex-wrap: wrap; gap: 8px !important; padding: 8px 16px !important; }
  .dsq-care-header > div:nth-child(2) { height: auto !important; flex-wrap: wrap; gap: 12px; padding: 8px 16px 16px !important; }
  .dsq-care-header > div:nth-child(2) > a { border: 0 !important; padding-right: 0 !important; }
  .dsq-care-header > div:nth-child(2) > a img { height: 54px !important; }
  .dsq-care-header > div:nth-child(2) > div { flex-wrap: wrap !important; gap: 4px 12px !important; padding-left: 0 !important; margin-top: 0 !important; }
  .dsq-care-header [data-nav] { font-size: 14px !important; }
  .dsq-care-header .navgrp-menu { position: fixed; top: auto; left: 16px; right: 16px; width: auto; min-width: 0 !important; max-width: none; max-height: 50vh; overflow-y: auto; }
  [data-header-spacer] { display: none; }
}
@media (min-width: 1101px) and (max-width: 1199px) {
  .dsq-care-header > div:nth-child(2) > div { padding-left: 212px !important; gap: 16px !important; }
  .dsq-care-header [data-nav] { font-size: 20px !important; }
  .dsq-care-header > div:first-child > a { font-size: 14px !important; }
}

@media (min-width: 1200px) {
  .dsq-header__primary > .dsq-header__navlink:first-child,
  .dsq-care-header [data-nav="home"] { margin-right: 12px; }
}

@media (min-width: 1101px) {
  .dsq-care-header > div:first-child > a[href^="tel:"] { gap: 8px !important; }
  .dsq-care-header > div:first-child > a[href^="tel:"] .msi { font-size: 20px !important; }
}

/* Compact navigation aligned to the 1100px page container. */
@media(min-width:901px) {
  .dsq-header__grid { grid-template-columns:calc(max(0px,(100vw - 1100px)/2) + 128px) minmax(0,1fr); grid-template-rows:40px 38px; padding-right:24px; }
  .dsq-header__logo { height:78px; padding:0 24px 0 max(0px,calc((100vw - 1100px)/2)); }
  .dsq-header__logo img { height:70px; width:104px; max-width:104px; }
  .dsq-header__utility { gap:8px; padding-left:8px; }
  .dsq-header__partner-link, .dsq-header__phone { font-size:12px; }
  .dsq-header__phone { gap:4px; padding:4px 8px; }
  .dsq-header__phone-icon { font-size:14px; }
  .dsq-header__careers { padding:4px 12px; border-radius:6px; }
  .dsq-header__utility > .dsq-btn--gold { font-size:12px; height:22px; padding:3px 12px; border-radius:6px; }
  .dsq-header__primary { gap:28px; padding:0 0 0 40px; align-items:center; }
  .dsq-header__navlink, .dsq-header__navlink--emphasis,
  .dsq-header__primary .dsq-navgrp--wide .dsq-navgrp__trigger { font-size:17px; padding:8px 10px; }
  .dsq-header__navlink-icon, .dsq-header__primary .dsq-navgrp__caret { font-size:17px; }
  .dsq-header__primary > .dsq-header__navlink:first-child { margin-right:0; }
}
@media(min-width:901px) and (max-width:1199px) {
  .dsq-header__primary { padding-left:20px; gap:12px; }
  .dsq-header__navlink, .dsq-header__navlink--emphasis,
  .dsq-header__primary .dsq-navgrp--wide .dsq-navgrp__trigger { font-size:16px; }
}
@media(min-width:1101px) {
  .dsq-care-header { height:78px; }
  .dsq-care-header > div:first-child { height:40px !important; padding-right:24px !important; gap:8px !important; }
  .dsq-care-header > div:first-child > a { font-size:12px !important; }
  .dsq-care-header > div:first-child > a[href^="mailto:"] { padding:4px 12px !important; border-radius:6px !important; }
  .dsq-care-header > div:first-child > a[href^="tel:"] { gap:4px !important; }
  .dsq-care-header > div:first-child > a[href^="tel:"] .msi { font-size:14px !important; }
  .dsq-care-header > div:first-child > a:last-of-type { height:22px; padding:3px 12px !important; border-radius:6px !important; }
  .dsq-care-header > div:nth-child(2) { max-width:1100px !important; height:38px !important; padding:0 24px 0 0 !important; }
  .dsq-care-header > div:nth-child(2) > a:first-child { position:absolute; inset:0 auto auto max(0px,calc((100vw - 1100px)/2)); width:128px; height:78px !important; padding:0 24px 0 0 !important; }
  .dsq-care-header > div:nth-child(2) > a:first-child img { height:70px !important; width:104px !important; max-width:104px; }
  .dsq-care-header > div:nth-child(2) > div { padding:0 0 0 168px !important; gap:28px !important; align-items:center; }
  .dsq-care-header [data-nav] { font-size:17px !important; padding:8px 10px !important; }
  .dsq-care-header [data-nav] > .msi { font-size:17px !important; }
  .dsq-care-header [data-nav="home"] { margin-right:0; }
  .dsq-care-header + [data-header-spacer], [data-header-spacer] { height:78px !important; }
}

/* Match the booking button to the Careers yellow on all care headers. */
.dsq-care-header > div:first-child > a:last-of-type { background: #e4b038 !important; }

/* October 23 reference: utility links above a full-width main navigation row. */
@media (min-width: 1200px) {
  .dsq-header, header.dsq-care-header {
    background: linear-gradient(180deg, #052b5d 0, #052b5d 30%, #021c3e 30%, #001936 100%) !important;
  }
  .dsq-header__grid {
    position: relative;
    grid-template-columns: clamp(190px, 17.25vw, 354px) minmax(0, 1fr) clamp(320px, 28vw, 574px);
    grid-template-rows: 50px 116px;
    padding: 0 clamp(24px, 2.7vw, 56px) 0 0;
  }
  .dsq-header__grid::before {
    content: '';
    position: absolute;
    top: 50px;
    left: 0;
    right: 0;
    border-top: 1px solid #ffffff20;
  }
  .dsq-header__logo {
    grid-row: 2;
    height: 116px;
    padding: 0 28px;
    border: 0;
    position: relative;
  }
  .dsq-header__logo::after {
    content: '';
    position: absolute;
    right: 0;
    top: 39px;
    height: 59px;
    border-right: 1px solid #ffffff30;
  }
  .dsq-header__logo img { height: 112px; width: 190px; max-width: 100%; }
  .dsq-header__utility { display: contents; }
  .dsq-header__utility > .dsq-header__partner-link {
    position: absolute;
    top: 13px;
    right: 170px;
    font: 500 18px/24px 'Inter', sans-serif;
    color: #dce4f3;
    padding: 0 30px 0 0;
    border-radius: 0;
    border-right: 1px solid #ffffff60;
  }
  .dsq-header__utility > .dsq-header__careers {
    right: clamp(24px, 3vw, 62px);
    padding: 0;
    border: 0;
    background: transparent;
  }
  .dsq-header__primary {
    grid-column: 2;
    grid-row: 2;
    padding: 20px clamp(14px, 2.2vw, 45px) 0;
    gap: clamp(10px, 1.35vw, 28px);
  }
  .dsq-header__navlink, .dsq-header__navlink--emphasis,
  .dsq-header__primary .dsq-navgrp--wide .dsq-navgrp__trigger {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: clamp(17px, 1.25vw, 26px);
    font-weight: 700;
    white-space: nowrap;
    padding: 12px 8px;
  }
  .dsq-header__navlink--emphasis { color: #ffd263; border-bottom: 5px solid #ffd263; border-radius: 0; }
  .dsq-header__primary > .dsq-navgrp + .dsq-navgrp { border-left: 1px solid #ffffff30; padding-left: 18px; }
  .dsq-header__phone {
    grid-row: 2;
    grid-column: 3;
    justify-self: start;
    margin-top: 20px;
    padding: 16px 0 16px clamp(16px, 2.5vw, 52px);
    border-left: 1px solid #ffffff40;
    border-radius: 0;
    font-size: clamp(15px, 1.1vw, 23px);
    gap: 14px;
  }
  .dsq-header__phone-icon { color: #ffd263; font-size: 30px; }
  .dsq-header__utility > .dsq-btn--gold {
    grid-row: 2;
    grid-column: 3;
    justify-self: end;
    margin-top: 20px;
    height: 60px;
    padding: 0 clamp(14px, 1.6vw, 34px);
    font: 700 clamp(15px, 1.1vw, 23px)/1.2 Georgia, serif;
    border-radius: 14px;
    background: linear-gradient(110deg, #ffce59, #ffdb7a) !important;
    box-shadow: 0 5px 22px #ffd26350;
  }
  .dsq-header__utility > .dsq-btn--gold::after { content: '→'; margin-left: 12px; font-family: sans-serif; }

  /* Exported care pages keep their existing dropdown and booking actions. */
  header.dsq-care-header { height: 166px; }
  .dsq-care-header > div:first-child { height: 50px !important; padding-right: 3vw !important; gap: 30px !important; }
  .dsq-care-header > div:first-child > a { font-size: 18px !important; }
  .dsq-care-header > div:first-child > a:first-child { border-right: 1px solid #ffffff60; border-radius: 0 !important; padding-right: 30px !important; }
  .dsq-care-header > div:first-child > a[href^="mailto:"] { background: transparent !important; color: #dce4f3 !important; font-weight: 500 !important; }
  .dsq-care-header > div:first-child > a[href^="tel:"] {
    position: absolute; top: 89px; right: 17%; height: 60px; padding: 0 20px 0 30px !important;
    border-left: 1px solid #ffffff40; border-radius: 0 !important; font-size: clamp(15px, 1.1vw, 23px) !important;
  }
  .dsq-care-header > div:first-child > a[href^="tel:"] .msi { color: #ffd263; font-size: 30px !important; }
  .dsq-care-header > div:first-child > a:last-of-type {
    position: absolute; top: 89px; right: 2.7%; height: 60px;
    padding: 0 24px !important; border-radius: 14px !important;
    background: linear-gradient(110deg, #ffce59, #ffdb7a) !important;
    font: 700 clamp(15px, 1.1vw, 23px)/1.2 Georgia, serif !important;
    box-shadow: 0 5px 22px #ffd26350;
  }
  .dsq-care-header > div:first-child > a:last-of-type::after { content: '→'; margin-left: 12px; }
  .dsq-care-header > div:nth-child(2) { height: 116px !important; max-width: none !important; padding: 0 !important; }
  .dsq-care-header > div:nth-child(2) > a:first-child {
    inset: 50px auto auto 0; width: 17.25vw; height: 116px !important; padding: 0 28px !important; border: 0 !important;
  }
  .dsq-care-header > div:nth-child(2) > a:first-child img { width: 190px !important; max-width: 100%; height: 112px !important; }
  .dsq-care-header > div:nth-child(2) > div { padding: 20px 0 0 19.5vw !important; gap: clamp(10px, 1.35vw, 28px) !important; }
  .dsq-care-header [data-nav] { font: 700 clamp(17px, 1.25vw, 26px)/1.2 Georgia, serif !important; padding: 12px 8px !important; }
  .dsq-care-header [data-nav="home"] { color: #ffd263 !important; border-bottom: 5px solid #ffd263; border-radius: 0 !important; }
  .dsq-care-header + [data-header-spacer], [data-header-spacer] { height: 166px !important; }
}

/* Compact desktop header matching the supplied two-row navigation reference. */
@media (min-width: 1200px) {
  .dsq-header {
    height: 78px;
    background: linear-gradient(to bottom, #082f65 0 40px, #001b3c 40px 100%) !important;
  }

  .dsq-header__grid {
    height: 78px;
    grid-template-columns: clamp(280px, 28.2vw, 534px) minmax(0, 1fr);
    grid-template-rows: 40px 38px;
    padding: 0;
  }

  .dsq-header__grid::before {
    top: 40px;
    left: clamp(280px, 28.2vw, 534px);
  }

  .dsq-header__logo {
    grid-column: 1;
    grid-row: 1 / 3;
    justify-content: flex-end;
    height: 78px;
    padding: 0 24px;
    border-right: 1px solid #ffffff30;
  }

  .dsq-header__logo::after {
    content: none;
  }

  .dsq-header__logo img {
    width: 104px;
    height: 70px;
    max-width: 100%;
  }

  .dsq-header__utility {
    display: flex;
    grid-column: 2;
    grid-row: 1;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    height: 40px;
    padding: 0 24px;
    border-bottom: 1px solid #ffffff20;
  }

  .dsq-header__utility > .dsq-header__partner-link {
    position: static;
    padding: 4px 12px;
    border: 0;
    color: #dce4f3;
    font: 600 12px/1.2 var(--dsq-font);
  }

  .dsq-header__utility > .dsq-header__careers {
    position: static;
    padding: 5px 12px;
    border: 0;
    border-radius: 6px;
    background: #e4b038;
    color: #001334;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.2;
  }

  .dsq-header__utility > .dsq-header__careers:hover {
    background: #f0c154;
  }

  .dsq-header__phone {
    position: static;
    grid-column: auto;
    grid-row: auto;
    gap: 5px;
    margin: 0;
    padding: 4px 8px;
    border: 0;
    color: #dce4f3;
    font-size: 12px;
    font-weight: 600;
  }

  .dsq-header__phone-icon {
    color: #dce4f3;
    font-size: 14px;
  }

  .dsq-header__utility > .dsq-btn--gold {
    position: static;
    grid-column: auto;
    grid-row: auto;
    justify-self: auto;
    height: auto;
    margin: 0;
    padding: 5px 12px;
    border: 0;
    border-radius: 6px;
    background: #e4b038 !important;
    box-shadow: none;
    color: #001334;
    font: 700 12px/1.2 var(--dsq-font);
  }

  .dsq-header__utility > .dsq-btn--gold::after {
    content: none;
  }

  .dsq-header__primary {
    display: flex;
    grid-column: 2;
    grid-row: 2;
    align-items: center;
    justify-content: flex-start;
    gap: 28px;
    height: 38px;
    padding: 0 24px 0 42px;
  }

  .dsq-header__navlink,
  .dsq-header__navlink--emphasis,
  .dsq-header__primary .dsq-navgrp--wide .dsq-navgrp__trigger {
    padding: 8px 10px;
    border: 0;
    border-radius: 0;
    color: #ffffff;
    font: 700 17px/1.2 var(--dsq-font);
  }

  .dsq-header__navlink--emphasis {
    border-bottom: 0;
    color: #ffffff;
  }

  .dsq-header__primary > .dsq-navgrp + .dsq-navgrp {
    padding-left: 0;
    border-left: 0;
  }

  .dsq-header__navlink-icon,
  .dsq-header__primary .dsq-navgrp__caret {
    color: #ffffff;
    font-size: 15px;
  }

  .dsq-care-header {
    height: 78px !important;
    background: linear-gradient(to bottom, #082f65 0 40px, #001b3c 40px 100%) !important;
  }

  .dsq-care-header > div:first-child {
    height: 40px !important;
    gap: 12px !important;
    padding: 0 24px 0 0 !important;
  }

  .dsq-care-header > div:first-child > a:first-child {
    padding-right: 8px !important;
    border: 0 !important;
  }

  .dsq-care-header > div:first-child > a[href^="mailto:"] {
    padding: 5px 12px !important;
    border-radius: 6px !important;
    background: #e4b038 !important;
    color: #001334 !important;
    font-size: 12px !important;
    line-height: 1.2 !important;
  }

  .dsq-care-header > div:first-child > a[href^="tel:"] {
    position: static !important;
    height: auto !important;
    margin: 0 !important;
    padding: 4px 8px !important;
    border: 0 !important;
    border-radius: 0 !important;
    font-size: 12px !important;
  }

  .dsq-care-header > div:first-child > a[href^="tel:"] .msi {
    color: #dce4f3 !important;
    font-size: 14px !important;
  }

  .dsq-care-header > div:first-child > a:last-of-type {
    position: static !important;
    height: auto !important;
    margin: 0 !important;
    padding: 5px 12px !important;
    border-radius: 6px !important;
    background: #e4b038 !important;
    box-shadow: none !important;
    color: #001334 !important;
    font: 700 12px/1.2 var(--dsq-font) !important;
  }

  .dsq-care-header > div:nth-child(2) {
    position: static;
    width: 100%;
    max-width: none !important;
    height: 38px !important;
    margin: 0 !important;
    padding: 0 24px 0 0 !important;
  }

  .dsq-care-header > div:nth-child(2) > a:first-child {
    position: absolute;
    inset: 0 auto auto 0;
    display: flex;
    align-items: center !important;
    justify-content: flex-end;
    width: clamp(280px, 28.2vw, 534px);
    height: 78px !important;
    padding: 0 24px !important;
    border-right: 1px solid #ffffff30 !important;
  }

  .dsq-care-header > div:nth-child(2) > a:first-child img {
    width: 104px !important;
    height: 70px !important;
    max-width: 100%;
    margin: 0 !important;
  }

  .dsq-care-header > div:nth-child(2) > div {
    align-items: center;
    gap: 28px !important;
    height: 38px;
    margin-top: 0 !important;
    padding: 0 0 0 calc(clamp(280px, 28.2vw, 534px) + 42px) !important;
  }

  .dsq-care-header [data-nav] {
    padding: 8px 10px !important;
    border: 0 !important;
    border-radius: 0 !important;
    color: #ffffff !important;
    font: 700 17px/1.2 var(--dsq-font) !important;
  }

  .dsq-care-header [data-nav="home"] {
    border-bottom: 0 !important;
  }

  .dsq-care-header + [data-header-spacer],
  [data-header-spacer] {
    height: 78px !important;
  }
}
