/* Fuel tools: the site's palette, spacing and typography without a third-party widget. */
.page-hero:has(+ .fuel-tool) { padding-block: clamp(24px, 4vw, 52px); }
.fuel-tool { margin-top: clamp(22px, 3vw, 40px); scroll-margin-top: 24px; }
.fuel-toolbar, .fuel-links, .fuel-actions, .fuel-pills { display: flex; align-items: center; flex-wrap: wrap; gap: 9px 18px; }
.fuel-toolbar { justify-content: space-between; }
.fuel-toolbar h2 { font-size: clamp(1.65rem, 3vw, 2.5rem); }
.fuel-toolbar h3 { font-size: clamp(1.15rem, 2.5vw, 1.5rem); }
.fuel-checked, .fuel-results { margin: 10px 0 16px; color: var(--muted); font-size: .91rem; }
.fuel-alert { margin-block: 12px; padding: 12px 16px; border: 1px solid #ecd991; border-radius: 14px; background: #fff9e6; color: #604501; }
.fuel-panel, .fuel-cap { border: 1px solid var(--concept-line); border-radius: 20px; padding: clamp(14px, 2.5vw, 24px); }
.fuel-caps-grid, .fuel-stations-grid { display: grid; gap: 14px; }
.fuel-caps-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.fuel-cap { --fuel-color: #1559d9; background: linear-gradient(145deg, #eef5ff, #fff 78%); }
.fuel-cap[data-fuel-kind="diesel"] { --fuel-color: #087458; background: linear-gradient(145deg, #ebf9f3, #fff 78%); }
.fuel-cap h3 { display: flex; align-items: center; gap: 9px; font-size: 1.2rem; }
.fuel-cap h3 .icon { color: var(--fuel-color); }
.fuel-readings { display: grid; grid-template-columns: 1.15fr 1fr; gap: 10px; margin: 15px 0; }
.fuel-reading { display: flex; flex-direction: column; align-items: flex-start; gap: 5px; min-width: 0; }
.fuel-reading > span { color: var(--muted); font-size: .81rem; font-weight: 650; }
.fuel-reading > strong { font-size: clamp(1.5rem, 3.6vw, 3rem); line-height: 1; letter-spacing: -.055em; font-variant-numeric: tabular-nums; }
.fuel-reading strong small, .fuel-station-prices small { font-size: .72rem; letter-spacing: 0; white-space: nowrap; }
.fuel-upcoming { border-inline-start: 1px solid var(--concept-line); padding-inline-start: 10px; }
.fuel-upcoming > strong { font-size: clamp(1.2rem, 2.55vw, 2.1rem); }
.fuel-upcoming > b { font-size: .83rem; }
.fuel-reading .fuel-delta { border-radius: 99px; background: #ecf0f7; color: #41536e; padding: 2px 8px; }
.fuel-reading .fuel-delta[data-direction="down"] { background: #e1f4eb; color: #086049; }
.fuel-reading .fuel-delta[data-direction="up"] { background: #ffede6; color: #923719; }
.fuel-spark { display: block; width: 100%; height: clamp(52px, 9vw, 90px); color: var(--fuel-color); margin-block: 4px 14px; }
.fuel-gridline { stroke: var(--concept-line); fill: none; }
.fuel-history, .fuel-source { margin-top: 18px; }
.fuel-history table { width: 100%; border-collapse: collapse; margin-top: 12px; text-align: left; font-variant-numeric: tabular-nums; }
.fuel-history :is(th, td) { padding: 8px 6px; border-bottom: 1px solid var(--concept-line); font-size: clamp(.78rem, 2.6vw, .95rem); }
.fuel-history :is(th, td):not(:first-child) { text-align: right; }
.fuel-source { background: var(--concept-paper); }
.fuel-source p { margin-block: 5px 9px; color: var(--muted); }
.fuel-pills { gap: 7px; }
.fuel-pills a { display: inline-flex; align-items: center; min-height: 42px; padding-inline: 12px; border: 1px solid var(--concept-line); border-radius: 10px; text-decoration: none; font-weight: 750; font-size: .85rem; }
.fuel-pills a:is(:hover, [aria-current]) { background: var(--ice); border-color: #b7d2f8; color: var(--blue-deep); }
/* Filters: one row on wide screens; the inputs line up even when a label wraps. */
.fuel-filters {
  display: grid; grid-template-columns: minmax(200px, 1.6fr) repeat(3, minmax(130px, 1fr)) auto;
  align-items: end; gap: 12px; background: var(--concept-paper);
}
.fuel-filters label { display: grid; gap: 5px; min-width: 0; font-size: .86rem; font-weight: 800; }
.fuel-filters :is(input, select) {
  min-height: 46px; width: 100%; min-width: 0; padding: 8px 11px; border: 1px solid #bed0e9; border-radius: 11px;
  background-color: #fff; color: var(--ink); font-size: 1rem; font-weight: 550;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.fuel-filters :is(input, select):hover { border-color: #93b4e2; }
.fuel-filters :is(input, select):focus-visible { outline: 2px solid var(--concept-blue, #1559d9); outline-offset: 1px; border-color: var(--concept-blue, #1559d9); }
.fuel-filters input::placeholder { color: #8193ab; }
/* The same chevron as the other selects of the site, instead of the browser arrow. */
.fuel-filters select {
  appearance: none; padding-right: 34px; cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, #41618f 50%), linear-gradient(135deg, #41618f 50%, transparent 50%);
  background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%; background-size: 5px 5px; background-repeat: no-repeat;
}
.fuel-actions { flex-wrap: nowrap; gap: 14px; min-height: 46px; }
.fuel-actions .button { min-height: 46px; padding-inline: 20px; }
.fuel-actions a { color: var(--blue-deep); font-weight: 750; font-size: .9rem; white-space: nowrap; }
.fuel-results { margin-top: 15px; }
.fuel-stations-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); list-style: none; padding: 0; margin: 0; }
.fuel-station { display: flex; flex-direction: column; align-items: start; gap: 10px; }
.fuel-station h3 { font-size: 1.14rem; overflow-wrap: anywhere; }
.fuel-station h3 small { display: block; margin-top: 3px; color: var(--muted); font-size: .75rem; letter-spacing: 0; }
.fuel-address { display: flex; align-items: flex-start; gap: 6px; color: var(--muted); font-size: .86rem; }
.fuel-address .icon { color: var(--blue); width: 17px; height: 17px; }
.fuel-station-prices { align-self: stretch; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 3px; margin: auto 0 0; }
.fuel-station-prices > div { padding: 5px; border-radius: 8px; background: #f5f8fd; }
.fuel-station-prices .is-selected { background: #e7f1ff; color: #143d80; }
.fuel-station-prices dt { font-size: .73rem; font-weight: 650; }
.fuel-station-prices dd { margin: 0; font-size: .95rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.fuel-pagination { justify-content: center; margin-top: 18px; }
.fuel-pagination span { padding-inline: 5px; font-variant-numeric: tabular-nums; }
@media (max-width: 1100px) {
  .fuel-filters { grid-template-columns: repeat(3, minmax(0, 1fr)) auto; }
  .fuel-search { grid-column: 1 / -1; }
}
@media (max-width: 900px) {
  .fuel-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fuel-actions .button { flex: 1 1 auto; }
  .fuel-stations-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .fuel-caps-grid, .fuel-stations-grid { grid-template-columns: minmax(0, 1fr); }
  .fuel-search, .fuel-filters label:has(select[name="sort"]), .fuel-actions { grid-column: 1 / -1; }
}