/* Keep the existing desktop presentation; enhance navigation only on phones. */
.nav-toggle {
  display: none;
}

@media (max-width: 760px) {
  *,
  *::before,
  *::after {
    box-sizing: border-box;
  }

  body {
    font-size: 16px;
    overflow-wrap: anywhere;
  }

  /* These pages use inline typography, including dynamically created links. */
  [style*="font-size: 12px"], [style*="font-size:12px"],
  [style*="font-size: 13px"], [style*="font-size:13px"],
  [style*="font-size: 14px"], [style*="font-size:14px"],
  [style*="font-size: 15px"], [style*="font-size:15px"] {
    font-size: 16px !important;
  }

  .wrap * {
    min-width: 0;
  }

  a[href], button, input:not([type="hidden"]), select, textarea {
    min-width: 44px;
    min-height: 44px;
    max-width: 100%;
  }

  a[href] {
    display: inline-flex !important;
    align-items: center;
  }

  input, select, textarea {
    width: 100%;
    font-size: 16px !important;
  }

  form {
    padding: 24px !important;
  }

  .site-header > .wrap {
    column-gap: 12px !important;
  }

  .nav-ready .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 12px;
    border: 1px solid #1c1c1c;
    border-radius: 0;
    background: #ffffff;
    color: #1c1c1c;
    font: inherit;
    font-weight: 500;
    cursor: pointer;
  }

  .site-header .nav {
    flex-basis: 100%;
    flex-direction: column;
    align-items: stretch !important;
    gap: 8px !important;
  }

  .nav-ready .nav:not(.is-open) {
    display: none !important;
  }

  .site-header .nav a {
    padding: 12px 16px !important;
  }

  :is(a, button, input, select, textarea):focus-visible {
    outline: 3px solid #3f2bd6;
    outline-offset: 3px;
  }

  img, video, iframe, embed, object {
    max-width: 100% !important;
  }

  img, video {
    height: auto !important;
  }

  /* Preserve the logos' existing crop while allowing their width to shrink. */
  .site-header img {
    aspect-ratio: 196 / 54;
  }

  footer img {
    aspect-ratio: 178 / 49;
  }

  .person img {
    height: 138px !important;
  }

  #c-img {
    height: 100% !important;
  }

  iframe, embed, object {
    height: auto !important;
    aspect-ratio: 16 / 9;
  }

  .oped {
    padding: 24px !important;
  }

  #modal > [role="dialog"] {
    padding: 64px 24px 24px !important;
  }
}

@media (max-width: 480px) {
  .person {
    grid-template-columns: minmax(0, 1fr) !important;
  }
}
