/* Shared public-page refinements. Keep controls usable as text or viewport size changes. */
.header nav > a { min-height: 44px; }
.header .nav-cta.glass-learning { min-height: 46px; font-size: 13px; }
.header nav > a:not(.button) { display: inline-flex; align-items: center; }
.hero-banner .hero-actions .glass-learning,
.header .nav-cta.glass-learning,
.package-card .glass-learning { color: #17324d; text-shadow: none; }
.hero-banner .hero-actions .glass-learning:hover,
.header .nav-cta.glass-learning:hover,
.package-card .glass-learning:hover { color: #17324d; }
.instructor-story > summary { min-height: 44px; }
.course-catalog .chapter-title,
.course-catalog .video-topic-title { overflow-wrap: anywhere; }
.course-catalog .outline-lesson-copy .lesson-description { font-size: 16px; }
.course-catalog .outline-watch { font-size: 15px; min-height: 48px; }

@media (max-width: 900px) {
  html { scroll-padding-top: 20px; }
  .homepage .header,
  .training-page .header {
    position: relative;
    top: auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
  }
  .header .brand { min-width: 0; gap: 8px; }
  .homepage .header .brand,
  .training-page .header .brand { font-size: 12px; }
  .header .brand-logo { width: 50px; height: 54px; }
  .header .brand-sub { font-size: 9px; }
  .header .menu-toggle { display: none; }
  .header.navigation-ready .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-width: 68px;
    min-height: 44px;
    padding: 9px 8px;
    border: 1px solid #b8c9c7;
    border-radius: 9px;
    background: #fffefb;
    color: var(--ink);
    font: 600 13px/1.4 var(--sans);
  }
  .homepage .header nav,
  .homepage .header nav.is-open,
  .training-page .header nav {
    display: grid;
    grid-column: 1 / -1;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: center;
    gap: 12px;
    width: 100%;
    border-top: 1px solid var(--line);
    padding-top: 14px !important;
  }
  .header.navigation-ready nav:not(.is-open) { display: none; }
  .homepage .header nav > a:not(.button),
  .training-page .header nav > a:not(.button) {
    min-width: 0;
    min-height: 44px;
    padding: 10px 4px;
    font-size: 14px;
    white-space: normal;
  }
  .header nav .header-youtube {
    grid-column: 1 / -1;
    justify-self: start;
    padding: 28px 4px 10px !important;
  }
  .header .header-quick-tips { top: -4px; bottom: auto; left: 4px; font-size: 18px; }
  .header .header-quick-tips svg { transform: translateY(10px) scaleX(-1); }
  .header .header-youtube-main { gap: 7px; margin-inline-start: 110px; }
  .training-page .header nav .youtube-link img { width: 24px; height: 18px; }
  .homepage .header nav .nav-cta.glass-learning,
  .training-page .header nav .nav-cta.glass-learning {
    grid-column: 1 / -1;
    width: 100%;
    min-height: 48px;
    margin: 0;
    font-size: 15px;
  }
  .homepage .learning-options { scroll-margin-top: 20px; }
  .package-card > p:not(.price),
  .package-features,
  .instructor-copy > p:not(.eyebrow),
  .instructor-story > p { font-size: 16px; }
  .instructor-story > summary { font-size: 15px; }
  .course-catalog .chapter-description,
  .course-catalog .video-topic-title { font-size: 16px; }
  .course-catalog .chapter-title { font-size: 17px; }
  .course-catalog .chapter-kicker,
  .course-catalog .video-topic-number { font-size: 11px; }
  .course-catalog .course-benefits,
  .course-fulfillment-copy > p:not(.eyebrow) { font-size: 15px; }
}

@media (max-width: 360px) {
  .homepage .header,
  .training-page .header { gap: 8px; padding-inline: 12px; }
  .header .brand-logo { width: 44px; height: 48px; }
  .homepage .header .brand,
  .training-page .header .brand { font-size: 11px; }
  .header .brand-sub { font-size: 8.5px; }
  .header.navigation-ready .menu-toggle { min-width: 64px; padding-inline: 6px; }
  .homepage .header nav > a:not(.button),
  .training-page .header nav > a:not(.button) { font-size: 13px; }
  .course-catalog .chapter > summary { padding-inline: 12px; gap: 12px 8px; }
  .course-catalog .chapter-body { padding-inline: 12px; }
}

/* Short landscape screens keep all content reachable below the compact header. */
@media (max-height: 500px) and (max-width: 1000px) {
  .homepage .header,
  .training-page .header { position: relative; top: auto; }
  html { scroll-padding-top: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  .glass-learning,
  .header nav a { transition: none !important; }
}

/* Keep the mobile animated scenes close to their surrounding copy & cards. */
@media (max-width: 760px) {
  .homepage .hero-banner { gap: 0; margin-bottom: 6px; }
  .hero-banner .hero-copy { margin-bottom: 4px; }
  .course-heading { row-gap: 0; }
  .course-hero-visual { margin-top: 4px; }
  .course-facts { margin-top: 4px; }
}
