/* China calculator — US template CSS (extracted from united-states.html layout system) */

    * {
      margin: 0;
      padding: 0;
      box-sizing: border-box;
    }
    :root {
      --us-calculator-page-bg: #f8fafc;
      /* Form empty-state placeholder typography (main calculator initial fields) */
      --form-placeholder-font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
      --form-placeholder-font-size: 0.875rem;
      --form-placeholder-font-weight: 400;
      --form-placeholder-line-height: 1.3;
      --form-placeholder-color: #b8bcc4;
      --form-placeholder-letter-spacing: normal;
    }
    html {
      background-color: var(--us-calculator-page-bg);
    }
    body {
      font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji', sans-serif;
      background-color: var(--us-calculator-page-bg);
      color: #334155;
      line-height: 1.6;
      font-size: 0.96em;
    }

    /* Footer newsletter: compact capsule (same as homepage Fig.1) */
    .newsletter-input-wrapper {
      display: flex;
      align-items: center;
      width: 100%;
      max-width: 328px;
      background: #ffffff;
      border-radius: 999px;
      overflow: hidden;
      padding: 2px 3px 2px 4px;
      box-sizing: border-box;
      box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
    }
    .newsletter-input-wrapper input {
      flex: 1;
      border: none;
      outline: none;
      background: transparent;
      padding: 7px 10px;
      font-size: 14px;
      line-height: 1.25;
      min-width: 0;
      color: #111827;
    }
    .newsletter-input-wrapper button {
      border: none;
      background: #334155;
      color: #ffffff;
      font-weight: 600;
      font-size: 14px;
      line-height: 1.2;
      border-radius: 8px;
      padding: 7px 12px;
      margin-right: 2px;
      cursor: pointer;
      white-space: nowrap;
      flex-shrink: 0;
    }
    .newsletter-input-wrapper button:hover { background: #1e293b; }
    @media (max-width: 380px) {
      .newsletter-input-wrapper button {
        padding: 7px 9px;
      }
    }


/* --- style block --- */


    /* ========== CALCULATOR DESIGN SYSTEM ========== */
    :root {
      --header-h: 72px;
      --space-8: 8px;
      --space-12: 12px;
      --space-16: 16px;
      --space-24: 24px;
      --space-32: 32px;
      /* Unified tokens: alignment + font + spacing */
      --fs-title: 28px;
      --fs-h2: 18px;
      --fs-body: 14px;
      --fs-muted: 13px;
      --fw-semi: 600;
      --lh-body: 1.45;
      --gap-1: 8px;
      --gap-2: 12px;
      --gap-3: 16px;
      --gap-4: 20px;
      --radius: 12px;
      /* Space from section copy/controls to masked result block (Salary, Wages, Compare, COL) — one token */
      --section-control-to-mask-gap: 16px;
      --mask-above-gap: var(--section-control-to-mask-gap);
      /* First meta/footer line after mask bottom (masked stack rhythm) */
      --section-after-mask-gap: 16px;
      /* Symmetric rhythm: space before divider line + same space after line to next title (shared token) */
      --section-divider-gap: 14px;
      /* Legacy (map to tokens where used) */
      --font-base: 15px;
      --font-body: 14px;
      --font-sm: 14px;
      --font-xs: 13px;
      --font-muted: 12px;
      --font-h1: 1.5rem;
      --font-h2: 1.35rem;
      --font-h3: 1.05rem;
      --line-body: 1.5;
      --line-tight: 1.35;
      --color-title: #0f172a;
      --color-body: #334155;
      --color-muted: #64748b;
      --color-muted-light: #94a3b8;
      --radius-card: 16px;
      --shadow-card: 0 12px 30px rgba(15, 23, 42, 0.06);
      --shadow-card-subtle: 0 8px 24px rgba(15, 23, 42, 0.04);
      --border-card: 1px solid rgba(226, 232, 240, 0.9);
    }
    /* Card system: same style for all output blocks */
    .card {
      background: #fff;
      border-radius: var(--radius-card);
      padding: 20px 24px;
      box-shadow: var(--shadow-card);
      border: var(--border-card);
      width: 100%;
      max-width: 100%;
      box-sizing: border-box;
    }
    .input-panel {
      display: flex;
      flex-direction: column;
      justify-content: flex-start;
      padding-top: 0;
    }
    .input-panel > .section-title {
      margin-top: 0 !important;
      margin-bottom: 0.7rem !important;
      padding-top: 0 !important;
    }
    .calculator-card {
      margin-top: 0 !important;
    }


/* --- style block --- */


.calc-sidebar .input-panel {
  min-width: 0;
  max-width: 340px;
  width: 100%;
}
/* .calculator-card h2: see layout block (--fs-body, --gap-1) */
.calc-sidebar .input-group.field-group {
  margin-bottom: 14px;
}
.calc-sidebar .input-group:last-of-type.field-group {
  margin-bottom: 0;
}
#add-note {
  margin-top: 0;
}
#michigan-city-work-pct.gst-input-invalid {
  border-color: #dc2626 !important;
  box-shadow: 0 0 0 1px rgba(220, 38, 38, 0.22);
}


/* --- style block --- */


.input-panel input[type="text"], .input-panel select {
  width: 100%;
  padding: 0.6rem 1rem;
  border-radius: 0.5rem;
  border: 1px solid #d1d5db;
  font-size: 1rem;
  background: #fff;
  box-sizing: border-box;
  line-height: 1.5;
  height: auto;
}
/* Left calculator input: placeholder tokens (filled-value tokens live in gst-form-control.css) */
.calc-sidebar {
  --field-placeholder-font-size: var(--fs-body);
  --field-placeholder-font-weight: 500;
  --field-placeholder-line-height: normal;
  --field-placeholder-color: #9ca3af;
  --field-placeholder-letter-spacing: normal;
}
.calc-sidebar .cn-amount-input::placeholder,
.calc-sidebar .salary-input-with-prefix input::placeholder,
.calc-sidebar .salary-input-with-prefix input.cn-amount-input::placeholder,
.calc-sidebar .salary-input-with-prefix input#monthlyGross::placeholder,
.calc-sidebar .salary-input-with-prefix.amount-input input.cn-amount-input::placeholder,
.calc-sidebar .amount-input input.cn-amount-input::placeholder,
.calc-sidebar .amount-input input::placeholder,
.calc-sidebar #manualEmployeeContributions::placeholder,
.calc-sidebar .cn-input-with-suffix .cn-amount-input::placeholder,
.calc-sidebar .cn-add-deductions input.cn-amount-input::placeholder,
.calc-sidebar input.cn-amount-input::placeholder {
  color: var(--field-placeholder-color);
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: var(--field-placeholder-font-size);
  font-weight: var(--field-placeholder-font-weight);
  line-height: var(--field-placeholder-line-height);
  font-variant-numeric: lining-nums tabular-nums;
  font-feature-settings: "lnum" 1, "tnum" 1, "kern" 1;
  letter-spacing: var(--field-placeholder-letter-spacing);
  opacity: 1;
}
.calc-sidebar .cn-amount-input::-webkit-input-placeholder,
.calc-sidebar .salary-input-with-prefix input::-webkit-input-placeholder,
.calc-sidebar .salary-input-with-prefix input.cn-amount-input::-webkit-input-placeholder,
.calc-sidebar .salary-input-with-prefix input#monthlyGross::-webkit-input-placeholder,
.calc-sidebar .amount-input input::-webkit-input-placeholder,
.calc-sidebar #manualEmployeeContributions::-webkit-input-placeholder,
.calc-sidebar .cn-input-with-suffix .cn-amount-input::-webkit-input-placeholder,
.calc-sidebar .cn-add-deductions input.cn-amount-input::-webkit-input-placeholder {
  color: var(--field-placeholder-color);
  -webkit-text-fill-color: var(--field-placeholder-color);
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: var(--field-placeholder-font-size);
  font-weight: var(--field-placeholder-font-weight);
  line-height: var(--field-placeholder-line-height);
  letter-spacing: var(--field-placeholder-letter-spacing);
  opacity: 1;
}
.calc-sidebar .cn-amount-input:placeholder-shown,
.calc-sidebar .salary-input-with-prefix input:placeholder-shown,
.calc-sidebar .salary-input-with-prefix input.cn-amount-input:placeholder-shown,
.calc-sidebar .salary-input-with-prefix input#monthlyGross:placeholder-shown,
.calc-sidebar .cn-input-with-suffix .cn-amount-input:placeholder-shown,
.calc-sidebar .cn-add-deductions input.cn-amount-input:placeholder-shown {
  color: var(--field-placeholder-color);
  -webkit-text-fill-color: var(--field-placeholder-color);
}
.input-panel select:invalid {
  color: #9ca3af;
}
.input-panel select:valid {
  color: #111827;
}


/* --- style block --- */


.calculate-spinner {
  display: inline-block;
  width: 1.2em;
  height: 1.2em;
  border: 2.5px solid #2563eb;
  border-top: 2.5px solid #fff;
  border-radius: 50%;
  animation: spin-calc 0.7s linear infinite;
  vertical-align: middle;
  margin-right: 0.5em;
}
@keyframes spin-calc {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}


/* --- style block --- */


.vertical-divider {
  width: 1.5px;
  background: #dbeafe;
  height: 100%;
  min-height: 700px;
  align-self: center;
  border-radius: 2px;
  margin: 0 1.5rem;
  box-shadow: 0 0 6px 0 #e0e7ef;
  border: none;
}


/* --- style block --- */


