/* v383 · individual shelter card */
html body[data-ay-shelter-profile]{margin:0;height:100dvh!important;min-height:0!important;overflow:hidden!important;background:var(--ay-paper,#fff9ef)!important}
html body[data-ay-shelter-profile] #ay-elegant-public{height:100dvh!important;min-height:0!important;overflow:hidden!important;width:100%;background:var(--ay-paper,#fff9ef)}
html body[data-ay-shelter-profile] #ay-elegant-public>.app{position:static!important;transform:none!important;display:block!important;width:100%!important;max-width:1180px!important;height:100dvh!important;max-height:none!important;margin:auto!important;overflow:hidden!important;container:none!important;background:var(--ay-paper,#fff9ef)!important}
#ay-elegant-public #ay-shelter-profile-v19{--sp-orange:#dc571b;display:flex;flex-direction:column;height:100%;min-height:0;padding:0;color:var(--ay-ink,#382c24);background:var(--ay-paper,#fff9ef);font:14px/1.4 'AY Web',Nunito,Arial,sans-serif}
#ay-shelter-profile-v19 *{box-sizing:border-box}#ay-shelter-profile-v19 [hidden]{display:none!important}#ay-shelter-profile-v19 :is(a,button,select){font:inherit}#ay-shelter-profile-v19 a{color:inherit;text-decoration:none}#ay-shelter-profile-v19 button{cursor:pointer}#ay-shelter-profile-v19 :is(button,a,select):focus-visible{outline:3px solid var(--sp-orange);outline-offset:3px}#ay-shelter-profile-v19 :is(h1,h2,h3){font-family:Georgia,serif!important;color:var(--ay-ink,#382c24)!important;letter-spacing:-.025em;margin:0;font-weight:600}#ay-shelter-profile-v19 p{margin:0}
#ay-shelter-profile-v19 .sp-topbar{display:flex;align-items:center;gap:18px;min-height:48px;padding:7px 24px;border-bottom:1px solid var(--ay-line,#e9ddcf);flex:none;background:var(--ay-paper,#fff9ef)}#ay-shelter-profile-v19 .sp-topbar .brand{position:static!important;transform:none!important;display:flex!important;align-items:center;gap:6px;font:24px Georgia,serif;color:var(--sp-orange);margin:0 auto 0 0;width:auto;height:auto}#ay-shelter-profile-v19 .brand img{width:28px;height:28px}#ay-shelter-profile-v19 .brand em{font-style:normal}#ay-shelter-profile-v19 .sp-topbar :is(button,.sp-back){display:grid;place-items:center;background:transparent;border:0;color:var(--ay-muted,#70675e);width:36px;height:36px;font-size:23px;padding:0}
#ay-shelter-profile-v19 .sp-hero{display:block!important;position:relative;flex:none;background:transparent;padding:0;min-height:0;height:auto;overflow:visible}#ay-shelter-profile-v19 .sp-banner{height:clamp(100px,19dvh,190px);background:#efe9db url("https://ptdtplxvmqipppxqbcml.supabase.co/storage/v1/object/public/adoptaya-web-static/v476/430814c947d890b9e192215196514f0eb14e2613e8b3dcbb8a6cd02d449316ee.webp") center 52%/cover no-repeat;border-radius:0 0 45% 5%/0 0 10% 4%}
#ay-shelter-profile-v19 .sp-identity{position:relative;display:flex!important;flex-direction:column;align-items:center;text-align:center;gap:5px;padding:0 24px 12px;width:100%;height:auto;min-height:0;margin-top:-45px;z-index:1}#ay-shelter-profile-v19 .sp-logo{display:grid;place-items:center;background:var(--ay-card,#fffaf1);border:2px solid var(--sp-orange);outline:4px solid var(--ay-paper,#fff9ef);border-radius:50%;width:88px;height:88px;padding:9px;flex:none;overflow:hidden;margin:0 0 5px}#ay-shelter-profile-v19 .sp-logo img{width:100%;height:100%;object-fit:contain;border-radius:50%}#ay-elegant-public #ay-shelter-profile-v19 h1{font-size:clamp(22px,2.6vw,34px);line-height:1.12;margin:0;max-width:100%;overflow-wrap:anywhere;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}#ay-shelter-profile-v19 .sp-verified{display:inline-grid;place-items:center;width:20px;height:20px;background:#77976d;color:white;font:700 14px Arial;border-radius:50%;vertical-align:middle;margin-left:8px}#ay-shelter-profile-v19 .sp-adoption-type,#ay-shelter-profile-v19 .sp-location{font-size:12px;color:var(--ay-muted,#756b60)}#ay-shelter-profile-v19 .sp-intro{max-width:700px;font-size:13px;color:var(--ay-muted,#756b60);display:-webkit-box;-webkit-line-clamp:1;-webkit-box-orient:vertical;overflow:hidden;margin:4px 0}#ay-shelter-profile-v19 .sp-actions{display:flex;align-items:center;justify-content:center;gap:10px 24px;flex-wrap:wrap;margin-top:3px}#ay-shelter-profile-v19 .sp-button{display:inline-flex;justify-content:center;align-items:center;min-height:40px;background:linear-gradient(120deg,#e86b20,#df4c18);color:white;border:1px solid #d75c20;border-radius:9px;padding:9px 24px}#ay-shelter-profile-v19 .sp-quick-link{font-size:12px;color:var(--ay-muted,#6f655b);overflow-wrap:anywhere}#ay-shelter-profile-v19 .sp-info-button{background:transparent;border:0;text-decoration:underline;color:var(--sp-orange);padding:8px;font-size:12px}
#ay-shelter-profile-v19 .sp-content{display:flex;flex:1;flex-direction:column;min-height:0;padding:0 28px 10px}#ay-shelter-profile-v19 .sp-tabs{display:flex;gap:10px;flex:none;padding:7px 0 10px;border:0;background:none}#ay-shelter-profile-v19 .sp-tabs button{border:0;border-bottom:2px solid transparent;border-radius:7px 7px 0 0;padding:9px 16px;min-height:40px;background:var(--ay-soft,#f6eddf);color:var(--ay-ink,#382c24)}#ay-shelter-profile-v19 .sp-tabs button[aria-selected=true]{border-bottom-color:var(--sp-orange);color:var(--sp-orange);background:transparent}#ay-shelter-profile-v19 .sp-gallery{display:flex;flex-direction:column;flex:1;min-height:0;margin:0;padding:0;background:transparent}#ay-shelter-profile-v19 .sp-gallery-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;padding-bottom:10px;flex:none}#ay-elegant-public #ay-shelter-profile-v19 h2{font-size:25px;line-height:1.2}#ay-shelter-profile-v19 .sp-filter{display:flex;align-items:center;gap:6px;font-size:12px}#ay-shelter-profile-v19 select{min-height:32px;border:1px solid var(--ay-line,#e6dbce);border-radius:8px;background:var(--ay-card,#fffcf7);color:inherit;padding:4px 8px}
#ay-shelter-profile-v19 .sp-animal-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));grid-template-rows:repeat(2,minmax(0,1fr));gap:12px;flex:1;min-height:0;align-content:start}#ay-elegant-public #ay-shelter-profile-v19 .animal-card{position:relative;display:flex;flex-direction:column;width:100%;height:100%;min-width:0;min-height:0;padding:0;overflow:hidden;border:1px solid var(--ay-line,#e6dbce);border-radius:10px;background:var(--ay-card,#fffcf7);box-shadow:0 3px 8px #382c240a}#ay-elegant-public #ay-shelter-profile-v19 .ay-card-scene{position:relative;display:block;flex:1;min-height:0;width:100%;height:auto;aspect-ratio:auto;overflow:hidden;background:var(--ay-soft,#f2e9dc)}#ay-elegant-public #ay-shelter-profile-v19 .ay-card-scene img{position:static;display:block;width:100%;height:100%;max-height:none;object-fit:cover;transform:none;border-radius:0}#ay-elegant-public #ay-shelter-profile-v19 .ay-composed-scene img{object-fit:contain}#ay-elegant-public #ay-shelter-profile-v19 .animal-info{position:relative;display:block;flex:none;padding:5px 30px 5px 10px;min-height:30px;height:auto;background:var(--ay-card,#fffcf7)}#ay-elegant-public #ay-shelter-profile-v19 .animal-name{font:17px/1.2 Georgia,serif;margin:0;display:block;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;color:inherit}#ay-shelter-profile-v19 .animal-meta{display:none!important}#ay-elegant-public #ay-shelter-profile-v19 .card-arrow{position:absolute;right:9px;top:7px;width:16px;height:16px;background:url("https://ptdtplxvmqipppxqbcml.supabase.co/storage/v1/object/public/adoptaya-web-static/v294/69c51ed33e8d4f309a848fbabe3294ffb418f87a9d9fa85d29ff72fa6dd17fea.svg") center/contain no-repeat;font-size:0;border:0}#ay-shelter-profile-v19 .adopted-label{display:none!important}#ay-shelter-profile-v19 .sp-empty{grid-column:1/-1;padding:16px;color:var(--ay-muted,#756b60);line-height:1.6;font-size:13px}#ay-shelter-profile-v19 .sp-pagination{display:flex;justify-content:center;align-items:center;gap:16px;flex:none;padding:6px 0 0;font-size:11px;background:none;border:0}#ay-shelter-profile-v19 .sp-pagination button{border:1px solid var(--ay-line,#e6dbce);border-radius:50%;background:var(--ay-card,#fffaf1);color:var(--sp-orange);width:30px;height:30px;padding:0}#ay-shelter-profile-v19 button:disabled{opacity:.35;cursor:default}
#ay-shelter-profile-v19 dialog{max-width:560px;width:calc(100% - 28px);max-height:85dvh;overflow:auto;border:1px solid var(--ay-line,#e6dbce);border-radius:20px;padding:26px;background:var(--ay-card,#fffcf7);color:inherit}#ay-shelter-profile-v19 dialog::backdrop{background:#17232988}#ay-shelter-profile-v19 [data-sp-close]{float:right;border:0;background:none;font-size:26px;color:inherit}#ay-shelter-profile-v19 dialog p{margin:14px 0;line-height:1.7}#ay-shelter-profile-v19 .sp-story{white-space:pre-line;overflow-wrap:anywhere}#ay-shelter-profile-v19 .sp-contact-links{display:grid;gap:10px;margin:15px 0}#ay-shelter-profile-v19 .fp-contact-item{display:flex;align-items:center;gap:10px;border:1px solid var(--ay-line,#e6dbce);border-radius:10px;padding:12px;overflow-wrap:anywhere}#ay-shelter-profile-v19 .ay-contact-icon{width:24px;height:24px;flex:none;color:var(--sp-orange)}#ay-shelter-profile-v19 .fp-contact-item small{display:block}#ay-shelter-profile-v19 .sp-share-status:empty{display:none}#ay-shelter-profile-v19 .sp-share-status{font-size:12px;text-align:center}
html[data-theme=dark] #ay-shelter-profile-v19 .sp-banner{filter:brightness(.55) saturate(.8)}
@media(max-width:700px){#ay-shelter-profile-v19 .sp-topbar{min-height:48px;padding:4px 12px}#ay-shelter-profile-v19 .sp-topbar .brand{font-size:22px}#ay-shelter-profile-v19 .sp-banner{height:clamp(105px,18dvh,165px);background-position:44% center}#ay-shelter-profile-v19 .sp-identity{margin-top:-36px;padding:0 16px 7px;gap:4px}#ay-shelter-profile-v19 .sp-logo{width:72px;height:72px;padding:7px;margin-bottom:3px}#ay-elegant-public #ay-shelter-profile-v19 h1{font-size:24px}#ay-shelter-profile-v19 .sp-intro{-webkit-line-clamp:2;font-size:11px;margin:3px 0}#ay-shelter-profile-v19 .sp-actions{gap:3px 12px;width:100%}#ay-shelter-profile-v19 .sp-button{width:100%;min-height:38px;padding:8px 18px}#ay-shelter-profile-v19 .sp-quick-link{font-size:10px}#ay-shelter-profile-v19 .sp-info-button{font-size:10px;padding:4px}#ay-shelter-profile-v19 .sp-content{padding:0 16px 8px}#ay-shelter-profile-v19 .sp-tabs{padding:3px 0 7px}#ay-shelter-profile-v19 .sp-tabs button{font-size:12px;min-height:36px;padding:7px 12px}#ay-elegant-public #ay-shelter-profile-v19 h2{font-size:22px}#ay-shelter-profile-v19 .sp-gallery-heading{padding-bottom:7px}#ay-shelter-profile-v19 .sp-filter{font-size:10px}#ay-shelter-profile-v19 select{font-size:11px;min-height:28px}#ay-shelter-profile-v19 .sp-animal-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}#ay-elegant-public #ay-shelter-profile-v19 .animal-name{font-size:15px}}
@media(max-height:719px){#ay-shelter-profile-v19 .sp-animal-grid{grid-template-rows:minmax(0,1fr)}#ay-shelter-profile-v19 .sp-banner{height:85px}#ay-shelter-profile-v19 .sp-intro{display:none}#ay-shelter-profile-v19 .sp-logo{width:60px;height:60px}#ay-shelter-profile-v19 .sp-identity{margin-top:-30px}#ay-elegant-public #ay-shelter-profile-v19 h1{font-size:22px}}
@media(max-height:500px){html body[data-ay-shelter-profile],html body[data-ay-shelter-profile] #ay-elegant-public,html body[data-ay-shelter-profile] #ay-elegant-public>.app{height:auto!important;min-height:100dvh!important;overflow:auto!important}#ay-shelter-profile-v19 .sp-animal-grid{min-height:170px}}

/* v384: natural document scrolling and a logo-led cover. */
html:has(body[data-ay-shelter-profile]){height:auto!important;overflow-y:auto!important}
html body[data-ay-shelter-profile]{height:auto!important;min-height:100dvh!important;overflow-x:hidden!important;overflow-y:auto!important}
html body[data-ay-shelter-profile] #ay-elegant-public,
html body[data-ay-shelter-profile] #ay-elegant-public>.app{height:auto!important;min-height:0!important;overflow:visible!important}
#ay-elegant-public #ay-shelter-profile-v19{height:auto;min-height:0;display:block}
#ay-shelter-profile-v19 .sp-banner{height:240px;border-radius:0;background-position:center 45%;position:relative}
#ay-shelter-profile-v19 .sp-banner:after{content:'';position:absolute;inset:0;background:linear-gradient(0deg,var(--ay-paper,#fff9ef),transparent 55%)}
#ay-shelter-profile-v19 .sp-identity{margin-top:-100px;padding-bottom:24px;gap:10px}
#ay-shelter-profile-v19 .sp-logo{width:190px;height:190px;padding:8px;border-width:3px;outline-width:7px;box-shadow:0 8px 25px #382c241c}
#ay-shelter-profile-v19 .sp-content{display:block;padding-bottom:32px}
#ay-shelter-profile-v19 .sp-gallery{display:block}
#ay-shelter-profile-v19 .sp-animal-grid{flex:none;grid-template-rows:none;grid-auto-rows:auto;align-items:start}
#ay-elegant-public #ay-shelter-profile-v19 .animal-card{height:auto;min-height:0}
#ay-elegant-public #ay-shelter-profile-v19 .ay-card-scene{flex:none;height:auto;aspect-ratio:1/1}
#ay-elegant-public #ay-shelter-profile-v19 .ay-card-scene img{position:absolute;inset:0;width:100%;height:100%}
#ay-shelter-profile-v19 .sp-pagination{padding:20px 0 0}
@media(max-width:700px){
 #ay-shelter-profile-v19 .sp-banner{height:190px;background-position:42% center}
 #ay-shelter-profile-v19 .sp-identity{margin-top:-80px;padding-bottom:22px;gap:8px}
 #ay-shelter-profile-v19 .sp-logo{width:156px;height:156px;padding:7px}
 #ay-shelter-profile-v19 .sp-animal-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px 10px;grid-template-rows:none}
 #ay-elegant-public #ay-shelter-profile-v19 .animal-info{padding:10px 28px 10px 10px}
 #ay-shelter-profile-v19 .sp-gallery-heading{padding:12px 0}
}
/* v385: logo remains live content, framed by the approved photograph. */
#ay-shelter-profile-v19 .sp-hero{--sp-cover-width:min(100vw,820px)}
#ay-shelter-profile-v19 .sp-banner{height:auto;aspect-ratio:3/2;max-width:820px;margin:auto;background-image:url("https://ptdtplxvmqipppxqbcml.supabase.co/storage/v1/object/public/adoptaya-web-static/v476/35a7020f885a410abf9bf8e8e32587c95b4da391a082d9b1b7f263a8c1bf203c.webp");background-size:100% 100%;background-position:center;border-radius:0}
#ay-shelter-profile-v19 .sp-banner:after{display:none}
#ay-shelter-profile-v19 .sp-identity{position:static;margin-top:0;padding-top:0}
#ay-shelter-profile-v19 .sp-logo{position:absolute;z-index:2;left:50%;top:calc(var(--sp-cover-width) * .357);transform:translateX(-50%);width:calc(var(--sp-cover-width) * .305);height:calc(var(--sp-cover-width) * .305);padding:0;border:0;outline:0;box-shadow:none;background:transparent;margin:0}
#ay-shelter-profile-v19 .sp-logo img{width:100%;height:100%;object-fit:contain;border-radius:50%}
html[data-theme=dark] #ay-shelter-profile-v19 .sp-banner{filter:none}
@media(min-width:1180px){#ay-shelter-profile-v19 .sp-hero{--sp-cover-width:820px}}
/* v386: align the live emblem with the photographed badge interior. */
#ay-shelter-profile-v19 .sp-logo{top:calc(var(--sp-cover-width) * .312);width:calc(var(--sp-cover-width) * .292);height:calc(var(--sp-cover-width) * .292);background:#fffaf1;border-radius:50%;overflow:hidden}
/* v387: image first, live logo directly beneath the paws. */
body[data-ay-shelter-profile] #ay-site-header{display:none!important}
body[data-ay-shelter-profile]{padding-top:0!important}
#ay-shelter-profile-v19 .sp-topbar{position:absolute;z-index:5;inset:10px 12px auto;min-height:0;padding:0;border:0;background:none;justify-content:space-between;pointer-events:none}
#ay-shelter-profile-v19 .sp-topbar .brand{display:none!important}
#ay-shelter-profile-v19 .sp-topbar :is(button,.sp-back){pointer-events:auto;background:#fffaf1dd;border-radius:50%}
#ay-shelter-profile-v19 .sp-banner{background-image:url("https://ptdtplxvmqipppxqbcml.supabase.co/storage/v1/object/public/adoptaya-web-static/v476/3203df3f4cf3c3dacb60690f967027a62f78da38d6cc2b37f7c5c90081a0160f.webp")}
#ay-shelter-profile-v19 .sp-logo{top:calc(var(--sp-cover-width) * .285);width:calc(var(--sp-cover-width) * .39);height:calc(var(--sp-cover-width) * .39);background:transparent;border:0;outline:0}
#ay-shelter-profile-v19 .sp-banner:after{display:block;z-index:3;position:absolute;inset:0;content:'';background:url("https://ptdtplxvmqipppxqbcml.supabase.co/storage/v1/object/public/adoptaya-web-static/v476/3203df3f4cf3c3dacb60690f967027a62f78da38d6cc2b37f7c5c90081a0160f.webp") center/100% 100%;clip-path:polygon(0 0,100% 0,100% 37%,69% 37%,69% 52%,65% 53%,62% 49%,61% 45%,58% 46%,55% 44%,54% 42%,43% 42%,41% 48%,38% 52%,34% 54%,32% 52%,31% 48%,30% 43%,0 37%);pointer-events:none}
#ay-shelter-profile-v19 .sp-identity{padding-top:12px}
/* v388: preserve each shelter's original logo shape and proportions. */
#ay-shelter-profile-v19 .sp-logo{border-radius:0!important;overflow:visible!important;background:transparent!important;border:0!important;outline:0!important;box-shadow:none!important;display:flex;align-items:flex-start;justify-content:center}
#ay-shelter-profile-v19 .sp-logo img{border-radius:0!important;object-fit:contain!important;object-position:center top!important;width:100%;height:auto;max-height:100%;display:block}
/* v389: restore the main navigation; remove only the duplicate profile bar. */
body[data-ay-shelter-profile] #ay-site-header{display:block!important}
#ay-shelter-profile-v19 .sp-topbar{display:none!important}
