/* ============================================================
   NeighborSeek v2 — design tokens and base components
   Scoped entirely under html.ns-v2.
   Add the class to <html> to apply; remove it to revert instantly.
   Nothing here touches markup, handlers, forms or logic.
   Source of truth: the "NeighborSeek Visual Redesign" canvas, sheet 1.
   ============================================================ */

html.ns-v2 {
  /* Colour — seven tokens, that's all */
  --ns-ground:  #0D0F13;   /* page */
  --ns-surface: #171B22;   /* cards, inputs */
  --ns-raised:  #11141A;   /* hero panels, emphasised bands */
  --ns-line:    #262C36;   /* borders, rules */
  --ns-line-hi: #39414F;   /* borders on emphasised panels */
  --ns-text:    #F7F5F1;   /* 15.3:1 on ground */
  --ns-muted:   #9BA3B0;   /* 7.1:1 — captions, labels */
  --ns-dim:     #7B8696;   /* 5.0:1 — footnotes only, never body */
  --ns-gold:    #E0A53F;   /* the ONE action colour */
  --ns-gold-hi: #F0BC63;   /* hover */
  --ns-good:    #7BC496;   /* "within budget" only. Never anything else. */
  --ns-on-gold: #0D0F13;   /* text on gold */

  /* Type — two faces */
  --ns-display: "Fraunces", Georgia, "Times New Roman", serif;
  --ns-body:    "Public Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* Spacing and shape */
  --ns-gutter: 56px;
  --ns-gutter-phone: 20px;
  --ns-r-btn: 8px;
  --ns-r-input: 10px;
  --ns-r-card: 12px;
  --ns-r-panel: 18px;
}

/* Fonts: load once in <head>. Both are Google Fonts. */
/* <link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,500;9..144,700&family=Public+Sans:wght@400;500;700&display=swap"> */

/* ---------- Base ---------- */
html.ns-v2 body {
  background: var(--ns-ground);
  color: var(--ns-text);
  font-family: var(--ns-body);
  font-size: 16px;
  line-height: 1.55;
}
html.ns-v2 h1, html.ns-v2 h2, html.ns-v2 h3 {
  font-family: var(--ns-display);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.06;
  margin: 0 0 0.4em;
}
html.ns-v2 h1 { font-size: clamp(36px, 4.2vw, 60px); }
html.ns-v2 h2 { font-size: clamp(26px, 2.6vw, 34px); letter-spacing: -0.015em; }
html.ns-v2 h3 { font-family: var(--ns-body); font-size: 18px; letter-spacing: 0; line-height: 1.3; }
html.ns-v2 p  { margin: 0 0 1em; }
html.ns-v2 a  { color: var(--ns-gold); }
html.ns-v2 a:hover { color: var(--ns-gold-hi); }

/* Page gutter — apply to section wrappers */
html.ns-v2 .ns-section { padding: 56px var(--ns-gutter); border-bottom: 1px solid var(--ns-line); }
@media (max-width: 640px) { html.ns-v2 .ns-section { padding: 28px var(--ns-gutter-phone); } }

/* ---------- Text roles ---------- */
html.ns-v2 .ns-lede   { font-size: clamp(17px, 1.5vw, 20px); color: #D3D8E0; max-width: 44em; }
html.ns-v2 .ns-muted  { color: var(--ns-muted); }
html.ns-v2 .ns-foot   { color: var(--ns-dim); font-size: 13px; }
html.ns-v2 .ns-eyebrow {
  font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase;
  font-weight: 700; color: var(--ns-muted); margin: 0 0 8px;
}
html.ns-v2 .ns-eyebrow--gold { color: var(--ns-gold); }

/* The number that matters — one per screen */
html.ns-v2 .ns-hero-number {
  font-family: var(--ns-display); font-weight: 700; letter-spacing: -0.015em;
  font-size: clamp(26px, 2.9vw, 40px); line-height: 1.16;
}
html.ns-v2 .ns-hero-number em { font-style: normal; color: var(--ns-gold); }

/* ---------- Panels ---------- */
html.ns-v2 .ns-panel {
  background: var(--ns-raised); border: 1px solid var(--ns-line-hi);
  border-radius: var(--ns-r-panel); padding: 34px 36px;
}
html.ns-v2 .ns-card {
  background: var(--ns-surface); border: 1px solid var(--ns-line);
  border-radius: var(--ns-r-card); padding: 24px;
}
@media (max-width: 640px) {
  html.ns-v2 .ns-panel { padding: 20px; }
  html.ns-v2 .ns-card  { padding: 18px; }
}

/* ---------- Buttons ---------- */
html.ns-v2 .ns-btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; padding: 14px 24px; border-radius: var(--ns-r-btn);
  font: 700 16px/1 var(--ns-body); cursor: pointer; text-decoration: none;
  border: 1px solid transparent;
}
html.ns-v2 .ns-btn--primary   { background: var(--ns-gold); color: var(--ns-on-gold); }
html.ns-v2 .ns-btn--primary:hover { background: var(--ns-gold-hi); color: var(--ns-on-gold); }
html.ns-v2 .ns-btn--secondary { background: transparent; color: var(--ns-text); border-color: var(--ns-line-hi); }
html.ns-v2 .ns-btn--block     { width: 100%; }

