/* Main site only. Registry and the learning layout keep their own frame. */
.thp-site{--ds-title:clamp(1.375rem,1.2rem + .6vw,1.75rem);--ds-hero:clamp(1.75rem,1.3rem + 1.2vw,2.5rem);--ds-space-8:3rem;--ds-space-7:2.5rem;--page-frame-padding:clamp(1rem,2vw,2rem)}
.thp-site #site-content{padding:1.5rem 0 2.5rem;background:var(--ds-canvas);color:var(--ds-ink)}
.thp-site .site-page-frame,.thp-site .site-footer>.container{box-sizing:border-box;width:var(--frame-width);max-width:var(--frame-max);margin-inline:auto}
.thp-site .frontend-header.compact-header>.container{width:100%;max-width:none;padding-inline:0}
.thp-site .site-page-frame{--site-bg:var(--ds-surface);--content-bg:var(--ds-surface);--text:var(--ds-ink);--heading:var(--ds-heading);--muted:var(--ds-muted);background:var(--ds-surface);color:var(--ds-ink);border:1px solid color-mix(in srgb,var(--ds-line) 22%,var(--ds-surface));border-radius:var(--ds-radius-card);padding:var(--page-frame-padding);min-width:0;box-shadow:0 3px 16px color-mix(in srgb,var(--ds-ink) 4%,transparent);overflow-wrap:anywhere}
.thp-site .site-page-frame :is(.container,.section-shell,.research-explorer,.public-sections,.ds-scope:not([data-guide-mode])){width:100%;max-width:none;margin-inline:0;box-sizing:border-box;background:transparent;color:inherit;min-width:0}
.thp-site .site-page-frame .public-sections{--site-bg:var(--ds-surface)}
.thp-site .site-page-frame{--surface:var(--ds-surface);--research-tint:color-mix(in srgb,var(--ds-brand) 4%,var(--ds-surface))}
.thp-site .site-page-frame .research-public-page{padding:0;max-width:none}
.thp-site .site-page-frame :is(.research-public-information,.research-participation){padding:1rem;margin-top:1.5rem;background:var(--ds-surface);color:var(--ds-ink);border-color:color-mix(in srgb,var(--ds-line) 22%,var(--ds-surface));border-radius:var(--ds-radius-card)}
.thp-site .site-page-frame :is(.container,.section-shell){padding:0}
.thp-site .site-page-frame :is(h1,h2,h3){color:var(--ds-heading);line-height:1.2;max-width:none;text-wrap:pretty}
.thp-site .site-page-frame h1{font-size:var(--ds-hero);margin:.45rem 0 .6rem}
.thp-site .site-page-frame h2{font-size:var(--ds-title)}
.thp-site .site-page-frame h3{font-size:clamp(1.125rem,1.05rem + .3vw,1.375rem)}
.thp-site .site-page-frame :is(.ds-section,.section-pad,.content-block,.listing-section,.academy-band,.knowledge-directory){padding-block:1.25rem}
.thp-site .site-page-frame .species-profile-modern>.container{padding-block:1.25rem}
.thp-site .site-page-frame :is(.card,.frontend-card,.module-card,.ds-card,.ds-link-tile,.academy-tabs-card,.species-fact-panel){padding:1rem;min-width:0;background:var(--ds-surface);color:var(--ds-ink);border-color:color-mix(in srgb,var(--ds-line) 22%,var(--ds-surface));box-shadow:0 2px 8px color-mix(in srgb,var(--ds-ink) 4%,transparent)}
.thp-site .site-page-frame .form{background:var(--ds-surface);color:var(--ds-ink)}
.thp-site .site-page-frame :is(.stat,.stat-card,.dashboard-card,.media-file-placeholder){background:var(--ds-surface);color:var(--ds-ink);border-color:color-mix(in srgb,var(--ds-line) 22%,var(--ds-surface))}
.thp-site .site-page-frame .stat strong{color:var(--ds-heading)!important}
.thp-site .site-page-frame .frontend-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,16rem),1fr));gap:1rem}
.thp-site .site-page-frame .module-card-image{margin:-1rem -1rem .5rem;width:calc(100% + 2rem);max-width:calc(100% + 2rem);min-height:0;aspect-ratio:16/10;object-fit:cover}
.thp-site .site-page-frame .placeholder-image{background:var(--ds-brand);color:var(--ds-on-brand)}
.thp-site .site-page-frame :is(.narrow-content,.reading-width){width:100%;max-width:min(72ch,var(--frame-reading));margin-inline:auto}
.thp-site .site-page-frame .content-body>:is(p,ul,ol,blockquote){max-width:min(100%,var(--container-width));margin-inline:auto}
.thp-site .site-page-frame .narrow-content:has(.thp-component,.thp-layout-grid,[data-map],.map-system){max-width:none}
.thp-site .site-page-frame :is(img,video,iframe){max-width:100%}
.thp-site .site-page-frame :is(input,select,textarea){max-width:100%;min-width:0}
.thp-site .site-page-frame :is(button,.button,summary){min-height:44px}
.thp-site .site-page-frame :is(.compact-page-header,[data-page-header]){display:block;background:transparent;color:var(--ds-ink);padding:0 0 1rem;margin:0 0 1rem;border:0;border-bottom:1px solid color-mix(in srgb,var(--ds-line) 22%,var(--ds-surface));border-radius:0;box-shadow:none;min-height:0;height:auto;text-align:left}
.thp-site .page-breadcrumb{font-size:.8125rem;line-height:1.5;display:flex;flex-wrap:wrap;gap:.35rem;color:var(--ds-muted)}
.thp-site .page-breadcrumb a{color:var(--ds-link)}
.thp-site .compact-page-header .lead{font-size:1em;line-height:1.5;margin:.4rem 0 0;max-width:80ch}
.thp-site .page-heading-remainder{position:static!important;display:block;min-height:0!important;height:auto!important;background:none!important;color:var(--ds-ink)!important;padding:0!important;margin:0;box-shadow:none;border:0}
.thp-site .page-heading-content{display:flow-root}
.thp-site .page-heading-content:has(> .page-heading-remainder:empty){display:none}
.thp-site .page-heading-content :is(.species-profile-heading,.detail-hero-grid){display:grid;grid-template-columns:minmax(0,1fr) minmax(180px,32%);gap:1.25rem;align-items:start}
.thp-site .page-heading-content :is(img,.species-profile-photo,.page-content-image){position:static;max-width:100%;width:min(100%,480px);max-height:320px;object-fit:cover;border-radius:var(--ds-radius-card);margin-block:.5rem 1rem}
.thp-site .page-heading-content .page-content-image{float:right;width:32%;margin-left:1.5rem}
.thp-site .page-heading-content .academy-detail-media{max-width:480px;margin-block:1rem}
.thp-site .page-heading-content .publishing-credit-photo{width:32px;height:32px;max-height:none;object-fit:cover;margin:0 .5rem 0 0;border-radius:50%;vertical-align:middle}
.thp-site .site-page-frame .shop-flow-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(240px,28%);gap:1.25rem;padding-block:1.25rem;align-items:start}
.thp-site .site-page-frame :is(.shop-flow-grid,.product-detail-grid)>*{min-width:0;max-width:100%;box-sizing:border-box}
.thp-site .site-page-frame .cart-row{grid-template-columns:64px minmax(0,1fr) 80px auto;gap:.75rem}
.thp-site .site-page-frame .editor-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
.thp-site .site-page-frame .shop-price-fields{grid-template-columns:repeat(2,minmax(0,1fr))}
.thp-site .site-page-frame :is(.shop-price-fields label,.shop-filter-sidebar,.shop-results){min-width:0;max-width:100%}
.thp-site .page-heading-content :is(p,.lead){color:var(--ds-ink);font-size:1em;line-height:1.6}
.thp-site .site-page-frame .portal-nav a{min-height:44px;display:inline-flex;align-items:center;background:var(--ds-surface)!important;color:var(--ds-link)!important;border-color:var(--ds-link)}
.thp-site .site-page-frame .portal-nav a:is(.active,:hover,:focus-visible){background:var(--ds-brand)!important;color:var(--ds-on-brand)!important;border-color:var(--ds-brand)}
.thp-site .page-frame-knowledge .knowledge-search-hero{width:calc(100% + 2 * var(--page-frame-padding));margin:calc(-1 * var(--page-frame-padding)) calc(-1 * var(--page-frame-padding)) 1.25rem;height:auto;min-height:300px;padding:1.5rem var(--page-frame-padding);box-sizing:border-box;border-radius:var(--ds-radius-card) var(--ds-radius-card) 0 0;overflow:hidden}
.thp-site .page-frame-knowledge .knowledge-search-hero>.container{padding:0;position:relative;color:var(--hero-ink)}
.thp-site .page-frame-knowledge .knowledge-search-hero :is(h1,p,label){color:var(--hero-ink)}
.thp-site .page-frame-knowledge .knowledge-search-hero h1{font-size:var(--ds-hero);margin:.4rem 0}
.thp-site .page-frame-knowledge .knowledge-search-hero .eyebrow{display:none}
.thp-site .page-frame-knowledge .knowledge-search{margin-top:.75rem;padding:.75rem;background:var(--ds-surface);color:var(--ds-ink)}
.thp-site .page-frame-knowledge .knowledge-search label{color:var(--hero-ink)}
.thp-site .site-page-frame :is(.research-hero,.detail-hero,.listing-hero,.public-page-header){background:none;min-height:0;padding-block:0;color:var(--ds-ink)}
@media(max-width:899px){.thp-site .site-page-frame,.thp-site .site-footer>.container{width:calc(100% - 32px)}.thp-site .page-heading-content :is(.species-profile-heading,.detail-hero-grid){grid-template-columns:minmax(0,1fr)}.thp-site .page-frame-knowledge .knowledge-search-hero{min-height:240px}.thp-site .page-heading-content .page-content-image{float:none;width:100%;margin-left:0}.thp-site .site-page-frame :is(.shop-flow-grid,.product-detail-grid){grid-template-columns:minmax(0,1fr)}.thp-site .site-page-frame .product-purchase-box{position:static;inset:auto}}
@media(max-width:600px){.thp-site .site-page-frame .editor-grid{grid-template-columns:minmax(0,1fr)}.thp-site .site-page-frame .cart-row{grid-template-columns:64px minmax(0,1fr)}.thp-site .site-page-frame .cart-row label{grid-column:1 / -1}}
@media(max-width:899px){.thp-site .page-frame-knowledge .knowledge-search-hero{height:auto;min-height:280px}}
@media(max-width:520px){.thp-site .page-frame-knowledge .knowledge-search{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-items:end;gap:.5rem;padding:.5rem}.thp-site .page-frame-knowledge .knowledge-search label{font-size:.875em;line-height:1.35;gap:.25rem;min-width:0}.thp-site .page-frame-knowledge .knowledge-search :is(input,select){font-size:var(--base-font-size,16px);min-height:44px}.thp-site .page-frame-knowledge .knowledge-search button{grid-column:1/-1}.thp-site .page-frame-knowledge .knowledge-search-hero{height:auto;min-height:0;padding:1rem}.thp-site .page-frame-knowledge .knowledge-hero-intro{display:none}.thp-site .page-frame-knowledge .knowledge-mobile-intro{display:block!important;margin-block:1rem;font-size:1em;line-height:1.5}.thp-site .page-heading-content :is(.hero-actions,.research-participation-actions){flex-wrap:wrap}}
html.thp-high-contrast .thp-site .site-page-frame:not(.page-frame-home){border:2px solid var(--ds-ink);box-shadow:none}
html.thp-high-contrast .thp-site .site-page-frame :is(.card,.frontend-card,.module-card,.ds-card,.ds-link-tile,.academy-tabs-card,.species-fact-panel){border-color:var(--ds-ink);box-shadow:none}
html.thp-high-contrast .thp-site .site-page-frame .portal-nav a:is(.active,:hover,:focus-visible){background:var(--ds-surface)!important;color:var(--ds-ink)!important;border:2px solid currentColor;text-decoration:underline}

