/* dresez fuel. Palette from dresez.com's brand: cobalt #3a6df0, butter #fde66a, cream #f3efe6,
   ink #0e0e10, coral #b53a5c. Dark surfaces follow dresez.com's dark theme (#0f1012 / #e8e8ea). */
@font-face {
  font-family: 'Bricolage Grotesque';
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url(fonts/bricolage-grotesque-latin-wght.woff2) format('woff2');
}
/* Urdu: Noto Nastaliq Urdu, loaded only when Arabic-script text is on screen (the Urdu page). */
@font-face {
  font-family: 'Noto Nastaliq Urdu';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(fonts/noto-nastaliq-urdu-arabic-400.woff2) format('woff2');
  unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+200C-200E, U+FB50-FDFF, U+FE70-FEFC;
}
@font-face {
  font-family: 'Noto Nastaliq Urdu';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(fonts/noto-nastaliq-urdu-arabic-700.woff2) format('woff2');
  unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+200C-200E, U+FB50-FDFF, U+FE70-FEFC;
}

:root {
  --cobalt: #3a6df0; --ink: #0e0e10;
  --bg: #f3efe6; --surface: #ffffff; --surface-2: #f7f4ec; --text: #0e0e10; --text-2: #3d3d42; --muted: #55555c;
  --line: #ece6d8; --line-2: #e0d9c8; --seg: #e6e0d2; --seg-on: #0e0e10; --seg-on-text: #ffffff;
  --link: #2a55c9; --link-hover: #1b3d99;
  --chip-bg: #e3ebff; --chip-text: #1b3d99; --chip-dot: #3a6df0;
  --grey-chip-bg: #efeadf; --grey-chip-text: #3d3d42; --grey-dot: #8a8577;
  --late: #c25a00; --late-bg: #fff0e0; --late-text: #8a3f00;
  --less: #1b3d99; --more: #a3304f;
  --petrol: #3a6df0; --diesel: #b53a5c;
  --shadow: 0 1px 0 rgba(14, 14, 16, 0.06);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0f1012; --surface: #1a1b1f; --surface-2: #222328; --text: #e8e8ea; --text-2: #c4c4c9; --muted: #9d9da5;
    --line: #2a2b31; --line-2: #2f3036; --seg: #26272c; --seg-on: #e8e8ea; --seg-on-text: #0e0e10;
    --link: #8fb0ff; --link-hover: #b9cbff;
    --chip-bg: #1d2a50; --chip-text: #b9cbff; --chip-dot: #7d9dff;
    --grey-chip-bg: #2a2a2e; --grey-chip-text: #c4c4c9; --grey-dot: #8a8577;
    --late: #f08a3a; --late-bg: #3a2414; --late-text: #ffc48a;
    --less: #9db8ff; --more: #f29ab4;
    --petrol: #7d9dff; --diesel: #f29ab4;
    --shadow: none;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0f1012; --surface: #1a1b1f; --surface-2: #222328; --text: #e8e8ea; --text-2: #c4c4c9; --muted: #9d9da5;
  --line: #2a2b31; --line-2: #2f3036; --seg: #26272c; --seg-on: #e8e8ea; --seg-on-text: #0e0e10;
  --link: #8fb0ff; --link-hover: #b9cbff;
  --chip-bg: #1d2a50; --chip-text: #b9cbff; --chip-dot: #7d9dff;
  --grey-chip-bg: #2a2a2e; --grey-chip-text: #c4c4c9; --grey-dot: #8a8577;
  --late: #f08a3a; --late-bg: #3a2414; --late-text: #ffc48a;
  --less: #9db8ff; --more: #f29ab4;
  --petrol: #7d9dff; --diesel: #f29ab4;
  --shadow: none;
  color-scheme: dark;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: 16px; line-height: 1.4;
}
a { color: var(--link); }
a:hover { color: var(--link-hover); }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--cobalt); outline-offset: 2px; }
.num { font-family: 'Bricolage Grotesque', 'Noto Nastaliq Urdu', 'Segoe UI', system-ui, sans-serif; font-variant-numeric: tabular-nums; }
/* Urdu page: Nastaliq for text, Bricolage still draws the digits. Nastaliq needs tall lines, and
   letter-spacing or uppercase would break its joined letters. */
:root[lang="ur"] body { font-family: 'Bricolage Grotesque', 'Noto Nastaliq Urdu', 'Urdu Typesetting', 'Jameel Noori Nastaleeq', serif; line-height: 2.1; }
:root[lang="ur"] * { letter-spacing: 0 !important; text-transform: none !important; }
:root[lang="ur"] .label, :root[lang="ur"] .group { font-size: 14px; }
:root[lang="ur"] .note, :root[lang="ur"] .meta, :root[lang="ur"] .checked { line-height: 2.1; }
:root[lang="ur"] .big .unit, :root[lang="ur"] .mid .unit { font-size: 16px; }
:root[lang="ur"] .summary, :root[lang="ur"] .spread, :root[lang="ur"] .how p, :root[lang="ur"] .how li, :root[lang="ur"] .picker-card p, :root[lang="ur"] .empty p { line-height: 2.1; }
:root[lang="ur"] .last-checked { line-height: 2; }

