:root {
  color-scheme: light;
  --bg: #f4f6f3;
  --panel: #ffffff;
  --ink: #17211f;
  --muted: #66736e;
  --line: #dde3de;
  --green: #0b624d;
  --green-2: #0b624d;
  --blue: #2667a8;
  --amber: #a96712;
  --lime: #c8e86b;
  --soft-green: #e8f2ed;
  --soft-blue: #eef3f8;
  --soft-amber: #fbf1e4;
  --shadow: 0 10px 28px rgba(23, 33, 31, 0.07);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  margin: 0;
  overflow-x: hidden;
}

a {
  color: inherit;
}

button,
input,
select {
  font: inherit;
}

.topbar {
  align-items: center;
  background: rgba(255, 255, 255, 0.97);
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 30px;
  justify-content: space-between;
  left: 0;
  min-height: 72px;
  padding: 12px max(20px, calc((100vw - 1240px) / 2));
  position: sticky;
  top: 0;
  z-index: 20;
}

.brand {
  align-items: center;
  display: inline-flex;
  flex: 0 0 auto;
  gap: 11px;
  text-decoration: none;
}

.brand-mark {
  align-items: center;
  background: var(--green);
  border-radius: 8px;
  color: #fff;
  display: inline-flex;
  font-weight: 800;
  height: 38px;
  justify-content: center;
  width: 38px;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 17px;
  line-height: 1.1;
}

.brand small {
  color: var(--muted);
  font-size: 11px;
  margin-top: 2px;
}

.nav {
  align-items: center;
  display: flex;
  gap: 30px;
  justify-content: flex-end;
}

.nav a {
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  padding: 8px 0;
  text-decoration: none;
}

.nav a:hover {
  color: var(--green);
}

main {
  margin: 0 auto;
  max-width: 1240px;
  padding: 34px max(20px, calc((100vw - 1240px) / 2)) 64px;
}

.home main {
  max-width: none;
  padding: 0;
}

.calculator-hero {
  align-items: stretch;
  display: grid;
  gap: 40px;
  grid-template-columns: minmax(320px, 0.78fr) minmax(0, 1.42fr);
  margin: 0 auto;
  max-width: min(1240px, calc(100% - 40px));
  min-height: 730px;
  padding: 44px 0;
}

.hero-copy {
  align-content: center;
  display: grid;
  padding: 20px 0;
}

.eyebrow {
  color: var(--green-2);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
  margin: 0 0 14px;
  text-transform: uppercase;
}

.hero-copy .eyebrow {
  align-items: center;
  background: var(--soft-green);
  border-radius: 4px;
  display: inline-flex;
  gap: 8px;
  justify-self: start;
  padding: 8px 11px;
  text-transform: none;
}

.hero-copy .eyebrow span {
  background: var(--green);
  border-radius: 50%;
  height: 7px;
  width: 7px;
}

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

h1 {
  font-family: Geist, Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 52px;
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1.04;
  margin-bottom: 20px;
}

.hero-lede {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.55;
  max-width: 390px;
}

.metric-strip {
  display: grid;
  gap: 0;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  margin-top: 28px;
  padding-top: 16px;
}

.metric-strip span {
  color: var(--muted);
  display: grid;
  font-size: 11px;
  gap: 3px;
  min-height: auto;
  padding: 0 16px;
}

.metric-strip span:first-child {
  padding-left: 0;
}

.metric-strip span + span {
  border-left: 1px solid var(--line);
}

.metric-strip strong {
  color: var(--ink);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 18px;
}

.workbench {
  align-self: center;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  overflow: hidden;
  padding: 0;
}

[data-calculator-app] {
  min-height: 720px;
  width: 100%;
}

.workbench-head {
  align-items: center;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  min-height: 62px;
  padding: 12px 24px;
}

.workbench-head > div {
  display: grid;
  gap: 2px;
}

.workbench-head strong {
  font-size: 18px;
}

.workbench-head span:not(.rules-badge) {
  color: var(--muted);
  font-size: 11px;
}