/* Shared overlay prompt tokens (main/COL/Compare empty+stale, wages mask) */
:root {
  --overlay-prompt-fs: 0.875rem;
  --overlay-prompt-fw: 600;
  --overlay-prompt-lh: 1.45;
  --overlay-prompt-color: #334155;
  --overlay-prompt-chip-py: 0.42rem;
  --overlay-prompt-chip-px: 0.62rem;
  --overlay-prompt-ts: none;
  --overlay-prompt-inner-gap: 0.55rem;
  /* Masked results footprint: Salary Results / Compare / COL (empty + stale) — live runs expand below */
  --section-mask-viewport-min: min(420px, 62vh);
  --section-mask-viewport-max: min(445px, 68vh);
}
.calc-sidebar .input-panel,
.calculator-input .input-panel {
  max-width: 100%;
}
/* ---------- Results card ---------- */
.results-report.card {
  padding: 20px 24px;
}
.results-header {
  margin-bottom: var(--mask-above-gap);
}
.results-header-inner {
  display: flex;
  align-items: flex-start;
  gap: var(--space-12);
}
.results-header-icon {
  font-size: 1.25rem;
  line-height: 1;
}
.results-report .results-title {
  font-size: var(--font-h3);
  font-weight: 600;
  color: var(--color-title);
  line-height: var(--line-tight);
  margin: 0 0 4px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.section-title-icon {
  display: inline-flex;
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  opacity: 0.95;
}
.section-title-icon svg {
  width: 100%;
  height: 100%;
}
/* Section title icons: distinct hues (avoid repeating teal/green across blocks) */
.section-title-icon--teal { color: #0d9488; }
.section-title-icon--sky { color: #0ea5e9; }
.section-title-icon--orange { color: #ea580c; }
.section-title-icon--green { color: #059669; }
.section-title-icon--purple { color: #7c3aed; }
.section-title-icon--violet { color: #8b5cf6; }
.section-title-icon--amber { color: #d97706; }
.section-title-icon--blue { color: #2563eb; }
.section-title-icon--indigo { color: #4f46e5; }
.btn-icon {
  display: inline-flex;
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  vertical-align: middle;
}
.btn-icon--calc {
  width: 26px;
  height: 26px;
}
.btn-icon svg {
  width: 100%;
  height: 100%;
}
.calc-sidebar .btn-primary .btn-icon { color: currentColor; }
.calc-sidebar .btn-secondary .btn-icon { color: #2563eb; }
.calc-sidebar .btn-secondary:hover .btn-icon { color: #1d4ed8; }
.wage-comparison-section .section-title,
.compare-states-section .section-title {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.compare-seo-h3,
.compare-states-faq .compare-seo-h2 {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.results-report .results-intro {
  font-size: 0.875rem;
  color: var(--color-muted);
  line-height: var(--line-body);
  margin: 0;
}
/* Chips: compact, wrap, consistent ? no layout shift when expanding taxes */
.results-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: var(--space-12);
  font-size: var(--font-xs);
  line-height: 1.4;
}
.results-report .chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  min-height: 24px;
  border: 1px solid #e5e7eb;
  border-radius: 999px;
  background: #f6f8fa;
  white-space: nowrap;
  font-size: var(--font-xs);
  font-weight: 600;
  color: var(--color-muted);
  box-sizing: border-box;
}
.results-report .chip strong {
  color: var(--color-body);
  font-weight: 600;
}
/* Results placeholder: hide numbers until user has entered salary and recompute ran */
#salary-results-wrap.results-placeholder .results-placeholder-msg { display: block; }
#salary-results-wrap.results-placeholder .results-meta-in-wrap,
#salary-results-wrap.results-placeholder .results-content { display: none !important; }
#salary-results-wrap.results-ready .results-placeholder-msg { display: none !important; }
#salary-results-wrap.results-ready .results-meta-in-wrap { display: flex !important; margin-top: var(--space-12); }
#salary-results-wrap.results-ready .results-content { display: block !important; }
/* Manual refresh: stale overlay until user clicks Calculate again */
/* Stale overlay is sibling of results wrap so inset:0 = full masked cluster (not full results stack height) */
.calc-empty-state-wrap.result-mask-cluster--results:has(#salary-results-wrap.results-stale) .main-results-stale-overlay,
.calc-empty-state-wrap.result-mask-cluster--results:has(#cn-results-wrap.results-stale) .main-results-stale-overlay {
  display: flex;
}
.calc-empty-state-wrap.result-mask-cluster--results:has(#salary-results-wrap.results-stale) .main-results-stale-overlay[hidden],
.calc-empty-state-wrap.result-mask-cluster--results:has(#cn-results-wrap.results-stale) .main-results-stale-overlay[hidden] {
  display: none !important;
}
.calc-empty-state-wrap.result-mask-cluster--results:has(#cn-results-wrap.results-stale) #cn-results-wrap.results-stale {
  opacity: 0.5;
  filter: saturate(0.82) contrast(0.88) brightness(0.98);
}
.main-results-stale-overlay {
  z-index: 7;
}
.gst-stale-overlay-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 10px;
  max-width: min(34rem, 100%);
  margin: 0 auto;
  box-sizing: border-box;
}
.gst-stale-overlay-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #94a3b8;
  opacity: 0.95;
  pointer-events: none;
  line-height: 0;
}
.gst-stale-overlay-visual svg {
  display: block;
  width: 48px;
  height: 48px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.gst-stale-overlay-copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2em;
  margin: 0;
  padding: 0 !important;
  border: none !important;
  background: transparent !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  max-width: min(34rem, 100%);
  text-wrap: balance;
}
.gst-stale-overlay-title,
.gst-stale-overlay-action {
  display: block;
  margin: 0;
  font-size: var(--overlay-prompt-fs);
  line-height: var(--overlay-prompt-lh);
  text-align: center;
  text-shadow: none;
}
.gst-stale-overlay-title {
  font-weight: 500;
  color: #334155;
}
.gst-stale-overlay-action {
  font-weight: 500;
  color: #64748b;
}
.result-mask-frost__inner:has(.gst-stale-overlay-content) {
  flex: 0 1 auto;
  align-self: center;
  flex-direction: column;
  width: 100%;
  max-width: min(34rem, calc(100% - 1rem));
}
/* Page empty state: show placeholder text (set by JS); live state shows real values */
.page-live .live-number { visibility: visible; }
/* Breakdown: compact 2-col rows, tabular numbers */
.results-content {
  margin-top: var(--space-8);
}
.results-table {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.results-row {
  display: grid;
  grid-template-columns: 1fr 140px;
  column-gap: var(--space-12);
  align-items: center;
  font-size: var(--font-sm);
  min-height: 26px;
}
.results-cell-label {
  color: var(--color-body);
  white-space: nowrap;
}
.results-cell-value {
  text-align: right;
  font-weight: 600;
  color: var(--color-title);
  font-variant-numeric: tabular-nums;
}
.results-row-before {
  opacity: 0.75;
}
.results-row-before .results-cell-value {
  font-weight: 400;
  display: flex;
  justify-content: flex-end;
}
.results-divider {
  border-top: 1px solid #e8ecf1;
  margin: var(--space-8) 0;
  opacity: 0.9;
}
.results-row-total .results-cell-label,
.results-row-total .results-cell-value {
  font-weight: var(--fw-semi);
}
.results-cell-label-with-switch {
  display: flex;
  align-items: center;
  gap: 10px;
}
.tax-due-switch-wrap {
  position: relative;
  display: inline-block;
  width: 40px;
  height: 22px;
  flex-shrink: 0;
  transform: scale(0.81);
  opacity: 0.8;
}
.tax-due-switch {
  opacity: 0;
  width: 0;
  height: 0;
}
.tax-due-switch-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #cbd5e1;
  border-radius: 22px;
  transition: background 0.2s;
}
.tax-due-switch-slider::before {
  content: '';
  position: absolute;
  height: 18px;
  width: 18px;
  left: 2px;
  bottom: 2px;
  background-color: #fff;
  border-radius: 50%;
  transition: transform 0.2s;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}
.tax-due-switch:checked + .tax-due-switch-slider {
  background-color: #2563eb;
}
.tax-due-switch:checked + .tax-due-switch-slider::before {
  transform: translateX(18px);
}
#tax-due-breakdown[hidden] {
  display: none !important;
}
/* State-scoped local tax rows: .results-row { display:grid } overrides [hidden] UA rule — hide entire row when wrong state */
.results-table .results-row[data-local-row][hidden] {
  display: none !important;
}
.results-row-item .results-cell-label {
  padding-left: var(--space-12);
  color: var(--color-muted);
}
.results-row-item .results-cell-value {
  color: var(--color-muted);
  font-weight: 500;
}
/* Optional taxes: secondary (muted, smaller) ? layout stable when toggled */
.tax-toggle-row {
  grid-column: 1 / -1;
  padding-left: var(--space-12);
}
.tax-toggle {
  background: transparent;
  border: 0;
  padding: 0.2rem 0.4rem;
  font-size: var(--font-xs);
  color: var(--color-muted);
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 4px;
  transition: color 0.2s, background 0.2s;
  -webkit-appearance: none;
  appearance: none;
}
.tax-toggle:hover {
  text-decoration: underline;
  color: var(--color-body);
  background: rgba(0,0,0,0.04);
}
.tax-toggle:focus { outline: none; box-shadow: none; }
.tax-optional .tax-row {
  display: grid;
  grid-template-columns: 1fr 140px;
  column-gap: var(--space-12);
  align-items: center;
  font-size: var(--font-xs);
  color: var(--color-muted-light);
  min-height: 24px;
}
.tax-optional .tax-row .results-cell-label {
  padding-left: var(--space-16);
  color: var(--color-muted-light);
  font-weight: 500;
}
.tax-optional .tax-row .results-cell-value {
  font-size: var(--font-xs);
  font-weight: 500;
  color: var(--color-muted-light);
  font-variant-numeric: tabular-nums;
}
/* After Tax: slim highlight bar */
.results-row-after {
  background: #f7fdf9;
  border-radius: 8px;
  padding: var(--space-8) var(--space-12);
  margin-top: var(--space-8);
}
.results-row-after .results-cell-label {
  font-weight: var(--fw-semi);
  color: #065f46;
}
.results-row-after .results-cell-value {
  color: #047857;
  font-weight: 700;
  font-size: 1rem;
  font-variant-numeric: tabular-nums;
}
/* Effective Tax Rate: compact chart block */
.chart-block {
  text-align: center;
  margin-top: var(--space-24);
  padding-top: var(--space-16);
  border-top: 1px solid #e5e7eb;
}
.chart-block .section-title {
  font-size: var(--font-h3);
  font-weight: 600;
  color: var(--color-title);
  margin-bottom: var(--space-12);
}
.results-donut-wrap {
  position: relative;
  width: 120px;
  height: 120px;
  margin: 0 auto var(--space-8);
}
.results-donut-chart {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  /* background set from JS from latest result (tax % / net %) */
  position: relative;
}
.results-donut-chart::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 72%;
  height: 72%;
  border-radius: 50%;
  background: #fff;
}
.results-donut-center {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  margin: 0;
  z-index: 1;
}
.results-donut-text {
  display: block;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-title);
  line-height: 1.2;
}
.results-donut-text.sub {
  font-size: var(--font-xs);
  font-weight: 600;
  color: var(--color-muted);
}
.chart-legend {
  margin-top: var(--space-8);
  font-size: var(--font-xs);
  color: var(--color-muted);
}
.results-disclaimer {
  font-size: var(--font-muted);
  color: var(--color-muted-light);
  line-height: var(--line-body);
  margin-top: var(--space-16);
  opacity: 0.6;
}
/* Primary estimate disclaimer (below breakdown + chart; production polish) */
.results-breakdown-disclaimer {
  font-size: 12.5px;
  line-height: 1.45;
  color: #6b7280;
  margin: 12px 0 0;
  width: 100%;
  max-width: none;
  box-sizing: border-box;
}
.tax-optional-footnote {
  font-size: 12px;
  line-height: 1.45;
  color: #6b7280;
  margin: 10px 0 0;
  padding-top: 8px;
  border-top: 1px solid #f1f5f9;
}
/* Other taxes: status strings (not currency) ? secondary, non-tabular */
.tax-optional .results-cell-value.tax-optional-status {
  color: #6b7280;
  font-size: 0.8125rem;
  font-weight: 500;
  font-variant-numeric: normal;
  text-align: right;
}
.tax-optional-footnote-row {
  display: flex;
  align-items: flex-start;
  gap: 0.35rem;
  margin: 10px 0 0;
  padding-top: 8px;
  border-top: 1px solid #f1f5f9;
}
.tax-optional-footnote-row .tax-optional-footnote {
  margin: 0;
  flex: 1;
  border-top: none;
  padding-top: 0;
}
.tax-optional-info-btn {
  flex-shrink: 0;
  width: 1.125rem;
  height: 1.125rem;
  margin-top: 1px;
  padding: 0;
  border: 1px solid #d1d5db;
  border-radius: 999px;
  background: #f9fafb;
  color: #6b7280;
  font-size: 0.65rem;
  font-weight: 700;
  line-height: 1;
  cursor: help;
}
.tax-optional-info-btn:hover {
  background: #f3f4f6;
  color: #4b5563;
}
.tax-optional-info-btn:focus-visible {
  outline: 2px solid #93c5fd;
  outline-offset: 2px;
}
.results-row-title {
  font-size: var(--fs-body);
  font-weight: var(--fw-semi);
  color: var(--color-title);
}
.results-period-select {
  padding: 4px 8px;
  border-radius: 6px;
  border: 1px solid #d1d5db;
  font-size: var(--font-xs);
  background: #f9fafb;
  color: var(--color-body);
}
.results-report .results-period-select {
  min-width: 4.2rem;
  max-width: 5rem;
  padding: 0.28rem 0.5rem;
  font-size: 0.8125rem;
  border-radius: 4px;
  border: 1px solid #e5e7eb;
  background: #fff;
  color: #374151;
  line-height: 1.2;
  height: auto;
  box-sizing: border-box;
}
.results-cell-label-with-period {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
/* ---------- Your salary vs. U.S. wage benchmarks (section chrome via .calc-content .wage-comparison-section.page-section) ---------- */
.wage-comparison-section .section-title {
  font-size: var(--font-h3);
  font-weight: 600;
  color: var(--color-title);
  margin-bottom: 4px;
}
.wage-comparison-section .label,
.wage-comparison-section .meta-text {
  font-size: var(--font-sm);
  color: var(--color-muted);
  line-height: var(--line-body);
}
.wage-comparison-section > .label {
  margin: 0 0 8px;
}
.wage-comparison-section .wages-filters {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  margin-top: 8px;
  margin-bottom: var(--mask-above-gap);
  align-items: end;
  max-width: 20rem;
}
.wage-comparison-section .wages-filters .filter-field {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
}
.wage-comparison-section .wages-filters .filter-field label {
  font-size: var(--font-xs);
  font-weight: 500;
  color: var(--color-muted);
  line-height: 1.2;
}
.wage-comparison-section .wages-filters .filter-field select {
  width: 100%;
  min-width: 8.5rem;
  max-width: 100%;
  padding: 0.2rem 0.4rem;
  font-size: 0.8125rem;
  border-radius: 4px;
  border: 1px solid #e5e7eb;
  background: #fff;
  color: #374151;
  line-height: 1.3;
  height: 28px;
  min-height: 28px;
  box-sizing: border-box;
}
.wage-comparison-section .wage-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  align-items: stretch;
}
@media (max-width: 640px) {
  .wage-comparison-section .wage-cards {
    grid-template-columns: 1fr;
  }
}
.wage-comparison-section .wage-card {
  position: relative;
  background: #ffffff;
  border-radius: 10px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
  padding: 1rem 1.125rem;
  border: 1px solid #e6ebf1;
  min-height: 100px;
  box-sizing: border-box;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.wage-comparison-section .wage-card-badge {
  position: absolute;
  top: 0.5rem;
  right: 0.6rem;
  font-size: 7px;
  font-weight: 500;
  color: var(--color-muted);
  background: rgba(248,250,252,0.85);
  padding: 0.04rem 0.2rem;
  border-radius: 2px;
  line-height: 1.2;
}
.wage-comparison-section .wage-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(0,0,0,0.03);
}
.wage-comparison-section .wage-card--median {
  border-color: #e6ebf1;
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}
.wage-comparison-section .wage-card--median:hover {
  box-shadow: 0 2px 4px rgba(0,0,0,0.03);
}
.wage-comparison-section .wage-card-title {
  font-size: 0.625rem;
  font-weight: 600;
  color: #94a3b8;
  line-height: 1.3;
  margin-bottom: 0.3rem;
  letter-spacing: 0.04em;
}
.wage-comparison-section .wage-card-value {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-title);
  font-variant-numeric: tabular-nums;
  line-height: 1.3;
}
.wage-comparison-section .wage-card-desc {
  font-size: 0.625rem;
  color: #a8b4c4;
  line-height: 1.4;
  margin-top: 0.25rem;
}
/* wage-content: primary ? insight ? reference hierarchy */
.wage-comparison-section .wage-content {
  display: flex;
  flex-direction: column;
}
.wage-comparison-section .salary-primary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(240,249,255,0.6);
  border: 1px solid #e8f4fb;
  border-left: 3px solid #3b82f6;
  border-radius: 10px;
  padding: 0.875rem 1.25rem;
  margin-bottom: 16px;
  cursor: default;
  pointer-events: none;
}
.wage-comparison-section .salary-primary:hover {
  background: rgba(240,249,255,0.6);
}
.wage-comparison-section .salary-primary-label {
  font-size: var(--font-sm);
  font-weight: 500;
  color: #94a3b8;
}
.wage-comparison-section .salary-primary-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.3rem;
}
.wage-comparison-section .salary-primary-value {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-title);
  font-variant-numeric: tabular-nums;
}
.wage-comparison-section .salary-primary-sub {
  font-size: 0.75rem;
  color: var(--color-muted);
  line-height: 1.3;
}
.wage-comparison-section .wage-meta-text {
  font-size: var(--font-sm);
  color: var(--color-muted);
  margin: 0;
  padding-bottom: 0;
  border-bottom: 1px solid #e5e7eb;
  line-height: 1.45;
}
.wage-comparison-section .percentile-block {
  margin-top: 2px;
  margin-bottom: 4px;
  padding: 2px 0;
}
.wage-comparison-section .percentile-block .percentile-label {
  font-size: 0.625rem;
  font-weight: 600;
  color: #94a3b8;
  letter-spacing: 0.08em;
  text-transform: none;
  line-height: 1.3;
  margin-bottom: 0.4rem;
}
.wage-comparison-section .percentile-block .percentile-value {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-title);
  line-height: 1.25;
  letter-spacing: -0.02em;
}
.wage-comparison-section .percentile-block .percentile-value::before {
  content: '';
  display: inline-block;
  width: 20px;
  height: 20px;
  min-width: 20px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 18v-4h4v4M11 18v-6h4v6M19 18v-8h4v8'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  opacity: 0.7;
}
.wage-comparison-section .percentile-block .percentile-value-inner {
  display: inline;
}
.wage-comparison-section .percentile-block .percentile-ordinal {
  font-size: 0.75em;
  font-weight: 600;
  vertical-align: baseline;
  margin-left: 0.02em;
}
.wage-comparison-section .percentile-block .percentile-value #percentile-value {
  font-size: 0.875rem;
  font-weight: 600;
}
.wage-comparison-section .percentile-block .percentile-desc {
  font-size: 0.8125rem;
  color: #94a3b8;
  line-height: 1.5;
  margin-top: 0.4rem;
}
.wage-comparison-section .percentile-credibility {
  font-size: 0.65rem;
  color: #94a3b8;
  line-height: 1.35;
  margin-top: 4px;
}
.wage-comparison-section .benchmarks-disclaimer {
  font-size: 0.75rem;
  color: #b0bdc9;
  margin-top: 20px;
  line-height: 1.4;
}
.wage-comparison-section .wage-data-source {
  font-size: 0.75rem;
  color: var(--color-muted);
  margin-top: 12px;
  line-height: 1.4;
}
.wage-comparison-section .wage-data-source-label {
  font-weight: 600;
}
.wage-comparison-section .wage-data-source-link {
  color: var(--color-muted);
  text-decoration: none;
  border-bottom: 1px solid rgba(148,163,184,0.35);
  text-underline-offset: 2px;
  cursor: pointer;
}
.wage-comparison-section .wage-data-source-link:hover {
  color: var(--color-body);
  border-bottom-color: rgba(148,163,184,0.5);
}
.wage-comparison-section .wage-data-updated {
  font-size: 0.7rem;
  color: rgba(176,189,201,0.72);
  margin-top: 2px;
  line-height: 1.35;
}
/* Config-driven sources & review dates — subtle, same weight as existing meta */
.gst-module-footnote {
  font-size: 0.7rem;
  color: rgba(100, 116, 139, 0.88);
  margin-top: 6px;
  line-height: 1.4;
}
/* Source/reference links: same normal + visited + hover + focus (no browser purple :visited) */
.gst-inline-sources .gst-source-link,
.gst-inline-sources .gst-source-link:visited,
.compare-methodology-block .gst-inline-sources .gst-source-link,
.compare-methodology-block .gst-inline-sources .gst-source-link:visited,
.col-adjustment-section .gst-inline-sources .gst-source-link,
.col-adjustment-section .gst-inline-sources .gst-source-link:visited {
  color: var(--color-muted, #64748b);
  text-decoration: none;
  border-bottom: 1px solid rgba(148, 163, 184, 0.35);
  font-weight: 500;
  font-size: inherit;
}
.gst-inline-sources .gst-source-link:hover,
.gst-inline-sources .gst-source-link:visited:hover,
.compare-methodology-block .gst-inline-sources .gst-source-link:hover,
.compare-methodology-block .gst-inline-sources .gst-source-link:visited:hover {
  color: var(--color-body, #1f2937);
  border-bottom-color: rgba(148, 163, 184, 0.55);
}
.gst-inline-sources .gst-source-link:focus-visible {
  outline: 2px solid rgba(100, 116, 139, 0.45);
  outline-offset: 2px;
  border-bottom-color: rgba(148, 163, 184, 0.55);
}
.wage-comparison-section .gst-inline-sources .gst-source-link,
.wage-comparison-section .gst-inline-sources .gst-source-link:visited {
  color: var(--color-muted);
  text-decoration: none;
  border-bottom: 1px solid rgba(148,163,184,0.35);
  font-weight: 500;
}
.wage-comparison-section .gst-inline-sources .gst-source-link:hover,
.wage-comparison-section .gst-inline-sources .gst-source-link:visited:hover {
  color: var(--color-body);
  border-bottom-color: rgba(148,163,184,0.5);
}
.results-report .gst-module-footnote {
  margin-top: 8px;
}
.tax-guide-meta-sources {
  margin-top: 10px;
}
/* Tax Guide “Reference materials” links: force same grey as .gst-source-link (browser :visited purple otherwise wins) */
#gst-taxguide-sources a.gst-source-link,
#gst-taxguide-sources a.gst-source-link:link,
#gst-taxguide-sources a.gst-source-link:visited {
  color: #64748b !important;
  -webkit-text-fill-color: #64748b;
}
#gst-taxguide-sources a.gst-source-link:hover,
#gst-taxguide-sources a.gst-source-link:visited:hover {
  color: #1f2937 !important;
  -webkit-text-fill-color: #1f2937;
}
.wage-comparison-section .wage-state-name {
  color: #64748b;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.results-row-before .results-cell-label {
  font-weight: var(--fw-semi);
  color: #111827;
}
.results-row-before .results-cell-value {
  font-weight: 400;
  display: flex;
  justify-content: flex-end;
}
.results-divider {
  border-top: 1px solid #e5e7eb;
  margin: 0.35rem 0;
}
.results-row-total .results-cell-label,
.results-row-total .results-cell-value {
  font-weight: var(--fw-semi);
}
.results-row-item .results-cell-label {
  padding-left: 0.75rem;
  white-space: nowrap;
}
.results-nowrap {
  white-space: nowrap;
}
.results-row-after {
  background: #f7fdf9;
  border-radius: 0.35rem;
  padding: 0.35rem 0.55rem;
  margin-top: 0.2rem;
}
.results-row-after .results-cell-label {
  font-weight: var(--fw-semi);
  color: #065f46;
}
.results-row-after .results-cell-value {
  color: #047857;
  font-weight: 700;
  font-size: 1rem;
}
/* Toggle row: one grid row, toggle cell spans both columns, match tax row indentation */
.tax-toggle-row {
  grid-column: 1 / -1;
  padding-left: 28px;
}
/* Single toggle element: same class in both states; never looks like input; no focus ring */
.tax-toggle {
  background: transparent;
  border: 0;
  padding: 0.2rem 0.4rem;
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: #6b7280;
  font-family: inherit;
  line-height: inherit;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  border-radius: 4px;
  transition: color 0.2s, background 0.2s;
  -webkit-appearance: none;
  appearance: none;
}
.tax-toggle:hover {
  text-decoration: underline;
  color: #374151;
  background: rgba(0,0,0,0.04);
}
.tax-toggle:focus {
  outline: none;
  box-shadow: none;
}
.tax-toggle:focus-visible {
  outline: none;
  box-shadow: none;
}
.tax-optional[hidden] {
  display: none !important;
}
.results-donut-legend .legend-dot {
  margin-right: 0.2rem;
}
.legend-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  vertical-align: middle;
}
.legend-dot-tax {
  background: #F2C94C;
}
.legend-dot-net {
  background: #3AA55D;
}
@media (max-width: 768px) {
  .results-row {
    grid-template-columns: 1fr auto;
  }
}


/* --- style block --- */


/* === ?????? body ????????/??? === */
html, body { width: 100%; height: auto; min-height: 100vh; margin: 0; overflow-y: auto; }
body { overflow-x: hidden; }

.app-layout { display: flex; flex-direction: column; min-height: 100vh; height: auto; overflow: visible; background-color: var(--us-calculator-page-bg); }
.app-layout > header { flex-shrink: 0; }
.app-layout > footer.gst-site-footer,
.app-layout > .copyright-bar {
  flex-shrink: 0;
}

/* === ???????????????????????????????? === */
.calc-page {
  max-width: 1520px;
  margin: 0 auto;
  padding: 32px clamp(32px, 4vw, 72px) 56px clamp(20px, 3vw, 52px);
  box-sizing: border-box;
  text-align: left;
  background-color: var(--us-calculator-page-bg);
  min-height: 60vh;
}
.calc-layout {
  display: grid;
  grid-template-columns: minmax(360px, 375px) minmax(0, 1fr);
  align-items: start;
  gap: 32px;
  margin: 0;
  padding: 0;
  background-color: var(--us-calculator-page-bg);
}
.page-title {
  text-align: left;
  font-size: var(--font-h3);
  font-weight: 600;
  margin: 0 0 18px;
  color: #0f172a;
  line-height: var(--lh-body);
  white-space: nowrap;
}
.calc-sidebar .page-title {
  font-size: var(--font-h3);
  font-weight: 600;
  color: #0f172a;
  margin-top: 0;
  margin-bottom: 18px;
}
.page-title.country-dropdown {
  flex-wrap: nowrap;
}
/* Spanish / French: long H1 — wrap inside sidebar */
:lang(es) .calc-sidebar .page-title.country-dropdown, :lang(fr) .calc-sidebar .page-title.country-dropdown {
  white-space: normal;
  flex-wrap: wrap !important;
  align-items: flex-start;
  row-gap: 0.35rem;
  column-gap: 0.35rem;
}
:lang(es) .calc-sidebar .page-title.country-dropdown .country-select-trigger, :lang(fr) .calc-sidebar .page-title.country-dropdown .country-select-trigger {
  max-width: 100%;
}
/* Country selector dropdown: align to sidebar card, avoid overlapping results panel */
.calc-sidebar .page-title.country-dropdown {
  position: relative;
  width: 100%;
  box-sizing: border-box;
  z-index: 30;
}
.calc-sidebar .country-select-trigger {
  position: static;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  min-width: 0;
}
/* Mouse click must not leave a persistent blue focus ring; keyboard keeps :focus-visible */
.calc-sidebar .country-select-trigger:focus:not(:focus-visible) {
  outline: none;
  box-shadow: none;
}
.calc-sidebar .country-select-trigger:focus-visible {
  outline: 2px solid rgba(37, 99, 235, 0.45);
  outline-offset: 2px;
}
.calc-sidebar .country-dropdown-list {
  display: none;
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 6px);
  width: auto;
  max-width: 100%;
  min-width: 0;
  margin: 0;
  padding: 4px 0;
  box-sizing: border-box;
  background: #fff;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
  z-index: 50;
  overflow: hidden;
}
.calc-sidebar .country-link {
  justify-content: space-between;
  gap: 0.5rem;
  min-width: 0;
  box-sizing: border-box;
}
.calc-sidebar .country-link > span:not(.country-link-status) {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.calc-sidebar .country-link--live {
  font-weight: 600;
  cursor: default;
  pointer-events: none;
  background: #f9fafb;
}
a.calc-sidebar .country-link.country-link--live,
.calc-sidebar a.country-link.country-link--live {
  pointer-events: auto;
  cursor: pointer;
}
.calc-sidebar a.country-link.country-link--live:hover {
  background: #f3f4f6;
}
.country-dropdown .country-select-trigger:focus-within .country-dropdown-list,
.country-dropdown .country-select-trigger:focus .country-dropdown-list {
  display: block !important;
}
.country-dropdown .country-select-trigger:focus:not(:focus-visible) {
  outline: none;
  box-shadow: none;
}
.country-dropdown .country-select-trigger:focus-visible {
  outline: 2px solid rgba(37, 99, 235, 0.45);
  outline-offset: 2px;
}
.country-dropdown .country-dropdown-list {
  transition: box-shadow 0.2s;
}
.country-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  min-width: 0;
  padding: 8px 12px;
  font-size: 0.98rem;
  line-height: 1.5;
  color: #1f2937;
  text-decoration: none;
  box-sizing: border-box;
}
.country-link > span:not(.country-link-status) {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.country-link:hover {
  background: #f3f4f6;
}
.country-link--live {
  font-weight: 600;
  cursor: default;
  pointer-events: none;
  background: #f9fafb;
}
a.country-link.country-link--live {
  pointer-events: auto;
  cursor: pointer;
}
a.country-link.country-link--live:hover {
  background: #f3f4f6;
}
.country-link--coming-soon {
  /* Mute text only — opacity on the row washes out white flag fields. */
  color: #9ca3af;
  cursor: default;
  pointer-events: none;
}
.country-link--coming-soon .country-flag {
  opacity: 1;
  filter: none;
}
.country-link-status {
  flex-shrink: 0;
  margin-left: 0;
  font-size: 0.62rem;
  font-weight: 600;
  color: #6b7280;
  border: 1px solid rgba(148, 163, 184, 0.55);
  border-radius: 999px;
  padding: 0.03rem 0.35rem;
  line-height: 1.2;
  white-space: nowrap;
}
.country-link--live .country-link-status,
.country-status-live {
  color: #15803d;
  border-color: rgba(34, 197, 94, 0.45);
}
.calc-sidebar .country-link-status {
  flex-shrink: 0;
  margin-left: 0;
}

.country-select-trigger .dropdown-icon {
  display: inline-flex;
  align-items: center;
  line-height: 0;
  color: #374151;
}
.country-select-trigger .dropdown-icon svg {
  width: 14px;
  height: 14px;
  display: block;
}
@media (max-width: 1024px) {
  .calc-sidebar .country-dropdown-list {
    max-width: 100%;
  }
}
@media (max-width: 480px) {
  .calc-sidebar .page-title.country-dropdown {
    white-space: normal;
    flex-wrap: wrap !important;
  }
  .calc-sidebar .country-dropdown-list {
    left: 0;
    right: 0;
    max-width: 100%;
  }
}
/* Left form card + right results card: same grid row, tops aligned */
.calc-layout > .calc-sidebar,
.calc-layout > .calc-content {
  margin-top: 0;
}
@media (min-width: 1025px) {
  /* Match Result card top to sticky Input card resting position (sidebar sticky top offset). */
  .calc-layout > .calc-content {
    margin-top: 2px;
  }
}
.calc-sidebar {
  grid-column: 1;
  width: auto;
  max-width: 100%;
  position: sticky;
  top: 88px;
  align-self: start;
  overflow: visible;
  height: auto;
  max-height: none;
  margin: 0;
  background: #fff;
  border-radius: 16px;
  box-shadow: var(--shadow-card-subtle);
  padding: 24px;
  border: var(--border-card);
  min-width: 0;
  box-sizing: border-box;
}
/* Right results stack */
.calc-content {
  grid-column: 2;
  min-width: 0;
  overflow: visible;
  height: auto;
  max-height: none;
  display: flex;
  flex-direction: column;
  /* Calculator blocks use border-top dividers + shared padding; flex gap stacked with that caused uneven rhythm */
  gap: 0;
  background: #fff;
  border-radius: 16px;
  box-shadow: var(--shadow-card);
  padding: 24px;
  border: var(--border-card);
  margin: 0 0 clamp(60px, 8vw, 88px);
  box-sizing: border-box;
}
.calc-sidebar > :first-child,
.calc-content > :first-child {
  margin-top: 0;
  padding-top: 0;
}
.calc-content.results-panel-hidden {
  display: none !important;
}
/* Pre-calc / Reset: gray placeholder until user enters a value */
.calc-layout.pre-calc-state .calc-sidebar input[type="text"]:placeholder-shown,
.calc-layout .calc-sidebar .cn-add-deductions input[type="text"]:placeholder-shown,
.calc-sidebar .cn-amount-input:placeholder-shown,
.calc-sidebar .salary-input-with-prefix .cn-amount-input:placeholder-shown,
.calc-sidebar .cn-input-with-suffix .cn-amount-input:placeholder-shown {
  color: var(--field-placeholder-color);
  -webkit-text-fill-color: var(--field-placeholder-color);
}
.calc-layout.pre-calc-state .calc-sidebar input[type="text"]:not(:placeholder-shown),
.calc-sidebar .cn-amount-input:not(:placeholder-shown) {
  color: var(--field-value-color);
  -webkit-text-fill-color: var(--field-value-color);
}
.calc-layout.pre-calc-state .calc-sidebar select:invalid {
  color: #9ca3af;
}
.calc-layout.pre-calc-state .calc-sidebar select:valid {
  color: var(--field-value-color);
}
.calc-layout.pre-calc-state .calc-sidebar select.placeholder-state,
.calc-layout .calc-sidebar select.placeholder-state {
  color: var(--field-placeholder-color);
  font-weight: var(--field-placeholder-font-weight);
}
.calc-layout.pre-calc-state .calc-sidebar select option {
  color: #1f2937;
}
/* Compare & COL sections: placeholder grey until user selects (any time, not only pre-calc) */
.compare-states-filters select option,
.col-adjustment-filters select option {
  color: #1f2937;
}
/* Compare Annual Salary: pale grey placeholder (initial / Reset / when empty), same as dropdown placeholders */
.compare-states-filters .filter-field .salary-input-with-prefix input::placeholder {
  color: #b8bcc4;
}
.calc-content.pre-calc-state .compare-states-filters .filter-field .salary-input-with-prefix input:placeholder-shown {
  color: #b8bcc4;
}
.calc-content.pre-calc-state .compare-states-filters .filter-field .salary-input-with-prefix input:not(:placeholder-shown) {
  color: #1f2937;
}
/* Compare filters: gray when empty / dark when filled (same empty gray as amount ::placeholder); not tied to main calc .pre-calc-state */
.compare-states-filters .filter-field input.compare-empty-aware:placeholder-shown {
  color: #b8bcc4;
}
.compare-states-filters .filter-field input.compare-empty-aware:not(:placeholder-shown) {
  color: #1f2937;
}
.compare-states-filters .filter-field select.compare-empty-aware:invalid {
  color: #b8bcc4;
}
.compare-states-filters .filter-field select.compare-empty-aware:valid {
  color: #1f2937;
}
/* Compare to: baseline optional — uses empty option with value=""; :has avoids false aria-required */
.compare-states-filters #compareState.compare-empty-aware:has(option:checked[value=""]) {
  color: #b8bcc4;
}
.compare-states-filters #compareState.compare-empty-aware:has(option:checked:not([value=""])) {
  color: #1f2937;
}
/* Pre-calculation empty state: overlay data areas until first Calculate */
.calc-empty-state-wrap {
  position: relative;
  min-height: 120px;
}
/* COL / Wages / Compare: outer wrap + overlay sibling — keep dimmed cluster under full-area frost */
.calc-empty-state-wrap > .result-mask-cluster {
  z-index: 0;
}
/* Unified masked-result stack (bottom?top): dimmed real body ? ghost hint ? frosted pane + message */
.result-mask-cluster {
  position: relative;
  border-radius: 12px;
  background: linear-gradient(165deg, #f8fafc 0%, #f1f5f9 55%, #eef2f7 100%);
  box-shadow:
    0 6px 32px rgba(15, 23, 42, 0.07),
    0 1px 0 rgba(255, 255, 255, 0.9) inset,
    inset 0 0 0 1px rgba(148, 163, 184, 0.22);
}
/* Main column section masks (Salary / Wages / Compare / COL): one flat panel — no gradient card stack, no double shadow */
.section-mask-stack.result-mask-cluster {
  background: transparent !important;
  box-shadow: none !important;
  border: none !important;
  border-radius: 0 !important;
}
.result-mask-body {
  position: relative;
  z-index: 1;
}
.result-mask-ghost {
  display: none;
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  border-radius: inherit;
  overflow: hidden;
  /* Faint cool wash ? structural edges read through frosted layer */
  background: linear-gradient(195deg, rgba(226, 232, 240, 0.14) 0%, rgba(241, 245, 249, 0.08) 55%, rgba(248, 250, 252, 0.06) 100%);
  opacity: 0.88;
}
.result-mask-ghost--compare,
.result-mask-ghost--col,
.result-mask-ghost--results,
.result-mask-ghost--wages {
  flex-direction: column;
  padding: 12px 14px 14px;
  box-sizing: border-box;
}
.mask-skel {
  display: flex;
  flex-direction: column;
  gap: 10px;
  height: 100%;
  min-height: 0;
}
.mask-skel--results-layout {
  gap: 8px;
}
/* Salary Results: chips + panel rows + chart zone */
.mask-skel--results-layout .mask-skel-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 2px;
}
.mask-skel--results-layout .mask-skel-chips span {
  height: 26px;
  width: 22%;
  min-width: 72px;
  max-width: 140px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.38);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.55) 0%, rgba(248, 250, 252, 0.35) 100%);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.7) inset;
  opacity: 0.72;
}
.mask-skel-results-panel {
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.38);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.42) 0%, rgba(248, 250, 252, 0.28) 100%);
  padding: 8px 12px 10px;
  overflow: hidden;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.65) inset;
}
.mask-skel-results-subhead {
  height: 6px;
  width: 38%;
  max-width: 140px;
  border-radius: 3px;
  margin: 2px 0 8px;
  background: rgba(148, 163, 184, 0.28);
  opacity: 0.75;
}
.mask-skel-results-divider {
  height: 1px;
  margin: 6px 0 10px;
  background: linear-gradient(90deg, transparent, rgba(148, 163, 184, 0.45), transparent);
  opacity: 0.85;
}
.mask-skel-chart-frame {
  margin-top: 2px;
  padding: 10px 12px 12px;
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.34);
  background:
    linear-gradient(rgba(241, 245, 249, 0.35) 1px, transparent 1px),
    linear-gradient(90deg, rgba(241, 245, 249, 0.35) 1px, transparent 1px),
    rgba(255, 255, 255, 0.2);
  background-size: 24px 24px, 24px 24px, 100%;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.5) inset;
}
.mask-skel-chart-frame .mask-skel-chart-zone {
  margin-top: 0;
  padding-top: 0;
}
.mask-skel-chart-caption {
  height: 7px;
  width: 58%;
  max-width: 220px;
  margin: 0 auto 8px;
  border-radius: 4px;
  background: rgba(148, 163, 184, 0.3);
  opacity: 0.78;
}
.mask-skel-chart-caption--sub {
  height: 5px;
  width: 36%;
  max-width: 140px;
  margin: 0 auto 10px;
  border-radius: 3px;
  background: rgba(148, 163, 184, 0.22);
  opacity: 0.65;
}
.mask-skel--results-layout .mask-skel-results-divider {
  margin: 4px 0 8px;
}
.mask-skel-results-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 7px 0;
  border-bottom: 1px solid rgba(226, 232, 240, 0.85);
}
.mask-skel-results-row:last-child {
  border-bottom: none;
  padding-bottom: 2px;
}
.mask-skel-results-row--indent {
  padding-left: 10px;
  border-left: 2px solid rgba(203, 213, 225, 0.4);
  margin-left: 2px;
}
.mask-skel-results-row--emphasis {
  margin-top: 4px;
  padding-top: 9px;
  border-top: 1px solid rgba(148, 163, 184, 0.35);
  border-bottom: none;
}
.mask-skel-results-row--emphasis .val {
  background: rgba(100, 116, 139, 0.22);
  border-color: rgba(100, 116, 139, 0.22);
}
.mask-skel-results-row .lbl {
  flex: 1;
  min-width: 0;
  height: 9px;
  max-width: 70%;
  border-radius: 4px;
  border: 1px solid rgba(203, 213, 225, 0.35);
  background: linear-gradient(90deg, rgba(203, 213, 225, 0.42) 0%, rgba(226, 232, 240, 0.5) 50%, rgba(203, 213, 225, 0.4) 100%);
  background-size: 200% 100%;
  opacity: 0.68;
  animation: mask-skel-pulse 2.8s ease-in-out infinite;
}
.mask-skel-results-row .val {
  width: 4.75rem;
  height: 11px;
  border-radius: 4px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  background: rgba(148, 163, 184, 0.28);
  flex-shrink: 0;
  animation: mask-skel-pulse 2.8s ease-in-out infinite;
}
.mask-skel-results-row .val--wide { width: 5.5rem; }
.mask-skel-results-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0 8px;
  margin-bottom: 4px;
  border-bottom: 2px solid rgba(203, 213, 225, 0.55);
}
.mask-skel-results-total .lbl,
.mask-skel-results-total .val {
  display: block;
}
.mask-skel-results-total .lbl { max-width: 58%; height: 11px; border: 1px solid rgba(148, 163, 184, 0.3); background: rgba(203, 213, 225, 0.38); }
.mask-skel-results-total .val { font-weight: 700; width: 5.25rem; height: 13px; border: 1px solid rgba(100, 116, 139, 0.25); background: rgba(100, 116, 139, 0.28); }
.mask-skel-results-row .lbl,
.mask-skel-results-row .val {
  display: block;
}
.mask-skel--col-layout {
  gap: 11px;
}
.mask-skel-banner-inner {
  display: flex;
  flex-direction: column;
  gap: 8px;
  justify-content: center;
  min-height: 52px;
  padding: 2px 0;
}
.mask-skel-chart-zone {
  display: flex;
  align-items: stretch;
  gap: 16px;
  margin-top: auto;
  padding-top: 8px;
  flex-wrap: wrap;
  justify-content: center;
}
.mask-skel-chart-zone .mask-skel-donut {
  flex-shrink: 0;
}
.mask-skel-chart-zone .mask-skel-chart-side {
  flex: 1;
  min-width: 120px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  padding: 8px 0;
}
.mask-skel-chart-zone .mask-skel-chart-side .mask-skel-line {
  height: 8px;
}
/* Wages: comparison strip + bar hint + cards */
.mask-skel-wage-compare-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 4px 0 2px;
}
.mask-skel-wage-stat {
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.32);
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.38) 0%, rgba(248, 250, 252, 0.22) 100%);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.45) inset;
}
.mask-skel-wage-stat .mask-skel-line { opacity: 0.68; }
.mask-skel-wage-stat .mask-skel-line + .mask-skel-line { margin-top: 6px; }
.mask-skel-wage-bars {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 5px;
  height: 48px;
  margin: 8px 0 6px;
  padding: 4px 8px 0;
  border-radius: 8px;
  border: 1px solid rgba(203, 213, 225, 0.28);
  background: rgba(255, 255, 255, 0.18);
}
.mask-skel-wage-bars span {
  flex: 1;
  border-radius: 3px 3px 0 0;
  background: linear-gradient(180deg, rgba(148, 163, 184, 0.42), rgba(203, 213, 225, 0.28));
  opacity: 0.65;
  min-height: 10px;
  animation: mask-skel-pulse 2.8s ease-in-out infinite;
}
.mask-skel-wage-bars span:nth-child(1) { height: 42%; }
.mask-skel-wage-bars span:nth-child(2) { height: 68%; }
.mask-skel-wage-bars span:nth-child(3) { height: 36%; }
.mask-skel-wage-bars span:nth-child(4) { height: 88%; }
.mask-skel--wages-layout .mask-skel-mini-card {
  position: relative;
  min-height: 78px;
  padding-top: 22px;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.4) inset;
}
.mask-skel--wages-layout .mask-skel-mini-card::before {
  content: '';
  position: absolute;
  top: 10px;
  left: 10px;
  right: 10px;
  height: 7px;
  border-radius: 3px;
  background: rgba(148, 163, 184, 0.26);
  opacity: 0.85;
}
.mask-skel--wages-layout .mask-skel-mini-card::after {
  content: '';
  position: absolute;
  bottom: 14px;
  left: 12px;
  right: 12px;
  height: 14px;
  border-radius: 4px;
  background: linear-gradient(90deg, rgba(203, 213, 225, 0.35) 0%, rgba(226, 232, 240, 0.4) 100%);
  opacity: 0.55;
}
/* Wages: primary row + percentile + cards */
.mask-skel--wages-layout .mask-skel-percentile {
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px dashed rgba(148, 163, 184, 0.38);
  background: rgba(255, 255, 255, 0.22);
}
.mask-skel-percentile-lines {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.mask-skel-spark {
  height: 36px;
  border-radius: 6px;
  background: linear-gradient(90deg, rgba(203, 213, 225, 0.35) 0%, rgba(148, 163, 184, 0.25) 40%, rgba(203, 213, 225, 0.3) 100%);
  margin-top: 6px;
  background-size: 200% 100%;
  animation: mask-skel-pulse 2.8s ease-in-out infinite;
}
/* Compare: summary strip + metric + table hint */
.mask-skel-compare-summary-box {
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.36);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.38) 0%, rgba(248, 250, 252, 0.24) 100%);
  margin-bottom: 2px;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.5) inset;
}
.mask-skel-compare-summary-box .mask-skel-line { margin-bottom: 0; }
.mask-skel-compare-summary-box .mask-skel-line + .mask-skel-line { margin-top: 4px; }
.mask-skel-compare-metric {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.34);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.42) 0%, rgba(248, 250, 252, 0.3) 100%);
  max-width: 300px;
  margin: 0 auto;
  width: 100%;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.55) inset;
}
.mask-skel-compare-metric .mask-skel-line--lg { margin: 0 auto; }
.mask-skel-compare-metric .mask-skel-line--md { margin: 0 auto; }
.mask-skel-compare-table-hint {
  margin-top: 6px;
  padding: 6px 8px;
  border-radius: 8px;
  background: rgba(241, 245, 249, 0.9);
  border: 1px solid rgba(226, 232, 240, 0.9);
}
.mask-skel-compare-table-hint .mask-skel-th {
  padding: 4px 6px;
}
.mask-skel-compare-table-hint .mask-skel-th span {
  height: 7px;
}
.mask-skel-line {
  height: 9px;
  border-radius: 5px;
  border: 1px solid rgba(203, 213, 225, 0.45);
  background: linear-gradient(90deg, rgba(226, 232, 240, 0.85) 0%, rgba(241, 245, 249, 0.65) 45%, rgba(226, 232, 240, 0.8) 100%);
  background-size: 200% 100%;
  opacity: 0.88;
  animation: mask-skel-pulse 2.8s ease-in-out infinite;
}
.mask-skel-line--lg { width: 72%; max-width: 320px; }
.mask-skel-line--md { width: 48%; max-width: 200px; height: 7px; }
.mask-skel-line--sm { width: 36%; height: 6px; opacity: 0.75; }
.mask-skel-card {
  height: 88px;
  max-width: 280px;
  margin: 0 auto;
  width: 100%;
  border-radius: 10px;
  border: 1px solid rgba(203, 213, 225, 0.5);
  background: linear-gradient(135deg, rgba(226, 232, 240, 0.55) 0%, rgba(241, 245, 249, 0.4) 100%);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.65) inset;
  animation: mask-skel-pulse 2.8s ease-in-out infinite;
  animation-delay: 0.15s;
}
.mask-skel-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  max-width: 420px;
  margin: 0 auto;
  width: 100%;
}
.mask-skel-pill {
  height: 36px;
  border-radius: 8px;
  border: 1px solid rgba(203, 213, 225, 0.45);
  background: rgba(241, 245, 249, 0.65);
  animation: mask-skel-pulse 2.8s ease-in-out infinite;
  animation-delay: 0.25s;
}
.mask-skel-bars {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: auto;
  padding-top: 8px;
}
.mask-skel-bar {
  height: 10px;
  border-radius: 5px;
  border: 1px solid rgba(203, 213, 225, 0.35);
  background: linear-gradient(90deg, rgba(203, 213, 225, 0.35) 0%, rgba(226, 232, 240, 0.55) 50%, rgba(203, 213, 225, 0.35) 100%);
  background-size: 200% 100%;
  opacity: 0.88;
  animation: mask-skel-pulse 2.8s ease-in-out infinite;
}
.mask-skel-bar:nth-child(1) { width: 100%; }
.mask-skel-bar:nth-child(2) { width: 92%; }
.mask-skel-bar:nth-child(3) { width: 85%; }
.mask-skel-bar:nth-child(4) { width: 78%; }
.mask-skel-banner {
  min-height: 56px;
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.34);
  background: linear-gradient(90deg, rgba(226, 232, 240, 0.55) 0%, rgba(241, 245, 249, 0.35) 100%);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.5) inset;
  animation: mask-skel-pulse 2.8s ease-in-out infinite;
  padding: 10px 12px;
  box-sizing: border-box;
}
.result-mask-ghost--col .mask-skel-banner {
  min-height: 48px;
  padding: 8px 10px;
}
.result-mask-ghost--col .mask-skel--col-layout {
  gap: 8px;
}
.mask-skel-grid3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.mask-skel-mini-card {
  height: 72px;
  border-radius: 10px;
  border: 1px solid rgba(203, 213, 225, 0.4);
  background: rgba(255, 255, 255, 0.35);
  animation: mask-skel-pulse 2.8s ease-in-out infinite;
  animation-delay: 0.1s;
}
.mask-skel-table {
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.32);
  background: rgba(255, 255, 255, 0.38);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.45) inset;
}
.mask-skel-th {
  display: grid;
  grid-template-columns: 0.7fr 1.4fr 1fr 1fr 1fr 1fr;
  gap: 6px;
  padding: 8px 10px;
  background: rgba(241, 245, 249, 0.9);
}
.mask-skel-th span {
  height: 7px;
  border-radius: 3px;
  background: #cbd5e1;
  opacity: 0.8;
}
.mask-skel-tr {
  display: grid;
  grid-template-columns: 0.7fr 1.4fr 1fr 1fr 1fr 1fr;
  gap: 6px;
  padding: 8px 10px;
  border-top: 1px solid rgba(226, 232, 240, 0.9);
}
.mask-skel-tr span {
  height: 8px;
  border-radius: 3px;
  background: rgba(203, 213, 225, 0.55);
  animation: mask-skel-pulse 2.8s ease-in-out infinite;
}
.mask-skel-tr:nth-child(2) span { animation-delay: 0.05s; }
.mask-skel-tr:nth-child(3) span { animation-delay: 0.1s; }
.mask-skel-donut-row {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 8px;
}
.mask-skel-donut {
  width: 112px;
  height: 112px;
  border-radius: 50%;
  border: 2px solid rgba(148, 163, 184, 0.42);
  background:
    radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.55) 0 32%, transparent 33%),
    conic-gradient(rgba(148, 163, 184, 0.42) 0 38%, rgba(226, 232, 240, 0.55) 38% 100%);
  opacity: 0.72;
  animation: mask-skel-pulse 2.8s ease-in-out infinite;
}
.mask-skel-legend {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 140px;
}
.mask-skel-rows {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.mask-skel-wage-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
}
.mask-skel-wage-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 8px;
}
@media (max-width: 640px) {
  .mask-skel-wage-cards { grid-template-columns: 1fr; }
  .mask-skel-th,
  .mask-skel-tr { grid-template-columns: 1fr 1.2fr 1fr; }
}
@keyframes mask-skel-pulse {
  0%, 100% { opacity: 0.58; filter: brightness(1); }
  50% { opacity: 0.76; filter: brightness(1.02); }
}
.result-mask-frost,
.calc-empty-state-overlay,
.col-col-overlay,
.compare-initial-overlay,
.compare-dirty-overlay.compare-dirty-overlay--compare,
.col-dirty-overlay,
.main-results-stale-overlay {
  /* Shared overlay message chip (aligned with COL section) */
  --mask-msg-surface: rgba(255, 255, 255, 0.17);
  --mask-msg-edge: rgba(255, 255, 255, 0.24);
  --mask-msg-shade: none;
  display: none;
  position: absolute;
  inset: 0;
  z-index: 5;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 1rem 0.75rem;
  text-align: center;
  box-sizing: border-box;
  pointer-events: auto;
  border-radius: inherit;
  overflow: hidden;
  /* More translucent so dimmed body + ghost read as "under" the glass */
  background: linear-gradient(
    168deg,
    rgba(255, 255, 255, 0.26) 0%,
    rgba(248, 250, 252, 0.3) 42%,
    rgba(241, 245, 249, 0.26) 100%
  );
  backdrop-filter: blur(14px) saturate(1.06);
  -webkit-backdrop-filter: blur(14px) saturate(1.06);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.45),
    inset 0 0 0 1px rgba(255, 255, 255, 0.2);
}
.result-mask-frost__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 28rem;
  margin: 0 auto;
  padding: var(--overlay-prompt-inner-gap);
  box-sizing: border-box;
  flex: 1 1 auto;
  align-self: stretch;
  min-height: 0;
}
.result-mask-frost__inner > p,
.result-mask-frost__inner .empty-state-message {
  margin: 0;
  padding: var(--overlay-prompt-chip-py) var(--overlay-prompt-chip-px);
  border-radius: 9px;
  background: var(--mask-msg-surface);
  border: 1px solid var(--mask-msg-edge);
  box-shadow: var(--mask-msg-shade);
  font-size: var(--overlay-prompt-fs);
  font-weight: var(--overlay-prompt-fw);
  line-height: var(--overlay-prompt-lh);
  color: var(--overlay-prompt-color);
  text-shadow: var(--overlay-prompt-ts);
}
.result-mask-frost .empty-state-message,
.result-mask-frost .calc-empty-state-copy,
.result-mask-frost .calc-empty-state-copy--short,
.result-mask-frost .calc-empty-state-copy--two-lines,
.compare-initial-overlay .empty-state-message,
.compare-initial-overlay .calc-empty-state-copy,
.col-dirty-overlay-msg,
.compare-dirty-overlay-msg {
  font-size: var(--overlay-prompt-fs);
  font-weight: 500;
  line-height: var(--overlay-prompt-lh);
  color: var(--overlay-prompt-color);
  text-shadow: var(--overlay-prompt-ts);
}
.calc-content.pre-calc-state .calc-empty-state-overlay {
  display: flex;
}
#compare-states-section.compare-state-initial .compare-initial-overlay,
#compare-states-section.compare-state-dirty .compare-dirty-overlay--compare {
  display: flex;
}
/* Compare initial + stale: centered chip (typography uses global overlay tokens above) */
#compare-states-section.compare-state-initial .compare-initial-overlay .result-mask-frost__inner,
#compare-states-section.compare-state-dirty .compare-dirty-overlay--compare .result-mask-frost__inner {
  flex: 0 1 auto;
  align-self: center;
  width: 100%;
  max-width: min(22rem, calc(100% - 1rem));
}
#compare-states-section.compare-state-dirty .result-mask-body {
  opacity: 0.47;
  filter: saturate(0.82) contrast(0.88) brightness(0.98);
}
#col-adjustment.col-awaiting-user .calc-empty-state-wrap > .calc-empty-state-overlay.col-col-overlay {
  display: flex;
}
#col-adjustment.col-state-dirty .col-dirty-overlay {
  display: flex;
}
.calc-content.pre-calc-state .result-mask-body {
  opacity: 0.5;
  filter: saturate(0.82) contrast(0.88) brightness(0.98);
}
.calc-content.pre-calc-state .results-report #salary-results-wrap.results-placeholder .results-placeholder-msg {
  margin: 0 0 var(--section-control-to-mask-gap) !important;
}
#compare-states-section.compare-state-initial .result-mask-body {
  opacity: 0.47;
  filter: saturate(0.82) contrast(0.88) brightness(0.98);
}
#col-adjustment.col-awaiting-user .result-mask-body,
#col-adjustment.col-state-dirty .result-mask-body {
  opacity: 0.47;
  filter: saturate(0.82) contrast(0.88) brightness(0.98);
}
#col-adjustment.col-state-dirty .result-mask-body {
  opacity: 0.54;
}
#compare-states-section.compare-state-initial .result-mask-ghost--compare,
#col-adjustment.col-awaiting-user .result-mask-ghost--col {
  display: flex;
}
#compare-states-section.compare-state-dirty .result-mask-ghost--compare,
#compare-states-section.compare-state-live .result-mask-ghost--compare {
  display: none;
}
.calc-content.pre-calc-state .result-mask-ghost--results,
.calc-content.pre-calc-state .result-mask-ghost--wages {
  display: flex;
}
/* Pre-calc: em-dash placeholders in Compare table (Top 10 States by Net Pay) */
.calc-content.pre-calc-state .compare-states-table-card:not(.col-table-card) .live-number {
  font-size: 0;
}
.calc-content.pre-calc-state .compare-states-table-card:not(.col-table-card) .live-number::after {
  content: attr(data-placeholder);
  font-size: 1rem;
  font-weight: 400;
  font-variant-numeric: tabular-nums;
  color: #6b7280;
}
.calc-empty-state-copy,
.calc-empty-state-copy--short {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: #6b7280;
  text-align: center;
  max-width: 320px;
}
/* Results overlay: wider so two-line message stays on two lines */
.calc-empty-state-copy--two-lines {
  min-width: 480px;
  max-width: 520px;
}
.calc-empty-state-copy--two-lines .line2 {
  white-space: nowrap;
}
.empty-state-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 8px;
}
.empty-state-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0;
  color: #cbd5e1;
  opacity: 0.92;
  pointer-events: none;
  line-height: 0;
}
.empty-state-visual svg {
  display: block;
  width: 96px;
  height: 96px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
/* Wages / Compare / COL: tighter icon-to-text (SVG artwork has more internal bottom padding than Take-home) */
.wage-comparison-section .empty-state-content,
.compare-initial-overlay .empty-state-content,
.col-col-overlay .empty-state-content {
  gap: 4px;
}
.wage-comparison-section .empty-state-visual,
.compare-initial-overlay .empty-state-visual,
.col-col-overlay .empty-state-visual {
  margin-bottom: -6px;
}
.empty-state-message {
  margin: 0;
  max-width: 22rem;
  color: #334155;
  font-weight: 600;
  font-size: 0.875rem;
  line-height: 1.45;
  text-align: center;
  text-shadow: none;
}
.result-mask-frost__inner .empty-state-content .empty-state-message {
  padding: 0;
  border: none;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
.take-home-empty-state .empty-state-visual svg,
.results-empty-state--takehome .empty-state-visual svg {
  width: 96px;
  height: 96px;
}
.take-home-empty-state .empty-state-content,
.results-empty-state--takehome .empty-state-content {
  gap: 8px;
}
.take-home-empty-state .empty-state-visual,
.results-empty-state--takehome .empty-state-visual {
  margin-bottom: 0;
}
.result-mask-frost__inner:has(.empty-state-content) {
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: 0 1 auto;
  align-self: center;
}
@media (max-width: 768px) {
  .empty-state-visual svg {
    width: 84px;
    height: 84px;
  }
  .take-home-empty-state .empty-state-visual svg,
  .results-empty-state--takehome .empty-state-visual svg {
    width: 84px;
    height: 84px;
  }
  .take-home-empty-state .empty-state-content,
  .results-empty-state--takehome .empty-state-content {
    gap: 8px;
  }
  .wage-comparison-section .empty-state-content,
  .compare-initial-overlay .empty-state-content,
  .col-col-overlay .empty-state-content {
    gap: 4px;
  }
  .wage-comparison-section .empty-state-visual,
  .compare-initial-overlay .empty-state-visual,
  .col-col-overlay .empty-state-visual {
    margin-bottom: -5px;
  }
}
@media (max-width: 520px) {
  .calc-empty-state-copy--two-lines {
    min-width: 0;
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
  }
  .calc-empty-state-copy--two-lines .line2 {
    white-space: normal;
  }
}
/* ????????????????????? */
.calc-content .results-report.card {
  margin-top: 0;
  padding-top: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  border: none;
  padding: 0;
}
/* Salary Results intro→mask: enforced after .card at end of this <style> (wins cascade) */
/* ????????????????????????????????? */
.calc-content .chart-block {
  margin-top: var(--space-24);
  padding-top: var(--space-16);
  border-top: 1px solid #e5e7eb;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
/* Flat section + top divider (aligned with .compare-states-card / COL — not a nested card) */
.calc-content .wage-comparison-section.page-section {
  background: transparent;
  box-shadow: none;
  border: none;
  border-radius: 0;
  margin-top: 0;
  padding: var(--section-divider-gap) 0 0;
  border-top: 1px solid rgba(226, 232, 240, 0.9);
}
.calc-content .compare-states-card.card {
  background: transparent;
  box-shadow: none;
  border: none;
  border-radius: 0;
  padding: 0;
  padding-top: var(--section-divider-gap);
  margin-top: 0;
  border-top: 1px solid rgba(226, 232, 240, 0.9);
}
/* Calculator stack: margin below each block = gap above next section’s divider (symmetric with padding-top after border) */
.calc-content > .results-report.card,
.calc-content > .wage-comparison-section.page-section,
.calc-content > .compare-states-card.card {
  margin-bottom: var(--section-divider-gap);
}
.calc-content > .col-adjustment-section.page-section {
  margin-bottom: var(--section-divider-gap);
}
/* ---------- Compare States section (8pt spacing: 4/8/16/24/32) ---------- */
.compare-states-section .section-title {
  font-size: var(--font-h3);
  font-weight: 600;
  color: var(--color-title);
  margin-bottom: 10px;
}
.compare-states-section .label,
.compare-states-section .meta-text {
  font-size: var(--font-sm);
  color: var(--color-muted);
  line-height: var(--line-body);
  margin-bottom: 8px;
}
/* Primary lead: same explanatory tone as wage section .label (not a sub-heading) */
.compare-states-section .compare-section-lead.label.meta-text {
  font-size: var(--font-sm);
  line-height: var(--line-body);
  font-weight: 400;
  color: var(--color-muted);
  margin-bottom: 8px;
}
.compare-states-section .compare-launch-note.meta-text {
  font-size: 0.8125rem;
  line-height: 1.5;
  color: #94a3b8;
  margin-top: 0;
  margin-bottom: 12px;
}
.compare-states-section .compare-helper-note.meta-text {
  font-size: 0.75rem;
  line-height: 1.45;
  color: #94a3b8;
  margin: 6px 0 0;
}
.compare-states-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin-bottom: var(--mask-above-gap);
  align-items: flex-end;
}
.compare-states-filters .filter-field {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  min-width: 0;
}
.compare-states-filters .filter-field:first-child { flex: 0 1 140px; }
.compare-states-filters .filter-field:nth-child(2),
.compare-states-filters .filter-field:nth-child(3),
.compare-states-filters .filter-field:nth-child(4) { flex: 0 1 140px; }
.compare-states-filters .filter-field .salary-input-with-prefix {
  display: flex;
  align-items: stretch;
  width: 100%;
  min-width: 0;
  height: 40px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  background: #fff;
  box-sizing: border-box;
}
.compare-states-filters .filter-field .salary-input-with-prefix .salary-prefix {
  padding: 0 12px;
  display: flex;
  align-items: center;
  font-weight: 500;
  color: var(--color-muted);
  background: #f9fafb;
  border-radius: 6px 0 0 6px;
}
.compare-states-filters .filter-field .salary-input-with-prefix input {
  flex: 1;
  min-width: 0;
  padding: 8px 12px;
  border: none;
  border-radius: 0 6px 6px 0;
  font-size: 0.875rem;
  height: 100%;
  box-sizing: border-box;
}
.compare-states-filters .filter-field-btn:nth-child(5) { flex: 0 0 auto; align-self: flex-end; }
.compare-states-filters .filter-field label {
  font-size: var(--font-xs);
  font-weight: 500;
  /* Slightly darker than --color-muted (#6b7280): clearer field labels, still below section titles */
  color: #64748b;
  line-height: 1.2;
}
.compare-states-filters .filter-field select {
  width: 100%;
  min-width: 170px;
  padding: 8px 12px;
  font-size: 0.875rem;
  border-radius: 6px;
  border: 1px solid #d1d5db;
  background: #fff;
  color: var(--color-body);
  line-height: 1.3;
  height: 40px;
  box-sizing: border-box;
}
.compare-states-filters .filter-field select:invalid,
.col-adjustment-filters .filter-field select:invalid {
  color: #b8bcc4;
}
.compare-states-filters .filter-field select:valid,
.col-adjustment-filters .filter-field select:valid {
  color: #1f2937;
}
.compare-states-filters .filter-field-btn .btn-primary {
  height: 40px;
  padding: 8px 24px;
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: 6px;
  background: #2563EB;
  color: #fff;
  border: 1px solid #2563EB;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.compare-states-filters .filter-field-btn .btn-primary:hover {
  background: #1d4ed8;
  border-color: #1d4ed8;
}
/* Compare section: centered gain card + stat strip (COL section uses .col-summary grid below) */
.compare-states-summary--compact {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  margin-bottom: 0;
}
.compare-result-cluster {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  width: 100%;
  max-width: 392px;
  border-radius: 10px;
  border: 1px solid #e6ebf1;
  background: #fff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  margin-bottom: 6px;
  box-sizing: border-box;
}
.compare-result-cluster .compare-states-summary-gain-wrap {
  max-width: none;
  width: 100%;
}
.compare-result-cluster .compare-states-summary-card.compare-states-summary-card--gain {
  border: none;
  border-radius: 0;
  box-shadow: none;
}
.compare-result-cluster .compare-states-summary-stats {
  border: none;
  border-radius: 0;
  border-top: 1px solid #e6ebf1;
  box-shadow: none;
  margin-bottom: 0;
}
.compare-states-summary-gain-wrap {
  width: 100%;
  max-width: 392px;
  display: flex;
  justify-content: center;
}
.compare-states-summary-card--solo {
  width: 100%;
  max-width: 392px;
}
.compare-states-summary-card.compare-states-summary-card--gain {
  min-height: 0;
  padding: 1rem 1.25rem 1.05rem;
}
.compare-states-summary-card--gain > .compare-summary-label.compare-summary-label--with-tip {
  min-height: auto;
  margin-bottom: 8px;
}
.compare-states-summary-card--gain .compare-summary-value {
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
}
.compare-states-summary-card--gain .compare-summary-sub {
  margin-top: 4px;
  font-size: var(--font-sm);
  line-height: 1.35;
}
.compare-states-summary-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
  column-gap: 0;
  row-gap: 0;
  width: 100%;
  max-width: 392px;
  padding: 12px 8px 14px;
  background: #fafbfc;
  border-radius: 10px;
  border: 1px solid #e6ebf1;
  box-sizing: border-box;
}
.compare-stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  text-align: center;
  min-width: 0;
  padding: 0 6px;
}
.compare-stat-item:not(:first-child) {
  border-left: 1px solid rgba(148, 163, 184, 0.4);
}
.compare-stat-label {
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: #64748b;
  text-align: center;
  line-height: 1.2;
  white-space: nowrap;
  min-height: 2.4em;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  box-sizing: border-box;
}
.compare-stat-value {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--color-title);
  margin-top: auto;
  padding-top: 10px;
  font-variant-numeric: tabular-nums;
  line-height: 1.15;
}
.compare-summary-text .compare-summary-em {
  font-weight: 700;
  color: var(--color-title);
}
.col-results-cluster {
  position: relative;
}
.col-dirty-overlay-msg {
  margin: 0;
  max-width: 22rem;
}
/* Compare module: result cluster + initial / dirty masks (independent of main calc pre-calc-state) */
.compare-results-cluster {
  position: relative;
  min-height: 120px;
}
/* Initial + stale: same masked footprint as main COL (section-mask-viewport-* on :root) */
#compare-states-section.compare-state-initial .compare-results-cluster,
#compare-states-section.compare-state-dirty .compare-results-cluster {
  min-height: var(--section-mask-viewport-min);
  max-height: var(--section-mask-viewport-max);
  overflow: hidden;
}
#compare-states-section.compare-state-live .compare-results-cluster {
  max-height: none;
  min-height: 0;
}
#compare-states-section.compare-state-initial .compare-summary-text {
  margin-bottom: 8px;
  padding: 8px 10px;
}
/* COL awaiting + stale: same masked viewport as Compare */
#col-adjustment.col-awaiting-user .col-results-cluster,
#col-adjustment.col-state-dirty .col-results-cluster {
  min-height: var(--section-mask-viewport-min);
  max-height: var(--section-mask-viewport-max);
  overflow: hidden;
}
/* COL live analysis: expand to content */
#col-adjustment.col-state-live .col-results-cluster {
  max-height: none;
  min-height: 0;
}
/* Take-home pay estimate: masked empty + stale match Compare viewport; fresh live run expands */
.calc-content.pre-calc-state .calc-empty-state-wrap.result-mask-cluster--results {
  min-height: var(--section-mask-viewport-min);
  max-height: var(--section-mask-viewport-max);
  overflow: hidden;
}
.calc-empty-state-wrap.result-mask-cluster--results:has(#salary-results-wrap.results-stale),
.calc-empty-state-wrap.result-mask-cluster--results:has(#cn-results-wrap.results-stale) {
  min-height: var(--section-mask-viewport-min);
  max-height: var(--section-mask-viewport-max);
  overflow: hidden;
}
.calc-empty-state-wrap.result-mask-cluster--results:has(#salary-results-wrap.results-ready:not(.results-stale)),
.calc-empty-state-wrap.result-mask-cluster--results:has(#cn-results-wrap.results-ready:not(.results-stale)) {
  max-height: none;
  min-height: 0;
}
/* Wages section: pre-calc masked region (separate wrap from Salary Results) */
.calc-content.pre-calc-state .calc-empty-state-wrap:has(.result-mask-cluster--wages) {
  min-height: min(415px, 64vh);
}
/* Masked regions: flatten nested card chrome so dimmed content + frost reads as one layer (aligned with Results / COL). */
.calc-content.pre-calc-state .result-mask-cluster--wages .salary-primary {
  background: rgba(248, 250, 252, 0.42);
  border: 1px solid rgba(226, 232, 240, 0.85);
  border-left: 3px solid rgba(148, 163, 184, 0.45);
  box-shadow: none;
}
.calc-content.pre-calc-state .result-mask-cluster--wages .wage-card {
  background: rgba(255, 255, 255, 0.38);
  box-shadow: none;
  border: 1px solid rgba(226, 232, 240, 0.78);
}
.calc-content.pre-calc-state .result-mask-cluster--wages .wage-card:hover {
  transform: none;
  box-shadow: none;
}
#compare-states-section.compare-state-initial .compare-results-cluster .compare-result-cluster,
#compare-states-section.compare-state-dirty .compare-results-cluster .compare-result-cluster {
  background: rgba(255, 255, 255, 0.38);
  border: 1px solid rgba(226, 232, 240, 0.78);
  box-shadow: none;
}
#compare-states-section.compare-state-initial .compare-results-cluster .compare-result-cluster .compare-states-summary-stats,
#compare-states-section.compare-state-dirty .compare-results-cluster .compare-result-cluster .compare-states-summary-stats {
  background: rgba(248, 250, 252, 0.42);
  border: none;
  border-radius: 0;
  border-top: 1px solid rgba(226, 232, 240, 0.65);
  box-shadow: none;
}
#compare-states-section.compare-state-initial .compare-results-cluster .compare-summary-text,
#compare-states-section.compare-state-dirty .compare-results-cluster .compare-summary-text {
  background: rgba(248, 250, 252, 0.42);
  border: 1px solid rgba(226, 232, 240, 0.78);
  box-shadow: none;
}
#compare-states-section.compare-state-initial .compare-results-cluster .compare-states-summary-card,
#compare-states-section.compare-state-dirty .compare-results-cluster .compare-states-summary-card {
  background: rgba(255, 255, 255, 0.38);
  box-shadow: none;
  border: 1px solid rgba(226, 232, 240, 0.78);
}
#compare-states-section.compare-state-initial .compare-results-cluster .compare-result-cluster .compare-states-summary-card--gain,
#compare-states-section.compare-state-dirty .compare-results-cluster .compare-result-cluster .compare-states-summary-card--gain {
  background: transparent;
  border: none;
  box-shadow: none;
}
#compare-states-section.compare-state-initial .compare-results-cluster .compare-states-chart-card,
#compare-states-section.compare-state-dirty .compare-results-cluster .compare-states-chart-card {
  background: rgba(255, 255, 255, 0.38);
  box-shadow: none;
  border: 1px solid rgba(226, 232, 240, 0.78);
}
#compare-states-section.compare-state-initial .compare-results-cluster .compare-states-table-card,
#compare-states-section.compare-state-dirty .compare-results-cluster .compare-states-table-card {
  background: rgba(255, 255, 255, 0.38);
  box-shadow: none;
  border: 1px solid rgba(226, 232, 240, 0.78);
}
#compare-states-section.compare-state-initial .compare-results-cluster .compare-states-table th,
#compare-states-section.compare-state-dirty .compare-results-cluster .compare-states-table th {
  background: rgba(241, 245, 249, 0.55);
}
#compare-states-section.compare-state-initial .compare-results-cluster .compare-states-table tbody tr:hover td,
#compare-states-section.compare-state-dirty .compare-results-cluster .compare-states-table tbody tr:hover td {
  background: transparent;
}
#col-adjustment.col-awaiting-user .col-results-cluster .col-insight-banner,
#col-adjustment.col-state-dirty .col-results-cluster .col-insight-banner {
  background: rgba(248, 250, 252, 0.42);
  border: 1px solid rgba(226, 232, 240, 0.78);
  box-shadow: none;
}
#col-adjustment.col-awaiting-user .col-results-cluster .col-summary .compare-states-summary-card,
#col-adjustment.col-state-dirty .col-results-cluster .col-summary .compare-states-summary-card {
  background: rgba(255, 255, 255, 0.38);
  box-shadow: none;
  border: 1px solid rgba(226, 232, 240, 0.78);
}
#col-adjustment.col-awaiting-user .col-results-cluster .col-table-card,
#col-adjustment.col-state-dirty .col-results-cluster .col-table-card {
  background: rgba(255, 255, 255, 0.38);
  box-shadow: none;
  border: 1px solid rgba(226, 232, 240, 0.78);
}
#col-adjustment.col-awaiting-user .col-results-cluster .col-table thead th,
#col-adjustment.col-state-dirty .col-results-cluster .col-table thead th {
  background: rgba(241, 245, 249, 0.55);
}
#col-adjustment.col-awaiting-user .col-results-cluster .col-table tbody tr:hover td,
#col-adjustment.col-state-dirty .col-results-cluster .col-table tbody tr:hover td {
  background: transparent;
}
@media (max-width: 560px) {
  .calc-empty-state-copy--two-lines {
    min-width: 0;
    max-width: 100%;
    white-space: normal;
  }
  .calc-empty-state-copy--two-lines .line2 {
    white-space: normal;
  }
}
.col-validation-msg {
  margin: 0 0 10px;
  min-height: 1.25em;
}
.col-adjustment-filters .filter-field-btn:nth-child(4) {
  flex: 0 0 auto;
  align-self: flex-end;
}
@media (max-width: 360px) {
  .compare-states-summary-stats {
    grid-template-columns: 1fr;
    row-gap: 12px;
    padding: 12px 10px;
  }
  .compare-stat-item:not(:first-child) {
    border-left: none;
    border-top: 1px solid rgba(148, 163, 184, 0.35);
    padding-top: 10px;
    margin-top: 2px;
  }
  .compare-stat-label {
    white-space: normal;
    min-height: auto;
  }
}
.compare-states-summary-card {
  background: #fff;
  border-radius: 10px;
  padding: 1rem 1.125rem;
  min-height: 100px;
  border: 1px solid #e6ebf1;
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.compare-states-summary-card > .compare-summary-label {
  min-height: 2.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin-bottom: 8px;
}
.compare-summary-label {
  font-size: var(--font-xs);
  font-weight: 500;
  color: var(--color-muted);
  line-height: 1.2;
}
.compare-summary-value {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--color-title);
  font-variant-numeric: tabular-nums;
}
.compare-summary-sub {
  font-size: var(--font-sm);
  color: var(--color-muted);
  margin-top: 4px;
}
.compare-stale-note {
  margin: -8px 0 16px;
  font-size: 0.875rem;
  color: var(--color-muted);
}
.compare-summary-label--with-tip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex-wrap: wrap;
}
.compare-inline-tip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.1em;
  height: 1.1em;
  border-radius: 50%;
  border: 1px solid var(--color-muted, #94a3b8);
  font-size: 0.75rem;
  line-height: 1;
  color: var(--color-muted, #64748b);
  cursor: help;
}
.compare-methodology-block {
  margin: 0;
  padding: 16px 0 0;
  background: transparent;
  border: none;
  border-top: 1px solid #e8edf2;
  font-size: 0.75rem;
  line-height: 1.55;
  color: #94a3b8;
}
.compare-methodology-kicker {
  font-weight: 600;
  color: #475569;
  letter-spacing: 0.01em;
  font-size: 0.8125rem;
}
.compare-methodology-body {
  font-weight: 400;
  color: #94a3b8;
}
.compare-methodology-p {
  margin: 0 0 10px;
}
.compare-methodology-p:last-child {
  margin-bottom: 0;
}
/* Same “after mask” rhythm as Wages disclaimers (calculator column only) */
.calc-content .compare-states-card .compare-methodology-block {
  margin-top: var(--section-after-mask-gap);
  margin-bottom: 0;
}
.compare-cta-card {
  background: #F8FAFC;
  border-radius: 12px;
  padding: 16px 20px 20px;
  border: 1px solid #E2E8F0;
  margin-bottom: 16px;
  text-align: center;
}
.compare-cta-title {
  font-size: var(--font-h3);
  font-weight: 600;
  color: var(--color-title);
  margin: 0 0 12px;
  line-height: var(--line-tight);
}
.compare-cta-tooltip-wrap {
  font-size: 0.85em;
  color: var(--color-muted);
  opacity: 0.7;
  cursor: help;
  font-weight: 400;
}
.compare-cta-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}
.compare-cta-btn {
  display: inline-block;
  font-size: var(--font-sm);
  font-weight: 500;
  color: #2563EB;
  text-decoration: none;
  padding: 10px 16px;
  border: 1px solid #E2E8F0;
  border-radius: 8px;
  background: #fff;
  transition: background 0.2s, border-color 0.2s;
}
.compare-cta-btn:hover {
  background: #F8FAFC;
  border-color: #2563EB;
}
/* Page section spacing (product rhythm): compact major blocks without crowding */
.page-section { margin-bottom: 28px; }
.page-section:last-child { margin-bottom: 0; }

