/* EVCarScout — data-journalism / infographic theme for EV news.
   Airy light gray-white canvas, navy ink, one categorical colour per section,
   chart-like UI drawn in EV vocabulary: battery-cell bars, range bars with a car,
   a road-trip route map with charging stops, section pictograms, tabular numerals. */

:root {
  --bg: #f6f8fa;
  --surface: #ffffff;
  --soft: #eef2f6;
  --line: #e1e6ee;
  --grid: #edf0f5;
  --ink: #14213d;
  --text: #24304a;
  --muted: #5a6478;
  --teal: #0f9488;   --teal-bg: #e3f5f2;
  --coral: #e2583f;  --coral-bg: #fdebe7;
  --amber: #c98314;  --amber-bg: #fcf2df;
  --indigo: #5250d0; --indigo-bg: #ecebfc;
  --slate: #64748b;  --slate-bg: #edf0f4;
  --font: "IBM Plex Sans", "IBM Plex Sans Thai", system-ui, sans-serif;
  --mono: "IBM Plex Mono", "IBM Plex Sans Thai", ui-monospace, monospace;
  --radius: 14px;
  --shadow: 0 1px 2px rgb(20 33 61 / .04), 0 6px 18px rgb(20 33 61 / .05);
  --c: var(--indigo); --cbg: var(--indigo-bg);
  --bolt: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 18'%3E%3Cpath d='M7.5 0 1 10.5h4.2L3.8 18 11 7H6.8z'/%3E%3C/svg%3E");
  --car: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 14'%3E%3Cpath d='M1 10V7.5L4 3.5Q5 2.5 6.5 2.5H14Q15.5 2.5 16.8 3.6L19.5 6H21.5Q23 6 23 7.5V10Z'/%3E%3Ccircle cx='6' cy='11' r='2.4'/%3E%3Ccircle cx='18' cy='11' r='2.4'/%3E%3C/svg%3E");
}

