/* ═══════════════════════════════════════════════════════════════════════
   home.css - landing-page design (navy / white "corporate clean").
   Loaded AFTER styles.css on index.html only. styles.css still styles the
   result line items, suggestions, rank card, advance-tax card, share FAB
   and the tools menu; this file re-skins the page around them.
   ═══════════════════════════════════════════════════════════════════════ */

body.nx {
  --brand: #0b3c8c;          /* navy - overrides the indigo tokens for this page */
  --brand-deep: #082d6b;
  --brand-2: #1d5fd1;
  --brand-glow: #2f6fe0;
  --nx-ink: #0b1a3a;
  --nx-ink-soft: #33415e;
  --nx-muted: #6b7690;
  --nx-line: #dfe5f0;
  --nx-line-soft: #eaeef6;
  --nx-bg: #f6f8fc;
  --nx-card: #ffffff;
  --nx-navy: #0b3c8c;
  --nx-navy-deep: #082d6b;
  --nx-blue-soft: #e8f0fd;
  --nx-blue-tint: #f2f6fd;
  --nx-green: #12b76a;
  --nx-green-soft: #e8f8ef;
  --nx-shadow: 0 1px 2px rgba(11, 26, 58, 0.04), 0 8px 24px -12px rgba(11, 26, 58, 0.12);
  --nx-radius: 14px;
  background: var(--nx-bg);
  color: var(--nx-ink);
  font-family: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}
body.nx::before, body.nx::after { display: none; }
body.nx .trust-strip { display: none; } /* the nav carries the privacy note */
.nx-wrap { max-width: 1180px; margin: 0 auto; padding-inline: 20px; }

