.skip-link { top: 0; inset-inline-start: .5rem; }
.top a:focus-visible { outline-color: var(--header-text); }
.top nav a[aria-current] { text-decoration: underline; }
main.frame { width: min(100% - 2rem, 69rem); }
.animal-intro { grid-column: 1; grid-row: 1; max-width: 62ch; margin-block-start: 0; }
.animal-tabs { display: flex; flex-wrap: wrap; gap: .45rem; margin-block: 0 1.25rem; }
.animal-tabs a {
    display: inline-flex; align-items: center; min-height: 2.75rem;
    padding: .3rem .8rem; border: 1px solid var(--line); border-radius: .4rem;
    background: var(--canvas);
}
.animal-tabs [aria-current] { background: var(--accent); color: var(--paper); }
.animal-columns { display: grid; grid-template-rows: auto 1fr; align-items: start; column-gap: 1.6rem; }
.animal-columns--has-aside { grid-template-columns: minmax(0, 1fr) minmax(13rem, 19rem); }
.animal-columns--wide-image { grid-template-columns: minmax(0, 1fr) minmax(0, min(46%, 30rem)); }
.animal-aside { grid-column: 2; grid-row: 1 / span 2; min-width: 0; }
.animal-body { grid-column: 1; grid-row: 2; min-width: 0; }
.animal-body > .editorial > :first-child { margin-top: 0; }
.animal-body > .editorial > section:first-child > :first-child { margin-top: 0; }
.animal-body .lead { font-size: 1.18em; }
.animal-hero img { max-height: none; }
.animal-body h2 { color: var(--accent); }
.animal-aside figure { margin: 0 0 1.2rem; }
.animal-aside img { width: 100%; height: auto; }
.animal-facts { background: var(--canvas); border: 1px solid var(--line); border-radius: var(--corner); padding: 1rem; }
.animal-facts h2 { margin: 0 0 .45rem; font-size: 1.25rem; }
.animal-facts dl, .animal-facts dd { margin: 0; }
.animal-facts dl > div { padding: .45rem 0; border-top: 1px solid var(--line); }
.animal-facts dt { font-weight: 650; }
.animal-body table { border-collapse: collapse; }
.animal-table-scroll { max-width: 100%; overflow-x: auto; margin-block: 1rem; }
.animal-table-scroll:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.animal-body th, .animal-body td { padding: .45rem .7rem; border: 1px solid var(--line); text-align: left; }
.animal-body caption { text-align: left; font-weight: 650; }
.animal-comparison { max-width: 100%; overflow-x: auto; }
.animal-comparison table { width: 100%; min-width: 22rem; table-layout: fixed; }
.animal-comparison thead th:first-child { width: 22%; }
.animal-comparison .animal-list thead th:first-child { width: 45%; }
.animal-comparison :is(th, td) { padding-inline: .5rem; vertical-align: top; overflow-wrap: normal; }
.animal-comparison:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.animal-aside figcaption { margin-top: .35rem; font-size: .875rem; overflow-wrap: anywhere; }
.related p, .animal-body { overflow-wrap: anywhere; }
.illustrated-card {
    display: flex; flex-direction: column; min-width: 0;
    border: 1px solid var(--line); border-radius: var(--corner); background: var(--canvas);
}
.illustrated-card__link {
    display: grid; flex: 1; align-content: start; gap: .6rem; padding: .8rem;
    border-radius: inherit; color: inherit; text-decoration: none;
}
.illustrated-card__link:is(:hover, :focus-visible) :is(h2, h3) { text-decoration: underline; }
.illustrated-card__link:focus-visible { outline-offset: -2px; }
.illustrated-card__media {
    aspect-ratio: 3 / 2; border-radius: .35rem; background: var(--paper);
}
.illustrated-card__media img { display: block; width: 100%; height: 100%; object-fit: contain; }
.illustrated-card :is(h2, h3, p) { margin: 0; }
.primary-cards h2 { font-size: 1.15rem; }
.illustrated-card .illustrated-card__credit { padding: 0 .8rem .7rem; font-size: .875rem; }
.primary-cards { margin-block: 1.25rem 1.75rem; }
@media (min-width: 64rem) {
    .illustrated-card-grid:has(> :nth-child(4):last-child) { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 62rem) {
    .animal-columns:has(.animal-comparison) { grid-template: auto / minmax(0, 1fr); }
    .animal-columns:has(.animal-comparison) .animal-aside { grid-column: 1; grid-row: auto; margin-block-end: 1rem; }
    .animal-columns:has(.animal-comparison) .animal-aside figure { max-width: 26rem; }
    .animal-columns:has(.animal-comparison) .animal-body { grid-row: auto; }
}
@media (max-width: 44rem) {
    .animal-columns--has-aside { grid-template: auto / minmax(0, 1fr); }
    .animal-aside { grid-column: 1; grid-row: auto; margin-block-end: 1rem; }
    .animal-body { grid-row: auto; }
    .animal-aside figure { max-width: 26rem; }
    .animal-columns--wide-image .animal-aside figure { max-width: 30rem; }
}
@media (max-width: 34rem) {
    .animal-comparison thead th:first-child { width: 7rem; }
}
