/* FAUNELYA | Parc vivant V4.5 | Couche de stabilisation transversale
   Chargée après V4.0–V4.4, sans toucher à la simulation ni aux données.
   Le moteur des enclos et la carte gardent leurs règles de dimensionnement. */

body.pv450-unified{
 --pv450-green:#174a36;
 --pv450-green-deep:#0d3529;
 --pv450-text:#1d3b2f;
 --pv450-muted:#62756b;
 --pv450-line:#dce8d9;
 --pv450-white:#fffefa;
 --pv450-wash:#f4f7f0;
 --pv450-radius:21px;
 --pv450-shadow:0 9px 28px rgba(18,57,40,.055);
 --pv450-font:Georgia,'Times New Roman',serif;
 color:var(--pv450-text);
 background:#f5f7f1;
 -webkit-font-smoothing:antialiased;
}
/* One header, one sidebar, the same icon/button focus treatment everywhere. */
body.pv450-unified .az-topbar{background:rgba(255,254,250,.98);border-bottom:1px solid var(--pv450-line);color:var(--pv450-green-deep)}
body.pv450-unified .az-topbar-inner{max-width:none}
body.pv450-unified .az-brand{color:var(--pv450-green-deep)}
body.pv450-unified .az-topbar :where(a,button,summary),
body.pv450-unified .pv400-side-nav :where(a,button),
body.pv450-unified .az-mobile-nav :where(a,summary){-webkit-tap-highlight-color:transparent}
body.pv450-unified :where(a,button,input,textarea,select,summary,[role="button"]):focus-visible{
 outline:3px solid #e7af48!important;
 outline-offset:3px!important;
}
body.pv450-unified :where(button,a[role="button"],summary){cursor:pointer}
body.pv450-unified :where(input,textarea,select,button){font-family:inherit}
body.pv450-unified :where(input,select,textarea){max-width:100%;min-width:0}
body.pv450-unified:not(.zoo-map-page):not(.enclosures-page) :where(img,video,svg){max-width:100%}
body.pv450-unified :where(p,small,span,strong,b,td,th,label){overflow-wrap:break-word}
body.pv450-unified{scroll-padding-top:96px}
body.pv450-unified [id]{scroll-margin-top:108px}
body.pv450-unified .az-page{min-width:0}

/* Consistent content rhythm. These apply to ordinary content modules, not
   the positionable canvas/stage of Zoo map and Enclosures. */
body.pv450-unified.fyn-app:not(.zoo-map-page):not(.enclosures-page) .az-page > :is(section,article,nav,div.app-card){max-width:100%}
body.pv450-unified.fyn-app:not(.zoo-map-page):not(.enclosures-page) .az-page > :is(section,article,nav){margin-inline:auto}
body.pv450-unified.fyn-app:not(.zoo-map-page):not(.enclosures-page) .az-page :where(.app-card,.fyn-adoption-panel,.fyn-health-panel,.fyn-staff-panel,.fyn-buildings-panel,.fyn-events-panel){
 border-radius:var(--pv450-radius);
}
body.pv450-unified.fyn-app:not(.zoo-map-page):not(.enclosures-page) :is(.v13-enclosure-toolbar,.fyn-page-toolbar,.app-page-head,.pv440-page-hero){
 scroll-margin-top:100px;
}
body.pv450-unified .pv410-route{max-width:100%;box-sizing:border-box}
body.pv450-unified .pv410-route-links,
body.pv450-unified .pv440-section-nav{min-width:0;max-width:100%;scrollbar-width:thin;overscroll-behavior-inline:contain}
body.pv450-unified :is(.pv410-route-links,.pv440-section-nav) > a{min-height:37px;display:inline-flex;align-items:center;justify-content:center;line-height:1.25}
body.pv450-unified .az-page :where(.eyebrow,.fyn-panel-kicker,.v13-hero-badge){letter-spacing:.10em}
body.pv450-unified .az-page :where(.app-section-head,.fyn-panel-head){min-width:0;gap:12px}
body.pv450-unified .az-page :where(.app-section-head,.fyn-panel-head) > *{min-width:0}
body.pv450-unified .az-page :where(.app-section-head,.fyn-panel-head) a{white-space:normal;text-align:right}

