
/* v24 hotfix overrides: cache-proof targeted corrections */
:root{--header-h-v24:84px;--stitch-light:rgba(255,248,240,.34);--stitch-dark:rgba(229,238,255,.26)}
html,body{margin:0!important;padding:0!important}
body{padding-top:0!important;overflow-x:hidden!important}

/* Header: sticky, centered, no phantom gap */
.site-header{
  position:sticky!important;
  top:0!important;
  left:auto!important;
  right:auto!important;
  inset:auto!important;
  margin:0!important;
  transform:none!important;
  z-index:3000!important;
}
.site-header::before,.site-header::after{content:none!important;display:none!important}
.header-inner{
  min-height:var(--header-h-v24)!important;
  height:auto!important;
  display:grid!important;
  grid-template-columns:auto auto minmax(0,1fr) auto!important;
  align-items:center!important;
  gap:14px!important;
  padding-block:8px!important;
}
.theme-toggle,.logo-link,.header-help{align-self:center!important}
.logo-link{min-width:auto!important}
.site-logo{width:108px!important;height:auto!important}
.site-nav{
  margin:0!important;
  flex:none!important;
  display:flex!important;
  justify-content:center!important;
  align-items:center!important;
  gap:8px!important;
  flex-wrap:nowrap!important;
  min-width:0!important;
}
.site-nav a{
  white-space:nowrap!important;
  word-spacing:normal!important;
  letter-spacing:0!important;
  line-height:1.1!important;
  padding:10px 12px!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
}
.header-help{
  margin-left:0!important;
  justify-self:end!important;
  flex:none!important;
}
main{padding-top:0!important}
@media (max-width:1180px){
  .header-inner{display:flex!important;min-height:76px!important;padding-block:0!important}
  .site-nav{justify-content:flex-start!important}
}

/* Remove image feather masks / blur for now */
.hero-poster-wrap.album-hero-art img,
.album-art>img,
.side-scene>img,
.donation-scene img,
.dream-collage img,
.mini-gallery img,
.dream-grid img,
.team-photo img,
.share-art img,
.fish-sky img,
.rescue-art img,
.hero-photo img,
.animal-card img,
.animal-modal-art img{
  -webkit-mask-image:none!important;
  mask-image:none!important;
  clip-path:none!important;
  filter:none!important;
  opacity:1!important;
}
.team-photo,
.team-photo img{border-radius:24px!important}
.team-photo{height:320px!important;overflow:hidden!important;background:transparent!important;border:1px solid var(--line)!important}
.team-card{display:flex!important;flex-direction:column!important;align-items:stretch!important}
.team-card h3{
  display:flex!important;
  flex-direction:column!important;
  gap:2px!important;
  min-height:4.2em!important;
  margin-bottom:12px!important;
}
.team-card h3 span{display:block!important}
.team-card .role{min-height:4.6em!important}
.poem-author{white-space:nowrap!important}

/* Stats block: no dark background/panel, no extra top space, always 5 tiles desktop */
#trust{padding-bottom:18px!important}
.stats-section{
  background:transparent!important;
  color:inherit!important;
  padding-top:0!important;
  padding-bottom:42px!important;
  margin:0!important;
  border:0!important;
  box-shadow:none!important;
  position:relative!important;
  overflow:visible!important;
}
.stats-section::before,.stats-section::after,
.stats-grid.patchwork-stats::before,.stats-grid.patchwork-stats::after{content:none!important;display:none!important}
.stats-grid.patchwork-stats,
html[data-theme="dark"] .stats-grid.patchwork-stats{
  width:min(100% - 40px,1180px)!important;
  max-width:1180px!important;
  margin:0 auto!important;
  padding:0!important;
  display:grid!important;
  grid-template-columns:repeat(5,minmax(0,1fr))!important;
  gap:18px!important;
  background:transparent!important;
  border:0!important;
  box-shadow:none!important;
  border-radius:0!important;
  overflow:visible!important;
}
.stats-grid.patchwork-stats>div{display:flex!important}
.stats-grid.patchwork-stats>div:nth-child(n+6){display:none!important}
@media (max-width:900px){.stats-grid.patchwork-stats{grid-template-columns:repeat(3,minmax(0,1fr))!important}}
@media (max-width:640px){.stats-grid.patchwork-stats{grid-template-columns:repeat(2,minmax(0,1fr))!important}}
@media (max-width:420px){.stats-grid.patchwork-stats{grid-template-columns:1fr!important}}

/* Buttons: stitched contours */
.btn-catalog-all,.btn-write-contact,.btn-adopt-write,.btn-curator-write,.btn-rescue-open,.btn-rescue-medkit,.header-help{
  position:relative!important;
  overflow:hidden!important;
}
.btn-catalog-all::before,.btn-write-contact::before,.btn-adopt-write::before,.btn-curator-write::before,.btn-rescue-open::before,.btn-rescue-medkit::before,.header-help::before{
  content:""!important;
  position:absolute!important;
  inset:9px!important;
  border-radius:16px!important;
  border:2px dashed rgba(255,255,255,.28)!important;
  pointer-events:none!important;
  background:none!important;
}
html:not([data-theme="dark"]) .btn-curator-write,
html:not([data-theme="dark"]) .btn-adopt-write{
  background:#8A624B!important;
  border:1px solid #6D4D3D!important;
  color:#FFF8F0!important;
  box-shadow:0 7px 0 rgba(117,84,66,.18),0 12px 22px rgba(138,98,75,.16)!important;
}
html:not([data-theme="dark"]) .btn-curator-write::before,
html:not([data-theme="dark"]) .btn-adopt-write::before{border-color:var(--stitch-light)!important}
html[data-theme="dark"] .btn-curator-write,
html[data-theme="dark"] .btn-adopt-write{
  background:#4F76B8!important;
  border:1px solid #3E619C!important;
  color:#FFF9F0!important;
  box-shadow:0 8px 0 rgba(33,49,77,.24),0 12px 26px rgba(75,106,166,.16)!important;
}
html[data-theme="dark"] .btn-curator-write::before,
html[data-theme="dark"] .btn-adopt-write::before{border-color:var(--stitch-dark)!important}
.btn-rescue-medkit::before,.header-help::before,.btn-catalog-all::before,.btn-write-contact::before{border-style:dashed!important}

/* Curator page: no bank card in final block */
.curator-contact-note{
  background:var(--card)!important;
  border:1px solid var(--line)!important;
  border-radius:28px!important;
  padding:28px!important;
  box-shadow:var(--soft-shadow)!important;
  display:grid!important;
  gap:12px!important;
  align-content:start!important;
}
.curator-contact-note h3{margin-bottom:4px!important}
.curator-contact-note p{color:var(--muted)!important;margin:0!important}
body[data-page="curator.html"] .split-card{align-items:start!important}

/* Ensure buttons stay inside cards / share blocks */
.share-note .copy-btn--share{display:inline-flex!important;align-self:flex-start!important}
.zero-card .btn-curator-cta{align-self:flex-start!important}

/* Keep section title / buttons compact */
.page-hero.section-pad{padding-top:60px!important;padding-bottom:60px!important}
