/* Only the expanded menu on portrait phones; page layouts remain untouched. */
@media (max-width: 599px) and (orientation: portrait) {
  :root body > header > div[class~="border-t"] {
    background: #273d57 !important;
    border-color: rgb(255 255 255 / .2);
    padding: 12px var(--site-gutter) 16px;
    max-height: calc(100vh - 72px);
    max-height: calc(100dvh - 72px);
    overflow-y: auto;
    overscroll-behavior-y: contain;
  }
  :root body > header > div[class~="border-t"] > div {
    display: flex; flex-direction: column; gap: 4px;
    height: auto !important; min-height: 0; width: 100%;
    align-items: stretch;
  }
  :root body > header > div[class~="border-t"] a,
  :root body > header > div[class~="border-t"] a:visited,
  :root body > header > div[class~="border-t"] a:hover {
    display: flex; align-items: center; flex: none;
    min-height: 48px; padding: 10px 12px;
    color: #fff !important; -webkit-text-fill-color: #fff !important;
    font-size: 16px !important; line-height: 1.4 !important;
    letter-spacing: .06em !important; white-space: normal;
    overflow-wrap: anywhere; border-radius: 4px;
  }
  :root body > header > div[class~="border-t"] a[aria-current="page"] {
    background: rgb(255 255 255 / .12);
    text-decoration: underline; text-underline-offset: 4px;
  }
  :root body > header > div[class~="border-t"] a:focus-visible {
    outline: 2px solid #fff; outline-offset: -2px;
  }
  :root body > header button[aria-label="Menu"] { color: #fff; }
}
