/* Brand-consistent contrast improvements that meet WCAG AA on white. */
#mol-donate-modal-toggle,
#mol-ordination-modal-toggle,
#mol-ordination-services-modal-toggle,
#mol-wedding-support-modal-toggle,
#mol-outreach-modal-toggle {
  display: none !important;
}

.mol-page .mol-card-popup-link.mol-card-popup-link,
.mol-page .mol-outreach-popup-link.mol-outreach-popup-link,
.mol-page .mol-wedding-popup-link.mol-wedding-popup-link {
  color: #a33f50 !important;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.2em;
}

.mol-page .mol-card-popup-link.mol-card-popup-link:hover,
.mol-page .mol-card-popup-link.mol-card-popup-link:focus-visible,
.mol-page .mol-outreach-popup-link.mol-outreach-popup-link:hover,
.mol-page .mol-outreach-popup-link.mol-outreach-popup-link:focus-visible,
.mol-page .mol-wedding-popup-link.mol-wedding-popup-link:hover,
.mol-page .mol-wedding-popup-link.mol-wedding-popup-link:focus-visible {
  color: #7f2f3e !important;
}

.mol-page .mol-quote cite {
  color: #526463 !important;
}

.mol-page .mol-footer a {
  display: inline-flex;
  min-height: 24px;
  align-items: center;
}

/* Present all account destinations as plain links under one Login parent. */
.mol-login-menu {
  position: relative;
  flex: 0 0 auto;
  margin-left: auto;
  color: #294f53;
}

.mol-login-menu summary {
  display: flex;
  min-height: 40px;
  padding: 8px 4px;
  align-items: center;
  gap: 6px;
  color: inherit;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 700;
  list-style: none;
}

.mol-login-menu summary::-webkit-details-marker {
  display: none;
}

.mol-login-menu summary::after {
  content: "▾";
  font-size: 0.72em;
}

.mol-login-menu[open] summary::after {
  content: "▴";
}

.mol-login-options {
  position: absolute;
  z-index: 1000;
  top: calc(100% + 6px);
  right: 0;
  display: grid;
  width: max-content;
  min-width: 240px;
  padding: 8px;
  border: 1px solid rgba(31, 95, 107, 0.2);
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(29, 56, 59, 0.16);
}

.mol-login-options a {
  display: block;
  min-height: 0;
  padding: 9px 10px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #294f53;
  font-size: 0.88rem;
  font-weight: 650;
  line-height: 1.35;
  text-decoration: none;
  white-space: nowrap;
}

.mol-login-options a:hover,
.mol-login-options a:focus-visible {
  background: #edf5f3;
  color: #173f44;
  outline: 2px solid rgba(31, 95, 107, 0.28);
  outline-offset: -2px;
}

.mol-login-menu--mobile {
  display: none;
}

.mol-page .mol-footer .mol-account-disclosure,
.mol-shared-footer .mol-account-disclosure {
  width: 100%;
  margin: 18px 0 0;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.25);
  color: inherit;
  font-size: 0.78rem;
  line-height: 1.5;
  opacity: 0.92;
}

