@font-face {
  font-family: "Bricolage Grotesque";
  src: url("assets/fonts/bricolage-grotesque.woff2") format("woff2");
  font-style: normal;
  font-weight: 500 800;
  font-display: swap;
}

@font-face {
  font-family: "DM Sans";
  src: url("assets/fonts/dm-sans.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
}

:root {
  color-scheme: light;
  --navy: #152a21;
  --deep: #10251c;
  --ink: #1d2d24;
  --slate: #536259;
  --teal: #256748;
  --mint: #d8f2dd;
  --lime: #c7f4ca;
  --cream: #f6f7f2;
  --line: #dce5db;
  --soft: #edf3e9;
  --gold: #d59a66;
  --shadow: 0 2px 5px #17322505, 0 14px 34px #1732250a;
  --display-face: "Bricolage Grotesque", "DM Sans", system-ui, sans-serif;
  --body-face: "DM Sans", system-ui, sans-serif;
  --radius: 20px;
  --card-space: clamp(20px, 3vw, 34px);
  --nav-height: 70px;
  accent-color: var(--teal);
}

body {
  font-family: var(--body-face);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, .brand, .big-money, .stat-aside .stat-value {
  font-family: var(--display-face);
  font-weight: 720;
}

h1, h2 {
  letter-spacing: -.052em;
}

h3, h4 {
  letter-spacing: -.035em;
}

::selection {
  background: var(--lime);
  color: var(--deep);
}

:is(button, a, input, select, summary):focus-visible {
  outline: 2px solid #31855d;
  outline-offset: 3px;
}

.container {
  width: min(1216px, calc(100% - 72px));
}

:target {
  scroll-margin-top: calc(var(--nav-height) + 18px);
}

.site-header {
  background: #fff;
  border-bottom-color: var(--line);
  backdrop-filter: none;
}

.nav {
  height: var(--nav-height);
  gap: 26px;
}

.brand {
  gap: 8px;
  color: var(--navy);
  font-size: 1.28rem;
  letter-spacing: -.06em;
}

.brand svg {
  width: 34px;
  height: 30px;
}

.brand .green {
  color: var(--teal);
}

.nav-links {
  gap: clamp(14px, 2vw, 27px);
}

.nav-links a {
  padding-block: 8px;
  color: #46574d;
  font-size: .89rem;
  font-weight: 680;
  white-space: nowrap;
}

.nav-links a:hover, .nav-links a[aria-current="page"] {
  color: var(--teal);
  text-decoration: underline;
  text-underline-offset: .38em;
}

.nav-action, .btn, .btn-secondary {
  border-radius: 9px;
  font-weight: 710;
}

.nav-action {
  min-height: 40px;
  gap: 7px;
  padding: 9px 13px;
  border-color: #ceded0;
  background: #edf5eb;
  color: var(--navy);
  white-space: nowrap;
}

.nav-action:hover {
  border-color: var(--teal);
  background: var(--teal);
  color: #fff;
}

.menu-toggle {
  min-width: 43px;
  min-height: 43px;
}

.eyebrow, .kicker {
  color: var(--teal);
  font-weight: 770;
  letter-spacing: .105em;
}

.eyebrow {
  font-size: .74rem;
}

.kicker {
  font-size: .72rem;
}

.eyebrow.light, .result-hero .kicker {
  color: var(--lime);
}

.section {
  padding-block: clamp(51px, 6.1vw, 86px);
}

.section-intro {
  align-items: end;
  margin-bottom: 27px;
}

.section-intro h2, .section-intro p {
  margin-bottom: 0;
}

.section-intro h2 {
  margin-top: 6px;
}

.section-intro p {
  color: var(--slate);
}

.calculator-card, .breakdown-card, .surface-card, .decision-tool-form {
  padding: var(--card-space);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.calc-head {
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.calc-head h2 {
  margin-top: 4px;
  font-size: clamp(1.3rem, 2.2vw, 1.7rem);
}

.tiny-tag, .source-pill {
  max-width: 100%;
  border-radius: 5px;
  background: #eaf3e7;
  color: #315743;
  font-size: .76rem;
  font-weight: 690;
  line-height: 1.35;
}

.field {
  min-width: 0;
  margin-bottom: 15px;
}

.field label {
  margin-bottom: 6px;
  color: #384b3e;
  font-size: .875rem;
  font-weight: 710;
}

.field :is(input, select), .money-input {
  min-height: 48px;
  border-color: #d8e2d7;
  border-radius: 8px;
  background-color: #fdfefc;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.field select {
  padding-right: 29px;
  text-overflow: ellipsis;
}

.field :is(input, select):hover, .money-input:hover {
  border-color: #a8c0ac;
}

.field :is(input, select):focus, .money-input:focus-within {
  border-color: #54876b;
  outline: 0;
  box-shadow: 0 0 0 3px #30875c24;
}

.money-input input, .money-input input:focus {
  flex: 1;
  min-width: 0;
  min-height: 46px;
  border: 0;
  outline: 0;
  box-shadow: none;
}

.money-input span {
  color: var(--teal);
}

.help, .form-bottom {
  color: #5c6f63;
  font-size: .78rem;
}

.year-field, .decision-tool-form > .forecast-banner {
  border-color: #dce9dc;
  border-radius: 10px;
  background: #f1f7ee;
}

.year-field {
  padding: 12px 14px;
  margin-bottom: 15px;
}

.year-field label {
  color: #315743;
}

.forecast-banner {
  color: #4e6256;
  font-size: .78rem;
}

.advanced {
  margin-bottom: 15px;
  padding-top: 9px;
}

.advanced summary {
  min-height: 34px;
  align-items: center;
  gap: 6px;
  color: #345441;
  font-size: .875rem;
}

.advanced summary span {
  margin-left: auto;
  font-size: .76rem;
}

.btn {
  background: var(--teal);
  box-shadow: none;
}

.btn:is(:hover, :focus-visible) {
  background: #174b33;
}

.btn.wide {
  min-height: 48px;
  font-size: .94rem;
}

.form-bottom {
  margin-bottom: 0;
  color: #5b6d61;
}

.result-hero, .outcome-highlight {
  background: var(--navy);
  color: #f6fff5;
}

.result-hero {
  border: 1px solid #284636;
  padding: var(--card-space);
}

.big-money, .period-grid, .breakdown-table, .data-table, .outcome-card > strong {
  font-variant-numeric: lining-nums tabular-nums;
}

.result-hero .big-money, .retained strong, .outcome-highlight > strong {
  color: var(--lime);
}

.result-hero .subtle, .result-hero .period-grid small {
  color: #bdd0c1;
}

.result-hero .period-grid {
  border-color: #40604e;
}

.period-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.period-grid:not(.home-periods):has(.period-unit) {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 6rem), 1fr));
  gap: 10px;
}

.period-grid :is(b, small), .breakdown-table td {
  overflow-wrap: anywhere;
}

.period-grid > div {
  min-width: 0;
}

.period-grid .period-unit {
  display: block;
  margin-top: 4px;
  font-size: .78rem;
  line-height: 1.27;
}

.period-grid:has(.period-unit) b {
  font-size: clamp(1.03rem, 2vw, 1.2rem);
}

.result-hero .btn-secondary {
  border-color: #54705f;
  background: #294435;
  color: #f2fcf2;
}

.result-hero .btn-secondary:hover {
  border-color: #8eb69a;
  background: #355844;
  color: #fff;
}

.bar {
  height: 10px;
  background: #3b594b;
}

.bar i {
  background: var(--lime);
}

.inline-result .bar i {
  background: #3e8b62;
}

.breakdown-table th {
  padding-right: 12px;
  color: #465b4d;
  line-height: 1.35;
}

.breakdown-table small, .results-note, .disclaimer {
  color: #5b6e61;
}

.breakdown-table .total th, .breakdown-table .total td {
  background: #edf5ea;
  padding-inline: 9px;
  color: #215637;
}

.page-hero, .decision-hero {
  border-bottom: 1px solid var(--line);
  background: #f1f5ed;
  padding: clamp(39px, 6vw, 83px) 0 clamp(33px, 5vw, 67px);
}

.page-hero h1, .decision-hero h1 {
  color: var(--navy);
  font-size: clamp(2.3rem, 4.8vw, 4rem);
  line-height: 1.035;
}

.page-hero .eyebrow, .decision-hero .eyebrow {
  margin-bottom: 13px;
}

.state-calc-section, .tool-explain {
  background: #edf2eb;
}

.stat-aside, .placeholder-card, .inline-result, .aside-card {
  border-radius: var(--radius);
  box-shadow: 0 2px 5px #17322504;
}

.stat-aside {
  border-left: 3px solid #8eb69a;
}

.placeholder-card {
  border: 1px solid #2d4a39;
  background: var(--navy);
  color: #eaf5ea;
}

.placeholder-card :is(.kicker, h3) {
  color: #eaf5ea;
}

.placeholder-card p {
  color: #cadbcb;
}

.article, .article .info-box, .guide-spotlight, .aside-card {
  color: var(--ink);
}

.article :is(h2, h3) {
  color: var(--navy);
}

.article :is(th, td), .data-table :is(th, td) {
  overflow-wrap: anywhere;
}

.article th, .data-table th {
  background: #eaf2e7;
  color: #3e5547;
}

.decision-form-panel {
  border-color: #dce5da;
  background: #f7faf5;
}

.outcome-card {
  border-radius: 15px;
  padding: clamp(16px, 2.4vw, 26px);
}

.outcome-card > span, .outcome-card small {
  color: #4d6254;
}

.outcome-card > strong {
  font-family: var(--display-face);
}

.outcome-highlight {
  border-color: #284636;
}

.outcome-highlight :is(span, small, p) {
  color: #cbded0;
}

.forecast-kpis > div, .forecast-method {
  border-color: #dce7da;
  border-radius: 12px;
}

.footer {
  padding-block: 42px 26px;
  background: var(--deep);
  color: #c7d6c9;
}

.footer-top {
  gap: 22px 45px;
}

.footer .brand .green {
  color: var(--lime);
}

.footer p, .footer-base, .footer-links a, .thm-consent-settings {
  color: #c1d1c4;
}

.footer-links {
  gap: 9px 20px;
}

.footer-links a:hover, .thm-consent-settings:hover {
  color: var(--lime);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer-base {
  border-color: #385448;
}

.thm-consent-banner {
  padding: 16px 18px;
  border-color: #3f6051;
  border-radius: 12px;
  background: #193329;
  box-shadow: 0 8px 24px #11271d42;
}

.thm-consent-copy p {
  color: #d7e5d9;
}

.thm-consent-actions .thm-consent-accept {
  border-color: #c8f3cf;
  background: #c8f3cf;
  color: #19342a;
}

.thm-privacy-button {
  border-color: #88ad93;
  background: #e8f3e6;
  color: #246044;
}

@media (max-width: 965px) {
  .container {
    width: min(100% - 48px, 1216px);
  }

  .nav {
    gap: 15px;
  }

  .nav-links {
    gap: 13px;
  }

  .nav-links a {
    font-size: .82rem;
  }

  .nav-action {
    padding-inline: 9px;
  }
}

@media (max-width: 840px) {
  :root {
    --nav-height: 62px;
  }

  .nav-links {
    top: var(--nav-height);
  }

  .nav-links a {
    padding-block: 10px;
    font-size: .95rem;
  }

  .section-intro p {
    margin-top: 9px;
  }
}

@media (max-width: 520px) {
  .container {
    width: calc(100% - 30px);
  }

  .calc-grid {
    grid-template-columns: 1fr;
  }

  .pay-row {
    grid-template-columns: minmax(0, 1fr) minmax(98px, 42%);
  }

  .pay-row select {
    padding-left: 9px;
    font-size: .875rem;
  }

  .calculator-card, .breakdown-card, .surface-card, .decision-tool-form {
    padding-inline: 17px;
  }
}

@media (max-width: 370px) {
  .thm-consent-banner {
    padding: 13px;
  }

  .article :is(th, td), .data-table :is(th, td) {
    padding: 8px 5px;
  }
}

.salary-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
}

.decision-city {
  margin-top: -7px;
}

.skip-link {
  position: fixed;
  z-index: 60;
  top: 10px;
  left: 10px;
  padding: 10px 14px;
  transform: translateY(-150%);
  border-radius: 7px;
  background: var(--deep);
  color: #fff;
  font-weight: 700;
}

.skip-link:focus {
  transform: none;
  color: #fff;
}

.home-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(225px, 285px);
  align-items: end;
  gap: 18px clamp(20px, 3.2vw, 45px);
  padding-block: clamp(42px, 5.6vw, 77px) clamp(28px, 3.5vw, 48px);
}

