/* ============ Animoir — the top nav shared by every page (Figma "Nav wrapper") ============
 * Self-contained on purpose: the legal pages use the old styles.css (no site.css
 * tokens) and load no web font, so the colours are set here and the font is
 * inherited from the page. Markup (copy it as is, adjust the hrefs per folder):
 *
 *   <header class="topnav">                       (+ topnav--static: not sticky)
 *     <div class="topnav__bar">
 *       <a class="topnav__brand">mark svg · name · sub</a>
 *       <nav class="topnav__links">…six links, aria-current="page" on the active one…</nav>
 *       <a class="topnav__cta"><span>Create<span class="topnav__more"> your film</span></span><span class="topnav__dot">↗</span></a>
 *       <details class="topnav__menu"><summary>☰</summary><nav class="topnav__sheet">…same links…</nav></details>
 *     </div>
 *   </header>
 *
 * Wide screens show the links inline; below 1080px they move into the menu
 * (a <details>, so it works without JavaScript; common.js closes it after a tap).
 */
/* The bar is as wide as the page content (.wrap = 75rem incl. 2rem padding each side), so it lines up with the cards below. */
.topnav{--tn-ink:#2B2350;--tn-muted:#6B6390;--tn-berry:#F2545B;--tn-white:#fff;
  position:sticky;top:0;z-index:40;padding:.625rem 1rem 0;pointer-events:none}
.topnav--static{position:relative}
.topnav__bar{pointer-events:auto;position:relative;max-width:var(--tn-wrap,71rem);margin:0 auto;display:flex;align-items:center;gap:.75rem;
  background:var(--tn-white);border:2px solid var(--tn-ink);border-radius:62.4375rem;box-shadow:0 .25rem 0 var(--tn-ink);
  padding:.375rem .375rem .375rem .875rem;min-height:3.75rem}
.topnav__brand{display:inline-flex;align-items:center;gap:.5rem;text-decoration:none;color:var(--tn-ink);margin-right:auto;min-width:0}
.topnav__brand svg{display:block;flex:none;width:2.25rem;height:2.25rem}
.topnav__name{font-size:1.25rem;font-weight:600;letter-spacing:-.03em;white-space:nowrap}
.topnav__sub{font-size:.625rem;font-weight:600;letter-spacing:.24em;color:var(--tn-muted);text-transform:uppercase;transform:translateY(.125rem)}
.topnav__links{display:none}
.topnav__links a,.topnav__sheet a{color:var(--tn-muted);text-decoration:none;font-weight:500;font-size:1rem}
.topnav__links a:hover,.topnav__sheet a:hover{color:var(--tn-ink)}
.topnav__links a[aria-current="page"],.topnav__sheet a[aria-current="page"]{color:var(--tn-berry);font-weight:600}
.topnav__cta{display:inline-flex;align-items:center;gap:.625rem;min-height:2.875rem;padding:0 .3125rem 0 1.125rem;border-radius:62.4375rem;flex:none;
  background:var(--tn-berry);color:#fff;border:2px solid var(--tn-ink);box-shadow:0 .1875rem 0 var(--tn-ink);
  font-weight:600;font-size:.9375rem;text-decoration:none;white-space:nowrap;transition:transform .12s ease,box-shadow .12s ease}
