/* Uses the theme's existing brand tokens; native dialog supplies modal isolation. */
.menu-btn { width: 44px; height: 44px; flex: none; }
.tot-drawer {
  --drawer-space: 1.5rem;
  position: fixed;
  inset: 0 auto 0 0;
  margin: 0;
  width: min(380px, calc(100vw - 24px));
  max-width: none;
  height: 100vh;
  height: 100dvh;
  max-height: none;
  padding: 0;
  border: 0;
  color: var(--plum);
  background: white;
  overflow-y: auto;
  overscroll-behavior: contain;
  box-shadow: var(--shadow-lg);
}
.tot-drawer:not([open]), .tot-drawer-panel[hidden] { display: none; }
.tot-drawer::backdrop { background: rgba(42, 24, 47, 0.55); }
.tot-drawer-top {
  position: sticky;
  top: 0;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem var(--drawer-space);
  background: white;
  border-bottom: 1px solid rgba(57, 36, 63, 0.14);
}
.tot-drawer-top p { font-family: var(--font-display); font-size: 1.5rem; font-weight: 500; }
.tot-drawer-close { font-size: 2rem; line-height: 1; width: 44px; height: 44px; border-radius: var(--radius-md); }
.tot-drawer-close:hover, .tot-drawer-links a:hover, .tot-drawer-links button:hover { background: var(--cream); }
.tot-drawer-search { padding: 1.25rem var(--drawer-space); border-bottom: 1px solid rgba(57, 36, 63, 0.14); }
.tot-drawer-search label { display: block; margin-bottom: 0.5rem; font-size: 0.875rem; font-weight: 600; }
.tot-drawer-search div { display: flex; gap: 0.5rem; }
.tot-drawer-search input { width: 100%; min-width: 0; padding: 0.5rem 0.75rem; border: 1px solid var(--ink-soft); border-radius: var(--radius-md); }
.tot-drawer-search button { padding: 0.5rem 0.75rem; min-height: 44px; border-radius: var(--radius-md); background: var(--plum); color: white; font-size: 0.875rem; }
.tot-drawer-content { padding: 0.75rem 1rem 2rem; }
.tot-drawer-links { list-style: none; margin: 0; padding: 0; }
.tot-drawer-links li { margin: 0; padding: 0; max-width: none; }
.tot-drawer-links button, .tot-drawer-links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 54px;
  padding: 0.75rem 0.5rem;
  gap: 1rem;
  text-align: left;
  text-decoration: none;
  font-size: 1.125rem;
  line-height: 1.4;
  border-radius: var(--radius-sm);
  overflow-wrap: anywhere;
}
.tot-drawer-links button span { font-size: 1.75rem; line-height: 1; }
.tot-drawer-back { min-height: 44px; padding: 0.5rem; text-decoration: underline; text-underline-offset: 0.25rem; }
.tot-drawer-heading { font-size: 1.5rem; padding: 0.75rem 0.5rem; margin: 0; overflow-wrap: anywhere; }
.tot-drawer-all { display: block; min-height: 44px; padding: 0.5rem; margin-bottom: 0.75rem; font-weight: 600; text-underline-offset: 0.25rem; border-bottom: 1px solid rgba(57, 36, 63, 0.2); }
@media (max-width: 620px) {
  .top-bar-inner { gap: 0.5rem; }
  .menu-btn { flex: none; min-height: 44px; }
  .brand { flex: 1; min-width: 0; }
  .brand img { flex: none; width: 32px; height: 32px; }
  .brand-name { font-size: 0.875rem; overflow-wrap: anywhere; }
  .top-actions { flex: none; }
  .pill-cta { font-size: 0.75rem; padding-inline: 0.75rem; }
  .hero { min-height: 0; }
  .hero-inner { padding-block: 1.75rem; }
  .hero .stat-pills { margin-top: 1rem; gap: 0.5rem; }
  .hero .stat-pill { padding-block: 0.4rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; }
}

/* v1.2.0 — sketch illustration at the bottom of each panel */
.tot-drawer { display: flex; flex-direction: column; }
.tot-drawer:not([open]) { display: none; }
.tot-drawer-content { flex: 1; display: flex; flex-direction: column; }
.tot-drawer-panel:not([hidden]) { flex: 1; display: flex; flex-direction: column; }
.tot-drawer-panel > .tot-drawer-back, .tot-drawer-panel > .tot-drawer-all, .tot-drawer-panel > .tot-drawer-heading { align-self: flex-start; }
.tot-drawer-panel > .tot-drawer-all { align-self: stretch; }
.tot-drawer-art { display: block; width: min(260px, 82%); height: auto; max-height: 170px; object-fit: contain; margin: auto auto 0; padding-top: 1.5rem; pointer-events: none; user-select: none; }
@media (max-height: 640px) { .tot-drawer-panel > .tot-drawer-back, .tot-drawer-panel > .tot-drawer-all, .tot-drawer-panel > .tot-drawer-heading { align-self: flex-start; }
.tot-drawer-panel > .tot-drawer-all { align-self: stretch; }
.tot-drawer-art { max-height: 110px; } }
