/* Phone menu, matched to postplanner.com's (measured live 2026-10-30):
   logo and menu button 12px from the screen edges, the menu grows open
   over ~400ms and pushes the page down. Heights are animated by
   /assets/nav-mobile.js; this file only sets the edges and timing. */
.nav .brand-mark { width: auto; height: 26px; }
.nav .brand { gap: 14px; }

@media (max-width: 920px) {
  /* Header row: 14px top, a 45px logo row flush at 12px, then the menu. */
  .nav-inner.wrap { padding: 14px 12px; }
  .nav .brand { gap: 14px; font-size: 21px; font-weight: 800; letter-spacing: -0.01em; height: 45px; }
  .nav .brand-mark { height: 30px; }

  /* Open menu: first row 20px under the logo, 55px rows with a #ddd rule,
     the button 20px under the last row (all measured off postplanner). */
  .nav-links::before { content: ''; display: block; height: 20px; flex-shrink: 0; }
  .nav-links > a:not(.btn), .nav-links > a.btn-ghost, .nav-dropdown-trigger {
    padding: 15px 0 !important; font-size: 16px !important; font-weight: 600 !important; color: #000 !important;
    line-height: 24px; border-bottom: 1px solid #dddddd !important;
  }
  .nav-dropdown.open .nav-dropdown-trigger { border-bottom-color: transparent !important; color: var(--blue) !important; }
  .nav-links > a.btn-primary { margin: 20px 0 0 !important; padding: 13px 25px !important; font-size: 18px !important; line-height: 21px; }
  .nav-toggle { width: 44px; height: 36px; padding: 0; border-radius: 4px; display: flex; align-items: center; justify-content: center; transition: background-color 160ms ease, transform 160ms cubic-bezier(0.23, 1, 0.32, 1); }
  .nav-toggle:active { transform: scale(0.95); }
  .nav-toggle svg { width: 24px; height: 24px; }
  .nav-toggle .nav-toggle-bar { transform-box: view-box; transform-origin: 12px 12px; transition: transform 300ms cubic-bezier(0.77, 0, 0.175, 1), opacity 200ms ease; }
  .nav-toggle[aria-expanded="true"] .bar-top { transform: translateY(5px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] .bar-mid { opacity: 0; }
  .nav-toggle[aria-expanded="true"] .bar-bot { transform: translateY(-5px) rotate(-45deg); }

  .nav-links, .nav-dropdown-menu { transition: max-height 420ms cubic-bezier(0.4, 0, 0.2, 1) !important; }
  .nav-links > * { transition: opacity 320ms ease, transform 420ms cubic-bezier(0.23, 1, 0.32, 1); }
  .nav-links:not(.open) > * { opacity: 0; transform: translateY(-6px); }
  .nav-links.open > * { opacity: 1; transform: none; }
  .nav-links.open > *:nth-child(1) { transition-delay: 40ms; }
  .nav-links.open > *:nth-child(2) { transition-delay: 80ms; }
  .nav-links.open > *:nth-child(3) { transition-delay: 120ms; }
  .nav-links.open > *:nth-child(4) { transition-delay: 160ms; }
  .nav-links.open > *:nth-child(5) { transition-delay: 200ms; }
}
@media (max-width: 920px) and (prefers-reduced-motion: reduce) {
  .nav-links, .nav-dropdown-menu, .nav-links > *, .nav-toggle .nav-toggle-bar { transition: none !important; }
}

/* 2026-11-16: the phone header matches the homepage's (24px sides, 28px mark,
   20px name, white outlined menu button), and FAQs keep a side gap. */
.faq-section.wrap { padding-left: 24px; padding-right: 24px; }
@media (max-width: 920px) {
  .nav-inner.wrap { padding: 15px 24px; }
  .nav .brand { gap: 10px; font-size: 20px; height: 42px; letter-spacing: 0; }
  .nav .brand-mark { width: 28px !important; height: 28px !important; object-fit: contain; }
  .nav .brand { font-size: 20px !important; }
  .nav-toggle { width: 42px; height: 42px; border-radius: 10px; background: #fff !important; border: 1px solid #e6ebf3 !important; color: #0f1729 !important; }
  .nav-toggle svg { width: 22px; height: 22px; }
  .faq-section { padding-top: 64px !important; padding-bottom: 56px !important; }
  .faq-section h2 { font-size: 26px; margin-bottom: 24px; }
}