/* State links toggle */
.state-links-toggle {
  margin-top: 12px;
  font-size: var(--font-sm);
  font-weight: 500;
  color: #2563EB;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}
.state-links-toggle:hover { text-decoration: underline; }
.compare-states-grid .state-link:nth-child(n+11) { display: none; }
.compare-states-grid.expanded .state-link:nth-child(n+11) { display: block; }
.compare-th-total-tax {
  cursor: help;
}
.compare-summary-text {
  font-size: var(--font-sm);
  line-height: var(--line-body);
  color: var(--color-body);
  background: #fafbfc;
  border-radius: 8px;
  padding: 12px 14px;
  margin: 0 0 16px;
  border: 1px solid #e8ecf0;
}
/* Chart: horizontal bar, Top 10 */
.compare-states-chart-card {
  background: #fff;
  border-radius: 12px;
  padding: 16px 20px 20px;
  border: 1px solid #E2E8F0;
  box-shadow: 0 1px 2px rgba(0,0,0,.04);
  margin-bottom: 10px;
}
.compare-chart-title {
  font-size: var(--font-h3);
  font-weight: 600;
  color: var(--color-title);
  margin: 0 0 12px;
  line-height: var(--line-tight);
}
.compare-bar-chart {
  overflow-x: auto;
  overflow-y: hidden;
  min-width: 0;
}
.compare-bar-chart-inner {
  min-width: 280px;
}
.compare-bar-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
  font-size: var(--font-sm);
}
.compare-bar-row:last-child { margin-bottom: 0; }
.compare-bar-label {
  flex: 1 1 140px;
  min-width: 0;
  font-weight: 500;
  color: var(--color-body);
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px 0;
}
.compare-bar-track {
  flex: 1 1 0;
  min-width: 60px;
  height: 20px;
  background: #E2E8F0;
  border-radius: 4px;
  overflow: hidden;
}
.compare-bar-fill {
  height: 100%;
  background: #94a3b8;
  border-radius: 4px;
  min-width: 4px;
  transition: width 0.3s ease;
}
.compare-bar-best .compare-bar-fill { background: #2563EB; }
.compare-bar-base .compare-bar-fill { background: #f87171; }
.compare-bar-value {
  flex: 0 0 70px;
  text-align: right;
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  color: var(--color-title);
}
.compare-bar-placeholder .compare-bar-value {
  color: #6b7280;
  font-weight: 400;
}
.compare-bar-placeholder .compare-bar-track {
  opacity: 0.72;
}
.compare-bar-placeholder .compare-bar-fill {
  background: #cbd5e1;
}
.compare-bar-badge {
  font-size: 10px;
  font-weight: 500;
  color: var(--color-muted);
  background: #F1F5F9;
  padding: 2px 6px;
  border-radius: 4px;
  margin-left: 6px;
  white-space: nowrap;
}
.compare-assumptions-card {
  background: #f8fafc;
  border-radius: 12px;
  padding: 16px 20px 20px;
  border: 1px solid rgba(226, 232, 240, 0.9);
  margin-bottom: 12px;
}
.compare-assumptions-card.page-section {
  padding-bottom: 16px;
  margin-top: 4px;
}
.compare-assumptions-title {
  font-size: var(--font-h3);
  font-weight: 600;
  color: var(--color-title);
  margin: 0 0 12px;
  line-height: var(--line-tight);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.compare-assumptions-list {
  margin: 0;
  padding-left: 20px;
  font-size: var(--font-sm);
  color: var(--color-body);
  line-height: 1.6;
}
.compare-assumptions-list li { margin-bottom: 8px; }
.compare-assumptions-list li:last-child { margin-bottom: 0; }
.compare-assumptions-list li strong {
  font-weight: 600;
  color: var(--color-title);
}
.compare-assumptions-groups {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.compare-assumptions-group {
  margin: 0;
}
.compare-assumptions-group-title {
  font-size: var(--font-xs);
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--color-muted);
  margin: 0 0 6px;
  line-height: 1.35;
}
.compare-assumptions-group .compare-assumptions-list {
  margin: 0;
}
.compare-assumptions-group--sources .meta-text {
  margin-top: 0;
}
.compare-data-sources-text {
  font-size: var(--font-sm);
  color: var(--color-muted);
  line-height: var(--line-body);
  margin: 0;
}
.compare-disclaimer {
  font-size: 12px;
  color: #6b7280;
  line-height: 1.5;
  margin: 16px 0 24px;
}
/* Table: financial tool style */
.compare-states-table-card {
  background: #fff;
  border-radius: 12px;
  padding: 16px 20px 20px;
  border: 1px solid #E2E8F0;
  box-shadow: 0 1px 2px rgba(0,0,0,.04);
}
.compare-states-table-header {
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.compare-states-table-heading {
  font-size: var(--font-xs);
  font-weight: 600;
  color: var(--color-muted);
  margin: 0;
  line-height: 1.35;
}
.compare-states-table-header .compare-toggle-btn {
  flex-shrink: 0;
}
.compare-toggle-btn {
  font-size: var(--font-sm);
  font-weight: 500;
  color: #2563EB;
  background: transparent;
  border: 1px solid #E2E8F0;
  border-radius: 6px;
  padding: 8px 16px;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}
.compare-toggle-btn:hover {
  background: #F8FAFC;
  border-color: #CBD5E1;
}
.compare-row-collapsed {
  display: none;
}
.compare-table-expanded .compare-row-collapsed {
  display: table-row;
}
.compare-states-table-wrap {
  overflow-x: auto;
}
.compare-states-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--font-sm);
  font-variant-numeric: tabular-nums;
}
.compare-states-table th {
  text-align: left;
  padding: 12px 16px;
  font-weight: 600;
  font-size: var(--font-xs);
  color: var(--color-muted);
  background: #F1F5F9;
  border-bottom: 1px solid #E2E8F0;
}
.compare-states-table td {
  padding: 12px 16px;
  border-bottom: 1px solid #F1F5F9;
  color: var(--color-body);
  font-variant-numeric: tabular-nums;
}
.compare-states-table tbody tr:hover td {
  background: #F8FAFC;
}
.compare-states-table tbody tr:last-child td {
  border-bottom: none;
}
.compare-states-table a {
  color: #2563EB;
  text-decoration: none;
  font-weight: 500;
}
.compare-states-table a:hover {
  text-decoration: underline;
}
.compare-states-table td:first-child,
.compare-states-table th:first-child { width: 4rem; }
.compare-states-table td:nth-child(3),
.compare-states-table td:nth-child(4),
.compare-states-table td:nth-child(5),
.compare-states-table td:nth-child(6),
.compare-states-table th:nth-child(3),
.compare-states-table th:nth-child(4),
.compare-states-table th:nth-child(5),
.compare-states-table th:nth-child(6) {
  text-align: right;
}
/* Compare table state cells: links when a public state page exists; otherwise plain .compare-state-name */
.compare-state-link,
.compare-state-name {
  position: relative;
}
.compare-state-name {
  color: inherit;
  font-weight: inherit;
  cursor: default;
}
/* Difference column: positive green, negative red, zero neutral; +/- comes from cell text (formatDiff) */
.compare-states-table .diff-positive {
  color: #059669;
  font-weight: 500;
}
.compare-states-table.col-table .diff-positive { color: #059669; }
.compare-states-table .diff-negative {
  color: #dc2626;
  font-weight: 500;
}
.compare-states-table.col-table .diff-negative { color: #b91c1c; }
.compare-states-table .diff-zero {
  color: var(--color-muted);
  font-weight: 500;
}
.compare-states-table .diff-baseline {
  color: var(--color-muted);
}
@media (max-width: 768px) {
  .col-summary { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .compare-states-filters .filter-field { flex: 1 1 100%; }
  .compare-states-filters .filter-field-btn { flex: 1 1 100%; }
  .compare-states-filters .filter-field-btn .btn-primary { width: 100%; }
  .compare-states-section > .compare-states-filters:not(.col-adjustment-filters),
  .compare-states-section > .state-compare-controls:not(.col-adjustment-filters) {
    grid-template-columns: 1fr;
  }
  .compare-states-section > .compare-states-filters:not(.col-adjustment-filters) .filter-field-btn .btn-primary,
  .compare-states-section > .state-compare-controls:not(.col-adjustment-filters) .filter-field-btn .btn-primary {
    max-width: none;
    justify-self: stretch;
  }
}

/* SEO blocks: explore grid, FAQ — spacing-led separation (no extra divider lines; cards use borders) */
.compare-states-explore {
  margin-top: 0;
  margin-bottom: 24px;
}
.calc-content .compare-states-explore.page-section {
  margin-bottom: 24px;
}
.compare-states-explore .compare-seo-h3 {
  font-size: var(--font-h3);
  font-weight: 600;
  margin-top: 0;
  margin-bottom: 10px;
}
.compare-states-explore .compare-seo-lead {
  margin-bottom: 10px;
}
.compare-states-faq {
  margin-top: 18px;
}
/* Lower stack: symmetric spacing to/from Tax Guide (matches --section-divider-gap) */
.calc-content > .tax-guide-section.page-section {
  margin-top: 12px;
  margin-bottom: 12px;
}
.calc-content > .compare-assumptions-card {
  margin-bottom: var(--section-divider-gap);
}
/* Info modules: How We Calculate, Tax Guide — shared light card shell (inner structure unchanged) */
.calc-content > .compare-assumptions-card.page-section,
.calc-content > .tax-guide-section.page-section {
  background: #fcfcfd;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  box-shadow: none;
  box-sizing: border-box;
  width: 100%;
  max-width: 960px;
  margin-left: auto;
  margin-right: auto;
  padding: 20px;
}
/* FAQ: flat section aligned with result content — divider only, no outer card */
/* Match City Net Pay Comparison divider rhythm (--section-divider-gap above and below). */
.calc-content > #china-city-comparison.cn-compare.page-section:has(+ #china-city-policy-coverage.page-section) {
  margin-bottom: var(--section-divider-gap);
}
.calc-content > #china-city-comparison.cn-compare.page-section:has(+ .compare-states-faq.page-section) {
  margin-bottom: 0;
}
.calc-content > #china-city-policy-coverage.page-section:has(+ .compare-states-faq.page-section),
.calc-content > #china-city-policy-coverage.page-section:has(+ .cn-static-info.page-section) {
  margin-bottom: 0;
}
/* Match FAQ padding-top (16px): equal space from Coverage reviewed to divider and divider to FAQ heading. */
.calc-content > #china-city-policy-coverage.page-section + .compare-states-faq.page-section,
.calc-content > #china-city-policy-coverage.page-section + .cn-static-info.page-section {
  margin-top: 16px;
}
.calc-content > .compare-states-faq.page-section {
  background: transparent;
  border: none;
  border-radius: 0;
  box-shadow: none;
  box-sizing: border-box;
  width: 100%;
  max-width: none;
  margin: 32px 0 0;
  padding: 16px 0 0;
  border-top: var(--border-card);
}
/* China Tax Guide + Methodology: borderless info sections (same divider rhythm as FAQ) */
.calc-content > .cn-static-info.page-section {
  background: transparent;
  border: none;
  border-radius: 0;
  box-shadow: none;
  box-sizing: border-box;
  width: 100%;
  max-width: none;
  margin: 32px 0 0;
  padding: 16px 0 16px;
  border-top: var(--border-card);
  text-align: left;
}
/* Desktop readable measure (~1000px); full width when the section is narrower (mobile/iPad) */
.calc-content > .cn-static-info.page-section > * {
  max-width: 1000px;
  width: 100%;
  box-sizing: border-box;
  margin-left: 0;
  margin-right: auto;
}
/* Tax Guide: last summary padding-bottom is 10px; add 6px so space above divider = 16px */
.calc-content > #china-tax-guide.cn-static-info.page-section {
  padding-bottom: 6px;
}
/* Equal gap above/below divider between Tax Guide → Methodology → FAQ */
.calc-content > .cn-static-info.page-section + .cn-static-info.page-section,
.calc-content > .cn-static-info.page-section + .compare-states-faq.page-section {
  margin-top: 0;
  padding-top: 16px;
}
.calc-content > .cn-static-info.page-section .tax-guide-h2,
.calc-content > .cn-static-info.page-section .compare-assumptions-title {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
}
.calc-content > .cn-static-info.page-section .section-title-icon {
  display: inline-flex;
  flex-shrink: 0;
  width: 22px;
  height: 22px;
}
.calc-content > .cn-static-info.page-section .section-title-icon svg {
  width: 100%;
  height: 100%;
}
.calc-content > .cn-static-info.page-section .tax-guide-sub {
  max-width: 1000px;
  width: 100%;
}
/* Tax Guide accordion: clean US-style rows, no selected/blue border treatment */
.calc-content > #china-tax-guide.cn-static-info.page-section .tax-guide-accordion {
  width: 100%;
  max-width: 1000px;
}
.calc-content > #china-tax-guide.cn-static-info.page-section .tax-guide-item {
  margin: 0;
  padding: 0;
  max-width: none;
  width: 100%;
  background: transparent;
  border-bottom: 1px solid #eef2f7;
  border-left: none;
  border-radius: 0;
}
.calc-content > #china-tax-guide.cn-static-info.page-section .tax-guide-accordion > .tax-guide-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}
.calc-content > #china-tax-guide.cn-static-info.page-section .tax-guide-summary {
  margin: 0;
  padding: 10px 0;
  width: 100%;
  box-sizing: border-box;
  background: transparent;
}
.calc-content > #china-tax-guide.cn-static-info.page-section .tax-guide-summary:hover {
  background: #f9fafb;
}
.calc-content > #china-tax-guide.cn-static-info.page-section .tax-guide-summary-inner {
  flex: 1 1 auto;
  min-width: 0;
  max-width: none;
  width: auto;
}
.calc-content > #china-tax-guide.cn-static-info.page-section .tax-guide-item-title,
.calc-content > #china-tax-guide.cn-static-info.page-section .tax-guide-item-teaser {
  max-width: none;
}
.calc-content > #china-tax-guide.cn-static-info.page-section .tax-guide-chevron {
  flex: 0 0 20px;
}
.calc-content > #china-tax-guide.cn-static-info.page-section .tax-guide-item[open] {
  background: transparent;
  border-left: none;
  border-radius: 0;
  padding-left: 0;
}
.calc-content > #china-tax-guide.cn-static-info.page-section .tax-guide-item[open] > .tax-guide-summary,
.calc-content > #china-tax-guide.cn-static-info.page-section .tax-guide-item[open] > .tax-guide-summary:hover {
  background: transparent;
}
.calc-content > #china-tax-guide.cn-static-info.page-section .tax-guide-item-body {
  margin: 0;
  padding: 0 0 14px;
  max-width: none;
  width: 100%;
  box-sizing: border-box;
  overflow-wrap: break-word;
  background: transparent;
}
.calc-content > #china-tax-guide.cn-static-info.page-section .tax-guide-item-body > :first-child {
  margin-top: 0;
}
.calc-content > #china-tax-guide.cn-static-info.page-section .tax-guide-item-body > :last-child {
  margin-bottom: 0;
}
.calc-content > #china-tax-guide.cn-static-info.page-section .tax-guide-item-body p {
  font-size: var(--font-sm);
  color: var(--color-body);
  line-height: 1.6;
  margin: 0;
  max-width: none;
  width: 100%;
}
/* Methodology: static borderless groups */
.calc-content > #china-methodology.cn-static-info.page-section .cn-static-info-group {
  margin-top: 20px;
  max-width: 1000px;
  width: 100%;
}
.calc-content > #china-methodology.cn-static-info.page-section .cn-static-info-group:first-of-type {
  margin-top: 4px;
}
.calc-content > #china-methodology.cn-static-info.page-section .cn-static-info-group .compare-seo-h3 {
  margin: 0 0 8px;
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-title);
  line-height: 1.35;
  letter-spacing: normal;
}
.calc-content > #china-methodology.cn-static-info.page-section .cn-static-info-group p {
  font-size: var(--font-sm);
  color: var(--color-body);
  line-height: 1.6;
  margin: 0;
  max-width: none;
  width: 100%;
  overflow-wrap: break-word;
}
.calc-content > #china-methodology.cn-static-info.page-section .cn-static-info-sources {
  list-style: none;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: baseline;
  column-gap: 0;
  row-gap: 4px;
  margin: 0 0 12px;
  padding: 0;
  max-width: none;
  width: 100%;
}
.calc-content > #china-methodology.cn-static-info.page-section .cn-static-info-sources li {
  margin: 0;
  max-width: none;
  line-height: 1.6;
  display: inline-flex;
  align-items: baseline;
  white-space: nowrap;
}
.calc-content > #china-methodology.cn-static-info.page-section .cn-static-info-sources li:not(:last-child)::after {
  content: '·';
  margin-inline: 0.5em;
  color: #64748b;
  font-weight: 400;
  border-bottom: none;
  text-decoration: none;
  pointer-events: none;
}
.calc-content > #china-methodology.cn-static-info.page-section .cn-static-info-sources .gst-source-link,
.calc-content > #china-methodology.cn-static-info.page-section .cn-static-info-sources .gst-source-link:visited {
  font-size: var(--font-sm);
  font-weight: 400;
  line-height: 1.6;
  color: #64748b;
  text-decoration: none;
  border-bottom: 1px solid rgba(148, 163, 184, 0.35);
  white-space: nowrap;
}
.calc-content > #china-methodology.cn-static-info.page-section .cn-static-info-sources .gst-source-link:hover,
.calc-content > #china-methodology.cn-static-info.page-section .cn-static-info-sources .gst-source-link:visited:hover {
  color: #1f2937;
  border-bottom-color: rgba(148, 163, 184, 0.5);
}
.calc-content > #china-methodology.cn-static-info.page-section .cn-static-info-sources .gst-source-link:focus-visible {
  outline: 2px solid #93c5fd;
  outline-offset: 2px;
}
/* Mobile only: match Compare / Policy Coverage divider rhythm; tighten guide accordion + methodology gaps */
@media (max-width: 767px) {
  /* Space below coverage text → Tax Guide border (same token as other China section separators) */
  .calc-content > #china-city-policy-coverage.page-section:has(+ .cn-static-info.page-section) {
    margin-bottom: var(--section-divider-gap);
  }
  .calc-content > #china-city-policy-coverage.page-section + .cn-static-info.page-section {
    margin-top: 0;
  }
  .calc-content > .cn-static-info.page-section {
    margin-top: 0;
    margin-bottom: var(--section-divider-gap);
    padding-top: var(--section-divider-gap);
    padding-bottom: 0;
    border-top: 1px solid rgba(226, 232, 240, 0.9);
    box-shadow: none;
  }
  /* Drop the desktop 6px bottom pad hack; margin-bottom owns space to the next divider */
  .calc-content > #china-tax-guide.cn-static-info.page-section {
    padding-bottom: 0;
  }
  .calc-content > .cn-static-info.page-section + .cn-static-info.page-section,
  .calc-content > .cn-static-info.page-section + .compare-states-faq.page-section {
    margin-top: 0;
    padding-top: var(--section-divider-gap);
  }
  .calc-content > .cn-static-info.page-section + .compare-states-faq.page-section {
    margin-bottom: 0;
    border-top: 1px solid rgba(226, 232, 240, 0.9);
    box-shadow: none;
  }
  /* Expanded Tax Guide: no extra bottom block beyond body padding */
  .calc-content > #china-tax-guide.cn-static-info.page-section .tax-guide-item,
  .calc-content > #china-tax-guide.cn-static-info.page-section .tax-guide-item[open] {
    min-height: 0;
    padding-bottom: 0;
    margin-bottom: 0;
  }
  .calc-content > #china-tax-guide.cn-static-info.page-section .tax-guide-item-body {
    min-height: 0;
    padding-top: 0;
    padding-bottom: 10px;
  }
  .calc-content > #china-tax-guide.cn-static-info.page-section .tax-guide-accordion > .tax-guide-item:last-child {
    padding-bottom: 0;
  }
  .calc-content > #china-tax-guide.cn-static-info.page-section .tax-guide-accordion > .tax-guide-item:last-child .tax-guide-item-body {
    padding-bottom: 10px;
  }
  .calc-content > #china-tax-guide.cn-static-info.page-section .tax-guide-accordion > .tax-guide-item:last-child:not([open]) .tax-guide-item-body {
    padding-bottom: 0;
  }
  /* Methodology intro → Calculation Methodology: match gap before Policy Review (group margin-top 20px) */
  .calc-content > #china-methodology.cn-static-info.page-section > .tax-guide-sub {
    margin-bottom: 0;
  }
  .calc-content > #china-methodology.cn-static-info.page-section .cn-static-info-group:first-of-type {
    margin-top: 20px;
  }
  /* Official Sources links → local policy paragraph */
  .calc-content > #china-methodology.cn-static-info.page-section .cn-static-info-sources {
    margin-bottom: 18px;
  }
}
/* Tax Guide: slightly tighter card shell than other info modules (this block only) */
.calc-content > .tax-guide-section.page-section {
  padding: 18px;
}
/* Explore: sit closer to FAQ without overlapping */
.calc-content > .compare-states-explore.page-section {
  margin-top: -12px;
}
/* Cost of Living Adjustment section — top/bottom dividers; handoff uses same divider rhythm as other calculator sections */
.col-adjustment-section {
  margin-top: 0;
  padding-top: var(--section-divider-gap);
  border-top: 1px solid rgba(226, 232, 240, 0.9);
  margin-bottom: 0;
  padding-bottom: var(--section-divider-gap);
  border-bottom: 1px solid rgba(226, 232, 240, 0.9);
}
.calc-content section.col-adjustment-section + .compare-assumptions-card {
  margin-top: 0;
  padding-top: var(--section-divider-gap);
}
.col-adjustment-section .section-title {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}
.col-adjustment-sub {
  font-size: var(--font-sm);
  color: var(--color-muted);
  line-height: 1.6;
  margin: 0 0 8px;
}
.col-adjustment-sub.col-section-lead {
  font-size: var(--font-sm);
  line-height: var(--line-body);
  font-weight: 400;
  color: var(--color-muted);
  margin-bottom: 8px;
}
.col-adjustment-section .col-scope-note {
  font-size: 0.8125rem;
  line-height: 1.5;
  color: #94a3b8;
  margin: 0 0 12px;
}
/* COL controls: row gap when button wraps below selects (not too tight vs overlay); gap to mask uses --mask-above-gap via .compare-states-filters */
.col-adjustment-filters.compare-states-filters {
  column-gap: 20px;
  row-gap: 6px;
}
/* Placeholder label only for baseline alignment on one row; when the button wraps, it still took a full label line — hide it */
.col-adjustment-filters .filter-field-btn:nth-child(4) label {
  display: none;
}
.col-adjustment-filters .filter-field:nth-child(1),
.col-adjustment-filters .filter-field:nth-child(2),
.col-adjustment-filters .filter-field:nth-child(3) {
  flex: 1 1 0;
  min-width: 180px;
}
.col-adjustment-filters .filter-field select {
  min-width: 160px;
  width: 100%;
  line-height: 1.6;
  box-sizing: border-box;
}
.col-adjustment-filters .filter-field label { line-height: 1.6; }
/* Compare filters: responsive grid — 4 fields + Compare; stays inside card (no horizontal overflow) */
.compare-states-section > .compare-states-filters:not(.col-adjustment-filters),
.compare-states-section > .state-compare-controls:not(.col-adjustment-filters) {
  display: grid;
  grid-template-columns:
    minmax(0, 1fr)
    minmax(0, 1fr)
    minmax(0, 0.85fr)
    minmax(0, 1.05fr)
    minmax(0, auto);
  gap: 16px;
  align-items: end;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: visible;
  padding-bottom: 0;
}
.compare-states-section > .compare-states-filters:not(.col-adjustment-filters) > .filter-field,
.compare-states-section > .compare-states-filters:not(.col-adjustment-filters) > .filter-field-btn,
.compare-states-section > .state-compare-controls:not(.col-adjustment-filters) > .filter-field,
.compare-states-section > .state-compare-controls:not(.col-adjustment-filters) > .filter-field-btn {
  min-width: 0;
  box-sizing: border-box;
}
.compare-states-section > .compare-states-filters:not(.col-adjustment-filters) .filter-field-btn:nth-child(5) label,
.compare-states-section > .state-compare-controls:not(.col-adjustment-filters) .filter-field-btn:nth-child(5) label {
  display: none;
}
.compare-states-section > .compare-states-filters:not(.col-adjustment-filters) .filter-field-btn:nth-child(5),
.compare-states-section > .state-compare-controls:not(.col-adjustment-filters) .filter-field-btn:nth-child(5) {
  margin-left: 0;
}
.compare-states-section > .compare-states-filters:not(.col-adjustment-filters) .filter-field,
.compare-states-section > .state-compare-controls:not(.col-adjustment-filters) .filter-field {
  width: 100%;
}
.compare-states-section > .compare-states-filters:not(.col-adjustment-filters) .filter-field .salary-input-with-prefix,
.compare-states-section > .state-compare-controls:not(.col-adjustment-filters) .filter-field .salary-input-with-prefix {
  width: 100%;
  max-width: 100%;
}
.compare-states-section > .compare-states-filters:not(.col-adjustment-filters) .filter-field select,
.compare-states-section > .compare-states-filters:not(.col-adjustment-filters) .filter-field input,
.compare-states-section > .state-compare-controls:not(.col-adjustment-filters) .filter-field select,
.compare-states-section > .state-compare-controls:not(.col-adjustment-filters) .filter-field input {
  width: 100%;
  max-width: 100%;
  min-width: 0;
}
.compare-states-section > .compare-states-filters:not(.col-adjustment-filters) .filter-field-btn .btn-primary,
.compare-states-section > .state-compare-controls:not(.col-adjustment-filters) .filter-field-btn .btn-primary {
  width: 100%;
  min-width: 0;
  max-width: 180px;
  justify-self: end;
}
@media (max-width: 1280px) {
  .compare-states-section > .compare-states-filters:not(.col-adjustment-filters),
  .compare-states-section > .state-compare-controls:not(.col-adjustment-filters) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .compare-states-section > .compare-states-filters:not(.col-adjustment-filters) .filter-field-btn .btn-primary,
  .compare-states-section > .state-compare-controls:not(.col-adjustment-filters) .filter-field-btn .btn-primary {
    width: 100%;
    max-width: none;
    justify-self: stretch;
  }
}
/* Insight Banner: data-type summary ? main number + compare + difference as focus. Banner?cards spacing -20%. */
.col-insight-banner {
  margin-bottom: 9px;
  padding: 12px 20px;
  line-height: 1.5;
}
.col-insight-label {
  font-size: var(--font-xs);
  font-weight: 500;
  color: var(--color-muted);
  margin-bottom: 4px;
}
.col-insight-main {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--color-title);
  font-variant-numeric: tabular-nums;
  margin-bottom: 2px;
}
.col-insight-compare {
  font-size: var(--font-sm);
  color: var(--color-body);
  margin-bottom: 5px;
}
.col-insight-diff {
  font-size: 1.05rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.col-insight-diff.col-diff-positive { color: #059669; }
.col-insight-diff.col-diff-negative { color: #b91c1c; }
.col-insight-diff.col-diff-zero { color: var(--color-muted); }
/* COL cards: same size as median/average/min wage cards; 2 standard + 1 emphasis right */
.col-summary {
  display: grid;
  grid-template-columns: 1fr 1fr 1.2fr;
  gap: 14px;
  margin-bottom: 10px;
}
.col-summary .compare-states-summary-card {
  padding: 0.75rem 1.125rem;
  min-height: 88px;
  border-radius: 10px;
  border: 1px solid #e6ebf1;
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
  box-sizing: border-box;
}
.col-summary .compare-states-summary-card > .compare-summary-label {
  min-height: 2.4rem;
  margin-bottom: 5px;
}
.col-summary .compare-states-summary-card .compare-summary-sub {
  margin-top: 2px;
}
.col-summary .compare-summary-label,
.col-summary .compare-summary-value,
.col-summary .compare-summary-sub { line-height: 1.5; }
.col-summary .col-card-standard .compare-summary-value { font-size: 1rem; font-weight: 500; }
.col-summary .col-card-emphasis .compare-summary-value {
  font-size: 1.12rem;
  font-weight: 600;
}
.col-summary .col-card-emphasis .compare-summary-value.col-diff-positive { color: #059669; }
.col-summary .col-card-emphasis .compare-summary-value.col-diff-negative { color: #b91c1c; }
.col-table-card { margin-top: 0; margin-bottom: 0; }
.col-table {
  table-layout: fixed;
  width: 100%;
}
.col-table thead th {
  white-space: nowrap;
  padding: 10px 12px;
  font-size: var(--font-xs);
  font-weight: 600;
  color: var(--color-muted);
  background: #F1F5F9;
  border-bottom: 1px solid #E2E8F0;
}
.col-table thead th:first-child { width: 4rem; min-width: 4rem; }
.col-table thead th:nth-child(2) { width: auto; min-width: 5rem; }
.col-table thead th:nth-child(3) { width: 7rem; min-width: 6rem; }
.col-table thead th:nth-child(4) { width: 5.5rem; min-width: 5rem; }
.col-table thead th:nth-child(5) { width: 10rem; min-width: 8rem; }
.col-table thead th:nth-child(6) { width: 11rem; min-width: 8rem; }
.col-table .col-th-num { text-align: right; }
.col-table .col-th-emphasis { font-weight: 700; color: var(--color-title); }
.col-table td.col-th-num:not(.col-adj-cell) { font-weight: 400; }
.col-table td.col-adj-cell { font-weight: 600; color: var(--color-title); }
.col-table.col-metric-raw_net_pay td.col-adj-cell,
.col-table.col-metric-raw td.col-adj-cell { font-weight: 400; color: var(--color-body); }
.col-table.col-metric-raw_net_pay td:nth-child(3),
.col-table.col-metric-raw td:nth-child(3) { font-weight: 600; color: var(--color-title); }
.col-table.col-metric-raw_net_pay th.col-th-emphasis,
.col-table.col-metric-raw th.col-th-emphasis { font-weight: 500; color: var(--color-muted); }
.col-table.col-metric-raw_net_pay th:nth-child(3),
.col-table.col-metric-raw th:nth-child(3) { font-weight: 700; color: var(--color-title); }
.col-table.col-metric-adjusted_gain td.col-adj-cell { font-weight: 400; color: var(--color-body); }
.col-table.col-metric-adjusted_gain td:nth-child(6) { font-weight: 600; color: var(--color-title); }
.col-table.col-metric-adjusted_gain th.col-th-emphasis { font-weight: 500; color: var(--color-muted); }
.col-table.col-metric-adjusted_gain th:nth-child(6) { font-weight: 700; color: var(--color-title); }
.col-table.col-metric-adjusted_net_pay td.col-adj-cell { font-weight: 600; color: var(--color-title); }
.col-th-sortable { cursor: pointer; user-select: none; }
.col-th-sortable:hover { color: var(--color-title); }
.col-th-sortable.sort-asc::after { content: ' \25B2'; font-size: 0.6em; opacity: 0.8; }
.col-th-sortable.sort-desc::after { content: ' \25BC'; font-size: 0.6em; opacity: 0.8; }
.col-table tbody td { padding: 10px 12px; line-height: 1.6; }
.col-table .compare-row-collapsed { display: none; }
.col-table-card.col-table-expanded .col-table .compare-row-collapsed { display: table-row; }

/* Tax Guide: accordion card — vertical spacing vs adjacent blocks uses .calc-content > .tax-guide-section.page-section */
.tax-guide-section {
  margin-top: 0;
  margin-bottom: 0;
  margin-left: auto;
  margin-right: auto;
  padding: 20px;
  max-width: 960px;
  width: 100%;
  box-sizing: border-box;
}
.tax-guide-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px 24px;
  flex-wrap: wrap;
  margin-bottom: 0;
}
.tax-guide-jump {
  font-size: var(--font-sm);
  font-weight: 500;
  color: #2563EB;
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
}
.tax-guide-jump:hover { text-decoration: underline; }
.tax-guide-h2 {
  flex: 1 1 auto;
  min-width: 0;
  font-size: var(--font-h3);
  font-weight: 600;
  color: var(--color-title);
  margin: 0;
  line-height: var(--line-tight);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.tax-guide-sub {
  font-size: var(--font-sm);
  color: var(--color-muted);
  line-height: 1.65;
  margin: 8px 0 14px;
  max-width: none;
  width: 100%;
  box-sizing: border-box;
}
@media (min-width: 768px) {
  .tax-guide-sub {
    font-size: 0.9375rem;
    line-height: 1.6;
  }
}
.tax-guide-accordion {
  display: flex;
  flex-direction: column;
}
.tax-guide-item {
  position: relative;
  background: transparent;
  border-bottom: 1px solid #eef2f7;
  margin: 0 -20px;
  padding: 10px 20px;
}
.tax-guide-accordion > .tax-guide-item:last-child { border-bottom: none; padding-bottom: 6px; }
.tax-guide-accordion > .tax-guide-item:last-child .tax-guide-item-body { padding-bottom: 5px; }
.tax-guide-item[open],
.tax-guide-methodology-item.is-open {
  border-left: 2px solid #3b82f6;
  border-top-left-radius: 4px;
  border-bottom-left-radius: 4px;
  padding-left: 16px;
}
.tax-guide-summary {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 20px;
  margin: -10px -20px 0 -20px;
  cursor: pointer;
  list-style: none;
  -webkit-tap-highlight-color: transparent;
  transition: background 0.15s ease;
}
.tax-guide-summary:hover { background: #f9fafb; }
/* Div trigger: match <summary> box (no width:100% / font: inherit — those skew flex + chevron vs rows above). */
.tax-guide-methodology-trigger {
  appearance: none;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
}
.tax-guide-summary::-webkit-details-marker { display: none; }
.tax-guide-summary-inner {
  flex: 1;
  min-width: 0;
}
.tax-guide-accordion .tax-guide-item-title {
  display: block;
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-title);
  line-height: 1.35;
  letter-spacing: normal;
}
.tax-guide-item-teaser {
  display: block;
  font-size: 14px;
  color: #64748B;
  margin-top: 4px;
  line-height: 1.4;
}
.tax-guide-chevron {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  margin-top: 2px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2364748B' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat center;
  background-size: 18px;
  transition: transform 0.15s ease;
}
.tax-guide-item[open] .tax-guide-chevron,
.tax-guide-methodology-item.is-open .tax-guide-chevron { transform: rotate(180deg); }
.tax-guide-methodology-item .tax-guide-chevron {
  margin-top: 3px;
}
.tax-guide-methodology-item:not(.is-open) .tax-guide-methodology-panel {
  display: none !important;
}
.tax-guide-methodology-item.is-open .tax-guide-methodology-panel {
  display: block !important;
}
/* How We Estimate Taxes Here — hierarchy within this accordion item only */
.tax-guide-methodology-item .tax-guide-methodology-trigger .tax-guide-item-teaser {
  font-size: 0.8125rem;
  color: #94a3b8;
  font-weight: 400;
  line-height: 1.38;
}
.tax-guide-methodology-panel.tax-guide-item-body {
  max-width: 52em;
}
.tax-guide-methodology-panel .tax-guide-methodology-lead {
  font-size: 0.9375rem;
  line-height: 1.58;
  color: #475569;
  margin: 0 0 11px;
  font-weight: 400;
}
.tax-guide-methodology-panel .tax-guide-methodology-bullets {
  margin: 0;
  padding-left: 1.15em;
  font-size: 0.875rem;
  line-height: 1.48;
  color: #64748b;
}
.tax-guide-methodology-panel .tax-guide-methodology-bullets li {
  margin-bottom: 7px;
}
.tax-guide-methodology-panel .tax-guide-methodology-bullets li:last-child {
  margin-bottom: 0;
}
.tax-guide-methodology-panel .tax-guide-methodology-bullets strong {
  font-weight: 600;
  color: #334155;
}
.tax-guide-methodology-reference {
  font-size: 0.75rem;
  line-height: 1.48;
  color: #94a3b8;
  margin: 11px 0 0;
  font-weight: 400;
  max-width: 50em;
}
.tax-guide-methodology-reference strong {
  font-weight: 600;
  color: #64748b;
}
.tax-guide-item-body {
  padding: 0 0 10px;
  line-height: 1.55;
}
.tax-guide-bullets {
  margin: 0;
  padding-left: 20px;
  font-size: 15px;
  color: #334155;
  line-height: 1.55;
}
.tax-guide-bullets li {
  margin-bottom: 5px;
}
.tax-guide-bullets li:last-child { margin-bottom: 0; }
.tax-guide-bullets strong { font-weight: 600; color: #1e293b; }
.tax-guide-footnote {
  font-size: 13px;
  color: #6b7280;
  line-height: 1.45;
  margin: 0;
  padding: 6px 0 12px;
  border-top: 1px solid #e5e7eb;
}
.coverage-updates {
  font-size: 13px;
  color: #6b7280;
  line-height: 1.45;
  margin: 12px 0 0;
  padding: 10px 0 3px;
  border-top: 1px solid #e5e7eb;
}
.coverage-updates-title {
  margin: 0 0 7px;
  font-weight: 600;
  font-size: 13px;
  color: #475569;
}
.coverage-updates-subtitle {
  margin: 12px 0 6px;
  font-weight: 600;
  font-size: 13px;
  color: #475569;
}
.coverage-updates .coverage-updates-list + .coverage-updates-list {
  margin-top: 10px;
}
.coverage-updates-list {
  margin: 0;
  padding-left: 18px;
}
.coverage-updates-list li {
  margin-bottom: 4px;
}
.coverage-updates-list li:last-child {
  margin-bottom: 0;
}
.compare-seo-h2 {
  font-size: var(--font-h3);
  font-weight: 600;
  color: var(--color-title);
  margin: 0 0 16px;
  line-height: var(--line-tight);
}
.compare-seo-h3 {
  font-size: var(--font-h3);
  font-weight: 600;
  color: var(--color-title);
  margin: 24px 0 8px;
  line-height: var(--line-tight);
}
.compare-seo-lead {
  font-size: var(--font-sm);
  color: var(--color-muted);
  line-height: var(--line-body);
  margin: 0 0 16px;
}
.compare-states-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px 16px;
}
.compare-states-grid a {
  font-size: var(--font-sm);
  color: #2563EB;
  text-decoration: none;
  font-weight: 500;
}
.compare-states-grid a:hover {
  text-decoration: underline;
}
/* Explore: grid + toggle as one lightweight cluster (no card) */
.compare-states-explore .compare-states-links-cluster {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  margin-top: 2px;
}
.compare-states-explore .compare-states-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 5px 14px;
  justify-items: stretch;
  align-items: start;
  width: 100%;
}
.compare-states-explore .compare-states-grid .state-link {
  display: block;
  min-width: 0;
  padding: 4px 4px 4px 2px;
  line-height: 1.35;
  text-align: left;
  box-sizing: border-box;
  white-space: nowrap;
}
.compare-states-explore .compare-states-grid:not(.expanded) .state-link:nth-child(n+11) {
  display: none;
}
.compare-states-explore .compare-states-grid.expanded .state-link:nth-child(n+11) {
  display: block;
}
.compare-states-explore .compare-states-links-cluster .state-links-toggle {
  margin-top: 8px;
  align-self: flex-start;
  padding-left: 2px;
}
.compare-faq-item p {
  font-size: var(--font-sm);
  color: var(--color-body);
  line-height: 1.6;
  margin: 0 0 16px;
}
.compare-states-faq .compare-seo-h2 { margin-bottom: 12px; }
/* FAQ: question row one step below section title (not body/muted gray) */
.compare-states-faq .compare-faq-item summary {
  color: #334155;
}
.compare-states-faq .compare-faq-item summary::after {
  color: #475569;
}
.compare-faq-item {
  border-bottom: 1px solid #e5e7eb;
  padding: 9px 0;
}
.compare-faq-item:last-child { border-bottom: none; }
.compare-faq-item summary {
  font-size: var(--font-sm);
  font-weight: 600;
  color: var(--color-title);
  cursor: pointer;
  list-style: none;
  padding-right: 24px;
  position: relative;
}
.compare-faq-item summary::-webkit-details-marker { display: none; }
.compare-faq-item summary::after {
  content: '+';
  position: absolute;
  right: 0;
  top: 0;
  font-size: 1.1em;
  color: var(--color-muted);
}
/* [open] on <details> is the source of truth for expanded state */
.compare-faq-item[open] summary::after { content: '-'; }
.compare-faq-item p {
  margin-top: 8px;
  margin-bottom: 0;
  padding-left: 0;
}
.faq-methodology-link {
  font-size: var(--font-xs);
  color: #2563EB;
  text-decoration: none;
  white-space: nowrap;
}
.faq-methodology-link:hover { text-decoration: underline; }
@media (max-width: 768px) {
  .compare-states-grid { grid-template-columns: repeat(3, 1fr); }
  .compare-states-explore .compare-states-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 480px) {
  .compare-states-grid { grid-template-columns: repeat(2, 1fr); }
  .compare-states-explore .compare-states-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.calc-sidebar, .calc-content, .calc-layout {
  overflow: visible;
  height: auto;
  max-height: none;
}
@media (max-width: 1024px) {
  .calc-layout {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .calc-sidebar,
  .calc-content {
    grid-column: 1;
  }
  .calc-sidebar {
    width: 100%;
    position: static;
  }
  .calc-page {
    padding: 24px 1rem 48px;
  }
}
@media (max-width: 480px) {
  .page-title { white-space: normal; }
}
/* === ???????? .calc-sidebar ????????? results? === */
.calc-sidebar .calculator-card h2 {
  font-size: 15px;
  font-weight: var(--fw-semi);
  margin: 0 0 var(--gap-1);
  color: #0f172a;
  line-height: var(--lh-body);
  white-space: normal;
  overflow: visible;
  text-overflow: unset;
}
.calc-sidebar .field-group label,
.calc-sidebar .input-group label {
  font-size: 13px;
  font-weight: var(--fw-semi);
  margin: 0 0 6px;
  color: #334155;
}
.calc-sidebar .input-group.field-group > label[for] {
  font-size: 15px;
  font-weight: var(--fw-semi);
  margin: 0 0 var(--gap-1);
  color: #1f2937;
  line-height: var(--lh-body);
}
.calc-sidebar .salary-history-block + p,
.calc-sidebar .meta-text,
.calc-sidebar [class*="help"] {
  font-size: var(--fs-muted);
  line-height: var(--lh-body);
  color: #64748b;
}
.calc-sidebar input,
.calc-sidebar select,
.calc-sidebar .currency-salary-input input {
  height: 42px;
  padding: 0 12px;
  border-radius: 10px;
  box-sizing: border-box;
  width: 100%;
  border: 1px solid #d1d5db;
  background: #fff;
}
.calc-sidebar input:focus,
.calc-sidebar select:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}
.calc-sidebar .currency-salary-input {
  border-radius: 10px;
  overflow: hidden;
}
.calc-sidebar .salary-input-with-prefix {
  display: flex;
  align-items: center;
  height: 42px;
  box-sizing: border-box;
  border: 1px solid #d1d5db;
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
}
.calc-sidebar .salary-input-with-prefix .salary-prefix {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  align-self: stretch;
  padding: 0 12px;
  font-size: var(--fs-body);
  font-weight: 500;
  color: #6b7280;
  background: #f9fafb;
  border-right: 1px solid #e5e7eb;
}
.calc-sidebar .salary-input-with-prefix input {
  flex: 1;
  min-width: 0;
  min-height: 0;
  height: 100%;
  align-self: stretch;
  padding: 0 12px;
  border: none;
  border-radius: 0;
  box-shadow: none;
}
/* Amount input box model only — filled-value typography from gst-form-control.css */
.calc-sidebar input.cn-amount-input {
  box-sizing: border-box;
  height: 42px;
}
.calc-sidebar .salary-input-with-prefix .cn-amount-input {
  height: auto;
}
.calc-sidebar .salary-input-with-prefix input#monthlyGross::placeholder,
.calc-sidebar .salary-input-with-prefix input::placeholder,
.calc-sidebar input.cn-amount-input::placeholder,
.calc-sidebar .salary-input-with-prefix .cn-amount-input::placeholder,
.calc-sidebar .salary-input-with-prefix.amount-input .cn-amount-input::placeholder,
.calc-sidebar .amount-input .cn-amount-input::placeholder,
.calc-sidebar .amount-input input::placeholder,
.calc-sidebar #manualEmployeeContributions::placeholder,
.calc-sidebar .cn-input-with-suffix .cn-amount-input::placeholder,
.calc-sidebar .cn-add-deductions input.cn-amount-input::placeholder {
  color: var(--field-placeholder-color);
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: var(--field-placeholder-font-size);
  font-weight: var(--field-placeholder-font-weight);
  font-variant-numeric: lining-nums tabular-nums;
  font-feature-settings: "lnum" 1, "tnum" 1, "kern" 1;
  letter-spacing: var(--field-placeholder-letter-spacing);
  line-height: var(--field-placeholder-line-height);
  opacity: 1;
}
.calc-sidebar .cn-amount-input::-webkit-input-placeholder,
.calc-sidebar .salary-input-with-prefix input::-webkit-input-placeholder,
.calc-sidebar .salary-input-with-prefix .cn-amount-input::-webkit-input-placeholder,
.calc-sidebar .salary-input-with-prefix input#monthlyGross::-webkit-input-placeholder,
.calc-sidebar .amount-input input::-webkit-input-placeholder,
.calc-sidebar #manualEmployeeContributions::-webkit-input-placeholder,
.calc-sidebar .cn-input-with-suffix .cn-amount-input::-webkit-input-placeholder,
.calc-sidebar .cn-add-deductions input.cn-amount-input::-webkit-input-placeholder {
  color: var(--field-placeholder-color);
  -webkit-text-fill-color: var(--field-placeholder-color);
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: var(--field-placeholder-font-size);
  font-weight: var(--field-placeholder-font-weight);
  line-height: var(--field-placeholder-line-height);
  letter-spacing: var(--field-placeholder-letter-spacing);
  opacity: 1;
}
.calc-sidebar .cn-amount-input:-webkit-autofill,
.calc-sidebar .salary-input-with-prefix .cn-amount-input:-webkit-autofill,
.calc-sidebar .cn-amount-input:-webkit-autofill:hover,
.calc-sidebar .salary-input-with-prefix .cn-amount-input:-webkit-autofill:hover,
.calc-sidebar .cn-amount-input:-webkit-autofill:focus,
.calc-sidebar .salary-input-with-prefix .cn-amount-input:-webkit-autofill:focus {
  -webkit-text-fill-color: #1f2937;
  -webkit-box-shadow: 0 0 0 1000px #fff inset;
  transition: background-color 99999s ease-out;
}
/* Gross Income #monthlyGross: placeholder uses select-like text rendering, not numeral styling */
.calc-sidebar .salary-input-with-prefix input#monthlyGross:placeholder-shown {
  font-variant-numeric: normal;
  font-feature-settings: normal;
  text-rendering: auto;
  -webkit-font-smoothing: auto;
}
.calc-sidebar .salary-input-with-prefix input#monthlyGross::placeholder,
.calc-sidebar .salary-input-with-prefix input#monthlyGross::-webkit-input-placeholder {
  color: var(--form-placeholder-color);
  -webkit-text-fill-color: var(--form-placeholder-color);
  font-family: var(--form-placeholder-font-family);
  font-size: var(--form-placeholder-font-size);
  font-weight: var(--form-placeholder-font-weight);
  line-height: var(--form-placeholder-line-height);
  letter-spacing: var(--form-placeholder-letter-spacing);
  opacity: 1;
  font-variant-numeric: normal;
  font-feature-settings: normal;
  text-rendering: auto;
  -webkit-font-smoothing: auto;
}
/* Unified empty-state placeholder typography: China main calculator initial fields */
.calc-sidebar select#period:invalid,
.calc-sidebar select#period.placeholder-state,
.calc-sidebar select#cn-tax-year:invalid,
.calc-sidebar select#cn-tax-year.placeholder-state,
.calc-sidebar select#bonusMode:invalid,
.calc-sidebar select#bonusMode.placeholder-state,
.calc-sidebar select#provinceCode:invalid,
.calc-sidebar select#provinceCode.placeholder-state,
.calc-sidebar select#cityCode:invalid,
.calc-sidebar select#cityCode.placeholder-state,
.calc-sidebar select#salaryMode:invalid,
.calc-sidebar select#salaryMode.placeholder-state,
.calc-sidebar select#startMonth:invalid,
.calc-sidebar select#startMonth.placeholder-state,
.calc-sidebar select#calendarMonth:invalid,
.calc-sidebar select#calendarMonth.placeholder-state,
.calc-sidebar select#deductionMonthMode:invalid,
.calc-sidebar select#deductionMonthMode.placeholder-state,
.calc-sidebar select#contributionMethod:invalid,
.calc-sidebar select#contributionMethod.placeholder-state,
.calc-sidebar select#medicalPlanCode:invalid,
.calc-sidebar select#medicalPlanCode.placeholder-state {
  color: var(--form-placeholder-color);
  font-family: var(--form-placeholder-font-family);
  font-size: var(--form-placeholder-font-size);
  font-weight: var(--form-placeholder-font-weight);
  line-height: var(--form-placeholder-line-height);
  letter-spacing: var(--form-placeholder-letter-spacing);
  opacity: 1;
}
.calc-sidebar .sidebar-actions {
  margin-top: 0;
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  gap: 0;
  align-items: stretch;
}
.calc-sidebar .sidebar-actions .input-group.field-group.checkbox-row-wrap {
  flex: 1 1 100%;
  width: 100%;
  min-width: 100%;
  margin: 0 0 10px;
}
.calc-sidebar .sidebar-actions > .btn-primary,
.calc-sidebar .sidebar-actions > .btn-secondary {
  flex: none;
  min-width: 0;
  width: 100%;
  min-height: 44px;
  height: auto;
  padding: 6px 14px;
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-weight: 700;
  border-radius: 12px;
}
.calc-sidebar .sidebar-actions > .btn-primary {
  margin-bottom: 14px;
  font-size: 18px;
  line-height: 1;
}
.calc-sidebar .sidebar-actions > .btn-secondary {
  font-size: 16px;
  line-height: 1;
}
.calc-sidebar .sidebar-actions > .btn-primary .btn-icon--calc {
  width: 24px;
  height: 24px;
}
.calc-sidebar .sidebar-actions > .btn-secondary .btn-icon {
  width: 20px;
  height: 20px;
}
/* Default: enabled state. Disabled state only via [disabled] below. */
.calc-sidebar .sidebar-actions .btn-primary {
  background: #2563eb;
  color: #fff;
  border: 1px solid #2563eb;
  border-color: #2563eb;
  box-shadow: 0 1px 1px rgba(37, 99, 235, 0.16);
  cursor: pointer;
}
/* Disabled: same blue + shadow as reference; only interaction differs (HTML disabled + cursor). */
.calc-sidebar .sidebar-actions .btn-primary[disabled] {
  cursor: not-allowed;
  opacity: 1;
  background: #2563eb;
  color: #fff;
  border: 1px solid #2563eb;
  border-color: #2563eb;
  box-shadow: 0 1px 1px rgba(37, 99, 235, 0.16);
}
.calc-sidebar .sidebar-actions .btn-primary:not([disabled]):hover {
  background: #1d4ed8;
  border-color: #1d4ed8;
  box-shadow: 0 1px 3px rgba(37, 99, 235, 0.24);
  cursor: pointer;
}
.calc-sidebar .sidebar-actions .btn-primary:not([disabled]):active {
  background: #1e40af;
  border-color: #1e40af;
  box-shadow: 0 0 0 1px rgba(37, 99, 235, 0.3);
}
.calc-sidebar .sidebar-actions .btn-secondary {
  background: #f3f4f6;
  color: #667085;
  border: 1px solid #d8dde6;
  box-shadow: 0 1px 1px rgba(15, 23, 42, 0.04);
  cursor: pointer;
}
.calc-sidebar .sidebar-actions .btn-secondary:hover {
  background: #eef0f4;
  border-color: #cbd5e1;
  color: #5c6575;
}
.calc-sidebar .sidebar-actions .btn-secondary:active {
  background: #e8eaef;
  border-color: #c5cad4;
}
.calc-sidebar .sidebar-actions button:focus-visible {
  outline: 2px solid #2563eb;
  outline-offset: 2px;
}
.calc-sidebar .salary-history-block {
  margin-top: 17px;
}
.calc-sidebar .history-disclaimer {
  margin-top: 16px;
}
.secure-private-card {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: 12px;
  background: rgba(248, 250, 252, 0.9);
  border: 1px solid rgba(226, 232, 240, 0.85);
  box-shadow: none;
  box-sizing: border-box;
  max-width: 100%;
}
.secure-private-card__icon {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  color: #0f172a;
  margin-top: 1px;
}
.secure-private-card__icon svg {
  width: 18px;
  height: 18px;
  display: block;
}
.secure-private-card__content {
  flex: 1;
  min-width: 0;
}
.secure-private-card__title {
  margin: 0 0 2px;
  font-size: 0.9rem;
  line-height: 1.25;
  font-weight: 700;
  color: #0f172a;
}
.secure-private-card__text {
  margin: 0;
  font-size: 0.8125rem;
  line-height: 1.4;
  color: #475569;
}
@media (max-width: 480px) {
  .secure-private-card {
    padding: 12px 14px;
    gap: 9px;
  }
}
.calc-sidebar .calculator-card,
.calc-sidebar .salary-input-box { min-width: 0; max-width: 100%; }
.calc-sidebar .checkbox-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  cursor: pointer;
}
.calc-sidebar .checkbox-row input[type="checkbox"] {
  width: 17px;
  height: 17px;
  flex-shrink: 0;
  margin: 0;
  cursor: pointer;
  accent-color: #2563eb;
}
.calc-sidebar .checkbox-row input[type="checkbox"]:focus-visible {
  outline: 2px solid rgba(37, 99, 235, 0.2);
  outline-offset: 2px;
}
.calc-sidebar .checkbox-row .checkbox-label {
  flex: 1;
  min-width: 0;
  font-size: 13px;
  font-weight: var(--fw-semi);
  color: #334155;
  line-height: var(--lh-body);
}
@media (max-width: 380px) {
  .calc-sidebar .checkbox-row .checkbox-label { white-space: normal; }
}
/* === ??????? token?--fs-body / --fw-semi???? padding/?? === */
.results-row,
.results-cell-label,
.results-row-title { font-size: var(--fs-body); font-weight: var(--fw-semi); }
.results-row-item .results-cell-label { font-weight: 500; }
.results-report .results-intro { font-size: 0.875rem; }
.results-meta { font-size: var(--fs-muted); line-height: var(--lh-body); }
.card { padding: 20px 24px; border-radius: 16px; box-shadow: 0 1px 3px rgba(0,0,0,.06), 0 2px 8px rgba(0,0,0,.04); }
/* LAST in stylesheet: Salary Results — must beat .card and .results-header; use !important */
.calc-content .results-report.card {
  padding: 0 !important;
}
.calc-content .results-report .results-header {
  margin: 0 !important;
  padding: 0 !important;
  display: flow-root;
}
.calc-content .results-report .results-intro {
  margin: 0 0 10px !important;
  padding: 0 !important;
  line-height: 1.42;
}
.calc-content .results-report:has(#salary-results-wrap.results-ready) .results-intro,
.calc-content .results-report:has(#cn-results-wrap.results-ready) .results-intro {
  margin: 0 0 10px !important;
}
.results-launch-trust {
  margin: 0 0 10px;
  font-size: 0.875rem;
  line-height: 1.45;
  color: #64748b;
  width: 100%;
  max-width: none;
  box-sizing: border-box;
}
.gst-state-disclosure:not([hidden]) {
  margin: 8px 0 0;
  font-size: 0.8125rem;
  line-height: 1.45;
  color: #475569;
  padding: 8px 10px;
  border-radius: 6px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  width: 100%;
  max-width: none;
  box-sizing: border-box;
  white-space: pre-line;
}
.compare-section-lead {
  margin: 0 0 8px;
  font-size: var(--font-sm);
  line-height: var(--line-body);
  font-weight: 400;
  color: var(--color-muted);
}
.col-section-lead {
  margin: 0 0 8px;
  font-size: var(--font-sm);
  line-height: var(--line-body);
  font-weight: 400;
  color: var(--color-muted);
}
.compare-launch-note,
.compare-top10-note {
  margin: 6px 0 0;
  font-size: 0.8125rem;
  line-height: 1.5;
  color: #94a3b8;
}
.compare-states-chart-card .compare-top10-note {
  margin-top: 4px;
  margin-bottom: 0;
  font-size: 0.75rem;
  line-height: 1.45;
  color: rgba(148, 163, 184, 0.98);
}
/* Compare / COL: reviewed + meta lines — same family */
.compare-states-card .gst-module-footnote#gst-compare-updated-line,
.col-adjustment-section .gst-module-footnote#gst-col-updated-line {
  font-size: 0.7rem;
  color: rgba(100, 116, 139, 0.82);
  margin-top: 8px;
  letter-spacing: 0.01em;
}
.gst-col-footer-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.25rem 0.5rem;
  font-size: 0.7rem;
  line-height: 1.45;
  color: rgba(100, 116, 139, 0.78);
  margin-top: 4px !important;
  padding-top: 8px;
  border-top: 1px solid #f1f5f9;
}
.gst-col-footer-row .gst-inline-sources--empty {
  display: none;
}
.gst-col-footer-row--has-links .gst-inline-sources:not(.gst-inline-sources--empty) {
  margin-left: 0;
}

