/* The new site's bar on the old site's pages (the owner, 10 November 2026:
   "every other page needs the exact same navbar as the homepage"). A static
   copy of components/site-header.tsx and its menu,
   components/ui/motion-navigation-menu.tsx, measure for measure: the same
   column edges, the same frosted glass, the same triggers with a highlight
   that slides between them, one dropdown that moves under the open trigger
   and changes size between menus, the same panels and icons (Lucide's), and
   the same phone menu. scripts/postbuild.py swaps it in for the old nav and
   links this file and bar.js. Sizes are the home page's own Tailwind sizes in
   rem: the old pages and the home page both set the root to 15px above
   900px, so a rem is the same on both. Change it when site-header.tsx
   changes. */
.apb {
  --apb-gut: 16px; --apb-ink: #0F0F0F; --apb-soft: #2e2e2e; --apb-muted: #6B6A66; --apb-line: rgb(0 0 0 / 0.08);
  --apb-ease: cubic-bezier(0.23, 1, 0.32, 1); --apb-spring: cubic-bezier(0.2, 0.9, 0.25, 1);
  position: fixed; z-index: 100; top: 10px;
  left: max(var(--apb-gut), calc((100vw - 1200px) / 2 + var(--apb-gut)));
  right: max(var(--apb-gut), calc((100vw - 1200px) / 2 + var(--apb-gut)));
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  min-height: 64px; padding: 0 16px; margin: 0; color: var(--apb-ink);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Helvetica Neue", Arial, sans-serif;
  font-weight: 400; line-height: 1.5; letter-spacing: normal; text-align: start;
  -webkit-font-smoothing: antialiased;
}
@media (min-width: 768px) { .apb { --apb-gut: 32px; } }
@media (min-width: 900px) { .apb { --apb-gut: 30px; } }
/* under 360px the figure stands for the name, so the store button and the
   menu keep their room in every language (12 November 2026) */
@media (max-width: 359px) { .apb { padding: 0 6px 0 12px; gap: 8px; } .apb-name span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; } }
.apb::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: 10px;
  background: rgb(171 171 171 / .1); box-shadow: 0 2px 10px rgb(0 0 0 / .1);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.apb *, .apb *::before, .apb *::after { box-sizing: border-box; }
