/* folklorewell.com-specific additions to the boilerplate template (colors
   mapped to this site's own tokens, not the generic var(--surface, #fff)
   placeholder; the toggle button and panel-nav list need real styling,
   which the boilerplate template leaves as TODOs). */
.mobile-nav-toggle {
  background: none; border: none; font-size: 1.6rem; line-height: 1;
  color: var(--teal-dark); cursor: pointer; padding: 4px 8px;
}
.mobile-nav-panel nav ul { list-style: none; margin: 40px 0 0; padding: 0; }
.mobile-nav-panel nav li { border-bottom: 1px solid var(--rule); }
.mobile-nav-panel nav a {
  display: block; padding: 14px 4px; text-decoration: none; font-weight: 600;
  color: var(--teal-dark); font-size: 1.1rem;
}
.mobile-nav-close {
  position: absolute; top: 14px; right: 14px; background: none; border: none;
  font-size: 1.8rem; line-height: 1; color: var(--ink); cursor: pointer;
}

@media (min-width: 769px) {
  .mobile-nav-toggle,
  .mobile-nav-backdrop,
  .mobile-nav-panel { display: none; }
}

@media (max-width: 768px) {
  .desktop-nav, .desktop-search { display: none; }
  .mobile-nav-toggle { margin-left: auto; }

  .mobile-nav-backdrop {
    position: fixed; inset: 0; background: rgba(0, 0, 0, 0.5);
    z-index: 200;
  }
  .mobile-nav-backdrop[hidden] { display: none; }

  .mobile-nav-panel {
    position: fixed; top: 0; right: 0; bottom: 0;
    width: min(320px, 85vw);
    background: var(--parchment, #fff);
    z-index: 201;
    padding: 20px;
    overflow-y: auto;
    transform: translateX(100%);
    transition: transform 0.2s ease;
  }
  .mobile-nav-panel[hidden] { display: none; }
  .mobile-nav-panel.open { transform: translateX(0); }
}
