:root {
  --bg: #f6f1e6;
  --bg-deep: #d8d0be;
  --panel: rgba(255, 251, 243, 0.82);
  --panel-strong: rgba(248, 242, 229, 0.95);
  --line: rgba(57, 63, 40, 0.14);
  --text: #263125;
  --muted: #61705b;
  --accent: #5c6d3a;
  --accent-soft: #c5cf98;
  --accent-dark: #374522;
  --accent-deep: #234531;
  --shadow: 0 18px 40px rgba(38, 49, 37, 0.12);
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --sidebar-width: 19rem;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  padding-top: 6.9rem;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(203, 214, 162, 0.52), transparent 30%),
    radial-gradient(circle at 85% 12%, rgba(255, 234, 184, 0.45), transparent 28%),
    linear-gradient(180deg, #f7f4ec 0%, var(--bg) 45%, #ece7da 100%);
  font-family: "Avenir Next", "Gill Sans", "Trebuchet MS", sans-serif;
}

button,
input,
a {
  font: inherit;
}

a {
  color: var(--accent-dark);
}

.project-home-shell {
  position: fixed;
  inset: 0 0 auto 0;
  height: 6.2rem;
  z-index: 35;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(247, 244, 236, 0.94), rgba(247, 244, 236, 0.72) 58%, rgba(247, 244, 236, 0));
  backdrop-filter: blur(10px);
}

.project-home {
  --project-home-banner-leaf: url("assets/Logo/Annua Banner L.png");
  position: fixed;
  top: 0.45rem;
  left: 50%;
  z-index: 40;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  padding: 0.34rem clamp(1.4rem, 2.4vw, 1.9rem) 0.78rem;
  border-radius: 999px;
  border: 1px solid rgba(92, 109, 58, 0.18);
  background: linear-gradient(180deg, rgba(252, 249, 243, 0.9), rgba(244, 237, 224, 0.72));
  box-shadow:
    0 16px 30px rgba(38, 49, 37, 0.08),
    inset 0 0 0 1px rgba(255, 255, 255, 0.28);
  cursor: pointer;
  color: var(--accent-deep);
  text-decoration: none;
  backdrop-filter: blur(14px);
  isolation: isolate;
  overflow: visible;
  transition: transform 180ms ease, filter 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.project-home:hover,
.project-home:focus-visible {
  transform: translateX(-50%) translateY(-1px) scale(1.01);
  border-color: rgba(92, 109, 58, 0.36);
  filter: drop-shadow(0 8px 22px rgba(35, 69, 49, 0.14));
  box-shadow:
    0 20px 34px rgba(38, 49, 37, 0.1),
    inset 0 0 0 1px rgba(255, 255, 255, 0.32);
}

.project-home:focus-visible {
  outline: 2px solid rgba(86, 115, 76, 0.28);
  outline-offset: 0.25rem;
  border-radius: 1.5rem;
}

.project-home::before,
.project-home::after {
  content: "";
  position: absolute;
  bottom: -0.28rem;
  z-index: 0;
  width: clamp(3rem, 5.1vw, 4.15rem);
  aspect-ratio: 1.06;
  background: center / contain no-repeat var(--project-home-banner-leaf);
  opacity: 0.74;
  pointer-events: none;
  filter: drop-shadow(0 6px 12px rgba(35, 69, 49, 0.12));
}

.project-home::before {
  left: -2.08rem;
  transform-origin: 74% 100%;
  animation: project-home-sway-left 7.2s ease-in-out infinite;
}

.project-home::after {
  right: -2.08rem;
  transform-origin: 26% 100%;
  animation: project-home-sway-right 7.2s ease-in-out infinite -3.8s;
}

.project-home__text {
  z-index: 1;
  display: grid;
  gap: 0.14rem;
  text-align: center;
  position: relative;
  padding: 0 clamp(1.15rem, 2.8vw, 1.75rem);
  animation: project-home-breathe 6.4s ease-in-out infinite;
}

.project-home__text::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.35rem;
  width: calc(100% + 0.35rem);
  height: 1px;
  transform-origin: left center;
  background: linear-gradient(
    90deg,
    rgba(35, 69, 49, 0.4),
    rgba(35, 69, 49, 0.12) 82%,
    transparent
  );
  animation: project-home-line 5.8s ease-in-out infinite;
}

.project-home__eyebrow {
  font-size: 0.64rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(35, 69, 49, 0.76);
  font-weight: 700;
}

.project-home__title {
  font-family: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", serif;
  font-size: clamp(1.2rem, 2.2vw, 2rem);
  font-weight: 700;
  line-height: 0.98;
  letter-spacing: 0.03em;
  color: var(--accent-deep);
  white-space: nowrap;
  text-shadow: 0 1px 0 rgba(255, 252, 245, 0.9);
}

.project-menu {
  position: fixed;
  top: 1rem;
  left: 1.4rem;
  z-index: 41;
}

.project-menu[open] {
  filter: drop-shadow(0 14px 28px rgba(38, 49, 37, 0.14));
}

.project-menu__trigger {
  list-style: none;
  cursor: pointer;
  padding: 0.62rem 1rem;
  border-radius: 999px;
  border: 1.5px solid rgba(92, 109, 58, 0.44);
  background: rgba(248, 242, 229, 0.8);
  color: var(--accent-deep);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  backdrop-filter: blur(14px);
  box-shadow: 0 0 0 1px rgba(197, 207, 152, 0.28);
  transition: border-color 160ms ease, background-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.project-menu__trigger:hover,
.project-menu__trigger:focus-visible {
  border-color: rgba(92, 109, 58, 0.7);
  background: rgba(245, 240, 226, 0.94);
  box-shadow: 0 0 0 1px rgba(92, 109, 58, 0.22), 0 10px 22px rgba(38, 49, 37, 0.08);
  transform: translateY(-1px);
}

.project-menu__trigger:focus-visible {
  outline: none;
}

.project-menu__trigger::-webkit-details-marker {
  display: none;
}

.project-menu__panel {
  display: grid;
  gap: 0.22rem;
  min-width: 13rem;
  margin-top: 0.5rem;
  padding: 0.55rem;
  border-radius: 18px;
  border: 1px solid rgba(57, 63, 40, 0.1);
  background: rgba(255, 251, 243, 0.97);
  backdrop-filter: blur(18px);
}

.project-menu__panel a,
.project-menu__action {
  display: block;
  padding: 0.6rem 0.72rem;
  border-radius: 12px;
  border: 0;
  background: transparent;
  text-align: left;
  text-decoration: none;
  color: var(--text);
  cursor: pointer;
}

.project-menu__panel a:hover,
.project-menu__panel a:focus-visible,
.project-menu__action:hover,
.project-menu__action:focus-visible {
  background: rgba(197, 207, 152, 0.22);
  color: var(--accent-dark);
}

.back-to-top {
  position: fixed;
  right: 1.2rem;
  bottom: 1.2rem;
  z-index: 35;
  width: 3rem;
  height: 3rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(57, 63, 40, 0.12);
  border-radius: 999px;
  background: rgba(255, 251, 243, 0.88);
  color: var(--accent-dark);
  box-shadow: 0 14px 30px rgba(38, 49, 37, 0.14);
  backdrop-filter: blur(14px);
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease, opacity 180ms ease;
}

.back-to-top:hover,
.back-to-top:focus-visible {
  transform: translateY(-2px);
  background: rgba(255, 253, 248, 0.96);
  box-shadow: 0 18px 34px rgba(38, 49, 37, 0.18);
}

.back-to-top:focus-visible {
  outline: 2px solid rgba(86, 115, 76, 0.28);
  outline-offset: 0.22rem;
}

.back-to-top span {
  font-size: 1.2rem;
  line-height: 1;
}

.page-shell {
  display: grid;
  grid-template-columns: minmax(18rem, var(--sidebar-width)) 1fr;
  gap: 1.5rem;
  min-height: 100vh;
  padding: 1.5rem;
}

.sidebar,
.hero,
.detail-card,
.overview-card {
  backdrop-filter: blur(16px);
}

.sidebar {
  position: sticky;
  top: 6.95rem;
  align-self: start;
  display: block;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: calc(var(--radius-lg) + 4px);
  background: linear-gradient(180deg, rgba(255, 252, 246, 0.96), rgba(244, 236, 221, 0.82));
  box-shadow: var(--shadow);
}

.sidebar__rail {
  display: grid;
  gap: 0.85rem;
}

.sidebar__controls,
.sidebar__results-panel {
  border: 1px solid rgba(57, 63, 40, 0.08);
  border-radius: calc(var(--radius-lg) - 2px);
  background: rgba(255, 255, 255, 0.48);
}

.sidebar__controls {
  display: grid;
  gap: 0.85rem;
  padding: 1rem;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.sidebar__search-intro {
  display: grid;
  gap: 0.4rem;
}

.sidebar__search-intro p {
  margin: 0;
  color: var(--muted);
  font-size: 0.94rem;
}

.sidebar__results-panel {
  min-height: 0;
  display: grid;
  gap: 0.9rem;
  padding: 1rem;
}

.sidebar__results-panel[hidden],
.control-stack[hidden] {
  display: none;
}

.archive-results-panel {
  scroll-margin-top: 7.2rem;
  border: 1px solid var(--line);
  border-radius: calc(var(--radius-lg) + 2px);
  background: linear-gradient(160deg, rgba(255, 253, 248, 0.9), rgba(237, 231, 219, 0.78));
  box-shadow: var(--shadow);
}

.archive-results-panel__body {
  display: grid;
  gap: 0.8rem;
  align-items: start;
}

.sidebar__results-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
}

.sidebar__results-header .eyebrow {
  margin-bottom: 0.25rem;
}

.sidebar__header h1,
.sidebar__search-intro h2,
.sidebar__results-header h2,
.hero__copy h2,
.detail-header h2,
.essay-header h2,
.overview-card h3 {
  margin: 0;
  font-family: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", serif;
  line-height: 1.05;
}

.sidebar__header h1 {
  font-size: clamp(1.45rem, 1.8vw, 1.85rem);
  max-width: 12ch;
}

.sidebar__search-intro h2,
.sidebar__results-header h2 {
  font-size: 1.28rem;
}

.sidebar__search-intro h2 {
  max-width: 14ch;
}

.sidebar__lede,
.sidebar__search-intro p,
.hero__copy p,
.detail-grid p,
.essay-body p,
.overview-card p,
.source-note,
.section-card p,
.chip,
.result-card__meta,
.result-card__preview,
.filter-label,
.search span,
.sidebar__meta,
.spotlight-card__meta,
.spotlight-card__summary,
.fact__label,
.fact__value {
  line-height: 1.45;
}

.fact__detail {
  margin: 0.28rem 0 0;
  font-size: 0.84rem;
  line-height: 1.45;
  color: var(--muted);
}

.eyebrow {
  margin: 0 0 0.4rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.75rem;
  color: var(--muted);
}

.search {
  display: grid;
  gap: 0.45rem;
}

.control-stack {
  display: grid;
  gap: 0.8rem;
}

.search span,
.filter-label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.11em;
  color: var(--muted);
}