.wrap { max-width: 1160px; margin: 0 auto; padding: 0 16px; }
.last-checked { margin: 0; padding-top: 12px; font-size: 13px; color: var(--muted); }
.top { display: flex; align-items: center; gap: 12px; padding: 14px 0; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 8px; text-decoration: none; color: var(--text); }
.mark { width: 28px; height: 28px; border-radius: 8px; background: var(--cobalt); display: flex; align-items: center; justify-content: center; }
.brand-name { font-weight: 700; font-size: 16px; }
.brand-name span { font-weight: 500; color: var(--muted); }
.toggles { margin-inline-start: auto; display: flex; gap: 10px; flex-wrap: wrap; }
.seg { display: flex; gap: 4px; background: var(--seg); border-radius: 999px; padding: 3px; }
.seg button { border: 0; border-radius: 999px; background: transparent; font-size: 13px; font-weight: 600; padding: 0 14px; height: 38px; }
.seg button[aria-pressed="true"] { background: var(--seg-on); color: var(--seg-on-text); }
.seg-small button { font-size: 12px; padding: 0 12px; height: 34px; }
.seg-small button[aria-pressed="true"] { background: var(--surface); color: var(--text); box-shadow: var(--shadow); }

.where { display: flex; align-items: center; gap: 6px; font-size: 14px; color: var(--text-2); }
.where strong { color: var(--text); }
.where button.change { margin-inline-start: auto; background: none; border: 0; color: var(--link); font-weight: 600; min-height: 44px; padding: 0 2px; }
.where-wide { display: none; }

