/* Shared interaction rules for the article, guide, FAQ and legal templates. */
@font-face {
  font-family: "Cryptonim Nav";
  src: url("/fonts/spacegrotesk-v8mdoqdjqskftomm3t6r8e7mpbf4cw.woff2") format("woff2");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}
:where(.site-navbar,.guide-navbar,.faq-navbar,.legal-navbar) :is(a,button) { min-height: 44px; }
:where(.nav-links,.nav-actions,.navbar-inner) { min-width: 0; }
:where(.nav-links,.nav-actions) a { display: inline-flex; align-items: center; justify-content: center; }
.mobile-menu-drawer {
  top: var(--mobile-nav-top, 64px);
  height: calc(100dvh - var(--mobile-nav-top, 64px));
  max-height: calc(100dvh - var(--mobile-nav-top, 64px));
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-bottom: max(24px, env(safe-area-inset-bottom));
}
.mobile-menu-drawer:is(.is-open,.open) {
  display: flex;
  flex-direction: column;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: none;
}
.mobile-menu-drawer a { min-height: 44px; padding-top: 10px; padding-bottom: 10px; }
body.mobile-menu-open { overflow: hidden; }
:is(button,a,input,select,textarea):focus-visible { outline: 2px solid #34d399; outline-offset: 3px; }
:is(input,textarea,select) { min-width: 0; }
:where(main,.post-content,.article-content) :is(pre,table) { max-width: 100%; }
:where(.post-content,.article-content) pre { overflow-x: auto; }
:where(.post-content,.article-content) :is(p,li,a) { overflow-wrap: anywhere; }
@media (max-width: 767px) {
  :is(input[type=email],input[type=text],input[type=password],input[type=search],textarea,select) { font-size: 16px; }
  :is(.cat-pill,.btn-header-cta,.post-cta-btn) { min-height: 44px; }
  :where(.site-footer,.footer-links) { overflow-wrap: anywhere; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
html { color-scheme: dark; }
.mobile-menu-drawer:not(.is-open):not(.open) { display: none; visibility: hidden; }
.mobile-menu-drawer { scrollbar-width: thin; scrollbar-color: #52525b #18181b; }
@media (max-width: 600px) {
  .legal-navbar :is(.nav-actions,.legal-actions) > a { display: none; }
}
/* A local face keeps the drawer readable when optional external fonts arrive late. */
.mobile-menu-drawer a {
  font-family: "Cryptonim Nav", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: normal;
}