.thp-site .public-section-article .narrow-content{max-width:min(72ch,var(--frame-blog-reading))}

.thp-site .compact-page-header :is(.species-breadcrumb,nav){margin:0;padding:0;font-size:.8125rem;min-height:0}
.thp-site .page-heading-content .species-profile-heading{margin-top:0}

/* Main header and distribution maps follow their own available container, not the reading width. */
.thp-site .frontend-header .frontend-mainbar{width:100%;max-width:none;margin-inline:0;box-sizing:border-box}
.thp-site .site-page-frame :is(.narrow-content,.reading-width,.content-body):has(.species-map){width:100%;max-width:none}
.thp-site .site-page-frame .species-map{box-sizing:border-box;width:100%;max-width:100%;margin-inline:0}

/* One public header contract, independent of language and inherited hero selectors. */
.thp-site .site-page-frame [data-page-header]{display:flow-root;margin:0 0 var(--ds-space-6);padding:0;border:0;min-height:0}
.thp-site .site-page-frame [data-page-header] nav{margin:0;padding:0;line-height:1.5;min-height:0}
.thp-site .site-page-frame [data-page-header] h1{margin:var(--ds-space-2) 0 0;padding:0;line-height:1.2;max-width:none}
.thp-site .site-page-frame [data-page-header] .page-header-subtitle{margin:var(--ds-space-3) 0 0;padding:0;font-size:var(--ds-text-base,1rem);line-height:1.5;max-width:none}
.thp-site .site-page-frame [data-page-header] .page-header-divider{margin:var(--ds-space-5) 0 0;border:0;border-top:1px solid var(--ds-line);height:0}
.thp-site .site-page-frame #faq-content{padding-top:0}
.thp-site .site-page-frame .page-header-actions{display:flex;flex-wrap:wrap;gap:var(--ds-space-3);margin-top:var(--ds-space-4)}
