/* Optional campaign banner, shared with the Home block editor. */
.willinet-home-banner {
  --banner-accent: #f6b735;
  --banner-ink: #102541;
  display: grid;
  grid-template-columns: minmax(0, 1.32fr) minmax(0, 1fr);
  align-items: start;
  gap: clamp(24px, 4vw, 72px);
  padding: clamp(24px, 3.333vw, 64px) clamp(24px, 4.583vw, 88px);
  color: #fff;
  background: #a63217;
  overflow-wrap: anywhere;
}

.willinet-home-banner > .wp-block-group {
  min-width: 0;
  margin: 0;
}

.willinet-home-banner__copy::before {
  display: block;
  width: clamp(104px, 9.32vw, 179px);
  aspect-ratio: 179 / 86;
  margin-bottom: clamp(22px, 5.36vw, 103px);
  border-radius: 999px;
  background: #fff url("../images/willinet-logo.png") center / 76% auto no-repeat;
  content: "";
}

.willinet-home-banner p {
  margin: 0;
  color: inherit;
  font-weight: 700;
}

.willinet-home-banner .willinet-home-banner__eyebrow {
  display: inline-block;
  padding: .4em .85em;
  border-radius: 999px;
  background: var(--banner-accent);
  color: var(--banner-ink);
  font-size: clamp(.75rem, 1.2vw, 1.2rem);
  letter-spacing: .08em;
  text-transform: uppercase;
}

.willinet-home-banner h2 {
  margin: .22em 0 .34em;
  color: #fff;
  font-size: clamp(2rem, 5.55vw, 6.8rem);
  font-weight: 800;
  line-height: .98;
  letter-spacing: -.045em;
}

.willinet-home-banner h2 strong,
.willinet-home-banner .willinet-home-banner__date {
  color: var(--banner-accent);
}

.willinet-home-banner .willinet-home-banner__date {
  margin-bottom: .5em;
  font-size: clamp(1.4rem, 3vw, 3.6rem);
  line-height: 1.15;
}

.willinet-home-banner__date::before {
  display: block;
  width: 1.5em;
  height: .12em;
  margin-bottom: .35em;
  background: currentColor;
  content: "";
}

.willinet-home-banner__date em {
  display: inline-block;
  margin-inline-start: .45em;
  color: #fff;
  font-family: "Newsreader", Georgia, serif;
  font-size: .72em;
}

.willinet-home-banner .wp-block-image {
  margin: clamp(0px, 1.25vw, 24px) 0 clamp(24px, 1.67vw, 32px);
}

.willinet-home-banner .wp-block-image img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 20px;
  box-shadow: clamp(10px, 1.25vw, 24px) clamp(10px, 1.25vw, 24px) var(--banner-accent);
}

.willinet-home-banner .wp-block-buttons {
  display: flex;
  margin: 0;
  align-items: center;
  justify-content: flex-end;
  gap: 8px 16px;
  flex-wrap: wrap;
}

.willinet-home-banner .wp-block-buttons:has(.willinet-home-banner__donate) {
  justify-content: space-between;
}

.willinet-home-banner .wp-block-button__link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: .55em 1.1em;
  border-radius: 999px;
  background: #fff;
  color: var(--banner-ink);
  font-size: clamp(.9rem, 1.25vw, 1.5rem);
  font-weight: 800;
  letter-spacing: .055em;
}

.willinet-home-banner .wp-block-button__link:is(:hover, :focus-visible) {
  background: var(--banner-accent);
  color: var(--banner-ink);
}

.willinet-home-banner .wp-block-button__link:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

.willinet-home-banner__donate .wp-block-button__link {
  padding: 0;
  border-radius: 0;
  background: transparent;
  color: var(--banner-accent);
  font-size: clamp(1rem, 1.75vw, 2.1rem);
  letter-spacing: normal;
}

.willinet-home-banner__donate .wp-block-button__link:is(:hover, :focus-visible) {
  background: transparent;
  color: #fff;
  text-decoration: underline;
}

@media (max-width: 680px) {
  .willinet-home-banner {
    grid-template-columns: minmax(0, 1fr);
  }

  .willinet-home-banner h2 {
    font-size: clamp(2rem, 8.7vw, 3.6rem);
  }

  .willinet-home-banner .wp-block-buttons,
  .willinet-home-banner .wp-block-buttons:has(.willinet-home-banner__donate) {
    justify-content: flex-start;
  }
}

.editor-styles-wrapper .is-root-container > .willinet-home-banner-slot {
  box-sizing: border-box;
  max-width: var(--editor-section-width, 1180px);
  margin-block: 0 20px;
  padding: 12px;
  border: 1px dashed #80858c;
}

.editor-styles-wrapper .willinet-home-banner-slot::before {
  display: block;
  margin-bottom: 8px;
  color: #1d2327;
  font-size: .875rem;
  font-weight: 700;
  content: "Homepage banner area";
}