/* === Take-home pay estimate: reference scale (typography + components; Results card only) === */
.calc-content .results-report .results-title {
  margin-bottom: 6px;
}
.calc-content .results-report .calc-empty-state-wrap.result-mask-cluster--results {
  margin-top: 0;
}
.calc-content #salary-results-wrap.results-ready .results-meta-in-wrap,
.calc-content #cn-results-wrap.results-ready .results-meta-in-wrap {
  margin-top: 2px !important;
}
.calc-content .results-report .results-meta {
  gap: 8px;
  flex-wrap: wrap;
}
/* (1) Meta pills — restore comfortable scale */
.calc-content .results-report .chip {
  padding: 5px 10px;
  min-height: 24px;
  border: 1px solid #e5e7eb;
  background: #fff;
  font-weight: 500;
  font-size: 0.875rem;
  color: #475569;
}
.calc-content .results-report .chip strong {
  color: #334155;
  font-weight: 600;
  margin-right: 0.35em;
}
.cn-results-jump-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin: 0 0 12px;
  padding: 0;
}
.cn-results-jump-link {
  font-size: 0.875rem;
  font-weight: 500;
  color: #2563eb;
  text-decoration: none;
  line-height: 1.4;
}
.cn-results-jump-link:hover {
  text-decoration: underline;
}
.cn-results-jump-link:focus-visible {
  outline: 2px solid #2563eb;
  outline-offset: 2px;
  border-radius: 2px;
}
.cn-results-label-with-info {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}
.calc-content .results-report .results-content {
  margin-top: 10px;
  padding: 0;
  background: transparent;
  border: none;
  border-radius: 0;
  box-shadow: none;
}
/* (2) Tax due / + Year + toggle — primary header row scale */
.calc-content .results-report #tax-due-header-row {
  padding: 2px 0 4px;
  align-items: center;
}
.calc-content .results-report .results-cell-label-with-switch {
  gap: 8px;
  align-items: center;
}
.calc-content .results-report #tax-due-header-row .results-row-title {
  margin-left: 0;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--color-title, #0f172a);
}
.calc-content .results-report .results-period-select {
  padding: 0.35rem 0.55rem;
  font-size: 0.8125rem;
  line-height: 1.25;
  min-height: 1.75rem;
  border-radius: 6px;
  border: 1px solid #d1d5db;
  background: #fff;
}
.calc-content .results-report .results-table {
  gap: 7px;
}
/* (3) Tax list — steady list rhythm */
.calc-content .results-report .results-table .results-row {
  font-size: 0.875rem;
  line-height: 1.4;
  min-height: 24px;
}
.calc-content .results-report .results-row-total .results-cell-value {
  font-weight: 700;
  color: #111827;
  font-size: 0.9375rem;
}
.calc-content .results-report .results-row-item .results-cell-label {
  font-weight: 500;
  color: #4b5563;
}
.calc-content .results-report .results-row-item .results-cell-value {
  font-weight: 600;
  color: #64748b;
}
.calc-content .results-report .tax-toggle-row {
  padding-top: 2px;
  padding-left: 12px;
}
.calc-content .results-report .tax-toggle {
  font-size: 0.8125rem;
  font-weight: 400;
  color: #6b7280;
}
.calc-content .results-report .tax-optional .tax-row .results-cell-label {
  color: #5f6b78;
}
.calc-content .results-report .tax-optional .tax-row .results-cell-value {
  color: #6b7280;
}
.calc-content .results-report .tax-optional-footnote {
  color: #6b7280;
  font-weight: 400;
  font-size: 11.5px;
  line-height: 1.45;
  white-space: nowrap;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.calc-content .results-report .tax-optional-footnote-row {
  display: block;
}
/* (1) Ensure optional block stays hidden when [hidden] (restore bug fixed in JS) */
.calc-content .results-report #tax-optional-panel[hidden] {
  display: none !important;
}
.calc-content .results-report .results-divider {
  display: block;
  border-top: 1px solid #e5e7eb;
  margin: 6px 0;
  opacity: 1;
}
/* (5) After tax bar — height + type scale */
.calc-content .results-report .results-row-after {
  margin-top: 0;
  margin-left: 4px;
  margin-right: 0;
  padding: 10px 0 10px 12px;
  background: #f7fdf9 !important;
  border-radius: 8px;
  border: none !important;
  box-shadow: none;
}
.calc-content .results-report .results-row-after .results-cell-label-with-period {
  gap: 0.5rem;
  align-items: center;
}
.calc-content .results-report .results-row-after .results-row-title {
  font-size: 0.9375rem;
}
.calc-content .results-report .results-row-after .results-cell-label {
  color: #065f46;
  font-weight: 600;
}
.calc-content .results-report .results-row-after .results-cell-value {
  color: #047857;
  font-weight: 700;
  font-size: 1rem;
}
/* (6–7) Chart block: strong heading; donut + legend at reference scale */
.calc-content .results-report .chart-block {
  text-align: center;
  margin-top: 10px;
  padding-top: 10px;
  padding-bottom: 4px;
  border-top: 1px solid #e5e7eb;
  background: transparent;
}
/* Match US Gross Pay Breakdown (.chart-calculation-note) typography + tip alignment */
.calc-content .results-report .chart-block .section-title.cn-chart-heading,
.calc-content .results-report .cn-chart-heading {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: 0 auto 15px;
  padding: 0;
  max-width: 100%;
  width: auto;
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: 0.875rem !important;
  font-weight: 600 !important;
  color: #475569 !important;
  line-height: 1.4 !important;
  letter-spacing: normal;
  text-align: center;
  white-space: nowrap;
  opacity: 1 !important;
}
.calc-content .results-report .cn-chart-heading .gst-info-tip {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  vertical-align: middle;
}
.calc-content .results-report .cn-chart-heading .gst-info-tip__btn {
  width: 1.125rem;
  height: 1.125rem;
  color: #6b7280;
}
.calc-content .results-report .cn-chart-heading .gst-info-tip__btn svg {
  width: 14px;
  height: 14px;
}
.calc-content .results-report .chart-calculation-note {
  text-align: center !important;
  margin: 0 auto 15px !important;
  padding-left: 0 !important;
  max-width: 100% !important;
  width: 100%;
  font-size: 0.8125rem !important;
  font-weight: 400 !important;
  color: #7d8fa9 !important;
  line-height: 1.45 !important;
  opacity: 1 !important;
  white-space: nowrap;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  box-sizing: border-box;
}
.calc-content .results-report .results-donut-wrap {
  width: 118px;
  height: 118px;
  margin: 3px auto 7px;
}
.calc-content .results-report .results-donut-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.2rem;
  max-width: 6.5rem;
  text-align: center;
}
.calc-content .results-report .results-donut-text {
  font-size: 1.35rem;
  line-height: 1.15;
  white-space: nowrap;
}
.calc-content .results-report .results-donut-text.sub {
  display: block;
  margin-top: 0;
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.25;
  white-space: nowrap;
  color: #64748b;
}
.calc-content .results-report .chart-legend.results-donut-legend {
  margin-top: 7px;
  text-align: center;
  font-size: 0.75rem;
}
.calc-content .results-report .results-breakdown-disclaimer {
  text-align: left;
  margin: 14px 0 0;
  padding: 0;
  max-width: none;
  font-size: 12.5px;
  color: #6b7280;
  line-height: 1.45;
}

