/* francecompare.com: one small stylesheet, system fonts, light and dark, no script needed. The pages reference it
   as /style.css?v=<hash> (computed by the app at start), so it can be cached for long. */
:root {
  --brand: #1e40af;
  --brand-ink: #1e3a8a;
  --accent: #dc2626;
  --tint: #eef2ff;
  --best: #ecfdf5;
  --best-ink: #047857;
  --bg: #ffffff;
  --panel: #f8fafc;
  --text: #0f172a;
  --muted: #475569;
  --line: #e2e8f0;
  --warn: #b45309;
  --radius: 12px;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --brand: #93c5fd;
    --brand-ink: #bfdbfe;
    --accent: #f87171;
    --tint: #1e293b;
    --best: #052e1f;
    --best-ink: #6ee7b7;
    --bg: #0b1120;
    --panel: #111a2e;
    --text: #e2e8f0;
    --muted: #94a3b8;
    --line: #1f2a44;
    --warn: #fbbf24;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 16px/1.55 system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; color: var(--text); background: var(--bg); overflow-x: clip; }
a { color: var(--brand); text-underline-offset: 2px; }
a:hover { color: var(--text); }
h1, h2, h3 { line-height: 1.2; letter-spacing: -0.01em; }
h1 { font-size: 1.75rem; margin: 0.4em 0 0.3em; }
h2 { font-size: 1.25rem; margin: 0 0 0.6em; }
h3 { font-size: 1.05rem; margin: 1em 0 0.4em; }
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 16px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 8px; background: var(--bg); padding: 6px 10px; z-index: 10; }

/* Header and footer */
.top { border-bottom: 1px solid var(--line); background: var(--bg); }
.bar { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 24px; padding-top: 12px; padding-bottom: 12px; }
.logo { font-weight: 800; font-size: 1.45rem; letter-spacing: -0.03em; color: var(--text); text-decoration: none; }
.logo span { color: var(--brand); }
.menu ul, .foot ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 18px; }
.menu a { font-weight: 600; text-decoration: none; color: var(--text); padding: 4px 0; border-bottom: 2px solid transparent; }
.menu a.on, .menu a:hover { border-bottom-color: var(--brand); }
.foot { margin-top: 48px; border-top: 1px solid var(--line); background: var(--panel); padding: 20px 0 28px; font-size: 0.92rem; color: var(--muted); }
.foot p { margin: 12px 0 0; }

/* Content */
main { padding-bottom: 8px; }
.crumbs ol { list-style: none; margin: 14px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px; font-size: 0.88rem; color: var(--muted); }
.crumbs li + li::before { content: "›"; margin-right: 4px; }
.crumbs a { color: var(--muted); }
.lead { font-size: 1.06rem; margin: 0.4em 0 1em; }
.muted { color: var(--muted); font-size: 0.92rem; }
.legal { margin: 0 0 12px; padding: 6px 10px; border-left: 3px solid var(--brand); background: var(--tint); font-size: 0.86rem; color: var(--muted); border-radius: 0 6px 6px 0; }
.credit { font-size: 0.86rem; color: var(--muted); margin: 8px 0 16px; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; margin: 16px 0; }
.card > :last-child { margin-bottom: 0; }
.hero { padding: 12px 0 4px; }
.two { display: grid; gap: 0 16px; }
@media (min-width: 720px) { .two { grid-template-columns: 1fr 1fr; } .two > .card { margin: 16px 0; } }
.button { display: inline-block; background: var(--brand); color: var(--bg); font-weight: 600; text-decoration: none; padding: 9px 16px; border-radius: 999px; }
.button:hover { color: var(--bg); opacity: 0.9; }
.links { margin: 16px 0; }
.warn { color: var(--warn); }
.notice { margin-top: 32px; }
.address { line-height: 1.7; }

/* Fuel tiles and tabs */
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; margin: 12px 0 16px; }
.tile { display: flex; flex-direction: column; background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; text-decoration: none; color: var(--text); }
.tile strong { font-size: 1.35rem; font-variant-numeric: tabular-nums; }
.tile-label { font-weight: 600; color: var(--muted); font-size: 0.9rem; }
.tile-sub { font-size: 0.8rem; color: var(--muted); }
.tile:hover { border-color: var(--brand); }
.tabs { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 12px; }
.tabs a { padding: 5px 12px; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; color: var(--text); font-size: 0.92rem; background: var(--bg); }
.tabs a.on { background: var(--brand); border-color: var(--brand); color: var(--bg); font-weight: 600; }

/* Station lists */
.stations { list-style: none; margin: 0; padding: 0; }
.st { display: flex; align-items: center; gap: 12px; padding: 10px 4px; border-top: 1px solid var(--line); }
.st:first-child { border-top: 0; }
.st.best { background: var(--best); border-radius: 8px; padding-left: 8px; padding-right: 8px; }
.rank { flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 0.85rem; background: var(--bg); border: 1px solid var(--line); }
.st.best .rank { background: var(--best-ink); color: var(--bg); border-color: var(--best-ink); }
.st-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.st-name { font-weight: 600; overflow-wrap: anywhere; }
.st-where { font-size: 0.86rem; color: var(--muted); }
.st-price { text-align: right; display: flex; flex-direction: column; }
.st-price strong { font-size: 1.15rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
.st.best .st-price strong { color: var(--best-ink); }
.age { font-size: 0.78rem; color: var(--muted); }

/* Tables */
.scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
th, td { text-align: left; padding: 7px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
thead th { font-size: 0.82rem; color: var(--muted); font-weight: 600; }
tbody th { font-weight: 500; }
.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
tr.dim td, tr.dim th { color: var(--muted); }
table.mini { max-width: 420px; }
abbr { text-decoration: none; color: var(--muted); }
.spark { width: 100%; max-width: 420px; height: 64px; display: block; margin: 4px 0 8px; }
.spark path { fill: none; stroke: var(--brand); stroke-width: 2; vector-effect: non-scaling-stroke; }

/* Lists */
.plain { list-style: none; margin: 0; padding: 0; }
.plain li { display: flex; justify-content: space-between; gap: 12px; padding: 5px 0; border-bottom: 1px solid var(--line); }
ol.plain { counter-reset: n; }
ol.plain li::before { counter-increment: n; content: counter(n) "."; color: var(--muted); min-width: 1.6em; }
ol.plain li a { flex: 1; }
.columns { columns: 220px; column-gap: 24px; padding: 0; list-style: none; margin: 0; }
.columns li { break-inside: avoid; padding: 3px 0; }
.tags { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.tags li { background: var(--bg); border: 1px solid var(--line); border-radius: 999px; padding: 3px 10px; font-size: 0.86rem; }
.toc ol { margin: 0; padding-left: 1.4em; columns: 240px; }
.sources li { margin-bottom: 8px; }

@media (max-width: 520px) {
  h1 { font-size: 1.45rem; }
  .card { padding: 12px; }
  th, td { padding: 6px 5px; }
}
