:root {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #142033;
  background: #ffffff;
  font-synthesis: none;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: #ffffff; }
button, input { font: inherit; }
a { color: inherit; }

.seo-nav {
  position: relative;
  z-index: 5;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
  width: min(1180px, calc(100% - 40px));
  min-height: 72px;
  margin: 0 auto;
}

.seo-brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 1.05rem;
  font-weight: 950;
  text-decoration: none;
}

.seo-brand img { width: 32px; height: 32px; object-fit: contain; }
.seo-nav nav { display: flex; justify-content: center; gap: 24px; }
.seo-nav nav a { color: #4d5d72; font-size: .9rem; font-weight: 800; text-decoration: none; }
.seo-nav nav a:hover, .seo-footer a:hover { color: #075ec3; }
.nav-app-link {
  min-height: 42px;
  padding: 11px 16px;
  border: 1px solid #087ee8;
  border-radius: 8px;
  background: #087ee8;
  color: #ffffff;
  font-size: .88rem;
  font-weight: 900;
  text-decoration: none;
}

.seo-hero {
  position: relative;
  display: grid;
  min-height: 470px;
  overflow: hidden;
  border-top: 1px solid #e1e7ee;
  border-bottom: 1px solid #d7e0ea;
  background: #eef7f4 url("/media/santiago-route-map.webp") center 44% / cover no-repeat;
}

.seo-hero::after {
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, .72);
  content: "";
}

.seo-hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  align-content: center;
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 70px 0 88px;
}

.eyebrow {
  color: #075ec3;
  font-size: .74rem;
  font-weight: 950;
  text-transform: uppercase;
}

h1, h2, h3, p { margin-top: 0; }
h1 {
  max-width: 880px;
  margin: 14px 0 20px;
  font-size: 4rem;
  line-height: .98;
}

.seo-hero p {
  max-width: 750px;
  margin: 0;
  color: #43536a;
  font-size: 1.18rem;
  font-weight: 700;
  line-height: 1.55;
}

