.species {
  --tree-cream: #f6f3e9;
  --tree-gold: #ead09b;
  --tree-muted: #d3ddce;
  --tree-rule: rgb(218 229 211 / 30%);
  color: var(--tree-cream);
  background: #173d30;
  padding-block: clamp(4rem, 8vw, 8.5rem);
  scroll-margin-top: 5rem;
}
.species .species__layout {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  align-items: start;
  gap: clamp(3rem, 7vw, 7.5rem);
}
.species h2, .species h3, .species__tabs a {
  color: inherit;
  font-family: var(--display, Georgia, serif);
  font-weight: 400;
}
.species h2 {
  margin: 0;
  font-size: clamp(2.8rem, 4.7vw, 5rem);
  line-height: 1.02;
  letter-spacing: -.035em;
  text-wrap: balance;
}
.species h2 em { color: var(--tree-gold); font-weight: inherit; }
.species__intro, .species__detail p, .species dl, .species__photo-credit { font-family: var(--sans, sans-serif); }
.species__intro {
  max-width: 35ch;
  margin: 1.3rem 0 clamp(2rem, 4vw, 4rem);
  color: var(--tree-muted);
  font-size: 1.05rem;
  line-height: 1.6;
}
.species__tabs {
  display: grid;
  border-top: 1px solid var(--tree-rule);
}
.species__tabs a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  min-height: 3.75rem;
  padding: .8rem .25rem .8rem 0;
  border-bottom: 1px solid var(--tree-rule);
  text-decoration: none;
  font-size: clamp(1.35rem, 2.2vw, 2.15rem);
  line-height: 1.2;
}
.species__tabs a::after {
  content: '';
  flex: none;
  width: .87rem;
  height: .87rem;
  border: 1px solid currentColor;
  border-radius: 50%;
  box-sizing: border-box;
}
.species__tabs a[aria-selected="true"], .species__tabs a:hover { color: var(--tree-gold); }
.species__tabs a[aria-selected="true"]::after {
  background: currentColor;
  outline: 1px solid currentColor;
  outline-offset: 3px;
  transform: scale(.65);
}
.species :focus-visible { outline: 2px solid var(--tree-gold); outline-offset: 4px; }
.species__panel { margin: 0; scroll-margin-top: 5rem; }
.species__panel:not([hidden]) + .species__panel:not([hidden]) { margin-top: 3rem; }
.species__panel[hidden] { display: none; }
.species__panel figure { position: relative; margin: 0; }
.species__panel img {
  width: 100%;
  height: auto;
  aspect-ratio: 1.85;
  object-fit: cover;
  display: block;
}
#gatunek-srebrny img { object-position: center 41%; }
.species__photo-credit {
  position: absolute;
  right: .5rem;
  bottom: .5rem;
  max-width: calc(100% - 1rem);
  padding: .2rem .4rem;
  background: #132d24ed;
  color: #fff;
  font-size: .75rem;
  line-height: 1.4;
}
.species__photo-credit a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.species__detail { padding-top: 1.2rem; }
.species__detail h3 { margin: 0; font-size: clamp(1.8rem, 3vw, 2.9rem); line-height: 1.15; }
.species__detail p { margin: .55rem 0 1.15rem; color: var(--tree-muted); font-size: 1rem; line-height: 1.6; max-width: 62ch; }
.species dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
  margin: 0;
  padding-top: .9rem;
  border-top: 1px solid var(--tree-rule);
}
.species dt { font-size: .875rem; color: var(--tree-gold); }
.species dd { margin: .25rem 0 0; font-size: 1rem; line-height: 1.4; }
@media (max-width: 760px) {
  .species .species__layout { grid-template-columns: 1fr; gap: 1.8rem; }
  .species__intro { margin-bottom: 1.45rem; }
  .species__tabs a { min-height: 3.1rem; }
  .species__panel img { aspect-ratio: 1.5; }
}
