/*
 * Shared HSA navigation layer.
 * This normalizes mobile and tablet navigation without changing page content.
 */
.hsa-shared-boundlearn-menu,
.hsa-shared-program-menu,
.hsa-shared-program-actions,
.hsa-shared-tutor-dots {
  display: none;
}

/* Phone landscape: keep the ecosystem and HSA navigation as two explicit rows. */
@media (orientation: landscape) and (min-width: 601px) and (max-width: 950px) and (max-height: 500px) {
  html body.hsa-shared-page .bl-tier1 {
    position: relative !important;
    inset: auto !important;
    display: flex !important;
    width: 100% !important;
    min-height: 50px !important;
    margin: 0 !important;
    box-sizing: border-box !important;
    flex: 0 0 auto !important;
    transform: none !important;
  }

  html body.hsa-shared-page .hsa-shared-program-header {
    position: sticky !important;
    top: 0 !important;
    right: auto !important;
    left: auto !important;
    display: block !important;
    width: 100% !important;
    height: 54px !important;
    min-height: 54px !important;
    margin: 0 !important;
    box-sizing: border-box !important;
    clear: both !important;
    flex: 0 0 auto !important;
    transform: none !important;
  }

  html body.hsa-shared-page .hsa-shared-program-header > .hsa-pad {
    display: flex !important;
    width: 100% !important;
    min-height: 54px !important;
    margin: 0 !important;
    box-sizing: border-box !important;
  }

  html body.hsa-shared-page.hsa-mobile-header-docked .hsa-shared-program-header {
    right: 0 !important;
    left: 0 !important;
  }
}

@media (max-width: 1180px) {
  .hsa-shared-page .bl-tier1 {
    min-height: 66px;
    padding: 11px 20px !important;
  }

  .hsa-shared-page .bl-tier1 .bl-bar-nav {
    display: none !important;
  }

  .hsa-shared-page .bl-tier1 > .hsa-burger {
    display: inline-flex !important;
    width: 44px;
    height: 44px;
    margin-left: auto;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(212, 175, 55, .32);
    border-radius: 9px;
    background: transparent;
    color: #e2e8f0;
    cursor: pointer;
  }

  .hsa-shared-page .bl-tier1 > .bl-mnav,
  .hsa-shared-page .bl-tier1 > .bl-mnav-legacy,
  .hsa-shared-page .bl-tier1 > .bl-mnav-mobile-unified {
    display: none !important;
  }

  .hsa-shared-page #hsa-toggle:checked ~ .hsa-shared-boundlearn-menu {
    display: flex;
  }

  .hsa-shared-boundlearn-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 16px;
    z-index: 260;
    width: min(360px, calc(100vw - 32px));
    max-height: calc(100svh - 90px);
    overflow-y: auto;
    flex-direction: column;
    padding: 22px 24px 24px;
    border: 1px solid rgba(212, 175, 55, .22);
    border-radius: 14px;
    background: #0b1221;
    box-shadow: 0 24px 52px rgba(0, 0, 0, .42);
    font-family: "Manrope", "Helvetica Neue", Arial, sans-serif;
  }

  .hsa-shared-boundlearn-menu > a,
  .hsa-shared-boundlearn-menu > details > summary {
    display: flex;
    min-height: 52px;
    align-items: center;
    padding: 12px 4px;
    border-bottom: 1px solid rgba(255, 255, 255, .12);
    color: #f2f5fa;
    font-family: "Cinzel", Georgia, serif;
    font-size: 17px;
    font-weight: 600;
    letter-spacing: 0;
    text-decoration: none;
  }

  .hsa-shared-boundlearn-menu > details > summary {
    justify-content: space-between;
    cursor: pointer;
    list-style: none;
  }

  .hsa-shared-boundlearn-menu > details > summary::-webkit-details-marker {
    display: none;
  }

  .hsa-shared-boundlearn-menu > details a {
    display: flex;
    min-height: 42px;
    align-items: center;
    padding: 9px 4px 9px 16px;
    color: #cbd5e1;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
  }

  .hsa-shared-boundlearn-menu .hsa-shared-apply {
    min-height: 54px;
    justify-content: center;
    margin-top: 20px;
    border: 0;
    border-radius: 8px;
    background: #d4af37;
    color: #0b1221;
    font-family: "Manrope", "Helvetica Neue", Arial, sans-serif;
    font-size: 15px;
    font-weight: 800;
  }

  .hsa-shared-page .hsa-subnav-links {
    display: none !important;
  }

  .hsa-shared-program-menu {
    display: block;
    position: relative;
    z-index: 250;
    margin-left: auto;
  }

  .hsa-shared-program-menu > summary {
    display: flex;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(165, 28, 48, .25);
    border-radius: 9px;
    background: rgba(255, 255, 255, .92);
    color: #6e1220;
    cursor: pointer;
    list-style: none;
    box-shadow: 0 4px 16px rgba(17, 12, 8, .08);
  }

  .hsa-shared-program-menu > summary::-webkit-details-marker {
    display: none;
  }

  .hsa-shared-program-menu[open] > summary svg {
    display: none;
  }

  .hsa-shared-program-menu[open] > summary::before {
    content: "\00d7";
    font-size: 28px;
    line-height: 1;
  }

  .hsa-shared-program-panel {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: min(360px, calc(100vw - 32px));
    max-height: calc(100svh - 148px);
    overflow-y: auto;
    padding: 16px 20px 22px;
    border: 1px solid #e7e0d2;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 24px 48px rgba(17, 12, 8, .22);
    color: #211c17;
    text-align: left;
  }

  .hsa-shared-program-brand {
    display: flex;
    min-height: 58px;
    align-items: center;
    padding: 2px 0 10px;
    border-bottom: 1px solid #f0ebdf;
  }

  .hsa-shared-program-brand img {
    display: block;
    width: auto;
    height: 38px;
    max-width: 150px;
    object-fit: contain;
  }

  .hsa-shared-program-panel > a:not(.hsa-shared-program-brand),
  .hsa-shared-program-panel > details > summary {
    display: flex;
    min-height: 48px;
    align-items: center;
    padding: 12px 4px;
    border-bottom: 1px solid #f0ebdf;
    color: #211c17;
    font-size: 15px;
    font-weight: 650;
    text-decoration: none;
  }

  .hsa-shared-program-panel > details > summary {
    justify-content: space-between;
    cursor: pointer;
    list-style: none;
  }

  .hsa-shared-program-panel > details > summary::-webkit-details-marker {
    display: none;
  }

  .hsa-shared-program-panel > details a {
    display: flex;
    min-height: 40px;
    align-items: center;
    padding: 8px 4px 8px 16px;
    color: #514a40;
    font-size: 13.5px;
    font-weight: 550;
    text-decoration: none;
  }
}

@media (max-width: 600px) {
  .hsa-shared-overlay-header + #top {
    align-items: flex-start !important;
    height: auto !important;
    min-height: calc(100svh - 66px) !important;
  }

  .hsa-shared-overlay-header + #top > .hsa-pad {
    padding-top: 138px !important;
  }

  .hsa-shared-boundlearn-menu,
  .hsa-shared-program-panel {
    right: 0;
    width: min(342px, calc(100vw - 32px));
  }

  .hsa-shared-program-actions {
    display: block;
  }

  .hsa-shared-program-actions > .hsa-shared-program-contact {
    display: flex;
    min-height: 48px;
    align-items: center;
    padding: 12px 4px;
    border-bottom: 1px solid #f0ebdf;
    color: #211c17;
    font-size: 15px;
    font-weight: 650;
  }

  .hsa-shared-program-actions > .hsa-shared-program-apply {
    display: flex;
    min-height: 52px;
    justify-content: center;
    margin-top: 16px;
    padding: 13px 20px;
    border: 0;
    border-radius: 9px;
    background: #a51c30;
    color: #fff !important;
    font-size: 15px;
    font-weight: 750;
  }
}

@media (min-width: 601px) and (max-width: 1180px) {
  .hsa-shared-program-actions {
    display: none !important;
  }
}

/* HSA tablet system: portrait and landscape are intentionally separate gates. */
@media (min-width: 601px) and (max-width: 1180px) {
  .hsa-shared-page .bl-tier1 #hsa-toggle:checked ~ .bl-mnav,
  .hsa-shared-page .bl-tier1 #hsa-toggle:checked ~ .bl-mnav-legacy,
  .hsa-shared-page .bl-tier1 #hsa-toggle:checked ~ .bl-mnav-mobile-unified,
  .hsa-shared-page .hsa-aca-menu,
  .hsa-shared-page .hsa-program-mobile-menu,
  .hsa-shared-page .hsa-about-program-menu {
    display: none !important;
  }
}

