/* Mama Bloom Guides — the Living Letter reading room.
   Loads after world.css and deliberately reuses its six-colour system. */

.guide-site {
  background: var(--milk-glass);
  color: var(--ink-canopy);
}

.guide-site .nav__links a[aria-current="page"] {
  position: relative;
}

.guide-site .nav__links a[aria-current="page"]::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 5px;
  left: 0;
  height: 1px;
  background: var(--pollen-gold);
}

.guide-site a:focus-visible {
  outline: 3px solid var(--pollen-gold);
  outline-offset: 4px;
}

/* The guide footer uses the same two verified public channels as the
   information pages — textual, quiet, and large enough to tap. */
.guide-site .footer__social { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 17px; }
.guide-site .footer__social a { min-height: 38px; display: inline-flex; align-items: center; gap: 6px; color: rgba(251,248,245,.72); font-size: .75rem; font-weight: 650; letter-spacing: .04em; text-decoration: none; transition: color .2s var(--ease), transform .2s var(--ease); }
.guide-site .footer__social a span { color: var(--pollen-gold); font-size: .84rem; }
.guide-site .footer__social a:hover { color: var(--pollen-gold); transform: translateY(-1px); }
.guide-site .footer__social a:focus-visible { outline: 2px solid var(--pollen-gold); outline-offset: 4px; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Opening folio: one confident brand moment, then a quiet reading surface. */
.guide-hero {
  position: relative;
  min-height: 620px;
  display: grid;
  align-items: end;
  overflow: hidden;
  isolation: isolate;
  color: var(--milk-glass);
  background:
    radial-gradient(58% 86% at 89% 15%, rgba(93, 125, 104, .37), transparent 70%),
    radial-gradient(40% 60% at 4% 100%, rgba(214, 93, 120, .19), transparent 72%),
    var(--ink-canopy);
}

.guide-hero--hub { min-height: min(780px, 88svh); }

.guide-hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  width: min(32rem, 60vw);
  aspect-ratio: 1;
  right: -13rem;
  bottom: -18rem;
  border: 1px solid rgba(211, 173, 85, .28);
  border-radius: 50%;
  box-shadow:
    0 0 0 4.8rem rgba(211, 173, 85, .035),
    0 0 0 9.6rem rgba(211, 173, 85, .025);
}

.guide-thread {
  position: absolute;
  z-index: -1;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: .72;
}

.guide-thread path {
  fill: none;
  stroke: var(--pollen-gold);
  stroke-width: 1.2;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  vector-effect: non-scaling-stroke;
  animation: guide-thread-draw 1.9s var(--ease) .15s forwards;
}

.guide-thread circle {
  fill: var(--pollen-gold);
  transform-origin: center;
  animation: guide-thread-bloom .55s var(--ease) 1.65s both;
}

@keyframes guide-thread-draw { to { stroke-dashoffset: 0; } }
@keyframes guide-thread-bloom {
  from { opacity: 0; transform: scale(0); }
  to { opacity: 1; transform: scale(1); }
}

.guide-hero__inner {
  position: relative;
  width: min(1040px, calc(100vw - 48px));
  margin: 0 auto;
  padding: 148px 0 clamp(72px, 9vw, 112px);
}

.guide-hero__inner--hub { width: var(--shell); }

.guide-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
  margin-bottom: 38px;
  color: rgba(251, 248, 245, .64);
  font-size: .76rem;
  font-weight: 600;
}

.guide-breadcrumb a {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
}

.guide-breadcrumb a:hover { color: var(--milk-glass); }

.guide-kicker,
.guide-section-label {
  margin: 0;
  color: var(--pollen-gold);
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
}

.guide-hero h1 {
  max-width: 15ch;
  margin: 16px 0 0;
  font-family: var(--display);
  font-size: clamp(3.25rem, 7.3vw, 7.1rem);
  font-weight: 400;
  letter-spacing: -.042em;
  line-height: .93;
  text-wrap: balance;
}

.guide-hero--article h1 {
  max-width: 17ch;
  font-size: clamp(3rem, 6vw, 5.9rem);
  line-height: .96;
}

.guide-hero__summary {
  max-width: 60ch;
  margin: 28px 0 0;
  color: rgba(251, 248, 245, .76);
  font-family: var(--letter);
  font-size: clamp(1.08rem, 1.7vw, 1.34rem);
  font-weight: 360;
  line-height: 1.62;
}

.guide-proof {
  max-width: 760px;
  margin-top: 36px;
  padding-top: 18px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 28px;
  border-top: 1px solid rgba(251, 248, 245, .18);
  color: rgba(251, 248, 245, .62);
  font-size: .78rem;
}