/* Selectable chip (route picker, pay-grade picker) */
html.ns-v2 .ns-chip {
  min-height: 40px; padding: 9px 15px; border-radius: 999px;
  font: 400 14px/1 var(--ns-body); cursor: pointer;
  background: transparent; color: #D3D8E0; border: 1px solid var(--ns-line-hi);
}
html.ns-v2 .ns-chip[aria-pressed="true"], html.ns-v2 .ns-chip.is-selected {
  background: var(--ns-gold); color: var(--ns-on-gold); border-color: var(--ns-gold); font-weight: 700;
}

/* ---------- Inputs ---------- */
html.ns-v2 .ns-label {
  display: block; font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--ns-muted); font-weight: 700; margin: 0 0 7px;
}
html.ns-v2 .ns-label small { text-transform: none; letter-spacing: 0; font-weight: 400; color: var(--ns-dim); }
html.ns-v2 .ns-input {
  width: 100%; background: var(--ns-ground); color: var(--ns-text);
  border: 1px solid #343C48; border-radius: var(--ns-r-input);
  padding: 14px 15px; font: 400 16px/1.3 var(--ns-body); /* 16px so phones don't zoom */
}
html.ns-v2 .ns-input:focus { outline: none; border: 2px solid var(--ns-gold); padding: 13px 14px; }
html.ns-v2 .ns-input::placeholder { color: var(--ns-dim); }

/* Form row: fields side by side on desktop, stacked on phones */
html.ns-v2 .ns-form-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; }
html.ns-v2 .ns-form-row > .ns-field { flex: 1 1 200px; min-width: 0; }
html.ns-v2 .ns-form-row > .ns-btn   { flex: 0 0 auto; }

/* Consent line — same everywhere */
html.ns-v2 .ns-consent { margin: 14px 0 0; font-size: 13px; line-height: 1.55; color: var(--ns-dim); max-width: 46em; }