/* Align teal / orange section icons with Take-home pay estimate title row */
.calc-content .results-report .results-title,
.calc-content .wage-comparison-section > .section-title {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-left: 0;
  padding-left: 0;
}
.calc-content .wage-comparison-section > .section-title {
  margin-top: 0;
  margin-bottom: 8px;
}
.calc-content .wage-comparison-section > .label {
  margin: 0 0 12px;
  line-height: 1.5;
}
.calc-content .wage-comparison-section .wages-filters {
  margin-top: 4px;
  margin-bottom: var(--section-control-to-mask-gap);
  max-width: 14rem;
}
.calc-content .wage-comparison-section .salary-primary {
  padding: 1rem 1.2rem;
  margin-bottom: 16px;
  border-radius: 10px;
  background: rgba(240, 249, 255, 0.65);
  border: 1px solid #e8f4fb;
  border-left: 4px solid #3b82f6;
}
.calc-content .wage-comparison-section .salary-primary-label {
  color: #6d7a8a;
}
.calc-content .wage-comparison-section .salary-primary-value {
  font-size: 1.25rem;
}
.calc-content .wage-comparison-section .wage-meta-text {
  margin: 0 0 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid #e5e7eb;
  line-height: 1.45;
  color: #64748b;
}
.calc-content .wage-comparison-section .percentile-block {
  margin-top: 0;
  margin-bottom: 8px;
  padding: 0;
}
.calc-content .wage-comparison-section .percentile-block .percentile-label {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: none;
  color: #64748b;
  margin-bottom: 0.5rem;
  line-height: 1.35;
}
.calc-content .wage-comparison-section .percentile-block .percentile-value {
  font-size: 0.9375rem;
  font-weight: 700;
  gap: 0.28rem;
  margin-bottom: 0.15rem;
}
.calc-content .wage-comparison-section .percentile-block .percentile-value::before {
  opacity: 0.38;
  width: 18px;
  height: 18px;
  min-width: 18px;
}
.calc-content .wage-comparison-section .percentile-block .percentile-value-inner {
  margin-right: -0.04em;
}
.calc-content .wage-comparison-section .percentile-block .percentile-word {
  font-weight: 500;
  color: #8b95a3;
  margin-left: 0.08em;
}
.calc-content .wage-comparison-section .percentile-block .percentile-value #percentile-value {
  font-size: 0.9375rem;
  font-weight: 700;
  color: #0f172a;
  letter-spacing: -0.025em;
}
.calc-content .wage-comparison-section .percentile-block .percentile-value #percentile-ordinal {
  font-weight: 700;
  color: #1e293b;
}
.calc-content .wage-comparison-section .percentile-block .percentile-desc-industry:empty {
  display: none;
}
.calc-content .wage-comparison-section .percentile-block #percentile-desc-tail-end:empty {
  display: none;
}
.calc-content .wage-comparison-section .percentile-block .percentile-desc {
  margin-top: 0.5rem;
  color: #7d8a99;
  font-size: 0.8125rem;
  font-weight: 400;
  line-height: 1.45;
}
.calc-content .wage-comparison-section .percentile-credibility {
  margin-top: 6px;
  font-size: 0.65rem;
  color: #94a3b8;
  line-height: 1.4;
}
.calc-content .wage-comparison-section .wage-cards {
  gap: 14px;
  margin-top: 2px;
}
.calc-content .wage-comparison-section .wage-card {
  padding: 1rem 1.125rem;
  min-height: 100px;
  border-radius: 10px;
}
.calc-content .wage-comparison-section .wage-card-badge {
  top: 0.5rem;
  right: 0.55rem;
  font-size: 7px;
  font-weight: 600;
  color: #64748b;
  background: #f1f5f9;
  padding: 0.08rem 0.26rem;
  border-radius: 3px;
  border: 1px solid #e2e8f0;
  line-height: 1.25;
  letter-spacing: 0.02em;
}
.calc-content .wage-comparison-section .wage-card-desc {
  color: #8b96a3;
}
.calc-content .wage-comparison-section .benchmarks-disclaimer {
  margin-top: var(--section-after-mask-gap);
  margin-bottom: 0;
  color: #8892a3;
}
.calc-content .wage-comparison-section .wage-data-source {
  margin-top: var(--gap-2);
}
.calc-content .wage-comparison-section .wage-data-updated {
  margin-top: 4px;
  margin-bottom: 0;
  color: #94a3b8;
}


/* --- style block --- */


      .salary-input-box {
        margin-left: 0;
        width: 100%;
        max-width: 100%;
        min-width: 0;
        background-color: #f8fafc;
        padding: 20px 24px;
        border-radius: 16px;
        font-family: inherit;
        font-size: 14px;
        box-sizing: border-box;
      }
      .salary-panel {
        margin-top: 20px;
        width: 100%;
        max-width: 100%;
        min-width: 0;
        box-sizing: border-box;
      }
      .input-group {
        margin-bottom: 14px;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
      }
      .input-group label {
        display: block;
        margin-bottom: 6px;
        font-weight: 500;
        text-align: left;
      }
      .inline-select select,
      .currency-salary-input input,
      .input-group select {
        width: 100%;
        box-sizing: border-box;
      }
      .currency-salary-input {
        display: flex;
        align-items: center;
        border: 1px solid #ccc;
        border-radius: 6px;
        overflow: hidden;
        width: 100%;
      }
      .currency-label {
        background: #eaf1f5;
        padding: 10px 12px;
        font-weight: 500;
        font-size: 14px;
        white-space: nowrap;
      }
      .currency-salary-input input {
        flex: 1;
        padding: 10px 12px;
        border: none;
        font-size: 14px;
      }
      .salary-input-with-prefix {
        display: flex;
        align-items: center;
        border: 1px solid #ccc;
        border-radius: 6px;
        overflow: hidden;
        width: 100%;
        background: #fff;
      }
      .salary-input-with-prefix .salary-prefix {
        padding: 10px 12px;
        font-weight: 500;
        font-size: 14px;
        color: #6b7280;
        background: #f9fafb;
        border-right: 1px solid #e5e7eb;
      }
      .salary-input-with-prefix input {
        flex: 1;
        padding: 10px 12px;
        border: none;
        font-size: 14px;
        min-width: 0;
      }
      .gross-income-heading { display: flex; align-items: center; gap: 0.35rem; }
      .gross-income-info {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        color: #6b7280;
        cursor: help;
        font-weight: 400;
        vertical-align: middle;
      }
      .gross-income-info svg {
        display: block;
        width: 16px;
        height: 16px;
        flex-shrink: 0;
      }


/* --- style block --- */


              /* Local-tax pilots (IN / MD / MI): unified rate line vs. disclaimer hierarchy */
              .gst-local-rate-line.gst-local-rate-hint {
                display: block;
                margin: 0.375rem 0 0 0;
                padding: 0;
                font-size: 0.875rem;
                font-weight: 500;
                line-height: 1.4;
                color: #334155;
              }
              .gst-local-tax-disclaimer {
                margin-top: 0.5rem;
                font-size: 0.8125rem;
                line-height: 1.45;
                color: #64748b;
              }


/* --- Recent Calculations card chrome: gst-recent-calculations.css --- */
/* China recall pop — same lift/shadow tokens as U.S. hover; JS toggles for keyboard + replay */
.recent-calc-card.recent-calc-card--pop {
  border-color: #cbd5e1;
  box-shadow: 0 3px 10px rgba(15,23,42,0.09);
  transform: translateY(-1px);
}
.recent-calc-card--latest.recent-calc-card--pop,
.recent-calc-card--older.recent-calc-card--pop {
  border-color: #cbd5e1;
  box-shadow: 0 3px 10px rgba(15,23,42,0.09);
  background: #fff;
  opacity: 1;
}


