/* Keep the navigation hidden on desktop, even when the stylesheet is reused outside React. */
.header .mobile-site-menu {
  display: none;
}

@media (max-width: 900px) {
  .header .mobile-site-menu {
    display: block;
    position: relative;
    margin-left: 8px;
  }

  .header .mobile-site-menu > summary {
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    border: 1px solid #e2e4ec;
    border-radius: 50%;
    background: #fff;
    color: #40426c;
    cursor: pointer;
    font-size: 18px;
    line-height: 1;
    list-style: none;
  }

  .header .mobile-site-menu > summary::-webkit-details-marker {
    display: none;
  }

  .header .mobile-site-menu[open] > summary {
    border-color: #4342ff;
    background: #4342ff;
    color: #fff;
  }

  .header .mobile-site-menu[open] > nav {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    z-index: 200;
    box-sizing: border-box;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-items: stretch;
    gap: 4px;
    width: min(280px, calc(100vw - 48px));
    height: auto;
    max-height: calc(100vh - 80px);
    max-height: calc(100dvh - 80px);
    min-height: 0;
    padding: 8px;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    border: 1px solid #e5e7ef;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 16px 36px rgba(31, 33, 82, .16);
  }

  .header .mobile-site-menu nav > a {
    display: flex;
    min-height: 48px;
    height: auto;
    align-items: center;
    gap: 9px;
    padding: 11px 12px;
    border: 1px solid #e8e9f0;
    border-radius: 9px;
    background: #fafbff;
    color: #30334f;
    font-size: 14px;
    font-weight: 650;
    text-align: left;
  }

  .header .mobile-site-menu nav > a[aria-current="page"] {
    border-color: #f2b47e;
    background: #fff5ed;
    color: #9b500f;
  }

  .header .mobile-site-menu nav > a:hover,
  .header .mobile-site-menu nav > a:focus-visible,
  .header .mobile-nav-section-links > a:hover,
  .header .mobile-nav-section-links > a:focus-visible {
    background: #f2f2ff;
    color: #4342ff;
  }

  .header .mobile-nav-section {
    overflow: hidden;
    border: 1px solid #e8e9f0;
    border-radius: 9px;
    background: #fafbff;
  }

  .header .mobile-nav-section > summary {
    display: flex;
    min-height: 48px;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 11px 12px;
    color: #30334f;
    cursor: pointer;
    font-size: 14px;
    font-weight: 700;
    list-style: none;
  }

  .header .mobile-nav-section > summary::-webkit-details-marker {
    display: none;
  }

  .header .mobile-nav-section > summary > span:last-child {
    flex: 0 0 auto;
    color: #77798a;
    transition: transform .18s ease;
  }

  .header .mobile-nav-section[open] > summary > span:last-child {
    transform: rotate(180deg);
  }

  .header .mobile-nav-section > summary[aria-current="location"] {
    background: #fff5ed;
    color: #9b500f;
  }

  .header .mobile-nav-section-links {
    display: grid;
    gap: 4px;
    padding: 0 6px 6px;
  }

  .header .mobile-nav-section-links > a {
    display: flex;
    min-height: 48px;
    height: auto;
    align-items: center;
    gap: 9px;
    padding: 8px;
    border: 1px solid #e8e9f0;
    border-radius: 7px;
    background: #fff;
    color: #30334f;
    font-size: 13px;
    text-align: left;
  }

  .header .mobile-nav-section-links > a[aria-current="page"] {
    border-color: #f2b47e;
    background: #fff5ed;
    color: #9b500f;
  }

  .header .mobile-nav-section-links .care-nav-icon {
    width: 24px;
    height: 24px;
    flex: 0 0 24px;
    object-fit: contain;
  }

  .header .mobile-nav-section-links .care-nav-icon--doctor-hub {
    width: 30px;
    height: 30px;
    flex-basis: 30px;
  }

  .header .mobile-nav-section-links .care-nav-copy {
    display: block;
    min-width: 0;
  }

  .header .mobile-nav-section-links strong,
  .header .mobile-nav-section-links small {
    display: block;
  }

  .header .mobile-nav-section-links strong {
    color: #1f2152;
    font-size: 13px;
    font-weight: 700;
  }

  .header .mobile-nav-section-links small {
    margin-top: 2px;
    color: #77798a;
    font-size: 11px;
    font-weight: 400;
    line-height: 1.4;
  }

  .header .mobile-article-section-current {
    max-width: 132px;
    margin-left: auto;
    overflow: hidden;
    color: #9b500f;
    font-size: 11px;
    font-weight: 600;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
}