/* Previously overridden by legacy 16px heading rules in Adoption/Animal. */
body.pv450-unified.adoption-page .fyn-page-toolbar h1,
body.pv450-unified.animal-page .fyn-animal-toolbar h1,
body.pv450-unified.animal-page .fyn-animal-toolbar-title{
 font-family:var(--pv450-font)!important;
 font-size:clamp(30px,3.2vw,47px)!important;
 font-weight:700!important;
 line-height:1.12!important;
 letter-spacing:-.025em!important;
 color:var(--pv450-green-deep)!important;
}
body.pv450-unified.fyn-app.pv420-enabled.adoption-page .az-page .v13-enclosure-toolbar.fyn-page-toolbar h1{
 font:700 clamp(30px,3.2vw,47px)/1.12 Georgia,'Times New Roman',serif!important;
 color:#0d3529!important;
 margin:8px 0 12px!important;
}
body.pv450-unified.adoption-page .fyn-adoption-hero-copy{
 display:flex;flex-direction:column;align-items:flex-start;
 gap:10px;min-width:0;max-width:67ch;
}
body.pv450-unified.adoption-page .fyn-adoption-hero-copy > span{
 display:block;font-size:12px;letter-spacing:.08em;line-height:1.3;
}
body.pv450-unified.adoption-page .fyn-adoption-hero-copy > strong{
 display:block;font-size:clamp(20px,2.5vw,31px);line-height:1.22;
}

