/* ==========================================================================
   /rebates — intro photo, "how we help" steps, program tables (cards < 768px).
   Colors from tokens.css only.
   ========================================================================== */

.rebates-photo { border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 4 / 3; box-shadow: var(--shadow-soft); }
.rebates-photo .img-fallback { height: 100%; }

/* ---- Steps ------------------------------------------------------------- */
.rebates-steps {
  list-style: none; margin: 0 0 clamp(2rem, 4vw, 3rem); padding: 0;
  display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
}
.rebates-step { position: relative; display: flex; flex-direction: column; gap: .9rem; color: var(--color-text-muted); }
.rebates-step__title { font-size: var(--fs-h4); text-transform: uppercase; margin: 0; }
.rebates-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem; }

/* ---- Notice ------------------------------------------------------------ */
.rebates-notice {
  display: flex; gap: 1rem; align-items: flex-start;
  padding: 1.25rem 1.5rem; margin-bottom: 2rem; border-radius: var(--radius);
  background: var(--surface-sage); border-left: 4px solid var(--brand-grass-green); color: var(--color-text);
}
.rebates-notice .bi { font-size: 1.35rem; color: var(--color-primary); line-height: 1.2; }
.rebates-notice strong { color: var(--color-heading); }
.rebates-notice__reviewed {
  display: block; margin-top: .35rem; font-size: .8125rem; font-weight: var(--fw-medium);
  text-transform: uppercase; letter-spacing: var(--ls-eyebrow); color: var(--color-text-muted);
}

.rebates-jump { display: flex; flex-wrap: wrap; gap: .75rem; margin-bottom: clamp(2rem, 4vw, 3rem); }

/* ---- State blocks + tables -------------------------------------------- */
.rebates-state { scroll-margin-top: calc(var(--header-height-compact) + 1rem); }
.rebates-state + .rebates-state { margin-top: clamp(3rem, 6vw, 4.5rem); }
.rebates-state__title {
  display: flex; flex-wrap: wrap; align-items: center; gap: .6rem;
  font-size: var(--fs-h3); text-transform: uppercase; margin-bottom: 1.25rem;
}
.rebates-state__title .bi { color: var(--color-primary); font-size: .85em; }
.rebates-state__count {
  font-size: var(--fs-eyebrow); font-weight: var(--fw-medium); letter-spacing: var(--ls-eyebrow);
  padding: .45em 1em; border-radius: var(--radius-eyebrow); background: var(--surface-green-tint); color: var(--color-primary);
}

.rebates-table {
  width: 100%; border-collapse: separate; border-spacing: 0;
  background: var(--surface-card); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-soft);
}
.rebates-table thead th {
  background: var(--brand-navy); color: var(--white); padding: 1rem 1.25rem; text-align: left;
  font-size: .75rem; font-weight: var(--fw-medium); text-transform: uppercase; letter-spacing: var(--ls-eyebrow);
}
.rebates-table tbody :is(th, td) { padding: 1.15rem 1.25rem; vertical-align: top; border-top: 1px solid var(--color-border); text-align: left; }
.rebates-table tbody tr:first-child :is(th, td) { border-top: 0; }
.rebates-table tbody tr:nth-child(even) { background: var(--surface-page); }
.rebates-table__provider { width: 26%; font-weight: var(--fw-regular); }
.rebates-table__name { display: block; color: var(--color-heading); font-weight: var(--fw-semibold); }
.rebates-table__program { display: block; margin-top: .2rem; font-size: .8125rem; color: var(--color-text-muted); }
.rebates-table__amount { width: 30%; color: var(--brand-grass-green); font-weight: var(--fw-semibold); }
.rebates-table__notes { color: var(--color-text-muted); font-size: .9375rem; }
.rebates-table__link { width: 1%; white-space: nowrap; }

/* Below md: each row becomes a card. Labels come from data-label. */
@media (max-width: 767.98px) {
  .rebates-table, .rebates-table tbody, .rebates-table tr, .rebates-table th, .rebates-table td { display: block; width: 100%; }
  .rebates-table { background: transparent; box-shadow: none; overflow: visible; border-radius: 0; }
  .rebates-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .rebates-table tbody tr {
    background: var(--surface-card) !important; border-radius: var(--radius); box-shadow: var(--shadow-soft);
    padding: 1.25rem; margin-bottom: 1rem;
  }
  .rebates-table tbody :is(th, td) { padding: 0; border: 0; }
  .rebates-table tbody td { margin-top: .85rem; }
  .rebates-table tbody td[data-label]::before {
    content: attr(data-label); display: block; margin-bottom: .2rem;
    font-size: .6875rem; font-weight: var(--fw-medium); text-transform: uppercase; letter-spacing: var(--ls-eyebrow);
    color: var(--color-text-muted);
  }
  .rebates-table__name { font-size: 1.0625rem; }
  .rebates-table__link { white-space: normal; }
}
