/* plant_guides: plant guide index/show/not-found, collections, category suggestions, photo gallery */

/* ---------- Shared page scaffolding ---------- */
.guide-page {
  width: 100%;
}
.guide-page--narrow {
  max-width: var(--container-3xl);
  margin-inline: auto;
}
.guide-section {
  margin-bottom: 1.5rem;
}
.guide-center {
  text-align: center;
}
.guide-title {
  font-size: var(--text-3xl);
  line-height: var(--text-3xl--line-height);
  font-weight: var(--font-weight-bold);
}
.guide-lede {
  margin-top: .25rem;
  font-size: var(--text-sm);
  line-height: var(--text-sm--line-height);
  color: var(--color-gray-500);
}
.guide-crumbs {
  margin-bottom: .5rem;
  font-size: var(--text-sm);
  line-height: var(--text-sm--line-height);
  color: var(--color-gray-500);
}
.guide-pest {
  color: var(--color-gray-600);
}
.guide-desc {
  font-size: var(--text-sm);
  line-height: var(--text-sm--line-height);
  color: var(--color-gray-500);
}
.guide-label {
  font-weight: var(--font-weight-medium);
}
.guide-body {
  font-size: var(--text-sm);
  line-height: var(--text-sm--line-height);
  color: var(--color-gray-600);
}
.guide-body--spaced {
  margin-bottom: .75rem;
}
.guide-hint {
  margin-bottom: .5rem;
  font-size: var(--text-xs);
  line-height: var(--text-xs--line-height);
  color: var(--color-gray-500);
}
.guide-eyebrow {
  margin-bottom: .5rem;
  font-size: var(--text-sm);
  line-height: var(--text-sm--line-height);
  font-weight: var(--font-weight-semibold);
  color: var(--color-gray-500);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
}
.guide-icon {
  width: 1.25rem;
  height: 1.25rem;
}
.guide-accent-note {
  font-size: var(--text-xs);
  line-height: var(--text-xs--line-height);
  font-weight: var(--font-weight-medium);
  color: var(--color-green-600);
}

/* Vertical rhythm for stacked children (the old space-y-N) */
.guide-stack > :not(:last-child) {
  margin-block-end: 1rem;
}
.guide-stack--md > :not(:last-child) {
  margin-block-end: .75rem;
}
.guide-stack--sm > :not(:last-child) {
  margin-block-end: .5rem;
}
.guide-facts {
  font-size: var(--text-sm);
  line-height: var(--text-sm--line-height);
}
.guide-facts > :not(:last-child) {
  margin-block-end: .75rem;
}

