body.simargl-certificate-thanks-page {
  --st-green: #245e45;
  --st-green-dark: #123c2b;
  --st-green-soft: #dcebdd;
  --st-cream: #f4efe2;
  --st-white: #fffdf8;
  --st-text: #22332a;
  --st-muted: #607067;
  margin: 0;
  background: var(--st-cream);
  color: var(--st-text);
}

body.simargl-certificate-thanks-page > .wp-site-blocks > header.wp-block-template-part,
body.simargl-certificate-thanks-page > .wp-site-blocks > footer.wp-block-template-part,
body.simargl-certificate-thanks-page .wp-block-post-title {
  display: none !important;
}

body.simargl-certificate-thanks-page main,
body.simargl-certificate-thanks-page .wp-block-post-content {
  margin-block-start: 0;
}

.simargl-thanks,
.simargl-thanks * {
  box-sizing: border-box;
}

.simargl-thanks {
  min-width: 0;
  overflow: hidden;
  font-family: Montserrat, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 12% 10%, rgba(118, 157, 103, .12), transparent 25rem),
    linear-gradient(180deg, #fffdf8 0%, #f4efe2 100%);
}

.simargl-thanks a {
  color: var(--st-green-dark);
  text-underline-offset: .18em;
}

.simargl-thanks a:focus-visible,
.simargl-thanks button:focus-visible,
.simargl-thanks input:focus-visible {
  outline: 3px solid #d69839 !important;
  outline-offset: 3px;
}

.simargl-thanks__header {
  width: 100%;
  padding: 18px max(20px, calc((100vw - 1040px) / 2));
  border-bottom: 1px solid rgba(36, 94, 69, .14);
  background: rgba(255, 253, 248, .94);
}

.simargl-thanks__header-inner {
  max-width: 1040px !important;
  margin: 0 auto !important;
}

.simargl-thanks__brand,
.simargl-thanks__brand p,
.simargl-thanks__brand figure,
.simargl-thanks__motto {
  margin: 0 !important;
}

.simargl-thanks__brand img {
  border-radius: 50%;
}

.simargl-thanks__motto {
  color: var(--st-muted);
  font-size: 13px;
  line-height: 1.35;
  text-align: right;
}

.simargl-thanks__main {
  width: min(780px, calc(100% - 32px));
  margin: 0 auto;
  padding: clamp(36px, 6vw, 72px) 0;
}

.simargl-thanks__section {
  position: relative;
  width: 100%;
  margin: 0 0 28px !important;
  padding: clamp(28px, 5vw, 52px);
  border: 1px solid rgba(36, 94, 69, .12);
  border-radius: 28px;
  background: rgba(255, 253, 248, .94);
  box-shadow: 0 18px 50px rgba(29, 68, 51, .08);
}

.simargl-thanks__section > * {
  max-width: 650px;
}

.simargl-thanks__section h1,
.simargl-thanks__section h2 {
  color: var(--st-green-dark);
  letter-spacing: -.025em;
}

.simargl-thanks__section h1 {
  font-size: clamp(32px, 6vw, 52px);
  line-height: 1.06;
}

.simargl-thanks__section h2 {
  font-size: clamp(27px, 4.5vw, 38px);
  line-height: 1.12;
}

.simargl-thanks__section p {
  color: var(--st-text);
  font-size: clamp(16px, 2vw, 18px);
  line-height: 1.65;
}

.simargl-thanks__lead {
  font-size: clamp(18px, 2.5vw, 21px) !important;
}

.simargl-thanks__leaf {
  position: absolute;
  z-index: 0;
  opacity: .34;
  pointer-events: none;
}

.simargl-thanks__leaf--left { left: -44px; top: 26px; transform: rotate(-8deg); }
.simargl-thanks__leaf--right { right: -45px; bottom: 14px; transform: rotate(8deg); }
.simargl-thanks__gratitude > :not(.simargl-thanks__leaf) { position: relative; z-index: 1; }

.simargl-thanks__rule {
  width: 92px !important;
  margin: 30px auto 20px !important;
  border-color: #91ad90 !important;
}

.simargl-thanks__download-note {
  margin-bottom: 4px !important;
  color: var(--st-muted) !important;
  font-size: 14px !important;
}

