/* Shared ultra-wide treatment for every Boundlearn-owned header and footer.
   Existing desktop, tablet, and mobile layouts remain untouched below 1800px. */
@media (min-width:1800px) {
  .bl-source-boundlearn-header,
  body.bl-boundlearn-home #bl-sticky,
  body.bl-boundlearn-home #bl-hdr-row {
    padding-right:max(72px,calc((100% - 1440px) / 2))!important;
    padding-left:max(72px,calc((100% - 1440px) / 2))!important;
  }

  .bl-source-boundlearn-header:not(.bl-unified-header) .bl-hub-desktop-logo-slot img,
  body.bl-boundlearn-home #bl-sticky img[alt="Boundlearn"],
  body.bl-boundlearn-home #bl-hdr-row img[alt="Boundlearn"],
  .bl-hub-desktop-menu-logo img {
    width:auto!important;
    height:24px!important;
  }

  .bl-source-boundlearn-header:not(.bl-unified-header) .bl-hub-desktop-actions,
  body.bl-boundlearn-home #bl-sticky .bl-desktop-nav,
  body.bl-boundlearn-home #bl-hdr-row .bl-desktop-nav,
  .bl-hub-desktop-menu-actions {
    gap:14px!important;
  }

  .bl-source-boundlearn-header:not(.bl-unified-header) .bl-hub-desktop-action,
  body.bl-boundlearn-home #bl-sticky .bl-hub-desktop-action,
  body.bl-boundlearn-home #bl-hdr-row .bl-hub-desktop-action,
  .bl-hub-desktop-menu .bl-hub-desktop-action {
    min-height:48px!important;
    font-size:12.5px!important;
  }

  .bl-source-boundlearn-header:not(.bl-unified-header) .bl-hub-desktop-apply,
  body.bl-boundlearn-home #bl-sticky .bl-hub-desktop-apply,
  body.bl-boundlearn-home #bl-hdr-row .bl-hub-desktop-apply,
  .bl-hub-desktop-menu .bl-hub-desktop-apply {
    min-width:112px!important;
  }

  .bl-source-boundlearn-header:not(.bl-unified-header) .bl-hub-desktop-trigger,
  .bl-hub-desktop-menu .bl-hub-desktop-trigger {
    min-width:132px!important;
  }

  body.bl-boundlearn-home #bl-sticky .bl-hub-desktop-trigger,
  body.bl-boundlearn-home #bl-hdr-row .bl-hub-desktop-trigger {
    min-width:112px!important;
  }

  .bl-source-boundlearn-header:not(.bl-unified-header) .bl-hub-desktop-trigger svg,
  body.bl-boundlearn-home #bl-sticky .bl-hub-desktop-trigger svg,
  body.bl-boundlearn-home #bl-hdr-row .bl-hub-desktop-trigger svg,
  .bl-hub-desktop-menu .bl-hub-desktop-trigger svg,
  .bl-hub-desktop-menu .bl-hub-desktop-close svg {
    width:20px!important;
    height:20px!important;
  }

  .bl-hub-desktop-menu .bl-hub-desktop-close {
    min-width:132px!important;
    min-height:48px!important;
    font-size:12.5px!important;
  }

  /* Legacy product pages deliberately scale their approved 1366px composition.
     Their Boundlearn header follows the same outer gutter as the scaled footer. */
  html body.yfl-page #dc-root .bl-source-boundlearn-header,
  html body.rise-product-page #dc-root .bl-source-boundlearn-header,
  html body.hsa-shared-page #dc-root .bl-source-boundlearn-header,
  html.cfi-option-a-preview body .cfi-option-page .bl-source-boundlearn-header,
  html body .spark-page-root .bl-source-boundlearn-header {
    padding-right:max(72px,5vw)!important;
    padding-left:max(72px,5vw)!important;
  }

  .bl-boundlearn-footer {
    padding-top:76px!important;
    padding-right:max(72px,5vw)!important;
    padding-bottom:50px!important;
    padding-left:max(72px,5vw)!important;
  }

  .bl-boundlearn-footer__inner {
    width:100%!important;
    max-width:1440px!important;
    margin-right:auto!important;
    margin-left:auto!important;
  }

  .bl-boundlearn-footer__grid {
    column-gap:clamp(52px,3.6vw,76px)!important;
    row-gap:44px!important;
    padding-bottom:46px!important;
  }

  .bl-boundlearn-footer__brand img[src*="boundlearn_logo_vector"],
  .bl-boundlearn-footer__brand img[alt="Boundlearn"] {
    height:26px!important;
    width:auto!important;
  }

  .bl-boundlearn-footer__brand [data-bl-footer-copy] {
    max-width:410px!important;
    margin-top:20px!important;
    font-size:15px!important;
    line-height:1.7!important;
  }

  .bl-boundlearn-footer__brand a[aria-label] {
    width:34px!important;
    height:34px!important;
    border-radius:8px!important;
  }

  .bl-boundlearn-footer__brand a[aria-label] svg {
    width:15px!important;
    height:15px!important;
  }

  .bl-boundlearn-footer__links > div:first-child,
  .bl-boundlearn-footer__links > span:first-child,
  .bl-boundlearn-footer__links > p:first-child {
    margin-bottom:20px!important;
    font-size:12px!important;
    line-height:1.2!important;
    letter-spacing:.16em!important;
  }

  .bl-boundlearn-footer__links > div:last-child {
    gap:13px!important;
  }

  .bl-boundlearn-footer__links a {
    font-size:14.5px!important;
    line-height:1.4!important;
  }

  .bl-boundlearn-footer__bottom {
    padding-top:28px!important;
  }

  .bl-boundlearn-footer__bottom > * {
    font-size:13px!important;
    line-height:1.45!important;
  }
}