/* ---------- Links ---------- */
.guide-back-row {
  display: flex;
  align-items: center;
  gap: .5rem;
  margin-bottom: .5rem;
}
.guide-back-link {
  font-size: var(--text-sm);
  line-height: var(--text-sm--line-height);
  color: var(--color-green-600);
}
.guide-crumb-link {
  color: var(--color-green-600);
}
.guide-text-link {
  color: var(--color-green-600);
  text-decoration-line: underline;
}
.guide-text-link--strong {
  font-weight: var(--font-weight-medium);
}
.guide-text-link--sm {
  font-size: var(--text-sm);
  line-height: var(--text-sm--line-height);
}
.guide-clear-link {
  font-size: var(--text-sm);
  line-height: var(--text-sm--line-height);
  color: var(--color-green-600);
  text-decoration-line: underline;
}
.guide-source-link {
  margin-left: .25rem;
  font-size: var(--text-xs);
  line-height: var(--text-xs--line-height);
  color: var(--color-green-600);
}
.guide-companion-link {
  color: var(--color-green-700);
}
.guide-companion-extra {
  color: var(--color-green-600);
}
.guide-share-btn {
  flex-shrink: 0;
  color: var(--color-green-600);
  cursor: pointer;
}
.guide-pager__step {
  padding: .5rem .75rem;
  font-size: var(--text-sm);
  line-height: var(--text-sm--line-height);
  font-weight: var(--font-weight-medium);
  color: var(--color-green-600);
}
.guide-card__cta-link {
  margin-top: .25rem;
  font-size: var(--text-xs);
  line-height: var(--text-xs--line-height);
  font-weight: var(--font-weight-medium);
  white-space: nowrap;
  color: var(--color-green-600);
}
.guide-affiliate__link {
  font-size: var(--text-sm);
  line-height: var(--text-sm--line-height);
  color: var(--color-green-700);
}
.suggestion-card__add {
  font-size: var(--text-sm);
  line-height: var(--text-sm--line-height);
  font-weight: var(--font-weight-medium);
  color: var(--color-green-600);
  text-decoration-line: underline;
  cursor: pointer;
}
.suggestion-card__try-link {
  color: var(--color-green-600);
  text-decoration-line: underline;
}
.collection-warning__link {
  text-decoration-line: underline;
}
@media (hover: hover) {
  .guide-back-link:hover,
  .guide-share-btn:hover,
  .guide-pager__step:hover,
  .guide-card__cta-link:hover,
  .guide-source-link:hover {
    color: var(--color-green-800);
  }
  .guide-crumb-link:hover,
  .guide-companion-link:hover {
    text-decoration-line: underline;
  }
  .guide-text-link:hover {
    text-decoration-line: none;
  }
  .guide-clear-link:hover {
    color: var(--color-green-800);
  }
  .guide-affiliate__link:hover {
    color: var(--color-green-800);
    text-decoration-line: underline;
  }
  .suggestion-card__add:hover {
    color: var(--color-green-800);
    text-decoration-line: none;
  }
  .suggestion-card__try-link:hover {
    color: var(--color-green-800);
    text-decoration-line: none;
  }
  .collection-warning__link:hover {
    color: var(--color-amber-800);
  }
}

/* ---------- Search overlay + spinner ---------- */
.guide-search-overlay {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #ffffffcc;
  background-color: color-mix(in oklab, var(--color-white) 80%, transparent);
}
.guide-search-overlay__label {
  font-size: var(--text-sm);
  line-height: var(--text-sm--line-height);
  font-weight: var(--font-weight-medium);
  color: var(--color-gray-600);
}
.guide-spinner {
  width: 2rem;
  height: 2rem;
  border: 4px solid var(--color-green-200);
  border-top-color: var(--color-green-600);
  border-radius: 3.40282e38px;
  animation: guide-spin 1s linear infinite;
}
.guide-spinner--overlay {
  display: inline-block;
  margin-bottom: .75rem;
}
@keyframes guide-spin {
  to {
    transform: rotate(360deg);
  }
}

/* ---------- Search form ---------- */
.guide-search-form {
  display: flex;
  gap: .75rem;
}
.guide-search-form--centered {
  max-width: var(--container-xl);
  margin-inline: auto;
}
.guide-search-form__field {
  flex-grow: 1;
}
.guide-search-input {
  display: block;
  width: 100%;
  padding: .75rem 1rem;
  border: 1px solid var(--color-gray-400);
  border-radius: var(--radius-md);
  box-shadow: 0 1px 3px 0 #0000001a, 0 1px 2px -1px #0000001a;
}
.guide-search-input:focus {
  outline-color: var(--color-green-600);
}

