/* Grace Harbor visual standards — terminal cascade
   Keeps the site on one warm parchment field and gives deeper-work content
   the softened heirloom enclosure used on the Grace Harbor home page. */

:root {
  --gh-parchment-field: #f7f1e8;
  --gh-heirloom-paper: rgba(255, 251, 246, 0.88);
  --gh-heirloom-line: rgba(139, 107, 69, 0.32);
  --gh-heirloom-inset: rgba(139, 107, 69, 0.18);
  --gh-deep-navy: #234f73;
}

/* Home: one uninterrupted cream field beneath the hero. */
body.gh-home-body,
body.gh-home-body .wrapper,
main.gh-tier-page--home,
main.gh-tier-page--home .gh-home-content,
main.gh-tier-page--home .gh-home-journey,
main.gh-tier-page--home .gh-home-flow,
main.gh-tier-page--home .page__about,
main.gh-tier-page--home .page__services,
main.gh-tier-page--home .page__testimonial,
main.gh-tier-page--home .page__support-invite,
main.gh-tier-page--home .page__outro {
  background-color: var(--gh-parchment-field) !important;
  background-image: none !important;
}

body.gh-home-body .wrapper,
main.gh-tier-page--home,
main.gh-tier-page--home .gh-home-content {
  background: var(--gh-parchment-field) !important;
}

main.gh-tier-page--home .gh-home-content::before,
main.gh-tier-page--home .gh-home-content::after,
main.gh-tier-page--home .gh-home-journey::before,
main.gh-tier-page--home .gh-home-journey::after {
  background: none !important;
  opacity: 0 !important;
}

main.gh-tier-page--home .gh-home-journey--path .gh-home-journey__wrap {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

/* Like the established gateway pages, these hero images dissolve into the
   same cream field instead of ending at a visible rectangular border. */
.wmin-site .wmin-hero--gateway-banner,
.wmin-site .wmin-hero--restoration.wmin-hero--has-art {
  position: relative !important;
}

.wmin-site .wmin-hero--gateway-banner::after,
.wmin-site .wmin-hero--restoration.wmin-hero--has-art::after {
  content: "";
  position: absolute;
  z-index: 4;
  left: 0;
  right: 0;
  bottom: -1px;
  height: clamp(3.5rem, 9vw, 7rem);
  background: linear-gradient(
    180deg,
    rgba(247, 241, 232, 0) 0%,
    rgba(247, 241, 232, 0.28) 35%,
    rgba(247, 241, 232, 0.78) 74%,
    var(--gh-parchment-field) 100%
  );
  pointer-events: none;
}

.wmin-site .wmin-hero--restoration.wmin-hero--has-art {
  overflow: hidden !important;
}

.wmin-site .wmin-shell,
.wmin-site .wmin-page {
  background-color: var(--gh-parchment-field) !important;
}

/* Where Grace Begins: retain the approved sentence, make it readable. */
.wgb-page .wgb-hero__opening {
  color: #183e5d !important;
  font-weight: 600 !important;
  text-shadow:
    0 1px 0 rgba(255, 252, 247, 0.95),
    0 0 10px rgba(255, 252, 247, 0.92),
    0 0 22px rgba(255, 252, 247, 0.75) !important;
}

/* Bridges of Grace: a more substantial, architectural hero without adding
   unapproved copy or an unrelated stock image. */
.bog-page .bog-hero {
  position: relative;
  min-height: clamp(25rem, 52vh, 36rem) !important;
  display: grid !important;
  place-items: center !important;
  overflow: hidden;
  background:
    radial-gradient(ellipse 72% 72% at 50% 108%, rgba(247, 241, 232, 0.96) 0 34%, transparent 35%),
    linear-gradient(145deg, rgba(255, 252, 246, 0.98), rgba(221, 234, 229, 0.88) 48%, rgba(205, 222, 227, 0.8)) !important;
}

.bog-page .bog-hero::before {
  content: "";
  position: absolute;
  width: min(62rem, 88vw);
  height: min(19rem, 32vw);
  left: 50%;
  bottom: -9.5rem;
  transform: translateX(-50%);
  border: 1px solid rgba(35, 79, 115, 0.2);
  border-radius: 50% 50% 0 0;
  box-shadow: 0 -18px 55px rgba(47, 113, 148, 0.07);
  pointer-events: none;
}

.bog-page .bog-hero__inner {
  position: relative;
  z-index: 1;
  width: min(48rem, calc(100% - 3rem));
  padding: clamp(4rem, 8vw, 7rem) 1.5rem !important;
}

.bog-page .bog-hero h1 {
  font-size: clamp(3rem, 7vw, 5.4rem) !important;
  color: var(--gh-deep-navy) !important;
}

.bog-page .bog-hero__supporting {
  font-size: clamp(1.2rem, 2.3vw, 1.55rem) !important;
  color: #385d70 !important;
}

/* Heirloom enclosure shared by When Grace Reaches Deeper and its two paths. */
.wmin-site :is(.wmin-program-card, .wmin-tile, .wmin-qualifier__panel, .wmin-route-card, .wgl-focus-card),
.wmin-site :is(.unc-panel, .unc-map-card, .unc-journey-card, .unc-compare-card) {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--gh-heirloom-line) !important;
  border-radius: 1.4rem !important;
  background-color: var(--gh-heirloom-paper) !important;
  box-shadow:
    inset 0 0 0 7px rgba(255, 252, 247, 0.62),
    inset 0 0 0 8px var(--gh-heirloom-inset),
    0 12px 32px rgba(71, 83, 89, 0.07) !important;
}