@media (max-width: 600px) and (orientation: portrait) {
  .hsa-page-overview #spotlight > .spot-prev,
  .hsa-page-overview #spotlight > .spot-next {
    display: none !important;
  }

  .hsa-page-tutoring .ths-hero {
    height: auto !important;
    min-height: calc(100svh - 132px) !important;
    max-height: none !important;
  }

  .hsa-page-tutoring .ths-hero > img:first-child {
    top: 18px !important;
    left: 18px !important;
    width: auto !important;
    max-width: 132px !important;
    height: 28px !important;
  }

  .hsa-page-tutoring .ths-hero .ths-wrap {
    width: 100% !important;
    padding-right: 0 !important;
  }

  .hsa-page-tutoring .ths-hero .ths-text {
    max-width: 100% !important;
    padding: 74px 18px 272px !important;
  }

  .hsa-page-tutoring .ths-hero .ths-text > div:first-child {
    font-size: 12px !important;
  }

  .hsa-page-tutoring .ths-hero .ths-text > h1 {
    margin-top: 10px !important;
    font-size: clamp(34px, 10.5vw, 44px) !important;
    line-height: .94 !important;
    letter-spacing: -.025em !important;
  }

  .hsa-page-tutoring .ths-hero .ths-text > p {
    max-width: 31em !important;
    margin-top: 14px !important;
    font-size: 14px !important;
    line-height: 1.42 !important;
  }

  .hsa-page-tutoring .ths-hero .ths-text > a {
    min-height: 46px !important;
    max-width: calc(100vw - 36px);
    margin-top: 18px !important;
    padding: 12px 26px !important;
    font-size: 14px !important;
  }

  .hsa-page-tutoring .ths-hero .ths-student {
    right: -5% !important;
    bottom: 0 !important;
    width: auto !important;
    height: 41% !important;
    max-width: 76% !important;
  }

  .hsa-page-academies #top {
    padding-top: 16px !important;
  }

  .hsa-page-academies #top > .hsa-pad {
    padding-right: 18px !important;
    padding-left: 18px !important;
  }

  .hsa-page-academies #top > .hsa-pad > div {
    min-height: 500px !important;
  }

  .hsa-page-academies #top [data-rv] {
    width: 100%;
    max-width: 100% !important;
    padding: 42px 18px !important;
  }

  .hsa-page-academies #top .hsa-shared-academies-logo {
    width: min(290px, 100%) !important;
    max-width: 100% !important;
  }

  .hsa-page-testing .hsa-shared-tutor-grid {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 12px !important;
  }

  .hsa-page-testing .hsa-shared-tutor-grid > .tflip {
    min-width: 0;
    height: 250px !important;
  }

  .hsa-page-testing .hsa-shared-tutor-grid .tflip-face {
    padding: 14px 9px !important;
  }

  .hsa-page-testing .hsa-shared-tutor-grid .tflip-face > div[style*="width:100px"] {
    width: 66px !important;
    height: 66px !important;
  }

  .hsa-page-testing .hsa-shared-tutor-grid .tflip-face > h3 {
    margin-top: 10px !important;
    font-size: 18px !important;
  }

  .hsa-page-testing .hsa-shared-tutor-grid .tflip-face > div[style*="display:flex"] {
    gap: 4px !important;
    margin-top: 9px !important;
  }

  .hsa-page-testing .hsa-shared-tutor-grid .tflip-face span {
    padding: 3px 6px !important;
    font-size: 8.5px !important;
  }

  .hsa-page-testing .hsa-shared-tutor-grid .tflip-back > div {
    margin-bottom: 8px !important;
    font-size: 15px !important;
  }

  .hsa-page-testing .hsa-shared-tutor-grid .tflip-back > p {
    font-size: 10.5px !important;
    line-height: 1.4 !important;
  }

  .hsa-shared-tutor-dots {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    margin-top: 22px;
  }

  .hsa-shared-tutor-dot {
    width: 9px;
    height: 9px;
    padding: 0;
    border: 1px solid #a51c30;
    border-radius: 50%;
    background: transparent;
    cursor: pointer;
  }

  .hsa-shared-tutor-dot[aria-current="true"] {
    background: #a51c30;
  }

  .hsa-shared-page #top.hsa-shared-main-hero {
    height: calc(100svh - 95px) !important;
    min-height: calc(100svh - 95px) !important;
    max-height: none !important;
  }

  .hsa-shared-page .hsa-shared-main-hero-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: calc(100svh - 95px);
    padding-top: 126px !important;
    padding-bottom: 18px !important;
  }

  .hsa-shared-page .hsa-shared-main-hero-content > .hsa-h1 {
    font-size: clamp(35px, 10.25vw, 42px) !important;
    line-height: 1.01 !important;
  }

  .hsa-shared-page .hsa-shared-main-hero-content > p {
    max-width: 34em !important;
    margin-top: 14px !important;
    font-size: clamp(13px, 3.55vw, 15px) !important;
    line-height: 1.45 !important;
  }

  .hsa-shared-page .hsa-shared-main-hero-stats {
    order: 3;
    display: grid !important;
    width: 100%;
    grid-template-columns: minmax(0, 1fr) 1px minmax(0, 1fr) 1px minmax(0, 1fr);
    align-items: center;
    gap: 0 !important;
    margin-top: 18px !important;
  }

  .hsa-shared-page .hsa-shared-main-hero-stats > div:nth-child(odd) {
    min-width: 0;
    padding: 0 5px;
  }

  .hsa-shared-page .hsa-shared-main-hero-stats > div:nth-child(odd) > div:first-child {
    font-size: clamp(24px, 7vw, 30px) !important;
  }

  .hsa-shared-page .hsa-shared-main-hero-stats > div:nth-child(odd) > div:last-child {
    margin-top: 5px !important;
    font-size: clamp(9px, 2.45vw, 10.5px) !important;
    line-height: 1.25 !important;
  }

  .hsa-shared-page .hsa-shared-main-hero-stats > div:nth-child(even) {
    width: 1px !important;
    height: 38px !important;
    justify-self: center;
    margin-left: -1px;
  }

  .hsa-shared-page .hsa-shared-main-hero-cta {
    order: 4;
    margin-top: 18px !important;
  }

  .hsa-shared-page .hsa-shared-main-hero-cta > a {
    min-height: 46px;
    padding: 12px 28px !important;
    font-size: 14px !important;
  }

  .hsa-shared-page .hsa-shared-main-marquee {
    min-height: 52px;
    padding: 12px 0 !important;
  }

  .hsa-shared-page .hsa-shared-main-marquee [data-marq] {
    font-size: 20px !important;
  }

  .hsa-shared-page .hsa-shared-footer-grid {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 32px 22px !important;
  }

  .hsa-shared-page .hsa-shared-footer-brand {
    grid-column: 1 / -1;
  }

  .hsa-shared-page .hsa-shared-footer-brand {
    align-items: center !important;
    text-align: center !important;
  }

  .hsa-shared-page .hsa-shared-footer-brand > div {
    justify-content: center !important;
  }

  .hsa-shared-page .hsa-shared-footer-boundlearn,
  .hsa-shared-page .hsa-shared-footer-hsa {
    min-width: 0;
    text-align: left;
  }

  .hsa-shared-page .hsa-shared-footer-programs {
    grid-column: 1 / -1;
    text-align: left;
  }

  .hsa-shared-page .hsa-shared-footer-program-links {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px 20px !important;
  }

  .hsa-shared-page .hsa-shared-footer-program-links > a {
    min-width: 0;
    font-size: 12px !important;
    line-height: 1.35;
  }

  .hsa-shared-page .hsa-shared-footer-program-links > [data-hsa-footer-overview] {
    color: #cbd5e1 !important;
  }
}

@media (orientation: landscape) and (min-width: 601px) and (max-width: 950px) and (max-height: 500px) {
  .hsa-shared-page .bl-tier1 {
    position: relative !important;
    top: auto !important;
    z-index: 500 !important;
    width: 100% !important;
    min-height: 50px !important;
    box-sizing: border-box !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 6px 16px !important;
    border-radius: 0 !important;
    background: #0b1221 !important;
    transform: none !important;
  }

  .hsa-shared-page .bl-tier1 > a:first-of-type img {
    width: auto !important;
    height: 20px !important;
    max-width: 160px !important;
    object-fit: contain !important;
    object-position: left center !important;
  }

  .hsa-shared-page .bl-tier1 .hsa-burger {
    display: inline-flex !important;
    width: 40px !important;
    min-width: 40px !important;
    height: 38px !important;
    min-height: 38px !important;
    flex: 0 0 40px !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
    border: 1px solid rgba(212, 175, 55, .36) !important;
    border-radius: 9px !important;
    background: transparent !important;
    color: #fff !important;
  }

  .hsa-shared-page .bl-tier1 > .bl-mnav,
  .hsa-shared-page .bl-tier1 > .bl-mnav-legacy,
  .hsa-shared-page .bl-tier1 > .bl-mnav-mobile-unified,
  .hsa-shared-page .hsa-program-mobile-menu,
  .hsa-shared-page .hsa-about-program-menu {
    display: none !important;
  }

  .hsa-shared-page #hsa-toggle:checked ~ .bl-mnav,
  .hsa-shared-page #hsa-toggle:checked ~ .bl-mnav-legacy,
  .hsa-shared-page #hsa-toggle:checked ~ .bl-mnav-mobile-unified {
    display: none !important;
  }

  .hsa-shared-page #hsa-toggle:checked ~ .hsa-shared-boundlearn-menu {
    display: flex !important;
  }

  .hsa-shared-page .hsa-shared-program-header {
    position: sticky !important;
    top: 0 !important;
    z-index: 460 !important;
    height: 54px !important;
    min-height: 54px !important;
    margin-bottom: -54px !important;
  }

  .hsa-shared-page .hsa-shared-program-header > .hsa-pad {
    min-height: 54px !important;
    padding: 7px 16px !important;
  }

  .hsa-shared-page .hsa-shared-program-header > .hsa-pad > a img {
    width: auto !important;
    height: 32px !important;
    max-width: 150px !important;
    object-fit: contain;
  }

  .hsa-page-academy-family #top {
    padding-top: 0 !important;
  }

  .hsa-page-academy-family #top > .hsa-pad {
    width: 100% !important;
    max-width: none !important;
    padding-right: 0 !important;
    padding-left: 0 !important;
  }

  .hsa-page-academy-family #top > .hsa-pad > div:first-child {
    border-radius: 0 !important;
  }

  .hsa-shared-page .hsa-shared-program-menu > summary {
    width: 40px !important;
    height: 40px !important;
  }

  .hsa-shared-boundlearn-menu {
    right: 12px !important;
    width: min(340px, calc(100vw - 28px)) !important;
    max-height: calc(100svh - 68px) !important;
    flex-direction: column !important;
    padding: 12px 20px 22px !important;
    overflow-x: hidden !important;
  }

  .hsa-shared-boundlearn-menu > a,
  .hsa-shared-boundlearn-menu > details > summary {
    min-height: 40px !important;
    padding: 8px 4px !important;
    font-size: 14px !important;
  }

  .hsa-shared-boundlearn-menu > details a {
    min-height: 31px !important;
    padding: 5px 4px 5px 12px !important;
    font-size: 11.5px !important;
  }

  .hsa-shared-boundlearn-menu .hsa-shared-apply {
    min-height: 42px !important;
    margin-top: 10px !important;
    padding: 9px 14px !important;
  }

  .hsa-shared-program-panel {
    right: 0 !important;
    width: min(420px, calc(100vw - 24px)) !important;
    max-height: calc(100svh - 122px) !important;
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 14px;
    padding: 10px 14px 12px !important;
    overflow: hidden !important;
    border-radius: 10px !important;
  }

  .hsa-shared-program-brand {
    grid-column: 1 / -1;
    min-height: 46px !important;
    padding: 0 0 8px !important;
  }

  .hsa-shared-program-brand img {
    height: 30px !important;
  }

  .hsa-shared-program-panel > a:not(.hsa-shared-program-brand),
  .hsa-shared-program-panel > details > summary {
    min-height: 40px !important;
    padding: 8px 4px !important;
    font-size: 14px !important;
  }

  .hsa-shared-program-panel > details a {
    min-height: 30px !important;
    padding: 5px 4px 5px 12px !important;
    font-size: 11.5px !important;
  }

  .hsa-shared-program-actions {
    grid-column: 1 / -1;
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 8px;
  }

  .hsa-shared-program-actions > a {
    display: flex !important;
    width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
    min-height: 40px !important;
    align-items: center;
    justify-content: center;
    margin: 0 !important;
    padding: 10px 12px !important;
    border-radius: 7px !important;
    font-family: "Manrope", "Helvetica Neue", Arial, sans-serif !important;
    font-size: 13px !important;
    font-weight: 750 !important;
    line-height: 1 !important;
    text-align: center !important;
  }

  .hsa-shared-program-actions > .hsa-shared-program-contact {
    border: 1px solid #a51c30 !important;
    background: #fff !important;
    color: #6e1220 !important;
  }

  .hsa-shared-program-actions > .hsa-shared-program-apply {
    border: 1px solid #8f1729 !important;
    background: #8f1729 !important;
    color: #fff !important;
  }

  .hsa-shared-page footer.hsa-pad {
    padding: 26px 28px 18px !important;
  }

  .hsa-shared-page footer.hsa-pad > div {
    max-width: 1180px !important;
  }

  .hsa-shared-page .hsa-shared-footer-grid {
    display: grid !important;
    grid-template-columns: minmax(220px, 1.42fr) repeat(3, minmax(112px, 1fr)) !important;
    gap: 22px !important;
    padding-bottom: 18px !important;
  }

  .hsa-shared-page .hsa-shared-footer-brand {
    grid-column: auto !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    text-align: left !important;
  }

  .hsa-shared-page .hsa-shared-footer-brand > img {
    height: 20px !important;
    margin-right: auto !important;
    margin-left: 0 !important;
  }

  .hsa-shared-page .hsa-shared-footer-brand > p,
  .hsa-shared-page .hsa-shared-footer-brand [data-bl-footer-copy] {
    max-width: 250px !important;
    margin-right: 0 !important;
    margin-left: 0 !important;
    margin-top: 8px !important;
    font-size: 11px !important;
    line-height: 1.45 !important;
    text-align: left !important;
  }

  .hsa-shared-page .hsa-shared-footer-brand > div {
    width: auto !important;
    justify-content: flex-start !important;
    margin-top: 10px !important;
  }

  .hsa-shared-page .hsa-shared-footer-boundlearn,
  .hsa-shared-page .hsa-shared-footer-hsa,
  .hsa-shared-page .hsa-shared-footer-programs {
    grid-column: auto !important;
    text-align: left !important;
  }

  .hsa-shared-page .hsa-shared-footer-grid > div:not(:first-child) > div:first-child {
    margin-bottom: 8px !important;
    font-size: 9.5px !important;
  }

  .hsa-shared-page .hsa-shared-footer-grid > div:not(:first-child) > div:last-child,
  .hsa-shared-page .hsa-shared-footer-program-links {
    display: flex !important;
    flex-direction: column !important;
    gap: 5px !important;
    font-size: 11px !important;
    line-height: 1.25 !important;
  }

  .hsa-shared-page footer .hsa-shared-footer-grid + div {
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 18px !important;
    padding-top: 14px !important;
    text-align: left !important;
  }

  .hsa-shared-page footer [data-bl-footer-slogan],
  .hsa-shared-page footer [data-bl-footer-copyright] {
    width: auto !important;
    font-size: 10.5px !important;
  }

  .hsa-shared-page .hsa-shared-footer-program-links > [data-hsa-footer-overview] {
    color: #cbd5e1 !important;
  }
}