.grid { display: grid; gap: 18px; margin-top: 6px; }
.col { display: flex; flex-direction: column; gap: 18px; }
.card { background: var(--surface); border-radius: 20px; padding: 20px 18px 18px; display: flex; flex-direction: column; gap: 10px; box-shadow: var(--shadow); min-width: 0; }
.label { font-size: 13px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; }
.big { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.big .num { font-size: clamp(44px, 15vw, 64px); font-weight: 800; line-height: 1; letter-spacing: -0.02em; white-space: nowrap; }
.big .unit { font-size: 15px; color: var(--muted); }
.range { font-size: 14px; color: var(--text-2); }
.chiprow { display: flex; flex-wrap: wrap; gap: 6px 8px; align-items: center; }
.chip { display: inline-flex; align-items: center; gap: 6px; border-radius: 999px; padding: 5px 10px; font-size: 13px; font-weight: 600; background: var(--chip-bg); color: var(--chip-text); }
.chip::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--chip-dot); flex: none; }
.chip.grey { background: var(--grey-chip-bg); color: var(--grey-chip-text); }
.chip.grey::before { background: var(--grey-dot); }
.chip.late { background: var(--late-bg); color: var(--late-text); font-weight: 700; }
.chip.late::before { background: var(--late); }
.checked { font-size: 13px; color: var(--muted); }
.note { margin: 2px 0 0; font-size: 13px; color: var(--muted); line-height: 1.45; }
.note strong { color: var(--text-2); }
/* Under the notified-price headline: what pumps in the city charge. */
.pump { border-top: 1px solid var(--line); padding-top: 14px; margin-top: 4px; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.pump h2 { margin: 0; font-size: 16px; font-weight: 700; }
.mid { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.mid .num { font-size: 34px; font-weight: 800; line-height: 1.05; letter-spacing: -0.01em; white-space: nowrap; }
.mid .unit { font-size: 14px; color: var(--muted); }
/* A calculated figure must not look like a published one: dashed edge, "about", lighter digits. */
.pump.is-estimate { border: 2px dashed var(--late); border-radius: 14px; padding: 12px 14px 14px; }
.pump.is-estimate .mid .num { font-weight: 500; }
.about { font-size: 16px; font-weight: 600; color: var(--late-text); }
.govt { border-top: 1px solid var(--line); padding-top: 10px; margin-top: 2px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 12px; font-size: 14px; }
.govt .num { font-weight: 700; font-size: 18px; text-align: end; }
.govt .sub { font-size: 12px; color: var(--muted); grid-column: 1 / -1; }
/* National notified price chart. The readout sits above the plot so a thumb on the chart never
   covers it. The marks, the scrub overlay and the hit layer are siblings of the SVG, so redrawing
   the line never drops a drag. Positions use inset-inline-start: time runs from the reading
   direction's start, and the SVG is mirrored to match on the Urdu page. */
.hist-readout { font-variant-numeric: tabular-nums; }
.hist-top { display: flex; align-items: baseline; justify-content: space-between; gap: 4px 12px; flex-wrap: wrap; }
.hist-day { font-size: 16px; font-weight: 700; white-space: nowrap; }
.hist-readout.idle .hist-day { color: var(--text-2); }
.hist-hint { font-size: 12px; color: var(--muted); }
.hist-vals { display: flex; flex-wrap: wrap; gap: 2px 18px; margin-top: 2px; }
.hist-val { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; font-size: 14px; color: var(--text-2); }
.hist-val .key { width: 12px; height: 3px; border-radius: 2px; flex: none; }
.hist-val .num { font-size: 18px; font-weight: 700; color: var(--text); }
.hist-since { font-size: 12px; color: var(--muted); }
.hist-chart { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 8px; margin-top: 4px; }
.hist-plot { position: relative; height: 120px; border-bottom: 1px solid var(--line-2); }
#hist-svg { display: block; width: 100%; height: 100%; overflow: visible; }
:root[dir="rtl"] #hist-svg { transform: scaleX(-1); }
#hist-svg path { fill: none; stroke-width: 2.5; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
#hist-svg path.dim { stroke-width: 1.5; opacity: 0.55; }
.hist-marks, .hist-overlay { position: absolute; inset: 0; pointer-events: none; }
.hist-mark { position: absolute; width: 7px; height: 7px; margin-inline-start: -3.5px; margin-top: -3.5px; border-radius: 50%; border: 1.5px solid var(--surface); }
.hist-line { position: absolute; top: -6px; bottom: 0; width: 1px; margin-inline-start: -0.5px; background: var(--text); opacity: 0.7; }
.hist-dot { position: absolute; width: 11px; height: 11px; margin-inline-start: -5.5px; margin-top: -5.5px; border-radius: 50%; box-shadow: 0 0 0 2px var(--surface); }
.hist-hit { position: absolute; inset: -12px 0 -20px; touch-action: pan-y; cursor: crosshair; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; -webkit-tap-highlight-color: transparent; }
.hist-scale { display: flex; flex-direction: column; justify-content: space-between; font-size: 11px; color: var(--muted); text-align: end; margin-block: -7px; }
.hist-ends { display: flex; justify-content: space-between; gap: 8px; font-size: 12px; color: var(--muted); }
.empty p { margin: 0; font-size: 14px; color: var(--text-2); line-height: 1.5; }
.btn { align-self: flex-start; min-height: 48px; display: inline-flex; align-items: center; padding: 0 18px; border-radius: 999px; background: var(--cobalt); color: #fff; border: 0; font-weight: 700; }

.list { padding: 20px 0 8px; gap: 0; }
.list-head { display: flex; flex-direction: column; gap: 8px; padding: 0 16px 14px; }
.list-head h2 { margin: 0; font-size: 18px; text-wrap: balance; }
.list .note.pad { padding: 0 16px 14px; }
.summary { margin: 0; font-size: 14px; color: var(--text-2); line-height: 1.5; }
.spread { margin: 0; font-size: 14px; color: var(--text-2); line-height: 1.5; }
.row .meta a.map { color: var(--link); font-weight: 600; }
.more-btn { margin: 4px 16px 10px; min-height: 44px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--surface); font-weight: 600; font-size: 14px; }
/* City strip: every ranked city as a dot from cheapest (start) to dearest (end). */
.strip { position: relative; padding-top: 30px; margin-top: 2px; }
.strip .track { position: relative; height: 22px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); margin-inline: 8px; }
.strip .dot { position: absolute; top: 50%; width: 8px; height: 8px; margin-inline-start: -4px; margin-top: -4px; border-radius: 50%; background: var(--grey-dot); opacity: 0.7; }
.strip .dot.me { width: 16px; height: 16px; margin-inline-start: -8px; margin-top: -8px; background: var(--cobalt); opacity: 1; border: 2px solid var(--surface); box-shadow: 0 0 0 1px var(--cobalt); z-index: 1; }
.strip .me-label { position: absolute; top: 0; transform: translateX(-50%); font-size: 12px; font-weight: 700; color: var(--chip-text); white-space: nowrap; margin-inline: 8px; }
:root[dir="rtl"] .strip .me-label { transform: translateX(50%); }
.strip .ends { display: flex; justify-content: space-between; gap: 8px; font-size: 12px; color: var(--muted); margin-top: 6px; }
.group { font-size: 12px; font-weight: 700; color: var(--muted); padding: 8px 16px; background: var(--surface-2); text-transform: uppercase; letter-spacing: 0.04em; }
.row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 3px 12px; padding: 13px 16px; border-top: 1px solid var(--line); }
.group + .row { border-top: 0; }
.row .name { font-weight: 600; min-width: 0; overflow-wrap: anywhere; }
.row .val { font-weight: 700; text-align: end; white-space: nowrap; }
.row .meta { font-size: 12px; color: var(--muted); min-width: 0; }
.row .cmp { font-size: 13px; font-weight: 700; text-align: end; white-space: nowrap; }
/* The comparison after each day's national price is too long to sit beside the meta line without
   squeezing the city name to nothing, so it takes the whole width under them and wraps. */
