/* 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;
}

/* Let the lighthouse scene settle gently into the page instead of ending on
   a hard horizontal edge. */
body.gh-home-body .gh-home-hero {
  position: relative !important;
  overflow: hidden !important;
  border-bottom: 0 !important;
  box-shadow: none !important;
}

body.gh-home-body .gh-home-hero::after {
  content: "";
  position: absolute;
  z-index: 5;
  left: 0;
  right: 0;
  bottom: -1px;
  height: clamp(5rem, 11vw, 9rem);
  background: linear-gradient(
    180deg,
    rgba(247, 241, 232, 0) 0%,
    rgba(247, 241, 232, 0.24) 32%,
    rgba(247, 241, 232, 0.76) 72%,
    var(--gh-parchment-field) 100%
  );
  pointer-events: none;
}

/* The home markup already carries a dedicated mist layer. Put the dissolve on
   that visible layer too so older home rules cannot leave a straight seam. */
body.gh-home-body .gh-home-hero .gh-home-hero__mist {
  position: absolute !important;
  z-index: 20 !important;
  left: 0 !important;
  right: 0 !important;
  top: auto !important;
  bottom: -2px !important;
  width: 100% !important;
  height: clamp(7rem, 14vw, 12rem) !important;
  opacity: 1 !important;
  background: linear-gradient(
    180deg,
    rgba(247, 241, 232, 0) 0%,
    rgba(247, 241, 232, 0.18) 28%,
    rgba(247, 241, 232, 0.62) 60%,
    rgba(247, 241, 232, 0.92) 84%,
    var(--gh-parchment-field) 100%
  ) !important;
  border: 0 !important;
  pointer-events: none !important;
}

/* This sibling straddles the actual section boundary. Unlike an overlay held
   inside the hero, it can soften the line where the hero and page meet. */
body.gh-home-body .gh-home-hero-transition {
  position: relative !important;
  z-index: 30 !important;
  width: 100% !important;
  height: clamp(7rem, 13vw, 11rem) !important;
  margin-top: clamp(-11rem, -13vw, -7rem) !important;
  margin-bottom: 0 !important;
  background: linear-gradient(
    180deg,
    rgba(247, 241, 232, 0) 0%,
    rgba(247, 241, 232, 0.2) 24%,
    rgba(247, 241, 232, 0.68) 62%,
    rgba(247, 241, 232, 0.94) 86%,
    var(--gh-parchment-field) 100%
  ) !important;
  pointer-events: none !important;
}

/* The older editorial sheet uses a more specific selector and an !important
   dark parchment. Match and exceed it so the approved light cream wins. */
body.gh-home-body main.page.gh-tier-page.gh-tier-page--home,
body.gh-home-body main.page.gh-tier-page.gh-tier-page--home .gh-home-content,
body.gh-home-body main.page.gh-tier-page.gh-tier-page--home .gh-home-journey,
body.gh-home-body main.page.gh-tier-page.gh-tier-page--home .gh-home-flow {
  background-color: #f7f1e8 !important;
  background-image: none !important;
}

body.gh-home-body main.page.gh-tier-page.gh-tier-page--home .gh-home-content::before,
body.gh-home-body main.page.gh-tier-page.gh-tier-page--home .gh-home-content::after,
body.gh-home-body main.page.gh-tier-page.gh-tier-page--home .gh-home-journey::before,
body.gh-home-body main.page.gh-tier-page.gh-tier-page--home .gh-home-journey::after {
  content: none !important;
  display: none !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;
}

/* Bridges of Grace: the stone bridge is the page identity. */
.bog-page .bog-hero {
  min-height: clamp(31rem, 62vh, 46rem) !important;
  background-color: #e9efec !important;
  background-image:
    linear-gradient(90deg, rgba(247, 241, 232, 0.9) 0%, rgba(247, 241, 232, 0.64) 32%, rgba(247, 241, 232, 0.08) 61%),
    url("../images/bridges-of-grace/bridges-of-grace-hero.png") !important;
  background-repeat: no-repeat !important;
  background-size: cover !important;
  background-position: center center !important;
}

