/* ──────────────────────────────────────────────────────────────
 * Network Lookup — shared "chrome" stylesheet (site.css)
 *
 * GENERATED FILE — DO NOT EDIT BY HAND.
 * Source of truth: functions/_lib/chrome-css.mjs (imported by chrome.ts for
 * Function pages). Regenerate after editing chrome with:
 *     node scripts/build-site-css.mjs --write
 * The build runs --check and fails the deploy if this file drifts from source.
 * ────────────────────────────────────────────────────────────── */

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 300 600;
  font-display: swap;
  src: url('/fonts/inter-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 300 600;
  font-display: swap;
  src: url('/fonts/jetbrains-mono-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Instrument Serif';
  font-style: normal;
  font-weight: 400;
  font-display: optional;
  src: url('/fonts/instrument-serif-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Instrument Serif';
  font-style: italic;
  font-weight: 400;
  font-display: optional;
  src: url('/fonts/instrument-serif-italic-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
  z-index: 1000;
  padding: 8px 16px;
  background: var(--accent);
  color: var(--bg);
  font-family: var(--mono);
  font-size: 12px;
  text-decoration: none;
}
.skip-link:focus {
  position: fixed;
  left: 16px;
  top: 16px;
  width: auto;
  height: auto;
  overflow: visible;
}
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
button[aria-disabled="true"] { opacity: 0.55; cursor: progress; }
.results-meta { font-family: var(--mono); font-size: 12px; color: var(--ink-mute); margin-top: 14px; }

:root {
  --bg: #0b0b0a;
  --bg-elev: #131312;
  --bg-card: #18171533;
  --line: #2a2826;
  --line-soft: #1f1d1b;
  --ink: #ece7dc;
  --ink-dim: #ddd7cb;
  --ink-mute: #c6c0b1;
  --accent: #c9ff3d;
  --accent-soft: #c9ff3d22;
  --good: #5dffa0;
  --good-soft: #5dffa022;
  --warn: #ffb84d;
  --warn-soft: #ffb84d22;
  --warn-wash: #ffb84d11;
  --danger: #ff5d5d;
  --bad: #ff5e5e;
  --bad-soft: #ff5e5e22;
  --hot: #ff4d4d;
  --serif: "Instrument Serif", "Times New Roman", serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", monospace;
  --sans: "Inter", system-ui, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
/* The two overflow-x declarations are deliberate — do NOT collapse them.
   Several chrome elements bleed past the viewport by design (.ambient, the
   .dd-panel dropdowns, the off-screen .skip-link), so the horizontal axis
   must be suppressed. But overflow-x:hidden forces the OTHER axis to compute
   as overflow-y:auto, which makes html/body a scroll container and silently
   kills position:sticky everywhere on the site (measured: a sticky strip sat
   at -691px instead of 0). overflow-x:clip suppresses the same overflow
   WITHOUT creating a scroll container, so overflow-y stays visible and sticky
   works. hidden stays first as the fallback for engines predating clip
   (Chrome <90 / Firefox <81 / Safari <16), which ignore the second
   declaration and keep the old behaviour exactly. */
html, body { background: var(--bg); color: var(--ink); font-family: var(--sans); font-size: 15px; line-height: 1.5; -webkit-font-smoothing: antialiased; overflow-x: hidden; overflow-x: clip; }
body::before { content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 100; opacity: 0.015; mix-blend-mode: overlay; background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' /%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' /%3E%3C/svg%3E"); }
.ambient { position: fixed; top: -20vw; right: -15vw; width: 70vw; height: 70vw; background: radial-gradient(circle, var(--accent-soft) 0%, transparent 55%); pointer-events: none; z-index: 0; filter: blur(40px); }
.container { max-width: 1280px; margin: 0 auto; padding: 0 32px; position: relative; z-index: 1; }
nav { display: flex; align-items: center; justify-content: space-between; padding: 28px 0; border-bottom: 1px solid var(--line-soft); }
.logo { display: flex; align-items: baseline; gap: 10px; font-family: var(--serif); font-size: 24px; letter-spacing: -0.02em; color: var(--ink); text-decoration: none; }
.logo .mark { width: 22px; height: 22px; filter: drop-shadow(0 0 10px rgba(201, 255, 61, 0.35)); animation: pulse 2.4s ease-in-out infinite; }
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:0.4} }
nav ul { display: flex; gap: 36px; list-style: none; font-family: var(--mono); font-size: 12px; letter-spacing: 0.05em; text-transform: uppercase; }
nav ul a { color: var(--ink-dim); text-decoration: none; transition: color 0.2s; }
nav ul a:hover { color: var(--ink); }
/* Nav dropdowns — Tools mega-menu + Guides flyout */
.nav-main { position: relative; }
/* Mobile hamburger nav (<900px) */
.nav-burger { display: none; align-items: center; justify-content: center; width: 42px; height: 42px; padding: 0; margin-left: auto; background: transparent; border: 1px solid var(--line); border-radius: 4px; color: var(--ink); cursor: pointer; -webkit-tap-highlight-color: transparent; }
.nav-burger:hover { border-color: var(--accent); color: var(--accent); }
.mnav-scrim { position: fixed; inset: 0; background: rgba(0,0,0,0.62); opacity: 0; pointer-events: none; transition: opacity 0.2s ease; z-index: 998; }
.mnav-panel { position: fixed; top: 0; right: 0; height: 100%; width: min(360px, 86vw); background: var(--bg-elev); border-left: 1px solid var(--line); transform: translateX(100%); transition: transform 0.24s ease; z-index: 999; display: flex; flex-direction: column; overflow-y: auto; -webkit-overflow-scrolling: touch; }
html.mnav-open .mnav-scrim { opacity: 1; pointer-events: auto; }
html.mnav-open .mnav-panel { transform: translateX(0); }
html.mnav-open, body.mnav-open { overflow: hidden; }
.mnav-head { display: flex; align-items: center; justify-content: space-between; padding: 22px 20px; border-bottom: 1px solid var(--line-soft); position: sticky; top: 0; background: var(--bg-elev); }
.mnav-title { font-family: var(--mono); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-mute); }
.mnav-close { width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center; background: transparent; border: 1px solid var(--line); border-radius: 4px; color: var(--ink); cursor: pointer; }
.mnav-close:hover { border-color: var(--accent); color: var(--accent); }
.mnav-body { padding: 8px 0 40px; }
.mnav-section-label { font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-mute); padding: 20px 20px 8px; }
.mnav-link { display: block; padding: 13px 20px; font-family: var(--sans); font-size: 16px; color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--line-soft); }
.mnav-link:hover { background: #1a1916; color: var(--accent); }
.mnav-acc { border-bottom: 1px solid var(--line-soft); }
.mnav-acc-btn { width: 100%; display: flex; align-items: center; justify-content: space-between; padding: 13px 20px; background: transparent; border: none; color: var(--ink); font-family: var(--sans); font-size: 16px; text-align: left; cursor: pointer; }
.mnav-acc-btn:hover { color: var(--accent); }
.mnav-acc-caret { font-size: 11px; color: var(--ink-mute); transition: transform 0.2s ease; }
.mnav-acc.open .mnav-acc-caret { transform: rotate(90deg); }
.mnav-acc.open .mnav-acc-btn { color: var(--accent); }
.mnav-acc-panel { display: none; background: #0d0d0c; padding: 4px 0 8px; }
.mnav-acc.open .mnav-acc-panel { display: block; }
.mnav-sub { display: block; padding: 10px 20px 10px 34px; font-size: 14px; color: var(--ink-dim); text-decoration: none; }
.mnav-sub:hover { color: var(--accent); }
@media (max-width: 900px) { .nav-burger { display: inline-flex; } }
@media (min-width: 901px) { .mnav-panel, .mnav-scrim { display: none !important; } }
.nav-main .has-dd { position: relative; }
.nav-main .dd-toggle {
  display: inline-flex; align-items: center; gap: 5px;
  background: none; border: none; margin: 0; padding: 0;
  font: inherit; letter-spacing: inherit; text-transform: inherit;
  color: var(--ink-dim); cursor: pointer;
  transition: color 0.2s;
}
.nav-main .dd-toggle:hover { color: var(--ink); }
.nav-main .dd-caret { font-size: 9px; opacity: 0.7; transition: opacity 0.2s, transform 0.2s; }
.nav-main .has-dd:hover .dd-caret { opacity: 1; }
.nav-main .has-dd:hover .dd-caret,
.nav-main .dd-toggle[aria-expanded="true"] .dd-caret { transform: rotate(180deg); }
.dd-panel {
  position: absolute; top: 100%; left: 0;
  padding-top: 12px;
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity 0.15s, visibility 0.15s;
  z-index: 60;
}
.has-dd:hover .dd-panel,
.dd-toggle[aria-expanded="true"] + .dd-panel { opacity: 1; visibility: visible; pointer-events: auto; }
.dd-panel > a {
  display: block; padding: 12px 18px;
  background: var(--bg-elev); border: 1px solid var(--line);
  font-family: var(--mono); font-size: 12px;
  color: var(--ink-dim); text-decoration: none;
  letter-spacing: 0.05em; text-transform: uppercase;
  min-width: 200px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.35);
  transition: color 0.15s, background 0.15s;
}
.dd-panel > a + a { border-top: none; }
.dd-panel > a:first-of-type { border-radius: 4px 4px 0 0; }
.dd-panel > a:last-of-type { border-radius: 0 0 4px 4px; }
.dd-panel > a:only-of-type { border-radius: 4px; }
.dd-panel > a:hover { color: var(--ink); background: #1a1916; }
/* Mega menu for Tools */
.dd-mega {
  left: 50%; transform: translateX(-50%);
  display: grid; grid-template-columns: repeat(3, minmax(190px, 1fr));
  background: var(--bg-elev); border: 1px solid var(--line);
  border-radius: 4px; box-shadow: 0 8px 24px rgba(0,0,0,0.35);
  overflow: hidden;
}
.dd-mega .dd-col {
  padding: 18px 22px;
  border-top: 1px solid var(--line-soft);
  border-left: 1px solid var(--line-soft);
}
.dd-mega .dd-col:nth-child(-n+3) { border-top: none; }
.dd-mega .dd-col:nth-child(3n+1) { border-left: none; }
.dd-mega .dd-cat {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.15em;
  text-transform: uppercase; color: var(--ink-mute);
  margin-bottom: 12px;
}
.dd-mega .dd-col a {
  display: block; padding: 10px 0;
  font-family: var(--mono); font-size: 12px;
  color: var(--ink-dim); text-decoration: none;
  letter-spacing: 0.02em; text-transform: none;
  transition: color 0.15s;
}
.dd-mega .dd-col a:hover { color: var(--ink); background: transparent; }
.dd-mega .dd-col a.dd-all {
  color: var(--accent); margin-top: 10px;
  padding-top: 10px; border-top: 1px solid var(--line-soft);
}
.dd-mega .dd-col a.dd-all:hover { color: var(--accent); opacity: 0.85; }
.crumbs { padding: 20px 0; font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; color: var(--ink-mute); text-transform: uppercase; }
.crumbs a { color: var(--ink-dim); text-decoration: none; border-bottom: 1px dashed transparent; transition: color 0.2s, border-color 0.2s; }
.crumbs a:hover { color: var(--accent); border-bottom-color: var(--accent); }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; align-items: baseline; margin: 0; padding: 0; }
.crumbs .sep { margin: 0 8px; }
.crumbs [aria-current="page"] { word-break: break-all; }

footer { border-top: 1px solid var(--line-soft); padding: 60px 0 40px; }
.foot-grid { display: grid; grid-template-columns: 1.3fr repeat(4, 1fr); gap: 48px; margin-bottom: 60px; }
.foot-grid .foot-h { font-family: var(--mono); font-size: 11px; font-weight: 600; letter-spacing: 0.15em; text-transform: uppercase; color: var(--ink-mute); margin-bottom: 20px; }
.foot-grid ul { list-style: none; }
.foot-grid ul li { margin-bottom: 12px; }
.foot-grid ul a { color: var(--ink-dim); text-decoration: none; font-size: 14px; transition: color 0.2s; }
.foot-grid ul a:hover { color: var(--ink); }
.foot-tag { font-family: var(--serif); font-size: 24px; line-height: 1.2; color: var(--ink-dim); margin-top: 16px; max-width: 320px; }
.foot-tag em { font-style: italic; color: var(--accent); }
.foot-bottom { display: flex; justify-content: space-between; padding-top: 32px; border-top: 1px solid var(--line-soft); font-family: var(--mono); font-size: 11px; color: var(--ink-mute); letter-spacing: 0.05em; flex-wrap: wrap; gap: 16px; }

@media (max-width: 900px) {
  .container { padding: 0 20px; }
  nav ul { display: none; }
  .foot-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
}

@media (prefers-reduced-motion: reduce) {
  .logo .mark { animation: none; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}

/* CALLOUT RAIL — the D1 primitive (Batch W) */
.answer-card, .ai-answer, .answer-snippet, .callout, .rv-lead, .warn-box,
.section.section-warn .prose p {
  padding: 22px 26px;
  border-radius: 0 4px 4px 0;
}
.answer-card, .ai-answer, .answer-snippet, .callout, .rv-lead {
  border-left: 2px solid var(--accent);
  background: linear-gradient(90deg, var(--accent-soft), transparent 70%);
}
.warn-box, .tldr-row.warn, .section.section-warn .prose p {
  border-left: 2px solid var(--warn);
  background: linear-gradient(90deg, var(--warn-wash), transparent 60%);
}
.rail-eyebrow, .ac-eyebrow, .rv-eyebrow {
  display: block;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 10px;
}
.warn-box .rail-eyebrow { color: var(--warn); }


/* DIRECTORY CTA — the "browse everything we've researched" block that sits under
   a hub's curated tiles and routes to the full directory. Hoisted here 2026-08-02
   when /port/ gained one: the rules had lived only in asn/index.html's inline
   block, so a second page using the component would have rendered it unstyled.
   Same reasoning as the Batch S2 cross-links hoist. */
.popular { padding: 56px 0 64px; border-top: 1px solid var(--line-soft); }
.popular-head { display: flex; align-items: end; justify-content: space-between; margin-bottom: 28px; flex-wrap: wrap; gap: 12px; }
.popular-head h2 { font-family: var(--serif); font-size: clamp(28px, 4vw, 40px); font-weight: 400; letter-spacing: -0.02em; line-height: 1; }
.popular-head h2 em { font-style: italic; color: var(--accent); }
.popular-head .sub { font-family: var(--mono); font-size: 11px; color: var(--ink-mute); letter-spacing: 0.1em; text-transform: uppercase; }
.dir-cta { display: block; border: 1px solid var(--line); border-radius: 2px; padding: 24px 26px; text-decoration: none; color: inherit; background: #0d0d0b; transition: background 0.2s, border-color 0.2s; max-width: 880px; }
.dir-cta:hover { background: #111109; border-color: var(--accent); }
.dir-cta .dc-num { font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); margin-bottom: 8px; }
.dir-cta .dc-name { font-family: var(--serif); font-size: 22px; color: var(--ink); line-height: 1.2; margin-bottom: 8px; }
.dir-cta .dc-desc { font-size: 14px; color: var(--ink-dim); line-height: 1.6; max-width: 640px; }
.dir-cta .dc-arrow { font-family: var(--mono); font-size: 11px; color: var(--accent); letter-spacing: 0.1em; text-transform: uppercase; margin-top: 14px; }

/* CROSS-LINKS — shared next-actions row (Batch S2) */
.cross-links { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; margin-top: 28px; }
.cross-link { display: block; padding: 18px 22px; border: 1px solid var(--line); border-radius: 2px; background: #0d0d0b; text-decoration: none; color: inherit; transition: background 0.2s, border-color 0.2s; }
.cross-link:hover { background: #111109; border-color: var(--accent); }
.cross-link .cl-eyebrow { font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); margin-bottom: 8px; }
.cross-link .cl-title { font-family: var(--serif); font-size: 17px; color: var(--ink); line-height: 1.3; }
.cross-link .cl-desc { font-size: 13px; color: var(--ink-dim); margin-top: 4px; line-height: 1.5; }
.entity-link { color: inherit; text-decoration: none; border-bottom: 1px dashed rgba(201, 255, 61, 0.4); transition: color 0.2s, border-color 0.2s; cursor: pointer; }
.entity-link:hover { color: var(--accent); border-bottom-color: var(--accent); }
@media (max-width: 900px) { .cross-links { grid-template-columns: 1fr; } }
@media (max-width: 900px) and (min-width: 560px) { .cross-links { grid-template-columns: repeat(2, 1fr); } }


/* HERO-LOOKUP — classify-and-go input (Batch B / O1) */
.hero-lookup { display: flex; gap: 10px; max-width: 470px; margin-bottom: 12px; }
.hero-lookup-input { flex: 1 1 auto; min-width: 0; font-family: var(--mono); font-size: 14px; color: var(--ink); background: var(--bg-elev); border: 1px solid var(--line); border-radius: 2px; padding: 13px 16px; transition: border-color 0.2s; }
.hero-lookup-input::placeholder { color: var(--ink-mute); }
.hero-lookup-input:focus { border-color: var(--accent); }
.hero-lookup-go { flex: 0 0 auto; font-family: var(--mono); font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; background: var(--accent); color: #0b0b0a; border: none; padding: 12px 22px; border-radius: 2px; cursor: pointer; transition: background 0.2s; }
.hero-lookup-go:hover { background: #d8ff5a; }
.hero-hint { font-family: var(--mono); font-size: 12px; color: var(--warn); letter-spacing: 0.01em; min-height: 18px; line-height: 1.5; }
.hero-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.hero-chip { font-family: var(--mono); font-size: 12px; color: var(--ink); background: var(--bg-elev); border: 1px solid var(--line); border-radius: 2px; padding: 4px 10px; cursor: pointer; transition: border-color 0.2s, color 0.2s; }
.hero-chip:hover, .hero-chip:focus-visible { border-color: var(--accent); color: var(--accent); }
@media (pointer: coarse) { .hero-chip { padding: 10px 14px; } }


/* FEATURED hub lead card (P2.6) — the flagship "start here" tool, pulled above
   any subgroups and spanning the full grid width with an accent frame. The base
   .tool-card rules stay inline per hub; these higher-specificity overrides ride
   the shared sheet. */
.tool-card[data-featured] { grid-column: 1 / -1; border-color: var(--accent); background: linear-gradient(180deg, #1b1a12ee, #100f0baa); }
/* Higher specificity than the inline .tool-card:hover (0,3,0 > 0,2,0) so the accent
   tint survives hover instead of reverting to the flat base hover background. */
.tool-card[data-featured]:hover { background: linear-gradient(180deg, #201f16ee, #14130eaa); border-color: var(--accent); }
.tool-card[data-featured] .tc-title { font-size: 28px; }
.tool-card[data-featured] .tc-desc { font-size: 15px; max-width: 62ch; }


/* REFERENCE TABLE (P2.8) — the house semantic table for scannable reference
   artifacts in hub explainer content. Scoped .ref-table (never a bare .article
   table, which would override the existing per-page .cheat-table/.vlsm-table).
   Each table is wrapped in .table-scroll for horizontal overflow on narrow screens. */
.table-scroll { overflow-x: auto; margin: 0 0 24px; max-width: 720px; }
.ref-table { width: 100%; border-collapse: collapse; font-family: var(--mono); font-size: 12px; }
.ref-table th, .ref-table td { padding: 8px 12px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.ref-table th { font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-mute); background: #0c0c0a; font-weight: 500; }
.ref-table td { color: var(--ink-dim); line-height: 1.5; }
.ref-table td:first-child { color: var(--accent); white-space: nowrap; }
.ref-table code { font-size: 12px; word-break: break-word; }