/* section colour keys (categorical palette) */
.s-ev { --c: var(--teal); --cbg: var(--teal-bg); }
.s-hybrid { --c: var(--amber); --cbg: var(--amber-bg); }
.s-market { --c: var(--indigo); --cbg: var(--indigo-bg); }
.s-new { --c: var(--coral); --cbg: var(--coral-bg); }
.s-more { --c: var(--slate); --cbg: var(--slate-bg); }
.s-home, .s-author { --c: var(--ink); --cbg: var(--soft); }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 400 16px/1.7 var(--font); font-variant-numeric: tabular-nums;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--indigo); }
:focus-visible { outline: 3px solid var(--indigo); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3 { color: var(--ink); line-height: 1.35; margin: 0; font-weight: 700; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 50; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; }
.skip:focus { top: 12px; color: #fff; }
.img-fallback { object-fit: contain !important; background: var(--soft); padding: 8%; }
.num, b, dd { font-variant-numeric: tabular-nums; }
.ico { flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ico .f { fill: currentColor; stroke: none; }

/* ad slots: neutral */
.ad-slot { max-width: 1200px; margin: 16px auto; padding: 0 20px; text-align: center; }
.ad-slot:empty { display: none; }

/* ---------- header ---------- */
.site-header { background: var(--surface); border-bottom: 1px solid var(--line); }
.topbar { background: var(--ink); color: #c9d3e6; font-size: .8rem; }
.topbar-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 34px; }
.tagline { display: inline-flex; align-items: center; gap: 10px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.spark { flex: none; fill: none; stroke: #4fd1c0; stroke-width: 1.8; stroke-linejoin: round; stroke-linecap: round; }
.spark .bolt { fill: #ffd166; stroke: none; }
.topbar-live { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; color: #fff; }
.topbar-live:hover { color: #4fd1c0; }
.live-dot { width: 7px; height: 7px; border-radius: 50%; background: #4fd1c0; box-shadow: 0 0 0 3px rgb(79 209 192 / .25); }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 68px; }
.logo { display: inline-flex; align-items: center; gap: 10px; flex: none; }
.logo-text { font-size: 1.4rem; font-weight: 700; letter-spacing: -.01em; color: var(--ink); }
.logo-text b { color: var(--teal); }
.nav { min-width: 0; }
.nav ul { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; padding: 4px; background: var(--soft); border-radius: 12px; }
.nav ul::-webkit-scrollbar { display: none; }
.nav a { display: inline-flex; align-items: center; gap: 7px; padding: 7px 14px; border-radius: 9px; font-size: .92rem; font-weight: 500; white-space: nowrap; color: var(--muted); }
.nav a:hover { color: var(--ink); background: rgb(255 255 255 / .7); }
.nav a[aria-current="page"] { background: var(--surface); color: var(--ink); font-weight: 600; box-shadow: 0 1px 3px rgb(20 33 61 / .12); }
.nav-ico { display: inline-flex; color: var(--c); flex: none; }
.nav-ico .ico { width: 17px; height: 17px; }
/* road-trip range map under the header */
.route { overflow: hidden; border-top: 1px dashed var(--line); background: linear-gradient(180deg, var(--surface), #fbfcfd); }
.route svg { display: block; width: 100%; height: auto; min-height: 44px; }
.route-road, .route-lane, .route-done { fill: none; stroke-linecap: round; }
.route-road { stroke: #e3e8ef; stroke-width: 9; }
.route-lane { stroke: #fff; stroke-width: 1.4; stroke-dasharray: 7 7; }
.route-done { stroke: var(--teal); stroke-width: 3; stroke-dasharray: 1 0; opacity: .85; }
.route .km circle { fill: var(--surface); stroke: var(--ink); stroke-width: 2.5; }
.route text { font: 600 10px var(--font); fill: var(--muted); }
.route .stop circle { fill: var(--k); }
.route .stop path { fill: #fff; }
.st-teal { --k: var(--teal); } .st-amber { --k: var(--amber); } .st-indigo { --k: var(--indigo); }
.route-car { fill: var(--ink); }
.route-car circle { stroke: #fff; stroke-width: 1.2; }

/* breadcrumbs */
.crumbs { margin-top: 18px; font-size: .85rem; color: var(--muted); }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 4px; }
.crumbs li:not(:last-child)::after { content: "/"; margin-left: 6px; color: #aab3c2; }
.crumbs a:hover { color: var(--indigo); text-decoration: underline; }
.crumbs [aria-current] { color: var(--ink); font-weight: 500; }

/* ---------- shared bits ---------- */
.kicker-ico { display: inline-flex; vertical-align: -5px; margin-right: 8px; padding: 3px; border-radius: 7px; color: var(--c); background: var(--cbg); }
.kicker-ico .ico { width: 18px; height: 18px; }
.kicker, .label { font-size: .78rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.label { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; color: var(--ink); }
.label::before { content: ""; width: 10px; height: 15px; background: var(--teal); -webkit-mask: var(--bolt) center / contain no-repeat; mask: var(--bolt) center / contain no-repeat; }
.section-title { font-size: 1.25rem; }
.chart-head { display: flex; align-items: baseline; justify-content: space-between; gap: 6px 16px; flex-wrap: wrap; margin-bottom: 16px; }
.chart-note { font-size: .85rem; color: var(--muted); }
.chart-note b { color: var(--ink); }
.tags, .meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.meta { font-size: .82rem; color: var(--muted); }
.badge { display: inline-flex; align-items: center; gap: 5px; padding: 2px 9px 2px 7px; border-radius: 6px; font-size: .76rem; font-weight: 600; color: var(--c); background: var(--cbg); line-height: 1.6; position: relative; z-index: 1; }
.badge .ico { width: 14px; height: 14px; stroke-width: 2; }
.badge:hover { color: var(--ink); }
.type, .cat { font-size: .76rem; color: var(--muted); font-weight: 500; }
.type::before { content: "● "; color: #c3cad6; }
.gauge { display: inline-flex; align-items: center; gap: 7px; font-size: .8rem; color: var(--muted); white-space: nowrap; }
.gauge b { color: var(--ink); font-weight: 600; }
/* range bar: a road (dashed lane) filled up to the read time, a small car at the end, a finish tick at 15 min */
.gauge-track { position: relative; width: 70px; height: 7px; margin-left: 2px; border-radius: 4px; background: linear-gradient(90deg, #c3cad6 50%, transparent 0) 0 50% / 8px 1px repeat-x, var(--grid); }
.gauge-track::after { content: ""; position: absolute; right: 0; top: -3px; bottom: -3px; width: 2px; border-radius: 1px; background: #aab3c2; }
.gauge-fill { position: absolute; inset: 0 auto 0 0; width: calc(min(var(--m), 15) / 15 * 100%); min-width: 14px; background: var(--c); border-radius: 4px; }
.gauge-fill::after { content: ""; position: absolute; right: -6px; bottom: 2px; width: 17px; height: 10px; background: var(--c); -webkit-mask: var(--car) center / contain no-repeat; mask: var(--car) center / contain no-repeat; }
.card, .surface, .chart-card, .table-card, .timeline, .reviews, .rank, .facts, .legal-toc, .legal-body, .empty {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
}

/* ---------- home ---------- */
.intro { display: flex; align-items: flex-end; justify-content: space-between; gap: 8px 20px; flex-wrap: wrap; margin-top: 26px; }
.intro h1 { font-size: clamp(1.6rem, 4vw, 2.3rem); margin-top: 4px; letter-spacing: -.01em; }
.hl { color: var(--teal); }
.intro-date { font-size: .85rem; color: var(--muted); }

.kpis { margin-top: 18px; }
.kpis dl { margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.kpi { position: relative; overflow: hidden; padding: 16px 18px 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.kpi::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--k); }
.kpi dt { font-size: .82rem; color: var(--muted); font-weight: 500; }
.kpi dd { margin: 2px 0 0; font-size: clamp(1.9rem, 4vw, 2.6rem); font-weight: 700; line-height: 1.1; color: var(--ink); letter-spacing: -.02em; }
.batt { position: absolute; right: 22px; top: 18px; width: 54px; height: 28px; padding: 3px; border: 2.5px solid var(--k); border-radius: 7px; }
.batt::after { content: ""; position: absolute; right: -7px; top: 7px; width: 4px; height: 9px; border-radius: 0 3px 3px 0; background: var(--k); }
.batt i { display: block; height: 100%; width: var(--lv); border-radius: 3px; background: linear-gradient(90deg, transparent calc(100% - 2px), var(--surface) 0) 0 0 / 25% 100%, var(--k); opacity: .35; }
.batt svg { position: absolute; left: 50%; top: 50%; width: 12px; height: 18px; translate: -50% -50%; fill: var(--k); stroke: var(--surface); stroke-width: 1.2; }
.kpi-note { font-size: .78rem; color: var(--muted); }
.k-teal { --k: var(--teal); } .k-coral { --k: var(--coral); } .k-amber { --k: var(--amber); } .k-indigo { --k: var(--indigo); }

.hero-row { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: 20px; margin-top: 22px; }
.hero { position: relative; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.hero-img { position: relative; min-height: 100%; background: var(--soft); }
.hero-img img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 3; }
.callout { position: absolute; left: 14px; bottom: 14px; display: flex; align-items: center; gap: 8px; padding: 8px 14px 8px 12px; background: rgb(255 255 255 / .94); border-radius: 12px; box-shadow: 0 4px 14px rgb(20 33 61 / .18); border-left: 4px solid var(--c); }
.callout-bolt { width: 14px; height: 22px; fill: var(--c); }
.callout-num { font-size: 2.4rem; font-weight: 700; line-height: 1; color: var(--c); }
.callout-unit { font-size: .72rem; line-height: 1.3; color: var(--muted); font-weight: 600; }
.hero-body { display: flex; flex-direction: column; gap: 12px; padding: 22px; }
.hero h2 { font-size: clamp(1.25rem, 2.2vw, 1.6rem); }
.stretch::after { content: ""; position: absolute; inset: 0; }
.hero:hover h2 { color: var(--indigo); }
.sub { color: var(--muted); font-size: .95rem; }
.hero .meta { margin-top: auto; }

.rank { padding: 18px 20px; }
.rank ol { display: grid; gap: 4px; }
.rank li { display: grid; grid-template-columns: auto 1fr; gap: 14px; padding: 12px 0; border-top: 1px solid var(--grid); }
.rank li:first-child { border-top: 0; padding-top: 2px; }
.rank-no { font-size: 1.6rem; font-weight: 700; line-height: 1; color: var(--c); min-width: 2ch; }
.rank h3 { font-size: .98rem; font-weight: 600; margin-bottom: 6px; }

.chart-card { width: calc(100% - 40px); max-width: 1160px; margin-top: 22px; padding: 22px 24px; }
.stack { display: flex; height: 14px; gap: 3px; border-radius: 4px; overflow: hidden; margin-bottom: 18px; }
.stack span { flex-basis: 0; min-width: 4px; background: var(--c); }
.bars { display: grid; gap: 10px; }
.bar { display: grid; grid-template-columns: minmax(150px, 220px) 1fr 76px; align-items: center; gap: 16px; }
.bar-label { display: flex; align-items: center; gap: 10px; line-height: 1.35; }
.bar-ico { display: inline-flex; padding: 6px; border-radius: 9px; color: var(--c); background: var(--cbg); }
.bar-ico .ico { width: 20px; height: 20px; }
.bar-txt { display: flex; flex-direction: column; }
.bar-label b { color: var(--ink); font-size: .95rem; }
.bar-label small { font-size: .78rem; color: var(--muted); }
.bar-label:hover b { color: var(--c); }
/* battery-shaped bar: rounded cell with a terminal nub, filled with charge cells */
.bar-track { position: relative; height: 30px; margin-right: 8px; border: 2px solid #c3cad6; border-radius: 8px; background: repeating-linear-gradient(90deg, var(--grid) 0 1px, transparent 1px 25%), var(--surface); }
.bar-track::after { content: ""; position: absolute; right: -8px; top: 50%; width: 5px; height: 12px; translate: 0 -50%; border-radius: 0 3px 3px 0; background: #c3cad6; }
.bar-fill { position: absolute; left: 3px; top: 3px; bottom: 3px; width: calc((100% - 6px) * var(--n) / var(--max)); min-width: 6px; border-radius: 4px; background: linear-gradient(90deg, transparent calc(100% - 3px), var(--surface) 0) 0 0 / 26px 100%, var(--c); }
.bar-val { font-size: .82rem; color: var(--muted); text-align: right; }
.bar-val b { font-size: 1.15rem; color: var(--ink); }
.axis { display: flex; justify-content: space-between; margin: 6px 100px 0 calc(min(220px, 30%) + 16px); font: 500 .72rem var(--mono); color: #98a2b3; }

.data-row { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 20px; margin-top: 22px; align-items: start; }
.table-card { padding: 20px 22px 10px; }
.thead { display: grid; grid-template-columns: 1fr 120px 76px; gap: 14px; padding: 0 0 8px 104px; border-bottom: 2px solid var(--ink); font-size: .72rem; font-weight: 600; letter-spacing: .05em; color: var(--muted); }
.thead span:nth-child(n+2) { text-align: right; }
.rows { counter-reset: r; }
.row { display: grid; grid-template-columns: 88px minmax(0, 1fr) 120px 76px; gap: 14px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--grid); }
.row:nth-child(even) { background: linear-gradient(90deg, transparent, #fafbfd 10%, #fafbfd 90%, transparent); }
.row:last-child { border-bottom: 0; }
.row-thumb { width: 88px; height: 58px; object-fit: cover; border-radius: 8px; background: var(--soft); border-bottom: 3px solid var(--c); }
.row h3 { font-size: .98rem; font-weight: 600; margin-bottom: 4px; }
.row .by { font-size: .78rem; }
.row-gauge { display: flex; justify-content: flex-end; }
.row-time { display: flex; flex-direction: column; align-items: flex-end; font-size: .75rem; color: var(--muted); line-height: 1.35; }
.row-time b { font-size: .95rem; color: var(--ink); font-weight: 600; }

.side { display: grid; gap: 20px; }
.timeline, .reviews { padding: 18px 20px; }
.timeline ol { position: relative; display: grid; gap: 14px; padding-left: 18px; }
.timeline ol::before { content: ""; position: absolute; left: 3px; top: 6px; bottom: 6px; width: 4px; border-radius: 2px; background: linear-gradient(180deg, #c3cad6 50%, transparent 0) 50% 0 / 1px 8px repeat-y, var(--grid); }
.timeline li { position: relative; display: grid; gap: 2px; }
.timeline li::before { content: ""; position: absolute; left: -20px; top: 4px; width: 14px; height: 14px; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 2px var(--surface); }
.timeline li::after { content: ""; position: absolute; left: -16px; top: 7.5px; width: 6px; height: 8px; background: #fff; -webkit-mask: var(--bolt) center / contain no-repeat; mask: var(--bolt) center / contain no-repeat; }
.timeline time { font-size: .74rem; color: var(--muted); }
.timeline time b { color: var(--c); }
.timeline a { font-size: .9rem; font-weight: 500; line-height: 1.5; }
.reviews ul { display: grid; gap: 12px; }
.reviews li { display: grid; gap: 4px; }
.reviews a { font-size: .9rem; font-weight: 500; line-height: 1.5; }
.reviews .label::before { background: var(--amber); }

.empty { margin-top: 24px; padding: 48px 24px; text-align: center; }
.empty svg { margin: 0 auto 14px; fill: none; stroke: #aab3c2; stroke-width: 3; }
.empty svg .nub { fill: #aab3c2; stroke: none; }
.empty svg .bolt { fill: var(--teal); stroke: none; }
.empty h2 { font-size: 1.3rem; margin-bottom: 6px; }
.empty p { color: var(--muted); }

/* card grid (404) */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 18px; }
.card { overflow: hidden; display: flex; flex-direction: column; border-top: 4px solid var(--c); }
.card-img img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: var(--soft); }
.card-body { display: flex; flex-direction: column; gap: 8px; padding: 14px 16px 16px; flex: 1; }
.card h3 { font-size: 1rem; font-weight: 600; }
.card .meta { margin-top: auto; justify-content: space-between; }

/* ---------- list / author ---------- */
.list-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 420px); gap: 20px 32px; align-items: end; margin-top: 18px; padding-top: 22px; padding-bottom: 4px; }
.list-head .kicker { color: var(--c); }
.list-head h1 { font-size: clamp(1.7rem, 4vw, 2.4rem); margin: 4px 0 6px; }
.list-head h1 small { font-size: .5em; color: var(--muted); font-weight: 500; }
.list-desc { color: var(--muted); max-width: 40em; }
.list-desc a { color: var(--indigo); text-decoration: underline; }
.mini-kpis { display: flex; flex-wrap: wrap; gap: 12px; margin: 16px 0 0; }
.mini-kpis div { padding: 8px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; border-left: 4px solid var(--c); }
.mini-kpis dt { font-size: .74rem; color: var(--muted); }
.mini-kpis dd { margin: 0; font-size: 1.5rem; font-weight: 700; color: var(--ink); line-height: 1.2; }
.mini-kpis small { font-size: .6em; color: var(--muted); }
.cols { margin: 0; padding: 16px 18px 12px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.cols-plot { display: flex; align-items: flex-end; gap: 5px; height: 80px; border-bottom: 1px solid #c3cad6; background: repeating-linear-gradient(0deg, var(--grid) 0 1px, transparent 1px 32px); }
.cols-plot span { position: relative; flex: 1; max-width: 28px; height: calc(min(var(--m), 15) / 15 * 100% - 4px); min-height: 8px; background: linear-gradient(0deg, transparent calc(100% - 2px), rgb(255 255 255 / .6) 0) 0 100% / 100% 8px, var(--c); border-radius: 3px 3px 1px 1px; }
.cols-plot span::before { content: ""; position: absolute; left: 30%; right: 30%; top: -4px; height: 3px; border-radius: 2px 2px 0 0; background: var(--c); }
.cols figcaption { margin-top: 8px; font-size: .74rem; color: var(--muted); }
.list-body { margin-top: 22px; }
.pager { display: flex; justify-content: center; align-items: center; gap: 14px; margin: 24px 0 8px; font-size: .9rem; color: var(--muted); }
.pager a { padding: 8px 16px; border-radius: 10px; background: var(--surface); border: 1px solid var(--line); color: var(--ink); font-weight: 500; }
.pager a:hover { border-color: var(--indigo); color: var(--indigo); }
.pager b { color: var(--ink); }

/* ---------- article ---------- */
.progress { position: sticky; top: 0; z-index: 20; height: 6px; background: var(--grid); }
.progress > span { display: block; height: 100%; background: linear-gradient(90deg, transparent calc(100% - 2px), rgb(255 255 255 / .7) 0) 0 0 / 24px 100%, var(--c); transform: scaleX(0); transform-origin: 0 50%; }
.progress-pct { position: absolute; right: 12px; top: 10px; display: inline-flex; align-items: center; gap: 5px; padding: 2px 10px 2px 8px; border-radius: 999px; background: var(--ink); color: #fff; font-size: .74rem; font-weight: 600; box-shadow: 0 2px 8px rgb(20 33 61 / .2); }
.progress-pct svg { width: 8px; height: 12px; fill: #ffd166; }
.article-page { max-width: 860px; margin-top: 18px; }
.post-head h1 { font-size: clamp(1.7rem, 4.4vw, 2.5rem); margin: 12px 0 10px; letter-spacing: -.01em; }
.post-sub { font-size: 1.12rem; color: var(--muted); }
.facts { margin-top: 22px; padding: 4px; }
.facts dl { margin: 0; display: grid; grid-template-columns: 1.2fr 1fr 1fr 1fr; }
.fact { padding: 12px 16px; border-left: 1px solid var(--grid); min-width: 0; }
.fact:first-child { border-left: 0; }
.fact dt { font-size: .74rem; font-weight: 600; color: var(--muted); letter-spacing: .03em; }
.fact dd { margin: 2px 0 0; display: flex; flex-direction: column; color: var(--ink); font-weight: 600; font-size: .95rem; line-height: 1.45; overflow-wrap: anywhere; }
.fact dd small { font-size: .78rem; font-weight: 400; color: var(--muted); }
.fact dd a { color: var(--indigo); }
.fact-big dd { flex-direction: row; align-items: baseline; gap: 6px; font-weight: 500; color: var(--muted); }
.fact-big dd b { font-size: 2rem; line-height: 1.1; color: var(--c); }
.fact-big .gauge { display: flex; font-size: 0; margin-top: 6px; }
.fact-big .gauge-track { width: 100%; max-width: 140px; height: 8px; }
.fact-big .gauge-fill::after { width: 22px; height: 13px; }
.post-cover { margin: 22px 0 0; }
.post-cover img { width: 100%; border-radius: var(--radius); aspect-ratio: 1200 / 630; object-fit: cover; background: var(--soft); }

.post-body { margin-top: 26px; font-size: 1.07rem; line-height: 1.85; color: var(--text); }
.post-body > * + * { margin-top: 1.05em; }
.post-body h2 { font-size: 1.45rem; margin-top: 1.8em; padding-left: 14px; border-left: 4px solid var(--c); }
.post-body h3 { font-size: 1.18rem; margin-top: 1.5em; }
.post-body a { color: var(--indigo); text-decoration: underline; text-underline-offset: 3px; }
.post-body ul, .post-body ol { padding-left: 1.4em; }
.post-body ul { list-style: none; padding-left: 1.2em; }
.post-body ul li { position: relative; }
.post-body ul li::before { content: ""; position: absolute; left: -1.05em; top: .72em; width: 8px; height: 8px; border-radius: 2px; background: var(--c); }
.post-body ol { list-style: decimal; }
.post-body ol li::marker { color: var(--c); font-weight: 700; }
.post-body li + li { margin-top: .4em; }
.post-body blockquote { margin-left: 0; margin-right: 0; padding: 16px 20px; background: var(--cbg); border-radius: 12px; border-left: 4px solid var(--c); color: var(--ink); font-size: 1.1rem; font-weight: 500; }
.post-body blockquote p + p { margin-top: .6em; }
.post-body img { border-radius: 12px; }
.post-body figure { margin-left: 0; margin-right: 0; }
.post-body figcaption { margin-top: 8px; font-size: .85rem; color: var(--muted); }
.post-body table { width: 100%; border-collapse: separate; border-spacing: 0; overflow: hidden; font-size: .93rem; line-height: 1.5; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; }
.post-body th { text-align: left; }
.post-body thead th, .post-body tr:first-child th { background: var(--soft); color: var(--ink); font-weight: 600; border-bottom: 2px solid var(--c); }
.post-body th, .post-body td { padding: 10px 14px; white-space: nowrap; }
.post-body td { border-top: 1px solid var(--grid); }
.post-body tbody tr:nth-child(even) td { background: #f9fafc; }
.post-body td:not(:first-child), .post-body th:not(:first-child) { text-align: right; font-variant-numeric: tabular-nums; }
.post-body hr { border: 0; height: 1px; background: var(--line); }
.post-foot { margin-top: 30px; padding-top: 16px; border-top: 1px solid var(--line); font-size: .88rem; color: var(--muted); }
.post-foot a { color: var(--indigo); }
.foot-ico { display: inline-flex; vertical-align: -4px; margin-right: 6px; color: var(--c); }
.related { margin-top: 32px; }
.related .rows { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 4px 20px; box-shadow: var(--shadow); }
.related .section-title { margin-bottom: 14px; }

/* ---------- 404 ---------- */
.nf-chart { margin: 0; justify-self: end; }
.nf-chart svg { fill: none; stroke-linecap: round; }
.nf-chart .ax { stroke: #c3cad6; stroke-width: 2; }
.nf-chart .ln { stroke: var(--teal); stroke-width: 3; stroke-linejoin: round; }
.nf-chart .gap { stroke: var(--coral); stroke-width: 3; stroke-dasharray: 4 8; }
.nf-chart circle { fill: var(--coral); }
.nf-chart text { fill: var(--coral); stroke: none; font: 600 13px var(--font); }
.nf-car { fill: var(--ink); stroke: none; }
.nf-batt rect { fill: none; stroke: var(--coral); stroke-width: 2; }
.nf-batt rect:nth-child(2), .nf-batt .low { fill: var(--coral); stroke: none; }

/* ---------- legal ---------- */
.legal-page { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 24px; margin-top: 24px; align-items: start; }
.legal-toc { position: sticky; top: 16px; padding: 18px; font-size: .88rem; }
.legal-toc ol { counter-reset: t; display: grid; gap: 4px; }
.legal-toc li { counter-increment: t; }
.legal-toc a { display: flex; gap: 8px; padding: 4px 6px; border-radius: 6px; color: var(--muted); }
.legal-toc a::before { content: counter(t, decimal-leading-zero); color: var(--teal); font-weight: 600; }
.legal-toc a:hover { background: var(--soft); color: var(--ink); }
.legal-body { padding: 26px 32px; line-height: 1.85; max-width: 820px; }
.legal-body h2 { font-size: 1.2rem; margin: 1.8em 0 .5em; padding-left: 12px; border-left: 4px solid var(--teal); scroll-margin-top: 16px; }
.legal-body h2:first-of-type { margin-top: .8em; }
.legal-body p + p { margin-top: .8em; }
.legal-body ul { margin: .6em 0; padding-left: 1.3em; list-style: disc; }
.legal-body li + li { margin-top: .3em; }
.legal-body li::marker { color: var(--teal); }
.legal-body a { color: var(--indigo); text-decoration: underline; }
.legal-updated { display: inline-block; padding: 4px 12px; border-radius: 8px; background: var(--teal-bg); color: var(--teal); font-size: .85rem; font-weight: 600; }

/* ---------- footer ---------- */
.site-footer { position: relative; margin-top: 56px; background: var(--ink); color: #b9c3d6; font-size: .9rem; }
.footer-spark { display: block; width: 100%; height: 60px; background: var(--bg); }
.footer-spark .road { fill: var(--ink); }
.footer-spark .lane { stroke: #4a5878; stroke-width: 2; stroke-dasharray: 22 18; }
.footer-spark .post rect { fill: #2c3a5c; } .footer-spark .post .scr { fill: #4fd1c0; }
.footer-spark .cable { fill: none; stroke: #2c3a5c; stroke-width: 2.5; stroke-linecap: round; }
.footer-spark .car { fill: #4fd1c0; } .footer-spark .car circle { fill: #0b1428; stroke: #4fd1c0; stroke-width: 1.2; }
.footer-top { display: grid; grid-template-columns: 1.2fr 1fr 1.4fr; gap: 28px 40px; padding-top: 34px; padding-bottom: 28px; }
.site-footer .logo-text { color: #fff; }
.site-footer .logo-text b { color: #4fd1c0; }
.footer-brand p { margin-top: 12px; line-height: 1.7; }
.footer-title { margin-bottom: 10px; font-size: .75rem; font-weight: 600; letter-spacing: .07em; color: #fff; text-transform: uppercase; }
.footer-sections ul { display: grid; gap: 6px; }
.footer-sections a { display: inline-flex; align-items: center; gap: 8px; }
.footer-sections .num { color: #7f8aa3; font-size: .8rem; }
.site-footer a:hover { color: #4fd1c0; }
.footer-latest { display: grid; gap: 10px; }
.footer-latest li { display: grid; gap: 1px; }
.footer-latest time { font-size: .74rem; color: #7f8aa3; }
.footer-latest a { color: #e4e9f2; line-height: 1.5; }
.footer-bottom { border-top: 1px solid rgb(255 255 255 / .1); }
.footer-bottom-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 20px; padding-top: 16px; padding-bottom: 20px; font-size: .82rem; }
.legal-links a { color: #e4e9f2; text-decoration: underline; text-underline-offset: 3px; }
.site-footer :focus-visible { outline-color: #4fd1c0; }

/* ---------- responsive ---------- */
@media (max-width: 1020px) {
  .hero-row, .data-row { grid-template-columns: 1fr; }
  .side { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-latest-wrap { grid-column: 1 / -1; }
}
@media (max-width: 820px) {
  .header-row { flex-direction: column; align-items: stretch; gap: 10px; padding-top: 12px; padding-bottom: 12px; }
  .kpis dl { grid-template-columns: repeat(2, 1fr); }
  .hero { grid-template-columns: 1fr; }
  .hero-img img { aspect-ratio: 16 / 9; }
  .list-head { grid-template-columns: 1fr; }
  .nf-chart { justify-self: start; }
  .facts dl { grid-template-columns: 1fr 1fr; }
  .fact:nth-child(3) { border-left: 0; }
  .fact:nth-child(n+3) { border-top: 1px solid var(--grid); }
  .legal-page { grid-template-columns: 1fr; }
  .legal-toc { position: static; }
}
@media (max-width: 640px) {
  .wrap, .ad-slot { padding-left: 16px; padding-right: 16px; }
  .topbar .tagline { font-size: .74rem; }
  .bar { grid-template-columns: 1fr auto; gap: 4px 12px; }
  .bar-label { grid-column: 1 / -1; }
  .bar-txt { flex-direction: row; align-items: baseline; gap: 8px; }
  .batt { right: 16px; }
  .bar-track { height: 24px; }
  .axis { display: none; }
  .chart-card, .table-card { padding: 16px; }
  .chart-card { width: calc(100% - 32px); }
  .thead { display: none; }
  .row { grid-template-columns: 76px minmax(0, 1fr); gap: 6px 12px; align-items: start; }
  .row-thumb { width: 76px; height: 52px; grid-row: span 2; }
  .row-gauge { grid-column: 2; justify-content: flex-start; align-items: center; gap: 10px; }
  .row-time { grid-column: 2; flex-direction: row; gap: 6px; align-items: baseline; margin-top: -4px; }
  .row-time b { font-size: .8rem; }
  .legal-body { padding: 20px 18px; }
  .post-body table { display: block; overflow-x: auto; }
  .footer-top { grid-template-columns: 1fr; }
  .footer-bottom-row { flex-direction: column; align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