/* ---------- Cards ---------- */
.guide-card {
  padding: 1.25rem;
  border: 1px solid var(--color-green-800);
  border-radius: var(--radius-lg);
  background-color: var(--color-white);
}
.guide-card--roomy {
  padding: 1.5rem;
}
.guide-card--stacked {
  margin-bottom: 1rem;
}
.guide-card--tinted {
  border-color: var(--color-green-200);
  background-color: var(--color-green-50);
}
.guide-card__title {
  margin-bottom: .75rem;
  font-size: var(--text-lg);
  line-height: var(--text-lg--line-height);
  font-weight: var(--font-weight-semibold);
}
.guide-card__title--compact {
  margin-bottom: .5rem;
}
.guide-card__title--flush {
  margin-bottom: 0;
}
.guide-card__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: .5rem;
}
.guide-card__head--roomy {
  margin-bottom: .75rem;
}
.guide-card__divider {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--color-gray-100);
}
.guide-grid-2 {
  display: grid;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  gap: 1rem;
  margin-bottom: 1rem;
}
@media (min-width: 48rem) {
  .guide-grid-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Highlighted call-to-action boxes */
.guide-promo {
  margin-bottom: 1.5rem;
  padding: 1.5rem;
  border: 1px solid var(--color-green-200);
  border-radius: var(--radius-lg);
  background-color: var(--color-green-50);
  text-align: center;
}
.guide-promo--mt-4 {
  margin-top: 1rem;
}
.guide-promo--mt-6 {
  margin-top: 1.5rem;
}
.guide-promo__title {
  margin-bottom: .25rem;
  font-weight: var(--font-weight-semibold);
  color: var(--color-green-800);
}
.guide-promo__text {
  margin-bottom: .75rem;
  font-size: var(--text-sm);
  line-height: var(--text-sm--line-height);
  color: var(--color-green-700);
}
.guide-join {
  margin-top: 1rem;
  margin-bottom: .5rem;
  text-align: center;
  font-size: var(--text-sm);
  line-height: var(--text-sm--line-height);
  color: var(--color-gray-500);
}
.guide-affiliate {
  margin-top: 1rem;
  margin-bottom: .5rem;
  text-align: center;
}
.guide-search-more {
  margin-top: 1rem;
  margin-bottom: 1.5rem;
  text-align: center;
}

/* ---------- Pills and chips ---------- */
.guide-pill {
  padding: .125rem .5rem;
  border-radius: 3.40282e38px;
  font-size: var(--text-xs);
  line-height: var(--text-xs--line-height);
}
.guide-pill--green,
.guide-pill--companion,
.guide-pill--wildlife,
.guide-pill--easy {
  background-color: var(--color-green-100);
}
.guide-pill--green,
.guide-pill--wildlife,
.guide-pill--easy {
  color: var(--color-green-700);
}
.guide-pill--type {
  display: inline-block;
  margin-top: .25rem;
}
.guide-pill--red,
.guide-pill--hard {
  background-color: var(--color-red-100);
  color: var(--color-red-700);
}
.guide-pill--gray {
  background-color: var(--color-gray-100);
  color: var(--color-gray-600);
}
.guide-pill--household {
  background-color: var(--color-gray-100);
  color: var(--color-gray-700);
}
.guide-pill--culinary {
  background-color: var(--color-orange-100);
  color: var(--color-orange-700);
}
.guide-pill--medicinal {
  background-color: var(--color-blue-100);
  color: var(--color-blue-700);
}
.guide-pill--craft {
  background-color: var(--color-purple-100);
  color: var(--color-purple-700);
}
.guide-pill--moderate {
  background-color: var(--color-yellow-100);
  color: var(--color-yellow-700);
}
.guide-pill--badge {
  display: inline-block;
  flex-shrink: 0;
  margin-left: .5rem;
}

.guide-wrap-list {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
}
.guide-wrap-list--tight {
  gap: .25rem;
}
.guide-wrap-list--inset {
  margin-top: .25rem;
}
.guide-wrap-list--mb-3 {
  margin-bottom: .75rem;
}
.guide-wrap-list--mb-4 {
  margin-bottom: 1rem;
}

.guide-chip {
  padding: .375rem .75rem;
  border-radius: 3.40282e38px;
  background-color: var(--color-gray-100);
  font-size: var(--text-xs);
  line-height: var(--text-xs--line-height);
  color: var(--color-gray-700);
  transition-property: color, background-color, border-color, outline-color, text-decoration-color, fill, stroke;
  transition-timing-function: var(--default-transition-timing-function);
  transition-duration: var(--default-transition-duration);
}
.guide-chip--lg {
  font-size: var(--text-sm);
  line-height: var(--text-sm--line-height);
}
@media (hover: hover) {
  .guide-chip:hover {
    background-color: var(--color-green-100);
    color: var(--color-green-700);
  }
}

/* ---------- Plant tiles (index, collection, not-found) ---------- */
.plant-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .75rem;
}
.plant-grid--mb-6 {
  margin-bottom: 1.5rem;
}
.plant-grid--mb-8 {
  margin-bottom: 2rem;
}
@media (min-width: 40rem) {
  .plant-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (min-width: 48rem) {
  .plant-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
.plant-tile {
  padding: 1rem;
  border: 1px solid var(--color-green-800);
  border-radius: var(--radius-lg);
  background-color: var(--color-white);
  transition-property: color, background-color, border-color, outline-color, text-decoration-color, fill, stroke;
  transition-timing-function: var(--default-transition-timing-function);
  transition-duration: var(--default-transition-duration);
}
.plant-tile__img {
  width: 100%;
  height: 7rem;
  margin-bottom: .5rem;
  border-radius: var(--radius-md);
  object-fit: cover;
}
.plant-tile__placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 7rem;
  margin-bottom: .5rem;
  border-radius: var(--radius-md);
  background-color: var(--color-green-100);
}
.plant-tile__placeholder-icon {
  font-size: var(--text-3xl);
  line-height: var(--text-3xl--line-height);
  color: var(--color-green-600);
}
.plant-tile__name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: var(--text-sm);
  line-height: var(--text-sm--line-height);
  font-weight: var(--font-weight-medium);
}
.plant-tile__sci {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: var(--text-xs);
  line-height: var(--text-xs--line-height);
  font-style: italic;
  color: var(--color-gray-400);
}
@media (hover: hover) {
  .plant-tile:hover {
    border-color: var(--color-green-400);
  }
  .plant-tile:hover .plant-tile__name {
    color: var(--color-green-600);
  }
}

