/* Fable 5.2 Complete Redesign (Alpine Wayfinding) - tolltrail.com - 2026-12-03 */
@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@600&family=Inter:wght@400;500;600&family=Manrope:wght@700;800&display=swap');

/* TollTrail — "Alpine Wayfinding" design system (standalone) */
:root {
  --paper: #F7F8F5; --surface: #FFFFFF; --surface-2: #EEF1EC;
  --line: #DDE3DC; --line-strong: #C4CDC4;
  --ink: #0E1A16; --ink-2: #45534D; --ink-3: #6F7C76;
  --emerald-950: #073828; --emerald-900: #0B4F3A; --emerald-600: #11805C; --emerald-100: #DCEFE6;
  --navy-900: #0F2537; --navy-700: #1D3B55;
  --plate-blue: #003399; --plate-star: #FFCC00; --plate-slate: #3B4754;
  --amber-500: #F2A900; --amber-100: #FFF3D1;
  --red-700: #B42318; --red-50: #FEF3F2;
  --r-chip: 6px; --r-ctl: 10px; --r-card: 16px; --r-hero: 24px;
  --sh-sm: 0 1px 2px rgba(14,26,22,.06);
  --sh-md: 0 8px 24px -8px rgba(14,26,22,.14);
  --f-fallback: system-ui, "Noto Sans", "Noto Sans Arabic", "Noto Sans JP", sans-serif;
  --f-display: "Manrope", var(--f-fallback);
  --f-body: "Inter", var(--f-fallback);
  --f-plate: "Barlow Condensed", var(--f-fallback);
  color-scheme: light;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 76px; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 16px/1.6 var(--f-body);
  -webkit-font-smoothing: antialiased; overflow-x: clip;
}
img, svg, video, iframe { max-width: 100%; }
img { height: auto; }
h1, h2, h3 { font-family: var(--f-display); font-weight: 700; letter-spacing: -.02em; line-height: 1.2; margin: 0; overflow-wrap: anywhere; }
h1 { font-weight: 800; font-size: clamp(28px, 4.4vw, 40px); line-height: 1.1; }
h2 { font-size: 22px; }
h3 { font-size: 18px; }
article > h2, article > h3 { margin-top: 32px; }
p { margin: 16px 0 0; }
article ul, article ol { padding-inline-start: 22px; margin: 16px 0 0; }
a { color: var(--emerald-600); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--emerald-900); }
:focus-visible { outline: 2px solid var(--emerald-600); outline-offset: 2px; border-radius: 4px; }
[hidden] { display: none !important; }
time, bdi { font-feature-settings: "tnum", "cv11"; }
.ic { width: 16px; height: 16px; flex: none; }

.w { width: 100%; max-width: 1180px; margin-inline: auto; padding-inline: 20px; }
main.w { padding-block: 24px 72px; min-height: 60vh; }
.sec { margin-top: 48px; }
.lead { font-size: 18px; color: var(--ink-2); max-width: 68ch; margin-top: 16px; }

