/* ══════════════════════════════════════════════════════════
   HomeHeat County Page v2 — components only.
   Imported AFTER style.min.css and tokens-r2.css.
   Source: Claude Design Round 2 prototype, extracted 2026-04-25.
   Dropped from prototype: :root tokens (live in style.css + tokens-r2.css),
   global body/focus-visible/prefers-reduced-motion (live in tokens-r2.css),
   .nav reproductions (live nav handles styling).
   See: docs/superpowers/specs/2026-04-24-county-page-evolve-redesign.md
   ══════════════════════════════════════════════════════════ */

  .visually-hidden {
    position: absolute; width: 1px; height: 1px;
    padding: 0; margin: -1px; overflow: hidden;
    clip: rect(0,0,0,0); white-space: nowrap; border: 0;
  }

  /* ══════════════════════════════════════════════════════════
     == component: hero answer card
     ══════════════════════════════════════════════════════════ */
  .hero-answer {
    background: var(--hero-gradient);
    padding: var(--space-5) var(--content-gutter-m) var(--space-7);
  }
  @media (min-width: 1024px) {
    .hero-answer {
      padding: var(--space-10) var(--content-gutter) var(--space-12);
    }
  }

  .hero-inner {
    max-width: var(--content-max); margin: 0 auto;
  }
  @media (min-width: 1024px) {
    .hero-inner {
      display: grid;
      /* Content column capped so it doesn't look lonely at 1920.
         Answer card takes remaining flex space up to ~520px. */
      grid-template-columns: minmax(420px, 620px) minmax(360px, 480px);
      justify-content: space-between;
      gap: var(--space-10);
      align-items: start;
    }
  }

  .breadcrumb {
    font-size: var(--font-xs); color: rgba(0,0,0,0.65);
    margin: 0 0 var(--space-3);
  }
  .breadcrumb ol { list-style: none; padding: 0; margin: 0; display: flex; gap: 6px; flex-wrap: wrap; }
  .breadcrumb li:not(:first-child)::before { content: "›"; margin-right: 6px; color: rgba(0,0,0,0.4); }
  .breadcrumb a { color: inherit; text-decoration: none; }
  .breadcrumb [aria-current="page"] { color: var(--text-dark); font-weight: 700; }

  .hero-title {
    font-size: var(--font-4xl); font-weight: 800;
    letter-spacing: var(--track-tight); line-height: 1.08;
    margin: 0 0 var(--space-2); color: var(--text-dark);
    text-wrap: balance;
  }
  @media (min-width: 1024px) {
    .hero-title { font-size: var(--font-5xl); line-height: 1.04; }
  }

  .hero-meta {
    font-size: var(--font-sm); color: rgba(0,0,0,0.7);
    margin: 0 0 var(--space-4);
    display: flex; align-items: center; gap: var(--space-2);
  }
  .pulse-dot {
    display: inline-block; width: 8px; height: 8px; border-radius: 50%;
    background: #15803d;
    box-shadow: 0 0 0 3px rgba(21,128,61,0.25);
    animation: pulse 2s ease-in-out infinite;
  }
  @keyframes pulse { 0%,100%{opacity:1} 50%{opacity:.5} }

  .hero-proof {
    list-style: none; padding: 0; margin: var(--space-5) 0 0;
    display: none;
  }
  @media (min-width: 1024px) {
    .hero-proof {
      display: grid; grid-template-columns: 1fr 1fr; gap: 8px 20px;
      font-size: var(--font-sm); color: var(--text-dark);
    }
  }

  .answer-card {
    background: var(--background-card); border-radius: var(--radius-lg);
    padding: var(--space-4) var(--space-4) var(--space-3);
    box-shadow: var(--shadow-answer);
    border: 1px solid rgba(0,0,0,0.04);
  }
  @media (min-width: 1024px) {
    .answer-card {
      padding: var(--space-5);
      border-radius: var(--radius-xl);
      box-shadow: var(--shadow-answer-lg);
    }
  }

  .answer-head {
    display: flex; justify-content: space-between; align-items: baseline;
    margin-bottom: 4px;
  }
  .eyebrow {
    margin: 0; font-size: var(--font-xs); font-weight: 800;
    text-transform: uppercase; letter-spacing: var(--track-label);
    color: var(--text-muted);
  }
  .answer-timestamp {
    font-size: var(--font-xs); color: var(--text-muted);
  }

  .price {
    margin: 6px 0 2px; display: flex; align-items: baseline; gap: var(--space-3);
  }
  .price strong {
    font-size: var(--font-4xl); font-weight: 800;
    letter-spacing: var(--track-tight); line-height: 1;
    color: var(--text-dark);
    font-variant-numeric: tabular-nums;
  }
  .price span.unit {
    font-size: var(--font-base); font-weight: 500; color: var(--text-gray);
  }
  @media (min-width: 1024px) {
    .price strong { font-size: var(--font-6xl); }
    .price span.unit { font-size: var(--font-lg); }
  }

  .savings-chip {
    margin-left: auto;
    font-size: var(--font-xs); color: var(--success-green);
    font-weight: 800; background: var(--success-green-light);
    padding: 3px var(--space-2); border-radius: var(--radius-pill);
  }

  .supplier-line {
    margin: 0 0 var(--space-4); font-size: var(--font-sm); color: var(--text-gray);
  }
  .supplier-line a { color: inherit; }

  /* Tied-count disclosure — sits under .supplier-line when 2+ suppliers share
     min_price. Smaller and muted so it reads as a footnote, not a competing
     headline. Tightens .supplier-line's bottom margin when present (handled
     by sibling selector). */
  .hero-tied-count {
    margin: -10px 0 var(--space-4);
    font-size: var(--font-xs); color: var(--text-muted);
    font-weight: 600;
  }

  .price-range {
    /* display:block needed to OVERRIDE v1 county-elite.css L114 which sets
       display:flex on .price-range — without this, our labels and bar become
       sibling flex items and the bar collapses to 0 width. */
    display: block;
    margin: var(--space-4) 0 0; padding: var(--space-4) 0 0;
    border-top: 1px solid var(--background-secondary);
    gap: 0;
    flex-wrap: nowrap;
    justify-content: stretch;
  }
  .price-range-labels {
    display: flex; justify-content: space-between;
    font-size: var(--font-xs); color: var(--text-muted);
    margin-bottom: 5px; font-variant-numeric: tabular-nums;
  }
  .price-range-bar {
    position: relative; height: 6px; border-radius: 3px;
    background: linear-gradient(90deg, var(--success-green) 0%, #facc15 50%, #ef4444 100%);
    opacity: 0.9;
  }
  .price-range-marker {
    position: absolute; left: 0%; top: -3px;
    width: 12px; height: 12px; border-radius: 50%;
    background: #fff; border: 2.5px solid var(--success-green);
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
  }

  .delivery-math {
    margin-top: var(--space-4); padding: var(--space-3) var(--space-4);
    background: var(--background-secondary);
    border-radius: 10px; border: 1px solid rgba(229,216,208,0.5);
  }
  .delivery-math-label { font-size: var(--font-sm); color: var(--text-gray); margin: 0 0 6px; }
  .delivery-math-total {
    font-size: var(--font-2xl); font-weight: 800; color: var(--text-dark);
    letter-spacing: var(--track-snug);
  }
  .delivery-math-compare { font-size: var(--font-sm); color: var(--text-gray); margin-left: var(--space-2); }
  .delivery-math-savings {
    font-size: var(--font-sm); font-weight: 800; color: var(--success-green);
    margin-top: 2px;
  }

  .zip-refine {
    margin-top: var(--space-4); display: flex;
    border: 2px solid var(--border-color); border-radius: 10px;
    overflow: hidden;
  }
  .zip-refine input {
    /* min-width:0 prevents the input from refusing to shrink and clipping
       the submit button at narrow viewports (≤320px). */
    flex: 1; min-width: 0;
    padding: var(--space-3) var(--space-4);
    border: none; outline: none;
    font-size: var(--font-base); font-weight: 600;
    letter-spacing: 0.1em; min-height: var(--tap-min);
    font-family: inherit; background: #fff;
  }
  .zip-refine button {
    /* flex-shrink:0 keeps the button at min-width even when the input is wide. */
    flex-shrink: 0;
    padding: 0 var(--space-4); background: var(--primary-orange);
    color: #fff; border: none; font-weight: 700; font-size: var(--font-sm);
    cursor: pointer; min-height: var(--tap-min); min-width: var(--tap-min);
    font-family: inherit;
  }
  .zip-refine button:hover { background: var(--primary-orange-hover); }

  /* In-card primary Call CTA — full-width orange button above ZIP refine.
     The supplier name is part of the affordance ("Call Supreme Oil") so
     users tapping a tel: link know who they're calling before the OS
     dialer opens. */
  .card-call {
    display: flex; align-items: center; justify-content: center; gap: 8px;
    margin-top: var(--space-4);
    padding: 14px var(--space-4);
    background: var(--primary-orange); color: #fff;
    border-radius: 10px; text-decoration: none;
    font-size: var(--font-base); font-weight: 800;
    letter-spacing: var(--track-snug);
    min-height: var(--tap-min);
    box-shadow: 0 1px 2px rgba(217, 95, 8, 0.15);
    transition: background 120ms ease;
  }
  .card-call:hover, .card-call:focus-visible { background: var(--primary-orange-hover); }
  .card-call::before {
    content: "📞"; font-size: var(--font-lg); line-height: 1;
  }

  .hero-trust {
    margin: var(--space-3) 0 0; font-size: var(--font-xs);
    color: rgba(0,0,0,0.65); display: flex; gap: var(--space-3); flex-wrap: wrap;
  }

  /* Hide breadcrumb on mobile — H1 already says the county name; the
     breadcrumb costs ~35px of first-viewport space without orienting value.
     JSON-LD BreadcrumbList in the page <head> is unaffected. */
  @media (max-width: 768px) {
    .hero-answer .breadcrumb { display: none; }
  }

  /* Stack savings chip below the price on the smallest screens (≤360px),
     and hide phone digits inside supplier-row Call buttons (the phone is
     still in aria-label for screen readers, and the number is one tap away
     via the tel: action). */
  @media (max-width: 360px) {
    .answer-card .price {
      flex-direction: column; align-items: flex-start; gap: 4px;
    }
    .supplier-row .btn-call .call-num { display: none; }
  }

  /* ══════════════════════════════════════════════════════════
     == sticky hero bar (mobile) — PR #4
     ══════════════════════════════════════════════════════════ */
  .sticky-hero-bar {
    /* Sit BELOW the site nav (~60px tall, sticky at top:0 z-index:100). With
       z-index:90 + top:60px the bar appears as a secondary band UNDER nav,
       so the HomeHeat logo and main menu stay visible while scrolled. The
       prototype was standalone (no nav) so it pinned to top:0 — that
       collides with our integrated header. */
    position: fixed; top: 70px; left: 0; right: 0; z-index: 90;
    background: rgba(255,255,255,0.96);
    backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    padding: var(--space-2) var(--content-gutter-m);
    display: flex; align-items: center; gap: var(--space-3);
    box-shadow: var(--shadow-sticky);
    transform: translateY(-100%); transition: transform 200ms ease;
  }
  .sticky-hero-bar.is-visible { transform: translateY(0); }
  .sticky-hero-bar-body { flex: 1; min-width: 0; }
  .sticky-hero-bar-eyebrow {
    margin: 0; font-size: 10px; color: var(--text-muted);
    text-transform: uppercase; letter-spacing: var(--track-label);
    font-weight: 800; line-height: 1.2;
  }
  .sticky-hero-bar-price { display: flex; align-items: baseline; gap: 6px; margin: 0; }
  .sticky-hero-bar-price strong {
    font-size: var(--font-lg); font-weight: 800; color: var(--text-dark);
    letter-spacing: var(--track-snug); font-variant-numeric: tabular-nums;
  }
  .sticky-hero-bar-price span { font-size: var(--font-xs); color: var(--text-gray); }
  .sticky-hero-bar a.btn-call {
    background: var(--primary-orange); color: #fff;
    padding: var(--space-3); border-radius: var(--radius-md);
    font-size: var(--font-sm); font-weight: 700; text-decoration: none;
    min-height: var(--tap-min); display: flex; align-items: center; gap: 6px;
  }
  @media (min-width: 1024px) { .sticky-hero-bar { display: none; } }

  /* ══════════════════════════════════════════════════════════
     == component: supplier table
     ══════════════════════════════════════════════════════════ */
  .suppliers {
    background: #FFFBF7;
    padding: var(--space-7) var(--content-gutter-m) var(--space-12);
  }
  @media (min-width: 1024px) {
    .suppliers { padding: var(--space-10) var(--content-gutter) var(--space-16); }
  }
  .suppliers-inner { max-width: var(--content-max); margin: 0 auto; }
  .suppliers-head {
    display: flex; justify-content: space-between; align-items: baseline;
    margin-bottom: var(--space-4); padding: 0 4px;
    gap: var(--space-4); flex-wrap: wrap;
  }
  .suppliers-head h2 {
    font-size: var(--font-lg); font-weight: 800; margin: 0;
    letter-spacing: var(--track-snug);
  }
  @media (min-width: 1024px) {
    .suppliers-head h2 { font-size: var(--font-2xl); }
  }
  .suppliers-filters {
    display: flex; gap: var(--space-3); font-size: var(--font-sm); color: var(--text-gray);
    flex-wrap: wrap;
  }
  .suppliers-filters button {
    background: none; border: 1px solid var(--border-color);
    padding: var(--space-2) var(--space-3); border-radius: var(--radius-md);
    font-weight: 600; font-family: inherit; cursor: pointer;
    min-height: var(--tap-min); color: var(--text-gray);
  }

  .coverage-notice {
    background: var(--background-secondary);
    border: 1px solid rgba(229,216,208,0.5);
    border-radius: var(--radius-md);
    padding: var(--space-3) var(--space-4);
    margin-bottom: var(--space-3);
    font-size: var(--font-sm); color: var(--text-gray);
  }
  .coverage-notice a { color: var(--primary-orange-dark); font-weight: 700; }

  .supplier-list {
    display: flex; flex-direction: column; gap: var(--space-2);
    list-style: none; padding: 0; margin: 0;
  }
  @media (min-width: 1024px) {
    .supplier-list { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-3); }
  }

  /* supplier-row */
  .supplier-row {
    background: var(--background-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-card);
    padding: var(--space-3) var(--space-3);
    display: grid;
    grid-template-areas:
      "avatar head price"
      "actions actions actions";
    grid-template-columns: auto 1fr auto;
    gap: var(--space-2) var(--space-3);
    position: relative;
    align-items: start;
  }
  .supplier-row.is-cheapest {
    background: #F0FAEF;
    border: 1.5px solid var(--success-green);
    box-shadow: var(--shadow-card-lift);
  }
  .flag-cheapest {
    position: absolute; top: -10px; left: 12px;
    background: var(--success-green); color: #fff;
    font-size: 10px; font-weight: 800; letter-spacing: var(--track-label);
    padding: 3px var(--space-2); border-radius: 4px; text-transform: uppercase;
  }
  .supplier-avatar {
    grid-area: avatar;
    width: 40px; height: 40px; border-radius: 9px;
    color: #fff; font-weight: 800; font-size: var(--font-sm);
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
  }
  .supplier-head { grid-area: head; min-width: 0; }
  .supplier-name {
    font-weight: 700; font-size: var(--font-sm); color: var(--text-dark);
    text-decoration: none;
  }
  @media (min-width: 1024px) { .supplier-name { font-size: var(--font-base); } }
  .supplier-head-row { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
  .supplier-meta {
    margin: 2px 0 0; font-size: var(--font-xs); color: var(--text-gray);
  }
  .badge-verified {
    font-size: 9px; font-weight: 800; color: var(--success-green);
    background: var(--success-green-light);
    padding: 1px var(--space-2); border-radius: 3px;
    letter-spacing: 0.05em; text-transform: uppercase;
  }
  /* Scoped to .supplier-row to avoid CSS Danger Zone collision with v1 .supplier-price (style.css L1899). */
  .supplier-row .supplier-price { grid-area: price; text-align: right; flex-shrink: 0; }
  .price-big {
    margin: 0; font-size: var(--font-xl); font-weight: 800;
    color: var(--text-dark); letter-spacing: var(--track-snug);
    line-height: 1; font-variant-numeric: tabular-nums;
  }
  .is-cheapest .price-big { color: var(--success-green); }
  .price-unit {
    margin: 2px 0 0; font-size: 10px; color: var(--text-muted);
    text-transform: uppercase; letter-spacing: var(--track-label);
  }
  .price-delivery {
    margin: 4px 0 0; font-size: var(--font-xs); color: var(--text-gray);
    font-variant-numeric: tabular-nums;
  }

  .supplier-actions {
    grid-area: actions;
    display: flex; gap: var(--space-2); margin-top: 4px;
  }
  .btn-call {
    flex: 1; min-height: var(--tap-min); border-radius: var(--radius-md);
    text-decoration: none; background: var(--primary-orange); color: #fff;
    font-size: var(--font-sm); font-weight: 700;
    display: flex; align-items: center; justify-content: center; gap: 6px;
  }
  .is-cheapest .btn-call { background: var(--success-green); }
  .btn-call:hover { background: var(--primary-orange-hover); }
  .is-cheapest .btn-call:hover { background: var(--success-green-hover); }
  .btn-profile {
    min-width: 88px; min-height: var(--tap-min); padding: 0 var(--space-4);
    border-radius: var(--radius-md); background: transparent;
    color: var(--text-dark); border: 1px solid var(--border-color);
    font-size: var(--font-sm); font-weight: 700; text-decoration: none;
    display: flex; align-items: center; justify-content: center;
  }

  /* freshness chip */
  .freshness {
    display: inline-flex; align-items: center; gap: 4px;
    font-size: 9px; font-weight: 800; padding: 1px var(--space-2);
    border-radius: 3px; letter-spacing: 0.05em; text-transform: uppercase;
  }
  .freshness::before {
    content: ""; width: 5px; height: 5px; border-radius: 50%;
    background: currentColor;
  }
  .freshness.is-fresh  { color: var(--fresh-color);  background: var(--fresh-bg); }
  .freshness.is-recent { color: var(--recent-color); background: var(--recent-bg); }
  .freshness.is-stale  { color: var(--stale-color);  background: var(--stale-bg); }

  .show-more {
    width: 100%; padding: var(--space-3); background: transparent;
    color: var(--text-gray); border: 1px dashed var(--border-color);
    border-radius: var(--radius-md); font-size: var(--font-sm); font-weight: 700;
    cursor: pointer; margin-top: 4px; min-height: var(--tap-min);
    font-family: inherit;
  }

  .claim-link-tiny {
    text-align: center; padding: var(--space-4) var(--space-4) 0;
    font-size: var(--font-xs); color: var(--text-muted);
  }
  .claim-link-tiny a {
    color: var(--primary-orange-dark); font-weight: 700; text-decoration: underline;
  }

  /* ══════════════════════════════════════════════════════════
     == component: FAQ (below table)
     ══════════════════════════════════════════════════════════ */
  .faq {
    padding: var(--space-7) var(--content-gutter-m) var(--space-12);
    background: var(--background-secondary);
  }
  .faq-inner { max-width: 720px; margin: 0 auto; }
  .faq h2 { font-size: var(--font-xl); font-weight: 800; margin: 0 0 var(--space-4); }
  .faq details {
    border-bottom: 1px solid var(--border-color); padding: var(--space-3) 0;
  }
  .faq summary {
    font-weight: 700; font-size: var(--font-base); cursor: pointer;
    list-style: none; padding: var(--space-1) 0; min-height: var(--tap-min);
    display: flex; align-items: center; justify-content: space-between;
  }
  .faq summary::-webkit-details-marker { display: none; }
  .faq summary::after { content: "+"; font-size: var(--font-lg); color: var(--text-muted); }
  .faq details[open] summary::after { content: "−"; }
  .faq details p {
    margin: var(--space-2) 0 0; font-size: var(--font-sm);
    color: var(--text-gray); line-height: 1.55;
  }
  .faq-more { margin-top: var(--space-4); }
  .faq-more a { color: var(--primary-orange-dark); font-weight: 700; text-decoration: none; }

  /* avatar colors — cycled, server assigns from index % palette-length */
  .av-0 { background: #E07A5F; }  .av-1 { background: #3D85C6; }
  .av-2 { background: #81B29A; }  .av-3 { background: #F2994A; }
  .av-4 { background: #6C5B7B; }  .av-5 { background: #C06C84; }
  .av-6 { background: #355C7D; }  .av-7 { background: #2D8A6E; }