.search input {
  width: 100%;
  padding: 0.92rem 1rem;
  border: 1px solid rgba(92, 109, 58, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.76);
  color: var(--text);
  outline: none;
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.search input:focus {
  border-color: rgba(92, 109, 58, 0.48);
  box-shadow: 0 0 0 4px rgba(197, 207, 152, 0.28);
  transform: translateY(-1px);
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.chip-row--segmented {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.45rem;
}

.chip-row--segmented .chip {
  justify-content: center;
  text-align: center;
}

.chip {
  border: 1px solid rgba(92, 109, 58, 0.18);
  background: rgba(255, 255, 255, 0.68);
  color: var(--text);
  border-radius: 999px;
  padding: 0.52rem 0.86rem;
  cursor: pointer;
  transition: all 150ms ease;
}

.chip:hover,
.chip:focus-visible {
  border-color: rgba(92, 109, 58, 0.44);
  transform: translateY(-1px);
}

.chip.is-active {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
  border-color: transparent;
  color: white;
}

.chip--ghost {
  background: rgba(255, 255, 255, 0.7);
}

.control-field {
  display: grid;
  gap: 0.42rem;
}

.control-field select {
  width: 100%;
  padding: 0.78rem 0.9rem;
  border: 1px solid rgba(92, 109, 58, 0.18);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.76);
  color: var(--text);
  outline: none;
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.control-field select:focus {
  border-color: rgba(92, 109, 58, 0.48);
  box-shadow: 0 0 0 4px rgba(197, 207, 152, 0.28);
  transform: translateY(-1px);
}

.sidebar__actions {
  display: grid;
}

.sidebar__meta {
  font-size: 0.92rem;
  color: var(--muted);
}

.sidebar__state {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.results-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(92, 109, 58, 0.14);
  font-size: 0.78rem;
  color: var(--accent-dark);
}

.results-chip--count {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
  border-color: transparent;
  color: white;
}

.results-spotlight {
  display: grid;
  align-self: start;
}

.spotlight-card {
  width: 100%;
  text-align: left;
  display: grid;
  gap: 0.55rem;
  padding: 1rem;
  border: 1px solid rgba(92, 109, 58, 0.15);
  border-radius: var(--radius-md);
  background: linear-gradient(145deg, rgba(244, 247, 232, 0.96), rgba(255, 251, 243, 0.92));
  cursor: pointer;
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.spotlight-card:hover,
.spotlight-card:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(92, 109, 58, 0.4);
  box-shadow: 0 12px 26px rgba(38, 49, 37, 0.08);
}

.spotlight-card--empty {
  cursor: default;
}

.spotlight-card--empty:hover,
.spotlight-card--empty:focus-visible {
  transform: none;
  border-color: rgba(92, 109, 58, 0.15);
  box-shadow: none;
}

.spotlight-card__eyebrow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
}

.spotlight-card__title,
.spotlight-card__meta,
.spotlight-card__summary {
  margin: 0;
}

.spotlight-card__title {
  font-size: 1.05rem;
  font-weight: 700;
}

.spotlight-card__meta {
  font-size: 0.88rem;
  color: var(--muted);
}

.spotlight-card__action {
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-dark);
}

.sidebar__list {
  overflow: auto;
  min-height: 0;
  display: grid;
  gap: 0.8rem;
  padding-right: 0.2rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--line);
  scrollbar-gutter: stable;
}

.archive-results-panel .sidebar__list {
  overflow: auto;
  max-height: min(58vh, 34rem);
  padding-right: 0.15rem;
  grid-template-columns: 1fr;
}

.archive-results-panel .result-card,
.archive-results-panel .spotlight-card {
  height: 100%;
}

.archive-results-panel .spotlight-card {
  padding: 0.9rem;
}

.archive-results-panel .result-card {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.85rem;
  padding: 0.8rem 0.85rem;
}

.search-result-row__main {
  display: grid;
  gap: 0.18rem;
  min-width: 0;
}

.archive-results-panel .result-card__title {
  font-size: 0.98rem;
}

.archive-results-panel .result-card__meta {
  font-size: 0.86rem;
}

.search-result-row__tags {
  justify-content: flex-end;
  flex-shrink: 0;
}

.result-card {
  width: 100%;
  text-align: left;
  padding: 1rem;
  border: 1px solid rgba(57, 63, 40, 0.08);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.7);
  cursor: pointer;
  transition: transform 150ms ease, border-color 150ms ease, background 150ms ease;
}

.result-card:hover,
.result-card:focus-visible,
.result-card.is-active {
  transform: translateY(-1px);
  border-color: rgba(92, 109, 58, 0.34);
  background: rgba(249, 246, 238, 0.96);
}

.result-card__title {
  margin: 0;
  font-size: 1rem;
}

.result-card__eyebrow {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 0.35rem;
  font-size: 0.71rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
}

.result-card__index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2rem;
  padding: 0.18rem 0.42rem;
  border-radius: 999px;
  background: rgba(92, 109, 58, 0.12);
  color: var(--accent-dark);
  font-weight: 700;
}

.result-card__meta {
  margin-top: 0.35rem;
  font-size: 0.88rem;
  color: var(--muted);
}

.result-card__preview {
  margin: 0.58rem 0 0;
  font-size: 0.91rem;
  color: var(--text);
}

.result-card__tags {
  margin-top: 0.55rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.result-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
  background: rgba(197, 207, 152, 0.26);
  font-size: 0.76rem;
  color: var(--accent-dark);
}

.result-pill--species {
  background: rgba(92, 109, 58, 0.18);
  color: var(--accent-dark);
}

.result-pill--essay {
  background: rgba(199, 182, 150, 0.28);
  color: #5d513c;
}

.result-pill--cultivation {
  background: rgba(186, 125, 88, 0.22);
  color: #7b4931;
}

.result-pill--taxonomy {
  background: rgba(104, 117, 132, 0.2);
  color: #465160;
}

.content {
  display: grid;
  gap: 1.2rem;
  align-content: start;
  min-width: 0;
}

.site-footer {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.7rem 1.2rem;
  align-items: start;
  padding: 0.4rem 0 1.2rem;
  margin-top: 0.35rem;
  border-top: 1px solid rgba(57, 63, 40, 0.08);
}

.site-footer p {
  margin: 0;
}

.site-footer__item {
  min-width: 0;
  text-align: center;
}

.site-footer__item--support .site-footer__link {
  color: var(--accent-dark);
}

.site-footer__link {
  color: var(--muted);
  font-size: 0.92rem;
  text-decoration: underline;
  text-underline-offset: 0.18rem;
}

.site-footer__link:hover,
.site-footer__link:focus-visible {
  color: var(--accent-dark);
}

body[data-view="references"] .site-footer__item--references,
body[data-view="references"] .site-footer__item--feedback,
body[data-view="policy"] .site-footer__item--policy {
  display: none;
}

.reference-essay-stack {
  display: grid;
  gap: 1rem;
}

.detail-card--reference-hub .essay-header {
  margin-bottom: 0.35rem;
}

.reference-stack-lead {
  margin: 0;
  max-width: 68ch;
  color: var(--muted);
}

.glossary-overview-grid,
.glossary-band,
.glossary-card-grid {
  display: grid;
  gap: 1rem;
}

.glossary-overview-grid,
.glossary-card-grid {
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  align-items: start;
}

.glossary-band {
  grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr));
}

.glossary-overview-group,
.glossary-card {
  display: grid;
  gap: 0.7rem;
  align-content: start;
}

.glossary-overview-group .fact__label,
.glossary-card .eyebrow {
  margin-bottom: 0;
}

.glossary-card p,
.glossary-band p {
  margin: 0;
}

.glossary-card__header {
  display: grid;
  gap: 0.3rem;
}

.glossary-card__header h3 {
  margin: 0;
}

.glossary-checklist {
  display: grid;
  gap: 0.55rem;
}

.feedback-form {
  display: grid;
  gap: 1rem;
}

.feedback-form__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
}

.feedback-form__field--wide {
  grid-column: 1 / -1;
}

.feedback-form textarea,
.feedback-form input,
.feedback-form select {
  width: 100%;
}

.feedback-form__actions {
  display: grid;
  gap: 0.6rem;
  align-items: start;
}

.feedback-form__status {
  margin: 0;
}