/* ---------- The neighborhood card: the atomic unit of the site ---------- */
html.ns-v2 .ns-hood { background: var(--ns-surface); border: 1px solid #2E3540; border-radius: var(--ns-r-card); overflow: hidden; }
html.ns-v2 .ns-hood__photo { height: 100px; background: #1E242D; object-fit: cover; width: 100%; display: block; }
html.ns-v2 .ns-hood__body  { padding: 15px 17px; }
html.ns-v2 .ns-hood__name  { margin: 0 0 4px; font-size: 16px; font-weight: 700; }
html.ns-v2 .ns-hood__price { margin: 0 0 8px; font-size: 21px; font-weight: 700; color: var(--ns-good); }
html.ns-v2 .ns-hood__meta  { margin: 0; font-size: 13px; color: var(--ns-muted); }
html.ns-v2 .ns-hood-grid   { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 900px) { html.ns-v2 .ns-hood-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { html.ns-v2 .ns-hood-grid { grid-template-columns: 1fr; } }

/* ---------- Tables ---------- */
html.ns-v2 .ns-table-wrap { overflow-x: auto; border: 1px solid var(--ns-line); border-radius: 13px; }
html.ns-v2 .ns-table { width: 100%; border-collapse: collapse; min-width: 640px; }
html.ns-v2 .ns-table th, html.ns-v2 .ns-table td { text-align: left; padding: 14px 18px; border-bottom: 1px solid var(--ns-line); font-size: 16px; }
html.ns-v2 .ns-table th { font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ns-muted); font-weight: 700; }
html.ns-v2 .ns-table tr:last-child td { border-bottom: 0; }
html.ns-v2 .ns-table .is-good { color: var(--ns-good); }

/* ---------- Agent block ---------- */
html.ns-v2 .ns-agent { display: flex; gap: 14px; align-items: center; }
html.ns-v2 .ns-agent__photo { width: 54px; height: 54px; border-radius: 50%; object-fit: cover; border: 1px solid #2E3540; flex: 0 0 auto; }
html.ns-v2 .ns-agent__text  { margin: 0; font-size: 13px; line-height: 1.5; color: #B6BCC7; }
html.ns-v2 .ns-agent__text strong { color: var(--ns-text); }

/* ---------- Never ---------- */
/* No box-shadow. No gradients. No emoji as icons. No red.
   Gold on more than one thing per screen means one of them is wrong. */

/* ============================================================
   Adapters: tokens mapped onto existing template classes.
   Added Oct 12 2026. Presentation only; no markup logic depends on these.
   ============================================================ */

/* Visibility gate for v2-only decoration (also inlined in each template so it holds if this file fails to load) */
.ns-v2-only { display: none; }
html.ns-v2 .ns-v2-only { display: flex; }

/* Gold is for the action. Inline text links read as text with a quiet underline. */
html.ns-v2 .content a, html.ns-v2 .faq-a a, html.ns-v2 .sources a, html.ns-v2 .related a {
  color: var(--ns-text); text-decoration: underline; text-decoration-color: var(--ns-line-hi); text-underline-offset: 3px;
}
html.ns-v2 .content a:hover { color: var(--ns-gold-hi); text-decoration-color: var(--ns-gold); }

/* ---------- Corridor pages: /move/{slug}/ and /move/ ---------- */
html.ns-v2 nav.ns-nav { background: var(--ns-ground) !important; border-bottom: 1px solid var(--ns-line) !important; padding: 16px 24px !important; }
html.ns-v2 nav.ns-nav > a:first-child { font-family: var(--ns-display) !important; font-weight: 700 !important; color: var(--ns-text) !important; letter-spacing: -0.01em; }
html.ns-v2 nav.ns-nav > a:first-child span { color: var(--ns-text) !important; }
html.ns-v2 nav.ns-nav > a[href^="sms:"] { color: var(--ns-muted) !important; font-weight: 500 !important; }

html.ns-v2 .hero { background: var(--ns-ground); border-bottom: 0; text-align: left; max-width: 828px; margin: 0 auto; padding: 48px 24px 4px; }
html.ns-v2 .hero-tag { background: none; padding: 0; border-radius: 0; font-size: 12px; letter-spacing: 0.12em; font-weight: 700; color: var(--ns-muted); margin: 0 0 12px; }
html.ns-v2 .hero h1 { max-width: none; margin: 0 0 14px; color: var(--ns-text); font-weight: 700; }
html.ns-v2 .hero h1 em { color: var(--ns-text); }
html.ns-v2 .hero-sub { font-size: clamp(17px, 1.5vw, 20px); color: #D3D8E0; max-width: 44em; margin: 0; }

/* Content column; the price translation and first capture are lifted to the top by order (DOM order unchanged). */
html.ns-v2 .content { display: flex; flex-direction: column; padding: 20px 24px 72px; }
html.ns-v2 .content > .breadcrumb   { order: -10; }
html.ns-v2 .content > .answer       { order: -9; }
html.ns-v2 .content > .verified     { order: -8; }
html.ns-v2 .content > .ns-hero-block { order: -7; }
html.ns-v2 .breadcrumb, html.ns-v2 .breadcrumb a { color: var(--ns-dim); font-size: 13px; text-decoration: none; }
html.ns-v2 .content p { color: #D3D8E0; }
html.ns-v2 .answer { background: none; border: 0; padding: 0; margin: 4px 0 10px; font-size: clamp(17px, 1.5vw, 19px); line-height: 1.55; color: var(--ns-text) !important; }
html.ns-v2 .verified { color: var(--ns-dim); font-size: 13px; margin: 0 0 22px; }
html.ns-v2 .content h2 { font-family: var(--ns-display); font-weight: 700; color: var(--ns-text); border-bottom: 1px solid var(--ns-line); margin: 48px 0 16px; padding-bottom: 10px; line-height: 1.12; }
html.ns-v2 .content h3 { font-family: var(--ns-body); color: var(--ns-text); }

/* Hero block = translation panel + capture directly beneath */
html.ns-v2 .ns-hero-block { margin: 0 0 8px; }
html.ns-v2 .ns-translation { background: var(--ns-raised); border: 1px solid var(--ns-line-hi); border-radius: var(--ns-r-panel); padding: 34px 36px 24px; }
html.ns-v2 .ns-translation > h2:first-child { margin-top: 0; border-bottom: 0; padding-bottom: 0; }
html.ns-v2 .ns-translation .stat-row { background: none; border: 0; padding: 0; margin: 18px 0 22px; gap: 28px 40px; }
html.ns-v2 .ns-translation .stat-num { font-family: var(--ns-display); font-size: clamp(26px, 2.9vw, 40px); line-height: 1.1; letter-spacing: -0.015em; }
html.ns-v2 .ns-translation .stat:last-child .stat-num { color: var(--ns-good); }   /* neighborhoods within the budget */

/* Stats elsewhere */
html.ns-v2 .stat-row { background: var(--ns-surface); border: 1px solid var(--ns-line); border-radius: var(--ns-r-card); }
html.ns-v2 .stat-num { color: var(--ns-text); font-weight: 700; font-variant-numeric: tabular-nums; }
html.ns-v2 .stat-lbl { color: var(--ns-muted); font-size: 12px; letter-spacing: 0.08em; }

/* Source lines */
html.ns-v2 .src, html.ns-v2 .content p.src { color: var(--ns-dim); font-size: 13px; margin-top: 0; }
html.ns-v2 .sources, html.ns-v2 .related { color: var(--ns-muted); font-size: 14px; }

/* Tables -> .ns-table */
html.ns-v2 .tw { overflow-x: auto; border: 1px solid var(--ns-line); border-radius: 13px; margin: 10px 0 14px; }
html.ns-v2 table.t { margin: 0; font-size: 16px; }
html.ns-v2 table.t th, html.ns-v2 table.t td { padding: 14px 18px; border-bottom: 1px solid var(--ns-line); }
html.ns-v2 table.t th { font-size: 12px; letter-spacing: 0.1em; color: var(--ns-muted); font-weight: 700; }
html.ns-v2 table.t tr:last-child td { border-bottom: 0; }
html.ns-v2 table.t td.n { font-variant-numeric: tabular-nums; }
html.ns-v2 table.t .src { font-size: 13px; }
html.ns-v2 #taxes + .tw tr:last-child td { font-weight: 700; color: var(--ns-text); }   /* dollars a year */
html.ns-v2 .ns-translation .tw { background: var(--ns-ground); }

/* Capture -> card, ns-input, ns-btn--primary */
html.ns-v2 .capture { background: var(--ns-surface); border: 1px solid var(--ns-line-hi); border-radius: var(--ns-r-panel); padding: 28px 30px; margin: 14px 0 26px; }
html.ns-v2 .capture h3 { font-family: var(--ns-display); font-size: clamp(22px, 2.2vw, 28px); line-height: 1.15; margin: 0 0 8px; letter-spacing: -0.015em; }
html.ns-v2 .capture p.h { color: #B6BCC7; font-size: 15px; margin: 0 0 14px; }
html.ns-v2 .capture .row { gap: 12px; margin: 0 0 4px; }
html.ns-v2 .capture input, html.ns-v2 .capture select {
  background: var(--ns-ground); color: var(--ns-text); border: 1px solid #343C48; border-radius: var(--ns-r-input);
  padding: 14px 15px; font: 400 16px/1.3 var(--ns-body); margin: 4px 0;
}
html.ns-v2 .capture input:focus, html.ns-v2 .capture select:focus { outline: none; border: 2px solid var(--ns-gold); padding: 13px 14px; }
html.ns-v2 .capture input::placeholder { color: var(--ns-dim); }
html.ns-v2 .capture .c-email { order: -1; }   /* email first; validation already accepts email or phone */
html.ns-v2 .capture button {
  background: var(--ns-gold); color: var(--ns-on-gold); border: 1px solid transparent; border-radius: var(--ns-r-btn);
  min-height: 44px; padding: 14px 24px; font: 700 16px/1 var(--ns-body); margin-top: 12px;
}
html.ns-v2 .capture button:hover { background: var(--ns-gold-hi); }
html.ns-v2 .capture .consent { color: var(--ns-dim); font-size: 13px; line-height: 1.55; margin: 14px 0 0; max-width: 46em; }
html.ns-v2 .capture .consent a, html.ns-v2 .capture .alt a { color: var(--ns-muted); }
html.ns-v2 .capture .alt { color: var(--ns-muted); font-size: 14px; margin: 10px 0 0; }
html.ns-v2 .capture .ok { color: var(--ns-text); font-weight: 700; }
html.ns-v2 .capture .err { color: var(--ns-text); font-weight: 700; border-left: 3px solid var(--ns-line-hi); padding-left: 10px; margin-top: 10px; }
html.ns-v2 .capture .ns-agent { margin: 18px 0 0; padding-top: 16px; border-top: 1px solid var(--ns-line); }

/* FAQ */
html.ns-v2 .faq-item { border-top: 1px solid var(--ns-line); padding: 18px 0; }
html.ns-v2 .faq-q { color: var(--ns-text); font-size: 17px; font-weight: 700; }
html.ns-v2 .faq-a { color: #D3D8E0; font-size: 16px; line-height: 1.6; }

/* State corridors */
html.ns-v2 .metro { border-top: 1px solid var(--ns-line); }

/* Footer (inline styles in the template, hence !important) */
html.ns-v2 .footer { border-top: 1px solid var(--ns-line) !important; color: var(--ns-dim) !important; font-size: 13px !important; }
html.ns-v2 .footer a { color: var(--ns-muted) !important; }

@media (max-width: 640px) {
  html.ns-v2 .hero { padding: 28px 20px 0; }
  html.ns-v2 .content { padding: 14px 20px 56px; }
  html.ns-v2 .ns-translation { padding: 20px; }
  html.ns-v2 .capture { padding: 20px; }
  html.ns-v2 .capture button { width: 100%; }
  html.ns-v2 table.t th, html.ns-v2 table.t td { padding: 12px 12px; font-size: 15px; }
  html.ns-v2 .ns-translation .stat-row { gap: 18px 28px; }
}
/* ---------- Homepage (/): v2 hero replaces the wordmark hero; everything below is re-skinned ---------- */
html.ns-v2 .hero { background: var(--ns-ground); text-align: left; padding: 40px 24px 8px; margin-top: 60px; }
html.ns-v2 .hero-grid { display: none; }
html.ns-v2 .hero-inner { max-width: 880px; align-items: stretch; }
html.ns-v2 .hero-logo, html.ns-v2 .hero-slogan, html.ns-v2 .search-wrap, html.ns-v2 .city-chips-row, html.ns-v2 .search-hint,
html.ns-v2 .hero-inner > a[href="#browse-by-state"], html.ns-v2 .hero-inner > a[href="#browse-by-state"] + div { display: none !important; }
html.ns-v2 .ns-home-hero { display: block !important; width: 100%; }
html.ns-v2 .ns-home-h1 { font-family: var(--ns-display); font-weight: 700; letter-spacing: -0.02em; line-height: 1.06; font-size: clamp(36px, 4.2vw, 60px); margin: 0 0 14px; max-width: 14em; }
html.ns-v2 .ns-home-hero .ns-lede { margin: 0 0 22px; }
html.ns-v2 .ns-home-form { margin: 0 0 14px; }
html.ns-v2 .ns-home-form .ns-field--budget { flex: 0 1 190px; }
html.ns-v2 .ns-home-form .ns-btn { min-height: 48px; }
html.ns-v2 .ns-home-routes { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 0 0 18px; font-size: 14px; }
html.ns-v2 .ns-home-answer { margin: 0 0 16px; }
html.ns-v2 .ns-home-answer .ns-hero-number { margin: 0 0 18px; }
html.ns-v2 .ns-home-answer .ns-hood-grid { margin: 0 0 18px; }
html.ns-v2 .ns-hood { color: var(--ns-text); text-decoration: none; display: block; }
html.ns-v2 .ns-hood__price.is-over { color: var(--ns-text); }
html.ns-v2 .ns-answer-links { display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: center; margin: 0 0 12px; }
html.ns-v2 .ns-answer-link { color: var(--ns-text); text-decoration: underline; text-decoration-color: var(--ns-line-hi); text-underline-offset: 3px; font-size: 15px; }
html.ns-v2 .ns-home-hero .ns-agent { margin: 6px 0 22px; }

/* Nav: one gold action per screen, so the nav button goes secondary */
html.ns-v2 nav { background: var(--ns-ground) !important; border-bottom: 1px solid var(--ns-line) !important; }
html.ns-v2 nav .logo-text, html.ns-v2 nav .logo-text span { color: var(--ns-text); font-family: var(--ns-display); font-weight: 700; }
html.ns-v2 nav .logo svg rect[fill="#E8614A"] { fill: var(--ns-muted); }
html.ns-v2 nav .logo svg rect[fill="#F5A623"] { fill: var(--ns-text); }
html.ns-v2 #nav-quiz-btn { background: transparent !important; color: var(--ns-text) !important; border: 1px solid var(--ns-line-hi); font-weight: 500 !important; }

/* State grid becomes a chip row under the hero */
html.ns-v2 .state-picker-wrap { margin: 0; padding: 0; background: none; border: 0; width: 100%; }
html.ns-v2 .state-picker-hd { font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 700; color: var(--ns-muted); text-align: left; margin: 0 0 10px; }
html.ns-v2 .state-grid { display: flex; flex-wrap: wrap; gap: 8px; }
html.ns-v2 .state-card { background: transparent; border: 1px solid var(--ns-line-hi); border-radius: 999px; padding: 9px 15px; min-height: 40px; color: #D3D8E0; display: inline-flex; align-items: center; }
html.ns-v2 .state-card:hover { border-color: var(--ns-text); transform: none; }
html.ns-v2 .state-flag { display: none; }
html.ns-v2 .state-abbr { font-size: 14px; font-weight: 400; color: inherit; letter-spacing: 0; }
html.ns-v2 .state-more { grid-column: auto !important; flex: 0 0 auto; background: none; border: 0; color: var(--ns-muted); text-decoration: underline; text-underline-offset: 3px; padding: 9px 4px; }

/* Trust chips: the green dot would mean "within budget" in v2, so it goes neutral */
html.ns-v2 .chip { background: transparent; border-color: var(--ns-line); color: var(--ns-muted); }
html.ns-v2 .chip-dot { background: var(--ns-line-hi); }

/* Journey cards, military cards, tax callout, guide cards -> .ns-card tokens; gold accents become text */
html.ns-v2 .hpath, html.ns-v2 .mil-card, html.ns-v2 .guide-card, html.ns-v2 .tax-card { background: var(--ns-surface) !important; border: 1px solid var(--ns-line) !important; border-radius: var(--ns-r-card) !important; }
html.ns-v2 .hpath:hover, html.ns-v2 .mil-card:hover, html.ns-v2 .guide-card:hover { border-color: var(--ns-line-hi) !important; transform: none; }
html.ns-v2 .hpath-arrow, html.ns-v2 .mil-link, html.ns-v2 .guide-link, html.ns-v2 .guide-market, html.ns-v2 .tax-eyebrow, html.ns-v2 .military-badge { color: var(--ns-muted) !important; }
html.ns-v2 .military-badge { background: transparent; border: 1px solid var(--ns-line-hi); }
html.ns-v2 .military-section, html.ns-v2 .military-inner { background: var(--ns-ground) !important; border-color: var(--ns-line) !important; }
html.ns-v2 .tax-cta { background: transparent !important; color: var(--ns-text) !important; border: 1px solid var(--ns-line-hi); border-radius: var(--ns-r-btn); }
html.ns-v2 .military-title, html.ns-v2 .guides-title, html.ns-v2 .tax-title, html.ns-v2 main h2 { font-family: var(--ns-display); font-weight: 700; letter-spacing: -0.015em; color: var(--ns-text); }
html.ns-v2 .hpath-title, html.ns-v2 .mil-title, html.ns-v2 .guide-title { color: var(--ns-text); }
html.ns-v2 .hpath-sub, html.ns-v2 .mil-sub, html.ns-v2 .guide-desc, html.ns-v2 .tax-sub, html.ns-v2 .military-sub, html.ns-v2 .guides-sub { color: var(--ns-muted) !important; }
html.ns-v2 main a[href^="/"][style*="rgba(255,255,255,.04)"] { background: var(--ns-surface) !important; border-color: var(--ns-line) !important; }

/* Emoji -> inline stroke icons (currentColor via mask). The emoji text stays in the DOM, collapsed to 0 width. */
html.ns-v2 .ns-emoji { display: inline-block; width: 1.1em; height: 1.1em; vertical-align: -0.15em; font-size: inherit; color: transparent; position: relative; overflow: hidden; }
html.ns-v2 .hpath-icon.ns-emoji, html.ns-v2 .ns-emoji[data-i] { color: transparent; }
html.ns-v2 .hpath-icon, html.ns-v2 .mil-icon { font-size: 22px; }
html.ns-v2 .tax-icon { font-size: 30px; }
html.ns-v2 .ns-emoji::after { content: ""; position: absolute; inset: 0; background: var(--ns-muted); -webkit-mask: var(--ns-ico) center / contain no-repeat; mask: var(--ns-ico) center / contain no-repeat; }
html.ns-v2 .ns-emoji[data-i="home"]     { --ns-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 11l9-8 9 8'/%3E%3Cpath d='M5 10v10h14V10'/%3E%3Cpath d='M10 20v-6h4v6'/%3E%3C/svg%3E"); }
html.ns-v2 .ns-emoji[data-i="coins"]    { --ns-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round'%3E%3Cellipse cx='12' cy='6' rx='8' ry='3'/%3E%3Cpath d='M4 6v6c0 1.7 3.6 3 8 3s8-1.3 8-3V6'/%3E%3Cpath d='M4 12v6c0 1.7 3.6 3 8 3s8-1.3 8-3v-6'/%3E%3C/svg%3E"); }
html.ns-v2 .ns-emoji[data-i="shield"]   { --ns-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linejoin='round'%3E%3Cpath d='M12 3l8 3v6c0 5-3.5 8-8 9-4.5-1-8-4-8-9V6z'/%3E%3C/svg%3E"); }
html.ns-v2 .ns-emoji[data-i="flag"]     { --ns-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 21V4'/%3E%3Cpath d='M5 4h12l-2 4 2 4H5'/%3E%3C/svg%3E"); }
html.ns-v2 .ns-emoji[data-i="calc"]     { --ns-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round'%3E%3Crect x='5' y='3' width='14' height='18' rx='2'/%3E%3Cpath d='M8 7h8M8 12h2M12 12h2M16 12h0M8 16h2M12 16h2M16 16h0'/%3E%3C/svg%3E"); }
html.ns-v2 .ns-emoji[data-i="building"] { --ns-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 21h18'/%3E%3Cpath d='M4 10h16'/%3E%3Cpath d='M12 3l8 7H4z'/%3E%3Cpath d='M6 10v11M10 10v11M14 10v11M18 10v11'/%3E%3C/svg%3E"); }
html.ns-v2 .ns-emoji[data-i="star"]     { --ns-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linejoin='round'%3E%3Cpath d='M12 3l2.8 5.8 6.2.9-4.5 4.4 1.1 6.3L12 17.4 6.4 20.4l1.1-6.3L3 9.7l6.2-.9z'/%3E%3C/svg%3E"); }
html.ns-v2 .ns-emoji[data-i="leaf"], html.ns-v2 .ns-emoji[data-i="sun"], html.ns-v2 .ns-emoji[data-i="mountain"], html.ns-v2 .ns-emoji[data-i="music"] { display: none; }
html.ns-v2 .military-badge .ns-emoji { display: none; }

/* Footer */
html.ns-v2 footer { border-top: 1px solid var(--ns-line); color: var(--ns-dim); }
html.ns-v2 .eeat-block { background: var(--ns-surface); border: 1px solid var(--ns-line); }
html.ns-v2 .footer-links a { color: var(--ns-muted); }

@media (max-width: 640px) {
  html.ns-v2 .hero { padding: 24px 20px 8px; }
  html.ns-v2 .ns-home-form .ns-btn { width: 100%; }
  html.ns-v2 .ns-home-form .ns-field--budget { flex: 1 1 200px; }
}

/* ---------- Base pages (/pcs/{base}/): pay-grade chips are the hero control, the verdict is the headline ---------- */
html.ns-v2 .ns-base nav.ns-nav a.brand, html.ns-v2 .ns-base nav.ns-nav a.brand span { color: var(--ns-text); font-family: var(--ns-display); font-weight: 700; }
html.ns-v2 .ns-base .wrap { max-width: 960px; padding: 32px 24px 10px; }
html.ns-v2 .ns-base .crumbs { color: var(--ns-dim); }
html.ns-v2 .ns-base .crumbs a { color: var(--ns-muted); }
html.ns-v2 .ns-base h1.pg { font-family: var(--ns-display); font-weight: 700; letter-spacing: -0.015em; font-size: clamp(24px, 3vw, 34px); color: var(--ns-text); margin: 4px 0 18px; }
html.ns-v2 .ns-base h2.sec { font-family: var(--ns-display); font-weight: 700; letter-spacing: -0.01em; font-size: 26px; color: var(--ns-text); margin: 44px 0 10px; }
html.ns-v2 .ns-base .ns-base-hero { display: block !important; margin: 0 0 22px; }
html.ns-v2 .ns-base .ns-base-hero .ns-eyebrow { margin-bottom: 14px; }
html.ns-v2 .ns-base .ns-base-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 10px; }
html.ns-v2 .ns-base .ns-base-chips + .ns-base-chips { margin-bottom: 20px; }
html.ns-v2 .ns-base .ns-base-hero .ns-hero-number { margin: 0 0 10px; max-width: 18em; }
html.ns-v2 .ns-base .ns-base-hero .ns-hero-number strong { font-weight: 700; }
html.ns-v2 .ns-base .ns-base-hero .ns-foot { margin: 0; }
html.ns-v2 .ns-base .answer { background: var(--ns-surface); border: 1px solid var(--ns-line); border-radius: var(--ns-r-card); color: #D3D8E0; font-size: 16px; }
html.ns-v2 .ns-base .byline, html.ns-v2 .ns-base .meta-line { color: var(--ns-muted); }
html.ns-v2 .ns-base .byline a, html.ns-v2 .ns-base .meta-line a, html.ns-v2 .ns-base .faq a, html.ns-v2 .ns-base .onpost a, html.ns-v2 .ns-base .data-note a, html.ns-v2 .ns-base .hood-card a.view, html.ns-v2 .ns-base table.bah a,
html.ns-v2 .ns-base .wrap > p.meta-line a, html.ns-v2 .ns-base .footer a { color: var(--ns-text) !important; text-decoration: underline; text-decoration-color: var(--ns-line-hi); text-underline-offset: 3px; }
html.ns-v2 .ns-base .agent-block { background: var(--ns-surface); border: 1px solid var(--ns-line); border-radius: var(--ns-r-panel); }
html.ns-v2 .ns-base .agent-photo { border-color: var(--ns-line-hi); }
html.ns-v2 .ns-base .agent-text h3 { color: var(--ns-text); }
html.ns-v2 .ns-base .agent-text p { color: var(--ns-muted); }
html.ns-v2 .ns-base .agent-ctas a.call, html.ns-v2 .ns-base .agent-ctas a.text { background: transparent; color: var(--ns-text); border: 1px solid var(--ns-line-hi); border-radius: var(--ns-r-btn); font-weight: 700; }
html.ns-v2 .ns-base table.bah { font-size: 15px; }
html.ns-v2 .ns-base table.bah th { color: var(--ns-muted); font-size: 12px; letter-spacing: .08em; border-bottom: 1px solid var(--ns-line-hi); }
html.ns-v2 .ns-base table.bah td { border-bottom: 1px solid var(--ns-line); color: var(--ns-text); }
html.ns-v2 .ns-base table.buy td.vd { color: #D3D8E0; }
html.ns-v2 .ns-base .onpost h3 { color: var(--ns-text); font-family: var(--ns-body); }
html.ns-v2 .ns-base .onpost p, html.ns-v2 .ns-base .onpost li { color: #D3D8E0; }
html.ns-v2 .ns-base .data-note { background: var(--ns-surface); border: 1px solid var(--ns-line); border-radius: var(--ns-r-card); color: var(--ns-muted); font-size: 13px; }
html.ns-v2 .ns-base .soon { background: var(--ns-surface); border: 1px solid var(--ns-line-hi); border-radius: var(--ns-r-card); }
html.ns-v2 .ns-base .soon h3 { color: var(--ns-text); }
html.ns-v2 .ns-base .soon p { color: #D3D8E0; }
html.ns-v2 .ns-base .sel-row label { color: var(--ns-muted); }
html.ns-v2 .ns-base select, html.ns-v2 .ns-base input[type=text], html.ns-v2 .ns-base input[type=tel], html.ns-v2 .ns-base input[type=email], html.ns-v2 .ns-base .lead select {
  background: var(--ns-ground); color: var(--ns-text); border: 1px solid #343C48; border-radius: var(--ns-r-input); padding: 14px 15px; font: 400 16px/1.3 var(--ns-body); }
html.ns-v2 .ns-base select:focus, html.ns-v2 .ns-base input:focus { outline: none; border-color: var(--ns-text); }
html.ns-v2 .ns-base .hood-grid { gap: 14px; }
html.ns-v2 .ns-base .hood-card { background: var(--ns-surface); border: 1px solid var(--ns-line); border-radius: var(--ns-r-card); padding: 18px; }
html.ns-v2 .ns-base .hood-card:hover { border-color: var(--ns-line-hi); }
html.ns-v2 .ns-base .hood-card h3 { font-family: var(--ns-body); font-size: 17px; font-weight: 700; color: var(--ns-text); }
html.ns-v2 .ns-base .hood-card .price { color: var(--ns-muted); font-size: 14px; }
html.ns-v2 .ns-base .hood-afford { background: transparent; border: 1px solid var(--ns-line); border-radius: 8px; color: #D3D8E0; }
html.ns-v2 .ns-base .hood-afford.under { color: var(--ns-good); border-color: rgba(123,196,150,.35); }
html.ns-v2 .ns-base .hood-afford.over { color: #D3D8E0; }
html.ns-v2 .ns-base .hood-meta { color: var(--ns-muted); font-size: 13px; }
html.ns-v2 .ns-base .hood-meta .commute { color: var(--ns-text); }
html.ns-v2 .ns-base .hood-meta .pending, html.ns-v2 .ns-base .hood-card .pending { color: var(--ns-dim); }
html.ns-v2 .ns-base .faq details { background: var(--ns-surface); border: 1px solid var(--ns-line); border-radius: var(--ns-r-card); }
html.ns-v2 .ns-base .faq summary { color: var(--ns-text); font-weight: 700; }
html.ns-v2 .ns-base .faq p { color: #D3D8E0; }
html.ns-v2 .ns-base .faq .src { color: var(--ns-dim); }
html.ns-v2 .ns-base .lead { border-top: 1px solid var(--ns-line); }
html.ns-v2 .ns-base .lead h3 { color: var(--ns-text); font-size: 18px; }
html.ns-v2 .ns-base .lead p.h { color: var(--ns-muted); font-size: 15px; }
html.ns-v2 .ns-base .lead .row { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
html.ns-v2 .ns-base .lead .ns-agent { margin: 4px 0 16px; }
html.ns-v2 .ns-base .btn-gold { background: var(--ns-gold); color: var(--ns-on-gold); border-radius: var(--ns-r-btn); min-height: 44px; padding: 14px 24px; font: 700 16px/1 var(--ns-body); }
html.ns-v2 .ns-base .btn-gold:hover { background: var(--ns-gold-hi); }
html.ns-v2 .ns-base .btn-ghost { background: transparent; color: var(--ns-text); border: 1px solid var(--ns-line-hi); border-radius: var(--ns-r-btn); font-weight: 700; }
html.ns-v2 .ns-base .consent-line { color: var(--ns-dim); font-size: 12.5px; }
html.ns-v2 .ns-base .consent-line a { color: var(--ns-muted); }
html.ns-v2 .ns-base .msg-ok { color: var(--ns-text); font-weight: 700; }
html.ns-v2 .ns-base .msg-err { color: #D3D8E0; }
html.ns-v2 .ns-base .sharebar #share-msg { color: var(--ns-muted); font-size: 13px; margin-left: 10px; }
html.ns-v2 .ns-base .disclaimer { color: var(--ns-dim); }
html.ns-v2 .ns-base .footer { border-top: 1px solid var(--ns-line); color: var(--ns-dim); }
html.ns-v2 .ns-base .noindex-note { background: var(--ns-surface); border: 1px solid var(--ns-line-hi); color: var(--ns-muted); }
@media (max-width: 640px) {
  html.ns-v2 .ns-base .wrap { padding: 22px 20px 10px; }
  html.ns-v2 .ns-base h2.sec { font-size: 22px; margin-top: 34px; }
  html.ns-v2 .ns-base .ns-base-chips { gap: 6px; }
  html.ns-v2 .ns-base .btn-gold { width: 100%; }
  html.ns-v2 .ns-base table.bah th, html.ns-v2 .ns-base table.bah td { padding: 10px 8px; font-size: 14px; }
}
