/* ─────────────────────────────────────────────────────────────────────────
   /public/css/guide.css — pillar page (Guia Google Ad Grants).
   Layered on top of /public/css/styles.css (brand tokens).
   ───────────────────────────────────────────────────────────────────────── */

/* ── Reading progress bar ──────────────────────────────────────────────── */
.gd-progress {
  position: fixed; top: 0; left: 0; right: 0;
  height: 3px; background: transparent; z-index: 60;
  pointer-events: none;
}
.gd-progress-fill {
  height: 100%; width: 0%;
  background: var(--color-cta-primary);
  transition: width 80ms linear;
}


/* ── Hero ──────────────────────────────────────────────────────────────── */
.gd-hero {
  background: var(--warm-white);
  padding: 6rem 0 3.5rem;
  border-bottom: 1px solid var(--green-100);
}
.gd-hero-inner {
  max-width: 920px;
  margin: 0 auto;
  padding: 0 2.5rem;
}
.gd-hero-eyebrow {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--green-500);
  margin-bottom: 1.25rem;
}
.gd-hero h1 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: clamp(2rem, 4.4vw, 3.2rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--heading-text);
  margin-bottom: 1.4rem;
  max-width: 880px;
}
.gd-hero-sub {
  font-size: 1.18rem;
  line-height: 1.6;
  color: var(--charcoal);
  max-width: 720px;
  margin-bottom: 1.8rem;
}
.gd-hero-meta {
  display: flex; gap: 1.5rem; flex-wrap: wrap;
  font-size: 0.88rem;
  color: var(--muted);
  padding-top: 1.25rem;
  border-top: 1px solid var(--green-100);
}
.gd-hero-meta strong { color: var(--green-700); font-weight: 600; }


/* ── Body layout (TOC sidebar + prose) ─────────────────────────────────── */
.gd-body {
  max-width: 1200px;
  margin: 0 auto;
  padding: 4rem 2.5rem 6rem;
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 4rem;
}

/* Sticky TOC */
.gd-toc {
  position: sticky;
  top: 6rem;
  align-self: start;
  font-size: 0.92rem;
  max-height: calc(100vh - 8rem);
  overflow-y: auto;
}
.gd-toc-label {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1rem;
}
.gd-toc ul { list-style: none; padding: 0; margin: 0; }
.gd-toc li { margin-bottom: 0.65rem; }
.gd-toc a {
  color: var(--charcoal);
  text-decoration: none;
  line-height: 1.4;
  display: block;
  padding: 0.2rem 0 0.2rem 0.85rem;
  border-left: 2px solid transparent;
  transition: color 120ms ease, border-color 120ms ease;
}
.gd-toc a:hover { color: var(--green-700); }
.gd-toc a.is-active {
  color: var(--green-700);
  border-left-color: var(--green-500);
  font-weight: 600;
}


/* ── Prose ─────────────────────────────────────────────────────────────── */
.gd-prose {
  max-width: 720px;
}
.gd-prose h2 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.85rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--heading-text);
  line-height: 1.2;
  margin: 3.5rem 0 1.1rem;
  scroll-margin-top: 5rem;
}
.gd-prose h2:first-child { margin-top: 0; }
.gd-prose h3 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--heading-text);
  margin: 2rem 0 0.75rem;
}
.gd-prose p {
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--charcoal);
  margin-bottom: 1.25rem;
}
.gd-prose p strong { color: var(--heading-text); font-weight: 600; }
.gd-prose ul, .gd-prose ol {
  padding-left: 1.4rem;
  margin: 0 0 1.25rem;
}
.gd-prose li {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--charcoal);
  margin-bottom: 0.5rem;
}
.gd-prose code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.92em;
  background: var(--green-50);
  padding: 1px 6px;
  border-radius: 3px;
  color: var(--green-800);
}
.gd-prose blockquote {
  border-left: 3px solid var(--green-500);
  background: var(--green-50);
  padding: 1.1rem 1.4rem;
  margin: 1.75rem 0;
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--green-900);
  border-radius: 0 6px 6px 0;
}
.gd-prose a {
  color: var(--green-600);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1.5px;
}
.gd-prose a:hover { color: var(--green-800); }


