/* Shared site header + footer (injected from /partials by tools/build-partials.mjs).
   Self-contained: does not depend on the template's style.css, Bootstrap, or jQuery. */
:root {
    --na-ink: #0f172a;
    --na-ink-2: #334155;
    --na-muted: #64748b;
    --na-line: #e2e8f0;
    --na-bg: #ffffff;
    --na-brand: #667eea;
    --na-brand-2: #764ba2;
    --na-footer-bg: #0b1120;
    --na-footer-ink: #cbd5e1;
    --na-radius: 10px;
    --na-font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

.na-container { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 20px; box-sizing: border-box; }

.na-skip { position: absolute; left: -9999px; top: 0; z-index: 10000; background: var(--na-ink); color: #fff; padding: 10px 16px; border-radius: 0 0 8px 0; }
.na-skip:focus { left: 0; color: #fff; }

/* ---------- Header ---------- */
header.na-header { position: sticky; top: 0; z-index: 1000; background: rgba(255,255,255,0.96); backdrop-filter: saturate(180%) blur(8px); border-bottom: 1px solid var(--na-line); font-family: var(--na-font); }
.na-header *, .na-footer * { box-sizing: border-box; }
.na-header__bar { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 72px; }
.na-logo { display: inline-flex; align-items: center; flex-shrink: 0; }
.na-logo img { height: 37px; width: auto; display: block; }

.na-nav { display: flex; align-items: center; gap: 28px; }
.na-menu, .na-sub { list-style: none; margin: 0; padding: 0; }
.na-menu { display: flex; align-items: center; gap: 4px; }
.na-menu__item { position: relative; }
.na-menu__link { display: inline-flex; align-items: center; gap: 6px; padding: 10px 12px; border: 0; background: none; font: 600 15px/1.2 var(--na-font); color: var(--na-ink); text-decoration: none; cursor: pointer; border-radius: 8px; }
.na-menu__link:hover, .na-menu__link:focus-visible, .na-menu__link[aria-expanded="true"] { color: var(--na-brand); background: #f1f5ff; }
.na-caret { width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-2px); transition: transform .2s; }
[aria-expanded="true"] > .na-caret { transform: rotate(-135deg) translateY(-1px); }

.na-sub { position: absolute; top: calc(100% + 8px); left: 0; min-width: 320px; padding: 8px; background: #fff; border: 1px solid var(--na-line); border-radius: 12px; box-shadow: 0 16px 40px rgba(15,23,42,.12); opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .15s, transform .15s, visibility .15s; }
.na-has-sub.is-open > .na-sub { opacity: 1; visibility: visible; transform: none; }
@media (hover: hover) and (min-width: 1100px) {
    .na-has-sub:hover > .na-sub, .na-has-sub:focus-within > .na-sub { opacity: 1; visibility: visible; transform: none; }
}
.na-sub a { display: block; padding: 10px 12px; border-radius: 8px; text-decoration: none; color: var(--na-ink); }
.na-sub a:hover, .na-sub a:focus-visible { background: #f5f7ff; }
.na-sub strong { display: block; font: 600 14px/1.3 var(--na-font); }
.na-sub small { display: block; margin-top: 2px; font: 400 12.5px/1.4 var(--na-font); color: var(--na-muted); }

.na-cta { display: flex; align-items: center; gap: 10px; }
.na-btn { display: inline-flex; align-items: center; justify-content: center; padding: 10px 18px; border-radius: 8px; font: 600 14px/1.2 var(--na-font); text-decoration: none; white-space: nowrap; transition: transform .15s, box-shadow .15s; }
.na-btn--primary { color: #fff; background: linear-gradient(135deg, var(--na-brand), var(--na-brand-2)); box-shadow: 0 6px 18px rgba(102,126,234,.35); }
.na-btn--primary:hover { color: #fff; transform: translateY(-1px); }
.na-btn--ghost { color: var(--na-ink); border: 1.5px solid var(--na-line); }
.na-btn--ghost:hover { color: var(--na-brand); border-color: var(--na-brand); }

/* align-items: stretch overrides accessibility.css's global `button { align-items: center }`, which collapses the bars. */
.na-burger { display: none; width: 44px; height: 44px; padding: 12px 10px; border: 1px solid var(--na-line); border-radius: 8px; background: #fff; cursor: pointer; flex-direction: column; justify-content: space-between; align-items: stretch; }
.na-burger span { display: block; height: 2px; background: var(--na-ink); border-radius: 2px; transition: transform .2s, opacity .2s; }
.na-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.na-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.na-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

:where(.na-header, .na-footer) a:focus-visible, :where(.na-header, .na-footer) button:focus-visible { outline: 3px solid var(--na-brand); outline-offset: 2px; }

@media (max-width: 1099px) {
    header.na-header { backdrop-filter: none; background: #fff; }
    .na-burger { display: flex; }
    /* Absolute (not fixed): the sticky header is the containing block, so the panel always starts right under it,
       even when a bar above the header (e.g. the persona bar) shifts it down. */
    .na-header .na-nav { position: absolute; top: 100%; left: 0; right: 0; height: calc(100vh - 72px); height: calc(100dvh - 72px); display: none; flex-direction: column; align-items: stretch; gap: 16px; padding: 8px 20px 32px; background: #fff; border-top: 1px solid var(--na-line); overflow-y: auto; box-shadow: 0 20px 30px rgba(15,23,42,.08); }
    .na-header.is-open .na-nav { display: flex; }
    .na-menu { flex-direction: column; align-items: stretch; }
    .na-menu__link { width: 100%; justify-content: space-between; padding: 14px 8px; font-size: 16px; border-bottom: 1px solid var(--na-line); border-radius: 0; }
    .na-sub { position: static; min-width: 0; display: none; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 4px 0 8px 8px; }
    .na-has-sub.is-open > .na-sub { display: block; }
    .na-cta { flex-direction: column; align-items: stretch; }
    .na-btn { padding: 14px 18px; font-size: 15px; }
    body.na-lock { overflow: hidden; }
}

/* ---------- Footer ---------- */
.na-footer { background: var(--na-footer-bg); color: var(--na-footer-ink); font-family: var(--na-font); padding-top: 64px; }
.na-footer__grid { display: grid; grid-template-columns: 1.6fr repeat(4, 1fr); gap: 40px; padding-bottom: 48px; }
.na-footer__brand img { height: 37px; width: auto; filter: brightness(0) invert(1); }
.na-footer__brand p { margin: 18px 0 20px; font-size: 14px; line-height: 1.7; color: #94a3b8; max-width: 340px; }
.na-footer h2 { margin: 0 0 16px; font: 700 13px/1.3 var(--na-font); letter-spacing: .08em; text-transform: uppercase; color: #fff; }
.na-footer ul { list-style: none; margin: 0; padding: 0; }
.na-footer li { margin-bottom: 10px; font-size: 14px; line-height: 1.5; }
.na-footer a { color: var(--na-footer-ink); text-decoration: none; }
.na-footer a:hover { color: #fff; text-decoration: underline; }
.na-footer__contact li { color: #94a3b8; }
.na-social { display: flex; gap: 10px; }
.na-social a { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,.08); }
.na-social a:hover { background: var(--na-brand); text-decoration: none; }
.na-footer__bottom { border-top: 1px solid rgba(255,255,255,.08); padding: 20px 0; font-size: 13px; color: #94a3b8; }
.na-footer__bottom-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; }
.na-footer__bottom p { margin: 0; }
.na-footer__bottom ul { display: flex; gap: 20px; }
.na-footer__bottom li { margin: 0; font-size: 13px; }
.na-linkbtn { background: none; border: 0; padding: 0; min-width: 0; min-height: 0; font: inherit; color: var(--na-footer-ink); cursor: pointer; }
.na-linkbtn:hover { color: #fff; text-decoration: underline; }

@media (max-width: 991px) { .na-footer__grid { grid-template-columns: 1fr 1fr; } .na-footer__brand { grid-column: 1 / -1; } }
@media (max-width: 520px) { .na-footer__grid { grid-template-columns: 1fr; gap: 28px; } }

/* "New" badge in menus */
.na-new { display: inline-block; margin-left: 6px; padding: 1px 7px; border-radius: 999px; font: 600 10.5px/1.6 var(--na-font); letter-spacing: .04em; text-transform: uppercase; color: #4f46e5; background: #eef0ff; vertical-align: 1px; }
