/* Bulb swap card: paint-chip strip for lumens */
.bulbcard { margin: 0; }
.bulbcard .tool__panel .eyebrow { margin-bottom: .5rem; }
.chip-strip {
  list-style: none;
  margin: 0 0 .75rem;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(4.5rem, 1fr));
  gap: 4px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
}
.chip-strip li { margin: 0; min-width: 0; }
.chip-strip button {
  width: 100%;
  min-height: 84px;
  border: 0;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
  padding: .5rem .45rem;
  font: inherit;
  font-size: .78rem;
  line-height: 1.2;
  color: var(--ink);
  text-align: left;
  white-space: nowrap;
}
.chip-strip li:nth-child(1) button { background: color-mix(in srgb, var(--brand) 8%, var(--surface)); }
.chip-strip li:nth-child(2) button { background: color-mix(in srgb, var(--brand) 16%, var(--surface)); }
.chip-strip li:nth-child(3) button { background: color-mix(in srgb, var(--brand) 26%, var(--surface)); }
.chip-strip li:nth-child(4) button { background: color-mix(in srgb, var(--brand) 38%, var(--surface)); }
.chip-strip li:nth-child(5) button { background: color-mix(in srgb, var(--brand) 52%, var(--surface)); }
.chip-strip button strong { display: block; font-size: .95rem; }
.chip-strip button[aria-pressed="true"] {
  outline: 3px solid var(--brand);
  outline-offset: -3px;
}
.chip-strip button:focus-visible { outline: 3px solid var(--ink); outline-offset: -3px; }
.bulbcard select { min-width: 64px; width: 100%; }
.bulbcard .note { margin-top: .25rem; }
@media (max-width: 420px) {
  .chip-strip { grid-template-columns: repeat(auto-fit, minmax(4rem, 1fr)); }
  .chip-strip button { min-height: 72px; font-size: .7rem; padding: .4rem .3rem; }
  .chip-strip button strong { font-size: .82rem; }
}
.gear-grid .card p { margin: .35rem 0 0; color: var(--muted); }

/* Hero: headline top-aligned, bulb tool and lumens result in one card */
.hero--split { align-items: start; padding-block: 2rem; }
.hero--split .hero__body { align-self: start; }
.bulbcard {
  display: flex;
  flex-direction: column;
  align-self: start;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.bulbcard .tool__panel,
.bulbcard .tool__result { border: 0; box-shadow: none; border-radius: 0; margin: 0; }
.bulbcard .tool__result { border-top: 1px solid var(--border); }

/* Spacing before section blocks that follow another data block */
main .section > * + lg-cards,
main .section > * + lg-groups,
main .section > * + lg-table { display: block; margin-top: 64px !important; }
@media (max-width: 640px) {
  main .section > * + lg-cards,
  main .section > * + lg-groups,
  main .section > * + lg-table { margin-top: 40px !important; }
}

/* Cards: left-aligned values, no cut-off */
.card dd { text-align: left; }
.card dl > div { display: block; }
lg-cards .card, lg-cards .card * { -webkit-line-clamp: unset; line-clamp: unset; }
lg-cards .card dd, lg-cards .card dt, lg-cards .card dl > div > *,
.card dd, .card dt {
  white-space: normal !important;
  overflow: visible !important;
  text-overflow: clip !important;
  display: block;
  max-width: none;
  overflow-wrap: anywhere;
}
lg-cards[variant="covers"] img { filter: grayscale(1) sepia(1) hue-rotate(-18deg) saturate(1.6) brightness(.95); }

/* Hero search on narrow screens */
@media (max-width: 480px) {
  lg-search input { font-size: .9rem; min-width: 0; text-overflow: clip; }
  lg-search button { padding-inline: .9rem; flex: 0 0 auto; }
}

/* Plant names in title case */
lg-table tbody td:first-child { text-transform: capitalize; }