/* Care comes first; the same contents control is available on every profile. */
.animal-hub[data-care-first]{min-width:0;overflow-wrap:anywhere}
.animal-hub[data-care-first] :is(.mobile-hub-shortcuts a,.hub-actions>a,.species-facts>div,.species-facts dt,.species-facts dd){min-width:0;white-space:normal;overflow-wrap:anywhere}
.animal-hub[data-care-first] .guide-layout>aside{display:block;padding:0;border:0;background:transparent}
.profile-contents{min-width:0;border:1px solid var(--line);border-radius:8px;background:var(--surface)}
.profile-contents>summary{min-height:44px;padding:12px 16px;font-weight:700;line-height:1.5;cursor:pointer;overflow-wrap:anywhere}
.profile-contents>nav{display:block;padding:0 12px 12px;max-height:calc(100dvh - 140px);overflow:auto}
.animal-hub .profile-contents a{min-height:44px;padding:10px 8px;box-sizing:border-box;line-height:1.6;font-size:.875rem}
.animal-hub[data-care-first] .profile-contents a[aria-current="location"]{font-size:.875rem}
.animal-hub[data-care-first] .hub-care-block>p{max-width:68ch;line-height:1.85}
.animal-hub[data-care-first] .hub-care-block>.source-line{font-size:.8125rem;line-height:1.7;margin-top:1rem}
.profile-equipment-notes{margin:16px 0;padding:12px 16px;border:1px solid var(--line);border-radius:8px}
.profile-equipment-notes>summary{min-height:44px;line-height:1.6;cursor:pointer}
.profile-return{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin:24px 0 0}
.profile-return a{display:inline-flex;align-items:center;min-height:44px;text-decoration:underline}
.profile-contents>summary:focus-visible,.profile-equipment-notes>summary:focus-visible,.profile-return a:focus-visible{outline:3px solid var(--focus-ring,var(--ink));outline-offset:3px}
@media screen and (max-width:900px){.guide-hero{grid-template-columns:minmax(0,1fr)}}
@media screen and (max-width:700px),screen and (max-width:960px) and (max-height:500px){
 .animal-hub .species-hub-hero h1,.animal-hub .species-hub-hero .scientific{padding-right:0}
 .animal-hub[data-care-first] .guide-layout>aside{position:static;margin-bottom:16px}
 .profile-contents>nav{max-height:none}
 .animal-hub[data-care-first] .hub-care-block>p{line-height:1.8}
}
@media print{
 .animal-hub[data-care-first] .guide-layout article>section#equipment,
 .animal-hub[data-care-first] #equipment .uk-equipment,
 .animal-hub[data-care-first] #equipment .expansion-equipment-card{display:block!important}
 .animal-hub[data-care-first] .profile-return{display:none!important}
}