@media (min-width: 601px) and (max-width: 1180px) {
  .hsa-shared-page footer [data-hsa-footer-overview] {
    color: #cbd5e1 !important;
  }

  .hsa-page-testing .hsa-shared-tutor-grid {
    display: grid !important;
    grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
    gap: 16px !important;
  }

  .hsa-page-testing .hsa-shared-tutor-grid > .tflip:not([hidden]) {
    grid-column: span 2;
    width: 100% !important;
    min-width: 0 !important;
    height: 310px !important;
  }

  .hsa-page-testing .hsa-shared-tutor-grid .tflip-inner,
  .hsa-page-testing .hsa-shared-tutor-grid .tflip-face {
    width: 100% !important;
    height: 100% !important;
    box-sizing: border-box !important;
  }

  .hsa-page-testing .hsa-shared-tutor-grid[data-hsa-tutor-last-page="true"] >
    .tflip[data-hsa-visible-position="1"]:not([hidden]) {
    grid-column: 2 / span 2;
  }

  .hsa-page-testing .hsa-shared-tutor-dots {
    display: flex !important;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 24px;
  }

  .hsa-page-testing .hsa-shared-tutor-dot {
    width: 10px !important;
    height: 10px !important;
    padding: 0 !important;
    border: 1px solid #a51c30 !important;
    border-radius: 999px !important;
    background: transparent !important;
  }

  .hsa-page-testing .hsa-shared-tutor-dot[aria-current="true"] {
    background: #a51c30 !important;
  }

  .hsa-tablet-program-cards .ths-svc-grid > a {
    height: 480px !important;
  }

  .hsa-tablet-program-cards .ths-svc-grid > a > div:last-child {
    height: 290px !important;
    padding: 0 22px 24px !important;
    text-align: left !important;
  }

  .hsa-tablet-program-cards .ths-svc-grid > a > div:last-child > h3 {
    display: flex;
    height: 84px;
    min-height: 84px;
    align-items: flex-end;
    margin: 0 !important;
    font-size: 24px !important;
    line-height: 1.08 !important;
  }

  .hsa-tablet-program-cards .ths-svc-grid > a > div:last-child > p {
    height: 92px;
    min-height: 92px;
    margin-top: 12px !important;
  }

  .hsa-tablet-program-cards .ths-svc-grid > a > div:last-child > span {
    margin-top: 14px !important;
  }

  .hsa-shared-page footer .hsa-shared-footer-grid a,
  .hsa-shared-page footer .hsa-shared-footer-program-links a {
    color: #cbd5e1 !important;
  }

  .hsa-shared-page footer .hsa-shared-footer-grid a:hover,
  .hsa-shared-page footer .hsa-shared-footer-program-links a:hover {
    color: #d4af37 !important;
  }
}

@media (min-width: 951px) and (max-width: 1180px) and (orientation: landscape) {
  .hsa-shared-program-actions {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 14px;
  }

  .hsa-shared-program-actions > a {
    display: flex !important;
    min-height: 46px !important;
    align-items: center;
    justify-content: center;
    margin: 0 !important;
    padding: 11px 14px !important;
    border-radius: 8px !important;
    font-family: "Manrope", "Helvetica Neue", Arial, sans-serif !important;
    font-size: 14px !important;
    font-weight: 750 !important;
    line-height: 1 !important;
    text-align: center !important;
  }

  .hsa-shared-program-actions > .hsa-shared-program-contact {
    border: 1px solid #a51c30 !important;
    background: #fff !important;
    color: #6e1220 !important;
  }

  .hsa-shared-program-actions > .hsa-shared-program-apply {
    border: 1px solid #8f1729 !important;
    background: #8f1729 !important;
    color: #fff !important;
  }
}

.hsa-tablet-schedule-cta {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  margin-top: 24px;
  padding: 13px 28px;
  border-radius: 8px;
  background: #a51c30;
  color: #fff;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
}

