/* The handbook contents drawer follows the Season 4 frame. */
html .bb-season-sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  box-sizing: border-box;
  width: min(360px, 88vw);
  max-width: none;
  height: 100vh;
  height: 100dvh;
  max-height: none;
  margin: 0;
  padding: 14px 14px max(18px, env(safe-area-inset-bottom));
  overflow: auto;
  overscroll-behavior: contain;
  border: 0;
  border-right: 1px solid #1e6ca9;
  border-radius: 0;
  background: #05142c;
  color: #f4f8ff;
  font: 400 1rem/1.4 Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  text-align: left;
}
.bb-season-sidebar::backdrop { background: rgb(0 0 0 / 58%); }
html:has(dialog.bb-season-sidebar[open]) { overflow: hidden; }

.bb-season-sidebar .toc-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 12px;
  min-height: 44px;
}
html .bb-season-sidebar .toc-head .icon-btn {
  display: grid;
  place-items: center;
  flex: none;
  width: 44px;
  height: 44px;
  min-height: 44px;
  margin: 0;
  padding: 0;
  border: 1px solid #235b90;
  border-radius: 10px;
  background: #071934;
  color: #fff;
  font: inherit;
  font-size: 1.3rem;
  cursor: pointer;
}

html .bb-season-sidebar .bb-season-shortcuts > :is(a, button),
html .bb-season-sidebar .bb-saved-guides > button {
  display: block;
  box-sizing: border-box;
  width: 100%;
  min-height: 44px;
  margin: 0 0 8px;
  padding: 9px 12px;
  border: 1px solid #245b89;
  border-radius: 9px;
  background: transparent;
  color: #d8eaff;
  font: inherit;
  font-weight: 800;
  text-align: left;
  text-decoration: none;
  overflow-wrap: anywhere;
  cursor: pointer;
}
html .bb-season-sidebar .bb-season-shortcuts > .toc-home {
  margin-bottom: 10px;
  padding: 11px 16px;
  border-color: #2a91d6;
  border-radius: 12px;
  background: linear-gradient(145deg, #0c3d78, #071b38);
  color: #fff;
}

html .bb-season-sidebar .toc-section {
  position: static;
  margin: 0.8rem 0 0.25rem;
  padding: 0.45rem 0.7rem;
  border-block: 1px solid rgb(125 211 252 / 18%);
  background: #041023;
  color: #d9b961;
  font-size: 0.66rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
html .bb-season-sidebar :is(.bb-season-chapters, .bb-saved-guides) a {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  box-sizing: border-box;
  min-height: 44px;
  margin: 0;
  padding: 9px 12px;
  border-radius: 9px;
  color: #d8eaff;
  font: inherit;
  text-decoration: none;
  overflow-wrap: anywhere;
}
html .bb-season-sidebar :is(.bb-season-chapters, .bb-saved-guides) a > span:first-child {
  color: #789abf;
  font-variant-numeric: tabular-nums;
}
html .bb-season-sidebar :is(a, button):hover,
html .bb-season-sidebar .bb-season-chapters a:is(.current, [aria-current="page"]) {
  background-color: #0c2c57;
  color: #f3faff;
}
html .bb-season-sidebar :is(a, button):focus-visible {
  outline: 3px solid #7cc8ff;
  outline-offset: 3px;
}
.bb-season-sidebar :is(a, button) { touch-action: manipulation; }
.bb-season-sidebar :is(.bb-season-menu, .bb-saved-guides)[hidden] { display: none; }
.bb-season-sidebar .bb-saved-guides p { padding-inline: 12px; }

@media (max-width: 640px) {
  html .bb-season-sidebar .toc-section { font-size: 0.62rem; }
}
@media (prefers-reduced-motion: reduce) {
  html .bb-season-sidebar { transition: none; }
}
@media print {
  .bb-season-sidebar, .bb-season-sidebar-trigger { display: none !important; }
}
