.responsive-comparison-table__cards-heading,
.responsive-comparison-table__cards {
  display: none;
}

.responsive-comparison-table__cards {
  margin: 0;
  padding: 0;
  list-style: none;
}

/* Cost-of-living route: keep the detailed ledger controls out of the global
   guide payload alongside this route's already-owned responsive table CSS. */
.cost-ledger-group-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  margin: 0 0 12px;
  padding: 12px 14px;
  background: var(--sand-light);
  border: 1px solid var(--line);
}

.cost-ledger-group-controls > span {
  color: var(--muted);
  font-size: max(0.75rem, 12px);
}

.cost-ledger-group-controls > div {
  display: flex;
  gap: 8px;
}

.cost-ledger-group-controls button {
  min-height: 44px;
  padding: 9px 12px;
  color: var(--green-dark);
  background: var(--paper-bright);
  border: 1px solid var(--line);
  font-family: var(--font-data);
  font-size: max(0.75rem, 12px);
  font-weight: 850;
  letter-spacing: 0.035em;
  text-transform: uppercase;
}

.cost-ledger-group {
  margin-top: 10px;
  border: 1px solid var(--line);
  background: var(--paper-bright);
}

.cost-ledger-group > summary {
  display: grid;
  grid-template-columns: minmax(10rem, 0.38fr) minmax(0, 0.62fr);
  gap: 18px;
  min-height: 56px;
  align-items: center;
  padding: 12px 14px;
  cursor: pointer;
}

.cost-ledger-group > summary strong {
  color: var(--green-dark);
  font-family: var(--font-data);
  font-size: max(0.75rem, 12px);
  letter-spacing: 0.045em;
  text-transform: uppercase;
}

.cost-ledger-group > summary span {
  color: var(--muted);
  font-size: max(0.75rem, 12px);
  line-height: 1.45;
}

.cost-ledger-group[open] > summary {
  background: var(--sand-light);
  border-bottom: 1px solid var(--line);
}

.cost-ledger-group > fieldset {
  margin: 0;
  padding: 18px 14px 6px;
  border: 0;
}

@media (max-width: 620px) {
  .cost-ledger-group-controls,
  .cost-ledger-group > summary {
    display: grid;
    grid-template-columns: 1fr;
  }

  .cost-ledger-group-controls > div {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
}

/* Cost-of-living route: compact transient relocation runway. */
.relocation-runway {
  scroll-margin-top: 24px;
  padding: clamp(22px, 4vw, 46px);
  margin: clamp(24px, 5vw, 58px) 0;
  color: var(--ink);
  background: var(--sand-light);
  border: 1px solid var(--line);
  border-radius: 2px 20px 2px 20px;
}

.relocation-runway__heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 24px;
  margin-bottom: 18px;
}

.relocation-runway__heading h2 {
  max-width: 18ch;
  margin: 0;
  font-size: clamp(2rem, 4vw, 4rem);
  line-height: 0.98;
}

.relocation-runway__heading p:last-child {
  max-width: 66ch;
  margin: 12px 0 0;
  color: var(--muted);
}

.relocation-runway__actions button {
  min-height: 44px;
}

.relocation-runway__copy-status {
  min-height: 1.5em;
  margin: -4px 0 16px;
  color: var(--green-dark);
  font-size: 0.8125rem;
  line-height: 1.5;
}

.relocation-runway__print-summary {
  display: none;
}

.relocation-runway__saving {
  margin-bottom: 16px;
}

.relocation-runway__instruction {
  padding: 11px 13px;
  margin: 0 0 18px;
  color: var(--green-dark);
  background: var(--green-pale);
  border-left: 4px solid var(--green);
  font-family: var(--font-data);
  font-size: 0.75rem;
  font-weight: 750;
  line-height: 1.5;
}

.relocation-runway__layout {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(300px, 0.92fr);
  align-items: start;
  gap: clamp(16px, 3vw, 30px);
}

.relocation-runway__layout > * {
  min-width: 0;
}

.relocation-runway__controls {
  display: grid;
  gap: 14px;
}

.relocation-runway__controls fieldset {
  min-width: 0;
  padding: clamp(16px, 2.5vw, 24px);
  margin: 0;
  background: var(--paper-bright);
  border: 1px solid var(--line);
  border-radius: 2px 12px 2px 12px;
}

