:root {
  --ink: #f4f0e4;
  --muted: #aab8ae;
  --line: rgba(255,255,255,.12);
  --panel: #172a22;
  --accent: #d9b66f;
  --serif: Georgia, "Songti SC", "Noto Serif SC", serif;
}
* { box-sizing: border-box; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
html, body { min-height: 100%; }
body {
  margin: 0;
  color: var(--ink);
  background: radial-gradient(circle at 20% 10%, #29483a 0, #13251e 36%, #09110e 100%);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", sans-serif;
}
button, select { font: inherit; }
button:focus-visible, select:focus-visible, a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.app-shell {
  --topbar-height: 56px;
  --page-inset: 24px;
  --frame-overhead: calc(var(--topbar-height) + 2 * var(--page-inset) + 2px);
  display: grid;
  align-content: center;
  width: min(1440px, calc(100% - 2 * var(--page-inset)));
  min-height: 100dvh;
  margin: auto;
  padding-block: var(--page-inset);
}
.topbar {
  grid-area: header;
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: var(--topbar-height);
  padding-inline: 18px;
  border-bottom: 1px solid var(--line);
  background: #122a21;
}
.brand { display: flex; align-items: center; gap: 12px; color: inherit; text-decoration: none; }
.brand-mark { display: grid; width: 34px; height: 34px; place-items: center; border: 1px solid rgba(255,255,255,.25); border-radius: 50%; color: var(--accent); font-family: var(--serif); font-size: 21px; }
.brand strong, .brand small { display: block; }
.brand strong { font-family: var(--serif); font-size: 19px; letter-spacing: .08em; }
.brand small { margin-top: 3px; color: var(--muted); font-size: 8px; letter-spacing: .19em; }
.zoo-return {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 12px;
  border: 1px solid rgb(255 255 255 / 18%);
  border-radius: 8px;
  color: var(--accent);
  font-size: 13px;
  white-space: nowrap;
  text-decoration: none;
}
.zoo-return:hover { background: rgb(255 255 255 / 8%); }
.zoo-return:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.status { display: flex; align-items: center; min-width: 0; gap: 8px; margin-inline-start: auto; color: var(--muted); font-size: 12px; }
.status-dot { width: 7px; height: 7px; flex: none; border-radius: 50%; background: #6cce8b; box-shadow: 0 0 12px #6cce8b; }
#status-text { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.viewer {
  --controls-rail: 310px;
  position: relative;
  display: grid;
  grid-template-areas: "header header" "photo controls";
  grid-template-columns: minmax(0, 1fr) var(--controls-rail);
  width: min(100%, calc(100dvh + var(--controls-rail) - var(--frame-overhead)));
  margin-inline: auto;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 28px;
}
.viewer:focus { outline: none; }
.image-frame {
  grid-area: photo;
  container-type: inline-size;
  position: relative;
  overflow: hidden;
  background: #0d1713;
}
.image-stage { position: relative; width: 100%; aspect-ratio: 1; overflow: hidden; background: #09110e; isolation: isolate; }
.image-stage::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: -24px;
  background: var(--stage-image) center / cover no-repeat;
  filter: blur(18px) brightness(.48) saturate(.8);
  opacity: .72;
  transform: scale(1.04);
}
.image-stage img { width: 100%; height: 100%; position: absolute; inset: 0; object-fit: contain; opacity: 0; transform: scale(1.008); transition: opacity .5s ease, transform 5.2s ease; }
.image-stage img.ready { opacity: 1; transform: scale(1); }
.animal-photo { display: contents; }
.image-stage.has-crop::before { display: none; }
.has-crop .animal-photo {
  display: block;
  position: absolute;
  inset: 50% auto auto 50%;
  translate: -50% -50%;
  width: 100cqw;
  aspect-ratio: 1;
  overflow: hidden;
}
:is(:fullscreen, .zoo-expanded) .has-crop .animal-photo { width: min(100cqw, 100dvh); }
.has-crop .animal-photo img {
  inset: var(--crop-top) auto auto var(--crop-left);
  width: var(--crop-size);
  height: var(--crop-size);
  transform: none;
}
.image-stage.exhibit-cover {
  --cover-size: 100cqw;
  --cover-inset: clamp(14px, calc(var(--cover-size) * .065), 64px);
  background: #f8f2ed;
}
:is(:fullscreen, .zoo-expanded) .image-stage.exhibit-cover { --cover-size: min(100cqw, 100dvh); }
.exhibit-cover::before { display: none; }
.image-stage.exhibit-cover img { transform: none; }
.exhibit-cover :is(.image-shade, .ordinal, .category-label) { display: none; }
.exhibit-cover .nameplate {
  top: calc((100% - var(--cover-size)) / 2 + var(--cover-inset));
  left: calc((100% - var(--cover-size)) / 2 + var(--cover-inset));
  right: auto;
  bottom: auto;
  max-width: calc(var(--cover-size) - 2 * var(--cover-inset));
  display: flex;
  flex-direction: column;
  gap: 3px;
  color: #172a22;
  text-shadow: none;
}
.exhibit-cover .nameplate h1 {
  font: 500 clamp(27px, 6cqw, 51px) / 1.14 "Encyclopedia Han", "Source Han Sans SC", "PingFang SC", sans-serif;
  letter-spacing: .025em;
}
.exhibit-cover .english-name {
  margin: 0;
  color: #4d5c50;
  font: 600 clamp(16px, 2.9cqw, 24px) / 1.2 "Source Serif 4", Georgia, serif;
  letter-spacing: .02em;
}
.image-shade { position: absolute; z-index: 1; inset: 0; background: linear-gradient(180deg, rgba(4,9,7,.04) 44%, rgba(4,9,7,.82) 100%); pointer-events: none; }
.ordinal { position: absolute; z-index: 2; top: 28px; left: 30px; padding: 8px 12px; border: 1px solid rgba(255,255,255,.25); border-radius: 999px; background: rgba(5,14,10,.35); backdrop-filter: blur(12px); font-size: 11px; letter-spacing: .13em; }
.nameplate { position: absolute; z-index: 2; left: clamp(28px, 5vw, 72px); right: 32px; bottom: clamp(42px, 8vh, 86px); text-shadow: 0 3px 20px rgba(0,0,0,.55); }
.category-label { margin: 0 0 10px; color: var(--accent); font-size: 11px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.sex-label:not([hidden]) { display: inline-block; margin-inline-start: .75em; padding-inline-start: .75em; border-inline-start: 1px solid currentColor; }
.nameplate h1 { margin: 0; font-family: var(--serif); font-size: clamp(22px, 3vw, 43px); font-weight: 500; line-height: .98; letter-spacing: -.035em; }
.english-name { margin: 13px 0 0; font-family: var(--serif); font-size: clamp(20px, 2.2vw, 31px); font-style: italic; color: rgba(255,255,255,.86); }
.timer { position: absolute; z-index: 2; inset: auto 0 0; height: 4px; background: rgba(255,255,255,.12); }
.timer span { display: block; width: 0; height: 100%; background: var(--accent); }
.timer span.running { animation: countdown var(--duration) linear forwards; }
@keyframes countdown { from { width: 0; } to { width: 100%; } }
.playback-panel, :is(:fullscreen, .zoo-expanded) .control-panel {
  position: absolute;
  opacity: 0;
  pointer-events: none;
  border: 1px solid var(--line);
  transition: transform .24s ease, opacity .24s ease;
}
.control-panel {
  grid-area: controls;
  display: flex;
  min-height: 0;
  flex-direction: column;
  contain: size;
  padding: 22px 18px 8px;
  background: linear-gradient(180deg, #1b3027, var(--panel));
  border-inline-start: 1px solid var(--line);
}
:is(:fullscreen, .zoo-expanded) .control-panel {
  z-index: 3;
  inset: 0 0 0 auto;
  width: min(310px, 48%);
  border-radius: 20px;
  background: rgba(23, 42, 34, .94);
  backdrop-filter: blur(14px);
  transform: translateX(100%);
}
.playback-panel {
  z-index: 4;
  inset: auto 0 10px;
  display: flex;
  align-items: center;
  gap: 14px;
  width: max-content;
  max-width: calc(100% - 20px);
  margin-inline: auto;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(11, 20, 16, .55);
  backdrop-filter: blur(9px);
  transform: translateY(calc(100% + 10px));
}
.viewer:is(.controls-visible, .keyboard-controls:focus-within) .playback-panel,
:is(:fullscreen, .zoo-expanded) .viewer:is(.controls-visible, .keyboard-controls:focus-within) .control-panel {
  opacity: 1;
  pointer-events: auto;
  transform: translate(0);
}
.viewer:is(.controls-visible, .keyboard-controls:focus-within) .image-stage:not(.exhibit-cover) .nameplate {
  bottom: clamp(72px, 8vh, 86px);
}
.nameplate { transition: bottom .24s ease; }
.panel-heading { display: flex; align-items: center; justify-content: space-between; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.panel-heading p { margin: 0; font-family: var(--serif); font-size: 19px; }
.text-button { padding: 5px 0; border: 0; background: transparent; color: var(--accent); cursor: pointer; font-size: 12px; }
.categories { display: grid; min-height: 0; flex: 1 1 auto; gap: 4px; padding: 15px 0; overflow: auto; }
.hall-summary { display: grid; align-content: start; gap: 12px; flex: 1 1 auto; padding-block: 15px; }
.hall-summary-card {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 58px;
  padding: 9px 10px;
  border: 1px solid #d9b66f72;
  border-radius: 9px;
  background: #122a20;
  color: var(--ink);
  text-align: start;
}
button.hall-summary-card { cursor: pointer; }
button.hall-summary-card:hover { background: #203d2e; border-color: var(--accent); }
.hall-summary-icon {
  width: 44px;
  height: 34px;
  flex: none;
  object-fit: contain;
}
.hall-summary-title { display: grid; min-width: 0; flex: 1; gap: 2px; line-height: 1.2; overflow-wrap: anywhere; }
.hall-summary-title strong { font-size: 15px; }
.hall-summary-title [lang] { color: var(--muted); font: 600 13px / 1.2 "Source Serif 4", Georgia, serif; }
.hall-summary-arrow { color: var(--accent); font-size: 18px; }
.hall-summary-count {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0;
  padding: 11px 10px 0;
  border-top: 1px solid var(--line);
  color: #c6d2c4;
  font-size: 12px;
}
.hall-summary-count::before {
  content: "";
  width: 11px;
  height: 8px;
  flex: none;
  margin-top: 3px;
  border: 1px solid currentColor;
  border-radius: 2px;
  box-shadow: 0 -3px var(--panel), 0 -4px 0 -0.5px currentColor;
}
.hall-icon-credit { margin: 0; padding: 0 10px; color: var(--muted); font-size: 10px; line-height: 1.5; }
.hall-icon-credit a { color: inherit; text-underline-offset: 2px; }
.hall-icon-credit a:hover { color: var(--accent); }
.playback-shortcuts {
  display: grid;
  gap: 9px;
  padding: 12px;
  border: 1px solid #8eaa9538;
  border-radius: 9px;
  background: #142920;
  color: var(--muted);
  font-size: 12px;
}
.playback-shortcuts h2 {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 2px 8px;
  margin: 0 0 2px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  font-size: 13px;
  font-weight: 650;
  line-height: 1.25;
}
.playback-shortcuts h2 [lang] { color: var(--muted); font-size: 10px; font-weight: 500; }
.playback-shortcuts p {
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  margin: 0;
  line-height: 1.25;
}
.playback-shortcuts small { display: block; margin-top: 2px; font-size: 10px; opacity: .8; }
.playback-shortcuts kbd {
  display: grid;
  justify-self: start;
  width: 28px;
  height: 27px;
  place-items: center;
  border: 1px solid #63756a;
  border-bottom-color: #192a22;
  border-radius: 5px;
  background: linear-gradient(#36483d, #26382e);
  box-shadow: 0 3px 0 #0b1a14, inset 0 1px 0 #ffffff24, inset 0 -1px 0 #020a0680;
  color: var(--ink);
  font: 15px/1 system-ui, sans-serif;
}
.playback-shortcuts .space-key { width: 60px; font-size: 10px; letter-spacing: .03em; }
.playback-shortcuts kbd.is-pressed {
  transform: translateY(2px);
  background: #22372a;
  box-shadow: 0 1px 0 #0b1a14, inset 0 1px 2px #020a0680;
}
@media (prefers-reduced-motion: no-preference) {
  .playback-shortcuts kbd { transition: transform 80ms ease-out, box-shadow 80ms ease-out; }
}
.category-button { display: grid; grid-template-columns: 1fr auto; gap: 3px 10px; width: 100%; padding: 10px 12px; border: 1px solid transparent; border-radius: 13px; background: transparent; color: var(--muted); text-align: left; cursor: pointer; }
.category-button:hover { background: rgba(255,255,255,.05); color: var(--ink); }
.category-button.active { border-color: rgba(217,182,111,.35); background: rgba(217,182,111,.1); color: var(--ink); }
.category-button strong { font-size: 13px; font-weight: 700; }
.category-button small { grid-column: 1; font-family: var(--serif); font-size: 10px; opacity: .65; }
.category-button em { grid-column: 2; grid-row: 1 / span 2; align-self: center; font-size: 11px; font-style: normal; }
.exhibit-control { padding: 10px 0 4px; border-top: 1px solid var(--line); }
.exhibit-control button { width: 100%; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; background: #12231c; color: var(--ink); text-align: start; font-size: 13px; cursor: pointer; }
.exhibit-control button::after { content: "→"; float: inline-end; color: var(--accent); }
.fullscreen-zoo-return { display: none; }
:is(:fullscreen, .zoo-expanded) .fullscreen-zoo-return {
  display: block;
  margin-top: 8px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #12231c;
  color: var(--accent);
  font-size: 13px;
  text-decoration: none;
}
.fullscreen-zoo-return:hover, .fullscreen-zoo-return:focus-visible { background: #203d2e; }
.exhibit-dialog {
  width: min(960px, calc(100% - 24px));
  max-height: calc(100dvh - 24px);
  padding: clamp(12px, 2.5vw, 24px);
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--panel);
  color: var(--ink);
  box-shadow: 0 20px 65px #09110e99;
}
.exhibit-dialog::backdrop { background: rgba(4, 12, 8, .68); backdrop-filter: blur(3px); }
.exhibit-dialog-heading { display: flex; align-items: center; justify-content: space-between; }
.exhibit-dialog-heading h2 { margin: 0; font: 500 clamp(18px, 3vw, 26px) var(--serif); }
.exhibit-dialog-heading button { width: 32px; height: 32px; padding: 0; border: 1px solid var(--line); border-radius: 50%; background: transparent; color: var(--ink); cursor: pointer; font-size: 20px; }
.exhibit-list { display: grid; gap: 12px; margin-top: 8px; }
.exhibit-section h3 { margin: 0 0 5px; color: var(--accent); font-size: 13px; font-weight: 600; }
.exhibit-options { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.exhibit-option { display: grid; gap: 2px; padding: 6px 8px; border: 1px solid var(--line); border-radius: 8px; background: rgba(255, 255, 255, .03); color: var(--ink); text-align: start; cursor: pointer; }
.exhibit-option strong { font-size: 13px; }
.exhibit-option small { color: var(--muted); font-size: 11px; }
.exhibit-option:hover, .exhibit-option[aria-pressed="true"] { border-color: rgba(217, 182, 111, .5); background: rgba(217, 182, 111, .12); }
@media (max-width: 600px) {
  .exhibit-options { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .exhibit-option { padding-block: 4px; }
}
@media (max-height: 600px) {
  .exhibit-dialog { padding-block: 12px; }
  .exhibit-list { gap: 8px; }
  .exhibit-options { gap: 4px; }
  .exhibit-option { padding-block: 3px; }
}
.transport { display: flex; align-items: center; gap: 2px; }
.transport button, .music-control button {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  font-size: 20px;
}
.transport button:hover, .music-control button:hover { background: rgba(255,255,255,.16); }
.transport .play, .transport .play:hover { background: var(--accent); color: #17261f; font-weight: 900; }
.speed-control { flex: none; border-inline-start: 1px solid var(--line); padding-inline-start: 10px; }
.speed-control select { padding: 5px 4px; border: 0; border-radius: 6px; background: rgba(11, 20, 16, .45); color: var(--ink); font-size: 12px; }
.music-control { display: flex; min-width: 0; align-items: center; gap: 4px; }
.music-control button { flex: none; }
.music-control button[aria-pressed="false"] { color: var(--muted); }
#music-icon { color: var(--accent); }
.music-control label { display: flex; align-items: center; width: 84px; min-width: 24px; }
#music-volume { width: 100%; min-width: 0; margin: 0; accent-color: var(--accent); cursor: pointer; }
.music-credit { display: flex; justify-content: space-between; gap: 8px; margin: 9px 0 0; color: #708078; font-size: 8px; }
.music-credit a { overflow: hidden; color: inherit; text-decoration: none; text-overflow: ellipsis; white-space: nowrap; }
.music-credit a:hover { color: var(--accent); }
.music-credit span { flex: 0 0 auto; }
@container (max-width: 380px) {
  .playback-panel { gap: 5px; padding-inline: 7px; }
  .speed-control { padding-inline-start: 5px; }
  .music-control label { width: 48px; }
}
@media (max-width: 820px) {
  .app-shell { display: block; width: calc(100% - 16px); padding-block: 8px; }
  .topbar { padding-inline: 12px; }
  .zoo-return { margin-inline-start: auto; }
  .status { display: none; }
  .viewer { display: block; width: 100%; border-radius: 16px; }
  .control-panel { contain: none; padding: 10px; border-inline-start: 0; border-top: 1px solid var(--line); }
  :root:not(:fullscreen, .zoo-expanded) .categories { display: flex; }
  :root:not(:fullscreen, .zoo-expanded) .category-button { flex: 0 0 138px; }
  :is(:fullscreen, .zoo-expanded) .control-panel { bottom: 64px; }
  .panel-heading { padding-bottom: 6px; gap: 6px; }
  .panel-heading p { font-size: 14px; }
  .categories { padding: 5px 0; }
  .category-button { padding: 6px; }
  .nameplate h1 { font-size: clamp(14px, 3vw, 24px); }
}
:is(:fullscreen, .zoo-expanded) .app-shell { width: 100%; padding: 0; }
:is(:fullscreen, .zoo-expanded) .topbar { display: none; }
:is(:fullscreen, .zoo-expanded) .viewer {
  display: block;
  width: 100%;
  height: 100dvh;
  margin: 0;
  border: 0;
  border-radius: 0;
}
:is(:fullscreen, .zoo-expanded) .image-frame { width: 100%; height: 100%; border: 0; }
:is(:fullscreen, .zoo-expanded) .image-stage { height: 100%; aspect-ratio: auto; }

.has-species-profile {
  --profile-rail: clamp(280px, 22vw, 330px);
  grid-template-areas: "header header header" "profile photo controls";
  grid-template-columns: var(--profile-rail) minmax(0, 1fr) var(--profile-rail);
  width: min(100%, calc(100dvh + 2 * var(--profile-rail) - var(--frame-overhead)));
}
.species-profile {
  grid-area: profile;
  contain: size;
  overflow: auto;
  scrollbar-width: thin;
  scrollbar-color: #607468 transparent;
  overscroll-behavior: contain;
  padding: 20px clamp(18px, 1.4vw, 24px) 12px;
  background: #142c23;
  border-inline-end: 1px solid var(--line);
}
.species-profile:focus-visible { outline: 2px solid var(--accent); outline-offset: -4px; }
.species-profile-header h2 {
  margin: 0;
  color: #fff4df;
  font-size: clamp(28px, 2.8vw, 42px);
  font-weight: 650;
  line-height: 1.12;
}
.species-profile-english {
  margin: 7px 0 0;
  color: #fff4df;
  font: 600 clamp(18px, 1.7vw, 23px) / 1.18 "Source Serif 4", Georgia, serif;
}
.species-profile-latin {
  margin: 6px 0 0;
  color: #c6d2c4;
  font: 16px / 1.3 var(--serif);
}
.species-profile-classification {
  margin: 14px 0 13px;
  padding: 9px 0;
  border-block: 1px solid #d9b66f50;
  font-size: 13px;
}
.conservation-scale h3 {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 6px;
  margin: 0;
  color: #fff4df;
  font-size: 13px;
  font-weight: 650;
}
.conservation-scale h3 [lang] { color: #c6d2c4; font: 12px / 1.25 var(--serif); }
.conservation-scale-levels {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr) repeat(5, minmax(0, 1fr));
  gap: 3px;
  margin: 8px 0 5px;
  padding: 0;
  list-style: none;
}
.conservation-scale-levels[hidden] { display: none; }
.conservation-scale-levels li {
  display: grid;
  align-content: start;
  gap: 3px;
  padding: 5px 1px 4px;
  border: 1px solid #fff2;
  border-radius: 4px;
  background: var(--rank-background);
  color: #fff4e4;
  text-align: center;
  font-size: 10px;
  line-height: 1.2;
}
.conservation-scale-levels li:nth-child(1) { --rank-background: #45464c; }
.conservation-scale-levels li:nth-child(2) { --rank-background: #534653; }
.conservation-scale-levels li:nth-child(3) { --rank-background: #80424e; }
.conservation-scale-levels li:nth-child(4) { --rank-background: #905340; }
.conservation-scale-levels li:nth-child(5) { --rank-background: #7e6336; }
.conservation-scale-levels li:nth-child(6) { --rank-background: #346668; }
.conservation-scale-levels li:nth-child(7) { --rank-background: #486d45; }
.conservation-scale-levels li [lang] {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .04em;
}
.conservation-scale-long { font-size: 8px; letter-spacing: -.06em; white-space: nowrap; }
.conservation-scale-levels li[aria-current] {
  border-color: var(--accent);
  background: #c7d9a4;
  color: #162814;
  font-weight: 700;
}
.conservation-scale-current { margin: 0; color: #efd69d; font-size: 12px; font-weight: 650; }
.conservation-scale-current [lang] { margin-inline-start: 4px; font: 500 13px var(--serif); }
.species-profile-scope { margin: 6px 0 0; color: var(--muted); font-size: 11px; line-height: 1.4; }
.species-profile-taxonomy { margin: 9px 0 0; }
.species-profile-taxonomy [lang] { margin-inline-start: 4px; color: #c6d2c4; }
.species-profile-section + .species-profile-section { margin-block-start: 15px; }
.species-profile-section h3 {
  display: grid;
  gap: 2px;
  margin: 0 0 8px;
  padding-inline-start: 9px;
  border-inline-start: 2px solid var(--accent);
  color: #fff4df;
  font-size: 15px;
  line-height: 1.25;
}
.species-profile-section h3 [lang] { color: #e0c999; font: 13px / 1.25 var(--serif); }
.species-profile-section p { margin: 0; font-size: 13px; line-height: 1.6; }
.species-profile-section p[lang] { margin-block-start: 6px; color: #c6d2c4; font-size: 12px; }
.exhibit-intro-only :is(.species-profile-latin, .species-profile-classification, .species-profile-section:not(.exhibit-intro)) {
  display: none;
}
.exhibit-intro-only .exhibit-intro {
  margin-block-start: 18px;
  padding-block-start: 16px;
  border-block-start: 1px solid #d9b66f50;
}
.has-species-profile .image-shade { opacity: .28; }
.has-species-profile .image-stage:not(.exhibit-cover) .nameplate { opacity: 0; pointer-events: none; }
@media (821px <= width <= 1120px) {
  :root:not(:fullscreen, .zoo-expanded) .has-species-profile {
    grid-template-areas: "header header" "profile photo" "controls controls";
    grid-template-columns: 298px minmax(0, 1fr);
  }
  :root:not(:fullscreen, .zoo-expanded) .species-profile { padding: 20px; }
  :root:not(:fullscreen, .zoo-expanded) .species-profile-classification { margin-block: 12px; padding-block: 8px; }
  :root:not(:fullscreen, .zoo-expanded) .species-profile-section + .species-profile-section { margin-block-start: 12px; }
  :root:not(:fullscreen, .zoo-expanded) .species-profile-section p { line-height: 1.5; }
  :root:not(:fullscreen, .zoo-expanded) .species-profile-section p[lang] { margin-block-start: 4px; }
  :root:not(:fullscreen, .zoo-expanded) .has-species-profile .control-panel {
    contain: none;
    border-inline-start: 0;
    border-top: 1px solid var(--line);
  }
  :root:not(:fullscreen, .zoo-expanded) .has-species-profile .categories { display: flex; }
  :root:not(:fullscreen, .zoo-expanded) .has-species-profile .category-button { flex: 0 0 138px; }
}
@media (min-width: 821px) {
  :is(:fullscreen, .zoo-expanded) .has-species-profile {
    display: grid;
    grid-template-rows: 0 minmax(0, 1fr);
  }
  :is(:fullscreen, .zoo-expanded) .has-species-profile .control-panel {
    position: relative;
    inset: auto;
    width: auto;
    border-radius: 0;
    background: var(--panel);
    opacity: 1;
    pointer-events: auto;
    transform: none;
    backdrop-filter: none;
  }
}
@media (max-width: 820px) {
  .has-species-profile { width: 100%; }
  .species-profile { contain: none; padding: 24px; border-inline-end: 0; }
  :is(:fullscreen, .zoo-expanded) .species-profile { display: none; }
  :is(:fullscreen, .zoo-expanded) .has-species-profile .image-stage :is(.nameplate, .image-shade) { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .image-stage img { transition: opacity .15s linear; transform: none; }
  :is(:fullscreen, .zoo-expanded) .control-panel, .playback-panel, .nameplate { transition: none; }
}
