/* MoveDesk — "Interstate" layer.
   A relocation is a road trip with paperwork, so the interface borrows the US highway system's own visual language:
   MUTCD guide-sign green with a white inset border, lane-line yellow for the one thing to do next, asphalt for the ground,
   and Overpass — the open-source descendant of the FHWA "Highway Gothic" road-sign alphabet. */
:root {
  --body: "Overpass", system-ui, sans-serif;
  --mono: "Overpass Mono", ui-monospace, monospace;
  --sign: #0f6b47;
  --sign-2: #0b5738;
  --sign-hi: #1f9d62;
  --lane: #f5c518;
  --lane-ink: #1a1500;
  --shield: #1f4fa3;
  --shield-red: #c8102e;
  --asphalt: #121517;
  --reflect: #f4f6f2;
}
body {
  font-family: var(--body);
}
h1,
h2,
h3,
.brand,
.versus b,
.command-card h3 {
  font-family: var(--body);
}

/* hero headline: the second line is mounted on a guide sign */
.hero-copy h1 {
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 0.94;
}
.hero-copy h1 em,
.section-head h2 em {
  font-style: normal;
  color: #fff;
  -webkit-text-fill-color: #fff;
  background: none;
  -webkit-background-clip: border-box;
  background-clip: border-box;
}
.hero-copy h1 em {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.42em;
  margin-top: 0.16em;
  padding: 0.2em 0.5em 0.16em 0.46em;
  font-size: 0.6em;
  line-height: 1.05;
  letter-spacing: -0.01em;
  white-space: nowrap;
  border-radius: 0.16em;
  background: var(--sign);
  box-shadow:
    inset 0 0 0 0.07em var(--sign),
    inset 0 0 0 0.13em var(--reflect),
    0 22px 50px rgba(0, 0, 0, 0.45);
}
/* the up-arrow a guide sign uses for "straight ahead" */
.hero-copy h1 em::after {
  content: "";
  flex: 0 0 auto;
  width: 0.62em;
  height: 0.72em;
  background: #fff;
  clip-path: polygon(50% 0, 100% 46%, 68% 46%, 68% 100%, 32% 100%, 32% 46%, 0 46%);
}
/* sign posts */
.hero-copy h1 em::before {
  content: "";
  position: absolute;
  top: 100%;
  left: 18%;
  right: 18%;
  height: 0.22em;
  background: linear-gradient(
    90deg,
    transparent 0 6%,
    #7c8588 6% 10%,
    transparent 10% 90%,
    #7c8588 90% 94%,
    transparent 94%
  );
}
.section-head h2 em {
  color: var(--lane);
  -webkit-text-fill-color: var(--lane);
}
.kicker {
  color: var(--lane);
}

/* section numbers read like exit tabs */
.section-num {
  display: inline-flex;
  align-items: center;
  gap: 0;
  padding: 5px 9px 4px;
  border-radius: 4px 4px 0 0;
  background: var(--sign);
  color: #fff;
  box-shadow: inset 0 0 0 1.5px rgba(244, 246, 242, 0.9);
  font-weight: 700;
  letter-spacing: 0.12em;
}

/* the one primary action is painted like a lane line */
.build-brief {
  background: var(--lane) !important;
  color: var(--lane-ink) !important;
  border-radius: 10px;
  font-weight: 800;
  letter-spacing: 0.02em;
  box-shadow: 0 10px 30px rgba(245, 197, 24, 0.18);
}
.build-brief:hover {
  background: #ffd43b !important;
}
.sample-move {
  color: #b9c4bc;
}
.route-form {
  border-color: rgba(244, 246, 242, 0.16);
}
.route-form .from-field .search-box i {
  background: var(--sign-hi);
}
.route-form .to-field .search-box i {
  background: var(--lane);
}