.relocation-runway__controls legend {
  padding: 0 7px;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 1.12rem;
  font-weight: 850;
}

.relocation-runway__controls fieldset > p {
  margin: 0 0 15px;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.5;
}

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

.relocation-runway__fields label {
  display: grid;
  align-content: start;
  gap: 7px;
  min-width: 0;
  font-size: 0.76rem;
  font-weight: 780;
}

.relocation-runway__fields label > small {
  color: var(--muted);
  font-size: 0.8125rem;
  font-weight: 500;
  line-height: 1.45;
}

.relocation-runway__number {
  position: relative;
  display: block;
  min-width: 0;
}

.relocation-runway__number input {
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  color: var(--ink);
  background: var(--paper-bright);
  border: 1px solid #7c878b;
  border-radius: 2px;
  font: inherit;
  font-size: 1rem;
}

.relocation-runway__number--currency input {
  padding-left: 28px;
}

.relocation-runway__number--suffix input {
  padding-right: 58px;
}

.relocation-runway__number i {
  position: absolute;
  z-index: 1;
  top: 50%;
  color: var(--muted);
  font-family: var(--font-data);
  font-size: 0.75rem;
  font-style: normal;
  pointer-events: none;
  transform: translateY(-50%);
}

.relocation-runway__number--currency i {
  left: 11px;
}

.relocation-runway__number--suffix i {
  right: 10px;
}

.relocation-runway__number input[aria-invalid="true"] {
  border-color: #a61f17;
  box-shadow: 0 0 0 1px #a61f17;
}

.relocation-runway__number input:focus-visible,
.relocation-runway__actions button:focus-visible,
.relocation-runway__method summary:focus-visible {
  outline: 3px solid var(--signal);
  outline-offset: 3px;
}

.relocation-runway__results {
  position: sticky;
  top: 24px;
  padding: clamp(20px, 3vw, 30px);
  color: var(--paper-bright);
  background: var(--ink);
  border: 1px solid var(--ink);
  border-radius: 2px 16px 2px 16px;
}

.relocation-runway__results > .kicker {
  color: #95cdbc;
}

.relocation-runway__results h3 {
  margin: 0 0 18px;
  color: var(--paper-bright);
  font-size: clamp(1.6rem, 3vw, 2.5rem);
}

.relocation-runway__payback {
  display: grid;
  gap: 5px;
  padding: 18px;
  margin-bottom: 18px;
  background: rgb(255 255 255 / 7%);
  border: 1px solid rgb(255 255 255 / 18%);
  border-left: 4px solid var(--coral);
}

.relocation-runway__payback span,
.relocation-runway__payback small {
  color: #c7d1d8;
  font-family: var(--font-data);
  font-size: 0.75rem;
  line-height: 1.45;
}

.relocation-runway__payback strong {
  color: var(--paper-bright);
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.5vw, 2rem);
  line-height: 1.1;
  overflow-wrap: anywhere;
}

.relocation-runway__results dl {
  margin: 0;
}

.relocation-runway__results dl > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(118px, auto);
  gap: 15px;
  align-items: baseline;
  padding: 12px 0;
  border-top: 1px solid rgb(255 255 255 / 14%);
}

.relocation-runway__results dt {
  color: #c7d1d8;
  font-size: 0.76rem;
  line-height: 1.4;
}

.relocation-runway__results dd {
  min-width: 0;
  margin: 0;
  font-family: var(--font-data);
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1.45;
  text-align: right;
  overflow-wrap: anywhere;
}

.relocation-runway__warning {
  padding: 11px 13px;
  margin: 16px 0 0;
  color: #ffe0d7;
  background: rgb(216 89 65 / 16%);
  border-left: 4px solid var(--coral);
  font-size: 0.75rem;
  line-height: 1.5;
}

.relocation-runway__method {
  margin-top: 18px;
  border-top: 1px solid rgb(255 255 255 / 18%);
}

.relocation-runway__method summary {
  min-height: 44px;
  padding: 13px 0;
  color: var(--paper-bright);
  font-weight: 800;
  cursor: pointer;
}

.relocation-runway__method ul {
  padding-left: 20px;
  margin: 0 0 16px;
}

.relocation-runway__method li,
.relocation-runway__caveat {
  color: #c7d1d8;
  font-size: 0.8125rem;
  line-height: 1.55;
}

.relocation-runway__method li + li {
  margin-top: 8px;
}