.guide-proof strong { color: var(--milk-glass); font-weight: 600; }

.guide-facts {
  max-width: 760px;
  margin: 48px 0 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid rgba(251, 248, 245, .18);
  border-bottom: 1px solid rgba(251, 248, 245, .18);
}

.guide-facts div {
  min-height: 108px;
  padding: 22px 26px 20px 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-right: 1px solid rgba(251, 248, 245, .18);
}

.guide-facts div + div { padding-left: 26px; }
.guide-facts div:last-child { border-right: 0; }
.guide-facts dt {
  font-family: var(--body);
  font-size: 1.72rem;
  font-variant-numeric: lining-nums tabular-nums;
  font-weight: 650;
  letter-spacing: -.03em;
  line-height: 1;
}
.guide-facts dd { margin: 8px 0 0; color: rgba(251, 248, 245, .62); font-size: .78rem; }

/* Article: the thread becomes a book-binding rail rather than another card. */
.guide-article { background: var(--milk-glass); }

.guide-layout {
  width: min(1040px, calc(100vw - 48px));
  margin: 0 auto;
  padding: clamp(74px, 9vw, 118px) 0;
  display: grid;
  grid-template-columns: 220px minmax(0, 690px);
  justify-content: space-between;
  gap: clamp(48px, 8vw, 100px);
  align-items: start;
}

.guide-rail {
  position: sticky;
  top: 96px;
  padding-left: 22px;
  border-left: 1px solid var(--pollen-gold);
}

