.moving-header [aria-current="page"] { color: #fff; }

.move-hero {
  padding: clamp(52px, 6vw, 80px) var(--page-pad) clamp(42px, 5vw, 64px);
  background: radial-gradient(circle at 88% 18%, rgba(169, 209, 184, 0.42), transparent 31%), var(--cream);
}

.move-hero-inner {
  width: min(100%, 1440px);
  margin: 0 auto;
}

.move-kicker {
  margin: 0 0 18px;
  color: var(--forest-dark);
  font-size: 0.76rem;
  font-weight: 850;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.move-intro {
  max-width: 780px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.4vw, 1.2rem);
}

.city-matchup {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  width: 100%;
  min-height: 190px;
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(24, 48, 42, 0.2);
  border-radius: 18px;
  background: var(--pine);
  box-shadow: 0 18px 45px rgba(24, 48, 42, 0.14);
  color: #fff;
  line-height: 1;
  letter-spacing: normal;
  white-space: normal;
}

.city-matchup::after {
  position: absolute;
  z-index: 2;
  top: -12%;
  bottom: -12%;
  left: 50%;
  width: 3px;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: 0 0 0 1px rgba(24, 48, 42, 0.35);
  content: "";
  pointer-events: none;
  transform: rotate(8deg);
  transform-origin: center;
}

.city-visual-card {
  position: relative;
  z-index: 0;
  display: flex;
  align-items: flex-end;
  min-width: 0;
  min-height: 190px;
  overflow: hidden;
  background: var(--pine);
  color: #fff;
}

.city-visual-card img {
  position: absolute;
  z-index: -2;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.city-visual-card::after {
  position: absolute;
  z-index: -1;
  inset: 0;
  background: linear-gradient(180deg, rgba(8, 26, 22, 0.06) 10%, rgba(8, 26, 22, 0.9) 100%);
  content: "";
  pointer-events: none;
}

.city-matchup-copy {
  display: grid;
  gap: 8px;
  width: 100%;
  padding: 24px;
  color: #fff;
}

.city-matchup-copy-right { text-align: right; }

.city-matchup-role {
  color: rgba(255, 255, 255, 0.75);
  font-family: system-ui, sans-serif;
  font-size: 0.7rem;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.city-matchup-city {
  display: flex;
  align-items: baseline;
  gap: 10px;
  color: #fff;
  font-family: Georgia, serif;
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 750;
  line-height: 1;
}

.city-matchup-copy-right .city-matchup-city { justify-content: flex-end; }
.city-matchup-city small { font-family: system-ui, sans-serif; font-size: 0.75rem; letter-spacing: 0.1em; }

.city-photo-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  width: 100%;
  margin-top: 10px;
}

.city-photo-links a {
  color: var(--forest-dark);
  font-size: 0.78rem;
  font-weight: 850;
  text-underline-offset: 3px;
}

.city-photo-links a:last-child { text-align: right; }

.city-visual-note {
  max-width: 100%;
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 0.76rem;
}

.move-form {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(180px, 1fr) auto minmax(180px, 1fr) auto;
  align-items: end;
  gap: 12px;
  margin-top: 30px;
}

.move-field { display: grid; gap: 8px; }
.move-field label { font-weight: 800; }

.move-field select {
  width: 100%;
  min-height: 54px;
  appearance: none;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16'%3E%3Cpath d='m3 6 5 5 5-5' fill='none' stroke='%2318302a' stroke-width='2'/%3E%3C/svg%3E") no-repeat right 16px center;
  padding: 12px 44px 12px 16px;
  color: var(--pine);
  font-weight: 750;
}

.swap-button, .move-submit { min-height: 54px; border-radius: 10px; font-weight: 800; }
.swap-button { width: 54px; border: 1px solid var(--line); background: var(--paper); color: var(--forest-dark); font-size: 1.35rem; }
.move-submit { display: inline-flex; align-items: center; justify-content: center; gap: 18px; border: 1px solid var(--pine); background: var(--pine); color: #fff; padding: 12px 22px; white-space: nowrap; }

.move-summary { padding: 26px var(--page-pad); background: var(--forest); color: #fff; }
.move-summary p { max-width: 1440px; margin: 0 auto; font-weight: 750; }

.comparison-section { padding: var(--section-pad) var(--page-pad); }
.comparison-section:nth-of-type(even) { background: var(--cream); }
.comparison-section > * { max-width: 1440px; margin-left: auto; margin-right: auto; }
.comparison-section .section-heading {
  display: grid;
  grid-template-columns: 1fr;
  align-items: start;
  gap: 14px;
  width: min(100%, 1420px);
  max-width: none;
  margin-bottom: 40px;
}
.comparison-section .section-heading .move-kicker { margin-bottom: 0; }
.section-heading h2 { max-width: 1050px; margin: 0; color: var(--pine); font-size: clamp(2.2rem, 4.4vw, 4.5rem); line-height: 0.98; letter-spacing: -0.045em; white-space: nowrap; }
.section-heading > p:last-child { max-width: 100%; color: var(--muted); font-size: 1.06rem; }

.civic-results, .move-results { display: grid; gap: 28px; }
.metric-group { display: grid; gap: 15px; }
.metric-group > h3 { margin: 0; color: var(--pine); font-size: clamp(1.3rem, 2vw, 1.7rem); }
.metric-table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); }
.metric-table-scroll:focus-visible { outline: 3px solid var(--forest); outline-offset: 3px; }
.metric-table { width: 100%; min-width: 680px; border-collapse: collapse; table-layout: fixed; }
.metric-table th, .metric-table td { padding: 17px 22px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
.metric-table tr:last-child th, .metric-table tr:last-child td { border-bottom: 0; }
.metric-table thead th { background: var(--table-header, #333333); color: #fff; font-size: 0.76rem; font-weight: 850; letter-spacing: 0.08em; text-transform: uppercase; }
.metric-table thead th + th { border-left: 1px solid #fff; }
.metric-table thead th:first-child { width: 38%; }
.metric-table tbody th { position: relative; color: var(--pine); font-size: 0.93rem; }
.metric-row-label { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.metric-table tbody td { color: var(--forest-dark); font-family: Georgia, serif; font-size: 0.93rem; font-weight: 750; line-height: 1.2; }
.metric-table tbody tr:nth-child(even) { background: #f7faf7; }
.metric-table tbody tr:hover { background: #edf5ef; }
.metric-table tbody td + td { border-left: 1px solid var(--line); }
.metric-table tbody th,
.metric-table tbody td,
.property-tax-formula strong,
.budget-title-line h3,
.responsibility-card h3,
.property-tax-links a { overflow-wrap: anywhere; }

.metric-table .metric-group-toggle-row td {
  border-left: 0;
  padding: 0;
}

.metric-group-toggle {
  width: 100%;
  border: 0;
  background: #edf5ef;
  padding: 16px 22px;
  color: var(--forest-dark);
  cursor: pointer;
  font: inherit;
  font-size: 0.93rem;
  font-weight: 850;
  text-align: left;
}

.metric-group-toggle:hover,
.metric-group-toggle:focus-visible {
  background: var(--forest);
  color: #fff;
}

.metric-help { position: relative; flex: 0 0 auto; }
.metric-help summary { display: grid; place-items: center; width: 30px; height: 30px; border: 1px solid var(--forest); border-radius: 50%; color: var(--forest-dark); cursor: pointer; font-weight: 900; list-style: none; }
.metric-help summary::-webkit-details-marker { display: none; }
.metric-help[open] summary { background: var(--forest); color: #fff; }
.metric-help-body { position: absolute; z-index: 5; top: 38px; right: 0; width: min(390px, calc(100vw - 48px)); border: 1px solid var(--line); border-radius: 12px; background: #fff; box-shadow: 0 18px 48px rgba(24, 48, 42, 0.18); padding: 20px; color: var(--muted); font-size: 0.84rem; line-height: 1.5; }
.metric-table .metric-help-body { position: fixed; top: 50%; right: auto; left: 50%; width: min(460px, calc(100vw - 48px)); max-height: calc(100vh - 48px); overflow: auto; transform: translate(-50%, -50%); }
.metric-help-body p { margin: 0 0 12px; }
.metric-help-body strong { color: var(--pine); font-family: inherit; font-size: inherit; }
.metric-help-body a { color: var(--forest-dark); font-weight: 800; }
.metric-help-city + .metric-help-city { margin-top: 20px; border-top: 1px solid var(--line); padding-top: 20px; }
.metric-help-city h5 { margin: 0 0 12px; color: var(--pine); font-size: 1rem; }
.metric-help-close { display: block; margin: 0 0 14px auto; border: 1px solid var(--line); border-radius: 999px; background: var(--paper); color: var(--pine); padding: 7px 11px; cursor: pointer; font: inherit; font-weight: 800; }
.metric-help-close:hover, .metric-help-close:focus-visible { border-color: var(--forest); background: #edf5ef; }
details.metric-help:not([open]) > .metric-help-body { display: none; }

.property-tax-guide { margin-top: 34px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--pine); padding: clamp(26px, 4vw, 48px); color: #fff; }
.property-tax-guide-heading { display: grid; grid-template-columns: 1fr; align-items: start; gap: 14px; }
.property-tax-guide .move-kicker { color: var(--sage); }
.property-tax-guide h3 { max-width: 820px; margin: 0; font-size: clamp(1.8rem, 3.4vw, 3.25rem); line-height: 1; letter-spacing: -0.045em; white-space: nowrap; }
.property-tax-guide-heading > p { max-width: 480px; margin: 0; color: rgba(255, 255, 255, 0.72); font-size: 1.02rem; line-height: 1.55; }
.property-tax-formula { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 10px 26px; margin: 34px 0; border: 1px solid rgba(255, 255, 255, 0.2); border-radius: 14px; background: rgba(255, 255, 255, 0.07); padding: 22px 24px; }
.property-tax-formula span { color: rgba(255, 255, 255, 0.68); font-size: 0.82rem; line-height: 1.45; }
.property-tax-formula span:first-child { color: var(--sage); font-weight: 850; letter-spacing: 0.08em; text-transform: uppercase; }
.property-tax-formula strong { font-family: Georgia, serif; font-size: clamp(1.05rem, 1.8vw, 1.4rem); line-height: 1.25; white-space: nowrap; }
.property-tax-formula span:last-child { grid-column: 2; }
.property-tax-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin: 0; padding: 0; list-style: none; }
.property-tax-steps li { display: grid; grid-template-columns: 30px 1fr; align-content: start; gap: 12px; border-top: 1px solid rgba(255, 255, 255, 0.25); padding-top: 20px; }
.property-tax-steps li > span { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--sage); color: var(--pine); font-size: 0.78rem; font-weight: 900; }
.property-tax-steps strong { font-size: 0.95rem; line-height: 1.35; }
.property-tax-steps p { margin: 9px 0 0; color: rgba(255, 255, 255, 0.66); font-size: 0.83rem; line-height: 1.5; }
.property-tax-links { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 30px; }
.property-tax-links a { color: var(--sage); font-size: 0.84rem; font-weight: 850; text-decoration: none; }
.property-tax-links a:hover { text-decoration: underline; }
.property-tax-caution { margin: 18px 0 0; color: rgba(255, 255, 255, 0.72); font-size: 0.83rem; font-weight: 700; }

.budget-results { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.budget-card { min-width: 0; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; padding: clamp(22px, 3vw, 32px); }
.budget-city { margin: 0 0 8px; color: var(--forest-dark); font-size: 0.76rem; font-weight: 850; letter-spacing: 0.08em; text-transform: uppercase; }
.budget-title-line { display: flex; align-items: flex-start; justify-content: space-between; gap: 15px; }
.budget-title-line h3 { margin: 0; color: var(--pine); font-size: clamp(1.45rem, 2.5vw, 2rem); line-height: 1.05; }
.budget-meta { margin: 12px 0 24px; color: var(--muted); font-size: 0.86rem; font-weight: 700; }
.budget-list { display: grid; gap: 14px; }
.budget-row-copy { display: flex; justify-content: space-between; gap: 20px; color: var(--ink); font-size: 0.87rem; }
.budget-row-copy strong { color: var(--forest-dark); }
.budget-track { height: 8px; margin-top: 6px; overflow: hidden; border-radius: 999px; background: var(--cream); }
.budget-track span { display: block; height: 100%; border-radius: inherit; background: var(--forest); }

.responsibility-results { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.responsibility-card { border-top: 4px solid var(--forest); background: #fff; padding: 24px; }
.responsibility-service { margin: 0 0 8px; color: var(--forest-dark); font-size: 0.73rem; font-weight: 850; letter-spacing: 0.08em; text-transform: uppercase; }
.responsibility-card h3 { margin: 0; color: var(--pine); font-size: 1.3rem; }
.responsibility-card > p:not(.responsibility-service) { color: var(--muted); font-size: 0.9rem; line-height: 1.55; }
.responsibility-why { border-top: 1px solid var(--line); padding-top: 14px; }

.move-loading, .move-error, .research-card { border: 1px solid var(--line); border-radius: var(--radius); background: var(--cream); padding: 28px; color: var(--muted); }
.research-card strong { color: var(--pine); }
.research-card p, .move-error p { margin: 8px 0 0; }
.move-error button { margin-top: 16px; border: 1px solid var(--pine); border-radius: 8px; background: var(--pine); color: #fff; padding: 10px 16px; font-weight: 800; }

.move-topic { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); }
.move-topic-head { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; padding: 22px 26px; background: var(--pine); border-bottom: 1px solid var(--pine); }
.move-topic-head h3 { margin: 0; color: #fff; font-size: clamp(1.35rem, 2.4vw, 2rem); }
.coverage-label { flex: 0 0 auto; border-radius: 999px; background: var(--sage); color: var(--forest-dark); padding: 5px 10px; font-size: 0.72rem; font-weight: 850; }
.coverage-label.partial { background: var(--amber-bg); color: #8a570d; }
.move-topic-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.move-city-answer { min-width: 0; padding: 26px; }
.move-city-answer + .move-city-answer { border-left: 1px solid var(--line); }
.move-city-answer h4 { margin: 0 0 18px; color: var(--pine); font-size: 1.18rem; }
.move-city-answer .answer { margin: 0; color: var(--ink); font-size: 1rem; font-weight: 700; line-height: 1.55; }
.move-city-answer .researching-copy { margin: 0; color: var(--muted); }
.answer-source { display: flex; flex-wrap: wrap; gap: 10px 16px; margin-top: 18px; }
.answer-source a { color: var(--forest-dark); font-size: 0.84rem; font-weight: 800; text-decoration: none; }
.answer-source a:hover { text-decoration: underline; }

.move-footer { display: flex; align-items: center; justify-content: space-between; gap: 30px; padding: 34px var(--page-pad); background: var(--pine); color: rgba(255, 255, 255, 0.68); font-size: 0.8rem; }
.move-footer p { margin: 0; }

@media (max-width: 980px) {
  .comparison-section .section-heading { width: 100%; min-width: 0; }
  .comparison-section .section-heading > p:last-child { max-width: 100%; margin: 0; }
  .property-tax-formula { grid-template-columns: 1fr; gap: 10px; }
  .property-tax-formula strong { white-space: normal; }
  .property-tax-formula span:last-child { grid-column: auto; }
  .property-tax-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .responsibility-results { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 820px) {
  .move-form { grid-template-columns: 1fr 54px 1fr; }
  .move-submit { grid-column: 1 / -1; }
  .budget-results { grid-template-columns: 1fr; }
}

@media (max-width: 660px) {
  .move-hero { padding: 54px 20px 48px; }
  .section-heading h2 { font-size: clamp(1.35rem, 6.2vw, 2rem); }
  .property-tax-guide h3 { font-size: clamp(1.35rem, 6.2vw, 1.85rem); }
  .move-form { grid-template-columns: 1fr; }
  .city-matchup { grid-template-columns: repeat(2, minmax(0, 1fr)); min-height: 150px; }
  .city-visual-card { min-height: 150px; }
  .city-matchup-copy { gap: 6px; padding: 14px 12px; }
  .city-matchup-city { align-items: flex-start; flex-direction: column; gap: 5px; font-size: clamp(1.35rem, 7vw, 1.8rem); }
  .city-matchup-copy-right .city-matchup-city { align-items: flex-end; }
  .city-matchup-role { font-size: 0.58rem; }
  .city-photo-links { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .city-photo-links a { font-size: 0.7rem; }
  .swap-button { width: 100%; }
  .move-summary, .comparison-section { padding-left: 20px; padding-right: 20px; }
  .responsibility-results { grid-template-columns: 1fr; }
  .property-tax-guide { padding: 24px 20px; }
  .property-tax-steps { grid-template-columns: 1fr; }
  .metric-table { min-width: 100%; }
  .metric-table thead th:first-child { width: 42%; }
  .metric-table th, .metric-table td { padding: 13px 8px; }
  .metric-table tbody th, .metric-table tbody td { font-size: 0.78rem; }
  .metric-row-label { gap: 6px; }
  .metric-table .metric-help summary { width: 24px; height: 24px; font-size: 0.72rem; }
  .metric-help-body { position: fixed; top: auto; right: auto; bottom: 20px; left: 20px; width: calc(100vw - 40px); max-width: none; max-height: 70vh; overflow: auto; overflow-wrap: anywhere; transform: none; }
  .move-topic-head { align-items: flex-start; flex-direction: column; gap: 10px; padding: 20px; }
  .move-topic-grid { grid-template-columns: 1fr; }
  .move-city-answer { padding: 20px; }
  .move-city-answer + .move-city-answer { border-top: 1px solid var(--line); border-left: 0; }
  .move-footer { align-items: flex-start; flex-direction: column; padding: 30px 20px; }
}
