/* Frontend polish: only Appearance-derived colours and system-colour accessibility fallbacks. */
.thp-frontend .compact-header .frontend-nav .navigation-item{justify-content:flex-start;gap:0}
.thp-frontend .compact-header .frontend-nav .navigation-item>a{flex:0 1 auto;text-decoration:none;box-shadow:none;border-bottom:3px solid transparent;padding-bottom:9px}
.thp-frontend .compact-header .frontend-nav :is(.is-current,.is-active-branch)>.navigation-item>a,.thp-frontend .compact-header .frontend-nav .navigation-item>a[aria-current=page]{text-decoration:none;box-shadow:none;border-bottom-color:var(--accent)}
.thp-frontend .compact-header .frontend-nav .navigation-item>a:hover{background:var(--site-bg);text-decoration:none}
.thp-frontend .compact-header .navigation-toggle{margin-left:0;flex:0 0 28px;min-width:28px;width:28px}
.thp-frontend .compact-header .navigation-toggle svg{width:12px;height:12px}
.thp-frontend .compact-header .submenu .navigation-item>a{flex:0 1 auto}
/* Deep, theme-derived footer with a consistent reading rhythm. */
.thp-frontend .polish-footer{--footer-surface:var(--ds-footer);--footer-ink:var(--ds-on-footer);background:var(--footer-surface);color:var(--footer-ink);padding:0;margin-top:64px;font-size:1rem}
.thp-frontend .polish-footer .container{width:min(100% - 48px,var(--container-width));margin:auto}
.thp-frontend .polish-footer :is(h2,h3,a,p,small,strong,.link-button){color:inherit}
.thp-frontend .polish-footer :is(a,button):focus-visible{outline-color:currentColor}
.thp-frontend .polish-footer .footer-invitation{padding:42px 0;gap:28px;border-bottom:1px solid color-mix(in srgb,currentColor 25%,transparent);max-width:none}
.thp-frontend .polish-footer .footer-invitation h2{font-size:clamp(1.7rem,3vw,2.3rem);max-width:24ch}
.thp-frontend .polish-footer .footer-invitation p{font-size:1rem;max-width:60ch}
.thp-frontend .polish-footer .footer-invitation .button{flex-shrink:0;background:var(--footer-ink);color:var(--footer-surface);border-color:var(--footer-ink)}
.footer-main{display:grid;grid-template-columns:minmax(210px,1fr) minmax(0,3fr);gap:48px;padding:44px 0}
.footer-brand-name{font:600 1.65rem/1.2 var(--heading-font);text-decoration:none;display:block}
.footer-brand p{line-height:1.65;max-width:32ch;margin:14px 0}
.thp-frontend .polish-footer .footer-grid{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr));gap:24px;width:100%;padding:0;margin:0;min-width:0;align-items:start}
.thp-frontend .polish-footer .footer-grid h3{font-size:1rem;letter-spacing:0;text-transform:none;line-height:1.4;margin:0 0 12px}
.polish-footer .navigation-list{align-items:start;white-space:normal}
.thp-frontend .polish-footer .navigation-item a{font-size:1rem;line-height:1.5;min-height:44px;padding:10px 0;overflow-wrap:anywhere;text-decoration:none}
.polish-footer a:hover{text-decoration:underline;text-underline-offset:4px}
.footer-social{display:flex;flex-wrap:wrap;gap:10px;margin-top:22px}
.footer-social-button{display:flex;align-items:center;justify-content:center;width:44px;height:44px;border:1px solid color-mix(in srgb,currentColor 45%,transparent);border-radius:50%}
.footer-bottom{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:12px 24px;padding:22px 0;border-top:1px solid color-mix(in srgb,currentColor 25%,transparent)}
.footer-bottom small{font-size:.94rem;line-height:1.5}.footer-legal{display:flex;align-items:center;flex-wrap:wrap;gap:8px 20px;margin-left:auto}
.thp-frontend .polish-footer .footer-legal :is(a,button){min-height:44px;padding:10px 0;line-height:24px;font-size:1rem;background:transparent;border:0}
.polish-footer .language-slider{--language-label-active:var(--footer-ink);--language-label-inactive:var(--footer-ink);gap:5px}
.polish-footer .language-slider-label:not(.is-active){opacity:.85}
.polish-footer.footer-layout-simple .footer-main{grid-template-columns:1fr}.polish-footer.footer-layout-simple .footer-brand{max-width:65ch}.polish-footer.footer-layout-simple .footer-brand p{max-width:65ch}
/* Full-bleed image heroes, with exact owner opacity and advisory admin contrast checks. */
.thp-home-hero,.polish-image-hero{position:relative;isolation:isolate;overflow:hidden;background:var(--hero-base,var(--heading))}
.hero-backdrop,.hero-scrim{position:absolute;inset:0;pointer-events:none;z-index:-2}.hero-scrim{z-index:-1;background:color-mix(in srgb,var(--hero-base) calc(var(--hero-opacity)*100%),transparent)}
.hero-backdrop img{width:100%;height:100%;max-height:none;object-fit:cover;object-position:center;display:block}
.thp-frontend .thp-home-hero{padding:0;margin:0}
.thp-home-hero>.container,.polish-image-hero>.container{position:relative;color:var(--hero-ink);padding-block:64px}
.thp-frontend .thp-home-hero-grid{display:flex;align-items:center;min-height:440px;gap:0;padding:0}
.thp-home-hero-grid[data-height=large]{min-height:560px}.thp-home-hero-grid[data-alignment=center]{justify-content:center;text-align:center}
.thp-home-hero-copy{max-width:780px}.thp-home-hero-grid[data-alignment=center] .hero-actions{justify-content:center}
.thp-frontend :is(.thp-home-hero,.polish-image-hero) :is(h1,h2,p,.eyebrow,.text-link){color:var(--hero-ink)}
.thp-frontend :is(.thp-home-hero,.polish-image-hero) h1{font-size:clamp(2.25rem,4.5vw,4.5rem);line-height:1.1;margin-top:16px}
.thp-frontend :is(.thp-home-hero,.polish-image-hero) .hero-actions .button{background:var(--hero-ink);color:var(--hero-base);border:2px solid var(--hero-ink)}
.thp-frontend :is(.thp-home-hero,.polish-image-hero) .hero-actions .secondary{background:var(--hero-base);color:var(--hero-ink)}
.thp-home-hero .thp-home-intro{font-size:1.15rem;max-width:62ch;line-height:1.65}
.thp-frontend .thp-home-card>img{width:100%;aspect-ratio:3/2;height:auto;object-fit:cover;display:block;border-radius:12px 12px 0 0}
/* Species and Knowledge Hub use explicit grid columns rather than auto-fit. */
.thp-frontend [data-species-directory]>.frontend-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));align-items:stretch;gap:24px}
[data-species-directory] .module-card{display:flex;flex-direction:column;min-width:0}.thp-frontend [data-species-directory] .module-card-image{width:100%;height:auto;aspect-ratio:3/2;object-fit:cover;flex-shrink:0}
[data-species-directory] .module-card>.button{margin-top:auto;align-self:flex-start}
.course-search{flex:1 1 240px;min-width:180px}.course-search input{width:100%}.course-search-reset{min-width:44px;min-height:44px;display:inline-flex;align-items:center;justify-content:center;font-size:1.5rem}
.catalog-pagination{display:flex;flex-wrap:wrap;gap:12px;margin-top:24px}.catalog-pagination a{display:inline-flex;min-width:44px;min-height:44px;align-items:center;justify-content:center;border:1px solid var(--border)}
.catalog-pagination [aria-current]{border:3px solid var(--accent)}
.thp-frontend .knowledge-search-hero{margin:0;padding:0;text-align:center;border-radius:0;background:var(--hero-base)}
.knowledge-search-hero .lead{margin-inline:auto}
.thp-frontend .knowledge-search{display:flex;align-items:end;justify-content:center;gap:16px;flex-wrap:wrap;margin:28px auto 0;max-width:900px;text-align:left}
.knowledge-search label{display:flex;flex-direction:column;gap:8px;flex:1 1 220px;min-width:0}.knowledge-search input,.knowledge-search select{width:100%}
.thp-frontend .knowledge-search button{background:var(--hero-ink);color:var(--hero-base);border-color:var(--hero-ink)}
.knowledge-directory{padding-block:40px}.thp-frontend .knowledge-topics,.thp-frontend .knowledge-subtopics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:20px}
.thp-frontend .knowledge-topic-tile{min-width:0;display:flex;flex-direction:column;align-items:center;gap:14px;text-align:center;padding:20px;border:3px solid var(--border);border-radius:10px;text-decoration:none;background:var(--content-bg);color:var(--text)}
.thp-frontend .knowledge-topic-tile.is-active{border-color:var(--focus);background:var(--site-bg)}
.thp-frontend .knowledge-topic-tile img{width:100%;height:130px;object-fit:cover;border-radius:6px}
.knowledge-topic-icon{display:flex;align-items:center;justify-content:center;min-height:80px}.knowledge-topic-tile span{overflow-wrap:anywhere}
.thp-frontend .knowledge-content-panel{border:0;padding:32px 0;margin-top:0;background:transparent}
.knowledge-subtopic-level+.knowledge-subtopic-level,.knowledge-articles-panel{margin-top:32px}
.knowledge-article-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px 32px}
.knowledge-article-summary{padding:18px 0;border-top:1px solid var(--border);min-width:0}.thp-frontend .knowledge-article-summary h3{font-size:1.25rem;line-height:1.4}
.knowledge-article-summary p{line-height:1.65}.knowledge-article-summary>a{display:inline-block;min-height:44px;padding-block:10px;font-weight:600}
.knowledge-featured{border-top:1px solid var(--border);padding-top:28px}.knowledge-featured-columns{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:32px}
.thp-frontend .knowledge-featured-columns h3{font-size:1.35rem;line-height:1.3}.knowledge-featured-columns ul{list-style:none;padding:0}.knowledge-featured-columns a{display:block;padding:12px 0;min-height:44px;border-bottom:1px solid var(--border);line-height:1.5}
.knowledge-subtopic-level h2:focus-visible,.knowledge-articles-panel h2:focus-visible{outline:2px solid var(--focus);outline-offset:4px}
html.thp-high-contrast :is(.thp-home-hero,.polish-image-hero){--hero-ink:var(--text)!important;--hero-base:var(--content-bg)!important;--hero-opacity:1!important}
html.thp-high-contrast .polish-footer{--footer-surface:var(--content-bg);--footer-ink:var(--text);border-top:2px solid var(--text)}
html.thp-high-contrast .hero-backdrop{display:none}
@media(max-width:1400px){.thp-frontend .compact-header .frontend-nav .navigation-item{justify-content:flex-start}.thp-frontend .compact-header .navigation-toggle{flex-basis:44px;min-width:44px;width:44px}.thp-frontend .compact-header .frontend-nav .navigation-item>a{flex:0 1 auto}}
@media(max-width:1024px){.footer-main{grid-template-columns:1fr;gap:32px}.thp-frontend .polish-footer .footer-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.thp-frontend [data-species-directory]>.frontend-grid,.knowledge-article-grid,.knowledge-featured-columns{grid-template-columns:repeat(2,minmax(0,1fr))}.thp-frontend .knowledge-topics,.thp-frontend .knowledge-subtopics{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:600px){.thp-frontend .polish-footer .container{width:calc(100% - 32px)}.thp-frontend .polish-footer .footer-grid{grid-template-columns:1fr}.footer-bottom{align-items:flex-start;flex-direction:column}.footer-legal{margin-left:0;gap:6px 14px}.thp-frontend .polish-footer .footer-invitation{align-items:flex-start;flex-direction:column}.thp-frontend [data-species-directory]>.frontend-grid,.knowledge-article-grid,.knowledge-featured-columns{grid-template-columns:1fr}.thp-frontend .knowledge-topic-tile{padding:12px;gap:10px}.thp-frontend .knowledge-topic-tile img{height:90px}.thp-frontend .thp-home-hero-grid,.thp-home-hero-grid[data-height=large]{min-height:490px}.thp-home-hero>.container,.polish-image-hero>.container{padding-block:40px}.knowledge-search button{width:100%}}
@media(prefers-reduced-motion:reduce){.polish-image-hero *,.thp-home-hero *{transition:none!important;scroll-behavior:auto!important}}

.thp-frontend .polish-image-hero.knowledge-search-hero .knowledge-search{border:0;padding:0;background:transparent;box-shadow:none}
.thp-frontend .polish-image-hero.knowledge-search-hero .knowledge-search button{background:var(--hero-ink);color:var(--hero-base);border-color:var(--hero-ink)}
.thp-frontend .polish-image-hero .knowledge-search :is(input,select){color:var(--text);background:var(--content-bg)}

html.thp-high-contrast .polish-footer{--footer-surface:var(--content-bg)!important;--footer-ink:var(--text)!important}
html.thp-high-contrast .thp-home-hero>.container,html.thp-high-contrast .thp-home-hero>.hero-scrim{--hero-ink:var(--text)!important;--hero-base:var(--content-bg)!important;--hero-opacity:1!important}
[data-species-directory] .module-card[hidden]{display:none!important}
.knowledge-articles-panel{padding:24px;border:1px solid var(--border);border-radius:12px;background:var(--content-bg)}
.knowledge-featured-columns>section{padding:20px;border:1px solid var(--border);border-radius:12px}
@media(max-width:600px){.knowledge-articles-panel{padding:16px}}

.thp-frontend .staff-admin-bar button{background:transparent;color:inherit;border-color:transparent}
.thp-frontend .compact-header .logo-image{background:var(--logo-surface,var(--content-bg));border-radius:6px}
/* Shared photograph-first homepage presentation and compact directories/footer. */
.thp-frontend .thp-home-hero{min-height:480px;background:var(--hero-base)}
.thp-frontend .thp-home-hero>.container{padding-block:0;max-width:1440px}
.thp-frontend .thp-home-hero-grid{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(0,.85fr);min-height:480px;gap:40px;text-align:left}
.thp-frontend .thp-home-hero-copy{max-width:none;min-width:0;padding:48px 0}
.thp-frontend .thp-home-hero .hero-scrim{background:color-mix(in srgb,var(--hero-base) calc(var(--hero-opacity)*100%),transparent)}
.thp-frontend .thp-home-hero-copy h1{font-size:clamp(32px,3.6vw,58px);max-width:17ch;line-height:1.12;text-wrap:balance;margin:16px 0;overflow-wrap:normal;letter-spacing:normal}
.thp-frontend .thp-home-hero .thp-home-intro{max-width:48ch;font-size:clamp(16px,1.35vw,20px);line-height:1.6;margin:0 0 22px}
.thp-frontend .thp-home-hero-copy .hero-actions{justify-content:flex-start;gap:12px}
.thp-frontend .polish-footer{margin-top:36px;font-size:.9rem}
.thp-frontend .polish-footer .container{padding-block:0}
.thp-frontend .polish-footer .footer-invitation{padding:22px 0;gap:20px}
.thp-frontend .polish-footer .footer-invitation h2{font-size:clamp(1.2rem,2vw,1.55rem);max-width:none;margin:0 0 6px}
.thp-frontend .polish-footer .footer-invitation p{font-size:.9rem;margin:0}
.thp-frontend .polish-footer .footer-main{grid-template-columns:minmax(180px,.8fr) minmax(0,3.2fr);padding:24px 0;gap:28px}
.thp-frontend .polish-footer .footer-brand-name{font-size:1.2rem;line-height:1.3}
.thp-frontend .polish-footer .footer-brand p{font-size:.9rem;line-height:1.5;margin:8px 0}
.thp-frontend .polish-footer .footer-grid{grid-template-columns:repeat(auto-fit,minmax(130px,1fr));gap:14px}
.thp-frontend .polish-footer .footer-grid h3{font-size:.9rem;margin-bottom:6px}
.thp-frontend .polish-footer .navigation-item a{font-size:.88rem;line-height:1.4;min-height:32px;padding:6px 0}
.thp-frontend .polish-footer .footer-social{margin-top:12px;gap:8px}
.thp-frontend .polish-footer .footer-bottom{padding:10px 0;gap:8px 18px}
.thp-frontend .polish-footer .footer-bottom small,.thp-frontend .polish-footer .footer-legal :is(a,button){font-size:.85rem}
.thp-frontend .species-directory-hero{padding-block:36px;background:linear-gradient(120deg,var(--site-bg),var(--content-bg));border-bottom:1px solid var(--border)}
.thp-frontend .species-directory-hero .container{padding-block:0}
.thp-frontend .species-directory-hero h1{font-size:clamp(30px,3.5vw,46px);line-height:1.15;margin:8px 0 12px}
.thp-frontend .species-directory-hero .lead{font-size:1rem;max-width:64ch;line-height:1.6;margin:0}
.thp-frontend [data-species-directory]{padding-block:24px 40px}
.thp-frontend .species-directory-filters{display:grid;grid-template-columns:minmax(0,2fr) minmax(180px,1fr);gap:16px;padding:16px;margin:0 0 12px;border:1px solid var(--border);border-radius:12px;background:var(--content-bg)}
.species-directory-filters label{font-size:.85rem;font-weight:600;min-width:0}
.species-directory-filters :is(input,select){margin:6px 0 0;min-height:44px;width:100%}
.thp-frontend [data-species-directory]>[role=status]{font-size:.85rem;margin:12px 0 16px;color:var(--text)}
.thp-frontend [data-species-directory]>.species-directory-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:18px}
.thp-frontend [data-species-directory] .species-directory-card{padding:0;overflow:hidden;border:1px solid var(--border);border-radius:12px;background:var(--content-bg);box-shadow:none;min-width:0;transition:border-color .15s ease,box-shadow .15s ease}
.thp-frontend [data-species-directory] .species-directory-card:hover,.species-directory-card:focus-within{border-color:var(--accent);box-shadow:0 6px 20px #0000000b}
.thp-frontend [data-species-directory] .module-card-image{height:auto;aspect-ratio:8/5;width:100%;object-fit:cover;border-radius:0;margin:0}
.thp-frontend [data-species-directory] .placeholder-image{display:grid;place-items:center;background:var(--site-bg);color:var(--text);font-size:.9rem}
.species-card-body{display:flex;flex-direction:column;flex:1;padding:16px;min-width:0}
.species-group-label{font-size:.72rem;font-weight:600;letter-spacing:.045em;text-transform:uppercase;color:var(--text);margin-bottom:8px}
.thp-frontend [data-species-directory] h2{font-family:var(--body-font,inherit);font-size:1.1rem;line-height:1.35;margin:0 0 5px;overflow-wrap:anywhere}
.species-scientific{font-size:.82rem;line-height:1.45;margin:0 0 10px;color:var(--text)}
.species-card-summary{font-size:.88rem;line-height:1.55;margin:0 0 12px}
.species-profile-link{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:auto;min-height:44px;font-size:.85rem;font-weight:600;border-top:1px solid var(--border);padding-top:8px;text-decoration:none;color:var(--text)}
.species-profile-link:hover{text-decoration:underline}
.species-profile-link:focus-visible{outline:2px solid var(--accent);outline-offset:3px}
@media(max-width:1100px){.thp-frontend [data-species-directory]>.species-directory-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.thp-frontend .polish-footer .footer-main{grid-template-columns:1fr;gap:20px}.thp-frontend .polish-footer .footer-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:900px){.thp-frontend .thp-home-hero{min-height:0}.thp-frontend .thp-home-hero-grid{grid-template-columns:minmax(0,1fr);min-height:0;gap:0}.thp-frontend .thp-home-hero .hero-backdrop,.thp-frontend .thp-home-hero .hero-scrim{height:200px}.thp-frontend .thp-home-hero .hero-scrim{background:color-mix(in srgb,var(--hero-base) calc(var(--hero-opacity)*100%),transparent)}.thp-frontend .thp-home-hero-copy{padding:170px 0 28px}.thp-frontend .thp-home-hero-copy h1{font-size:clamp(30px,8vw,40px);max-width:17ch}.thp-frontend [data-species-directory]>.species-directory-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:600px){.thp-frontend .species-directory-filters{grid-template-columns:minmax(0,1fr);gap:12px;padding:12px}.thp-frontend .polish-footer .footer-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.thp-frontend .polish-footer .navigation-item a{min-height:44px;padding:10px 0}.thp-frontend .polish-footer .footer-invitation{gap:12px;padding:18px 0}.thp-frontend .polish-footer .footer-main{padding:18px 0}.thp-frontend .species-directory-hero{padding-block:24px}}
@media(max-width:440px){.thp-frontend [data-species-directory]>.species-directory-grid{grid-template-columns:minmax(0,1fr)}.thp-frontend [data-species-directory] .module-card-image{aspect-ratio:2/1}.species-card-body{padding:14px}}
@media(pointer:coarse){.thp-frontend .polish-footer .navigation-item a{min-height:44px}}
@media(prefers-reduced-motion:reduce){.thp-frontend [data-species-directory] .species-directory-card{transition:none}}
html.thp-high-contrast .species-directory-card{box-shadow:none!important;border-width:2px!important}

.thp-frontend [data-species-directory] .module-card-image{min-height:0}
.thp-frontend [data-species-directory] .placeholder-image{height:140px;aspect-ratio:auto;color:var(--accent)}
.thp-frontend .thp-home-hero-copy h1{max-width:21ch}

.polish-footer .footer-link-group{min-width:0}
.polish-footer .footer-link-group summary{cursor:pointer;list-style:none;min-height:32px}
.polish-footer .footer-link-group summary::-webkit-details-marker{display:none}
.polish-footer .footer-link-group summary:focus-visible{outline:2px solid currentColor;outline-offset:3px}
@media(max-width:600px){.thp-frontend .polish-footer .footer-grid{grid-template-columns:minmax(0,1fr);gap:0}.polish-footer .footer-link-group{border-bottom:1px solid color-mix(in srgb,currentColor 20%,transparent)}.polish-footer .footer-link-group summary{display:flex;align-items:center;justify-content:space-between;min-height:44px;padding:8px 0}.polish-footer .footer-link-group summary h3{margin:0}.polish-footer .footer-link-group summary::after{content:'+';font-size:1.2rem}.polish-footer .footer-link-group[open] summary::after{content:'−'}.polish-footer .footer-link-group nav{padding-bottom:8px}}
/* Individual species profiles: compact identity header, taxonomy and readable topic panels. */
.thp-frontend .species-profile-modern .species-profile-hero{background:linear-gradient(125deg,var(--site-bg),var(--content-bg));border-bottom:1px solid var(--border);padding:20px 0 28px}
.species-profile-modern .species-profile-hero>.container{padding-block:0}
.species-breadcrumb{display:flex;align-items:center;flex-wrap:wrap;gap:10px;font-size:.82rem;line-height:1.5;margin-bottom:20px;color:var(--text)}
.species-breadcrumb a{display:inline-flex;align-items:center;min-height:44px;color:var(--text);text-underline-offset:3px}
.species-profile-heading{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(0,.85fr);gap:clamp(24px,4vw,56px);align-items:center}
.species-profile-copy{min-width:0}
.thp-frontend .species-profile-modern h1{font-size:clamp(32px,3.8vw,52px);line-height:1.12;text-wrap:balance;margin:10px 0;max-width:22ch}
.species-profile-scientific{font-size:1.05rem;line-height:1.5;margin:0 0 16px;color:var(--text)}
.species-profile-intro{font-size:1rem;line-height:1.7;max-width:62ch;margin:0}
.thp-frontend .species-profile-photo{display:block;width:100%;height:auto;aspect-ratio:3/2;object-fit:cover;max-height:320px;border-radius:16px;border:1px solid var(--border)}
.thp-frontend .species-profile-placeholder{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;background:var(--site-bg);color:var(--text);min-height:200px;font-size:.85rem;text-align:center;padding:20px}
.species-profile-placeholder svg{color:var(--accent)}
.species-taxonomy-strip{display:flex;flex-wrap:wrap;gap:18px 36px;padding:20px 0 0;margin:24px 0 0;border-top:1px solid var(--border)}
.species-taxonomy-strip:empty{display:none}
.species-taxonomy-strip div{min-width:110px}
.species-taxonomy-strip dt{font-size:.75rem;letter-spacing:.045em;text-transform:uppercase;margin:0 0 5px;color:var(--text)}
.species-taxonomy-strip dd{font-size:.95rem;font-weight:600;margin:0;color:var(--heading)}
.thp-frontend .species-profile-jump{display:flex;align-items:center;flex-wrap:wrap;gap:8px;padding-block:18px}
.species-profile-jump a{display:inline-flex;align-items:center;min-height:44px;padding:8px 15px;border:1px solid var(--border);border-radius:24px;font-size:.85rem;font-weight:600;text-decoration:none;color:var(--text);background:var(--content-bg)}
.species-profile-jump a:hover{border-color:var(--accent);background:var(--site-bg)}
.species-profile-modern :is(a,[tabindex]):focus-visible{outline:2px solid var(--accent);outline-offset:3px}
.thp-frontend .species-profile-modern>.container{padding-block:24px;scroll-margin-top:150px}
.thp-frontend .species-profile-modern>.species-profile-jump{padding-block:18px}
.thp-frontend .species-profile-modern h2{font-size:clamp(24px,2.2vw,32px);line-height:1.25;margin:0 0 16px}
.thp-frontend .species-profile-modern h3{font-size:1.1rem;line-height:1.35;margin:0 0 10px}
.species-section-heading{margin-bottom:20px}
.species-section-heading .eyebrow{font-size:.72rem;margin:0 0 8px}
.thp-frontend .species-profile-modern .species-facts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
.species-fact-panel{padding:22px;border:1px solid var(--border);border-radius:12px;background:var(--content-bg);min-width:0}
.species-fact-panel p{font-size:.95rem;line-height:1.7;margin:0;overflow-wrap:anywhere}
.species-profile-modern .leaflet-map{height:360px;border:1px solid var(--border);border-radius:12px;overflow:hidden}
.species-profile-modern .responsive-table{border:1px solid var(--border);border-radius:12px;overflow:auto}
.species-profile-modern .responsive-table table{margin:0;font-size:.9rem;min-width:650px}
.thp-frontend .species-profile-modern .frontend-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;align-items:stretch}
.thp-frontend .species-profile-modern .card{padding:20px;border:1px solid var(--border);border-radius:12px;box-shadow:none;min-width:0;background:var(--content-bg)}
.species-profile-modern .card p{font-size:.9rem;line-height:1.6}
.species-profile-modern .card :is(h3,h4){font-family:var(--body-font,inherit);font-size:1.08rem;line-height:1.4}
.species-profile-modern .card .button{min-height:44px;font-size:.85rem;padding:9px 14px}
.species-profile-modern>.content-block+.content-block{border-top:1px solid var(--border)}
@media(max-width:900px){.thp-frontend .species-profile-modern .frontend-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.species-profile-heading{grid-template-columns:minmax(0,1fr) minmax(0,.8fr);gap:24px}}
@media(max-width:600px){.species-profile-heading{grid-template-columns:minmax(0,1fr);gap:20px}.thp-frontend .species-profile-photo{max-height:230px;aspect-ratio:16/9}.thp-frontend .species-profile-placeholder{min-height:150px}.species-taxonomy-strip{gap:16px 24px;margin-top:20px;padding-top:16px}.species-taxonomy-strip div{flex:1 1 40%;min-width:0}.thp-frontend .species-profile-modern .species-facts,.thp-frontend .species-profile-modern .frontend-grid{grid-template-columns:minmax(0,1fr)}.species-fact-panel{padding:18px}.thp-frontend .species-profile-modern>.container{padding-block:20px}.species-profile-modern .leaflet-map{height:280px}.species-profile-jump{gap:6px}.species-profile-jump a{font-size:.8rem;padding:8px 12px}}
html.thp-high-contrast .species-profile-placeholder svg{color:var(--text)}