/* ---------- Empty states ---------- */
.guide-empty {
  padding: 2rem;
  border-radius: var(--radius-lg);
  background-color: var(--color-gray-50);
  text-align: center;
}
.guide-empty--spaced {
  margin-bottom: 2rem;
}
.guide-empty__text {
  margin-bottom: .5rem;
  color: var(--color-gray-500);
}
.guide-empty__text--flush {
  margin-bottom: 0;
}
.guide-empty__text--roomy {
  margin-bottom: 1.25rem;
}
.guide-empty__note {
  font-size: var(--text-xs);
  line-height: var(--text-xs--line-height);
  color: var(--color-gray-400);
}
.guide-notfound__icon {
  font-size: var(--text-5xl);
  line-height: var(--text-5xl--line-height);
}
.guide-notfound__title {
  margin-top: .75rem;
  margin-bottom: .5rem;
  font-size: var(--text-2xl);
  line-height: var(--text-2xl--line-height);
  font-weight: var(--font-weight-bold);
}

/* ---------- Guide show page ---------- */
.guide-title-row {
  display: flex;
  align-items: center;
  gap: .5rem;
}
.guide-hero {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
@media (min-width: 40rem) {
  .guide-hero {
    flex-direction: row;
  }
}
.guide-hero__name {
  font-size: var(--text-2xl);
  line-height: var(--text-2xl--line-height);
  font-weight: var(--font-weight-bold);
}
.guide-hero__sci {
  font-size: var(--text-sm);
  line-height: var(--text-sm--line-height);
  font-style: italic;
  color: var(--color-gray-400);
}
.guide-hero__desc {
  margin-top: .5rem;
  font-size: var(--text-sm);
  line-height: var(--text-sm--line-height);
  color: var(--color-gray-600);
}

.guide-cta__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.guide-cta__title {
  font-size: var(--text-sm);
  line-height: var(--text-sm--line-height);
  font-weight: var(--font-weight-semibold);
  color: var(--color-gray-800);
}
.guide-cta__text {
  margin-top: .125rem;
  font-size: var(--text-xs);
  line-height: var(--text-xs--line-height);
  color: var(--color-gray-500);
}
.guide-cta__btn {
  flex-shrink: 0;
}
.guide-cta-center {
  margin-top: .75rem;
  text-align: center;
}

/* Example timeline */
.guide-timeline__label {
  margin-bottom: .75rem;
  font-size: var(--text-xs);
  line-height: var(--text-xs--line-height);
  font-weight: var(--font-weight-medium);
  color: var(--color-gray-500);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
}
.guide-timeline {
  margin-left: .25rem;
}
.guide-timeline__item,
.guide-step {
  display: flex;
  gap: .75rem;
}
.guide-rail {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.guide-timeline__icon,
.guide-step__num {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 3.40282e38px;
}
.guide-timeline__icon {
  background-color: var(--color-green-100);
  font-size: var(--text-base);
  line-height: var(--text-base--line-height);
}
.guide-timeline__line,
.guide-step__line {
  flex-grow: 1;
  width: .125rem;
  background-color: var(--color-green-200);
}
.guide-timeline__line {
  margin-block: .25rem;
}
.guide-step__line {
  margin-top: .25rem;
}
.guide-timeline__body {
  flex-grow: 1;
  min-width: 0;
  padding-bottom: .75rem;
}
.guide-timeline__body--last {
  padding-bottom: 0;
}
.guide-timeline__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: .5rem;
}
.guide-timeline__title {
  font-size: var(--text-sm);
  line-height: var(--text-sm--line-height);
  font-weight: var(--font-weight-medium);
  color: var(--color-gray-800);
}
.guide-timeline__when {
  flex-shrink: 0;
  padding: .125rem .375rem;
  border-radius: var(--radius-sm);
  background-color: var(--color-green-50);
  font-size: var(--text-xs);
  line-height: var(--text-xs--line-height);
  font-weight: var(--font-weight-medium);
  white-space: nowrap;
  color: var(--color-green-700);
}
.guide-timeline__detail {
  font-size: var(--text-xs);
  line-height: var(--text-xs--line-height);
  color: var(--color-gray-500);
}
.guide-timeline__note {
  display: flex;
  align-items: flex-start;
  gap: .375rem;
  margin-top: .75rem;
  font-size: var(--text-xs);
  line-height: var(--text-xs--line-height);
  color: var(--color-gray-500);
}

/* Growing conditions */
.guide-fact {
  display: flex;
  align-items: flex-start;
  gap: .5rem;
}
.guide-fact__icon {
  flex-shrink: 0;
  margin-top: .125rem;
}

/* Zones map */
.guide-zone-map {
  height: 300px;
  overflow: hidden;
  border: 1px solid var(--color-gray-200);
  border-radius: var(--radius-lg);
}

/* Growth stages */
.guide-step__num {
  background-color: var(--color-green-600);
  font-size: var(--text-sm);
  line-height: var(--text-sm--line-height);
  font-weight: var(--font-weight-medium);
  color: var(--color-white);
}
.guide-step__body {
  padding-bottom: 1rem;
}
.guide-step__head {
  display: flex;
  align-items: center;
  gap: .5rem;
}
.guide-step__duration {
  font-size: var(--text-xs);
  line-height: var(--text-xs--line-height);
  color: var(--color-gray-400);
}
.guide-step__desc {
  margin-top: .25rem;
  font-size: var(--text-sm);
  line-height: var(--text-sm--line-height);
  color: var(--color-gray-600);
}
.guide-step__tips {
  margin-top: .25rem;
  font-size: var(--text-sm);
  line-height: var(--text-sm--line-height);
  color: var(--color-green-700);
}

/* Uses */
.guide-use {
  display: flex;
  align-items: flex-start;
  gap: .75rem;
}
.guide-use__icon {
  flex-shrink: 0;
  margin-top: .125rem;
  font-size: var(--text-xl);
  line-height: var(--text-xl--line-height);
}
.guide-use__head {
  display: flex;
  align-items: center;
  gap: .5rem;
  margin-bottom: .125rem;
}
.guide-use__title {
  font-size: var(--text-sm);
  line-height: var(--text-sm--line-height);
  font-weight: var(--font-weight-medium);
}
.guide-disclaimer {
  margin-top: 1rem;
  padding-top: .75rem;
  border-top: 1px solid var(--color-gray-100);
  font-size: var(--text-xs);
  line-height: var(--text-xs--line-height);
  color: var(--color-gray-400);
}

/* Fun facts */
.guide-fun-fact {
  display: flex;
  align-items: flex-start;
  gap: .5rem;
  font-size: var(--text-sm);
  line-height: var(--text-sm--line-height);
  color: var(--color-green-800);
}
.guide-fun-fact__icon {
  flex-shrink: 0;
}

/* ---------- Dialogs (pest modal, photo lightbox) ---------- */
.guide-dialog {
  position: fixed;
  inset: 0;
  width: 100%;
  max-width: var(--container-md);
  margin: auto;
  padding: 0;
  border-radius: var(--radius-xl);
  box-shadow: 0 20px 25px -5px #0000001a, 0 8px 10px -6px #0000001a;
}
.guide-dialog::backdrop {
  background-color: #00000080;
  background-color: color-mix(in oklab, var(--color-black) 50%, transparent);
}
.guide-dialog__body {
  padding: 1.25rem;
}
.guide-dialog__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}
.guide-dialog__close,
.guide-gallery__close {
  font-size: var(--text-xl);
  line-height: 1;
  color: var(--color-gray-400);
  cursor: pointer;
}
.guide-gallery__close {
  flex-shrink: 0;
}
@media (hover: hover) {
  .guide-dialog__close:hover,
  .guide-gallery__close:hover {
    color: var(--color-gray-600);
  }
}
.guide-dialog__loading {
  display: flex;
  align-items: center;
  justify-content: center;
  padding-block: 2rem;
}
.guide-dialog__img {
  width: 100%;
  max-height: 16rem;
  margin-bottom: .75rem;
  border-radius: var(--radius-lg);
  object-fit: cover;
}

