/* Header and footer of every oae.dev page and the test.oae.dev demo page, matched to
   rw.inc (menu, type, spacing). Standalone: no variables from site.css.
   Markup: site/partials/header.html and footer.html. Menu: assets/js/menu.js. */
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
@media (max-width: 600px) { .wrap { padding: 0 16px; } }

.top { position: sticky; top: 0; z-index: 10; border-bottom: 1px solid #d7dde6; background: rgba(255, 255, 255, 0.94); view-transition-name: site-nav; }
@supports (backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px)) {
  .top { background: rgba(255, 255, 255, 0.72); backdrop-filter: blur(20px) saturate(180%); -webkit-backdrop-filter: blur(20px) saturate(180%); }
}
/* The header edge appears as the page scrolls, as on rw.inc. */
@supports (animation-timeline: scroll()) {
  @media (prefers-reduced-motion: no-preference) {
    .top:not(.is-open) { border-bottom-color: transparent; animation: nav-edge linear both; animation-timeline: scroll(root block); animation-range: 0 48px; }
    @keyframes nav-edge { to { border-bottom-color: #d7dde6; box-shadow: 0 10px 24px -18px rgba(7, 15, 26, 0.18); } }
  }
}
/* Own type, so the page's styles don't leak in (the demo page has different ones). */
.top { font-size: 16px; line-height: 1.6; }
.nav a, .foot a { font-weight: 400; }
.bar { display: flex; align-items: center; justify-content: flex-start; gap: 24px; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: #070f1a; text-decoration: none; font-weight: 600; font-size: 16px; letter-spacing: -0.01em; }
.brand:hover { color: #070f1a; }
.brand img { display: block; }
.nav { display: flex; flex: 1; align-items: center; gap: 28px; }
.nav a { color: #4e5764; text-decoration: none; font-size: 14px; transition: color 160ms cubic-bezier(0.22, 1, 0.36, 1); }
.nav a:hover { color: #070f1a; }
.nav .nav-login { margin-left: auto; padding: 8px 16px; border: 1px solid #070f1a; border-radius: 6px; background: transparent; color: #070f1a; font-size: 14px; font-weight: 500; line-height: 1.3;
  transition: background 160ms cubic-bezier(0.22, 1, 0.36, 1), color 160ms cubic-bezier(0.22, 1, 0.36, 1), transform 160ms cubic-bezier(0.22, 1, 0.36, 1); }
.nav .nav-login:hover { background: #070f1a; color: #fff; }
.nav .nav-login:active { transform: scale(0.97); transition-duration: 90ms; }
.nav .nav-login[hidden] { display: none; }

.nav-toggle { display: none; width: 40px; height: 40px; margin-left: auto; padding: 0; border: 1px solid #c9ced6; border-radius: 6px; background: none;
  flex-direction: column; align-items: center; justify-content: center; gap: 5px; cursor: pointer; }
.nav-toggle-bar { display: block; width: 18px; height: 2px; border-radius: 1px; background: #070f1a; transition: transform 0.2s, opacity 0.15s; }
.top.is-open .nav-toggle-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.top.is-open .nav-toggle-bar:nth-child(2) { opacity: 0; }
.top.is-open .nav-toggle-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
@media (max-width: 880px) {
  .bar { flex-wrap: wrap; padding-top: 12px; padding-bottom: 12px; }
  .nav-toggle { display: flex; order: 2; }
  .nav { display: none; order: 4; flex-basis: 100%; flex-direction: column; align-items: stretch; gap: 4px; margin-top: 8px; padding: 12px 0 8px; border-top: 1px solid #e3e6ea; }
  .nav a { display: block; padding: 10px 0; font-size: 15px; color: #070f1a; }
  .nav .nav-login { align-self: flex-start; display: inline-block; margin: 4px 0 0; }
  .top.is-open { background: #fff; }
  .top.is-open .nav { display: flex; }
}

.foot { border-top: 1px solid #d7dde6; padding: 28px 0; color: #4e5764; font-size: 14px; line-height: 1.6; }
.foot-row { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.foot nav { display: flex; gap: 18px; flex-wrap: wrap; }
.foot a { color: #4e5764; text-decoration: none; transition: color 160ms cubic-bezier(0.22, 1, 0.36, 1); }
.foot a:hover { color: #070f1a; }