.seo-band { border-bottom: 1px solid #e1e7ee; background: #ffffff; }
.seo-band:nth-of-type(odd) { background: #f6f8fb; }
.band-inner { width: min(1180px, calc(100% - 40px)); margin: 0 auto; padding: 72px 0; }
.tool-band { background: #ffffff !important; }
.tool-layout { display: grid; grid-template-columns: minmax(0, .88fr) minmax(0, 1fr); gap: 60px; align-items: center; }

.route-tool {
  display: grid;
  gap: 14px;
  padding: 24px;
  border: 1px solid #cfd9e5;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 18px 46px rgba(20, 32, 51, .08);
}

.tool-heading { display: grid; gap: 4px; padding-bottom: 4px; }
.tool-heading span { color: #087ee8; font-size: .72rem; font-weight: 950; text-transform: uppercase; }
.tool-heading strong { font-size: 1.38rem; }
.route-tool label { display: grid; gap: 7px; }
.route-tool label > span { color: #526176; font-size: .76rem; font-weight: 900; text-transform: uppercase; }
.route-tool input:not([type="range"]) {
  width: 100%;
  min-height: 52px;
  padding: 0 14px;
  border: 1px solid #cbd5e1;
  border-radius: 7px;
  background: #ffffff;
  color: #142033;
  font-weight: 750;
}
.route-tool input[readonly] { background: #f1f5f9; color: #4d5d72; }
.route-tool input:focus { border-color: #087ee8; outline: 3px solid rgba(8, 126, 232, .13); }
.route-tool button, .section-action a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 13px 18px;
  border: 1px solid #087ee8;
  border-radius: 8px;
  background: #087ee8;
  color: #ffffff;
  font-weight: 950;
  text-decoration: none;
  cursor: pointer;
}
.route-tool button:hover, .section-action a:hover { background: #075ec3; }
.route-tool small { color: #66758a; font-size: .76rem; font-weight: 700; line-height: 1.45; }
.price-control > span { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.price-control output { color: #087ee8; font-size: 1rem; font-weight: 950; }
.price-control input { width: 100%; accent-color: #087ee8; }

.tool-context { display: grid; justify-items: start; gap: 16px; }
.tool-context h2, .section-heading h2 { margin: 0; font-size: 2.4rem; line-height: 1.06; }
.tool-context p, .section-heading p { max-width: 760px; margin: 0; color: #56657a; font-weight: 650; line-height: 1.65; }
.status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 6px 10px;
  border-radius: 999px;
  background: #eaf4ff;
  color: #075ec3;
  font-size: .7rem;
  font-weight: 950;
  white-space: nowrap;
}
.status-pill.green { background: #e8f8ef; color: #14754c; }
.inline-link { color: #075ec3; font-weight: 900; text-decoration: none; }

.compact-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); width: 100%; margin: 10px 0 0; }
.compact-facts div { display: grid; gap: 2px; padding: 0 18px; border-left: 1px solid #dbe3ec; }
.compact-facts div:first-child { padding-left: 0; border-left: 0; }
.compact-facts dt { font-size: 1.6rem; font-weight: 950; }
.compact-facts dd { margin: 0; color: #66758a; font-size: .78rem; font-weight: 750; }

.section-heading { display: grid; gap: 12px; margin-bottom: 32px; }
.process-list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0; padding: 0; list-style: none; }
.process-list li { display: grid; align-content: start; gap: 9px; min-height: 150px; padding: 22px; border-left: 1px solid #dbe3ec; }
.process-list li:first-child { border-left: 0; padding-left: 0; }
.process-list strong { font-size: 1rem; }
.process-list span { color: #5b6a7f; font-size: .9rem; font-weight: 650; line-height: 1.55; }

.link-grid, .decision-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.link-grid a, .decision-grid article, .faq-list article {
  display: grid;
  align-content: start;
  gap: 9px;
  min-height: 138px;
  padding: 20px;
  border: 1px solid #d8e0e9;
  border-radius: 8px;
  background: #ffffff;
}
.link-grid a { text-decoration: none; }
.link-grid a:hover { border-color: #087ee8; }
.link-grid span, .decision-grid p, .faq-list p { margin: 0; color: #5b6a7f; font-size: .9rem; font-weight: 650; line-height: 1.55; }
.decision-grid article:nth-child(2) { border-top: 3px solid #f0a436; }
.decision-grid article:nth-child(3) { border-top: 3px solid #18a76d; }

.faq-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.faq-list h3 { margin: 0; font-size: 1rem; line-height: 1.35; }

.notice-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
  padding: 16px 18px;
  border-left: 4px solid #f0a436;
  background: #fff8e8;
}
.notice-bar span { max-width: 720px; color: #66593d; font-size: .86rem; font-weight: 700; line-height: 1.5; }
.table-tools { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 14px; }
.table-tools label { display: grid; gap: 6px; width: min(420px, 100%); color: #526176; font-size: .76rem; font-weight: 900; text-transform: uppercase; }
.table-tools input { min-height: 46px; padding: 0 13px; border: 1px solid #cbd5e1; border-radius: 7px; background: #ffffff; color: #142033; font-weight: 750; }
.table-tools > span { color: #66758a; font-size: .82rem; font-weight: 800; }
.data-table { overflow-x: auto; border: 1px solid #d7e0e9; border-radius: 8px; background: #ffffff; }
.data-table table { width: 100%; border-collapse: collapse; }
.data-table th, .data-table td { padding: 15px 16px; border-top: 1px solid #e3e8ef; text-align: left; vertical-align: middle; }
.data-table thead th { border-top: 0; background: #eef4fa; color: #536277; font-size: .7rem; font-weight: 950; text-transform: uppercase; }
.data-table td { font-size: .86rem; font-weight: 750; }
.data-table td strong, .data-table td small { display: block; }
.data-table td small { margin-top: 4px; color: #718095; font-size: .71rem; font-weight: 700; line-height: 1.35; }
.data-table tr[hidden] { display: none; }
.row-link { display: inline-flex; min-height: 38px; align-items: center; justify-content: center; padding: 9px 12px; border: 1px solid #b8c8d9; border-radius: 7px; color: #075ec3; font-weight: 900; text-decoration: none; white-space: nowrap; }
.row-link:hover { border-color: #087ee8; background: #edf6ff; }

.section-action { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.section-action .secondary-action { border-color: #b8c8d9; background: #ffffff; color: #142033; }
.section-action .secondary-action:hover { border-color: #087ee8; background: #edf6ff; }

.highway-summary { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(300px, .6fr); gap: 40px; align-items: start; }
.highway-summary dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 0; border-top: 1px solid #dbe3ec; border-left: 1px solid #dbe3ec; }
.highway-summary dl div { display: grid; gap: 5px; min-height: 112px; padding: 20px; border-right: 1px solid #dbe3ec; border-bottom: 1px solid #dbe3ec; }
.highway-summary dt { font-size: 1.28rem; font-weight: 950; }
.highway-summary dd { margin: 0; color: #66758a; font-size: .78rem; font-weight: 750; }
.source-box { display: grid; gap: 10px; padding: 20px; border: 1px solid #d8e0e9; border-radius: 8px; background: #ffffff; }
.source-box > span { color: #526176; font-size: .72rem; font-weight: 950; text-transform: uppercase; }
.source-box a { color: #075ec3; font-size: .9rem; font-weight: 850; line-height: 1.4; }
.source-box small { color: #718095; font-size: .74rem; font-weight: 700; }

.seo-footer {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 30px;
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 34px 0 44px;
}
.seo-footer > div { display: grid; gap: 4px; }
.seo-footer span { color: #66758a; font-size: .78rem; font-weight: 700; }
.seo-footer nav { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 18px; }
.seo-footer a { color: #526176; font-size: .82rem; font-weight: 800; text-decoration: none; }

@media (max-width: 900px) {
  .seo-nav { grid-template-columns: auto 1fr; }
  .seo-nav nav { display: none; }
  .nav-app-link { justify-self: end; }
  h1 { font-size: 3.25rem; }
  .tool-layout, .highway-summary { grid-template-columns: 1fr; }
  .process-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .process-list li:nth-child(3) { border-left: 0; padding-left: 0; }
  .link-grid, .decision-grid, .faq-list { grid-template-columns: 1fr; }
  .link-grid a, .decision-grid article, .faq-list article { min-height: auto; }
}

@media (max-width: 620px) {
  .seo-nav, .seo-hero-inner, .band-inner, .seo-footer { width: min(100% - 28px, 1180px); }
  .seo-nav { min-height: 64px; }
  .seo-brand { font-size: .96rem; }
  .nav-app-link { min-height: 38px; padding: 9px 12px; }
  .seo-hero { min-height: 420px; background-image: url("/media/santiago-route-map-mobile.webp"); }
  .seo-hero-inner { padding: 58px 0 68px; }
  h1 { font-size: 2.45rem; }
  .seo-hero p { font-size: 1rem; }
  .band-inner { padding: 52px 0; }
  .tool-layout { gap: 34px; }
  .route-tool { padding: 18px; }
  .tool-context h2, .section-heading h2 { font-size: 2rem; }
  .compact-facts { grid-template-columns: 1fr; }
  .compact-facts div, .compact-facts div:first-child { padding: 12px 0; border-top: 1px solid #dbe3ec; border-left: 0; }
  .compact-facts div:first-child { border-top: 0; }
  .process-list { grid-template-columns: 1fr; }
  .process-list li, .process-list li:nth-child(3) { min-height: auto; padding: 18px 0; border-top: 1px solid #dbe3ec; border-left: 0; }
  .notice-bar, .table-tools, .seo-footer { align-items: stretch; flex-direction: column; }
  .table-tools > span { align-self: flex-start; }
  .highway-summary dl { grid-template-columns: 1fr; }
  .seo-footer nav { justify-content: flex-start; }
}