/* --- China page overrides (minimal; template CSS above from united-states.html) --- */
/* Full-height shell: grow main so footer sits at viewport bottom when content is short */
.app-layout > .calc-page {
  width: 100%;
  max-width: 1520px;
  flex: 1 0 auto;
}
.calc-layout {
  width: 100%;
}
.cn-add-deductions {
  margin: 0 0 14px;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  background: #fff;
}
#cn-calculator-form > .input-group.field-group:not(.cn-hidden) {
  margin-bottom: 14px;
}
#cn-calculator-form > .input-group.field-group.contribution-method-group {
  margin-bottom: 0;
}
#cn-calculator-form > details.cn-add-deductions {
  margin-top: 14px;
  margin-bottom: 14px;
}
.calc-sidebar .gross-income-info {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #6b7280;
  cursor: help;
  font-weight: 400;
  vertical-align: middle;
  flex-shrink: 0;
}
.calc-sidebar button.gross-income-info {
  margin: 0;
  padding: 0;
  border: none;
  background: transparent;
  font: inherit;
  line-height: 0;
  -webkit-tap-highlight-color: transparent;
}
.calc-sidebar button.gross-income-info:focus-visible {
  outline: 2px solid #2563eb;
  outline-offset: 2px;
  border-radius: 50%;
}
.calc-sidebar .gross-income-info svg {
  display: block;
  width: 16px;
  height: 16px;
}
.cn-section-heading--with-info {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}
.calc-sidebar .cn-label-with-info {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin: 0 0 6px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.35;
  color: #1f2937;
}
.calc-sidebar .cn-special-additional-field > .cn-field-hint {
  margin: 0 0 12px;
}
.cn-add-deductions summary,
.cn-contribution-bases summary {
  cursor: pointer;
  list-style: none;
}
.cn-add-deductions > summary.cn-tax-details-summary,
.cn-contribution-bases > summary.cn-bases-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 12px 14px;
}
.cn-accordion-title {
  margin: 0;
  font-family: inherit;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.35;
  color: #334155;
  letter-spacing: normal;
}
.cn-accordion-status {
  margin: 0;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.35;
  color: #64748b;
  letter-spacing: normal;
}
.cn-accordion-summary-main {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
  flex: 1 1 auto;
}
.cn-add-deductions .cn-accordion-title {
  flex: 1 1 auto;
  min-width: 0;
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
}
.cn-add-deductions summary::-webkit-details-marker,
.cn-contribution-bases summary::-webkit-details-marker {
  display: none;
}
.cn-add-deductions summary:hover,
.cn-contribution-bases summary:hover {
  background: #f8fafc;
}
.cn-add-deductions summary:focus-visible,
.cn-contribution-bases summary:focus-visible {
  outline: 2px solid #2563eb;
  outline-offset: 2px;
  border-radius: 10px;
}
.cn-accordion-chevron {
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  color: #64748b;
  transition: transform 0.2s ease;
}
.cn-add-deductions > summary.cn-tax-details-summary .cn-tax-details-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
  margin-left: auto;
}
/* Phone widths: keep title + Optional + chevron on one horizontal line */
@media (max-width: 430px) {
  .cn-add-deductions > summary.cn-tax-details-summary {
    flex-wrap: nowrap;
    align-items: center;
    gap: 6px;
  }
  .cn-add-deductions > summary.cn-tax-details-summary .cn-accordion-title {
    flex: 1 1 auto;
    min-width: 0;
    white-space: nowrap;
  }
  .cn-add-deductions > summary.cn-tax-details-summary .cn-tax-details-controls {
    flex: 0 0 auto;
    margin-left: auto;
    align-items: center;
  }
}
.cn-contribution-bases[open] > summary .cn-accordion-chevron,
.cn-contribution-bases[open] > summary .cn-tax-details-chevron,
.cn-add-deductions[open] > summary .cn-accordion-chevron,
.cn-add-deductions[open] > summary .cn-tax-details-chevron {
  transform: rotate(180deg);
}
.cn-accordion-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: nowrap;
}
.cn-accordion-summary-aside {
  display: inline-flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 10px;
  flex: 0 0 auto;
}
.cn-accordion-summary-label {
  flex: 1 1 auto;
  min-width: 0;
}
.cn-recommended-badge,
.cn-tax-badge {
  flex: 0 0 auto;
  font-size: 11px;
  font-weight: 500;
  line-height: 1.3;
  border-radius: 999px;
  padding: 2px 6px;
}
.cn-tax-badge--optional {
  color: #64748b;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
}
.cn-tax-badge--recommended {
  color: #1e40af;
  background: #f8fafc;
  border: 1px solid #dbeafe;
}
.cn-add-deductions-body {
  padding: 12px 14px 14px;
  border-top: 1px solid #e5e7eb;
}
.cn-deductions-section {
  margin: 0;
  padding: 0;
}
.calc-sidebar .cn-add-deductions-body .input-group.field-group {
  margin: 0;
}
.calc-sidebar .cn-add-deductions-body .input-group.field-group > label[for] {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.35;
  margin: 0 0 6px;
  color: #1f2937;
}
.calc-sidebar .cn-add-deductions-body .cn-advanced-inner .input-group.field-group > label[for] {
  margin-bottom: 10px;
}
.calc-sidebar .cn-add-deductions-body .cn-field-hint {
  margin: 0 0 10px;
  line-height: 1.4;
}
.cn-deductions-section-divider {
  display: none;
  margin: 16px 0;
  border-top: 1px solid #e5e7eb;
}
.cn-add-deductions-body:has(.cn-advanced-inner > .input-group.field-group:not(.cn-hidden)) .cn-deductions-section-divider {
  display: block;
}
.cn-add-deductions-body .cn-advanced-inner:not(:has(> .input-group.field-group:not(.cn-hidden))) {
  display: none;
}
.cn-add-deductions-body .cn-advanced-inner {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.cn-add-deductions-body .cn-advanced-inner > .input-group.field-group {
  margin: 0;
}
.calc-sidebar .input-group.field-group.contribution-method-group {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  margin-bottom: 0;
}
.cn-section-heading {
  margin: 0 0 18px;
  font-size: 15px;
  font-weight: 700;
  line-height: var(--lh-body);
  color: #1f2937;
}
.calc-sidebar #contribution-method-field > label[for="contributionMethod"],
.calc-sidebar #cn-medical-plan-field > label[for="medicalPlanCode"] {
  margin: 0 0 10px;
  font-size: 15px;
  font-weight: var(--fw-semi);
  line-height: 1.35;
  color: #1f2937;
}
.calc-sidebar #contribution-method-field > select,
.calc-sidebar #cn-medical-plan-field > select {
  margin: 0;
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  min-height: 42px;
  height: auto;
  padding: 10px 2.5rem 10px 12px;
  font-size: 14px;
  letter-spacing: -0.02em;
  white-space: nowrap;
  line-height: 1.35;
  overflow: hidden;
  text-overflow: clip;
  -webkit-appearance: none;
  appearance: none;
  background-color: #fff;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='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 12px center;
  background-size: 16px 16px;
}
.calc-sidebar #cn-medical-plan-field:not(.cn-hidden) {
  margin-top: 14px;
}
.calc-sidebar #cn-medical-plan-field > .cn-medical-plan-hint {
  margin: 8px 0 0;
}
.calc-sidebar .cn-contribution-method-content > .contribution-rate-group:not(.cn-hidden) {
  margin-top: 12px;
}
.calc-sidebar .cn-contribution-method-content > .contribution-manual-group:not(.cn-hidden) {
  margin-top: 18px;
}
.calc-sidebar .cn-contribution-method-content > #contribution-excluded-notice:not(.cn-hidden) {
  margin-top: 16px;
}
.cn-contribution-method-content {
  margin: 0;
  width: 100%;
  align-self: stretch;
  min-width: 0;
}
.calc-sidebar .cn-contribution-method-content:has(#contribution-manual-field:not(.cn-hidden)) {
  width: 100%;
  align-self: stretch;
}
.calc-sidebar .cn-contribution-method-content .contribution-rate-group,
.calc-sidebar .cn-contribution-method-content .contribution-manual-group {
  display: flex;
  flex-direction: column;
  width: 100%;
  align-self: stretch;
  min-width: 0;
}
.calc-sidebar .contribution-rate-group .cn-contrib-rate-field {
  width: 100%;
  align-self: stretch;
  min-width: 0;
}
.calc-sidebar .contribution-rate-group .cn-input-with-suffix {
  width: 100%;
  box-sizing: border-box;
}
.calc-sidebar .contribution-rate-group .cn-contribution-bases {
  margin-top: 20px;
  width: 100%;
  align-self: stretch;
  box-sizing: border-box;
}
.calc-sidebar .cn-annual-equiv {
  margin: 8px 0 0;
  line-height: 1.4;
}
.calc-sidebar .cn-rate-mode-note {
  margin: 0 0 16px;
  line-height: 1.45;
}
.calc-sidebar .contribution-rate-group .cn-contrib-rate-field > label[for] {
  margin: 0 0 10px;
}
.calc-sidebar .contribution-rate-group .cn-contrib-rate-field--last {
  margin-top: 20px;
}
.calc-sidebar .contribution-manual-group > label[for] {
  margin: 0 0 10px;
}
.calc-sidebar #contribution-manual-field:not(.cn-hidden) {
  width: 100%;
  align-self: stretch;
}
#contribution-excluded-notice.cn-excluded-notice {
  margin: 0;
  padding: 0;
  background: none;
  border: none;
  color: #64748b;
  font-size: var(--fs-muted);
  line-height: 1.4;
}
.cn-bases-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.cn-bases-intro {
  margin: 0;
  line-height: 1.4;
}
.cn-contribution-bases-body > .cn-bases-intro.cn-field-hint {
  margin: 0;
}
.cn-contribution-bases-body > .cn-bases-intro + .cn-contrib-base-section {
  margin-top: 14px;
}
.cn-contrib-rate-field {
  margin: 0;
}
.calc-sidebar .input-group.field-group.cn-estimate-period-group {
  margin-bottom: 24px;
}
.calc-sidebar .cn-estimate-period-group > label[for="salaryMode"] {
  display: block;
  margin: 0 0 10px;
}
.calc-sidebar .cn-estimate-period-group > select {
  margin: 0;
}
.calc-sidebar #stable-start-field > label[for],
.calc-sidebar #calendar-month-field > label[for] {
  margin: 0 0 10px;
}
.calc-sidebar #stable-start-field .cn-start-month-hint {
  margin: 8px 0 0;
  line-height: 1.45;
}
.calc-sidebar .contribution-rate-group .cn-contrib-field-hint,
.calc-sidebar .contribution-rate-group .cn-contribution-bases .cn-contrib-field-hint {
  margin: 0 0 12px;
  font-weight: 400;
  line-height: 1.45;
}
.calc-sidebar .cn-input-with-suffix {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 50px;
  align-items: stretch;
  height: 42px;
  box-sizing: border-box;
  border: 1px solid #d1d5db;
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
}
.calc-sidebar .cn-input-with-suffix:focus-within {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}
.calc-sidebar .cn-input-with-suffix .cn-amount-input {
  width: 100%;
  min-width: 0;
  height: 100%;
  margin: 0;
  padding: 0 12px;
  border: none;
  border-radius: 10px 0 0 10px;
  box-shadow: none;
}
.calc-sidebar .cn-input-with-suffix .cn-amount-input:focus {
  border-color: transparent;
  box-shadow: none;
}
.calc-sidebar .cn-input-with-suffix .cn-input-suffix {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--field-font-size);
  font-weight: 500;
  color: #6b7280;
  background: #f9fafb;
  border-left: 1px solid #e5e7eb;
  border-radius: 0 10px 10px 0;
  pointer-events: none;
  user-select: none;
}
.calc-sidebar .cn-input-with-suffix:has(input.gst-input-invalid) {
  border-color: #dc2626;
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.12);
}
.cn-contribution-bases {
  margin: 0;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #fafbfc;
}
.cn-contribution-bases summary {
  font-weight: 500;
}
.cn-contribution-bases-body {
  padding: 14px 12px 16px;
  border-top: 1px solid #e5e7eb;
}
.cn-contrib-base-section {
  margin: 0 0 22px;
}
.cn-contrib-base-section--housing {
  margin-bottom: 0;
}
.cn-contrib-base-label {
  margin: 0 0 10px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.35;
  color: #334155;
}
.cn-base-mode-options {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 0;
}
.cn-base-mode-option {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  cursor: pointer;
  font-size: var(--fs-body);
  font-weight: 400;
  color: #334155;
}
.cn-base-mode-option input[type="radio"] {
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: #2563eb;
}
.calc-sidebar .contribution-rate-group .cn-contrib-custom-base-input {
  margin: 12px 0 0;
}
.calc-sidebar .contribution-rate-group .cn-contrib-custom-base-input.cn-hidden {
  margin: 0;
}
.calc-sidebar .contribution-manual-group .cn-contrib-manual-input {
  margin: 0;
  width: 100%;
  box-sizing: border-box;
}
.calc-sidebar .contribution-manual-group .cn-contrib-manual-helper {
  margin: 0;
  font-weight: 400;
  line-height: 1.45;
}
.cn-contribution-breakdown {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid #e5e7eb;
}
.cn-contribution-breakdown-title {
  margin: 0 0 12px;
  font-size: 1rem;
  font-weight: 600;
  color: #334155;
}
.cn-contribution-breakdown-note {
  margin: 12px 0 0;
  line-height: 1.45;
}
.cn-local-policy-reference {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid #e5e7eb;
}
.cn-local-policy-reference-summary {
  cursor: pointer;
  font-size: 0.9375rem;
  font-weight: 600;
  color: #475569;
  line-height: 1.4;
  list-style: none;
}
.cn-local-policy-reference-summary::-webkit-details-marker {
  display: none;
}
.cn-local-policy-content {
  margin-top: 10px;
  line-height: 1.45;
}
.calc-sidebar #employment-scenario-field > label[for] {
  margin: 0 0 10px;
}
.calc-sidebar #employment-scenario-field select#deductionMonthMode {
  padding-left: 12px;
  padding-right: 2.5rem;
  max-width: 100%;
}
#cn-calculator-form > #employment-scenario-field:not(.cn-hidden):has(+ #months-at-employer-field:not(.cn-hidden)),
#cn-calculator-form > #employment-scenario-field:not(.cn-hidden):has(+ #already-withheld-field:not(.cn-hidden)) {
  margin-bottom: 22px;
}
.calc-sidebar #months-at-employer-field > label[for],
.calc-sidebar #already-withheld-field > label[for] {
  margin: 0 0 10px;
}
#cn-calculator-form > #months-at-employer-field:not(.cn-hidden):has(+ #already-withheld-field:not(.cn-hidden)) {
  margin-bottom: 22px;
}
#cn-calculator-form > #months-at-employer-field:not(.cn-hidden):has(+ #contribution-method-field:not(.cn-hidden)) {
  margin-bottom: 30px;
}
#cn-calculator-form > #already-withheld-field:not(.cn-hidden):has(+ #contribution-method-field:not(.cn-hidden)) {
  margin-bottom: 22px;
}
.calc-sidebar #months-at-employer-field .cn-months-helper,
.calc-sidebar #already-withheld-field .cn-field-hint {
  margin: 6px 0 0;
  line-height: 1.4;
  white-space: normal;
}
.calc-sidebar #employment-scenario-field .cn-employment-inline-error:not(.cn-hidden),
.calc-sidebar #already-withheld-field .cn-employment-inline-error:not(.cn-hidden),
.calc-sidebar #months-at-employer-field .cn-employment-inline-error:not(.cn-hidden) {
  margin: 8px 0 0;
  color: #b91c1c;
  line-height: 1.4;
}
.calc-sidebar #already-withheld-field .cn-tax-withheld-inline-warning:not(.cn-hidden) {
  margin: 8px 0 0;
  color: #92400e;
  line-height: 1.4;
}
.calc-sidebar #employment-scenario-field .cn-employment-general-hint {
  margin: 8px 0 0;
  line-height: 1.4;
}

@media (min-width: 390px) and (max-width: 640px) {
  .calc-sidebar .cn-label-with-info {
    flex-wrap: wrap;
    align-items: flex-start;
    row-gap: 4px;
    margin-bottom: 8px;
  }

  .calc-sidebar .cn-label-with-info > span {
    flex: 1 1 auto;
    min-width: 0;
    padding-right: 28px;
  }

  .calc-sidebar .cn-label-with-info .gross-income-info,
  .calc-sidebar .cn-label-with-info .gst-info-tip {
    flex: 0 0 auto;
    margin-left: -24px;
  }

  .calc-sidebar #employment-scenario-field > label[for],
  .calc-sidebar #months-at-employer-field > label[for],
  .calc-sidebar #already-withheld-field > label[for],
  .calc-sidebar #contribution-method-field > label[for],
  .calc-sidebar #stable-start-field > label[for],
  .calc-sidebar #calendar-month-field > label[for] {
    line-height: 1.4;
    margin-bottom: 10px;
  }

  .calc-sidebar .cn-field-hint {
    line-height: 1.45;
    margin-top: 8px;
  }

  .calc-sidebar select {
    min-height: 44px;
    padding-right: 12px;
    max-width: 100%;
  }

  .calc-sidebar #contribution-method-field > select {
    min-height: 44px;
    padding: 10px 12px 10px 12px;
    white-space: nowrap;
    line-height: 1.35;
    background-position: right 10px center;
    background-size: 16px 16px;
  }

  .calc-sidebar .cn-section-heading.cn-section-heading--with-info {
    flex-wrap: wrap;
    row-gap: 6px;
    align-items: flex-start;
  }

  .calc-sidebar .cn-bases-summary.cn-accordion-summary,
  .calc-sidebar .cn-accordion-summary {
    gap: 8px;
  }
}

/* Mobile + iPad: match U.S. select arrow near the far right edge */
@media (max-width: 1024px) {
  .calc-sidebar select {
    padding-right: 12px;
  }

  .calc-sidebar #employment-scenario-field select#deductionMonthMode {
    padding-right: 12px;
  }

  .calc-sidebar #contribution-method-field > select,
  .calc-sidebar #cn-medical-plan-field > select {
    padding-right: 12px;
    background-position: right 10px center;
  }
}
.calc-sidebar #employment-scenario-field select#deductionMonthMode:disabled {
  opacity: 1;
  color: #9ca3af;
  background-color: #fff;
  cursor: not-allowed;
}
.calc-sidebar #employment-scenario-field select#deductionMonthMode:disabled.placeholder-state {
  color: #9ca3af;
}
.cn-contrib-excluded-notice {
  margin: 0 0 12px;
  padding: 0.65rem 0.85rem;
  border-radius: 8px;
  background: #fffbeb;
  border: 1px solid #fde68a;
  color: #92400e;
  font-size: 0.875rem;
  line-height: 1.4;
}
.cn-errors {
  margin-top: 12px;
  padding: 0.75rem 0.9rem;
  border-radius: 8px;
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #b91c1c;
  font-size: 0.875rem;
}
.cn-errors:empty {
  display: none;
}
.calc-sidebar select.placeholder-state,
.calc-sidebar select:invalid {
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: var(--field-placeholder-font-size);
  font-weight: var(--field-placeholder-font-weight);
  line-height: var(--field-placeholder-line-height);
  letter-spacing: var(--field-placeholder-letter-spacing);
}
.calc-sidebar select.placeholder-state {
  color: var(--field-placeholder-color);
}
.calc-sidebar select:not(.placeholder-state):not(:disabled) {
  color: var(--field-value-color);
}
.cn-field-hint {
  margin: 0.35rem 0 0;
  font-size: var(--fs-muted);
  line-height: 1.35;
  color: #64748b;
}
.cn-contribution-fieldset > .cn-contribution-section-hint {
  margin: 0 0 16px;
  line-height: 1.45;
}
.cn-location-status {
  margin-top: 0.35rem;
  color: #64748b;
}
.cn-contribution-status {
  margin: 10px 0 0;
  color: #475569;
}
.cn-inline-notice {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  margin: 10px 0 0;
  padding: 10px 12px;
  border-radius: 8px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  color: #475569;
  font-size: var(--fs-muted);
  line-height: 1.45;
}
.cn-inline-notice.cn-hidden {
  display: none;
}
.cn-inline-notice-icon {
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  margin-top: 1px;
  color: #64748b;
}
.cn-inline-notice-icon svg {
  display: block;
  width: 16px;
  height: 16px;
}
.cn-inline-notice-text {
  margin: 0;
  flex: 1 1 auto;
  min-width: 0;
  font-size: inherit;
  line-height: inherit;
  color: inherit;
}
.cn-provisional-disclosure {
  color: #92400e;
}
.cn-switch-manual-btn {
  display: inline-block;
  margin: 0;
  padding: 0;
  border: none;
  background: none;
  color: #2563eb;
  font-size: inherit;
  font-weight: 500;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.cn-switch-manual-btn:hover {
  color: #1d4ed8;
}
.cn-policy-checked-date {
  margin-top: 0.5rem;
  color: #64748b;
}
.cn-advanced-section-label {
  font-weight: 600;
  color: #374151;
  margin: 0 0 0.35rem;
}
.calc-sidebar input.gst-input-invalid,
.calc-sidebar select.gst-input-invalid,
.calc-sidebar .salary-input-with-prefix:has(input.gst-input-invalid) {
  border-color: #dc2626;
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.12);
}
.cn-hidden {
  display: none !important;
}
.cn-city-status {
  margin-top: 0.35rem;
}
.cn-post-results {
  padding-top: var(--section-divider-gap);
  border-top: 1px solid rgba(226, 232, 240, 0.9);
  margin-bottom: var(--section-divider-gap);
}
.cn-page-disclaimer {
  max-width: 1520px;
  margin: 0 auto;
  padding: 0 clamp(20px, 3vw, 52px) 2rem;
}
.calc-content.pre-calc-state #cn-overview-section .calc-empty-state-wrap > .calc-empty-state-overlay {
  display: flex;
}
.calc-content:not(.pre-calc-state) #cn-overview-section .calc-empty-state-wrap > .calc-empty-state-overlay {
  display: none !important;
}
/* Stale: cover overview calculated content with the same stale message treatment as upper results */
.calc-content.cn-calc-results-stale #cn-overview-section .calc-empty-state-wrap > .calc-empty-state-overlay {
  display: none !important;
}
.calc-content.cn-calc-results-stale #cn-overview-section .calc-empty-state-wrap #cn-overview-stale-overlay {
  display: flex;
  z-index: 7;
}
.calc-content.cn-calc-results-stale #cn-overview-section .calc-empty-state-wrap #cn-overview-stale-overlay[hidden] {
  display: none !important;
}
.calc-content.cn-calc-results-stale #cn-overview-section .result-mask-body {
  opacity: 0.5;
  filter: saturate(0.82) contrast(0.88) brightness(0.98);
}
.calc-content.cn-calc-results-stale .calc-empty-state-wrap:has(.result-mask-cluster--wages) {
  min-height: min(415px, 64vh);
  overflow: hidden;
  position: relative;
}
/* Stale: hide bonus/monthly post-result sections so they do not render as an
 * empty frosted rectangle below the main Net Pay Estimate Dirty mask. */
.calc-content.cn-calc-results-stale .cn-post-results.results-stale:not([hidden]) {
  display: none !important;
}
#cn-results-wrap.results-placeholder .results-placeholder-msg {
  display: block;
  margin: 1.5rem 0;
  color: var(--color-muted, #64748b);
  font-size: var(--fs-body, 1rem);
}
#cn-results-wrap.results-placeholder .results-meta-in-wrap,
#cn-results-wrap.results-placeholder .results-content {
  display: none !important;
}
#cn-results-wrap.results-ready .results-placeholder-msg {
  display: none !important;
}
.calc-content.pre-calc-state .results-report #cn-results-wrap.results-placeholder .results-placeholder-msg {
  margin: 0 0 var(--section-control-to-mask-gap) !important;
}
.legend-dot-tax { background: #F2C94C; }
.legend-dot-net { background: #3AA55D; }
.calc-sidebar input[type="number"],
.calc-sidebar input[type="date"] {
  height: 42px;
  padding: 0 12px;
  font-size: var(--fs-body);
  border-radius: 10px;
  box-sizing: border-box;
  width: 100%;
  border: 1px solid #d1d5db;
  background: #fff;
}
.calc-sidebar input[type="number"]:focus,
.calc-sidebar input[type="date"]:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}
.cn-monthly-details summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 0.875rem;
  padding: 0.35rem 0;
}
.cn-table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  max-width: 100%;
  position: relative;
  border: 1px solid #e8eef5;
  border-radius: 8px;
  background:
    linear-gradient(to right, #fff 30%, rgba(255, 255, 255, 0)) left center / 28px 100% no-repeat,
    linear-gradient(to left, #fff 30%, rgba(255, 255, 255, 0)) right center / 28px 100% no-repeat,
    radial-gradient(farthest-side at 0 50%, rgba(15, 23, 42, 0.14), transparent) left center / 12px 100% no-repeat,
    radial-gradient(farthest-side at 100% 50%, rgba(15, 23, 42, 0.14), transparent) right center / 12px 100% no-repeat,
    #fff;
  background-attachment: local, local, scroll, scroll;
}
.cn-monthly-table {
  width: 100%;
  min-width: 560px;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 0.8125rem;
}
.cn-monthly-table th,
.cn-monthly-table td {
  padding: 14px 12px;
  text-align: right;
  border-bottom: 1px solid #f1f5f9;
  background: #fff;
  vertical-align: middle;
}
.cn-monthly-table th:first-child,
.cn-monthly-table td:first-child {
  text-align: left;
  position: sticky;
  left: 0;
  z-index: 1;
  min-width: 4.25rem;
  box-shadow: 1px 0 0 #e8eef5;
}
.cn-monthly-table th {
  /* Match US Full Ranking header tokens */
  color: var(--color-muted);
  font-weight: 600;
  font-size: var(--font-xs);
  background: #f1f5f9;
  border-bottom: 1px solid #e2e8f0;
}
.cn-monthly-table th:first-child {
  z-index: 2;
  background: #f1f5f9;
}
.cn-monthly-scroll-hint {
  display: none;
  margin: 6px 0 0;
  font-size: 0.75rem;
  color: var(--color-muted);
}
.cn-monthly-cards {
  display: none;
  gap: 0.65rem;
  margin-top: 0.5rem;
}
.cn-month-card {
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 0.65rem 0.75rem;
  background: #f8fafc;
}
@media (max-width: 640px) {
  .cn-monthly-table {
    font-size: 13px;
    min-width: 620px;
  }
  .cn-monthly-scroll-hint {
    display: block;
  }
  .cn-monthly-cards {
    display: none;
  }
}

.cn-policy-details .cn-policy-detail-line {
  margin: 0 0 0.35rem;
  line-height: 1.45;
}
.cn-policy-details .cn-policy-detail-label {
  font-weight: 600;
}
.cn-policy-details .cn-policy-hint {
  margin-top: 0.5rem;
}
.cn-policy-empty {
  margin: 0;
}

.cn-result-assumptions-list,
.cn-assumptions-policy-block .cn-policy-detail-line {
  font-size: 15px;
  line-height: 1.5;
  color: #6b7280;
  font-weight: 400;
}

.cn-assumptions-policy-block .cn-policy-detail-label {
  font-weight: 600;
}

@media (max-width: 768px) {
  .cn-result-assumptions-list,
  .cn-assumptions-policy-block .cn-policy-detail-line {
    font-size: 14px;
    line-height: 1.5;
  }
}
@media (max-width: 320px) {
  .cn-accordion-summary {
    flex-wrap: wrap;
  }
  .cn-accordion-summary-aside {
    margin-left: auto;
  }
}

.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;
}

.cn-result-assumptions-list {
  margin: 0.5rem 0 0;
  padding-left: 1.1rem;
}

.cn-result-assumptions-list li + li {
  margin-top: 6px;
}

/* —— China results layout (US-aligned hierarchy) —— */
.cn-results-layout {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  min-width: 0;
  max-width: 100%;
}

#cn-results-content .results-table.cn-deduction-summary {
  gap: 7px;
}

#cn-results-content .results-row {
  grid-template-columns: 1fr 140px;
  column-gap: var(--space-12, 0.75rem);
  min-width: 0;
}

/* Long text meta values (e.g. medical plan): keep full label on one line when space allows */
#cn-results-content .results-row.cn-results-row-long-value {
  grid-template-columns: minmax(0, 1fr) max-content;
}

#cn-results-content .results-row.cn-results-row-long-value .results-cell-value {
  white-space: nowrap;
  justify-self: end;
  text-align: right;
  max-width: none;
  min-width: 0;
}

#cn-results-content .cn-contrib-toggle-row {
  min-height: 0;
  margin: 0;
}

#cn-results-content .cn-contrib-toggle-row .tax-toggle-row {
  padding-top: 0;
  padding-bottom: 0;
  padding-left: var(--space-12, 0.75rem);
}

#cn-results-content .cn-contrib-inline-breakdown {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 0.1rem 0 0.15rem;
}

#cn-results-content .cn-contrib-inline-breakdown[hidden] {
  display: none !important;
}

#cn-results-content .cn-contrib-inline-breakdown .cn-contrib-nested-row {
  min-height: 22px;
  font-size: 0.8125rem;
}

#cn-results-content .cn-contrib-inline-breakdown .cn-contrib-nested-row .results-cell-label {
  padding-left: 1.35rem;
  color: #64748b;
  font-weight: 500;
  font-size: 0.8125rem;
}

#cn-results-content .cn-contrib-inline-breakdown .cn-contrib-nested-row .results-cell-value {
  color: #64748b;
  font-weight: 500;
  font-size: 0.8125rem;
}

#cn-results-content .results-cell-label {
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
  min-width: 0;
}

#cn-results-content .cn-label-with-info {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  max-width: 100%;
}

#cn-results-content .cn-label-with-info .gst-info-tip,
#cn-results-content .cn-results-label-with-info .gst-info-tip {
  flex-shrink: 0;
}

#cn-results-content .cn-tax-terminology-helper {
  margin-top: 0.5rem;
}

#cn-results-content .results-row-total .results-cell-label,
#cn-results-content .results-row-total .results-cell-value {
  font-weight: 600;
  color: var(--color-title, #0f172a);
}

/*
 * Selected-period tax summary (salary + bonus + total): one left edge, one right edge.
 * Item rows use padding-left; the total row must match that indent (not sit farther left).
 * Divider sits only over the tax summary content (label text → amount edge), not the full card.
 */
#cn-results-content .cn-contribution-breakdown-table .cn-tax-period-summary-row.results-row-item .results-cell-label,
#cn-results-content .cn-contribution-breakdown-table .cn-tax-period-summary-total .results-cell-label {
  padding-left: var(--space-12, 0.75rem);
}
#cn-results-content .cn-contribution-breakdown-table .cn-tax-period-summary-total {
  margin-top: 2px;
  padding-top: 8px;
  border-top: none;
  position: relative;
}
#cn-results-content .cn-contribution-breakdown-table .cn-tax-period-summary-total::before {
  content: '';
  position: absolute;
  top: 0;
  left: var(--space-12, 0.75rem);
  right: 0;
  border-top: 1px solid #e8ecf1;
  pointer-events: none;
}

/* Take-home block: keep divider / green row / average line as one flex child
   so .cn-results-layout gap does not stack oversized whitespace between them. */
#cn-results-content .cn-takehome-block {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

#cn-results-content .cn-takehome-block > .results-divider {
  display: block;
  border-top: 1px solid #e5e7eb;
  /* Match US results-divider rhythm (6px), slightly roomier above the green row */
  margin: 0 0 10px;
  opacity: 1;
}

#cn-results-content .results-row-after {
  margin-top: 0;
  margin-bottom: 0;
  margin-left: 4px;
  margin-right: 0;
  padding: 10px 0 10px 12px;
  background: #f7fdf9 !important;
  border-radius: 8px;
  border: none !important;
  box-shadow: none;
  align-items: center;
}

#cn-results-content .results-row-after .results-cell-label,
#cn-results-content .results-row-after .results-row-title {
  font-family: inherit;
  font-weight: 600;
  font-size: 0.9375rem;
  line-height: 1.4;
  color: #0f172a;
}

#cn-results-content .results-row-after .results-cell-value {
  color: #047857;
  font-weight: 700;
  font-size: 1rem;
  font-variant-numeric: tabular-nums;
  text-align: right;
}

.cn-takehome-helper-line {
  margin: 8px 0 0;
  padding: 0 0.15rem 0 16px;
  font-size: 0.8125rem;
  line-height: 1.4;
  color: #64748b;
}

#cn-results-content .chart-block {
  text-align: center;
  margin-top: 10px;
  padding-top: 10px;
  padding-bottom: 4px;
  border-top: 1px solid #e5e7eb;
  background: transparent;
}

/* Cancel layout gap (~0.85rem) so helper→divider stays ~8–9px after compacting */
#cn-results-content .cn-takehome-block + .chart-block {
  margin-top: calc(8px - 0.85rem);
}

#cn-results-content .chart-legend {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 1rem;
  margin-top: 7px;
  font-size: 0.75rem;
  max-width: 100%;
}

#cn-results-content .legend-item {
  white-space: normal;
  max-width: 100%;
}

.legend-dot-bonus-tax {
  background: #f59e0b;
}

.cn-contrib-disclosure {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.45;
  color: #475569;
}

.cn-contrib-disclosure-text,
.cn-contrib-disclosure-meta {
  margin: 0;
}

.cn-contrib-disclosure-meta + .cn-contrib-disclosure-meta,
.cn-contrib-disclosure-text + .cn-contrib-disclosure-meta {
  margin-top: 0.25rem;
}

.cn-contrib-disclosure .cn-contrib-disclosure-meta.gst-module-footnote {
  font-size: 0.7rem;
  line-height: 1.4;
  color: rgba(100, 116, 139, 0.88);
  margin-top: 0.25rem;
}

.cn-result-details {
  margin: 0;
  padding: 0;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: #fff;
  overflow: hidden;
}

.cn-result-details-summary {
  cursor: pointer;
  list-style: none;
  padding: 0.75rem 0.9rem;
  font-size: 0.9375rem;
  font-weight: 600;
  color: #334155;
  line-height: 1.35;
}

.cn-result-details-summary::-webkit-details-marker {
  display: none;
}

.cn-result-details-summary::before {
  content: '';
  display: inline-block;
  width: 0.4rem;
  height: 0.4rem;
  margin-right: 0.55rem;
  border-right: 2px solid #64748b;
  border-bottom: 2px solid #64748b;
  transform: rotate(-45deg);
  vertical-align: 0.15rem;
}

.cn-result-details[open] > .cn-result-details-summary::before {
  transform: rotate(45deg);
  vertical-align: 0.05rem;
}

.cn-result-details-body {
  padding: 0 0.9rem 0.9rem;
  border-top: 1px solid #eef2f7;
}

.cn-result-details-body .results-table {
  margin-top: 0.65rem;
}

.cn-assumptions-policy-block {
  margin-top: 15px;
}

.cn-component-status-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.75rem;
}

.cn-component-status-chip {
  font-size: 0.8125rem;
}

.cn-overview-period-note {
  margin: 0 0 0.75rem;
}

.cn-overview-rows {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  min-width: 0;
}

.cn-overview-group {
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: #fff;
  overflow: hidden;
  min-width: 0;
}

.cn-overview-group-title {
  margin: 0;
  padding: 0.55rem 0.85rem 0.35rem;
  font-size: 0.78rem;
  font-weight: 650;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #64748b;
}

.cn-overview-row {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 0.5rem 0.75rem;
  align-items: baseline;
  padding: 0.7rem 0.85rem;
  border-bottom: 1px solid #f1f5f9;
  min-width: 0;
}

.cn-overview-group .cn-overview-row:last-child {
  border-bottom: none;
}

.cn-overview-group[aria-label="Cash income and deductions"] .cn-overview-row:last-child {
  font-weight: 650;
  background: #f8fafc;
}

.cn-overview-row-label {
  min-width: 0;
  font-size: 0.9rem;
  color: #475569;
  line-height: 1.35;
}

.cn-overview-row-value {
  min-width: 0;
  text-align: right;
  font-size: 0.95rem;
  color: #0f172a;
  font-variant-numeric: tabular-nums;
  word-break: break-word;
}

.cn-overview-group[aria-label="Cash income and deductions"] .cn-overview-row:last-child .cn-overview-row-label,
.cn-overview-group[aria-label="Cash income and deductions"] .cn-overview-row:last-child .cn-overview-row-value {
  color: #0f172a;
  font-weight: 700;
}

#cn-overview-content .cn-contrib-disclosure {
  margin-top: 0.85rem;
}

@media (max-width: 820px) {
  #cn-results-content .results-row-after {
    grid-template-columns: 1fr 140px;
    gap: var(--space-12, 0.75rem);
  }

  #cn-results-content .results-row-after .results-cell-value {
    text-align: right;
  }
}

