/* SQRLFather 0.7.32 — site-wide visual/content polish layer.
   Loaded after wildlife.css + site-polish.css so legacy pages improve without
   changing the shared Account or xxSQRLxx styling. */

html{scroll-behavior:smooth;scroll-padding-top:88px}
body.sf-overhaul{
  --sf-ink:#f4f3ec;
  --sf-muted:#aeb8aa;
  --sf-muted-2:#859282;
  --sf-line:#35503a;
  --sf-line-soft:#27392b;
  --sf-panel:#111a13;
  --sf-panel-2:#0d160f;
  --sf-panel-3:#17231a;
  --sf-green:#8dbb72;
  --sf-green-2:#b4d69e;
  --sf-gold:#e1b54f;
  --sf-danger:#ef8c80;
  background:
    radial-gradient(circle at 15% -8%,rgba(108,154,84,.13),transparent 31rem),
    radial-gradient(circle at 88% 12%,rgba(213,170,66,.055),transparent 28rem),
    #09100b;
  color:var(--sf-ink)
}
body.sf-overhaul *{box-sizing:border-box}
body.sf-overhaul main{min-height:60vh}
body.sf-overhaul :where(p,li){line-height:1.68}
body.sf-overhaul :where(p){text-wrap:pretty}
body.sf-overhaul :where(h1,h2,h3){text-wrap:balance}
body.sf-overhaul :where(a,button,input,select,textarea){transition:border-color .16s ease,background-color .16s ease,color .16s ease,transform .16s ease,box-shadow .16s ease}
body.sf-overhaul :where(a,button,input,select,textarea):focus-visible{outline:3px solid rgba(225,181,79,.42);outline-offset:3px}
body.sf-overhaul .container{width:min(1180px,calc(100% - 36px))}