.feedback-form__status--pending {
  color: var(--accent-dark);
}

.feedback-form__status--success {
  color: #2f5a2b;
}

.feedback-form__status--error {
  color: #8a3b2f;
}

.feedback-form__honeypot {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.support-callout {
  display: grid;
  gap: 0.85rem;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(57, 63, 40, 0.08);
}

.support-callout__lead {
  margin: 0;
}

.support-callout__actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

body[data-view="landing"] .archive-results-panel {
  order: -1;
}

.hero {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(20rem, 1.18fr) minmax(18rem, 0.82fr);
  gap: 1rem;
  padding: 0.95rem;
  border: 1px solid var(--line);
  border-radius: calc(var(--radius-lg) + 6px);
  background: linear-gradient(160deg, rgba(255, 253, 248, 0.92), rgba(238, 232, 220, 0.78));
  box-shadow: var(--shadow);
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto -12% -30% auto;
  width: 18rem;
  height: 18rem;
  background: radial-gradient(circle, rgba(197, 207, 152, 0.32), transparent 65%);
  pointer-events: none;
}

.hero__media {
  min-height: 18rem;
  border-radius: calc(var(--radius-lg) - 4px);
  overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2);
}

.hero__media--references {
  padding: 0.45rem;
  background:
    radial-gradient(circle at 14% 18%, rgba(213, 223, 188, 0.48), transparent 30%),
    linear-gradient(180deg, rgba(248, 245, 237, 0.98), rgba(235, 229, 216, 0.88));
}

.reference-collage {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem;
  height: 100%;
}

.reference-collage__tile {
  position: relative;
  display: block;
  min-height: 10.4rem;
  border-radius: calc(var(--radius-lg) - 8px);
  overflow: hidden;
  text-decoration: none;
  color: #f8f5ec;
  background: rgba(219, 225, 193, 0.35);
}

.reference-collage__tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(32, 38, 20, 0.02), rgba(32, 38, 20, 0.78));
}

.reference-collage__tile img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.reference-collage__label {
  position: absolute;
  left: 0.8rem;
  right: 0.8rem;
  bottom: 0.7rem;
  z-index: 1;
  font-size: 0.8rem;
  line-height: 1.3;
  font-weight: 600;
  text-shadow: 0 1px 6px rgba(22, 27, 14, 0.55);
}

.hero__media--landing {
  display: grid;
  align-content: stretch;
  padding: 0.4rem;
  min-height: 0;
  background:
    radial-gradient(circle at 18% 16%, rgba(223, 231, 198, 0.46), transparent 30%),
    linear-gradient(180deg, rgba(248, 245, 237, 0.98), rgba(235, 229, 216, 0.88));
}

.reference-note-block {
  margin-top: 1rem;
  padding-top: 0.9rem;
  border-top: 1px solid rgba(57, 63, 40, 0.08);
}

.reference-note-block h4 {
  margin: 0 0 0.65rem;
}

.further-description {
  display: grid;
  gap: 0.9rem;
}

.further-description__lead {
  margin: 0;
  font-family: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", serif;
  font-size: 1.14rem;
  line-height: 1.22;
  color: var(--accent-dark);
}

.further-description__meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr));
  gap: 0.55rem 0.75rem;
  margin: 0;
}

.further-description__meta div {
  padding: 0.6rem 0.72rem;
  border-radius: 0.85rem;
  background: rgba(250, 247, 240, 0.86);
  border: 1px solid rgba(57, 63, 40, 0.08);
}

.further-description__meta dt {
  margin: 0 0 0.15rem;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.further-description__meta dd {
  margin: 0;
}

.further-description__section {
  display: grid;
  gap: 0.55rem;
  padding-top: 0.65rem;
  border-top: 1px solid rgba(57, 63, 40, 0.08);
}

.further-description__section h4 {
  margin: 0;
  font-size: 0.92rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent-dark);
}

.further-description p {
  margin: 0;
}

.landing-spotlight {
  display: grid;
  grid-template-rows: auto auto auto;
  gap: 0.68rem;
  padding: 0.78rem;
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(255, 251, 243, 0.92), rgba(239, 234, 224, 0.84));
  border: 1px solid rgba(57, 63, 40, 0.08);
  box-shadow: 0 14px 28px rgba(38, 49, 37, 0.1);
}

.landing-spotlight__topline {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 0.75rem;
}

.landing-spotlight__topline h3 {
  margin: 0;
  font-family: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", serif;
  font-size: clamp(1.18rem, 1.8vw, 1.55rem);
  color: var(--accent-dark);
  line-height: 1.04;
}

.landing-spotlight__topline .button {
  white-space: nowrap;
  align-self: start;
}

