/* ─────────────────────────────────────────────────────────────
   city-page.css — shared chrome + styles for the per-city fuel
   price landing pages at /fuel/petrol-price/<slug>.

   Generated pages (scripts/generate-city-pages.js) all link this
   ONE cached file instead of inlining ~500 lines of CSS 777×.
   Design tokens + header/nav are lifted verbatim from
   /fuel/prices so the pages read as native dashboard pages.
   No JS: the desktop pill-nav + the mobile pill strip are pure
   links (the hamburger drawer is intentionally omitted here).
   ───────────────────────────────────────────────────────────── */

:root{--bg:#f4f5f7;--white:#fff;--black:#111;--text:#3d4551;--muted:#5a6370;--border:#e2e5ea;--inner:#f8f9fb;--accent:#EA246B;--red:#dc2626;--amber:#d97706;--green:#00A880;--blue:#1772DC;--radius:6px;--shadow:0 1px 3px rgba(0,0,0,.04),0 8px 24px rgba(0,0,0,.06)}
*{box-sizing:border-box;margin:0;padding:0}
html{-webkit-text-size-adjust:100%;text-size-adjust:100%;-webkit-tap-highlight-color:transparent;overflow-x:hidden}
body{font-family:'Inter',system-ui,sans-serif;font-size:15px;background:var(--bg);color:var(--text);-webkit-font-smoothing:antialiased;line-height:1.6;overflow-x:hidden}
h1,h2,h3{font-family:'Plus Jakarta Sans','Inter',sans-serif;color:var(--black)}
a{text-decoration:none;color:inherit}
strong{color:var(--black)}
button,a,input,[role="button"]{touch-action:manipulation;-webkit-tap-highlight-color:transparent}

/* ───────── Canonical site header (matches /, /fuel, /world, /history) ───────── */
.site-header{background:var(--white);border-bottom:1px solid var(--border);position:sticky;top:0;z-index:100}
.header-inner{max-width:1100px;margin:0 auto;padding:0 20px;display:flex;align-items:center;height:56px;gap:24px}
.logo-img{height:32px;width:auto;display:block}
.logo{display:flex;align-items:center;flex-shrink:0}
.dash-nav{display:flex;gap:4px;margin-left:auto}
.dash-link{font-size:11px;font-weight:600;padding:5px 12px;border-radius:20px;color:var(--muted);border:1px solid var(--border);transition:all .2s}
.dash-link:hover{color:var(--black);border-color:var(--black)}
.dash-link.active{background:var(--black);color:#fff;border-color:var(--black)}
.home-link{font-size:11px;font-weight:600;color:var(--muted);display:flex;align-items:center;gap:4px;transition:color .2s;margin-left:8px}
.home-link:hover{color:var(--accent)}
.home-link i{font-size:13px}
.header-right{margin-left:12px;display:flex;align-items:center;gap:12px}
.live-badge{display:flex;align-items:center;gap:5px;font-size:10px;font-weight:700;color:var(--red);letter-spacing:1px}
.live-dot{width:6px;height:6px;border-radius:50%;background:var(--red);animation:pulse 1.5s infinite}
@keyframes pulse{0%,100%{box-shadow:0 0 0 0 rgba(220,38,38,.3)}50%{box-shadow:0 0 0 4px rgba(220,38,38,0)}}

.mobile-page-nav{display:none;justify-content:center;gap:4px;position:sticky;top:48px;z-index:99;background:var(--white);border-bottom:1px solid var(--border);padding:6px 12px}
.mpn-link{font-size:11px;font-weight:600;padding:5px 12px;border-radius:20px;color:var(--muted);border:1px solid var(--border);transition:all .2s;white-space:nowrap;text-align:center;flex:1;max-width:140px}
.mpn-link:hover{color:var(--black);border-color:var(--black)}
.mpn-link.active{background:var(--black);color:#fff;border-color:var(--black)}

/* ───────── Main ───────── */
.main{max-width:1100px;margin:0 auto;padding:24px 20px 60px}
.breadcrumb{font-size:12px;color:var(--muted);margin-bottom:12px}
.breadcrumb a{color:var(--muted)}
.breadcrumb a:hover{color:var(--accent)}
.breadcrumb span{color:var(--border)}
.page-title{font-size:1.6rem;font-weight:800;color:var(--black);letter-spacing:-.01em;line-height:1.2}
.updated{font-size:12px;color:var(--muted);margin-top:8px;display:flex;align-items:center;gap:6px}
.updated .live-dot{width:7px;height:7px}
.lede{font-size:15px;color:var(--text);margin-top:14px;max-width:760px;line-height:1.65}
.lede strong{color:var(--black)}

/* ───────── Price cards (hero) ───────── */
.price-cards{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin:22px 0}
.pcard{background:var(--white);border:1px solid var(--border);border-radius:var(--radius);padding:16px 18px;box-shadow:var(--shadow)}
.pcard-label{font-size:11px;font-weight:700;text-transform:uppercase;letter-spacing:.5px;color:var(--muted);display:flex;align-items:center;gap:6px}
.pcard-label i{font-size:14px;color:var(--accent)}
.pcard-value{font-family:'Plus Jakarta Sans','Inter',sans-serif;font-size:2rem;font-weight:800;color:var(--black);line-height:1.1;margin-top:8px;font-variant-numeric:tabular-nums}
.pcard-unit{font-size:.85rem;font-weight:600;color:var(--muted);margin-left:3px}
.pcard-sub{font-size:12px;color:var(--muted);margin-top:6px;line-height:1.4}
.delta{font-weight:700;font-variant-numeric:tabular-nums}
.delta.up{color:var(--red)}
.delta.down{color:var(--green)}
.delta.flat{color:var(--muted)}

/* ───────── Section blocks ───────── */
.section{background:var(--white);border:1px solid var(--border);border-radius:var(--radius);padding:18px 20px;box-shadow:var(--shadow);margin-top:20px}
.section h2{font-size:1.15rem;font-weight:800;color:var(--black);margin-bottom:4px;letter-spacing:-.005em}
.section p{font-size:14px;color:var(--text);line-height:1.65;margin-top:8px}
.section p a{color:var(--blue)}
.section p a:hover{text-decoration:underline}

/* ───────── Comparison table ───────── */
.ctable{width:100%;border-collapse:collapse;font-size:13.5px;margin-top:12px}
.ctable th{font-size:10px;font-weight:700;text-transform:uppercase;letter-spacing:.3px;color:var(--muted);padding:9px 8px;border-bottom:2px solid var(--border);text-align:right;white-space:nowrap}
.ctable th:first-child{text-align:left}
.ctable td{padding:9px 8px;border-bottom:1px solid var(--border);text-align:right;font-weight:600;color:var(--black);white-space:nowrap;font-variant-numeric:tabular-nums}
.ctable td:first-child{text-align:left;font-weight:600;color:var(--text)}
.ctable tr.self td{background:rgba(234,36,107,.06)}
.ctable tr.self td:first-child{color:var(--accent)}
.ctable tbody tr:last-child td{border-bottom:none}
.tnote{font-size:11.5px;color:var(--muted);margin-top:10px;line-height:1.5}

/* ───────── FAQ ───────── */
.faq-item{border-top:1px solid var(--border);padding:14px 0}
.faq-item:first-of-type{border-top:none;padding-top:4px}
.faq-item summary{cursor:pointer;font-weight:700;font-size:15px;list-style:none;display:flex;justify-content:space-between;align-items:center;color:var(--black)}
.faq-item summary::-webkit-details-marker{display:none}
.faq-item summary i{margin-left:8px;color:var(--muted);transition:transform .2s}
.faq-item[open] summary i{transform:rotate(180deg)}
.faq-item p{margin-top:10px;line-height:1.65;color:var(--text);font-size:14px}
.faq-item p a{color:var(--blue)}

/* ───────── Related cities ───────── */
.related-grid{display:flex;flex-wrap:wrap;gap:8px;margin-top:14px}
.city-chip{font-size:12.5px;font-weight:600;padding:7px 13px;border-radius:20px;color:var(--text);background:var(--inner);border:1px solid var(--border);transition:all .2s}
.city-chip:hover{color:var(--white);background:var(--black);border-color:var(--black)}
.city-chip .cc-price{color:var(--muted);font-weight:500;margin-left:5px;font-variant-numeric:tabular-nums}
.city-chip:hover .cc-price{color:rgba(255,255,255,.7)}

/* ───────── Source note ───────── */
.source-note{margin-top:20px;padding:14px 16px;background:var(--white);border:1px solid var(--border);border-radius:var(--radius);font-size:12px;color:var(--muted);line-height:1.6}
.source-note strong{color:var(--text)}
.source-note a{color:var(--blue)}
.source-note a:hover{text-decoration:underline}

/* ───────── Responsive ───────── */
@media (max-width:768px){
    .header-inner{height:48px;padding:0 12px;gap:12px}
    .dash-nav{display:none}
    .home-link{display:none}
    .mobile-page-nav{display:flex}
    .header-right{margin-left:auto;gap:8px}
    .logo-img{height:26px}
    .main{padding:16px 12px 40px}
    .page-title{font-size:1.25rem}
    .lede{font-size:14px}
    .price-cards{grid-template-columns:1fr;gap:10px;margin:16px 0}
    .pcard{padding:14px 16px}
    .pcard-value{font-size:1.7rem}
    .section{padding:15px 16px}
    .section h2{font-size:1.05rem}
    .ctable{font-size:12.5px}
    .ctable th,.ctable td{padding:8px 6px}
    .source-note{font-size:11.5px}
}
@media (max-width:380px){
    .pcard-value{font-size:1.5rem}
}
