: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 {
  position: fixed;
  top: 0.45rem;
  left: 50%;
  z-index: 40;
  transform: translateX(-50%);
  display: inline-grid;
  grid-template-columns: auto minmax(0, max-content) auto;
  align-items: center;
  gap: clamp(0.5rem, 1.6vw, 1.15rem);
  padding: 0.3rem 1rem 0.8rem;
  border: 0;
  background: transparent;
  box-shadow: none;
  cursor: pointer;
  color: var(--accent-deep);
  text-decoration: none;
  transition: transform 180ms ease, filter 180ms ease;
}

.project-home:hover,
.project-home:focus-visible {
  transform: translateX(-50%) translateY(-1px) scale(1.01);
  filter: drop-shadow(0 8px 22px rgba(35, 69, 49, 0.16));
}

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

.project-home__sprig {
  position: relative;
  width: clamp(2.8rem, 6vw, 4.5rem);
  height: clamp(2.2rem, 4vw, 3rem);
  align-self: end;
  transform-origin: bottom center;
}

.project-home__sprig--left {
  animation: project-home-sway-left 7.2s ease-in-out infinite;
}

.project-home__sprig--right {
  animation: project-home-sway-right 7.2s ease-in-out infinite -3.8s;
}

.project-home__stem {
  position: absolute;
  left: 0.35rem;
  right: 0.5rem;
  bottom: 0.4rem;
  height: 1.25rem;
  border-left: 2px solid rgba(35, 69, 49, 0.28);
  border-bottom: 2px solid rgba(35, 69, 49, 0.34);
  border-bottom-left-radius: 1.2rem;
  transform: rotate(-14deg);
}

.project-home__leaf {
  position: absolute;
  width: 1rem;
  height: 0.54rem;
  border-radius: 1rem 0.1rem 1rem 0.1rem;
  background: linear-gradient(135deg, rgba(111, 144, 96, 0.96), rgba(35, 69, 49, 0.98));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
  transform-origin: 0 50%;
  animation: project-home-leaf 6s ease-in-out infinite;
}

.project-home__leaf::after {
  content: "";
  position: absolute;
  inset: 10% auto 10% 48%;
  width: 1px;
  border-radius: 999px;
  background: rgba(248, 248, 242, 0.5);
  transform: rotate(34deg);
}

.project-home__leaf--a {
  --leaf-angle: -28deg;
  left: 0.95rem;
  bottom: 1.05rem;
  transform: rotate(var(--leaf-angle));
}

.project-home__leaf--b {
  --leaf-angle: 12deg;
  left: 1.95rem;
  bottom: 1.62rem;
  width: 1.08rem;
  transform: rotate(var(--leaf-angle));
  animation-delay: -1.4s;
}

.project-home__leaf--c {
  --leaf-angle: 38deg;
  left: 2.8rem;
  bottom: 0.96rem;
  width: 0.92rem;
  transform: rotate(var(--leaf-angle));
  animation-delay: -2.8s;
}

.project-home__text {
  display: grid;
  gap: 0.14rem;
  text-align: center;
  position: relative;
  padding-inline: 0.3rem;
  animation: project-home-breathe 6.4s ease-in-out infinite;
}

.project-home__text::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -0.35rem;
  width: calc(100% + 1rem);
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(35, 69, 49, 0.18) 14%,
    rgba(35, 69, 49, 0.65) 50%,
    rgba(35, 69, 49, 0.18) 86%,
    transparent
  );
  transform: translateX(-50%);
  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.35rem, 2.35vw, 2.25rem);
  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);
}

.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 {
  padding: 0.2rem 0 1.2rem;
}

.site-footer p {
  margin: 0;
}

.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="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--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));
}

.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 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--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.12fr) minmax(0, 0.88fr);
}

.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__frame img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

.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;
}

.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: minmax(0, 0.88fr) minmax(0, 1.45fr) minmax(0, 1fr);
  gap: 0.75rem;
  align-items: start;
  min-width: 0;
}

.hero__fact-stack {
  display: grid;
  gap: 0.75rem;
  align-content: 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__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-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 {
  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--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;
}

.leaflet-container {
  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;
}

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

.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;
}

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

.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-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);
}

.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__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-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;
}

.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;
}

.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;
}

.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 .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: translateX(-50%) scaleX(0.94);
  }

  50% {
    opacity: 1;
    transform: translateX(-50%) 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;
  }

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

  .hero__fact-stack {
    grid-template-columns: repeat(auto-fit, minmax(12rem, 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;
  }

  .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;
  }
}

@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));
  }

  .hero__fact-stack {
    grid-column: 1 / -1;
    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;
  }

  .hero__actions {
    gap: 0.55rem;
  }

  .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;
  }

  .hero__fact-stack {
    grid-template-columns: 1fr;
  }

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

  .project-home {
    top: 0.45rem;
    width: min(calc(100vw - 1rem), 23rem);
    gap: 0.35rem;
    padding: 0.25rem 0.45rem 0.7rem;
  }

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

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

  .project-home__sprig {
    width: 2.2rem;
    height: 1.9rem;
  }

  .project-home__leaf--a {
    left: 0.55rem;
    bottom: 0.8rem;
  }

  .project-home__leaf--b {
    left: 1.08rem;
    bottom: 1.15rem;
  }

  .project-home__leaf--c {
    left: 1.48rem;
    bottom: 0.72rem;
  }

  .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__sprig,
  .project-home__leaf,
  .project-home__text,
  .project-home__text::after {
    animation: none;
    transition: none;
  }
}