.relocation-runway__caveat {
  margin: 18px 0 0;
}

@media (max-width: 720px) {
  .relocation-runway {
    padding: 18px;
    margin-block: 24px;
    border-radius: 2px 14px 2px 14px;
  }

  .relocation-runway__heading {
    grid-template-columns: 1fr;
    align-items: start;
    gap: 14px;
  }

  .relocation-runway__heading h2 {
    font-size: clamp(1.85rem, 9vw, 2.65rem);
  }

  .relocation-runway__layout,
  .relocation-runway__fields {
    grid-template-columns: 1fr;
  }

  .relocation-runway__results {
    position: static;
  }

  .responsive-comparison-table__hint {
    display: block;
    margin: 0 0 9px;
    color: var(--green-dark);
    font-family: var(--font-data);
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-align: left;
    text-transform: uppercase;
  }

  .responsive-comparison-table__table {
    display: none;
  }

  .responsive-comparison-table__cards-heading {
    display: block;
    margin: 0 0 10px;
    padding: 12px 14px;
    color: var(--paper-bright);
    background: var(--green-dark);
    border-radius: 2px 10px 0 0;
    font-family: var(--font-data);
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    line-height: 1.4;
    text-transform: uppercase;
  }

  .responsive-comparison-table__cards {
    display: grid;
    gap: 10px;
  }

  .responsive-comparison-table__cards > li {
    min-width: 0;
  }

  .responsive-comparison-card {
    min-width: 0;
    overflow: hidden;
    background: var(--paper-bright);
    border: 1px solid var(--line);
    border-radius: 2px 12px 2px 12px;
  }

  .responsive-comparison-card h4 {
    margin: 0;
    padding: 13px 14px;
    color: var(--paper-bright);
    background: var(--ink);
    font-family: var(--font-body);
    font-size: 0.875rem;
    line-height: 1.35;
  }

  .responsive-comparison-card dl {
    margin: 0;
  }

  .responsive-comparison-card dl > div {
    display: grid;
    grid-template-columns: minmax(116px, 0.34fr) minmax(0, 1fr);
    gap: 12px;
    min-width: 0;
    padding: 11px 14px;
    border-top: 1px solid var(--line);
  }

  .responsive-comparison-card dt {
    color: var(--green-dark);
    font-family: var(--font-data);
    font-size: 0.75rem;
    font-weight: 850;
    letter-spacing: 0.035em;
    line-height: 1.4;
    text-transform: uppercase;
  }

  .responsive-comparison-card dd {
    min-width: 0;
    margin: 0;
    font-size: 0.8125rem;
    line-height: 1.45;
  }
}

@media (max-width: 440px) {
  .relocation-runway__results dl > div {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .relocation-runway__results dd {
    text-align: left;
  }

  .responsive-comparison-card dl > div {
    grid-template-columns: 1fr;
    gap: 4px;
  }
}

@media print {
  .relocation-runway {
    break-inside: avoid;
    color: #000;
    background: #fff;
  }

  .relocation-runway__results {
    position: static;
    color: #000;
    background: #fff;
    border-color: #000;
  }

  .relocation-runway__results :is(h3, dt, dd, strong, span, small, li),
  .relocation-runway__caveat {
    color: #000;
  }

  .relocation-runway__actions,
  .relocation-runway__copy-status,
  .relocation-runway__saving {
    display: none;
  }

  .responsive-comparison-table__hint,
  .responsive-comparison-table__cards-heading,
  .responsive-comparison-table__cards {
    display: none !important;
  }

  .responsive-comparison-table__table {
    display: block !important;
  }

  html[data-print-surface="relocation-runway-summary"] body * {
    display: none !important;
  }

  html[data-print-surface="relocation-runway-summary"]
    body
    *:not(.relocation-runway__print-summary):has(
      .relocation-runway__print-summary
    ) {
    display: contents !important;
  }

  html[data-print-surface="relocation-runway-summary"]
    .relocation-runway__print-summary,
  html[data-print-surface="relocation-runway-summary"]
    .relocation-runway__print-summary
    * {
    display: revert !important;
  }

  html[data-print-surface="relocation-runway-summary"]
    .relocation-runway__print-summary
    pre {
    margin: 0;
    color: var(--ink);
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    font: 12pt/1.5 system-ui, sans-serif;
  }
}