.topnav__cta:hover{transform:translateY(-.0625rem);box-shadow:0 .25rem 0 var(--tn-ink)}
.topnav__more{display:none}
.topnav__dot{width:2.125rem;height:2.125rem;border-radius:50%;background:rgba(255,255,255,.22);display:inline-flex;align-items:center;justify-content:center}
.topnav svg.tn-ico{width:1.125rem;height:1.125rem;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.topnav__menu{flex:none}
.topnav__menu > summary{list-style:none;cursor:pointer;width:2.875rem;height:2.875rem;border-radius:50%;border:2px solid var(--tn-ink);
  display:flex;align-items:center;justify-content:center;color:var(--tn-ink);background:var(--tn-white)}
.topnav__menu > summary::-webkit-details-marker{display:none}
.topnav__menu[open] > summary{background:var(--tn-ink);color:#fff}
.topnav__sheet{position:absolute;left:0;right:0;top:calc(100% + .625rem);display:grid;gap:.125rem;padding:.625rem;
  background:var(--tn-white);border:2px solid var(--tn-ink);border-radius:1.5rem;box-shadow:0 .25rem 0 var(--tn-ink)}
.topnav__sheet a{display:block;padding:.75rem .875rem;border-radius:.875rem;font-size:1.0625rem}
.topnav__sheet a:hover{background:#FFF6E5}
.topnav a:focus-visible,.topnav summary:focus-visible{outline:3px solid #FFC93C;outline-offset:3px}
/* phones: brand + "Create" + menu; the "Studio" tag, " your film" and the arrow return as room allows */
@media (max-width:639px){.topnav__sub{display:none}}
@media (max-width:399px){.topnav__dot{display:none}.topnav__cta{padding:0 1.125rem}}
@media (max-width:359px){.topnav__name{display:none}}   /* 320px phones: the logo alone (the link keeps aria-label) */
@media (min-width:560px){.topnav__more{display:inline}}
@media (min-width:640px){.topnav{padding:.875rem 2rem 0}.topnav__bar{padding:.5rem .5rem .5rem 1.375rem;min-height:4.25rem}.topnav__name{font-size:1.375rem}}
@media (min-width:1080px){
  .topnav__links{display:flex;gap:clamp(1.125rem,calc(2.4vw*var(--ui-scale,1)),2.25rem);margin-right:auto}
  .topnav__menu{display:none}
  .topnav__cta{min-height:3.25rem;font-size:1rem;padding:0 .375rem 0 1.5rem}
  .topnav__dot{width:2.375rem;height:2.375rem}
}
/* anchors land below the floating bar */
html{scroll-padding-top:6rem}
/* Hides while the reader scrolls down and comes back on the way up (common.js sets .is-hidden):
   the whole bar and its shadow move above the window, nothing of it stays inside. It is moved, not
   made invisible, so its links stay in the Tab order: focus inside it brings it back (common.js).
   With reduced motion it just appears and disappears, without the slide. */
.topnav{transition:transform .28s ease}
.topnav.is-hidden{transform:translateY(calc(-100% - .5rem))}
@media (prefers-reduced-motion:reduce){.topnav,.topnav__cta{transition:none}}
/* ---- the busy notice (common.js, switched in the operator console) ----
   A slim butter-yellow strip above the top nav, in the page flow (it scrolls away; the nav
   below it keeps its sticky / hide-on-scroll behaviour), and the same news as one line
   in the creator's Checkout step (.busy-note). Hidden unless the operator switched it on. */
.busybar{--tn-ink:#2B2350;background:#FFEFC7;color:var(--tn-ink);border-bottom:2px solid var(--tn-ink);
  padding:.5rem 1rem;font-size:.875rem;line-height:1.4}
.busybar__in{max-width:var(--tn-wrap,71rem);margin:0 auto;display:flex;align-items:center;gap:.625rem}
.busybar__text{margin:0;flex:1;min-width:0;font-weight:500}
.busybar svg,.busy-note svg{width:1.125rem;height:1.125rem;flex:none;fill:none;stroke:currentColor;stroke-width:1.6;
  stroke-linecap:round;stroke-linejoin:round}
.busybar__ico{display:inline-flex;flex:none}
.busybar__x{flex:none;display:inline-flex;align-items:center;justify-content:center;width:2rem;height:2rem;margin:-.25rem -.375rem -.25rem 0;
  border:0;border-radius:50%;background:transparent;color:inherit;cursor:pointer;padding:0}
.busybar__x:hover{background:rgba(43,35,80,.08)}
.busybar__x:focus-visible{outline:3px solid #FFC93C;outline-offset:1px;background:#fff}
@media (min-width:640px){.busybar{padding:.5rem 2rem}.busybar__in{justify-content:center}.busybar__text{flex:0 1 auto}}
.busy-note{display:flex;align-items:flex-start;gap:.5rem;margin:0;padding:.625rem .75rem;border-radius:.875rem;
  background:#FFEFC7;color:#2B2350;font-size:.875rem;line-height:1.4}
.busy-note svg{margin-top:.0625rem}
.busy-note[hidden]{display:none}
