/* Keep the navigation and hash targets accessible after scrolling. */
html { scroll-padding-top: 96px; }
.mast { position: sticky; top: 0; z-index: 12; box-shadow: 0 1px 0 var(--rule); }
.skip:focus { z-index: 16; }
@media (max-width: 680px), (pointer: coarse) and (max-width: 960px) and (max-height: 550px) {
  html { scroll-padding-top: calc(72px + env(safe-area-inset-top, 0px)); }
  .mast { padding-top: env(safe-area-inset-top, 0px); }
  .mast > .shell { min-height: 60px; gap: 6px; border-bottom: 0; }
  .mast .shell nav, .mast .mast-wa { display: none; }
  .mast-actions { gap: 2px; }
  .mast .menu { display: grid; align-content: center; justify-content: center; width: 44px; height: 44px; gap: 5px; padding: 0; }
  .menu span { width: 20px; height: 2px; border-radius: 1px; background: var(--teal); transition: transform 150ms ease; }
  .menu[aria-expanded="true"] span:first-child { transform: translateY(3.5px) rotate(45deg); }
  .menu[aria-expanded="true"] span:last-child { transform: translateY(-3.5px) rotate(-45deg); }
  .mast .nav-trial { min-height: 44px; padding-inline: 12px; }
  .mast #mobile-nav:not([hidden]) { display: grid; position: absolute; top: 100%; inset-inline: 0; padding: 6px max(18px, calc((100vw - var(--shell)) / 2)) 14px; background: white; border-top: 1px solid var(--rule); border-bottom: 1px solid #c3d4cc; box-shadow: 0 12px 24px #143c321a; overflow-y: auto; max-height: calc(100vh - 64px); max-height: calc(100dvh - 64px - env(safe-area-inset-top, 0px)); }
  .mast #mobile-nav > :is(a,button) { display: flex; min-height: 46px; align-items: center; padding: 9px 4px; border: 0; border-bottom: 1px solid var(--rule); font: 600 15px/1.45 var(--body); color: var(--teal); }
  .mast #mobile-nav > :last-child { border: 0; }
  .mast #mobile-nav a[aria-current="page"] { text-decoration: underline; text-underline-offset: 4px; }
  .subjects button, .course-panel .text-link, .choice-row label, .step-actions button, .preview-note button { min-height: 44px; }
  .application :is(input:not([type=checkbox],[type=radio]), select, textarea) { font-size: 16px; }
  .course-panel>div>p:not(.eyebrow) {font-size: 13px;}
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .menu span { transition: none; }
}

@media (max-width:680px) {
  .scriptless-nav { gap: 2px 12px; padding: 0 12px; }
  .mast .scriptless-nav a { display: inline-flex; align-items: center; min-height: 40px; }
  html:has(.scriptless-nav) { scroll-padding-top: 155px; }
}
