/* One species, one address. The order of the blocks is the order of the
   questions, and the documents sit highest because they are the answer the
   screen exists to give — the regimes underneath say which law each one came
   from. */
.species-entry-breadcrumb {
  display: flex; align-items: center; flex-wrap: wrap; gap: 8px;
  margin-bottom: 22px;
  color: var(--text-secondary); font-size: 13.5px;
}
.species-entry-breadcrumb a { color: var(--text-secondary); }
.species-entry-breadcrumb a:hover { color: var(--text-primary); }
.species-entry-breadcrumb [aria-current] { color: var(--text-primary); }

.species-entry-layout {
  display: grid; grid-template-columns: minmax(0, 1fr) 380px;
  gap: 30px; align-items: start;
}
.species-entry-main { display: grid; gap: var(--space-4); align-content: start; }
.species-entry-aside {
  display: grid; gap: var(--space-3);
}

/* ---------- the name ---------- */
.species-entry-head { display: grid; gap: 8px; }
.species-entry-head,
.species-entry-rings,
.species-entry-docs,
.species-entry-regimes { scroll-margin-top: 100px; }
.species-entry-title {
  margin: 0;
  font: 400 44px/1.02 var(--font-marketing);
  letter-spacing: -.042em;
}
/* A species the catalogue holds no Polish name for is titled in Latin, and the
   italic says so before the line underneath does. */
.species-entry-title.is-scientific { font-style: italic; }
.species-entry-scientific { margin: 0; font-size: 17px; }
.species-entry-names {
  display: flex; flex-wrap: wrap; gap: 14px;
  margin-top: 2px;
  color: var(--text-secondary); font-size: 13.5px;
}

/* ---------- documents ---------- */
.species-entry-docs {
  margin-top: var(--space-2);
  padding: 28px 30px;
  background: var(--surface-warm);
  border-radius: var(--radius-panel);
}
.species-entry-docs h2 {
  margin: 0;
  font: 400 27px/1.1 var(--font-marketing);
  letter-spacing: -.03em;
}
.species-entry-docs-scenario {
  margin: 8px 0 0;
  color: var(--text-secondary); font-size: 13.5px;
}
.species-entry-doc-list { display: grid; gap: 10px; margin-top: 18px; }
.species-entry-doc {
  display: grid; grid-template-columns: minmax(0, 1fr) 200px;
  gap: 18px; align-items: start;
  padding: 18px 22px;
  background: var(--surface-card);
  border-radius: calc(var(--radius-card) - 2px);
}
/* "Nothing to add" is an answer with a legal basis behind it, so it keeps the
   block and the card it would have had — one column, because there is no
   authority to name on the right. */
.species-entry-doc.is-none { grid-template-columns: minmax(0, 1fr); }
.species-entry-doc-title { margin: 0; font-size: 15.5px; font-weight: 700; letter-spacing: -.01em; }
/* Required carries no marker: it is what a document card means by default. */
.species-entry-doc-level {
  margin-inline-start: 6px;
  color: var(--text-secondary);
  font-size: 11.5px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase;
}
.species-entry-doc-basis { margin: 6px 0 0; color: var(--text-secondary); font-size: 12.5px; }
.species-entry-doc-who { text-align: end; }
.species-entry-doc-who p { margin: 0; font-size: 12.5px; font-weight: 600; }
.species-entry-doc-who p + p { margin-top: 4px; color: var(--text-secondary); font-weight: 400; }

/* ---------- reservations ---------- */
/* One block, not an icon beside every regime row: the same doubt spread over
   seven lines says less than one paragraph does. */
.species-entry-warnings {
  padding: 24px 28px;
  color: var(--state-warning);
  background: var(--state-warning-bg);
  border-radius: var(--radius-listing);
}
.species-entry-warnings-title {
  display: flex; align-items: center; gap: 10px;
  margin: 0;
  font-size: 15.5px; font-weight: 700;
}
.species-entry-warnings-title > svg { flex: none; }
.species-entry-warnings ul {
  display: grid; gap: 8px;
  margin: 12px 0 0; padding-inline-start: 18px;
}
.species-entry-warnings li { font-size: 13.5px; }

/* ---------- the regimes, one line each ---------- */
.species-entry-regimes {
  padding: 28px 30px;
  background: var(--surface-card);
  border-radius: var(--radius-panel);
}
.species-entry-regimes h2 {
  margin: 0;
  font: 400 25px/1.1 var(--font-marketing);
  letter-spacing: -.03em;
}
.species-entry-regimes-note { margin: 8px 0 0; color: var(--text-secondary); font-size: 13px; }
.species-entry-regime-list { margin: 10px 0 0; }
.species-entry-regime {
  display: grid; grid-template-columns: 250px minmax(0, 1fr);
  gap: 18px;
  padding: 14px 2px;
  border-bottom: 1px solid var(--border-subtle);
}
.species-entry-regime:last-child { border-bottom: 0; }
.species-entry-regime dt { color: var(--text-secondary); font-size: 13.5px; }
.species-entry-regime dd { margin: 0; font-size: 14px; font-weight: 700; }
.species-entry-regime-value { display: block; }
/* The act under the verdict, so the reader can go and read it. Regular weight
   and the secondary colour keep it from competing with the answer above. */
.species-entry-regime-basis {
  display: block;
  margin-top: 4px;
  color: var(--text-secondary);
  font-size: 12.5px;
  font-weight: 400;
}