.home-hero h1 {
  margin: 9px 0 12px;
  color: var(--navy);
  font-size: clamp(2.8rem, 5.75vw, 4.75rem);
  letter-spacing: -.065em;
  line-height: .99;
  text-wrap: balance;
}

.home-hero h1 em {
  color: var(--teal);
  font-style: normal;
}

.home-intro .home-deck {
  max-width: 660px;
  margin: 0;
  color: var(--slate);
  font-size: clamp(1rem, 1.55vw, 1.17rem);
  line-height: 1.5;
  text-wrap: pretty;
}

.home-hero .eyebrow {
  margin: 0;
}

.home-hero .eyebrow::before {
  width: 7px;
  height: 7px;
  flex: none;
  border-radius: 50%;
  background: #b77545;
  content: "";
}

.home-proof {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  margin-bottom: 2px;
  padding: 12px 0 12px 16px;
  border-left: 1px solid #cbdacb;
}

.home-proof strong, .home-proof small, .home-proof a {
  display: block;
}

.home-proof strong {
  color: var(--navy);
  font-size: .91rem;
  font-weight: 750;
  line-height: 1.27;
}

.home-proof small {
  margin-top: 4px;
  color: var(--slate);
  font-size: .81rem;
  line-height: 1.34;
}

.home-proof a {
  margin-top: 7px;
  font-size: .8rem;
  font-weight: 700;
}