.rules-badge,
.section-badge {
  background: var(--soft-green);
  border-radius: 4px;
  color: var(--green);
  font-size: 11px;
  font-weight: 700;
  padding: 7px 10px;
}

.tabs {
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 0;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  padding: 0 24px;
}

.tabs button {
  background: transparent;
  border: 0;
  color: var(--muted);
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
  min-height: 54px;
  padding: 8px;
}

.tabs button.active {
  border-bottom: 2px solid var(--green);
  color: var(--green);
}

.calculator-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: minmax(0, 1.04fr) minmax(290px, 0.96fr);
  margin-top: 0;
  padding: 24px;
}

.calculator-panel {
  display: none;
}

.calculator-panel.active {
  display: block;
}

.field-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.form-details {
  border-top: 1px solid var(--line);
  margin-top: 16px;
  padding-top: 14px;
}

.form-details summary {
  color: var(--green);
  cursor: pointer;
  font-size: 13px;
  font-weight: 900;
  margin-bottom: 16px;
}

.field-grid label small,
.checkbox-field small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 500;
  line-height: 1.4;
  text-transform: none;
}

.checkbox-field {
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 5px;
  display: grid;
  gap: 10px;
  grid-template-columns: auto 1fr;
  min-height: 70px;
  padding: 12px;
}

.state-only[hidden] {
  display: none;
}

.checkbox-field input {
  min-height: 20px;
  width: 20px;
}

.checkbox-field span {
  display: grid;
  gap: 4px;
}

label,
.compact-select {
  color: var(--muted);
  display: grid;
  font-size: 12px;
  font-weight: 700;
  gap: 7px;
  text-transform: uppercase;
}

input,
select {
  background: #f8faf8;
  border: 1px solid var(--line);
  border-radius: 5px;
  color: var(--ink);
  min-height: 46px;
  outline: none;
  padding: 10px 12px;
  width: 100%;
}

input:focus,
select:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(12, 90, 70, 0.14);
}

.result-card {
  background: #17211f;
  border-radius: 8px;
  color: #fff;
  display: grid;
  min-height: 390px;
  padding: 22px;
}

.result-label {
  color: #a8bbb3;
  font-size: 13px;
  font-weight: 800;
  margin-bottom: 10px;
  text-transform: uppercase;
}

.result-primary {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 34px;
  line-height: 1;
}

.result-note {
  color: #d8e2dd;
  line-height: 1.5;
  font-size: 12px;
  margin-top: 10px;
}

.result-list {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  display: grid;
  gap: 0;
  margin: 18px 0 0;
  padding-top: 8px;
}

.result-list div {
  align-items: center;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  min-height: 38px;
  padding: 7px 0;
}

.result-list div + div {
  border-top: 1px solid rgba(255, 255, 255, 0.09);
}

.result-list dt {
  color: #a8bbb3;
  font-size: 11px;
  line-height: 1.35;
  max-width: 68%;
}

.result-list dd {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11px;
  font-weight: 800;
  margin: 0;
  text-align: right;
}

.share-row {
  align-items: center;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  display: flex;
  gap: 12px;
  justify-content: space-between;
  margin-top: 18px;
  padding-top: 14px;
}

.share-button {
  background: var(--lime);
  border: 0;
  border-radius: 5px;
  color: var(--ink);
  cursor: pointer;
  font-size: 14px;
  font-weight: 700;
  min-height: 40px;
  padding: 10px 14px;
}

.share-button:hover {
  background: #d7f57d;
}

.share-status {
  color: #a8bbb3;
  font-size: 13px;
  font-weight: 800;
  text-align: right;
}

.page-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 4px;
}

.primary-action {
  background: var(--green);
  border-radius: 6px;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  padding: 12px 16px;
  text-decoration: none;
}

.page-share-button {
  background: transparent;
  border: 0;
  color: var(--green);
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  min-height: 40px;
  padding: 10px 14px;
}

.page-share-button:hover {
  background: var(--soft-green);
}

