/* Shared finishing rules, loaded after the legacy styles on every route. */
html[data-theme="night"] .unified-page{
 --hope:#9dcbdc;--hope-dark:#b5dce9;--teal:#a4d0dc;--teal-dark:#b6dce5;
 --line:#526d83;--divider:#526d83;--cocoa:#7898af;--muted:#bed0dd;
}
html[data-theme="night"] .unified-page .eyebrow{color:#a8d0e1!important}
html[data-theme="night"] .unified-page .section-head::after{background:#8cbacd!important}
html[data-theme="night"] .unified-page .help-card::after{background:#91bfd314;border-color:#82adc0!important}
.unified-page[data-page="rescue.html"] .help-card{transform:none!important}
.unified-page[data-page="rescue.html"] .help-card h3{padding-right:42px;font-size:clamp(23px,2.2vw,32px)}

/* Restore the separate, solid cellar rather than continuing the paper texture. */
body .cellar,body.unified-page .cellar{background:#1c1a19!important;border-top:0!important;color:#f5ebdd!important;padding:58px 24px 26px}
body .cellar :is(h2,h3,p,a,span){color:#f5ebdd!important}
body .cellar .cellar__bottom{border-color:#514942;color:#c7b8aa!important}
body .cellar::before,body .cellar::after{content:none!important}

/* Keep the entire supplied patch visible, reserving space for its sewn icon. */
.textile.textile--rescue,.textile.textile--medkit,.textile.textile--urgent{
 width:300px;max-width:100%;min-height:0;height:auto;aspect-ratio:3.6;
 padding:12px 0;--patch-size:100% 100%;--patch-position:center;
 background-size:contain!important;border-radius:0!important;clip-path:none!important;
 grid-template-columns:25% minmax(0,66%) 9%;font-size:16px;line-height:1.15;
 filter:none!important;box-shadow:none!important;text-shadow:none!important;
}
.textile.textile--rescue{--patch:url('../assets/design/btn-rescue-protocol-canvas-day_default.webp');--patch-ink:#163139}
html[data-theme="night"] .textile.textile--rescue{--patch:url('../assets/design/btn-rescue-protocol-canvas-night_default.webp');--patch-ink:#172b3e}
.textile.textile--medkit{--patch:url('../assets/design/btn-medkit-linen_default.webp');--patch-ink:#30251f}
.textile.textile--urgent{--patch:url('../assets/design/btn-urgent-rescue-patch_default.webp');--patch-ink:#fff3df}
.unified-page[data-page="rescue.html"] .textile{width:300px;min-height:0}
.unified-page[data-page="rescue.html"] .rescue-hero .container{max-width:1180px!important;grid-template-columns:minmax(0,1.1fr) minmax(0,1fr)!important;gap:40px;align-items:center}
.unified-page[data-page="rescue.html"] .rescue-art{width:100%!important;height:auto!important;min-height:0!important;display:block!important}
.unified-page[data-page="rescue.html"] .rescue-art::after{content:none!important}
.unified-page[data-page="rescue.html"] .hero-actions{flex-wrap:wrap;gap:10px}
@media(max-width:750px){.unified-page[data-page="rescue.html"] .rescue-hero .container{grid-template-columns:1fr!important}.unified-page[data-page="rescue.html"] .rescue-art{max-width:480px;margin:auto}}
.textile.textile--donate{--patch:url('../assets/design/btn-donate-candle-velour.webp')}
.copy-actions{display:flex;flex-wrap:nowrap;gap:10px;width:100%;align-items:center}
.share-card .copy-actions .textile,.unified-page .share-card .copy-actions .textile{
 width:215px;max-width:calc(50% - 5px);min-width:0;min-height:62px;
 font-size:14px;line-height:1.2;padding:10px 0;flex:0 1 215px;
 grid-template-columns:28% minmax(0,63%) 9%;text-shadow:none!important;
}
.share-card .textile--copy{--patch:url('../assets/design/btn-copy-text-denim-day-s.webp');--patch-ink:#27333b;color:#27333b!important}
.share-card .textile--social{--patch:url('../assets/design/btn-social-denim-day.webp');--patch-ink:#fff3d8;color:#fff3d8!important}
html[data-theme="night"] .share-card .textile--social{--patch:url('../assets/design/btn-social-denim-night.webp');--patch-ink:#182e42;color:#182e42!important}
body .share-card{padding:22px;border:1px solid #b9a78e;border-radius:16px;background:#f8efdD;color:#302820;box-shadow:none}
body .share-card [data-share-text]{padding:0 0 18px;margin:0 0 12px;border-bottom:1px solid #b9a78e;line-height:1.65;font-family:Georgia,serif;font-style:italic;color:inherit!important}
html[data-theme="night"] body #share .share-card{background:#dce6ed!important;color:#172b3b!important;border-color:#91aaba!important}
html[data-theme="night"] body #share .share-card [data-share-text]{color:#172b3b!important;border-color:#91aaba}
body #share .copy-actions .textile{background-size:108% auto!important;background-position:center!important}
body #share .copy-actions .textile--copy{color:#27333b!important;--patch-ink:#27333b}
.contact-socials{display:flex;align-items:center;gap:18px;margin-top:22px}
.contact-socials a{display:block;width:66px;height:66px}
.contact-socials img{width:100%;height:100%;object-fit:contain}
.sbp-qr{display:flex;align-items:center;gap:18px;margin:22px 0 0!important}
html[data-theme="night"] .unified-page .bank-card .copy-btn{background:#efd28b!important;color:#142c4b!important;box-shadow:none!important}
html[data-theme="night"] .unified-page .bank-card .copy-btn :is(span,svg,path){color:#142c4b!important;stroke:currentColor}
.tail-change .dts-tail-card{width:calc(100% - 24px);margin-inline:12px}
.sbp-qr a{flex:0 0 150px}
.sbp-qr img{display:block;width:150px;height:150px;object-fit:contain;background:white;border-radius:8px}
.unified-page .sbp-qr figcaption{margin:0;font:inherit;font-size:17px;text-align:left;color:var(--ink)}
.needs-live-grid{align-items:start}
.needs-live-grid .needs-category{border-radius:18px;padding:24px}
.needs-category>img{display:block;width:130px;height:130px;margin:0 auto 16px;object-fit:contain}
.needs-category h3{text-align:center;margin:0 0 22px}
.needs-category__list{padding-left:20px;margin:0;font-size:17px;line-height:1.6}
.needs-category__list li{margin-bottom:10px}
.needs-category__list small{display:block;color:var(--muted)}
.tail-card .animal-card-meta{display:flex;flex-wrap:wrap;gap:7px;margin:12px 0}
.tail-card .tag-pill{padding:5px 10px;border:1px solid var(--line);border-radius:20px;background:var(--paper-2);color:var(--ink);font-size:14px;line-height:1.3}
.tail-card h3{margin-bottom:8px}
.tail-card .animal-tags{display:flex;flex-wrap:wrap;gap:7px}
.load-more-wrap .textile{margin-inline:auto}

/* Crop only surrounding space in the layout; original artwork is unchanged. */
.art-window{position:relative!important;display:block;overflow:hidden;width:100%;margin:auto;max-height:none!important;isolation:isolate}
.art-window--chanel{aspect-ratio:970/830;max-width:500px}
.art-window--fanteska-day{aspect-ratio:1030/730;max-width:580px}
.art-window--fanteska-night{aspect-ratio:1000/960;max-width:510px}
body .art-window img,body.unified-page[data-page="rescue.html"] .rescue-art .art-window img{
 display:block!important;position:absolute!important;height:auto!important;max-width:none!important;max-height:none!important;
 object-fit:initial!important;transform:none!important;mask:none!important;filter:none!important;margin:0!important;border-radius:0!important;
}
body .art-window--chanel img{width:172.371%!important;left:-72.165%;top:-8.434%}
body .art-window--fanteska-day img,body.unified-page[data-page="rescue.html"] .rescue-art .art-window--fanteska-day img{width:140.583%!important;left:-29.126%;top:-30.137%}
body .art-window--fanteska-night img,body.unified-page[data-page="rescue.html"] .rescue-art .art-window--fanteska-night img{width:144.8%!important;left:0;top:-9.375%}
.unified-page .faq-heading .dts-faq-furry-question{width:190px;max-width:35vw}
@media(max-width:600px){
 .copy-actions{gap:6px}
 .share-card .copy-actions .textile,.unified-page .share-card .copy-actions .textile{font-size:12px;min-height:56px;max-width:calc(50% - 3px)}
 body .share-card{padding:16px}
 .sbp-qr a{flex-basis:120px}.sbp-qr img{width:120px;height:120px}
 .needs-live-grid .needs-category{padding:20px}
}