.landing-spotlight__subtitle {
  margin: 0.18rem 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.landing-spotlight__frame {
  display: grid;
  place-items: center;
  width: min(100%, 31rem);
  min-height: 12.5rem;
  justify-self: center;
  padding: 0.65rem;
  border-radius: calc(var(--radius-lg) - 4px);
  overflow: hidden;
  border: 1px solid rgba(57, 63, 40, 0.08);
  background:
    radial-gradient(circle at 18% 20%, rgba(224, 231, 194, 0.42), transparent 30%),
    linear-gradient(180deg, rgba(249, 246, 238, 0.94), rgba(239, 234, 224, 0.9));
}

.hero__media--landing .landing-spotlight__frame img {
  width: 100%;
  height: auto;
  max-width: min(100%, 31rem);
  max-height: 19rem;
  display: block;
  object-fit: contain;
}

.landing-spotlight__body {
  display: grid;
  gap: 0.58rem;
  align-content: start;
}

.landing-spotlight__summary {
  margin: 0;
  font-size: 0.93rem;
  color: var(--text);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.landing-spotlight__note {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.45;
  color: var(--muted);
}

.landing-spotlight .hero__tag-row {
  margin-top: 0.05rem;
}

.landing-spotlight .result-pill {
  font-size: 0.72rem;
}

.landing-spotlight .button {
  width: fit-content;
}

.hero__media img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.hero__copy {
  align-self: center;
  padding: 0.35rem 0.35rem 0.35rem 0;
  min-width: 0;
}

.hero__copy--centered {
  display: grid;
  justify-items: center;
  text-align: center;
  padding-right: 0.35rem;
}

.hero__copy h2 {
  font-size: clamp(2rem, 4vw, 3.65rem);
  margin-bottom: 0.8rem;
  max-width: 14ch;
}

.hero__copy p {
  max-width: 60ch;
  font-size: 1.02rem;
  color: var(--muted);
}

.hero__copy--centered > p {
  max-width: 42rem;
}

.hero__copy--centered .hero__actions {
  justify-content: center;
}

.hero--landing .hero__copy {
  display: grid;
  align-self: start;
  align-content: start;
  gap: 0.62rem;
}

.hero--landing .hero__copy h2 {
  font-size: clamp(1.55rem, 2.15vw, 2.2rem);
  max-width: 12.2ch;
  text-wrap: pretty;
  margin-bottom: 0.15rem;
}

.hero__landing-standfirst {
  max-width: 43ch;
  font-size: 0.97rem;
}

.hero__stat-ribbon {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem;
}

.hero__stat-pill {
  display: grid;
  gap: 0.1rem;
  min-width: 0;
  padding: 0.58rem 0.72rem;
  border-radius: 0.95rem;
  background: rgba(255, 251, 243, 0.8);
  border: 1px solid rgba(57, 63, 40, 0.08);
}

.hero__stat-pill span {
  font-size: 0.59rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.hero__stat-pill strong {
  font-family: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", serif;
  font-size: 1.08rem;
  line-height: 1.05;
  color: var(--accent-dark);
}

.hero--species {
  align-items: start;
  grid-template-columns: minmax(0, 1.04fr) minmax(0, 0.96fr);
}

.hero__visual-stack {
  display: grid;
  gap: 0.95rem;
  align-content: start;
  min-width: 0;
}

.hero--species .hero__media {
  min-height: 15rem;
  display: grid;
  align-content: stretch;
}

.hero--species .hero__copy h2 {
  font-size: clamp(2.2rem, 4vw, 3.8rem);
  max-width: 12ch;
}

.hero--species .hero__copy {
  display: grid;
  align-content: start;
  gap: 0.85rem;
}

.hero__media--map {
  position: relative;
}

.map-canvas--hero {
  min-height: 100%;
  height: 100%;
}

.species-figure {
  margin: 0;
  display: grid;
  gap: 0;
  border-radius: calc(var(--radius-lg) - 4px);
  overflow: hidden;
  border: 1px solid rgba(57, 63, 40, 0.08);
  background: rgba(255, 255, 255, 0.72);
}

.species-figure__frame {
  display: block;
  aspect-ratio: 5 / 4;
  background:
    radial-gradient(circle at 18% 20%, rgba(224, 231, 194, 0.42), transparent 30%),
    linear-gradient(180deg, rgba(249, 246, 238, 0.94), rgba(239, 234, 224, 0.9));
}

.species-figure__viewport {
  position: relative;
}

.species-figure__frame img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

.species-figure__badge,
.species-figure__counter {
  position: absolute;
  z-index: 1;
  border-radius: 999px;
  background: rgba(250, 247, 240, 0.88);
  box-shadow: 0 10px 24px rgba(38, 49, 37, 0.1);
  backdrop-filter: blur(10px);
  color: var(--accent-dark);
}

.species-figure__badge {
  top: 0.8rem;
  left: 0.8rem;
  max-width: calc(100% - 7rem);
  padding: 0.34rem 0.65rem;
  font-size: 0.68rem;
  line-height: 1.2;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.species-figure__counter {
  top: 0.8rem;
  right: 0.8rem;
  padding: 0.36rem 0.58rem;
  font-size: 0.74rem;
  font-weight: 600;
}

.species-figure__nav {
  position: absolute;
  top: 50%;
  z-index: 1;
  width: 2.35rem;
  height: 2.35rem;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 999px;
  background: rgba(250, 247, 240, 0.9);
  color: var(--accent-dark);
  box-shadow: 0 10px 24px rgba(38, 49, 37, 0.12);
  cursor: pointer;
  transform: translateY(-50%);
  transition: transform 160ms ease, background-color 160ms ease, box-shadow 160ms ease;
}

.species-figure__nav:hover,
.species-figure__nav:focus-visible {
  background: rgba(255, 252, 246, 0.98);
  box-shadow: 0 14px 28px rgba(38, 49, 37, 0.16);
}

.species-figure__nav:focus-visible {
  outline: 2px solid rgba(92, 109, 58, 0.28);
  outline-offset: 2px;
}

.species-figure__nav--prev {
  left: 0.8rem;
}

.species-figure__nav--next {
  right: 0.8rem;
}

.species-figure__nav span {
  font-size: 1.35rem;
  line-height: 1;
}

.species-figure__caption {
  display: grid;
  gap: 0.32rem;
  padding: 0.8rem 0.95rem;
  border-top: 1px solid rgba(57, 63, 40, 0.08);
  background: rgba(255, 251, 243, 0.9);
}

.species-figure__caption p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.species-figure__meta {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.species-figure__source {
  width: fit-content;
  font-size: 0.88rem;
  text-decoration: none;
}

.species-figure__toolbar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.6rem;
  align-items: center;
  margin-top: 0.15rem;
}

.species-figure__dots {
  display: flex;
  flex-wrap: wrap;
  gap: 0.38rem;
}

.species-figure__dot {
  width: 0.72rem;
  height: 0.72rem;
  border-radius: 999px;
  border: 1px solid rgba(92, 109, 58, 0.26);
  background: rgba(255, 255, 255, 0.7);
  cursor: pointer;
  transition: background-color 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.species-figure__dot.is-active {
  background: rgba(92, 109, 58, 0.92);
  border-color: rgba(92, 109, 58, 0.92);
}

.species-figure__dot:focus-visible {
  outline: 2px solid rgba(92, 109, 58, 0.28);
  outline-offset: 2px;
}

.species-figure__status {
  font-size: 0.8rem;
  color: var(--muted);
}

.hero__map-status {
  margin: 0;
  padding: 0.8rem 0.95rem;
  background: rgba(255, 251, 243, 0.88);
  border-top: 1px solid rgba(57, 63, 40, 0.08);
}

.hero__facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
  align-items: start;
  min-width: 0;
}

.hero__tag-row {
  margin-top: 0.2rem;
}

.hero__taxonomy-note {
  margin: 0;
}

.hero--chapter .hero__copy h2 {
  max-width: 16ch;
}

.hero--chapter .hero__copy--centered h2 {
  max-width: none;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.2rem;
}

.hero__landing-strip {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr));
  gap: 1rem;
  padding-top: 0.25rem;
  border-top: 1px solid rgba(57, 63, 40, 0.08);
}

.hero__landing-strip--ticker {
  grid-template-columns: minmax(0, 1fr);
}

.paper-ticker {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 0.9rem;
  padding: 0.78rem 0.95rem;
  border-radius: 999px;
  background:
    linear-gradient(90deg, rgba(223, 231, 198, 0.7), rgba(255, 251, 243, 0.9)),
    radial-gradient(circle at left center, rgba(91, 118, 63, 0.14), transparent 30%);
  border: 1px solid rgba(92, 109, 58, 0.24);
}

.paper-ticker__label {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-dark);
  white-space: nowrap;
}

.paper-ticker__viewport {
  min-width: 0;
  overflow: hidden;
}

.paper-ticker__viewport .source-note {
  margin: 0;
}

.paper-ticker__track {
  display: flex;
  width: max-content;
  animation: landing-paper-ticker 54s linear infinite;
  will-change: transform;
}

.paper-ticker:hover .paper-ticker__track,
.paper-ticker:focus-within .paper-ticker__track {
  animation-play-state: paused;
}

.paper-ticker__group {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  gap: 1.1rem;
  padding-inline-end: 1.1rem;
}

.paper-ticker__item {
  display: inline-flex;
  align-items: center;
  gap: 0.68rem;
  min-width: 0;
  color: var(--text);
  text-decoration: none;
  white-space: nowrap;
}

.paper-ticker__item::after {
  content: "";
  width: 0.34rem;
  height: 0.34rem;
  border-radius: 999px;
  background: rgba(92, 109, 58, 0.42);
}

.paper-ticker__group .paper-ticker__item:last-child::after {
  display: none;
}

.paper-ticker__date,
.paper-ticker__source {
  color: var(--muted);
  font-size: 0.85rem;
}

.paper-ticker__date {
  font-variant-numeric: tabular-nums;
}

.paper-ticker__title {
  font-weight: 600;
  color: var(--accent-dark);
}

@keyframes landing-paper-ticker {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

.hero__landing-card {
  display: grid;
  gap: 0.75rem;
  align-content: start;
  padding: 1rem;
  border-radius: var(--radius-lg);
  background: rgba(255, 251, 243, 0.62);
  border: 1px solid rgba(57, 63, 40, 0.08);
}

.hero__landing-card h3 {
  margin: 0;
  font-family: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", serif;
  font-size: 1.35rem;
}

.hero__landing-card p {
  margin: 0;
}

.hero__landing-note {
  font-size: 0.9rem;
  color: var(--muted);
}

.hero__landing-card--stats {
  background: linear-gradient(180deg, rgba(244, 247, 230, 0.78), rgba(255, 251, 243, 0.68));
}

.hero__landing-card--spotlight {
  background: linear-gradient(180deg, rgba(255, 251, 243, 0.86), rgba(239, 234, 224, 0.74));
}

.hero__landing-card--about {
  background: linear-gradient(180deg, rgba(247, 243, 236, 0.84), rgba(237, 229, 214, 0.7));
}

.hero__landing-subtitle {
  color: var(--muted);
  font-size: 0.96rem;
}

.hero__stat-grid,
.hero__landing-facts,
.knowledge-lanes {
  display: grid;
  gap: 0.75rem;
}

.hero__stat-grid,
.hero__landing-facts {
  grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr));
}

.hero__stat {
  padding: 0.8rem 0.9rem;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(57, 63, 40, 0.08);
}

.hero__stat span {
  display: block;
  margin-bottom: 0.2rem;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.hero__stat strong {
  font-family: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", serif;
  font-size: 1.55rem;
  color: var(--accent-dark);
}

.button {
  padding: 0.75rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(92, 109, 58, 0.24);
  background: rgba(255, 255, 255, 0.72);
  color: var(--text);
  cursor: pointer;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(92, 109, 58, 0.44);
}

.button--primary {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
  color: white;
  border-color: transparent;
}

.button--quiet {
  background: rgba(255, 255, 255, 0.56);
}

.button--quiet[hidden] {
  display: none;
}

.overview-grid,
.detail-grid,
.facts-grid,
.section-grid,
.links-grid,
.reference-grid,
.explorer-grid,
.branch-columns,
.taxonomy-trail {
  display: grid;
  gap: 1rem;
}

.overview-grid {
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  align-items: start;
}

.overview-grid--species {
  grid-template-columns: minmax(0, 1fr);
}

.overview-card,
.detail-card {
  padding: 1.15rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--panel);
  box-shadow: var(--shadow);
}

.overview-card {
  position: relative;
  overflow: hidden;
}

.overview-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  opacity: 0.92;
}

