/* güncelakaryakıtfiyatları -- one stylesheet, no script.
 *
 * The idea (handoff, section 8): a Turkish road sign. Motorway green with a
 * white border for the masthead, the narrow sign face for headings, and
 * monospaced digits for prices so a column of them lines up like a pump's
 * display. Amber is for price changes and tax steps and for nothing else.
 *
 * Fonts are served from /assets/fonts/, never from Google: a third-party
 * font request is a third party learning who reads the page.
 */

/* Two files per face: latin, and latin-ext, which holds Ğ ğ İ Ş ş (ı is in
 * latin). unicode-range lets the browser fetch latin-ext only for a page
 * that uses those letters -- which here is every page, but a font request
 * that is not needed is still not made. Fontsource's ranges, OFL fonts,
 * licences beside the files. */
@font-face { font-family: "Barlow Condensed"; font-weight: 600; font-style: normal; font-display: swap;
  src: url("/assets/fonts/barlow-condensed-latin-600.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Barlow Condensed"; font-weight: 600; font-style: normal; font-display: swap;
  src: url("/assets/fonts/barlow-condensed-latin-ext-600.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Barlow Condensed"; font-weight: 700; font-style: normal; font-display: swap;
  src: url("/assets/fonts/barlow-condensed-latin-700.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Barlow Condensed"; font-weight: 700; font-style: normal; font-display: swap;
  src: url("/assets/fonts/barlow-condensed-latin-ext-700.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "IBM Plex Sans"; font-weight: 400; font-style: normal; font-display: swap;
  src: url("/assets/fonts/ibm-plex-sans-latin-400.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "IBM Plex Sans"; font-weight: 400; font-style: normal; font-display: swap;
  src: url("/assets/fonts/ibm-plex-sans-latin-ext-400.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "IBM Plex Sans"; font-weight: 600; font-style: normal; font-display: swap;
  src: url("/assets/fonts/ibm-plex-sans-latin-600.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "IBM Plex Sans"; font-weight: 600; font-style: normal; font-display: swap;
  src: url("/assets/fonts/ibm-plex-sans-latin-ext-600.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
/* Prices are digits, a comma and a minus: latin alone. */
@font-face { font-family: "IBM Plex Mono"; font-weight: 500; font-style: normal; font-display: swap;
  src: url("/assets/fonts/ibm-plex-mono-latin-500.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --paper: #f4f6f3; --card: #ffffff; --ink: #14211b; --muted: #5a6b62;
  --line: #d6ddd8; --soft: #e8eee9;
  --sign: #0b5d3b; --sign-ink: #ffffff;
  --amber: #e8a200; --amber-soft: #fff3d1;
  --up: #b3261e; --down: #1d6b43;
  --f-sign: "Barlow Condensed", "Arial Narrow", sans-serif;
  --f-text: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-num: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #0f1613; --card: #16201b; --ink: #e6ede8; --muted: #9aaba1;
    --line: #2a3731; --soft: #1c2923;
    --sign: #1f7a52; --sign-ink: #ffffff;
    --amber: #f0b429; --amber-soft: #3a2f10;
    --up: #ff8a80; --down: #6fd39c;
  }
}
:root[data-theme="dark"] {
  --paper: #0f1613; --card: #16201b; --ink: #e6ede8; --muted: #9aaba1;
  --line: #2a3731; --soft: #1c2923;
  --sign: #1f7a52; --sign-ink: #ffffff;
  --amber: #f0b429; --amber-soft: #3a2f10;
  --up: #ff8a80; --down: #6fd39c;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 16px/1.55 var(--f-text);
}
a { color: var(--sign); text-underline-offset: 2px; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) a { color: #7fd1a6; } }
:root[data-theme="dark"] a { color: #7fd1a6; }

/* Hidden by clipping, not by pushing it off to the left: in a right-to-left
   page a -9999px offset widens the document by ten thousand pixels. */
.skip { position: absolute; top: 8px; left: 16px; width: 1px; height: 1px; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap; }
.skip:focus { width: auto; height: auto; clip-path: none; z-index: 9; background: var(--card);
  padding: 8px 12px; }
[dir="rtl"] .skip { left: auto; right: 16px; }

/* --- masthead: the sign ------------------------------------------------ */
.mast {
  background: var(--sign); color: var(--sign-ink);
  border-bottom: 3px solid var(--sign-ink); outline: 3px solid var(--sign);
  padding: 10px 16px; display: flex; align-items: baseline;
  justify-content: space-between; gap: 12px;
}
.brand {
  color: var(--sign-ink) !important; text-decoration: none;
  font: 700 21px/1.1 var(--f-sign); letter-spacing: .01em;
  overflow-wrap: anywhere;
}
.tag { font: 500 12.5px/1 var(--f-text); opacity: .88; white-space: nowrap; }

.nav {
  display: flex; gap: 4px; overflow-x: auto; padding: 8px 12px;
  background: var(--card); border-bottom: 1px solid var(--line);
  scrollbar-width: thin;
}
.nav a {
  flex: none; padding: 6px 10px; border-radius: 6px; text-decoration: none;
  font: 600 14.5px/1.2 var(--f-text); color: var(--ink);
}
.nav a:hover { background: var(--soft); }

main { max-width: 860px; margin: 0 auto; padding: 14px 16px 32px; }

.crumbs { font-size: 13px; color: var(--muted); margin: 2px 0 8px; }
.crumbs a { color: var(--muted); }
.crumbs .sep { margin: 0 2px; }

h1 { font: 700 30px/1.08 var(--f-sign); margin: 4px 0 6px; letter-spacing: .005em; }
h2 { font: 700 23px/1.15 var(--f-sign); margin: 28px 0 8px; }
h3 { font: 600 19px/1.2 var(--f-sign); margin: 20px 0 6px; }
p { margin: 8px 0; }

.dates { font-size: 13.5px; color: var(--muted); margin: 0 0 12px; }
.dates b { color: var(--ink); font-weight: 600; }

/* --- the two big numbers ---------------------------------------------- */
.hero { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 12px 0; }
.hero > div {
  border: 2px solid var(--ink); border-radius: 8px; padding: 10px 12px;
  background: var(--card); min-width: 0;
}
.hero .l { font-size: 13px; color: var(--muted); }
.hero .v { font: 500 27px/1.2 var(--f-num); font-variant-numeric: tabular-nums;
  white-space: nowrap; }
.hero .v .cur { font: 500 14px var(--f-text); }
.hero .d { font-size: 12.5px; color: var(--muted); margin-top: 2px; }
/* Three numbers (benzin, motorin, LPG): two and one on a phone, a row of
   three where there is room. */
.hero.h3 > div:last-child:nth-child(3) { grid-column: 1 / -1; }

/* --- amber: price changes and tax steps, nothing else ------------------ */
.flag {
  background: var(--amber-soft); border-left: 4px solid var(--amber);
  padding: 10px 14px; border-radius: 0 6px 6px 0; margin: 14px 0;
}
.flag b { display: block; }

.up { color: var(--up); }
.down { color: var(--down); }
.same { color: var(--muted); }

/* --- tables ------------------------------------------------------------ */
.tbl {
  overflow-x: auto; margin: 12px 0; border: 1px solid var(--line);
  border-radius: 8px; background: var(--card);
}
table { border-collapse: collapse; width: 100%; font-size: 14.5px; }
caption { text-align: left; padding: 10px 12px 4px; font-size: 13px; color: var(--muted); }
th, td { padding: 8px 10px; border-bottom: 1px solid var(--line); text-align: left;
  vertical-align: baseline; }
thead th { font-weight: 600; color: var(--muted); font-size: 13px; white-space: nowrap; }
tbody tr:last-child td, tbody tr:last-child th { border-bottom: 0; }
tbody th { font-weight: 600; }
.num, td.n, th.n { text-align: right; font-family: var(--f-num);
  font-variant-numeric: tabular-nums; white-space: nowrap; }
th.n { font-family: var(--f-text); }
tr.anom td, tr.anom th { color: var(--muted); }
.mark { font: 600 11px/1 var(--f-text); padding: 2px 6px; border-radius: 99px;
  border: 1px solid var(--line); color: var(--muted); white-space: nowrap; }
tr.best th::after { content: " ●"; color: var(--down); font-size: 11px; }

/* --- charts: inline SVG, no script ------------------------------------- */
.chart { display: block; width: 100%; height: auto; margin: 10px 0 4px;
  background: var(--card); border: 1px solid var(--line); border-radius: 8px; }
.chart .ax { stroke: var(--line); stroke-width: 1; }
.chart .lb { fill: var(--muted); font: 11px var(--f-text); }
.chart .s-b { stroke: var(--sign); fill: none; stroke-width: 2; }
.chart .s-m { stroke: var(--amber); fill: none; stroke-width: 2; }
.key { font-size: 13px; color: var(--muted); margin: 0 0 12px; }
.key .b { color: var(--sign); font-weight: 600; }
.key .m { color: var(--amber); font-weight: 600; }

/* --- nearby provinces ------------------------------------------------- */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0; padding: 0;
  list-style: none; }
.chips a {
  display: inline-flex; gap: 6px; align-items: baseline; padding: 6px 10px;
  border: 1px solid var(--line); border-radius: 99px; background: var(--card);
  text-decoration: none; color: var(--ink); font-size: 14px;
}
.chips .num { color: var(--muted); font-size: 13.5px; }

/* --- calculators: the site's one script (calc.js) --------------------- */
/* Hidden until the script shows them; the page's tables need no script. */
.calc { border: 2px solid var(--ink); border-radius: 8px; padding: 12px 14px;
  background: var(--card); margin: 16px 0; }
.calc[hidden] { display: none; }
.calc h2 { margin-top: 2px; }
.calc label { display: block; font-size: 14px; margin: 10px 0 3px; }
.calc label.check { display: flex; gap: 8px; align-items: center; }
.calc input[type="text"] { font: 16px var(--f-num); width: 100%; max-width: 14em;
  padding: 7px 9px; border: 1px solid var(--line); border-radius: 6px;
  background: var(--paper); color: var(--ink); }
.calc h3 { margin-top: 2px; }
.calc select { font: 16px var(--f-text); width: 100%; max-width: 24em;
  padding: 7px 9px; border: 1px solid var(--line); border-radius: 6px;
  background: var(--paper); color: var(--ink); }
.calc .out { margin-top: 12px; }
.calc[data-state="empty"] .out { display: none; }

/* A toll table: many plazas across, so smaller, and the plaza names stay
   in view while the table scrolls sideways. */
table.mx { font-size: 13px; width: auto; }
table.mx th, table.mx td { padding: 5px 8px; }
table.mx thead th { white-space: normal; min-width: 4.5em; vertical-align: bottom; }
table.mx tbody th { position: sticky; left: 0; background: var(--card);
  white-space: nowrap; }

.src { font-size: 12.5px; color: var(--muted); }
.note { font-size: 14px; color: var(--muted); }
ul.plain { padding-left: 20px; }
dl.kv { display: grid; grid-template-columns: max-content 1fr; gap: 4px 14px; }
dl.kv dt { color: var(--muted); }
dl.kv dd { margin: 0; }

/* --- footer ----------------------------------------------------------- */
.foot { border-top: 1px solid var(--line); background: var(--card);
  padding: 16px; font-size: 13px; color: var(--muted); }
.foot > * { max-width: 860px; margin-left: auto; margin-right: auto; }
.foot-nav { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 10px auto; }
.foot-nav a { color: var(--muted); }
.foot .pub, .foot .disc { margin: 6px auto; }

@media (min-width: 720px) {
  h1 { font-size: 36px; }
  .hero .v { font-size: 32px; }
  .hero.h3 { grid-template-columns: 1fr 1fr 1fr; }
  .hero.h3 > div:last-child:nth-child(3) { grid-column: auto; }
  .mast { padding: 12px 24px; }
  main { padding: 18px 24px 40px; }
}
