@font-face {
  font-family: "Inter"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("/static/fonts/inter-cyrillic-400-normal.woff2") format("woff2");
  unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;
}
@font-face {
  font-family: "Inter"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("/static/fonts/inter-latin-400-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF,U+0131,U+2000-206F,U+2074,U+20AC,U+2212;
}
@font-face {
  font-family: "Inter"; font-style: normal; font-weight: 500; font-display: swap;
  src: url("/static/fonts/inter-cyrillic-500-normal.woff2") format("woff2");
  unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;
}
@font-face {
  font-family: "Inter"; font-style: normal; font-weight: 500; font-display: swap;
  src: url("/static/fonts/inter-latin-500-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF,U+0131,U+2000-206F,U+2074,U+20AC,U+2212;
}
@font-face {
  font-family: "Inter"; font-style: normal; font-weight: 600; font-display: swap;
  src: url("/static/fonts/inter-cyrillic-600-normal.woff2") format("woff2");
  unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;
}
@font-face {
  font-family: "Inter"; font-style: normal; font-weight: 600; font-display: swap;
  src: url("/static/fonts/inter-latin-600-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF,U+0131,U+2000-206F,U+2074,U+20AC,U+2212;
}

:root {
  /* SnowUI surfaces */
  --bg: #ffffff;
  --surface: #f9f9fa;        /* Block fill */
  --tile-blue: #e6f1fd;
  --tile-lavender: #edeefc;
  --tile-gray: #f9f9fa;
  /* SnowUI text */
  --text: #1c1c1c;
  --text-muted: rgba(28, 28, 28, 0.4);
  --hairline: rgba(28, 28, 28, 0.08);
  /* status dot (SnowUI hue) + readable same-hue text */
  --ok-dot: #71dd8c;   --ok-fg: #12a150;
  --maybe-dot: #ffb55b; --maybe-fg: #b26a00;
  --no-dot: #ff6b6b;   --no-fg: #cb3a3a;
  --unknown-dot: rgba(28, 28, 28, 0.22); --unknown-fg: rgba(28, 28, 28, 0.42);
  /* SnowUI geometry */
  --radius: 20px;
  --pad: 24px;
  --gap: 16px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 14px/20px "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}

.page {
  max-width: 760px;
  margin: 0 auto;
  padding: 40px 20px 56px;
}

/* header — SnowUI 24 Semibold heading */
.head { margin-bottom: var(--gap); }
.head h1 {
  margin: 0;
  font-size: 24px;
  line-height: 32px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.sub { margin: 4px 0 0; color: var(--text-muted); font-size: 14px; line-height: 20px; }
.updated { margin: 4px 0 0; font-size: 12px; line-height: 16px; color: var(--text-muted); }

.intro {
  margin: 0 0 20px;
  font-size: 14px;
  line-height: 22px;
  color: rgba(28, 28, 28, 0.72);
}
.intro b { font-weight: 600; color: var(--text); }

/* stat tiles — SnowUI KPI Card: pastel, radius 20, padding 24, label over number */
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap);
  margin-bottom: var(--gap);
}
.stat {
  border-radius: var(--radius);
  padding: var(--pad);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.stat.t-blue { background: var(--tile-blue); }
.stat.t-gray { background: var(--tile-gray); }
.stat.t-lavender { background: var(--tile-lavender); }
.stat-cap { font-size: 14px; line-height: 20px; font-weight: 400; color: var(--text); }
.stat-num { font-size: 24px; line-height: 30px; font-weight: 600; letter-spacing: -0.01em; }
.stat-num.ok { color: var(--ok-fg); }

/* SnowUI Block card */
.card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 8px var(--pad);
  margin-bottom: var(--gap);
}
.map-card { padding: 0; overflow: hidden; }
.map { width: 100%; height: 400px; background: #eef0f2; }

/* MapLibre overrides — match SnowUI */
.maplibregl-map { font: 400 13px/18px "Inter", system-ui, sans-serif; }
.maplibregl-popup-content { border-radius: 14px; box-shadow: 0 8px 28px rgba(0, 0, 0, 0.12); padding: 14px 16px; }
.maplibregl-ctrl-attrib.maplibregl-compact { font-size: 11px; }
.pop-name { font-size: 14px; font-weight: 600; color: var(--text); }
.pop-addr { font-size: 12px; color: var(--text-muted); margin-top: 2px; }
.pop-fuels { display: flex; flex-wrap: wrap; gap: 10px; margin: 8px 0 10px; }
.pop-fuel { display: inline-flex; align-items: center; gap: 5px; font-size: 13px; font-weight: 500; }
.pop-fuel .dot { width: 8px; height: 8px; border-radius: 50%; }
.pop-fuel.f-available .dot { background: var(--ok-dot); } .pop-fuel.f-available { color: var(--ok-fg); }
.pop-fuel.f-maybe .dot { background: var(--maybe-dot); } .pop-fuel.f-maybe { color: var(--maybe-fg); }
.pop-fuel.f-unavailable .dot { background: var(--no-dot); } .pop-fuel.f-unavailable { color: var(--no-fg); }
.pop-fuel.f-unknown .dot { background: var(--unknown-dot); } .pop-fuel.f-unknown { color: var(--unknown-fg); }
.pop-route { display: inline-block; font-size: 13px; font-weight: 500; color: #2f6fed; text-decoration: none; }
.pop-route:hover { text-decoration: underline; }

.section-title {
  margin: 28px 0 12px;
  font-size: 18px;
  line-height: 26px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

/* list rows — SnowUI table style: comfortable rows, hairline separators */
.list { display: flex; flex-direction: column; }
.row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 0;
}
.row + .row { box-shadow: inset 0 1px 0 var(--hairline); }
.row-name { font-size: 14px; line-height: 20px; font-weight: 600; }
.row-addr { font-size: 12px; line-height: 16px; color: var(--text-muted); margin-top: 3px; }
.row-side { display: flex; flex-direction: column; align-items: flex-end; gap: 5px; flex-shrink: 0; }

/* fuel status — SnowUI status chip: dot + word, same hue */
.fuel { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; line-height: 20px; font-weight: 500; white-space: nowrap; }
.fuel .dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.fuel .ft { color: var(--text); }
.f-available .dot { background: var(--ok-dot); } .f-available .sv { color: var(--ok-fg); }
.f-maybe .dot { background: var(--maybe-dot); } .f-maybe .sv { color: var(--maybe-fg); }
.f-unavailable .dot { background: var(--no-dot); } .f-unavailable .sv { color: var(--no-fg); }
.f-unknown .dot { background: var(--unknown-dot); } .f-unknown .sv { color: var(--unknown-fg); }
.row-since { font-size: 12px; line-height: 16px; color: var(--text-muted); }

.empty { padding: 24px 0; text-align: center; color: var(--text-muted); }

/* prose / faq */
.prose p { margin: 0 0 12px; font-size: 14px; line-height: 22px; color: rgba(28, 28, 28, 0.72); }
.prose b { font-weight: 600; color: var(--text); }

.faq details {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 16px 20px;
  margin-bottom: 8px;
}
.faq summary {
  cursor: pointer;
  font-weight: 500;
  font-size: 14px;
  line-height: 20px;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 12px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--text-muted); font-weight: 400; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 10px 0 0; font-size: 13px; line-height: 20px; color: rgba(28, 28, 28, 0.6); }

.foot { margin-top: 28px; font-size: 12px; line-height: 18px; color: var(--text-muted); }
.foot p { margin: 0 0 8px; }
.foot .muted { opacity: 0.75; }

@media (max-width: 560px) {
  .stats { grid-template-columns: 1fr 1fr; }
  .stats .stat:first-child { grid-column: 1 / -1; }
}
@media (max-width: 440px) {
  .row { flex-direction: column; align-items: flex-start; }
  .row-side { align-items: flex-start; }
}