.overview-card--species::before {
  background: linear-gradient(90deg, #869a58, #2f4827);
}

.overview-card--essay::before {
  background: linear-gradient(90deg, #d1b78d, #9a7e52);
}

.overview-card--cultivation::before {
  background: linear-gradient(90deg, #c88a5b, #8f5a3a);
}

.overview-card--taxonomy::before {
  background: linear-gradient(90deg, #8c98a8, #546170);
}

.explorer-shell {
  padding: 1.15rem;
  border: 1px solid var(--line);
  border-radius: calc(var(--radius-lg) + 2px);
  background: linear-gradient(160deg, rgba(255, 253, 248, 0.9), rgba(237, 231, 219, 0.78));
  box-shadow: var(--shadow);
}

.explorer-header {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: start;
  margin-bottom: 1rem;
}

.explorer-header h3,
.explorer-stage__header h4,
.branch-card h4 {
  margin: 0;
  font-family: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", serif;
}

.explorer-header h3 {
  font-size: 1.7rem;
}

.explorer-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.explorer-mode-strip {
  display: grid;
  gap: 0.8rem;
  margin-bottom: 1rem;
  padding: 0.95rem 1rem;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(57, 63, 40, 0.08);
}

.explorer-mode-strip__copy {
  display: grid;
  gap: 0.2rem;
}

.explorer-mode-strip__copy h4 {
  margin: 0;
  font-family: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", serif;
  font-size: 1.1rem;
}

.explorer-tabs--primary .chip {
  padding: 0.72rem 0.98rem;
  border-radius: 16px;
  background: rgba(255, 251, 243, 0.92);
  font-weight: 600;
}

.explorer-tabs--primary .chip.is-active {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
  border-color: transparent;
  color: white;
  box-shadow: 0 10px 22px rgba(31, 39, 22, 0.1);
}

.explorer-mobile-path {
  display: none;
}

.explorer-workbench {
  display: grid;
  gap: 1rem;
}

.explorer-stage {
  display: grid;
  gap: 0.9rem;
  align-content: start;
  padding: 1rem;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid rgba(57, 63, 40, 0.08);
}

.explorer-stage__header {
  display: grid;
  gap: 0.25rem;
}

.explorer-stage__header p,
.explorer-stage__header h4 {
  margin: 0;
}

.explorer-branch-rail {
  display: grid;
  gap: 0.75rem;
}

.explorer-branch-button,
.explorer-child-card {
  display: grid;
  gap: 0.28rem;
  width: 100%;
  padding: 0.9rem 0.95rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(57, 63, 40, 0.1);
  background: rgba(249, 247, 241, 0.94);
  color: var(--text);
  text-align: left;
  cursor: pointer;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.explorer-branch-button:hover,
.explorer-branch-button:focus-visible,
.explorer-child-card:hover,
.explorer-child-card:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(92, 109, 58, 0.38);
  background: rgba(255, 253, 249, 0.98);
  box-shadow: 0 10px 22px rgba(31, 39, 22, 0.08);
}

.explorer-branch-button.is-active,
.explorer-child-card.is-active {
  border-color: rgba(92, 109, 58, 0.48);
  background: linear-gradient(180deg, rgba(242, 247, 230, 0.96), rgba(250, 248, 242, 0.94));
  box-shadow: 0 14px 28px rgba(31, 39, 22, 0.1);
}

.explorer-branch-button__title,
.explorer-child-card__title {
  font-weight: 700;
  color: var(--accent-dark);
}

.explorer-branch-button__meta,
.explorer-child-card__meta,
.explorer-branch-button__summary,
.explorer-child-card__preview {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.45;
}

.explorer-child-card__preview,
.explorer-species-row__meta {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.explorer-branch-button__summary {
  display: block;
  overflow: visible;
}

.explorer-child-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr));
  gap: 0.75rem;
  align-items: start;
}

.explorer-species-browser {
  display: grid;
  gap: 0.9rem;
}

.explorer-species-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.85rem;
  align-items: end;
}

.explorer-species-search {
  display: grid;
  gap: 0.42rem;
}

.explorer-species-search input {
  width: 100%;
  padding: 0.82rem 0.95rem;
  border: 1px solid rgba(92, 109, 58, 0.18);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.82);
  color: var(--text);
  outline: none;
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.explorer-species-search input:focus {
  border-color: rgba(92, 109, 58, 0.48);
  box-shadow: 0 0 0 4px rgba(197, 207, 152, 0.28);
  transform: translateY(-1px);
}

.explorer-species-toolbar__meta {
  margin: 0;
  white-space: nowrap;
}

.explorer-alpha-rail {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.explorer-alpha-button {
  min-width: 2.4rem;
  justify-content: center;
}

.explorer-species-groups {
  column-width: 16rem;
  column-gap: 0.85rem;
}

.explorer-species-group {
  break-inside: avoid;
  display: grid;
  gap: 0.72rem;
  margin: 0 0 0.85rem;
  padding: 0.9rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(57, 63, 40, 0.08);
  background: rgba(255, 255, 255, 0.82);
}

.explorer-species-group__header {
  display: flex;
  justify-content: space-between;
  gap: 0.6rem;
  align-items: baseline;
}

.explorer-species-group__letter {
  font-family: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", serif;
  font-size: 1.35rem;
  color: var(--accent-dark);
}

.explorer-species-group__count {
  font-size: 0.82rem;
  color: var(--muted);
}

.explorer-species-group__list {
  display: grid;
  gap: 0.26rem;
}

.explorer-species-link {
  display: block;
  padding: 0.14rem 0;
  color: var(--text);
  text-decoration: none;
  line-height: 1.4;
  border-bottom: 1px solid rgba(57, 63, 40, 0.06);
  transition: color 160ms ease, transform 160ms ease;
}

.explorer-species-link:last-child {
  border-bottom: 0;
}

.explorer-species-link:hover,
.explorer-species-link:focus-visible {
  color: var(--accent-dark);
  transform: translateX(2px);
}

.explorer-stage--children .explorer-child-card {
  padding: 0.72rem 0.78rem;
}

.explorer-stage--children .explorer-child-card__preview {
  -webkit-line-clamp: 1;
}

.explorer-grid {
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  align-items: start;
}

.explorer-grid--species {
  grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr));
}

.branch-card {
  display: grid;
  gap: 0.85rem;
  align-content: start;
  padding: 1rem;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(57, 63, 40, 0.08);
  position: relative;
  overflow: hidden;
}

.branch-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 6px;
  background: linear-gradient(180deg, var(--accent-soft), var(--accent-dark));
  opacity: 0.85;
}

.branch-card--species::before {
  width: 100%;
  height: 4px;
  inset: 0 0 auto 0;
}

.branch-meta {
  display: flex;
  justify-content: space-between;
  gap: 0.6rem;
  color: var(--muted);
  font-size: 0.88rem;
}

.branch-columns {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
  align-content: start;
}

.branch-child {
  padding: 0.8rem;
  border-radius: var(--radius-md);
  background: rgba(245, 240, 230, 0.9);
  align-self: start;
}

.branch-child h5 {
  margin: 0 0 0.55rem;
  font-size: 1rem;
}

.species-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.species-links a {
  text-decoration: none;
}

.section-card--continue {
  margin-top: 0.2rem;
  padding: 0.9rem 0.95rem;
  background: linear-gradient(180deg, rgba(249, 247, 241, 0.9), rgba(240, 235, 224, 0.82));
}

.continue-strip__header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.65rem;
  align-items: end;
  margin-bottom: 0.8rem;
}

.continue-strip__header h3 {
  margin: 0.1rem 0 0;
  font-size: 1.12rem;
}

.continue-strip__header .source-note {
  margin: 0;
  max-width: 30rem;
}

.continue-strip__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
  gap: 0.75rem;
}

.continue-strip__group {
  display: grid;
  gap: 0.55rem;
  align-content: start;
  padding: 0.78rem 0.82rem;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid rgba(57, 63, 40, 0.08);
}

.continue-strip__meta {
  display: flex;
  justify-content: space-between;
  gap: 0.6rem;
  align-items: baseline;
  color: var(--muted);
  font-size: 0.82rem;
}

.continue-strip__meta h4 {
  margin: 0;
  font-size: 0.98rem;
  color: var(--accent-dark);
}

.section-card--continue .species-links {
  gap: 0.38rem;
}

.explorer-note {
  margin-top: 1rem;
  color: var(--muted);
  font-size: 0.92rem;
}

@media (min-width: 1100px) {
  .explorer-workbench {
    grid-template-columns: minmax(18rem, 23rem) minmax(0, 1fr);
  }

  .explorer-stage--branches {
    grid-row: span 2;
  }
}

@media (min-width: 1380px) {
  .explorer-workbench {
    grid-template-columns: minmax(16.5rem, 20rem) minmax(14rem, 17rem) minmax(0, 1fr);
    align-items: start;
  }

  .explorer-stage--branches {
    grid-column: 1;
    grid-row: 1;
  }

  .explorer-stage--children {
    grid-column: 2;
    grid-row: 1;
  }

  .explorer-stage--children .explorer-child-grid {
    grid-template-columns: 1fr;
    gap: 0.55rem;
  }

  .explorer-stage--species-list {
    grid-column: 3;
    grid-row: 1;
  }
}

.overview-card h3 {
  font-size: 1.38rem;
  margin-bottom: 0.55rem;
}

.overview-grid .button {
  width: fit-content;
  margin-top: 0.25rem;
}

.knowledge-lanes {
  grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
}

.knowledge-lane {
  padding: 0.9rem;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(57, 63, 40, 0.08);
}

.knowledge-lane span {
  display: block;
  margin-bottom: 0.35rem;
  font-weight: 700;
}

.knowledge-lane p {
  margin: 0;
}

.knowledge-lane--species {
  border-left: 4px solid #58703b;
}

.knowledge-lane--essay {
  border-left: 4px solid #b99866;
}

.knowledge-lane--cultivation {
  border-left: 4px solid #ba7550;
}

.knowledge-lane--taxonomy {
  border-left: 4px solid #667282;
}

.overview-card ul,
.detail-card ul,
.overview-card ol,
.detail-card ol {
  margin: 0.65rem 0 0;
  padding-left: 1rem;
}

.detail-card {
  display: grid;
  gap: 1rem;
  background: var(--panel-strong);
}

.detail-header,
.essay-header {
  display: grid;
  gap: 0.9rem;
}

.detail-header h2,
.essay-header h2 {
  font-size: clamp(2rem, 4vw, 3rem);
}

.detail-subtitle {
  color: var(--muted);
  font-size: 1.04rem;
}

.detail-grid {
  grid-template-columns: minmax(0, 1.4fr) minmax(16rem, 0.86fr);
  align-items: start;
}

.detail-main,
.detail-side {
  display: grid;
  gap: 1rem;
  align-content: start;
  align-items: start;
  min-width: 0;
}

.detail-side {
  gap: 0.8rem;
}

.facts-grid {
  grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr));
}

.fact {
  padding: 0.9rem;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid rgba(57, 63, 40, 0.08);
  min-width: 0;
}

.fact--interactive {
  width: 100%;
  text-align: left;
  font: inherit;
  color: inherit;
  cursor: pointer;
  appearance: none;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.fact--interactive:hover,
.fact--interactive:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(92, 109, 58, 0.34);
  background: rgba(249, 246, 238, 0.96);
  box-shadow: 0 12px 26px rgba(38, 49, 37, 0.08);
}

.fact--range,
.fact--habitat {
  height: fit-content;
}

.fact__label {
  display: block;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.35rem;
}

.fact__value {
  margin: 0;
  overflow-wrap: anywhere;
  word-break: normal;
}

.fact__detail {
  overflow-wrap: anywhere;
}

.notice-card {
  border-left: 4px solid var(--accent);
}

