:root {
  --app-max-width: 30rem;
  --theme-primary: #8cb883;
  --theme-primary-hover: #9fcc96;
  --theme-primary-alpha: rgba(140, 184, 131, 0.15);
  --theme-bg: #141715;
  --theme-bg-panel: rgba(255, 255, 255, 0.04);
  --theme-bg-panel-hover: rgba(255, 255, 255, 0.07);
  --theme-border: rgba(255, 255, 255, 0.1);
  --theme-border-hover: rgba(255, 255, 255, 0.2);
  --bs-primary: var(--theme-primary);
  --bs-body-bg: var(--theme-bg);
  --bs-dark: #0f1210;
  --bs-border-color: var(--theme-border);
  --bs-body-color: #e6eadd;
  --bs-secondary-color: #94a397;
  --bs-info: #78a8a3;
  --bs-success: #8cb883;
}

* {
  box-sizing: border-box;
}

body {
  min-width: 320px;
  min-height: 100vh;
  background: var(--bs-dark);
  color: var(--bs-body-color);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  transition: background-color 0.3s ease;
}

a {
  color: inherit;
  text-decoration: none;
}

.app-frame {
  width: 100%;
  max-width: var(--app-max-width);
  min-height: 100vh;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--bs-border-color);
  border-left: 1px solid var(--bs-border-color);
  background: var(--bs-body-bg);
}

.top-bar {
  height: 3.5rem;
  flex: 0 0 auto;
  display: grid;
  grid-template-columns: 2.5rem minmax(0, 1fr) auto;
  align-items: center;
  padding: 0 .55rem;
  border-bottom: 1px solid var(--bs-border-color);
  background: var(--bs-dark);
  position: sticky;
  top: 0;
  z-index: 5;
}

.top-title {
  text-align: center;
  font-size: 1.05rem;
  font-weight: 600;
  white-space: nowrap;
}

.donate-button {
  min-height: 2.15rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 .65rem;
  border: 1px solid var(--theme-primary);
  border-radius: 999px;
  color: var(--bs-dark);
  background: var(--theme-primary);
  font-size: .72rem;
  font-weight: 750;
  line-height: 1;
  transition: background-color .2s ease, border-color .2s ease, transform .2s ease;
}

.donate-button:hover,
.donate-button:focus-visible {
  border-color: var(--theme-primary-hover);
  background: var(--theme-primary-hover);
  color: var(--bs-dark);
  transform: translateY(-1px);
}