@media (min-width: 601px) and (max-width: 900px) and (orientation: portrait) {
  .hsa-shared-page .bl-tier1 {
    position: sticky !important;
    top: 0 !important;
    z-index: 500 !important;
    padding-right: 24px !important;
    padding-left: 24px !important;
  }

  .hsa-shared-page .hsa-shared-program-header {
    position: sticky !important;
    top: 66px !important;
    z-index: 460 !important;
    width: 100% !important;
    min-height: 68px !important;
    margin-bottom: 0 !important;
    border-bottom: 1px solid #e7e0d2 !important;
    background: #fff !important;
    transform: none !important;
  }

  .hsa-shared-page .hsa-shared-program-header > .hsa-pad {
    min-height: 68px !important;
    padding: 10px 24px !important;
  }

  .hsa-shared-page .hsa-shared-program-menu > summary {
    width: 44px !important;
    height: 44px !important;
  }

  .hsa-shared-page .bl-tier1 > .hsa-burger,
  .hsa-shared-page .hsa-shared-program-menu {
    align-self: center !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
  }

  .hsa-shared-page .hsa-shared-program-header > .hsa-pad > a img {
    width: auto !important;
    height: 42px !important;
    max-width: 104px !important;
    object-fit: contain !important;
  }

  .hsa-shared-boundlearn-menu,
  .hsa-shared-program-panel {
    right: 0 !important;
    width: min(390px, calc(100vw - 40px)) !important;
    max-height: calc(100svh - 152px) !important;
  }

  .hsa-shared-program-panel {
    padding: 16px 20px 20px !important;
  }

  .hsa-shared-program-actions {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 14px;
  }

  .hsa-shared-program-actions > a {
    display: flex !important;
    min-height: 46px !important;
    align-items: center;
    justify-content: center;
    margin: 0 !important;
    padding: 11px 14px !important;
    border-radius: 8px !important;
    font-family: "Manrope", "Helvetica Neue", Arial, sans-serif !important;
    font-size: 14px !important;
    font-weight: 750 !important;
    line-height: 1 !important;
    text-align: center !important;
  }

  .hsa-shared-program-actions > .hsa-shared-program-contact {
    border: 1px solid #a51c30 !important;
    background: #fff !important;
    color: #6e1220 !important;
  }

  .hsa-shared-program-actions > .hsa-shared-program-apply {
    border: 1px solid #8f1729 !important;
    background: #8f1729 !important;
    color: #fff !important;
  }

  .hsa-page-overview #top.hsa-shared-main-hero {
    height: calc(100svh - 186px) !important;
    min-height: 720px !important;
    max-height: none !important;
  }

  .hsa-page-overview .hsa-shared-main-hero-content {
    display: flex !important;
    min-height: 100% !important;
    flex-direction: column;
    justify-content: center;
    padding-top: 74px !important;
    padding-bottom: 34px !important;
  }

  .hsa-page-overview .hsa-shared-main-hero-content > .hsa-h1 {
    max-width: 720px;
    font-size: clamp(52px, 8vw, 68px) !important;
    line-height: .96 !important;
  }

  .hsa-page-overview .hsa-shared-main-hero-content > p {
    max-width: 36em !important;
    font-size: 16px !important;
    line-height: 1.5 !important;
  }

  .hsa-page-overview .hsa-shared-main-hero-stats {
    order: 3;
    display: grid !important;
    width: min(620px, 100%) !important;
    grid-template-columns: minmax(0, 1fr) 1px minmax(0, 1fr) 1px minmax(0, 1fr);
    align-items: center;
    gap: 0 !important;
    margin-right: auto !important;
    margin-left: auto !important;
    margin-top: 26px !important;
  }

  .hsa-page-overview .hsa-shared-main-hero-stats > div:nth-child(odd) {
    min-width: 0;
    padding: 0 12px;
    text-align: center;
  }

  .hsa-page-overview .hsa-shared-main-hero-stats > div:nth-child(even) {
    width: 1px !important;
    height: 46px !important;
    margin: 0 !important;
    background: rgba(255, 255, 255, .32) !important;
  }

  .hsa-page-overview .hsa-shared-main-hero-cta {
    order: 4;
    margin-top: 24px !important;
  }

  .hsa-page-overview .hsa-shared-main-marquee {
    min-height: 52px !important;
    padding: 12px 0 !important;
  }

  .hsa-page-overview #spotlight > .spot-prev,
  .hsa-page-overview #spotlight > .spot-next {
    display: none !important;
  }

  .hsa-page-tutoring .ths-hero {
    height: calc(100svh - 134px) !important;
    min-height: 720px !important;
    max-height: none !important;
  }

  .hsa-page-tutoring .ths-hero .ths-wrap {
    width: 100% !important;
    padding-right: 0 !important;
  }

  .hsa-page-tutoring .ths-hero .ths-text {
    width: 58% !important;
    max-width: 58% !important;
    padding: 104px 18px 74px 42px !important;
    text-align: left !important;
  }

  .hsa-page-tutoring .ths-hero .ths-text > h1 {
    font-size: clamp(46px, 6.8vw, 60px) !important;
    line-height: .98 !important;
  }

  .hsa-page-tutoring .ths-hero .ths-text > p {
    max-width: 31em !important;
    font-size: 14.5px !important;
    line-height: 1.48 !important;
  }

  .hsa-page-tutoring .ths-hero .ths-student {
    right: -8% !important;
    bottom: 0 !important;
    width: auto !important;
    height: 72% !important;
    max-width: 57% !important;
    object-fit: contain !important;
    object-position: right bottom !important;
  }

  .hsa-tablet-three-steps .ths-svc-grid,
  .hsa-tablet-results-grid .ths-svc-grid,
  .hsa-tablet-main-steps .hsa-feat-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 20px !important;
  }

  .hsa-tablet-program-cards .ths-svc-grid,
  .hsa-tablet-hosted-grid .ths-svc-grid,
  .hsa-tablet-center-third .ths-svc-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 22px !important;
  }

  .hsa-tablet-program-cards .ths-svc-grid > :last-child,
  .hsa-tablet-hosted-grid .ths-svc-grid > :last-child,
  .hsa-tablet-center-third .ths-svc-grid > :last-child {
    grid-column: 1 / -1;
    width: calc(50% - 11px);
    justify-self: center;
  }

  .hsa-page-overview #academies .hsa-two-col {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 22px !important;
  }

  .hsa-page-overview #academies .hsa-two-col > div {
    min-height: 430px !important;
    padding: 26px !important;
  }

  .hsa-page-academies .hsa-tablet-location-grid .aca-loc-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 20px !important;
  }

  .hsa-page-testing .hsa-shared-tutor-grid {
    display: grid !important;
    grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
    gap: 16px !important;
  }

  .hsa-page-testing .hsa-shared-tutor-grid > .tflip {
    grid-column: span 2;
    min-width: 0;
    height: 310px !important;
    align-self: stretch !important;
  }

  .hsa-page-testing .hsa-shared-tutor-grid .tflip-inner,
  .hsa-page-testing .hsa-shared-tutor-grid .tflip-face {
    width: 100% !important;
    height: 100% !important;
  }

  .hsa-page-testing .hsa-shared-tutor-grid .tflip-face > div[style*="width:100px"] {
    width: 76px !important;
    height: 76px !important;
  }

  .hsa-page-testing .hsa-shared-tutor-dots {
    display: flex !important;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 24px;
  }

  .hsa-page-testing .hsa-shared-tutor-dot {
    width: 10px !important;
    height: 10px !important;
    padding: 0 !important;
    border: 1px solid #a51c30 !important;
    border-radius: 999px !important;
    background: transparent !important;
    cursor: pointer;
  }

  .hsa-page-testing .hsa-shared-tutor-dot[aria-current="true"] {
    background: #a51c30 !important;
  }

  .hsa-page-sat-academy .hsa-tablet-sat-expect > .hsa-pad > div:last-child {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 22px !important;
  }

  .hsa-page-sat-academy .hsa-tablet-sat-expect .sp-two {
    display: grid !important;
    grid-template-columns: 1fr !important;
    align-content: start !important;
    gap: 18px !important;
    padding: 18px !important;
    border-radius: 18px !important;
    background: #fff !important;
  }

  .hsa-page-sat-academy .hsa-tablet-sat-expect .sp-two > div:first-child img {
    height: 190px !important;
    object-fit: cover !important;
  }

  .hsa-page-sat-academy .hsa-tablet-sat-expect .sp-two:last-child {
    grid-column: 1 / -1;
    width: calc(50% - 11px);
    justify-self: center;
  }

  .hsa-tablet-media-row > .hsa-pad {
    display: grid !important;
    grid-template-columns: minmax(0, 1.08fr) minmax(250px, .92fr) !important;
    align-items: center !important;
    gap: 30px !important;
    padding-right: 34px !important;
    padding-left: 34px !important;
  }

  .hsa-tablet-media-row > .hsa-pad > div:has(h2) {
    align-self: center !important;
  }

  .hsa-tablet-media-row > .hsa-pad > div:has(h2) h2 {
    font-size: clamp(31px, 4.5vw, 38px) !important;
  }

  .hsa-tablet-media-row > .hsa-pad > div:has(h2) p {
    font-size: 14px !important;
    line-height: 1.55 !important;
  }

  .hsa-tablet-media-row > .hsa-pad > div:has(img) img {
    width: 100% !important;
    height: 330px !important;
    max-height: 330px !important;
    object-fit: cover !important;
    border-radius: 16px !important;
  }

  .hsa-tablet-media-text-left > .hsa-pad > div:has(h2) {
    order: 1;
  }

  .hsa-tablet-media-text-left > .hsa-pad > div:has(img) {
    order: 2;
  }

  .hsa-tablet-media-text-right > .hsa-pad > div:has(img) {
    order: 1;
  }

  .hsa-tablet-media-text-right > .hsa-pad > div:has(h2) {
    order: 2;
  }

  .hsa-page-crimson-coaching .hsa-tablet-schedule-grid .sched-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .hsa-page-crimson-coaching .hsa-tablet-schedule-grid .sched-grid > :last-child {
    grid-column: 1 / -1;
    width: calc(50% - 8px);
    justify-self: center;
  }

  .hsa-shared-page footer.hsa-pad {
    padding: 48px 34px 28px !important;
  }

  .hsa-shared-page .hsa-shared-footer-grid {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 34px 28px !important;
    padding-bottom: 22px !important;
  }

  .hsa-shared-page .hsa-shared-footer-brand {
    grid-column: 1 / -1 !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
  }

  .hsa-shared-page .hsa-shared-footer-brand > img {
    height: 24px !important;
    margin: 0 auto !important;
  }

  .hsa-shared-page .hsa-shared-footer-brand > p,
  .hsa-shared-page .hsa-shared-footer-brand [data-bl-footer-copy] {
    max-width: 480px !important;
    margin: 12px auto 0 !important;
    font-size: 12.5px !important;
    line-height: 1.55 !important;
    text-align: center !important;
  }

  .hsa-shared-page .hsa-shared-footer-brand > div {
    width: auto !important;
    justify-content: center !important;
    margin: 14px auto 0 !important;
  }

  .hsa-shared-page .hsa-shared-footer-boundlearn,
  .hsa-shared-page .hsa-shared-footer-hsa,
  .hsa-shared-page .hsa-shared-footer-programs {
    grid-column: auto !important;
    text-align: left !important;
  }

  .hsa-shared-page .hsa-shared-footer-grid > div:not(:first-child) > div:first-child {
    margin-bottom: 10px !important;
    font-size: 10px !important;
  }

  .hsa-shared-page .hsa-shared-footer-grid > div:not(:first-child) > div:last-child,
  .hsa-shared-page .hsa-shared-footer-program-links {
    display: flex !important;
    flex-direction: column !important;
    gap: 7px !important;
    font-size: 11.5px !important;
    line-height: 1.3 !important;
  }

  .hsa-shared-page footer .hsa-shared-footer-grid + div {
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 7px !important;
    padding-top: 16px !important;
    text-align: center !important;
  }
}

@media (min-width: 901px) and (max-width: 1180px) and (orientation: landscape) {
  .hsa-shared-page .bl-tier1 {
    position: sticky !important;
    top: 0 !important;
    z-index: 500 !important;
    min-height: 62px !important;
    padding: 9px 24px !important;
    transform: none !important;
  }

  .hsa-shared-page .hsa-shared-program-header {
    position: sticky !important;
    top: 62px !important;
    z-index: 460 !important;
    width: 100% !important;
    min-height: 62px !important;
    margin-bottom: 0 !important;
    border-bottom: 1px solid #e7e0d2 !important;
    background: #fff !important;
    transform: none !important;
  }

  .hsa-shared-page .hsa-shared-program-header > .hsa-pad {
    min-height: 62px !important;
    padding: 9px 24px !important;
  }

  .hsa-shared-page .hsa-shared-program-header > .hsa-pad > a img {
    width: auto !important;
    height: 38px !important;
    max-width: 96px !important;
    object-fit: contain !important;
  }

  .hsa-page-overview #spotlight > .spot-prev,
  .hsa-page-overview #spotlight > .spot-next {
    display: none !important;
  }

  .hsa-shared-page footer.hsa-pad {
    padding: 34px 36px 22px !important;
  }

  .hsa-shared-page .hsa-shared-footer-grid {
    display: grid !important;
    grid-template-columns: minmax(230px, 1.45fr) repeat(3, minmax(120px, 1fr)) !important;
    gap: 24px !important;
    padding-bottom: 18px !important;
  }

  .hsa-shared-page .hsa-shared-footer-brand {
    grid-column: auto !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    text-align: left !important;
  }

  .hsa-shared-page .hsa-shared-footer-brand > img {
    height: 22px !important;
    margin: 0 !important;
  }

  .hsa-shared-page .hsa-shared-footer-brand > p,
  .hsa-shared-page .hsa-shared-footer-brand [data-bl-footer-copy] {
    max-width: 260px !important;
    margin: 10px 0 0 !important;
    font-size: 11.5px !important;
    line-height: 1.5 !important;
    text-align: left !important;
  }

  .hsa-shared-page .hsa-shared-footer-brand > div {
    width: auto !important;
    justify-content: flex-start !important;
    margin: 12px 0 0 !important;
  }

  .hsa-shared-page .hsa-shared-footer-boundlearn,
  .hsa-shared-page .hsa-shared-footer-hsa,
  .hsa-shared-page .hsa-shared-footer-programs {
    grid-column: auto !important;
    text-align: left !important;
  }
}