.skip {
  position: absolute; inset-inline-start: 12px; top: -80px; z-index: 100;
  background: var(--emerald-900); color: #fff; padding: 10px 16px;
  border-radius: var(--r-ctl); font-weight: 600; text-decoration: none;
}
.skip:focus { top: 12px; color: #fff; }

.eyebrow, .kicker {
  font: 600 14px/1.2 var(--f-plate); text-transform: uppercase; letter-spacing: .06em; color: var(--ink-3);
}
.year-chip {
  display: inline-block; font: 600 15px/1.2 var(--f-plate); letter-spacing: .06em; text-transform: uppercase;
  background: var(--amber-100); color: var(--ink); padding: 3px 8px; border-radius: var(--r-chip); flex: none;
}
kbd {
  font: 600 13px/1 var(--f-plate); text-transform: uppercase; letter-spacing: .06em; color: var(--ink-3);
  background: var(--surface-2); border: 1px solid var(--line-strong); border-radius: var(--r-chip);
  min-width: 24px; padding: 4px 6px; text-align: center; flex: none;
}

/* ---------- header ---------- */
.top {
  position: sticky; top: 0; z-index: 50;
  background: rgba(247,248,245,.86);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.top-in { display: flex; align-items: center; gap: 12px; height: 60px; }
.logo {
  display: inline-flex; align-items: center; gap: 8px; flex: none;
  font: 800 18px/1 var(--f-display); letter-spacing: -.02em; color: var(--ink); text-decoration: none;
}
.logo:hover { color: var(--ink); }
.logo img { display: block; width: 26px; height: 26px; }
.logo b { font-weight: 800; color: var(--emerald-600); }
.nav {
  display: flex; flex-wrap: nowrap; gap: 4px; flex: 1 1 auto; min-width: 0;
  overflow-x: auto; scrollbar-width: none; -ms-overflow-style: none;
}
.nav::-webkit-scrollbar { display: none; }
.nav a {
  flex: none; padding: 7px 12px; border-radius: 999px; white-space: nowrap;
  font-size: 14px; font-weight: 500; color: var(--ink-2); text-decoration: none;
  transition: background-color .16s, color .16s;
}
.nav a:hover { background: var(--surface-2); color: var(--ink); }
.nav a[aria-current] { background: var(--emerald-100); color: var(--emerald-900); }
.top-end { flex: none; margin-inline-start: auto; }

.lang-dd { position: relative; }
.lang-dd summary {
  display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 12px;
  border: 1px solid var(--line-strong); border-radius: 999px; background: var(--surface);
  font-size: 14px; font-weight: 600; color: var(--ink); cursor: pointer; list-style: none; user-select: none;
}
.lang-dd summary::-webkit-details-marker { display: none; }
.lang-dd summary:hover, .lang-dd[open] summary { border-color: var(--emerald-600); color: var(--emerald-900); }
.lang-panel {
  position: absolute; inset-inline-end: 0; top: calc(100% + 8px); z-index: 60;
  width: min(340px, calc(100vw - 40px)); max-height: min(70vh, 480px); overflow-y: auto;
  display: grid; grid-template-columns: 1fr 1fr; gap: 2px; padding: 8px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); box-shadow: var(--sh-md);
}
.lang-panel a {
  display: flex; align-items: center; justify-content: space-between; gap: 8px; min-width: 0;
  padding: 8px 10px; border-radius: var(--r-ctl); font-size: 14px; color: var(--ink); text-decoration: none;
}
.lang-panel a span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lang-panel a b { font: 600 13px/1 var(--f-plate); text-transform: uppercase; letter-spacing: .06em; color: var(--ink-3); }
.lang-panel a:hover { background: var(--surface-2); }
.lang-panel a[aria-current] { background: var(--emerald-100); color: var(--emerald-900); }

/* ---------- hero ---------- */
.hero--home {
  position: relative; overflow: hidden; isolation: isolate;
  background: linear-gradient(135deg, var(--emerald-900) 0%, var(--emerald-950) 100%);
  color: #fff; border-radius: var(--r-hero);
  padding: clamp(40px, 7vw, 72px) clamp(24px, 5vw, 56px);
}
.hero-motif { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; pointer-events: none; z-index: -1; }
.hero-motif path { fill: none; }
.motif-grid { stroke: rgba(255,255,255,.06); stroke-width: 1px; }
.motif-road { stroke: rgba(255,255,255,.10); stroke-width: 14px; stroke-linecap: round; }
.motif-lane { stroke: rgba(255,255,255,.55); stroke-width: 1.5px; stroke-dasharray: 10 12; }
.motif-lane--b { stroke: rgba(255,255,255,.35); }
.motif-nodes circle { fill: var(--plate-star); stroke: var(--emerald-900); stroke-width: 4px; }
.hero-in { position: relative; max-width: 720px; }
.hero--home .kicker { color: var(--emerald-100); }
.hero--home h1 { font-size: clamp(36px, 5vw, 56px); line-height: 1.05; margin-top: 12px; color: #fff; }
.hero-lede { font-size: 18px; color: rgba(255,255,255,.86); margin-top: 16px; max-width: 60ch; }
.trust { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 24px 0 0; padding: 0; }
.trust li {
  font-size: 13px; font-weight: 500; line-height: 1.3; padding: 6px 12px; border-radius: 999px;
  border: 1px solid rgba(255,255,255,.22); background: rgba(255,255,255,.06);
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.hero-meta { display: block; font-size: 13px; color: var(--ink-3); margin-top: 12px; }
.hero--home .hero-meta { color: rgba(255,255,255,.7); margin-top: 24px; }
.hero--page { padding-block: 24px 8px; }
.hero-h { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin-top: 8px; }
.hero-h h1 { min-width: 0; flex: 1 1 260px; }

/* ---------- licence plate ---------- */
.plate {
  display: inline-flex; align-items: stretch; flex: none; height: 28px; overflow: hidden; direction: ltr;
  background: #fff; border: 1px solid var(--ink); border-radius: var(--r-chip); vertical-align: middle;
}
.plate-band { position: relative; width: 12px; background: var(--plate-slate); }
.plate--eu .plate-band { background: var(--plate-blue); }
.plate--eu .plate-band::after {
  content: ""; position: absolute; top: 5px; left: 50%; width: 6px; height: 6px; margin-left: -3px;
  border: 1px dotted var(--plate-star); border-radius: 50%;
}
.plate-cc {
  font: 600 15px/26px var(--f-plate); text-transform: uppercase; letter-spacing: .06em;
  color: var(--ink); padding: 0 7px;
}
.plate--lg { height: 40px; }
.plate--lg .plate-band { width: 16px; }
.plate--lg .plate-band::after { top: 7px; width: 8px; height: 8px; margin-left: -4px; }
.plate--lg .plate-cc { font-size: 22px; line-height: 38px; padding: 0 10px; }

/* ---------- buttons ---------- */
.btns { display: flex; flex-wrap: wrap; gap: 12px; }
.btn, .calc-panel button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 8px 18px; border-radius: var(--r-ctl); border: 1px solid transparent;
  font: 600 15px/1.25 var(--f-body); text-decoration: none; cursor: pointer; text-align: center;
  transition: background-color .16s, border-color .16s, color .16s;
}
.btn--primary, .calc-panel button { background: var(--emerald-900); color: #fff; }
.btn--primary:hover, .calc-panel button:hover { background: var(--emerald-600); color: #fff; }
.btn--ghost { background: var(--surface); border-color: var(--line-strong); color: var(--ink); }
.btn--ghost:hover { border-color: var(--emerald-600); color: var(--emerald-900); }
.btn--light { background: #fff; color: var(--emerald-900); }
.btn--light:hover { background: var(--emerald-100); color: var(--emerald-950); }
.btn--outline-light { background: transparent; border-color: rgba(255,255,255,.5); color: #fff; }
.btn--outline-light:hover { background: rgba(255,255,255,.12); border-color: #fff; color: #fff; }
.hero--home :focus-visible { outline-color: #fff; }

/* ---------- section heading ---------- */
.sec-h { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; margin-bottom: 16px; }
.sec-n, .cc-count {
  font-size: 13px; font-weight: 600; font-feature-settings: "tnum"; color: var(--ink-2);
  background: var(--surface-2); border-radius: 999px; padding: 2px 10px;
}
.dir--lez .sec-h, .dir--guides .sec-h { border-inline-start: 4px solid var(--emerald-600); padding-inline-start: 12px; }
.dir--guides .sec-h { border-color: var(--navy-700); }

/* ---------- feature card ---------- */
.feature {
  background: var(--surface); border: 1px solid var(--line); border-top: 4px solid var(--emerald-600);
  border-radius: var(--r-card); box-shadow: var(--sh-sm); overflow: hidden;
}
.feature-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 24px; }
.feature-id { min-width: 0; }
.feature-title { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-top: 8px; }
.feature-title h2 { min-width: 0; }
.feature-title a { color: var(--ink); text-decoration: none; }
.feature-title a:hover { color: var(--emerald-600); }
.feature-op { display: block; font-size: 14px; color: var(--ink-3); margin-top: 6px; }
.feature-prices {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  border-block: 1px solid var(--line); overflow: hidden;
}
.kpi { padding: 16px 24px; min-width: 0; box-shadow: 1px 0 0 var(--line), 0 1px 0 var(--line); }
.kpi-k { display: block; font-size: 13px; color: var(--ink-3); }
.kpi-v { display: block; font: 700 22px/1.3 var(--f-display); letter-spacing: -.02em; font-feature-settings: "tnum", "cv11"; }
.feature-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 16px; padding: 16px 24px; }
.feature-valid, .ticket-valid { font-size: 13px; color: var(--ink-3); }

/* ---------- country filter + grid ---------- */
.cc-filter { display: flex; align-items: center; gap: 12px; position: sticky; top: 68px; z-index: 5; }
.cc-filter-box {
  display: flex; align-items: center; gap: 10px; flex: 1 1 auto; min-width: 0; height: 48px; padding: 0 12px;
  background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--r-ctl);
  box-shadow: var(--sh-sm); color: var(--ink-3); cursor: text;
  transition: border-color .16s, box-shadow .16s;
}
.cc-filter-box:focus-within { border-color: var(--emerald-600); box-shadow: 0 0 0 3px rgba(17,128,92,.22); }
.cc-filter-box input {
  flex: 1 1 auto; min-width: 0; height: 100%; border: 0; background: none; outline: 0; padding: 0;
  font: 400 16px/1 var(--f-body); color: var(--ink); -webkit-appearance: none; appearance: none;
}
.cc-filter-box input::placeholder { color: var(--ink-3); opacity: 1; }
.cc-count { flex: none; padding: 6px 12px; background: var(--surface); border: 1px solid var(--line); }
.cc-empty { padding: 24px; text-align: center; color: var(--ink-3); background: var(--surface-2); border-radius: var(--r-card); }
.cc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(270px, 100%), 1fr)); gap: 12px; }
.cc-tile {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto;
  grid-template-areas: "plate body price" "plate kind price";
  align-items: center; gap: 6px 12px; padding: 14px 16px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card);
  box-shadow: var(--sh-sm); color: var(--ink); text-decoration: none;
  transition: transform .16s, box-shadow .16s, border-color .16s;
}
.cc-tile:hover, .dir-card:hover { transform: translateY(-2px); box-shadow: var(--sh-md); border-color: var(--emerald-600); color: var(--ink); }
.cc-tile[hidden], [data-cc-group][hidden] { display: none; }
.cc-tile .plate { grid-area: plate; }
.cc-body { grid-area: body; min-width: 0; }
.cc-name { display: block; font-size: 16px; font-weight: 600; line-height: 1.3; overflow-wrap: anywhere; }
.cc-meta { display: block; font-size: 13px; color: var(--ink-3); line-height: 1.35; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cc-kind {
  grid-area: kind; justify-self: start; font-size: 12px; font-weight: 600; line-height: 1.3;
  padding: 2px 8px; border-radius: var(--r-chip);
}
.cc-kind--vignette { background: var(--emerald-100); color: var(--emerald-900); }
.cc-kind--toll { background: var(--amber-100); color: var(--ink); }
.cc-price { grid-area: price; text-align: end; }
.cc-price b { display: block; font: 700 18px/1.2 var(--f-display); font-feature-settings: "tnum", "cv11"; white-space: nowrap; }
.cc-price small { display: block; font-size: 12px; color: var(--ink-3); max-width: 110px; margin-inline-start: auto; }

/* ---------- directory cards ---------- */
.dir-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(240px, 100%), 1fr)); gap: 12px; list-style: none; margin: 0; padding: 0; }
.dir-grid li { display: flex; min-width: 0; }
.dir-card {
  display: flex; flex-direction: column; gap: 6px; width: 100%; padding: 16px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card);
  box-shadow: var(--sh-sm); color: var(--ink); text-decoration: none;
  transition: transform .16s, box-shadow .16s, border-color .16s;
}
.dir-t { font-size: 15px; font-weight: 600; line-height: 1.35; overflow-wrap: anywhere; }
.dir-s { font-size: 13px; color: var(--ink-3); line-height: 1.45; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden; }
.dir-go { margin-top: auto; align-self: flex-end; color: var(--emerald-600); font-weight: 600; line-height: 1; transition: transform .16s; }
.dir-card:hover .dir-go { transform: translateX(3px); }

