:root {
  color-scheme: dark;
  --ink: #edf4f7;
  --muted: #9eabb2;
  --paper: #0d1216;
  --panel: #151d23;
  --panel-strong: #1d2830;
  --line: #2b3943;
  --green: #58d59f;
  --red: #ff8177;
  --blue: #84bdff;
  --shadow: none;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 50% 0%, rgba(132, 189, 255, 0.12), transparent 30rem),
    var(--paper);
  color: var(--ink);
  font-family:
    Manrope, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica,
    Arial, sans-serif;
}

button,
input,
select {
  font: inherit;
}

.page {
  width: min(1200px, calc(100% - 48px));
  margin: 0 auto;
  padding: 36px 0 42px;
}

.hero {
  padding-top: 92px;
  margin-bottom: 22px;
  text-align: center;
}

.hero-copy {
  max-width: 900px;
  margin: 0 auto;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--blue);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 0;
  font-size: clamp(3rem, 5.2vw, 4.8rem);
  line-height: 1;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 8px;
  font-size: 1.05rem;
}

.lede,
.article p,
.calculator-copy p,
.table-header p,
footer {
  color: var(--muted);
  line-height: 1.55;
}

.lede {
  max-width: 760px;
  margin-bottom: 0;
  font-size: 1.08rem;
}

.calculator,
.article,
.stat,
.table-card {
  border: 1px solid var(--line);
  border-radius: 0;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.article {
  max-width: 900px;
  margin: 0 auto 64px;
  padding: 0;
  border: 0;
}

.article p {
  margin-bottom: 1.35rem;
  font-size: 1.15rem;
  line-height: 1.6;
}

.article p:last-child {
  margin-bottom: 0;
}

.tax-dollar-figure {
  width: 66.666%;
  margin: 34px auto 38px;
}

.tax-dollar-figure img {
  display: block;
  width: 100%;
  height: auto;
}

.note {
  color: var(--ink) !important;
  font-weight: 700;
}

.calculator-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 24px;
  align-items: end;
  margin-bottom: 20px;
  padding-top: 8px;
}

.statewide-calculator {
  align-items: start;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 520px);
}

.calculator-copy {
  max-width: 720px;
}

.calculator-copy h2 {
  margin-bottom: 8px;
  font-size: clamp(2rem, 3.8vw, 3.4rem);
  line-height: 1;
}

.calculator-copy p {
  margin-bottom: 0;
}

.calculator-details {
  margin-top: 16px;
}

.calculator-details p {
  margin-bottom: 1rem;
  font-size: 1rem;
  line-height: 1.55;
}

.calculator-details p:last-child {
  margin-bottom: 0;
}

.calculator {
  display: grid;
  gap: 16px;
  padding: 18px;
}

.location-form {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 750;
}

input,
select {
  min-height: 46px;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 0;
  padding: 9px 11px;
  background: #0f151a;
  color: var(--ink);
}

input:focus,
select:focus,
button:focus-visible {
  outline: 3px solid rgba(132, 189, 255, 0.22);
  border-color: var(--blue);
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin-bottom: 28px;
  border: 1px solid var(--line);
}

.stat {
  min-height: 128px;
  padding: 20px 22px;
  display: grid;
  align-content: center;
  gap: 4px;
  border: 0;
  border-right: 1px solid var(--line);
}

.stat:last-child {
  border-right: 0;
}

.stat span,
.stat small {
  color: var(--muted);
}

.stat strong {
  font-size: clamp(2rem, 4vw, 2.8rem);
  line-height: 1;
}

.table-card {
  overflow: hidden;
}

.table-header {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.table-header p {
  margin-bottom: 0;
}

button {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 12px;
  background: #111920;
  color: var(--ink);
  cursor: pointer;
  font-weight: 800;
}

button:hover {
  border-color: var(--ink);
}

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  min-width: 780px;
  border-collapse: collapse;
  table-layout: fixed;
}

th,
td {
  padding: 10px 9px;
  border-bottom: 1px solid var(--line);
  text-align: right;
}

td {
  white-space: nowrap;
}

td small {
  display: block;
  margin-top: 7px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
}

thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: var(--panel-strong);
  color: #d9e3e8;
  font-size: 0.78rem;
  line-height: 1.15;
  text-transform: uppercase;
  white-space: normal;
  overflow-wrap: anywhere;
  text-wrap: balance;
}

tbody th,
thead th:first-child {
  text-align: left;
}

tbody tr:nth-child(even) {
  background: rgba(255, 255, 255, 0.025);
}

tbody tr:hover {
  background: rgba(132, 189, 255, 0.08);
}

.positive {
  color: var(--green);
  font-weight: 750;
}

.negative {
  color: var(--red);
  font-weight: 750;
}

.zero {
  color: var(--muted);
}

footer {
  padding: 16px 2px 0;
  font-size: 0.94rem;
}

a {
  color: var(--ink);
  font-weight: 700;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

@media (max-width: 900px) {
  .calculator-section,
  .summary-grid {
    grid-template-columns: 1fr;
  }

  .location-form {
    grid-template-columns: 1fr;
  }

  .stat {
    min-height: 110px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .stat:last-child {
    border-bottom: 0;
  }
}

@media (max-width: 560px) {
  .page {
    width: min(100% - 48px, 1200px);
    padding: 24px 0;
  }

  h1 {
    font-size: 2.75rem;
  }

  .hero {
    padding-top: 36px;
  }

  .article {
    margin-bottom: 48px;
  }

  .article p {
    font-size: 1.05rem;
  }

  .table-header {
    align-items: flex-start;
    flex-direction: column;
  }
}
