/* Static per-Autobahn pages – same tokens as src/style.css */
:root {
  color-scheme: light;
  --page: #f9f9f7;
  --surface: #fcfcfb;
  --text: #0b0b0b;
  --text-2: #52514e;
  --muted: #6f6d68;
  --border: rgba(11, 11, 11, 0.1);
  --grid: #e1e0d9;
  --accent: #2a78d6;
  --cta: #1c5cab;
  --link: #1c5cab;
  --badge: #d03b3b;
  --kind-roadworks: #eb6834;
  --kind-short_term: #1baf7a;
  --kind-closure: #6250d6;
  font-family: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.5;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) {
    color-scheme: dark;
    --page: #0d0d0d;
    --surface: #1a1a19;
    --text: #f0efec;
    --text-2: #c3c2b7;
    --muted: #9a988f;
    --border: rgba(255, 255, 255, 0.1);
    --grid: #2c2c2a;
    --accent: #3987e5;
    --link: #86b6ef;
    --kind-roadworks: #d95926;
    --kind-short_term: #199e70;
    --kind-closure: #9085e9;
  }
}
:root[data-theme='dark'] {
  color-scheme: dark;
  --page: #0d0d0d;
  --surface: #1a1a19;
  --text: #f0efec;
  --text-2: #c3c2b7;
  --muted: #9a988f;
  --border: rgba(255, 255, 255, 0.1);
  --grid: #2c2c2a;
  --accent: #3987e5;
  --link: #86b6ef;
  --kind-roadworks: #d95926;
  --kind-short_term: #199e70;
  --kind-closure: #9085e9;
}

* {
  box-sizing: border-box;
}
body {
  margin: 0 auto;
  max-width: 880px;
  padding: 24px 16px 40px;
  background: var(--page);
  color: var(--text);
}
a {
  color: var(--link);
}
h1 {
  font-size: 28px;
  line-height: 1.2;
  margin: 8px 0 4px;
}
h2 {
  font-size: 20px;
  margin: 32px 0 8px;
}
h3 {
  font-size: 16px;
  margin: 20px 0 8px;
}
.muted {
  color: var(--muted);
  font-weight: 400;
}
.top p {
  margin: 0 0 16px;
}
.crumbs {
  font-size: 14px;
  color: var(--muted);
}
.cta {
  display: inline-block;
  /* darker than --accent so white text passes WCAG AA */
  background: var(--cta);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  padding: 10px 18px;
  border-radius: 8px;
}
.cta:hover {
  filter: brightness(1.1);
}
.tiles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
  margin: 24px 0 8px;
}
.tile {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
}
.tile-value {
  font-size: 28px;
  font-weight: 650;
  line-height: 1.1;
}
.tile-label {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--text-2);
  font-size: 14px;
}
.sw {
  display: inline-block;
  width: 14px;
  height: 6px;
  border-radius: 3px;
  flex: none;
}
.sw.kind-roadworks {
  background: var(--kind-roadworks);
}
.sw.kind-short_term {
  background: repeating-linear-gradient(90deg, var(--kind-short_term) 0 3px, transparent 3px 5px);
}
.sw.kind-closure {
  background: repeating-linear-gradient(90deg, var(--kind-closure) 0 6px, transparent 6px 8px);
}
.items {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--grid);
}
.item {
  padding: 10px 0;
  border-bottom: 1px solid var(--grid);
}
.item-head {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.item-meta {
  color: var(--text-2);
  font-size: 14px;
  margin-left: 22px;
}
.badge {
  font-size: 12px;
  font-weight: 600;
  color: #fff;
  background: var(--badge);
  border-radius: 4px;
  padding: 1px 6px;
}
.pager {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 32px;
  padding-top: 16px;
  border-top: 1px solid var(--grid);
}
.table-wrap {
  overflow-x: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  font-variant-numeric: tabular-nums;
}
th,
td {
  text-align: right;
  padding: 6px 10px;
  border-bottom: 1px solid var(--grid);
}
th:first-child,
td:first-child {
  text-align: left;
}
thead th {
  color: var(--muted);
  font-weight: 600;
  font-size: 14px;
}
.foot {
  margin-top: 40px;
  font-size: 13px;
  color: var(--muted);
}