.page-share-status {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.section-head {
  align-items: end;
  display: flex;
  gap: 18px;
  justify-content: space-between;
  margin-bottom: 18px;
}

.section-head h2 {
  font-family: Geist, Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 30px;
  font-weight: 600;
  line-height: 1.15;
  margin: 0;
}

.section-inner {
  margin: 0 auto;
  max-width: 1240px;
  width: 100%;
}

.section-link {
  color: var(--green);
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.popular-tasks-section {
  background: var(--panel);
  border-bottom: 1px solid var(--line);
  border-top: 1px solid var(--line);
  padding: 38px max(20px, calc((100vw - 1240px) / 2));
}

.popular-tasks-section .section-head {
  margin-bottom: 24px;
}

.task-list {
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.task-list > a {
  align-items: center;
  display: grid;
  gap: 3px 14px;
  grid-template-columns: auto 1fr auto;
  min-height: 92px;
  padding: 18px 26px;
  text-decoration: none;
}

.task-list > a:first-child {
  padding-left: 0;
}

.task-list > a + a {
  border-left: 1px solid var(--line);
}

.task-list span {
  align-items: center;
  background: var(--soft-green);
  border-radius: 5px;
  color: var(--green);
  display: inline-flex;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11px;
  font-weight: 700;
  grid-row: 1 / span 2;
  height: 38px;
  justify-content: center;
  width: 38px;
}

.task-list > a:nth-child(2) span {
  background: var(--soft-blue);
  color: var(--blue);
}

.task-list strong {
  align-self: end;
  font-size: 14px;
}

.task-list small {
  align-self: start;
  color: var(--muted);
  font-size: 11px;
}

.task-list b {
  color: var(--muted);
  font-size: 16px;
  font-weight: 500;
  grid-column: 3;
  grid-row: 1 / span 2;
}

.task-list a:hover strong,
.task-list a:hover b {
  color: var(--green);
}

.home .state-section {
  margin: 0 auto;
  max-width: 1240px;
  padding: 48px 0 54px;
}

.home .state-section .section-head {
  margin-bottom: 10px;
}

.home .state-section .section-intro {
  font-size: 13px;
  max-width: 760px;
}

.state-page-grid.curated-state-grid {
  column-gap: 56px;
  grid-auto-flow: column;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: repeat(5, 54px);
}

.state-page-grid.curated-state-grid a {
  align-items: center;
  background: transparent;
  border: 0;
  border-radius: 0;
  border-top: 1px solid var(--line);
  color: var(--ink);
  display: grid;
  font-weight: 600;
  gap: 0 13px;
  grid-template-columns: 32px minmax(110px, 0.65fr) 1fr auto;
  line-height: 1.2;
  min-height: 54px;
  padding: 0;
}

.curated-state-grid a > span {
  color: var(--green);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 10px;
  font-weight: 700;
}

.curated-state-grid a > strong {
  font-size: 13px;
}

.curated-state-grid a > small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 400;
}

.curated-state-grid a > b {
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
}

.state-page-grid.curated-state-grid a:hover {
  border-color: var(--line);
  color: var(--green);
}

.guides-band {
  background: var(--green);
  color: #fff;
  padding: 46px max(20px, calc((100vw - 1240px) / 2));
}

.guides-band .eyebrow,
.guides-band .section-link,
.featured-guide-list article > span,
.guide-arrow {
  color: var(--lime);
}

.guides-band .section-head {
  margin-bottom: 30px;
}

.guides-band .section-head h2 {
  color: #fff;
}

.featured-guide-list {
  border-top: 1px solid rgba(255, 255, 255, 0.24);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.featured-guide-list article {
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  min-height: 176px;
  padding: 22px 26px 18px;
}

.featured-guide-list article:first-child {
  padding-left: 0;
}

.featured-guide-list article + article {
  border-left: 1px solid rgba(255, 255, 255, 0.24);
}

.featured-guide-list article > span {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11px;
  font-weight: 700;
}

.featured-guide-list h3 {
  font-size: 18px;
  margin: 22px 0 8px;
}

.featured-guide-list h3 a,
.guide-arrow {
  text-decoration: none;
}

.featured-guide-list p {
  color: #c7d6d0;
  font-size: 12px;
  line-height: 1.5;
  margin: 0 0 12px;
  max-width: 310px;
}

.source-ledger {
  align-items: center;
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 48px;
  grid-template-columns: minmax(280px, 0.8fr) minmax(0, 1.2fr);
  margin: 0 auto;
  max-width: 1240px;
  min-height: 154px;
}

.source-ledger h2 {
  font-family: Geist, Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 21px;
  font-weight: 600;
  margin: 0;
}

.source-agencies {
  display: grid;
  gap: 26px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.source-agencies a {
  display: grid;
  gap: 5px;
  text-decoration: none;
}

.source-agencies strong {
  color: var(--green);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px;
}

.source-agencies span {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.4;
}

.compact-select {
  max-width: 240px;
  min-width: 220px;
}

.state-section,
.guides-section,
.strategy-section,
.sources-section {
  margin-top: 70px;
}

.state-layout {
  display: grid;
  gap: 20px;
  grid-template-columns: minmax(280px, 0.75fr) minmax(0, 1.25fr);
}

.state-detail,
.state-table-wrap,
.guides-section article,
.milestone-grid article {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.state-detail {
  padding: 24px;
}

.state-code {
  align-items: center;
  background: var(--soft-blue);
  border-radius: 8px;
  color: var(--blue);
  display: inline-flex;
  font-weight: 900;
  height: 44px;
  justify-content: center;
  margin-bottom: 16px;
  width: 54px;
}

.state-detail h3 {
  font-size: 30px;
  margin-bottom: 20px;
}

.state-detail dl {
  display: grid;
  gap: 16px;
  margin: 0;
}

.state-detail dt {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.state-detail dd {
  line-height: 1.55;
  margin: 4px 0 0;
}

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

table {
  border-collapse: collapse;
  min-width: 680px;
  width: 100%;
}

th,
td {
  border-bottom: 1px solid var(--line);
  padding: 15px 16px;
  text-align: left;
  vertical-align: top;
}

th {
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
}

td strong {
  display: block;
}

td span {
  color: var(--muted);
  display: block;
  font-size: 13px;
  margin-top: 3px;
}

.state-link {
  color: var(--green);
  font-weight: 900;
  text-decoration: none;
}

.state-link:hover {
  text-decoration: underline;
}

tr[data-active] {
  background: var(--soft-green);
}

.guide-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.guides-section article {
  padding: 22px;
}

.guides-section article span {
  color: var(--amber);
  font-weight: 900;
}

.guides-section h3 {
  font-size: 20px;
  margin: 10px 0 8px;
}

.guides-section h3 a {
  text-decoration: none;
}

.guides-section h3 a:hover {
  color: var(--green);
}

.guides-section p {
  color: var(--muted);
  line-height: 1.6;
  margin: 0;
}

.strategy-section {
  background: var(--green);
  border-radius: 8px;
  color: #fff;
  display: grid;
  gap: 24px;
  grid-template-columns: 0.9fr 1.1fr;
  padding: 32px;
}

.strategy-section .eyebrow {
  color: #cfe2d9;
}

.strategy-section h2 {
  font-size: 32px;
  line-height: 1.18;
  margin: 0;
}

.milestone-grid {
  display: grid;
  gap: 12px;
}

.milestone-grid article {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.16);
  display: grid;
  gap: 6px;
  padding: 16px;
}

.milestone-grid span {
  color: #e0ebe6;
  line-height: 1.5;
}

.source-list {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.source-list a,
.state-page-grid a {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--green);
  font-weight: 800;
  line-height: 1.4;
  min-height: 110px;
  padding: 16px;
  text-decoration: none;
}

.source-list a:hover,
.state-page-grid a:hover {
  border-color: var(--green);
}

.state-page-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.link-group-title {
  font-size: 18px;
  margin: 26px 0 12px;
}

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

.calculator-route {
  display: grid;
  gap: 28px;
  grid-template-columns: minmax(260px, 0.62fr) minmax(560px, 1.38fr);
  margin-top: 34px;
}

.route-copy {
  align-self: start;
  position: sticky;
  top: 104px;
}

.route-copy h1,
.trust-page h1 {
  font-family: Geist, Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 46px;
  font-weight: 600;
  line-height: 1.08;
  margin-bottom: 16px;
}

.route-copy p,
.trust-page p {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.7;
}

.disclaimer-note {
  background: var(--soft-amber);
  border: 1px solid #ebd2ae;
  border-radius: 8px;
  color: #6f4718;
  padding: 14px;
}

.trust-page {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  margin-top: 34px;
  max-width: 920px;
  padding: 42px;
}

.final-pay-page {
  max-width: 1100px;
}

.hub-page {
  background: transparent;
  border: 0;
  max-width: 1160px;
  padding-left: 0;
  padding-right: 0;
}

.hub-page > h2 {
  margin: 34px 0 14px;
}

.hub-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 24px;
}

.hub-grid article {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 20px;
}

.hub-grid h3 {
  margin-bottom: 10px;
}

.hub-grid h3 a {
  color: var(--green);
  text-decoration: none;
}

.hub-grid h3 a:hover {
  text-decoration: underline;
}

.mini-link-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.mini-link-row a {
  background: var(--soft-green);
  border-radius: 8px;
  color: var(--green);
  font-size: 13px;
  font-weight: 900;
  padding: 8px 10px;
  text-decoration: none;
}

.federal-guide {
  max-width: 1120px;
}

.deadline-table-wrap {
  border: 1px solid var(--line);
  border-radius: 8px;
  margin: 24px 0;
  overflow: auto;
}

.deadline-table {
  background: #fff;
  min-width: 720px;
}

.deadline-table th {
  background: #eef2ec;
  color: var(--green);
}

.deadline-table td:nth-child(2) {
  color: var(--ink);
  font-weight: 900;
  white-space: nowrap;
}

.trust-source-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 24px;
}

.state-guide {
  margin-top: 44px;
}

.section-intro {
  color: var(--muted);
  line-height: 1.65;
  margin-bottom: 20px;
  max-width: 880px;
}

.fact-grid,
.copy-columns {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.fact-grid article,
.copy-columns article {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 22px;
}

.fact-grid span {
  color: var(--green);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.fact-grid strong {
  display: block;
  font-size: 24px;
  margin: 8px 0 10px;
}

.fact-grid p,
.copy-columns p,
.source-note {
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 0;
}

.source-note {
  margin-top: 18px;
}

.source-note a {
  color: var(--green);
  font-weight: 800;
}

.footer {
  border-top: 1px solid var(--line);
  color: var(--muted);
  display: flex;
  gap: 18px;
  justify-content: space-between;
  padding: 34px max(20px, calc((100vw - 1240px) / 2));
}

.footer p {
  line-height: 1.55;
  margin: 0;
  max-width: 640px;
}

@media (max-width: 1100px) {
  [data-calculator-app] {
    min-height: 1000px;
  }

  .calculator-hero,
  .calculator-grid,
  .state-layout,
  .strategy-section,
  .calculator-route {
    grid-template-columns: 1fr;
  }

  .route-copy {
    position: static;
  }

  .calculator-hero {
    gap: 28px;
    min-height: auto;
    padding: 42px 30px 54px;
  }

  .hero-copy {
    max-width: 760px;
    padding: 0;
  }

  .hero-lede {
    max-width: 650px;
  }

  .home .state-section,
  .source-ledger {
    margin-left: 30px;
    margin-right: 30px;
  }

  .task-list > a {
    padding-left: 20px;
    padding-right: 20px;
  }

  .source-list,
  .guide-grid,
  .hub-grid,
  .fact-grid,
  .copy-columns {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  [data-calculator-app] {
    min-height: 1240px;
  }

  .topbar {
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    min-height: 0;
    padding: 12px 20px 10px;
  }

  .nav {
    flex: 1 1 100%;
    flex-wrap: wrap;
    gap: 2px 20px;
    justify-content: flex-start;
    width: 100%;
  }

  .nav a {
    font-size: 12px;
    padding: 7px 0;
  }

  main {
    padding: 24px 20px 48px;
  }

  .home main {
    padding: 0;
  }

  .calculator-hero {
    gap: 22px;
    padding: 28px 20px 36px;
  }

  h1,
  .route-copy h1,
  .trust-page h1 {
    font-size: 34px;
    line-height: 1.08;
  }

  .hero-copy .eyebrow {
    font-size: 10px;
    margin-bottom: 10px;
    padding: 7px 9px;
  }

  .hero-lede {
    font-size: 14px;
    line-height: 1.55;
  }

  .page-actions {
    margin-top: 2px;
  }

  .metric-strip {
    margin-top: 20px;
    padding-top: 12px;
  }

  .metric-strip span {
    font-size: 9px;
    padding: 0 10px;
  }

  .metric-strip strong {
    font-size: 15px;
  }

  .workbench-head {
    min-height: 62px;
    padding: 10px 16px;
  }

  .workbench-head strong {
    font-size: 16px;
  }

  .tabs {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    padding: 0;
  }

  .tabs button {
    border-bottom: 1px solid var(--line);
    border-left: 1px solid var(--line);
    min-height: 43px;
    padding: 7px 4px;
  }

  .tabs button:nth-child(-n + 3) {
    grid-column: span 2;
  }

  .tabs button:nth-child(n + 4) {
    grid-column: span 3;
  }

  .tabs button:first-child,
  .tabs button:nth-child(4) {
    border-left: 0;
  }

  .tabs button.active {
    border-bottom: 2px solid var(--green);
  }

  .calculator-grid {
    gap: 16px;
    padding: 16px;
  }

  .result-primary {
    font-size: 28px;
  }

  .section-head h2 {
    font-size: 24px;
  }

  .field-grid,
  .guide-grid,
  .source-list,
  .state-page-grid,
  .hub-grid,
  .fact-grid,
  .copy-columns {
    grid-template-columns: 1fr;
  }

  .section-head {
    align-items: stretch;
    display: grid;
  }

  .compact-select {
    max-width: none;
    min-width: 0;
  }

  .result-card {
    min-height: 320px;
  }

  .share-row {
    align-items: stretch;
    display: grid;
  }

  .share-status {
    text-align: left;
  }

  .strategy-section {
    padding: 24px;
  }

  .popular-tasks-section {
    padding: 30px 20px;
  }

  .popular-tasks-section .section-head,
  .guides-band .section-head {
    gap: 12px;
    margin-bottom: 18px;
  }

  .task-list {
    grid-template-columns: 1fr;
  }

  .task-list > a,
  .task-list > a:first-child {
    border-left: 0;
    border-top: 1px solid var(--line);
    min-height: 76px;
    padding: 12px 0;
  }

  .task-list > a + a {
    border-left: 0;
  }

  .task-list span {
    height: 34px;
    width: 34px;
  }

  .home .state-section {
    margin: 0;
    padding: 34px 20px 38px;
  }

  .section-badge {
    justify-self: start;
  }

  .state-page-grid.curated-state-grid {
    column-gap: 0;
    grid-auto-flow: row;
    grid-template-columns: 1fr;
    grid-template-rows: repeat(9, 48px);
  }

  .state-page-grid.curated-state-grid a {
    grid-template-columns: 30px minmax(0, 1fr) auto;
    min-height: 48px;
  }

  .curated-state-grid a > small {
    display: none;
  }

  .guides-band {
    padding: 34px 20px;
  }

  .featured-guide-list {
    grid-template-columns: 1fr;
  }

  .featured-guide-list article,
  .featured-guide-list article:first-child {
    border-left: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.24);
    min-height: 112px;
    padding: 18px 0;
  }

  .featured-guide-list h3 {
    font-size: 16px;
    margin: 10px 0 5px;
  }

  .source-ledger {
    gap: 24px;
    grid-template-columns: 1fr;
    margin: 0;
    min-height: 0;
    padding: 30px 20px;
  }

  .source-agencies {
    gap: 18px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .trust-page {
    padding: 24px 20px;
  }

  .trust-source-list {
    grid-template-columns: 1fr;
  }

  .footer {
    display: grid;
    padding: 28px 20px;
  }
}
  font-size: 11px;