/* ---------- ticket ---------- */
.ticket {
  display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) auto;
  grid-template-areas: "main facts stub"; margin-top: 24px; overflow: hidden;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); box-shadow: var(--sh-sm);
}
.ticket-main { grid-area: main; padding: 24px; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.ticket-price { font: 800 40px/1.1 var(--f-display); letter-spacing: -.02em; font-feature-settings: "tnum", "cv11"; color: var(--emerald-900); }
.ticket-sub { font-size: 14px; color: var(--ink-2); }
.ticket-facts { grid-area: facts; margin: 0; padding: 24px; align-self: center; font-size: 14px; min-width: 0; }
.ticket-facts div { display: flex; justify-content: space-between; gap: 16px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.ticket-facts div:last-child { border-bottom: 0; }
.ticket-facts dt { color: var(--ink-2); }
.ticket-facts dd { margin: 0; font-weight: 600; white-space: nowrap; font-feature-settings: "tnum", "cv11"; }
.ticket-stub {
  grid-area: stub; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  padding: 24px 28px; text-align: center; border-inline-start: 2px dashed var(--line-strong);
  background:
    radial-gradient(circle at 0 0, var(--paper) 10px, transparent 10.5px),
    radial-gradient(circle at 0 100%, var(--paper) 10px, transparent 10.5px);
  background-origin: border-box;
}

/* ---------- tariff cards + gantry ---------- */
.tariff-card, .calc-panel {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card);
  box-shadow: var(--sh-sm); padding: 20px; min-width: 0;
}
.tariff-card--current { border-top: 4px solid var(--emerald-600); }
.tariff-card--next { border-top: 4px solid var(--amber-500); }
.gantry-bar {
  background: var(--emerald-900); color: #fff; border-radius: var(--r-ctl); padding: 10px 14px;
  font-size: 18px; line-height: 1.3; box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.3);
}
.gantry-sub { font-size: 13px; color: var(--ink-3); margin-top: 10px; }
.tt27-at-calc, .calc-panel { margin-top: 24px; }
.g2 { display: grid; gap: 16px; }