/*
  Wide monitors use the approved 1366px desktop composition as one
  proportional system. Type, cards, media, spacing, and navigation retain
  their relationships instead of shrinking inside an increasingly wide page.
*/
@media (min-width: 1600px) and (max-width: 1799px) {
  html,
  body.hsa-shared-page {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    overflow-x: hidden !important;
  }

  body.hsa-shared-page {
    min-height: var(--hsa-wide-doc-height, 100vh);
  }

  body.hsa-shared-page #dc-root {
    width: 1366px !important;
    max-width: none !important;
    margin: 0 !important;
    zoom: var(--hsa-wide-scale, 1);
  }

  body.hsa-shared-page #dc-root > .sc-host {
    width: 100% !important;
    max-width: none !important;
  }

  .hsa-shared-page .hsa-shared-program-header.hsa-wide-program-header-active,
  body.hsa-shared-page.hsa-wide-header-docked .hsa-shared-program-header {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 1366px !important;
    max-width: none !important;
    z-index: 700 !important;
    transform: none !important;
  }

  .hsa-shared-page .hsa-wide-program-header-spacer {
    display: none !important;
  }

  .hsa-shared-page .hsa-wide-program-header-spacer.is-active {
    display: block !important;
  }
}

@media (min-width: 1181px) {
  body.hsa-shared-page.hsa-wide-header-docked .hsa-shared-program-header {
    background: rgba(255, 255, 255, .98) !important;
    border-bottom: 1px solid rgba(15, 23, 42, .12) !important;
    box-shadow: 0 8px 24px rgba(15, 23, 42, .08) !important;
  }

  body.hsa-shared-page.hsa-wide-header-docked .hsa-shared-program-header .hsa-subnav-links > a,
  body.hsa-shared-page.hsa-wide-header-docked .hsa-shared-program-header .hsa-subnav-links > .bl-switch > a {
    color: #111827 !important;
    text-shadow: none !important;
  }

  .hsa-shared-page .bl-tier1.bl-unified-header {
    min-height: 62px !important;
    padding: 13px 56px !important;
    background: rgba(11, 18, 33, .97) !important;
    border-bottom: 1px solid rgba(212, 175, 55, .18) !important;
    font-family: "Manrope", "Helvetica Neue", Arial, sans-serif !important;
  }

  .hsa-shared-page .bl-tier1.bl-unified-header > a {
    display: flex !important;
    align-items: center !important;
  }

  .hsa-shared-page .bl-tier1.bl-unified-header > a img {
    width: auto !important;
    height: 22px !important;
    filter: brightness(0) invert(1) !important;
  }

  .hsa-shared-page .hsa-shared-boundlearn-desktop-nav {
    display: flex !important;
    align-items: center !important;
    gap: 30px !important;
    font-family: "Manrope", "Helvetica Neue", Arial, sans-serif !important;
    font-size: 13.5px !important;
    font-weight: 500 !important;
  }

  .hsa-shared-page .hsa-shared-boundlearn-desktop-nav > a,
  .hsa-shared-page .hsa-shared-boundlearn-desktop-nav > .bl-switch > a {
    color: #e2e8f0 !important;
    font-size: 13.5px !important;
    font-weight: 500 !important;
    line-height: 1.2 !important;
    white-space: nowrap !important;
  }

  .hsa-shared-page .hsa-shared-boundlearn-desktop-nav > .hsa-shared-boundlearn-apply {
    padding: 8px 18px !important;
    border-radius: 6px !important;
    background: #d4af37 !important;
    color: #0a0f0c !important;
    font-size: 12px !important;
    font-weight: 700 !important;
  }

  .hsa-shared-page .hsa-shared-program-header {
    position: sticky !important;
    top: 0 !important;
    z-index: 460 !important;
    transform: none !important;
  }

  .hsa-shared-page footer [data-hsa-footer-overview] {
    color: #cbd5e1 !important;
  }

  .hsa-page-about .hsa-shared-about-hero {
    height: clamp(500px, 68svh, 560px) !important;
    min-height: 500px !important;
  }

  .hsa-page-about .hsa-shared-about-hero .aca-hero-desk {
    background-position: center 42% !important;
  }

  .hsa-page-tutoring .ths-hero {
    height: calc(var(--hsa-desktop-vh, 100svh) - 128px) !important;
    min-height: 600px !important;
    max-height: none !important;
  }

  .hsa-page-tutoring .ths-hero .ths-text > h1 {
    font-size: clamp(58px, 6vw, 88px) !important;
    line-height: .92 !important;
    letter-spacing: -.035em !important;
  }

  .hsa-page-tutoring .ths-hero .ths-text > p {
    max-width: 34em !important;
    margin-top: 18px !important;
    font-size: clamp(15px, 1.15vw, 18px) !important;
    line-height: 1.48 !important;
  }

  .hsa-page-tutoring .ths-hero .ths-text > a {
    margin-top: 22px !important;
  }

  .hsa-page-overview #top.hsa-shared-main-hero {
    height: calc(var(--hsa-desktop-vh, 100svh) - 96px) !important;
    min-height: 620px !important;
    max-height: none !important;
  }

  .hsa-page-overview .hsa-shared-main-hero-content {
    display: flex !important;
    min-height: 100% !important;
    flex-direction: column;
    justify-content: center;
    padding-top: 104px !important;
    padding-bottom: 36px !important;
  }

  .hsa-page-overview .hsa-shared-main-hero-content > .hsa-h1 {
    order: 1;
    font-size: clamp(48px, 4.7vw, 64px) !important;
    line-height: 1 !important;
    letter-spacing: 0 !important;
  }

  .hsa-page-overview .hsa-shared-main-hero-content > p {
    order: 2;
    max-width: 43em !important;
    margin-top: 18px !important;
    font-size: clamp(16px, 1.3vw, 18px) !important;
    line-height: 1.5 !important;
  }

  .hsa-page-overview .hsa-shared-main-hero-stats {
    order: 3;
    margin-top: 26px !important;
  }

  .hsa-page-overview .hsa-shared-main-hero-cta {
    order: 4;
    margin-top: 24px !important;
  }

  .hsa-page-overview #spotlight > .spot-prev,
  .hsa-page-overview #spotlight > .spot-next {
    display: none !important;
  }
}

/* Phone landscape must win over the 901px tablet band at 932x430. */
@media (orientation: landscape) and (min-width: 601px) and (max-width: 950px) and (max-height: 500px) {
  html body.hsa-shared-page .bl-tier1 {
    position: relative !important;
    top: auto !important;
    width: 100% !important;
    min-height: 50px !important;
    box-sizing: border-box !important;
    padding: 6px 16px !important;
    border-radius: 0 !important;
    background: #0b1221 !important;
    transform: none !important;
  }

  html body.hsa-shared-page .bl-tier1 > a:first-of-type img {
    width: auto !important;
    height: 20px !important;
    max-width: 160px !important;
    object-fit: contain !important;
  }

  html body.hsa-shared-page .bl-tier1 .hsa-burger {
    width: 40px !important;
    min-width: 40px !important;
    height: 38px !important;
    min-height: 38px !important;
    flex: 0 0 40px !important;
    padding: 0 !important;
    border: 1px solid rgba(212, 175, 55, .36) !important;
    border-radius: 9px !important;
    background: transparent !important;
    color: #fff !important;
  }

  html body.hsa-shared-page .hsa-shared-program-header {
    top: 0 !important;
  }
}