:where(.apb) a { color: inherit; text-decoration: none; }
:where(.apb) ul { list-style: none; margin: 0; padding: 0; }
:where(.apb) :is(b, small) { font: inherit; }
:where(.apb) button { font: inherit; color: inherit; background: none; border: 0; margin: 0; padding: 0; cursor: pointer; }
.apb svg { display: block; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.apb-side { flex: 1 1 0; display: flex; align-items: center; }
.apb-name { display: flex; align-items: center; gap: 8px; white-space: nowrap; }
.apb-name img { width: 22px; height: 22px; display: block; }
.apb-name span { font-weight: 600; font-size: 19px; line-height: 1; letter-spacing: -0.02em; }
.apb-end { justify-content: flex-end; gap: 8px; }
@media (min-width: 640px) { .apb-end { gap: 16px; } }

/* The triggers, with one highlight that slides to the one under the pointer. */
.apb-nav { position: relative; display: flex; flex: 1 1 0; max-width: max-content; align-items: center; justify-content: center; }
.apb-list { position: relative; display: flex; align-items: center; justify-content: center; gap: 0.25rem; }
.apb-list > li { position: relative; z-index: 1; }
.apb-list > .apb-hl {
  position: absolute; z-index: 0; top: 0; left: 0; height: 2.25rem; width: 0; border-radius: 0.375rem;
  background: rgb(0 0 0 / 0.05); opacity: 0; pointer-events: none;
  transition: transform .35s var(--apb-spring), width .35s var(--apb-spring), opacity .2s var(--apb-ease);
}
.apb-trig {
  display: inline-flex; align-items: center; justify-content: center; height: 2.25rem; width: max-content;
  padding: 0.5rem 1rem; border-radius: 0.375rem; font-size: 0.875rem; line-height: 1.25rem; font-weight: 500;
  color: var(--apb-soft) !important; transition: color .15s;
}
.apb-trig:hover, .apb-trig[aria-expanded="true"], .apb-trig:focus-visible { color: var(--apb-ink) !important; }
.apb-trig:focus-visible { outline: 1px solid var(--apb-ink); box-shadow: 0 0 0 3px rgb(15 15 15 / .2); }
.apb-chev { display: inline-flex; margin-inline-start: 0.375rem; transition: transform .4s cubic-bezier(0.3, 1.3, 0.5, 1); }
.apb-chev svg { width: 0.875rem; height: 0.875rem; stroke-width: 2.5; }
.apb-trig[aria-expanded="true"] .apb-chev { transform: translateY(1px) rotate(180deg); }

/* The dropdown: one pane under the open trigger, sized to its menu. */
/* an invisible bridge over the gap between the triggers and the pane, so the
   pointer stays inside the menu on its way down */
.apb-nav::after { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 0.875rem; pointer-events: none; }
.apb-nav:has(.apb-vp[data-open])::after { pointer-events: auto; }
.apb-vp {
  position: absolute; top: 100%; left: 50%; z-index: 50; margin-top: 0.375rem; overflow: hidden;
  border: 1px solid rgb(0 0 0 / .1); border-radius: 0.75rem; background: rgb(255 255 255 / .85);
  box-shadow: 0 24px 60px -24px rgb(0 0 0 / .25); -webkit-backdrop-filter: blur(24px); backdrop-filter: blur(24px);
  color: var(--apb-ink); opacity: 0; transform: translateX(-50%) scale(.95); transform-origin: 50% 0;
  pointer-events: none; visibility: hidden;
  transition: opacity .25s var(--apb-ease), transform .35s var(--apb-spring), left .35s var(--apb-spring),
    width .35s var(--apb-spring), height .35s var(--apb-spring), visibility 0s .35s;
}
.apb-vp[data-open] { opacity: 1; transform: translateX(-50%) scale(1); pointer-events: auto; visibility: visible; transition-delay: 0s; }
.apb-vp[data-snap] { transition: opacity .25s var(--apb-ease), transform .35s var(--apb-spring); }
.apb-c { position: absolute; top: 0; left: 0; padding: 0.5rem 0.625rem 0.5rem 0.5rem; opacity: 0; visibility: hidden; transition: opacity .2s var(--apb-ease), transform .3s var(--apb-spring), visibility 0s .3s; }
.apb-c[data-on] { position: relative; opacity: 1; visibility: visible; transition-delay: 0s; }
.apb-c[data-from="1"] { transform: translateX(-30%); }
.apb-c[data-from="-1"] { transform: translateX(30%); }
.apb-chl { position: absolute; z-index: 0; top: 0; left: 0; border-radius: 0.5rem; background: rgb(0 0 0 / 0.05); opacity: 0; pointer-events: none; transition: transform .3s var(--apb-spring), width .3s var(--apb-spring), height .3s var(--apb-spring), opacity .15s; }
.apb-l { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 0.25rem; padding: 0.5rem; border-radius: 0.125rem; font-size: 0.875rem; line-height: 1.25rem; color: var(--apb-ink); outline: none; }
.apb-l:focus-visible { box-shadow: 0 0 0 3px rgb(15 15 15 / .2); }
.apb-l b { font-weight: 500; font-size: 0.875rem; line-height: 1.25rem; color: var(--apb-ink); display: block; }
.apb-l small { display: block; font-size: 0.75rem; line-height: 1rem; color: var(--apb-muted); }
.apb-ibox { display: flex; align-items: center; justify-content: center; width: 2rem; height: 2rem; border: 1px solid var(--apb-line); border-radius: 0.5rem; color: var(--apb-ink); flex: none; }
.apb-ibox--9 { width: 2.25rem; height: 2.25rem; background: #fff; }
.apb-ibox svg { width: 1rem; height: 1rem; }
.apb-sp1 > * + * { margin-top: 0.25rem; }
.apb-sp05 > * + * { margin-top: 0.125rem; }

.apb-faiths { display: grid; width: 500px; grid-template-columns: 1fr 1.25fr; gap: 0.5rem; }
.apb-card { min-height: 11rem; justify-content: space-between; padding: 1rem; border-radius: 0.5rem; background: rgb(0 0 0 / 0.035); }
.apb-stack { display: grid; gap: 0.125rem; align-content: start; }
.apb-row { display: flex !important; align-items: center; justify-content: space-between; gap: 0.5rem; }
.apb-arrow { width: 0.75rem; height: 0.75rem; color: var(--apb-muted); }
.apb-times { display: grid; width: 480px; grid-template-columns: 1fr 1fr; gap: 0.25rem; }
.apb-il { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 0.75rem; }
.apb-year { display: grid; width: 460px; grid-template-columns: 1fr 1fr; gap: 0.125rem; }
.apb-cal { display: flex !important; align-items: center; gap: 0.5rem; }
.apb-cal svg { width: 0.875rem; height: 0.875rem; color: var(--apb-muted); }

/* "Get it free": the brand orange, square. */
.apb-get {
  display: inline-flex; align-items: center; justify-content: center; height: 34px; padding: 0 22px; border-radius: 0;
  font: 600 13px/1 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
  white-space: nowrap; color: #fff !important; background: #FF4D00; transition: background-color .15s;
}
@media (hover: hover) and (pointer: fine) { .apb-get:hover { background: color-mix(in oklab, #000 10%, #FF4D00); } }
.apb-get:active { scale: .97; transition-duration: 90ms; }
.apb-get:focus-visible { outline: 2px solid #0F0F0F; outline-offset: 3px; }
/* the name's link reaches 44pt under a thumb without looking any bigger (12 November 2026) */
@media (pointer: coarse) { .apb-name { position: relative; } .apb-name::after { content: ""; position: absolute; inset: -11px -4px; } }
@media (pointer: coarse) { .apb-get { position: relative; } .apb-get::after { content: ""; position: absolute; inset: -5px -2px; } }

/* The phone menu: the round button, then a full-width pane under the bar. */
.apb-mob { display: none; }
.apb-menu { display: flex; align-items: center; justify-content: center; width: 2.75rem; height: 2.75rem; margin-inline-end: -0.5rem; border-radius: 9999px; }
.apb-menu svg { width: 1.25rem; height: 1.25rem; }
.apb-menu .apb-i-close, .apb-menu[aria-expanded="true"] .apb-i-open { display: none; }
.apb-menu[aria-expanded="true"] .apb-i-close { display: block; }
.apb-sheet {
  position: absolute; left: 0; right: 0; top: 100%; margin-top: 0.5rem; padding: 0.25rem 1rem 1rem;
  border: 1px solid rgb(0 0 0 / .1); border-radius: 0.75rem; background: rgb(255 255 255 / .9);
  box-shadow: 0 24px 60px -24px rgb(0 0 0 / .25); -webkit-backdrop-filter: blur(24px); backdrop-filter: blur(24px);
  opacity: 0; transform: translateY(-6px); visibility: hidden; pointer-events: none;
  transition: opacity 180ms var(--apb-ease), transform 180ms var(--apb-ease), visibility 0s 180ms;
}
.apb-sheet[data-open] { opacity: 1; transform: none; visibility: visible; pointer-events: auto; transition: opacity 180ms var(--apb-ease), transform 180ms var(--apb-ease); }
.apb-sheet li + li { border-top: 1px solid rgb(0 0 0 / 0.06); }
.apb-sheet li a { display: flex; align-items: center; min-height: 3rem; font-size: 15px; color: var(--apb-soft); }
.apb-sheet li a:hover, .apb-sheet li a[aria-current] { color: var(--apb-ink); }
.apb-get--wide { display: flex; width: 100%; height: 44px; margin-top: 1rem; font-size: 14px; }

@media (max-width: 1023px) { .apb-nav { display: none; } .apb-mob { display: block; } }
@media (prefers-reduced-transparency: reduce) { .apb::before, .apb-vp, .apb-sheet { background: #fff; backdrop-filter: none; -webkit-backdrop-filter: none; } }
@media (prefers-reduced-motion: reduce) { .apb *, .apb-vp, .apb-sheet { transition-duration: 0s !important; } }
@media print { .apb { display: none; } }

/* Right to left (Arabic and Hebrew, 10 November 2026): the bar follows the
   page's direction, as the new home's does; the diagonal arrows turn round,
   and a panel slides in from the other side. */
[dir="rtl"] .apb-arrow { transform: scaleX(-1); }
[dir="rtl"] .apb-c[data-from="1"] { transform: translateX(30%); }
[dir="rtl"] .apb-c[data-from="-1"] { transform: translateX(-30%); }

/* Over a photograph (12 November 2026, the owner: "the navbar text should
   be white, for readability, and then when scrolled down, on the white
   background, make it black again"): bar.js marks the bar data-tone="dark"
   while its middle lies over a page's opening photo, as the home page's bar
   does over the film. Only the bar's own words turn white; the dropdown and
   the phone sheet are white panels and keep their ink. */
.apb-name span, .apb-trig, .apb-menu { transition: color .25s var(--apb-ease); }
.apb::before { transition: opacity .35s var(--apb-ease), background .25s var(--apb-ease); }
/* Over a photo opening, no panel: only the words on the picture; it fades
   back once the page under it is white (the owner, 13 November 2026, after
   The North Face; until then dark glass). */
.apb[data-tone="dark"]::before { opacity: 0; }
.apb[data-tone="dark"] :is(.apb-name span, .apb-list .apb-trig, .apb-menu) { text-shadow: 0 1px 14px rgb(0 0 0 / .45); }
.apb[data-tone="dark"] .apb-name span,
.apb[data-tone="dark"] .apb-list .apb-trig,
.apb[data-tone="dark"] .apb-list .apb-trig:hover,
.apb[data-tone="dark"] .apb-list .apb-trig[aria-expanded="true"],
.apb[data-tone="dark"] .apb-list .apb-trig:focus-visible,
.apb[data-tone="dark"] .apb-menu { color: #fff !important; }
.apb[data-tone="dark"] .apb-list > .apb-hl { background: rgb(255 255 255 / 0.16); }
.apb[data-tone="dark"] .apb-list .apb-trig:focus-visible { outline-color: #fff; box-shadow: 0 0 0 3px rgb(255 255 255 / .25); }
