/* ========================================================================
   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, 46vw, 40rem);
  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: cover;
  object-position: 74% 0%;
}

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

@media (min-width: 720px) {
  .wmin-shell.wgl-landing {
    width: min(100%, 64rem);
    max-width: 64rem;
  }
}

@media (min-width: 1400px) {
  .wmin-shell.wgl-landing {
    width: min(100% - 3rem, 88rem);
    max-width: 88rem;
  }

}

.wgl-landing .wmin-section__heading,
.wgl-landing .wmin-prose,
.wgl-landing .wgl-questions,
.wgl-landing .wgl-completed-heading,
.wgl-landing .wmin-section > p,
.wgl-landing .wmin-secondary-choice,
.wgl-landing .wmin-secondary-choice__hint,
.wgl-landing .wmin-safety-bridge,
.wgl-landing .wmin-return {
  max-width: 40rem;
  margin-left: auto;
  margin-right: auto;
}

@media (min-width: 1100px) {
  .wgl-landing .wmin-section__heading,
  .wgl-landing .wmin-prose,
  .wgl-landing .wgl-questions,
  .wgl-landing .wgl-completed-heading,
  .wgl-landing .wmin-section > p,
  .wgl-landing .wmin-secondary-choice,
  .wgl-landing .wmin-secondary-choice__hint,
  .wgl-landing .wmin-safety-bridge,
  .wgl-landing .wmin-return {
    max-width: 68rem;
  }

  .wgl-landing .wmin-prose p,
  .wgl-landing .wmin-statement--featured {
    max-width: 60rem;
  }

  .wgl-landing .wgl-anchor-plate,
  .wgl-landing .wgl-anchor-plate--creed {
    max-width: min(100%, 66rem);
  }

  body.wmin-wgl-site .wgl-protected .gh-anchor-statement__text,
  body.wmin-wgl-site .wgl-heirloom .gh-anchor-statement__text {
    max-width: 56rem;
  }
}

.wgl-landing .wgl-pathway-grid {
  grid-template-columns: 1fr;
}

@media (min-width: 720px) and (max-width: 1399px) {
  .wgl-landing .wgl-pathway-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1400px) {
  .wgl-landing .wgl-pathway-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
  }
}

.wgl-landing .wgl-pathway-grid .ltr-wgl-pathway-card {
  display: flex;
  flex-direction: column;
  align-self: stretch;
}

.wgl-landing .wgl-pathway-grid .ltr-wgl-pathway-card p:last-child {
  margin-top: auto;
}

.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);
}

@media (min-width: 1100px) {
  .wgl-landing .wmin-prose p,
  .wgl-landing .wmin-statement--featured {
    max-width: 60rem;
  }
}

/* —— Protected anchors: preserved clauses on parchment plates —— */
.wgl-anchor-plate {
  width: 100%;
  max-width: min(100%, 40rem);
  margin: 2.45rem auto;
  padding: 1.45rem 1.15rem 1.55rem;
  box-sizing: border-box;
  background:
    linear-gradient(180deg, #f6eedf 0%, #efe6d4 100%);
  border-top: 1px solid var(--wgl-bronze-soft);
  border-bottom: 1px solid rgba(140, 115, 73, 0.2);
  border-left: none;
  border-right: none;
  box-shadow: inset 0 1px 0 rgba(255, 252, 246, 0.7);
}

.wgl-anchor-plate--creed {
  max-width: min(100%, 38rem);
  padding: 1.7rem 1.2rem 1.8rem;
  border-top-width: 2px;
  border-bottom-width: 1px;
}

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(1.16rem, 2.2vw, 1.36rem);
  font-style: italic;
  font-weight: 500;
  line-height: 1.5;
  color: var(--wgl-navy);
}

@media (min-width: 1100px) {
  body.wmin-wgl-site .wgl-protected .gh-anchor-statement__text,
  body.wmin-wgl-site .wgl-heirloom .gh-anchor-statement__text {
    max-width: 56rem;
  }
}

body.wmin-wgl-site .wgl-motto .gh-anchor-statement__text {
  width: 100%;
  max-width: 34rem;
  margin: 0.95rem auto 0;
  font-size: clamp(1.42rem, 3.15vw, 1.9rem);
  font-weight: 600;
  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: 48px;
  max-width: 48px;
  opacity: 0.9;
}

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

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);
}

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

  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% 0%;
  }
}