/* Navigation stays compatible with the shared Account slot. */
body.sf-overhaul .topbar{position:sticky;top:0;z-index:100;background:rgba(7,13,9,.92);backdrop-filter:blur(16px);border-bottom-color:#2c4431}
body.sf-overhaul .topbar-inner{min-height:66px}
body.sf-overhaul .brand-link img{object-fit:contain}
body.sf-overhaul .nav a{border-radius:10px}
body.sf-overhaul .nav a:hover{background:rgba(143,187,114,.08)}
body.sf-overhaul .nav a[aria-current="page"]{background:rgba(143,187,114,.12);box-shadow:inset 0 -2px 0 var(--sf-gold)}
body.sf-overhaul .nav-account-slot{min-width:118px;text-align:center}

/* Shared section rhythm. */
body.sf-overhaul .section{padding-block:clamp(48px,6.5vw,88px)}
body.sf-overhaul .sf-soft-section{background:linear-gradient(180deg,rgba(22,35,25,.56),rgba(11,19,13,.7));border-block:1px solid var(--sf-line-soft)}
body.sf-overhaul .section-head,body.sf-overhaul .sf-section-head{gap:24px;margin-bottom:28px}
body.sf-overhaul .section-head h2,body.sf-overhaul .sf-section-head h2{font-size:clamp(1.85rem,3.5vw,3rem);letter-spacing:-.035em;line-height:1.02}
body.sf-overhaul .section-head>p,body.sf-overhaul .sf-section-head>p{max-width:690px;color:var(--sf-muted)}
body.sf-overhaul .eyebrow,body.sf-overhaul .sf-v3-kicker,body.sf-overhaul .sf-mini-kicker{color:var(--sf-gold);letter-spacing:.14em}
body.sf-overhaul .breadcrumb{color:#839080}
body.sf-overhaul .breadcrumb a{color:#afc6a5}
body.sf-overhaul .breadcrumb a:hover{color:#e4c66f}

/* Cleaner reusable panels/cards across old and new pages. */
body.sf-overhaul :where(.sf-scurry-intro,.sf-scurry-card,.sf-directory-card,.sf-species-section,.sf-sidebar-card,.sf-profile-quick>div,.sf-species-stats>div,.sf-visual-card,.sf-learn-topic-card,.sf-learn-species-card,.sf-guide-path-card,.sf-guide-animal-card,.sf-rescue-species-card,.sf-rescue-now-card,.sf-first-minutes article,.support-direct-card,.support-option-card,.sf-community-photo-card,.sf-community-video-card){
  border-color:var(--sf-line)!important;
  box-shadow:0 18px 46px rgba(0,0,0,.16)
}
body.sf-overhaul :where(.sf-scurry-card,.sf-directory-card,.sf-visual-card,.sf-learn-topic-card,.sf-learn-species-card,.sf-guide-path-card,.sf-guide-animal-card,.sf-rescue-species-card,.sf-rescue-now-card,.support-option-card):hover{
  border-color:#638566!important;
  transform:translateY(-2px);
  box-shadow:0 22px 52px rgba(0,0,0,.22)
}

/* Image-first rule: information pages show the whole animal by default.
   Editorial/gallery tiles can explicitly opt back into cover. */
body.sf-overhaul :where(.sf-species-photo,.sf-profile-photo){
  min-height:clamp(360px,50vw,610px)!important;
  background-size:contain!important;
  background-repeat:no-repeat!important;
  background-position:center!important;
  background-color:#0b140d!important;
  box-shadow:inset 0 0 0 1px rgba(141,187,114,.08),0 22px 58px rgba(0,0,0,.25)!important
}
body.sf-overhaul .sf-directory-image{
  background-size:contain!important;
  background-repeat:no-repeat!important;
  background-position:center!important;
  background-color:#0d1710!important
}
body.sf-overhaul :where(.sf-rescue-species-media,.sf-stage-visual-card,.sf-learn-species-media,.sf-guide-animal-media,.sf-guide-path-media,.sf-learn-topic-media){background:#0c160e!important}
body.sf-overhaul :where(.sf-rescue-species-media img,.sf-stage-visual-card img,.sf-learn-species-media img,.sf-guide-animal-media img,.sf-guide-path-media img){
  object-fit:contain!important;
  object-position:center!important;
  background:#0c160e
}
body.sf-overhaul .sf-learn-topic-media img{object-fit:cover;object-position:center}
body.sf-overhaul img.sf-photo-contain{object-fit:contain!important;object-position:center!important;background:#0b140d}
body.sf-overhaul img.sf-photo-cover{object-fit:cover!important}
body.sf-overhaul .sf-photo-frame{overflow:hidden;border:1px solid var(--sf-line);border-radius:16px;background:#0b140d;box-shadow:0 18px 42px rgba(0,0,0,.2)}
body.sf-overhaul .sf-photo-frame img{display:block;width:100%;height:100%;object-fit:contain;background:#0b140d}
body.sf-overhaul .sf-photo-frame figcaption{padding:10px 13px;border-top:1px solid var(--sf-line-soft);color:var(--sf-muted-2);font-size:.72rem;line-height:1.45}

/* Gallery: preserve complete photographs rather than chopping them into tiles. */
body.sf-overhaul .sf-gallery-strip-card,body.sf-overhaul .sf-gallery-browser-card,body.sf-overhaul .sf-community-photo-image{background:#0b140d}
body.sf-overhaul .sf-gallery-strip-card img,body.sf-overhaul .sf-gallery-browser-card img,body.sf-overhaul .sf-community-photo-image img{object-fit:contain!important;object-position:center!important;background:#0b140d}
body.sf-overhaul .sf-gallery-strip-card:hover img,body.sf-overhaul .sf-community-photo-card:hover .sf-community-photo-image img{transform:none!important}

/* Store/product art should not be cropped either. */
body.sf-overhaul :where(.sf-product-card img,.sf-product-image img,.store-product-image img){object-fit:contain!important;background:#0b140d}

/* Profile/Scurry presentation. */
body.sf-overhaul .sf-profile-hero{padding-block:clamp(44px,6vw,78px);background:linear-gradient(145deg,rgba(23,38,26,.92),rgba(9,16,11,.98))}
body.sf-overhaul .sf-profile-hero-grid{align-items:center;gap:clamp(26px,5vw,70px)}
body.sf-overhaul .sf-profile-hero-copy h1{font-size:clamp(2.8rem,7vw,6.2rem);line-height:.9;letter-spacing:-.055em}
body.sf-overhaul .sf-profile-species{font-size:clamp(1rem,2vw,1.3rem);color:#c5d2bf}
body.sf-overhaul .sf-profile-intro{max-width:650px;color:var(--sf-muted);font-size:1rem}
body.sf-overhaul .sf-profile-quick{grid-template-columns:repeat(auto-fit,minmax(170px,1fr));gap:10px}
body.sf-overhaul .sf-profile-quick>div{min-height:86px;padding:15px 16px;border-radius:12px;background:#0f1811}
body.sf-overhaul .sf-profile-quick span{color:#7f907c}
body.sf-overhaul .sf-profile-quick strong{font-size:.96rem}

body.sf-overhaul .sf-profile-story{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(270px,.65fr);gap:24px;align-items:start}
body.sf-overhaul .sf-profile-story-main,body.sf-overhaul .sf-profile-context-card{padding:clamp(20px,3vw,32px);border:1px solid var(--sf-line);border-radius:16px;background:linear-gradient(145deg,#111b13,#0b130d)}
body.sf-overhaul .sf-profile-story-main h2,body.sf-overhaul .sf-profile-context-card h2{margin-top:0;font-size:clamp(1.45rem,2.6vw,2.15rem)}
body.sf-overhaul .sf-profile-story-main p,body.sf-overhaul .sf-profile-context-card p{color:var(--sf-muted)}
body.sf-overhaul .sf-profile-context-list{display:grid;gap:9px;margin-top:18px}
body.sf-overhaul .sf-profile-context-list div{display:grid;gap:3px;padding:11px 12px;border:1px solid #293b2c;border-radius:10px;background:#0a120c}
body.sf-overhaul .sf-profile-context-list span{font-size:.62rem;font-weight:900;letter-spacing:.11em;color:#71806e}
body.sf-overhaul .sf-profile-context-list strong{color:#e7e9e1;font-size:.9rem}
body.sf-overhaul .sf-profile-gallery{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
body.sf-overhaul .sf-profile-gallery figure{margin:0;min-width:0}
body.sf-overhaul .sf-profile-gallery .sf-photo-frame{height:310px}
body.sf-overhaul .sf-profile-gallery .sf-photo-frame.is-portrait{height:360px}
body.sf-overhaul .sf-profile-related{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
body.sf-overhaul .sf-profile-related a{display:grid;gap:5px;padding:17px;border:1px solid var(--sf-line);border-radius:12px;background:#0f1811;color:#eef0e9;text-decoration:none}
body.sf-overhaul .sf-profile-related a span{color:var(--sf-gold);font-size:.62rem;font-weight:900;letter-spacing:.1em}
body.sf-overhaul .sf-profile-related a small{color:var(--sf-muted-2);line-height:1.45}

body.sf-overhaul .sf-scurry-group-intro{display:grid;grid-template-columns:1fr auto;gap:20px;align-items:end;margin:34px 0 14px}
body.sf-overhaul .sf-scurry-group-intro h3{margin:0;font-size:clamp(1.45rem,2.4vw,2rem)}
body.sf-overhaul .sf-scurry-group-intro p{max-width:720px;margin:7px 0 0;color:var(--sf-muted)}
body.sf-overhaul .sf-scurry-group-intro a{color:#c8dcbd;text-decoration:none;font-weight:800}
body.sf-overhaul .sf-scurry-card{position:relative;overflow:hidden;background:#0e1710!important}
body.sf-overhaul .sf-scurry-thumb{background-image:var(--scurry-local,none)!important;background-size:contain!important;background-repeat:no-repeat!important;background-position:center!important;background-color:#0a120c!important}
body.sf-overhaul .sf-scurry-photo-note{display:inline-flex;width:max-content;margin-top:6px;padding:3px 6px;border:1px solid #344b37;border-radius:999px;color:#91a38c;font-size:.54rem;font-weight:800;letter-spacing:.08em}

/* New editorial building blocks used by the main hubs. */
body.sf-overhaul .sf-overview-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
body.sf-overhaul .sf-overview-card{overflow:hidden;border:1px solid var(--sf-line);border-radius:17px;background:#0f1811;text-decoration:none;color:inherit;box-shadow:0 18px 44px rgba(0,0,0,.15)}
body.sf-overhaul .sf-overview-card:hover{transform:translateY(-2px);border-color:#628266}
body.sf-overhaul .sf-overview-card .sf-overview-media{height:245px;background:#0b140d;overflow:hidden}
body.sf-overhaul .sf-overview-card .sf-overview-media img{display:block;width:100%;height:100%;object-fit:contain;background:#0b140d}
body.sf-overhaul .sf-overview-card .sf-overview-copy{padding:20px}
body.sf-overhaul .sf-overview-card .sf-overview-copy>span{color:var(--sf-gold);font-size:.63rem;font-weight:900;letter-spacing:.12em}
body.sf-overhaul .sf-overview-card h3{margin:7px 0 8px;font-size:1.35rem}
body.sf-overhaul .sf-overview-card p{margin:0;color:var(--sf-muted);font-size:.88rem}
body.sf-overhaul .sf-overview-card b{display:block;margin-top:15px;color:#c9dfbd;font-size:.8rem}

body.sf-overhaul .sf-detail-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
body.sf-overhaul .sf-detail-card{padding:clamp(20px,3vw,30px);border:1px solid var(--sf-line);border-radius:16px;background:#0e1710}
body.sf-overhaul .sf-detail-card>span{color:var(--sf-gold);font-size:.63rem;font-weight:900;letter-spacing:.12em}
body.sf-overhaul .sf-detail-card h3{margin:7px 0 9px;font-size:1.3rem}
body.sf-overhaul .sf-detail-card p{margin:0;color:var(--sf-muted)}
body.sf-overhaul .sf-detail-card ul{margin:14px 0 0;padding-left:18px;color:#bdc8b8}
body.sf-overhaul .sf-detail-card li+li{margin-top:6px}

body.sf-overhaul .sf-emergency-overview{display:grid;grid-template-columns:minmax(0,1.3fr) minmax(260px,.7fr);gap:18px;padding:clamp(22px,4vw,38px);border:1px solid #765e2e;border-radius:18px;background:linear-gradient(145deg,#241d0d,#12170f);box-shadow:0 22px 52px rgba(0,0,0,.19)}
body.sf-overhaul .sf-emergency-overview h2{margin:5px 0 10px;font-size:clamp(1.65rem,3vw,2.5rem)}
body.sf-overhaul .sf-emergency-overview p{color:#c6c6b8}
body.sf-overhaul .sf-emergency-overview .sf-emergency-steps{display:grid;gap:9px}
body.sf-overhaul .sf-emergency-overview .sf-emergency-steps div{padding:10px 12px;border:1px solid rgba(225,181,79,.22);border-radius:10px;background:rgba(0,0,0,.13);color:#d8d8cc;font-size:.82rem;line-height:1.48}
body.sf-overhaul .sf-emergency-overview .sf-emergency-steps b{color:#f1cf77}

body.sf-overhaul .sf-page-jump{display:flex;flex-wrap:wrap;gap:8px;padding:10px 0}
body.sf-overhaul .sf-page-jump a{padding:8px 11px;border:1px solid #314535;border-radius:999px;background:#0c150e;color:#bacab4;text-decoration:none;font-size:.72rem;font-weight:800}
body.sf-overhaul .sf-page-jump a:hover{border-color:#668669;color:#f0d17a}

/* More readable long-form reference pages. */
body.sf-overhaul .sf-article-body{font-size:.96rem}
body.sf-overhaul .sf-article-body>p{max-width:76ch}
body.sf-overhaul .sf-article-section{scroll-margin-top:92px}
body.sf-overhaul .sf-reference-list a{border-color:#2d4331;background:#0c150e}
body.sf-overhaul .sf-reference-list a:hover{border-color:#648469}
body.sf-overhaul .sf-info-list{gap:7px}
body.sf-overhaul .sf-info-list>div{border-color:#2a3e2e;background:#0b140d}

/* Keep dynamic areas clear and roomy. */
body.sf-overhaul :where(.sf-gallery-browser-grid,.sf-community-photo-grid,.sf-community-video-grid){gap:14px}
body.sf-overhaul :where(.sf-community-main,.support-layout,.store-shell){border-radius:18px}
body.sf-overhaul .sf-member-tier img{object-fit:contain}

/* Footer cleanup. */
body.sf-overhaul .footer{border-top:1px solid #2a402e;background:#071009}
body.sf-overhaul .sf-footer-grid{gap:30px}
body.sf-overhaul .sf-footer-group a{color:#9cab98}
body.sf-overhaul .sf-footer-group a:hover{color:#e4c66f}

@media(max-width:900px){
  body.sf-overhaul .sf-profile-story,body.sf-overhaul .sf-emergency-overview{grid-template-columns:1fr}
  body.sf-overhaul .sf-overview-grid{grid-template-columns:1fr 1fr}
  body.sf-overhaul .sf-profile-related{grid-template-columns:1fr}
  body.sf-overhaul .sf-profile-gallery{grid-template-columns:1fr 1fr}
}
@media(max-width:680px){
  html{scroll-padding-top:70px}
  body.sf-overhaul .container{width:min(100% - 24px,1180px)}
  body.sf-overhaul .section{padding-block:42px}
  body.sf-overhaul .sf-overview-grid,body.sf-overhaul .sf-detail-grid,body.sf-overhaul .sf-profile-gallery{grid-template-columns:1fr}
  body.sf-overhaul .sf-overview-card .sf-overview-media{height:220px}
  body.sf-overhaul .sf-profile-gallery .sf-photo-frame,body.sf-overhaul .sf-profile-gallery .sf-photo-frame.is-portrait{height:300px}
  body.sf-overhaul .sf-profile-hero-copy h1{font-size:clamp(2.5rem,15vw,4.5rem)}
  body.sf-overhaul .sf-scurry-group-intro{grid-template-columns:1fr}
}
@media(prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  body.sf-overhaul *{scroll-behavior:auto!important;transition:none!important;animation:none!important}
}

/* 0.7.32 hub-page editorial layouts. */
body.sf-overhaul .sf-hub-intro{padding-block:clamp(42px,5vw,66px);border-bottom:1px solid var(--sf-line-soft);background:linear-gradient(180deg,rgba(14,24,16,.72),rgba(9,16,11,.2))}
body.sf-overhaul .sf-hub-intro-grid{display:grid;grid-template-columns:minmax(0,1.08fr) minmax(320px,.92fr);gap:clamp(24px,5vw,62px);align-items:center}
body.sf-overhaul .sf-hub-intro-copy h2{margin:5px 0 12px;font-size:clamp(1.8rem,3.5vw,3rem);line-height:1.02;letter-spacing:-.035em}
body.sf-overhaul .sf-hub-intro-copy p{max-width:68ch;color:var(--sf-muted)}
body.sf-overhaul .sf-hub-intro-copy p+p{margin-top:12px}
body.sf-overhaul .sf-hub-image{margin:0;overflow:hidden;border:1px solid var(--sf-line);border-radius:18px;background:#0a120c;box-shadow:0 22px 54px rgba(0,0,0,.22)}
body.sf-overhaul .sf-hub-image img{display:block;width:100%;height:clamp(280px,32vw,430px);object-fit:contain;object-position:center;background:#0a120c}
body.sf-overhaul .sf-hub-image figcaption{display:flex;flex-wrap:wrap;justify-content:space-between;gap:8px;padding:10px 13px;border-top:1px solid var(--sf-line-soft);color:#879783;font-size:.66rem;line-height:1.45}
body.sf-overhaul .sf-hub-image figcaption a{color:#adbea6;text-decoration:none}
body.sf-overhaul .sf-hub-image figcaption a:hover{color:#e3c669}

body.sf-overhaul .sf-fact-visual-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin-top:24px}
body.sf-overhaul .sf-fact-visual{margin:0;overflow:hidden;border:1px solid var(--sf-line);border-radius:15px;background:#0c150e}
body.sf-overhaul .sf-fact-visual img{display:block;width:100%;height:260px;object-fit:contain;background:#09110b}
body.sf-overhaul .sf-fact-visual figcaption{padding:13px 14px;color:var(--sf-muted);font-size:.76rem}
body.sf-overhaul .sf-fact-visual figcaption strong{display:block;margin-bottom:4px;color:#edf0e8;font-size:.88rem}
body.sf-overhaul .sf-fact-visual figcaption a{color:#a9bea2;text-decoration:none}

body.sf-overhaul .sf-explain-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
body.sf-overhaul .sf-explain-card{padding:19px;border:1px solid var(--sf-line);border-radius:14px;background:#0e1710}
body.sf-overhaul .sf-explain-card span{display:inline-flex;margin-bottom:8px;color:var(--sf-gold);font-size:.61rem;font-weight:900;letter-spacing:.12em}
body.sf-overhaul .sf-explain-card h3{margin:0 0 7px;font-size:1.08rem}
body.sf-overhaul .sf-explain-card p{margin:0;color:var(--sf-muted);font-size:.82rem}
body.sf-overhaul .sf-explain-card a{display:inline-block;margin-top:12px;color:#c6dabd;text-decoration:none;font-size:.76rem;font-weight:800}

body.sf-overhaul .sf-gallery-context{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
body.sf-overhaul .sf-gallery-context article{padding:20px;border:1px solid var(--sf-line);border-radius:15px;background:#0e1710}
body.sf-overhaul .sf-gallery-context h3{margin:4px 0 8px;font-size:1.16rem}
body.sf-overhaul .sf-gallery-context p{margin:0;color:var(--sf-muted);font-size:.84rem}
body.sf-overhaul .sf-gallery-context a{display:inline-block;margin-top:13px;color:#c6dabd;text-decoration:none;font-size:.76rem;font-weight:800}

body.sf-overhaul .sf-community-paths{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
body.sf-overhaul .sf-community-path{display:grid;grid-template-rows:auto 1fr auto;gap:8px;padding:21px;border:1px solid var(--sf-line);border-radius:15px;background:#0e1710;color:inherit;text-decoration:none}
body.sf-overhaul .sf-community-path:hover{transform:translateY(-2px);border-color:#628266}
body.sf-overhaul .sf-community-path span{color:var(--sf-gold);font-size:.62rem;font-weight:900;letter-spacing:.12em}
body.sf-overhaul .sf-community-path h3{margin:0;font-size:1.2rem}
body.sf-overhaul .sf-community-path p{margin:0;color:var(--sf-muted);font-size:.83rem}
body.sf-overhaul .sf-community-path b{color:#c7dabc;font-size:.76rem}

body.sf-overhaul .sf-store-assurance{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-top:24px}
body.sf-overhaul .sf-store-assurance article{padding:17px 18px;border:1px solid var(--sf-line-soft);border-radius:13px;background:#0b140d}
body.sf-overhaul .sf-store-assurance strong{display:block;margin-bottom:5px;color:#edf0e8;font-size:.9rem}
body.sf-overhaul .sf-store-assurance span{color:var(--sf-muted);font-size:.76rem;line-height:1.5}

body.sf-overhaul .sf-contribute-visual{display:grid;grid-template-columns:minmax(290px,.8fr) minmax(0,1.2fr);gap:24px;align-items:center}
body.sf-overhaul .sf-contribute-visual figure{margin:0;overflow:hidden;border:1px solid var(--sf-line);border-radius:17px;background:#0a120c}
body.sf-overhaul .sf-contribute-visual img{display:block;width:100%;height:360px;object-fit:contain;background:#0a120c}
body.sf-overhaul .sf-contribute-visual figcaption{padding:9px 12px;color:#81917e;font-size:.65rem}
body.sf-overhaul .sf-contribute-visual h2{margin:5px 0 10px;font-size:clamp(1.8rem,3vw,2.7rem)}
body.sf-overhaul .sf-contribute-visual p{color:var(--sf-muted)}

body.sf-overhaul .sf-reading-card{box-shadow:0 18px 50px rgba(0,0,0,.12)}
body.sf-overhaul .sf-reading-card .sf-article-section+ .sf-article-section{margin-top:8px}
body.sf-overhaul .sf-stage-visual-card img{max-height:330px}

@media(max-width:900px){
  body.sf-overhaul .sf-hub-intro-grid,body.sf-overhaul .sf-contribute-visual{grid-template-columns:1fr}
  body.sf-overhaul .sf-explain-grid{grid-template-columns:1fr 1fr}
  body.sf-overhaul .sf-community-paths,body.sf-overhaul .sf-store-assurance{grid-template-columns:1fr 1fr}
}
@media(max-width:680px){
  body.sf-overhaul .sf-fact-visual-grid,body.sf-overhaul .sf-explain-grid,body.sf-overhaul .sf-gallery-context,body.sf-overhaul .sf-community-paths,body.sf-overhaul .sf-store-assurance{grid-template-columns:1fr}
  body.sf-overhaul .sf-hub-image img,body.sf-overhaul .sf-contribute-visual img{height:280px}
  body.sf-overhaul .sf-fact-visual img{height:240px}
}

/* Keep editorial animal photography readable too. The old theme cropped these
   aggressively with cover; the overhaul gives the complete frame priority. */
body.sf-overhaul :where(.sf-home-hero-photo,.sf-home-route-image,.sf-home-scurry-card,.sf-home-knowledge-photo,.sf-home-media-card,.sf-learn-hero-photo,.sf-guide-hero-photo){background:#0a120c!important}
body.sf-overhaul :where(.sf-home-hero-photo img,.sf-home-route-image img,.sf-home-scurry-card img,.sf-home-knowledge-photo img,.sf-home-media-card img,.sf-learn-hero-photo img,.sf-guide-hero-photo img){object-fit:contain!important;object-position:center!important;background:#0a120c}
body.sf-overhaul .sf-community-video-media img{object-fit:contain!important;object-position:center!important;background:#0a120c}


/* 0.7.33 distributed husbandry visuals */
body.sf-overhaul .sf-care-photo-break{
  margin:clamp(28px,4vw,46px) 0;
  padding:clamp(18px,2.5vw,28px);
  border:1px solid var(--sf-line);
  border-radius:18px;
  background:linear-gradient(145deg,rgba(21,43,25,.92),rgba(9,20,12,.96));
  box-shadow:0 18px 46px rgba(0,0,0,.16)
}
body.sf-overhaul .sf-care-photo-break-head{max-width:840px;margin-bottom:16px}
body.sf-overhaul .sf-care-photo-break-head>span{color:var(--sf-gold);font-size:.62rem;font-weight:900;letter-spacing:.12em}
body.sf-overhaul .sf-care-photo-break-head h2{margin:5px 0 7px;font-size:clamp(1.3rem,2.5vw,1.85rem)}
body.sf-overhaul .sf-care-photo-break-head p{margin:0;color:var(--sf-muted);font-size:.88rem}
body.sf-overhaul .sf-care-photo-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
body.sf-overhaul .sf-care-photo-card{margin:0;overflow:hidden;border:1px solid #355239;border-radius:14px;background:#0b140d}
body.sf-overhaul .sf-care-photo-card>a{display:block;height:clamp(190px,24vw,285px);background:#08110a}
body.sf-overhaul .sf-care-photo-card img{display:block;width:100%;height:100%;object-fit:contain;object-position:center;background:#08110a}
body.sf-overhaul .sf-care-photo-card figcaption{display:grid;gap:5px;padding:13px 14px 15px}
body.sf-overhaul .sf-care-photo-card figcaption em{width:max-content;padding:3px 6px;border:1px solid #49684c;border-radius:999px;color:#b7d0aa;font-size:.53rem;font-style:normal;font-weight:900;letter-spacing:.08em}
body.sf-overhaul .sf-care-photo-card figcaption strong{font-size:.93rem}
body.sf-overhaul .sf-care-photo-card figcaption span{color:#b8c4b3;font-size:.78rem;line-height:1.45}
body.sf-overhaul .sf-care-photo-card figcaption small{color:#83947f;font-size:.59rem;line-height:1.35}
body.sf-overhaul .sf-care-opening-visuals{margin-bottom:34px}
body.sf-overhaul .sf-care-opening-visuals .sf-stage-visual-card img{object-fit:contain!important}
@media(max-width:760px){
  body.sf-overhaul .sf-care-photo-grid{grid-template-columns:1fr}
  body.sf-overhaul .sf-care-photo-card>a{height:220px}
}

/* 0.7.33 — distributed species-profile visual context */
body.sf-overhaul .sf-species-visual-break{
  margin:clamp(1.35rem,3vw,2.4rem) 0;
  padding:clamp(1rem,2.4vw,1.45rem);
  border:1px solid rgba(128,178,112,.38);
  border-radius:18px;
  background:linear-gradient(180deg,rgba(13,31,18,.92),rgba(9,22,13,.84));
}
body.sf-overhaul .sf-species-visual-break-head{margin-bottom:.9rem}
body.sf-overhaul .sf-species-visual-break-head>span{
  display:block;margin-bottom:.24rem;color:#b9d99f;font-size:.72rem;font-weight:850;
  letter-spacing:.13em;text-transform:uppercase;
}
body.sf-overhaul .sf-species-visual-break-head h2{margin:.1rem 0 .38rem;font-size:clamp(1.25rem,2.3vw,1.65rem)}
body.sf-overhaul .sf-species-visual-break-head p{margin:0;max-width:78ch;color:var(--muted,#c4cfc3);line-height:1.55}
body.sf-overhaul .sf-species-context-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.85rem}
body.sf-overhaul .sf-species-context-card{
  margin:0;min-width:0;overflow:hidden;border:1px solid rgba(128,178,112,.38);border-radius:14px;
  background:rgba(5,14,8,.72);
}
body.sf-overhaul .sf-species-context-card>a{
  display:flex;align-items:center;justify-content:center;height:clamp(190px,25vw,270px);
  padding:.45rem;background:#08110a;
}
body.sf-overhaul .sf-species-context-card img{
  display:block;width:100%;height:100%;object-fit:contain;object-position:center;border-radius:9px;
}
body.sf-overhaul .sf-species-context-card figcaption{display:grid;gap:.25rem;padding:.78rem .85rem .9rem}
body.sf-overhaul .sf-species-context-card figcaption em{
  color:#b9d99f;font-style:normal;font-size:.67rem;font-weight:850;letter-spacing:.11em;text-transform:uppercase;
}
body.sf-overhaul .sf-species-context-card figcaption strong{font-size:1rem}
body.sf-overhaul .sf-species-context-card figcaption span{font-size:.84rem;line-height:1.48;color:var(--muted,#c4cfc3)}
body.sf-overhaul .sf-species-context-card figcaption small{font-size:.69rem;line-height:1.4;color:#9ead9e}
@media (max-width:700px){
  body.sf-overhaul .sf-species-context-grid{grid-template-columns:1fr}
  body.sf-overhaul .sf-species-context-card>a{height:240px}
}

/* Preserve full-photo framing when these components use layered backgrounds. */
body.sf-overhaul .sf-directory-image{
  background-size:cover,contain,contain,cover!important;
  background-repeat:no-repeat,no-repeat,no-repeat,no-repeat!important;
  background-position:center,center,center,center!important;
}
body.sf-overhaul .sf-species-photo{
  background-size:cover,contain,contain,cover!important;
  background-repeat:no-repeat,no-repeat,no-repeat,no-repeat!important;
  background-position:center,center,center,center!important;
}
body.sf-overhaul .sf-profile-photo{
  background-size:cover,contain,contain,cover!important;
  background-repeat:no-repeat,no-repeat,no-repeat,no-repeat!important;
  background-position:center,center,center,center!important;
}


/* === 0.7.34 Scurry directory, shared profile photos, and lightbox === */
body.sf-overhaul .sf-scurry-grid{
  display:grid!important;
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
  gap:14px!important;
  align-items:stretch;
}
body.sf-overhaul .sf-scurry-card{
  display:grid!important;
  grid-template-columns:clamp(118px,13vw,160px) minmax(0,1fr) 28px!important;
  align-items:stretch!important;
  min-height:132px!important;
  padding:0!important;
  border-radius:16px!important;
}
body.sf-overhaul .sf-scurry-card>div:not(.sf-scurry-thumb){
  min-width:0;
  padding:16px 14px!important;
  display:flex;
  flex-direction:column;
  justify-content:center;
  gap:4px;
}
body.sf-overhaul .sf-scurry-card>b{
  align-self:center;
  justify-self:center;
  padding-right:8px;
}
body.sf-overhaul .sf-scurry-thumb{
  min-height:132px!important;
  height:100%!important;
  width:100%!important;
  overflow:hidden!important;
  border-radius:15px 0 0 15px!important;
  display:grid!important;
  place-items:center!important;
  background:#0a120c!important;
  background-image:none!important;
}
body.sf-overhaul .sf-scurry-thumb>img{
  display:block!important;
  width:100%!important;
  height:100%!important;
  min-height:132px!important;
  object-fit:contain!important;
  background:#0a120c!important;
}
body.sf-overhaul .sf-scurry-photo-placeholder{
  width:100%;
  height:100%;
  min-height:inherit;
  display:grid;
  place-content:center;
  justify-items:center;
  gap:6px;
  padding:18px;
  text-align:center;
  color:#aebbb0;
  background:linear-gradient(145deg,#0b130d,#111c14);
}
body.sf-overhaul .sf-scurry-photo-placeholder span{
  display:grid;
  place-items:center;
  width:42px;
  height:42px;
  border:1px solid rgba(255,255,255,.18);
  border-radius:50%;
  font-size:0;
}
body.sf-overhaul .sf-scurry-photo-placeholder span::after{
  content:'Photo';
  font-size:10px;
  letter-spacing:.08em;
  text-transform:uppercase;
  opacity:.72;
}
body.sf-overhaul .sf-scurry-photo-placeholder small{font-size:11px!important;line-height:1.25!important;color:#aebbb0!important}

body.sf-overhaul .sf-profile-photo{
  position:relative!important;
  overflow:hidden!important;
  padding:0!important;
  background:#0b140d!important;
  background-image:none!important;
  min-height:clamp(340px,42vw,540px)!important;
}
body.sf-overhaul .sf-profile-photo-button{
  display:block;
  width:100%;
  height:100%;
  min-height:inherit;
  border:0;
  padding:0;
  margin:0;
  cursor:zoom-in;
  background:#0b140d;
}
body.sf-overhaul .sf-profile-photo-button:focus-visible{outline:3px solid currentColor;outline-offset:-4px}
body.sf-overhaul .sf-profile-photo-button>img{
  display:block;
  width:100%;
  height:100%;
  min-height:inherit;
  object-fit:cover;
  object-position:50% 50%;
}
body.sf-overhaul .sf-profile-photo.is-empty>.sf-scurry-photo-placeholder{min-height:inherit}
body.sf-overhaul .sf-profile-photo-label{pointer-events:none}

html.sf-lightbox-open,body.sf-lightbox-open{overflow:hidden!important}
.sf-photo-lightbox[hidden]{display:none!important}
.sf-photo-lightbox{
  position:fixed;
  inset:0;
  z-index:10000;
  display:grid;
  place-items:center;
  padding:clamp(12px,3vw,36px);
  background:rgba(0,0,0,.88);
  backdrop-filter:blur(5px);
}
.sf-photo-lightbox-panel{
  position:relative;
  width:min(96vw,1500px);
  height:min(92vh,1000px);
  display:grid;
  place-items:center;
}
.sf-photo-lightbox-image{
  display:block;
  max-width:100%;
  max-height:100%;
  width:auto;
  height:auto;
  object-fit:contain;
  border-radius:10px;
  box-shadow:0 18px 70px rgba(0,0,0,.5);
}
.sf-photo-lightbox-close{
  position:absolute;
  top:0;
  right:0;
  z-index:2;
  width:46px;
  height:46px;
  border:1px solid rgba(255,255,255,.35);
  border-radius:50%;
  font:400 30px/1 system-ui,sans-serif;
  color:#fff;
  background:rgba(0,0,0,.72);
  cursor:pointer;
}
.sf-photo-lightbox-close:hover,.sf-photo-lightbox-close:focus-visible{background:#fff;color:#000}

@media (max-width:900px){
  body.sf-overhaul .sf-scurry-grid{grid-template-columns:1fr!important}
}
@media (max-width:560px){
  body.sf-overhaul .sf-scurry-card{grid-template-columns:96px minmax(0,1fr) 24px!important;min-height:112px!important}
  body.sf-overhaul .sf-scurry-thumb,body.sf-overhaul .sf-scurry-thumb>img{min-height:112px!important}
  body.sf-overhaul .sf-scurry-card>div:not(.sf-scurry-thumb){padding:12px 10px!important}
  body.sf-overhaul .sf-scurry-photo-placeholder{padding:8px}
  body.sf-overhaul .sf-scurry-photo-placeholder span{width:34px;height:34px}
  .sf-photo-lightbox{padding:8px}
  .sf-photo-lightbox-panel{width:100%;height:94vh}
  .sf-photo-lightbox-close{width:42px;height:42px;top:6px;right:6px}
}


/* === 0.7.34 U.S. legal directory === */
.sf-law-reading-card{min-width:0}.sf-law-tools{display:grid;gap:1rem;margin:1rem 0 1.25rem;padding:1rem;border:1px solid rgba(255,255,255,.1);border-radius:18px;background:rgba(255,255,255,.025)}
.sf-law-search{display:grid;gap:.45rem;font-weight:800}.sf-law-search span{font-size:.82rem;letter-spacing:.04em;text-transform:uppercase;color:var(--sf-muted,#b7c0c9)}.sf-law-search input{width:100%;padding:.85rem 1rem;border:1px solid rgba(255,255,255,.14);border-radius:12px;background:rgba(0,0,0,.2);color:inherit;font:inherit;outline:none}.sf-law-search input:focus{border-color:rgba(238,154,49,.72);box-shadow:0 0 0 3px rgba(238,154,49,.12)}
.sf-law-filter-row{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.65rem}.sf-law-filter{display:grid;grid-template-columns:12px minmax(0,1fr);align-items:start;gap:.6rem;text-align:left;padding:.75rem;border:1px solid rgba(255,255,255,.1);border-radius:12px;background:rgba(255,255,255,.025);color:inherit;cursor:pointer}.sf-law-filter:hover,.sf-law-filter-active{border-color:rgba(238,154,49,.55);background:rgba(238,154,49,.08)}.sf-law-filter strong,.sf-law-filter small{display:block}.sf-law-filter strong{font-size:.86rem}.sf-law-filter small{margin-top:.2rem;font-size:.72rem;line-height:1.35;color:var(--sf-muted,#aeb8c2)}.sf-law-dot{width:9px;height:9px;border-radius:50%;margin-top:.25rem;background:#8b96a0}.sf-law-dot-allowed{background:#79b88b}.sf-law-dot-permit{background:#7aa7d8}.sf-law-dot-species{background:#c6a85a}.sf-law-dot-restricted{background:#d08a5e}.sf-law-dot-prohibited{background:#c96b6b}
.sf-law-result-line{display:flex;align-items:center;gap:.35rem;font-size:.9rem;color:var(--sf-muted,#b7c0c9)}.sf-law-result-line button{margin-left:auto;border:0;background:none;color:#f2a54a;text-decoration:underline;cursor:pointer;font:inherit}
.sf-law-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1rem}.sf-law-state{display:flex;flex-direction:column;min-width:0;padding:1rem;border:1px solid rgba(255,255,255,.1);border-radius:16px;background:rgba(255,255,255,.025)}.sf-law-state[hidden]{display:none}.sf-law-state-head{display:flex;align-items:flex-start;justify-content:space-between;gap:.75rem;padding-bottom:.8rem;border-bottom:1px solid rgba(255,255,255,.08)}.sf-law-state-head h3{margin:0;font-size:1.18rem;line-height:1.15}.sf-law-badge{display:inline-flex;max-width:58%;padding:.35rem .55rem;border-radius:999px;font-size:.68rem;font-weight:900;line-height:1.2;text-align:center;text-transform:uppercase;letter-spacing:.035em;border:1px solid currentColor}.sf-law-badge-allowed{color:#9ad5aa;background:rgba(85,150,103,.1)}.sf-law-badge-permit{color:#9fc2e7;background:rgba(72,125,176,.11)}.sf-law-badge-species{color:#ddc47d;background:rgba(167,133,45,.12)}.sf-law-badge-restricted{color:#e0a57d;background:rgba(176,100,54,.12)}.sf-law-badge-prohibited{color:#e29a9a;background:rgba(174,68,68,.12)}
.sf-law-state-body{display:grid;gap:.8rem;padding:.85rem 0}.sf-law-state-body strong,.sf-law-sources>strong{display:block;margin-bottom:.25rem;font-size:.75rem;text-transform:uppercase;letter-spacing:.05em;color:#eeb166}.sf-law-state-body p{margin:0;font-size:.92rem;line-height:1.55}.sf-law-sources{margin-top:auto;padding-top:.7rem;border-top:1px solid rgba(255,255,255,.08)}.sf-law-sources a{display:block;margin-top:.35rem;overflow-wrap:anywhere;font-size:.82rem;line-height:1.35}.sf-law-empty{padding:2rem;text-align:center;border:1px dashed rgba(255,255,255,.16);border-radius:16px}.sf-law-empty p{margin:.35rem 0 0}.sf-law-concepts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.8rem}.sf-law-concepts>div{padding:.9rem;border:1px solid rgba(255,255,255,.09);border-radius:14px;background:rgba(255,255,255,.02)}.sf-law-concepts strong{color:#efb267}.sf-law-concepts p{margin:.3rem 0 0;font-size:.9rem;line-height:1.5}
@media (max-width:1050px){.sf-law-filter-row{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width:820px){.sf-law-grid,.sf-law-concepts{grid-template-columns:1fr}.sf-law-filter-row{grid-template-columns:1fr 1fr}.sf-law-state-head{display:grid}.sf-law-badge{max-width:100%;width:max-content}}
@media (max-width:520px){.sf-law-filter-row{grid-template-columns:1fr}.sf-law-tools{padding:.8rem}.sf-law-state{padding:.85rem}.sf-law-result-line{align-items:flex-start;flex-wrap:wrap}.sf-law-result-line button{margin-left:0;width:100%;text-align:left}}

/* === 0.7.37 live Gallery Scurry photos + uniform square directory thumbnails === */
body.sf-overhaul .sf-scurry-card{
  --sf-scurry-square:clamp(128px,11vw,150px);
  grid-template-columns:var(--sf-scurry-square) minmax(0,1fr) 28px!important;
  min-height:var(--sf-scurry-square)!important;
  height:var(--sf-scurry-square)!important;
}
body.sf-overhaul .sf-scurry-thumb{
  width:var(--sf-scurry-square)!important;
  height:var(--sf-scurry-square)!important;
  min-height:0!important;
  aspect-ratio:1 / 1!important;
  align-self:center!important;
}
body.sf-overhaul .sf-scurry-thumb>img{
  width:100%!important;
  height:100%!important;
  min-height:0!important;
  aspect-ratio:1 / 1!important;
  object-fit:cover!important;
}
body.sf-overhaul .sf-scurry-thumb>.sf-scurry-photo-placeholder{
  width:100%!important;
  height:100%!important;
  min-height:0!important;
  aspect-ratio:1 / 1!important;
}
@media (max-width:900px){
  body.sf-overhaul .sf-scurry-card{--sf-scurry-square:140px}
}
@media (max-width:560px){
  body.sf-overhaul .sf-scurry-card{
    --sf-scurry-square:112px;
    grid-template-columns:var(--sf-scurry-square) minmax(0,1fr) 24px!important;
    min-height:var(--sf-scurry-square)!important;
    height:var(--sf-scurry-square)!important;
  }
}

/* === 0.7.38 Scurry profile cleanup === */
body.sf-overhaul .sf-scurry-photo-note,
body.sf-overhaul .sf-profile-photo-label{display:none!important}


/* === 0.7.40 front-page hero collage refinement === */
body.sf-overhaul .sf-home-portal-hero-grid{
  display:grid!important;
  grid-template-columns:minmax(0,1fr) minmax(500px,620px)!important;
  column-gap:clamp(64px,6vw,112px)!important;
  align-items:center!important;
}
body.sf-overhaul .sf-home-portal-copy{
  min-width:0!important;
}
body.sf-overhaul .sf-home-hero-gallery{
  display:grid!important;
  grid-template-columns:minmax(0,1.8fr) minmax(170px,.8fr)!important;
  grid-template-rows:repeat(2,minmax(0,1fr))!important;
  gap:14px!important;
  width:100%!important;
  height:clamp(470px,36vw,560px)!important;
  min-width:0!important;
}
body.sf-overhaul .sf-home-hero-photo{
  position:relative!important;
  min-width:0!important;
  min-height:0!important;
  width:100%!important;
  height:100%!important;
  overflow:hidden!important;
  border-radius:16px!important;
  background:#0a120c!important;
}
body.sf-overhaul .sf-home-hero-photo-scurry{
  grid-column:1!important;
  grid-row:1!important;
}
body.sf-overhaul .sf-home-hero-photo-profile{
  grid-column:1!important;
  grid-row:2!important;
}
body.sf-overhaul .sf-home-hero-photo-gallery{
  grid-column:2!important;
  grid-row:1 / span 2!important;
}
body.sf-overhaul .sf-home-hero-photo>img{
  display:block!important;
  width:100%!important;
  height:100%!important;
  object-fit:cover!important;
  object-position:center!important;
  background:#0a120c!important;
}
@media (max-width:1180px){
  body.sf-overhaul .sf-home-portal-hero-grid{
    grid-template-columns:minmax(0,1fr) minmax(440px,520px)!important;
    column-gap:clamp(38px,4vw,64px)!important;
  }
  body.sf-overhaul .sf-home-hero-gallery{height:500px!important}
}
@media (max-width:900px){
  body.sf-overhaul .sf-home-portal-hero-grid{
    grid-template-columns:1fr!important;
    gap:38px!important;
  }
  body.sf-overhaul .sf-home-hero-gallery{
    width:min(100%,680px)!important;
    height:520px!important;
    margin-inline:auto!important;
  }
}
@media (max-width:620px){
  body.sf-overhaul .sf-home-hero-gallery{
    grid-template-columns:1fr!important;
    grid-template-rows:none!important;
    height:auto!important;
    gap:12px!important;
  }
  body.sf-overhaul .sf-home-hero-photo-scurry,
  body.sf-overhaul .sf-home-hero-photo-profile{
    grid-column:1!important;
    grid-row:auto!important;
    aspect-ratio:16 / 9!important;
  }
  body.sf-overhaul .sf-home-hero-photo-gallery{
    grid-column:1!important;
    grid-row:auto!important;
    width:min(76vw,360px)!important;
    justify-self:center!important;
    aspect-ratio:4 / 5!important;
  }
}

/* =====================================================================
   0.9.43 — CONTENT-FIRST INNER PAGE TOPS
   Keep the Home page expressive, but stop normal hub pages from spending
   most of the first viewport on breadcrumb/marketing/introduction layers.
   ===================================================================== */
body.sf-overhaul main > .sf-subhero,
body.sf-overhaul main > .sf-gallery-hero{
  min-height:0!important;
  padding-block:26px 22px!important;
}
body.sf-overhaul main > .sf-subhero .breadcrumb,
body.sf-overhaul main > .sf-gallery-hero .breadcrumb{
  display:none!important;
}
body.sf-overhaul main > .sf-subhero h1,
body.sf-overhaul main > .sf-gallery-hero h1{
  margin:.18rem 0 .45rem!important;
  font-size:clamp(2.45rem,5.2vw,4.65rem)!important;
  line-height:.92!important;
  letter-spacing:-.045em!important;
}
body.sf-overhaul main > .sf-subhero .lead,
body.sf-overhaul main > .sf-gallery-hero .lead{
  max-width:850px!important;
  margin:0!important;
  font-size:clamp(.9rem,1.35vw,1.04rem)!important;
  line-height:1.5!important;
}
/* Learn/Guide used full photography showcases before the first actionable
   content. The photos remain throughout those pages; the opening showcase is
   removed so the directory/path choices arrive immediately. */
body.sf-overhaul.sf-learn-home .sf-learn-hero-grid,
body.sf-overhaul.sf-guide-home .sf-guide-hero-grid{
  display:block!important;
}
body.sf-overhaul.sf-learn-home .sf-learn-hero-showcase,
body.sf-overhaul.sf-guide-home .sf-guide-hero-showcase{
  display:none!important;
}
body.sf-overhaul.sf-learn-home .sf-learn-hero-actions,
body.sf-overhaul.sf-guide-home .sf-guide-hero-actions{
  margin-top:15px!important;
}
/* Gallery overview stats are useful later, but not worth a second column in
   the opening viewport. */
body.sf-overhaul .sf-gallery-hero-grid{grid-template-columns:1fr!important;gap:0!important}
body.sf-overhaul .sf-gallery-hero-stats{display:none!important}
/* The old hub-intro blocks repeated what the hero already said and delayed
   videos/community content. Hide that duplicate editorial layer. */
body.sf-overhaul main > .sf-hub-intro{display:none!important}
/* Keep jump navigation because it is useful, just make it a small utility bar. */
body.sf-overhaul .sf-flow-strip-wrap{box-shadow:none!important}
body.sf-overhaul .sf-flow-strip{min-height:42px!important;padding-block:6px!important;gap:6px!important}
body.sf-overhaul .sf-flow-strip>span{font-size:.58rem!important}
body.sf-overhaul .sf-flow-strip a{padding:6px 10px!important;font-size:.66rem!important}

@media(max-width:680px){
  body.sf-overhaul main > .sf-subhero,
  body.sf-overhaul main > .sf-gallery-hero{padding-block:20px 17px!important}
  body.sf-overhaul main > .sf-subhero h1,
  body.sf-overhaul main > .sf-gallery-hero h1{font-size:clamp(2.15rem,13vw,3.4rem)!important}
  body.sf-overhaul .sf-flow-strip{overflow-x:auto!important;flex-wrap:nowrap!important;justify-content:flex-start!important;scrollbar-width:none}
  body.sf-overhaul .sf-flow-strip::-webkit-scrollbar{display:none}
  body.sf-overhaul .sf-flow-strip a,body.sf-overhaul .sf-flow-strip>span{white-space:nowrap}
}

/* =====================================================================
   0.9.44 — SITE-WIDE CONTENT-FIRST TOPS
   Apply the compact treatment to every normal SQRLFather page, including
   Home and individual profile/species pages. The first viewport should show
   the page purpose and useful actions, then immediately move into content.
   ===================================================================== */
body.sf-overhaul main > :where(
  .sf-home-portal-hero,
  .sf-subhero,
  .sf-subhero-clean,
  .sf-gallery-hero,
  .sf-profile-hero,
  .sf-species-hero
){
  min-height:0!important;
  padding-block:22px 18px!important;
}

body.sf-overhaul main > :where(
  .sf-home-portal-hero,
  .sf-subhero,
  .sf-subhero-clean,
  .sf-gallery-hero,
  .sf-profile-hero,
  .sf-species-hero
) :where(.breadcrumb){display:none!important}

body.sf-overhaul main > :where(
  .sf-home-portal-hero,
  .sf-subhero,
  .sf-subhero-clean,
  .sf-gallery-hero,
  .sf-profile-hero,
  .sf-species-hero
) :where(.sf-v3-kicker,.eyebrow,.sf-mini-kicker){
  margin:0 0 6px!important;
  font-size:.62rem!important;
  letter-spacing:.11em!important;
}

body.sf-overhaul main > :where(
  .sf-home-portal-hero,
  .sf-subhero,
  .sf-subhero-clean,
  .sf-gallery-hero,
  .sf-profile-hero,
  .sf-species-hero
) h1{
  margin:.12rem 0 .42rem!important;
  font-size:clamp(2.15rem,4.8vw,3.75rem)!important;
  line-height:.94!important;
  letter-spacing:-.04em!important;
}

body.sf-overhaul main > :where(
  .sf-home-portal-hero,
  .sf-subhero,
  .sf-subhero-clean,
  .sf-gallery-hero,
  .sf-profile-hero,
  .sf-species-hero
) :where(.lead,.sf-home-portal-lead,.sf-profile-intro,.sf-species-intro){
  max-width:900px!important;
  margin:0!important;
  font-size:clamp(.88rem,1.2vw,1rem)!important;
  line-height:1.48!important;
}

/* Remove the large decorative/summary half of top heroes. The same images,
   profile facts and status details still exist in the actual page content. */
body.sf-overhaul main > .sf-home-portal-hero .sf-home-portal-hero-grid,
body.sf-overhaul main > .sf-profile-hero .sf-profile-hero-grid,
body.sf-overhaul main > .sf-species-hero .sf-species-hero-grid,
body.sf-overhaul main > .sf-learn-hero .sf-learn-hero-grid,
body.sf-overhaul main > .sf-guide-hero .sf-guide-hero-grid,
body.sf-overhaul main > .sf-gallery-hero .sf-gallery-hero-grid{
  display:block!important;
  padding-top:0!important;
  padding-bottom:0!important;
  gap:0!important;
}
body.sf-overhaul main > .sf-home-portal-hero .sf-home-hero-gallery,
body.sf-overhaul main > .sf-home-portal-hero .sf-home-portal-proof,
body.sf-overhaul main > .sf-profile-hero .sf-profile-photo,
body.sf-overhaul main > .sf-species-hero .sf-species-photo,
body.sf-overhaul main > .sf-learn-hero .sf-learn-hero-showcase,
body.sf-overhaul main > .sf-guide-hero .sf-guide-hero-showcase,
body.sf-overhaul main > .sf-gallery-hero .sf-gallery-hero-stats,
body.sf-overhaul main > .sf-rescue-front-hero .sf-rescue-hero-secondary{
  display:none!important;
}

body.sf-overhaul main > :where(.sf-home-portal-hero,.sf-profile-hero,.sf-species-hero,.sf-subhero,.sf-subhero-clean,.sf-gallery-hero) :where(.sf-actions,.sf-home-portal-actions,.sf-learn-hero-actions,.sf-guide-hero-actions,.sf-rescue-hero-actions){
  margin-top:12px!important;
  gap:8px!important;
}

/* Avoid replacing a giant hero with a giant blank transition before content. */
body.sf-overhaul main > :where(.sf-home-portal-hero,.sf-profile-hero,.sf-species-hero,.sf-subhero,.sf-subhero-clean,.sf-gallery-hero) + .section,
body.sf-overhaul main > :where(.sf-home-portal-hero,.sf-profile-hero,.sf-species-hero,.sf-subhero,.sf-subhero-clean,.sf-gallery-hero) + .sf-flow-strip-wrap + .section{
  padding-top:28px!important;
}

/* Any legacy top-level duplicate intro that survives on an older page should
   not become a second hero immediately after the compact header. */
body.sf-overhaul main > :where(.sf-hub-intro,.sf-visual-intro){display:none!important}

@media(max-width:680px){
  body.sf-overhaul main > :where(.sf-home-portal-hero,.sf-subhero,.sf-subhero-clean,.sf-gallery-hero,.sf-profile-hero,.sf-species-hero){
    padding-block:17px 14px!important;
  }
  body.sf-overhaul main > :where(.sf-home-portal-hero,.sf-subhero,.sf-subhero-clean,.sf-gallery-hero,.sf-profile-hero,.sf-species-hero) h1{
    font-size:clamp(2rem,11vw,3rem)!important;
  }
}

/* =====================================================================
   0.9.58 — SQRLFATHER SITE-WIDE UI QA
   Normal wildlife pages: no clipped grids, floating controls or long-text spill.
   ===================================================================== */
body.sf-overhaul{max-width:100%;overflow-x:clip}
body.sf-overhaul :where(main,section,article,aside,nav,header,footer,div,form,fieldset,details,summary){min-width:0}
body.sf-overhaul :where(img,picture,video,svg,canvas,iframe){max-width:100%}
body.sf-overhaul :where(input,select,textarea,button,.button,.sf-primary,.sf-secondary){min-width:0;max-width:100%}
body.sf-overhaul :where(button,.button,.sf-primary,.sf-secondary){white-space:normal;overflow-wrap:anywhere;text-align:center;line-height:1.25}
body.sf-overhaul :where(h1,h2,h3,p,li,dd,dt,small,strong,label,.lead){overflow-wrap:anywhere}
body.sf-overhaul :where(.grid,.hero-grid,.section-head,.sf-section-head,.sf-profile-story,.sf-profile-hero-grid,.sf-species-hero-grid,.sf-directory-grid,.sf-learn-grid,.sf-guide-grid,.sf-community-grid)>*{min-width:0}
body.sf-overhaul .table-wrap{max-width:100%;overflow:auto;scrollbar-gutter:stable}
body.sf-overhaul .nav.open{max-height:calc(100dvh - 78px);overflow:auto;overscroll-behavior:contain}
body.sf-overhaul .sf-flow-strip{max-width:100%}
body.sf-overhaul .sf-flow-strip a{min-width:0}
@media(max-width:760px){
  body.sf-overhaul .container{width:min(100% - 24px,1180px)}
  body.sf-overhaul :where(.section-head,.sf-section-head){align-items:flex-start!important;grid-template-columns:1fr!important}
  body.sf-overhaul :where(.actions,.sf-actions,.sf-home-portal-actions,.sf-learn-hero-actions,.sf-guide-hero-actions,.sf-rescue-hero-actions){align-items:stretch;flex-wrap:wrap}
  body.sf-overhaul :where(.actions,.sf-actions,.sf-home-portal-actions,.sf-learn-hero-actions,.sf-guide-hero-actions,.sf-rescue-hero-actions)>*{max-width:100%}
}
@supports not (overflow:clip){body.sf-overhaul{overflow-x:hidden}}

/* =====================================================================
   0.9.59 — FINAL SQRLFATHER UI POLISH + DETAIL HERO RESTORE
   Learn, Guide, Scurry profiles and species profiles are detail-first pages.
   Restore their photography, identity information and breadcrumbs that the
   earlier content-first pass hid. Generic hub pages remain compact.
   ===================================================================== */
body.sf-overhaul :where(h1,h2,h3,h4,h5,h6,label,strong,small,button,.button,.sf-primary,.sf-secondary){
  overflow-wrap:normal!important;word-break:normal!important;hyphens:none!important;
}
body.sf-overhaul :where(p,li,dd,dt,a){overflow-wrap:break-word;word-break:normal}
body.sf-overhaul :where(code,pre,.code,.sf-code){overflow-wrap:anywhere!important;word-break:break-word!important}
body.sf-overhaul :where(button,.button,.sf-primary,.sf-secondary){overflow-wrap:normal!important;word-break:normal!important}

/* Learn and Guide landing pages: restore the full photographic split hero. */
body.sf-overhaul.sf-learn-home main>.sf-learn-hero,
body.sf-overhaul.sf-guide-home main>.sf-guide-hero{
  min-height:0!important;
  padding:32px 0 34px!important;
}
body.sf-overhaul.sf-learn-home main>.sf-learn-hero .breadcrumb,
body.sf-overhaul.sf-guide-home main>.sf-guide-hero .breadcrumb{display:block!important;margin-bottom:12px!important}
body.sf-overhaul.sf-learn-home main>.sf-learn-hero .sf-learn-hero-grid,
body.sf-overhaul.sf-guide-home main>.sf-guide-hero .sf-guide-hero-grid{
  display:grid!important;
  grid-template-columns:minmax(0,.9fr) minmax(390px,1.1fr)!important;
  gap:clamp(24px,3vw,38px)!important;
  align-items:center!important;
  padding-top:0!important;padding-bottom:0!important;
}
body.sf-overhaul.sf-learn-home main>.sf-learn-hero .sf-learn-hero-showcase,
body.sf-overhaul.sf-guide-home main>.sf-guide-hero .sf-guide-hero-showcase{display:grid!important}
body.sf-overhaul.sf-learn-home main>.sf-learn-hero h1,
body.sf-overhaul.sf-guide-home main>.sf-guide-hero h1{
  margin:.25rem 0 .55rem!important;font-size:clamp(3.4rem,6.1vw,6.5rem)!important;line-height:.86!important;letter-spacing:-.065em!important;
}
body.sf-overhaul.sf-learn-home main>.sf-learn-hero .lead,
body.sf-overhaul.sf-guide-home main>.sf-guide-hero .lead{
  max-width:760px!important;margin:0!important;font-size:clamp(1rem,1.35vw,1.25rem)!important;line-height:1.55!important;
}
body.sf-overhaul.sf-learn-home main>.sf-learn-hero .sf-learn-hero-actions,
body.sf-overhaul.sf-guide-home main>.sf-guide-hero .sf-guide-hero-actions{margin-top:22px!important;gap:10px!important}

/* Individual Scurry profiles: the portrait and identity block are primary
   content, not decoration. */
body.sf-overhaul main>.sf-profile-hero{
  min-height:0!important;padding-block:clamp(38px,5vw,68px)!important;
}
body.sf-overhaul main>.sf-profile-hero .breadcrumb{display:block!important;margin-bottom:12px!important}
body.sf-overhaul main>.sf-profile-hero .sf-profile-hero-grid{
  display:grid!important;grid-template-columns:minmax(0,1.03fr) minmax(340px,.97fr)!important;
  gap:clamp(28px,5vw,70px)!important;align-items:center!important;padding:0!important;
}
body.sf-overhaul main>.sf-profile-hero .sf-profile-photo{display:block!important;min-height:clamp(390px,46vw,610px)!important}
body.sf-overhaul main>.sf-profile-hero .sf-profile-hero-copy h1{
  margin:.3rem 0 .55rem!important;font-size:clamp(3rem,7vw,6.2rem)!important;line-height:.9!important;letter-spacing:-.055em!important;
}
body.sf-overhaul main>.sf-profile-hero .sf-profile-intro{max-width:650px!important;margin:0!important;font-size:1rem!important;line-height:1.6!important}
body.sf-overhaul main>.sf-profile-hero .sf-actions{margin-top:22px!important;gap:10px!important}
body.sf-overhaul .sf-profile-quick{grid-template-columns:repeat(auto-fit,minmax(170px,1fr))!important}

/* Species profiles: restore reference photograph, taxonomy identity and the
   larger profile heading. */
body.sf-overhaul main>.sf-species-hero{min-height:0!important;padding:0!important}
body.sf-overhaul main>.sf-species-hero .breadcrumb{display:block!important;margin-bottom:12px!important}
body.sf-overhaul main>.sf-species-hero .sf-species-hero-grid{
  display:grid!important;grid-template-columns:minmax(0,1.05fr) minmax(340px,.95fr)!important;
  gap:clamp(28px,4vw,50px)!important;align-items:center!important;padding-top:52px!important;padding-bottom:52px!important;
}
body.sf-overhaul main>.sf-species-hero .sf-species-photo{display:block!important;min-height:clamp(390px,44vw,560px)!important}
body.sf-overhaul main>.sf-species-hero h1{
  margin:.55rem 0 .4rem!important;font-size:clamp(3rem,6vw,5.7rem)!important;line-height:.92!important;letter-spacing:-.06em!important;
}
body.sf-overhaul main>.sf-species-hero .sf-scientific{font-size:1rem!important}
body.sf-overhaul main>.sf-species-hero .sf-species-badges{margin-top:18px!important}
body.sf-overhaul main>.sf-species-hero .sf-text-link{margin-top:24px!important}

/* Long-form Learn and Guide reference pages keep their breadcrumb and a
   substantial readable intro instead of a tiny generic header. */
body.sf-overhaul main>.sf-subhero.sf-long-hero,
body.sf-overhaul main>.sf-subhero.sf-directory-hero{
  padding-block:clamp(34px,5vw,58px) clamp(26px,4vw,44px)!important;
}
body.sf-overhaul main>.sf-subhero.sf-long-hero .breadcrumb,
body.sf-overhaul main>.sf-subhero.sf-directory-hero .breadcrumb{display:block!important;margin-bottom:12px!important}
body.sf-overhaul main>.sf-subhero.sf-long-hero h1,
body.sf-overhaul main>.sf-subhero.sf-directory-hero h1{
  font-size:clamp(2.8rem,5.8vw,5rem)!important;line-height:.92!important;margin:.2rem 0 .65rem!important;
}
body.sf-overhaul main>.sf-subhero.sf-long-hero .lead,
body.sf-overhaul main>.sf-subhero.sf-directory-hero .lead{font-size:clamp(.98rem,1.4vw,1.14rem)!important;line-height:1.58!important;max-width:900px!important}

/* Shared wildlife grid/card safety without breaking normal words into letters. */
body.sf-overhaul :where(.sf-profile-story,.sf-profile-related,.sf-profile-quick,.sf-species-stats,.sf-species-content,.sf-two-up,.sf-detail-grid,.sf-learn-species-grid,.sf-learn-topic-grid,.sf-guide-path-grid,.sf-guide-animal-grid,.sf-directory-grid)>*{min-width:0}
body.sf-overhaul :where(.sf-profile-story,.sf-species-content,.sf-kb-layout){max-width:100%}
body.sf-overhaul :where(.sf-actions,.sf-learn-hero-actions,.sf-guide-hero-actions,.sf-page-jump){flex-wrap:wrap!important}
body.sf-overhaul :where(.sf-actions,.sf-learn-hero-actions,.sf-guide-hero-actions,.sf-page-jump)>*{min-width:0;max-width:100%}

@media(max-width:900px){
  body.sf-overhaul.sf-learn-home main>.sf-learn-hero .sf-learn-hero-grid,
  body.sf-overhaul.sf-guide-home main>.sf-guide-hero .sf-guide-hero-grid,
  body.sf-overhaul main>.sf-profile-hero .sf-profile-hero-grid,
  body.sf-overhaul main>.sf-species-hero .sf-species-hero-grid{grid-template-columns:1fr!important}
  body.sf-overhaul.sf-learn-home main>.sf-learn-hero .sf-learn-hero-showcase,
  body.sf-overhaul.sf-guide-home main>.sf-guide-hero .sf-guide-hero-showcase{min-height:320px!important}
  body.sf-overhaul main>.sf-profile-hero .sf-profile-photo,
  body.sf-overhaul main>.sf-species-hero .sf-species-photo{min-height:380px!important}
}
@media(max-width:620px){
  body.sf-overhaul.sf-learn-home main>.sf-learn-hero,
  body.sf-overhaul.sf-guide-home main>.sf-guide-hero{padding:24px 0 26px!important}
  body.sf-overhaul.sf-learn-home main>.sf-learn-hero h1,
  body.sf-overhaul.sf-guide-home main>.sf-guide-hero h1,
  body.sf-overhaul main>.sf-profile-hero .sf-profile-hero-copy h1,
  body.sf-overhaul main>.sf-species-hero h1{font-size:clamp(2.6rem,14vw,4rem)!important}
  body.sf-overhaul main>.sf-profile-hero{padding-block:28px!important}
  body.sf-overhaul main>.sf-species-hero .sf-species-hero-grid{padding-top:30px!important;padding-bottom:30px!important}
  body.sf-overhaul main>.sf-profile-hero .sf-profile-photo,
  body.sf-overhaul main>.sf-species-hero .sf-species-photo{min-height:320px!important}
}


/* 0.9.59 Guide/reference detail headers: retain context on the site's most
   information-dense care, rescue and legal pages. */
body.sf-overhaul main>.sf-subhero-clean{
  min-height:0!important;padding-block:clamp(32px,4.5vw,54px) clamp(24px,3.5vw,38px)!important;
}
body.sf-overhaul main>.sf-subhero-clean .breadcrumb{display:block!important;margin-bottom:11px!important}
body.sf-overhaul main>.sf-subhero-clean h1{
  margin:.2rem 0 .6rem!important;font-size:clamp(2.65rem,5.2vw,4.7rem)!important;line-height:.93!important;letter-spacing:-.045em!important;
}
body.sf-overhaul main>.sf-subhero-clean .lead{
  max-width:900px!important;margin:0!important;font-size:clamp(.96rem,1.35vw,1.1rem)!important;line-height:1.58!important;
}
@media(max-width:620px){
  body.sf-overhaul main>.sf-subhero-clean{padding-block:26px 22px!important}
  body.sf-overhaul main>.sf-subhero-clean h1{font-size:clamp(2.35rem,12vw,3.5rem)!important}
}

/* =====================================================================
   0.9.61 — RESTORE DETAIL HEROES / INFORMATION-FIRST REFERENCE PAGES
   The 0.9.43/0.9.44 compact-top experiment was useful on generic hubs, but
   it removed important identity/context from the pages where that material
   is part of the content itself. Restore the original rich presentation for
   Scurry profiles, Learn/reference pages, species profiles and the complete
   Rescue & Rehabilitation path. Generic non-reference pages stay compact.
   ===================================================================== */

/* ---------- THE SCURRY: INDIVIDUAL PROFILES ---------- */
body.sf-overhaul main > .sf-profile-hero{
  min-height:0!important;
  padding-block:clamp(44px,6vw,78px)!important;
  border-bottom:1px solid #3b583d!important;
  background:
    radial-gradient(circle at 82% 30%,rgba(159,202,131,.11),transparent 31%),
    linear-gradient(90deg,rgba(118,150,95,.09),transparent 47%),
    #17281b!important;
}
body.sf-overhaul main > .sf-profile-hero .breadcrumb{
  display:block!important;
  margin-bottom:12px!important;
}
body.sf-overhaul main > .sf-profile-hero .sf-profile-hero-grid{
  display:grid!important;
  grid-template-columns:minmax(0,1.03fr) minmax(360px,.97fr)!important;
  gap:clamp(26px,5vw,70px)!important;
  align-items:center!important;
  padding-top:0!important;
  padding-bottom:0!important;
}
body.sf-overhaul main > .sf-profile-hero .sf-profile-photo{
  display:block!important;
  min-height:505px!important;
}
body.sf-overhaul main > .sf-profile-hero .sf-profile-hero-copy h1{
  margin:.3rem 0 .55rem!important;
  font-size:clamp(2.8rem,7vw,6.2rem)!important;
  line-height:.9!important;
  letter-spacing:-.055em!important;
}
body.sf-overhaul main > .sf-profile-hero .sf-profile-species{
  display:block!important;
  font-size:clamp(1rem,2vw,1.3rem)!important;
  line-height:1.45!important;
  color:#cce0c4!important;
}
body.sf-overhaul main > .sf-profile-hero .sf-profile-intro{
  display:block!important;
  max-width:650px!important;
  margin:0!important;
  color:#bcc9b8!important;
  font-size:1rem!important;
  line-height:1.6!important;
}
body.sf-overhaul main > .sf-profile-hero .sf-actions{
  display:flex!important;
  flex-wrap:wrap!important;
  margin-top:22px!important;
  gap:10px!important;
}
body.sf-overhaul .sf-profile-quick-section,
body.sf-overhaul .sf-profile-story,
body.sf-overhaul .sf-profile-related{
  display:grid;
}
body.sf-overhaul .sf-profile-quick-section{display:block}

/* ---------- LEARN LANDING: RESTORE THE PHOTOGRAPHIC SPLIT HERO ---------- */
body.sf-overhaul.sf-learn-home main > .sf-learn-hero{
  position:relative!important;
  overflow:hidden!important;
  min-height:0!important;
  padding:32px 0 34px!important;
  border-bottom:1px solid #3a573c!important;
}
body.sf-overhaul.sf-learn-home main > .sf-learn-hero .breadcrumb{
  display:block!important;
  margin-bottom:12px!important;
}
body.sf-overhaul.sf-learn-home main > .sf-learn-hero .sf-learn-hero-grid{
  display:grid!important;
  grid-template-columns:minmax(0,.9fr) minmax(430px,1.1fr)!important;
  gap:34px!important;
  align-items:center!important;
  padding-top:0!important;
  padding-bottom:0!important;
}
body.sf-overhaul.sf-learn-home main > .sf-learn-hero .sf-learn-hero-copy{
  display:block!important;
  min-width:0!important;
}
body.sf-overhaul.sf-learn-home main > .sf-learn-hero .sf-learn-hero-showcase{
  display:grid!important;
  grid-template-columns:1.16fr .84fr!important;
  gap:10px!important;
  min-height:380px!important;
}
body.sf-overhaul.sf-learn-home main > .sf-learn-hero .sf-learn-hero-photo-stack{
  display:grid!important;
  grid-template-rows:1fr 1fr!important;
  gap:10px!important;
}
body.sf-overhaul.sf-learn-home main > .sf-learn-hero h1{
  margin:.25rem 0 .55rem!important;
  font-size:clamp(3.4rem,6.1vw,6.5rem)!important;
  line-height:.86!important;
  letter-spacing:-.065em!important;
}
body.sf-overhaul.sf-learn-home main > .sf-learn-hero .lead{
  display:block!important;
  max-width:760px!important;
  margin:0!important;
  color:#d5e1d0!important;
  font-size:clamp(1rem,1.35vw,1.25rem)!important;
  line-height:1.55!important;
}
body.sf-overhaul.sf-learn-home main > .sf-learn-hero .sf-learn-hero-actions{
  display:flex!important;
  flex-wrap:wrap!important;
  gap:10px!important;
  margin-top:22px!important;
}

/* ---------- LEARN: LONG-FORM TOPICS + DIRECTORIES ---------- */
body.sf-overhaul main > .sf-subhero.sf-long-hero,
body.sf-overhaul main > .sf-subhero.sf-directory-hero{
  position:relative!important;
  overflow:hidden!important;
  min-height:0!important;
  padding:54px 0 32px!important;
  border-bottom:1px solid #3a573c!important;
  background:
    linear-gradient(90deg,rgba(159,202,131,.10),transparent 44%),
    repeating-linear-gradient(135deg,transparent 0 30px,rgba(255,255,255,.010) 30px 31px),
    #17281b!important;
}
body.sf-overhaul main > .sf-subhero.sf-long-hero .breadcrumb,
body.sf-overhaul main > .sf-subhero.sf-directory-hero .breadcrumb{
  display:block!important;
  margin-bottom:12px!important;
}
body.sf-overhaul main > .sf-subhero.sf-long-hero h1,
body.sf-overhaul main > .sf-subhero.sf-directory-hero h1{
  max-width:980px!important;
  margin:.35rem 0 .7rem!important;
  color:#fff!important;
  font-size:clamp(2.8rem,5.5vw,5.5rem)!important;
  line-height:.9!important;
  letter-spacing:-.055em!important;
}
body.sf-overhaul main > .sf-subhero.sf-long-hero .lead,
body.sf-overhaul main > .sf-subhero.sf-directory-hero .lead{
  display:block!important;
  max-width:850px!important;
  margin:0!important;
  color:#bcc9b8!important;
  font-size:1rem!important;
  line-height:1.62!important;
}

/* ---------- LEARN: SPECIES REFERENCE PROFILES ---------- */
body.sf-overhaul main > .sf-species-hero{
  min-height:0!important;
  padding:0!important;
  border-bottom:1px solid #3b583d!important;
  background:
    radial-gradient(circle at 82% 30%,rgba(159,202,131,.11),transparent 31%),
    linear-gradient(90deg,rgba(118,150,95,.09),transparent 47%),
    #17281b!important;
}
body.sf-overhaul main > .sf-species-hero .breadcrumb{
  display:block!important;
  margin-bottom:12px!important;
}
body.sf-overhaul main > .sf-species-hero .sf-species-hero-grid{
  display:grid!important;
  grid-template-columns:minmax(0,1.05fr) minmax(360px,.95fr)!important;
  gap:42px!important;
  align-items:center!important;
  padding-top:58px!important;
  padding-bottom:58px!important;
}
body.sf-overhaul main > .sf-species-hero .sf-species-title{
  display:block!important;
  min-width:0!important;
}
body.sf-overhaul main > .sf-species-hero .sf-species-photo{
  display:block!important;
  min-height:505px!important;
}
body.sf-overhaul main > .sf-species-hero h1{
  max-width:980px!important;
  margin:.35rem 0 .7rem!important;
  color:#fff!important;
  font-size:clamp(2.8rem,5.5vw,5.5rem)!important;
  line-height:.9!important;
  letter-spacing:-.055em!important;
}
body.sf-overhaul main > .sf-species-hero .sf-scientific{display:block!important}
body.sf-overhaul main > .sf-species-hero .sf-species-badges{display:flex!important;flex-wrap:wrap!important}
body.sf-overhaul main > .sf-species-hero .sf-text-link{display:inline-block!important}

/* ---------- RESCUE: RESTORE FULL CONTEXT ON LANDING, GROUP + STAGE HEROES ---------- */
body.sf-overhaul main.sf-rescue-front > .sf-rescue-front-hero,
body.sf-overhaul main.sf-rescue-hub > .sf-rescue-hub-hero{
  position:relative!important;
  overflow:hidden!important;
  min-height:0!important;
  padding:30px 0 24px!important;
  border-bottom:1px solid #3a573c!important;
  background:
    linear-gradient(90deg,rgba(159,202,131,.10),transparent 44%),
    repeating-linear-gradient(135deg,transparent 0 30px,rgba(255,255,255,.010) 30px 31px),
    #17281b!important;
}
body.sf-overhaul main.sf-rescue-stage-page > .sf-rescue-stage-hero{
  position:relative!important;
  overflow:hidden!important;
  min-height:0!important;
  padding:32px 0 24px!important;
  border-bottom:1px solid #3a573c!important;
  background:
    linear-gradient(90deg,rgba(159,202,131,.10),transparent 44%),
    repeating-linear-gradient(135deg,transparent 0 30px,rgba(255,255,255,.010) 30px 31px),
    #17281b!important;
}
body.sf-overhaul main.sf-rescue-front > .sf-rescue-front-hero .breadcrumb,
body.sf-overhaul main.sf-rescue-hub > .sf-rescue-hub-hero .breadcrumb,
body.sf-overhaul main.sf-rescue-stage-page > .sf-rescue-stage-hero .breadcrumb{
  display:block!important;
  margin-bottom:12px!important;
}
body.sf-overhaul main.sf-rescue-front > .sf-rescue-front-hero h1,
body.sf-overhaul main.sf-rescue-hub > .sf-rescue-hub-hero h1{
  display:block!important;
  max-width:1060px!important;
  margin:.25rem 0 .55rem!important;
  color:#fff!important;
  font-size:clamp(2.15rem,3.9vw,3.75rem)!important;
  line-height:.94!important;
  letter-spacing:-.04em!important;
}
body.sf-overhaul main.sf-rescue-stage-page > .sf-rescue-stage-hero h1{
  display:block!important;
  max-width:1100px!important;
  margin:.35rem 0 .7rem!important;
  color:#fff!important;
  font-size:clamp(2rem,3.5vw,3.45rem)!important;
  line-height:.95!important;
  letter-spacing:-.04em!important;
}
body.sf-overhaul main.sf-rescue-front > .sf-rescue-front-hero .lead,
body.sf-overhaul main.sf-rescue-hub > .sf-rescue-hub-hero .lead{
  display:block!important;
  max-width:980px!important;
  margin:0!important;
  color:#bcc9b8!important;
  font-size:1rem!important;
  line-height:1.48!important;
}
body.sf-overhaul main.sf-rescue-stage-page > .sf-rescue-stage-hero .lead{
  display:block!important;
  max-width:1000px!important;
  margin:0!important;
  color:#bcc9b8!important;
  font-size:.98rem!important;
  line-height:1.48!important;
}
body.sf-overhaul main.sf-rescue-front > .sf-rescue-front-hero .sf-rescue-hero-actions,
body.sf-overhaul main.sf-rescue-hub > .sf-rescue-hub-hero .sf-rescue-hero-actions{
  display:flex!important;
  flex-wrap:wrap!important;
  gap:10px!important;
  margin-top:18px!important;
}
body.sf-overhaul main.sf-rescue-front > .sf-rescue-front-hero .sf-rescue-hero-primary,
body.sf-overhaul main.sf-rescue-front > .sf-rescue-front-hero .sf-rescue-hero-secondary,
body.sf-overhaul main.sf-rescue-hub > .sf-rescue-hub-hero .sf-rescue-hero-primary,
body.sf-overhaul main.sf-rescue-hub > .sf-rescue-hub-hero .sf-rescue-hero-secondary{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
}

/* Never suppress information-bearing intro/reference text inside these
   information-dense page families. */
body.sf-overhaul main.sf-rescue-front :where(.sf-hub-intro,.sf-visual-intro),
body.sf-overhaul main.sf-rescue-hub :where(.sf-hub-intro,.sf-visual-intro),
body.sf-overhaul main.sf-rescue-stage-page :where(.sf-hub-intro,.sf-visual-intro),
body.sf-overhaul.sf-learn-home main :where(.sf-hub-intro,.sf-visual-intro){
  display:block!important;
}

/* ---------- RESPONSIVE: KEEP THE DETAIL, STACK IT INSTEAD OF HIDING IT ---------- */
@media(max-width:950px){
  body.sf-overhaul main > .sf-profile-hero .sf-profile-hero-grid,
  body.sf-overhaul main > .sf-species-hero .sf-species-hero-grid,
  body.sf-overhaul.sf-learn-home main > .sf-learn-hero .sf-learn-hero-grid{
    grid-template-columns:1fr!important;
  }
  body.sf-overhaul main > .sf-profile-hero .sf-profile-photo,
  body.sf-overhaul main > .sf-species-hero .sf-species-photo{
    min-height:425px!important;
  }
  body.sf-overhaul.sf-learn-home main > .sf-learn-hero .sf-learn-hero-showcase{
    min-height:320px!important;
  }
}
@media(max-width:720px){
  body.sf-overhaul main > .sf-profile-hero{
    padding-block:34px!important;
  }
  body.sf-overhaul main > .sf-profile-hero .sf-profile-hero-copy h1,
  body.sf-overhaul main > .sf-species-hero h1,
  body.sf-overhaul.sf-learn-home main > .sf-learn-hero h1{
    font-size:clamp(2.5rem,14vw,4.4rem)!important;
  }
  body.sf-overhaul main > .sf-profile-hero .sf-profile-photo,
  body.sf-overhaul main > .sf-species-hero .sf-species-photo{
    min-height:395px!important;
  }
  body.sf-overhaul main > .sf-species-hero .sf-species-hero-grid{
    padding-top:36px!important;
    padding-bottom:36px!important;
  }
  body.sf-overhaul main > .sf-subhero.sf-long-hero,
  body.sf-overhaul main > .sf-subhero.sf-directory-hero{
    padding:38px 0 26px!important;
  }
  body.sf-overhaul main > .sf-subhero.sf-long-hero h1,
  body.sf-overhaul main > .sf-subhero.sf-directory-hero h1{
    font-size:clamp(2.45rem,12vw,4rem)!important;
  }
  body.sf-overhaul main.sf-rescue-front > .sf-rescue-front-hero,
  body.sf-overhaul main.sf-rescue-hub > .sf-rescue-hub-hero{
    padding:25px 0 20px!important;
  }
  body.sf-overhaul main.sf-rescue-stage-page > .sf-rescue-stage-hero{
    padding:24px 0 18px!important;
  }
}
@media(max-width:620px){
  body.sf-overhaul.sf-learn-home main > .sf-learn-hero{
    padding:24px 0 26px!important;
  }
  body.sf-overhaul.sf-learn-home main > .sf-learn-hero .sf-learn-hero-showcase{
    grid-template-columns:1fr!important;
    min-height:0!important;
  }
  body.sf-overhaul.sf-learn-home main > .sf-learn-hero .sf-learn-hero-photo-stack{
    grid-template-columns:1fr!important;
    grid-template-rows:none!important;
  }
  body.sf-overhaul main.sf-rescue-front > .sf-rescue-front-hero .sf-rescue-hero-actions > *,
  body.sf-overhaul main.sf-rescue-hub > .sf-rescue-hub-hero .sf-rescue-hero-actions > *{
    width:100%!important;
  }
}
