/* Ajuste aislado: no incorpora el tema general descartado. */
:root:not([data-theme="dark"]){--bg:#f7f2e8}
html:not([data-theme="dark"]) body{background-color:#f7f2e8!important}
/* local desplaza el dibujo con el contenido del contenedor que tiene scroll.
   scroll lo dejaría inmóvil respecto al propio contenedor. */
#sectionAnimals .cork-board-viewport,
#sectionAnimals[data-ay-board-ready] .cork-board-viewport{
 background-attachment:local!important;
}
#sectionAnimals .board-box,
#sectionAnimals .ayb-scene,
#sectionAnimals .ayb-masks{background-attachment:scroll!important}


body.ay-shelter-postal{--sp-foliage:url("https://ptdtplxvmqipppxqbcml.supabase.co/storage/v1/object/public/adoptaya-web-static/v294/4b3038990ed28169c7c440e6533697359c73dafc6a2d288a1cefe2b182ef6349.webp");--sp-bg:light-dark(#f6f0e4,#19291f);--sp-paper:light-dark(#fffaf0,#293a2d);--sp-ink:light-dark(#293e2d,#f6eddb);--sp-muted:light-dark(#73634d,#ccc3ad);--sp-line:light-dark(#ddcfb6,#53624e);--sp-orange:light-dark(#e75d2b,#ff975f);--sp-soft:light-dark(#f9e3c2,#4a4630);--sp-note:light-dark(#fff2c4,#48472e);--sp-shadow:0 9px 24px #3322101a;font-family:Nunito,sans-serif;color:var(--sp-ink);background:var(--sp-bg);padding:12px 20px 32px;box-sizing:border-box;container-type:inline-size;color-scheme:light}
body.ay-shelter-postal *{box-sizing:border-box}
body.ay-shelter-postal [hidden]{display:none!important}
body.ay-shelter-postal button{font:800 14px Nunito,sans-serif;color:inherit;cursor:pointer}
body.ay-shelter-postal .sp-demo{font-size:11px;text-align:center;color:var(--sp-muted);margin:0 0 12px}
body.ay-shelter-postal .sp-shell{max-width:1000px;margin:auto}
body.ay-shelter-postal .sp-nav{display:flex;justify-content:space-between;align-items:center;padding:9px 2px 18px;gap:12px}
body.ay-shelter-postal .sp-back{display:inline-flex;align-items:center;gap:7px;border:0;background:transparent;padding:8px 0;font-size:12px}
body.ay-shelter-postal .sp-brand{width:139px;max-width:40%;height:auto}
body.ay-shelter-postal .sp-cover{height:230px;position:relative;border:7px solid var(--sp-paper);border-radius:20px 20px 5px 5px;box-shadow:var(--sp-shadow);overflow:hidden}
body.ay-shelter-postal .sp-cover>img{width:100%;height:100%;object-fit:cover;object-position:center 52%;display:block}
body.ay-shelter-postal .sp-caption{position:absolute;bottom:14px;right:18px;color:#fff8e7;font:700 32px/1 Caveat,cursive;text-shadow:0 2px 6px #000b;transform:rotate(-3deg)}
body.ay-shelter-postal .sp-identity{position:relative;display:flex;align-items:center;gap:22px;padding:22px 28px 25px;background:var(--sp-paper);border:1px solid var(--sp-line);border-top:0}
body.ay-shelter-postal .sp-emblem{width:94px;height:94px;flex-shrink:0;background:var(--sp-soft);color:var(--sp-orange);border:5px solid var(--sp-paper);box-shadow:var(--sp-shadow);border-radius:24px;display:grid;place-items:center;transform:rotate(-4deg)}
body.ay-shelter-postal .sp-emblem svg{width:49px;height:49px;stroke-width:2.3}
body.ay-shelter-postal .sp-eyebrow{font:800 11px Nunito,sans-serif;color:var(--sp-muted);letter-spacing:.14em;margin:0 0 5px;text-transform:uppercase}
body.ay-shelter-postal h1{font:600 clamp(29px,4.6cqw,44px)/1.05 Fredoka,sans-serif;margin:0 0 9px;overflow-wrap:anywhere}
body.ay-shelter-postal .sp-location{display:flex;align-items:center;gap:6px;font-size:13px;margin:0;color:var(--sp-muted)}
body.ay-shelter-postal .sp-location svg{width:15px;height:15px;flex-shrink:0}
body.ay-shelter-postal .sp-tabs{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:4px;margin-top:20px;position:relative;z-index:1}
body.ay-shelter-postal .sp-tab{display:flex;align-items:center;justify-content:center;gap:8px;border:1px solid var(--sp-line);border-bottom:0;border-radius:17px 17px 0 0;background:var(--sp-paper);padding:17px 8px;min-height:54px;color:var(--sp-muted)}
body.ay-shelter-postal .sp-tab svg{width:19px;height:19px;flex-shrink:0}
body.ay-shelter-postal .sp-tab[aria-selected=true]{background:linear-gradient(120deg,#ff962e,#f45d2b);color:white;border-color:#f89a55;box-shadow:inset 0 2px 0 #ffffff70}
body.ay-shelter-postal .sp-page{padding:32px;background:linear-gradient(light-dark(#fff9e8df,#293a2df0),light-dark(#fff9e8df,#293a2df0)),var(--sp-foliage) center/cover;border:1px solid var(--sp-line);border-radius:0 0 20px 20px;box-shadow:var(--sp-shadow)}
body.ay-shelter-postal .sp-panel h2{font:600 26px/1.15 Fredoka,sans-serif;margin:0 0 10px;display:flex;align-items:center;gap:10px}
body.ay-shelter-postal .sp-panel h2 svg{color:var(--sp-orange);width:23px;height:23px;flex-shrink:0}
body.ay-shelter-postal .sp-lead{font-size:14px;line-height:1.6;color:var(--sp-muted);margin:0 0 25px}
body.ay-shelter-postal .sp-story-grid{display:grid;grid-template-columns:1.3fr 1fr;gap:32px;align-items:start}
body.ay-shelter-postal .sp-story{font:700 26px/1.25 Caveat,cursive;margin:12px 0 20px;max-width:560px}
body.ay-shelter-postal .sp-postcard{position:relative;background:var(--sp-paper);padding:11px 11px 17px;box-shadow:3px 6px 14px #452b2426;transform:rotate(3deg);margin:10px 5px 20px}
body.ay-shelter-postal .sp-postcard:before{content:'';position:absolute;width:80px;height:23px;background:#d3b984aa;top:-10px;left:calc(50% - 40px);transform:rotate(-8deg)}
body.ay-shelter-postal .sp-postcard img{width:100%;aspect-ratio:1.3;object-fit:cover;display:block}
body.ay-shelter-postal .sp-postcard p{font:700 25px/1.1 Caveat,cursive;margin:14px 0 0;text-align:center}
body.ay-shelter-postal .sp-facts{display:grid;gap:0;margin:22px 0 0;border-top:1px solid var(--sp-line)}
body.ay-shelter-postal .sp-facts>div{padding:13px 0;border-bottom:1px solid var(--sp-line);display:grid;grid-template-columns:130px 1fr;gap:12px;font-size:13px}
body.ay-shelter-postal dt{color:var(--sp-muted)}
body.ay-shelter-postal dd{margin:0;font-weight:800}
body.ay-shelter-postal .sp-note{background:var(--sp-note);padding:20px;box-shadow:2px 5px 8px #40301816;transform:rotate(-1.5deg);margin-top:24px}
body.ay-shelter-postal .sp-note h3{font:700 27px Caveat,cursive;margin:0 0 6px}
body.ay-shelter-postal .sp-note p{font-size:13px;line-height:1.6;margin:0;color:var(--sp-muted)}
body.ay-shelter-postal .sp-animals{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}
body.ay-shelter-postal .sp-animal{position:relative;background:var(--sp-paper);padding:9px 9px 15px;box-shadow:2px 5px 10px #442b241b;border:1px solid var(--sp-line);border-radius:3px 3px 13px 3px;text-align:left}
body.ay-shelter-postal .sp-animal:nth-child(2){transform:rotate(1deg)}
body.ay-shelter-postal .sp-animal strong{display:block;font:700 30px Caveat,cursive;margin:8px 4px 2px}
body.ay-shelter-postal .sp-animal small{display:block;color:var(--sp-muted);font:400 12px Nunito,sans-serif;margin:0 4px 9px}
body.ay-shelter-postal .sp-animal .sp-view{display:flex;justify-content:space-between;align-items:center;border-top:1px solid var(--sp-line);padding:10px 4px 0;font-size:12px;color:var(--sp-orange)}
body.ay-shelter-postal .sp-animal .sp-view svg{width:15px;height:15px}
body.ay-shelter-postal .sp-animal-photo{display:block;width:100%;aspect-ratio:1;background-image:var(--sp-animals);background-repeat:no-repeat;background-size:var(--sp-size);background-position:var(--sp-position);border-radius:2px}
body.ay-shelter-postal .sp-happy{display:inline-flex;align-items:center;gap:5px;padding:6px 9px;background:var(--sp-soft);color:var(--sp-ink);border-radius:20px;font-size:11px;margin:0 0 10px}
body.ay-shelter-postal .sp-contact-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
body.ay-shelter-postal .sp-contact-item{padding:20px;background:var(--sp-paper);border:1px solid var(--sp-line);border-radius:13px;display:flex;gap:14px;align-items:center;text-align:left;min-width:0}
body.ay-shelter-postal .sp-contact-item svg{width:24px;height:24px;flex-shrink:0;color:var(--sp-orange)}
body.ay-shelter-postal .sp-contact-item strong{display:block;font-size:15px;margin-bottom:5px}
body.ay-shelter-postal .sp-contact-item small{display:block;font:400 12px/1.4 Nunito,sans-serif;color:var(--sp-muted)}
body.ay-shelter-postal .sp-bottom{display:flex;justify-content:space-between;align-items:center;gap:18px;border-top:1px solid var(--sp-line);margin-top:30px;padding-top:23px}
body.ay-shelter-postal .sp-bottom p{font:700 27px/1.05 Caveat,cursive;margin:0;max-width:230px}
body.ay-shelter-postal .sp-cta{display:flex;align-items:center;justify-content:center;gap:10px;border:3px solid #fff3da;background:linear-gradient(110deg,#ff942e,#ff542b);color:white!important;border-radius:16px;padding:17px 23px;box-shadow:0 5px 12px #b7582420;min-height:56px;font-size:16px}
body.ay-shelter-postal .sp-status{font-size:12px;color:var(--sp-muted);line-height:1.5;margin:18px 0 0}
body.ay-shelter-postal .sp-detail{background:var(--sp-paper);border:1px solid var(--sp-line);border-radius:14px;padding:20px;margin-top:20px}
body.ay-shelter-postal .sp-detail h3{font:600 24px Fredoka,sans-serif;margin:0 0 8px}
body.ay-shelter-postal .sp-detail p{font-size:14px;line-height:1.6}
body.ay-shelter-postal .sp-close{border:1px solid var(--sp-line);background:var(--sp-soft);border-radius:9px;padding:10px 15px;min-height:44px}
@container(max-width:620px){body.ay-shelter-postal .sp-cover{height:174px;border-width:5px}body.ay-shelter-postal .sp-caption{font-size:26px;bottom:12px;right:10px}body.ay-shelter-postal .sp-identity{gap:15px;padding:20px 16px}body.ay-shelter-postal .sp-emblem{width:68px;height:68px;border-radius:18px}body.ay-shelter-postal .sp-emblem svg{width:35px;height:35px}body.ay-shelter-postal .sp-tabs{grid-template-columns:repeat(2,minmax(0,1fr));gap:4px;margin-top:16px}body.ay-shelter-postal .sp-tab{border-radius:11px;min-height:48px;padding:12px 6px;font-size:12px;border-bottom:1px solid var(--sp-line)}body.ay-shelter-postal .sp-page{margin-top:10px;padding:23px 17px;border-radius:14px}body.ay-shelter-postal .sp-story-grid{grid-template-columns:1fr;gap:15px}body.ay-shelter-postal .sp-postcard{max-width:280px;margin:10px auto 15px}body.ay-shelter-postal .sp-animals{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}body.ay-shelter-postal .sp-bottom{flex-direction:column;text-align:center}body.ay-shelter-postal .sp-cta{width:100%;font-size:14px;padding:15px 8px}body.ay-shelter-postal .sp-contact-grid{grid-template-columns:1fr}body.ay-shelter-postal .sp-facts>div{grid-template-columns:100px 1fr}body.ay-shelter-postal .sp-location{font-size:12px}}
@media(max-width:400px){body.ay-shelter-postal{padding:10px 10px 24px}}

body.ay-shelter-postal>header,body.ay-shelter-postal>footer{display:none!important}
body.ay-shelter-postal{margin:0!important;background-image:none!important}
body.ay-shelter-postal .sp-panel{scroll-margin-top:20px}
body.ay-shelter-postal .sp-tab{text-decoration:none}
body.ay-shelter-postal .sp-logo{width:100%;height:100%;object-fit:contain;display:block;border-radius:16px}
body.ay-shelter-postal .sp-animal{text-decoration:none;color:var(--sp-ink);display:block}
body.ay-shelter-postal .sp-animal-photo{object-fit:cover;background:var(--sp-soft);height:auto}
body.ay-shelter-postal .sp-placeholder{display:grid;place-items:center;color:var(--sp-muted);font-size:14px;text-align:center}
body.ay-shelter-postal .sp-story{white-space:pre-wrap;overflow-wrap:anywhere}
body.ay-shelter-postal .sp-contact-item{text-decoration:none;color:var(--sp-ink);overflow-wrap:anywhere}
body.ay-shelter-postal .sp-cta{text-decoration:none}
body.ay-shelter-postal .sp-status a{color:inherit;text-decoration:underline}
body.ay-shelter-postal .sp-emblem{font-size:38px}
body.ay-shelter-postal .sp-postcard .sp-story-quote{font:700 34px/1.2 Caveat,cursive;padding:26px 12px;color:var(--sp-ink)}
@media(prefers-reduced-motion:no-preference){body.ay-shelter-postal .sp-tab{transition:background-color .15s}}
/* Directorio de inicio: el tema queda limitado a las protectoras. */
#buscar-protectora{background:transparent!important}
#buscar-protectora .advanced-search-wrapper{background:linear-gradient(#fff9edf0,#fff9edf0),url("https://ptdtplxvmqipppxqbcml.supabase.co/storage/v1/object/public/adoptaya-web-static/v294/4b3038990ed28169c7c440e6533697359c73dafc6a2d288a1cefe2b182ef6349.webp") center/cover!important;padding:30px!important;border:1px solid #dfd2b9!important;border-radius:18px!important;box-shadow:0 7px 18px #73563812!important;color:#293e2d!important}
#buscar-protectora h2{font-family:Fredoka,Nunito,sans-serif!important;color:#293e2d!important}
#buscar-protectora .shelter-search-header p{color:#73634d!important}
#buscar-protectora .board-filter-fold{background:#fffaf0!important;border:1px solid #ddcfb6!important;border-radius:13px!important}
#buscar-protectora .board-filter-fold summary{color:#293e2d!important}
#buscar-protectora :is(input,select){background:#fffdf7!important;border-color:#ddcfb6!important;color:#293e2d!important}
#buscar-protectora :is(.search-action-btn,.shelter-counter){background:#f4e6cc!important;color:#634d32!important;border-color:#e0cfad!important}
#grid .web-shelter-card.shelter-horizontal{background:#fffaf0!important;border:1px solid #dfd2b9!important;border-radius:17px!important;box-shadow:0 6px 18px #73563817!important;overflow:hidden!important;grid-template-rows:auto auto auto auto!important;color:#293e2d!important}
#grid .web-shelter-card .shelter-brand-stage{background:#f7f0e1!important;border-color:#e5d8bd!important}
#grid .web-shelter-card .shelter-brand-image{object-fit:contain!important}
#grid .web-shelter-card h3{color:#293e2d!important;font-family:Fredoka,Nunito,sans-serif!important}
#grid .web-shelter-card :is(.loc,.shelter-description){color:#73634d!important}
#grid .web-shelter-card .shelter-description{display:-webkit-box!important;-webkit-line-clamp:3!important;-webkit-box-orient:vertical!important;overflow:hidden!important}
#grid .web-shelter-card .tag{background:#eee4cf!important;color:#705637!important;border:0!important}
#grid .web-shelter-card .shelter-contact{border-color:#e0d3bb!important;padding-bottom:12px!important}
#grid .web-shelter-card :is(.go,.shelter-phone){background:#f2ead9!important;border-color:#ddcfb6!important;color:#614c32!important;box-shadow:none!important}
#grid .web-shelter-card>.ay-shelter-open{grid-column:1/-1!important;grid-row:4!important;margin:0 20px 20px;padding:13px 16px;display:block;text-align:center;background:linear-gradient(110deg,#ff942e,#f35c2c);border:2px solid #ffe7c5;border-radius:12px;color:#fff!important;text-decoration:none;font:800 14px Nunito,sans-serif;min-height:46px;box-sizing:border-box}
:root[data-theme=dark] #buscar-protectora .advanced-search-wrapper{background:linear-gradient(#293a2df5,#293a2df5),url("https://ptdtplxvmqipppxqbcml.supabase.co/storage/v1/object/public/adoptaya-web-static/v294/4b3038990ed28169c7c440e6533697359c73dafc6a2d288a1cefe2b182ef6349.webp") center/cover!important;border-color:#53624e!important;color:#f6eddb!important}
:root[data-theme=dark] #buscar-protectora :is(h2,.board-filter-fold summary){color:#f6eddb!important}
:root[data-theme=dark] #buscar-protectora :is(.board-filter-fold,input,select){background:#293a2d!important;color:#f6eddb!important;border-color:#53624e!important}
:root[data-theme=dark] #buscar-protectora .shelter-search-header p{color:#ccc3ad!important}
:root[data-theme=dark] #grid .web-shelter-card.shelter-horizontal{background:#293a2d!important;border-color:#53624e!important;color:#f6eddb!important}
:root[data-theme=dark] #grid .web-shelter-card h3{color:#f6eddb!important}
:root[data-theme=dark] #grid .web-shelter-card :is(.loc,.shelter-description){color:#ccc3ad!important}
@media(max-width:600px){#buscar-protectora .advanced-search-wrapper{padding:21px 17px!important}#grid .web-shelter-card>.ay-shelter-open{margin:0 16px 17px}}

/* AY_SHELTER_LAYOUT_V2 */
/* Corrección aislada de la ficha postal: evita heredar el header global. */
body.ay-shelter-postal .sp-shell>header{
 display:block!important;position:relative!important;inset:auto!important;
 width:100%!important;max-width:none!important;height:auto!important;min-height:0!important;
 margin:0!important;padding:0!important;gap:0!important;float:none!important;
 background:transparent!important;border:0!important;border-radius:0!important;
 box-shadow:none!important;backdrop-filter:none!important;overflow:visible!important;
}
body.ay-shelter-postal .sp-shell{min-width:0;max-width:1000px!important;width:100%}
body.ay-shelter-postal .sp-cover{display:none!important}
body.ay-shelter-postal .sp-identity{
 display:grid!important;grid-template-columns:220px minmax(0,1fr)!important;
 align-items:center!important;gap:32px!important;width:100%!important;
 padding:30px!important;margin:0!important;min-width:0!important;
 background:linear-gradient(#fffaf0f0,#fffaf0f0),var(--sp-foliage) center/cover!important;
 border:1px solid var(--sp-line)!important;border-radius:20px!important;
 box-shadow:0 7px 20px #59432512!important;text-align:left!important;
}
body.ay-shelter-postal .sp-identity>div{min-width:0!important;max-width:100%!important}
body.ay-shelter-postal .sp-identity .sp-emblem{
 width:220px!important;height:190px!important;max-width:100%!important;
 display:grid!important;place-items:center!important;padding:15px!important;
 margin:0!important;transform:none!important;background:#fffdf8!important;
 border:1px solid #e5d7bd!important;border-radius:17px!important;
 box-shadow:0 5px 14px #59432514!important;overflow:hidden!important;
}
body.ay-shelter-postal .sp-emblem .sp-logo{
 display:block!important;width:100%!important;height:100%!important;max-width:100%!important;
 max-height:100%!important;object-fit:contain!important;object-position:center!important;
 padding:0!important;margin:0!important;border:0!important;border-radius:0!important;
 transform:none!important;filter:none!important;mix-blend-mode:normal!important;
}
body.ay-shelter-postal .sp-identity h1{
 font:600 clamp(30px,4vw,44px)/1.12 Fredoka,Nunito,sans-serif!important;
 letter-spacing:-.02em!important;margin:9px 0 13px!important;padding:0!important;
 width:100%!important;max-width:none!important;min-width:0!important;
 color:var(--sp-ink)!important;white-space:normal!important;word-break:normal!important;
 overflow-wrap:break-word!important;text-align:inherit!important;
}
body.ay-shelter-postal .sp-identity .sp-eyebrow{font:800 11px/1.5 Nunito,sans-serif!important;letter-spacing:.09em!important;white-space:normal!important;margin:0!important}
body.ay-shelter-postal .sp-identity .sp-location{font:400 14px/1.5 Nunito,sans-serif!important;margin:0!important;justify-content:flex-start!important;overflow-wrap:anywhere}
body.ay-shelter-postal .sp-nav{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:16px!important;padding:8px 0 18px!important;margin:0!important;border:0!important;background:none!important}
body.ay-shelter-postal .sp-back{color:var(--sp-muted)!important;text-decoration:none!important;font:800 13px Nunito,sans-serif!important;min-height:44px}
body.ay-shelter-postal .sp-nav>a:last-child{display:block;flex:none;width:96px;max-width:35%}
body.ay-shelter-postal .sp-nav .sp-brand{display:block!important;width:100%!important;max-width:100%!important;height:46px!important;object-fit:contain!important}
body.ay-shelter-postal .sp-tabs{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:6px!important;padding:0!important;margin:16px 0 0!important;border:0!important;background:transparent!important;min-width:0!important}
body.ay-shelter-postal .sp-tab{min-width:0!important;min-height:46px!important;padding:12px 8px!important;font:800 13px/1.25 Nunito,sans-serif!important;text-decoration:none!important;white-space:normal!important;text-align:center!important}
body.ay-shelter-postal .sp-page{padding:27px!important;margin-top:0!important;width:100%!important;min-width:0!important}
body.ay-shelter-postal .sp-story-grid{display:grid!important;grid-template-columns:minmax(0,1.6fr) minmax(0,1fr)!important;gap:26px!important}
body.ay-shelter-postal .sp-story-grid>div,body.ay-shelter-postal .sp-story-grid>aside{min-width:0!important}
body.ay-shelter-postal .sp-story-grid .sp-postcard{display:none!important}
body.ay-shelter-postal .sp-story-grid .sp-note{transform:none!important;margin:0!important;padding:20px!important;border-radius:10px!important;box-shadow:none!important}
body.ay-shelter-postal .sp-note h3{font:700 27px/1.15 Caveat,cursive!important;margin:0 0 9px!important}
body.ay-shelter-postal .sp-note p{font:400 14px/1.6 Nunito,sans-serif!important}
body.ay-shelter-postal .sp-story{font:700 26px/1.3 Caveat,cursive!important;margin:16px 0 20px!important;overflow-wrap:anywhere}
body.ay-shelter-postal .sp-facts>div{grid-template-columns:minmax(0,130px) minmax(0,1fr)!important;gap:14px!important}
body.ay-shelter-postal .sp-facts :is(dt,dd){overflow-wrap:anywhere}
body.ay-shelter-postal .sp-bottom{margin-top:24px!important;padding-top:20px!important}
body.ay-shelter-postal .sp-bottom>p{font:700 24px/1.15 Caveat,cursive!important}
@media(max-width:620px){
 body.ay-shelter-postal{padding:10px 12px 24px!important}
 body.ay-shelter-postal .sp-identity{grid-template-columns:minmax(0,1fr)!important;gap:19px!important;padding:25px 20px!important;text-align:center!important}
 body.ay-shelter-postal .sp-identity .sp-emblem{width:210px!important;height:180px!important;margin:0 auto!important;padding:13px!important}
 body.ay-shelter-postal .sp-identity h1{font-size:32px!important;max-width:100%!important}
 body.ay-shelter-postal .sp-identity .sp-location{justify-content:center!important}
 body.ay-shelter-postal .sp-tabs{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:6px!important;margin-top:14px!important}
 body.ay-shelter-postal .sp-tab{border-radius:11px!important;border-bottom:1px solid var(--sp-line)!important}
 body.ay-shelter-postal .sp-page{padding:23px 18px!important;margin-top:12px!important;border-radius:16px!important}
 body.ay-shelter-postal .sp-story-grid{grid-template-columns:minmax(0,1fr)!important;gap:22px!important}
 body.ay-shelter-postal .sp-panel h2{font-size:27px!important}
 body.ay-shelter-postal .sp-facts>div{grid-template-columns:minmax(0,1fr)!important;gap:6px!important}
 body.ay-shelter-postal .sp-bottom{gap:17px!important}
 body.ay-shelter-postal .sp-cta{font-size:14px!important;padding:14px 10px!important;min-height:51px!important}
}

/* AY_SHELTER_LOGO_BOTANICAL_V3 */
/* Hojas y hierba en el marco; el logotipo conserva sus proporciones. */
body.ay-shelter-postal .sp-identity .sp-emblem{
 background:linear-gradient(#fffaf026,#fffaf026),var(--sp-foliage) center center/100% 100% no-repeat!important;
 padding:27px 25px 31px!important;
 border-color:#d9c9a9!important;
 box-shadow:0 5px 16px #59432519,inset 0 0 0 3px #fffaf080!important;
}
body.ay-shelter-postal .sp-emblem .sp-logo{position:relative!important;z-index:1!important}
@media(max-width:620px){body.ay-shelter-postal .sp-identity .sp-emblem{padding:26px 24px 30px!important}}

/* AY_SHELTER_HEADER_V4 */
/* Papel botánico en toda la tarjeta y navegación integrada. */
body.ay-shelter-postal .sp-identity{
 background:linear-gradient(90deg,#fffaf054,#fffaf0bd 45%,#fffaf0a3 80%,#fffaf04d),var(--sp-foliage) center/100% 100% no-repeat!important;
 border:1px solid #dacaaa!important;
 box-shadow:0 6px 18px #59432514,inset 0 0 0 4px #fffaf04d!important;
}
body.ay-shelter-postal .sp-nav{
 padding:10px 16px!important;margin:0 0 14px!important;min-height:76px!important;
 background:linear-gradient(#fffaf0d9,#fffaf0d9),var(--sp-foliage) center/100% 100% no-repeat!important;
 border:1px solid #e4d7bd!important;border-radius:17px!important;
 box-shadow:0 3px 12px #5943250c!important;
}
body.ay-shelter-postal .sp-nav .sp-back{
 display:inline-flex!important;align-items:center!important;justify-content:center!important;
 gap:8px!important;padding:11px 14px!important;margin:0!important;min-width:0!important;
 min-height:44px!important;background:#fff1da!important;color:#a34c26!important;
 border:1px solid #ecd2aa!important;border-radius:12px!important;
 font:800 13px/1.25 Nunito,sans-serif!important;text-decoration:none!important;
}
body.ay-shelter-postal .sp-nav>a:last-child{width:126px!important;max-width:39%!important;padding:3px 5px!important;display:block!important}
body.ay-shelter-postal .sp-nav .sp-brand{height:52px!important;width:100%!important;max-width:100%!important;object-fit:contain!important}
@media(max-width:620px){
 body.ay-shelter-postal .sp-identity{background:linear-gradient(#fffaf054,#fffaf0d1 40%,#fffaf0db 70%,#fffaf070),var(--sp-foliage) center/100% 100% no-repeat!important}
 body.ay-shelter-postal .sp-nav{padding:8px 10px!important;gap:8px!important;min-height:70px!important}
 body.ay-shelter-postal .sp-nav .sp-back{font-size:12px!important;padding:10px!important}
 body.ay-shelter-postal .sp-nav>a:last-child{width:108px!important;max-width:38%!important}
 body.ay-shelter-postal .sp-nav .sp-brand{height:47px!important}
}

/* AY_SHELTER_CLEAN_LOGO_V5 */
/* Solo el recuadro interior del logo: la tarjeta exterior sigue siendo botánica. */
body.ay-shelter-postal .sp-identity .sp-emblem{
 background:#fffdf8!important;
 background-image:none!important;
 padding:18px!important;
 box-shadow:0 5px 14px #59432514!important;
}

#sectionAnimals>.ay-board-disclosure{border:1px solid #ecd8c8;border-radius:24px;background:var(--card,#fffaf4);box-shadow:0 12px 35px #56351b0d;overflow:clip;color:var(--ink,#26392e)}
#sectionAnimals>.ay-board-disclosure>summary{display:flex;align-items:center;gap:16px;min-height:96px;padding:20px 24px;list-style:none;background:linear-gradient(110deg,#fff9f3,#fff1e1);cursor:pointer}
#sectionAnimals>.ay-board-disclosure>summary::-webkit-details-marker{display:none}
#sectionAnimals .ay-board-disclosure-icon{display:grid;place-items:center;width:52px;height:52px;border-radius:17px;flex:none;background:linear-gradient(140deg,#ff9847,#ef612e);color:white;font-size:29px;box-shadow:0 5px 15px #e4662e26}
#sectionAnimals .ay-board-disclosure-title{display:flex;flex-direction:column;gap:5px;flex:1;min-width:0}
#sectionAnimals .ay-board-disclosure-title strong{font:800 clamp(18px,2.4vw,25px)/1.2 Nunito,sans-serif;color:#293c30}
#sectionAnimals .ay-board-disclosure-title small{font:600 13px/1.4 Nunito,sans-serif;color:#7c6858}
#sectionAnimals .ay-board-disclosure-action{padding:9px 16px;border-radius:99px;background:#fffaf5;border:1px solid #efcbb0;color:#b64c26;font:800 13px Nunito,sans-serif}
#sectionAnimals .ay-board-disclosure-arrow{display:grid;place-items:center;width:32px;height:32px;font-size:27px;color:#a55530;transition:transform .25s}
#sectionAnimals>.ay-board-disclosure[open]>summary .ay-board-disclosure-arrow{transform:rotate(180deg)}
#sectionAnimals>.ay-board-disclosure>summary:focus-visible{outline:3px solid #e8763d;outline-offset:-5px}
#sectionAnimals>.ay-board-disclosure>.board-box{margin:0!important;border:0!important;border-radius:0!important;box-shadow:none!important}
#sectionAnimals .ay-board-disclosure .ayb-postal-header{background:none!important;border:0!important;box-shadow:none!important;padding:14px!important;margin:0!important}
@media(max-width:600px){#sectionAnimals>.ay-board-disclosure>summary{padding:17px 14px;gap:11px;min-height:92px}#sectionAnimals .ay-board-disclosure-icon{width:44px;height:44px;border-radius:14px;font-size:25px}#sectionAnimals .ay-board-disclosure-action{display:none}#sectionAnimals .ay-board-disclosure-title strong{font-size:18px}#sectionAnimals .ay-board-disclosure-title small{font-size:12px}}
[data-theme=dark] #sectionAnimals>.ay-board-disclosure>summary{background:linear-gradient(110deg,#29382e,#3b362b)}
[data-theme=dark] #sectionAnimals .ay-board-disclosure-title strong{color:#f5eddf}[data-theme=dark] #sectionAnimals .ay-board-disclosure-title small{color:#cabbab}[data-theme=dark] #sectionAnimals .ay-board-disclosure-action{background:#344137;color:#ffb18a;border-color:#655744}
@media(prefers-reduced-motion:reduce){#sectionAnimals .ay-board-disclosure-arrow{transition:none}}

#ay-explore-carousel{width:min(1180px,94%);margin:18px auto 30px;box-sizing:border-box;color:#3c2b20;font-family:Nunito,Arial,sans-serif}#ay-explore-carousel *{box-sizing:border-box}#ay-explore-carousel [hidden]{display:none!important}#ay-explore-carousel .ayhc-stage{position:relative;border-radius:22px;overflow:hidden;box-shadow:0 5px 24px #71572c15;touch-action:pan-y}#ay-explore-carousel .ayhc-slide a{display:block;line-height:0}#ay-explore-carousel .ayhc-slide img{display:block;width:100%;height:auto;aspect-ratio:1.79;object-fit:contain;background:#fff5e4}#ay-explore-carousel .ayhc-controller{width:min(360px,82%);margin:14px auto 0;padding:0 20px}#ay-explore-carousel .ayhc-rail{position:relative;height:48px;--ay-position:0%}#ay-explore-carousel .ayhc-rail:before,#ay-explore-carousel .ayhc-progress{content:"";position:absolute;left:0;top:23px;height:4px;border-radius:8px;background:#e8d7bd;width:100%}#ay-explore-carousel .ayhc-progress{width:var(--ay-position);background:linear-gradient(90deg,#ffab6b,#ff681f);transition:width .28s ease}#ay-explore-carousel .ayhc-paw{position:absolute;left:var(--ay-position);top:3px;width:44px;height:44px;transform:translateX(-50%);border-radius:50%;background:#fffaf0;box-shadow:0 3px 14px #be6a342a;transition:left .28s ease;pointer-events:none}#ay-explore-carousel .ayhc-paw:after{content:"";position:absolute;inset:5px;background:url("https://ptdtplxvmqipppxqbcml.supabase.co/storage/v1/object/public/adoptaya-web-static/v294/69c51ed33e8d4f309a848fbabe3294ffb418f87a9d9fa85d29ff72fa6dd17fea.svg") center/contain no-repeat}#ay-explore-carousel input[type=range]{position:absolute;inset:0;width:calc(100% + 44px);height:48px;margin:0 0 0 -22px;opacity:0;cursor:grab;z-index:2;touch-action:pan-y}#ay-explore-carousel input[type=range]:active{cursor:grabbing}#ay-explore-carousel .ayhc-rail:focus-within .ayhc-paw{outline:3px solid #ff852f;outline-offset:4px}#ay-explore-carousel .ayhc-labels{display:flex;justify-content:space-between;margin:5px -22px 0;font:700 12px/1.3 Nunito,Arial,sans-serif;color:#8b7967}#ay-explore-carousel .ayhc-labels span{width:86px;text-align:center;transition:color .2s}#ay-explore-carousel .ayhc-labels span[data-active=true]{color:#db4e10}#ay-explore-carousel .ayhc-sr{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}#ay-explore-carousel a:focus-visible{outline:3px solid #b54c19;outline-offset:-4px}#buscar-protectora>.ay-shelter-entry-link{display:none!important}body .nearby-section.nearby-reference{display:none!important}@media(max-width:600px){#ay-explore-carousel{width:96%;margin:12px auto 22px}#ay-explore-carousel .ayhc-stage{border-radius:15px}#ay-explore-carousel .ayhc-controller{width:78%;margin-top:8px;padding:0 12px}#ay-explore-carousel .ayhc-labels{font-size:11px}}@media(prefers-reduced-motion:reduce){#ay-explore-carousel .ayhc-progress,#ay-explore-carousel .ayhc-paw{transition:none}}

.ay-home-art-v26{position:relative;width:100%;aspect-ratio:1536/732;overflow:hidden}.ay-home-art-v26>img{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;transition:opacity .35s}.ay-home-night{opacity:0}html[data-theme=dark] .ay-home-day{opacity:0}html[data-theme=dark] .ay-home-night{opacity:1}.ay-home-hotspot{position:absolute;z-index:2;border-radius:30px}.ay-home-hotspot:focus-visible{outline:3px solid #ff792c;outline-offset:3px}.ay-home-animal{left:9%;top:59%;width:27%;height:9%}.ay-home-shelter{left:41%;top:3%;width:10%;height:7%}.ay-home-nearby{left:62%;top:3%;width:9%;height:7%}.ay-home-guide{left:51%;top:3%;width:10%;height:7%}@media(prefers-reduced-motion:reduce){.ay-home-art-v26>img{transition:none}}.ay-home-theme{left:77.5%;top:3%;width:3.5%;height:7%;padding:0;border:0;background:#fff8e9e6;color:#38271d;font-size:clamp(10px,2vw,24px);cursor:pointer}.ay-home-login{left:81%;top:3%;width:12%;height:7%;border:0;background:transparent;cursor:pointer}.ay-home-search{left:74%;top:3%;width:3.5%;height:7%}html[data-theme=dark] .ay-home-theme{background:#07111be6;color:#fff2db}
body.ay-elegant-enabled{margin:0;padding:0;background:#fffaf3}#ay-elegant-home{position:relative;width:100%;max-width:1600px;margin:auto;isolation:isolate;background:#fffaf3;color:#1b1b18;font-family:Arial,sans-serif;container:aeh/inline-size}#ay-elegant-home *{box-sizing:border-box}#ay-elegant-home .aeh-art{display:block;width:100%;line-height:0}#ay-elegant-home .aeh-art img{display:block;width:100%;height:auto}#ay-elegant-home .aeh-sr{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}#ay-elegant-home .aeh-hit{position:absolute;display:block;z-index:3;padding:0;border:0;background:transparent;cursor:pointer;border-radius:26px;color:transparent}#ay-elegant-home .aeh-hit:focus-visible{outline:3px solid #ff662b;outline-offset:3px;background:#ff7a2b12}#ay-elegant-home .aeh-logo{left:6.5%;top:.7%;width:15%;height:2.7%}#ay-elegant-home .aeh-nav-animals{left:24.5%;top:1%;width:6%;height:2%}#ay-elegant-home .aeh-nav-shelters{left:32%;top:1%;width:7%;height:2%}#ay-elegant-home .aeh-nav-guides{left:41%;top:1%;width:10%;height:2%}#ay-elegant-home .aeh-nav-nearby{left:52%;top:1%;width:10%;height:2%}#ay-elegant-home .aeh-search{left:69.5%;top:.6%;width:4.5%;height:3%}#ay-elegant-home .aeh-theme{left:75.2%;top:.6%;width:4.5%;height:3%}#ay-elegant-home .aeh-login{left:81%;top:.6%;width:13%;height:3%}#ay-elegant-home .aeh-menu{display:none}#ay-elegant-home .aeh-hero-cta{left:7.4%;top:22.5%;width:26.5%;height:3.3%}#ay-elegant-home .aeh-all-animals{left:78%;top:34.5%;width:16%;height:2.7%}#ay-elegant-home .aeh-shelter-cta{left:51.4%;top:67%;width:18.6%;height:3%}#ay-elegant-home .aeh-map-cta{left:7.4%;top:79.7%;width:16%;height:3%}#ay-elegant-home .aeh-stories-cta{left:59.7%;top:95%;width:14%;height:3%}
#ay-elegant-home .aeh-animal-overlay{position:absolute;left:4%;top:39.25%;width:92%;height:14.25%;background:#fffaf4;z-index:2}#ay-elegant-home .aeh-grid{height:100%;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:1.5cqw}#ay-elegant-home .aeh-card{position:relative;min-width:0;min-height:0;overflow:hidden;border-radius:1.5cqw;background:#fffdf8;box-shadow:0 .5cqw 1.4cqw #7557330b;display:grid;grid-template-rows:minmax(0,1fr) auto}#ay-elegant-home .aeh-card>a{display:contents;color:inherit;text-decoration:none}#ay-elegant-home .aeh-photo{width:100%;height:100%;min-height:0;object-fit:cover;object-position:center;display:block}#ay-elegant-home .aeh-info{padding:.8cqw 1.1cqw 1cqw;position:relative}#ay-elegant-home .aeh-info strong{display:block;font-size:1.65cqw;line-height:1.2;padding-right:2cqw;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}#ay-elegant-home .aeh-meta{display:flex;gap:.8cqw;font-size:.9cqw;line-height:1.3;margin-top:.6cqw;white-space:nowrap;overflow:hidden}#ay-elegant-home .aeh-arrow{position:absolute;right:.9cqw;top:.8cqw;display:grid;place-items:center;border-radius:50%;width:2.4cqw;height:2.4cqw;background:#ffac6c;color:#fff;font-size:1.5cqw}#ay-elegant-home .aeh-card .account-favorite{position:absolute;right:.7cqw;top:.4cqw;background:transparent!important;color:#fff!important;border:0!important;box-shadow:none!important;padding:0!important;min-height:0;width:3.5cqw;height:3.5cqw;font-size:3cqw;line-height:1;z-index:4}#ay-elegant-home .aeh-loading{grid-column:1/-1;display:grid;place-items:center;text-align:center;margin:0;padding:20px;font-size:16px}#ay-elegant-home .aeh-pager{position:absolute;left:40%;top:54.3%;width:20%;display:flex;justify-content:center;gap:7px;z-index:3}#ay-elegant-home .aeh-pager button{border:0;padding:0;width:20px;height:5px;border-radius:9px;background:#dcd6ca;cursor:pointer}#ay-elegant-home .aeh-pager button[aria-current=true]{background:#ff6c2b}#ay-elegant-home #aeh-menu-panel{position:absolute;z-index:8;right:3%;top:4%;padding:14px;background:#fffaf4;border:1px solid #efdfcd;border-radius:18px;box-shadow:0 12px 35px #392a2020;min-width:210px}#ay-elegant-home #aeh-menu-panel[hidden]{display:none}#ay-elegant-home #aeh-menu-panel a,#ay-elegant-home #aeh-menu-panel button{display:block;padding:12px;color:#352a21;text-decoration:none;border:0;background:transparent;text-align:left;font:14px Arial;width:100%}#aeh-return-home{position:sticky;top:0;z-index:999;background:#fffaf2;border:1px solid #ead7c0;border-radius:24px;margin:10px;padding:12px 20px;color:#a7491d;font-weight:700;cursor:pointer}#ay-legacy-home[hidden]{display:none!important}
@container aeh (max-width:700px){#ay-elegant-home .aeh-logo{left:4%;top:.4%;width:29%;height:3%}#ay-elegant-home .aeh-navigation>a:not(.aeh-logo):not(.aeh-search){display:none}#ay-elegant-home .aeh-search{left:70.5%;top:.4%;width:8%;height:3.3%}#ay-elegant-home .aeh-theme{left:80%;top:.4%;width:8%;height:3.3%}#ay-elegant-home .aeh-login{display:none}#ay-elegant-home .aeh-menu{display:block;left:89.5%;top:.4%;width:8%;height:3.3%}#ay-elegant-home .aeh-hero-cta{left:4.7%;top:22.7%;width:33%;height:4.4%}#ay-elegant-home .aeh-all-animals{left:73.5%;top:34.8%;width:21%;height:3.1%}#ay-elegant-home .aeh-animal-overlay{left:5.5%;top:40.1%;width:89%;height:15.1%}#ay-elegant-home .aeh-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:2.5cqw}#ay-elegant-home .aeh-card{border-radius:2cqw}#ay-elegant-home .aeh-info{padding:1.2cqw 2cqw 1.6cqw}#ay-elegant-home .aeh-info strong{font-size:2.75cqw;padding-right:4cqw}#ay-elegant-home .aeh-meta{font-size:1.65cqw;gap:1.4cqw;margin-top:1cqw}#ay-elegant-home .aeh-arrow{width:4.1cqw;height:4.1cqw;font-size:2.5cqw;right:1.7cqw;top:1.5cqw}#ay-elegant-home .aeh-card .account-favorite{width:5cqw;height:5cqw;font-size:5cqw;right:1.6cqw;top:1cqw}#ay-elegant-home .aeh-pager{top:55.8%}#ay-elegant-home .aeh-shelter-cta{left:57%;top:70.5%;width:37%;height:3.2%}#ay-elegant-home .aeh-map-cta{left:7%;top:84.7%;width:22%;height:2.7%}#ay-elegant-home .aeh-stories-cta{left:74%;top:96.1%;width:23%;height:2.7%}}
#ay-elegant-home .aeh-pager{min-height:12px;align-items:center;background:#fffaf3}#ay-elegant-home .aeh-animal-overlay{padding:0;margin:0;border:0;border-radius:0;box-shadow:none}#ay-elegant-home[hidden]{display:none!important}
/* The homepage artwork reaches both edges, including wide monitors. */
body.ay-elegant-enabled{width:100%;max-width:none!important;margin:0!important;padding:0!important;overflow-x:hidden}body.ay-elegant-enabled #ay-elegant-home{width:100%;max-width:none;margin:0;border:0;border-radius:0}

/* Reset the legacy main padding: every homepage module, including the header, reaches the viewport edges. */
body.ay-elegant-enabled main#ay-elegant-home{width:100%;max-width:none!important;margin:0!important;padding:0!important;min-width:0}

/* Keep navigation from becoming a separate coordinate system for the artwork links. */
#ay-elegant-home .aeh-navigation{position:static!important;transform:none!important;contain:none!important;padding:0!important;margin:0!important;border:0!important;height:0;min-height:0}
#ay-elegant-home .aeh-hit{margin:0!important;min-height:0!important;min-width:0!important;max-width:none;box-sizing:border-box;transform:none!important}
#ay-elegant-home .aeh-art img{margin:0;padding:0;border:0;max-width:none}

/* Desktop controls are live type and vectors, preserving the artwork's rectangles. */
#ay-elegant-home .aeh-native-content{display:none}
@media(min-width:701px){
#ay-elegant-home .aeh-navigation:before{content:"";position:absolute;inset:0 0 auto;height:5.85cqw;background:#fffaf3;z-index:2;pointer-events:none}
#ay-elegant-home .aeh-native-content{display:flex;align-items:center;justify-content:center;gap:.65cqw;width:100%;height:100%;white-space:nowrap;font:400 1.42cqw/1.2 Arial,sans-serif;color:#25231f;pointer-events:none}
#ay-elegant-home .aeh-native-content svg{width:1.7cqw;height:1.7cqw;flex:none}
#ay-elegant-home .aeh-navigation .aeh-hit{border-radius:0}
#ay-elegant-home .aeh-navigation .aeh-native-content{font-size:1.05cqw}
#ay-elegant-home .aeh-logo .aeh-native-content{justify-content:flex-start;gap:.5cqw}
#ay-elegant-home .aeh-logo .aeh-native-content>img{width:3.5cqw;height:3.5cqw;object-fit:contain}
#ay-elegant-home .aeh-logo strong{font:800 2.6cqw/1 Arial,sans-serif;letter-spacing:-.12cqw}
#ay-elegant-home .aeh-logo strong span{color:#f56528}
#ay-elegant-home .aeh-nav-nearby svg{width:1.4cqw;height:1.4cqw;color:#f48442}
#ay-elegant-home .aeh-search .aeh-native-content,#ay-elegant-home .aeh-theme .aeh-native-content{background:#fffdf8;border-radius:50%}
#ay-elegant-home .aeh-search svg,#ay-elegant-home .aeh-theme svg{width:2cqw;height:2cqw}
#ay-elegant-home .aeh-login .aeh-native-content{background:linear-gradient(110deg,#ff801c,#ff551e);border-radius:4cqw;color:#fff;font-size:1.15cqw;gap:.75cqw}
#ay-elegant-home .aeh-hero-cta .aeh-native-content,#ay-elegant-home .aeh-shelter-cta .aeh-native-content,#ay-elegant-home .aeh-map-cta .aeh-native-content{background:linear-gradient(110deg,#ff801c,#ff551e);color:#fff;border-radius:4cqw;box-shadow:0 0 0 .2cqw #ff6b22}
#ay-elegant-home .aeh-all-animals .aeh-native-content{background:#fffaf3;font-size:1.15cqw;box-shadow:0 0 0 .2cqw #fffaf3}
#ay-elegant-home .aeh-all-animals svg,#ay-elegant-home .aeh-stories-cta svg{color:#e96d30}
#ay-elegant-home .aeh-shelter-cta .aeh-native-content,#ay-elegant-home .aeh-map-cta .aeh-native-content,#ay-elegant-home .aeh-stories-cta .aeh-native-content{font-size:1.2cqw}
#ay-elegant-home .aeh-stories-cta .aeh-native-content{border:1px solid #e5904a;border-radius:4cqw;background:#fff8ed;box-shadow:0 0 0 .2cqw #fff8ed}
#ay-elegant-home .aeh-hit:hover .aeh-native-content{filter:brightness(.97)}
#ay-elegant-home .aeh-hit:focus-visible{outline:3px solid #a94016;outline-offset:4px}
}

/* Fail closed on mobile and during stylesheet loading: no duplicate artwork controls. */
#ay-elegant-home .aeh-hit{overflow:hidden}
#ay-elegant-home .aeh-native-content[hidden]{display:none!important}
@media(min-width:701px){#ay-elegant-home .aeh-native-content[hidden]{display:flex!important}}
@media(max-width:700px){#ay-elegant-home .aeh-native-content,#ay-elegant-home .aeh-native-content *{display:none!important}}

/* Keep the original illustrated brand in place: no second logo at any width. */
#ay-elegant-home .aeh-logo{overflow:hidden!important}
#ay-elegant-home .aeh-logo>*{display:none!important}
#ay-elegant-home .aeh-navigation:before{display:none!important}
@media(min-width:701px){
#ay-elegant-home .aeh-navigation .aeh-native-content{background:#fffaf3}
#ay-elegant-home .aeh-navigation .aeh-search .aeh-native-content,#ay-elegant-home .aeh-navigation .aeh-theme .aeh-native-content{background:#fffdf8}
#ay-elegant-home .aeh-navigation .aeh-login .aeh-native-content{background:linear-gradient(110deg,#ff801c,#ff551e)}
}
/* Home gallery: preserve the whole animal inside the existing image viewport. */
#ay-elegant-home .aeh-card .aeh-photo{display:block;width:100%!important;height:100%!important;max-width:100%!important;max-height:100%!important;min-width:0;min-height:0;object-fit:contain!important;object-position:center center!important;box-sizing:border-box;padding:4px;background:#fffdf8;align-self:stretch;justify-self:stretch;border-radius:inherit}
html[data-theme=dark] #ay-elegant-home .aeh-card .aeh-photo{background:#062630}

#ay-elegant-home .aeh-guide-menu summary{padding:12px;cursor:pointer;font:14px Arial;color:inherit}#ay-elegant-home .aeh-guide-menu>div{margin:0 4px 6px 12px;border-left:2px solid #ff702b;padding-left:6px}#ay-elegant-home #aeh-menu-panel .aeh-guide-menu a{font-size:13px;line-height:1.4;max-width:260px}html[data-theme="dark"] #ay-elegant-home .aeh-guide-menu summary{color:#fffaf0}

/* v278: explicit dark disclosure surface and label, closed and expanded. */
html[data-theme=dark] #ay-elegant-home #aeh-menu-panel .aeh-guide-menu>summary{display:list-item;background:#062630!important;color:#fff4e4!important;opacity:1;visibility:visible;-webkit-text-fill-color:#fff4e4}
html[data-theme=dark] #ay-elegant-home #aeh-menu-panel .aeh-guide-menu>summary::marker{color:#ffb76b}
html[data-theme=dark] #ay-elegant-home #aeh-menu-panel .aeh-guide-menu>summary:hover,html[data-theme=dark] #ay-elegant-home #aeh-menu-panel .aeh-guide-menu>summary:focus-visible{background:#103440!important;color:#fff4e4!important}

/* Compact legal footer, outside the artwork coordinate system. */
#ay-legal-footer{box-sizing:border-box;position:relative;max-width:1600px;margin:0 auto;padding:14px clamp(18px,5vw,72px);background:#fffaf3;color:#635f56;border-top:1px solid #e6dfd3;font:12px/1.5 Arial,sans-serif}
#ay-legal-footer .ay-legal-inner{display:flex;align-items:center;justify-content:space-between;gap:12px 24px;flex-wrap:wrap}
#ay-legal-footer .ay-legal-brand{font-weight:700;color:#393e32;white-space:nowrap}#ay-legal-footer .ay-legal-brand>span{color:#c64b20}#ay-legal-footer small{font-size:11px;font-weight:400;color:#635f56;margin-left:12px}
#ay-legal-footer nav{display:flex;align-items:center;gap:4px 20px;flex-wrap:wrap}#ay-legal-footer a{display:inline-flex;align-items:center;min-height:32px;color:inherit;text-decoration:none;text-underline-offset:4px}#ay-legal-footer a:hover{text-decoration:underline;color:#a83f1a}#ay-legal-footer a:focus-visible{outline:2px solid #c64b20;outline-offset:3px;border-radius:3px}
body:has(#ay-elegant-home[hidden]) #ay-legal-footer{display:none}
html[data-theme="dark"] #ay-legal-footer{background:#1e2823;border-color:#3c4940;color:#d5d6cd}html[data-theme="dark"] #ay-legal-footer .ay-legal-brand{color:#f3eee4}html[data-theme="dark"] #ay-legal-footer .ay-legal-brand>span{color:#ffa36c}html[data-theme="dark"] #ay-legal-footer small{color:#d5d6cd}html[data-theme="dark"] #ay-legal-footer a:hover{color:#ffa36c}
@media(max-width:600px){#ay-legal-footer{padding:10px 18px}#ay-legal-footer .ay-legal-inner{gap:4px}#ay-legal-footer .ay-legal-brand{width:100%}#ay-legal-footer nav{gap:0 16px;font-size:11px}#ay-legal-footer a{min-height:32px}}


/* v14: navigation above the animal carousel; theme-aware image loading. */
#ay-elegant-home .aeh-pager{top:calc(39.25% - 24px);min-height:18px;max-width:90%;padding:3px 0;background:transparent!important}
#ay-elegant-home .aeh-pager button{min-height:8px;height:8px}
#ay-elegant-home .aeh-pager button:focus-visible{outline:2px solid #f36c2c;outline-offset:3px}
#ay-elegant-home .aeh-animal-overlay,#ay-elegant-home .aeh-grid,#ay-elegant-home .aeh-photo-state{background:#fff}
#ay-elegant-home .aeh-photo-state{position:relative;min-width:0;min-height:0;overflow:hidden}
#ay-elegant-home .aeh-photo-state .aeh-photo{width:100%;height:100%}
#ay-elegant-home .aeh-photo-state.is-loading .aeh-photo{opacity:0}
#ay-elegant-home .aeh-photo-status,#ay-elegant-home .aeh-loading{color:#ef6a25;font:700 clamp(11px,.9cqw,13px)/1.4 Nunito,Arial,sans-serif;background:#fff;text-align:center;overflow-wrap:anywhere}
#ay-elegant-home .aeh-photo-status{position:absolute;inset:0;display:grid;place-items:center;padding:12px;pointer-events:none}
#ay-elegant-home .aeh-photo-status[hidden]{display:none!important}
html[data-theme=dark] #ay-elegant-home :is(.aeh-animal-overlay,.aeh-grid,.aeh-photo-state,.aeh-photo-status,.aeh-loading){background:#001923!important}
html[data-theme=dark] #ay-elegant-home :is(.aeh-photo-status,.aeh-loading){color:#fff!important}
@container aeh (max-width:700px){#ay-elegant-home .aeh-pager{top:calc(40.1% - 24px)}}
/* Hide the pagination marks baked into the original artwork below the gallery. */
#ay-elegant-home .aeh-animal-overlay::after{content:"";position:absolute;top:100%;left:30%;width:40%;height:max(16px,1.5cqw);background:#fffaf3;pointer-events:none}
html[data-theme=dark] #ay-elegant-home .aeh-animal-overlay::after{background:#001923}

/* v17: restore centered controls below the gallery. */
#ay-elegant-home .aeh-animal-overlay>.aeh-pager{position:absolute;left:50%;top:calc(100% + 3px)!important;bottom:auto!important;transform:translateX(-50%);width:max-content;max-width:calc(100% - 24px);min-height:12px;padding:2px 0;margin:0;z-index:4}
#ay-elegant-home .aeh-animal-overlay>.aeh-pager button{height:5px;min-height:5px}
/* v376: compact progress labels; failures always offer a way forward. */
#ay-elegant-home .aeh-photo-status{font-size:clamp(9px,.7cqw,11px);font-weight:600;padding:6px;line-height:1.35}
#ay-elegant-home .aeh-loading{font-size:clamp(11px,1cqw,14px);gap:8px;align-content:center;padding:8px}
#ay-elegant-home .aeh-retry,#ay-elegant-home .aeh-browse{display:inline-block;max-width:100%;padding:6px 12px;border:1px solid #dfcdb9;border-radius:20px;background:#fffaf4;color:#8c431e;font:700 clamp(11px,.9cqw,13px)/1.3 Nunito,Arial,sans-serif;text-decoration:none;cursor:pointer}
#ay-elegant-home .aeh-retry:focus-visible,#ay-elegant-home .aeh-browse:focus-visible{outline:3px solid #b65c29;outline-offset:2px}
html[data-theme=dark] #ay-elegant-home .aeh-retry,html[data-theme=dark] #ay-elegant-home .aeh-browse{background:#15353b;color:#fff;border-color:#708b8f}
