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

.result-count {
  margin: 0 1rem .5rem;
  color: var(--bs-secondary-color);
  font-size: .84rem;
}

.species-perusal {
  padding: .75rem 1rem;
  border-bottom: 1px solid var(--bs-border-color);
}
.species-perusal p { margin: 0 0 .45rem; font-size: .8rem; overflow-wrap: anywhere; }
.perusal-context { color: var(--bs-secondary-color); }
.perusal-links {
  display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center; gap: .4rem;
}
.species-perusal .perusal-position {
  margin: 0; font-weight: 650; text-align: center; white-space: nowrap;
}
.species-perusal .perusal-position.ml-\[15px\] { margin-left: 15px; }
.species-perusal .perusal-position.mr-\[15px\] { margin-right: 15px; }
.perusal-links > a, .perusal-links > span {
  min-height: 32px; display: flex; align-items: center; justify-content: center;
  padding: .25rem .35rem; border: 1px solid var(--bs-border-color); border-radius: .4rem;
  font-size: .75rem; font-weight: 600; color: var(--bs-primary); text-align: center;
}
.perusal-links [aria-disabled] { color: var(--bs-secondary-color); opacity: .5; }
.perusal-links > a {
  flex-direction: column;
  gap: .2rem;
  overflow-wrap: anywhere;
  min-height: 44px;
}
.perusal-links > a em { font-weight: 500; }
.species-result-card { scroll-margin-top: 4rem; }

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

.place-picker { margin-bottom: 1rem; }
.advanced-filters .place-picker { margin: .1rem .85rem .85rem; }
.place-picker label { font-size: .85rem; font-weight: 600; margin-bottom: .4rem; }
.place-input-wrap { position: relative; }
.search-form .place-picker input { padding: .72rem; }
.place-picker p { font-size: .75rem; color: var(--bs-secondary-color); margin: .35rem 0; }
.place-picker [role="listbox"] {
  position: absolute; z-index: 6; top: 100%; left: 0; right: 0;
  max-height: 16rem; overflow-y: auto; list-style: none; padding: 0; margin: .2rem 0;
  border: 1px solid var(--theme-border-hover); border-radius: .35rem;
  background: var(--bs-dark); box-shadow: 0 .3rem .8rem #0008;
}
.place-picker [role="option"] {
  padding: .8rem; min-height: 44px; font-size: .85rem; cursor: pointer;
  border-bottom: 1px solid var(--bs-border-color); overflow-wrap: anywhere;
}
.place-picker [role="option"][aria-selected="true"],
.place-picker [role="option"]:hover { background: var(--theme-primary-alpha); }
.place-summary { margin: 0 1rem 1rem; padding: .85rem; border: 1px solid var(--bs-border-color); border-radius: .35rem; }
.place-summary p, .place-summary details { font-size: .8rem; overflow-wrap: anywhere; }
.place-summary a { color: var(--bs-primary); text-decoration: underline; }
.place-summary > .clear-filters { display: block; margin-top: .7rem; }
.search-input-wrap {
  position: relative;
}

.community-search-row,
.species-search-row {
  display: flex;
  gap: .5rem;
}

.community-search-row .search-input-wrap,
.species-search-row .search-input-wrap {
  flex: 1;
  min-width: 0;
}

.community-search-submit,
.species-search-submit {
  flex: 0 0 auto;
  font-size: .85rem;
}

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

.collection-filters { margin: .1rem .85rem 1rem; padding: 0; border: 0; min-width: 0; }
.collection-filters legend { font-size: .85rem; font-weight: 600; }
.collection-filters p, .applied-collections p { font-size: .8rem; color: var(--bs-secondary-color); }
.collection-choices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .4rem; }
.collection-choices label {
  display: flex; align-items: center; gap: .5rem; min-height: 44px;
  padding: .5rem; border: 1px solid var(--bs-border-color); border-radius: .35rem;
  font-size: .8rem; cursor: pointer; overflow-wrap: anywhere;
}
.search-form .collection-choices input {
  width: 1.2rem; height: 1.2rem; flex: 0 0 auto; padding: 0; accent-color: var(--bs-primary);
}
.collection-choices label:focus-within { outline: 2px solid var(--bs-primary); outline-offset: 2px; }
.applied-collections { margin: 0 1rem 1rem; font-size: .8rem; }
.applied-collections a { color: var(--bs-primary); text-decoration: underline; }
.filter-actions { flex-wrap: wrap; }
.filter-actions small { font-size: .7rem; color: var(--bs-secondary-color); }
@media (max-width: 359px) { .collection-choices { grid-template-columns: minmax(0, 1fr); } }

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