.species-outcome-disclosure{margin:24px 0;border:1px solid var(--border);border-radius:12px;background:var(--content-bg);padding:0 18px}
.species-outcome-disclosure summary{min-height:52px;padding:14px 0;cursor:pointer;font-size:1rem;font-weight:600;line-height:1.5;color:var(--heading)}
.species-outcome-count{font-size:.8rem;border:1px solid var(--border);border-radius:20px;padding:2px 8px;margin-left:8px}
.species-outcome-disclosure[open]>.frontend-grid{padding:6px 0 18px}
.species-outcome-disclosure summary:focus-visible{outline:2px solid var(--accent);outline-offset:3px}
.thp-frontend .species-profile-modern{display:block;min-width:0}
.species-profile-modern>*{min-width:0;max-width:100%}
.species-profile-modern .responsive-table{max-width:100%;min-width:0}

/* Species profiles: readable facts, neutral conservation categories and anonymous Registry totals. */
.species-conservation{display:flex;align-items:center;flex-wrap:wrap;gap:12px;margin-top:22px;font-size:.85rem}
.species-status-help{position:relative;max-width:45ch}.species-status-help summary{min-height:44px;display:flex;align-items:center;cursor:pointer;text-decoration:underline;text-underline-offset:3px}.species-status-help[open]{flex-basis:100%;padding:12px 16px;background:var(--content-bg);border:1px solid var(--border);border-radius:12px}.species-status-help p{max-width:60ch;margin-block:10px}
.species-conservation-note{max-width:70ch;line-height:1.7;margin-top:14px}
.thp-frontend .species-profile-modern .species-facts{grid-template-columns:repeat(2,minmax(0,1fr));align-items:start;gap:clamp(16px,2vw,24px)}
.species-profile-modern .species-fact-panel{padding:clamp(20px,2.4vw,30px);box-shadow:none;border-radius:16px}
.species-profile-modern .species-fact-panel p{max-width:66ch;line-height:1.8;white-space:normal;overflow-wrap:anywhere}
.species-fact-panel details{margin-top:14px}.species-fact-panel summary{cursor:pointer;min-height:44px;padding-block:10px;font-weight:600;color:var(--text)}.species-fact-panel details[open] p{margin-block:10px}
.species-profile-modern .species-distribution-text{margin-top:22px;max-width:74ch;font-size:1rem;line-height:1.8;overflow-wrap:anywhere}
.species-registry-section>p{max-width:75ch;line-height:1.7}.species-registry-numbers{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,150px),1fr));gap:14px;padding:0;margin:24px 0}
.species-registry-numbers>div{padding:20px;border:1px solid var(--border);border-radius:14px;background:var(--content-bg);min-width:0}.species-registry-numbers dt{font-size:.85rem;line-height:1.5}.species-registry-numbers dd{font-size:1.8rem;font-weight:750;margin:10px 0 0;color:var(--heading)}
.species-registry-top{max-width:60ch;margin-block:20px}.species-registry-links{display:flex;flex-wrap:wrap;gap:12px 28px}.species-registry-links>a{display:inline-flex;align-items:center;min-height:44px}.species-staff-note{font-size:.85rem;border-left:3px solid var(--border);padding-left:16px}
.species-profile-modern :is(summary,a):focus-visible{outline:2px solid var(--accent);outline-offset:3px}
@media(max-width:700px){.thp-frontend .species-profile-modern .species-facts{grid-template-columns:minmax(0,1fr)}.species-conservation{align-items:flex-start;gap:8px 14px}.species-registry-numbers{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:360px){.species-registry-numbers{grid-template-columns:minmax(0,1fr)}}

.species-profile-modern :is(h1,h2,h3,.species-profile-scientific,.species-profile-intro){overflow-wrap:anywhere}
