/* =========================================================================
   WebShield site — shared chrome (nav, footer, page reset).
   Loaded on every page. Mirrors the composition's `MAINTENANCE · shared
   chrome` block so all seven pages share one nav + one footer.

   Fonts (Source Serif 4 / Inter / JetBrains Mono) are loaded directly in
   each page's <head> via <link rel="stylesheet"> with preconnect hints —
   NOT via @import here. @import would serialize the font fetch behind the
   download + parse of this file, causing visible FOUC on slow connections.

   Source:   docs/handoff/composition/index.html (inlined <style> block)
   Extracted: 2026-04-20
   Design system: WebShield Navy v1.2 (see docs/handoff/CHANGELOG.md)
   ========================================================================= */

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; background: var(--ws-page); color: var(--ws-ink); }
body {
  font-family: var(--ws-font-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
main { display: block; }
:target { scroll-margin-top: 80px; }

/* ── Shared nav ───────────────────────────────────────────────── */
.ws-nav {
  position: sticky; top: 0; z-index: 40;
  background: linear-gradient(90deg, var(--ws-ink) 0%, var(--ws-ink-deep) 100%);
  color: var(--ws-page);
  border-bottom: 1px solid rgba(138, 107, 46, 0.35);
  font-family: var(--ws-font-body);
}
.ws-nav__wrap {
  max-width: 1200px; margin: 0 auto;
  padding: 16px 48px;
  display: flex; align-items: center; justify-content: space-between;
}
.ws-nav__brand {
  color: var(--ws-page); text-decoration: none;
  display: flex; align-items: baseline; gap: 10px;
}
.ws-nav__brand-name {
  font-family: var(--ws-font-display);
  font-size: 20px; font-weight: 600; letter-spacing: -0.01em;
}
.ws-nav__brand-domain {
  font-family: var(--ws-font-mono); font-size: 10.5px;
  color: var(--ws-accent);
  letter-spacing: var(--ws-tracking-mono);
}
.ws-nav__links { display: flex; gap: 28px; }
.ws-nav__links a {
  color: var(--ws-page); text-decoration: none;
  font-size: 13px; font-weight: 500; letter-spacing: 0.01em;
  opacity: 0.88;
}
.ws-nav__links a:hover { opacity: 1; }
.ws-nav__links a[aria-current="page"] {
  opacity: 1;
  border-bottom: 1px solid var(--ws-accent);
  padding-bottom: 2px;
}

/* ── Footer ──────────────────────────────────────────────────── */
.ws-footer {
  background: var(--ws-ink);
  color: var(--ws-page);
  font-family: var(--ws-font-body);
  border-top: 2px solid var(--ws-accent);
}
.ws-footer__cols {
  max-width: 1200px; margin: 0 auto;
  padding: 56px 48px 44px;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr 1fr; /* brand + Quick Links + Resources + Ecosystem + Contact */
  gap: 36px;
}
.ws-footer__brand-name {
  font-family: var(--ws-font-display);
  font-size: 22px; font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 6px;
}
.ws-footer__brand-domain {
  font-family: var(--ws-font-mono); font-size: 11px;
  color: var(--ws-accent);
  letter-spacing: var(--ws-tracking-mono);
  margin-bottom: 16px;
}
.ws-footer__brand-desc {
  font-size: 13px; line-height: 1.55; opacity: 0.78; max-width: 320px;
}
.ws-footer__col-title {
  font-size: var(--ws-fs-label);
  letter-spacing: var(--ws-tracking-label);
  text-transform: uppercase;
  color: var(--ws-accent); font-weight: 600;
  margin-bottom: 16px;
}
.ws-footer__col a {
  color: var(--ws-page); text-decoration: none;
  font-size: 13px; opacity: 0.88;
  display: block; margin-bottom: 8px;
}
.ws-footer__copy {
  border-top: 1px solid rgba(246, 243, 236, 0.12);
  padding: 18px 48px;
  max-width: 1200px; margin: 0 auto;
  font-size: 12px; opacity: 0.6;
  font-family: var(--ws-font-mono);
  letter-spacing: var(--ws-tracking-mono);
}
.ws-footer__version {
  display: inline;
}
.ws-footer__version:not(:empty)::before {
  content: " · ";
}

/* Responsive — nav.
   Brand stays on row 1; links wrap to row 2 with comfortable gap.
   Content-driven breakpoint (issue #69): with loaded fonts the one-row
   8-item nav needs ~953px of viewport (brand 192px + links 665px + 2×48px
   gutters), and flex can't shrink it — every link is a single word. 1000px
   adds headroom for wider fallback-font metrics while fonts load. Revisit
   when nav items are added or removed. */
@media (max-width: 1000px) {
  .ws-nav__wrap {
    flex-wrap: wrap;
    row-gap: 12px;
  }
  .ws-nav__links {
    width: 100%;
    justify-content: flex-start;
    gap: 10px 22px;
    flex-wrap: wrap;
  }
}

/* Responsive — footer */
@media (max-width: 720px) {
  .ws-footer__cols { grid-template-columns: 1fr; gap: 28px; }
}

/* >>> nav-brand-mark (generated from brand/icon-system core mark) */
/* QPN core Crystal mark before the nav brand lockup — a currentColor mask of the
   mono mark, so it inherits the bone brand ink on the navy nav. First flex item
   in the existing display:flex brand; the brand's gap:10px spaces it. Same mark on
   every site (the ecosystem strip carries the property; this is the master glyph). */
.ws-nav__brand::before {
  content: "";
  flex: 0 0 auto;
  align-self: center;
  width: 28px;
  height: 28px;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2064%2064%22%3E%3Cpath%20d%3D%22M32%208%20L52.78%2020%20L52.78%2044%20L32%2056%20L11.22%2044%20L11.22%2020%20Z%22%20fill%3D%22none%22%20stroke%3D%22%23000%22%20stroke-width%3D%225%22%20stroke-linejoin%3D%22round%22%3E%3C%2Fpath%3E%3Cg%20stroke%3D%22%23000%22%20stroke-width%3D%222.6%22%20stroke-linecap%3D%22round%22%3E%3Cpath%20d%3D%22M32%2032%20L32%208%22%3E%3C%2Fpath%3E%3Cpath%20d%3D%22M32%2032%20L52.78%2020%22%3E%3C%2Fpath%3E%3Cpath%20d%3D%22M32%2032%20L11.22%2020%22%3E%3C%2Fpath%3E%3C%2Fg%3E%3Ccircle%20cx%3D%2232%22%20cy%3D%2232%22%20r%3D%226.4%22%20fill%3D%22%23000%22%3E%3C%2Fcircle%3E%3C%2Fsvg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2064%2064%22%3E%3Cpath%20d%3D%22M32%208%20L52.78%2020%20L52.78%2044%20L32%2056%20L11.22%2044%20L11.22%2020%20Z%22%20fill%3D%22none%22%20stroke%3D%22%23000%22%20stroke-width%3D%225%22%20stroke-linejoin%3D%22round%22%3E%3C%2Fpath%3E%3Cg%20stroke%3D%22%23000%22%20stroke-width%3D%222.6%22%20stroke-linecap%3D%22round%22%3E%3Cpath%20d%3D%22M32%2032%20L32%208%22%3E%3C%2Fpath%3E%3Cpath%20d%3D%22M32%2032%20L52.78%2020%22%3E%3C%2Fpath%3E%3Cpath%20d%3D%22M32%2032%20L11.22%2020%22%3E%3C%2Fpath%3E%3C%2Fg%3E%3Ccircle%20cx%3D%2232%22%20cy%3D%2232%22%20r%3D%226.4%22%20fill%3D%22%23000%22%3E%3C%2Fcircle%3E%3C%2Fsvg%3E") center / contain no-repeat;
}

/* Nav shows just the mark + QPN role name; the domain (tiny at 10.5px, and
   redundant with the browser address bar) is dropped from the nav. It stays in
   the footer, the conventional home for site identity. */
.ws-nav__brand-domain { display: none; }
/* <<< nav-brand-mark */
