/* Shared beginner guide (ChemOCSR-style) */
.guide-page { max-width: 1080px; margin: 0 auto; padding: 20px 16px 64px; }
.guide-page a { color: var(--guide-accent, #0d9488); }
.guide-back {
  display: inline-flex; align-items: center; gap: 6px;
  margin-bottom: 14px; font-weight: 600; text-decoration: none;
  font-size: 0.92rem;
}
.guide-back:hover { text-decoration: underline; }
.guide-hero {
  margin: 0 0 18px; padding: 22px 22px 18px;
  border: 1px solid var(--guide-line, #d7e2df);
  border-radius: 14px;
  background: var(--guide-card, #fff);
  box-shadow: 0 10px 28px rgba(15, 40, 35, 0.06);
}
.guide-hero h1 {
  margin: 0 0 8px; font-size: 1.55rem; letter-spacing: -0.02em;
  color: var(--guide-ink, #12302b);
}
.guide-hero p {
  margin: 0; color: var(--guide-muted, #5b6f6a); line-height: 1.55; font-size: 0.98rem;
}
.guide-toc {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px;
  margin-bottom: 14px; padding: 12px 14px;
  border: 1px solid var(--guide-line, #d7e2df);
  border-radius: 12px; background: var(--guide-card, #fff);
}
.guide-toc strong { color: var(--guide-ink, #12302b); margin-right: 4px; }
.guide-toc a { font-weight: 600; font-size: 0.9rem; text-decoration: none; }
.guide-toc a:hover { text-decoration: underline; }
.guide-step {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1.15fr);
  gap: 22px; align-items: start;
  margin-bottom: 14px; padding: 18px;
  border: 1px solid var(--guide-line, #d7e2df);
  border-radius: 14px; background: var(--guide-card, #fff);
}
.guide-step--flip .guide-step__fig { order: -1; }
.guide-step__num {
  margin: 0 0 6px; font-size: 0.78rem; font-weight: 700;
  letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--guide-accent, #0d9488);
}
.guide-step h2 {
  margin: 0 0 12px; font-size: 1.22rem; letter-spacing: -0.02em;
  color: var(--guide-ink, #12302b);
}
.guide-step ol {
  margin: 0 0 12px; padding-left: 1.2em;
  display: grid; gap: 8px; line-height: 1.55;
  color: var(--guide-ink, #12302b);
}
.guide-step .muted {
  margin: 0; color: var(--guide-muted, #5b6f6a); font-size: 0.9rem; line-height: 1.5;
}
.guide-step__fig { margin: 0; }
.guide-step__fig img, .guide-step__fig svg {
  display: block; width: 100%; height: auto;
  border-radius: 12px; border: 1px solid var(--guide-line, #d7e2df);
  background: #eef6f4; box-shadow: 0 8px 20px rgba(15, 40, 35, 0.06);
}
.guide-step__fig figcaption {
  margin-top: 8px; font-size: 0.8rem;
  color: var(--guide-muted, #5b6f6a); text-align: center;
}
.guide-cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.guide-cta a {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 10px 14px; border-radius: 10px; font-weight: 650;
  text-decoration: none; border: 1px solid transparent;
}
.guide-cta a.primary {
  background: var(--guide-accent, #0d9488); color: #fff;
}
.guide-cta a.secondary {
  background: transparent; color: var(--guide-ink, #12302b);
  border-color: var(--guide-line, #d7e2df);
}
.guide-nav-link {
  display: inline-flex; align-items: center; padding: 6px 10px;
  border-radius: 8px; font-weight: 600; font-size: 0.88rem;
  text-decoration: none; color: var(--guide-accent, #0d9488);
  border: 1px solid color-mix(in srgb, var(--guide-accent, #0d9488) 35%, transparent);
  background: color-mix(in srgb, var(--guide-accent, #0d9488) 10%, transparent);
  white-space: nowrap;
}
.guide-nav-link:hover { filter: brightness(1.05); }
@media (max-width: 900px) {
  .guide-step { grid-template-columns: 1fr; }
  .guide-step--flip .guide-step__fig { order: 0; }
}

/* Dark-site overrides via body class */
body.guide-theme-dark {
  --guide-ink: #e7ecf3;
  --guide-muted: #8b9bb4;
  --guide-line: #2a3548;
  --guide-card: #1a2332;
  --guide-accent: #3d8bfd;
  background: #0f1419;
  color: var(--guide-ink);
}
body.guide-theme-dark .guide-step__fig img,
body.guide-theme-dark .guide-step__fig svg { background: #121a24; }