.home-proof-mark {
  display: grid;
  flex: 0 0 35px;
  place-items: center;
  width: 35px;
  height: 35px;
  border: 1px solid #d6e5d6;
  border-radius: 9px;
  background: #eaf4e8;
  color: var(--teal);
}

.home-proof-mark svg {
  width: 17px;
  height: 17px;
}

.home-workspace {
  display: grid;
  grid-template-columns: minmax(0, .84fr) minmax(0, 1.16fr);
  align-items: start;
  gap: clamp(14px, 2vw, 23px);
}

.home-tool {
  min-width: 0;
}

.home-tool .calc-head {
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.home-tool .kicker {
  margin-bottom: 0;
}

.home-tool .calc-head h2 {
  margin-top: 4px;
  font-size: clamp(1.5rem, 2.55vw, 2.02rem);
}

.home-tool-icon {
  box-sizing: content-box;
  width: 21px;
  height: 21px;
  flex: none;
  padding: 9px;
  border: 1px solid #dce9db;
  border-radius: 10px;
  background: #edf5eb;
  color: var(--teal);
}

.home-tool #salaryHelp, .home-tool .help {
  display: block;
}

.home-tool .pay-row .money-input {
  border-color: #c8d9ca;
  background: #f7faf4;
}

.home-tool .pay-row input {
  background: transparent;
  font-family: var(--display-face);
  font-size: 1.33rem;
  font-weight: 700;
}