/* HSA compact navigation uses one cream, readable programme surface. */
@media (max-width: 1180px) {
  body.hsa-shared-page .hsa-shared-program-header {
    overflow: visible !important;
  }

  body.hsa-shared-page:not(.hsa-mobile-header-docked) .hsa-shared-program-header {
    margin-bottom: 0 !important;
    border-bottom-color: #e7e0d2 !important;
    background: #f7f1e6 !important;
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
    box-shadow: 0 8px 24px rgba(17, 12, 8, .1) !important;
    color: #211c17 !important;
  }

  body.hsa-shared-page:not(.hsa-mobile-header-docked) .hsa-shared-program-header img {
    content: url("/assets/media/hsa/hsa-logo.png") !important;
    filter: none !important;
  }

  body.hsa-shared-page:not(.hsa-mobile-header-docked) .hsa-shared-program-menu > summary {
    border-color: rgba(165, 28, 48, .25) !important;
    background: rgba(255, 253, 248, .94) !important;
    color: #6e1220 !important;
    box-shadow: 0 4px 16px rgba(17, 12, 8, .08) !important;
  }

  body.hsa-shared-page .hsa-shared-program-header > .hsa-pad,
  body.hsa-shared-page .hsa-shared-program-menu {
    position: static !important;
  }

  body.hsa-shared-page .hsa-shared-program-panel {
    position: absolute !important;
    inset: calc(100% - 1px) 0 auto 0 !important;
    width: 100% !important;
    max-height: calc(100svh - 70px) !important;
    border-color: #e7e0d2 !important;
    border-radius: 0 0 12px 12px !important;
    background: #f7f1e6 !important;
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
    box-shadow: 0 18px 36px rgba(17, 12, 8, .16) !important;
    color: #211c17 !important;
    box-sizing: border-box !important;
    overflow-x: hidden !important;
  }

  body.hsa-shared-page:not(.hsa-mobile-header-docked) .hsa-shared-program-panel {
    max-height: calc(100svh - 124px) !important;
  }

  body.hsa-shared-page.hsa-mobile-header-docked .hsa-shared-program-panel {
    max-height: calc(100svh - 68px) !important;
  }

  body.hsa-shared-page .hsa-shared-program-panel > .hsa-shared-program-brand {
    display: none !important;
  }

  body.hsa-shared-page .hsa-shared-program-menu:not([open]) > .hsa-shared-program-panel {
    display: none !important;
  }

  body.hsa-shared-page .hsa-shared-program-menu[open] > .hsa-shared-program-panel {
    display: grid !important;
  }

  body.hsa-shared-page .hsa-shared-program-actions {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px !important;
    margin-top: 14px !important;
  }

  body.hsa-shared-page .hsa-shared-program-actions > a {
    display: flex !important;
    min-height: 48px !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 !important;
    padding: 11px 12px !important;
    border-radius: 8px !important;
    font-size: 14px !important;
    font-weight: 750 !important;
    line-height: 1 !important;
    text-align: center !important;
  }

  body.hsa-shared-page .bl-tier1.bl-unified-header > .bl-unified-panel {
    position: absolute !important;
    inset: calc(100% - 1px) 0 auto 0 !important;
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    border-radius: 0 0 12px 12px !important;
  }

  html body.hsa-shared-page .bl-tier1 #hsa-toggle:checked ~ #bl-mnav-hsa.hsa-shared-boundlearn-menu {
    display: flex !important;
  }

  body.hsa-shared-page:not(.hsa-mobile-header-docked) .hsa-shared-program-panel > a,
  body.hsa-shared-page:not(.hsa-mobile-header-docked) .hsa-shared-program-panel > details > summary,
  body.hsa-shared-page:not(.hsa-mobile-header-docked) .hsa-shared-program-panel > details a {
    color: #211c17 !important;
    border-color: #ded5c5 !important;
  }

  body.hsa-shared-page.hsa-mobile-header-docked .hsa-shared-program-header {
    position: sticky !important;
    top: 0 !important;
    right: auto !important;
    left: auto !important;
    width: 100% !important;
    margin: 0 !important;
    background: rgba(247, 241, 230, .98) !important;
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
    box-shadow: 0 8px 24px rgba(17, 12, 8, .1) !important;
  }

  body.hsa-shared-page.hsa-mobile-header-docked .hsa-shared-program-panel {
    border-color: #e7e0d2 !important;
    background: #f7f1e6 !important;
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
    box-shadow: 0 18px 36px rgba(17, 12, 8, .16) !important;
    color: #211c17 !important;
  }

  body.hsa-shared-page.hsa-mobile-header-docked .hsa-shared-program-panel > a,
  body.hsa-shared-page.hsa-mobile-header-docked .hsa-shared-program-panel > details > summary,
  body.hsa-shared-page.hsa-mobile-header-docked .hsa-shared-program-panel > details a {
    color: #211c17 !important;
    border-color: #ded5c5 !important;
  }

  body.hsa-shared-page .hsa-shared-program-actions > .hsa-shared-program-contact {
    border: 1px solid #a51c30 !important;
    background: #fff !important;
    color: #6e1220 !important;
  }

  body.hsa-shared-page .hsa-shared-program-actions > .hsa-shared-program-apply {
    border: 1px solid #8f1729 !important;
    background: #8f1729 !important;
    color: #fff !important;
  }
}

/* Tablet portrait keeps the programme bar in normal flow below Boundlearn. */
@media (min-width: 601px) and (max-width: 1180px) and (min-height: 501px) {
  body.hsa-shared-page .hsa-shared-program-menu {
    display: block !important;
  }

  body.hsa-shared-page:not(.hsa-mobile-header-docked) .hsa-shared-program-header {
    position: relative !important;
    top: 0 !important;
    z-index: 40 !important;
    margin-bottom: 0 !important;
    border-bottom-color: #e7e0d2 !important;
    background: #f7f1e6 !important;
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
    box-shadow: 0 8px 24px rgba(17, 12, 8, .1) !important;
  }

  body.hsa-shared-page:not(.hsa-mobile-header-docked) .hsa-shared-program-header > .hsa-pad {
    min-height: 68px !important;
    padding: 10px 24px !important;
  }

  body.hsa-shared-page:not(.hsa-mobile-header-docked) .hsa-shared-program-header img {
    content: url("/assets/media/hsa/hsa-logo.png") !important;
    width: auto !important;
    height: 38px !important;
    filter: none !important;
  }

  body.hsa-shared-page:not(.hsa-mobile-header-docked) .hsa-shared-program-menu > summary {
    border-color: rgba(165, 28, 48, .25) !important;
    background: rgba(255, 253, 248, .94) !important;
    color: #6e1220 !important;
  }
}

/* Phone landscape uses the same cream programme row at compact height. */
@media (orientation: landscape) and (max-width: 950px) and (max-height: 500px) {
  body.hsa-shared-page .hsa-shared-program-header > .hsa-pad {
    padding-right: 16px !important;
    padding-left: 16px !important;
  }

  body.hsa-shared-page:not(.hsa-mobile-header-docked) .hsa-shared-program-header {
    margin-bottom: 0 !important;
    border-bottom-color: #e7e0d2 !important;
    background: #f7f1e6 !important;
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
    box-shadow: 0 8px 24px rgba(17, 12, 8, .1) !important;
    color: #211c17 !important;
  }

  body.hsa-shared-page:not(.hsa-mobile-header-docked) .hsa-shared-program-header img {
    content: url("/assets/media/hsa/hsa-logo.png") !important;
    filter: none !important;
  }

  body.hsa-shared-page:not(.hsa-mobile-header-docked) .hsa-shared-program-menu > summary {
    border-color: rgba(165, 28, 48, .25) !important;
    background: rgba(255, 253, 248, .94) !important;
    color: #6e1220 !important;
    box-shadow: 0 4px 16px rgba(17, 12, 8, .08) !important;
  }

  body.hsa-shared-page.hsa-mobile-header-docked .hsa-shared-program-header img {
    content: url("/assets/media/hsa/hsa-logo.png") !important;
    filter: none !important;
  }
}

@media (orientation: landscape) and (max-width: 950px) and (max-height: 500px) {
  body.hsa-shared-page:not(.hsa-mobile-header-docked) .hsa-shared-program-panel {
    max-height: calc(100svh - 105px) !important;
  }

  body.hsa-shared-page.hsa-mobile-header-docked .hsa-shared-program-panel {
    max-height: calc(100svh - 55px) !important;
  }
}

/* Approved mobile portrait composition and first-screen Overview fit. */
@media (orientation: portrait) and (max-width: 600px) {
  body.hsa-page-overview #top.hsa-shared-main-hero {
    height: calc(100svh - 189px) !important;
    min-height: calc(100svh - 189px) !important;
  }

  body.hsa-page-overview .hsa-shared-main-hero-content {
    min-height: 100% !important;
    padding-top: 24px !important;
    padding-bottom: 20px !important;
  }

  body.hsa-page-tutoring .ths-hero .ths-text {
    padding: clamp(116px, calc(100svh - 705px), 207px) 18px 272px !important;
  }

  body.hsa-shared-page footer.hsa-pad {
    padding: 38px 20px 24px !important;
  }

  body.hsa-shared-page .hsa-shared-footer-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 18px 16px !important;
  }

  body.hsa-shared-page .hsa-shared-footer-brand {
    grid-column: 1 / -1 !important;
  }

  body.hsa-shared-page .hsa-shared-footer-boundlearn,
  body.hsa-shared-page .hsa-shared-footer-hsa,
  body.hsa-shared-page .hsa-shared-footer-programs {
    grid-column: auto !important;
  }

  body.hsa-shared-page .hsa-shared-footer-program-links {
    display: flex !important;
    flex-direction: column !important;
    grid-template-columns: none !important;
  }

  body.hsa-shared-page .hsa-shared-footer-brand > img {
    width: auto !important;
    height: 21px !important;
  }

  body.hsa-shared-page .hsa-shared-footer-brand > p,
  body.hsa-shared-page .hsa-shared-footer-brand [data-bl-footer-copy] {
    max-width: 330px !important;
    margin: 13px auto 0 !important;
    font-size: 12px !important;
    line-height: 18px !important;
  }

  body.hsa-shared-page .hsa-shared-footer-brand > div {
    margin-top: 14px !important;
  }

  body.hsa-shared-page .hsa-shared-footer-grid > div:not(:first-child) > div:first-child {
    margin-bottom: 9px !important;
    font-size: 9px !important;
    line-height: 1.2 !important;
  }

  body.hsa-shared-page .hsa-shared-footer-grid > div:not(:first-child) > div:last-child,
  body.hsa-shared-page .hsa-shared-footer-program-links {
    gap: 7px !important;
  }

  body.hsa-shared-page .hsa-shared-footer-grid > div:not(:first-child) a,
  body.hsa-shared-page .hsa-shared-footer-program-links > a {
    font-size: 10.5px !important;
    line-height: 1.3 !important;
  }

  body.hsa-shared-page footer .hsa-shared-footer-grid + div {
    padding-top: 17px !important;
  }
}