.simargl-thanks__donation {
  background: linear-gradient(145deg, #e6efe2 0%, #f8f3e7 100%);
}

.simargl-thanks__donation-form {
  width: min(520px, 100%);
  margin: 30px auto 20px !important;
}

.simargl-thanks__donation-component,
.simargl-thanks__donation-component .simargl-cp-form {
  max-width: 100%;
}

.simargl-thanks__donation-component .simargl-cp-givr {
  overflow: hidden;
  border: 1px solid rgba(36, 94, 69, .18);
  border-radius: 18px !important;
  box-shadow: 0 16px 40px rgba(18, 60, 43, .14) !important;
}

.simargl-thanks__details-link {
  margin-top: 24px !important;
  font-size: 15px !important;
}

.simargl-thanks__social-grid {
  gap: 14px;
  margin-top: 28px;
}

.simargl-thanks__social-card {
  height: 100%;
  min-height: 150px;
  padding: 22px 12px;
  border: 1px solid rgba(36, 94, 69, .14);
  border-radius: 20px;
  background: var(--st-white);
  transition: transform .2s ease, box-shadow .2s ease;
}

.simargl-thanks__social-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(18, 60, 43, .1);
}

.simargl-thanks__social-card figure {
  margin: 0 auto 16px !important;
}

.simargl-thanks__social-card .wp-block-button__link {
  min-height: 44px;
  padding: 10px 16px;
  border-color: var(--st-green) !important;
  border-radius: 999px;
  color: var(--st-green-dark) !important;
  font-size: 14px;
  font-weight: 700;
}

.simargl-thanks__footer {
  width: 100%;
  padding: 34px max(20px, calc((100vw - 780px) / 2));
  background: var(--st-green-dark);
  color: #eef6ef;
}

.simargl-thanks__footer .wp-block-columns {
  max-width: 780px !important;
  margin: 0 auto !important;
}

.simargl-thanks__footer p,
.simargl-thanks__footer a {
  color: #eef6ef !important;
  font-size: 14px;
  line-height: 1.7;
}

@media (max-width: 680px) {
  .simargl-thanks__main { width: min(100% - 24px, 780px); padding: 28px 0 42px; }
  .simargl-thanks__section { padding: 28px 18px; border-radius: 22px; }
  .simargl-thanks__motto { display: none; }
  .simargl-thanks__leaf { width: 110px !important; opacity: .2; }
  .simargl-thanks__social-grid { display: grid !important; grid-template-columns: 1fr; }
  .simargl-thanks__social-card { min-height: 126px; }
  .simargl-thanks__footer .wp-block-columns { gap: 8px; }
  .simargl-thanks__footer .has-text-align-right { text-align: left; }
}

@media (prefers-reduced-motion: reduce) {
  .simargl-thanks__social-card { transition: none; }
}



