/* Shared public page ending */
#wd-endcard.wd-endcard {
  box-sizing: border-box;
  width: min(calc(100% - 32px), 1600px);
  margin: clamp(24px, 3vw, 42px) auto clamp(32px, 4vw, 56px);
  padding: 0;
  background: #192c21 !important;
  color: #fff;
  clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 0 100%);
}
#wd-endcard .wd-endcard-inner {
  box-sizing: border-box;
  display: grid;
  grid-template-columns: 68px minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(20px, 2.6vw, 40px);
  padding: clamp(26px, 3vw, 42px) clamp(24px, 3.6vw, 56px);
}
#wd-endcard .wd-endcard-inner > img {
  display: block;
  width: 68px;
  height: 68px;
  border-radius: 50%;
  object-fit: cover;
  object-position: 55% 24%;
  outline: 2px solid #afe8b6;
}

@media (prefers-reduced-motion: no-preference) {
  #wd-endcard .wd-endcard-inner > img {
    animation: wd-portrait-pulse 3.2s ease-out infinite;
  }
  @keyframes wd-portrait-pulse {
    0% { box-shadow: 0 0 0 2px rgb(171 237 180 / 48%); }
    78%, 100% { box-shadow: 0 0 0 10px rgb(171 237 180 / 0%); }
  }
}
#wd-endcard .wd-endcard-copy h2 {
  margin: 0 !important;
  color: #fff !important;
  font: inherit;
  font-size: clamp(24px, 2.15vw, 34px) !important;
  font-weight: 680;
  line-height: 1.13 !important;
  letter-spacing: -.035em;
  text-wrap: balance;
}
#wd-endcard .wd-endcard-copy p {
  margin: 6px 0 0 !important;
  color: #e2ebe3 !important;
  font-size: 16px !important;
  line-height: 1.5;
}
#wd-endcard .wd-endcard-action { display: grid; gap: 5px; text-align: center; }
#wd-endcard .wd-endcard-action a {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  box-sizing: border-box;
  min-height: 46px;
  padding: 10px 20px;
  border-radius: 4px;
  background: #397442;
  color: #fff !important;
  font-size: 16px;
  line-height: 1.4;
  font-weight: 680;
  text-decoration: none;
}
#wd-endcard .wd-endcard-action a:hover { background: #2e6236; }
#wd-endcard .wd-endcard-action a:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
#wd-endcard .wd-endcard-choices { grid-template-columns: auto auto; gap: 10px; }
#wd-endcard .wd-endcard-choices .wd-endcard-message { background: transparent; border: 1px solid #9db4a2; }
#wd-endcard .wd-endcard-choices .wd-endcard-message:hover { background: #294534; border-color: #dce6dc; }
#wd-endcard .wd-endcard-action small { color: #dce6dc !important; font-size: 13px; line-height: 1.5; }
[data-closing-faq] { scroll-margin-top: 6rem; }
[data-closing-faq].page-faq:not([hidden]) .page-faq-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; }
/* The homepage already draws its toggle with summary::after. */
[data-homepage-v2] .faq summary > span[aria-hidden="true"] { display: none; }
[data-closing-faq] summary:focus-visible { outline: 2px solid #237b32; outline-offset: -2px; }
@media (max-width: 760px) {
  #wd-endcard .wd-endcard-inner {
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 16px;
    padding: 22px;
  }
  #wd-endcard .wd-endcard-inner > img { width: 44px; height: 44px; }
  #wd-endcard .wd-endcard-action { grid-column: 1 / -1; justify-self: start; }
}
@media (min-width: 761px) and (max-width: 980px), (max-width: 520px) {
  #wd-endcard .wd-endcard-choices { grid-template-columns: minmax(0, 1fr); justify-self: stretch; }
}