.guide-review { padding-bottom: 25px; border-bottom: 1px solid var(--line); }
.guide-review p,
.guide-toc > p {
  margin: 0 0 12px;
  color: var(--ink-soft);
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.guide-review strong {
  display: block;
  font-family: var(--letter);
  font-size: .96rem;
  font-weight: 430;
  line-height: 1.5;
}

.guide-review span {
  display: block;
  margin-top: 13px;
  color: var(--ink-soft);
  font-size: .72rem;
}

.guide-toc { margin-top: 26px; }
.guide-toc ol { margin: 0; padding: 0; list-style: none; }
.guide-toc li { border-top: 1px solid var(--line); }
.guide-toc li:last-child { border-bottom: 1px solid var(--line); }
.guide-toc a {
  min-height: 42px;
  display: flex;
  align-items: center;
  color: var(--ink-soft);
  font-size: .76rem;
  line-height: 1.35;
}
.guide-toc a:hover { color: var(--ink-canopy); }

.guide-reading-column { min-width: 0; }
.guide-body {
  color: var(--ink-canopy);
  font-size: clamp(1.04rem, 1.35vw, 1.13rem);
  line-height: 1.78;
}

.guide-body p { margin: 0 0 1.35em; }
.guide-body strong { font-weight: 650; }
.guide-body h2 {
  scroll-margin-top: 100px;
  margin: 2.25em 0 .62em;
  font-family: var(--letter);
  font-size: clamp(1.55rem, 2.5vw, 2rem);
  font-weight: 480;
  letter-spacing: -.015em;
  line-height: 1.16;
  text-wrap: balance;
}
.guide-body h2:first-child { margin-top: 0; }
.guide-body ul { margin: 0 0 1.45em; padding-left: 1.25em; }
.guide-body li { margin: 0 0 .58em; padding-left: .3em; }
.guide-body li::marker { color: var(--ribbon-coral); }
.guide-body a,
.guide-sources a { text-decoration: underline; text-decoration-color: var(--ribbon-coral); text-underline-offset: 3px; }

.guide-scope {
  margin-top: 58px;
  padding: 24px 0 3px 28px;
  border-top: 1px solid var(--line);
  border-left: 3px solid var(--pollen-gold);
}

.guide-scope h2,
.guide-sources h2,
.guide-cta h2,
.guide-related h2,
.guide-hub__intro h2,
.guide-shelf h2 {
  margin: 0;
  font-family: var(--letter);
  font-weight: 470;
  letter-spacing: -.018em;
  line-height: 1.12;
}

.guide-scope h2 { font-size: 1.18rem; }
.guide-scope p { margin: 10px 0 18px; color: var(--ink-soft); font-size: .9rem; line-height: 1.62; }
.guide-scope__urgent { color: var(--ink-canopy) !important; font-weight: 600; }

.guide-sources {
  margin-top: 64px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.guide-sources .guide-section-label { color: var(--ink-soft); }
.guide-sources h2 { margin-top: 9px; font-size: 1.48rem; }
.guide-sources > p:not(.guide-section-label) { color: var(--ink-soft); font-size: .85rem; line-height: 1.6; }
.guide-sources ol { margin: 22px 0 0; padding: 0; list-style: none; counter-reset: source; }
.guide-sources li { counter-increment: source; border-top: 1px solid var(--line); }
.guide-sources li:last-child { border-bottom: 1px solid var(--line); }
.guide-sources li a {
  min-height: 50px;
  display: grid;
  grid-template-columns: 30px 1fr;
  align-items: center;
  font-size: .86rem;
  text-decoration: none;
}
.guide-sources li a::before { content: counter(source, decimal-leading-zero); color: var(--ink-soft); font-size: .66rem; }
.guide-sources li a:hover { color: var(--ribbon-coral); }

.guide-cta {
  margin-top: 72px;
  padding: clamp(30px, 5vw, 48px);
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 32px;
  color: var(--milk-glass);
  background: var(--garden-night);
  border-radius: 4px 34px 4px 34px;
}
.guide-cta h2 { margin-top: 10px; font-size: clamp(1.75rem, 3vw, 2.45rem); }
.guide-cta p:not(.guide-section-label) { max-width: 49ch; margin: 15px 0 0; color: rgba(251, 248, 245, .7); }
.guide-cta .button { color: var(--ink-canopy); background: var(--pollen-gold); white-space: nowrap; }

.guide-cta--sensitive {
  color: var(--ink-canopy);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 0;
}
.guide-cta--sensitive .guide-section-label { color: var(--ink-soft); }
.guide-cta--sensitive p:not(.guide-section-label) { color: var(--ink-soft); }
.guide-cta--sensitive .button { color: var(--ink-canopy); background: transparent; border-color: var(--ink-canopy); }

.guide-related {
  width: var(--shell);
  margin: 0 auto;
  padding: 78px 0 92px;
  display: grid;
  grid-template-columns: minmax(220px, .7fr) minmax(0, 1.3fr);
  gap: clamp(48px, 9vw, 120px);
  border-top: 1px solid var(--line);
}
.guide-related .guide-section-label { color: var(--ink-soft); }
.guide-related h2 { max-width: 12ch; margin-top: 12px; font-size: clamp(2rem, 4vw, 3.6rem); }
.guide-related__head > p:last-child { max-width: 35ch; color: var(--ink-soft); }
.guide-related ol { margin: 0; padding: 0; list-style: none; }
.guide-related li { border-top: 1px solid var(--line); }
.guide-related li:last-child { border-bottom: 1px solid var(--line); }
.guide-related a {
  min-height: 96px;
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-areas: "category arrow" "title arrow";
  align-items: center;
  gap: 5px 20px;
  transition: padding .25s var(--ease);
}
.guide-related a:hover { padding-left: 12px; }
.guide-related a span { grid-area: category; align-self: end; color: var(--ink-soft); font-size: .66rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.guide-related a strong { grid-area: title; align-self: start; font-family: var(--letter); font-size: 1.08rem; font-weight: 480; }
.guide-related a i { grid-area: arrow; color: var(--ribbon-coral); font-size: 1.25rem; font-style: normal; }

/* Hub: an editorial index, intentionally not a wall of rounded cards. */
.guide-hub { width: var(--shell); margin: 0 auto; padding: 0 0 clamp(92px, 12vw, 154px); }
.guide-hub__intro {
  padding: clamp(70px, 9vw, 116px) 0;
  display: grid;
  grid-template-columns: minmax(260px, .9fr) minmax(320px, 1.1fr);
  align-items: end;
  gap: clamp(46px, 9vw, 126px);
  border-bottom: 1px solid var(--line);
}
.guide-hub__intro .guide-section-label { color: var(--ink-soft); }
.guide-hub__intro h2 { max-width: 12ch; margin-top: 14px; font-size: clamp(2.5rem, 5vw, 5rem); }
.guide-hub__intro > p { max-width: 60ch; margin: 0; color: var(--ink-soft); font-size: 1rem; line-height: 1.7; }

.guide-shelf {
  padding: clamp(64px, 8vw, 104px) 0;
  display: grid;
  grid-template-columns: minmax(220px, .62fr) minmax(0, 1.38fr);
  gap: clamp(48px, 8vw, 112px);
  border-bottom: 1px solid var(--line);
}
.guide-shelf > header { position: sticky; top: 98px; align-self: start; }
.guide-shelf .guide-section-label { color: var(--ink-soft); }
.guide-shelf h2 { max-width: 11ch; margin-top: 12px; font-size: clamp(2rem, 3.8vw, 3.5rem); }
.guide-shelf header > p:last-child { max-width: 34ch; color: var(--ink-soft); font-size: .9rem; line-height: 1.62; }
.guide-shelf ol { margin: 0; padding: 0; list-style: none; }
.guide-shelf li { border-top: 1px solid var(--line); }
.guide-shelf li:last-child { border-bottom: 1px solid var(--line); }
.guide-shelf a {
  min-height: 146px;
  padding: 25px 0;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto 28px;
  align-items: center;
  gap: 22px;
  transition: padding .25s var(--ease), color .25s;
}
.guide-shelf a:hover { padding-right: 10px; padding-left: 10px; color: var(--ribbon-coral); }
.guide-index__number { align-self: start; padding-top: 5px; color: var(--ink-soft); font-size: .68rem; font-weight: 700; letter-spacing: .1em; }
.guide-index__copy { min-width: 0; display: block; }
.guide-index__copy strong { display: block; color: var(--ink-canopy); font-family: var(--letter); font-size: clamp(1.2rem, 2vw, 1.62rem); font-weight: 480; line-height: 1.18; }
.guide-index__copy small { max-width: 58ch; display: block; margin-top: 9px; color: var(--ink-soft); font-size: .84rem; line-height: 1.52; }
.guide-index__time { color: var(--ink-soft); font-size: .68rem; white-space: nowrap; }
.guide-shelf i { color: var(--ribbon-coral); font-size: 1.25rem; font-style: normal; }

@media (max-width: 980px) {
  .guide-layout { grid-template-columns: 180px minmax(0, 1fr); gap: 48px; }
  .guide-cta { grid-template-columns: 1fr; align-items: start; }
  .guide-cta .button { justify-self: start; }
  .guide-shelf { grid-template-columns: 200px minmax(0, 1fr); gap: 42px; }
  .guide-shelf a { grid-template-columns: 34px minmax(0, 1fr) 24px; }
  .guide-index__time { display: none; }
}

@media (max-width: 760px) {
  .guide-hero { min-height: 600px; }
  .guide-hero--hub { min-height: 700px; }
  .guide-hero__inner { width: calc(100vw - 32px); padding-top: 126px; }
  .guide-hero h1,
  .guide-hero--article h1 { font-size: clamp(2.85rem, 13vw, 4.7rem); }
  .guide-facts { grid-template-columns: 1fr; }
  .guide-facts div,
  .guide-facts div + div { min-height: 76px; padding: 16px 0; border-right: 0; border-bottom: 1px solid rgba(251, 248, 245, .18); }
  .guide-facts div:last-child { border-bottom: 0; }

  .guide-layout { width: calc(100vw - 32px); grid-template-columns: 1fr; gap: 48px; }
  .guide-rail { position: static; padding-left: 17px; }
  .guide-toc ol { columns: 2; column-gap: 24px; }
  .guide-toc li { break-inside: avoid; }

  .guide-related { width: calc(100vw - 32px); grid-template-columns: 1fr; gap: 34px; }
  .guide-related h2 { max-width: 16ch; }

  .guide-hub { width: calc(100vw - 32px); }
  .guide-hub__intro,
  .guide-shelf { grid-template-columns: 1fr; gap: 34px; }
  .guide-shelf > header { position: static; }
  .guide-shelf h2 { max-width: 15ch; }
  .guide-site .footer__social a { min-height: 44px; }
}

@media (max-width: 520px) {
  .guide-proof { display: block; }
  .guide-proof span { display: block; margin-top: 8px; }
  .guide-toc ol { columns: 1; }
  .guide-scope { padding-left: 18px; }
  .guide-cta { margin-right: -2px; margin-left: -2px; padding: 28px 22px; }
  .guide-cta .button { width: 100%; white-space: normal; text-align: center; }
  .guide-shelf a { min-height: 128px; grid-template-columns: 30px minmax(0, 1fr) 20px; gap: 12px; }
  .guide-index__copy small { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .guide-thread path { stroke-dashoffset: 0; }
  .guide-thread circle { opacity: 1; transform: none; }
}

@media (forced-colors: active) {
  .guide-thread,
  .guide-hero::after { display: none; }
  .guide-cta,
  .guide-cta--sensitive { border: 1px solid CanvasText; }
}

@media print {
  .guide-site .nav,
  .guide-site .footer,
  .guide-cta,
  .guide-related,
  .guide-thread { display: none !important; }
  .guide-hero { min-height: 0; color: #000; background: #fff; }
  .guide-hero__inner { width: 100%; padding: 24px 0; }
  .guide-hero__summary,
  .guide-proof { color: #333; }
  .guide-layout { width: 100%; display: block; padding: 24px 0; }
  .guide-rail { position: static; margin-bottom: 30px; }
  .guide-body { font-size: 11pt; }
}
