/* PDFree guide pages. Loaded AFTER landing.css, which supplies all shared
   chrome (header, footer, buttons, .container) and every colour token.
   Nothing here redefines a colour; guides are typography and layout only.
   Breakpoints match landing.css: 860px and 600px. */

/* ---------- Hero ---------- */
/* Left-aligned rather than centred like .page-hero: a guide is a document,
   and a centred lede fights the left-aligned body text below it. */
.guide-hero {
  padding: 58px 0 30px;
}

.guide-hero .inner {
  max-width: 68ch;
  margin: 0 auto;
}

.guide-hero h1 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.9rem, 4vw, 2.7rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin: 0 0 16px;
}

.guide-hero .lede {
  color: var(--muted);
  font-size: 1.1rem;
  max-width: none;
  margin: 0 0 18px;
}

.guide-meta {
  font-size: 0.82rem;
  color: var(--label);
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  padding-top: 14px;
  border-top: 1px solid var(--green-soft);
}

.guide-meta a { color: var(--green-deep); }

/* ---------- Table of contents ---------- */
.guide-toc {
  max-width: 68ch;
  margin: 0 auto 40px;
  padding: 20px 24px;
  background: var(--bg-alt);
  border: 1px solid var(--green-soft);
  border-radius: 10px;
}

.guide-toc h2 {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--label);
  margin: 0 0 10px;
}

.guide-toc ol {
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
}

.guide-toc li { margin-bottom: 5px; }

.guide-toc a {
  color: var(--green-deep);
  text-decoration: none;
}

.guide-toc a:hover { text-decoration: underline; }

/* ---------- Body ---------- */
/* 68ch is the readable measure. Everything inside a guide shares it so the
   eye never has to re-find the left edge. */
.guide-body {
  max-width: 68ch;
  margin: 0 auto;
  font-size: 1.02rem;
}

.guide-body h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.55rem;
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin: 46px 0 14px;
  scroll-margin-top: 84px;
}

.guide-body h2:first-child { margin-top: 0; }

.guide-body h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.12rem;
  margin: 30px 0 10px;
}

.guide-body p {
  color: var(--muted);
  margin-bottom: 16px;
}

.guide-body strong { color: var(--ink); font-weight: 700; }

.guide-body a {
  color: var(--green-deep);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.guide-body a:hover { color: var(--green); }

.guide-body ul,
.guide-body ol {
  color: var(--muted);
  margin: 0 0 18px;
  padding-left: 24px;
}

.guide-body li { margin-bottom: 8px; }

.guide-body code {
  font-family: ui-monospace, "Cascadia Code", "Source Code Pro", monospace;
  font-size: 0.88em;
  background: var(--brand-wash);
  color: var(--green-deep);
  padding: 1px 5px;
  border-radius: 4px;
}

/* ---------- Numbered steps ---------- */
/* Counter-driven so the markup stays a plain <ol> and the numbering cannot
   drift out of sync with the list. */
.guide-steps {
  counter-reset: guide-step;
  list-style: none;
  max-width: 68ch;
  margin: 0 auto 24px;
  padding: 0;
}

.guide-steps > li {
  counter-increment: guide-step;
  position: relative;
  padding-left: 52px;
  margin-bottom: 22px;
  color: var(--muted);
}

.guide-steps > li::before {
  content: counter(guide-step);
  position: absolute;
  left: 0;
  top: -2px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--brand-wash);
  color: var(--green-deep);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.98rem;
}

.guide-steps > li strong {
  display: block;
  color: var(--ink);
  font-weight: 700;
  margin-bottom: 3px;
}

/* ---------- Callout ---------- */
.guide-callout {
  max-width: 68ch;
  margin: 26px auto;
  padding: 18px 22px;
  background: var(--cream);
  border: 1px solid var(--green-soft);
  border-left: 4px solid var(--green);
  border-radius: 8px;
}

.guide-callout p { margin-bottom: 0; color: var(--muted); }
.guide-callout p + p { margin-top: 10px; }

.guide-callout .callout-title {
  display: block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--ink);
  margin-bottom: 6px;
}

/* Warning variant: apricot rather than green, for claims that carry risk. */
.guide-callout.warn { border-left-color: var(--apricot); }

/* ---------- Related guides ---------- */
.guide-related {
  max-width: 68ch;
  margin: 54px auto 0;
  padding-top: 30px;
  border-top: 1px solid var(--green-soft);
}

.guide-related h2 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  margin: 0 0 16px;
}

.guide-related ul {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin: 0;
  padding: 0;
}

.guide-related a {
  display: block;
  height: 100%;
  padding: 14px 16px;
  background: var(--bg-alt);
  border: 1px solid var(--green-soft);
  border-radius: 8px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.guide-related a:hover {
  background: var(--brand-wash);
  border-color: var(--hover-line);
}

.guide-related a span {
  display: block;
  font-weight: 400;
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 3px;
}

/* ---------- Guides index ---------- */
.guide-list {
  max-width: 860px;
  margin: 0 auto;
}

.guide-list h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.3rem;
  margin: 40px 0 16px;
}

.guide-list h2:first-child { margin-top: 0; }

.guide-cards {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin: 0;
  padding: 0;
}

.guide-cards a {
  display: block;
  height: 100%;
  padding: 20px 22px;
  background: var(--cream);
  border: 1px solid var(--green-soft);
  border-radius: 10px;
  color: var(--ink);
  text-decoration: none;
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.guide-cards a:hover {
  border-color: var(--green);
  transform: translateY(-2px);
}

.guide-cards h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  margin: 0 0 6px;
}

.guide-cards p {
  color: var(--muted);
  font-size: 0.9rem;
  margin: 0;
}

/* Featured card spans both columns: the pillar guide is the entry point. */
.guide-cards li.featured { grid-column: 1 / -1; }

.guide-cards li.featured a {
  background: var(--brand-wash);
  border-color: var(--green);
}

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .guide-related ul,
  .guide-cards {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .guide-hero { padding: 40px 0 24px; }
  .guide-body { font-size: 1rem; }
  .guide-body h2 { margin-top: 36px; }
  .guide-toc { padding: 16px 18px; }
  .guide-steps > li { padding-left: 44px; }
  .guide-steps > li::before { width: 30px; height: 30px; font-size: 0.9rem; }
}
