/* ──────────────────────────────────────────────────────────────
   Learn guides — shared look for /what-is-yuba/ and /what-is-textured-soy-protein/.
   Both guides use the same hero, section heading, dark "How it's made" band,
   two-column FAQ (same format as the For business page) and ending.
   Each page keeps its own content blocks (recipe cards, ingredient diagram).
   Load after the page's own <style> so these rules win.
   ────────────────────────────────────────────────────────────── */

/* Both guides use the same wide layout (the tofu skin guide's): 1440px content width */
.lg-hero .container, .lg-band .container { max-width: 1440px; margin: 0 auto; padding: 0 1.5rem; }
@media (min-width: 1024px) { .lg-hero .container, .lg-band .container { padding: 0 3rem; } }

/* Stacked bands: rounded top, slight overlap, like the rest of the site */
.lg-band {
  position: relative;
  padding: 5rem 0 5.5rem;
  border-radius: 24px 24px 0 0;
  margin-top: -24px;
  box-shadow: 0 -8px 40px rgba(0, 0, 0, 0.10);
}
.lg-band--cream  { background: var(--cream, #FAF5EA); }
.lg-band--rice   { background: var(--rice, #E8DCC0); }
.lg-band--forest { background: var(--forest, #122b1f); color: var(--cream, #FAF5EA); }
[id] { scroll-margin-top: calc(var(--site-nav-h-scrolled, 58px) + 1rem); }

/* Section heading: gold line + small label, then the title */
.lg-label {
  display: flex; align-items: center; gap: 0.75rem;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.7rem; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase;
  color: rgba(26, 26, 26, 0.6);
}
.lg-label::before { content: ""; width: 1.5rem; height: 2px; background: var(--yuba-gold, #C8923C); }
.lg-band--forest .lg-label { color: rgba(250, 245, 234, 0.7); }
.lg-h2 {
  font-family: 'Bricolage Grotesque', system-ui, sans-serif;
  font-weight: 800; letter-spacing: -0.04em; line-height: 1;
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  color: var(--forest, #122b1f);
  margin: 0.7rem 0 2.25rem;
}
.lg-band--forest .lg-h2 { color: var(--cream, #FAF5EA); }

/* ── Hero ── */
.lg-hero {
  position: relative; z-index: 1;
  background: var(--rice, #E8DCC0);
  padding: calc(var(--site-nav-h, 74px) + 2.5rem) 0 6rem;
}
.lg-hero .container { display: grid; gap: 3rem; align-items: center; }
@media (min-width: 1024px) { .lg-hero .container { grid-template-columns: 1fr 1fr; gap: 4.5rem; } }
.lg-title { margin: 0.4rem 0 0; }
.lg-q {
  display: flex; align-items: center; gap: 0.75rem;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.74rem; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--yuba-deep, #9C6F24);
}
.lg-q::before { content: ""; width: 1.5rem; height: 2px; background: var(--yuba-gold, #C8923C); }
.lg-slogan {
  display: block; margin-top: 1rem;
  font-family: 'Bricolage Grotesque', system-ui, sans-serif;
  font-weight: 800; letter-spacing: -0.04em; line-height: 0.95;
  font-size: clamp(2.6rem, 6vw, 4.8rem);
  color: var(--forest, #122b1f);
}
.lg-slogan .it { font-family: 'Instrument Serif', Georgia, serif; font-style: italic; font-weight: 400; }
.lg-outline {
  color: transparent; -webkit-text-fill-color: transparent;
  background-color: #C8923C;
  background-image: url("/img/soybeans-bg.webp");
  background-attachment: fixed; background-size: cover; background-position: center; background-repeat: no-repeat;
  -webkit-background-clip: text; background-clip: text;
}
@media (max-width: 900px), (hover: none) { .lg-outline { background-attachment: scroll; } }
.lg-intro { margin-top: 1.6rem; max-width: 34rem; }
.lg-intro p { font-family: 'Inter', system-ui, sans-serif; font-size: 1.08rem; line-height: 1.65; color: rgba(26, 26, 26, 0.8); }
.lg-intro p + p { margin-top: 1rem; }
.lg-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1rem; margin-top: 1.75rem; }
.lg-figure { margin: 0; position: relative; border-radius: 20px; overflow: hidden; box-shadow: 0 20px 60px rgba(156, 111, 36, 0.22); }
.lg-figure img { display: block; width: 100%; height: auto; }
.lg-figure--gold { background: var(--yuba-gold, #C8923C); }
.lg-figure figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 0.75rem 1rem;
  font-family: 'Inter', system-ui, sans-serif; font-size: 0.72rem; color: rgba(250, 245, 234, 0.92);
  background: linear-gradient(transparent, rgba(18, 43, 31, 0.6));
}

/* Buttons (same as the product pages) */
.lg-btn-gold {
  display: inline-flex; align-items: center; gap: 0.45rem;
  background: var(--yuba-gold, #C8923C); color: var(--forest, #122b1f);
  font-family: 'Inter', system-ui, sans-serif; font-weight: 700; font-size: 0.9rem;
  padding: 0.8rem 1.35rem; border-radius: 999px; text-decoration: none;
  transition: background 0.2s ease, transform 0.2s ease;
}
.lg-btn-gold:hover { background: var(--yuba-light, #E0B96A); transform: translateX(2px); }
.lg-btn-ghost {
  display: inline-flex; align-items: center; gap: 0.45rem;
  padding: 0.75rem 1.25rem; border-radius: 999px; border: 1px solid rgba(26, 38, 32, 0.25);
  font-family: 'Inter', system-ui, sans-serif; font-weight: 600; font-size: 0.88rem;
  color: var(--forest, #122b1f); text-decoration: none; background: transparent;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.lg-btn-ghost:hover { background: var(--forest, #122b1f); color: var(--cream, #FAF5EA); border-color: var(--forest, #122b1f); }
.lg-band--forest .lg-btn-ghost { border-color: rgba(224, 185, 106, 0.5); color: var(--yuba-light, #E0B96A); }
.lg-band--forest .lg-btn-ghost:hover { background: var(--yuba-gold, #C8923C); color: var(--forest, #122b1f); border-color: var(--yuba-gold, #C8923C); }
.lg-btn-gold:focus-visible, .lg-btn-ghost:focus-visible { outline: 2px solid var(--yuba-gold, #C8923C); outline-offset: 3px; }

/* ── How it's made: four steps on dark green ── */
.lg-steps { list-style: none; display: grid; gap: 1.75rem; grid-template-columns: 1fr; margin: 0; padding: 0; }
@media (min-width: 820px) { .lg-steps { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.lg-steps li { border-top: 2px solid var(--yuba-gold, #C8923C); padding-top: 1.1rem; }
.lg-steps .lg-num {
  display: block; margin-bottom: 0.7rem;
  font-family: 'Bricolage Grotesque', sans-serif; font-weight: 800; font-size: 2.2rem; letter-spacing: -0.03em; line-height: 1;
  color: var(--yuba-light, #E0B96A);
}
.lg-steps h3 { font-family: 'Inter', system-ui, sans-serif; font-size: 1.15rem; font-weight: 700; color: var(--cream, #FAF5EA); margin: 0 0 0.45rem; }
.lg-steps p { font-family: 'Inter', system-ui, sans-serif; font-size: 1rem; line-height: 1.6; color: rgba(250, 245, 234, 0.78); margin: 0; }

/* ── FAQ: two columns, same format as the For business page ── */
.lg-faq-layout { display: grid; gap: 1.75rem; }
@media (min-width: 900px) {
  .lg-faq-layout { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.6fr); gap: 3.5rem; align-items: start; }
  .lg-faq-head { position: sticky; top: 110px; }
}
.lg-faq-head .lg-h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: 0.9rem; }
.lg-faq-head p:not(.lg-label) { font-family: 'Inter', system-ui, sans-serif; font-size: 1rem; line-height: 1.6; color: rgba(26, 26, 26, 0.7); }
.lg-faq-head .lg-btn-ghost { margin-top: 0.75rem; padding: 0.5rem 1rem; font-size: 0.8rem; }
.lg-faq { border-top: 1px solid rgba(26, 38, 32, 0.12); }
.lg-faq-item { border-bottom: 1px solid rgba(26, 38, 32, 0.12); }
.lg-faq-item > summary {
  list-style: none; cursor: pointer; position: relative;
  padding: 1.05rem 2.2rem 1.05rem 0;
  font-family: 'Bricolage Grotesque', sans-serif; font-size: 1.02rem; line-height: 1.4; font-weight: 600; letter-spacing: -0.01em;
  color: var(--forest, #122b1f);
  transition: color 0.2s ease;
}
.lg-faq-item > summary::-webkit-details-marker { display: none; }
.lg-faq-item > summary::after {
  content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%);
  font-family: 'Inter', sans-serif; font-weight: 300; font-size: 1.35rem; color: var(--yuba-deep, #9C6F24);
}
.lg-faq-item[open] > summary::after { content: "−"; }
.lg-faq-item > summary:hover { color: var(--yuba-deep, #9C6F24); }
.lg-faq-item > summary:focus-visible { outline: 2px solid var(--yuba-gold, #C8923C); outline-offset: 3px; }
.lg-faq-answer { padding: 0 0 1.2rem; max-width: 720px; }
.lg-faq-answer p { font-family: 'Inter', system-ui, sans-serif; font-size: 0.95rem; line-height: 1.6; color: rgba(26, 26, 26, 0.72); margin: 0; }
.lg-faq-answer a { color: var(--yuba-ink, #7a5418); border-bottom: 1px solid rgba(156, 111, 36, 0.3); text-decoration: none; }
.lg-faq-answer a:hover { color: var(--yuba-gold, #C8923C); border-bottom-color: var(--yuba-gold, #C8923C); }

/* ── Ending ── */
.lg-end { text-align: center; padding: 5rem 0; }
.lg-end .lg-h2 { margin: 0 auto; max-width: 40rem; }
.lg-end .lg-actions { margin-top: 1.5rem; }
.lg-end p { font-family: 'Inter', system-ui, sans-serif; margin: 1rem auto 0; max-width: 36rem; color: rgba(250, 245, 234, 0.75); line-height: 1.6; }
.lg-end .lg-actions { justify-content: center; }

/* Textured soy protein guide: ingredients diagram beside the text */
.lg-ing .container { display: grid; gap: 2.5rem; align-items: center; }
@media (min-width: 900px) { .lg-ing .container { grid-template-columns: 1fr 1fr; gap: 4rem; } }
.lg-ing .lg-h2 { margin-bottom: 1rem; }
.lg-ing-copy p { font-family: 'Inter', system-ui, sans-serif; font-size: 1.02rem; line-height: 1.7; color: rgba(26, 26, 26, 0.75); max-width: 34rem; }
.lg-more { margin-top: 1.75rem; }
