/* Site chrome: the one nav and the one footer for every public page. Tokens (--ink, --accent, --accent-dark, --line, --muted, --soft, --serif) come from the page's own stylesheet. */
nav.top {
  line-height: 1.5;
  position: sticky;
  top: 0;
  background: rgba(247, 247, 245, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 10;
  gap: 16px;
}
nav.top .brand { font-family: var(--serif); font-weight: 700; font-size: 18px; color: var(--ink); white-space: nowrap; }
nav.top .brand .dot { color: var(--accent); }
nav.top .links { display: flex; gap: 20px; align-items: center; }
nav.top .links a { color: var(--ink); font-size: 14px; text-decoration: none; }
nav.top .links a:hover { color: var(--accent); }
nav.top .cta {
  background: var(--accent); color: #fff; padding: 8px 14px; border-radius: 6px;
  font-size: 14px; font-weight: 500;
  white-space: nowrap;
}
nav.top .cta:hover { background: var(--accent-dark); text-decoration: none; }

/* Mobile menu toggle, only visible below the breakpoint. Three-line
   hamburger; tap toggles the dropdown menu on .links. */
nav.top .menu-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 10px 12px;
  min-width: 44px;
  min-height: 44px;
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
  color: var(--ink);
}
nav.top .menu-toggle:hover { border-color: var(--accent); color: var(--accent); }

@media (max-width: 720px) {
  nav.top { padding: 12px 16px; gap: 8px; }
  nav.top .menu-toggle { display: inline-flex; align-items: center; }
  /* Link group becomes a dropdown panel anchored under the nav bar; hidden
     by default, shown when [data-open="true"]. CTA is hoisted out of the
     collapsible group so it stays visible inline at all viewports. */
  nav.top .links {
    position: absolute;
    top: 100%;
    right: 16px;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 8px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
    min-width: 160px;
    display: none;
  }
  nav.top .links[data-open="true"] { display: flex; }
  nav.top .links a:not(.cta) { padding: 8px 10px; border-radius: 4px; font-size: 15px; }
  nav.top .links a:not(.cta):hover { background: var(--soft); }
  /* Hide the in-dropdown CTA on mobile, the inline .cta-mobile button
     above already covers that affordance, no need to repeat it. */
  nav.top .links a.cta { display: none; }
  /* CTA stays inline in the nav bar on mobile, outside the dropdown. */
  nav.top .cta-mobile {
    display: inline-flex; align-items: center;
    background: var(--accent); color: #fff;
    padding: 7px 12px; border-radius: 6px;
    font-size: 13px; font-weight: 500;
    white-space: nowrap; text-decoration: none;
  }
}
@media (min-width: 721px) {
  nav.top .cta-mobile { display: none; }
}
nav.top .nav-cta { background: var(--accent); color: #fff; padding: 8px 16px; border-radius: 9px; font-weight: 600; }
nav.top .nav-cta:hover { background: var(--accent-dark); color: #fff; text-decoration: none; }
nav.top .brand:hover { text-decoration: none; }

footer {
  padding: 48px 24px;
  border-top: 1px solid var(--line);
  text-align: center;
  color: var(--muted);
  font-size: 13px;
}
footer a { color: var(--muted); margin: 0 10px; display: inline-block; padding: 8px 4px; }
footer a:hover { color: var(--ink); }
