/*
 * Header and footer styles for the s12 skin of shared/site-nav.ts: the server-
 * rendered /directory pages (functions) and the Next pages (website). The static
 * pages (website/public/styles/12) use their own site.css for the same markup.
 * Copied by scripts/sync-site-nav.cjs; edit THIS file only.
 *
 * Self-contained: its own tokens (--nv-*), so a page's own CSS cannot change the
 * chrome. 44px tap targets; text is AA on white (#4a5163 7.9:1, #2b4ce5 6.2:1).
 */
[data-site-nav], [data-site-footer] {
  --nv-text: #0a0e1a; --nv-muted: #4a5163; --nv-border: #e2e6ef; --nv-accent: #2b4ce5; --nv-accent-deep: #1b33a8; --nv-bg2: #f5f7fb;
  --nv-sans: "Hanken Grotesk", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif; --nv-mono: "JetBrains Mono", ui-monospace, monospace;
  font-family: var(--nv-sans); line-height: 1.5; box-sizing: border-box;
}
[data-site-nav] *, [data-site-footer] * { box-sizing: border-box; }

.s12-hd { position: sticky; top: 0; z-index: 40; background: rgba(255, 255, 255, 0.96); border-bottom: 1px solid var(--nv-border); color: var(--nv-text); }
.s12-hd .shell, .s12-ft .shell { width: 100%; max-width: 1200px; margin: 0 auto; padding-left: 32px; padding-right: 32px; }
/* Brand left, links centred in the bar, Sign in + CTA right (owner, 2026-10-28). */
.s12-hd__in { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 28px; height: 64px; }
.s12-hd__in > .s12-nav { justify-self: center; }
.s12-hd__in > .s12-cta, .s12-hd__in > .s12-m { justify-self: end; }
@media (max-width: 900px) { .s12-hd__in { display: flex; justify-content: space-between; } }
.s12-hd .brand { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; text-decoration: none; color: var(--nv-text); }
.s12-hd .brand__logo { width: 30px; height: 30px; border-radius: 50%; }
.s12-hd .brand__word { font-weight: 650; font-size: 17px; letter-spacing: -0.01em; }
.s12-nav { display: flex; gap: 2px; }
.s12-nav a, .s12-drawer a { text-decoration: none; }
.s12-nav a { display: inline-flex; align-items: center; min-height: 44px; font-size: 15px; font-weight: 500; color: var(--nv-muted); padding: 0 12px; border-radius: 8px; }
.s12-nav a:hover { background: var(--nv-bg2); color: var(--nv-text); }
.s12-nav a[aria-current], .s12-drawer a[aria-current] { color: var(--nv-accent); }
.s12-cta { margin-left: auto; display: flex; align-items: center; gap: 16px; }
.s12-si { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; font-size: 15px; font-weight: 500; color: var(--nv-muted); }
.s12-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; text-decoration: none; font: 600 14.5px/1 var(--nv-sans); padding: 0 16px; border-radius: 9px; background: var(--nv-accent); color: #fff !important; }
.s12-btn:hover { background: var(--nv-accent-deep); }
.s12-m { display: none; margin-left: auto; align-items: center; gap: 10px; }
.s12-btn--m { min-height: 36px; font-size: 13.5px; padding: 0 12px; border-radius: 8px; }
.s12-menu { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; background: #fff; border: 1px solid var(--nv-border); border-radius: 10px; color: var(--nv-text); cursor: pointer; }
.s12-menu__i { position: relative; display: block; width: 18px; height: 14px; }
.s12-menu__i i { position: absolute; left: 0; width: 18px; height: 2px; border-radius: 2px; background: currentColor; transition: transform .18s ease, opacity .18s ease; }
.s12-menu__i i:nth-child(1) { top: 0; } .s12-menu__i i:nth-child(2) { top: 6px; } .s12-menu__i i:nth-child(3) { top: 12px; }
.s12-menu[aria-expanded="true"] .s12-menu__i i:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.s12-menu[aria-expanded="true"] .s12-menu__i i:nth-child(2) { opacity: 0; }
.s12-menu[aria-expanded="true"] .s12-menu__i i:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
.s12-drawer[hidden] { display: none; }
.s12-drawer { display: grid; padding: 4px 32px 20px; border-top: 1px solid var(--nv-border); background: #fff; max-height: calc(100vh - 64px); overflow-y: auto; }
.s12-drawer a { display: flex; align-items: center; min-height: 48px; border-bottom: 1px solid var(--nv-border); font-weight: 500; color: var(--nv-text); }
.s12-drawer .s12-btn { margin-top: 16px; border: 0; min-height: 48px; color: #fff; }
/* Four nav items since 2026-10-28 (Map and Directory moved to the footer): 900px is enough. */
@media (max-width: 900px) { .s12-nav, .s12-cta { display: none; } .s12-m { display: flex; } }
@media (min-width: 901px) { .s12-drawer { display: none !important; } }
@media (max-width: 600px) { .s12-hd .shell, .s12-ft .shell { padding-left: 18px; padding-right: 18px; } .s12-drawer { padding-left: 18px; padding-right: 18px; } }

.s12-ft { margin-top: 72px; background: #fff; border-top: 1px solid var(--nv-border); font-size: 15px; color: var(--nv-muted); }
.s12-ft__in { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 32px; padding-top: 52px; padding-bottom: 72px; }
.s12-ft__b { font-weight: 650; color: var(--nv-text); margin: 0 0 6px; }
.s12-ft p { margin: 0 0 6px; }
.s12-ft h4 { margin: 0 0 12px; font: 600 12px var(--nv-sans); letter-spacing: 0.04em; text-transform: uppercase; color: var(--nv-muted); }
.s12-ft nav { display: grid; gap: 0; }
.s12-ft a { text-decoration: none; color: var(--nv-muted); }
.s12-ft nav a, .s12-ft p a { display: inline-block; padding: 10px 0; }
.s12-ft a:hover { color: var(--nv-accent); }
.s12-hd a:focus-visible, .s12-ft a:focus-visible, .s12-menu:focus-visible { outline: 3px solid var(--nv-accent); outline-offset: 2px; }
@media (max-width: 820px) { .s12-ft__in { grid-template-columns: 1fr 1fr; } .s12-ft__in > div:first-child { grid-column: 1 / -1; } }
