/* Mobile refinements for the course as hosted on Dr. Chhina's website. */
@media (max-width: 900px) {
  .site-header {
    position: static;
  }
  .header-inner {
    height: auto;
    flex-wrap: wrap;
    gap: 12px;
    padding-block: 16px;
  }
  .menu-toggle {
    display: none;
  }
  #navigation,
  #navigation.open {
    position: static;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: 100%;
    gap: 4px 12px;
    padding: 0;
    border: 0;
    box-shadow: none;
    background: transparent;
  }
  #navigation a {
    justify-content: center;
    min-width: 0;
    min-height: 44px;
    border: 0;
    padding-block: 8px;
    text-align: center;
    line-height: 1.4;
    white-space: normal;
  }
  #navigation a[aria-current="page"]::after {
    top: auto;
    right: 0;
    width: auto;
    bottom: 0;
  }
  .main-site-return .button {
    width: 100%;
    white-space: normal;
    line-height: 1.4;
  }
  .source-link,
  .instructor-line a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
  }
}
@media (max-width: 480px) {
  .home-hero .acronym {
    font-size: 1rem;
    line-height: 1.5;
    margin-bottom: 24px;
    text-wrap: wrap;
  }
  .notice {
    padding: 10px 20px;
    line-height: 1.5;
  }
  .display,
  h1 {
    font-size: clamp(2rem, 9vw, 2.75rem);
    line-height: 1.12;
    overflow-wrap: anywhere;
  }
  h2 {
    font-size: 1.875rem;
    line-height: 1.2;
    overflow-wrap: anywhere;
  }
  .button {
    white-space: normal;
    line-height: 1.4;
    min-height: 48px;
  }
  .home-hero .plate {
    width: 100%;
    max-width: 360px;
  }
}

/* Keep the course signup action prominent at every screen size. */
#navigation .signup-link {
  padding: 12px 16px;
  min-height: 44px;
  color: var(--paper);
  background: var(--primary);
  border-radius: var(--radius-button);
  line-height: 1.35;
  text-align: center;
}
#navigation .signup-link:hover { background: var(--ink); color: var(--paper); }
#email-list { scroll-margin-top: 120px; }
@media (max-width: 900px) {
  #navigation .signup-link { padding: 8px; }
  #email-list { scroll-margin-top: 24px; }
}