.species-result-card strong em {
  color: var(--bs-body-color);
  font-size: 1.1rem;
}

.species-result-card small {
  margin-top: 0;
  font-size: .85rem;
}

.community-result-card {
  padding-block: .65rem;
}

.species-result-card {
  align-items: stretch;
  gap: .6rem;
  padding: 0;
  scroll-margin-top: 4.5rem;
}

.species-name-link {
  display: flex;
  flex: 1;
  min-width: 0;
  align-items: center;
  justify-content: space-between;
  gap: .3rem;
  padding: .9rem 0 .9rem .8rem;
  overflow-wrap: anywhere;
}

.species-name-link > span:first-child {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: .24rem;
}

.bonap-thumbnail-link {
  flex: 0 0 112px;
  margin: .55rem .55rem .55rem 0;
  text-align: center;
}

.bonap-thumbnail {
  display: grid;
  place-items: center;
  position: relative;
  width: 112px;
  height: 72px;
  border: 1px solid var(--bs-border-color);
  border-radius: .25rem;
  font-size: .7rem;
  color: var(--bs-secondary-color);
}

.bonap-thumbnail-image, .bonap-thumbnail object {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.bonap-thumbnail-image { position: absolute; inset: 0; visibility: hidden; }
.bonap-thumbnail-image.is-loaded { visibility: visible; }
.bonap-thumbnail noscript { position: absolute; inset: 0; }
.bonap-thumbnail.image-unavailable::after {
  content: "Map unavailable";
  position: absolute;
}
.species-name-link:focus-visible, .bonap-thumbnail-link:focus-visible, .bonap-back:focus-visible {
  outline: 2px solid var(--theme-primary);
  outline-offset: 3px;
}
.explicit-back-bar { grid-template-columns: minmax(0, 1fr) auto; }
.explicit-back-bar .top-title { display: none; }
.bonap-back { font-size: .85rem; padding: .7rem .25rem; }
.bonap-viewer { padding: 1rem; overflow-wrap: anywhere; }
.bonap-viewer h2 { font-size: 1.2rem; }
.bonap-full-image { display: block; width: 100%; height: auto; margin-bottom: 1rem; }
.bonap-color-key-image { max-width: 542px; pointer-events: none; }
.bonap-map-viewport { width: 100%; max-height: 65vh; overflow: auto; margin-bottom: .7rem; }
.bonap-map-viewport:focus-visible { outline: 2px solid var(--theme-primary); outline-offset: 3px; }
.bonap-map-viewport .bonap-full-image { max-width: none; margin: 0; pointer-events: none; }
.bonap-map-viewport.is-zoomed { cursor: grab; }
.bonap-map-viewport.is-dragging { cursor: grabbing; }
.bonap-zoom-hint { font-size: .75rem; }
.bonap-credit { color: var(--bs-secondary-color); font-size: .75rem; }
.bonap-list-credits { padding: 0 1rem; overflow-wrap: anywhere; }
@media (max-width: 370px) {
  .bonap-thumbnail-link { flex-basis: 88px; }
  .bonap-thumbnail { width: 88px; height: 60px; }
}

.community-card-heading small {
  margin-top: 0;
  margin-left: .35rem;
}

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

.gallery-awaiting-images { min-height: 8rem; }
.gallery-status { margin: .5rem 0; font-size: .8rem; color: var(--bs-secondary-color); }
.gallery-status:empty { display: none; }

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

.wikipedia-introduction { margin-bottom: 1.25rem; }
.wikipedia-introduction .detail-lede {
  margin-bottom: .4rem;
  white-space: pre-line;
  overflow-wrap: anywhere;
}
.wikipedia-attribution {
  margin: 0;
  color: var(--bs-secondary-color);
  font-size: .75rem;
}
.wikipedia-attribution a { color: var(--theme-primary); }

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

.bloom-time-fact .fact-summary {
  max-width: 100%;
}

.bloom-time-fact .fact-text {
  display: inline;
  flex: 0 1 auto;
  white-space: normal;
  overflow-wrap: anywhere;
}

.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 {
  min-width: 0;
  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: minmax(0, 1fr) minmax(0, 1fr) 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;
  overflow-wrap: anywhere;
}

.genus-uncertainty {
  flex-basis: 100%;
  margin: .5rem 0 0;
  color: var(--bs-secondary-color);
  font-size: .8rem;
}

.genus-exploration {
  width: 100%;
  margin-top: .6rem;
  padding-left: .75rem;
  border-left: 2px dashed var(--theme-border);
}

.genus-exploration h3 {
  margin: 0 0 .35rem;
  font-size: .8rem;
}

.genus-exploration ul {
  margin: 0;
  padding-left: 1rem;
}

.genus-guide-link {
  display: inline-block;
  padding: .35rem 0;
  font-size: .8rem;
  text-decoration: underline;
  overflow-wrap: anywhere;
}

@media (max-width: 480px) {
  .species-list-item {
    flex-direction: column;
    align-items: stretch;
    gap: .4rem;
  }

  .species-life-form {
    align-self: flex-start;
  }
}

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

/* Species source text (sourced descriptions) */
.source-text-block { min-width: 0; }
.source-text-status {
  margin: 1.5rem 0 0 !important;
  padding: .7rem .85rem;
  border-left: 2px solid var(--theme-primary);
  border-radius: .3rem;
  background: var(--theme-primary-alpha);
  color: var(--bs-body-color) !important;
  font-size: .8rem !important;
  line-height: 1.5;
}
.source-text-reload {
  color: var(--theme-primary);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: .18rem;
}
.source-text-reload:hover, .source-text-reload:focus-visible { color: var(--theme-primary-hover); }
.source-offerings { display: flex; flex-direction: column; gap: .55rem; min-width: 0; }
.source-offering {
  min-width: 0;
  border: 1px solid var(--theme-border);
  border-radius: .45rem;
  background: var(--theme-bg-panel);
  transition: border-color .2s ease, background-color .2s ease;
}
.source-offering[open] { border-color: rgba(140, 184, 131, .35); background: rgba(140, 184, 131, .05); }
.source-offering-summary {
  display: flex;
  align-items: center;
  gap: .55rem;
  min-height: 2.9rem;
  padding: .6rem .85rem;
  cursor: pointer;
  list-style: none;
  border-radius: .45rem;
}
.source-offering-summary::-webkit-details-marker { display: none; }
.source-offering-summary::marker { content: ""; }
.source-offering-summary:hover { background: var(--theme-bg-panel-hover); }
.source-offering-summary:focus-visible { outline: 2px solid var(--theme-primary); outline-offset: 2px; }
.source-offering-tag {
  min-width: 0;
  flex: 1 1 auto;
  color: var(--bs-body-color);
  font-size: .86rem;
  font-weight: 600;
  line-height: 1.35;
  overflow-wrap: anywhere;
}
.source-offering-hint { flex: 0 0 auto; color: var(--bs-secondary-color); font-size: .7rem; white-space: nowrap; }
.source-offering-icon { flex: 0 0 auto; color: var(--theme-primary); font-size: .95rem; line-height: 1; transition: transform .2s ease; }
.source-offering[open] .source-offering-icon { transform: rotate(180deg); }
.source-offering-body {
  display: flex;
  flex-direction: column;
  gap: 1.05rem;
  padding: .35rem .95rem 1rem;
  border-top: 1px solid var(--theme-border);
  min-width: 0;
}
.source-field { min-width: 0; padding-top: .55rem; }
.source-field-title {
  margin: 0 0 .4rem;
  color: var(--theme-primary);
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  line-height: 1.4;
  overflow-wrap: anywhere;
}
.content-section .source-field-text {
  margin: 0;
  max-width: 38rem;
  color: rgba(248, 249, 250, .86);
  font-size: .93rem;
  line-height: 1.7;
  white-space: pre-line;
  overflow-wrap: anywhere;
  hyphens: auto;
}
.source-offering-link {
  align-self: flex-start;
  max-width: 100%;
  color: var(--theme-primary);
  font-size: .8rem;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: rgba(140, 184, 131, .45);
  text-underline-offset: .2rem;
  overflow-wrap: anywhere;
}
.source-offering-link:hover, .source-offering-link:focus-visible { color: var(--theme-primary-hover); text-decoration-color: currentColor; }
.content-section .source-text-empty { color: var(--bs-secondary-color); font-size: .82rem; font-style: italic; }