.mol-page .mol-footer .mol-account-disclosure a,
.mol-shared-footer .mol-account-disclosure a {
  display: inline;
  min-height: 0;
  color: inherit;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.mol-page .mol-footer .mol-legal-links,
.mol-shared-footer .mol-legal-links {
  margin: 0.65rem 0 0;
  text-align: center;
  font-size: 0.88rem;
}

.mol-page .mol-footer .mol-legal-links a,
.mol-shared-footer .mol-legal-links a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.mol-page .mol-footer .mol-mission-disclosure,
.mol-shared-footer .mol-mission-disclosure {
  width: 100%;
  margin: 10px 0 0;
  color: inherit;
  font-size: 0.82rem;
  font-weight: 650;
  line-height: 1.55;
  opacity: 0.95;
}

.mol-mission-feature {
  padding: 64px 24px;
  background: linear-gradient(135deg, #214f54, #537b73);
  color: #fff;
}

.mol-mission-feature__inner {
  max-width: 1050px;
  margin: 0 auto;
}

.mol-mission-feature__eyebrow {
  margin: 0 0 8px;
  color: #d8eee5;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.16em;
}

.mol-mission-feature h2 {
  max-width: 850px;
  margin: 0 0 18px;
  color: #fff;
  font-family: Georgia, serif;
  font-size: clamp(2rem, 4vw, 3.25rem);
  line-height: 1.12;
}

.mol-mission-feature__inner > p:not(.mol-mission-feature__eyebrow) {
  max-width: 870px;
  color: #edf6f2;
  font-size: 1.05rem;
  line-height: 1.75;
}

.mol-mission-feature__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.mol-mission-feature__actions a {
  display: inline-flex;
  min-height: 44px;
  padding: 12px 19px;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.65);
  border-radius: 999px;
  color: #fff;
  font-weight: 750;
  text-decoration: none;
}

.mol-mission-feature__actions a:first-child {
  border-color: #fff;
  background: #fff;
  color: #214f54;
}

@media (max-width: 1120px) {
  .mol-login-menu--desktop {
    display: none;
  }

  .mol-login-menu--mobile {
    display: block;
    width: 100%;
    margin: 8px 0 0;
    padding-top: 6px;
    border-top: 1px solid rgba(31, 95, 107, 0.16);
  }

  .mol-login-menu--mobile summary {
    width: 100%;
    min-height: 44px;
    padding: 8px 0;
    font-size: 1rem;
  }

  .mol-login-menu--mobile .mol-login-options {
    position: static;
    width: 100%;
    min-width: 0;
    padding: 2px 0 4px 14px;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

  .mol-login-menu--mobile .mol-login-options a {
    padding: 8px 0;
    font-size: 0.94rem;
    white-space: normal;
  }
}

/* Keep the carousel's small visual dots while providing 32px touch targets. */
.mol-page .mol-dots {
  gap: 4px !important;
}

.mol-page .mol-dots button {
  position: relative !important;
  width: 32px !important;
  height: 32px !important;
  min-width: 32px !important;
  min-height: 32px !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 50% !important;
  background: transparent !important;
}

.mol-page .mol-dots button::after {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 10px;
  height: 10px;
  content: "";
  border-radius: 50%;
  background: #c4ccca;
  transform: translate(-50%, -50%);
}

.mol-page .mol-dots button[aria-current="true"]::after {
  background: #a33f50;
}

.mol-page .mol-dots button:focus-visible {
  outline: 3px solid #1f5f6b !important;
  outline-offset: 1px;
}

/* Replace the oversized 1,254px footer file with a compressed display asset. */
.mol-page .mol-nav .mol-seal.mol-seal,
.mol-page .mol-footer .mol-brand .mol-seal.mol-seal,
.mol-page .mol-quote .mol-seal.mol-seal {
  background-image: url("./mol-seal.webp") !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
  background-size: contain !important;
}

@media (prefers-reduced-motion: reduce) {
  .mol-page *,
  .mol-page *::before,
  .mol-page *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

/* Five public pathways: the site's present-day service focus. */
.mol-primary-services {
  position: relative;
  z-index: 6;
  padding: 58px 24px 64px;
  background: #f5f8f5;
  color: #294f53;
}

.mol-primary-services__inner {
  max-width: 1180px;
  margin: 0 auto;
}

.mol-primary-services__eyebrow {
  margin: 0 0 8px;
  color: #a33f50;
  font-size: 0.75rem;
  font-weight: 850;
  letter-spacing: 0.14em;
}

.mol-primary-services h2 {
  margin: 0;
  color: #315d61;
  font-family: Georgia, serif;
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 500;
  line-height: 1.08;
}

.mol-primary-services__intro {
  max-width: 850px;
  margin: 16px 0 28px;
  color: #536b6c;
  font-size: 1rem;
  line-height: 1.7;
}

.mol-primary-services__grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}

.mol-primary-service {
  display: flex;
  min-height: 230px;
  padding: 24px 20px;
  flex-direction: column;
  align-items: flex-start;
  border: 1px solid #d8e3de;
  border-radius: 14px;
  background: #fff;
  color: #294f53 !important;
  box-shadow: 0 10px 26px rgba(48, 78, 78, 0.07);
  text-decoration: none !important;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.mol-primary-service:hover,
.mol-primary-service:focus-visible {
  border-color: #a33f50;
  box-shadow: 0 14px 32px rgba(48, 78, 78, 0.13);
  outline: 3px solid rgba(163, 63, 80, 0.2);
  outline-offset: 2px;
  transform: translateY(-3px);
}

.mol-primary-service__icon {
  display: grid;
  width: 48px;
  height: 48px;
  margin-bottom: 18px;
  place-items: center;
  border-radius: 50%;
  background: #eaf2ee;
  color: #a33f50;
  font-family: Georgia, serif;
  font-size: 1.35rem;
  font-weight: 800;
}

.mol-primary-service strong {
  margin-bottom: 9px;
  color: #294f53;
  font-size: 1.02rem;
  line-height: 1.25;
}

.mol-primary-service > span:last-child {
  color: #5a7071;
  font-size: 0.88rem;
  line-height: 1.55;
}

.mol-primary-nav-link {
  color: inherit;
}

/* Secure public intake forms and confirmation states. */
.mol-intake-honeypot {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

.mol-intake-photo-field,
.mol-intake-purpose-field {
  display: grid;
  gap: 7px;
  margin: 14px 0;
}

.mol-intake-photo-field > span,
.mol-intake-purpose-field > span {
  color: #294f53;
  font-weight: 750;
}

.mol-intake-purpose-field select {
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  border: 1px solid #84a29f;
  border-radius: 8px;
  background: #fff;
  color: #213638;
  font: inherit;
}

.mol-intake-photo-field input[type="file"] {
  width: 100%;
  padding: 12px;
  border: 1px dashed #84a29f;
  border-radius: 8px;
  background: #f6faf8;
  color: #294f53;
}

.mol-intake-photo-field small {
  color: #607777;
}

.mol-intake-notice {
  margin-top: 14px;
  padding: 0;
  color: #425e60;
  font-weight: 650;
  line-height: 1.5;
}

.mol-intake-notice--success,
.mol-intake-notice--error {
  padding: 13px 15px;
  border-radius: 8px;
}

.mol-intake-notice--success {
  border: 1px solid #8fc8a6;
  background: #edf8f1;
  color: #235d39;
}

.mol-intake-notice--error {
  border: 1px solid #dba4a4;
  background: #fff1f1;
  color: #842d2d;
}

form[data-mol-secure-intake="true"] button:disabled,
form[data-mol-secure-intake="true"] input[type="submit"]:disabled {
  cursor: wait;
  opacity: 0.65;
}

/* Keep the full footer useful without allowing it to dominate the page. */
.mol-page .mol-footer {
  padding: 22px 0;
}

.mol-page .mol-footer .mol-shell {
  box-sizing: border-box;
  padding-right: 30px;
  padding-left: 30px;
}

.mol-page .mol-footer .mol-footer-grid {
  gap: 30px;
}

.mol-page .mol-footer .mol-brand {
  gap: 13px;
}

.mol-page .mol-footer .mol-brand .mol-seal.mol-seal {
  width: 58px !important;
  height: 58px !important;
}

.mol-page .mol-footer .mol-brand .mol-wordmark {
  font-size: 21px !important;
  line-height: 1.02;
}

.mol-page .mol-footer .mol-footer-grid > div:first-child > p {
  margin: 9px 0;
  font-size: 0.82rem;
  line-height: 1.4;
}

.mol-page .mol-footer .mol-social {
  margin-top: 10px;
}

.mol-page .mol-footer h3 {
  margin-bottom: 9px;
}

.mol-page .mol-footer li {
  line-height: 1.35;
}

.mol-page .mol-footer .mol-copy {
  margin-top: 14px;
}

.mol-page .mol-footer .mol-account-disclosure {
  margin-top: 9px;
  padding-top: 8px;
  line-height: 1.35;
}

.mol-page .mol-footer .mol-mission-disclosure {
  margin-top: 6px;
  line-height: 1.35;
}

@media (max-width: 1100px) {
  .mol-primary-services__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .mol-page .mol-footer {
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    padding: 20px 0;
  }

  .mol-page .mol-footer .mol-shell {
    padding-right: 20px;
    padding-left: 20px;
  }

  .mol-page .mol-footer .mol-footer-grid {
    gap: 22px;
  }

  .mol-primary-services {
    padding: 44px 20px 50px;
  }

  .mol-primary-services__grid {
    grid-template-columns: 1fr;
  }

  .mol-primary-service {
    min-height: 0;
  }
}