.notice-card p:last-child {
  margin-bottom: 0;
}

.taxonomy-trail {
  grid-template-columns: repeat(auto-fit, minmax(8.5rem, 1fr));
}

.trail-node {
  padding: 0.8rem;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid rgba(57, 63, 40, 0.08);
}

.trail-node strong {
  display: block;
  margin-bottom: 0.25rem;
}

.map-shell {
  display: grid;
  gap: 0.8rem;
}

.map-canvas {
  min-height: 22rem;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid rgba(57, 63, 40, 0.08);
  background: linear-gradient(180deg, rgba(211, 224, 238, 0.72), rgba(245, 241, 230, 0.86));
}

.map-status {
  color: var(--muted);
  font-size: 0.92rem;
}

.audit-list {
  margin: 0;
  padding-left: 1rem;
  color: var(--muted);
}

.details-card summary {
  cursor: pointer;
  font-weight: 600;
}

.details-card[open] summary {
  margin-bottom: 0.8rem;
}

.maplibregl-map {
  font-family: "Avenir Next", "Gill Sans", "Trebuchet MS", sans-serif;
}

.section-grid {
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
  align-items: start;
}

.section-card {
  padding: 1rem;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid rgba(57, 63, 40, 0.08);
}

.section-card h3 {
  margin-top: 0;
  margin-bottom: 0.55rem;
}

.community-notes-hero {
  display: grid;
  gap: 1rem;
  border-color: rgba(92, 109, 58, 0.18);
  background:
    radial-gradient(circle at top right, rgba(214, 227, 190, 0.42), transparent 34%),
    linear-gradient(180deg, rgba(246, 248, 240, 0.96), rgba(255, 255, 255, 0.84));
}

.community-notes-hero__topline {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 1rem;
}

.community-notes-hero__topline h3 {
  margin-bottom: 0.2rem;
}

.community-notes-hero__standfirst {
  margin: 0;
  font-size: 1.03rem;
}

.community-notes-hero__actions {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(auto-fit, minmax(11rem, max-content));
  align-items: center;
}

.community-auth-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
  border: 1px solid rgba(57, 63, 40, 0.12);
  background: rgba(255, 255, 255, 0.86);
  color: var(--accent-dark);
  cursor: pointer;
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.community-auth-chip:hover,
.community-auth-chip:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(92, 109, 58, 0.24);
  box-shadow: 0 14px 28px rgba(57, 63, 40, 0.08);
}

.community-auth-chip__icon {
  width: 2rem;
  height: 2rem;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  background: linear-gradient(135deg, #5f7d4a, #8ea663);
  color: #f7f4e8;
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.community-notes-list {
  display: grid;
  gap: 0.85rem;
}

.community-note-card {
  display: grid;
  gap: 0.7rem;
  padding: 0.95rem 1rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(57, 63, 40, 0.08);
  background: rgba(255, 255, 255, 0.82);
}

.community-note-card p {
  margin: 0;
}

.community-note-card__head,
.community-note-card__identity {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.community-note-card__identity {
  align-items: start;
}

.community-note-card__avatar {
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 999px;
  object-fit: cover;
  background: rgba(92, 109, 58, 0.14);
}

.community-note-card__avatar--fallback {
  display: inline-grid;
  place-items: center;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--accent-dark);
}

.community-note-card__name,
.community-note-card__meta {
  display: block;
  color: var(--muted);
  font-size: 0.88rem;
}

.community-note-card__link {
  font-size: 0.92rem;
  color: var(--accent-dark);
}

.community-notes-modal[hidden] {
  display: none;
}

.community-notes-modal {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: grid;
  place-items: center;
  padding: 1.5rem;
}

.community-notes-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(27, 31, 18, 0.36);
  backdrop-filter: blur(6px);
}

.community-notes-modal__panel {
  position: relative;
  z-index: 1;
  width: min(100%, 42rem);
  max-height: min(88vh, 52rem);
  overflow: auto;
  padding: 1.2rem;
  border-radius: calc(var(--radius-lg) + 0.15rem);
  border: 1px solid rgba(57, 63, 40, 0.12);
  background:
    radial-gradient(circle at top right, rgba(214, 227, 190, 0.38), transparent 34%),
    rgba(247, 244, 232, 0.98);
  box-shadow: 0 24px 60px rgba(27, 31, 18, 0.22);
}

.community-notes-modal__close {
  justify-self: end;
  background: none;
  border: 0;
  color: var(--muted);
  cursor: pointer;
  padding: 0;
}

.community-modal-copy {
  display: grid;
  gap: 0.75rem;
}

.community-modal-copy h2,
.community-modal-copy p {
  margin: 0;
}

.community-modal-copy--auth {
  justify-items: start;
}

.community-modal-auth-button {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
}

.community-note-form {
  display: grid;
  gap: 0.95rem;
  margin-top: 1rem;
}

.form-field {
  display: grid;
  gap: 0.4rem;
}

.form-field span {
  font-size: 0.84rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  border-radius: var(--radius-md);
  border: 1px solid rgba(57, 63, 40, 0.12);
  background: rgba(255, 255, 255, 0.92);
  color: var(--accent-dark);
  padding: 0.85rem 0.9rem;
  font: inherit;
}

.form-field textarea {
  resize: vertical;
  min-height: 10rem;
}

.community-note-form__actions {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  flex-wrap: wrap;
}

.review-toolbar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.8rem;
  align-items: end;
  margin-bottom: 1rem;
}

.review-queue {
  display: grid;
  gap: 0.85rem;
}

.review-card {
  display: grid;
  gap: 0.8rem;
  padding: 1rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(57, 63, 40, 0.08);
  background:
    radial-gradient(circle at top right, rgba(214, 227, 190, 0.22), transparent 32%),
    rgba(255, 255, 255, 0.84);
}

.review-card p {
  margin: 0;
}

.review-card__head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.8rem;
  align-items: start;
}

.review-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

body.is-community-modal-open {
  overflow: hidden;
}

.overview-card--field-guide p {
  margin-top: 0;
}

.overview-card--field-guide-article {
  gap: 0.95rem;
  background:
    radial-gradient(circle at top right, rgba(214, 227, 190, 0.3), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(247, 244, 232, 0.86));
}

.overview-card--field-guide-article .guide-fact-grid {
  grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr));
  gap: 0.65rem;
}

.overview-card--field-guide-article .guide-fact {
  padding: 0.75rem 0.85rem;
}

.guide-fact-grid,
.guide-compare-grid,
.guide-signal-grid,
.guide-record-grid {
  display: grid;
  gap: 0.85rem;
  grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
  align-items: start;
}

.guide-fact,
.guide-compare-card,
.guide-signal-card,
.guide-record-card {
  display: grid;
  gap: 0.35rem;
  padding: 0.9rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(57, 63, 40, 0.08);
  background: rgba(255, 255, 255, 0.72);
}

.guide-fact span {
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.guide-fact strong,
.guide-signal-card strong,
.guide-record-card strong {
  color: var(--accent-dark);
}

.guide-section {
  display: grid;
  gap: 0.9rem;
}

.detail-card--guide-article .detail-grid {
  grid-template-columns: minmax(0, 1.65fr) minmax(17rem, 0.75fr);
  gap: 1.4rem;
}

.detail-main--guide-article {
  gap: 1.45rem;
}

.guide-section--article {
  padding-bottom: 1.45rem;
  border-bottom: 1px solid rgba(57, 63, 40, 0.1);
}

.guide-section--article:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.guide-section--article h3 {
  margin: 0;
  font-size: 1.34rem;
}

.guide-section__prose {
  display: grid;
  gap: 0.85rem;
}

.guide-section__prose p,
.guide-section--article > p,
.guide-reading-item p {
  margin: 0;
  max-width: 70ch;
}

.guide-step-list,
.guide-bullet-list {
  margin: 0;
  padding-left: 1.15rem;
  display: grid;
  gap: 0.6rem;
}

.guide-section--article .guide-step-list,
.guide-section--article .guide-bullet-list {
  max-width: 68ch;
}

.guide-glossary {
  display: grid;
  gap: 0.75rem;
  margin: 0;
}

.guide-glossary div {
  padding: 0.85rem 0.95rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(57, 63, 40, 0.08);
  background: rgba(255, 255, 255, 0.68);
}

.guide-glossary dt {
  font-weight: 700;
  color: var(--accent-dark);
}

.guide-glossary dd {
  margin: 0.35rem 0 0;
  color: var(--text);
}

.guide-section--article .guide-glossary {
  gap: 0.9rem;
}

.guide-section--article .guide-glossary div {
  padding: 0 0 0 1rem;
  border-radius: 0;
  border: 0;
  border-left: 2px solid rgba(92, 109, 58, 0.2);
  background: none;
}

.guide-compare-card h4 {
  margin: 0;
  font-size: 1.03rem;
}

.guide-compare-card p,
.guide-signal-card p,
.guide-record-card p {
  margin: 0;
}

.guide-compare-card__link {
  color: var(--accent-dark);
  text-decoration: none;
}

.guide-compare-card__link:hover,
.guide-compare-card__link:focus-visible {
  text-decoration: underline;
}

.guide-compare-card__note {
  color: var(--muted);
}

.guide-figure {
  margin: 0;
  display: grid;
  gap: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(57, 63, 40, 0.08);
  background: rgba(255, 255, 255, 0.76);
}

.guide-figure__frame {
  background:
    radial-gradient(circle at 18% 20%, rgba(224, 231, 194, 0.42), transparent 30%),
    linear-gradient(180deg, rgba(249, 246, 238, 0.94), rgba(239, 234, 224, 0.9));
}

.guide-figure__frame img {
  width: 100%;
  display: block;
  object-fit: contain;
}

.guide-figure figcaption {
  display: grid;
  gap: 0.32rem;
  padding: 0.8rem 0.95rem;
  border-top: 1px solid rgba(57, 63, 40, 0.08);
  background: rgba(255, 251, 243, 0.9);
}

.guide-figure figcaption p {
  margin: 0;
  color: var(--muted);
}

.guide-figure__meta {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.guide-reading-list {
  display: grid;
  gap: 0;
}

.guide-reading-item {
  display: grid;
  gap: 0.35rem;
  padding: 0.95rem 0;
  border-top: 1px solid rgba(57, 63, 40, 0.08);
}

.guide-reading-item:first-child {
  padding-top: 0.15rem;
  border-top: 0;
}

.guide-reading-item h4 {
  margin: 0;
  font-size: 1.02rem;
}

.guide-reading-item__link {
  color: var(--accent-dark);
  text-decoration: none;
}

.guide-reading-item__link:hover,
.guide-reading-item__link:focus-visible {
  text-decoration: underline;
}

.guide-reading-item__citation {
  color: var(--muted);
  font-size: 0.92rem;
}

.overview-card--species-summary {
  padding: 0.95rem 1.05rem;
}

.overview-card--species-live {
  background:
    linear-gradient(160deg, rgba(226, 236, 200, 0.54), rgba(255, 251, 243, 0.86)),
    var(--panel);
}

.species-summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: 0.9rem 1.2rem;
  align-items: start;
}

.species-summary-section {
  display: grid;
  gap: 0.45rem;
  align-content: start;
}

.morphology-overview {
  display: grid;
  gap: 0.65rem;
}

.morphology-overview p {
  margin: 0;
}

.species-summary-section h3 {
  margin: 0;
  font-size: 1.1rem;
}

.species-summary-section .eyebrow {
  margin-bottom: 0;
}

.taxonomy-pill-row {
  gap: 0.4rem;
}

.name-groups {
  display: grid;
  gap: 0.9rem;
}

.name-group {
  display: grid;
  gap: 0.45rem;
}

.compact-name-list {
  display: grid;
  gap: 0.55rem;
}

.compact-name-row {
  display: grid;
  gap: 0.32rem;
}

.use-profile-overview,
.use-profile-sections,
.use-profile-section,
.use-profile-section__header,
.use-source-list {
  display: grid;
}

.use-profile-overview,
.use-profile-sections,
.use-profile-section,
.use-source-list {
  gap: 0.75rem;
}

.use-profile-overview p,
.use-profile-section__header p,
.use-claim-card p {
  margin: 0;
}

.use-profile-section__header {
  gap: 0.35rem;
}

.use-profile-section h4,
.use-claim-card h5 {
  margin: 0;
  font-size: 1rem;
}

.use-claim-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: 0.9rem;
  align-items: start;
}

