/*
Theme Name: Euro Litre
Theme URI: https://eurolitre.eu/
Author: Euro Litre
Description: Bespoke WordPress theme for Euro Litre, the pan-European fuel price site. No page builder, no external frameworks. Works with the Euro Litre Core plugin, which owns the data and the generated routes.
Version: 1.4.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: euro-litre
*/

/* ---------------------------------------------------------------------------
   Self-hosted fonts (variable woff2, latin and latin-ext subsets).
   Font source URLs are recorded in PHASE1-MANIFEST.md.
--------------------------------------------------------------------------- */
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('assets/fonts/archivo-latin.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: 'Archivo';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('assets/fonts/archivo-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url('assets/fonts/manrope-latin.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: 'Manrope';
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url('assets/fonts/manrope-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ---------------------------------------------------------------------------
   Design tokens (migration plan 3.1). Light-only site: the graphite panels
   are designed surfaces, not a dark theme.
--------------------------------------------------------------------------- */
:root {
  color-scheme: light only;

  --el-graphite: #23282E;
  --el-graphite-panel: #31363D;
  --el-on-dark: #D8DCE1;
  --el-on-dark-muted: #A7ADB5;
  --el-accent-on-dark: #FF9E57;
  --el-fuel: #E86A17;
  --el-fuel-hover: #C85A10;

  --el-ink: #23282E;
  --el-body-text: #33383E;
  --el-muted: #68707A;
  --el-line: #D8DCE1;
  --el-surface: #FFFFFF;
  --el-surface-alt: #F4F5F6;

  --el-font-body: 'Manrope', 'Segoe UI', Arial, sans-serif;
  --el-font-heading: 'Archivo', 'Manrope', Arial, sans-serif;

  --el-container: 1200px;
  --el-radius: 12px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  color-scheme: light only;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--el-surface);
  color: var(--el-body-text);
  font-family: var(--el-font-body);
  font-size: 16px;
  line-height: 1.55;
  overflow-x: clip;
}

img,
svg,
video {
  max-width: 100%;
  height: auto;
}

h1, h2, h3, h4 {
  font-family: var(--el-font-heading);
  color: var(--el-ink);
  line-height: 1.15;
  margin: 0 0 0.5em;
}

h1 { font-size: clamp(1.7rem, 4.5vw, 2.6rem); font-weight: 800; }
h2 { font-size: clamp(1.3rem, 3vw, 1.8rem); font-weight: 700; }
h3 { font-size: 1.1rem; font-weight: 700; }

p { margin: 0 0 1em; }

a { color: var(--el-fuel); }
a:hover { color: var(--el-fuel-hover); }

:focus-visible {
  outline: 3px solid var(--el-accent-on-dark);
  outline-offset: 2px;
}

.el-container {
  width: 100%;
  max-width: var(--el-container);
  margin-inline: auto;
  padding-inline: 16px;
}

@media (min-width: 768px) {
  .el-container { padding-inline: 24px; }
}

.el-main { padding-block: 24px 48px; }

/* ---------------------------------------------------------------------------
   Header: slim white bar. Non-sticky on the front page, sticky inside.
--------------------------------------------------------------------------- */
.site-header {
  background: var(--el-surface);
  border-bottom: 1px solid var(--el-line);
  position: relative;
  z-index: 50;
}

.site-header--sticky {
  position: sticky;
  top: 0;
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
}

.el-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.el-logo__tile {
  display: inline-flex;
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  border: 1px solid var(--el-line);
  border-radius: 10px;
  background: #FFFFFF;
  align-items: center;
  justify-content: center;
}

.el-logo__wordmark {
  font-family: var(--el-font-heading);
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.el-logo__wordmark .el-logo__euro { color: var(--el-graphite); }
.el-logo__wordmark .el-logo__litre { color: var(--el-accent-on-dark); }

.el-logo--footer .el-logo__wordmark .el-logo__euro { color: #FFFFFF; }
.el-logo--footer .el-logo__wordmark .el-logo__litre { color: var(--el-accent-on-dark); }

/* Desktop nav: real server-rendered links. */
.el-nav { display: none; }

.el-nav__list {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 20px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.el-nav__list a {
  color: var(--el-ink);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 8px 2px;
}

.el-nav__list a:hover { color: var(--el-fuel-hover); }
.el-nav__list a[aria-current="page"] { color: var(--el-fuel); }

@media (min-width: 1024px) {
  .el-nav { display: block; }
}

/* Hamburger: 44x44 graphite tile, three white lines, X when open. */
.el-menu-toggle {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 10px;
  background: var(--el-graphite);
  cursor: pointer;
  padding: 0;
}

.el-menu-toggle__bar {
  display: block;
  width: 20px;
  height: 2px;
  background: #FFFFFF;
  border-radius: 2px;
  transition: transform 0.18s ease, opacity 0.18s ease;
}

.el-menu-toggle.is-open .el-menu-toggle__bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.el-menu-toggle.is-open .el-menu-toggle__bar:nth-child(2) { opacity: 0; }
.el-menu-toggle.is-open .el-menu-toggle__bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (min-width: 1024px) {
  .el-menu-toggle { display: none; }
}

/* Mobile menu panel: every destination is a real link. */
.el-mobile-menu {
  display: none;
  border-top: 1px solid var(--el-line);
  background: var(--el-surface);
}

.el-mobile-menu.is-open { display: block; }

.el-mobile-menu__list {
  list-style: none;
  margin: 0;
  padding: 8px 0 16px;
}

.el-mobile-menu__list a {
  display: block;
  padding: 10px 16px;
  color: var(--el-ink);
  text-decoration: none;
  font-weight: 600;
}

.el-mobile-menu__list a:hover { color: var(--el-fuel-hover); }

@media (min-width: 1024px) {
  .el-mobile-menu { display: none !important; }
}

/* ---------------------------------------------------------------------------
   Breadcrumbs
--------------------------------------------------------------------------- */
.el-breadcrumbs {
  font-size: 0.875rem;
  color: var(--el-muted);
  margin-bottom: 16px;
}

.el-breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.el-breadcrumbs li { display: inline-flex; align-items: center; gap: 8px; }
.el-breadcrumbs li + li::before { content: "/"; color: var(--el-muted); }
.el-breadcrumbs a { color: var(--el-muted); text-decoration: none; }
.el-breadcrumbs a:hover { color: var(--el-fuel-hover); text-decoration: underline; }
.el-breadcrumbs [aria-current="page"] { color: var(--el-ink); font-weight: 600; }

/* ---------------------------------------------------------------------------
   Buttons and controls (buttons are for genuine controls only)
--------------------------------------------------------------------------- */
.el-btn {
  display: inline-block;
  background: var(--el-fuel);
  color: #FFFFFF;
  font-weight: 700;
  text-decoration: none;
  border: 0;
  border-radius: 8px;
  padding: 10px 18px;
  cursor: pointer;
}

.el-btn:hover { background: var(--el-fuel-hover); color: #FFFFFF; }

/* ---------------------------------------------------------------------------
   Front page: ranking band and live cards
--------------------------------------------------------------------------- */
.el-hero { padding-block: 32px 8px; }
.el-hero__lead { font-size: 1.1rem; color: var(--el-muted); max-width: 46rem; }
.el-hero__cta { margin: 20px 0 0; }
.el-hero__cta-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; }

@media (max-width: 639px) {
  .el-hero__cta-btn { display: flex; width: 100%; }
}

/*
 * Homepage ranking section (rebuild wave 1, P3): the approved
 * design's graphite header block (orange radial glow) over one
 * white table card. The table uses fixed layout with percentage
 * columns, so long country names wrap inside their cell and can
 * never push the value columns out of the card. The Change
 * column shows below 640px never, the LPG column below 768px
 * never, matching the design's responsive column drops.
 */
.el-home-ranking { margin-block: 24px; }

.el-home-ranking__head {
  position: relative;
  overflow: hidden;
  background: var(--el-graphite);
  color: var(--el-on-dark);
  border-radius: 24px 24px 0 0;
  padding: 22px;
}

.el-home-ranking__head::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(560px circle at 88% -10%, rgba(232, 106, 23, 0.38), transparent 62%);
}

.el-home-ranking__head h2 {
  position: relative;
  z-index: 1;
  color: #FFFFFF;
  margin: 0;
  font-size: 1.5rem;
  line-height: 1.25;
}

.el-home-ranking__headrow {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: flex-start;
  margin-top: 12px;
}

.el-home-ranking__headrow p {
  flex: 1 1 320px;
  margin: 0;
  color: var(--el-on-dark-muted);
  font-size: 0.95rem;
  line-height: 1.55;
}

/* Sort toggle: pill group on the inner panel colour. */
.el-sort-toggle {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  width: 100%;
  min-height: 52px;
  background: var(--el-graphite-panel);
  border-radius: 999px;
  padding: 4px;
}

@media (min-width: 640px) {
  .el-sort-toggle { width: auto; min-width: 300px; margin-left: auto; }
}

.el-sort-toggle a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 44px;
  padding: 6px 14px;
  border-radius: 999px;
  color: var(--el-on-dark-muted);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.el-sort-toggle a:hover { color: #FFFFFF; }

.el-sort-toggle a.is-active {
  background: var(--el-fuel);
  color: #FFFFFF;
}

.el-home-ranking__card {
  background: var(--el-surface);
  border: 1px solid var(--el-line);
  border-top: 0;
  border-radius: 0 0 24px 24px;
  overflow: hidden;
}

table.el-ranking-table {
  width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.el-ranking-table th {
  background: var(--el-surface-alt);
  color: var(--el-muted);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-align: left;
  padding: 10px 12px;
}

.el-ranking-table td {
  padding: 9px 12px;
  border-top: 1px solid var(--el-line);
  color: var(--el-body-text);
  vertical-align: middle;
}

.el-ranking-table .el-num { text-align: right; }
.el-ranking-table .el-rank-num { color: var(--el-muted); font-weight: 600; }
.el-ranking-table .el-price-cell { font-weight: 700; color: var(--el-ink); }

.el-country-cell {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--el-fuel);
  font-weight: 600;
  text-decoration: none;
}

.el-country-cell:hover { color: var(--el-fuel-hover); text-decoration: underline; }
.el-country-cell .el-flag { flex: none; }
.el-country-cell span { min-width: 0; }

/* Phone fit: tighter cells so "EUR 1.340" stays on one line. */
@media (max-width: 639px) {
  .el-ranking-table { font-size: 0.9rem; }
  .el-ranking-table th,
  .el-ranking-table td { padding-left: 8px; padding-right: 8px; }
  .el-ranking-table .el-price-cell { white-space: nowrap; }
}

.el-change--up { color: #C0392B; font-weight: 700; }
.el-change--down { color: #1E8E5A; font-weight: 700; }
.el-not-reported { color: var(--el-muted); font-size: 0.85rem; }

/* Column widths per breakpoint (design colgroup proportions).
   Hidden columns get zero width so the flexible Country column
   takes the whole remainder at every breakpoint. */
.el-ranking-table .el-col--rank { width: 9%; }
.el-ranking-table .el-col--petrol,
.el-ranking-table .el-col--diesel { width: 24%; }
.el-ranking-table .el-col--change,
.el-ranking-table .el-col--lpg { width: 0; }
.el-ranking-table .el-cell--change,
.el-ranking-table .el-cell--lpg { display: none; }

@media (min-width: 640px) {
  .el-ranking-table .el-col--rank { width: 8%; }
  .el-ranking-table .el-col--petrol,
  .el-ranking-table .el-col--diesel { width: 20%; }
  .el-ranking-table .el-col--change { width: 14%; }
  .el-ranking-table .el-cell--change { display: table-cell; }
}

@media (min-width: 768px) {
  .el-ranking-table .el-col--rank { width: 7%; }
  .el-ranking-table .el-col--petrol,
  .el-ranking-table .el-col--diesel { width: 17%; }
  .el-ranking-table .el-col--change { width: 13%; }
  .el-ranking-table .el-col--lpg { width: 17%; }
  .el-ranking-table .el-cell--lpg { display: table-cell; }
}

.el-home-ranking .el-source-line { margin-top: 10px; }

.el-live-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-block: 16px 24px;
}

@media (min-width: 640px) {
  .el-live-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .el-live-grid { grid-template-columns: repeat(3, 1fr); }
}

.el-live-card {
  border: 1px solid var(--el-line);
  border-radius: var(--el-radius);
  padding: 20px;
  background: var(--el-surface);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.el-live-card h3 { margin: 0; }
.el-live-card__status { color: var(--el-muted); margin: 0; }
.el-live-card__cta { margin-top: auto; font-weight: 700; text-decoration: none; }
.el-live-card__cta:hover { text-decoration: underline; }

/* ---------------------------------------------------------------------------
   Tables: fluid. A table fills its card inner width at phone widths and the
   page never scrolls horizontally (plan 3.3).
--------------------------------------------------------------------------- */
.el-table-wrap {
  width: 100%;
  max-width: 100%;
}

table.el-table {
  width: 100%;
  max-width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.el-table thead th {
  background: var(--el-graphite);
  color: var(--el-on-dark);
  font-family: var(--el-font-heading);
  font-weight: 700;
  text-align: left;
  padding: 10px 12px;
}

.el-table tbody td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--el-line);
  vertical-align: top;
}

.el-table tbody tr:nth-child(even) td { background: var(--el-surface-alt); }

@media (max-width: 480px) {
  table.el-table { font-size: 0.875rem; }
  .el-table thead th, .el-table tbody td { padding: 8px; }
}

/* ---------------------------------------------------------------------------
   Content, panels and plugin pending states
--------------------------------------------------------------------------- */
.el-prose { max-width: 72ch; }
.el-prose a { font-weight: 600; }

.el-panel {
  background: var(--el-graphite);
  color: var(--el-on-dark);
  border-radius: var(--el-radius);
  padding: 24px;
}

.el-panel h2, .el-panel h3 { color: #FFFFFF; }
.el-panel a { color: var(--el-accent-on-dark); }

.el-pending {
  border: 1px dashed var(--el-line);
  border-radius: var(--el-radius);
  padding: 24px;
  background: var(--el-surface-alt);
}

/* ---------------------------------------------------------------------------
   Footer: business footer on graphite.
--------------------------------------------------------------------------- */
.site-footer {
  background: var(--el-graphite);
  color: var(--el-on-dark);
  margin-top: 48px;
  padding-block: 40px 24px;
}

.site-footer a { color: var(--el-on-dark); text-decoration: none; }
.site-footer a:hover { color: var(--el-accent-on-dark); }

.site-footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}

@media (min-width: 768px) {
  .site-footer__grid { grid-template-columns: 1.4fr 1fr 1fr 1fr 1fr; }
}

.site-footer__brand p {
  color: var(--el-on-dark-muted);
  font-size: 0.925rem;
  margin-top: 12px;
  max-width: 34ch;
}

.site-footer h3 {
  color: #FFFFFF;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 12px;
}

.site-footer__links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
  font-size: 0.95rem;
}

.site-footer__legal {
  border-top: 1px solid var(--el-graphite-panel);
  margin-top: 32px;
  padding-top: 16px;
  color: var(--el-on-dark-muted);
  font-size: 0.85rem;
  display: grid;
  gap: 6px;
}

.site-footer__legal p { margin: 0; }

/* WordPress core content helpers */
.alignleft { float: left; margin: 0 16px 8px 0; }
.alignright { float: right; margin: 0 0 8px 16px; }
.aligncenter { display: block; margin-inline: auto; }
.wp-caption { max-width: 100%; }
.screen-reader-text {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ---------------------------------------------------------------------------
   Phase 3 generated-route modules (Euro Litre Core output).
   Same tokens as the Phase 1 design system; nothing here restyles
   the approved header, nav, footer or hub shells.
--------------------------------------------------------------------------- */

/* Hero with flag badge and LIVE pill */
.el-hero__flag { display: inline-flex; margin-bottom: 10px; }
.el-flag { display: inline-block; border-radius: 50%; box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.35), 0 1px 4px rgba(35, 40, 46, 0.25); vertical-align: middle; }
.el-live-badge { display: inline-flex; align-items: center; gap: 7px; background: var(--el-graphite); color: #FFFFFF; border-radius: 999px; padding: 4px 12px 4px 9px; font-family: var(--el-font-heading); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.12em; vertical-align: middle; }
.el-live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--el-fuel); animation: el-pulse 1.8s ease-in-out infinite; }
@keyframes el-pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }
@media (prefers-reduced-motion: reduce) { .el-live-dot { animation: none; } }
.el-live-note { color: var(--el-muted); font-size: 0.9rem; }
.el-live-card__values { margin: 6px 0 0; font-weight: 600; }

/* Stat tiles */
.el-stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; margin: 18px 0; }
.el-stat { background: var(--el-surface-alt); border: 1px solid var(--el-line); border-radius: 12px; padding: 14px 16px; }
.el-stat__label { display: block; color: var(--el-muted); font-size: 0.8rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; }
.el-stat__value { display: block; font-family: var(--el-font-heading); font-size: 1.45rem; font-weight: 700; color: var(--el-ink); margin: 4px 0 2px; }
.el-stat__sub { display: block; color: var(--el-muted); font-size: 0.85rem; }

/* Charts */
/*
 * Charts (rebuild wave 1): the approved design renders every
 * chart on its own white card, so the card carries the light
 * scheme wherever it is placed, including inside a graphite
 * panel. The legend is a series-name list in dark text.
 */
.el-chart-card { background: var(--el-surface); border: 1px solid var(--el-line); border-radius: var(--el-radius); padding: 1rem 1.1rem 0.9rem; margin: 0.75rem 0; }
.el-chart-card__tools { display: flex; justify-content: flex-end; margin-bottom: 0.5rem; }
.el-chart-toggle { display: inline-flex; gap: 0.4rem; flex-wrap: wrap; }
.el-chart-toggle a { display: inline-flex; align-items: center; min-height: 44px; padding: 0.45rem 0.8rem; border: 1px solid var(--el-line); border-radius: 999px; background: var(--el-surface); color: var(--el-ink); font-weight: 700; font-size: 0.9rem; text-decoration: none; }
.el-chart-toggle a:hover { border-color: var(--el-graphite); }
.el-chart-toggle a.is-active { background: var(--el-graphite); border-color: var(--el-graphite); color: #FFFFFF; }
.el-chart-section { background: var(--el-surface); border: 1px solid var(--el-line); border-radius: var(--el-radius); padding: 1.1rem 1.1rem 0.9rem; margin: 1rem 0; }
.el-chart-section > h2 { margin-top: 0; }
.el-chart-sub { color: var(--el-body-text); }
.el-source-line { font-size: 0.85rem; color: var(--el-muted); margin: 0.5rem 0 0; }
.el-chart { width: 100%; height: auto; display: block; }
.el-chart-legend { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 8px; font-size: 0.88rem; color: var(--el-ink); }
.el-chart-legend__item { display: inline-flex; align-items: center; gap: 7px; }
.el-chart-swatch { width: 18px; height: 4px; border-radius: 2px; display: inline-block; }

/* Calculators */
.el-calc { background: var(--el-surface-alt); border: 1px solid var(--el-line); border-radius: 12px; padding: 16px 18px; margin: 14px 0; }
.el-calc h3 { margin: 0 0 10px; font-family: var(--el-font-heading); font-size: 1.05rem; }
.el-calc__form { display: flex; flex-wrap: wrap; gap: 12px; align-items: end; }
.el-calc__form label { display: grid; gap: 5px; font-size: 0.88rem; font-weight: 600; color: var(--el-body-text); }
.el-calc__form input, .el-calc__form select { font: inherit; padding: 9px 11px; border: 2px solid var(--el-graphite); border-radius: 8px; background: var(--el-surface); min-height: 46px; }
.el-calc__result { flex-basis: 100%; margin: 6px 0 0; font-size: 1rem; }

/* FAQ and sources */
.el-faq { margin: 18px 0; }
.el-faq__item { border-top: 1px solid var(--el-line); padding: 12px 0; }
.el-faq__item h3 { margin: 0 0 6px; font-size: 1rem; font-family: var(--el-font-heading); }
.el-faq__item p { margin: 0; color: var(--el-body-text); }
.el-sources { color: var(--el-muted); font-size: 0.9rem; margin: 18px 0; }
.el-sources ul { margin: 6px 0 0; padding-left: 18px; }

/* Link grids, explore nav, fuel links */
.el-link-grid { list-style: none; margin: 10px 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 8px 16px; }
.el-explore { margin: 20px 0; }
.el-explore ul, .el-fuel-links ul { list-style: none; margin: 8px 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.el-explore li a, .el-fuel-links li a { display: inline-block; padding: 8px 14px; border: 1px solid var(--el-line); border-radius: 999px; background: var(--el-surface); color: var(--el-ink); text-decoration: none; font-weight: 600; font-size: 0.9rem; }
.el-explore li a:hover, .el-fuel-links li a:hover { border-color: var(--el-fuel); color: var(--el-fuel-hover); }
.el-muted { color: var(--el-muted); }

/* Ranking, spotlight, cards */
.el-ranking { list-style: none; margin: 0; padding: 0; }
.el-ranking li { display: flex; align-items: baseline; gap: 10px; padding: 7px 0; border-top: 1px solid var(--el-line); }
.el-ranking-caption { color: var(--el-muted); font-size: 0.9rem; }
.el-rank { font-family: var(--el-font-heading); font-weight: 700; color: var(--el-fuel); min-width: 1.6em; }
.el-price { margin-left: auto; font-weight: 700; }
.el-ranking .el-price { min-width: 5.6em; text-align: right; }
.el-ranking .el-tank { min-width: 5.6em; text-align: right; }
.el-ranking-head { display: flex; align-items: baseline; gap: 10px; padding: 2px 0 4px; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; color: var(--el-on-dark-muted); }
.el-ranking-head__rank { min-width: 1.6em; }
.el-ranking-head__name { margin-right: auto; }
.el-ranking-head__price { min-width: 5.6em; text-align: right; }
.el-ranking-head__tank { min-width: 5.6em; text-align: right; }
.el-spotlight { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.el-spotlight li { display: flex; align-items: baseline; gap: 10px; }
.el-card { background: var(--el-surface); border: 1px solid var(--el-line); border-radius: 12px; padding: 18px 20px; margin: 12px 0; }
.el-source-status { margin-bottom: 0; }
.el-live-hub { display: grid; gap: 4px; }

/* Near-me finder */
.el-finder { display: flex; flex-wrap: wrap; gap: 12px; align-items: end; background: var(--el-surface-alt); border: 1px solid var(--el-line); border-radius: 12px; padding: 16px 18px; margin: 16px 0; }
.el-finder label { display: grid; gap: 5px; font-size: 0.88rem; font-weight: 600; }
.el-finder input, .el-finder select { font: inherit; padding: 9px 11px; border: 2px solid var(--el-graphite); border-radius: 8px; background: var(--el-surface); min-height: 46px; }
.el-finder button { font: inherit; font-weight: 700; border-radius: 8px; border: 2px solid var(--el-fuel); background: var(--el-fuel); color: #FFFFFF; padding: 10px 18px; min-height: 46px; cursor: pointer; }
.el-finder button:hover { background: var(--el-fuel-hover); border-color: var(--el-fuel-hover); }
.el-finder .el-geo { background: var(--el-surface); color: var(--el-ink); border-color: var(--el-graphite); }

/* Methodology steps */
.el-method-steps { list-style: none; margin: 16px 0; padding: 0; display: grid; gap: 12px; }
.el-method-steps li { display: grid; grid-template-columns: 44px 1fr; column-gap: 14px; background: var(--el-surface-alt); border: 1px solid var(--el-line); border-radius: 12px; padding: 14px 16px; }
.el-method-steps h3 { margin: 0 0 4px; font-family: var(--el-font-heading); font-size: 1.02rem; }
.el-method-steps p { margin: 0; color: var(--el-body-text); }
.el-step-num { grid-row: span 2; width: 44px; height: 44px; border-radius: 50%; background: var(--el-graphite); color: var(--el-accent-on-dark); display: flex; align-items: center; justify-content: center; font-family: var(--el-font-heading); font-weight: 700; font-size: 1.1rem; }

address { font-style: normal; line-height: 1.55; }

/*
 * Panel and card token collision fixes (rebuild wave 1, P2).
 * A graphite .el-panel forces white headings and pale body text
 * for its own content. A light component nested inside a panel
 * (calculator, data table, stat tile, chart card) must keep its
 * own readable scheme: the design gives every such card its own
 * surface, so the panel's on-dark tokens stop at the card edge.
 * These rules come last so they win the cascade at equal
 * specificity, and they are the single place this contract lives.
 */
.el-panel .el-calc { color: var(--el-body-text); }
.el-panel .el-calc h3 { color: var(--el-ink); }
.el-panel .el-calc__result { color: var(--el-body-text); }
.el-panel .el-calc__result strong { color: var(--el-ink); }
.el-panel .el-calc a { color: var(--el-fuel); }
.el-panel .el-calc a:hover { color: var(--el-fuel-hover); }
.el-panel .el-table { color: var(--el-body-text); }
.el-panel .el-table thead th { background: var(--el-graphite-panel); color: var(--el-on-dark); }
.el-panel .el-table td { background: var(--el-surface); color: var(--el-body-text); }
.el-panel .el-table tbody tr:nth-child(even) td { background: var(--el-surface-alt); }
.el-panel .el-table caption { color: var(--el-on-dark-muted); text-align: left; }
.el-panel .el-table a { color: var(--el-fuel); }
.el-panel .el-table a:hover { color: var(--el-fuel-hover); }
.el-panel .el-stat { color: var(--el-body-text); }
.el-panel .el-stat__value { color: var(--el-ink); }
.el-panel .el-stat__label { color: var(--el-body-text); }
.el-panel .el-stat__sub { color: var(--el-muted); }
.el-panel .el-chart-card { color: var(--el-body-text); }
.el-panel .el-chart-card h3 { color: var(--el-ink); }
.el-panel .el-muted { color: var(--el-on-dark-muted); }
.el-panel .el-source-line { color: var(--el-on-dark-muted); }

/* ---------------------------------------------------------------------------
   Rebuild wave 2 (P5 header chrome + P4 homepage).
   The header gains the currency converter select, the orange
   near-me call to action (in-bar from 640px, full-width row
   below the bar under 640px) and the data-updated strip. The
   homepage sections follow the approved HomeView: graphite
   hero and bands carry their own on-dark scheme (they are not
   .el-panel, so the wave 1 panel cascade never reaches them),
   and the white sections are plain cards on the page surface.
--------------------------------------------------------------------------- */
:root { --el-navy: #07304F; }

/* Header actions: converter select + CTA + hamburger. */
.el-header-actions { display: flex; align-items: center; gap: 10px; }
#header-currency {
  font: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--el-ink);
  background: var(--el-surface);
  border: 1px solid var(--el-line);
  border-radius: 8px;
  padding: 8px;
  min-height: 44px;
  cursor: pointer;
}
.el-header-cta {
  display: none;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 14px;
  background: var(--el-fuel);
  color: #FFFFFF;
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  border-radius: 8px;
  white-space: nowrap;
}
.el-header-cta:hover { background: var(--el-fuel-hover); color: #FFFFFF; }
@media (min-width: 640px) {
  .el-header-cta { display: inline-flex; }
}
.el-header-cta-row { padding-bottom: 10px; }
.el-header-cta-row .el-header-cta { display: flex; width: 100%; }
@media (min-width: 640px) {
  .el-header-cta-row { display: none; }
}

/* Nav active state: accent text on a surface-alt pill (design). */
.el-nav__list a { padding: 8px 10px; border-radius: 999px; }
@media (min-width: 1024px) {
  /* Compact desktop metrics so the seven items, the converter
     select and the CTA share one line at desktop widths (the
     design's single-row bar); between 1024 and 1247px the list
     may still wrap rather than crowd the bar. */
  .el-nav__list { gap: 2px; }
  .el-nav__list a { padding: 8px 7px; font-size: 0.9rem; white-space: nowrap; }
  .el-header-cta { font-size: 0.95rem; padding: 10px 12px; }
}
@media (min-width: 1248px) {
  .el-nav__list { flex-wrap: nowrap; }
}
.el-nav__list a[aria-current="page"] { color: var(--el-fuel); background: var(--el-surface-alt); }
.el-mobile-menu__list a[aria-current="page"] { color: var(--el-fuel); background: var(--el-surface-alt); }

/* Data-updated strip: inside the header, under the bar. */
.el-data-strip { border-top: 1px solid var(--el-line); background: var(--el-surface-alt); }
.el-data-strip p { margin: 0; padding: 6px 0; font-size: 0.75rem; color: var(--el-muted); }
.el-data-strip a { color: var(--el-fuel); font-weight: 600; text-decoration: underline; }
.el-data-strip a:hover { color: var(--el-fuel-hover); }

/* Homepage rhythm: 24px between sections, as in the design. */
.el-home > section { margin-top: 24px; }
.el-home > section:first-child { margin-top: 0; }
.el-home .el-home-ranking { margin-block: 24px 0; }
.el-home .el-source-line { font-size: 0.78rem; }
.el-source-line--dark { color: var(--el-on-dark-muted); }

/* Eyebrows (hero, live section, graphite bands). */
.el-eyebrow {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--el-fuel);
}
.el-eyebrow__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--el-fuel); flex: none; }
.el-band .el-eyebrow, .el-hero2 .el-eyebrow { color: var(--el-accent-on-dark); letter-spacing: 0.18em; }
.el-band .el-eyebrow__dot { width: 10px; height: 10px; background: var(--el-accent-on-dark); }
.el-eyebrow__ping { position: relative; display: inline-flex; width: 10px; height: 10px; flex: none; }
.el-eyebrow__pingdot { position: relative; width: 10px; height: 10px; border-radius: 50%; background: var(--el-accent-on-dark); }
.el-eyebrow__pingwave {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--el-accent-on-dark);
  opacity: 0.6;
  animation: el-ping 1.6s cubic-bezier(0, 0, 0.2, 1) infinite;
}
@keyframes el-ping { 0% { transform: scale(1); opacity: 0.6; } 75%, 100% { transform: scale(2.2); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .el-eyebrow__pingwave { animation: none; } }

/* Hero: graphite panel, EU price blocks, sparkline, search. */
.el-hero2 {
  background: var(--el-graphite);
  color: var(--el-on-dark);
  border-radius: var(--el-radius);
  padding: 20px;
}
@media (min-width: 640px) { .el-hero2 { padding: 28px; } }
.el-hero2__title {
  color: #FFFFFF;
  font-size: 1.5rem;
  font-weight: 800;
  line-height: 1.2;
  margin: 8px 0 0;
  max-width: 880px;
}
@media (min-width: 640px) { .el-hero2__title { font-size: 1.875rem; } }
.el-hero2__prices {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  max-width: 576px;
  margin-top: 12px;
}
.el-hero2__flabel { margin: 0; font-size: 0.875rem; color: var(--el-on-dark); }
.el-hero2__fvalue {
  margin: 2px 0 0;
  font-family: var(--el-font-heading);
  font-size: 1.85rem;
  font-weight: 800;
  line-height: 1.05;
  color: #FFFFFF;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
@media (min-width: 640px) { .el-hero2__fvalue { font-size: 3rem; } }
.el-hero2__fchip { margin: 4px 0 0; font-size: 0.875rem; }
.el-chip { font-weight: 600; font-variant-numeric: tabular-nums; }
.el-chip--up { color: #C0392B; }
.el-chip--down { color: #1E8E5A; }
.el-chip--flat { color: var(--el-muted); }
.el-chip--dark.el-chip--up { color: #FFA08A; }
.el-chip--dark.el-chip--down { color: #7DDBA3; }
.el-chip--dark.el-chip--flat { color: var(--el-on-dark-muted); }
.el-chip-none { color: var(--el-muted); }
.el-chip-none--dark { color: var(--el-on-dark-muted); }
.el-hero2__spark { margin-top: 16px; max-width: 576px; }
.el-spark { display: block; width: 100%; }
.el-hero2__sparkcap { margin: 4px 0 0; font-size: 0.75rem; color: var(--el-on-dark-muted); }
.el-hero2__plain { margin: 16px 0 0; font-size: 0.875rem; color: var(--el-on-dark); max-width: 65ch; }
.el-hero2 .el-source-line { margin-top: 12px; }
.el-hero2__search { margin-top: 20px; max-width: 576px; }
.el-hero2__search input {
  font: inherit;
  width: 100%;
  min-height: 48px;
  padding: 12px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: var(--el-surface);
  color: var(--el-ink);
}
.el-hero2__fxnote { margin: 8px 0 0; font-size: 0.75rem; color: var(--el-on-dark-muted); max-width: 576px; line-height: 1.55; }

/* Search result lists (hero: light card; near-me band: dark). */
.el-search-results {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
  max-width: 576px;
  background: var(--el-surface);
  border-radius: 8px;
  overflow: hidden;
}
.el-search-results li + li { border-top: 1px solid var(--el-line); }
.el-search-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  color: var(--el-ink);
  font-weight: 600;
  text-decoration: none;
}
a.el-search-row:hover { background: var(--el-surface-alt); color: var(--el-ink); }
.el-search-empty { padding: 10px 12px; font-size: 0.875rem; color: var(--el-muted); }
.el-search-results--dark {
  background: var(--el-graphite-panel);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
}
.el-search-results--dark li + li { border-top: 1px solid rgba(255, 255, 255, 0.1); }
.el-search-results--dark .el-search-row { color: #FFFFFF; }
.el-search-results--dark a.el-search-row:hover { background: rgba(255, 255, 255, 0.05); color: #FFFFFF; }
.el-search-results--dark .el-search-empty { color: var(--el-on-dark-muted); }

/* EU trend card: the wave 1 chart figure sits flat inside it. */
.el-trend {
  background: var(--el-surface);
  border: 1px solid var(--el-line);
  border-radius: var(--el-radius);
  padding: 16px;
}
@media (min-width: 640px) { .el-trend { padding: 20px; } }
.el-trend__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.el-trend h2 { font-size: 1.25rem; margin: 0; }
.el-trend__sub { margin: 2px 0 0; font-size: 0.875rem; color: var(--el-muted); }
.el-trend .el-chart-card { border: 0; border-radius: 0; padding: 0; margin: 12px 0 0; }
.el-trend .el-source-line { margin-top: 8px; }

/* Price bars. */
.el-bars {
  background: var(--el-surface);
  border: 1px solid var(--el-line);
  border-radius: var(--el-radius);
  padding: 16px;
}
@media (min-width: 640px) { .el-bars { padding: 20px; } }
.el-bars h2 { font-size: 1.25rem; margin: 0; }
.el-bars__sub { margin: 2px 0 0; font-size: 0.875rem; color: var(--el-muted); }
.el-bars__rows { margin-top: 16px; display: grid; gap: 6px; }
.el-bar-row {
  display: grid;
  grid-template-columns: 92px 1fr 72px;
  align-items: center;
  gap: 8px;
  min-height: 32px;
  color: var(--el-ink);
  text-decoration: none;
}
@media (min-width: 640px) { .el-bar-row { grid-template-columns: 130px 1fr 84px; } }
.el-bar-row__name {
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.el-bar-track {
  position: relative;
  display: block;
  height: 16px;
  border-radius: 4px;
  background: var(--el-surface-alt);
}
.el-bar-fill { display: block; height: 16px; border-radius: 4px; opacity: 0.85; }
.el-bar-fill--below { background: #1E8E5A; }
.el-bar-fill--above { background: #C0392B; }
.el-bar-marker {
  position: absolute;
  top: -3px;
  bottom: -3px;
  width: 2px;
  background: var(--el-navy);
}
.el-bar-row__price { font-size: 13px; font-weight: 700; text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.el-bars .el-source-line { margin-top: 12px; }

/* Spotlight cards. */
.el-spots { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (min-width: 1024px) { .el-spots { grid-template-columns: repeat(4, 1fr); } }
.el-spot {
  display: block;
  background: var(--el-surface);
  border: 1px solid var(--el-line);
  border-radius: var(--el-radius);
  padding: 16px;
  color: var(--el-ink);
  text-decoration: none;
}
.el-spot__label {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--el-muted);
}
.el-spot__country {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
  font-family: var(--el-font-heading);
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--el-ink);
}
.el-spot__country .el-flag { flex: none; }
.el-spot__price {
  display: block;
  margin-top: 2px;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--el-navy);
  font-variant-numeric: tabular-nums;
}
.el-spot__unit { font-size: 0.875rem; font-weight: 600; color: var(--el-muted); margin-left: 2px; }

/* Biggest weekly movers. */
.el-movers h2 { font-size: 1.25rem; margin: 0 0 12px; }
.el-movers__card {
  background: var(--el-surface);
  border: 1px solid var(--el-line);
  border-radius: var(--el-radius);
  padding: 16px;
}
@media (min-width: 640px) { .el-movers__card { padding: 20px; } }
.el-movers__rows { display: grid; gap: 8px; }
.el-mover-row {
  display: grid;
  grid-template-columns: 110px 1fr 76px;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  color: var(--el-ink);
  text-decoration: none;
}
@media (min-width: 640px) { .el-mover-row { grid-template-columns: 150px 1fr 84px; } }
.el-mover-row__name { font-size: 13px; line-height: 1.3; min-width: 0; }
.el-mover-row__cname {
  display: block;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.el-mover-row__fuel { display: block; color: var(--el-muted); }
.el-mover-track { position: relative; display: block; height: 16px; }
.el-mover-centre {
  position: absolute;
  left: 50%;
  top: -2px;
  bottom: -2px;
  width: 1px;
  background: var(--el-line);
}
.el-mover-bar { position: absolute; top: 3px; height: 10px; border-radius: 4px; }
.el-mover-bar--up { background: #C0392B; }
.el-mover-bar--down { background: #1E8E5A; }
.el-mover-row__val { font-size: 13px; font-weight: 700; text-align: right; font-variant-numeric: tabular-nums; }
.el-mover-row__val--up { color: #C0392B; }
.el-mover-row__val--down { color: #1E8E5A; }
.el-movers .el-source-line { margin-top: 12px; }

/* Petrol vs EU tiles. */
.el-vseu h2 { font-size: 1.25rem; margin: 0; }
.el-vseu__intro { margin: 2px 0 0; font-size: 0.875rem; color: var(--el-muted); }
.el-vseu__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 12px;
}
@media (min-width: 640px) { .el-vseu__grid { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 1024px) { .el-vseu__grid { grid-template-columns: repeat(6, 1fr); } }
.el-vseu-tile {
  display: block;
  border: 1px solid var(--el-line);
  border-radius: var(--el-radius);
  padding: 10px;
  min-height: 64px;
  color: var(--el-ink);
  text-decoration: none;
  min-width: 0;
}
.el-vseu-tile__top { display: flex; align-items: center; gap: 6px; }
.el-vseu-tile__top .el-flag { flex: none; }
.el-vseu-tile__name {
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.el-vseu-tile__price { display: block; font-size: 15px; font-weight: 800; font-variant-numeric: tabular-nums; }
.el-vseu-tile__diff { display: block; font-size: 12px; color: var(--el-muted); font-variant-numeric: tabular-nums; }
.el-vseu-tile__spark { display: block; margin-top: 4px; }

/* Live station cards (HomeView form). */
.el-live-sec__title { font-size: 1.25rem; margin: 4px 0 0; }
.el-live-sec__sub { margin: 2px 0 0; font-size: 0.875rem; color: var(--el-muted); }
.el-live2-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-top: 16px;
  align-items: stretch;
}
@media (min-width: 640px) { .el-live2-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .el-live2-grid { grid-template-columns: repeat(5, 1fr); } }
.el-live2-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--el-surface);
  border: 1px solid var(--el-line);
  border-radius: var(--el-radius);
  padding: 16px;
}
@media (min-width: 640px) { .el-live2-card { padding: 20px; } }
.el-live2-card__head {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  flex-wrap: wrap;
  min-height: 40px;
}
.el-live2-card__head .el-flag { flex: none; }
.el-live2-card__name {
  flex: 1 1 auto;
  min-width: 0;
  margin: 0;
  padding-top: 4px;
  font-family: var(--el-font-heading);
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.25;
  color: var(--el-ink);
}
.el-live2-card__stations {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--el-line);
  padding-bottom: 10px;
  font-size: 0.875rem;
  color: var(--el-muted);
}
.el-live2-card__count {
  font-family: var(--el-font-heading);
  font-size: 1.125rem;
  font-weight: 800;
  line-height: 1;
  color: var(--el-ink);
}
.el-live2-card__body { margin-top: 16px; flex: 1; }
.el-live2-card__fuels { margin: 0; }
.el-live2-card__fuel {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
}
.el-live2-card__fuel + .el-live2-card__fuel { border-top: 1px solid var(--el-line); }
.el-live2-card__fuel dt { min-width: 0; }
.el-live2-card__fname { display: block; font-size: 0.875rem; font-weight: 600; line-height: 1.35; color: var(--el-ink); }
.el-live2-card__fcount { display: block; margin-top: 2px; font-size: 0.75rem; color: var(--el-muted); }
.el-live2-card__fuel dd {
  margin: 0;
  flex: none;
  text-align: right;
  font-family: var(--el-font-heading);
  font-size: 15px;
  font-weight: 800;
  color: var(--el-ink);
  font-variant-numeric: tabular-nums;
}
.el-live2-card__avg { font-family: var(--el-font-body); font-size: 0.75rem; font-weight: 400; color: var(--el-muted); }
.el-live2-card__pending {
  margin: 16px 0 0;
  flex: 1;
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--el-muted);
}
.el-live2-card__eyebrow {
  margin: 8px 0 0;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--el-muted);
}
.el-live2-card__foot { margin-top: auto; padding-top: 16px; }
.el-live2-card__foot a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  font-weight: 600;
  text-decoration: none;
}
.el-live2-card__foot a:hover { text-decoration: underline; }

/* Live and status chips. */
.el-livechip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex: none;
  border-radius: 999px;
  padding: 4px 8px;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
}
.el-livechip__dot { width: 6px; height: 6px; border-radius: 50%; flex: none; }
.el-livechip--live { background: #DFF3E7; color: #14663D; }
.el-livechip--live .el-livechip__dot { background: #1E8E5A; }
.el-livechip--pending { background: #FDF0DC; color: #8A5A12; }
.el-livechip--pending .el-livechip__dot { background: #D97706; }
.el-livechip--registration { background: #EEECE8; color: #5F5546; }
.el-livechip--registration .el-livechip__dot { background: #B7791F; }
.el-statuschip {
  display: inline-block;
  border-radius: 999px;
  padding: 2px 8px;
  font-size: 0.75rem;
  font-weight: 700;
  white-space: nowrap;
}
.el-statuschip--live { background: #DFF3E7; color: #14663D; }
.el-statuschip--pending { background: #FDF0DC; color: #8A5A12; }
.el-statuschip--monthly { background: #E2ECFA; color: #1D4E89; }
.el-statuschip--weekly { background: var(--el-surface-alt); color: var(--el-navy); }
.el-statuschip--uk { background: #F3ECE5; color: #6B5A4A; }

/* Graphite bands (Norway, near me): the ranking head's glow. */
.el-band {
  position: relative;
  overflow: hidden;
  background: var(--el-graphite);
  color: var(--el-on-dark);
  border-radius: 24px;
  padding: 20px;
}
@media (min-width: 640px) { .el-band { padding: 28px; } }
.el-band::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(560px circle at 88% -10%, rgba(232, 106, 23, 0.38), transparent 62%);
}
.el-band > * { position: relative; z-index: 1; }
.el-band h2 { color: #FFFFFF; }
.el-band__title { display: flex; align-items: center; gap: 12px; margin-top: 12px; }
.el-band__title .el-flag { flex: none; }
.el-band__title h2 { font-size: 1.25rem; margin: 0; }
@media (min-width: 640px) { .el-band__title h2 { font-size: 1.5rem; } }
.el-band__h2 { font-size: 1.25rem; margin: 12px 0 0; }
@media (min-width: 640px) { .el-band__h2 { font-size: 1.5rem; } }
.el-band__para { margin: 8px 0 0; font-size: 0.875rem; color: var(--el-on-dark); max-width: 672px; line-height: 1.6; }
.el-band__tiles {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 16px;
}
.el-band__tile {
  background: var(--el-graphite-panel);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 16px;
}
.el-band__tlabel { margin: 0; font-size: 0.875rem; color: var(--el-on-dark-muted); }
.el-band__tvalue {
  margin: 4px 0 0;
  font-family: var(--el-font-heading);
  font-size: 1.35rem;
  font-weight: 800;
  line-height: 1.1;
  color: #FFFFFF;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
@media (min-width: 640px) { .el-band__tvalue { font-size: 1.875rem; } }
.el-band__teur { margin: 4px 0 0; font-size: 0.875rem; font-weight: 700; color: var(--el-accent-on-dark); font-variant-numeric: tabular-nums; }
.el-band__source { margin: 16px 0 0; font-size: 0.75rem; line-height: 1.6; color: var(--el-on-dark-muted); }
.el-band__cta {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 48px;
  margin-top: 16px;
  padding: 12px 16px;
  background: var(--el-fuel);
  color: #FFFFFF;
  font-weight: 700;
  text-decoration: none;
  border-radius: 12px;
}
.el-band__cta:hover { background: var(--el-fuel-hover); color: #FFFFFF; }

/* Near-me band search and footer row. */
.el-near__searchrow {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 576px;
  margin-top: 16px;
}
@media (min-width: 640px) { .el-near__searchrow { flex-direction: row; } }
.el-near__inputwrap { position: relative; flex: 1; }
.el-near__mag {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--el-on-dark-muted);
  pointer-events: none;
}
.el-near__inputwrap input {
  font: inherit;
  width: 100%;
  min-height: 48px;
  padding: 12px 12px 12px 44px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  background: var(--el-graphite-panel);
  color: #FFFFFF;
}
.el-near__inputwrap input::placeholder { color: var(--el-on-dark-muted); }
.el-near__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 16px;
  background: var(--el-fuel);
  color: #FFFFFF;
  font-weight: 700;
  text-decoration: none;
  border-radius: 12px;
  white-space: nowrap;
}
.el-near__cta:hover { background: var(--el-fuel-hover); color: #FFFFFF; }
.el-band .el-search-results--dark { max-width: 576px; }
.el-near__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  margin-top: 20px;
}
.el-near__flags { display: inline-flex; align-items: center; gap: 6px; }
.el-near__flag { position: relative; display: inline-flex; }
.el-near__flagdot {
  position: absolute;
  right: -2px;
  bottom: -2px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #2FBF71;
  box-shadow: 0 0 0 2px var(--el-graphite);
}
.el-near__foottext { margin: 0; font-size: 0.75rem; color: var(--el-on-dark-muted); }

/* Footer composition (wave 2): tagline + licence, 4-column grid,
   bottom bar with copyright/date left and sources right. */
.site-footer__tagline { color: var(--el-on-dark); font-size: 0.875rem; max-width: 34ch; }
.site-footer__licence { color: var(--el-on-dark-muted); font-size: 0.75rem; max-width: 34ch; }
.site-footer__bottom { border-top: 1px solid rgba(255, 255, 255, 0.15); margin-top: 32px; }
.site-footer__bottom-inner {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-block: 16px;
}
@media (min-width: 640px) {
  .site-footer__bottom-inner { flex-direction: row; align-items: center; justify-content: space-between; }
}
.site-footer__bottom p { margin: 0; font-size: 0.75rem; color: var(--el-on-dark); }
.site-footer__bottom .site-footer__sources { color: var(--el-on-dark-muted); line-height: 1.6; }
.site-footer .el-footer__all { color: var(--el-accent-on-dark); font-weight: 600; }
.site-footer .el-footer__all:hover { color: var(--el-accent-on-dark); text-decoration: underline; }
@media (min-width: 768px) {
  .site-footer__grid { grid-template-columns: 1.3fr 1fr 1fr 1fr; }
}