/* ---------- Photo gallery ---------- */
.guide-gallery {
  flex-shrink: 0;
}
@media (min-width: 40rem) {
  .guide-gallery {
    width: 18rem;
  }
}
@media (min-width: 48rem) {
  .guide-gallery {
    width: 20rem;
  }
}
.guide-gallery__hero {
  position: relative;
  display: block;
  width: 100%;
  overflow: hidden;
  border-radius: var(--radius-lg);
  cursor: zoom-in;
}
.guide-gallery__hero-img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition-property: opacity;
  transition-timing-function: var(--default-transition-timing-function);
  transition-duration: var(--default-transition-duration);
}
.guide-gallery__badge {
  position: absolute;
  right: .5rem;
  bottom: .5rem;
  display: flex;
  align-items: center;
  gap: .25rem;
  padding: .25rem .5rem;
  border-radius: var(--radius-md);
  background-color: #0009;
  background-color: color-mix(in oklab, var(--color-black) 60%, transparent);
  font-size: var(--text-xs);
  line-height: var(--text-xs--line-height);
  color: var(--color-white);
  pointer-events: none;
  transition-property: color, background-color, border-color, outline-color, text-decoration-color, fill, stroke;
  transition-timing-function: var(--default-transition-timing-function);
  transition-duration: var(--default-transition-duration);
}
.guide-gallery__badge-icon {
  width: .875rem;
  height: .875rem;
}
@media (hover: hover) {
  .guide-gallery__hero:hover .guide-gallery__hero-img {
    opacity: .9;
  }
  .guide-gallery__hero:hover .guide-gallery__badge {
    background-color: #000000bf;
    background-color: color-mix(in oklab, var(--color-black) 75%, transparent);
  }
}
.guide-gallery__thumbs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: .5rem;
  margin-top: .5rem;
  list-style: none;
}
.guide-gallery__thumb {
  display: block;
  width: 100%;
  overflow: hidden;
  border: 1px solid var(--color-gray-200);
  border-radius: var(--radius-md);
  cursor: zoom-in;
  transition-property: color, background-color, border-color, outline-color, text-decoration-color, fill, stroke;
  transition-timing-function: var(--default-transition-timing-function);
  transition-duration: var(--default-transition-duration);
}
@media (hover: hover) {
  .guide-gallery__thumb:hover {
    border-color: var(--color-green-600);
  }
}
.guide-gallery__thumb-img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}
.guide-gallery__credit {
  margin-top: .5rem;
  font-size: var(--text-xs);
  line-height: var(--leading-snug);
  color: var(--color-gray-400);
}
.guide-gallery__credit-link,
.guide-gallery__source-link {
  text-decoration-line: underline;
}
.guide-gallery__credit-link {
  text-decoration-color: var(--color-gray-300);
}
@media (hover: hover) {
  .guide-gallery__credit-link:hover {
    color: var(--color-gray-600);
  }
  .guide-gallery__source-link:hover {
    color: var(--color-gray-700);
  }
}
.guide-gallery__approx {
  margin-top: .25rem;
  font-size: var(--text-xs);
  line-height: var(--leading-snug);
  color: var(--color-amber-700);
}
/* margin: auto is load-bearing: a native modal <dialog> centres via the
   browser's default `margin: auto`, and the reset in base.css sets margin
   to 0 on every element, which pins the dialog to the top-left. max-height
   keeps tall photos inside the viewport on short screens. */