/* Donation-first layout: editable Gutenberg Columns remain the page structure. */
.simargl-thanks__main{width:min(1180px,calc(100% - 40px));padding:clamp(28px,4vw,52px) 0}
.simargl-thanks__hero{align-items:flex-start!important;gap:clamp(24px,3vw,40px)!important;margin:0 0 clamp(40px,5vw,64px)!important}
.simargl-thanks__hero>.wp-block-column{min-width:0}
.simargl-thanks__hero-copy,.simargl-thanks__hero-donate,.simargl-thanks__social{position:relative;width:100%;margin:0!important;border:1px solid rgba(36,94,69,.14);border-radius:26px;box-shadow:0 18px 50px rgba(29,68,51,.08)}
.simargl-thanks__hero-copy{min-height:100%;padding:clamp(28px,3.4vw,44px) clamp(24px,3vw,38px);overflow:hidden;background:rgba(255,253,248,.96)}
.simargl-thanks__hero-copy h1,.simargl-thanks__hero-donate h2,.simargl-thanks__social h2{color:var(--st-green-dark);letter-spacing:-.025em}
.simargl-thanks__hero-copy h1{margin:0 0 18px!important;font-size:clamp(34px,3.25vw,48px);line-height:1.08}
.simargl-thanks__hero-copy p{margin-top:0;font-size:clamp(16px,1.45vw,18px);line-height:1.62}
.simargl-thanks__certificate-note{margin-top:clamp(24px,3vw,34px)!important;padding:16px 18px;border-radius:15px;background:#f3f6ed}
.simargl-thanks__certificate-note p{margin:0 0 5px!important;color:var(--st-muted);font-size:13px;line-height:1.45}
.simargl-thanks__certificate-note p:last-child{margin-bottom:0!important;font-size:14px}
.simargl-thanks__hero-copy .simargl-thanks__leaf{width:105px!important;opacity:.2}
.simargl-thanks__hero-copy .simargl-thanks__leaf--left{left:-34px;top:20px}
.simargl-thanks__hero-copy .simargl-thanks__leaf--right{right:-36px;bottom:12px}
.simargl-thanks__hero-donate{scroll-margin-top:24px;padding:clamp(24px,3vw,38px);background:linear-gradient(145deg,#e5efe1 0%,#f8f3e7 100%)}
.simargl-thanks__hero-donate h2{margin:0 0 12px!important;font-size:clamp(30px,3vw,42px);line-height:1.08}
.simargl-thanks__donation-intro{margin:0 0 20px!important;font-size:clamp(16px,1.4vw,18px);line-height:1.55}
.simargl-thanks__hero-donate .simargl-thanks__donation-form{width:min(560px,100%);margin:0 auto 16px!important}
.simargl-thanks__hero-donate .simargl-cp-givr{min-height:0!important;border-radius:18px!important}
.simargl-thanks__hero-donate .simargl-cp-tab{min-height:50px}
.simargl-thanks__hero-donate .simargl-cp-preset{min-height:46px;padding-block:6px}
.simargl-thanks__donate-jump{display:none!important;margin:20px 0 0!important}
.simargl-thanks__donate-jump .wp-block-button__link{width:100%;min-height:48px;border-radius:999px;background:var(--st-green)!important;color:#fff!important;font-weight:700}
.simargl-thanks__social{padding:clamp(28px,4vw,46px);background:rgba(255,253,248,.96)}
.simargl-thanks__social>*{max-width:900px}
.simargl-thanks__social h2{margin-bottom:14px!important;font-size:clamp(28px,3vw,38px)}
.simargl-thanks__social>p{max-width:760px;margin-inline:auto;font-size:17px;line-height:1.6}
.simargl-thanks__social-grid{margin-top:24px}
.simargl-thanks__footer{padding-inline:max(20px,calc((100vw - 1100px)/2))}
.simargl-thanks__footer .wp-block-columns{max-width:1100px!important}
@media(max-width:1023px){.simargl-thanks__hero{display:grid!important;grid-template-columns:1fr;gap:24px!important}.simargl-thanks__hero>.wp-block-column{width:100%!important}.simargl-thanks__donate-jump{display:flex!important}}
@media(max-width:680px){.simargl-thanks__header{padding-block:12px}.simargl-thanks__brand img{width:44px!important;height:44px!important}.simargl-thanks__main{width:min(100% - 20px,640px);padding:18px 0 34px}.simargl-thanks__hero{gap:18px!important;margin-bottom:32px!important}.simargl-thanks__hero-copy,.simargl-thanks__hero-donate,.simargl-thanks__social{border-radius:21px}.simargl-thanks__hero-copy{padding:25px 20px 22px}.simargl-thanks__hero-copy h1{margin-bottom:12px!important;font-size:clamp(29px,8.6vw,36px)}.simargl-thanks__hero-copy p{margin-bottom:10px;font-size:16px;line-height:1.52}.simargl-thanks__certificate-note{margin-top:17px!important;padding:12px 14px}.simargl-thanks__donate-jump{margin-top:14px!important}.simargl-thanks__hero-donate{padding:24px 18px 26px;scroll-margin-top:12px}.simargl-thanks__hero-donate h2{font-size:clamp(28px,8vw,34px)}.simargl-thanks__donation-intro{margin-bottom:16px!important;font-size:16px;line-height:1.5}.simargl-thanks__social{padding:28px 18px}}
html:has(body.simargl-certificate-thanks-page){scroll-behavior:smooth}
@media(prefers-reduced-motion:reduce){html:has(body.simargl-certificate-thanks-page){scroll-behavior:auto}}

/* Social block: buttons only. */
.simargl-thanks__social-card{min-height:0;padding:20px 12px}
.simargl-thanks__social-card .wp-block-buttons{margin:0!important}
.simargl-thanks__social-card .wp-block-button__link{min-width:150px}
@media(max-width:680px){.simargl-thanks__social-card{min-height:0;padding:16px 12px}}