/* ── Callouts ──────────────────────────────────────────────────────────── */
.gd-callout {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 1rem;
  padding: 1.25rem 1.4rem;
  border-radius: 8px;
  margin: 2rem 0;
  font-size: 1rem;
  line-height: 1.6;
}
.gd-callout-icon {
  width: 32px; height: 32px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.gd-callout-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 0.3rem;
  letter-spacing: 0.01em;
}
.gd-callout--gateway {
  background: var(--green-50);
  border-left: 3px solid var(--green-500);
}
.gd-callout--gateway .gd-callout-icon {
  background: var(--green-500); color: #fff;
}
.gd-callout--warn {
  background: rgba(243, 167, 18, 0.08);
  border-left: 3px solid var(--yellow-500);
}
.gd-callout--warn .gd-callout-icon {
  background: var(--yellow-500); color: #fff;
}


/* ── Inline CTA ─────────────────────────────────────────────────────────── */
.gd-inline-cta {
  background: var(--green-800);
  color: #fff;
  padding: 1.6rem 1.8rem;
  border-radius: 12px;
  margin: 2.5rem 0;
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  align-items: center;
  justify-content: space-between;
}
.gd-inline-cta-text {
  flex: 1 1 320px;
}
.gd-inline-cta h4 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  color: #fff;
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
}
.gd-inline-cta p {
  color: rgba(245,245,245,0.78);
  font-size: 0.95rem;
  line-height: 1.55;
  margin: 0;
}
.gd-inline-cta a {
  display: inline-block;
  background: var(--color-cta-primary);
  color: #fff;
  padding: 0.85rem 1.4rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  flex-shrink: 0;
  white-space: nowrap;
}
.gd-inline-cta a:hover { background: var(--red-600); }


/* ── Comparison table ──────────────────────────────────────────────────── */
.gd-table-wrap { overflow-x: auto; margin: 1.75rem 0; }
.gd-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
  background: #fff;
  border: 1px solid var(--green-100);
  border-radius: 8px;
  overflow: hidden;
}
.gd-table th, .gd-table td {
  padding: 0.85rem 1rem;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--green-100);
  line-height: 1.5;
}
.gd-table th {
  background: var(--green-50);
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--green-800);
}
.gd-table tr:last-child td { border-bottom: none; }


/* ── FAQ accordion ─────────────────────────────────────────────────────── */
.gd-faq { margin: 1.5rem 0; }
.gd-faq details {
  border-bottom: 1px solid var(--green-100);
  padding: 1.25rem 0;
}
.gd-faq summary {
  cursor: pointer;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--heading-text);
  padding-right: 2rem;
  position: relative;
  list-style: none;
  line-height: 1.4;
}
.gd-faq summary::-webkit-details-marker { display: none; }
.gd-faq summary::after {
  content: '+';
  position: absolute;
  right: 0; top: 0;
  width: 24px; height: 24px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
  color: var(--green-500);
  transition: transform 180ms ease;
}
.gd-faq details[open] summary::after { content: '−'; }
.gd-faq details p {
  margin-top: 0.85rem;
  font-size: 0.98rem;
  color: var(--charcoal);
  line-height: 1.65;
}


/* ── Closing CTA band (reuse blog band visual; keep distinct class) ────── */
.gd-cta-band {
  background: linear-gradient(180deg, var(--green-800), var(--green-900));
  color: #fff;
  padding: 5rem 2.5rem;
  text-align: center;
}
.gd-cta-band h2 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  color: #fff;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
}
.gd-cta-band p {
  color: rgba(245,245,245,0.78);
  max-width: 540px;
  margin: 0 auto 2rem;
  line-height: 1.6;
  font-size: 1.05rem;
}
.gd-cta-band-actions {
  display: flex; gap: 0.75rem; justify-content: center; flex-wrap: wrap;
}
.gd-cta-band-actions a {
  font-weight: 600; font-size: 0.98rem;
  padding: 0.95rem 1.6rem;
  border-radius: 10px;
  text-decoration: none;
  min-height: 48px;
  display: inline-flex; align-items: center;
}
.gd-cta-band-actions .btn-primary {
  background: var(--color-cta-primary); color: #fff;
}
.gd-cta-band-actions .btn-primary:hover { background: var(--red-600); }
.gd-cta-band-actions .btn-outline {
  background: transparent; color: #fff;
  border: 1px solid rgba(255,255,255,0.32);
}


/* ── Mobile ────────────────────────────────────────────────────────────── */
@media (max-width: 980px) {
  .gd-body {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 3rem 1.5rem 4rem;
  }
  .gd-toc {
    position: static;
    max-height: none;
    border-bottom: 1px solid var(--green-100);
    padding-bottom: 1.5rem;
  }
  .gd-hero { padding: 4rem 0 2.5rem; }
  .gd-hero-inner { padding: 0 1.5rem; }
  .gd-prose h2 { font-size: 1.55rem; }
  .gd-inline-cta { flex-direction: column; align-items: flex-start; }
}
