
/* === Final targeted fixes based on v26 + v21 menu + v29 stats emboss === */

/* Stable sticky header/menu */
.site-header{
  position:sticky!important;
  top:0!important;
  z-index:5000!important;
  margin:0!important;
  background:color-mix(in srgb,var(--paper) 88%,transparent)!important;
  backdrop-filter:blur(14px)!important;
  -webkit-backdrop-filter:blur(14px)!important;
  border-bottom:1px solid color-mix(in srgb,var(--line) 76%,transparent)!important;
}
.header-inner{
  min-height:84px!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:10px 0!important;
}
.theme-toggle{justify-self:start!important}
.logo-link{
  display:flex!important;
  align-items:center!important;
  width:102px!important;
  min-width:102px!important;
  max-width:102px!important;
  flex:0 0 102px!important;
  overflow:visible!important;
}
.site-logo{
  width:102px!important;
  max-width:102px!important;
  height:auto!important;
}
.site-nav{
  min-width:0!important;
  margin:0!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  gap:4px!important;
  flex-wrap:nowrap!important;
}
.site-nav a{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  flex:0 1 auto!important;
  min-width:0!important;
  white-space:nowrap!important;
  padding:10px 10px!important;
  border-radius:999px!important;
  font-size:clamp(13px,.84vw,16px)!important;
  line-height:1.14!important;
  letter-spacing:0!important;
  word-spacing:0!important;
}
.site-nav a br{display:none!important}
.site-nav a.is-active{
  background:color-mix(in srgb,var(--hope) 16%,var(--card))!important;
  color:var(--ink)!important;
}
html[data-theme="dark"] .site-nav a.is-active{
  background:rgba(241,208,107,.14)!important;
  color:#FFF6E8!important;
}
.site-nav a:hover,
.site-nav a:focus-visible{
  background:color-mix(in srgb,var(--hope) 12%,var(--card))!important;
}
html[data-theme="dark"] .site-nav a:hover,
html[data-theme="dark"] .site-nav a:focus-visible{
  background:rgba(241,208,107,.14)!important;
  color:#FFF7EC!important;
}
.site-nav a[href$="rescue.html"]{color:#E16F00!important}
.header-help{
  margin-left:8px!important;
  justify-self:end!important;
  white-space:nowrap!important;
}
@media (max-width: 1460px){
  .site-nav a{padding:10px 8px!important;font-size:14px!important}
  .logo-link,.site-logo{width:96px!important;min-width:96px!important;max-width:96px!important}
}
@media (max-width: 1320px){
  .header-inner{gap:10px!important}
  .site-nav a{padding:9px 7px!important;font-size:13px!important}
  .header-help{padding:12px 16px!important}
}
@media (max-width: 1180px){
  .header-inner{display:flex!important;gap:12px!important;min-height:76px!important}
  .logo-link,.site-logo{width:102px!important;min-width:102px!important;max-width:102px!important}
  .nav-toggle{display:block!important;margin-left:auto!important}
  .header-help{display:none!important}
  .site-nav{
    position:fixed!important;
    left:20px!important;
    right:20px!important;
    top:92px!important;
    z-index:5100!important;
    display:none!important;
    grid-template-columns:1fr!important;
    background:var(--card)!important;
    border:1px solid var(--line)!important;
    border-radius:24px!important;
    padding:14px!important;
    box-shadow:var(--shadow)!important;
  }
  .site-nav.is-open{display:grid!important}
  .site-nav a{
    width:100%!important;
    justify-content:flex-start!important;
    text-align:left!important;
    white-space:normal!important;
    font-size:16px!important;
    padding:12px 14px!important;
  }
}

/* Keep hero buttons in one line on desktop */
@media (min-width: 901px){
  .page-hero .hero-actions{flex-wrap:nowrap!important}
}

/* Clean patchwork stats with embossed day numbers */
.stats-section,
html[data-theme="dark"] .stats-section,
body .stats-section{
  background:transparent!important;
  background-color:transparent!important;
  background-image:none!important;
  box-shadow:none!important;
  border:0!important;
  padding:56px 0!important;
  margin:0!important;
  overflow:visible!important;
}
.stats-section::before,
.stats-section::after,
.stats-section .container::before,
.stats-section .container::after,
.stats-grid.patchwork-stats::before,
.stats-grid.patchwork-stats::after{content:none!important;display:none!important}
.stats-grid.patchwork-stats{
  width:min(100% - 40px,var(--container))!important;
  max-width:var(--container)!important;
  margin-inline:auto!important;
  display:grid!important;
  grid-template-columns:repeat(5,minmax(0,1fr))!important;
  gap:20px!important;
  padding:0!important;
  align-items:stretch!important;
  background:transparent!important;
  border:0!important;
  box-shadow:none!important;
  border-radius:0!important;
}
.stats-grid.patchwork-stats > div{
  position:relative!important;
  display:flex!important;
  flex-direction:column!important;
  align-items:center!important;
  justify-content:center!important;
  text-align:center!important;
  min-height:142px!important;
  padding:22px 16px 20px!important;
  border-radius:28px!important;
  border:0!important;
  overflow:hidden!important;
  box-shadow:8px 10px 0 rgba(0,0,0,.11)!important;
}
.stats-grid.patchwork-stats > div::after{
  content:""!important;
  position:absolute!important;
  inset:9px!important;
  border-radius:20px!important;
  border:2px dashed rgba(16,26,40,.20)!important;
  pointer-events:none!important;
}
.stats-grid.patchwork-stats > div:nth-child(1){background:#F1CC52!important;color:#7F5E12!important}
.stats-grid.patchwork-stats > div:nth-child(2){background:#8D79E6!important;color:#5B4AAE!important}
.stats-grid.patchwork-stats > div:nth-child(3){background:#D46798!important;color:#9B315F!important}
.stats-grid.patchwork-stats > div:nth-child(4){background:#4FB8A2!important;color:#2C7D6D!important}
.stats-grid.patchwork-stats > div:nth-child(5){background:#EDA43D!important;color:#9C5D10!important}
html:not([data-theme="dark"]) .stats-grid.patchwork-stats strong{
  display:block!important;
  font-size:clamp(30px,3.1vw,46px)!important;
  line-height:.95!important;
  margin:0 0 10px!important;
  position:relative!important;
  z-index:1!important;
  text-shadow:0 1px 0 rgba(255,255,255,.24), 0 -1px 0 rgba(0,0,0,.08)!important;
}
html:not([data-theme="dark"]) .stats-grid.patchwork-stats > div:nth-child(1) strong{color:#C79A22!important}
html:not([data-theme="dark"]) .stats-grid.patchwork-stats > div:nth-child(2) strong{color:#6B57CC!important}
html:not([data-theme="dark"]) .stats-grid.patchwork-stats > div:nth-child(3) strong{color:#B44773!important}
html:not([data-theme="dark"]) .stats-grid.patchwork-stats > div:nth-child(4) strong{color:#2E917C!important}
html:not([data-theme="dark"]) .stats-grid.patchwork-stats > div:nth-child(5) strong{color:#C77C1E!important}
html:not([data-theme="dark"]) .stats-grid.patchwork-stats span{
  display:block!important;
  font-size:16px!important;
  line-height:1.16!important;
  font-weight:900!important;
  margin:0!important;
  position:relative!important;
  z-index:1!important;
}
html[data-theme="dark"] .stats-grid.patchwork-stats > div{
  box-shadow:8px 10px 0 rgba(0,0,0,.28)!important;
}
html[data-theme="dark"] .stats-grid.patchwork-stats > div::after{border-color:rgba(9,26,51,.24)!important}
html[data-theme="dark"] .stats-grid.patchwork-stats strong,
html[data-theme="dark"] .stats-grid.patchwork-stats span{
  color:#081A33!important;
  text-shadow:none!important;
}
html[data-theme="dark"] .stats-grid.patchwork-stats strong{
  display:block!important;
  font-size:clamp(30px,3.1vw,46px)!important;
  line-height:.95!important;
  margin:0 0 10px!important;
}
html[data-theme="dark"] .stats-grid.patchwork-stats span{
  display:block!important;
  font-size:16px!important;
  line-height:1.16!important;
  font-weight:900!important;
}
@media (max-width: 1100px){
  .stats-grid.patchwork-stats{grid-template-columns:repeat(3,minmax(0,1fr))!important}
}
@media (max-width: 760px){
  .stats-grid.patchwork-stats{grid-template-columns:repeat(2,minmax(0,1fr))!important}
}

/* Day stitched buttons in Curators / Adopt, keep dark stitched versions */
html:not([data-theme="dark"]) .btn-write-contact,
html:not([data-theme="dark"]) .btn-adopt-write,
html:not([data-theme="dark"]) .btn-curator-write{
  background:#2B8C88!important;
  border:1px solid #1F6F6A!important;
  color:#FFFDF8!important;
  box-shadow:0 7px 0 rgba(35,98,94,.18),0 12px 22px rgba(43,140,136,.14)!important;
  position:relative!important;
  overflow:hidden!important;
}
html:not([data-theme="dark"]) .btn-write-contact::before,
html:not([data-theme="dark"]) .btn-adopt-write::before,
html:not([data-theme="dark"]) .btn-curator-write::before{
  content:""!important;
  position:absolute!important;
  inset:9px!important;
  border-radius:16px!important;
  border:2px dashed rgba(238,255,251,.34)!important;
  pointer-events:none!important;
}
html[data-theme="dark"] .btn-write-contact,
html[data-theme="dark"] .btn-adopt-write,
html[data-theme="dark"] .btn-curator-write{
  background:#4F76B8!important;
  border:1px solid #3E619C!important;
  color:#FFF9F0!important;
  box-shadow:0 0 0 1px rgba(136,168,224,.14),0 8px 0 rgba(33,49,77,.24),0 12px 26px rgba(75,106,166,.16)!important;
}
html[data-theme="dark"] .btn-write-contact::before,
html[data-theme="dark"] .btn-adopt-write::before,
html[data-theme="dark"] .btn-curator-write::before{
  border-color:rgba(223,235,255,.24)!important;
}

/* Rescue medkit button – repaired day and night styles */
.btn-rescue-medkit,
.btn-rescue-medkit.btn-medkit-stitch{
  position:relative!important;
  overflow:hidden!important;
}
html:not([data-theme="dark"]) .btn-rescue-medkit,
html:not([data-theme="dark"]) .btn-rescue-medkit.btn-medkit-stitch{
  background:#EADCC8!important;
  border:1px solid #C3A985!important;
  color:#5A3E2D!important;
  box-shadow:0 8px 0 rgba(101,78,55,.10),0 14px 24px rgba(82,63,43,.10)!important;
}
html:not([data-theme="dark"]) .btn-rescue-medkit::before,
html:not([data-theme="dark"]) .btn-rescue-medkit.btn-medkit-stitch::before{
  content:""!important;
  position:absolute!important;
  inset:9px!important;
  border-radius:16px!important;
  border:2px dashed rgba(125,94,68,.28)!important;
  pointer-events:none!important;
}
html[data-theme="dark"] .btn-rescue-medkit,
html[data-theme="dark"] .btn-rescue-medkit.btn-medkit-stitch{
  background:#D7AB5F!important;
  border:1px solid #B78234!important;
  color:#16233A!important;
  box-shadow:0 8px 0 rgba(72,51,18,.24),0 16px 28px rgba(0,0,0,.22)!important;
}
html[data-theme="dark"] .btn-rescue-medkit::before,
html[data-theme="dark"] .btn-rescue-medkit.btn-medkit-stitch::before{
  content:""!important;
  position:absolute!important;
  inset:9px!important;
  border-radius:16px!important;
  border:2px dashed rgba(34,23,7,.22)!important;
  pointer-events:none!important;
}

/* Rescue hero: replace placeholders with Fanteska */
.rescue-art{
  min-height:360px!important;
  display:grid!important;
  place-items:center!important;
  background:transparent!important;
  border:0!important;
  box-shadow:none!important;
}
.rescue-art .rescue-fanteska{
  width:100%!important;
  height:auto!important;
  max-height:620px!important;
  object-fit:contain!important;
  display:block!important;
}
.rescue-art .dark-art{display:none!important}
html[data-theme="dark"] .rescue-art .light-art{display:none!important}
html[data-theme="dark"] .rescue-art .dark-art{display:block!important}
.rescue-art::after{
  content:""!important;
  position:absolute!important;
  inset:auto 10% 6% 10%!important;
  height:28px!important;
  border-radius:999px!important;
  background:radial-gradient(ellipse at center,rgba(0,0,0,.12),transparent 72%)!important;
  filter:blur(8px)!important;
  pointer-events:none!important;
}

/* About portraits – use the new webp photos cleanly */
.team-grid{align-items:stretch!important}
.team-card{display:flex!important;flex-direction:column!important;overflow:hidden!important}
.team-photo{
  height:320px!important;
  margin:0 0 18px!important;
  border-radius:24px!important;
  overflow:hidden!important;
  border:1px solid var(--line)!important;
  background:var(--paper)!important;
}
.team-photo img{
  width:100%!important;
  height:100%!important;
  object-fit:cover!important;
  object-position:center 18%!important;
  display:block!important;
}
.team-card h3{min-height:auto!important;margin-bottom:14px!important}
.team-card .role{min-height:auto!important}
@media (max-width: 1024px){.team-grid{grid-template-columns:1fr!important}}


/* === v31 targeted hotfixes from the latest version only === */
html{scroll-padding-top:110px!important}
body{padding-top:96px!important;overflow-x:hidden!important}

/* Header/menu: fixed, centered, and stable */
.site-header{
  position:fixed!important;
  top:0!important;
  left:0!important;
  right:0!important;
  width:100%!important;
  z-index:10000!important;
}
.site-header .header-inner{
  min-height:84px!important;
  height:84px!important;
  display:flex!important;
  align-items:center!important;
  justify-content:flex-start!important;
  gap:16px!important;
  padding:0!important;
}
.theme-toggle{flex:0 0 auto!important}
.logo-link{
  display:flex!important;
  align-items:center!important;
  flex:0 0 128px!important;
  width:128px!important;
  min-width:128px!important;
  max-width:128px!important;
  margin-right:6px!important;
}
.site-logo{
  width:116px!important;
  max-width:116px!important;
  height:auto!important;
}
.site-nav{
  flex:1 1 auto!important;
  min-width:0!important;
  margin:0!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  gap:6px!important;
  flex-wrap:nowrap!important;
}
.site-nav a{
  flex:0 1 auto!important;
  min-width:0!important;
  padding:10px 11px!important;
  font-size:clamp(13px,.82vw,16px)!important;
}
.header-help{
  flex:0 0 auto!important;
  margin-left:14px!important;
}
@media (max-width: 1500px){
  .site-nav a{padding:10px 9px!important;font-size:14px!important}
  .logo-link{flex-basis:122px!important;width:122px!important;min-width:122px!important;max-width:122px!important}
  .site-logo{width:110px!important;max-width:110px!important}
}
@media (max-width: 1340px){
  .site-header .header-inner{gap:12px!important}
  .site-nav a{padding:9px 7px!important;font-size:13px!important}
  .header-help{padding:12px 16px!important;margin-left:10px!important}
}
@media (max-width: 1180px){
  body{padding-top:84px!important}
  .site-header .header-inner{height:76px!important;min-height:76px!important;gap:12px!important}
  .logo-link{flex-basis:104px!important;width:104px!important;min-width:104px!important;max-width:104px!important;margin-right:0!important}
  .site-logo{width:100px!important;max-width:100px!important}
  .site-nav{
    position:fixed!important;
    left:20px!important;
    right:20px!important;
    top:84px!important;
    z-index:10010!important;
    display:none!important;
    grid-template-columns:1fr!important;
    background:var(--card)!important;
    border:1px solid var(--line)!important;
    border-radius:24px!important;
    padding:14px!important;
    box-shadow:var(--shadow)!important;
  }
  .site-nav.is-open{display:grid!important}
  .site-nav a{
    width:100%!important;
    justify-content:flex-start!important;
    text-align:left!important;
    white-space:normal!important;
    font-size:16px!important;
    padding:12px 14px!important;
  }
}

/* Trust/stats spacing and keeping all 5 cards visible */
#trust{padding-bottom:10px!important}
#trust .section-head{margin-bottom:14px!important}
.stats-section{padding-top:14px!important;padding-bottom:56px!important}
.stats-grid.patchwork-stats{
  display:grid!important;
  grid-template-columns:repeat(5,minmax(0,1fr))!important;
  gap:20px!important;
}
.stats-grid.patchwork-stats > div{display:flex!important}
.stats-grid.patchwork-stats > div:nth-child(4),
.stats-grid.patchwork-stats > div:nth-child(5){display:flex!important}
.stats-grid.patchwork-stats > div:nth-child(n+6){display:none!important}
@media (max-width: 1100px){
  .stats-grid.patchwork-stats{grid-template-columns:repeat(3,minmax(0,1fr))!important}
}
@media (max-width: 760px){
  .stats-grid.patchwork-stats{grid-template-columns:repeat(2,minmax(0,1fr))!important}
}

/* "Написать нам" buttons: stitched translucent buttons in both themes */
html:not([data-theme="dark"]) .btn-write-contact,
html:not([data-theme="dark"]) .btn-adopt-write,
html:not([data-theme="dark"]) .btn-curator-write,
html:not([data-theme="dark"]) .btn-turquoise-stitch{
  background:rgba(43,140,136,.14)!important;
  border:1px solid rgba(31,111,106,.36)!important;
  color:#1F6F6A!important;
  box-shadow:0 7px 0 rgba(30,103,98,.12),0 14px 24px rgba(30,103,98,.10)!important;
  position:relative!important;
  overflow:hidden!important;
}
html:not([data-theme="dark"]) .btn-write-contact::before,
html:not([data-theme="dark"]) .btn-adopt-write::before,
html:not([data-theme="dark"]) .btn-curator-write::before,
html:not([data-theme="dark"]) .btn-turquoise-stitch::before{
  content:""!important;
  position:absolute!important;
  inset:9px!important;
  border-radius:16px!important;
  border:2px dashed rgba(34,126,120,.36)!important;
  pointer-events:none!important;
}
html[data-theme="dark"] .btn-write-contact,
html[data-theme="dark"] .btn-adopt-write,
html[data-theme="dark"] .btn-curator-write,
html[data-theme="dark"] .btn-turquoise-stitch{
  background:rgba(71,102,153,.22)!important;
  border:1px solid rgba(123,156,205,.30)!important;
  color:#FFF5E8!important;
  box-shadow:0 8px 0 rgba(8,20,39,.30),0 16px 28px rgba(0,0,0,.18)!important;
  position:relative!important;
  overflow:hidden!important;
}
html[data-theme="dark"] .btn-write-contact::before,
html[data-theme="dark"] .btn-adopt-write::before,
html[data-theme="dark"] .btn-curator-write::before,
html[data-theme="dark"] .btn-turquoise-stitch::before{
  content:""!important;
  position:absolute!important;
  inset:9px!important;
  border-radius:16px!important;
  border:2px dashed rgba(240,214,177,.34)!important;
  pointer-events:none!important;
}

/* Day theme: selection buttons in curator/adopt should be burgundy */
html:not([data-theme="dark"]) .btn-curator-pick,
html:not([data-theme="dark"]) .btn-adopt-pick{
  background:var(--burgundy)!important;
  border:1px solid color-mix(in srgb,var(--burgundy-dark) 68%,black)!important;
  color:#FFF5EA!important;
  box-shadow:0 7px 0 rgba(88,38,58,.14),0 14px 26px rgba(110,48,72,.12)!important;
}
html:not([data-theme="dark"]) .btn-curator-pick:hover,
html:not([data-theme="dark"]) .btn-adopt-pick:hover{
  background:var(--burgundy-dark)!important;
  color:#FFF5EA!important;
}

/* Help page: night donate secondary button should not turn turquoise */
html[data-theme="dark"] #donate .hero-actions .btn-write-contact,
html[data-theme="dark"] #donate .hero-actions .btn-turquoise-stitch{
  background:rgba(71,102,153,.22)!important;
  color:#FFF5E8!important;
}

/* Tail-level bullets: add soft translucent fill */
.tail-levels div{
  background:color-mix(in srgb,var(--card) 72%,transparent)!important;
  border:2px dashed color-mix(in srgb,var(--line) 74%,transparent)!important;
  box-shadow:none!important;
}
html[data-theme="dark"] .tail-levels div{
  background:rgba(245,236,221,.06)!important;
  border-color:rgba(240,214,177,.22)!important;
}

/* Night contacts urgent card: cream fill with dark text */
html[data-theme="dark"] .contact-card{
  background:#F3E7D4!important;
  color:#221A14!important;
  border:1px solid #D5BA92!important;
  box-shadow:0 10px 0 rgba(6,17,33,.24),0 18px 34px rgba(0,0,0,.16)!important;
}
html[data-theme="dark"] .contact-card h2,
html[data-theme="dark"] .contact-card h3,
html[data-theme="dark"] .contact-card p,
html[data-theme="dark"] .contact-card a{
  color:#221A14!important;
}


/* === v32 micro-fixes === */
/* 1) Remove the extra donate contact button everywhere in the donate block */
#donate .hero-actions .btn-write-contact,
#donate .hero-actions .btn-turquoise-stitch{display:none!important}

/* 2) Day theme: all "Написать нам" buttons should match the light medkit style with dashed outline */
html:not([data-theme="dark"]) .btn-write-contact,
html:not([data-theme="dark"]) .btn-adopt-write,
html:not([data-theme="dark"]) .btn-curator-write,
html:not([data-theme="dark"]) .btn-turquoise-stitch{
  background:#E8DDCA!important;
  color:#5B371F!important;
  border:1px solid #CDB895!important;
  box-shadow:0 8px 0 rgba(116,91,63,.10),0 14px 24px rgba(107,84,55,.08)!important;
  position:relative!important;
  overflow:hidden!important;
}
html:not([data-theme="dark"]) .btn-write-contact::before,
html:not([data-theme="dark"]) .btn-adopt-write::before,
html:not([data-theme="dark"]) .btn-curator-write::before,
html:not([data-theme="dark"]) .btn-turquoise-stitch::before{
  content:""!important;
  position:absolute!important;
  inset:9px!important;
  border-radius:16px!important;
  border:2px dashed rgba(128,95,60,.40)!important;
  pointer-events:none!important;
}
html:not([data-theme="dark"]) .btn-write-contact:hover,
html:not([data-theme="dark"]) .btn-adopt-write:hover,
html:not([data-theme="dark"]) .btn-curator-write:hover,
html:not([data-theme="dark"]) .btn-turquoise-stitch:hover{
  background:#ECE3D2!important;
  color:#4B2D19!important;
}

/* 3) Night urgent-call card: keep button text milky/light */
html[data-theme="dark"] .contact-card .btn-contact-call,
html[data-theme="dark"] .contact-card .btn-call,
html[data-theme="dark"] .contact-card .hero-actions .btn{
  color:#FFF3E3!important;
}


/* === v33 write-button dashed-outline hard fix === */
html:not([data-theme="dark"]) a.btn-write-contact,
html:not([data-theme="dark"]) a.btn-adopt-write,
html:not([data-theme="dark"]) a.btn-curator-write,
html:not([data-theme="dark"]) a.btn-turquoise-stitch{
  background:#E8DDCA!important;
  color:#5B371F!important;
  border:1px solid #CFBB99!important;
  box-shadow:0 8px 0 rgba(116,91,63,.10),0 14px 24px rgba(107,84,55,.08)!important;
  position:relative!important;
  overflow:hidden!important;
}
html:not([data-theme="dark"]) a.btn-write-contact::after,
html:not([data-theme="dark"]) a.btn-adopt-write::after,
html:not([data-theme="dark"]) a.btn-curator-write::after,
html:not([data-theme="dark"]) a.btn-turquoise-stitch::after{
  content:""!important;
  position:absolute!important;
  top:8px!important; right:10px!important; bottom:8px!important; left:10px!important;
  border-radius:14px!important;
  border:2px dashed rgba(133,98,63,.48)!important;
  pointer-events:none!important;
  z-index:1!important;
}
html:not([data-theme="dark"]) a.btn-write-contact,
html:not([data-theme="dark"]) a.btn-adopt-write,
html:not([data-theme="dark"]) a.btn-curator-write,
html:not([data-theme="dark"]) a.btn-turquoise-stitch{isolation:isolate!important}


/* === v34 actual dashed border for daytime write buttons === */
html:not([data-theme="dark"]) a.btn-write-contact,
html:not([data-theme="dark"]) a.btn-adopt-write,
html:not([data-theme="dark"]) a.btn-curator-write,
html:not([data-theme="dark"]) a.btn-turquoise-stitch,
html:not([data-theme="dark"]) a.btn-outline-brown{
  background:#E8DDCA!important;
  color:#5B371F!important;
  border:2px dashed #8E6842!important;
  box-shadow:0 8px 0 rgba(116,91,63,.10),0 14px 24px rgba(107,84,55,.08)!important;
  position:relative!important;
  overflow:visible!important;
}
html:not([data-theme="dark"]) a.btn-write-contact::before,
html:not([data-theme="dark"]) a.btn-adopt-write::before,
html:not([data-theme="dark"]) a.btn-curator-write::before,
html:not([data-theme="dark"]) a.btn-turquoise-stitch::before,
html:not([data-theme="dark"]) a.btn-outline-brown::before,
html:not([data-theme="dark"]) a.btn-write-contact::after,
html:not([data-theme="dark"]) a.btn-adopt-write::after,
html:not([data-theme="dark"]) a.btn-curator-write::after,
html:not([data-theme="dark"]) a.btn-turquoise-stitch::after,
html:not([data-theme="dark"]) a.btn-outline-brown::after{
  content:none!important;
  display:none!important;
}
html:not([data-theme="dark"]) a.btn-write-contact:hover,
html:not([data-theme="dark"]) a.btn-adopt-write:hover,
html:not([data-theme="dark"]) a.btn-curator-write:hover,
html:not([data-theme="dark"]) a.btn-turquoise-stitch:hover,
html:not([data-theme="dark"]) a.btn-outline-brown:hover{
  background:#ECE3D2!important;
  color:#4B2D19!important;
  border-color:#7D5836!important;
}


/* === v35 curator bottom write button special color === */
html:not([data-theme="dark"]) body[data-page="curator.html"] .split-card a.btn-write-contact{
  background:#2B8C88!important;
  color:#FFFDF8!important;
  border:1px solid #1F6F6A!important;
  box-shadow:0 7px 0 rgba(35,98,94,.18),0 12px 22px rgba(43,140,136,.14)!important;
  position:relative!important;
  overflow:hidden!important;
}
html:not([data-theme="dark"]) body[data-page="curator.html"] .split-card a.btn-write-contact::after{
  content:""!important;
  display:block!important;
  position:absolute!important;
  top:8px!important; right:10px!important; bottom:8px!important; left:10px!important;
  border-radius:14px!important;
  border:2px dashed rgba(238,255,251,.34)!important;
  pointer-events:none!important;
}
html[data-theme="dark"] body[data-page="curator.html"] .split-card a.btn-write-contact{
  background:#EACB73!important;
  color:#221A14!important;
  border:1px solid #CFA958!important;
  box-shadow:0 8px 0 rgba(75,52,15,.24),0 16px 28px rgba(0,0,0,.22)!important;
  position:relative!important;
  overflow:hidden!important;
}
html[data-theme="dark"] body[data-page="curator.html"] .split-card a.btn-write-contact::after{
  content:""!important;
  display:block!important;
  position:absolute!important;
  top:8px!important; right:10px!important; bottom:8px!important; left:10px!important;
  border-radius:14px!important;
  border:2px dashed rgba(34,24,10,.22)!important;
  pointer-events:none!important;
}
/* Numbered instructions use a light surface in both themes. Keep their ink local,
   rather than inheriting the night page's light foreground. */
html body .numbered-list > li,
html body .route-line > li {
  background: #fffdf8;
  color: #26313b;
}
html body :is(.numbered-list, .route-line) > li :is(p, span, strong, b, em, small, a) {
  color: inherit;
}