.use-claim-card {
  display: grid;
  gap: 0.65rem;
  padding: 1rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(57, 63, 40, 0.08);
  background: rgba(255, 255, 255, 0.8);
}

.use-claim-card__copy {
  display: grid;
  gap: 0.4rem;
}

.use-claim-card__labels {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.use-claim-card__meta {
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr));
  gap: 0.65rem;
}

.use-claim-card__meta div {
  display: grid;
  gap: 0.18rem;
}

.use-claim-card__meta dt {
  color: var(--muted);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.use-claim-card__meta dd {
  margin: 0;
  color: var(--text);
  font-size: 0.91rem;
  line-height: 1.42;
}

.use-source-link {
  display: grid;
  gap: 0.2rem;
  padding-top: 0.55rem;
  border-top: 1px solid rgba(57, 63, 40, 0.08);
  text-decoration: none;
}

.use-source-link strong {
  color: var(--text);
  font-size: 0.88rem;
}

.use-source-link span {
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.45;
}

.use-source-link:hover,
.use-source-link:focus-visible {
  text-decoration: none;
}

.use-pill {
  border: 1px solid rgba(57, 63, 40, 0.08);
}

.use-pill--official {
  background: rgba(185, 215, 165, 0.42);
  color: #29451f;
}

.use-pill--human {
  background: rgba(171, 206, 198, 0.42);
  color: #255252;
}

.use-pill--preclinical {
  background: rgba(201, 210, 191, 0.44);
  color: #3f4e39;
}

.use-pill--traditional {
  background: rgba(226, 208, 176, 0.38);
  color: #604e25;
}

.use-pill--contested,
.use-pill--warning {
  background: rgba(219, 182, 149, 0.34);
  color: #7b4931;
}

.links-grid,
.reference-grid {
  grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
  align-items: start;
}

.links-grid--compact {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.7rem;
}

.reference-list {
  margin: 0;
  padding-left: 1.2rem;
  display: grid;
  gap: 0.7rem;
}

.reference-list li {
  color: var(--muted);
}

.reference-list a {
  color: var(--text);
  text-decoration: none;
}

.reference-list a:hover,
.reference-list a:focus-visible {
  text-decoration: underline;
}

.note-columns {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr));
  gap: 1rem;
  align-items: start;
}

.note-column {
  display: grid;
  gap: 1rem;
  align-content: start;
  align-items: start;
}

.note-card {
  height: auto;
}

.note-card p {
  white-space: pre-line;
}

.link-card {
  display: grid;
  gap: 0.45rem;
  padding: 0.9rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(57, 63, 40, 0.08);
  background: rgba(255, 255, 255, 0.74);
  text-decoration: none;
}

.link-card span:first-child {
  font-weight: 600;
}

.link-card--compact {
  gap: 0.2rem;
  padding: 0.7rem 0.75rem;
}

.link-card--compact span {
  font-size: 0.86rem;
  line-height: 1.3;
}

.link-card--compact span:first-child {
  font-size: 0.9rem;
}

.literature-summary {
  display: grid;
  gap: 0.75rem;
}

.literature-summary p {
  margin: 0;
}

.literature-list {
  margin: 0;
  padding-left: 1rem;
}

.literature-split {
  display: grid;
  gap: 1rem;
}

.literature-split h4 {
  margin: 0 0 0.65rem;
  font-size: 1rem;
}

@media (max-width: 900px) {
  .links-grid--compact {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.literature-grid {
  display: grid;
  gap: 0.9rem;
}

.literature-card {
  display: grid;
  gap: 0.55rem;
  padding: 1rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(57, 63, 40, 0.08);
  background: rgba(255, 255, 255, 0.76);
  text-decoration: none;
  transition: transform 150ms ease, border-color 150ms ease, background 150ms ease;
}

.literature-card:hover,
.literature-card:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(92, 109, 58, 0.34);
  background: rgba(249, 246, 238, 0.96);
}

.literature-card strong {
  font-size: 1rem;
  line-height: 1.35;
}

.literature-card p {
  margin: 0;
}

.literature-card__labels {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.literature-card__meta,
.literature-card__note,
.literature-card__action {
  color: var(--muted);
  font-size: 0.84rem;
}

.literature-card__action {
  color: var(--accent-dark);
  font-weight: 600;
}

.hero--activity {
  grid-template-columns: minmax(0, 1fr);
}

.hero--resource-compact {
  grid-template-columns: minmax(0, 1fr);
}

.hero--resource-compact .hero__copy {
  padding-right: 0.35rem;
}

.hero--activity .hero__media {
  align-self: stretch;
}

.hero__media--activity {
  display: grid;
  align-content: stretch;
}

.activity-hero-panel,
.live-activity-panel {
  display: grid;
  gap: 1rem;
}

.activity-hero-panel {
  min-height: 100%;
  padding: 1.1rem;
  border-radius: var(--radius-lg);
  background:
    linear-gradient(160deg, rgba(215, 226, 190, 0.72), rgba(255, 251, 243, 0.78)),
    radial-gradient(circle at top right, rgba(91, 118, 63, 0.16), transparent 38%);
  border: 1px solid rgba(57, 63, 40, 0.08);
}

.activity-hero-panel h3,
.activity-stream h4 {
  margin: 0;
  font-family: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", serif;
}

.live-activity-panel__header,
.activity-stream__header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.8rem;
  align-items: start;
}

.live-activity-panel__header h3,
.activity-stream__header h3 {
  margin: 0;
}

.live-activity-panel__intro {
  margin: 0;
  max-width: 60ch;
}

.live-pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.live-pill {
  display: grid;
  gap: 0.12rem;
  min-width: 8rem;
  padding: 0.6rem 0.75rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid rgba(57, 63, 40, 0.08);
}

.live-pill strong {
  font-size: 0.78rem;
}

.live-pill span {
  color: var(--muted);
  font-size: 0.82rem;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr));
  gap: 0.8rem;
}

.metric-card {
  padding: 0.85rem 0.9rem;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(57, 63, 40, 0.08);
}

.metric-card strong {
  display: block;
  font-size: 1.35rem;
  font-family: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", serif;
}

.activity-streams {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  gap: 1rem;
}

.activity-stream {
  display: grid;
  gap: 0.75rem;
  align-content: start;
}

.activity-card-grid,
.sync-ledger {
  display: grid;
  gap: 0.85rem;
}

.activity-card {
  display: grid;
  grid-template-columns: minmax(0, 6.2rem) minmax(0, 1fr);
  gap: 0.8rem;
  padding: 0.85rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(57, 63, 40, 0.08);
  background: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: transform 150ms ease, border-color 150ms ease, background 150ms ease;
}

.activity-card:hover,
.activity-card:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(92, 109, 58, 0.34);
  background: rgba(249, 246, 238, 0.96);
}

.activity-card--paper {
  grid-template-columns: minmax(0, 1fr);
}