/* ---------- forms / calculators ---------- */
.calc-grid, .calc-dates { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr)); gap: 12px; margin-top: 16px; }
.calc-dates { margin-top: 0; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; font-size: 13px; font-weight: 600; color: var(--ink-2); }
.field-l { font-size: 13px; font-weight: 600; color: var(--ink-2); }
select, input[type="date"], input[type="text"], input[type="number"] {
  width: 100%; max-width: 100%; min-width: 0; height: 44px; padding: 0 12px;
  background-color: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--r-ctl);
  font: 400 15px/1.2 var(--f-body); color: var(--ink);
}
select {
  -webkit-appearance: none; appearance: none; padding-inline-end: 36px; text-overflow: ellipsis; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%2345534D' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m1 1.5 5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center;
}
select:hover, input[type="date"]:hover { border-color: var(--emerald-600); }
select:focus-visible, input:focus-visible { outline: 2px solid var(--emerald-600); outline-offset: 2px; border-radius: var(--r-ctl); }
.cc-filter-box input:focus-visible { outline: 0; }
input[type="checkbox"], input[type="radio"] { width: 18px; height: 18px; accent-color: var(--emerald-600); flex: none; margin: 0; }
.calc-summary, .tt27-at-calc .calc-total {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px;
  background: var(--surface-2); border-radius: var(--r-ctl); padding: 14px 16px; margin-top: 16px;
}
.calc-total-k, .calc-summary-lbl { font-size: 14px; font-weight: 600; color: var(--ink-2); }
.calc-total-v, .calc-summary .calc-total {
  font: 800 28px/1.15 var(--f-display); letter-spacing: -.02em; font-feature-settings: "tnum", "cv11";
  color: var(--emerald-900); min-height: 32px;
}
.calc-note { font-size: 13px; color: var(--ink-3); border-inline-start: 3px solid var(--amber-500); padding-inline-start: 12px; margin-top: 16px; }
.calc-rows { margin-top: 16px; }
.calc-row {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 12px 0;
  border-top: 1px solid var(--line); font-size: 15px; min-width: 0;
}
.calc-row > * { min-width: 0; }
.calc-row > :first-child { flex: 1 1 220px; font-weight: 500; }
.calc-row label { display: flex; align-items: center; gap: 10px; }
.calc-row select { flex: 1 1 180px; width: auto; }
.calc-row output, .calc-row strong, .calc-row b { margin-inline-start: auto; font-weight: 600; font-feature-settings: "tnum", "cv11"; white-space: nowrap; }
.calc-row small { flex-basis: 100%; font-size: 13px; color: var(--ink-3); }

