/* ==========================================================================
   08 · MOBILE DRAWER
   Same three groups as the mega panel, as accordions, with search and the CTA
   pinned in thumb reach at the bottom.
   ========================================================================== */

.burger {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
}

@media (max-width: 900px) {
  .burger { display: inline-flex; }
}

.burger__box {
  position: relative;
  width: 22px;
  height: 12px;
}

.burger__line,
.burger__box::before,
.burger__box::after {
  content: "";
  position: absolute;
  right: 0;
  left: 0;
  height: 1px;
  background: var(--ink);
  transition: transform 0.3s var(--ease), opacity 0.2s var(--ease);
}

.burger__box::before { top: 0; }
.burger__line        { top: 50%; }
.burger__box::after  { bottom: 0; }

.burger[aria-expanded="true"] .burger__box::before { top: 50%; transform: rotate(45deg); }
.burger[aria-expanded="true"] .burger__box::after  { bottom: 50%; transform: rotate(-45deg); }
.burger[aria-expanded="true"] .burger__line        { opacity: 0; }


/* --- Panel ---------------------------------------------------------------- */

.drawer {
  position: fixed;
  inset: 0;
  top: var(--admin-bar);
  z-index: 150;
  background: rgba(34, 31, 28, 0.4);
}

.drawer__panel {
  display: flex;
  flex-direction: column;
  height: 100%;
  max-width: 460px;
  margin-left: auto;
  background: var(--paper);
  border-left: 1px solid var(--rule);
}

.drawer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--s-4) var(--s-5);
  border-bottom: 1px solid var(--rule-soft);
}

.drawer__brand {
  font-family: var(--font-display);
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.drawer__close {
  width: 44px;
  height: 44px;
  font-size: 28px;
  line-height: 1;
}

.drawer__body {
  flex: 1;
  overflow-y: auto;
  padding: var(--s-3) var(--s-5) var(--s-6);
}

.drawer__foot {
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
  padding: var(--s-4) var(--s-5) var(--s-6);
  border-top: 1px solid var(--rule-soft);
}

.drawer__search { display: flex; gap: var(--s-2); }

.drawer__search input {
  flex: 1;
  min-width: 0;
  padding: 11px 14px;
  background: var(--card);
  border: 1px solid var(--rule);
  font-size: var(--fs-300);
}


/* --- Accordion ------------------------------------------------------------ */

.acc__item { border-bottom: 1px solid var(--rule-soft); }

.acc__toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: var(--s-4) 0;
  font-family: var(--font-display);
  font-size: var(--fs-600);
  text-align: left;
}

/* A plus that becomes a minus — shared with the FAQ accordion. */
.acc__sign {
  position: relative;
  flex: none;
  width: 14px;
  height: 14px;
}

.acc__sign::before,
.acc__sign::after {
  content: "";
  position: absolute;
  background: var(--gilt);
  transition: opacity 0.25s var(--ease);
}

.acc__sign::before { top: 6px; left: 0; width: 14px; height: 1px; }
.acc__sign::after  { top: 0; left: 6px; width: 1px; height: 14px; }

.acc__toggle[aria-expanded="true"] .acc__sign::after { opacity: 0; }

.acc__body { padding-bottom: var(--s-4); }

.acc__body ul {
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
}

.acc__body a {
  color: var(--ink-2);
  font-size: var(--fs-300);
}

.acc__body a:hover { color: var(--mulberry); }

.acc__all { color: var(--mulberry); }

.acc__item--plain a {
  display: block;
  padding: var(--s-4) 0;
  font-family: var(--font-display);
  font-size: var(--fs-600);
}
