/* Shared styles for the documentation pages. Mirrors the marketing site's
   look (see /index.html) in a lighter, article-friendly layout. */
:root {
  --bg: #f4f4f2; --surface: #fff; --ink: #0f172a; --ink-soft: #475569;
  --muted: #6b7686; --line: #e8e8e6; --line-strong: #dcdcd8;
  --primary: #2563eb; --primary-tint: #eaf1fe; --indigo: #4f46e5; --pos: #16a34a;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif; line-height: 1.65; }
.wrap { max-width: 760px; margin: 0 auto; padding: 0 20px; }

header { border-bottom: 1px solid var(--line); background: var(--surface); }
.nav-in { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; text-decoration: none; color: var(--ink); white-space: nowrap; }
.logo { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; color: #fff; font-weight: 700; background: linear-gradient(150deg, var(--primary), var(--indigo)); }
.nav-r { display: flex; align-items: center; gap: 18px; }
.navlink { font-weight: 600; color: var(--ink); text-decoration: none; }
.navlink:hover { color: var(--primary); }
.open { font-weight: 600; color: var(--primary); text-decoration: none; white-space: nowrap; }

main { padding: 40px 0 56px; }
h1 { font-size: 32px; line-height: 1.15; margin: 0 0 6px; letter-spacing: -0.02em; }
h2 { font-size: 22px; margin: 36px 0 10px; letter-spacing: -0.01em; scroll-margin-top: 20px; }
h3 { font-size: 17px; margin: 0 0 4px; }
p, li { color: var(--ink-soft); }
a { color: var(--primary); }
.lead { font-size: 18px; color: var(--muted); margin-top: 0; }
.crumbs { font-size: 14px; color: var(--muted); margin: 0 0 18px; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--primary); }

/* Guide menu cards (docs home) */
.guide-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; margin: 22px 0 8px; padding: 0; list-style: none; }
.guide-card { display: block; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 18px; text-decoration: none; color: var(--ink); transition: border-color .15s, transform .15s; }
.guide-card:hover { border-color: var(--primary); transform: translateY(-2px); }
.guide-card .g-emoji { font-size: 26px; display: block; margin-bottom: 8px; }
.guide-card .g-title { font-weight: 700; display: block; margin-bottom: 4px; }
.guide-card .g-sub { font-size: 13.5px; color: var(--muted); display: block; line-height: 1.5; }

/* Illustrated steps */
.steps { margin: 18px 0 8px; }
.step { display: flex; align-items: center; gap: 18px; padding: 14px 0; border-bottom: 1px dashed var(--line); }
.step:last-child { border-bottom: none; }
.step-art { position: relative; flex-shrink: 0; line-height: 0; }
.step-n { position: absolute; top: -4px; left: -6px; width: 24px; height: 24px; border-radius: 50%; background: var(--primary); color: #fff; font-size: 13px; font-weight: 800; display: flex; align-items: center; justify-content: center; }
.step-body { min-width: 0; }
.step-body p { margin: 2px 0 0; font-size: 15px; }

/* Schematic phone SVGs use these via CSS vars set above */
.phone-svg { display: block; }

/* Callouts */
.tip { background: var(--primary-tint); border: 1px solid rgba(37, 99, 235, .25); border-radius: 14px; padding: 12px 16px; font-size: 14.5px; color: var(--ink-soft); margin: 18px 0; }
.tip strong { color: var(--ink); }
.plan-badge { display: inline-block; background: var(--primary-tint); color: var(--primary); border-radius: 999px; padding: 2px 10px; font-size: 12.5px; font-weight: 700; vertical-align: 2px; margin-left: 6px; white-space: nowrap; }

/* Simple two-column fact table */
.facts { width: 100%; border-collapse: collapse; margin: 14px 0; font-size: 15px; }
.facts th, .facts td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.facts th { color: var(--ink); white-space: nowrap; }
.facts td { color: var(--ink-soft); }

/* Prev/next footer nav */
.pager { display: flex; justify-content: space-between; gap: 12px; margin-top: 44px; font-weight: 600; }
.pager a { text-decoration: none; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 10px 16px; }
.pager a:hover { border-color: var(--primary); }

footer { border-top: 1px solid var(--line); background: var(--surface); color: var(--muted); font-size: 14px; }
.foot-in { display: flex; flex-wrap: wrap; gap: 12px 20px; justify-content: space-between; padding: 22px 0; }
.foot-links a { color: var(--muted); margin-right: 16px; text-decoration: none; }
.foot-links a:hover { color: var(--primary); }

@media (max-width: 480px) {
  .step { align-items: flex-start; }
  h1 { font-size: 27px; }
}

/* Manual AdSense unit at the end of each article. Collapses gracefully
   (no reserved height) while the site is awaiting AdSense approval. */
.ad-box { margin: 40px 0 4px; }