/* ─────────────── Top navigation ─────────────── */
.nx-nav { background: #fff; border-bottom: 1px solid var(--nx-line); position: sticky; top: 0; z-index: 50; }
.nx-nav-in { display: flex; align-items: center; gap: 28px; height: 68px; }
.nx-logo { text-decoration: none; color: var(--nx-ink); line-height: 1; flex: 0 0 auto; white-space: nowrap; }
.nx-logo strong { display: block; font-size: 1.35rem; font-weight: 800; letter-spacing: -0.02em; color: var(--nx-navy); }
.nx-logo small { display: block; font-size: 0.56rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--nx-muted); margin-top: 3px; }
.nx-links { display: flex; gap: 6px; margin-left: 18px; }
.nx-links a { text-decoration: none; color: var(--nx-ink-soft); font-size: 0.9rem; font-weight: 600; padding: 8px 10px; border-radius: 8px; position: relative; white-space: nowrap; }
.nx-links a:hover { color: var(--nx-navy); background: var(--nx-blue-tint); }
.nx-links a.active { color: var(--nx-navy); }
.nx-links a.active::after { content: ""; position: absolute; left: 10px; right: 10px; bottom: -2px; height: 2px; background: var(--nx-navy); border-radius: 2px; }
.nx-nav-right { margin-left: auto; display: flex; align-items: center; gap: 18px; flex: 0 0 auto; }
.nx-private { font-size: 0.8rem; color: var(--nx-muted); display: inline-flex; align-items: center; gap: 6px; }
.nx-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: var(--nx-navy); color: #fff; text-decoration: none; font-weight: 700; font-size: 0.9rem; padding: 11px 20px; border-radius: 8px; border: 1px solid var(--nx-navy); cursor: pointer; transition: background 0.15s, transform 0.1s; font-family: inherit; }
.nx-btn:hover { background: var(--nx-navy-deep); }
.nx-btn:active { transform: translateY(1px); }
.nx-btn.ghost { background: #fff; color: var(--nx-navy); }
.nx-btn.ghost:hover { background: var(--nx-blue-tint); }
/* ≡ opens the all-features menu on every screen size (site-ui.js builds the panel). */
.nx-burger { display: inline-grid; place-items: center; margin-left: -8px; background: #fff; border: 1px solid var(--nx-line); border-radius: 8px; width: 42px; height: 42px; cursor: pointer; color: var(--nx-ink); font-size: 1.2rem; transition: background 0.15s, border-color 0.15s; }
.nx-burger:hover, .nx-nav.open .nx-burger { background: var(--nx-blue-tint); border-color: #c9d7f2; color: var(--nx-navy); }
.nx-burger-ic { display: grid; gap: 4px; width: 18px; }
.nx-burger-ic i { display: block; height: 2px; border-radius: 2px; background: currentColor; transition: transform 0.2s, opacity 0.15s; }
.nx-nav.open .nx-burger-ic i:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nx-nav.open .nx-burger-ic i:nth-child(2) { opacity: 0; }
.nx-nav.open .nx-burger-ic i:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
.nx-menu { position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-bottom: 1px solid var(--nx-line); box-shadow: 0 24px 48px -24px rgba(11, 26, 58, 0.35); z-index: 60; animation: nx-fade 0.16s ease; }
.nx-menu[hidden] { display: none; }
.nx-menu-in { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 28px; max-width: 700px; margin-left: auto; padding: 16px 0 18px; }
.nx-menu-col { display: grid; gap: 2px; align-content: start; }
.nx-menu-h { font-size: 0.66rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--nx-muted); padding: 6px 10px; }
.nx-menu-item { display: flex; align-items: center; gap: 12px; padding: 9px 10px; border-radius: 10px; text-decoration: none; color: var(--nx-ink); }
.nx-menu-item:hover { background: var(--nx-blue-tint); }
.nx-menu-item .ic { width: 36px; height: 36px; border-radius: 9px; background: var(--nx-blue-soft); color: var(--nx-navy); display: grid; place-items: center; flex: 0 0 auto; }
.nx-menu-item .ic svg { width: 18px; height: 18px; }
.nx-menu-item b { display: block; font-size: 0.88rem; font-weight: 700; }
.nx-menu-item small { display: block; font-size: 0.72rem; color: var(--nx-muted); margin-top: 1px; }
.nx-menu-item.active { background: var(--nx-blue-soft); }
.nx-menu-item.active b { color: var(--nx-navy); }

/* ─────────────── Hero ─────────────── */
.nx-hero { background: linear-gradient(180deg, #f9fbfe 0%, #f3f6fb 100%); border-bottom: 1px solid var(--nx-line-soft); }
.nx-hero-in { display: grid; grid-template-columns: 1.3fr 1fr; gap: 36px; align-items: center; padding-block: 44px 38px; }
.nx-hero h1 { font-size: 3.3rem; line-height: 1.05; letter-spacing: -0.035em; font-weight: 800; margin: 0 0 12px; color: var(--nx-ink); }
.nx-hero .nx-sub { font-size: 1.25rem; color: var(--nx-ink); margin: 0 0 6px; font-weight: 500; }
.nx-hero .nx-sub2 { font-size: 1rem; color: var(--nx-muted); margin: 0 0 26px; }
.nx-feats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.nx-feat { display: flex; align-items: center; gap: 8px; min-width: 0; }
.nx-feat .ic { width: 32px; height: 32px; border-radius: 50%; border: 1.5px solid #c9d7f2; background: #fff; display: grid; place-items: center; color: var(--nx-navy); flex: 0 0 auto; }
.nx-feat .ic svg { width: 17px; height: 17px; }
.nx-feat b { display: block; font-size: 0.74rem; line-height: 1.2; color: var(--nx-ink); font-weight: 700; }
.nx-feat small { display: block; font-size: 0.64rem; line-height: 1.25; color: var(--nx-muted); }
.nx-hero-img { position: relative; border-radius: 16px; overflow: hidden; box-shadow: var(--nx-shadow); aspect-ratio: 16 / 9; background: #fff; }
.nx-hero-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.nx-hero-img .cap { position: absolute; left: 4.5%; top: 50%; transform: translateY(-50%); max-width: 27%; }
.nx-hero-img .cap b { display: block; font-size: 1.18rem; line-height: 1.15; font-weight: 800; color: var(--nx-navy); letter-spacing: -0.02em; }
.nx-hero-img .cap span { display: block; margin-top: 8px; font-size: 0.78rem; color: var(--nx-ink-soft); line-height: 1.4; }

/* ─────────────── Calculator: wizard + summary ─────────────── */
.nx-calc { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 22px; padding-block: 26px 10px; align-items: start; }
/* Left column = form + a photo card that grows to whatever height the summary panel has,
   so the two columns always end level (the summary is usually the taller one). */
.nx-calc-left { display: flex; flex-direction: column; gap: 22px; align-self: stretch; min-width: 0; }
.nx-calc-art { position: relative; flex: 1 1 auto; min-height: 150px; border-radius: var(--nx-radius); overflow: hidden; border: 1px solid var(--nx-line); box-shadow: var(--nx-shadow); background: #f6f8fc; }
.nx-calc-art picture, .nx-calc-art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 62% 50%; display: block; }
.nx-calc-art .cap { position: absolute; left: 5%; top: 50%; transform: translateY(-50%); max-width: 34%; }
.nx-calc-art .cap b { display: block; font-size: 1.15rem; line-height: 1.2; font-weight: 800; color: var(--nx-navy); letter-spacing: -0.02em; }
.nx-calc-art .cap span { display: block; margin-top: 8px; font-size: 0.76rem; color: var(--nx-ink-soft); line-height: 1.4; }
.nx-panel { background: var(--nx-card); border: 1px solid var(--nx-line); border-radius: var(--nx-radius); box-shadow: var(--nx-shadow); }
.nx-wizard { display: grid; grid-template-columns: 212px minmax(0, 1fr); min-height: 520px; }
.nx-side { border-right: 1px solid var(--nx-line-soft); background: #fafbfe; padding: 16px 12px; border-radius: var(--nx-radius) 0 0 var(--nx-radius); }
.nx-step-btn { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; background: none; border: none; border-radius: 9px; padding: 11px 12px; font: inherit; font-size: 0.84rem; white-space: nowrap; font-weight: 600; color: var(--nx-ink-soft); cursor: pointer; margin-bottom: 4px; }
.nx-step-btn svg { width: 17px; height: 17px; flex: 0 0 auto; color: var(--nx-muted); }
.nx-step-btn:hover { background: var(--nx-blue-tint); color: var(--nx-navy); }
.nx-step-btn.active { background: var(--nx-blue-soft); color: var(--nx-navy); }
.nx-step-btn.active svg { color: var(--nx-navy); }
.nx-step-btn.done::after { content: "✓"; margin-left: auto; font-size: 0.7rem; color: var(--nx-green); font-weight: 800; }
.nx-main { padding: 24px 26px 22px; }
.nx-step { display: none; }
.nx-step.active { display: block; animation: nx-fade 0.18s ease; }
@keyframes nx-fade { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
.nx-step h2 { margin: 0 0 2px; font-size: 1.25rem; font-weight: 800; letter-spacing: -0.02em; color: var(--nx-ink); }
.nx-step .nx-desc { margin: 0 0 18px; font-size: 0.84rem; color: var(--nx-muted); }
.nx-step .nx-note { margin: 12px 0 0; font-size: 0.78rem; color: var(--nx-muted); background: var(--nx-blue-tint); border: 1px solid var(--nx-line-soft); border-radius: 8px; padding: 10px 12px; line-height: 1.5; }
.nx-step .nx-note a { color: var(--nx-navy); font-weight: 700; text-decoration: none; }
.nx-step fieldset { border: none; padding: 0; margin: 0; }
.nx-step legend { display: none; }

/* Fields (override styles.css look) */
body.nx .field > span { font-size: 0.8rem; color: var(--nx-ink); font-weight: 600; }
body.nx .field > span small { color: var(--nx-muted); font-weight: 500; }
body.nx .field input[type="number"], body.nx .field select, body.nx .field input[type="text"] {
  width: 100%; box-sizing: border-box; font: inherit; font-size: 0.93rem; color: var(--nx-ink);
  background: #fff; border: 1px solid var(--nx-line); border-radius: 9px; padding: 12px 13px; box-shadow: none; outline: none;
  transition: border-color 0.12s, box-shadow 0.12s;
}
body.nx .field select { appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%2333415e' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 13px center; padding-right: 36px; }
body.nx .field input:focus, body.nx .field select:focus { border-color: var(--nx-navy); box-shadow: 0 0 0 3px rgba(11, 60, 140, 0.12); }
body.nx .field { margin-bottom: 16px; }
body.nx .field-row { gap: 14px; }
body.nx .hint { color: var(--nx-navy); }
body.nx .checkbox { font-size: 0.84rem; color: var(--nx-ink-soft); }
body.nx .checkbox input { accent-color: var(--nx-navy); }
.nx-label { display: block; font-size: 0.8rem; color: var(--nx-ink); font-weight: 600; margin: 4px 0 8px; }
.nx-label .q { display: inline-grid; place-items: center; width: 15px; height: 15px; border: 1px solid var(--nx-muted); border-radius: 50%; font-size: 0.6rem; color: var(--nx-muted); margin-left: 5px; cursor: help; vertical-align: 1px; }

/* Radio pills (regime + employment type) — real radios, styled */
.nx-radios { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-bottom: 18px; }
.nx-radio { display: inline-flex; align-items: center; gap: 8px; font-size: 0.86rem; color: var(--nx-ink-soft); cursor: pointer; }
.nx-radio input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.nx-radio .dot { width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid #b9c5dc; background: #fff; display: grid; place-items: center; transition: border-color 0.12s; }
.nx-radio .dot::after { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--nx-navy); transform: scale(0); transition: transform 0.12s; }
.nx-radio input:checked + .dot { border-color: var(--nx-navy); }
.nx-radio input:checked + .dot::after { transform: scale(1); }
.nx-radio input:focus-visible + .dot { outline: 2px solid var(--nx-navy); outline-offset: 2px; }
.nx-radio input:checked ~ span:last-child { color: var(--nx-ink); font-weight: 600; }
.nx-radio > span:last-child { line-height: 1; }

.nx-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--nx-line-soft); }
.nx-actions .nx-btn { padding: 12px 22px; }
#tax-form[data-mode="business"] .salary-only { display: none; }
body.nx .reset-btn { background: none; border: none; box-shadow: none; color: var(--nx-muted); font: inherit; font-size: 0.84rem; font-weight: 600; cursor: pointer; padding: 10px 12px; margin-right: auto; text-decoration: underline; text-underline-offset: 3px; }
body.nx .reset-btn:hover { color: var(--nx-navy); }
.nx-cg-links { margin-top: 14px; }

/* Summary card */
.nx-summary { position: sticky; top: 84px; padding: 20px 22px 22px; }
.nx-sum-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.nx-sum-head h2 { margin: 0; font-size: 1.15rem; font-weight: 800; letter-spacing: -0.02em; }
.nx-fy-chip { font-size: 0.74rem; font-weight: 700; color: var(--nx-navy); background: var(--nx-blue-tint); border: 1px solid #d5e0f5; border-radius: 6px; padding: 5px 9px; white-space: nowrap; }
.nx-tabs { display: grid; grid-template-columns: 1fr 1fr; background: #f1f4f9; border-radius: 9px; padding: 4px; margin-bottom: 14px; }
.nx-tab { border: none; background: none; font: inherit; font-size: 0.84rem; font-weight: 600; color: var(--nx-muted); padding: 9px 10px; border-radius: 7px; cursor: pointer; position: relative; }
.nx-tab.active { background: #fff; color: var(--nx-navy); box-shadow: 0 1px 3px rgba(11, 26, 58, 0.12); border: 1px solid #d5e0f5; }
.nx-tab .rec { position: absolute; top: -8px; right: 6px; font-size: 0.55rem; font-weight: 800; letter-spacing: 0.05em; text-transform: uppercase; color: #fff; background: var(--nx-green); border-radius: 999px; padding: 2px 6px; display: none; }
.nx-tab.is-winner .rec { display: inline-block; }
.nx-total { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: stretch; background: var(--nx-blue-tint); border: 1px solid var(--nx-line-soft); border-radius: 10px; padding: 14px 16px; margin-bottom: 14px; }
.nx-total .lbl { font-size: 0.78rem; color: var(--nx-ink-soft); font-weight: 600; }
body.nx .big-tax { font-size: 2.05rem; font-weight: 800; letter-spacing: -0.03em; color: var(--nx-navy); background: none; -webkit-text-fill-color: initial; margin: 2px 0 0; line-height: 1.15; font-variant-numeric: tabular-nums; }
body.nx .regime-grid { display: block; }
body.nx .regime-col { border: none; padding: 0; background: none; box-shadow: none; }
body.nx .regime-col h2 { display: none; }
body.nx .regime-col::before { display: none; }
body.nx .regime-col:not(.active) { display: none; }
body.nx .recommendation { margin: 0; padding: 10px 12px; background: var(--nx-green-soft); border: 1px solid #bfead4; border-radius: 9px; color: #067647; font-size: 0.76rem; font-weight: 700; text-align: center; min-width: 118px; display: flex; flex-direction: column; justify-content: center; box-shadow: none; }
body.nx .recommendation .save { color: #067647; font-weight: 800; font-size: 0.95rem; margin: 2px 0; white-space: nowrap; }
body.nx .recommendation .save-vs { display: block; color: #3d8b64; font-weight: 500; font-size: 0.7rem; }
body.nx .recommendation.hidden { display: none; }
body.nx .recommendation.worse { background: #fff4e5; border-color: #f5d0a0; color: #9a5b00; }
body.nx .recommendation.worse .save { color: #9a5b00; }
body.nx .recommendation.worse .save-vs { color: #b8791f; }
body.nx .regime-body .line { font-size: 0.85rem; padding: 8px 0; border-bottom: 1px solid var(--nx-line-soft); }
body.nx .regime-body .line .lbl { color: var(--nx-ink-soft); }
body.nx .regime-body .line .val { color: var(--nx-ink); font-weight: 700; }
body.nx .regime-body .line.total { border-top: 1.5px solid var(--nx-line); font-size: 0.92rem; }
body.nx .regime-body .line.total .val { color: var(--nx-navy); text-decoration: underline; text-decoration-color: #c9d7f2; text-underline-offset: 4px; }
body.nx .regime-body .section-title { color: var(--nx-muted); margin-top: 12px; }
body.nx .regime-body .line.slab.slab-top .lbl, body.nx .regime-body .line.slab.slab-top .val { color: var(--nx-navy); }
body.nx .rebate-explain .reb-badge.ok { background: var(--nx-green-soft); color: #067647; }
body.nx .export-bar { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 16px 0 0; padding: 0; border: none; background: none; }
body.nx .export-bar.hidden { display: none; }
body.nx .export-bar .export-label { display: none; }
body.nx .export-btn { background: #fff; color: var(--nx-navy); border: 1px solid #c9d7f2; border-radius: 8px; padding: 12px 10px; font-size: 0.84rem; font-weight: 700; box-shadow: none; text-align: center; }
body.nx .export-btn:hover { background: var(--nx-blue-tint); box-shadow: none; filter: none; }
body.nx .export-btn::after { display: none; }
body.nx .export-btn.primary { background: var(--nx-navy); color: #fff; border-color: var(--nx-navy); }
body.nx .export-btn.primary:hover { background: var(--nx-navy-deep); }
body.nx .export-btn.link { grid-column: 1 / -1; background: none; border: none; color: var(--nx-muted); padding: 4px; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
body.nx .accuracy-badge { margin: 12px 0 0; }
.nx-sum-empty { font-size: 0.8rem; color: var(--nx-muted); text-align: center; padding: 6px 0 2px; }

/* Results step (detailed extras) */
.nx-summary-jump { display: none; margin-bottom: 14px; }
.nx-results-step .nx-block { margin-top: 14px; }
body.nx .rank-card, body.nx .suggestions, body.nx .assumptions, body.nx .advtax, body.nx .why-diff { border-radius: 10px; }
body.nx .why-diff { margin-top: 14px; }

/* "Your income rank in India" card (moved here from the old inline styles). */
.rank-card { margin-top: 14px; padding: 18px 20px; background: linear-gradient(135deg, var(--nx-blue-tint), #eafaf1); border: 1px solid #d5e0f5; border-radius: 12px; }
.rank-card.hidden { display: none; }
.rank-label { font-size: 0.72rem; font-weight: 800; letter-spacing: 0.06em; color: var(--nx-muted); text-transform: uppercase; }
.rank-big { font-size: 1.6rem; font-weight: 800; color: var(--nx-ink); margin: 7px 0 2px; line-height: 1.15; letter-spacing: -0.02em; }
.rank-big .pct { color: #067647; }
.rank-sub { font-size: 0.9rem; color: var(--nx-muted); margin-bottom: 12px; }
.rank-sub b { color: var(--nx-ink); }
.rank-bar { position: relative; height: 12px; border-radius: 999px; background: #e3e7f5; overflow: hidden; margin: 12px 0 6px; }
.rank-bar-fill { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 999px; background: linear-gradient(90deg, var(--nx-navy), var(--nx-green)); transition: width 0.7s cubic-bezier(0.2, 0.8, 0.2, 1); }
.rank-scale { display: flex; justify-content: space-between; font-size: 0.68rem; color: var(--nx-muted); margin-bottom: 14px; }
.rank-actions { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.rank-share { background: var(--nx-navy); color: #fff; border: 0; font: inherit; font-weight: 700; font-size: 0.88rem; padding: 10px 18px; border-radius: 8px; cursor: pointer; display: inline-flex; align-items: center; gap: 7px; }
.rank-share:hover { background: var(--nx-navy-deep); }
.rank-save { background: #fff; color: var(--nx-navy); border: 1px solid #c9d7f2; font: inherit; font-weight: 700; font-size: 0.88rem; padding: 10px 16px; border-radius: 8px; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.rank-save:hover { background: var(--nx-blue-tint); }
.rank-how { font-size: 0.8rem; margin-top: 14px; }
.rank-how summary { cursor: pointer; color: var(--nx-navy); font-weight: 600; }
.rank-how p { margin: 8px 0 0; line-height: 1.5; color: var(--nx-muted); max-width: 60ch; }

/* ─────────────── Tool cards ─────────────── */
.nx-tools { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; padding-block: 18px 6px; }
.nx-tool { display: flex; gap: 12px; align-items: flex-start; text-decoration: none; color: var(--nx-ink); background: #fff; border: 1px solid var(--nx-line); border-radius: 12px; padding: 16px; box-shadow: var(--nx-shadow); transition: transform 0.15s, box-shadow 0.15s, border-color 0.15s; }
.nx-tool:hover { transform: translateY(-2px); border-color: #c9d7f2; }
.nx-tool .ic { width: 40px; height: 40px; border-radius: 10px; background: var(--nx-blue-tint); color: var(--nx-navy); display: grid; place-items: center; flex: 0 0 auto; }
.nx-tool .ic svg { width: 20px; height: 20px; }
.nx-tool b { display: block; font-size: 0.9rem; font-weight: 700; margin-bottom: 3px; }
.nx-tool p { margin: 0 0 8px; font-size: 0.74rem; color: var(--nx-muted); line-height: 1.45; }
.nx-tool span { font-size: 0.74rem; font-weight: 700; color: var(--nx-navy); }

/* ─────────────── FAQ ─────────────── */
.nx-faq { padding-block: 22px 10px; }
body.nx .faq { max-width: none; margin: 0; padding: 22px 24px 20px; background: #fff; border: 1px solid var(--nx-line); border-radius: var(--nx-radius); box-shadow: var(--nx-shadow); }
.nx-faq-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.nx-faq-head h2 { margin: 0; font-size: 1.25rem; font-weight: 800; letter-spacing: -0.02em; text-align: left; }
.nx-faq-head a { color: var(--nx-navy); font-weight: 700; font-size: 0.84rem; text-decoration: none; }
.nx-faq-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 14px; align-items: start; }
body.nx .faq-item { margin: 0; background: #fff; border: 1px solid var(--nx-line); border-radius: 9px; box-shadow: none; padding: 0; }
body.nx .faq-item:hover { box-shadow: none; border-color: #c9d7f2; }
body.nx .faq-item > summary { list-style: none; cursor: pointer; padding: 13px 40px 13px 14px; font-size: 0.86rem; font-weight: 600; color: var(--nx-ink); position: relative; background: none; }
body.nx .faq-item > summary::-webkit-details-marker { display: none; }
body.nx .faq-item > summary::before { display: none; }
body.nx .faq-item > summary::after { content: "+"; position: absolute; right: 14px; top: 50%; transform: translateY(-50%); color: var(--nx-navy); font-weight: 700; font-size: 1.05rem; }
body.nx .faq-item[open] > summary::after { content: "−"; }
body.nx .faq-item p { margin: 0; padding: 0 14px 14px; font-size: 0.83rem; color: var(--nx-ink-soft); line-height: 1.6; }

/* ─────────────── Tax guides ─────────────── */
.nx-guides { padding-block: 22px 6px; }
.nx-sec-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.nx-sec-head h2 { margin: 0; font-size: 1.25rem; font-weight: 800; letter-spacing: -0.02em; color: var(--nx-ink); }
.nx-sec-head a { color: var(--nx-navy); font-weight: 700; font-size: 0.84rem; text-decoration: none; }
.nx-sec-head a:hover { text-decoration: underline; }
.nx-guides-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.nx-guide { display: flex; gap: 12px; align-items: flex-start; text-decoration: none; color: var(--nx-ink); background: #fff; border: 1px solid var(--nx-line); border-radius: 12px; padding: 16px; box-shadow: var(--nx-shadow); transition: transform 0.15s, border-color 0.15s; min-width: 0; }
.nx-guide:hover { transform: translateY(-2px); border-color: #c9d7f2; }
.nx-guide .ic { width: 40px; height: 40px; border-radius: 10px; background: var(--nx-blue-tint); color: var(--nx-navy); display: grid; place-items: center; flex: 0 0 auto; }
.nx-guide .ic svg { width: 20px; height: 20px; }
.nx-guide > span { min-width: 0; }
.nx-guide b { display: block; font-size: 0.9rem; font-weight: 700; margin-bottom: 3px; line-height: 1.3; }
.nx-guide b .new { display: inline-block; vertical-align: 2px; font-style: normal; font-size: 0.58rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: #067647; background: var(--nx-green-soft); border: 1px solid #bfead4; border-radius: 999px; padding: 2px 7px; margin-left: 6px; }
.nx-guide p { margin: 0 0 8px; font-size: 0.74rem; color: var(--nx-muted); line-height: 1.45; }
.nx-guide .more { font-size: 0.74rem; font-weight: 700; color: var(--nx-navy); }

/* ─────────────── Advertisement (hidden until filled) ─────────────── */
.nx-ad { display: none; padding-block: 16px 0; }
.nx-ad.is-filled, .nx-ad:has(ins[data-ad-status="filled"]) { display: block; }
body.nx .nx-ad .ad-slot { width: 100%; max-width: none; margin: 0; background: #fff; border: 1px solid var(--nx-line); border-radius: 12px; box-shadow: var(--nx-shadow); padding: 12px 16px 16px; min-height: 0; }
body.nx .nx-ad .ad-slot__label { color: var(--nx-muted); }

/* ─────────────── Footer ─────────────── */
.nx-footer { background: #fff; border-top: 1px solid var(--nx-line); margin-top: 28px; }
.nx-footer-in { display: grid; grid-template-columns: 1.2fr 1.4fr 1fr; gap: 24px; padding-block: 30px 22px; align-items: start; }
.nx-footer .nx-logo strong { font-size: 1.25rem; }
.nx-footer .tag { margin: 12px 0 0; font-size: 0.8rem; color: var(--nx-muted); line-height: 1.5; max-width: 320px; }
.nx-footer-nav { display: flex; flex-wrap: wrap; gap: 6px 22px; padding-top: 6px; }
.nx-footer-nav a { color: var(--nx-ink-soft); font-size: 0.84rem; font-weight: 600; text-decoration: none; }
.nx-footer-nav a:hover { color: var(--nx-navy); }
.nx-footer-right { text-align: right; }
.nx-footer-right .disc { margin: 12px 0 0; font-size: 0.72rem; color: var(--nx-muted); line-height: 1.5; }
.nx-footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; border-top: 1px solid var(--nx-line-soft); padding-block: 16px 20px; font-size: 0.76rem; color: var(--nx-muted); }
.nx-footer-bottom a { color: var(--nx-ink-soft); text-decoration: none; font-weight: 600; }
.nx-footer-bottom a:hover { color: var(--nx-navy); }
.nx-footer-bottom .sep { margin: 0 8px; color: var(--nx-line); }

/* ─────────────── Festival theme (site-ui.js sets data-festival + --fest-* on <html>) ─────────────── */
html[data-festival] .nx-nav { border-top: 4px solid; border-image: linear-gradient(90deg, var(--fest-a), var(--fest-b), var(--fest-a)) 1; }
html[data-festival] .nx-nav.open .nx-links, html[data-festival] .nx-menu { top: calc(100% + 0px); }
.nx-fest { position: relative; display: flex; align-items: center; justify-content: center; gap: 10px; padding: 9px 46px; background: linear-gradient(90deg, var(--fest-a), var(--fest-b)); color: #fff; font-size: 0.86rem; font-weight: 600; text-align: center; line-height: 1.4; }
.nx-fest-em { font-size: 1.15rem; line-height: 1; }
.nx-fest-x { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); width: 30px; height: 30px; border: none; border-radius: 50%; background: rgba(255,255,255,0.18); color: #fff; font-size: 1.2rem; line-height: 1; cursor: pointer; }
.nx-fest-x:hover { background: rgba(255,255,255,0.3); }
html[data-festival] .nx-hero, html[data-festival] .ab-hero { background: linear-gradient(180deg, var(--fest-tint) 0%, #f3f6fb 100%); }
html[data-festival] .nx-hero .nx-sub2, html[data-festival] .nx-feat .ic { color: inherit; }
html[data-festival] .nx-hero-img .cap b { color: var(--fest-a); }
html[data-festival] .nx-btn:not(.ghost):not(.soft) { background: var(--fest-a); border-color: var(--fest-a); }
html[data-festival] .nx-btn:not(.ghost):not(.soft):hover { filter: brightness(0.92); }
html[data-festival] .nx-links a.active, html[data-festival] .nx-links a.active::after { color: var(--fest-a); background-color: var(--fest-a); }
html[data-festival] .nx-links a.active { background-color: transparent; }
html[data-festival] .nx-footer { border-top: 4px solid; border-image: linear-gradient(90deg, var(--fest-a), var(--fest-b), var(--fest-a)) 1; }
@media (max-width: 760px) { .nx-fest { font-size: 0.78rem; padding: 8px 40px 8px 12px; justify-content: flex-start; text-align: left; } }

/* ─────────────── Responsive ─────────────── */
@media (max-width: 1024px) {
  .nx-calc { grid-template-columns: 1fr; }
  .nx-calc-art { display: none; }
  .nx-summary-jump { display: inline-flex; }
  .nx-summary { position: static; }
  .nx-tools, .nx-guides-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nx-hero-in { grid-template-columns: 1fr; gap: 22px; }
  .nx-hero h1 { font-size: 2.6rem; }
  .nx-footer-in { grid-template-columns: 1fr; }
  .nx-footer-right { text-align: left; }
}
@media (max-width: 1024px) {
  .nx-nav .nx-private { display: none; }
}
@media (max-width: 760px) {
  /* iOS Safari auto-zooms into any field under 16px - keep every text control at 16px on phones. */
  body.nx input:not([type="radio"]):not([type="checkbox"]), body.nx select, body.nx textarea { font-size: 16px !important; }
  /* Section heads: keep the "View all" link on one line next to the title. */
  .nx-faq-head, .nx-sec-head { gap: 12px; }
  .nx-faq-head h2, .nx-sec-head h2 { font-size: 1.15rem; min-width: 0; }
  .nx-faq-head a, .nx-sec-head a { white-space: nowrap; flex: 0 0 auto; }
  /* Wide tables scroll sideways inside their card - fade the right edge so it's obvious. */
  .cg-table-wrap, .cc-table-wrap, .rr-table-wrap, .nx-guide-body table { -webkit-overflow-scrolling: touch; }
  body.nx .cg-table-wrap, body.nx .cc-table-wrap, body.nx .rr-table-wrap {
    background:
      linear-gradient(to right, #fff 40%, rgba(255,255,255,0)) left / 32px 100%,
      linear-gradient(to left, #fff 40%, rgba(255,255,255,0)) right / 32px 100%,
      linear-gradient(to right, rgba(11,26,58,.14), rgba(11,26,58,0)) left / 14px 100%,
      linear-gradient(to left, rgba(11,26,58,.14), rgba(11,26,58,0)) right / 14px 100%;
    background-repeat: no-repeat; background-color: #fff; background-attachment: local, local, scroll, scroll;
  }
  body.nx .cg-table-wrap > table, body.nx .cc-table-wrap > table, body.nx .rr-table-wrap > table { background: transparent; }
  .nx-links { display: none; }
  .nx-nav-right .nx-btn { display: none; }
  .nx-burger { margin-left: 0; }
  .nx-menu-in { grid-template-columns: 1fr; max-width: none; gap: 4px; padding: 8px 0 14px; }
  .nx-menu { max-height: calc(100vh - 68px); overflow-y: auto; }
  .nx-hero h1 { font-size: 2.1rem; }
  .nx-hero .nx-sub { font-size: 1.05rem; }
  .nx-feats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nx-wizard { grid-template-columns: 1fr; grid-template-rows: auto 1fr; min-height: 0; }
  .nx-side { border-right: none; border-bottom: 1px solid var(--nx-line-soft); border-radius: var(--nx-radius) var(--nx-radius) 0 0; display: flex; align-items: center; gap: 6px; overflow-x: auto; padding: 10px 12px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .nx-hero-img .cap { max-width: 30%; left: 4%; }
  .nx-hero-img .cap b { font-size: 0.95rem; }
  .nx-hero-img .cap span { font-size: 0.66rem; margin-top: 5px; }
  .nx-summary-jump { display: inline-flex; }
  .nx-side::-webkit-scrollbar { display: none; }
  .nx-step-btn { width: auto; white-space: nowrap; margin: 0; padding: 9px 12px; font-size: 0.8rem; }
  .nx-step-btn.done::after { margin-left: 6px; }
  .nx-main { padding: 18px 16px 16px; }
  body.nx .field-row { grid-template-columns: 1fr; }
  .nx-tools, .nx-guides-grid { grid-template-columns: 1fr; }
  .nx-faq-grid { grid-template-columns: 1fr; }
  .nx-hero-img .cap b { font-size: 1.1rem; }
  .nx-hero-img .cap span { font-size: 0.72rem; }
  .nx-total { grid-template-columns: 1fr; }
  body.nx .recommendation { flex-direction: row; justify-content: space-between; align-items: center; text-align: left; gap: 8px; }
  body.nx .recommendation .rec-title, body.nx .recommendation .save-vs { white-space: nowrap; }
}
@media print {
  .nx-nav, .nx-hero, .nx-side, .nx-actions, .nx-tools, .nx-faq, .nx-footer, .nx-guides, .nx-ad { display: none !important; }
  .nx-calc { grid-template-columns: 1fr; }
  .nx-step { display: block !important; }
}

/* ═══════════════════════════════════════════════════════════════════════
   Capital Gains page (capital-gains.html) — same design system, cg-* extras.
   ═══════════════════════════════════════════════════════════════════════ */
.cg-eyebrow { font-size: 0.66rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--nx-muted); font-weight: 700; margin: 0 0 10px; }
.nx-hero h1 .accent { color: var(--nx-brand-accent, #1d5fd1); }
.cg-hero-in { grid-template-columns: 1.4fr 1fr; padding-block: 34px 30px; }
.cg-hero-in h1 { font-size: 2.9rem; }
.cg-hero-in .nx-sub { font-size: 1.05rem; color: var(--nx-ink-soft); font-weight: 500; line-height: 1.5; }
.cg-hero-img .cap .capic { display: block; width: 26px; height: 26px; color: var(--nx-navy); margin-bottom: 6px; }
.cg-hero-img .cap b { font-size: 1.1rem; }
.cg-hero-img .cap span { font-size: 0.72rem; }

.cg-side .nx-step-btn { white-space: normal; text-decoration: none; font-size: 0.82rem; }
.cg-calc { grid-template-columns: minmax(0, 1fr) 380px; }
.cg-wizard { grid-template-columns: 226px minmax(0, 1fr); min-height: 0; }
body.nx #cg-form .field input[type="date"] { width: 100%; box-sizing: border-box; font: inherit; font-size: 0.93rem; color: var(--nx-ink); background: #fff; border: 1px solid var(--nx-line); border-radius: 9px; padding: 11px 13px; outline: none; }
body.nx #cg-form .field input[type="date"]:focus { border-color: var(--nx-navy); box-shadow: 0 0 0 3px rgba(11, 60, 140, 0.12); }
.cg-adv-toggle { background: none; border: none; padding: 0; margin: 2px 0 14px; font: inherit; font-size: 0.84rem; font-weight: 700; color: var(--nx-navy); cursor: pointer; display: inline-flex; align-items: center; gap: 4px; }
.cg-adv-toggle::after { content: "›"; font-size: 1.05rem; line-height: 1; transition: transform 0.15s; }
.cg-adv[open] .cg-adv-toggle::after { transform: rotate(90deg); }
.cg-adv { margin-top: 2px; }
.cg-adv > summary { list-style: none; }
.cg-adv > summary::-webkit-details-marker { display: none; }
.cg-info { display: flex; align-items: flex-start; gap: 7px; font-size: 0.76rem; color: var(--nx-muted); margin: 4px 0 0; }
.cg-info svg { width: 14px; height: 14px; flex: 0 0 auto; color: var(--nx-brand-accent, #1d5fd1); margin-top: 1px; }
body.nx #cgHint { margin: 8px 0 0; font-size: 0.76rem; font-weight: 500; color: var(--nx-ink-soft); background: var(--nx-blue-tint); border: 1px solid var(--nx-line-soft); border-radius: 8px; padding: 9px 11px; line-height: 1.5; }
body.nx #cgHint:empty { display: none; }
body.nx #cg-form .nx-actions { justify-content: space-between; }
body.nx #cgReset { margin: 0; text-decoration: none; border: 1px solid var(--nx-line); border-radius: 8px; padding: 11px 18px; color: var(--nx-ink); background: #fff; font-weight: 700; }
body.nx #cgReset:hover { background: var(--nx-blue-tint); color: var(--nx-navy); }

/* Result card (markup comes from capital-gains.js) */
.cg-result { padding: 18px 20px 20px; }
.cg-result .cg-empty { display: grid; place-items: center; text-align: center; min-height: 300px; color: var(--nx-muted); padding: 20px; }
.cg-result .cg-empty-ic { font-size: 2.2rem; }
.cg-result .cg-empty p { margin: 8px 0 0; font-size: 0.9rem; max-width: 240px; }
.cg-result .cg-top { background: var(--nx-blue-tint); border: 1px solid var(--nx-line-soft); border-radius: 12px; padding: 16px 18px; margin-bottom: 8px; }
.cg-result .cg-head { display: flex; flex-direction: column; gap: 2px; margin-bottom: 8px; }
.cg-result .cg-badge { font-size: 0.95rem; font-weight: 800; color: var(--nx-ink); letter-spacing: -0.01em; }
.cg-result .cg-hold { font-size: 0.78rem; color: var(--nx-muted); font-weight: 500; }
body.nx .cg-result .big-tax { font-size: 2.1rem; margin: 0; }
.cg-result .cg-sub { font-size: 0.8rem; color: var(--nx-ink-soft); margin: 4px 0 0; }
.cg-result .cg-sub small { color: var(--nx-muted); }
body.nx .cg-result .regime-body .line { font-size: 0.85rem; }
body.nx .cg-result .regime-body .section-title { color: var(--nx-brand-accent, #1d5fd1); font-weight: 800; letter-spacing: 0.02em; text-transform: none; font-size: 0.82rem; margin-top: 12px; }
.cg-result .cg-compare { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 10px 0; }
.cg-result .cg-opt { border: 1px solid var(--nx-line); border-radius: 10px; padding: 10px 12px; background: #fff; display: flex; flex-direction: column; gap: 3px; }
.cg-result .cg-opt span { font-size: 0.72rem; color: var(--nx-muted); font-weight: 600; }
.cg-result .cg-opt strong { font-size: 1rem; font-variant-numeric: tabular-nums; color: var(--nx-ink); }
.cg-result .cg-opt.cg-pick { border-color: #86e8bf; background: var(--nx-green-soft); }
.cg-result .cg-opt.cg-pick strong { color: #067647; }
.cg-result .cg-notes { margin: 14px 0 0; }
.cg-result .cg-notes p { display: flex; gap: 9px; align-items: flex-start; margin: 0 0 8px; font-size: 0.8rem; color: #14532d; line-height: 1.5; background: var(--nx-green-soft); border: 1px solid #bfead4; border-radius: 10px; padding: 10px 12px; }
.cg-result .cg-notes p::before { content: ""; flex: 0 0 auto; width: 18px; height: 18px; border-radius: 50%; background: var(--nx-green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5 9-10'/%3E%3C/svg%3E") center / 11px no-repeat; margin-top: 1px; }
.cg-result .cg-disclaimer { margin: 12px 0 0; font-size: 0.7rem; color: var(--nx-muted); line-height: 1.5; }

/* Next-step cards (offer + filing) rendered by capital-gains.js as .save-card */
.cg-next { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; padding-block: 18px 4px; }
.cg-next > div:empty, .cg-next > div[style*="display: none"] { display: none; }
body.nx .cg-next .save-card { display: flex; align-items: center; gap: 14px; background: var(--nx-blue-tint); border: 1px solid #d5e0f5; border-radius: 12px; padding: 16px 18px; box-shadow: none; margin: 0; height: 100%; box-sizing: border-box; }
body.nx .cg-next .save-icon { width: 42px; height: 42px; border-radius: 10px; background: #fff; border: 1px solid #d5e0f5; display: grid; place-items: center; font-size: 1.2rem; flex: 0 0 auto; }
body.nx .cg-next .save-text { flex: 1; min-width: 0; }
body.nx .cg-next .save-text strong { display: block; font-size: 0.92rem; font-weight: 700; color: var(--nx-ink); }
body.nx .cg-next .cg-off-desc { display: block; font-size: 0.76rem; color: var(--nx-muted); margin-top: 2px; line-height: 1.4; }
body.nx .cg-next .save-cta { flex: 0 0 auto; background: var(--nx-navy); color: #fff; text-decoration: none; font-weight: 700; font-size: 0.8rem; padding: 9px 14px; border-radius: 8px; white-space: nowrap; }
body.nx .cg-next .save-cta:hover { background: var(--nx-navy-deep); }
.cg-next-disc { grid-column: 1 / -1; margin: 0; font-size: 0.7rem; color: var(--nx-muted); }
/* No affiliate card rendered (empty state, or assets with no offer) -> no disclaimer either. */
.cg-next:has(> #cgOffer:empty) .cg-next-disc, .cg-next:has(> #cgOffer[style*="none"]) .cg-next-disc { display: none; }

/* Rates table */
.cg-rates { padding-block: 18px 4px; }
.cg-rates h2 { margin: 0 0 14px; font-size: 1.25rem; font-weight: 800; letter-spacing: -0.02em; color: var(--nx-ink); }
.cg-table-wrap { overflow-x: auto; background: #fff; border: 1px solid var(--nx-line); border-radius: 12px; box-shadow: var(--nx-shadow); }
table.cg-table { width: 100%; border-collapse: collapse; font-size: 0.86rem; min-width: 640px; }
table.cg-table th, table.cg-table td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--nx-line-soft); vertical-align: top; }
table.cg-table th { background: #f6f8fc; font-weight: 700; color: var(--nx-ink); font-size: 0.82rem; }
table.cg-table td { color: var(--nx-ink-soft); }
table.cg-table td:first-child { font-weight: 600; color: var(--nx-ink); }
table.cg-table tr:last-child td { border-bottom: none; }
.cg-rates-note { margin: 10px 2px 0; font-size: 0.72rem; color: var(--nx-muted); line-height: 1.5; }

@media (max-width: 1024px) {
  .cg-calc { grid-template-columns: 1fr; }
  .cg-hero-in { grid-template-columns: 1fr; }
  .cg-next { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .cg-wizard { grid-template-columns: 1fr; }
  .cg-hero-in h1 { font-size: 2.1rem; }
  .cg-side .nx-step-btn { white-space: nowrap; }
  .cg-result .cg-compare { grid-template-columns: 1fr; }
  body.nx .cg-next .save-card { flex-wrap: wrap; }
  .cg-hero-img .cap b { font-size: 0.9rem; }
  .cg-hero-img .cap span { font-size: 0.64rem; }
  .cg-hero-img .cap .capic { width: 20px; height: 20px; }
}

/* ═══════════════════════════════════════════════════════════════════════
   Article template (guides, about, privacy, salary pages, hub pages).
   ═══════════════════════════════════════════════════════════════════════ */
body.nx .article { max-width: 820px; margin: 26px auto 30px; background: #fff; border: 1px solid var(--nx-line); border-radius: var(--nx-radius); box-shadow: var(--nx-shadow); padding: 34px 40px; backdrop-filter: none; -webkit-backdrop-filter: none; }
body.nx .breadcrumb { color: var(--nx-muted); }
body.nx .breadcrumb a { color: var(--nx-navy); }
body.nx .article h1 { color: var(--nx-ink); font-size: 2rem; }
body.nx .article .updated { color: var(--nx-muted); }
body.nx .article h2 { color: var(--nx-ink); }
body.nx .article h2::before { background: var(--nx-navy); }
body.nx .article h3 { color: var(--nx-ink); }
body.nx .article p, body.nx .article li { color: var(--nx-ink-soft); }
body.nx .article strong { color: var(--nx-ink); }
body.nx .article a { color: var(--nx-navy); }
body.nx .article table { border: 1px solid var(--nx-line); border-radius: 12px; font-size: 0.9rem; }
body.nx .article th { background: #f6f8fc; color: var(--nx-ink); }
body.nx .article th, body.nx .article td { border-bottom: 1px solid var(--nx-line-soft); }
body.nx .article tbody tr:nth-child(even) td { background: #fbfcfe; }
body.nx .article tr.strong td { background: var(--nx-blue-tint); color: var(--nx-ink); }
body.nx .cta-box { background: var(--nx-navy); border: 1px solid var(--nx-navy-deep); border-radius: 12px; box-shadow: var(--nx-shadow); }
body.nx .cta-box p { color: rgba(255, 255, 255, 0.88); }
body.nx .cta-box a { color: var(--nx-navy); border-radius: 8px; box-shadow: none; font-weight: 700; }
body.nx .related { border-top: 1px solid var(--nx-line-soft); }
body.nx .related a { color: var(--nx-navy); }
body.nx .article .nx-ad { padding: 0; margin: 26px 0 0; }
body.nx .article .nx-ad .ad-slot { width: 100%; max-width: none; margin: 0; }
body.nx .guides-strip .guide-card, body.nx .guide-list .guide-card { background: #fff; border: 1px solid var(--nx-line); border-radius: 12px; box-shadow: var(--nx-shadow); }
body.nx .guide-card h3 { color: var(--nx-ink); }
body.nx .guide-card:hover { border-color: #c9d7f2; }
body.nx .guide-list { max-width: 1180px; padding: 0 20px; }
@media (max-width: 760px) {
  body.nx .article { margin: 14px 16px 24px; padding: 22px 18px; }
}

/* ═══════════════════════════════════════════════════════════════════════
   Guide layout: TOC rail · numbered article · right sidebar (CTA, highlights,
   related). Opt in with <div class="nx-guidepage"> around the three columns.
   ═══════════════════════════════════════════════════════════════════════ */
.nx-guidepage { padding-block: 22px 30px; }
.nx-guidepage .breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 0.8rem; color: var(--nx-muted); margin: 0 0 18px; }
.nx-guidepage .breadcrumb a { color: var(--nx-ink-soft); text-decoration: none; }
.nx-guidepage .breadcrumb a:hover { color: var(--nx-navy); }
.nx-guidepage .breadcrumb .sep { color: #b9c5dc; }
.nx-guide-grid { display: grid; grid-template-columns: 200px minmax(0, 1fr) 280px; gap: 26px; align-items: start; }
.nx-guide-head { grid-column: 1 / 3; grid-row: 1; border-left: 4px solid var(--nx-navy); padding-left: 18px; margin: 0 0 6px; }
.nx-guide-head h1 { margin: 0 0 8px; font-size: 2.15rem; font-weight: 800; letter-spacing: -0.03em; line-height: 1.15; color: var(--nx-ink); }
.nx-guide-head .updated { margin: 0; font-size: 0.9rem; color: var(--nx-ink-soft); }

/* TOC rail */
.nx-toc { grid-column: 1; grid-row: 2; position: sticky; top: 84px; }
.nx-toc-box { background: #fff; border: 1px solid var(--nx-line); border-radius: 12px; box-shadow: var(--nx-shadow); overflow: hidden; }
.nx-toc-box .toc-title { display: block; font-size: 0.82rem; font-weight: 800; color: var(--nx-ink); padding: 12px 14px; background: var(--nx-blue-tint); border-bottom: 1px solid var(--nx-line-soft); }
.nx-toc-box a { display: block; padding: 10px 14px; font-size: 0.84rem; color: var(--nx-ink-soft); text-decoration: none; border-left: 3px solid transparent; }
.nx-toc-box a:hover { color: var(--nx-navy); background: #fafbfe; }
.nx-toc-box a.active { color: var(--nx-navy); background: var(--nx-blue-soft); border-left-color: var(--nx-navy); font-weight: 600; }
.nx-toc-cta { display: flex; align-items: center; gap: 10px; margin-top: 12px; background: var(--nx-blue-tint); border: 1px solid #d5e0f5; border-radius: 12px; padding: 12px 14px; text-decoration: none; color: var(--nx-ink); }
.nx-toc-cta .ic { width: 30px; height: 30px; border-radius: 8px; background: #fff; border: 1px solid #d5e0f5; display: grid; place-items: center; color: var(--nx-navy); flex: 0 0 auto; }
.nx-toc-cta .ic svg { width: 15px; height: 15px; }
.nx-toc-cta b { display: block; font-size: 0.8rem; font-weight: 700; color: var(--nx-navy); }
.nx-toc-cta small { display: block; font-size: 0.68rem; color: var(--nx-muted); }
.nx-toc-cta .arr { margin-left: auto; color: var(--nx-navy); font-weight: 800; }

/* Article column (numbered h2s) */
.nx-guide-body { grid-column: 2; grid-row: 2; counter-reset: sec; min-width: 0; }
.nx-guide-body h2 { counter-increment: sec; display: flex; align-items: baseline; gap: 8px; margin: 30px 0 10px; font-size: 1.25rem; font-weight: 800; letter-spacing: -0.02em; color: var(--nx-ink); scroll-margin-top: 90px; }
.nx-guide-body h2::before { content: counter(sec) "."; color: var(--nx-brand-accent, #1d5fd1); font-weight: 800; }
.nx-guide-body h2:first-child { margin-top: 0; }
.nx-guide-body p, .nx-guide-body li { font-size: 0.93rem; line-height: 1.7; color: var(--nx-ink-soft); }
.nx-guide-body p { margin: 0 0 12px; }
.nx-guide-body strong { color: var(--nx-ink); }
.nx-guide-body a { color: var(--nx-navy); font-weight: 600; }
.nx-guide-body table { width: 100%; border-collapse: separate; border-spacing: 0; margin: 12px 0; font-size: 0.9rem; border: 1px solid var(--nx-line); border-radius: 10px; overflow: hidden; background: #fff; }
.nx-guide-body th, .nx-guide-body td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--nx-line-soft); color: var(--nx-ink-soft); }
.nx-guide-body th { background: #f6f8fc; color: var(--nx-ink); font-weight: 700; font-size: 0.84rem; }
.nx-guide-body td:first-child { color: var(--nx-ink); }
.nx-guide-body tr:last-child td { border-bottom: none; }
.nx-guide-body td.num { text-align: right; font-variant-numeric: tabular-nums; font-weight: 600; color: var(--nx-ink); }
.nx-guide-body tr.strong td { background: var(--nx-blue-tint); font-weight: 800; color: var(--nx-navy); }
.nx-guide-body caption, .nx-guide-body .tcap { caption-side: top; text-align: left; background: var(--nx-blue-tint); font-weight: 700; color: var(--nx-ink); font-size: 0.86rem; padding: 10px 14px; border: 1px solid var(--nx-line); border-bottom: none; border-radius: 10px 10px 0 0; }
.nx-guide-body .tcap + table { margin-top: 0; border-top-left-radius: 0; border-top-right-radius: 0; }
/* Old-template tables came wrapped in .table-scroll (nowrap); in the guide column let cells wrap instead. */
.nx-guide-body .table-scroll { margin: 12px 0; background: none; }
.nx-guide-body .table-scroll > table { min-width: 0; }
.nx-guide-body .table-scroll > table th, .nx-guide-body .table-scroll > table td { white-space: normal; }
.nx-note { display: flex; gap: 10px; align-items: flex-start; background: var(--nx-blue-tint); border: 1px solid #d5e0f5; border-radius: 10px; padding: 12px 14px; margin: 12px 0 16px; font-size: 0.84rem; color: var(--nx-ink-soft); line-height: 1.55; }
.nx-note .ic { flex: 0 0 auto; width: 18px; height: 18px; border-radius: 50%; background: var(--nx-brand-accent, #1d5fd1); color: #fff; display: grid; place-items: center; font-size: 0.7rem; font-weight: 800; margin-top: 2px; }
.nx-note.ok { background: var(--nx-green-soft); border-color: #bfead4; color: #14532d; }
.nx-note.ok .ic { background: var(--nx-green); }
.nx-note.ok .ic::before { content: "✓"; }
.nx-note.info .ic::before { content: "i"; font-style: italic; }
.nx-checks { list-style: none; padding: 0; margin: 8px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 20px; }
.nx-checks li { display: flex; gap: 10px; align-items: flex-start; font-size: 0.88rem; margin: 0; }
.nx-checks li::before { content: "✓"; flex: 0 0 auto; width: 20px; height: 20px; border-radius: 50%; background: var(--nx-navy); color: #fff; font-size: 0.7rem; font-weight: 800; display: grid; place-items: center; margin-top: 2px; }

/* Right sidebar */
.nx-aside { grid-column: 3; grid-row: 1 / 3; position: sticky; top: 84px; display: grid; gap: 16px; align-content: start; }
.nx-aside-card { background: #fff; border: 1px solid var(--nx-line); border-radius: 12px; box-shadow: var(--nx-shadow); padding: 18px; }
.nx-aside-card.tint { background: var(--nx-blue-tint); border-color: #d5e0f5; }
.nx-aside-card h3 { margin: 0 0 6px; font-size: 1rem; font-weight: 800; color: var(--nx-ink); letter-spacing: -0.01em; }
.nx-aside-card p { margin: 0 0 12px; font-size: 0.82rem; color: var(--nx-ink-soft); line-height: 1.5; }
.nx-aside-card .nx-btn { width: 100%; box-sizing: border-box; }
.nx-hl { list-style: none; padding: 0; margin: 6px 0 0; }
.nx-hl li { display: flex; gap: 12px; align-items: center; padding: 11px 0; border-bottom: 1px solid var(--nx-line-soft); }
.nx-hl li:last-child { border-bottom: none; padding-bottom: 0; }
.nx-hl .ic { width: 38px; height: 38px; border-radius: 50%; background: var(--nx-blue-tint); color: var(--nx-navy); display: grid; place-items: center; flex: 0 0 auto; }
.nx-hl .ic svg { width: 18px; height: 18px; }
.nx-hl small { display: block; font-size: 0.72rem; color: var(--nx-muted); }
.nx-hl b { display: block; font-size: 0.92rem; color: var(--nx-ink); font-weight: 700; }
.nx-hl b em { font-style: normal; font-weight: 500; color: var(--nx-muted); font-size: 0.74rem; }
.nx-rel { list-style: none; padding: 0; margin: 4px 0 0; }
.nx-rel li { border-bottom: 1px solid var(--nx-line-soft); }
.nx-rel li:last-child { border-bottom: none; }
.nx-rel a { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 11px 0; font-size: 0.84rem; color: var(--nx-ink); text-decoration: none; font-weight: 500; }
.nx-rel a:hover { color: var(--nx-navy); }
.nx-rel a::after { content: "›"; color: var(--nx-navy); font-size: 1.2rem; font-weight: 700; }
.nx-guidepage .nx-ad { padding: 0; margin: 22px 0 0; }
.nx-guidepage .nx-ad .ad-slot { width: 100%; max-width: none; margin: 0; }

@media (max-width: 1080px) {
  .nx-guide-grid { grid-template-columns: 200px minmax(0, 1fr); }
  .nx-aside { grid-column: 1 / -1; grid-row: 3; position: static; grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .nx-guide-grid { grid-template-columns: 1fr; gap: 18px; }
  .nx-guide-head, .nx-toc, .nx-guide-body, .nx-aside { grid-column: auto; grid-row: auto; }
  .nx-guide-head h1 { font-size: 1.6rem; }
  .nx-toc { position: static; }
  .nx-toc-box a { padding: 9px 14px; }
  .nx-aside { grid-template-columns: 1fr; }
  .nx-checks { grid-template-columns: 1fr; }
  .nx-guide-body table { display: block; overflow-x: auto; }
  .nx-guide-body table thead, .nx-guide-body table tbody { display: table; width: 100%; }
}

/* ═══════════════════════════════════════════════════════════════════════
   Guides hub (guides/index.html)
   ═══════════════════════════════════════════════════════════════════════ */
.gh-hero-in { grid-template-columns: 1.35fr 1fr; padding-block: 26px 30px; }
.gh-hero-in .breadcrumb { display: flex; gap: 8px; font-size: 0.8rem; color: var(--nx-muted); margin: 0 0 14px; }
.gh-hero-in .breadcrumb a { color: var(--nx-ink-soft); text-decoration: none; }
.gh-hero-in .breadcrumb .sep { color: #b9c5dc; }
.gh-hero-in h1 { font-size: 2.9rem; }
.gh-hero-in .nx-sub { font-size: 1.05rem; color: var(--nx-ink-soft); font-weight: 500; line-height: 1.5; }
.gh-hero-img .cap { max-width: 34%; }
.gh-hero-img .cap b { font-size: 1.15rem; }
.gh-hero-img .cap span { font-size: 0.72rem; }

.gh-bar { display: flex; gap: 14px; align-items: center; justify-content: space-between; padding-block: 20px 4px; flex-wrap: wrap; }
.gh-tabs { display: flex; gap: 0; background: #fff; border: 1px solid var(--nx-line); border-radius: 9px; overflow-x: auto; scrollbar-width: none; }
.gh-tabs::-webkit-scrollbar { display: none; }
.gh-tab { border: none; border-right: 1px solid var(--nx-line-soft); background: none; font: inherit; font-size: 0.86rem; font-weight: 600; color: var(--nx-ink-soft); padding: 11px 20px; cursor: pointer; white-space: nowrap; }
.gh-tab:last-child { border-right: none; }
.gh-tab:hover { color: var(--nx-navy); background: var(--nx-blue-tint); }
.gh-tab.active { background: var(--nx-navy); color: #fff; }
.gh-search { position: relative; flex: 0 0 200px; }
.gh-search svg { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); width: 15px; height: 15px; color: var(--nx-navy); }
.gh-search input { width: 100%; box-sizing: border-box; font: inherit; font-size: 0.86rem; padding: 11px 12px 11px 34px; border: 1px solid var(--nx-line); border-radius: 9px; background: #fff; color: var(--nx-ink); outline: none; }
.gh-search input:focus { border-color: var(--nx-navy); box-shadow: 0 0 0 3px rgba(11, 60, 140, 0.12); }

.gh-featured { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 20px; align-items: center; background: var(--nx-blue-tint); border: 1px solid #d5e0f5; border-radius: 12px; padding: 22px 26px; margin-top: 18px; }
.gh-featured .tag { display: inline-block; font-size: 0.62rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--nx-navy); background: #dbe6fa; border-radius: 6px; padding: 5px 9px; margin-bottom: 12px; }
.gh-featured h2 { margin: 0 0 8px; font-size: 1.45rem; font-weight: 800; letter-spacing: -0.02em; color: var(--nx-ink); }
.gh-featured p { margin: 0 0 16px; font-size: 0.92rem; color: var(--nx-ink-soft); line-height: 1.55; max-width: 60ch; }
.gh-featured .art { position: relative; height: 150px; }
.gh-featured .art svg { position: absolute; right: 0; bottom: 0; width: 220px; height: 140px; }
.gh-featured .art .pill { position: absolute; left: 0; top: 30px; background: #fff; border: 1px solid #d5e0f5; border-radius: 10px; padding: 10px 14px; box-shadow: var(--nx-shadow); font-size: 0.72rem; color: var(--nx-muted); line-height: 1.3; }
.gh-featured .art .pill b { display: block; font-size: 1.05rem; color: var(--nx-navy); font-weight: 800; }

.gh-main { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 20px; align-items: start; padding-block: 20px 10px; }
.gh-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.gh-card { display: flex; flex-direction: column; text-decoration: none; color: var(--nx-ink); background: #fff; border: 1px solid var(--nx-line); border-radius: 12px; padding: 20px 18px 18px; box-shadow: var(--nx-shadow); transition: transform 0.15s, border-color 0.15s; min-width: 0; }
.gh-card:hover { transform: translateY(-2px); border-color: #c9d7f2; }
.gh-card.hidden { display: none; }
.gh-card .top { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.gh-card .ic { width: 38px; height: 38px; border-radius: 10px; background: var(--nx-blue-tint); color: var(--nx-navy); display: grid; place-items: center; flex: 0 0 auto; }
.gh-card .ic svg { width: 19px; height: 19px; }
.gh-card .cat { font-size: 0.62rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--nx-muted); }
.gh-card b { font-size: 1rem; font-weight: 700; line-height: 1.3; margin-bottom: 8px; }
.gh-card b .new { display: inline-block; vertical-align: 2px; font-size: 0.56rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: #067647; background: var(--nx-green-soft); border: 1px solid #bfead4; border-radius: 999px; padding: 2px 7px; margin-left: 6px; }
.gh-card p { margin: 0 0 14px; font-size: 0.8rem; color: var(--nx-muted); line-height: 1.5; flex: 1; }
.gh-card .more { font-size: 0.8rem; font-weight: 700; color: var(--nx-navy); }
.gh-empty { grid-column: 1 / -1; text-align: center; color: var(--nx-muted); font-size: 0.9rem; padding: 30px 0; }

.gh-side { display: grid; gap: 16px; position: sticky; top: 84px; }
.gh-side .nx-aside-card h3 { display: flex; align-items: center; gap: 8px; }
.gh-side .nx-aside-card h3 svg { width: 18px; height: 18px; color: #e8590c; }
.gh-topics { list-style: none; padding: 0; margin: 4px 0 0; display: grid; gap: 6px; }
.gh-topics a { display: flex; justify-content: space-between; align-items: center; padding: 9px 12px; border: 1px solid var(--nx-line); border-radius: 8px; font-size: 0.82rem; color: var(--nx-ink); text-decoration: none; }
.gh-topics a:hover { border-color: #c9d7f2; color: var(--nx-navy); background: #fafbfe; }
.gh-topics a::after { content: "›"; color: var(--nx-navy); font-weight: 700; font-size: 1.1rem; }
.gh-side .q-ic { width: 34px; height: 34px; color: var(--nx-navy); margin-bottom: 8px; }
.gh-side .nx-btn.ghost { margin-top: 8px; }

.gh-main + .nx-ad { padding: 0; margin-top: 18px; }
.gh-main + .nx-ad .ad-slot { width: 100%; max-width: none; margin: 0; background: #fff; border: 1px solid var(--nx-line); border-radius: 12px; box-shadow: var(--nx-shadow); }
.gh-notify { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 18px; align-items: center; background: var(--nx-blue-tint); border: 1px solid #d5e0f5; border-radius: 12px; padding: 22px 26px; margin-top: 18px; }
.gh-notify .ic { width: 50px; height: 50px; border-radius: 12px; background: #dbe6fa; color: var(--nx-navy); display: grid; place-items: center; }
.gh-notify .ic svg { width: 24px; height: 24px; }
.gh-notify b { display: block; font-size: 1.15rem; font-weight: 800; color: var(--nx-ink); letter-spacing: -0.01em; }
.gh-notify small { display: block; font-size: 0.84rem; color: var(--nx-ink-soft); margin-top: 3px; }
.gh-notify form { display: flex; gap: 10px; }
.gh-notify input { font: inherit; font-size: 0.86rem; padding: 11px 14px; border: 1px solid var(--nx-line); border-radius: 8px; background: #fff; width: 260px; max-width: 100%; box-sizing: border-box; outline: none; }
.gh-notify input:focus { border-color: var(--nx-navy); }
.gh-notify .nx-btn.soft { background: #dbe6fa; color: var(--nx-navy); border-color: #dbe6fa; }
.gh-notify .nx-btn.soft:hover { background: #c9d9f7; }

@media (max-width: 1024px) {
  .gh-hero-in { grid-template-columns: 1fr; }
  .gh-main { grid-template-columns: 1fr; }
  .gh-side { position: static; grid-template-columns: 1fr 1fr; }
  .gh-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .gh-hero-in h1 { font-size: 2rem; }
  .gh-search { flex: 1 1 100%; }
  .gh-featured { grid-template-columns: 1fr; }
  .gh-featured .art { height: 120px; }
  .gh-grid { grid-template-columns: 1fr; }
  .gh-side { grid-template-columns: 1fr; }
  .gh-notify { grid-template-columns: 1fr; }
  .gh-notify form { flex-wrap: wrap; }
  .gh-notify input { width: 100%; }
}

/* ═══════════════════════════════════════════════════════════════════════
   Smart Money Picks (smart-money-picks.html) - builds on the guides-hub
   hero / tab bar; cards are rendered by offers.js, filtered by picks-ui.js.
   ═══════════════════════════════════════════════════════════════════════ */
.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; }
.sp-hero-in .breadcrumb a:last-of-type { color: var(--nx-navy); }
.sp-hero-in .nx-sub { max-width: 54ch; }
.sp-hero-img .cap { max-width: 36%; }
.sp-hero-img .cap b { font-size: 1.25rem; line-height: 1.2; }
.sp-hero-img .cap .rule { display: block; width: 34px; height: 3px; border-radius: 2px; background: var(--nx-navy); margin-top: 12px; }

.sp-bar { padding-block: 22px 8px; flex-wrap: nowrap; }
.sp-bar .gh-tabs { min-width: 0; }
.sp-bar .gh-tab { padding: 11px 15px; font-size: 0.84rem; }
.sp-search { flex: 0 0 200px; }

body.nx .sp-section { max-width: none; margin: 0; padding: 0; text-align: left; }
.sp-head { margin: 14px 0 16px; }
body.nx .sp-section .sp-head h2 { margin: 0; font-size: 1.45rem; }
.sp-sort { position: relative; display: inline-flex; align-items: center; }
body.nx .sp-sort select { appearance: none; -webkit-appearance: none; font: inherit; font-size: 0.86rem; font-weight: 700; color: var(--nx-navy); background: transparent; background-image: none; border: none; box-shadow: none; width: auto; padding: 6px 22px 6px 6px; cursor: pointer; outline: none; }
.sp-sort::after { content: ""; position: absolute; right: 6px; top: 50%; width: 7px; height: 7px; border-right: 2px solid var(--nx-navy); border-bottom: 2px solid var(--nx-navy); transform: translateY(-70%) rotate(45deg); pointer-events: none; }
body.nx .sp-sort select:hover, body.nx .sp-sort select:focus { background: transparent; border: none; box-shadow: none; }
body.nx .sp-sort select:focus-visible { outline: 2px solid var(--nx-navy); outline-offset: 2px; border-radius: 6px; }

.sp-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.sp-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--nx-line); border-radius: 12px; padding: 20px 18px 18px; box-shadow: var(--nx-shadow); transition: transform 0.15s, border-color 0.15s; min-width: 0; }
.sp-card:hover { transform: translateY(-2px); border-color: #c9d7f2; }
.sp-card.hidden { display: none; }
.sp-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; margin-bottom: 16px; }
.sp-ic { width: 44px; height: 44px; border-radius: 10px; background: var(--nx-blue-tint); color: var(--nx-navy); display: grid; place-items: center; flex: 0 0 auto; font-size: 1.3rem; }
.sp-ic svg { width: 22px; height: 22px; }
.sp-ic.is-purple { background: #f3ecfb; color: #7c3aed; }
.sp-ic.is-green { background: var(--nx-green-soft); color: #067647; }
.sp-badge { font-size: 0.62rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; padding: 5px 10px; border-radius: 999px; white-space: nowrap; margin-top: 2px; }
.sp-badge.is-green  { color: #067647; background: var(--nx-green-soft); border: 1px solid #bfead4; }
.sp-badge.is-blue   { color: var(--nx-navy); background: var(--nx-blue-soft); border: 1px solid #c9d7f2; }
.sp-badge.is-purple { color: #6d28d9; background: #f3ecfb; border: 1px solid #ddd0f7; }
.sp-badge.is-red    { color: #b42318; background: #fef0ef; border: 1px solid #f7cfcc; }
.sp-badge.is-amber  { color: #9a5b00; background: #fff4e5; border: 1px solid #f5d0a0; }
.sp-title { margin: 0 0 8px; font-size: 1.05rem; font-weight: 800; line-height: 1.3; letter-spacing: -0.01em; color: var(--nx-ink); }
.sp-desc { margin: 0 0 10px; font-size: 0.82rem; color: var(--nx-ink-soft); line-height: 1.5; }
.sp-note { margin: 0 0 14px; font-size: 0.78rem; color: var(--nx-muted); line-height: 1.5; flex: 1; }
.sp-note b { color: var(--nx-ink-soft); font-weight: 600; }
.sp-brand { display: inline-flex; align-items: center; gap: 6px; align-self: flex-start; font-size: 0.92rem; font-weight: 800; letter-spacing: -0.01em; margin: 0 0 14px; line-height: 1; }
.sp-brand svg { width: 18px; height: 18px; flex: 0 0 auto; }
.sp-btn { width: 100%; box-sizing: border-box; }
.sp-more { display: inline-block; margin-top: 12px; font-size: 0.8rem; font-weight: 700; color: var(--nx-navy); text-decoration: none; }
.sp-more:hover { text-decoration: underline; }
.sp-compare { margin: 22px 0 0; text-align: center; }
.sp-compare a { display: inline-flex; align-items: center; gap: 8px; font-size: 0.95rem; font-weight: 700; color: var(--nx-navy); text-decoration: none; }
.sp-compare a svg { width: 18px; height: 18px; }
.sp-compare a:hover { text-decoration: underline; }
body.nx .sp-disc { margin: 12px 0 0; text-align: center; font-size: 0.72rem; color: var(--nx-muted); }

.sp-steps-sec { padding-block: 30px 4px; }
.sp-steps-sec h2 { margin: 0 0 16px; font-size: 1.35rem; font-weight: 800; letter-spacing: -0.02em; color: var(--nx-ink); }
.sp-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; }
.sp-steps li { display: flex; gap: 12px; align-items: flex-start; padding: 4px 18px 4px 0; border-right: 1px solid var(--nx-line); margin-right: 18px; min-width: 0; }
.sp-steps li:last-child { border-right: none; margin-right: 0; padding-right: 0; }
.sp-steps .n { width: 32px; height: 32px; border-radius: 50%; background: var(--nx-navy); color: #fff; display: grid; place-items: center; font-size: 0.86rem; font-weight: 800; flex: 0 0 auto; }
.sp-steps b { display: block; font-size: 0.92rem; font-weight: 800; color: var(--nx-ink); margin: 6px 0 4px; }
.sp-steps p { margin: 0; font-size: 0.8rem; color: var(--nx-muted); line-height: 1.5; }

.sp-cta { margin-top: 26px; }
.sp-cta .ic { border-radius: 50%; background: #dbe6fa; }
.sp-cta .nx-btn { white-space: nowrap; }
body.nx .nx-ad .picks-ad { margin-top: 0; }

@media (max-width: 1024px) {
  .sp-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sp-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 0; }
  .sp-steps li:nth-child(2n) { border-right: none; margin-right: 0; padding-right: 0; }
}
@media (max-width: 760px) {
  .sp-hero-img .cap b { font-size: 0.95rem; }
  .sp-hero-img .cap .rule { margin-top: 8px; }
  .sp-bar { flex-wrap: wrap; }
  .sp-search { flex: 1 1 100%; }
  .sp-head { flex-wrap: wrap; gap: 8px; }
  .sp-grid { grid-template-columns: 1fr; }
  .sp-steps { grid-template-columns: 1fr; }
  .sp-steps li { border-right: none; margin-right: 0; padding-right: 0; }
  .sp-cta { grid-template-columns: 1fr; }
}

/* ═══════════════════════════════════════════════════════════════════════
   About page (about.html)
   ═══════════════════════════════════════════════════════════════════════ */
.ab-hero { background: linear-gradient(180deg, #eef3fb 0%, #f4f7fc 100%); }
.ab-hero-in { grid-template-columns: 1.05fr 1fr; gap: 40px; padding-block: 40px 34px; }
.ab-eyebrow { display: flex; align-items: center; gap: 10px; margin: 0 0 14px; font-size: 0.68rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--nx-navy); }
.ab-eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--nx-navy); border-radius: 2px; }
.ab-hero-in h1 { font-size: 2.7rem; line-height: 1.1; margin-bottom: 14px; }
.ab-hero-in .nx-sub { font-size: 1rem; color: var(--nx-ink-soft); font-weight: 500; line-height: 1.6; margin: 0 0 26px; max-width: 52ch; }
.ab-feats { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.ab-feats li { display: flex; align-items: center; gap: 9px; min-width: 0; }
.ab-feats .ic { width: 36px; height: 36px; border-radius: 50%; background: #dbe6fa; color: var(--nx-navy); display: grid; place-items: center; flex: 0 0 auto; }
.ab-feats .ic svg { width: 19px; height: 19px; }
.ab-feats b { display: block; font-size: 0.8rem; font-weight: 700; color: var(--nx-ink); }
.ab-feats small { display: block; font-size: 0.66rem; color: var(--nx-muted); margin-top: 2px; }

/* Laptop mock-up */
.ab-laptop { position: relative; width: 100%; max-width: 560px; margin-left: auto; padding: 16px 84px 8px 96px; box-sizing: border-box; }
.ab-screen { position: relative; z-index: 2; background: #0e1626; border-radius: 12px 12px 4px 4px; padding: 12px 12px 14px; box-shadow: 0 20px 40px -18px rgba(11, 26, 58, 0.5); }
.ab-screen::before { content: ""; position: absolute; left: 50%; top: 5px; width: 5px; height: 5px; border-radius: 50%; background: #2a3650; transform: translateX(-50%); }
.ab-scr-logo { background: #fff; border-radius: 6px 6px 0 0; padding: 10px 16px 6px; font-size: 0.78rem; font-weight: 800; color: var(--nx-navy); letter-spacing: -0.02em; line-height: 1; }
.ab-scr-logo span { color: var(--nx-brand-accent, #1d5fd1); }
.ab-scr-logo small { display: block; font-size: 0.42rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--nx-muted); font-weight: 600; margin-top: 3px; }
.ab-scr-body { background: linear-gradient(180deg, #fff, #f2f6fd); border-radius: 0 0 6px 6px; padding: 12px 16px 16px; display: grid; grid-template-columns: 1.15fr 1fr; gap: 14px; align-items: center; }
.ab-scr-body b { display: block; font-size: 1.05rem; line-height: 1.15; font-weight: 800; letter-spacing: -0.02em; color: var(--nx-ink); }
.ab-scr-body small { display: block; font-size: 0.6rem; color: var(--nx-muted); margin: 5px 0 10px; }
.ab-scr-btn { display: inline-block; background: var(--nx-navy); color: #fff; font-size: 0.6rem; font-weight: 700; padding: 6px 10px; border-radius: 5px; }
.ab-scr-body ul { list-style: none; margin: 0; padding: 8px 10px; background: #fff; border: 1px solid #d5e0f5; border-radius: 8px; display: grid; gap: 6px; }
.ab-scr-body li { display: flex; align-items: center; gap: 6px; font-size: 0.6rem; font-weight: 600; color: var(--nx-ink-soft); }
.ab-scr-body li svg { width: 11px; height: 11px; color: var(--nx-brand-accent, #1d5fd1); flex: 0 0 auto; }
.ab-base { position: relative; z-index: 2; height: 12px; margin: 0 -22px; background: linear-gradient(180deg, #d9dee8, #b8c0cf); border-radius: 0 0 14px 14px; }
.ab-base::after { content: ""; position: absolute; left: 50%; top: 0; width: 70px; height: 4px; background: #98a2b6; border-radius: 0 0 4px 4px; transform: translateX(-50%); }
.ab-mug { position: absolute; left: 0; bottom: 18px; z-index: 3; width: 78px; height: 92px; background: linear-gradient(180deg, #1c2b4a, #0b1a3a); border-radius: 8px 8px 12px 12px; display: grid; place-items: center; color: #dbe6fa; font-size: 0.6rem; font-weight: 600; line-height: 1.5; text-align: center; box-shadow: 0 14px 22px -12px rgba(11, 26, 58, 0.6); }
.ab-mug::before { content: ""; position: absolute; right: -16px; top: 18px; width: 22px; height: 38px; border: 7px solid #142244; border-left: none; border-radius: 0 14px 14px 0; z-index: -1; }
.ab-books { position: absolute; right: 0; bottom: 26px; z-index: 1; display: grid; gap: 4px; }
.ab-books span { display: block; width: 92px; padding: 6px 9px; background: linear-gradient(90deg, #0b1a3a, #16305c); color: #dbe6fa; font-size: 0.6rem; font-weight: 700; border-radius: 3px 6px 6px 3px; box-shadow: 0 6px 12px -8px rgba(11, 26, 58, 0.7); font-size: 0.56rem; line-height: 1.2; }

/* Body sections */
.ab-main { padding-block: 26px 10px; }
.ab-two { display: grid; grid-template-columns: 1fr 1fr; gap: 0; }
.ab-item { display: flex; gap: 18px; align-items: flex-start; padding: 22px 32px 22px 0; }
.ab-item + .ab-item { border-left: 1px solid var(--nx-line); padding-left: 32px; padding-right: 0; }
.ab-item .ic, .ab-band > .ic, .ab-value .ic { width: 56px; height: 56px; border-radius: 50%; background: var(--nx-blue-soft); color: var(--nx-navy); display: grid; place-items: center; flex: 0 0 auto; }
.ab-item .ic svg, .ab-band > .ic svg, .ab-value .ic svg { width: 26px; height: 26px; }
.ab-item h2, .ab-band h2 { margin: 0 0 8px; font-size: 1.2rem; font-weight: 800; letter-spacing: -0.02em; color: var(--nx-ink); }
.ab-item p, .ab-band p { margin: 0; font-size: 0.95rem; line-height: 1.65; color: var(--nx-ink-soft); }
.ab-item a { color: var(--nx-navy); font-weight: 600; }

.ab-h2 { display: flex; align-items: center; gap: 12px; margin: 22px 0 18px; font-size: 1.25rem; font-weight: 800; letter-spacing: -0.02em; color: var(--nx-ink); }
.ab-h2::before { content: ""; width: 30px; height: 2px; background: var(--nx-navy); border-radius: 2px; }
.ab-values-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.ab-value { background: #fff; border: 1px solid var(--nx-line); border-radius: 12px; padding: 22px 20px 20px; box-shadow: var(--nx-shadow); min-width: 0; }
.ab-value .ic { margin-bottom: 16px; }
.ab-value b { display: block; font-size: 1.05rem; font-weight: 800; color: var(--nx-ink); margin-bottom: 8px; letter-spacing: -0.01em; }
.ab-value p { margin: 0; font-size: 0.86rem; line-height: 1.55; color: var(--nx-ink-soft); }
.ab-value a { color: var(--nx-navy); font-weight: 600; text-decoration: none; }
.ab-value a:hover { text-decoration: underline; }

.ab-band { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 20px; align-items: center; background: var(--nx-blue-tint); border: 1px solid #d5e0f5; border-radius: 12px; padding: 24px 28px; margin-top: 24px; }
.ab-band > .ic { width: 60px; height: 60px; background: #dbe6fa; }
.ab-band p { font-size: 0.86rem; }
.ab-updated { display: flex; gap: 14px; align-items: center; border-left: 1px solid #c9d7f2; padding-left: 26px; margin-left: 6px; }
.ab-updated .ic { color: var(--nx-navy); width: 26px; height: 26px; flex: 0 0 auto; }
.ab-updated .ic svg { width: 26px; height: 26px; }
.ab-updated small { display: block; font-size: 0.8rem; color: var(--nx-ink-soft); font-weight: 600; }
.ab-updated b { display: block; font-size: 1.35rem; font-weight: 800; color: var(--nx-ink); letter-spacing: -0.02em; line-height: 1.2; }
.ab-updated span { display: block; font-size: 0.72rem; color: var(--nx-muted); margin-top: 2px; white-space: nowrap; }

.ab-cta { margin-top: 20px; }
.ab-cta .ic.is-green { border-radius: 50%; background: var(--nx-green-soft); color: #067647; width: 60px; height: 60px; }
.ab-cta .nx-btn { white-space: nowrap; }
.ab-main .nx-ad { padding-block: 20px 0; }

@media (max-width: 1024px) {
  .ab-hero-in { grid-template-columns: 1fr; }
  .ab-laptop { margin: 8px auto 0; }
  .ab-values-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ab-band { grid-template-columns: auto minmax(0, 1fr); }
  .ab-updated { grid-column: 1 / -1; border-left: none; padding-left: 0; margin-left: 0; border-top: 1px solid #c9d7f2; padding-top: 16px; }
}
@media (max-width: 760px) {
  .ab-hero-in h1 { font-size: 2rem; }
  .ab-laptop { padding-left: 0; padding-right: 0; }
  .ab-base { margin: 0 -8px; }
  .ab-mug, .ab-books { display: none; }
  .ab-feats { grid-template-columns: 1fr; }
  .ab-two { grid-template-columns: 1fr; }
  .ab-item { padding: 18px 0; border-bottom: 1px solid var(--nx-line); }
  .ab-item + .ab-item { border-left: none; padding-left: 0; }
  .ab-two:last-of-type .ab-item:last-child { border-bottom: none; }
  .ab-values-grid { grid-template-columns: 1fr; }
  .ab-band { grid-template-columns: 1fr; padding: 20px; }
  .ab-cta { grid-template-columns: 1fr; }
  .ab-updated span { white-space: normal; }
}

/* ── .nx-prose: article typography for editorial blocks on non-guide pages
   (Smart Money Picks, homepage explainer, contact, about). Same look as
   .nx-guide-body minus the section counter. ── */
.nx-prose { max-width: 860px; margin: 0 auto; padding-block: 28px 6px; }
.nx-prose h2 { margin: 30px 0 10px; font-size: 1.35rem; font-weight: 800; letter-spacing: -0.02em; color: var(--nx-ink); scroll-margin-top: 90px; }
.nx-prose h2:first-child { margin-top: 0; }
.nx-prose h3 { margin: 22px 0 8px; font-size: 1.05rem; font-weight: 800; color: var(--nx-ink); }
.nx-prose p, .nx-prose li { font-size: 0.95rem; line-height: 1.7; color: var(--nx-ink-soft); }
.nx-prose p { margin: 0 0 12px; }
.nx-prose ul, .nx-prose ol { margin: 0 0 14px; padding-left: 22px; }
.nx-prose li { margin-bottom: 6px; }
.nx-prose strong { color: var(--nx-ink); }
.nx-prose a { color: var(--nx-navy); font-weight: 600; }
.nx-prose table { width: 100%; border-collapse: separate; border-spacing: 0; margin: 12px 0; font-size: 0.9rem; border: 1px solid var(--nx-line); border-radius: 10px; overflow: hidden; background: #fff; }
.nx-prose th, .nx-prose td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--nx-line-soft); color: var(--nx-ink-soft); vertical-align: top; }
.nx-prose th { background: #f6f8fc; color: var(--nx-ink); font-weight: 700; font-size: 0.84rem; }
.nx-prose td:first-child { color: var(--nx-ink); }
.nx-prose tr:last-child td { border-bottom: none; }
.nx-prose td.num { text-align: right; font-variant-numeric: tabular-nums; font-weight: 600; color: var(--nx-ink); }
.nx-prose .table-scroll { margin: 12px 0; background: none; }
.nx-prose .table-scroll > table { min-width: 0; }
.nx-prose .table-scroll > table th, .nx-prose .table-scroll > table td { white-space: normal; }
.nx-prose .faq-item { margin-bottom: 10px; }
.sp-intro { max-width: 860px; margin: 0 0 18px; font-size: 0.95rem; line-height: 1.7; color: var(--nx-ink-soft); }
.sp-intro a { color: var(--nx-navy); font-weight: 600; }
@media (max-width: 640px) {
  .nx-prose { padding-block: 18px 4px; }
  .nx-prose h2 { font-size: 1.2rem; }
}

/* ── Contact page ── */
.ct-hero-in { padding-block: 34px 30px; max-width: 760px; }
.ct-hero-in h1 { font-size: 2.3rem; line-height: 1.12; margin: 0 0 12px; letter-spacing: -0.02em; }
.ct-hero-in .nx-sub { font-size: 1rem; color: var(--nx-ink-soft); line-height: 1.65; margin: 0; }
.ct-hero-in .nx-sub a { color: var(--nx-navy); font-weight: 600; }
.ct-hero-in .breadcrumb { margin-bottom: 14px; }
.ct-main { padding-block: 28px 10px; }
.ct-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(260px, 0.8fr); gap: 24px; align-items: start; }
.ct-form-card { background: #fff; border: 1px solid var(--nx-line); border-radius: 14px; box-shadow: var(--nx-shadow); padding: 26px 28px; }
.ct-form-card h2 { margin: 0 0 18px; font-size: 1.3rem; font-weight: 800; letter-spacing: -0.02em; color: var(--nx-ink); }
.ct-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.ct-field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.ct-field > span { font-size: 0.82rem; font-weight: 700; color: var(--nx-ink); }
.ct-field > span small { font-weight: 500; color: var(--nx-muted); }
.ct-field input, .ct-field select, .ct-field textarea { font: inherit; font-size: 0.92rem; padding: 11px 13px; border: 1px solid var(--nx-line); border-radius: 9px; background: #fff; color: var(--nx-ink); outline: none; width: 100%; box-sizing: border-box; transition: border-color 0.15s, box-shadow 0.15s; }
.ct-field textarea { resize: vertical; min-height: 140px; line-height: 1.55; }
.ct-field input:focus, .ct-field select:focus, .ct-field textarea:focus { border-color: var(--nx-navy); box-shadow: 0 0 0 3px rgba(29, 95, 209, 0.14); }
.ct-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.ct-consent { margin: 2px 0 16px; font-size: 0.78rem; color: var(--nx-muted); line-height: 1.5; }
.ct-consent a { color: var(--nx-navy); font-weight: 600; }
.ct-actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.ct-status { font-size: 0.84rem; color: var(--nx-ink-soft); }
.ct-status.is-error { color: #b42318; font-weight: 600; }
.ct-success { display: flex; gap: 16px; align-items: flex-start; padding: 8px 4px; }
.ct-success .ic { flex: 0 0 44px; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: #e8f7ee; color: #1a7f45; }
.ct-success .ic svg { width: 24px; height: 24px; }
.ct-success b { display: block; font-size: 1.05rem; color: var(--nx-ink); margin-bottom: 6px; }
.ct-success p { margin: 0 0 10px; font-size: 0.92rem; color: var(--nx-ink-soft); line-height: 1.6; }
.ct-success a { color: var(--nx-navy); font-weight: 600; font-size: 0.9rem; }
.ct-side .nx-aside-card { margin-bottom: 14px; }
.ct-side .nx-aside-card p a { color: var(--nx-navy); font-weight: 600; }
.ct-prose { max-width: none; margin-top: 10px; }
@media (max-width: 860px) {
  .ct-grid { grid-template-columns: 1fr; }
  .ct-row { grid-template-columns: 1fr; gap: 0; }
  .ct-form-card { padding: 20px 18px; }
  .ct-hero-in h1 { font-size: 1.8rem; }
}
.ct-success[hidden], .ct-field[hidden], #ctForm[hidden] { display: none !important; }

/* ── Homepage explainer: card layout matching the FAQ / guide cards ── */
.nx-explainer { padding-block: 22px 6px; }
.hx-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(280px, 1fr); gap: 16px; align-items: start; }
.hx-card { background: #fff; border: 1px solid var(--nx-line); border-radius: 12px; box-shadow: var(--nx-shadow); padding: 20px 22px; }
.hx-card.tint { background: var(--nx-blue-tint); border-color: #d5e0f5; }
.hx-card h3 { margin: 0 0 8px; font-size: 1rem; font-weight: 800; color: var(--nx-ink); letter-spacing: -0.01em; }
.hx-prose p { margin: 0 0 12px; font-size: 0.9rem; line-height: 1.7; color: var(--nx-ink-soft); }
.hx-prose p:last-child { margin-bottom: 0; }
.hx-prose h3 { margin: 18px 0 8px; }
.hx-prose strong { color: var(--nx-ink); }
.hx-prose a { color: var(--nx-navy); font-weight: 600; }
.hx-list { list-style: none; margin: 0 0 6px; padding: 0; display: grid; gap: 10px; }
.hx-list li { display: flex; gap: 12px; align-items: flex-start; font-size: 0.88rem; line-height: 1.6; color: var(--nx-ink-soft); }
.hx-list li b { color: var(--nx-ink); }
.hx-list .ic, .hx-who .ic { width: 34px; height: 34px; border-radius: 9px; background: var(--nx-blue-tint); color: var(--nx-navy); display: grid; place-items: center; flex: 0 0 auto; }
.hx-list .ic svg, .hx-who .ic svg { width: 17px; height: 17px; }
.hx-side { display: grid; gap: 16px; }
.hx-sub { margin: 0 0 10px; font-size: 0.78rem; color: var(--nx-muted); line-height: 1.5; }
.hx-table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 0.86rem; background: #fff; border: 1px solid var(--nx-line); border-radius: 10px; overflow: hidden; }
.hx-table th, .hx-table td { padding: 8px 12px; text-align: left; border-bottom: 1px solid var(--nx-line-soft); color: var(--nx-ink-soft); }
.hx-table th { background: #f6f8fc; color: var(--nx-ink); font-weight: 700; font-size: 0.78rem; }
.hx-table td:first-child { color: var(--nx-ink); }
.hx-table td:last-child, .hx-table th:last-child { text-align: right; font-variant-numeric: tabular-nums; font-weight: 700; color: var(--nx-navy); }
.hx-table tr:last-child td { border-bottom: none; }
.hx-more { display: inline-block; margin-top: 12px; font-size: 0.8rem; font-weight: 700; color: var(--nx-navy); text-decoration: none; }
.hx-more:hover { text-decoration: underline; }
.hx-who { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.hx-who li { display: flex; gap: 12px; align-items: flex-start; }
.hx-who b { display: block; font-size: 0.86rem; font-weight: 700; color: var(--nx-ink); }
.hx-who small { display: block; font-size: 0.74rem; color: var(--nx-muted); line-height: 1.45; margin-top: 2px; }
@media (max-width: 900px) {
  .hx-grid { grid-template-columns: 1fr; }
  .hx-card { padding: 16px; }
}

/* ── About: "How the site is made" (matches ab-item / ab-value components) ── */
.ab-made { border-top: 1px solid var(--nx-line); margin-top: 24px; padding-top: 6px; }
.ab-lead { margin: 0 0 22px; font-size: 0.95rem; line-height: 1.7; color: var(--nx-ink-soft); max-width: 78ch; }
.ab-h3 { margin: 0 0 14px; font-size: 1.05rem; font-weight: 800; color: var(--nx-ink); letter-spacing: -0.01em; }
.ab-steps { list-style: none; margin: 0 0 8px; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
.ab-steps li { display: flex; gap: 12px; align-items: flex-start; background: #fff; border: 1px solid var(--nx-line); border-radius: 12px; padding: 16px 16px 14px; box-shadow: var(--nx-shadow); min-width: 0; }
.ab-steps .n { flex: 0 0 auto; width: 30px; height: 30px; border-radius: 50%; background: var(--nx-navy); color: #fff; font-weight: 800; font-size: 0.82rem; display: grid; place-items: center; }
.ab-steps b { display: block; font-size: 0.9rem; font-weight: 800; color: var(--nx-ink); margin-bottom: 4px; line-height: 1.3; }
.ab-steps p { margin: 0; font-size: 0.78rem; line-height: 1.5; color: var(--nx-ink-soft); }
.ab-three { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin-top: 8px; }
.ab-three .ab-item { padding: 22px 26px 22px 0; }
.ab-three .ab-item + .ab-item { border-left: 1px solid var(--nx-line); padding-left: 26px; }
.ab-three .ab-item:last-child { padding-right: 0; }
.ab-three .ab-item h2 { font-size: 1.05rem; }
.ab-three .ab-item p { font-size: 0.88rem; }
.ab-three .ab-item p strong { color: var(--nx-ink); }
@media (max-width: 1024px) {
  .ab-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ab-three { grid-template-columns: 1fr; }
  .ab-three .ab-item, .ab-three .ab-item + .ab-item { padding: 18px 0; border-left: none; border-top: 1px solid var(--nx-line); }
  .ab-three .ab-item:first-child { border-top: none; }
}
@media (max-width: 640px) { .ab-steps { grid-template-columns: 1fr; } }

/* ── Smart Money Picks editorial (cards + band, matching the page) ── */
.sp-editorial { padding-top: 26px; }
.sp-editorial .sp-head { margin-top: 26px; }
.sp-editorial .sp-intro { max-width: none; }
.sp-rules { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.sp-rule { background: #fff; border: 1px solid var(--nx-line); border-radius: 12px; padding: 20px; box-shadow: var(--nx-shadow); min-width: 0; }
.sp-rule .ic { width: 42px; height: 42px; border-radius: 10px; background: var(--nx-blue-tint); color: var(--nx-navy); display: grid; place-items: center; margin-bottom: 12px; }
.sp-rule .ic svg { width: 20px; height: 20px; }
.sp-rule b { display: block; font-size: 1rem; font-weight: 800; color: var(--nx-ink); margin-bottom: 6px; letter-spacing: -0.01em; }
.sp-rule p { margin: 0; font-size: 0.84rem; line-height: 1.55; color: var(--nx-ink-soft); }
.sp-table-card { background: #fff; border: 1px solid var(--nx-line); border-radius: 12px; box-shadow: var(--nx-shadow); margin: 0; }
.sp-table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 0.88rem; min-width: 0; }
.sp-table th, .sp-table td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--nx-line-soft); color: var(--nx-ink-soft); vertical-align: top; white-space: normal; line-height: 1.55; }
.sp-table th { background: #f6f8fc; color: var(--nx-ink); font-weight: 700; font-size: 0.8rem; }
.sp-table tr:first-child th:first-child { border-top-left-radius: 12px; }
.sp-table tr:first-child th:last-child { border-top-right-radius: 12px; }
.sp-table td:first-child { color: var(--nx-ink); font-weight: 600; }
.sp-table td:nth-child(2) { color: var(--nx-navy); font-weight: 700; white-space: nowrap; }
.sp-table tr:last-child td { border-bottom: none; }
.sp-table a { color: var(--nx-navy); font-weight: 600; }
.sp-know { display: flex; gap: 18px; align-items: flex-start; background: var(--nx-blue-tint); border: 1px solid #d5e0f5; border-radius: 12px; padding: 22px 26px; margin-top: 26px; }
.sp-know > .ic { width: 52px; height: 52px; border-radius: 50%; background: #dbe6fa; color: var(--nx-navy); display: grid; place-items: center; flex: 0 0 auto; }
.sp-know > .ic svg { width: 24px; height: 24px; }
.sp-know h2 { margin: 4px 0 8px; font-size: 1.15rem; font-weight: 800; letter-spacing: -0.02em; color: var(--nx-ink); }
.sp-know p { margin: 0 0 10px; font-size: 0.9rem; line-height: 1.65; color: var(--nx-ink-soft); }
.sp-know p:last-child { margin-bottom: 0; }
.sp-know strong { color: var(--nx-ink); }
.sp-faq { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 14px; align-items: start; }
@media (max-width: 900px) {
  .sp-rules { grid-template-columns: 1fr; }
  .sp-faq { grid-template-columns: 1fr; }
  .sp-know { flex-direction: column; padding: 18px; }
  .sp-table td:nth-child(2) { white-space: normal; }
}
.sp-table-card.table-scroll > table { min-width: 0; table-layout: fixed; }
.sp-table-card.table-scroll > table th, .sp-table-card.table-scroll > table td { white-space: normal; }
.sp-table-card.table-scroll > table th:nth-child(1) { width: 30%; }
.sp-table-card.table-scroll > table th:nth-child(2) { width: 24%; }
@media (max-width: 720px) { .sp-table-card.table-scroll > table { table-layout: auto; min-width: 600px; } }