.home-tool .year-field {
  padding: 0;
  border: 0;
  background: transparent;
}

.home-tool .forecast-banner {
  margin-top: 7px;
}

.home-tool .form-bottom {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  line-height: 1.4;
}

.home-tool .form-bottom svg {
  flex: 0 0 15px;
  width: 15px;
  height: 15px;
  color: var(--teal);
}

.home-output.results {
  min-width: 0;
  margin: 0;
  padding: 0;
}

.home-output.results.is-hidden {
  display: block;
}

.home-output .results-layout {
  grid-template-columns: minmax(0, 1fr);
  gap: 15px;
}

.home-output .result-hero {
  --pay-net: #c7f4ca;
  --pay-federal: #e0a878;
  --pay-payroll: #86b3a5;
  --pay-state: #a7bddc;
  --pay-retirement: #d7b9df;
  container: pay-result / inline-size;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-width: 0;
  border-radius: var(--radius);
  background: linear-gradient(135deg, #12271e 0%, #19372a 100%);
  box-shadow: 0 6px 16px #16322419;
}

.home-output .result-hero::before {
  position: absolute;
  z-index: -1;
  inset: 0 0 0 34%;
  background: radial-gradient(circle, #d1eed8 1px, transparent 1.4px) 0 0 / 13px 13px;
  opacity: .15;
  mask-image: linear-gradient(112deg, transparent 12%, #000 86%);
  content: "";
  pointer-events: none;
}

.home-result-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.home-result-top h2 {
  margin: 0;
  color: #eff8ef;
  font-size: clamp(1.14rem, 2.2vw, 1.52rem);
  letter-spacing: -.036em;
}

.home-result-top select {
  appearance: none;
  flex: none;
  min-height: 37px;
  border: 1px solid #526e60;
  border-radius: 7px;
  padding: 5px 25px 5px 10px;
  background:
    linear-gradient(45deg, transparent 40%, #deeade 40% 61%, transparent 61%) right 11px center / 5px 7px no-repeat,
    linear-gradient(135deg, transparent 40%, #deeade 40% 61%, transparent 61%) right 7px center / 5px 7px no-repeat,
    #243f32;
  color: #f0fcf0;
  font-size: .82rem;
  font-weight: 670;
  cursor: pointer;
}

.home-result-top select:is(:hover, :focus-visible) {
  border-color: #a4c9ac;
}

.home-sample {
  display: inline-flex;
  margin: 7px 0 0;
  padding: 2px 7px;
  border: 1px solid #bea08048;
  border-radius: 4px;
  background: #a7825322;
  color: #f2cdaa;
  font-size: .73rem;
  font-weight: 650;
  line-height: 1.45;
}

.home-result-reading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(10px, 2.2vw, 28px);
  margin-block: 13px 19px;
}

.home-result-amount {
  min-width: 0;
}

.home-output .big-money {
  margin-block: 0 6px;
  color: var(--pay-net);
  font-size: clamp(3.2rem, 5.5vw, 5.2rem);
  letter-spacing: -.069em;
  line-height: .99;
}

.home-result-amount > span {
  display: block;
  color: #d0dfd1;
  font-size: .93rem;
  font-weight: 600;
}

.home-meter {
  width: clamp(111px, 14.2vw, 159px);
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  padding: clamp(8px, 1.05vw, 13px);
  border-radius: 50%;
  background: var(--meter, conic-gradient(from -90deg, var(--pay-net) 0 81.1%, var(--pay-federal) 81.1% 92.4%, var(--pay-payroll) 92.4%));
}

.home-meter > div {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 3px;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: #1b382c;
}

.home-meter strong {
  max-width: 100%;
  color: #f5fff4;
  font-family: var(--display-face);
  font-size: clamp(1.4rem, 3vw, 2.15rem);
  font-weight: 680;
  letter-spacing: -.055em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.home-meter small {
  color: #bcd2c1;
  font-size: clamp(.67rem, 1.13vw, .75rem);
  font-weight: 650;
  line-height: 1.1;
}

.home-legend {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px 13px;
  margin: 0;
  padding: 0;
  color: #d9e8da;
  font-size: .75rem;
  font-weight: 600;
  list-style: none;
}

.home-legend li {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin: 0;
}

.home-legend i {
  width: 7px;
  height: 7px;
  flex: none;
  border-radius: 50%;
}

.home-legend .dot-net {
  background: var(--pay-net);
}

.home-legend .dot-federal {
  background: var(--pay-federal);
}

.home-legend .dot-payroll {
  background: var(--pay-payroll);
}

.home-legend .dot-state {
  background: var(--pay-state);
}

.home-legend .dot-retirement {
  background: var(--pay-retirement);
}

.home-output .home-periods {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 11px clamp(7px, 1.15vw, 14px);
  margin-top: 17px;
  padding-top: 14px;
}

.home-periods > div {
  min-width: 0;
}

.home-output .home-periods b {
  color: #f6fff5;
  font-family: var(--display-face);
  font-size: clamp(1.08rem, 1.8vw, 1.53rem);
  line-height: 1.15;
  letter-spacing: -.032em;
}

.home-output .home-periods small {
  font-size: .78rem;
}

.home-breakdown-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 13px;
}

.home-breakdown-heading h2 {
  margin: 0;
  font-size: clamp(1.4rem, 2.4vw, 1.7rem);
}

.home-breakdown-heading > span {
  padding: 2px 7px;
  border-radius: 5px;
  background: #f0f5ed;
  color: #52685a;
  font-size: .73rem;
  font-weight: 700;
}

.home-output .breakdown-table :is(th, td) {
  padding-block: 8px;
}

.home-output .breakdown-table small {
  display: inline;
  margin-left: 4px;
  font-size: .73rem;
}

.home-output .disclaimer {
  margin: 13px 0 8px;
}

.home-output .result-actions {
  margin-top: 13px;
}

.home-output .result-actions .btn-secondary {
  min-height: 38px;
  padding: 6px 11px;
}

.home-results-empty {
  min-height: 196px;
}

.home-results-empty p {
  margin: 0;
}

.home-discovery, .home-tools, .home-questions {
  padding-block: clamp(47px, 6.4vw, 83px);
}

.home-page :is(.section-intro, .home-sources) .kicker {
  margin: 0 0 6px;
}

.home-page .section-intro h2 {
  margin-top: 0;
}

.home-state-grid {
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px;
}

.home-state-grid a {
  display: grid;
  align-items: center;
  min-width: 0;
  min-height: 44px;
  padding: 8px 11px;
  border-color: var(--line);
  border-radius: 7px;
  background: #fff;
  color: #344b3d;
  font-size: .87rem;
  line-height: 1.28;
  overflow-wrap: anywhere;
}

.home-state-grid a:hover {
  border-color: #91b29a;
  background: #eaf3e8;
  color: var(--navy);
}

.home-example-links {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 7px 16px;
  margin-top: 21px;
}

.home-example-links h3 {
  margin: 0;
  color: var(--navy);
  font-size: 1rem;
}

.home-example-links ul {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 13px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.home-example-links li {
  margin: 0;
  font-size: .85rem;
}

.home-tools {
  border-block: 1px solid var(--line);
  background: #edf3e9;
}

.home-tool-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 13px;
}

.home-tool-grid .surface-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: clamp(18px, 2.1vw, 28px);
  border-radius: 12px;
  transition: border-color .17s, box-shadow .17s;
}

.home-tool-grid .surface-card:hover, .home-tool-grid .surface-card:focus-within {
  border-color: #9cb9a0;
  box-shadow: 0 5px 16px #213a2911;
}

.home-tool-grid h3 {
  margin: 0 0 8px;
  font-size: clamp(1.13rem, 2vw, 1.34rem);
}

.home-tool-grid p {
  margin: 0 0 15px;
  font-size: .92rem;
  line-height: 1.45;
}

.home-tool-grid a {
  font-size: .88rem;
  font-weight: 720;
}

.home-tool-grid a:first-of-type {
  margin-top: auto;
}

.home-tool-grid br {
  display: none;
}

.home-sources {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  align-items: center;
  gap: 18px clamp(24px, 5vw, 70px);
  margin-top: clamp(46px, 6.2vw, 80px);
  padding: clamp(22px, 4vw, 53px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
}

.home-sources h2 {
  margin-bottom: 8px;
}

.home-sources p:not(.kicker) {
  margin-bottom: 13px;
  line-height: 1.55;
}

.home-source-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 15px;
}

.home-source-links a {
  font-size: .89rem;
  font-weight: 730;
}

.home-source-facts {
  margin: 0;
  padding: 6px 15px;
  border-radius: 11px;
  background: #f1f6ef;
}

.home-source-facts > div {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 7px;
  padding: 9px 0;
}

.home-source-facts > div + div {
  border-top: 1px solid #dce7da;
}

.home-source-facts dt {
  min-width: 0;
  color: #4c6253;
  font-size: .86rem;
  line-height: 1.3;
}

.home-source-facts dd {
  flex: none;
  margin: 0;
  color: var(--navy);
  font-family: var(--display-face);
  font-size: clamp(1.15rem, 2.1vw, 1.65rem);
  font-weight: 720;
  letter-spacing: -.04em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.home-questions.faq details {
  margin: 0;
  padding: 0;
  border: 0;
  border-top: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
}

.home-questions.faq details:last-child {
  border-bottom: 1px solid var(--line);
}

.home-questions summary {
  padding: 13px 0;
  color: var(--navy);
  font-weight: 720;
  cursor: pointer;
}

.home-questions.faq details p {
  max-width: 70ch;
  margin: 0 0 14px;
  color: var(--slate);
}

@media (min-width: 841px) and (min-height: 760px) {
  .home-tool:not(:has(details[open])) {
    position: sticky;
    top: calc(var(--nav-height) + 14px);
  }
}

@media (max-width: 1000px) {
  .home-state-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

@media (max-width: 840px) {
  .home-hero {
    grid-template-columns: minmax(0, 1fr);
    gap: 17px;
  }

  .home-hero h1 {
    max-width: 700px;
    font-size: clamp(2.7rem, 7.7vw, 4.5rem);
    text-wrap: initial;
  }

  .home-proof {
    margin: 0;
    padding: 0 0 0 10px;
  }

  .home-workspace {
    grid-template-columns: minmax(0, 1fr);
  }

  .home-output .big-money {
    font-size: clamp(3.25rem, 8.8vw, 5.1rem);
  }

  .home-meter {
    width: clamp(109px, 20vw, 153px);
  }

  .home-output .home-periods b {
    font-size: clamp(1.12rem, 3vw, 1.38rem);
  }

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

@media (max-width: 580px) {
  .home-state-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .home-sources {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 520px) {
  .home-hero {
    padding-block: 33px 24px;
  }

  .home-hero h1 {
    font-size: clamp(2.48rem, 9.7vw, 3.3rem);
  }

  .home-tool .calc-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-result-reading {
    margin-block: 13px 15px;
  }

  .home-output .big-money {
    font-size: clamp(1.94rem, 9.35vw, 3.2rem);
  }

  .home-meter {
    width: clamp(82px, 24vw, 116px);
  }

  .home-output .home-periods b {
    font-size: clamp(1.08rem, 4vw, 1.23rem);
  }

  .home-output .home-periods small {
    font-size: .73rem;
  }

  .home-state-grid a {
    padding-inline: 8px;
    font-size: .79rem;
  }
}

@media (max-width: 370px) {
  .home-tool .calc-grid, .home-tool-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .home-legend {
    gap: 5px 9px;
  }
}

@container pay-result (max-width: 475px) {
  .home-output .home-periods {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@container pay-result (max-width: 280px) {
  .home-output .home-periods {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.year-comparison {
  min-width: 0;
  padding: var(--card-space);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
}

.year-comparison h2 {
  margin: 0 0 7px;
  color: var(--navy);
  font-size: clamp(1.36rem, 2.4vw, 1.7rem);
}

.year-comparison p {
  margin-bottom: 12px;
  color: var(--slate);
  font-size: .9rem;
  line-height: 1.5;
}

.year-comparison-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 15px 0 0;
}

.year-comparison-grid > div {
  display: grid;
  align-content: start;
  gap: 6px;
  min-width: 0;
  padding: 12px 13px;
  border: 1px solid #e1e9de;
  border-radius: 9px;
  background: #f7f9f5;
}

.year-comparison-grid dt {
  color: #465e4e;
  font-size: .82rem;
  font-weight: 680;
  line-height: 1.28;
}

.year-comparison-grid dd {
  margin: 0;
  color: var(--navy);
  font-family: var(--display-face);
  font-size: clamp(1.15rem, 2.5vw, 1.7rem);
  font-weight: 715;
  letter-spacing: -.045em;
  line-height: 1.13;
  font-variant-numeric: lining-nums tabular-nums;
  overflow-wrap: anywhere;
}

.year-comparison-grid .year-impact {
  border-color: #d2e6d3;
  background: #eaf5e9;
}

.year-comparison-grid .year-impact dd {
  color: #245c3c;
}

.year-comparison-details {
  margin-top: 13px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

.year-comparison-details summary {
  color: var(--teal);
  font-size: .86rem;
  font-weight: 720;
  cursor: pointer;
}

.year-comparison-details p {
  margin: 7px 0 0;
}

.outcome-finances {
  display: grid;
  gap: 7px;
  margin: 10px 0 0;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

.outcome-finances > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, auto);
  align-items: baseline;
  gap: 6px;
}

.outcome-finances dt {
  color: #465d4d;
  font-size: .82rem;
  line-height: 1.25;
}

.outcome-finances dd {
  min-width: 0;
  margin: 0;
  color: var(--navy);
  font-size: .92rem;
  font-weight: 740;
  text-align: end;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}

.decision-break-even, .housing-threshold {
  margin-top: 15px;
  padding: clamp(16px, 2.5vw, 24px);
  border: 1px solid #d8e7d8;
  border-radius: 13px;
  background: #edf5ea;
}

:is(.decision-break-even, .housing-threshold) h3 {
  margin-bottom: 6px;
  color: var(--navy);
  font-size: clamp(1.12rem, 2.1vw, 1.35rem);
}

.break-even-amount {
  color: #275c40;
  font-family: var(--display-face);
  font-size: clamp(1.26rem, 2.65vw, 1.85rem);
  font-weight: 730;
  letter-spacing: -.033em;
  line-height: 1.15;
  font-variant-numeric: lining-nums tabular-nums;
  overflow-wrap: anywhere;
}

.break-even-slack {
  margin: 5px 0 0;
  color: #496153;
  font-size: .89rem;
  line-height: 1.48;
}

.decision-example {
  margin-bottom: clamp(34px, 5vw, 70px);
  padding: clamp(19px, 3vw, 30px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.decision-example h2 {
  margin-bottom: 8px;
  color: var(--navy);
  font-size: clamp(1.38rem, 2.4vw, 1.8rem);
}

.decision-example p {
  max-width: 75ch;
  margin-bottom: 10px;
}

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

@media (max-width: 395px) {
  .year-comparison-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .year-comparison-grid > div {
    grid-template-columns: minmax(0, 1fr) minmax(0, auto);
    align-items: baseline;
  }

  .year-comparison-grid dd {
    text-align: end;
  }
}