@media (min-width:2400px) {
  .bl-source-boundlearn-header,
  body.bl-boundlearn-home #bl-sticky,
  body.bl-boundlearn-home #bl-hdr-row {
    padding-right:max(72px,calc((100% - 1440px) / 2))!important;
    padding-left:max(72px,calc((100% - 1440px) / 2))!important;
  }

  .bl-source-boundlearn-header:not(.bl-unified-header) .bl-hub-desktop-logo-slot img,
  body.bl-boundlearn-home #bl-sticky img[alt="Boundlearn"],
  body.bl-boundlearn-home #bl-hdr-row img[alt="Boundlearn"],
  .bl-hub-desktop-menu-logo img {
    height:28px!important;
  }

  .bl-source-boundlearn-header:not(.bl-unified-header) .bl-hub-desktop-actions,
  body.bl-boundlearn-home #bl-sticky .bl-desktop-nav,
  body.bl-boundlearn-home #bl-hdr-row .bl-desktop-nav,
  .bl-hub-desktop-menu-actions {
    gap:16px!important;
  }

  .bl-source-boundlearn-header:not(.bl-unified-header) .bl-hub-desktop-action,
  body.bl-boundlearn-home #bl-sticky .bl-hub-desktop-action,
  body.bl-boundlearn-home #bl-hdr-row .bl-hub-desktop-action,
  .bl-hub-desktop-menu .bl-hub-desktop-action {
    min-height:52px!important;
    font-size:13px!important;
  }

  .bl-source-boundlearn-header:not(.bl-unified-header) .bl-hub-desktop-apply,
  body.bl-boundlearn-home #bl-sticky .bl-hub-desktop-apply,
  body.bl-boundlearn-home #bl-hdr-row .bl-hub-desktop-apply,
  .bl-hub-desktop-menu .bl-hub-desktop-apply {
    min-width:120px!important;
  }

  .bl-source-boundlearn-header:not(.bl-unified-header) .bl-hub-desktop-trigger,
  .bl-hub-desktop-menu .bl-hub-desktop-trigger {
    min-width:140px!important;
  }

  body.bl-boundlearn-home #bl-sticky .bl-hub-desktop-trigger,
  body.bl-boundlearn-home #bl-hdr-row .bl-hub-desktop-trigger {
    min-width:120px!important;
  }

  .bl-hub-desktop-menu .bl-hub-desktop-close {
    min-width:140px!important;
    min-height:52px!important;
    font-size:13px!important;
  }

  .bl-boundlearn-footer {
    padding-top:84px!important;
    padding-bottom:54px!important;
  }

  .bl-boundlearn-footer__inner {
    max-width:1520px!important;
  }

  .bl-boundlearn-footer__grid {
    column-gap:80px!important;
    padding-bottom:50px!important;
  }
}