.activity-card__media {
  overflow: hidden;
  border-radius: 0.9rem;
  background: linear-gradient(180deg, rgba(221, 227, 206, 0.78), rgba(242, 238, 227, 0.92));
  aspect-ratio: 1 / 1;
}

.activity-card__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.activity-card__body {
  display: grid;
  gap: 0.35rem;
  align-content: start;
}

.activity-card__body strong {
  font-size: 0.98rem;
  line-height: 1.35;
}

.activity-card__body p,
.sync-ledger__item p {
  margin: 0;
  color: var(--muted);
}

.activity-card__labels {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.activity-card__meta {
  color: var(--muted);
  font-size: 0.83rem;
}

.sync-ledger__item {
  display: grid;
  gap: 0.3rem;
  padding: 0.8rem 0.85rem;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(57, 63, 40, 0.08);
}

.sync-ledger__item strong {
  font-size: 0.98rem;
}

.details-card--aside {
  padding: 0.9rem 0.95rem;
}

.evidence-list {
  display: grid;
  gap: 0.7rem;
}

.evidence-link {
  display: grid;
  gap: 0.2rem;
  padding-bottom: 0.7rem;
  border-bottom: 1px solid rgba(57, 63, 40, 0.08);
  text-decoration: none;
}

.evidence-link:last-child {
  padding-bottom: 0;
  border-bottom: none;
}

.evidence-link strong {
  color: var(--text);
  font-size: 0.95rem;
}

.evidence-link span {
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.4;
}

.source-note--tight {
  margin: 0;
}

.essay-body {
  white-space: pre-line;
}

.empty-state {
  padding: 1.2rem;
  border-radius: var(--radius-lg);
  border: 1px dashed rgba(92, 109, 58, 0.3);
  background: rgba(255, 255, 255, 0.52);
}

.source-note {
  color: var(--muted);
  font-size: 0.92rem;
}

.fade-in {
  animation: fade-in 240ms ease;
}

@keyframes fade-in {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes project-home-sway-left {
  0%,
  100% {
    transform: rotate(-3deg);
  }

  50% {
    transform: rotate(4deg);
  }
}

@keyframes project-home-sway-right {
  0%,
  100% {
    transform: scaleX(-1) rotate(-3deg);
  }

  50% {
    transform: scaleX(-1) rotate(4deg);
  }
}

@keyframes project-home-leaf {
  0%,
  100% {
    transform: rotate(var(--leaf-angle)) scale(1);
  }

  50% {
    transform: rotate(calc(var(--leaf-angle) + 6deg)) scale(1.04);
  }
}

@keyframes project-home-breathe {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-1px);
  }
}

@keyframes project-home-line {
  0%,
  100% {
    opacity: 0.6;
    transform: scaleX(0.94);
  }

  50% {
    opacity: 1;
    transform: scaleX(1.02);
  }
}

@media (max-width: 1100px) {
  .page-shell {
    grid-template-columns: 1fr;
  }

  .content {
    order: 1;
  }

  .sidebar {
    order: 2;
    position: static;
  }

  .archive-results-panel {
    min-height: 26rem;
    order: 0;
  }

  .archive-results-panel__body {
    grid-template-columns: 1fr;
  }

  .detail-grid,
  .hero {
    grid-template-columns: 1fr;
  }

  .detail-card--guide-article .detail-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .hero__facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .note-columns {
    grid-template-columns: 1fr;
  }

  .explorer-species-toolbar {
    grid-template-columns: 1fr;
  }

  .activity-hero-panel {
    min-height: 0;
  }

  .species-figure__frame {
    aspect-ratio: 4 / 3;
  }

  .species-figure__badge,
  .species-figure__counter {
    top: 0.65rem;
  }

  .species-figure__badge {
    left: 0.65rem;
    max-width: calc(100% - 6rem);
  }

  .species-figure__counter {
    right: 0.65rem;
  }

  .species-figure__nav {
    width: 2.1rem;
    height: 2.1rem;
  }

  .species-figure__nav--prev {
    left: 0.65rem;
  }

  .species-figure__nav--next {
    right: 0.65rem;
  }

  .hero__stat-ribbon {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .explorer-mobile-path {
    display: grid;
    gap: 0.18rem;
    margin-bottom: 1rem;
    padding: 0.8rem 0.9rem;
    border-radius: var(--radius-md);
    background: rgba(255, 251, 243, 0.88);
    border: 1px solid rgba(57, 63, 40, 0.08);
  }

  .explorer-mobile-path__label {
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--muted);
  }

  .explorer-mobile-path strong {
    font-size: 0.96rem;
    color: var(--accent-dark);
    line-height: 1.35;
  }

  .explorer-workbench {
    gap: 0.8rem;
  }

  .explorer-stage {
    padding: 0.9rem;
    scroll-margin-top: 6.8rem;
  }

  .community-notes-hero__topline {
    flex-direction: column;
  }

  .community-notes-hero__actions {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1480px) and (min-width: 1101px) {
  .page-shell {
    grid-template-columns: minmax(16.5rem, 17.75rem) minmax(0, 1fr);
    gap: 1.2rem;
    padding: 1.2rem;
  }

  .hero {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  }

  .hero--species .hero__copy h2 {
    font-size: clamp(2rem, 3.25vw, 3.2rem);
    max-width: 10.5ch;
  }

  .hero__facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

}

@media (max-width: 700px) {
  body {
    padding-top: 5.9rem;
  }

  .hero--landing .hero__copy h2 {
    font-size: clamp(1.4rem, 6.2vw, 1.86rem);
    max-width: 11ch;
  }

  .hero__landing-standfirst {
    font-size: 0.94rem;
    max-width: 32ch;
  }

  .page-shell {
    padding: 1rem;
  }

  .sidebar,
  .hero,
  .detail-card,
  .overview-card {
    padding: 1rem;
  }

  .hero__media {
    min-height: 15rem;
  }

  .hero__media--landing {
    min-height: 0;
  }

  .landing-spotlight {
    gap: 0.6rem;
    padding: 0.72rem;
  }

  .landing-spotlight__frame {
    width: 100%;
    min-height: 10rem;
  }

  .hero__media--landing .landing-spotlight__frame img {
    max-height: 14rem;
  }

  .landing-spotlight__topline {
    flex-direction: column;
    align-items: start;
  }

  .landing-spotlight__topline .button {
    white-space: normal;
  }

  .landing-spotlight__summary {
    -webkit-line-clamp: 4;
  }

  .site-footer {
    grid-template-columns: minmax(0, 1fr);
  }

  .feedback-form__grid {
    grid-template-columns: 1fr;
  }

  .paper-ticker {
    grid-template-columns: 1fr;
    gap: 0.45rem;
    padding: 0.75rem 0.85rem;
    border-radius: var(--radius-md);
  }

  .paper-ticker__label {
    white-space: normal;
  }

  .hero__actions {
    gap: 0.55rem;
  }

  .community-notes-modal {
    padding: 0.9rem;
  }

  .community-notes-modal__panel {
    padding: 1rem;
  }

  .explorer-stage__header h4 {
    font-size: 1.02rem;
  }

  .explorer-branch-button,
  .explorer-child-card {
    padding: 0.82rem 0.86rem;
  }

  .explorer-species-toolbar {
    grid-template-columns: 1fr;
  }

  .explorer-species-toolbar__meta {
    white-space: normal;
  }

  .explorer-species-groups {
    column-width: auto;
    columns: 1;
  }

  .project-home-shell {
    height: 5.25rem;
  }

  .project-home {
    top: 0.45rem;
    left: auto;
    right: 0.55rem;
    transform: none;
    width: auto;
    max-width: calc(100vw - 5rem);
    padding: 0.28rem 0.92rem 0.64rem;
  }

  .project-home:hover,
  .project-home:focus-visible {
    transform: translateY(-1px) scale(1.01);
  }

  .project-home__title {
    font-size: 1.08rem;
    white-space: nowrap;
  }

  .project-home__eyebrow {
    font-size: 0.56rem;
    letter-spacing: 0.18em;
  }

  .project-home::before,
  .project-home::after {
    width: 2.25rem;
    bottom: -0.05rem;
  }

  .project-menu {
    top: 0.72rem;
    left: 0.75rem;
  }

  .project-menu__trigger {
    padding: 0.5rem 0.78rem;
    font-size: 0.82rem;
  }

  .project-menu__panel {
    min-width: 11.5rem;
  }

  .project-home::before {
    left: -1.28rem;
  }

  .project-home::after {
    right: -1.28rem;
  }

  .back-to-top {
    right: 0.95rem;
    bottom: 0.95rem;
    width: 2.8rem;
    height: 2.8rem;
  }

  .sidebar__controls,
  .sidebar__results-panel {
    padding: 0.9rem;
  }

  .archive-results-panel .sidebar__list {
    grid-template-columns: 1fr;
    max-height: min(48vh, 28rem);
  }

  .archive-results-panel .result-card {
    flex-direction: column;
  }

  .search-result-row__tags {
    justify-content: flex-start;
  }

  .sidebar__results-header,
  .spotlight-card__eyebrow {
    align-items: flex-start;
    flex-direction: column;
  }

  .button--quiet {
    width: 100%;
  }

  .activity-card {
    grid-template-columns: 1fr;
  }

  .activity-card__media {
    aspect-ratio: 4 / 3;
  }

  .live-pill {
    min-width: 0;
    width: 100%;
  }

  .live-activity-panel__header,
  .activity-stream__header {
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  .project-home,
  .project-home::before,
  .project-home::after,
  .project-home__text,
  .project-home__text::after,
  .paper-ticker__track {
    animation: none;
    transition: none;
  }

  .paper-ticker__viewport {
    overflow-x: auto;
  }

  .paper-ticker__group[aria-hidden="true"] {
    display: none;
  }
}
