/**
 * Creative Chaos: reusable components.
 *
 * .pledge-button
 *   The red "Pledge" blob with the "Thank ewe" chicken (assets/cc/pledge-button.svg).
 *   Use it on a Custom General Button block: add "pledge-button" in the block's
 *   Advanced > Additional CSS class(es). Also works on any link or button:
 *   <a class="pledge-button" href="#fluentform_32">Pledge</a>
 */

.pledge-button a.button,
a.pledge-button,
button.pledge-button,
.pledge-button a.button:hover,
a.pledge-button:hover,
button.pledge-button:hover,
.pledge-button a.button:focus,
a.pledge-button:focus,
button.pledge-button:focus {
  display: inline-flex !important;
  align-items: flex-end !important;      /* theme's .button centres it; keep "Pledge" low in the blob */
  justify-content: center !important;
  width: 270px !important;
  min-width: 0 !important;
  max-width: 100%;
  height: 176px !important;
  padding: 0 0 34px !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: url("pledge-button.svg") center / contain no-repeat !important;
  box-shadow: none !important;
  font-family: Cooper, Georgia, serif !important;
  font-size: 40px !important;
  font-weight: normal;
  line-height: 1 !important;
  color: #fdf6ec !important;
  text-decoration: none !important;
  cursor: pointer;
  transition: transform .2s ease;
}

.pledge-button a.button:hover,
a.pledge-button:hover,
button.pledge-button:hover {
  transform: rotate(-3deg) scale(1.04);
}

.pledge-button a.button:focus-visible,
a.pledge-button:focus-visible,
button.pledge-button:focus-visible {
  outline: 2px dashed #ca1600;
  outline-offset: 4px;
}

/* Centre the button inside a Custom General Button block */
.custom-general-button.pledge-button .link {
  text-align: center;
}

/* Smooth scrolling for on-page links, stopping clear of the sticky header */
html { scroll-behavior: smooth; }
[id^="fluentform_"] { scroll-margin-top: 140px; }