/* Quiet heart detail, like the approved home-page enclosures. */
.wmin-site :is(.wmin-program-card, .wmin-qualifier__panel, .wmin-route-card, .wgl-focus-card, .unc-journey-card, .unc-compare-card)::after {
  content: "\2661";
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 1.1rem;
  height: 1.1rem;
  font-family: Georgia, serif;
  font-size: 1.05rem;
  line-height: 1;
  text-align: center;
  color: rgba(139, 107, 69, 0.46);
  pointer-events: none;
}

.wmin-site :is(.wmin-pathway__btn, .wgl-focus-card__button, .unc-btn, button, [class*="__button"]) {
  border-radius: 999px !important;
}

/* Anchor statements are quiet wisdom on the page, never separate plates. */
body.wmin-wgl-site .wgl-anchor-plate,
body.wmin-wgl-site .wgl-anchor-plate--creed,
body.wmin-wgl-site .wgl-anchor-plate .gh-anchor-statement {
  width: auto !important;
  max-width: 28rem !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
  outline: 0 !important;
  box-shadow: none !important;
  filter: none !important;
}

body.wmin-wgl-site .wgl-anchor-plate .gh-anchor-statement > img {
  width: 38px !important;
  max-width: 38px !important;
  height: auto !important;
  margin: 0 auto !important;
  opacity: 0.78 !important;
}

body.wmin-wgl-site .wgl-anchor-plate .gh-anchor-statement__text,
body.wmin-wgl-site .wgl-anchor-plate .gh-anchor-statement > figcaption {
  max-width: 24rem !important;
  margin: 11px auto 0 !important;
  padding: 0 !important;
  font-size: clamp(1rem, 1.5vw, 1.14rem) !important;
  line-height: 1.42 !important;
  font-style: italic !important;
  color: #3a5f73 !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

/* The source artwork is 16:9. Preserve the complete castle at every width. */
body.wmin-wgl-site .wmin-hero--wgl-banner {
  width: 100% !important;
  height: auto !important;
  min-height: 0 !important;
  aspect-ratio: 16 / 9 !important;
  background: #eee7da !important;
}

body.wmin-wgl-site .wmin-hero--wgl-banner .wmin-hero__scenic {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  margin: 0 !important;
}

body.wmin-wgl-site .wmin-hero--wgl-banner .wmin-hero__image {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
  object-position: center center !important;
  transform: none !important;
}

@media (max-width: 767px) {
  body.wmin-wgl-site .wmin-hero--wgl-banner .wmin-hero__title {
    font-size: clamp(2rem, 8vw, 3rem) !important;
  }

  body.wmin-wgl-site .wmin-hero--wgl-banner .wmin-hero__intro {
    font-size: clamp(0.92rem, 3.4vw, 1.08rem) !important;
  }
}