.bog-page .bog-hero::before {
  content: none !important;
  display: none !important;
}

.bog-page .bog-hero::after {
  content: "";
  position: absolute;
  z-index: 1;
  left: 0;
  right: 0;
  bottom: -1px;
  height: clamp(4rem, 9vw, 7rem);
  background: linear-gradient(180deg, rgba(247, 241, 232, 0), #f7f1e8 100%);
  pointer-events: none;
}

.bog-page .bog-hero__inner {
  width: min(43rem, 48vw) !important;
  margin-right: auto !important;
  margin-left: clamp(2rem, 8vw, 9rem) !important;
  text-align: center !important;
}

.bog-page .bog-hero h1,
.bog-page .bog-hero__supporting {
  color: #173f60 !important;
  text-shadow: 0 1px 0 rgba(255,255,255,0.88), 0 0 18px rgba(255,252,247,0.8) !important;
}

/* When Grief Lingers: use the page width instead of an inherited narrow
   reading-column cap. Text itself remains comfortably readable inside it. */
body.wmin-wgl-site .wmin-shell.wgl-landing {
  width: min(calc(100% - 3rem), 82rem) !important;
  max-width: 82rem !important;
}

/* WGL is one continuous parchment page. The reading shell controls spacing,
   but it must never appear as a long contrasting sheet. */
body.wmin-site.wmin-wgl-site,
body.wmin-site.wmin-wgl-site .wrapper,
body.wmin-site.wmin-wgl-site main.wmin-page,
body.wmin-site.wmin-wgl-site footer.footer {
  background-color: var(--gh-parchment-field) !important;
  background-image: none !important;
}

body.wmin-site.wmin-wgl-site .wmin-shell.wgl-landing,
body.wmin-site.wmin-wgl-site .wmin-shell.wgl-landing .wgl-section {
  background: transparent !important;
  border-left: 0 !important;
  border-right: 0 !important;
  box-shadow: none !important;
}

body.wmin-wgl-site .wgl-landing .wmin-section {
  width: 100% !important;
  max-width: none !important;
}

/* The closing choices belong on the parchment field. They are not a footer
   and should not sit inside a navy bar that stops short of the page edges. */
body.wmin-site.wmin-wgl-site .wgl-closing-actions {
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

body.wmin-site.wmin-wgl-site .wmin-shell.wgl-landing .wgl-section .wmin-prose,
body.wmin-wgl-site .wgl-landing :is(.wgl-focus-grid, .wgl-questions) {
  width: 100% !important;
  max-width: 68rem !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

body.wmin-site.wmin-wgl-site .wmin-shell.wgl-landing .wgl-section .wmin-prose p {
  width: 100% !important;
  max-width: none !important;
}

body.wmin-site.wmin-wgl-site .wmin-shell.wgl-landing .wgl-section > .wmin-section__heading {
  width: 100% !important;
  max-width: 68rem !important;
  margin-left: auto !important;
  margin-right: auto !important;
  text-align: center !important;
}

body.wmin-wgl-site .wgl-landing .wgl-questions {
  width: 100% !important;
}

/* Safety rule for older cached UNC markup: the breadcrumb is navigation, not
   part of the visual hero, and must never reserve a band above the artwork. */
body.wmin-site.wmin-unc-site .wmin-shell--crumb {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  overflow: hidden !important;
}

@media (max-width: 767px) {
  .bog-page .bog-hero {
    min-height: 32rem !important;
    background-image:
      linear-gradient(180deg, rgba(247,241,232,0.48), rgba(247,241,232,0.16) 48%, rgba(247,241,232,0.78) 88%),
      url("../images/bridges-of-grace/bridges-of-grace-hero.png") !important;
    background-position: 63% center !important;
  }

  .bog-page .bog-hero__inner {
    width: calc(100% - 2rem) !important;
    margin: 0 auto !important;
    padding: 3rem 1rem 7rem !important;
  }

  body.wmin-wgl-site .wmin-shell.wgl-landing {
    width: calc(100% - 1.5rem) !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;
  }
}
