/* r12: small-screen header + closed-status bar. Does not touch /_next/static. */

[role="status"] {
  overflow-x: hidden;
}
[role="status"] > p {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.15rem 0.75rem;
  max-width: 100%;
  box-sizing: border-box;
  overflow-wrap: anywhere;
  text-wrap: pretty;
}
[role="status"] > p > a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 0.35rem;
}

@media (max-width: 1023px) {
  header.sticky {
    overflow: visible;
  }
  header.sticky > div {
    position: relative;
    min-width: 0;
  }
  header.sticky > div > a[href="/"] {
    min-width: 0;
    flex: 0 1 auto;
  }
  header details.menu {
    position: static;
    margin-left: auto;
    flex: 0 0 auto;
  }
  header details.menu > summary {
    box-sizing: border-box;
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    cursor: pointer;
    list-style: none;
  }
  header details.menu > summary::-webkit-details-marker,
  header details.menu > summary::marker {
    display: none;
  }
  header details.menu > .panel,
  header details.menu .panel {
    position: absolute;
    left: 0;
    right: 0;
    width: 100%;
    top: 100%;
    box-sizing: border-box;
    z-index: 50;
    max-height: calc(100vh - 4rem);
    overflow: auto;
  }
  header details.menu .panel a {
    display: flex;
    align-items: center;
    min-height: 44px;
    box-sizing: border-box;
  }
}

@media (max-width: 414px) {
  [role="status"] > p {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
    font-size: 12px;
    line-height: 1.35;
  }
}