/* hero journey ribbon: relocation data, not a literal road */
.route-art.journey-ribbon {
  opacity: 1;
  height: 150px;
  bottom: 3.5%;
  left: max(3vw, 24px);
  right: max(3vw, 24px);
  overflow: visible;
}
.journey-contours {
  position: absolute;
  inset: 10px 6% 0;
  opacity: 0.23;
  background:
    radial-gradient(
      ellipse at 18% 55%,
      transparent 0 22px,
      rgba(31, 157, 98, 0.24) 23px 24px,
      transparent 25px 38px,
      rgba(31, 157, 98, 0.14) 39px 40px,
      transparent 41px
    ),
    radial-gradient(
      ellipse at 76% 42%,
      transparent 0 28px,
      rgba(245, 197, 24, 0.18) 29px 30px,
      transparent 31px 48px,
      rgba(245, 197, 24, 0.11) 49px 50px,
      transparent 51px
    ),
    repeating-linear-gradient(90deg, transparent 0 64px, rgba(255, 255, 255, 0.025) 65px),
    repeating-linear-gradient(0deg, transparent 0 34px, rgba(255, 255, 255, 0.02) 35px);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.journey-track {
  position: absolute;
  left: 148px;
  right: 148px;
  top: 0;
  bottom: 0;
}
.journey-track svg {
  position: absolute;
  inset: 3px 0 14px;
  width: 100%;
  height: 118px;
  overflow: visible;
}
.jr-shadow {
  fill: none;
  stroke: rgba(0, 0, 0, 0.62);
  stroke-width: 16;
  stroke-linecap: round;
}
.jr-glow {
  fill: none;
  stroke: url(#journeyGradient);
  stroke-width: 10;
  stroke-linecap: round;
  opacity: 0.28;
  filter: url(#journeyGlow);
}
.jr-line {
  fill: none;
  stroke: url(#journeyGradient);
  stroke-width: 3.2;
  stroke-linecap: round;
}
.jr-dash {
  fill: none;
  stroke: rgba(244, 246, 242, 0.72);
  stroke-width: 1.2;
  stroke-linecap: round;
  stroke-dasharray: 2 18;
  opacity: 0.72;
}
.jr-pulse {
  fill: var(--lane);
  stroke: #fff;
  stroke-width: 1.5;
  filter: drop-shadow(0 0 7px rgba(245, 197, 24, 0.85));
}
.journey-node {
  position: absolute;
  top: 43px;
  width: 138px;
  min-height: 58px;
  display: grid;
  grid-template-columns: 14px 1fr;
  grid-template-rows: auto auto;
  column-gap: 8px;
  align-content: center;
  padding: 9px 11px;
  border: 1px solid rgba(244, 246, 242, 0.16);
  border-radius: 15px;
  background: rgba(13, 17, 18, 0.82);
  box-shadow:
    0 15px 34px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(9px);
}
.journey-node > i {
  grid-row: 1/3;
  align-self: center;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 3px solid var(--sign-hi);
  box-shadow: 0 0 0 5px rgba(31, 157, 98, 0.09);
}
.journey-node small {
  font: 600 8px/1 var(--mono);
  letter-spacing: 0.13em;
  color: #70877f;
}
.journey-node b {
  margin-top: 4px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font: 700 10px/1.15 var(--mono);
  letter-spacing: 0.035em;
  color: #e6ece4;
}
.journey-from {
  left: 0;
}
.journey-to {
  right: 0;
}
.journey-to > i {
  border-color: var(--lane);
  box-shadow: 0 0 0 5px rgba(245, 197, 24, 0.09);
}
.journey-stat {
  position: absolute;
  top: 10px;
  padding: 6px 9px;
  border: 1px solid rgba(244, 246, 242, 0.1);
  border-radius: 10px;
  background: rgba(10, 13, 14, 0.76);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(7px);
}
.journey-stat small {
  display: block;
  font: 600 7px/1 var(--mono);
  letter-spacing: 0.12em;
  color: #657a73;
}
.journey-stat b {
  display: block;
  margin-top: 4px;
  font: 700 9px/1 var(--mono);
  letter-spacing: 0.04em;
  color: #dbe5da;
}
.journey-distance {
  left: 23%;
}
.journey-duration {
  right: 18%;
  top: 61px;
}
.journey-milestones {
  position: absolute;
  left: 9%;
  right: 8%;
  bottom: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #72847e;
  font: 600 7px/1 var(--mono);
  letter-spacing: 0.13em;
}
.journey-milestones span {
  position: relative;
  padding-top: 9px;
}
.journey-milestones span:before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  width: 4px;
  height: 4px;
  transform: translateX(-50%) rotate(45deg);
  background: rgba(244, 246, 242, 0.4);
}
@media (prefers-reduced-motion: reduce) {
  .jr-pulse {
    display: none;
  }
}

/* compare band: departure and destination as a pair of guide signs */
.compare-side h2 {
  font-weight: 900;
  letter-spacing: -0.02em;
}
.versus b {
  font-weight: 900;
}
.versus {
  background: var(--sign);
  box-shadow:
    inset 0 0 0 3px var(--sign),
    inset 0 0 0 5px var(--reflect);
  border-radius: 12px;
  color: #fff;
}
.versus span,
.versus small {
  color: rgba(255, 255, 255, 0.8);
}

/* live-data chip + map: OSM tiles rendered as a night map to sit on the asphalt */
.leaflet-tile-pane {
  filter: invert(1) hue-rotate(180deg) brightness(0.92) contrast(0.9) saturate(0.55);
}
.leaflet-container {
  background: #15191b;
}
.api-chip i {
  background: var(--sign-hi);
}
.move-marker.from,
.marker-from {
  background: var(--sign-hi);
}
.move-marker.to,
.marker-to {
  background: var(--lane);
}

/* the move itself is posted like a distance sign */
.compare-band .versus {
  align-self: center;
  justify-self: center;
  width: min(250px, 100%);
  margin: 22px 0;
  padding: 18px 16px 16px;
  gap: 2px;
  border: 0;
}
body .versus span {
  font: 700 11px var(--mono);
  letter-spacing: 0.14em;
}
body .versus b {
  font-size: 36px;
  letter-spacing: -0.02em;
  margin-top: 6px;
}
body .versus small {
  font: 700 11px var(--mono);
  letter-spacing: 0.08em;
}

/* move math: keep the console inside the grid, paint the bars like lane markings */
.budget-console {
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
}
.budget-output,
.budget-inputs,
.budget-ticket,
.budget-inputs label {
  min-width: 0;
}
.budget-inputs {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.budget-inputs input {
  width: 100%;
  min-width: 0;
  font-family: var(--mono);
  color: #eef2ec;
}
.budget-inputs label:focus-within {
  border-color: var(--lane);
  box-shadow: 0 0 0 3px rgba(245, 197, 24, 0.12);
}
.budget-ticket b {
  font-size: clamp(24px, 2.4vw, 32px);
  overflow-wrap: anywhere;
}
.budget-ticket:first-child {
  box-shadow: inset 0 3px 0 var(--lane);
}
.budget-bars i {
  background: repeating-linear-gradient(
    90deg,
    var(--lane) 0 18px,
    rgba(245, 197, 24, 0.55) 18px 22px
  );
}

/* action plan: the next step is the lane you're in */
.plan-compass {
  border-top: 3px solid var(--lane);
}
.plan-compass span {
  color: var(--lane);
}
.plan-compass button {
  background: var(--lane);
  color: var(--lane-ink);
  font-weight: 800;
  border-radius: 8px;
}
.plan-compass button:hover:not(:disabled) {
  background: #ffd43b;
}
.plan-head span {
  background: var(--sign);
  color: #fff;
  box-shadow: inset 0 0 0 1.5px rgba(244, 246, 242, 0.85);
}
.official-links a {
  border-color: rgba(31, 157, 98, 0.5);
}
.official-links a:hover {
  background: var(--sign);
  color: #fff;
  border-color: var(--sign);
}
.climate-section a {
  color: var(--lane);
}

/* climate: one fixed cold→hot ramp across both cities, so colours compare */
body .climate-month {
  grid-template-columns: 38px minmax(0, 1fr) 96px;
}
body .climate-month > b {
  white-space: nowrap;
  color: #c9d4c7;
}
body .temp-track {
  background: #20272a;
}
body .temp-range {
  background: linear-gradient(90deg, #2a62c9 0%, #3ecf8e 36%, #f5c518 64%, #ef5a4b 100%);
  background-size: calc(100% * 100 / var(--w, 100)) 100%;
  background-position: calc(var(--l, 0) / (100.001 - var(--w, 100)) * 100%) 0;
}

/* legibility: road-sign rule — nothing a reader needs is set below ~10px */
body .boot-foot {
  font-size: 10.5px;
}
body .api-chip {
  font-size: 10px;
}
body .kicker,
body .section-num,
body .card-kicker {
  font-size: 11px;
}
body .route-form-top,
body .field-code {
  font-size: 10.5px;
}
body .location-field > small,
body .sample-move {
  font-size: 10.5px;
}
body .suggestions span,
body .route-label {
  font-size: 11px;
}
body .place-label {
  font-size: 10.5px;
}
body .weather-chip span {
  font-size: 10px;
}
body .mini-metrics span {
  font-size: 9.5px;
}
body .card-line > b {
  font-size: 10px;
}
body .essential-grid span {
  font-size: 11.5px;
}
body .command-card > small {
  font-size: 11px;
  line-height: 1.5;
}
body .move-date-card label {
  font-size: 10.5px;
}
body .countdown span {
  font-size: 12.5px;
}
body .prep-checks label {
  font-size: 13px;
}
body .map-top {
  font-size: 10.5px;
}
body .budget-inputs label {
  font-size: 10px;
}
body .budget-ticket span,
body .budget-bars span {
  font-size: 10px;
}
body .budget-ticket small {
  font-size: 11.5px;
}
body .profile-controls span {
  font-size: 11px;
  padding: 10px 13px;
}
body .plan-head {
  font-size: 10.5px;
}
body .official-links a {
  font-size: 11.5px;
}
body .climate-drawer summary span {
  font-size: 10.5px;
}
body .forecast-head {
  font-size: 10.5px;
}
body .forecast-day span,
body .forecast-day small {
  font-size: 10px;
}
body .climate-center > span,
body .climate-center #monthAxis span {
  font-size: 10px;
}
body .takeaway span {
  font-size: 10px;
}
body .takeaway p {
  font-size: 12.5px;
  line-height: 1.5;
}
body .brief > footer {
  font-size: 12px;
}
@media (max-width: 1180px) {
  .budget-console {
    grid-template-columns: minmax(0, 1fr);
  }
  .budget-inputs {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 860px) {
  .compare-band .versus {
    margin: 4px auto 18px;
  }
  .hero {
    padding-bottom: 158px;
  }
  .route-art.journey-ribbon {
    bottom: 8px;
    height: 126px;
    left: 4vw;
    right: 4vw;
  }
  .journey-track {
    left: 116px;
    right: 116px;
  }
  .journey-node {
    width: 108px;
    min-height: 52px;
    top: 39px;
    padding: 8px 9px;
  }
  .journey-node b {
    font-size: 8.5px;
  }
  .journey-stat {
    transform: scale(0.9);
    transform-origin: left top;
  }
  .journey-duration {
    transform-origin: right top;
  }
  .journey-milestones {
    left: 5%;
    right: 5%;
  }
  .budget-inputs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 600px) {
  .budget-inputs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  body .profile-controls span {
    font-size: 10px;
    padding: 9px 11px;
  }
  .hero-copy h1 em {
    font-size: 0.56em;
  }
  .hero {
    padding-bottom: 140px;
  }
  .route-art.journey-ribbon {
    height: 108px;
    bottom: 8px;
  }
  .journey-track {
    left: 70px;
    right: 70px;
  }
  .journey-track svg {
    height: 96px;
    inset: 2px 0 8px;
  }
  .journey-node {
    top: 38px;
    width: 66px;
    min-height: 44px;
    grid-template-columns: 10px 1fr;
    column-gap: 5px;
    padding: 6px;
    border-radius: 11px;
  }
  .journey-node > i {
    width: 8px;
    height: 8px;
    border-width: 2px;
    box-shadow: none;
  }
  .journey-node small {
    font-size: 6px;
  }
  .journey-node b {
    font-size: 7px;
  }
  .journey-stat,
  .journey-milestones {
    display: none;
  }
}
/* the months are already on every row — drop the redundant centre axis */
body .climate-board {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}
body .climate-center {
  display: none;
}
@media (max-width: 860px) {
  body .climate-board {
    grid-template-columns: minmax(0, 1fr);
  }
}