/* ---------- tables ---------- */
.tbl-wrap { overflow-x: auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); -webkit-overflow-scrolling: touch; }
table { width: 100%; border-collapse: collapse; font-size: 15px; }
th, td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: start; vertical-align: baseline; }
th { font-weight: 500; }
tbody tr:last-child > * { border-bottom: 0; }
td.r, th.r { text-align: end; font-feature-settings: "tnum", "cv11"; white-space: nowrap; }
.tariff-card .tbl { margin-top: 8px; }
.tariff-card .tbl th:first-child { padding-inline-start: 0; }
.tariff-card .tbl td:last-child { padding-inline-end: 0; }
.tariffs th, .tariffs td { padding: 12px 16px; }
.tariffs thead th {
  font: 600 13px/1.3 var(--f-plate); text-transform: uppercase; letter-spacing: .06em; color: var(--ink-3);
  background: var(--surface-2); border-bottom: 1px solid var(--line-strong); white-space: nowrap;
}
.delta { font-weight: 600; font-feature-settings: "tnum"; }
.delta--up { color: var(--red-700); }
.delta--down { color: var(--emerald-600); }
.delta--flat { color: var(--ink-3); }

/* ---------- penalty ---------- */
.penalty-box {
  display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px; align-items: start; padding: 16px;
  background: var(--red-50); border: 1px solid rgba(180,35,24,.25); border-inline-start: 4px solid var(--red-700);
  border-radius: var(--r-card);
}
.penalty-ico {
  display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%;
  background: var(--red-700); color: #fff; font: 800 18px/1 var(--f-display);
}
.penalty-head { align-self: center; min-width: 0; }
.penalty-head a { color: var(--red-700); font-weight: 600; overflow-wrap: anywhere; }
.penalty-amts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.penalty-amt {
  font-size: 13px; color: var(--ink-2); background: #fff; border: 1px solid rgba(180,35,24,.25);
  border-radius: var(--r-chip); padding: 3px 8px; font-feature-settings: "tnum", "cv11";
}
.penalty-amt b { color: var(--ink); font-weight: 600; }