.icon-button, .icon-spacer {
  width: 2.5rem;
  height: 2.5rem;
  display: grid;
  place-items: center;
  color: var(--bs-primary);
  font-size: 2rem;
  line-height: 1;
  border-radius: .5rem;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.icon-button:hover, .icon-button:focus-visible {
  background: var(--theme-primary-alpha);
  color: var(--theme-primary-hover);
}

.icon-button.muted {
  color: var(--bs-secondary-color);
  font-size: 1.5rem;
}

.page-content {
  flex: 1 0 auto;
  padding-bottom: 5.4rem;
}

.bottom-nav {
  position: fixed;
  width: min(100%, var(--app-max-width));
  bottom: 0;
  z-index: 10;
  display: flex;
  justify-content: space-around;
  height: 4.1rem;
  padding: .35rem .35rem .45rem;
  border-top: 1px solid var(--bs-border-color);
  background: rgba(33, 37, 41, .98);
}

.nav-item {
  min-width: 4.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .12rem;
  color: var(--bs-secondary-color);
  font-size: .65rem;
  font-weight: 500;
}

.nav-mark {
  height: 1.45rem;
  font-size: 1.6rem;
  line-height: 1;
}

.nav-item.active {
  color: var(--bs-primary);
}

.nav-item:hover, .nav-item:focus-visible {
  color: var(--bs-body-color);
}

.home-intro {
  position: relative;
  padding: 2.7rem 1.25rem 1.6rem;
  text-align: center;
}

.home-donate-button {
  position: absolute;
  top: .7rem;
  right: .75rem;
}

.home-intro h1, .list-heading h1, .detail-hero h1 {
  margin: 0;
  font-size: 1.65rem;
  font-weight: 700;
}

.eyebrow {
  margin: 0 0 .5rem;
  color: var(--bs-secondary-color);
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .14em;
}

.lead-copy {
  max-width: 22rem;
  margin: 1rem auto 0;
  color: rgba(248, 249, 250, .84);
  font-size: .91rem;
  line-height: 1.5;
}

.attribution {
  margin: .7rem 0 0;
  color: var(--bs-secondary-color);
  font-size: .7rem;
  letter-spacing: .02em;
}

.home-cards, .result-list, .link-stack {
  display: flex;
  flex-direction: column;
  gap: .7rem;
}

.home-cards {
  padding: .25rem 1rem 1rem;
}

.section-card, .result-card, .link-row, .fact-panel, .window-card {
  border: 1px solid var(--bs-border-color);
  border-radius: .45rem;
  background: var(--theme-bg-panel);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.section-card {
  display: flex;
  align-items: center;
  gap: .85rem;
  min-height: 6.3rem;
  padding: 1rem;
}

.section-card:hover, .section-card:focus-visible, .result-card:hover, .result-card:focus-visible, .link-row:hover, .link-row:focus-visible {
  background: var(--theme-bg-panel-hover);
  border-color: var(--theme-border-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.section-icon {
  width: 3.1rem;
  height: 3.1rem;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border: 1px solid currentColor;
  border-radius: 50%;
  font-size: 1.9rem;
}

.section-icon.success { color: var(--bs-success); }
.section-icon.info { color: var(--bs-info); }
.section-icon.primary { color: var(--bs-primary); }
.section-icon.warning { color: var(--bs-warning); }
.section-icon.sources { color: #c084fc; }

.section-card-copy, .result-card > span:first-child {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: .24rem;
}

.card-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .42rem;
}

.section-card-copy strong, .result-card strong {
  font-size: 1rem;
}

.section-card-copy span, .result-card small {
  color: var(--bs-secondary-color);
  font-size: .77rem;
  line-height: 1.45;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: .18rem .42rem;
  border-radius: 999px;
  font-size: .62rem;
  font-weight: 700;
  letter-spacing: .02em;
  line-height: 1.15;
  white-space: nowrap;
}

.status-badge.in-work {
  color: #d1f4df;
  background: rgba(25, 135, 84, .38);
}

.status-badge.future-offering {
  color: #ffe8b3;
  background: rgba(255, 193, 7, .22);
}

.section-card-disabled {
  cursor: default;
  opacity: .82;
}

.chevron {
  flex: 0 0 auto;
  color: var(--bs-secondary-color);
  font-size: 1.75rem;
  line-height: 1;
}

.list-heading, .detail-hero {
  padding: 1.55rem 1rem 1.15rem;
  border-bottom: 1px solid var(--bs-border-color);
}

.list-heading p:last-child {
  margin: .6rem 0 0;
  color: var(--bs-secondary-color);
  font-size: .84rem;
  line-height: 1.45;
}

.source-groups {
  padding: .25rem 1rem 1rem;
}

.source-group + .source-group {
  margin-top: 1.35rem;
}

.source-group h2 {
  margin: 0 0 .65rem;
  color: var(--bs-body-color);
  font-size: 1.05rem;
}

.source-list {
  display: flex;
  flex-direction: column;
  gap: .55rem;
}

.source-row {
  display: flex;
  align-items: center;
  gap: .65rem;
  min-height: 3rem;
  padding: .8rem .9rem;
  border: 1px solid var(--bs-border-color);
  border-radius: .45rem;
  background: var(--theme-bg-panel);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.source-row:hover, .source-row:focus-visible {
  border-color: var(--theme-border-hover);
  background: var(--theme-bg-panel-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.source-mark {
  color: #c084fc;
  font-size: 1.2rem;
  line-height: 1;
}

.source-copy {
  min-width: 0;
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: .18rem;
}

.source-copy strong {
  color: var(--bs-body-color);
}

.source-physical-address {
  color: var(--bs-body-color);
  font-size: .72rem;
  line-height: 1.35;
}

.source-address {
  overflow-wrap: anywhere;
  color: var(--bs-secondary-color);
  font-size: .7rem;
  line-height: 1.35;
}

.source-external {
  flex: 0 0 auto;
  color: var(--bs-secondary-color);
  font-size: 1rem;
}

.search-form {
  margin: 1rem;
}

.search-input-wrap {
  position: relative;
}

.search-form input, .search-form select {
  width: 100%;
  padding: .72rem 2.6rem .72rem 2.35rem;
  color: var(--bs-body-color);
  border: 1px solid var(--bs-border-color);
  border-radius: .35rem;
  background: var(--bs-dark);
}

.search-form input:focus, .search-form select:focus {
  border-color: var(--bs-primary);
  outline: 0;
  box-shadow: 0 0 0 .2rem rgba(13, 110, 253, .2);
}

.search-mark {
  position: absolute;
  top: .5rem;
  left: .75rem;
  color: var(--bs-secondary-color);
  font-size: 1.35rem;
  pointer-events: none;
}

.advanced-filters {
  margin-top: .65rem;
  border: 1px solid var(--bs-border-color);
  border-radius: .35rem;
  background: rgba(255, 255, 255, .025);
}

.advanced-filters summary {
  padding: .72rem .85rem;
  color: var(--bs-body-color);
  cursor: pointer;
  font-size: .78rem;
  font-weight: 600;
  list-style-position: inside;
}

.advanced-filters summary::marker {
  color: var(--bs-secondary-color);
}

.filter-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .7rem;
  padding: .1rem .85rem .85rem;
}

.filter-grid label {
  display: flex;
  flex-direction: column;
  gap: .3rem;
  min-width: 0;
}

.filter-grid label > span {
  color: var(--bs-secondary-color);
  font-size: .68rem;
  font-weight: 600;
  line-height: 1.25;
}

.search-form select {
  padding: .58rem .5rem;
  font-size: .75rem;
}

.filter-actions {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: 0 .85rem .85rem;
}

.filter-actions .btn {
  font-size: .75rem;
}

.clear-filters {
  color: var(--bs-secondary-color);
  font-size: .75rem;
}

.clear-search {
  position: absolute;
  top: .5rem;
  right: .75rem;
  color: var(--bs-secondary-color);
  font-size: 1.3rem;
}

.result-list {
  padding: .1rem 1rem 1rem;
}

.result-card {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: .75rem;
  padding: .95rem 1rem;
}

.result-card em, .botanical-name {
  color: var(--bs-secondary-color);
  font-size: .86rem;
}

.result-card small {
  margin-top: .3rem;
}

.accent-info {
  color: var(--bs-info) !important;
  font-weight: 600;
}

.empty-state {
  padding: 4.2rem 1.5rem;
  text-align: center;
  color: var(--bs-secondary-color);
}

.empty-state h2, .empty-state h1 {
  margin: .7rem 0 .4rem;
  color: var(--bs-body-color);
  font-size: 1rem;
}

.empty-state p {
  max-width: 17rem;
  margin: 0 auto;
  font-size: .84rem;
  line-height: 1.45;
}

.empty-mark {
  width: 3rem;
  height: 3rem;
  display: grid;
  place-items: center;
  margin: 0 auto;
  border-radius: 50%;
  background: rgba(255, 255, 255, .06);
  font-size: 1.6rem;
}

.loading-state {
  min-height: 25rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .7rem;
  padding: 2rem 1.25rem 5rem;
  text-align: center;
}

.loading-state h1 {
  margin: 0;
  font-size: 1.55rem;
}

.loading-state p:not(.eyebrow) {
  max-width: 22rem;
  margin: 0;
  color: var(--bs-secondary-color);
  line-height: 1.5;
}

.loading-mark {
  color: var(--bs-primary);
  font-size: 3rem;
  line-height: 1;
}

.detail-hero h1 {
  margin-bottom: .25rem;
}

.detail-hero .common-name, .related-name {
  margin: 0 0 .9rem;
  font-size: 1.05rem;
}

.species-images {
  margin: .2rem -1rem 0;
}

.species-image-strip {
  display: flex;
  gap: .55rem;
  padding: .15rem 1rem .35rem;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scroll-snap-type: inline proximity;
  scrollbar-width: thin;
}

.species-thumbnail {
  width: 5.5rem;
  height: 4.125rem;
  flex: 0 0 auto;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: .45rem;
  background: rgba(255, 255, 255, .05);
  scroll-snap-align: start;
}

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

.species-thumbnail:hover,
.species-thumbnail:focus-visible {
  border-color: var(--bs-primary);
  box-shadow: 0 0 0 .12rem rgba(13, 110, 253, .2);
}

.more-photos {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: .32rem;
  margin: .35rem 0 0;
  color: var(--bs-secondary-color);
  font-size: .72rem;
}

.more-photos a {
  color: var(--bs-primary);
}

.more-photos a:hover,
.more-photos a:focus-visible {
  text-decoration: underline;
}

.image-overlay {
  width: min(94vw, 56rem);
  max-width: none;
  max-height: 92vh;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: .65rem;
  background: #111418;
  color: var(--bs-body-color);
}

.image-overlay::backdrop {
  background: rgba(0, 0, 0, .82);
  backdrop-filter: blur(2px);
}

.image-overlay-panel {
  position: relative;
  display: flex;
  flex-direction: column;
  max-height: 92vh;
}

.image-overlay-close {
  position: absolute;
  top: .55rem;
  right: .55rem;
  z-index: 1;
  width: 2.5rem;
  height: 2.5rem;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, .35);
  border-radius: 50%;
  background: rgba(0, 0, 0, .72);
  color: #fff;
  font-size: 1.7rem;
  line-height: 1;
}

.image-overlay-image {
  display: block;
  width: 100%;
  min-height: 12rem;
  max-height: calc(92vh - 5.5rem);
  object-fit: contain;
  background: #080a0c;
}

.image-overlay-copy {
  padding: .8rem 1rem .95rem;
}

.image-overlay-caption,
.image-overlay-credit {
  margin: 0;
  line-height: 1.4;
}

.image-overlay-caption {
  font-size: .88rem;
}

.image-overlay-credit {
  color: var(--bs-secondary-color);
  font-size: .74rem;
}

.image-overlay-caption:not([hidden]) + .image-overlay-credit {
  margin-top: .25rem;
}

.related-name {
  color: var(--bs-primary);
  font-weight: 600;
}

.detail-body {
  padding: 1.2rem 1rem 1rem;
}

.detail-lede {
  margin: 0 0 1.25rem;
  font-size: .92rem;
  line-height: 1.55;
}

.fact-grid {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 0;
  margin-bottom: 0;
}

.fact-panel div {
  display: flex;
  flex-direction: column;
  gap: .3rem;
}

.fact-panel small, .window-card small {
  color: var(--bs-secondary-color);
  font-size: .65rem;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.fact-row {
  padding: .2rem 0;
}

.height-fact, .fact-element {
  min-width: 0;
}

.fact-text {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: baseline;
  min-width: 0;
  white-space: nowrap;
  font-size: 1rem;
  line-height: 1.35;
}

.fact-label {
  color: var(--bs-body-color);
  font-weight: 500;
}

.fact-value {
  margin-left: .3rem;
  color: var(--bs-secondary-color);
  font-weight: 400;
}

.fact-details {
  display: block;
  min-width: 0;
  margin: 0;
}

.fact-summary {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .2rem;
  margin: 0;
  padding: 0;
  line-height: 1.35;
  list-style: none;
}

.fact-summary::-webkit-details-marker {
  display: none;
}

.fact-summary::marker {
  display: none;
}

.fact-expand-control {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: .2rem;
  color: var(--bs-primary);
  cursor: pointer;
  font-size: .75rem;
  line-height: 1.35;
  white-space: nowrap;
  transition: color 0.2s ease;
}

.fact-summary:hover .fact-expand-control {
  color: var(--theme-primary-hover);
}

.fact-expand-icon {
  display: inline-block;
  font-size: .85rem;
  line-height: 1;
}

.height-sources, .fact-sources {
  display: flex;
  flex-direction: column;
  gap: .35rem;
  margin-top: .55rem;
}

.height-sources p, .fact-sources p {
  margin: 0;
  padding-left: 1rem;
  color: var(--bs-secondary-color);
  font-size: .82rem;
  line-height: 1.45;
}

.height-sources p.fact-source-disagreement, .fact-sources p.fact-source-disagreement {
  color: #ffcf8a;
}

.height-unavailable, .fact-unavailable {
  color: var(--bs-secondary-color);
}

.content-section, .step-section {
  margin-top: 1.5rem;
}

.content-section h2, .step-section h2 {
  margin: 0 0 .85rem;
  padding-bottom: .6rem;
  border-bottom: 1px solid var(--bs-border-color);
  font-size: 1rem;
}

.content-section p, .step-section p, .fact-panel p, .plain-facts dd {
  margin: 0;
  color: rgba(248, 249, 250, .82);
  font-size: .88rem;
  line-height: 1.55;
}

.phenology-section {
  margin-top: 0;
  padding-top: 0;
}

.phenology-chart {
  margin: 0;
  padding: 0;
}

.phenology-graph {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}

.phenology-baseline, .phenology-gridline {
  fill: none;
  stroke: rgba(248, 249, 250, .13);
  stroke-width: 1;
}

.phenology-gridline {
  stroke-dasharray: 2 5;
}

.phenology-axis-label {
  fill: var(--bs-secondary-color);
  font-size: 7.5px;
  font-variant-numeric: tabular-nums;
  text-anchor: end;
}

.phenology-month-label {
  fill: var(--bs-secondary-color);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .02em;
  text-anchor: middle;
}

.phenology-area {
  fill: url("#phenology-area-gradient");
  stroke: none;
}

.phenology-line {
  fill: none;
  stroke: #f06a6a;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.75;
  filter: drop-shadow(0 2px 4px rgba(240, 106, 106, .16));
}

.phenology-point {
  fill: #f06a6a;
  stroke: var(--bs-body-bg);
  stroke-width: 1.25;
}

.phenology-data {
  margin: 0;
}

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.phenology-caption, .phenology-unavailable {
  margin: 0 !important;
  color: var(--bs-secondary-color) !important;
  font-size: .72rem !important;
  text-align: center;
}

.plain-facts {
  display: flex;
  flex-direction: column;
  gap: .85rem;
  margin: 1rem 0 0;
}

.plain-facts > div {
  display: grid;
  grid-template-columns: 7rem 1fr;
  gap: .7rem;
}

.plain-facts dt, .step-section h3 {
  color: var(--bs-body-color);
  font-size: .82rem;
  font-weight: 700;
}

.plain-facts dd {
  margin: 0;
}

.link-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .7rem;
  padding: .85rem .95rem;
  font-size: .87rem;
}

.link-row em {
  display: block;
  margin-top: .2rem;
  color: var(--bs-secondary-color);
  font-size: .78rem;
}

.fact-panel {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1rem;
}

.notice {
  display: flex;
  flex-direction: column;
  gap: .4rem;
  padding: .85rem;
  border: 1px solid rgba(13, 110, 253, .35);
  border-radius: .35rem;
  background: rgba(13, 110, 253, .12);
  color: var(--bs-primary);
}

.notice strong {
  font-size: .88rem;
}

.notice p {
  margin: 0;
  color: rgba(248, 249, 250, .8);
  font-size: .8rem;
  line-height: 1.45;
}

.contribution-success {
  margin-bottom: 1.25rem;
  border-color: rgba(25, 135, 84, .4);
  background: rgba(25, 135, 84, .14);
  color: #b8f0ce;
}

.contribution-form {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.form-section {
  display: flex;
  flex-direction: column;
  gap: .45rem;
  margin: 0;
  padding: 0;
  border: 0;
}

.form-label, .form-section legend {
  margin: 0;
  color: var(--bs-body-color);
  font-size: .84rem;
  font-weight: 700;
}

.form-section input[type="file"],
.form-section input[type="text"],
.form-section textarea {
  width: 100%;
  padding: .72rem .75rem;
  color: var(--bs-body-color);
  border: 1px solid var(--bs-border-color);
  border-radius: .35rem;
  background: var(--bs-dark);
  font: inherit;
  font-size: .82rem;
}

.form-section input[type="file"] {
  padding: .55rem .65rem;
  font-size: .75rem;
}

.form-section textarea {
  min-height: 8rem;
  resize: vertical;
}

.form-section input:focus,
.form-section textarea:focus {
  border-color: var(--bs-primary);
  outline: 0;
  box-shadow: 0 0 0 .2rem rgba(13, 110, 253, .2);
}

.field-help, .optional {
  color: var(--bs-secondary-color);
  font-size: .72rem;
  line-height: 1.45;
}

.optional {
  font-weight: 400;
}

.required-mark {
  color: #ffb4ab;
}

.topic-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .55rem;
  margin-top: .15rem;
}

.check-option, .consent-option {
  display: flex;
  align-items: flex-start;
  gap: .5rem;
  color: rgba(248, 249, 250, .86);
  font-size: .8rem;
  line-height: 1.4;
}

.check-option input, .consent-option input {
  flex: 0 0 auto;
  width: 1rem;
  height: 1rem;
  margin-top: .12rem;
  accent-color: var(--bs-primary);
}

.form-fields {
  gap: .45rem;
}

.form-fields .form-label:not(:first-child) {
  margin-top: .35rem;
}

.form-error {
  margin: 0;
  color: #ffb4ab;
  font-size: .73rem;
  line-height: 1.4;
}

.consent-option {
  margin-top: -.15rem;
}

.consent-help {
  margin: -.9rem 0 0 1.5rem;
}

.contribution-submit {
  align-self: flex-start;
  margin-top: -.15rem;
}

.step-section h2 {
  display: flex;
  align-items: center;
  gap: .55rem;
}

.step-section h2 span {
  width: 1.45rem;
  height: 1.45rem;
  display: grid;
  place-items: center;
  border: 1px solid var(--bs-border-color);
  border-radius: 50%;
  color: var(--bs-primary);
  font-size: .75rem;
}

.step-section h3 {
  margin: 1rem 0 .35rem;
}

.window-card {
  display: flex;
  flex-direction: column;
  gap: .25rem;
  padding: .75rem;
  margin-bottom: .9rem;
}

.window-card strong {
  font-size: .9rem;
}

.standalone-link {
  margin-top: 1.5rem;
}

.btn-primary {
  margin-top: 1.1rem;
  background-color: var(--theme-primary);
  border-color: var(--theme-primary);
  color: var(--bs-dark);
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.btn-primary:hover, .btn-primary:focus-visible {
  background-color: var(--theme-primary-hover);
  border-color: var(--theme-primary-hover);
  color: var(--bs-dark);
  transform: translateY(-1px);
}

@media (min-width: 48rem) {
  :root {
    --app-max-width: 60rem;
  }

  .app-frame {
    box-shadow: 0 0 2rem rgba(0, 0, 0, .24);
  }

  .phenology-caption, .phenology-unavailable {
    font-size: .9rem !important;
  }

  .species-thumbnail {
    width: 7rem;
    height: 5.25rem;
  }
}
/* Natural Community Details */
.community-hero {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.badge-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.25rem;
}

.community-source-link {
  width: fit-content;
  color: var(--theme-primary);
  font-size: .78rem;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: rgba(140, 184, 131, .45);
  text-underline-offset: .2rem;
}

.community-source-link:hover,
.community-source-link:focus-visible {
  color: var(--theme-primary-hover);
  text-decoration-color: currentColor;
}

.community-badge {
  background: var(--theme-primary-alpha);
  color: var(--theme-primary);
  border: 1px solid rgba(140, 184, 131, 0.3);
  padding: 0.35rem 0.65rem;
  border-radius: 2rem;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.03em;
}

.community-badge-outline {
  background: transparent;
  color: var(--bs-secondary-color);
  border: 1px solid var(--theme-border);
  padding: 0.35rem 0.65rem;
  border-radius: 2rem;
  font-size: 0.7rem;
  font-weight: 500;
}

.hero-image-wrap {
  margin: 1rem -1rem 0;
  overflow: hidden;
  position: relative;
  background: var(--theme-bg-panel);
}

.hero-image {
  width: 100%;
  height: 14rem;
  object-fit: cover;
  display: block;
}

.hero-image-wrap figcaption {
  margin: 0;
  padding: .4rem 1rem;
  color: var(--bs-secondary-color);
  background: var(--bs-dark);
  font-size: .68rem;
  text-align: right;
}

.map-section > img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 0.5rem;
  background: var(--theme-bg-panel);
  border: 1px solid var(--theme-border);
  padding: .65rem;
}

.rank-panel {
  display: flex;
  flex-direction: row;
  justify-content: space-around;
  text-align: center;
}

.rank-panel div {
  flex: 1;
}

.rank-panel div:first-child {
  border-right: 1px solid var(--theme-border);
}

.species-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.species-list-item {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  background: var(--theme-bg-panel);
  border: 1px solid var(--theme-border);
  border-radius: 0.5rem;
}

.species-life-form, .species-status {
  flex: 0 0 auto;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--theme-primary);
  background: var(--theme-primary-alpha);
  padding: 0.2rem 0.5rem;
  border-radius: 0.25rem;
  font-weight: 700;
}

.species-status {
  color: var(--bs-warning);
  background: rgba(255, 193, 7, 0.15);
}

.species-names {
  display: flex;
  flex-wrap: wrap;
  column-gap: 0.4rem;
  row-gap: 0.1rem;
  align-items: baseline;
}

.species-guide-link {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: .45rem;
  margin-top: .45rem;
  padding: .55rem .65rem;
  border: 1px solid rgba(140, 184, 131, .28);
  border-radius: .35rem;
  color: var(--theme-primary);
  background: var(--theme-primary-alpha);
  font-size: .7rem;
  transition: border-color .2s ease, background-color .2s ease;
}

.species-guide-link strong {
  color: var(--bs-body-color);
  font-size: .72rem;
  font-weight: 600;
}

.species-guide-link:hover,
.species-guide-link:focus-visible {
  border-color: var(--theme-primary);
  background: rgba(140, 184, 131, .23);
}

.species-common {
  color: var(--bs-body-color);
  font-size: 0.9rem;
  font-weight: 500;
}

.species-scientific {
  color: var(--bs-secondary-color);
  font-size: 0.8rem;
}

.link-row-copy {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  flex: 1;
}

.link-row-copy span {
  font-weight: 500;
}

.link-row-copy em, .link-row-copy small {
  color: var(--bs-secondary-color);
  font-size: 0.75rem;
  font-style: normal;
}

.link-row-copy em {
  font-style: italic;
}

.community-link-thumbnail {
  width: 4.5rem;
  height: 3.25rem;
  flex: 0 0 auto;
  border: 1px solid var(--theme-border);
  border-radius: 0.4rem;
  object-fit: cover;
}

.empty-note {
  color: var(--bs-secondary-color);
  font-size: 0.85rem;
  font-style: italic;
  padding: 1rem;
  text-align: center;
  border: 1px dashed var(--theme-border);
  border-radius: 0.5rem;
}

.section-text {
  white-space: pre-line;
}

.community-sections .content-section {
  margin-top: 1.05rem;
}

.community-sections .content-section h2 {
  margin-bottom: .5rem;
  padding-bottom: .4rem;
}

.community-sections .section-text {
  line-height: 1.45;
}

.community-attribution {
  margin: 1.75rem 0 .5rem;
  color: var(--bs-secondary-color);
  font-size: .72rem;
  text-align: center;
}
