*, *::before, *::after { box-sizing: border-box; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  margin: 0;
  background: #f0f4f8;
  color: #1b2d4a;
  line-height: 1.6;
}

a { color: #4a6fa5; }

.site-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 880px;
  margin: 0 auto;
  padding: 20px 16px 0;
}

.site-nav-brand {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.5px;
  color: #1b2d4a;
  text-decoration: none;
}

.site-nav-lang {
  font-size: 14px;
  font-weight: 600;
  color: #4a6fa5;
  text-decoration: none;
}

main {
  max-width: 880px;
  margin: 0 auto;
  padding: 32px 16px 48px;
}

.crumbs {
  font-size: 13px;
  margin: 0 0 12px;
}

.crumbs a { text-decoration: none; }

h1 {
  font-size: 34px;
  line-height: 1.15;
  letter-spacing: -0.5px;
  margin: 0 0 10px;
}

h2 {
  font-size: 20px;
  margin: 40px 0 12px;
}

.lead {
  font-size: 17px;
  color: #4b5b73;
  margin: 0 0 24px;
}

/* Live card */
.wait-card {
  background: #fff;
  border: 1px solid #dde5ee;
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 6px 24px rgba(27,45,74,0.06);
}

.wait-headline {
  display: flex;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
}

.wait-big {
  font-size: 40px;
  font-weight: 700;
  letter-spacing: -1px;
}

.wait-label {
  font-size: 15px;
  color: #4b5b73;
}

.wait-rows {
  list-style: none;
  padding: 0;
  margin: 16px 0 0;
  border-top: 1px solid #eef2f6;
}

.wait-rows li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid #eef2f6;
  font-size: 15px;
}

.wait-rows .lanes {
  color: #6b7a8d;
  font-size: 13px;
}

.wait-rows .value { font-weight: 600; white-space: nowrap; }

.wait-meta {
  margin: 12px 0 0;
  font-size: 13px;
  color: #6b7a8d;
}

.wait-loading { color: #6b7a8d; font-size: 15px; }

.lvl-clear { color: #2E7D32; }
.lvl-moderate { color: #EF6C00; }
.lvl-heavy { color: #C62828; }
.lvl-none { color: #607D8B; }

/* Lists of crossings */
.crossing-list {
  list-style: none;
  padding: 0;
  margin: 0;
  background: #fff;
  border: 1px solid #dde5ee;
  border-radius: 16px;
  overflow: hidden;
}

.crossing-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid #eef2f6;
}

.crossing-list li:last-child { border-bottom: 0; }

.crossing-name { font-weight: 600; }
.crossing-name a { color: #1b2d4a; }
.crossing-sub { display: block; font-size: 13px; color: #6b7a8d; font-weight: 400; }
.crossing-wait { font-weight: 700; white-space: nowrap; text-align: right; }
.crossing-wait small { display: block; font-weight: 400; font-size: 12px; color: #6b7a8d; }

.note {
  background: #e8eef6;
  border-radius: 12px;
  padding: 14px 16px;
  font-size: 14px;
  color: #33445e;
  margin: 20px 0 0;
}

.prose p { margin: 0 0 12px; }
.prose ul { padding-left: 20px; margin: 0 0 12px; }
.prose li { margin: 0 0 6px; }

.app-cta {
  margin: 40px 0 0;
  background: #1b2d4a;
  color: #fff;
  border-radius: 16px;
  padding: 24px;
}

.app-cta h2 { margin: 0 0 8px; color: #fff; }
.app-cta p { margin: 0 0 16px; color: rgba(255,255,255,0.85); }

.app-cta .stores { display: flex; gap: 10px; flex-wrap: wrap; }

.app-cta .stores a {
  display: inline-block;
  background: #fff;
  color: #1b2d4a;
  font-weight: 600;
  font-size: 14px;
  padding: 10px 18px;
  border-radius: 10px;
  text-decoration: none;
}

.source {
  margin: 24px 0 0;
  font-size: 13px;
  color: #6b7a8d;
}

footer {
  text-align: center;
  padding: 32px 16px;
  font-size: 14px;
  color: #8a97a8;
  border-top: 1px solid #e2e8f0;
}

footer a { margin: 0 10px; text-decoration: none; }

@media (max-width: 600px) {
  h1 { font-size: 28px; }
  .wait-big { font-size: 34px; }
}

/* Gas price pages */
.fuel-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.fuel-card {
  background: #fff;
  border: 1px solid #dde5ee;
  border-radius: 16px;
  padding: 16px;
}

.fuel-name { font-size: 13px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: #4a6fa5; }
.fuel-price { font-size: 28px; font-weight: 700; letter-spacing: -0.5px; margin: 4px 0 2px; }
.fuel-price span { font-size: 13px; font-weight: 400; color: #6b7a8d; margin-left: 4px; letter-spacing: 0; }
.fuel-range { font-size: 12px; color: #6b7a8d; }

.table-wrap {
  overflow-x: auto;
  background: #fff;
  border: 1px solid #dde5ee;
  border-radius: 16px;
}

.price-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.price-table th, .price-table td { padding: 10px 12px; border-bottom: 1px solid #eef2f6; text-align: left; }
.price-table th { font-size: 12px; text-transform: uppercase; letter-spacing: 0.5px; color: #6b7a8d; font-weight: 600; }
.price-table tbody tr:last-child td { border-bottom: 0; }
.price-table .num { text-align: right; white-space: nowrap; }
.price-table .hl { font-weight: 700; color: #2E7D32; }
.price-table .rank { color: #6b7a8d; width: 1%; }
.price-table a { color: #1b2d4a; }

.link-list { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0; }
.link-list a {
  display: inline-block;
  background: #fff;
  border: 1px solid #dde5ee;
  border-radius: 20px;
  padding: 6px 14px;
  font-size: 14px;
  text-decoration: none;
}

@media (max-width: 600px) {
  .fuel-cards { grid-template-columns: minmax(0, 1fr); }
  .price-table th, .price-table td { padding: 8px; font-size: 13px; }
}
.station-legal { display: block; font-size: 12px; color: #6b7a8d; }