/* ---------- FAQ ---------- */
.faq { margin-top: 48px; }
.faq > h2 { margin-bottom: 16px; }
.faq h3 { margin-top: 24px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); padding: 0 16px; margin-top: 8px; }
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 0;
  font-weight: 600; cursor: pointer; list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font: 700 20px/1 var(--f-display); color: var(--emerald-600); flex: none; }
.faq details[open] summary::after { content: "\2212"; }
.faq details[open] { border-color: var(--line-strong); box-shadow: var(--sh-sm); }
.faq details > :not(summary) { margin: 0 0 14px; color: var(--ink-2); }
.faq dt { font-weight: 600; margin-top: 16px; }
.faq dd { margin: 4px 0 0; color: var(--ink-2); }

/* ---------- sources, legal, map, ads ---------- */
.src-card { margin-top: 48px; padding: 16px 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); }
.src-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(260px, 100%), 1fr)); gap: 8px 24px; }
.src-list li { position: relative; padding-inline-start: 14px; font-size: 14px; min-width: 0; }
.src-list li::before { content: ""; position: absolute; inset-inline-start: 0; top: .65em; width: 6px; height: 6px; border-radius: 50%; background: var(--emerald-600); }
.src-list a { overflow-wrap: anywhere; }
.src-legal { font-size: 13px; color: var(--ink-3); margin-top: 24px; max-width: 80ch; }
.map-box { margin-top: 24px; border: 1px solid var(--line); border-radius: var(--r-card); overflow: hidden; background: var(--surface-2); isolation: isolate; box-shadow: var(--sh-sm); }
.map-canvas { height: 360px; width: 100%; }
.map-canvas.leaflet-container, .leaflet-container { font-family: var(--f-body); background: var(--surface-2); }
.leaflet-container a { color: var(--emerald-600); }
.leaflet-container img { max-width: none; }
.leaflet-bar a { color: var(--ink); }
.ad-slot { margin-top: 48px; text-align: center; overflow: hidden; max-width: 100%; }
.ad-slot:empty, .ad-slot:not(:has(ins,iframe,img)) { display: none !important; }

