/* ========================================================================
   When Grief Lingers — weathered stronghold identity.
   Linked from when-grief-lingers.html. Does not alter shared WMIN/UNC CSS.
   Overrides page-scoped WGL hero rules from gh-when-more-is-needed.css.
   ======================================================================== */

body.wmin-wgl-site {
  --wgl-ivory: #f4efe4;
  --wgl-ivory-deep: #ebe3d4;
  --wgl-parchment: #f7f1e6;
  --wgl-slip: #faf6ee;
  --wgl-navy: #1c3d56;
  --wgl-navy-deep: #163247;
  --wgl-bronze: #8c7349;
  --wgl-bronze-soft: rgba(140, 115, 73, 0.34);
  --wgl-stone: #7d7366;
  --wgl-sage: #7a8470;
  --wgl-ink: #1c3d56;
  --wgl-body: #3d433c;
}

/* Quiet the construction plan-grid; keep a faint archival grain */
body.wmin-wgl-site main.page.wmin-page {
  background:
    linear-gradient(180deg, #f6f1e7 0%, var(--wgl-ivory) 28%, var(--wgl-ivory-deep) 100%);
}

body.wmin-wgl-site main.page.wmin-page::before {
  background-image: var(--wmin-grain);
  opacity: 0.2;
}

/* —— Hero: monumental fortress, parchment left, dissolve at the edges —— */
body.wmin-wgl-site .wmin-hero--wgl-banner {
  height: clamp(24rem, 56.25vw, 48rem);
  max-height: none;
  background: var(--wgl-ivory);
  border-bottom: none;
  overflow: hidden;
}

body.wmin-wgl-site .wmin-hero--wgl-banner .wmin-hero__scenic {
  -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 78%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 0%, #000 78%, transparent 100%);
}

body.wmin-wgl-site .wmin-hero--wgl-banner .wmin-hero__image {
  object-fit: contain;
  object-position: center center;
}

body.wmin-wgl-site .wmin-hero--wgl-banner .wmin-hero__veil {
  background:
    linear-gradient(
      90deg,
      var(--wgl-ivory) 0%,
      rgba(244, 239, 228, 0.88) 10%,
      rgba(244, 239, 228, 0.42) 24%,
      rgba(244, 239, 228, 0.12) 36%,
      rgba(244, 239, 228, 0) 50%
    ),
    linear-gradient(
      180deg,
      rgba(244, 239, 228, 0) 0%,
      rgba(244, 239, 228, 0) 70%,
      rgba(244, 239, 228, 0.28) 88%,
      var(--wgl-ivory) 100%
    );
}

body.wmin-wgl-site .wmin-hero--wgl-banner .wmin-hero__content--wgl-banner {
  max-width: min(46%, 36rem);
  padding:
    clamp(2rem, 5.5vw, 3.75rem)
    clamp(1.25rem, 3vw, 2rem)
    clamp(2.25rem, 6vw, 4rem)
    clamp(2.5rem, 7.5vw, 6.5rem);
}

body.wmin-wgl-site .wmin-hero--wgl-banner .wmin-hero__title-block {
  gap: 0;
  max-width: 22.5rem;
}

body.wmin-wgl-site .wmin-hero--wgl-banner .wmin-hero__title {
  font-size: clamp(2.05rem, 4.1vw, 3.35rem);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: 0.045em;
  text-transform: uppercase;
  color: var(--wgl-navy);
  white-space: normal;
  text-shadow: none;
}

body.wmin-wgl-site .wmin-hero--wgl-banner .wmin-hero__intro {
  margin: 1.05rem 0 0;
  max-width: min(100%, 22rem);
  font-size: clamp(1.12rem, 1.85vw, 1.32rem);
  font-weight: 500;
  font-style: italic;
  line-height: 1.42;
  color: var(--wgl-ink);
}

/* —— Body: protected archival document —— */
.wgl-landing {
  max-width: 42.5rem;
}

.wgl-landing .wmin-section,
.wgl-landing .wgl-section {
  padding: clamp(2.35rem, 5.5vw, 3.85rem) 0;
  border-bottom: 1px solid rgba(140, 115, 73, 0.16);
}

.wgl-landing .wgl-section--creed {
  border-bottom: none;
  padding-bottom: 0;
}

.wgl-landing .wmin-section__heading {
  text-transform: none;
  letter-spacing: 0.02em;
  font-weight: 600;
  font-size: clamp(1.58rem, 3.4vw, 2.05rem);
  line-height: 1.25;
  margin-bottom: 1.45rem;
  color: var(--wgl-navy);
}

.wgl-landing .wmin-prose p {
  max-width: 40rem;
  color: var(--wgl-body);
}

/* 1. Recognition — centered, quieter after the hero */
.wgl-section--recognition .wmin-section__heading {
  text-align: center;
}

.wgl-section--recognition .wmin-prose p {
  margin-left: auto;
  margin-right: auto;
}

/* 2. Orientation — steady archival reading */
.wgl-section--orientation .wmin-section__heading {
  font-size: clamp(1.48rem, 3.1vw, 1.88rem);
}

/* 3. Philosophical turning point */
.wgl-section--turning {
  padding-top: clamp(2.6rem, 6vw, 4.1rem);
}

.wgl-section--turning .wmin-section__heading {
  text-align: center;
  font-size: clamp(1.7rem, 3.6vw, 2.2rem);
}

/* 4. Reflective / sacred */
.wgl-section--residence .wmin-section__heading {
  font-style: italic;
  font-weight: 600;
}

/* 5. Guided discernment */
.wgl-section--explore .wmin-section__heading {
  text-align: center;
}

/* 6. Creed / closing principle */
.wgl-section--creed .wmin-section__heading {
  text-align: center;
  font-size: clamp(1.72rem, 3.7vw, 2.28rem);
  letter-spacing: 0.03em;
}

/* Featured statement — archival clause, not a card */
.wgl-landing .wmin-statement--featured {
  margin: 2rem auto 0.4rem;
  padding: 1.55rem 1.05rem 1.6rem;
  max-width: 40rem;
  border: none;
  border-top: 1px solid var(--wgl-bronze-soft);
  border-bottom: 1px solid rgba(140, 115, 73, 0.18);
  background: transparent;
  box-shadow: none;
  text-align: center;
  font-size: clamp(1.16rem, 2.2vw, 1.32rem);
  font-weight: 500;
  line-height: 1.58;
  color: var(--wgl-ink);
}

/* —— Protected anchors: preserved clauses on parchment plates —— */
.wgl-anchor-plate {
  width: 100%;
  max-width: min(100%, 40rem);
  margin: 2.45rem auto;
  padding: 0;
  box-sizing: border-box;
  background: transparent;
  border-top: 0;
  border-bottom: 0;
  border-left: none;
  border-right: none;
  box-shadow: none;
}

.wgl-anchor-plate--creed {
  max-width: min(100%, 38rem);
  padding: 0;
}

body.wmin-wgl-site .wgl-anchor-plate .gh-anchor-statement {
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body.wmin-wgl-site .wgl-protected .gh-anchor-statement__text,
body.wmin-wgl-site .wgl-heirloom .gh-anchor-statement__text {
  width: 100%;
  max-width: 36rem;
  margin: 0.85rem auto 0;
  font-size: clamp(1rem, 1.7vw, 1.16rem);
  font-style: italic;
  font-weight: 500;
  line-height: 1.5;
  color: var(--wgl-navy);
}

body.wmin-wgl-site .wgl-motto .gh-anchor-statement__text {
  width: 100%;
  max-width: 34rem;
  margin: 0.95rem auto 0;
  font-size: clamp(1.04rem, 1.85vw, 1.2rem);
  font-weight: 500;
  font-style: italic;
  line-height: 1.32;
  letter-spacing: 0.012em;
  color: var(--wgl-navy);
}

body.wmin-wgl-site .wgl-anchor-plate .gh-anchor-statement > img {
  width: 40px;
  max-width: 40px;
  opacity: 0.9;
}

body.wmin-wgl-site .wgl-anchor-plate--creed .gh-anchor-statement > img {
  width: 40px;
  max-width: 40px;
}

body.wmin-wgl-site .wgl-heirloom.gh-anchor-statement {
  border: none;
  padding: 0;
}

/* —— Reflection prompts: aged paper slips, not a worksheet —— */
.wgl-questions {
  list-style: none;
  margin: 0.55rem auto 2.1rem;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1.05rem;
  max-width: 38rem;
}

.wgl-questions li {
  margin: 0;
  padding: 1.2rem 1.35rem 1.25rem;
  background: #f3ead8;
  border: 1px solid rgba(140, 115, 73, 0.22);
  border-left: 1px solid rgba(140, 115, 73, 0.4);
  box-shadow: inset 0 1px 0 rgba(255, 252, 246, 0.55);
  font-family: "Cormorant Garamond", Baskerville, Georgia, serif;
  font-size: clamp(1.14rem, 2.15vw, 1.3rem);
  font-style: italic;
  font-weight: 500;
  line-height: 1.5;
  color: var(--wgl-navy);
}

/* —— Focused support doorway —— */
.wgl-section--focused .wmin-section__heading {
  margin-bottom: 0.75rem;
  text-align: center;
}

.wgl-section-kicker {
  margin: 0 0 0.45rem;
  color: var(--wgl-bronze);
  font-family: "Source Sans 3", "Segoe UI", sans-serif;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-align: center;
  text-transform: uppercase;
}

.wgl-focused-intro {
  max-width: 37rem;
  margin: 0 auto 1.75rem;
  color: var(--wgl-body);
  text-align: center;
}

.wgl-focus-card {
  margin-top: 1.35rem;
  padding: clamp(1.5rem, 4vw, 2.15rem);
  background: linear-gradient(180deg, #f7f0e2 0%, #eee3d0 100%);
  border: 1px solid rgba(140, 115, 73, 0.38);
  border-radius: 1.35rem;
  box-shadow: inset 0 0 0 7px rgba(255, 252, 246, 0.52), 0 0.55rem 1.4rem rgba(28, 61, 86, 0.07);
  text-align: center;
}

.wgl-focus-card:first-of-type {
  margin-top: 0;
}

.wgl-checklist {
  list-style: none;
  max-width: 38rem;
  margin: 1.15rem auto 0;
  padding: 0;
}

.wgl-checklist li {
  position: relative;
  margin: 0.7rem 0;
  padding: 0.9rem 1rem 0.9rem 2.65rem;
  background: rgba(247, 240, 226, 0.72);
  border: 1px solid rgba(140, 115, 73, 0.22);
  color: var(--wgl-body);
  line-height: 1.55;
}

.wgl-checklist li::before {
  content: "□";
  position: absolute;
  left: 1rem;
  top: 0.82rem;
  color: var(--wgl-bronze);
  font-size: 1.25rem;
  line-height: 1;
}

.wgl-focus-card__eyebrow {
  margin: 0 0 0.35rem;
  color: var(--wgl-bronze);
  font-family: "Source Sans 3", "Segoe UI", sans-serif;
  font-size: 0.73rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.wgl-focus-card__title {
  margin: 0 0 0.85rem;
  color: var(--wgl-navy);
  font-family: "Cormorant Garamond", Baskerville, Georgia, serif;
  font-size: clamp(1.55rem, 3.4vw, 2rem);
  line-height: 1.2;
}

.wgl-focus-card__text {
  max-width: 35rem;
  margin: 0 auto;
  color: var(--wgl-body);
  line-height: 1.65;
}

.wgl-focus-card__anchor {
  max-width: 32rem;
  margin: 1.35rem auto;
  padding: 1rem 0;
  border-top: 1px solid var(--wgl-bronze-soft);
  border-bottom: 1px solid var(--wgl-bronze-soft);
  color: var(--wgl-navy);
  font-family: "Cormorant Garamond", Baskerville, Georgia, serif;
  font-size: clamp(1.18rem, 2.4vw, 1.42rem);
  font-style: italic;
  font-weight: 600;
  line-height: 1.45;
}

.wgl-focus-card .wgl-focus-card__button {
  display: inline-block;
  margin-top: 0.15rem;
}

/* —— CTA: protected threshold —— */
.wgl-closing-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1rem 1.45rem;
  margin: 2.35rem 0 0;
  padding: clamp(1.85rem, 4.5vw, 2.6rem) clamp(1.15rem, 3.5vw, 1.85rem);
  background:
    linear-gradient(180deg, var(--wgl-navy) 0%, var(--wgl-navy-deep) 100%);
  box-shadow: inset 0 1px 0 rgba(244, 239, 228, 0.08);
}

.wgl-closing-actions .wmin-pathway__btn {
  margin-top: 0;
  padding: 0.78rem 1.2rem;
  border: 1px solid rgba(244, 239, 228, 0.22);
  border-left: 3px solid var(--wgl-bronze);
  background: #8a7048;
  color: #f7f1e6;
  letter-spacing: 0.11em;
}

.wgl-closing-actions .wmin-pathway__btn:hover,
.wgl-closing-actions .wmin-pathway__btn:focus-visible {
  border-color: rgba(244, 239, 228, 0.4);
  color: #fbf7ef;
  background: #7e6640;
}

.wgl-closing-actions .wmin-secondary-choice {
  margin: 0;
}

.wgl-closing-actions .wmin-secondary-choice a {
  display: inline-block;
  padding: 0.72rem 1.1rem;
  border: 1px solid rgba(244, 239, 228, 0.42);
  border-bottom: 1px solid rgba(244, 239, 228, 0.42);
  background: rgba(244, 239, 228, 0.94);
  color: var(--wgl-navy);
  font-family: "Source Sans 3", "Segoe UI", sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  line-height: 1.3;
  text-transform: uppercase;
}

.wgl-closing-actions .wmin-secondary-choice a:hover,
.wgl-closing-actions .wmin-secondary-choice a:focus-visible {
  background: #fbf7ef;
  border-color: rgba(244, 239, 228, 0.7);
}

.wgl-landing .wmin-safety-bridge {
  border-top: 1px solid rgba(140, 115, 73, 0.18);
}

@media (max-width: 719px) {
  body.wmin-wgl-site .wmin-hero--wgl-banner {
    height: clamp(19.5rem, 78vw, 26rem);
    max-height: none;
  }

  body.wmin-wgl-site .wmin-hero--wgl-banner .wmin-hero__image {
    object-position: 78% 48%;
  }

  body.wmin-wgl-site .wmin-hero--wgl-banner .wmin-hero__veil {
    background:
      linear-gradient(
        90deg,
        rgba(244, 239, 228, 0.9) 0%,
        rgba(244, 239, 228, 0.58) 28%,
        rgba(244, 239, 228, 0.16) 48%,
        rgba(244, 239, 228, 0) 68%
      ),
      linear-gradient(
        180deg,
        rgba(244, 239, 228, 0) 55%,
        rgba(244, 239, 228, 0.5) 82%,
        var(--wgl-ivory) 100%
      );
  }

  body.wmin-wgl-site .wmin-hero--wgl-banner .wmin-hero__content--wgl-banner {
    max-width: min(78%, 24rem);
    padding: 1.45rem 1rem 1.7rem clamp(1.2rem, 5vw, 1.85rem);
  }

  body.wmin-wgl-site .wmin-hero--wgl-banner .wmin-hero__title {
    font-size: clamp(1.55rem, 7vw, 2.05rem);
    letter-spacing: 0.04em;
    white-space: normal;
  }

  body.wmin-wgl-site .wmin-hero--wgl-banner .wmin-hero__intro {
    max-width: min(100%, 20.5rem);
    font-size: clamp(1.04rem, 3.6vw, 1.16rem);
    line-height: 1.38;
  }

  .wgl-anchor-plate,
  .wgl-anchor-plate--creed {
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
    padding-left: 0.95rem;
    padding-right: 0.95rem;
  }

  body.wmin-wgl-site .wgl-protected .gh-anchor-statement__text,
  body.wmin-wgl-site .wgl-motto .gh-anchor-statement__text,
  body.wmin-wgl-site .wgl-heirloom .gh-anchor-statement__text {
    max-width: 100%;
    font-size: clamp(1.16rem, 4.4vw, 1.32rem);
    line-height: 1.5;
  }

  body.wmin-wgl-site .wgl-motto .gh-anchor-statement__text {
    font-size: clamp(1.34rem, 5.5vw, 1.62rem);
    line-height: 1.36;
  }

  body.wmin-wgl-site .wgl-anchor-plate .gh-anchor-statement > img {
    width: 44px;
    max-width: 44px;
  }

  .wgl-questions li {
    padding: 1.1rem 1.05rem 1.15rem;
  }

  .wgl-closing-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .wgl-closing-actions .wmin-pathway__btn,
  .wgl-closing-actions .wmin-secondary-choice a {
    text-align: center;
    justify-content: center;
  }
}

@media (min-width: 720px) and (max-width: 1024px) {
  body.wmin-wgl-site .wmin-hero--wgl-banner {
    height: clamp(22rem, 40vw, 30rem);
    max-height: none;
  }

  body.wmin-wgl-site .wmin-hero--wgl-banner .wmin-hero__image {
    object-position: 70% 46%;
  }

  body.wmin-wgl-site .wmin-hero--wgl-banner .wmin-hero__content--wgl-banner {
    max-width: min(50%, 30rem);
    padding-left: clamp(2rem, 5.5vw, 4.25rem);
  }

  body.wmin-wgl-site .wmin-hero--wgl-banner .wmin-hero__title {
    font-size: clamp(1.85rem, 3.4vw, 2.55rem);
  }

  body.wmin-wgl-site .wmin-hero--wgl-banner .wmin-hero__intro {
    max-width: min(100%, 23rem);
  }
}

@media (prefers-reduced-motion: reduce) {
  body.wmin-wgl-site .wmin-hero--wgl-banner .wmin-hero__image {
    object-position: 74% 46%;
  }
}