/* Two specialised screens lacked the final treatment of the management pages. */
body.pv450-unified.adoption-page .fyn-adoption-stage{
 margin-block:18px 22px;
 border-radius:24px;
 overflow:hidden;
 border:1px solid var(--pv450-line);
 background:var(--pv450-white);
 box-shadow:var(--pv450-shadow);
}
body.pv450-unified.adoption-page .fyn-adoption-actionbar{
 display:flex;gap:8px;align-items:center;flex-wrap:wrap;
 padding:12px 16px;
 background:#fffefa;
 border-top:1px solid var(--pv450-line);
}
body.pv450-unified.adoption-page .fyn-adoption-actionbar a{
 display:inline-flex;align-items:center;gap:8px;
 min-height:40px;padding:9px 12px;
 border:1px solid #dce8d9;
 border-radius:13px;
 color:#1d533a;
 font-size:13px;
 text-decoration:none;
 background:#f5f8f1;
}
body.pv450-unified.adoption-page .fyn-adoption-panels,
body.pv450-unified.adoption-page .species-market-grid{gap:16px}
body.pv450-unified.adoption-page .fyn-adoption-panel{
 background:#fffefa;
 border:1px solid var(--pv450-line);
 box-shadow:var(--pv450-shadow);
}
body.pv450-unified.adoption-page .adoption-section-title{gap:14px;flex-wrap:wrap}
body.pv450-unified.adoption-page .adoption-section-title p{max-width:55ch}
body.pv450-unified.adoption-page .species-market-card{background:#fffefa}
body.pv450-unified.adoption-page .species-market-card :where(h3,p,small){overflow-wrap:anywhere}
body.pv450-unified.animal-page :is(.animal-detail-hero,.animal-growth-panel,.animal-health-panel,.animal-market-panel,.species-needs-panel,.animal-life-journal,.genetics-panel){
 border-radius:22px;
}
body.pv450-unified.animal-page .animal-tabs{
 display:flex;gap:7px;flex-wrap:wrap;max-width:100%;
 background:#fffefa;border:1px solid var(--pv450-line);
 border-radius:17px;padding:7px;
}
body.pv450-unified.animal-page .animal-tabs a{
 display:inline-flex;align-items:center;justify-content:center;
 min-height:40px;padding:9px 12px;border-radius:11px;
 color:#24533e;line-height:1.2;
}
body.pv450-unified.animal-page .animal-tabs a:focus-visible,
body.pv450-unified.animal-page .animal-tabs a:hover{background:#eaf2e7}
body.pv450-unified.animal-page :is(.animal-facts-modern,.genetics-summary,.genetics-grid,.animal-care-actions){min-width:0;max-width:100%}

/* Controls and dense content on management pages are legible on laptop and mobile. */
body.pv450-unified.fyn-app:not(.zoo-map-page) :where(
 .fyn-panel-list,.market-tabs,.fyn-staff-panels,.fyn-visitors-panels,
 .fyn-conservation-panels,.collection-v18-species-grid,.animals-v218-grid,
 .species-market-grid,.fyn-adoption-panels,.fyn-events-panels,
 .fyn-health-panels,.fyn-buildings-panels,.fyn-progress-panels
)>*{min-width:0;max-width:100%}
body.pv450-unified.fyn-app .az-page :where(input[type="search"],input[type="email"],input[type="text"],input[type="password"],select,textarea){font-size:max(14px,1rem)}
body.pv450-unified.fyn-app .az-page :where(table){max-width:100%}
body.pv450-unified.fyn-app .az-page :where(.table-wrap,.responsive-table,.fyn-table-scroll){max-width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch}
body.pv450-unified.fyn-app .az-page :where(.alert,.app-alert,.empty-state){max-width:100%;border-radius:14px}

/* Homepage, signup and visited zoo keep the same foundations but not game layout. */
body.pv450-unified.fyn-public .az-page{color:var(--pv450-text)}
body.pv450-unified.fyn-public .az-page :where(.app-card,.public-card,.v269-zoo-card){border-radius:var(--pv450-radius)}
body.pv450-unified.fyn-public :where(.az-topbar,.az-footer){background:var(--pv450-white)}

/* At 390px the menu and forms must remain usable without horizontal page scroll. */
@media(max-width:900px){
 body.pv450-unified .pv410-route{gap:12px;flex-wrap:wrap}
 body.pv450-unified .pv410-route-links{width:100%;justify-content:flex-start}
 body.pv450-unified.adoption-page .fyn-adoption-panels{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:680px){
 body.pv450-unified.fyn-app:not(.zoo-map-page):not(.enclosures-page) .az-page{min-width:0}
 body.pv450-unified :where(.pv410-route-links,.pv440-section-nav){overflow-x:auto;flex-wrap:nowrap;-webkit-overflow-scrolling:touch}
 body.pv450-unified :where(.pv410-route-links,.pv440-section-nav)>a{flex:0 0 auto;white-space:nowrap;font-size:12px}
 body.pv450-unified.adoption-page .fyn-adoption-stage{margin-block:12px 16px;border-radius:18px}
 body.pv450-unified.adoption-page .fyn-adoption-panels{grid-template-columns:1fr}
 body.pv450-unified.adoption-page .fyn-adoption-actionbar{gap:6px;padding:10px}
 body.pv450-unified.adoption-page .fyn-adoption-actionbar a{min-height:42px;font-size:12px;padding:9px 10px}
 body.pv450-unified.animal-page .animal-tabs{top:61px;gap:5px;padding:6px}
 body.pv450-unified.animal-page .animal-tabs a{font-size:12px;padding:8px 9px}
 body.pv450-unified .az-page :where(.fyn-panel-list,.app-card,.fyn-adoption-panel){min-width:0}
 body.pv450-unified .az-footer{padding-bottom:92px}
}
@media(prefers-reduced-motion:reduce){
 body.pv450-unified :where(.pv410-route-links a,.pv440-section-nav a,.species-market-card,.animals-v218-card){transition:none!important;animation:none!important}
}
