.lg-guide {
  --lg-forest: var(--forest, #1e3a14);
  --lg-green: var(--green, #3d6128);
  --lg-green-mid: var(--green-mid, #4e7a33);
  --lg-sage: var(--sage, #e8ede4);
  --lg-cream: var(--cream, #faf8f4);
  --lg-text: var(--text, #2d2d2a);
  --lg-muted: var(--muted, #5a5a54);
  --lg-border: var(--border, #e4ddd2);
  --lg-serif: var(--serif, "Cormorant Garamond", Georgia, serif);
  --lg-sans: var(--sans, "Plus Jakarta Sans", system-ui, sans-serif);
  padding: 64px 0 72px;
  background: var(--lg-sage);
}

/* Retreat pages: warm cream ground and the sage brand green, not the
   mindfulness landing palette. Wider card since these sections carry collages. */
.lg-guide--retreat {
  --lg-forest: #2f3d2c;
  --lg-green: #5f785f;
  --lg-green-mid: #6d876d;
  --lg-sage: #faf6f3;
  --lg-border: #e7ded4;
  padding: 72px 0 80px;
}

.lg-guide--retreat .lg-guide__card {
  max-width: 880px;
  box-shadow: 0 18px 40px rgba(95, 120, 95, 0.08);
}

.lg-guide--tests {
  --lg-forest: #1e4a1a;
  --lg-green: #2d5a27;
  --lg-green-mid: #2d5a27;
  --lg-sage: #e8f0e6;
  --lg-border: #dfe8dc;
}

.lg-guide__inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

.lg-guide__header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 36px;
}

.lg-guide__eyebrow {
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--lg-green);
  font-size: 0.78rem;
  font-weight: 600;
  margin: 0 0 12px;
}

.lg-guide__header h2 {
  font-family: var(--lg-serif);
  font-weight: 400;
  font-size: clamp(1.9rem, 3.2vw, 2.6rem);
  color: var(--lg-forest);
  margin: 0 0 12px;
  line-height: 1.2;
}

.lg-guide__card {
  max-width: 780px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid var(--lg-border);
  border-radius: 24px;
  padding: 40px 44px 36px;
  box-shadow: 0 14px 32px rgba(30, 58, 20, 0.06);
}

.lg-guide__lede {
  color: var(--lg-muted);
  font-size: 1.05rem;
  line-height: 1.65;
  margin: 0 auto;
  max-width: 62ch;
}

.lg-prose {
  color: var(--lg-text);
  font-family: var(--lg-sans);
  font-size: 1.05rem;
  line-height: 1.75;
}

.lg-prose > *:first-child {
  margin-top: 0;
}

.lg-prose p {
  margin: 0 0 1.15em;
}

.lg-prose h3,
.lg-prose h4 {
  font-family: var(--lg-serif);
  font-weight: 500;
  color: var(--lg-forest);
  line-height: 1.25;
  margin: 1.6em 0 0.55em;
}

.lg-prose h3 {
  font-size: 1.55rem;
}

.lg-prose h4 {
  font-size: 1.25rem;
  color: var(--lg-green);
}

.lg-prose ul,
.lg-prose ol {
  margin: 0 0 1.2em;
  padding-left: 1.25em;
}

.lg-prose li {
  margin: 0 0 0.45em;
}

.lg-prose li > p {
  margin: 0 0 0.35em;
}

/* `data-guide-cta` opts a link out of prose link styling so a button keeps its
   own fill and label colour. */
.lg-prose a:not([data-guide-cta]) {
  color: var(--lg-green);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.lg-prose a:not([data-guide-cta]):hover {
  color: var(--lg-forest);
}

.lg-guide__cta {
  display: flex;
  justify-content: center;
  margin-top: 30px;
}

.lg-prose img,
.lg-prose figure img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 16px;
  margin: 1.2em 0;
}

.lg-prose figure {
  margin: 1.2em 0;
}

.lg-prose figcaption {
  color: var(--lg-muted);
  font-size: 0.9rem;
  margin-top: 0.4em;
}

.lg-guide__details {
  margin-top: 8px;
}

.lg-guide__summary {
  list-style: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 8px 0 4px;
  border-radius: 999px;
  padding: 13px 24px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--lg-green);
  background: transparent;
  border: 2px solid rgba(61, 97, 40, 0.4);
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.lg-guide__summary::-webkit-details-marker {
  display: none;
}

.lg-guide__summary::after {
  content: "";
  width: 0.45em;
  height: 0.45em;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-1px);
}

.lg-guide__details[open] .lg-guide__summary::after {
  transform: rotate(-135deg) translateY(-1px);
}

.lg-guide__summary:hover {
  background: var(--lg-sage);
  border-color: var(--lg-green);
}

.lg-guide__close {
  display: none;
}

.lg-guide__details[open] .lg-guide__open {
  display: none;
}

.lg-guide__details[open] .lg-guide__close {
  display: inline;
}

.lg-guide__rest {
  margin-top: 22px;
  padding-top: 8px;
  border-top: 1px solid var(--lg-border);
}

@media (max-width: 700px) {
  .lg-guide__card {
    padding: 28px 20px 24px;
    border-radius: 20px;
  }

  .lg-guide__summary {
    width: 100%;
  }
}