/* ---------- footer ---------- */
.foot { background: var(--navy-900); color: rgba(255,255,255,.7); padding-block: 48px; font-size: 14px; }
.foot a { color: rgba(255,255,255,.86); text-decoration: none; }
.foot a:hover { color: #fff; }
.foot :focus-visible { outline-color: #fff; }
.foot-top { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 32px; }
.foot .logo { color: #fff; font-size: 20px; }
.foot .logo b { color: var(--emerald-100); }
.foot-tag { margin: 0; max-width: 60ch; flex: 1 1 280px; }
.net { margin-top: 32px; }
.net-brand { font: 600 13px/1 var(--f-plate); letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.55); }
.net-grid { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.net-grid a {
  display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px; border-radius: 999px;
  background: rgba(255,255,255,.06); border: 1px solid transparent; font-size: 13px; font-weight: 500;
  transition: background-color .16s, border-color .16s;
}
.net-grid a:hover { background: rgba(255,255,255,.12); }
.net-grid a[aria-current] { background: transparent; border-color: rgba(255,255,255,.4); color: #fff; }
.net-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--dot, #fff); flex: none; }
[data-brand="tolltrail"] { --dot: #11805C; }
[data-brand="kaputmap"] { --dot: #E5484D; }
[data-brand="dagsjekk"] { --dot: #3E63DD; }
[data-brand="fuelpuls"] { --dot: #F2A900; }
[data-brand="clockpuls"] { --dot: #8E4EC6; }
[data-brand="meteopuls"] { --dot: #0091FF; }
[data-brand="mathpuls"] { --dot: #12A594; }
[data-brand="colorpuls"] { --dot: #E93D82; }
.foot-bottom {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px;
  margin-top: 32px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.12);
}
.foot-bottom strong { color: #fff; font-family: var(--f-display); }
.foot-legal { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.foot-legal a:hover, .foot-legal a[aria-current] { text-decoration: underline; color: #fff; }

/* ---------- RTL mirroring ---------- */
[dir="rtl"] .hero-motif { transform: scaleX(-1); }
[dir="rtl"] .dir-go { transform: scaleX(-1); }
[dir="rtl"] .dir-card:hover .dir-go { transform: scaleX(-1) translateX(3px); }
[dir="rtl"] select { background-position: left 12px center; }
[dir="rtl"] .kpi { box-shadow: -1px 0 0 var(--line), 0 1px 0 var(--line); }
[dir="rtl"] .ticket-stub {
  background-image:
    radial-gradient(circle at 100% 0, var(--paper) 10px, transparent 10.5px),
    radial-gradient(circle at 100% 100%, var(--paper) 10px, transparent 10.5px);
}
[dir="rtl"] h1, [dir="rtl"] h2, [dir="rtl"] h3, [dir="rtl"] .logo { letter-spacing: 0; }

/* ---------- responsive ---------- */
@media (min-width: 760px) {
  .g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 900px) {
  .w { padding-inline: 32px; }
  .top-in { gap: 24px; }
  .tariff-card, .calc-panel { padding: 24px; }
}
@media (max-width: 719px) {
  .ticket { grid-template-columns: minmax(0, 1fr); grid-template-areas: "main" "facts" "stub"; }
  .ticket-main { padding: 20px 20px 8px; }
  .ticket-facts { padding: 8px 20px 16px; align-self: stretch; }
  .ticket-price { font-size: 34px; }
  .ticket-stub, [dir="rtl"] .ticket-stub {
    flex-direction: row; flex-wrap: wrap; padding: 16px 20px;
    border-inline-start: 0; border-top: 2px dashed var(--line-strong);
    background-image:
      radial-gradient(circle at 0 0, var(--paper) 10px, transparent 10.5px),
      radial-gradient(circle at 100% 0, var(--paper) 10px, transparent 10.5px);
  }
}
@media (max-width: 520px) {
  .top-in { gap: 8px; }
  .logo { font-size: 16px; }
  .nav a { padding: 7px 10px; }
  .lang-dd summary { padding: 0 10px; }
  .hero--home { border-radius: 20px; }
  .hero-lede, .lead { font-size: 16px; }
  .feature-head { padding: 16px; }
  .kpi, .feature-foot { padding: 14px 16px; }
  .feature-foot .btns, .feature-foot .btn, .hero-cta .btn { width: 100%; }
  .cc-filter-box kbd { display: none; }
  .cc-tile { padding: 12px; gap: 6px 10px; }
  .cc-price small { max-width: 84px; }
  .tariffs th, .tariffs td { padding: 10px 12px; }
  .calc-total-v, .calc-summary .calc-total { font-size: 24px; }
  .foot { padding-block: 32px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; scroll-behavior: auto !important; }
  .cc-tile:hover, .dir-card:hover, .dir-card:hover .dir-go { transform: none; }
  [dir="rtl"] .dir-card:hover .dir-go { transform: scaleX(-1); }
}

@media print {
  .top, .foot, .cc-filter, .ad-slot, .skip { display: none !important; }
  body { background: #fff; }
}

/* Final polish: 3-col spacious country tiles, styled language bar, strict mobile containment */
html, body { overflow-x: clip; max-width: 100%; }
.hero--home { overflow: hidden; contain: layout paint; }
.cc-grid { grid-template-columns: repeat(auto-fill, minmax(310px, 1fr)) !important; }
.cc-name { overflow-wrap: normal; word-break: keep-all; white-space: nowrap; }
@media (max-width: 420px) { .cc-grid { grid-template-columns: 1fr !important; } .cc-name { white-space: normal; } }
.card.foot-langs { display: flex; flex-wrap: wrap; gap: 8px; padding: 16px 20px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; margin-top: 32px; }
.card.foot-langs a { display: inline-flex; align-items: center; padding: 6px 12px; border-radius: 8px; background: var(--surface-2); color: var(--ink-2); font-size: 13px; font-weight: 500; text-decoration: none; transition: background .15s, color .15s; }
.card.foot-langs a:hover { background: var(--emerald-100); color: var(--emerald-900); }