.guide-gallery__dialog {
  width: 92vw;
  max-width: var(--container-3xl);
  max-height: 90vh;
  margin: auto;
  padding: 0;
  border-radius: var(--radius-lg);
  background-color: var(--color-white);
}
.guide-gallery__dialog::backdrop {
  background-color: #000000b3;
  background-color: color-mix(in oklab, var(--color-black) 70%, transparent);
}
.guide-gallery__panel {
  padding: .75rem;
}
.guide-gallery__bar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: .75rem;
  margin-bottom: .5rem;
}
.guide-gallery__counter {
  font-size: var(--text-sm);
  line-height: var(--text-sm--line-height);
  font-weight: var(--font-weight-medium);
  color: var(--color-gray-700);
}
.guide-gallery__full {
  width: 100%;
  max-height: 70vh;
  border-radius: var(--radius-sm);
  background-color: var(--color-gray-50);
  object-fit: contain;
}
.guide-gallery__nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  margin-top: .5rem;
}
.guide-gallery__step {
  font-size: var(--text-sm);
  line-height: var(--text-sm--line-height);
  color: var(--color-green-600);
  cursor: pointer;
}
.guide-gallery__step:disabled {
  opacity: .3;
  cursor: default;
}
@media (hover: hover) {
  .guide-gallery__step:hover {
    color: var(--color-green-800);
  }
}
.guide-gallery__caption {
  flex-grow: 1;
  font-size: var(--text-xs);
  line-height: var(--text-xs--line-height);
  color: var(--color-gray-500);
  text-align: center;
}