/* HSA's two compact navigation rows leave the remaining landscape height to the first hero. */
@media (orientation: landscape) and (min-width: 601px) and (max-width: 950px) and (max-height: 500px) {
  body.hsa-shared-page .hsa-wide-program-header-spacer + section {
    height: calc(100svh - 104px) !important;
    min-height: calc(100svh - 104px) !important;
    max-height: calc(100svh - 104px) !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  body.hsa-page-overview #top.hsa-shared-main-hero {
    height: calc(100svh - 104px) !important;
    min-height: calc(100svh - 104px) !important;
    max-height: calc(100svh - 104px) !important;
  }

  body.hsa-shared-page .hsa-wide-program-header-spacer + section:not(#top) > .hsa-pad {
    padding-top: 18px !important;
    padding-bottom: 18px !important;
  }

  body.hsa-shared-page .hsa-wide-program-header-spacer + section h1 {
    font-size: clamp(28px, 4.8vw, 42px) !important;
    line-height: 1 !important;
  }

  body.hsa-shared-page .hsa-wide-program-header-spacer + section p {
    margin-top: 10px !important;
    font-size: clamp(12px, 1.55vw, 14px) !important;
    line-height: 1.38 !important;
  }

  body.hsa-shared-page .hsa-wide-program-header-spacer + section a,
  body.hsa-shared-page .hsa-wide-program-header-spacer + section label {
    min-height: 40px !important;
    margin-top: 14px !important;
    padding: 10px 22px !important;
    font-size: 13px !important;
  }

  body.hsa-shared-page .hsa-wide-program-header-spacer + section > .hsa-pad > div[style*="margin-top:34px"] {
    gap: 10px !important;
    margin-top: 14px !important;
  }

  body.hsa-page-overview .hsa-shared-main-hero-content {
    display: grid !important;
    min-height: 100% !important;
    grid-template-columns: minmax(0, 1.35fr) minmax(238px, .65fr);
    grid-template-rows: auto auto auto;
    align-content: center;
    column-gap: 24px;
    padding: 16px 28px !important;
    text-align: left !important;
  }

  body.hsa-page-overview .hsa-shared-main-hero-content > .hsa-h1 {
    grid-column: 1;
    grid-row: 1;
    font-size: clamp(28px, 4.4vw, 40px) !important;
    line-height: .94 !important;
  }

  body.hsa-page-overview .hsa-shared-main-hero-content > p {
    grid-column: 1;
    grid-row: 2;
    max-width: 44em !important;
    margin: 8px 0 0 !important;
    font-size: clamp(11px, 1.4vw, 13px) !important;
    line-height: 1.35 !important;
  }

  body.hsa-page-overview .hsa-shared-main-hero-cta {
    grid-column: 1;
    grid-row: 3;
    justify-content: flex-start !important;
    margin-top: 12px !important;
  }

  body.hsa-page-overview .hsa-shared-main-hero-stats {
    grid-column: 2;
    grid-row: 1 / 4;
    align-self: center;
    width: 100% !important;
    margin: 0 !important;
  }

  body.hsa-page-overview .hsa-shared-main-hero-stats > div:nth-child(odd) {
    padding: 0 6px !important;
    text-align: center;
  }

  body.hsa-page-overview .hsa-shared-main-hero-stats > div:nth-child(odd) > div:first-child {
    font-size: clamp(22px, 3.5vw, 30px) !important;
  }

  body.hsa-page-overview .hsa-shared-main-hero-stats > div:nth-child(odd) > div:last-child {
    font-size: 9px !important;
    line-height: 1.2 !important;
  }

  body.hsa-page-overview .hsa-shared-main-hero-cta > a {
    min-height: 40px !important;
    margin-top: 0 !important;
    padding: 10px 22px !important;
  }

  body.hsa-page-tutoring .ths-hero-brand {
    top: 14px !important;
    left: 18px !important;
    height: 25px !important;
  }

  body.hsa-page-tutoring .ths-hero .ths-wrap {
    display: flex !important;
    width: 100% !important;
    align-items: center !important;
    justify-content: flex-start !important;
    padding: 0 46% 0 18px !important;
  }

  body.hsa-page-tutoring .ths-hero .ths-text {
    max-width: 100% !important;
    padding: 38px 0 24px !important;
    text-align: left !important;
  }

  body.hsa-page-tutoring .ths-hero .ths-text > div:first-child {
    font-size: 10px !important;
  }

  body.hsa-page-tutoring .ths-hero .ths-text > h1 {
    margin-top: 7px !important;
    font-size: clamp(27px, 4.5vw, 40px) !important;
    line-height: .9 !important;
  }

  body.hsa-page-tutoring .ths-hero .ths-text > p {
    margin-top: 8px !important;
    font-size: 11.5px !important;
    line-height: 1.3 !important;
  }

  body.hsa-page-tutoring .ths-hero .ths-text > a {
    min-height: 38px !important;
    margin-top: 10px !important;
    padding: 9px 20px !important;
    font-size: 12px !important;
  }

  body.hsa-page-tutoring .ths-hero .ths-student {
    right: -1% !important;
    bottom: 0 !important;
    height: 96% !important;
    max-width: 47% !important;
  }

  body.hsa-page-academy-family #top > .hsa-pad,
  body.hsa-page-academy-family #top > .hsa-pad > div:first-child {
    height: 100% !important;
    min-height: 0 !important;
  }

  body.hsa-page-academy-family #top [data-rv] {
    padding: 18px 24px !important;
  }

  body.hsa-page-academies #top .hsa-shared-academies-logo {
    width: min(380px, 62vw) !important;
    max-height: 72px !important;
    object-fit: contain;
  }
}

/* Approved tablet footer composition shared with CFI, SparkLab, RISE, and YFL. */
@media (min-width: 720px) and (max-width: 1180px) and (min-height: 700px) {
  body.hsa-shared-page footer.hsa-pad {
    padding: 52px 32px 34px !important;
  }

  body.hsa-shared-page .hsa-shared-footer-grid {
    grid-template-columns: minmax(225px, 1.7fr) repeat(3, minmax(0, 1fr)) !important;
    gap: 24px 22px !important;
    align-items: start !important;
    padding-bottom: 32px !important;
  }

  body.hsa-shared-page .hsa-shared-footer-grid > div {
    grid-column: auto !important;
    min-width: 0 !important;
  }

  body.hsa-shared-page .hsa-shared-footer-brand {
    align-items: flex-start !important;
    text-align: left !important;
  }

  body.hsa-shared-page .hsa-shared-footer-brand > img {
    height: 22px !important;
    margin: 0 !important;
  }

  body.hsa-shared-page .hsa-shared-footer-brand > p,
  body.hsa-shared-page .hsa-shared-footer-brand [data-bl-footer-copy] {
    max-width: 320px !important;
    margin: 16px 0 0 !important;
    font-size: 13.5px !important;
    line-height: 1.65 !important;
    text-align: left !important;
  }

  body.hsa-shared-page .hsa-shared-footer-brand > div {
    width: auto !important;
    justify-content: flex-start !important;
    margin: 18px 0 0 !important;
  }

  body.hsa-shared-page .hsa-shared-footer-boundlearn,
  body.hsa-shared-page .hsa-shared-footer-hsa,
  body.hsa-shared-page .hsa-shared-footer-programs {
    text-align: left !important;
  }

  body.hsa-shared-page .hsa-shared-footer-grid > div:not(:first-child) > div:first-child {
    margin-bottom: 16px !important;
    font-size: 11px !important;
  }

  body.hsa-shared-page .hsa-shared-footer-grid > div:not(:first-child) > div:last-child,
  body.hsa-shared-page .hsa-shared-footer-program-links {
    display: flex !important;
    flex-direction: column !important;
    gap: 11px !important;
    font-size: 13.5px !important;
    line-height: normal !important;
  }

  body.hsa-shared-page footer .hsa-shared-footer-grid + div {
    flex-direction: row !important;
    align-items: normal !important;
    justify-content: space-between !important;
    flex-wrap: wrap !important;
    gap: 16px !important;
    padding-top: 22px !important;
    text-align: left !important;
  }
}

/* Virtual CCA's fifth schedule card completes the final portrait-tablet row. */
@media (min-width: 720px) and (max-width: 900px) and (min-height: 700px) and (orientation: portrait) {
  body.hsa-page-virtual-cca .hsa-tablet-schedule-grid .sched-grid > :last-child {
    grid-column: 1 / -1;
    width: calc(50% - 8px);
    justify-self: center;
  }
}

/* The Overview hero and its rolling bar together fill the tablet-landscape first screen. */
@media (min-width: 901px) and (max-width: 1180px) and (min-height: 700px) and (orientation: landscape) {
  body.hsa-page-overview #top.hsa-shared-main-hero {
    height: calc(100svh - 176px) !important;
    min-height: calc(100svh - 176px) !important;
    max-height: calc(100svh - 176px) !important;
  }

  body.hsa-page-overview .hsa-shared-main-hero-content {
    min-height: 100% !important;
    padding-top: 42px !important;
    padding-bottom: 34px !important;
  }

  body.hsa-page-overview .hsa-shared-main-hero-content > .hsa-h1 {
    font-size: clamp(46px, 5.2vw, 60px) !important;
  }

  body.hsa-page-overview .hsa-shared-main-hero-content > p {
    margin-top: 16px !important;
    font-size: 15px !important;
    line-height: 1.45 !important;
  }

  body.hsa-page-overview .hsa-shared-main-hero-cta {
    margin-top: 20px !important;
  }

  body.hsa-page-overview .hsa-shared-main-hero-stats {
    margin-top: 24px !important;
  }

  body.hsa-page-overview .hsa-shared-main-marquee {
    height: 52px !important;
    min-height: 52px !important;
    box-sizing: border-box !important;
    padding: 12px 0 !important;
  }
}

body.hsa-shared-page .hsa-shared-program-header.bl-programme-autohide-owner {
  transition: transform .22s cubic-bezier(.4,0,.2,1), top .22s cubic-bezier(.4,0,.2,1) !important;
  will-change: transform;
}
body.hsa-shared-page .hsa-shared-program-header.bl-programme-autohide-owner.is-scroll-hidden {
  transform: translate3d(0, calc(-100% - var(--bl-programme-tier-top, 12px)), 0) !important;
  pointer-events: none !important;
}
body.hsa-shared-page :is(.hsa-shared-program-header.hsa-wide-program-header-active, .hsa-shared-program-header) {
  top: var(--bl-programme-tier-top, var(--hsa-programme-natural-offset, 12px)) !important;
}

/* Native-wide HSA: preserve the academic identity while expanding the actual
   page canvas, programme grids, and housing chapter at 1920–3840px. */
@media (min-width: 1800px) {
  html,
  body.hsa-shared-page:not(.hsa-wide-artboard) {
    width: 100% !important;
    max-width: none !important;
    min-height: 100% !important;
    margin: 0 !important;
    overflow-x: clip !important;
  }

  body.hsa-shared-page {
    --hsa-native-canvas: min(88vw, 3360px);
    --hsa-native-edge: clamp(48px, 3vw, 112px);
  }

  body.hsa-shared-page:not(.hsa-wide-artboard) #dc-root,
  body.hsa-shared-page:not(.hsa-wide-artboard) #dc-root > .sc-host {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    zoom: 1 !important;
  }

  body.hsa-shared-page:not(.hsa-wide-artboard) #dc-root :is(
    .hsa-pad,
    [style*="max-width:1180px"],
    [style*="max-width: 1180px"],
    [style*="max-width:1200px"],
    [style*="max-width: 1200px"]
  ) {
    box-sizing: border-box !important;
    width: var(--hsa-native-canvas) !important;
    max-width: var(--hsa-native-canvas) !important;
    margin-right: auto !important;
    margin-left: auto !important;
    padding-right: var(--hsa-native-edge) !important;
    padding-left: var(--hsa-native-edge) !important;
  }

  body.hsa-shared-page:not(.hsa-wide-artboard) .hsa-shared-program-header.hsa-wide-program-header-active,
  body.hsa-shared-page:not(.hsa-wide-artboard).hsa-wide-header-docked .hsa-shared-program-header {
    position: fixed !important;
    top: var(--bl-programme-tier-top, 12px) !important;
    right: 0 !important;
    left: 0 !important;
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    transform: none !important;
    z-index: 700 !important;
  }

  body.hsa-shared-page:not(.hsa-wide-artboard) :is(.aca-prog-grid, .hsa-campus-living-grid) {
    width: 100% !important;
    max-width: none !important;
    gap: clamp(22px, 1.4vw, 52px) !important;
  }

  body.hsa-shared-page:not(.hsa-wide-artboard) .aca-prog-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }

  body.hsa-shared-page:not(.hsa-wide-artboard) :is(h1, .aca-hero h1) {
    font-size: clamp(72px, 4vw, 138px) !important;
    line-height: .95 !important;
  }

  body.hsa-shared-page:not(.hsa-wide-artboard) section h2 {
    font-size: clamp(46px, 2.55vw, 84px) !important;
    line-height: .98 !important;
  }

  body.hsa-shared-page:not(.hsa-wide-artboard) section p {
    max-width: 68ch;
    font-size: clamp(17px, .8vw, 24px);
    line-height: 1.58;
  }

  body.hsa-page-academy-family #top + section {
    padding-top: clamp(52px, 2.4vw, 82px) !important;
    padding-bottom: clamp(42px, 2vw, 68px) !important;
  }

  body.hsa-page-academy-family #top + section p {
    margin-right: auto !important;
    margin-left: auto !important;
  }

  body.hsa-page-academy-family #programs {
    padding-top: clamp(40px, 2.1vw, 66px) !important;
  }
}

