/* ForageCast Education — species index & profiles */

.fc-education-page .fc-flow-link[aria-current="page"] {
  color: var(--accent-purple);
  border-color: rgba(155, 126, 212, 0.45);
  background: rgba(155, 126, 212, 0.08);
}

.fc-education-hero {
  padding-bottom: var(--space-3);
}

.fc-education-lead {
  max-width: 58ch;
  margin-bottom: var(--space-3);
  line-height: 1.65;
}

.fc-education-disclaimer {
  font-size: 0.88rem;
  color: var(--muted);
  max-width: 58ch;
  margin: 0 0 var(--space-4);
  line-height: 1.55;
}

/* Predict → Learn → Find workflow nav */
.fc-flow {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-bottom: var(--space-4);
  padding-bottom: var(--space-3);
  border-bottom: 1px solid var(--line);
}

.fc-flow-link {
  display: inline-flex;
  align-items: center;
  min-height: 2.5rem;
  padding: 0.55rem 1rem;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--fc-radius);
  text-decoration: none;
  transition:
    color 0.18s ease,
    border-color 0.18s ease,
    background 0.18s ease;
}

.fc-flow-link:hover,
.fc-flow-link:focus-visible {
  color: var(--text);
  border-color: rgba(198, 255, 77, 0.35);
  background: rgba(198, 255, 77, 0.06);
  text-decoration: none;
}

.fc-flow-link[aria-current="page"] {
  color: var(--accent);
  border-color: rgba(198, 255, 77, 0.45);
  background: var(--accent-dim);
}

/* Species index grid */
.fc-species-grid-index {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 16rem), 1fr));
  gap: var(--space-3);
}

.fc-species-card {
  margin: 0;
  background: var(--surface-raised);
  border: 1px solid var(--line);
  box-shadow: var(--fc-panel-shadow);
  border-radius: var(--fc-radius);
  overflow: hidden;
  transition:
    border-color 0.18s ease,
    transform 0.18s ease;
}

.fc-species-card:hover,
.fc-species-card:focus-within {
  border-color: rgba(155, 126, 212, 0.4);
  transform: translateY(-2px);
}

.fc-species-card-link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.fc-species-card-link:hover,
.fc-species-card-link:focus-visible {
  text-decoration: none;
}

.fc-species-card-body {
  padding: var(--space-3);
}

.fc-species-card-body h2 {
  margin: 0 0 var(--space-1);
  font-size: 1.35rem;
}

.fc-species-scientific {
  margin: 0;
  font-size: 0.88rem;
  font-style: italic;
  color: var(--muted);
}

.fc-species-scientific--hero {
  font-size: 1rem;
}

.fc-species-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  align-items: center;
  margin: var(--space-2) 0 0;
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.4;
}

.fc-species-tag {
  display: inline-block;
  padding: 0.15rem 0.45rem;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent-purple);
  border: 1px solid rgba(155, 126, 212, 0.35);
  background: rgba(155, 126, 212, 0.08);
  border-radius: var(--fc-radius);
}

/* Species images — swap SVG placeholders for verified photos via species-data `image` */
.fc-species-figure {
  margin: 0;
}

.fc-species-figure-frame {
  position: relative;
  aspect-ratio: 10 / 7;
  overflow: hidden;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}

.fc-species-figure--hero .fc-species-figure-frame {
  border: 1px solid var(--line);
  border-radius: var(--fc-radius);
}

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

.fc-species-figure-frame--morel {
  background: linear-gradient(145deg, rgba(198, 255, 77, 0.08), var(--surface));
}

.fc-species-figure-frame--chanterelle {
  background: linear-gradient(145deg, rgba(255, 196, 77, 0.1), var(--surface));
}

.fc-species-figure-frame--black-trumpet {
  background: linear-gradient(145deg, rgba(110, 200, 232, 0.08), var(--surface));
}

.fc-species-figure-frame--ramps {
  background: linear-gradient(145deg, rgba(198, 255, 77, 0.1), var(--surface));
}

.fc-species-figure-frame--blueberry {
  background: linear-gradient(145deg, rgba(155, 126, 212, 0.12), var(--surface));
}

.fc-species-img-caption {
  margin: var(--space-2) 0 0;
  font-size: 0.82rem;
  line-height: 1.5;
  color: var(--muted);
  font-style: italic;
}

/* Species profile page */
.fc-species-profile {
  max-width: 52rem;
}

.fc-species-hero {
  margin-bottom: var(--space-4);
}

.fc-species-hero .fc-species-figure--hero {
  margin-bottom: var(--space-3);
}

.fc-species-kicker {
  margin: 0 0 var(--space-1);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-purple);
}

.fc-species-hero-text h1 {
  margin: 0 0 var(--space-1);
}

.fc-species-grid {
  display: grid;
  gap: var(--space-3);
}

@media (min-width: 640px) {
  .fc-species-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .fc-species-section--warn,
  .fc-species-section--note {
    grid-column: 1 / -1;
  }
}

.fc-species-section {
  background: var(--surface-raised);
  border: 1px solid var(--line);
  padding: var(--space-3);
  box-shadow: var(--fc-panel-shadow);
  border-radius: var(--fc-radius);
}

.fc-species-section h2 {
  margin: 0 0 var(--space-2);
  font-size: 1rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent-cyan);
}

.fc-species-section--warn {
  border-color: rgba(232, 168, 168, 0.35);
}

.fc-species-section--warn h2 {
  color: #e8a8a8;
}

.fc-species-section--note {
  border-color: rgba(198, 255, 77, 0.25);
}

.fc-species-section--note h2 {
  color: var(--accent);
}

.fc-species-section p {
  margin: 0;
  line-height: 1.65;
}

.fc-species-list {
  margin: 0;
  padding-left: 1.15rem;
  line-height: 1.65;
}

.fc-species-list li + li {
  margin-top: 0.35rem;
}

.fc-species-profile-foot {
  margin-top: var(--space-4);
  padding-top: var(--space-3);
  border-top: 1px solid var(--line);
}

.fc-species-profile-foot .global-disclaimer {
  margin-bottom: var(--space-3);
}

.fc-species-empty h1 {
  margin-top: 0;
}

.fc-species-breadcrumb {
  margin: 0 0 var(--space-3);
  font-size: 0.88rem;
}

.fc-species-breadcrumb a {
  color: var(--muted);
}

.fc-species-breadcrumb a:hover,
.fc-species-breadcrumb a:focus-visible {
  color: var(--accent);
}
