.botanical-library-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 16px;
  margin-block: 24px;
}
.botanical-library-controls label {
  display: grid;
  gap: 8px;
  flex: 1 1 220px;
  min-width: 0;
}
.botanical-library-controls input,
.botanical-library-controls select {
  width: 100%;
  min-height: 44px;
  box-sizing: border-box;
  font: inherit;
}
.botanical-library-controls [role="status"] {
  flex-basis: 100%;
}
.botanical-library-controls :is(input, select, button, a):focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
}
.botanical-library-controls .text-button,
.botanical-library-card-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}
.botanical-library-controls[hidden],
[data-botanical-library] [hidden] {
  display: none !important;
}
.botanical-library-meta strong {
  overflow-wrap: anywhere;
}

/* Keep browsing concise; each card retains its full guidance in native details. */
.botanical-library-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: start;
  gap: 24px;
}
.botanical-library-card {
  display: flex;
  flex-direction: column;
}
.botanical-library-card-image {
  aspect-ratio: 16 / 10;
  min-height: 0;
  background-size: cover;
}
.botanical-library-card-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.botanical-library-card-body {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 12px;
  padding: 20px;
}
.botanical-library-card-body h3 {
  font-size: 21px;
  line-height: 1.3;
  overflow-wrap: break-word;
}
.botanical-library-card-body > p {
  font-size: 15px;
  line-height: 1.5;
}
.botanical-library-card-body .botanical-library-safe-note {
  font-size: 13px;
}
.botanical-library-details {
  border-block: 1px solid rgba(221, 174, 72, .22);
}
.botanical-library-details summary {
  padding: 12px 0;
  min-height: 44px;
  box-sizing: border-box;
  cursor: pointer;
  color: #ead7a5;
  font-size: 14px;
  font-weight: 700;
}
.botanical-library-details summary::marker { color: #d6a535; }
.botanical-library-details[open] > :not(summary) { margin-bottom: 14px; }
.botanical-library-details > a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-right: 12px;
}
.botanical-library-details .botanical-library-meta {
  border: 0;
  padding-top: 4px;
  gap: 12px;
}
.botanical-library-details .botanical-library-meta > div {
  grid-template-columns: 1fr;
  gap: 3px;
}
.botanical-library-details .botanical-library-meta strong {
  font-size: 14px;
  font-weight: 500;
  overflow-wrap: normal;
}
.botanical-library-card :is(summary, a, button, select):focus-visible {
  outline: 2px solid #d6a535;
  outline-offset: 3px;
}
@media (max-width: 1000px) {
  .botanical-library-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .botanical-library-grid { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .botanical-library-card-body { padding: 18px; }
}
