.world-intro { display: grid; grid-template-columns: minmax(0, 1fr) minmax(270px, .39fr); gap: 30px; align-items: end; padding-top: clamp(24px, 4vw, 58px); margin-bottom: 24px; }
.world-intro h1 { margin: 0 0 8px; max-width: 13ch; font-size: clamp(2.6rem, 6vw, 5.2rem); line-height: .96; letter-spacing: -.07em; }
.world-intro p { margin: 0; max-width: 50ch; }
.world-overview { display: grid; grid-template-columns: minmax(0, 2.4fr) minmax(255px, 1fr); gap: 14px; align-items: stretch; }
.world-map-box { position: relative; min-width: 0; border-radius: 20px; overflow: hidden; background: #e2eee8; }
.world-map.leaflet-container { min-height: 430px; background: #d7e9e9; margin: 0; }
.world-map .leaflet-control-zoom a { background: #f9fdf7; color: #233f35; }
.world-map .leaflet-control-zoom a:hover { background: #e4f0e2; }
.world-map-marker { pointer-events: auto !important; }
.world-map-marker[hidden] { display: none !important; }
.world-map-country { width: 36px; height: 36px; border: 2px solid #fff; display: grid; place-items: center; border-radius: 50%; background: #245c3e; box-shadow: 0 2px 6px #17382c60; font: 800 14px/1 var(--sans, sans-serif); color: #fff !important; text-decoration: none; }
.world-map-country:is(:hover, :focus-visible) { background: #133925; transform: scale(1.13); }
.world-map-cluster { cursor: pointer; }
.world-spotlight-wrap { margin: 0; min-width: 0; }
.world-spotlight-wrap figcaption { margin-top: 6px; font-size: .9rem; }
.world-spotlight { display: grid; grid-template-rows: 1fr auto; min-width: 0; overflow: hidden; border-radius: 20px; background: #d9efca; text-decoration: none; color: var(--deep); }
.world-spotlight img { display: block; width: 100%; height: 100%; max-height: 305px; object-fit: contain; }
.world-spotlight-content { padding: 18px 22px; }
.world-spotlight-content strong { display: block; font-size: 1.65rem; line-height: 1.15; }
.world-spotlight-content span { display: block; margin-top: 5px; }
.world-spotlight:hover { box-shadow: 0 8px 26px #29564230; }
.world-caption { margin: 9px 0 0; color: var(--muted); }
.world-section { margin: 52px auto; }
.world-section h2 { margin: 0 0 10px; font-size: clamp(1.65rem, 3.2vw, 2.85rem); }
.world-section p { margin-top: 0; max-width: 72ch; }
.world-countries, .world-stories { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); gap: 14px; margin-top: 19px; }
.world-country, .world-story { display: flex; flex-direction: column; min-width: 0; gap: 9px; border: 1px solid var(--edge); border-radius: 14px; padding: 22px; background: #fff; color: var(--ink); }
.world-country { text-decoration: none; transition: background .16s, color .16s, box-shadow .16s; }
.world-country:is(:hover, :focus-visible) { background: #e7f3dc; box-shadow: 0 6px 25px #29564225; }
.world-country strong { font-size: 1.47rem; }
.world-country .icon-pin { margin-bottom: 10px; color: #2f7048; }
.world-story h2 { margin: 0; font-size: 1.22rem; }
.world-story p { margin-bottom: 0; }
.world-taxa { padding: 35px clamp(18px, 4vw, 50px); border-radius: 20px; background: #e3f0d7; }
.world-link-list { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 20px; }
.world-link-list a { text-decoration: none; }
.world-link-list a:hover { background: #dcedd5; text-decoration: underline; }
.country-directory-filter { display: flex; flex-wrap: wrap; align-items: end; gap: 12px; }
.country-directory-filter label { display: grid; gap: 4px; font-weight: 760; }
.directory-section { margin: 28px 0; }
.country-directory { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr)); gap: 6px 12px; padding: 0; list-style: none; }
.country-directory a { display: block; padding: 6px 10px; border-radius: 5px; background: #eef4e9; }
.global-filters { display: grid; grid-template-columns: minmax(160px, 1.6fr) repeat(3, minmax(110px, 1fr)) auto; gap: 12px; align-items: end; margin: 24px 0; }
.global-filters label { display: grid; gap: 4px; font-weight: 760; }
.global-filters :is(select, input) { min-width: 0; }
.global-index { margin-top: 16px; }
.global-taxon-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 245px), 1fr)); gap: 11px; }
.global-taxon-card { padding: 14px 16px; border: 1px solid var(--edge); border-radius: 12px; min-width: 0; background: #fff; }
.global-taxon-card h2 { margin: 0 0 3px; font-size: 1.16rem; }
.global-taxon-card p { margin: 1px 0 7px; color: var(--muted); overflow-wrap: anywhere; }
.global-taxon-card small { font-size: inherit; }
.global-taxon-card .extinct-tag { color: #922f33; font-weight: 720; }
.global-pager { display: flex; justify-content: space-between; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 21px; }
.taxon-warning { display: flex; align-items: start; gap: 12px; padding: 16px 18px; margin: 20px 0; border: 1px solid #e8a4a8; border-radius: 12px; background: #feeeee; color: #81282e; }
.taxon-face { flex: 0 0 29px; font-size: 1.8rem; line-height: 1.06; }
.taxon-warning strong { display: block; }
.taxon-warning p { margin: 0; }
.taxon-warning[data-status^="possibly"] { border-color: #e9c980; background: #fff5df; color: #704b18; }
.taxon-profile .species-intro { margin-block: 0 24px; }
.taxon-profile .species-intro:not(:has(.hero-image)) { grid-template-columns: minmax(0, 1fr); }
.taxon-profile .detail-grid { margin-top: 20px; }
.species-world-map { height: clamp(245px, 42vw, 430px); border-radius: 12px; }
.species-country-list { margin-top: 12px; }
@media (max-width: 900px) { .global-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 690px) {
  .world-intro, .world-overview { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .world-intro { align-items: start; }
  .world-intro h1 { font-size: clamp(2.5rem, 9.5vw, 4.1rem); }
  .world-map.leaflet-container { min-height: 260px; }
  .world-spotlight { grid-template-columns: minmax(0, .8fr) minmax(0, 1fr); grid-template-rows: 1fr; min-height: 123px; }
  .world-spotlight img { max-height: 160px; }
  .world-spotlight-content { padding: 13px 10px; }
  .world-spotlight-content strong { font-size: 1.12rem; }
  .world-section { margin-block: 32px; }
}
@media (max-width: 360px) {
  .global-filters { grid-template-columns: minmax(0, 1fr); }
  .world-country, .world-story { padding: 16px; }
}
@media (max-width: 760px) {
  .topbar-inner nav { justify-content: center; flex-wrap: wrap; }
  .topbar-inner nav a { padding-inline: 8px; }
}
@media (max-width: 860px) {
  .topbar-inner { height: auto; grid-template-columns: minmax(0, 1fr) auto; align-items: center; padding-block: 8px; }
  .topbar-inner nav { grid-row: 2; grid-column: 1 / -1; justify-content: start; width: fit-content; max-width: 100%; }
  .language-picker { grid-row: 1; grid-column: 2; }
}
@media (max-width: 520px) {
  .language-picker summary { padding-inline: 7px; gap: 6px; }
}
@media (prefers-reduced-motion: reduce) { .world-country { transition: none; } }