/* ---------- Mobile filter panel (toggled by guide_filter_controller) ----------
   The panel itself is hidden below md by its own class in shared/_plant_filters;
   .is-open reveals it. */
[data-guide-filter-target="panel"].is-open {
  display: block;
}

/* ---------- Collections ---------- */
.collection-grid {
  display: grid;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  gap: 1rem;
}
@media (min-width: 40rem) {
  .collection-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (min-width: 48rem) {
  .collection-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
.collection-card {
  padding: 1.5rem;
  border: 1px solid var(--color-green-800);
  border-radius: var(--radius-lg);
  background-color: var(--color-white);
  transition-property: color, background-color, border-color, outline-color, text-decoration-color, fill, stroke;
  transition-timing-function: var(--default-transition-timing-function);
  transition-duration: var(--default-transition-duration);
}
.collection-card__icon {
  margin-bottom: .5rem;
  font-size: var(--text-3xl);
  line-height: var(--text-3xl--line-height);
}
.collection-card__name {
  margin-bottom: .25rem;
  font-size: var(--text-base);
  line-height: var(--text-base--line-height);
  font-weight: var(--font-weight-semibold);
}
.collection-card__desc {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: .75rem;
  font-size: var(--text-sm);
  line-height: var(--text-sm--line-height);
  color: var(--color-gray-500);
}
@media (hover: hover) {
  .collection-card:hover {
    border-color: var(--color-green-400);
  }
  .collection-card:hover .collection-card__name {
    color: var(--color-green-600);
  }
}

.collection-chip {
  display: inline-flex;
  align-items: center;
  gap: .375rem;
  padding: .375rem .75rem;
  border: 1px solid var(--color-green-200);
  border-radius: 3.40282e38px;
  background-color: var(--color-green-50);
  font-size: var(--text-xs);
  line-height: var(--text-xs--line-height);
  color: var(--color-green-700);
  transition-property: color, background-color, border-color, outline-color, text-decoration-color, fill, stroke;
  transition-timing-function: var(--default-transition-timing-function);
  transition-duration: var(--default-transition-duration);
}
@media (min-width: 40rem) {
  .collection-chip {
    font-size: var(--text-sm);
    line-height: var(--text-sm--line-height);
  }
}
@media (hover: hover) {
  .collection-chip:hover {
    background-color: var(--color-green-100);
  }
}

.collection-hero {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin-bottom: .5rem;
}
.collection-hero__icon {
  font-size: var(--text-4xl);
  line-height: var(--text-4xl--line-height);
}
.collection-warning {
  margin-bottom: 1.5rem;
  padding: 1rem;
  border: 1px solid var(--color-amber-300);
  border-radius: var(--radius-lg);
  background-color: var(--color-amber-50);
}
.collection-warning__body {
  display: flex;
  gap: .75rem;
}
.collection-warning__icon {
  flex-shrink: 0;
  font-size: var(--text-xl);
  line-height: var(--text-xl--line-height);
  color: var(--color-amber-600);
}
.collection-warning__text {
  font-size: var(--text-sm);
  line-height: var(--text-sm--line-height);
  color: var(--color-amber-800);
}
.collection-warning__source {
  margin-top: .5rem;
  font-size: var(--text-xs);
  line-height: var(--text-xs--line-height);
  color: var(--color-amber-600);
}

/* ---------- Category suggestions ---------- */
.suggestion-card__name {
  font-size: var(--text-lg);
  line-height: var(--text-lg--line-height);
  font-weight: var(--font-weight-semibold);
}
.suggestion-card__variety {
  font-size: var(--text-sm);
  line-height: var(--text-sm--line-height);
}
.suggestion-card__fact {
  margin-bottom: .75rem;
  padding: .75rem;
  border-radius: var(--radius-md);
  background-color: var(--color-gray-50);
}
.suggestion-card__fact-text {
  font-size: var(--text-xs);
  line-height: var(--text-xs--line-height);
  color: var(--color-gray-500);
}
.suggestion-card__form {
  display: inline;
}
.guide-pager {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  margin-top: 1.5rem;
}
.guide-pager__page {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 3.40282e38px;
  font-size: var(--text-sm);
  line-height: var(--text-sm--line-height);
}
.guide-pager__page--current {
  background-color: var(--color-green-600);
  font-weight: var(--font-weight-semibold);
  color: var(--color-white);
}
.guide-pager__page--link {
  font-weight: var(--font-weight-medium);
  color: var(--color-gray-600);
}
@media (hover: hover) {
  .guide-pager__page--link:hover {
    background-color: var(--color-green-50);
    color: var(--color-green-600);
  }
}
.suggestion-more {
  margin-top: 1rem;
  text-align: center;
}
.suggestion-more__count {
  margin-bottom: .75rem;
  font-size: var(--text-xs);
  line-height: var(--text-xs--line-height);
  color: var(--color-gray-400);
}
.suggestion-wishlist {
  margin-top: 1.5rem;
  text-align: center;
}
.suggestion-others {
  margin-top: 2rem;
}
.suggestion-others__title {
  margin-bottom: .75rem;
  font-size: var(--text-sm);
  line-height: var(--text-sm--line-height);
  font-weight: var(--font-weight-semibold);
  color: var(--color-gray-500);
}
.suggestion-others__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .75rem;
}
.suggestion-category {
  padding: 1rem;
  border: 1px solid var(--color-green-800);
  border-radius: var(--radius-lg);
  background-color: var(--color-white);
  text-align: center;
  transition-property: color, background-color, border-color, outline-color, text-decoration-color, fill, stroke;
  transition-timing-function: var(--default-transition-timing-function);
  transition-duration: var(--default-transition-duration);
}
.suggestion-category__icon {
  font-size: var(--text-2xl);
  line-height: var(--text-2xl--line-height);
}
.suggestion-category__label {
  margin-top: .25rem;
  font-size: var(--text-sm);
  line-height: var(--text-sm--line-height);
  font-weight: var(--font-weight-medium);
}
@media (hover: hover) {
  .suggestion-category:hover {
    border-color: var(--color-green-300);
  }
}
