
/* Public fuel search and station history. The shared shell owns header and footer. */
main:has(#cities),.azs-history,#network-editor {
  --paper:#111413;--surface:#202420;--ink:#f6f2e9;--muted:#c0c4bb;--line:#434940;
  --night:#2b302a;--copper:#e3c8a2;--light-ink:#f9f7f1;--accent:#e3c8a2;
  --ok:#82b380;--warn:#deb16a;--bad:#e48980;--radius:7px;--shadow:none;
  --display:Arial,Helvetica,sans-serif;color-scheme:dark;color:var(--ink);font-family:var(--display);
}
main:has(#cities), .azs-history {width:min(100%,1500px);max-width:none;margin:0 auto;padding:clamp(26px,4.2vw,66px) clamp(16px,5vw,80px) 54px;line-height:1.5}
main:has(#cities) h1,.azs-history h1 {font-size:clamp(38px,5.1vw,76px);line-height:1.02;letter-spacing:-.045em;margin:0 0 12px}
.azs-search .lead {max-width:76ch;font-size:clamp(15px,1.12vw,18px);margin:0 0 22px}
.azs-search :is(button,a,summary,input):focus-visible,.azs-history :is(button,a,input,summary,select):focus-visible,
#network-editor :focus-visible {outline:3px solid #efc997;outline-offset:3px}
.azs-search button,.azs-history button,#network-editor button,.azs-search .chip {font:inherit;cursor:pointer}
.azs-search :is(.btn,.chip),#network-editor :is(.btn,.chip),.azs-history .btn {
  display:inline-flex;align-items:center;justify-content:center;min-height:43px;padding:8px 13px;
  border-radius:5px;border:1px solid var(--line);background:var(--surface);color:var(--ink);
  font-size:14px;font-weight:600;text-decoration:none;line-height:1.32;text-align:center;
}
.azs-search :is(.btn,.chip):hover,#network-editor :is(.btn,.chip):hover,.azs-history .btn:hover {border-color:var(--copper)}
.azs-search :is(.btn.copper,.chip.on,.chip[aria-pressed=true]),#network-editor :is(.btn.copper,.chip.on),.azs-history .primary {
  border-color:var(--copper);background:var(--copper);color:#211d17
}
.azs-search button:disabled,#network-editor button:disabled{opacity:.64;cursor:wait}
.azs-filters {border:1px solid var(--line);border-radius:7px;overflow:hidden;background:#1b1e1b}
.azs-filter-grid {display:grid;grid-template-columns:1.35fr .9fr 1fr;gap:0}
.azs-filter-grid>* {min-width:0;padding:16px clamp(14px,1.65vw,24px)}
.azs-filter-grid>*+* {border-left:1px solid var(--line)}
.azs-group h2 {font-size:17px;letter-spacing:-.025em;line-height:1.2;margin:0 0 10px}
.azs-filter-grid .chips {display:flex;gap:5px;flex-wrap:wrap;margin:0}
.azs-filter-grid :is(.hint,.mini) {display:block;font-size:12px;color:var(--muted);margin:6px 0 0}
.azs-filter-grid #geo {margin-top:8px;background:transparent;color:var(--copper);border-color:#756b5b}
.azs-filter-grid #geo-note:empty {display:none}
.azs-modes {display:flex;gap:5px;align-items:center;margin:0;padding:9px 12px;background:#181b18;border-bottom:1px solid var(--line)}
.azs-modes .chip {min-height:39px}
.azs-search .settings-panel {padding:10px clamp(14px,1.65vw,24px);border:0;border-top:1px solid var(--line);border-radius:0;margin:0;background:transparent}
.azs-search .settings-panel summary,.azs-search summary {cursor:pointer;font-size:14px}
.azs-search .settings-panel label {min-height:40px;border-radius:4px}
.azs-search .settings-panel input,#network-editor input {accent-color:var(--copper)}
.azs-search #saved-settings {margin:0;padding:0 clamp(14px,1.65vw,24px) 10px}
.azs-search .layout {display:grid;grid-template-columns:minmax(305px,.8fr) minmax(0,1.2fr);gap:clamp(14px,2vw,28px);align-items:start;margin-top:22px}
.azs-map-wrap {position:sticky;top:12px;min-width:0}
.azs-search #map:not(.expanded){height:clamp(340px,57vh,640px);border-radius:6px;background:#252b28}
.azs-search .map-actions {top:8px;left:8px;gap:5px}
.azs-search .map-actions button {background:#242925;color:#fff;border:1px solid #6a7167;border-radius:4px;line-height:1.23;font-size:13px}
.azs-search .map-actions button:hover {border-color:var(--copper)}
.azs-search #map-note {top:auto!important;bottom:36px;z-index:5!important}
.azs-legend {display:flex;align-items:center;flex-wrap:wrap;gap:6px 16px;padding:9px 0;color:var(--muted);font-size:13px}
.azs-legend strong {color:var(--ink)}
.azs-level {display:inline-flex;gap:6px;align-items:center}
.azs-level:before {content:"";width:10px;height:10px;border:1px solid #fff9;border-radius:50%}
.azs-level-green:before {background:#3f7d3f}.azs-level-yellow:before{background:#b4761b}.azs-level-red:before{background:#a83232}
.azs-search .pin {color:white;border:2px solid white;text-shadow:0 1px 2px #13130f;box-shadow:0 1px 6px #12150f99}
.azs-search .pin:focus-visible {outline:3px solid #161815;outline-offset:2px}
.azs-search .maplibregl-ctrl-group,.azs-search .maplibregl-ctrl-attrib {color-scheme:light}
.azs-search .maplibregl-ctrl-attrib a {color:#233523}
.azs-search .maplibregl-popup-content {background:#202520;color:#faf7ee;padding:15px 25px 15px 13px;border-radius:6px}
.azs-search .maplibregl-popup-close-button {color:var(--ink);min-width:28px;min-height:28px}
.azs-search .maplibregl-popup-anchor-bottom .maplibregl-popup-tip {border-top-color:#202520}
.azs-search .maplibregl-popup-anchor-top .maplibregl-popup-tip {border-bottom-color:#202520}
.azs-search .maplibregl-popup-content .pop-go {background:var(--copper);color:#201d16;border-radius:4px}
.azs-search .maplibregl-popup-content .pop-alt,.azs-search .station-fuel a {color:var(--copper)}
.azs-search .status,#network-editor [role=status] {font-size:14px;color:var(--muted);margin:0 0 12px}
.azs-search .card,.azs-search .empty {padding:clamp(12px,1.4vw,20px);margin:0 0 10px;border:1px solid var(--line);background:var(--surface);border-radius:6px;overflow-wrap:anywhere}
.azs-search .card.best {border-color:#827a68;box-shadow:none}
.azs-search .nm {font-size:clamp(17px,1.4vw,21px);line-height:1.24;margin:0 0 4px}
.azs-search .card p {margin:4px 0;font-size:14px}
.azs-search .card .ad,.azs-search .card .src,.azs-search .station-fuel details p {font-size:13px;color:var(--muted)}
.azs-search .track {background:#434940}
.azs-search .pct {font-variant-numeric:tabular-nums}
.azs-search .acts {display:flex;flex-wrap:wrap}
.azs-search .acts a {flex:0 1 auto;min-height:38px;padding:7px 10px;font-size:13px}
.azs-search .station-fuel {padding:10px 0;border-top:1px solid var(--line)}
.azs-search .station-fuel h3 {margin:0;font-size:16px}
.azs-search .promo {margin:24px 0 0;padding:16px;background:var(--surface);border:1px solid var(--line);border-radius:5px}
#network-editor {background:var(--surface);max-height:calc(100dvh - 20px);max-width:100%;border-radius:8px;padding:clamp(15px,3vw,26px);border:1px solid var(--line)}
#network-editor::backdrop {background:#080b09c9}
#network-editor #network-search {border-radius:4px;background:#131613;color:var(--ink)}
#network-editor #brands .chip {justify-content:flex-start;text-align:left;border-radius:4px}
#network-editor .controls,#network-editor .chips {gap:6px}
.azs-jumps {display:none}
@media(max-width:920px) {
  .azs-search .layout {grid-template-columns:minmax(0,1fr)}
  .azs-map-wrap {order:-1;position:static}
  .azs-search #map:not(.expanded) {height:clamp(290px,42dvh,470px)}
  .azs-jumps {display:flex;gap:16px;margin:12px 0;font-size:14px}
  .azs-jumps a {color:var(--copper);text-decoration:underline;text-underline-offset:3px}
  .azs-search #map,.azs-search #azs-stations {scroll-margin-top:12px}
}
@media(max-width:680px) {
  .azs-filter-grid {grid-template-columns:1fr}
  .azs-filter-grid>*+* {border-left:0;border-top:1px solid var(--line)}
  .azs-filter-grid>* {padding:10px 12px}
  .azs-group h2 {font-size:15px;margin-bottom:6px}
  .azs-search .chip {min-height:40px;padding:7px 10px}
  .azs-search .map-actions {max-width:calc(100% - 54px)}
  .azs-search .map-actions button {padding:7px;min-height:40px}
  .azs-search .layout {margin-top:12px}
  #network-editor .controls>* {flex:1 1 auto}
}

.azs-history {max-width:1200px}
.azs-history a {color:var(--copper)}
.azs-history a:not(.btn):hover {text-decoration:underline}
.azs-history .station-back {display:inline-block;margin-bottom:20px}
.azs-history .station-kicker {margin:0 0 7px;color:var(--copper);font-size:13px;font-weight:600}
.azs-history h1 {max-width:22ch}
.azs-history #station-address {font-size:clamp(17px,1.5vw,22px);margin:6px 0}
.azs-history #station-status {color:var(--muted)}
.azs-history #station-body>section,.azs-history #history-filters,.azs-history #station-map-panel {
  margin:14px 0;padding:clamp(14px,2.5vw,28px);border:1px solid var(--line);background:var(--surface);border-radius:6px}
.azs-history #station-body h2 {font-size:clamp(23px,3vw,36px);letter-spacing:-.035em;line-height:1.1;margin:0 0 12px}
.azs-history #station-body h3 {margin:0 0 10px;font-size:16px}
.azs-history #history-filters {display:flex;align-items:end;gap:10px;flex-wrap:wrap}
.azs-history #history-filters label {display:grid;gap:4px;min-width:0;font-size:14px}
.azs-history #history-filters select {padding:8px 12px;min-height:43px;max-width:100%;color:var(--ink);border:1px solid var(--line);border-radius:4px;background:#151815}
.azs-history #station-route {margin-left:auto}
.azs-history #station-map-panel summary {cursor:pointer}
.azs-history #station-map iframe {display:block;width:100%;height:clamp(240px,35vh,430px);border:0;margin-top:12px}
.azs-history .azs-metrics {display:flex;gap:clamp(12px,3vw,45px);flex-wrap:wrap;margin:12px 0 20px}
.azs-history .azs-metrics strong,.azs-history .azs-metrics span {display:block}
.azs-history .azs-metrics strong {font-size:27px;line-height:1.2}
.azs-history .azs-metrics span,.azs-history #station-body p,.azs-history #journal time {color:var(--muted)}
.azs-history #calendars {display:grid;grid-template-columns:repeat(auto-fit,minmax(min(260px,100%),1fr));gap:16px;align-items:start}
.azs-history .history-month {border-top:1px solid var(--line);padding-top:12px;min-width:0}
.azs-history .calendar-days {display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:2px;text-align:center;font-variant-numeric:tabular-nums}
.azs-history .calendar-days>* {display:grid;place-items:center;min-height:35px}
.azs-history .calendar-days small {color:var(--muted);min-height:20px}
.azs-history .calendar-days button {padding:3px;color:var(--copper);border:1px solid #796f59;border-radius:4px;background:#37352a;font-weight:700}
.azs-history .calendar-days button[aria-pressed=true] {color:#191913;background:var(--copper)}
.azs-history .calendar-event:empty {display:none}
.azs-history .calendar-event span,.azs-history #journal li>* {display:block}
.azs-history #journal {padding-left:0;list-style:none}
.azs-history #journal li {padding:8px 0;border-bottom:1px solid var(--line)}
.azs-history #journal span,.azs-history #journal time {font-size:14px}
.azs-history #history-sources,.azs-history #limitations {padding-left:20px}
.azs-history #station-body [hidden] {display:none!important}
@media(max-width:600px){.azs-history #station-route{margin-left:0}.azs-history #history-filters label{flex:1 1 120px}}
body:has(main #cities),body:has(.azs-history){background:#111413}
.azs-history,.azs-history *, .azs-history *::before,.azs-history *::after{box-sizing:border-box}