/* ---------- where the answer was read from ---------- */
.species-entry-sources {
  padding: 24px 28px;
  background: color-mix(in srgb, var(--surface-sky) 55%, var(--surface-card));
  border-radius: var(--radius-listing);
}
.species-entry-sources-title { margin: 0; font-size: 14.5px; font-weight: 700; }
.species-entry-sources p + p {
  margin: 8px 0 0;
  color: var(--text-secondary); font-size: 13px;
  overflow-wrap: anywhere;
}
.species-entry-sources a { margin-inline-start: 4px; font-weight: 600; }

/* ---------- the sidebar ---------- */
.species-entry-card {
  padding: 22px 24px;
  background: var(--surface-card);
  border-radius: var(--radius-listing);
  box-shadow: var(--shadow-card);
}
.species-entry-card-label {
  margin: 0;
  color: var(--text-secondary);
  font-size: 11.5px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase;
}
.species-entry-signals { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.species-entry-card-note { margin: 12px 0 0; color: var(--text-secondary); font-size: 12px; }
.species-entry-links { display: grid; gap: 8px; }
.species-entry-links .species-entry-card-label { margin-bottom: 4px; }
.species-entry-link {
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-3);
  min-height: 48px; padding: 0 18px;
  color: var(--text-primary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-control);
  font-size: 13.5px; font-weight: 600;
}
.species-entry-link:hover { background: var(--surface-warm); color: var(--text-primary); }
.species-entry-link > svg { flex: none; color: var(--text-secondary); }

/* ---------- phones ---------- */
/* The sidebar has nowhere to sit, so the transitions move to the end and the
   signals card goes away: the regimes table below prints all seven dimensions,
   which is a superset of the three badges it would have shown. */
@media (max-width: 899px) {
  .species-entry-breadcrumb { display: none; }
  .species-entry-layout { grid-template-columns: minmax(0, 1fr); gap: var(--space-3); }
  .species-entry-main { gap: 10px; }
  .species-entry-aside { position: static; gap: 8px; }

  .species-entry-title { font-size: 26px; line-height: 1.05; letter-spacing: -.038em; }
  .species-entry-scientific { font-size: 14px; }
  .species-entry-names { gap: 8px; margin-top: 0; font-size: 12px; }
  .species-entry-main .species-disclaimer { padding: 10px 12px; font-size: 11.5px; }

  .species-entry-docs { margin-top: 2px; padding: 16px; border-radius: var(--radius-card); }
  .species-entry-docs h2 {
    font-family: inherit; font-size: 16px; font-weight: 700; line-height: 1.2;
    letter-spacing: -.015em;
  }
  .species-entry-docs-scenario { font-size: 11.5px; }
  .species-entry-doc-list { gap: 8px; margin-top: 12px; }
  .species-entry-doc {
    grid-template-columns: minmax(0, 1fr);
    gap: 4px;
    padding: 13px 15px;
    border-radius: var(--radius-media);
  }
  .species-entry-doc-title { font-size: 13.5px; }
  .species-entry-doc-basis { margin: 0; font-size: 11px; }
  .species-entry-doc-who { display: flex; gap: 5px; text-align: start; }
  .species-entry-doc-who p, .species-entry-doc-who p + p { margin: 0; font-size: 11.5px; }
  .species-entry-doc-who p + p::before { content: "· "; }

  /* The design reads the regimes before the reservations on a phone: the table
     is the shorter answer, and the caveats belong after it. */
  .species-entry-warnings {
    order: 1;
    padding: 13px 15px;
    border-radius: calc(var(--radius-card) - 4px);
  }
  .species-entry-warnings-title { gap: 8px; font-size: 13px; }
  .species-entry-warnings-title > svg { width: 15px; height: 15px; }
  .species-entry-warnings ul { margin-top: 6px; gap: 6px; }
  .species-entry-warnings li { font-size: 11.5px; }

  .species-entry-regimes { padding: 14px 16px; border-radius: calc(var(--radius-card) - 4px); }
  .species-entry-regimes h2 {
    font-family: inherit; font-size: 14px; font-weight: 700; line-height: 1.2;
    letter-spacing: -.01em;
  }
  .species-entry-regimes-note { font-size: 11.5px; }
  /* Both tracks are bounded: an `auto` column sized to the verdict pushed the
     dimension out of its own track and the two printed over each other. */
  .species-entry-regime {
    grid-template-columns: 92px minmax(0, 1fr);
    gap: 10px;
    padding: 9px 0;
  }
  .species-entry-regime dt { font-size: 12px; }
  .species-entry-regime dd { font-size: 12px; text-align: end; }
  .species-entry-regime-basis { margin-top: 2px; font-size: 11px; }

  .species-entry-sources {
    order: 2;
    padding: 13px 15px;
    border-radius: calc(var(--radius-card) - 4px);
  }
  .species-entry-sources-title { font-size: 12.5px; }
  .species-entry-sources p + p { margin-top: 5px; font-size: 11.5px; }

  .species-entry-card { padding: 0; background: transparent; box-shadow: none; }
  .species-entry-signals-card { display: none; }
  .species-entry-links { gap: 7px; }
  .species-entry-link {
    min-height: 46px; padding: 0 16px;
    background: var(--surface-card);
    font-size: 12.5px;
  }
  .species-entry-links .species-entry-card-label { display: none; }
}
