/* The header menu: the links sit in one line while they fit, and fold into a hamburger when they don't.
   Without script the links stay as they are (the .js class is set by a line in each page's head). */
.menu-btn { display: none; align-items: center; justify-content: center; width: 44px; height: 44px; margin-right: -10px; padding: 0; border: 0; border-radius: 10px; background: none; color: inherit; cursor: pointer; }
.menu-btn:hover { background: var(--hover, rgba(255,255,255,.08)); }
.menu-btn:focus-visible { outline: 2px solid #ffd21f; outline-offset: 2px; }
.menu-btn span, .menu-btn span::before, .menu-btn span::after { display: block; width: 22px; height: 2px; border-radius: 2px; background: var(--menu-ink, #e6eaff); transition: transform .15s, background .15s; }
.menu-btn span { position: relative; }
.menu-btn span::before, .menu-btn span::after { content: ""; position: absolute; left: 0; }
.menu-btn span::before { top: -7px; }
.menu-btn span::after { top: 7px; }
header.bar.open .menu-btn span { background: transparent; }
header.bar.open .menu-btn span::before { transform: translateY(7px) rotate(45deg); }
header.bar.open .menu-btn span::after { transform: translateY(-7px) rotate(-45deg); }

/* Five links and the Get started button fold below 860px. (.wide, for a longer menu, folds below 1120px.) */
@media (max-width: 860px) {
  .js header.bar .menu-btn { display: inline-flex; }
  .js header.bar nav.links { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; gap: 0; padding: 4px 16px 12px; background: var(--bar-solid, #111827); border-bottom: 1px solid var(--bar-line, rgba(255,255,255,.12)); font-size: 17px; }
  .js header.bar.open nav.links { display: flex; }
  .js header.bar nav.links a { padding: 13px 4px; border-top: 1px solid var(--line-soft, rgba(255,255,255,.08)); }
  .js header.bar nav.links a:first-child { border-top: 0; }
}
@media (max-width: 1120px) {
  .js header.bar.wide .menu-btn { display: inline-flex; }
  .js header.bar.wide nav.links { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; gap: 0; padding: 4px 16px 12px; background: var(--bar-solid, #111827); border-bottom: 1px solid var(--bar-line, rgba(255,255,255,.12)); font-size: 17px; }
  .js header.bar.wide.open nav.links { display: flex; }
  .js header.bar.wide nav.links a { padding: 13px 4px; border-top: 1px solid var(--line-soft, rgba(255,255,255,.08)); }
  .js header.bar.wide nav.links a:first-child { border-top: 0; }
}

/* On a phone the footer is one short line and the symbol; the links stay in the header menu. */
@media (max-width: 640px) {
  footer .wrap { flex-wrap: nowrap; gap: 12px; }
  footer .foot-right > span { display: none; }
}

/* Cards is another site: a small arrow says so. */
nav.links a.ext::after { content: "\2197" / ""; display: inline-block; margin-left: 3px; font-size: .9em; opacity: .8; }

/* The logo on the left; the links, Get started, the theme button and the menu button on the right.
   Get started stays in the bar when the links fold into the menu. */
header.bar .wrap > .logo { margin-right: auto; }
.nav-cta { order: 1; margin-left: 24px; padding: 8px 18px; border-radius: 999px; background: #ffd21f; color: #111827 !important; font-weight: 600; font-size: 15px; line-height: 1.3; text-decoration: none; white-space: nowrap; }
.nav-cta:hover { background: #ffdf55; }
.menu-btn { order: 2; margin-left: 8px; }
@media (max-width: 420px) { .nav-cta { margin-left: 12px; padding: 7px 14px; } }