.row .cmp.adj { grid-column: 1 / -1; white-space: normal; }
.row .cmp.less { color: var(--less); }
.row .cmp.more { color: var(--more); }
.row .cmp.same { color: var(--muted); }
.row button.as-link { background: none; border: 0; padding: 0; color: inherit; text-align: start; font-weight: 600; min-height: 24px; text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 3px; }

.how { display: grid; gap: 18px; padding: 28px 0 12px; }
.how h3 { margin: 0 0 6px; font-size: 15px; }
.how p, .how li { margin: 0 0 6px; font-size: 13px; line-height: 1.55; color: var(--text-2); }
.how ul { margin: 0; padding-inline-start: 18px; }
.foot { border-top: 1px solid var(--line-2); padding: 16px 0 28px; font-size: 12px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; }
.theme button { background: none; border: 0; color: var(--link); padding: 0 4px; min-height: 32px; font-size: 12px; }
.theme button[aria-pressed="true"] { color: var(--text); font-weight: 700; text-decoration: underline; }
.skeleton { color: var(--muted); font-size: 14px; padding: 30px 0; }

dialog { border: 0; padding: 0; background: transparent; width: min(560px, calc(100% - 24px)); max-height: calc(100% - 24px); color: var(--text); }
dialog::backdrop { background: rgba(14, 14, 16, 0.55); }
.picker-card { background: var(--surface); border-radius: 20px; padding: 18px 16px; display: flex; flex-direction: column; gap: 12px; }
.picker-head { display: flex; align-items: center; justify-content: space-between; }
.picker-head h2 { margin: 0; font-size: 18px; }
.close { width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; background: none; border: 0; }
.picker-card p { margin: 0; font-size: 14px; color: var(--text-2); line-height: 1.45; }
.picker-card p.small { font-size: 12px; color: var(--muted); }
.picker-card label { font-size: 13px; font-weight: 600; }
.picker-card input { height: 48px; border-radius: 12px; border: 2px solid var(--cobalt); padding: 0 14px; font: inherit; font-size: 16px; background: var(--surface); color: var(--text); }
.results { display: flex; flex-direction: column; border-radius: 12px; border: 1px solid var(--line-2); overflow: hidden; }
.results:empty { display: none; }
.results button { display: flex; justify-content: space-between; align-items: center; gap: 10px; min-height: 52px; padding: 0 14px; background: var(--surface); border: 0; border-top: 1px solid var(--line); text-align: start; }
.results button:first-child { border-top: 0; }
.results .kind { font-size: 12px; color: var(--muted); white-space: nowrap; }
.picker-sub { font-size: 13px; font-weight: 600; color: var(--muted); margin-top: 4px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips button { min-height: 44px; padding: 0 14px; border-radius: 999px; background: var(--seg); border: 0; font-size: 14px; font-weight: 600; }

@media (min-width: 900px) {
  .wrap { padding: 0 24px; }
  .top { padding: 20px 0; gap: 16px; }
  .mark { width: 34px; height: 34px; border-radius: 10px; }
  .brand-name { font-size: 19px; }
  .where-wide { display: flex; font-size: 15px; margin-inline-start: 12px; }
  .where-wide button.change { margin-inline-start: 4px; min-height: 40px; }
  .where-narrow { display: none; }
  .seg button { font-size: 14px; height: 40px; padding: 0 16px; }
  .grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; align-items: start; margin-top: 0; }
  .col { gap: 20px; }
  .card { border-radius: 24px; padding: 28px; gap: 12px; }
  .big .num { font-size: clamp(56px, 6.6vw, 88px); }
  .big .unit { font-size: 17px; }
  .list { padding: 24px 0 8px; }
  .list-head { padding: 0 24px 16px; }
  .list-head h2 { font-size: 20px; }
  .list .note.pad { padding: 0 24px 14px; }
  .group, .row { padding-inline: 24px; }
  .more-btn { margin-inline: 24px; }
  .how { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; padding: 32px 0 16px; }
  .how p, .how li { font-size: 14px; }
  .foot { font-size: 13px; }
}
