.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.edition-menu #edition-drawer {
  width: min(350px, 92vw);
  padding: 16px;
  max-height: min(680px, calc(100dvh - 96px));
  overscroll-behavior: contain;
}
.edition-menu #edition-drawer[hidden] { display: none; }
.drawer-heading, .drawer-section > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.drawer-heading { padding: 0 2px 10px; }
.drawer-heading strong { font-size: 18px; letter-spacing: -.03em; }
.edition-menu #edition-drawer #close-drawer {
  width: 36px;
  height: 36px;
  margin: 0;
  padding: 0;
  text-align: center;
  font-size: 22px;
}
.drawer-links, .drawer-editions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
}
.edition-menu #edition-drawer .drawer-links button,
.edition-menu #edition-drawer .drawer-editions button {
  margin: 0;
  padding: 11px 9px;
  text-align: center;
  min-height: 44px;
  font-size: 13px;
}
.edition-menu #edition-drawer .drawer-links [data-current],
.edition-menu #edition-drawer .drawer-editions [aria-pressed=true] {
  background: var(--lime);
  border-color: var(--green);
  color: var(--ink);
  font-weight: 700;
}
.drawer-links { padding-bottom: 14px; }
.drawer-section { border-top: 1px solid var(--line); }
.drawer-section > summary {
  cursor: pointer;
  list-style: none;
  min-height: 48px;
  font-size: 14px;
  font-weight: 650;
}
.drawer-section > summary::-webkit-details-marker { display:none; }
.drawer-section > summary::after {
  content: '';
  border: solid var(--muted);
  border-width: 0 1.5px 1.5px 0;
  width: 6px;
  height: 6px;
  transform: rotate(45deg);
  margin: -3px 3px 0 auto;
}
.drawer-section[open] > summary::after { transform: rotate(225deg); margin-top: 4px; }
.drawer-section small, .drawer-section legend {
  color: var(--muted);
  font-size: 11px;
  font-weight: 500;
}
.drawer-section > small { display: block; line-height: 1.5; margin: 0 1px 12px; }
.drawer-editions { border: 0; padding: 0; margin: 0 0 9px; }
.drawer-editions legend { margin: 0 0 6px; }
.drawer-section-body { padding-bottom: 8px; }
.edition-menu #edition-drawer .drawer-section-body > button[aria-pressed] {
  position: relative;
  border-color: transparent;
  color: var(--ink);
  background: transparent;
  min-height: 43px;
  margin: 1px 0;
  padding: 9px 52px 9px 6px;
  font-size: 14px;
}
.edition-menu #edition-drawer .drawer-section-body > button[aria-pressed]:hover { border-color: var(--line); }
.drawer-section-body > button[aria-pressed]::before,
.drawer-section-body > button[aria-pressed]::after {
  position: absolute;
  content: '';
  top: 50%;
  transform: translateY(-50%);
  border-radius: 20px;
}
.drawer-section-body > button[aria-pressed]::before {
  right: 5px;
  width: 34px;
  height: 20px;
  border: 1px solid var(--muted);
}
.drawer-section-body > button[aria-pressed]::after { right: 22px; width: 12px; height: 12px; background: var(--muted); }
.drawer-section-body > button[aria-pressed=true]::before { background: var(--green); border-color: var(--green); }
.drawer-section-body > button[aria-pressed=true]::after { right: 9px; background: var(--bg); }
.drawer-section-body p { margin: 2px 6px 8px; line-height: 1.5; }
.drawer-section-body #hardcore-help { display: none; }
.drawer-section-body #hardcore-toggle[aria-pressed=true] + #hardcore-help { display:block; }
.edition-menu button:focus-visible, .drawer-section summary:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }
#build-number { letter-spacing: .07em; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .guide-target, #toast { animation: none; transition: none; }
}
