/* Mobile-first information hierarchy: compact chrome, ordered primary journey. */
:root {
  --flow-radius: 16px;
  --flow-shadow: 0 8px 24px rgba(17, 43, 52, .06);
}

/* The charging shortcut stays at the top of the page; only the main header sticks. */
.site-chrome {
  position: sticky;
  top: 0;
  z-index: 80;
  overflow: visible;
  background: #fff;
  box-shadow: 0 4px 18px rgba(17, 43, 52, .08);
}
.top-charge {
  position: relative !important;
  z-index: 81;
  inset: auto !important;
  height: auto !important;
  min-height: 0 !important;
  padding: 8px 4% 6px !important;
}
.site-chrome > header {
  position: relative;
  box-shadow: 0 4px 18px rgba(17, 43, 52, .08);
}
.top-charge .charge-bar {
  height: auto !important;
  min-height: 0 !important;
}
.top-charge .charging-disclosure > summary {
  min-height: 32px;
  display: flex;
  align-items: center;
}

.workflow-ribbon {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  padding: 0 4% 24px;
  background: var(--paper);
}
.workflow-ribbon a {
  min-width: 0;
  min-height: 82px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--flow-radius);
  background: #fff;
  box-shadow: var(--flow-shadow);
  transition: border-color .18s ease, transform .18s ease, box-shadow .18s ease;
}
.workflow-ribbon a:hover {
  border-color: #85b5a6;
  box-shadow: 0 12px 28px rgba(17, 43, 52, .1);
  transform: translateY(-2px);
}
.workflow-ribbon .step-number {
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--ink);
  color: #c6f36b;
  font-size: 12px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}
.workflow-ribbon .step-copy { min-width: 0; display: grid; gap: 2px; }
.workflow-ribbon strong { font-size: 14px; line-height: 1.35; }
.workflow-ribbon small { color: var(--muted); font-size: 12px; line-height: 1.4; }
.workflow-ribbon .step-arrow { margin-inline-start: auto; color: var(--green); font-size: 20px; }

.stats-strip {
  border-block: 1px solid var(--line);
}
.section { scroll-margin-top: 120px; }
.section-head { align-items: end; }
.section-head > div:first-child { max-width: 760px; }
.section-head > div:first-child > p:not(.eyebrow) { max-width: 680px; }

@media (max-width: 760px) {
  html { scroll-padding-top: calc(var(--header-height, 96px) + 12px); }
  .site-chrome { background: rgba(255,255,255,.97); }
  .top-charge { padding: 7px 14px 5px !important; }
  .top-charge .charge-bar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 5px 10px;
  }
  .top-charge .charge-bar-title { grid-column: 1 / -1; }
  .top-charge .charge-brand-strip {
    grid-column: 1 / -1;
    min-width: 0;
    max-height: 40px;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 0 0 3px;
    scrollbar-width: thin;
  }
  .top-charge .charge-brand-strip > a { min-height: 36px; padding: 3px 8px; }
  .top-charge .charge-brand-strip img { width: 26px; height: 24px; }
  .top-charge .nearest-station {
    grid-column: 1 / -1;
    max-height: 42px;
    overflow: auto;
    font-size: 12px;
    line-height: 1.35;
  }
  .top-charge .nearest-station > small { margin-top: 2px; }
  .top-charge .charging-disclosure > summary { min-height: 28px; font-size: 12px; }
  .site-chrome > header {
    gap: 6px 10px;
    padding: 8px 14px 7px;
    background: rgba(255,255,255,.97);
  }
  .site-chrome > header > .logo { font-size: 18px; }
  .site-chrome > header > .market-pulse {
    width: min(52vw, 250px);
    min-width: 132px;
    height: 56px;
    min-height: 56px;
  }
  .site-chrome .market-slide { height: 56px; padding: 5px 7px; gap: 6px; }
  .site-chrome .market-slides { height: 112px; }
  .site-chrome .market-slide > strong { font-size: 18px; }
  .site-chrome .market-slide > span,
  .site-chrome .market-slide small { font-size: 10px; line-height: 1.3; }
  .site-chrome .market-pulse button { top: 7px; }
  .site-chrome .language-bar {
    min-height: 34px;
    padding-top: 4px;
    border-top: 1px solid var(--line);
  }
  .workflow-ribbon {
    grid-template-columns: repeat(3, minmax(150px, 1fr));
    gap: 9px;
    overflow-x: auto;
    padding: 0 14px 18px;
    scroll-snap-type: x mandatory;
    scrollbar-width: thin;
  }
  .workflow-ribbon a { min-height: 74px; padding: 11px; gap: 9px; scroll-snap-align: start; }
  .workflow-ribbon .step-number { flex-basis: 32px; width: 32px; height: 32px; border-radius: 10px; }
  .workflow-ribbon strong { font-size: 13px; }
  .workflow-ribbon small { font-size: 11px; }
  .workflow-ribbon .step-arrow { display: none; }
  .stats-strip { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; padding: 8px 14px; }
  .stats-strip > div { min-height: 68px; padding: 8px 10px; }
  .stats-strip strong { font-size: 18px; }
  .stats-strip span { font-size: 11px; line-height: 1.35; }
  .section { padding: 30px 14px; scroll-margin-top: 112px; }
  .section-head { gap: 12px; align-items: start; }
  .section-head > div:first-child > p:not(.eyebrow) { font-size: 14px; line-height: 1.55; }
  .hero { padding: 20px 14px 18px; gap: 14px; }
  .hero-visual { min-height: 220px; }
  .hero-actions { gap: 8px; }
  .hero-actions .button { min-height: 42px; padding: 10px 13px; }
  .mobile-nav { padding-bottom: max(5px, env(safe-area-inset-bottom)); }
}

@media (prefers-reduced-motion: reduce) {
  .workflow-ribbon a { transition: none; }
  .workflow-ribbon a:hover { transform: none; }
}

@media print {
  .workflow-ribbon { display: none; }
}