/* HSA desktop family: keep the programme-owned warm paper treatment when the
   shared shell docks the tier. Mobile, tablet, and native-wide retain their
   existing approved surfaces. */
@media (min-width: 1181px) and (max-width: 1799px) {
  body.hsa-shared-page.hsa-wide-header-docked .hsa-shared-program-header.bl-pilot-programme-tier {
    border-bottom: 1px solid #e7e0d2 !important;
    background: rgba(248, 245, 239, .88) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    backdrop-filter: blur(12px) !important;
    box-shadow: none !important;
  }

  body.hsa-shared-page.hsa-wide-header-docked .hsa-shared-program-header.bl-pilot-programme-tier .hsa-subnav-links > a,
  body.hsa-shared-page.hsa-wide-header-docked .hsa-shared-program-header.bl-pilot-programme-tier .hsa-subnav-links > .bl-switch > a {
    color: #514a40 !important;
    text-shadow: none !important;
  }
}

/* On-campus residential week: shared by the Academies overview and all five subject pages. */
@media (prefers-reduced-motion: reduce) {
  body.hsa-shared-page [data-rv] {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
  }
}

body.hsa-page-academy-family .hsa-campus-living {
  position: relative;
  overflow: hidden;
  padding: clamp(86px, 9vw, 132px) 46px;
  background:
    linear-gradient(112deg, rgba(81, 16, 30, .97) 0 39%, rgba(104, 18, 37, .91) 55%, rgba(21, 38, 31, .84) 100%),
    url("/assets/media/shared/location-on-campus.webp") center 42% / cover no-repeat;
  color: #fff;
}

body.hsa-page-academy-family .hsa-campus-living::before {
  position: absolute;
  top: -70px;
  right: 8%;
  width: 250px;
  height: 250px;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 50%;
  box-shadow: 0 0 0 34px rgba(255, 255, 255, .045), 0 0 0 70px rgba(255, 255, 255, .035);
  content: "";
}

body.hsa-page-academy-family .hsa-campus-living-inner {
  position: relative;
  z-index: 1;
  display: grid;
  width: min(1180px, 100%);
  grid-template-columns: minmax(280px, .82fr) minmax(0, 1.18fr);
  gap: clamp(46px, 7vw, 96px);
  align-items: end;
  margin: 0 auto;
}

body.hsa-page-academy-family .hsa-campus-living-kicker {
  margin: 0 0 18px;
  color: #f3c7b3;
  font-family: var(--font-mono), monospace;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .17em;
  text-transform: uppercase;
}

body.hsa-page-academy-family .hsa-campus-living h2 {
  max-width: 10ch;
  margin: 0;
  color: #fff;
  font-family: var(--font-display), serif;
  font-size: clamp(44px, 5vw, 72px);
  font-weight: 700;
  letter-spacing: -.025em;
  line-height: .98;
}

body.hsa-page-academy-family .hsa-campus-living-intro {
  max-width: 46ch;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, .88);
  font-size: 16px;
  line-height: 1.72;
}

body.hsa-page-academy-family .hsa-campus-living-ledger {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 42px;
  border-top: 1px solid rgba(255, 255, 255, .34);
  border-bottom: 1px solid rgba(255, 255, 255, .34);
}

body.hsa-page-academy-family .hsa-campus-living-ledger div {
  min-width: 0;
  padding: 22px 18px 20px 0;
}

body.hsa-page-academy-family .hsa-campus-living-ledger div + div {
  padding-left: 18px;
  border-left: 1px solid rgba(255, 255, 255, .24);
}

body.hsa-page-academy-family .hsa-campus-living-ledger strong {
  display: block;
  color: #fff;
  font-family: var(--font-display), serif;
  font-size: clamp(26px, 3vw, 40px);
  line-height: 1;
}

body.hsa-page-academy-family .hsa-campus-living-ledger span {
  display: block;
  margin-top: 7px;
  color: rgba(255, 255, 255, .72);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  line-height: 1.35;
  text-transform: uppercase;
}

body.hsa-page-academy-family .hsa-campus-living-notes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

body.hsa-page-academy-family .hsa-campus-living-note {
  position: relative;
  min-height: 310px;
  padding: 36px 32px 30px;
  border: 1px solid rgba(255, 255, 255, .24);
  border-radius: 18px;
  background: rgba(247, 241, 231, .95);
  color: #211a18;
  box-shadow: 0 24px 54px rgba(16, 8, 10, .24);
}

body.hsa-page-academy-family .hsa-campus-living-note:nth-child(2) {
  transform: translateY(28px);
  background: rgba(237, 241, 232, .96);
}

body.hsa-page-academy-family .hsa-campus-living-note::before {
  display: block;
  width: 66px;
  height: 7px;
  margin-bottom: 34px;
  background: #a41034;
  content: "";
  clip-path: polygon(0 22%, 88% 0, 100% 52%, 82% 100%, 4% 72%);
}

body.hsa-page-academy-family .hsa-campus-living-note:nth-child(2)::before {
  width: 84px;
  background: #356859;
}

body.hsa-page-academy-family .hsa-campus-living-note h3 {
  margin: 0;
  color: #56101e;
  font-family: var(--font-display), serif;
  font-size: clamp(24px, 2.5vw, 34px);
  font-weight: 700;
  line-height: 1.08;
}

body.hsa-page-academy-family .hsa-campus-living-note:nth-child(2) h3 {
  color: #254d42;
}

body.hsa-page-academy-family .hsa-campus-living-note p {
  margin: 18px 0 0;
  color: #514946;
  font-size: 14px;
  line-height: 1.72;
}

@media (max-width: 719px) {
  body.hsa-page-academy-family .hsa-campus-living {
    padding: 74px 20px 92px;
    background-position: 63% center;
  }

  body.hsa-page-academy-family .hsa-campus-living-inner {
    display: block;
  }

  body.hsa-page-academy-family .hsa-campus-living-copy {
    text-align: center;
  }

  body.hsa-page-academy-family .hsa-campus-living h2 {
    max-width: 9ch;
    margin-right: auto;
    margin-left: auto;
    font-size: clamp(42px, 13vw, 58px);
  }

  body.hsa-page-academy-family .hsa-campus-living-intro {
    margin-right: auto;
    margin-left: auto;
    font-size: 14px;
  }

  body.hsa-page-academy-family .hsa-campus-living-ledger {
    text-align: left;
  }

  body.hsa-page-academy-family .hsa-campus-living-ledger div {
    padding: 18px 9px;
  }

  body.hsa-page-academy-family .hsa-campus-living-ledger div + div {
    padding-left: 9px;
  }

  body.hsa-page-academy-family .hsa-campus-living-ledger strong {
    font-size: 25px;
  }

  body.hsa-page-academy-family .hsa-campus-living-ledger span {
    font-size: 9px;
  }

  body.hsa-page-academy-family .hsa-campus-living-notes {
    display: block;
    margin-top: 34px;
  }

  body.hsa-page-academy-family .hsa-campus-living-note {
    min-height: 0;
    padding: 30px 25px 28px;
  }

  body.hsa-page-academy-family .hsa-campus-living-note:nth-child(2) {
    margin-top: 18px;
    transform: translateX(8px);
  }
}

@media (min-width: 720px) and (max-width: 1180px) {
  body.hsa-page-academy-family .hsa-campus-living {
    padding: 96px 40px 118px;
  }

  body.hsa-page-academy-family .hsa-campus-living-inner {
    grid-template-columns: minmax(250px, .72fr) minmax(0, 1.28fr);
    gap: 38px;
  }

  body.hsa-page-academy-family .hsa-campus-living h2 {
    font-size: clamp(46px, 6.6vw, 66px);
  }

  body.hsa-page-academy-family .hsa-campus-living-notes {
    gap: 14px;
  }

  body.hsa-page-academy-family .hsa-campus-living-note {
    min-height: 330px;
    padding: 30px 24px 26px;
  }
}

@media (min-width: 720px) and (max-width: 900px) and (orientation: portrait) {
  body.hsa-page-academy-family .hsa-campus-living-inner {
    grid-template-columns: minmax(0, 1fr);
    max-width: 650px;
  }

  body.hsa-page-academy-family .hsa-campus-living-copy {
    max-width: 610px;
  }

  body.hsa-page-academy-family .hsa-campus-living-notes {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
  }

  body.hsa-page-academy-family .hsa-campus-living-note {
    min-height: 380px;
    padding: 34px 30px 30px;
  }
}

@media (min-width: 1800px) {
  body.hsa-page-academy-family .hsa-campus-living {
    padding: 176px var(--bl-wide-edge, 8vw) 196px;
  }

  body.hsa-page-academy-family .hsa-campus-living-inner {
    width: var(--bl-wide-canvas, min(88vw, 3360px));
    max-width: none;
  }

  body.hsa-page-academy-family .hsa-campus-living h2 {
    font-size: clamp(76px, 5vw, 144px);
  }

  body.hsa-page-academy-family .hsa-campus-living-intro {
    font-size: clamp(18px, 1.1vw, 28px);
  }

  body.hsa-page-academy-family .hsa-campus-living-note {
    min-height: 390px;
    padding: clamp(42px, 3vw, 72px);
  }

  body.hsa-page-academy-family .hsa-campus-living-note p {
    font-size: clamp(16px, .95vw, 24px);
  }
}