@media (max-width: 767px) {
  #cn-results-content .results-row {
    grid-template-columns: 1fr auto;
  }

  .cn-overview-row {
    grid-template-columns: 1fr;
    gap: 0.2rem;
    padding: 0.65rem 0.75rem;
  }

  .cn-overview-row-value {
    text-align: left;
  }

  .cn-result-details-body .results-table .results-row {
    grid-template-columns: 1fr;
    gap: 0.15rem 0;
  }

  .cn-result-details-body .results-table .results-cell-value {
    text-align: left;
  }

  /* Narrow widths: wrap long plan labels only when needed; never overflow the card */
  #cn-results-content .results-row.cn-results-row-long-value,
  .cn-result-details-body .results-table:not(.cn-contribution-breakdown-table) .results-row.cn-results-row-long-value {
    grid-template-columns: minmax(0, 1fr);
  }

  #cn-results-content .results-row.cn-results-row-long-value .results-cell-value,
  .cn-result-details-body .results-table:not(.cn-contribution-breakdown-table) .results-row.cn-results-row-long-value .results-cell-value {
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
    max-width: 100%;
    justify-self: stretch;
  }

  /* Contribution Status + value stay on one row (beats #cn-results-content long-value stack) */
  #cn-results-content .cn-contribution-breakdown-table .results-row,
  #cn-results-content .cn-contribution-breakdown-table .results-row.cn-results-row-long-value {
    grid-template-columns: auto minmax(0, 1fr);
    gap: 0.15rem 0.75rem;
    align-items: baseline;
  }

  #cn-results-content .cn-contribution-breakdown-table .results-row .results-cell-value,
  #cn-results-content .cn-contribution-breakdown-table .results-row.cn-results-row-long-value .results-cell-value {
    text-align: right;
    justify-self: end;
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
    max-width: 100%;
  }
}

@media (max-width: 390px) {
  #cn-results-content .results-row {
    grid-template-columns: 1fr auto;
  }

  #cn-results-content .results-cell-value {
    text-align: right;
  }
}

/* Keep chips within the results column; match US pill scale with safe wrapping */
#cn-results-wrap .results-meta,
#cn-results-meta {
  max-width: 100%;
  min-width: 0;
  gap: 8px;
  margin-top: 0;
}

#cn-results-wrap.results-ready .results-meta-in-wrap,
#cn-results-wrap.results-ready #cn-results-meta {
  margin-top: 2px !important;
}

#cn-results-wrap .chip,
#cn-results-meta .chip {
  max-width: 100%;
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px; /* same as US .results-report .chip */
  padding: 5px 10px;
  min-height: 24px;
  border: 1px solid #e5e7eb;
  background: #fff;
  border-radius: 999px;
  font-weight: 500;
  font-size: 0.8125rem;
  line-height: 1.35;
  color: #64748b;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
}

#cn-results-wrap .chip strong,
#cn-results-meta .chip strong {
  color: #334155;
  font-weight: 600;
  /* Match US chips: spacing comes from flex gap only */
  margin-right: 0;
}

#cn-results-wrap,
#cn-results-content,
.cn-results-layout,
#cn-overview-content {
  max-width: 100%;
  min-width: 0;
}

/* ---------- City Net Pay Comparison ---------- */
.calc-content > #china-city-comparison.cn-compare.page-section {
  margin-top: 0;
  margin-bottom: var(--section-divider-gap);
  padding: var(--section-divider-gap) 0 0;
  border-top: 1px solid rgba(226, 232, 240, 0.9);
  background: transparent;
  box-shadow: none;
  border-left: none;
  border-right: none;
  border-bottom: none;
  border-radius: 0;
}
#china-city-comparison .cn-compare-header {
  margin-bottom: 0;
}
/*
 * Match Net Pay Estimate (.results-report .results-title) typography + icon row.
 * Shared by Monthly Breakdown and City Comparison section titles.
 * Use flex (not inline-flex) so the heading is block-level and does not leave a
 * line-box strut under the title that stacks with the next sibling’s margin-top.
 */
#cn-monthly-section > .page-section > .section-title,
#china-city-comparison > .cn-compare-header > .section-title {
  font-size: var(--font-h3);
  font-weight: 600;
  color: var(--color-title);
  line-height: var(--line-tight);
  letter-spacing: normal;
  display: flex;
  align-items: center;
  gap: 8px;
}
#cn-monthly-section > .page-section > .section-title {
  margin: 0;
}
#china-city-comparison > .cn-compare-header > .section-title {
  margin: 0 0 4px;
}
#china-city-comparison .cn-compare-description,
#china-city-policy-coverage .cn-compare-description {
  margin: 0;
  max-width: none;
  width: 100%;
  font-size: var(--font-body, 14px);
  font-weight: 400;
  line-height: var(--line-body, 1.5);
  letter-spacing: normal;
  color: var(--color-body, #334155);
  white-space: normal;
  overflow: visible;
  text-overflow: unset;
  -webkit-line-clamp: unset;
  line-clamp: unset;
  display: block;
  height: auto;
  max-height: none;
}
/* Sole gap: comparison intro → Tax Year / Month labels (~18px). */
#china-city-comparison .cn-compare-description {
  margin-bottom: 18px;
}
#china-city-comparison .cn-compare-input-card {
  margin: 0;
  padding: 0;
  border: none;
  border-radius: 0;
  background: transparent;
}
#china-city-comparison .cn-compare-settings {
  margin: 0 0 12px;
  padding: 0;
  border: none;
  border-radius: 0;
  background: transparent;
}
#china-city-comparison .cn-compare-settings-grid {
  display: grid;
  /* Shared equal columns: Tax Year and Month always match width */
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 16px;
  align-items: end;
  justify-content: start;
  max-width: 460px;
  width: 100%;
}
#china-city-comparison .cn-compare-setting {
  min-width: 0;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 4px;
}
/* Match United States .compare-states-filters .filter-field label */
#china-city-comparison .cn-compare-setting-label {
  font-size: var(--font-xs);
  font-weight: 500;
  color: #64748b;
  line-height: 1.2;
}
/*
 * Match United States State Net Pay Comparison selects
 * (.compare-states-filters .filter-field select + .results-period-select).
 * Scoped copy: US selector is page-specific and must not be changed.
 */
#china-city-comparison select.cn-compare-setting-control.results-period-select {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  height: 40px;
  min-height: 40px;
  padding: 8px 12px;
  font-size: 0.875rem;
  font-weight: 400;
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  border-radius: 6px;
  border: 1px solid #d1d5db;
  background-color: #fff;
  background-image: none;
  color: var(--color-body);
  line-height: 1.3;
  box-sizing: border-box;
  cursor: pointer;
}
#china-city-comparison select.cn-compare-setting-control.results-period-select option {
  color: #1f2937;
}
#china-city-comparison select.cn-compare-setting-control.results-period-select.placeholder-state {
  color: var(--form-placeholder-color, #b8bcc4);
  font-family: var(--form-placeholder-font-family);
  font-size: var(--form-placeholder-font-size, 0.875rem);
  font-weight: var(--form-placeholder-font-weight, 400);
  line-height: var(--form-placeholder-line-height, 1.3);
  letter-spacing: var(--form-placeholder-letter-spacing, normal);
  opacity: 1;
}
#china-city-comparison select.cn-compare-setting-control.results-period-select:not(.placeholder-state) {
  color: #1f2937;
}
#china-city-comparison[data-cn-compare-initializing] .cn-compare-actions .btn-primary {
  transition: none;
}
#china-city-comparison select.cn-compare-setting-control.results-period-select:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}
#china-city-comparison .cn-compare-settings-scope {
  margin: 6px 0 0;
  padding: 0;
  font-size: 0.6875rem;
  line-height: 1.35;
  color: var(--color-muted);
}
/* Dividers kept in markup for structure; hide lines so spacing is margin/gap only */
#china-city-comparison .cn-compare-input-divider {
  display: none;
  height: 0;
  margin: 0;
  padding: 0;
  border: none;
  background: none;
  box-shadow: none;
}
#china-city-comparison .cn-compare-panel {
  display: none;
}
#china-city-comparison .cn-compare-coverage-details {
  /* Sole spacing owner between action row and Coverage Details. */
  margin: 12px 0 0;
  padding: 0;
  border: none;
  background: transparent;
  max-width: none;
  width: 100%;
}
#china-city-comparison .cn-compare-coverage-summary-toggle {
  cursor: pointer;
  list-style: none;
  font-weight: 500;
  font-size: 0.8125rem;
  color: var(--color-muted);
  padding: 0.2rem 0;
}
#china-city-comparison .cn-compare-coverage-summary-toggle::-webkit-details-marker {
  display: none;
}
#china-city-comparison .cn-compare-coverage-summary-toggle::before {
  content: '';
  display: inline-block;
  width: 0.32rem;
  height: 0.32rem;
  margin-right: 0.4rem;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(-45deg);
  vertical-align: 0.1rem;
  color: var(--color-muted-light);
}
#china-city-comparison .cn-compare-coverage-details[open] > .cn-compare-coverage-summary-toggle::before {
  transform: rotate(45deg);
  vertical-align: 0.18rem;
}
#china-city-comparison .cn-compare-coverage-panel {
  margin-top: 10px;
  padding: 0;
  border: none;
  background: transparent;
  width: 100%;
  box-sizing: border-box;
}
#china-city-comparison .cn-compare-coverage-legend {
  margin: 0;
  padding: 0;
  border: none;
  background: transparent;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px 20px;
  align-items: start;
}
#china-city-comparison .cn-compare-coverage-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 6px;
  margin: 0;
  padding: 0;
  border: none;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  box-sizing: border-box;
}
#china-city-comparison .cn-compare-coverage-item--available,
#china-city-comparison .cn-compare-coverage-item--pending,
#china-city-comparison .cn-compare-coverage-item--needs-input {
  border: none;
  background: transparent;
}
#china-city-comparison .cn-compare-coverage-item-desc {
  margin: 0;
  font-size: 0.8125rem;
  line-height: 1.45;
  color: #475569;
}
#china-city-comparison .cn-compare-coverage-item .cn-compare-status-badge {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  padding: 2px 7px;
  border-radius: 999px;
}
/* Legacy class aliases kept so older verify selectors still resolve if present */
#china-city-comparison .cn-compare-coverage-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  margin: 0;
  padding: 0;
  border: none;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
#china-city-comparison .cn-compare-coverage-card-desc {
  margin: 0;
  font-size: 0.8125rem;
  line-height: 1.45;
  color: #475569;
}
#china-city-comparison .cn-compare-coverage-nofallback {
  margin: 12px 0 0;
  padding: 0;
  border: none;
  background: transparent;
  font-size: 0.75rem;
  line-height: 1.4;
  color: #64748b;
  box-sizing: border-box;
}
#china-city-comparison .cn-compare-coverage-full-link {
  margin: 10px 0 0;
  padding: 0;
  font-size: 0.75rem;
  line-height: 1.4;
}
#china-city-comparison .cn-compare-coverage-full-link a {
  color: #64748b;
  text-decoration: underline;
  text-underline-offset: 2px;
  font-weight: 500;
}
#china-city-comparison .cn-compare-coverage-full-link a:hover,
#china-city-comparison .cn-compare-coverage-full-link a:focus-visible {
  color: var(--color-title);
}
#china-city-comparison .cn-compare-panel-columns { display: none; }
#china-city-comparison .cn-compare-row-grid {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) auto;
  gap: 6px 12px;
  align-items: center;
  justify-content: stretch;
  width: 100%;
}
#china-city-comparison .cn-compare-row-aside {
  display: grid;
  grid-template-columns: 7.75rem 2.5rem;
  gap: 6px 10px;
  align-items: center;
  flex: 0 0 auto;
  width: calc(7.75rem + 2.5rem + 10px);
  min-width: calc(7.75rem + 2.5rem + 10px);
  max-width: calc(7.75rem + 2.5rem + 10px);
  box-sizing: border-box;
}
#china-city-comparison .cn-compare-rows {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0 0 12px;
  padding: 0;
  border: none;
  background: transparent;
  box-shadow: none;
}
#china-city-comparison .cn-compare-row {
  padding: 0;
  margin: 0;
  border: none;
  background: transparent;
  box-shadow: none;
}
#china-city-comparison .cn-compare-row + .cn-compare-row {
  border: none;
  border-top: none;
  box-shadow: none;
}
#china-city-comparison .cn-compare-row::before,
#china-city-comparison .cn-compare-row::after {
  content: none;
  display: none;
}
#china-city-comparison .cn-compare-row-index {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-muted);
  text-align: left;
  padding-top: 0;
  white-space: nowrap;
  line-height: 1.2;
}
#china-city-comparison .cn-compare-field--city {
  min-width: 0;
  width: 100%;
}
#china-city-comparison .cn-compare-field label:not(.cn-compare-baseline-pill),
#china-city-comparison .cn-compare-mobile-label,
#china-city-comparison .cn-compare-nested-label {
  display: none;
  font-size: var(--font-sm);
  font-weight: 500;
  color: var(--color-title);
  margin-bottom: 6px;
}
#china-city-comparison .cn-compare-nested-label {
  display: block;
  margin: 8px 0 4px;
  font-size: 0.75rem;
  color: var(--color-muted);
}
#china-city-comparison .cn-compare-field--city select,
#china-city-comparison .cn-compare-nested-option select {
  width: 100%;
  max-width: none;
  min-height: 36px;
  height: 36px;
  padding: 0 10px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  background: #fff;
  box-sizing: border-box;
  font-size: 0.875rem;
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  color: #1f2937;
}
#china-city-comparison .cn-compare-field--city select.placeholder-state {
  color: var(--form-placeholder-color, #b8bcc4);
}
#china-city-comparison .cn-compare-field--city select:not(.placeholder-state) {
  color: #1f2937;
}
#china-city-comparison[data-cn-compare-initializing] .cn-compare-field--city select:disabled {
  opacity: 1;
  cursor: default;
  background: #fff;
  border-color: #d1d5db;
  color: var(--form-placeholder-color, #b8bcc4);
  -webkit-text-fill-color: var(--form-placeholder-color, #b8bcc4);
}
#china-city-comparison .cn-compare-nested-option { margin-top: 0; }
#china-city-comparison .cn-compare-field-error {
  margin: 4px 0 0;
  font-size: 0.75rem;
  color: #b91c1c;
}
#china-city-comparison .cn-compare-row-note {
  margin: 2px 0 0 68px;
  font-size: 0.6875rem;
  line-height: 1.35;
  font-weight: 400;
  color: var(--color-muted);
}
#china-city-comparison .cn-compare-field--baseline {
  min-width: 0;
  width: 100%;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  padding-top: 0;
}
#china-city-comparison .cn-compare-field--baseline-empty {
  min-height: 1px;
  width: 100%;
  pointer-events: none;
}
/* Default: light secondary text action. Selected: small status badge. */
#china-city-comparison .cn-compare-baseline-pill {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0;
  min-height: 0;
  padding: 4px 0;
  border: none;
  border-radius: 0;
  background: transparent;
  color: #64748b;
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 1.25;
  cursor: pointer;
  user-select: none;
  box-sizing: border-box;
  max-width: 100%;
  white-space: nowrap;
}
#china-city-comparison .cn-compare-baseline-pill:hover {
  border: none;
  background: transparent;
  color: #334155;
  text-decoration: underline;
}
#china-city-comparison .cn-compare-baseline-pill.is-selected {
  padding: 1px 7px;
  border: 1px solid #e2e8f0;
  border-radius: 4px;
  background: #f8fafc;
  color: #475569;
  font-size: 0.7rem;
  font-weight: 600;
  line-height: 1.25;
  cursor: default;
  text-decoration: none;
}
#china-city-comparison .cn-compare-baseline-pill.is-selected:hover {
  border-color: #e2e8f0;
  background: #f8fafc;
  color: #475569;
  text-decoration: none;
}
#china-city-comparison .cn-compare-baseline-pill.is-disabled {
  opacity: 0.55;
  cursor: not-allowed;
  text-decoration: none;
}
#china-city-comparison .cn-compare-baseline-pill:focus-within {
  outline: 2px solid #93c5fd;
  outline-offset: 2px;
}
#china-city-comparison .cn-compare-baseline-radio {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
#china-city-comparison .cn-compare-baseline-dot,
#china-city-comparison .cn-compare-baseline-check {
  display: none;
}
#china-city-comparison .cn-compare-field--remove {
  min-width: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  padding-top: 0;
}
#china-city-comparison .cn-compare-remove {
  appearance: none;
  border: none;
  background: transparent;
  color: #64748b;
  font-size: 0.75rem;
  font-weight: 500;
  cursor: pointer;
  padding: 6px 0;
  text-decoration: none;
}
#china-city-comparison .cn-compare-remove:hover {
  color: #334155;
  text-decoration: underline;
}
#china-city-comparison .cn-compare-remove-spacer {
  display: inline-block;
  width: 1px;
  height: 1px;
}
#china-city-comparison .cn-compare-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
  margin: 0;
  padding: 0;
}
#china-city-comparison .cn-compare-actions-secondary {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 8px;
}
/* Product button colors live under .calc-sidebar / US compare filters only.
   Comparison must redefine full surface styles; size-only rules left native outset borders. */
#china-city-comparison .cn-compare-actions .btn-primary {
  appearance: none;
  -webkit-appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  height: 40px;
  padding: 0 18px;
  border-radius: 6px;
  border: 1px solid #2563eb;
  background: #2563eb;
  color: #fff;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1;
  box-shadow: 0 1px 1px rgba(37, 99, 235, 0.16);
  cursor: pointer;
}
#china-city-comparison .cn-compare-actions .btn-primary:hover:not([disabled]) {
  background: #1d4ed8;
  border-color: #1d4ed8;
  box-shadow: 0 1px 3px rgba(37, 99, 235, 0.24);
  filter: none;
}
#china-city-comparison .cn-compare-actions .btn-primary:active:not([disabled]) {
  background: #1e40af;
  border-color: #1e40af;
  box-shadow: 0 0 0 1px rgba(37, 99, 235, 0.3);
}
#china-city-comparison .cn-compare-actions .btn-primary:focus-visible {
  outline: 2px solid #93c5fd;
  outline-offset: 2px;
}
#china-city-comparison .cn-compare-actions .btn-primary[disabled] {
  background: #93c5fd;
  border-color: #93c5fd;
  color: #eff6ff;
  box-shadow: none;
  opacity: 1;
  cursor: not-allowed;
}
#china-city-comparison .cn-compare-actions .btn-secondary {
  appearance: none;
  -webkit-appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 40px;
  height: 40px;
  padding: 0 14px;
  border-radius: 6px;
  border: 1px solid #cbd5e1;
  background: #fff;
  color: #334155;
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1;
  box-shadow: none;
  cursor: pointer;
}
#china-city-comparison .cn-compare-actions .btn-secondary:hover:not([disabled]) {
  background: #f8fafc;
  border-color: #94a3b8;
  color: #1e293b;
}
#china-city-comparison .cn-compare-actions .btn-secondary:active:not([disabled]) {
  background: #f1f5f9;
  border-color: #94a3b8;
}
#china-city-comparison .cn-compare-actions .btn-secondary:focus-visible {
  outline: 2px solid #93c5fd;
  outline-offset: 2px;
}
#china-city-comparison .cn-compare-actions .btn-secondary[disabled] {
  opacity: 1;
  cursor: not-allowed;
  color: #334155;
  background: #fff;
  border-color: #cbd5e1;
}
#china-city-comparison .cn-compare-text-btn {
  appearance: none;
  -webkit-appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 40px;
  height: 40px;
  padding: 0 10px;
  border: 1px solid transparent;
  border-radius: 6px;
  background: transparent;
  color: #64748b;
  font-size: 0.8125rem;
  font-weight: 500;
  line-height: 1;
  cursor: pointer;
  text-decoration: none;
  box-shadow: none;
}
#china-city-comparison .cn-compare-text-btn:hover:not([disabled]) {
  color: #334155;
  background: #f8fafc;
}
#china-city-comparison .cn-compare-text-btn:focus-visible {
  outline: 2px solid #93c5fd;
  outline-offset: 2px;
}
#china-city-comparison .cn-compare-text-btn[disabled] {
  opacity: 1;
  cursor: not-allowed;
  color: #64748b;
  background: transparent;
}
#china-city-comparison .cn-compare-action-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  line-height: 0;
  color: currentColor;
}
#china-city-comparison .cn-compare-action-icon svg {
  display: block;
  width: 16px;
  height: 16px;
}
#china-city-comparison .cn-compare-status,
#china-city-comparison .cn-compare-error {
  margin: 8px 0 0;
  font-size: 0.8125rem;
  line-height: 1.4;
  color: var(--color-muted);
}
#china-city-comparison .cn-compare-status:focus {
  outline: 2px solid #93c5fd;
  outline-offset: 2px;
}
#china-city-comparison .cn-compare-status[hidden] {
  display: none;
}
#china-city-comparison .cn-compare-result-shell {
  /* Sole spacing owner between Coverage Details and the result card. */
  margin-top: 10px;
  position: relative;
  border: none;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  overflow: visible;
}
/*
 * Empty / loading / error / dirty: Net Pay Estimate mask stack
 * (ghost underlayer + frost overlay + dimmed body, section-mask viewport).
 */
#china-city-comparison .cn-compare-result-mask {
  position: relative;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  overflow: hidden;
}
#china-city-comparison .cn-compare-result-shell[data-cn-compare-result-state='empty'] .cn-compare-result-mask,
#china-city-comparison .cn-compare-result-shell[data-cn-compare-result-state='loading'] .cn-compare-result-mask,
#china-city-comparison .cn-compare-result-shell[data-cn-compare-result-state='error'] .cn-compare-result-mask,
#china-city-comparison .cn-compare-result-shell[data-cn-compare-result-state='dirty'] .cn-compare-result-mask {
  min-height: var(--section-mask-viewport-min);
  max-height: var(--section-mask-viewport-max);
  overflow: hidden;
}
#china-city-comparison .cn-compare-result-shell[data-cn-compare-result-state='live'] .cn-compare-result-mask {
  min-height: 0;
  max-height: none;
  overflow: visible;
}
#china-city-comparison .result-mask-ghost--cn-compare {
  display: none;
  flex-direction: column;
  padding: 12px 14px 14px;
  box-sizing: border-box;
}
#china-city-comparison .cn-compare-result-shell[data-cn-compare-result-state='empty'] .result-mask-ghost--cn-compare,
#china-city-comparison .cn-compare-result-shell[data-cn-compare-result-state='loading'] .result-mask-ghost--cn-compare,
#china-city-comparison .cn-compare-result-shell[data-cn-compare-result-state='error'] .result-mask-ghost--cn-compare {
  display: flex;
}
#china-city-comparison .mask-skel--cn-compare-layout {
  gap: 8px;
}
#china-city-comparison .cn-compare-result-empty,
#china-city-comparison .cn-compare-result-loading,
#china-city-comparison .cn-compare-result-error,
#china-city-comparison .cn-compare-dirty-overlay {
  /* Shared .result-mask-frost absolute inset glass; shown per shell state below */
  z-index: 5;
}
#china-city-comparison .cn-compare-result-shell[data-cn-compare-result-state='empty'] .cn-compare-result-empty:not([hidden]),
#china-city-comparison .cn-compare-result-shell[data-cn-compare-result-state='loading'] .cn-compare-result-loading:not([hidden]),
#china-city-comparison .cn-compare-result-shell[data-cn-compare-result-state='error'] .cn-compare-result-error:not([hidden]),
#china-city-comparison .cn-compare-result-shell[data-cn-compare-result-state='dirty'] .cn-compare-dirty-overlay:not([hidden]) {
  display: flex;
}
#china-city-comparison .cn-compare-result-empty[hidden],
#china-city-comparison .cn-compare-result-loading[hidden],
#china-city-comparison .cn-compare-result-error[hidden],
#china-city-comparison .cn-compare-dirty-overlay[hidden],
#china-city-comparison .cn-compare-results-cluster[hidden] {
  display: none !important;
}
#china-city-comparison .cn-compare-result-empty-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 8px;
  max-width: 26rem;
  margin: 0 auto;
}
#china-city-comparison .cn-compare-result-empty-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  color: #cbd5e1;
  opacity: 0.92;
  line-height: 0;
  pointer-events: none;
}
#china-city-comparison .cn-compare-result-empty-visual svg {
  display: block;
  width: 96px;
  height: 96px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
#china-city-comparison .cn-compare-result-empty-title,
#china-city-comparison .cn-compare-result-loading-text,
#china-city-comparison .cn-compare-result-error-text {
  margin: 0;
  font-size: 0.9375rem;
  font-weight: 400;
  line-height: 1.4;
  color: #334155;
}
#china-city-comparison .cn-compare-result-empty .cn-compare-result-empty-title {
  /* Tighten icon-to-text block spacing to match the main empty state. */
  margin-top: -4px;
  color: var(--overlay-prompt-color);
  font-weight: 500;
}
#china-city-comparison .cn-compare-result-empty-helper {
  margin: 0;
  max-width: 24rem;
  /* Match Net Pay Estimate empty helper (.result-mask-frost .empty-state-message) */
  font-size: var(--overlay-prompt-fs);
  font-weight: 500;
  line-height: var(--overlay-prompt-lh);
  color: var(--overlay-prompt-color);
  opacity: 1;
  text-shadow: var(--overlay-prompt-ts);
}
#china-city-comparison .cn-compare-result-empty .result-mask-frost__inner,
#china-city-comparison .cn-compare-result-loading .result-mask-frost__inner,
#china-city-comparison .cn-compare-result-error .result-mask-frost__inner {
  flex: 0 1 auto;
  align-self: center;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
#china-city-comparison .cn-compare-results-cluster {
  position: relative;
  display: block;
  overflow: visible;
  border: none;
  background: transparent;
  box-shadow: none;
  border-radius: inherit;
  z-index: 1;
}
/* Dirty: dim committed results under one frost overlay (Net Pay stale parity). */
#china-city-comparison .cn-compare-result-shell[data-cn-compare-result-state='dirty'] .cn-compare-results-cluster {
  overflow: visible;
  background: transparent;
  box-shadow: none;
  border: none;
  border-radius: inherit;
}
/* Dirty: keep single shared result card; dimming comes from results opacity */
#china-city-comparison .cn-compare-result-shell[data-cn-compare-result-state='dirty'] .cn-compare-primary-card {
  background: #fff;
  border: var(--border-card);
  box-shadow: none;
}
#china-city-comparison .cn-compare-result-shell[data-cn-compare-result-state='dirty'] .cn-compare-table-wrap {
  background: transparent;
  border: none;
  box-shadow: none;
}
#china-city-comparison .cn-compare-results {
  margin-top: 0;
}
#china-city-comparison .cn-compare-results-inner {
  display: flex;
  flex-direction: column;
  gap: 0;
}
#china-city-comparison .cn-compare-detail-section {
  display: flex;
  flex-direction: column;
  /* Sole spacing: divider → Detailed Comparison heading → table. */
  gap: 8px;
  margin: 10px 0 0;
  padding: 10px 0 0;
  border: none;
  border-top: 1px solid #e2e8f0;
  background: transparent;
  box-shadow: none;
}
#china-city-comparison .cn-compare-result-shell[data-cn-compare-result-state='dirty'] .cn-compare-results {
  /* Match #cn-results-wrap.results-stale */
  opacity: 0.5;
  filter: saturate(0.82) contrast(0.88) brightness(0.98);
  pointer-events: none;
  user-select: none;
}
#china-city-comparison .cn-compare-dirty-overlay {
  z-index: 6;
  border-radius: inherit;
}
#china-city-comparison .cn-compare-dirty-overlay .result-mask-frost__inner {
  flex: 0 1 auto;
  align-self: center;
  flex-direction: column;
  width: 100%;
  max-width: min(34rem, calc(100% - 1rem));
}
#china-city-comparison .cn-compare-dirty-overlay .gst-stale-overlay-copy {
  padding: 0 !important;
  border: none !important;
  background: transparent !important;
  box-shadow: none !important;
}
@media (max-width: 768px) {
  #china-city-comparison .cn-compare-result-empty-visual svg {
    width: 84px;
    height: 84px;
  }
}
/* One shared outer result card for summary + Detailed Comparison */
#china-city-comparison .cn-compare-primary-card {
  margin: 0;
  padding: 14px;
  border: var(--border-card);
  border-radius: 12px;
  background: #fff;
  box-shadow: none;
  box-sizing: border-box;
}
/* Table scroll wrapper only — no nested card chrome */
#china-city-comparison .cn-compare-table-card,
#china-city-comparison .cn-compare-table-wrap[data-cn-compare-table-card] {
  margin: 0;
  padding: 0;
  border: none;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  box-sizing: border-box;
}
#china-city-comparison .cn-compare-summary-panel,
#china-city-comparison .cn-compare-chart-card {
  display: none !important;
}
/* Result header: title + availability on row 1, metadata on row 2 */
#china-city-comparison .cn-compare-result-header,
#china-city-comparison .cn-compare-status-strip {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  flex-wrap: nowrap;
  /* Sole spacing: header primary ↔ metadata */
  gap: 4px;
  /* Sole spacing: header → city results / chart */
  margin: 0 0 6px;
}
#china-city-comparison .cn-compare-result-header-primary {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 4px 12px;
  width: 100%;
  min-width: 0;
}
#china-city-comparison .cn-compare-primary-card .cn-compare-result-context {
  display: block;
  width: 100%;
  margin: 0;
  color: var(--color-muted);
  font-size: var(--font-muted) !important;
  font-weight: 400 !important;
  line-height: 1.4;
  letter-spacing: normal;
}
#china-city-comparison .cn-compare-context-item {
  display: none;
}
#china-city-comparison .cn-compare-primary-card .cn-compare-summary {
  margin: 0;
  font-size: 13px;
  font-weight: 400;
  color: var(--color-muted);
  line-height: 1.4;
}
#china-city-comparison .cn-compare-primary-card .cn-compare-summary-text {
  display: block;
  flex: 1 1 auto;
  width: auto;
  max-width: 100%;
  margin: 0;
  margin-left: auto;
  text-align: right;
  font-size: 13px !important;
  font-weight: 400 !important;
  color: var(--color-muted);
  line-height: 1.4;
}
/* ≤1024: availability + Net Pay Range on the left content edge (desktop keeps right rail) */
@media (max-width: 1024px) {
  #china-city-comparison .cn-compare-result-header-primary {
    flex-direction: column;
    align-items: stretch;
  }
  #china-city-comparison .cn-compare-primary-card .cn-compare-summary-text {
    margin-left: 0;
    text-align: left;
    width: 100%;
  }
}
#china-city-comparison .cn-compare-primary-card .cn-compare-summary-sep {
  color: var(--color-muted);
  font-weight: 400;
}
#china-city-comparison .cn-compare-primary-card .cn-compare-summary-row {
  display: none;
}
#china-city-comparison .cn-compare-primary-card .cn-compare-summary-empty {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 0;
  width: 100%;
}
#china-city-comparison .cn-compare-primary-card .cn-compare-summary-message {
  margin: 0;
  font-size: 15px !important;
  font-weight: 500 !important;
  color: var(--color-title);
  line-height: 1.4;
}
#china-city-comparison .cn-compare-primary-card .cn-compare-summary-helper {
  margin: 0;
  font-size: var(--fs-muted, 0.8125rem) !important;
  font-weight: 400 !important;
  color: var(--color-muted);
  line-height: 1.35;
}
#china-city-comparison .cn-compare-primary-card .cn-compare-summary-availability {
  font-size: inherit !important;
  font-weight: 400 !important;
  color: #047857;
}
#china-city-comparison .cn-compare-primary-card .cn-compare-summary-attention {
  font-size: inherit !important;
  font-weight: 400 !important;
  color: #9a3412;
}
#china-city-comparison .cn-compare-primary-card .cn-compare-summary-metric {
  display: inline;
  white-space: normal;
}
#china-city-comparison .cn-compare-primary-card .cn-compare-summary-metric-label {
  font-size: inherit !important;
  font-weight: 400 !important;
  color: var(--color-muted);
}
#china-city-comparison .cn-compare-primary-card .cn-compare-summary-metric-value {
  font-size: inherit !important;
  font-weight: 600 !important;
  color: var(--color-body);
  font-variant-numeric: tabular-nums;
  line-height: inherit;
}
#china-city-comparison .cn-compare-two-city,
#china-city-comparison .cn-compare-baseline-summary,
#china-city-comparison .cn-compare-baseline-notice {
  margin: 4px 0 0;
  font-size: var(--font-sm);
  color: var(--color-muted);
}
#china-city-comparison .cn-compare-baseline-notice { color: #92400e; }
#china-city-comparison .cn-compare-coverage-counts {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 4px 0 0;
}
#china-city-comparison .cn-compare-count-badge.cn-compare-status-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.25;
}
#china-city-comparison .cn-compare-primary-card h3.cn-compare-chart-title,
#china-city-comparison .cn-compare-primary-card .cn-compare-chart-title {
  flex: 1 1 auto;
  min-width: min(12rem, 100%);
  margin: 0;
  padding: 0;
  font-size: 16px !important;
  font-weight: 600 !important;
  color: var(--color-title);
  line-height: 1.35;
  letter-spacing: normal;
}
#china-city-comparison .cn-compare-primary-card .cn-compare-result-header + .cn-compare-chart-title,
#china-city-comparison .cn-compare-primary-card .cn-compare-status-strip + .cn-compare-chart-title,
#china-city-comparison .cn-compare-primary-card .cn-compare-summary + .cn-compare-chart-title,
#china-city-comparison .cn-compare-primary-card .cn-compare-baseline-notice + .cn-compare-chart-title,
#china-city-comparison .cn-compare-primary-card .cn-compare-coverage-counts + .cn-compare-chart-title,
#china-city-comparison .cn-compare-primary-card .cn-compare-result-header + .cn-compare-compact-list,
#china-city-comparison .cn-compare-primary-card .cn-compare-result-header + .cn-compare-bar-chart,
#china-city-comparison .cn-compare-primary-card .cn-compare-status-strip + .cn-compare-compact-list,
#china-city-comparison .cn-compare-primary-card .cn-compare-status-strip + .cn-compare-bar-chart {
  margin-top: 0;
}
#china-city-comparison .cn-compare-primary-card .cn-compare-bar-chart {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 0;
  padding: 0;
}
#china-city-comparison .cn-compare-primary-card .cn-compare-compact-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 0;
  padding: 0;
}
#china-city-comparison .cn-compare-primary-card .cn-compare-compact-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 26px;
  padding: 1px 0;
}
#china-city-comparison .cn-compare-primary-card .cn-compare-compact-city {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  min-width: 0;
}
#china-city-comparison .cn-compare-primary-card .cn-compare-compact-value {
  flex: 0 0 auto;
  font-size: var(--font-sm);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--color-body);
  text-align: right;
  white-space: nowrap;
  line-height: var(--line-tight);
}
#china-city-comparison .cn-compare-primary-card .cn-compare-compact-value.cn-compare-unavailable-value,
#china-city-comparison .cn-compare-unavailable-value,
#china-city-comparison .cn-compare-table tbody td.cn-compare-num.cn-compare-unavailable-value,
#china-city-comparison .cn-compare-table tbody td.cn-compare-num .cn-compare-muted-result,
#china-city-comparison .cn-compare-muted-result {
  font-size: 0.875rem !important;
  font-weight: 400 !important;
  line-height: 1.2 !important;
  letter-spacing: normal;
  color: var(--color-muted);
  font-variant-numeric: tabular-nums;
}
/* Baseline difference uses shared US table body text, not muted Not available. */
#china-city-comparison .cn-compare-difference--baseline,
#china-city-comparison .cn-compare-table tbody td.cn-compare-num .cn-compare-difference--baseline {
  font-size: inherit;
  font-weight: 400;
  line-height: inherit;
  letter-spacing: normal;
  color: var(--color-body);
  font-variant-numeric: tabular-nums;
}
#china-city-comparison .cn-compare-primary-card .cn-compare-compact-value.cn-compare-unavailable-value {
  text-align: right;
}
#china-city-comparison .cn-compare-unavailable-value {
  text-align: left;
}
#china-city-comparison .cn-compare-primary-card .cn-compare-bar-row {
  display: grid;
  grid-template-columns: minmax(112px, 11.5rem) minmax(0, 1fr) 7.5rem;
  gap: 4px 12px;
  align-items: center;
  min-height: 18px;
}
#china-city-comparison .cn-compare-primary-card .cn-compare-bar-row--availability-only {
  grid-template-columns: minmax(0, 1fr);
}
#china-city-comparison .cn-compare-primary-card .cn-compare-bar-label {
  display: inline-flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 6px;
  min-width: 0;
  max-width: 100%;
  min-height: 18px;
}
#china-city-comparison .cn-compare-primary-card .cn-compare-bar-label .cn-compare-city-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
#china-city-comparison .cn-compare-primary-card .cn-compare-bar-track {
  height: 6px;
  border-radius: 999px;
  background: #eef2f7;
  border: none;
  overflow: hidden;
  box-sizing: border-box;
}
#china-city-comparison .cn-compare-primary-card .cn-compare-bar-fill {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: #2563eb;
  min-width: 0;
}
#china-city-comparison .cn-compare-primary-card .cn-compare-bar-value {
  font-size: var(--font-sm) !important;
  font-weight: 600 !important;
  font-variant-numeric: tabular-nums;
  color: var(--color-body);
  white-space: nowrap;
  text-align: right;
  line-height: var(--line-tight);
}
#china-city-comparison .cn-compare-primary-card .cn-compare-bar-row--unavailable .cn-compare-bar-status {
  display: flex;
  align-items: center;
  min-width: 0;
}
#china-city-comparison .cn-compare-primary-card .cn-compare-bar-row--unavailable .cn-compare-bar-track {
  display: none;
}
#china-city-comparison .cn-compare-primary-card .cn-compare-bar-value--unavailable {
  color: #64748b;
  font-weight: 500 !important;
  font-size: 14px !important;
}
#china-city-comparison .cn-compare-primary-card .cn-compare-bar-value--empty {
  min-height: 1px;
}
#china-city-comparison .cn-compare-primary-card .cn-compare-baseline-badge,
#china-city-comparison .cn-compare-primary-card .cn-compare-bar-label .cn-compare-status-badge {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  white-space: nowrap;
  font-size: 11px !important;
  font-weight: 600 !important;
  padding: 1px 6px;
  line-height: 1.2;
  vertical-align: middle;
}
#china-city-comparison .cn-compare-primary-card .cn-compare-disclosure,
#china-city-comparison .cn-compare-primary-card .cn-compare-nofallback-note {
  margin: 16px 0 0;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.4;
  color: var(--color-muted);
}
#china-city-comparison .cn-compare-primary-card .cn-compare-nofallback-note {
  margin-top: 16px;
  margin-bottom: 0;
  color: var(--color-muted);
}
#china-city-comparison .cn-compare-primary-card .cn-compare-disclosure:last-child,
#china-city-comparison .cn-compare-primary-card .cn-compare-nofallback-note:last-child {
  margin-bottom: 0;
}
#china-city-comparison .cn-compare-table-heading {
  margin: 0;
  font-size: 0.9375rem;
  font-weight: 600;
  /* Match US secondary table heading (.compare-states-table-heading) */
  color: var(--color-muted);
}
#china-city-comparison .cn-compare-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  max-width: 100%;
  border: none;
  border-radius: 0;
}
#china-city-comparison .cn-compare-table {
  width: 100%;
  border-collapse: collapse;
  border-spacing: 0;
  font-size: 0.8125rem;
  min-width: 560px;
  table-layout: fixed;
}
/* ≤1180: widen scroll canvas so nowrap headers are not clipped (phones / portrait tablets). */
@media (max-width: 1180px) {
  #china-city-comparison .cn-compare-table {
    min-width: 880px;
  }
}
/*
 * Touch iPad landscape (1024–1366): roomy scrollable table with explicit column tracks.
 * Uses hover/pointer so mouse desktops at similar widths (e.g. 1366) stay on desktop sizing.
 */
@media (hover: none) and (pointer: coarse) and (orientation: landscape) and (min-width: 1024px) and (max-width: 1366px) {
  #china-city-comparison .cn-compare-table {
    min-width: 1040px;
  }
  #china-city-comparison .cn-compare-col-city { width: 160px; }
  #china-city-comparison .cn-compare-col-status { width: 112px; }
  #china-city-comparison .cn-compare-col-tax { width: 124px; }
  #china-city-comparison .cn-compare-col-contrib { width: 236px; }
  #china-city-comparison .cn-compare-col-net { width: 148px; }
  #china-city-comparison .cn-compare-col-diff { width: 200px; }
}
#china-city-comparison .cn-compare-col-city { width: 18%; }
#china-city-comparison .cn-compare-col-status { width: 12%; }
#china-city-comparison .cn-compare-col-tax { width: 13%; }
#china-city-comparison .cn-compare-col-contrib { width: 21%; }
#china-city-comparison .cn-compare-col-net { width: 16%; }
#china-city-comparison .cn-compare-col-diff { width: 20%; }
#china-city-comparison .cn-compare-table th,
#china-city-comparison .cn-compare-table td {
  padding: 10px 12px;
  text-align: left;
  border: none;
  border-left: none;
  border-right: none;
  border-bottom: 1px solid #eef2f7;
  vertical-align: top;
  box-shadow: none;
}
#china-city-comparison .cn-compare-table thead th {
  /* Match US Full Ranking header tokens */
  font-weight: 600;
  font-size: var(--font-xs);
  color: var(--color-muted);
  background: #f1f5f9;
  white-space: nowrap;
  border-bottom: 1px solid #e2e8f0;
  padding: 10px 12px;
  vertical-align: middle;
}
#china-city-comparison .cn-compare-table thead th.cn-compare-num-head,
#china-city-comparison .cn-compare-table td.cn-compare-num {
  text-align: right;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
#china-city-comparison .cn-compare-table tbody td.cn-compare-num,
#china-city-comparison .cn-compare-table tbody th.cn-compare-text {
  font-size: var(--font-sm);
  color: var(--color-body);
  line-height: var(--line-body);
}
#china-city-comparison .cn-compare-table tbody td.cn-compare-num {
  font-weight: 400;
}
#china-city-comparison .cn-compare-table thead th.cn-compare-text-head,
#china-city-comparison .cn-compare-table td.cn-compare-text {
  text-align: left;
}
#china-city-comparison .cn-compare-table thead th.cn-compare-status-head,
#china-city-comparison .cn-compare-table td.cn-compare-status-cell {
  text-align: center;
}
/* Move only the Employee contributions header ~12px right; body values stay put */
#china-city-comparison .cn-compare-table thead th.cn-compare-contrib-head {
  padding-left: 24px;
}
#china-city-comparison .cn-compare-table td.cn-compare-contrib-cell {
  padding-left: 12px;
}
#china-city-comparison .cn-compare-table tbody th {
  font-weight: 500;
  color: var(--color-body);
}
#china-city-comparison .cn-compare-city-cell {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  /* Sole spacing between city name, helper, and Show/Hide Details. */
  gap: 2px;
  min-width: 0;
}
#china-city-comparison .cn-compare-city-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  min-width: 0;
  max-width: 100%;
}
#china-city-comparison .cn-compare-city-helper.cn-field-hint {
  margin: 0;
  max-width: 100%;
}
#china-city-comparison .cn-compare-city-name {
  min-width: 0;
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
  font-size: var(--font-sm);
  font-weight: 500;
  color: var(--color-body);
  line-height: var(--line-tight);
  letter-spacing: normal;
}
#china-city-comparison .cn-compare-status-badge {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 600;
  padding: 0 5px;
  line-height: 1.25;
  border-radius: 4px;
  background: #f1f5f9;
  color: #334155;
}
#china-city-comparison .cn-compare-status-badge--available {
  background: #f0fdf4;
  color: #059669;
  font-weight: 500;
}
#china-city-comparison .cn-compare-status-badge--pending {
  background: #fff7ed;
  color: #c2410c;
}
#china-city-comparison .cn-compare-status-badge--requires_input,
#china-city-comparison .cn-compare-status-badge--invalid_input {
  background: #eff6ff;
  color: #1d4ed8;
}
#china-city-comparison .cn-compare-status-badge--unsupported_mode,
#china-city-comparison .cn-compare-status-badge--calculation_error {
  background: #fef2f2;
  color: #b91c1c;
}
#china-city-comparison .cn-compare-status-cell {
  white-space: nowrap;
  vertical-align: middle;
}
/* Legacy reason-row chrome removed — explanations sit under the city name. */
#china-city-comparison .cn-compare-reason-row {
  display: none;
}
#china-city-comparison .cn-compare-reason-row td,
#china-city-comparison .cn-compare-reason-text {
  display: none;
}
#china-city-comparison .cn-compare-result-row--baseline th,
#china-city-comparison .cn-compare-result-row--baseline td {
  background: transparent;
  box-shadow: none;
  border-left: none;
  border-right: none;
}
#china-city-comparison .cn-compare-baseline-badge {
  display: inline-block;
  flex: 0 0 auto;
  margin-left: 0;
  padding: 1px 7px;
  border-radius: 4px;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  color: #475569;
  font-size: 0.7rem;
  font-weight: 600;
  vertical-align: middle;
}
#china-city-comparison .cn-compare-detail-toggle {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin: 0;
  /* Compact visual line; padding keeps a usable tap target. */
  padding: 2px 0;
  min-height: 24px;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: #2563eb;
  font: inherit;
  font-size: 0.6875rem;
  font-weight: 500;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
}
#china-city-comparison .cn-compare-detail-toggle-label {
  line-height: 1.2;
}
#china-city-comparison .cn-compare-detail-toggle:hover {
  color: #1d4ed8;
  background: transparent;
  text-decoration: none;
}
#china-city-comparison .cn-compare-detail-toggle:focus-visible {
  outline: 2px solid #93c5fd;
  outline-offset: 2px;
}
#china-city-comparison .cn-compare-detail-chevron {
  display: inline-block;
  width: 0.3rem;
  height: 0.3rem;
  flex: 0 0 auto;
  margin-top: -0.05rem;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(-45deg);
  transition: transform 0.12s ease;
}
#china-city-comparison .cn-compare-detail-chevron.is-open { transform: rotate(45deg); }
#china-city-comparison .cn-compare-difference { font-variant-numeric: tabular-nums; }
/* Match United States State Net Pay Comparison difference colors */
#china-city-comparison .cn-compare-difference--positive {
  color: #059669;
  font-weight: 500;
}
#china-city-comparison .cn-compare-difference--negative {
  color: #b91c1c;
  font-weight: 500;
}
/* Tinted table-row extension — not a nested card. */
#china-city-comparison .cn-compare-detail-row td {
  background: #f8fafc;
  /* Match main table cell horizontal padding; compact vertical. */
  padding: 4px 12px 6px;
  white-space: normal;
  border-bottom: 1px solid #e2e8f0;
  border-left: none;
  border-right: none;
  box-shadow: none;
}
#china-city-comparison .cn-compare-detail-row + .cn-compare-result-row th,
#china-city-comparison .cn-compare-detail-row + .cn-compare-result-row td {
  border-top: 1px solid #e2e8f0;
  padding-top: 8px;
}
#china-city-comparison .cn-compare-detail-panel {
  max-width: 100%;
  width: 100%;
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  border-radius: 0;
  background: transparent;
  border: none;
  box-shadow: none;
}
#china-city-comparison .cn-compare-detail-list {
  display: grid;
  /* Four equal tracks across the full detail row (table content width). */
  grid-template-columns: repeat(4, minmax(0, 1fr));
  justify-content: stretch;
  column-gap: 16px;
  row-gap: 4px;
  margin: 0;
  padding: 0;
  width: 100%;
  max-width: none;
  box-sizing: border-box;
}
#china-city-comparison .cn-compare-detail-item {
  min-width: 0;
  width: 100%;
  margin: 0;
  text-align: left;
}
/* Shared secondary label — supporting muted scale. */
#china-city-comparison .cn-compare-detail-label {
  margin: 0;
  font-size: var(--font-muted);
  font-weight: 400;
  line-height: var(--line-tight);
  color: var(--color-muted);
  text-align: left;
}
/* Match US compare-states-table body values (shared body color, normal weight). */
#china-city-comparison .cn-compare-detail-item dd {
  margin: 1px 0 0;
  font-size: var(--font-sm);
  font-weight: 400;
  line-height: var(--line-body);
  font-variant-numeric: tabular-nums;
  color: var(--color-body);
  text-align: left;
}

@media (max-width: 1024px) {
  #china-city-comparison .cn-compare-settings-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: 460px;
  }
  #china-city-comparison .cn-compare-row-grid {
    grid-template-columns: 52px minmax(0, 1fr) auto;
  }
  #china-city-comparison .cn-compare-field--city select,
  #china-city-comparison .cn-compare-nested-option select {
    max-width: none;
  }
}
@media (max-width: 768px) {
  #china-city-comparison .cn-compare-settings-grid {
    grid-template-columns: 1fr;
    max-width: none;
  }
  #china-city-comparison .cn-compare-row-grid {
    grid-template-columns: minmax(0, 1fr);
    row-gap: 6px;
  }
  #china-city-comparison .cn-compare-row-index { padding-top: 0; }
  #china-city-comparison .cn-compare-row-aside {
    width: auto;
    min-width: 0;
    max-width: none;
    grid-template-columns: auto auto;
    justify-content: start;
    gap: 10px;
  }
  #china-city-comparison .cn-compare-field--baseline-empty {
    display: none;
  }
  #china-city-comparison .cn-compare-coverage-legend {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  #china-city-comparison .cn-compare-actions {
    flex-direction: column;
    align-items: stretch;
  }
  #china-city-comparison .cn-compare-actions .btn-primary { width: 100%; }
  #china-city-comparison .cn-compare-actions-secondary {
    display: flex;
    width: 100%;
    gap: 10px;
  }
  #china-city-comparison .cn-compare-actions .btn-secondary,
  #china-city-comparison .cn-compare-actions .cn-compare-text-btn {
    flex: 1 1 auto;
    text-align: center;
  }
  #china-city-comparison .cn-compare-primary-card .cn-compare-bar-row {
    grid-template-columns: minmax(0, 1fr) 7rem;
    gap: 8px 12px;
  }
  #china-city-comparison .cn-compare-primary-card .cn-compare-bar-row--availability-only {
    grid-template-columns: minmax(0, 1fr);
  }
  #china-city-comparison .cn-compare-primary-card .cn-compare-bar-label {
    grid-column: 1 / -1;
  }
  #china-city-comparison .cn-compare-primary-card .cn-compare-bar-value { text-align: right; }
  #china-city-comparison .cn-compare-row-note { margin-left: 0; }
}
@media (max-width: 430px) {
  #china-city-comparison .cn-compare-input-card { padding: 0; }
  #china-city-comparison .cn-compare-actions .btn-secondary,
  #china-city-comparison .cn-compare-actions .cn-compare-text-btn { width: 100%; }
  #china-city-comparison .cn-compare-actions-secondary { flex-direction: column; }
}

/* ---------- City Policy Coverage MVP ---------- */
.calc-content > #china-city-policy-coverage.page-section {
  margin-top: 0;
  margin-bottom: var(--section-divider-gap);
  /* Match City Net Pay Comparison: equal space below the section divider. */
  padding: var(--section-divider-gap) 0 0;
  border-top: 1px solid rgba(226, 232, 240, 0.9);
  background: transparent;
  box-shadow: none;
  border-left: none;
  border-right: none;
  border-bottom: none;
  border-radius: 0;
  scroll-margin-top: calc(var(--header-h, 72px) + 12px);
}
#china-city-policy-coverage .cn-policy-coverage-header {
  margin-bottom: 0;
}
#china-city-policy-coverage > .cn-policy-coverage-header > .section-title {
  font-size: var(--font-h3);
  font-weight: 600;
  color: var(--color-title);
  line-height: var(--line-tight);
  letter-spacing: normal;
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 4px;
}
/* Sole gap: coverage intro → dynamic summary (~10px). */
#china-city-policy-coverage .cn-compare-description {
  margin-bottom: 10px;
}
#china-city-policy-coverage .cn-policy-coverage-summary-host {
  /* Sole gap: summary → selectors (~22px). Natural height only — no loading placeholder height. */
  margin: 0 0 22px;
}
#china-city-policy-coverage .cn-policy-coverage-summary {
  margin: 0;
  padding: 0;
  border: none;
  background: transparent;
  visibility: visible;
}
#china-city-policy-coverage .cn-policy-coverage-summary-text {
  margin: 0;
  max-width: none;
  width: 100%;
  font-size: 0.8125rem;
  font-weight: 400;
  line-height: 1.45;
  color: var(--color-muted);
  white-space: normal;
}
#china-city-policy-coverage .cn-policy-coverage-summary-num {
  font-weight: 600;
  color: var(--color-title);
  font-variant-numeric: tabular-nums;
}
#china-city-policy-coverage .cn-policy-coverage-selectors {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: flex-start;
  gap: 10px 14px;
  /* Selectors → empty state / result: single controlling gap (~14px). */
  margin: 0 0 14px;
  max-width: 36rem;
}
#china-city-policy-coverage .cn-policy-coverage-selector-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
#china-city-policy-coverage .cn-policy-coverage-selector-field--province,
#china-city-policy-coverage .cn-policy-coverage-selector-field--city {
  flex: 1 1 12rem;
  max-width: 14rem;
}
#china-city-policy-coverage .cn-policy-coverage-selector-label {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--color-muted);
  line-height: 1.3;
}
/* Mobile / iPad: Clear sits on the City label row so Province and City selects share width. */
#china-city-policy-coverage .cn-policy-coverage-city-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-width: 0;
  width: 100%;
}
#china-city-policy-coverage .cn-policy-coverage-city-label-row .cn-policy-coverage-selector-label {
  flex: 1 1 auto;
  min-width: 0;
  margin: 0;
}
#china-city-policy-coverage .cn-policy-coverage-city-label-row .cn-policy-coverage-text-btn {
  flex: 0 0 auto;
  white-space: nowrap;
}
#china-city-policy-coverage .cn-policy-coverage-selector-field--city > .cn-policy-coverage-selector-control {
  width: 100%;
  min-width: 0;
}
/*
 * Desktop: keep Clear to the right of the City select (previous visual).
 * Label-row uses display:contents so Clear can occupy the select row.
 * Column gap only applies when Clear is visible so empty state widths match.
 */
@media (min-width: 1181px) {
  #china-city-policy-coverage .cn-policy-coverage-selector-field--city {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto auto;
    column-gap: 0;
    row-gap: 4px;
    align-items: center;
  }
  #china-city-policy-coverage .cn-policy-coverage-selector-field--city:has(.cn-policy-coverage-text-btn:not([hidden])) {
    grid-template-columns: minmax(0, 1fr) auto;
    column-gap: 10px;
  }
  #china-city-policy-coverage .cn-policy-coverage-city-label-row {
    display: contents;
  }
  #china-city-policy-coverage .cn-policy-coverage-selector-field--city > .cn-policy-coverage-city-label-row > .cn-policy-coverage-selector-label {
    grid-column: 1;
    grid-row: 1;
  }
  #china-city-policy-coverage .cn-policy-coverage-selector-field--city > .cn-policy-coverage-city-label-row > .cn-policy-coverage-text-btn:not([hidden]) {
    grid-column: 2;
    grid-row: 2;
    align-self: center;
    justify-self: start;
  }
  #china-city-policy-coverage .cn-policy-coverage-selector-field--city > .cn-policy-coverage-selector-control {
    grid-column: 1;
    grid-row: 2;
    width: 100%;
    min-width: 0;
  }
}
/*
 * Touch iPad landscape: keep Clear on the City label row so Province/City selects match width.
 * Overrides the desktop (≥1181) Clear-beside-select grid without affecting mouse desktops.
 */
@media (hover: none) and (pointer: coarse) and (orientation: landscape) and (min-width: 1181px) and (max-width: 1366px) {
  #china-city-policy-coverage .cn-policy-coverage-selector-field--city,
  #china-city-policy-coverage .cn-policy-coverage-selector-field--city:has(.cn-policy-coverage-text-btn:not([hidden])) {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    grid-template-columns: none;
    grid-template-rows: none;
    column-gap: 0;
  }
  #china-city-policy-coverage .cn-policy-coverage-city-label-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    min-width: 0;
    width: 100%;
  }
  #china-city-policy-coverage .cn-policy-coverage-selector-field--city > .cn-policy-coverage-city-label-row > .cn-policy-coverage-selector-label,
  #china-city-policy-coverage .cn-policy-coverage-selector-field--city > .cn-policy-coverage-city-label-row > .cn-policy-coverage-text-btn:not([hidden]),
  #china-city-policy-coverage .cn-policy-coverage-selector-field--city > .cn-policy-coverage-selector-control {
    grid-column: auto;
    grid-row: auto;
    justify-self: auto;
    align-self: auto;
  }
  #china-city-policy-coverage .cn-policy-coverage-selector-field--city > .cn-policy-coverage-selector-control {
    width: 100%;
    min-width: 0;
  }
  #china-city-policy-coverage .cn-policy-coverage-selector-field--province,
  #china-city-policy-coverage .cn-policy-coverage-selector-field--city {
    flex: 1 1 12rem;
    max-width: 14rem;
    min-width: 0;
  }
}
#china-city-policy-coverage .cn-policy-coverage-selector-control {
  width: 100%;
  height: 42px;
  min-height: 42px;
  box-sizing: border-box;
  border: 1px solid #d1d5db;
  border-radius: 10px;
  padding: 0 2.5rem 0 12px;
  font-size: var(--fs-body, 14px);
  font-weight: 500;
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  color: #1f2937;
  background-color: #fff;
  /* Match China page select chevron (Tax Year / Month / contribution method). */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='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 12px center;
  background-size: 16px 16px;
  line-height: normal;
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
}
#china-city-policy-coverage .cn-policy-coverage-selector-control.placeholder-state {
  color: var(--color-muted);
  font-weight: 400;
}
#china-city-policy-coverage .cn-policy-coverage-selector-control:disabled,
#china-city-policy-coverage .cn-policy-coverage-selector-control:disabled.placeholder-state {
  color: var(--color-muted);
  font-weight: 400;
  background-color: #fff;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='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 12px center;
  background-size: 16px 16px;
  border-color: #d1d5db;
  cursor: not-allowed;
  opacity: 1;
}
#china-city-policy-coverage .cn-policy-coverage-selector-control:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}
#china-city-policy-coverage .cn-policy-coverage-selector-control:focus-visible {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}
#china-city-policy-coverage .cn-policy-coverage-text-btn {
  appearance: none;
  flex: 0 0 auto;
  border: none;
  background: transparent;
  padding: 0.2rem 0.1rem;
  margin: 0;
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 1.2;
  color: var(--color-muted);
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  border-radius: 4px;
}
#china-city-policy-coverage .cn-policy-coverage-text-btn:hover {
  color: var(--color-title);
  text-decoration: underline;
  text-underline-offset: 2px;
}
#china-city-policy-coverage .cn-policy-coverage-text-btn:focus-visible {
  color: var(--color-title);
  outline: 2px solid #93c5fd;
  outline-offset: 2px;
}
#china-city-policy-coverage .cn-policy-coverage-result-host {
  /* Empty state / result → accordion: keep accordion visually separate. */
  margin: 0 0 14px;
  min-height: 0;
}
#china-city-policy-coverage .cn-policy-coverage-result-host:empty {
  margin: 0;
}
#china-city-policy-coverage .cn-policy-coverage-empty-prompt {
  margin: 0;
  padding: 0;
  font-size: 0.8125rem;
  line-height: 1.4;
  color: var(--color-muted);
}
#china-city-policy-coverage .cn-policy-coverage-result {
  margin: 0;
  padding: 8px 12px 10px;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  background: #fff;
  box-sizing: border-box;
}
#china-city-policy-coverage .cn-policy-coverage-result-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 6px 14px;
  margin: 0 0 8px;
  padding: 0 0 7px;
  border-bottom: 1px solid #eef2f7;
}
#china-city-policy-coverage .cn-policy-coverage-result-title {
  margin: 0;
  flex: 1 1 10rem;
  min-width: 0;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--color-title);
  line-height: 1.25;
}
#china-city-policy-coverage .cn-policy-coverage-result-status {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  gap: 0;
  max-width: 14rem;
  min-width: 0;
}
#china-city-policy-coverage .cn-policy-coverage-result-label {
  display: block;
  font-size: 0.6875rem;
  font-weight: 500;
  color: #94a3b8;
  line-height: 1.2;
}
#china-city-policy-coverage .cn-policy-coverage-result-status-badge {
  max-width: 14rem;
  text-align: right;
}
/* Borderless KPI row — same separator principle as US .compare-stat-item */
#china-city-policy-coverage .cn-policy-coverage-result-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  column-gap: 0;
  row-gap: 0;
  margin: 0;
  padding: 2px 0 0;
  border: none;
  background: transparent;
}
#china-city-policy-coverage .cn-policy-coverage-result-field {
  min-width: 0;
  padding: 0 10px;
  box-sizing: border-box;
}
#china-city-policy-coverage .cn-policy-coverage-result-field:first-child {
  padding-left: 0;
}
#china-city-policy-coverage .cn-policy-coverage-result-field:last-child {
  padding-right: 0;
}
#china-city-policy-coverage .cn-policy-coverage-result-field:not(:first-child) {
  border-left: 1px solid rgba(148, 163, 184, 0.4);
}
#china-city-policy-coverage .cn-policy-coverage-result-field dt {
  margin: 0 0 3px;
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: #64748b;
  line-height: 1.2;
}
#china-city-policy-coverage .cn-policy-coverage-result-field--mode dt {
  color: #94a3b8;
}
#china-city-policy-coverage .cn-policy-coverage-result-field dd {
  margin: 0;
  font-size: 0.8125rem;
  color: var(--color-title);
  font-weight: 500;
  line-height: 1.3;
}
#china-city-policy-coverage .cn-policy-coverage-requirement-helper {
  margin: 6px 0 0;
  font-size: 0.75rem;
  line-height: 1.4;
  color: var(--color-muted);
}
#china-city-policy-coverage .cn-policy-coverage-badge {
  display: inline-block;
  box-sizing: border-box;
  max-width: 100%;
  min-height: 1.3rem;
  padding: 0.08rem 0.4rem;
  border-radius: 999px;
  font-size: 0.6875rem;
  font-weight: 500;
  line-height: 1.3;
  white-space: normal;
  word-break: break-word;
  vertical-align: top;
}
#china-city-policy-coverage .cn-policy-coverage-badge--full,
#china-city-policy-coverage .cn-policy-coverage-badge--available {
  color: #047857;
  background: #ecfdf5;
}
#china-city-policy-coverage .cn-policy-coverage-badge--partial {
  color: #1d4ed8;
  background: #eff6ff;
}
#china-city-policy-coverage .cn-policy-coverage-badge--none,
#china-city-policy-coverage .cn-policy-coverage-badge--unavailable {
  color: #64748b;
  background: #f1f5f9;
}
#china-city-policy-coverage .cn-policy-coverage-badge--pending {
  color: #b45309;
  background: #fffbeb;
}
#china-city-policy-coverage .cn-policy-coverage-badge--needs-input {
  color: #0369a1;
  background: #e0f2fe;
}
#china-city-policy-coverage .cn-policy-coverage-details {
  margin: 0;
  padding: 0;
  border: none;
  background: transparent;
}
#china-city-policy-coverage .cn-policy-coverage-details-summary {
  cursor: pointer;
  list-style: none;
  font-weight: 500;
  font-size: 0.8125rem;
  color: var(--color-muted);
  padding: 0.1rem 0;
}
#china-city-policy-coverage .cn-policy-coverage-details-summary::-webkit-details-marker {
  display: none;
}
#china-city-policy-coverage .cn-policy-coverage-details-summary::before {
  content: '';
  display: inline-block;
  width: 0.32rem;
  height: 0.32rem;
  margin-right: 0.4rem;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(-45deg);
  vertical-align: 0.1rem;
  color: var(--color-muted-light);
}
#china-city-policy-coverage .cn-policy-coverage-details[open] > .cn-policy-coverage-details-summary::before {
  transform: rotate(45deg);
  vertical-align: 0.18rem;
}
#china-city-policy-coverage .cn-policy-coverage-details-body {
  margin-top: 6px;
  width: 100%;
  max-width: none;
}
#china-city-policy-coverage .cn-policy-coverage-details-body p {
  margin: 0;
  width: 100%;
  max-width: none;
  font-size: 0.8125rem;
  font-weight: 400;
  line-height: 1.5;
  color: var(--color-muted);
  white-space: normal;
}
/* Match US compare/COL reviewed footnote family */
#china-city-policy-coverage .cn-policy-coverage-reviewed.gst-module-footnote {
  margin: 4px 0 0;
  font-size: 0.7rem;
  line-height: 1.45;
  color: rgba(100, 116, 139, 0.82);
  letter-spacing: 0.01em;
}
@media (max-width: 768px) {
  #china-city-policy-coverage .cn-policy-coverage-summary-host {
    margin-bottom: 20px;
  }
  #china-city-policy-coverage .cn-policy-coverage-selectors {
    max-width: none;
    margin-bottom: 12px;
  }
  #china-city-policy-coverage .cn-policy-coverage-selector-field--province,
  #china-city-policy-coverage .cn-policy-coverage-selector-field--city {
    flex: 1 1 100%;
    max-width: none;
    min-width: 0;
  }
  #china-city-policy-coverage .cn-policy-coverage-result-status {
    align-items: flex-start;
    max-width: 100%;
  }
  #china-city-policy-coverage .cn-policy-coverage-result-status-badge {
    text-align: left;
    max-width: 100%;
  }
  #china-city-policy-coverage .cn-policy-coverage-result-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 10px;
  }
  #china-city-policy-coverage .cn-policy-coverage-result-field {
    padding: 0 8px;
  }
  #china-city-policy-coverage .cn-policy-coverage-result-field:nth-child(odd) {
    padding-left: 0;
    border-left: none;
  }
  #china-city-policy-coverage .cn-policy-coverage-result-field:nth-child(even) {
    padding-right: 0;
    border-left: 1px solid rgba(148, 163, 184, 0.4);
  }
}
@media (max-width: 430px) {
  /* Keep the 2-column KPI row from the ≤768 rule; only tighten spacing */
  #china-city-policy-coverage .cn-policy-coverage-result-grid {
    row-gap: 8px;
  }
  #china-city-policy-coverage .cn-policy-coverage-result-field {
    padding: 0 6px;
  }
  #china-city-policy-coverage .cn-policy-coverage-result-field:nth-child(odd) {
    padding-left: 0;
    border-left: none;
  }
  #china-city-policy-coverage .cn-policy-coverage-result-field:nth-child(even) {
    padding-right: 0;
    border-left: 1px solid rgba(148, 163, 184, 0.4);
  }
}
