/* Shared stylesheet for /guides/ — tokens mirror the landing page. */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --ink:          #0d0d14;
  --muted:        #6b7280;
  --light:        #f4f4f6;
  --white:        #ffffff;
  --accent:       #ea580c;
  --green:        #1d7d44;
  --green-light:  #dcfce7;
  --border:       #e5e7eb;
  --font-display: 'Archivo', system-ui, sans-serif;
  --font-mono:    'JetBrains Mono', 'Courier New', monospace;
}

html { scroll-behavior: smooth; }
body {
  font-family: 'Segoe UI', system-ui, Arial, sans-serif;
  background: var(--white);
  color: var(--ink);
  line-height: 1.6;
}

/* ── NAV ── */
nav {
  position: sticky; top: 0; z-index: 100;
  display: flex; justify-content: space-between; align-items: center;
  padding: 1rem 2.5rem; gap: 1.5rem;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0,0,0,0.06);
}
.logo {
  font-family: var(--font-display);
  font-size: 1.2rem; font-weight: 800; letter-spacing: -0.5px;
  color: var(--ink); text-decoration: none; flex-shrink: 0;
  display: flex; align-items: center; gap: 0.55rem;
}
.logo svg { display: block; border-radius: 6px; }
.logo em { font-style: normal; color: var(--accent); }
nav ul { list-style: none; display: flex; gap: 1.75rem; align-items: center; }
nav ul a {
  text-decoration: none; color: var(--muted);
  font-size: 0.9rem; font-weight: 500; transition: color 0.2s;
}
nav ul a:hover { color: var(--ink); }
.btn-signin {
  flex-shrink: 0; white-space: nowrap; text-decoration: none;
  background: transparent; color: var(--ink); border: 1.5px solid var(--ink);
  font-size: 0.85rem; font-weight: 700;
  padding: 0.42rem 1.1rem; border-radius: 6px;
  transition: background 0.15s, color 0.15s;
}
.btn-signin:hover { background: var(--ink); color: var(--white); }
@media (max-width: 740px) {
  nav { flex-wrap: wrap; padding: 0.8rem 1rem; row-gap: 0.6rem; }
  nav ul { gap: 1rem; }
}

/* ── BUTTONS ── */
.btn-primary {
  background: var(--ink); color: var(--white); text-decoration: none;
  border: 1.5px solid var(--ink);
  padding: 0.8rem 1.9rem; border-radius: 6px;
  font-weight: 700; font-size: 0.95rem; transition: opacity 0.2s;
  display: inline-block;
}
.btn-primary:hover { opacity: 0.8; }
.btn-ghost {
  background: transparent; color: var(--ink); text-decoration: none;
  padding: 0.8rem 1.9rem; border-radius: 6px;
  font-weight: 700; font-size: 0.95rem; border: 1.5px solid var(--ink);
  transition: background 0.2s, color 0.2s; display: inline-block;
}
.btn-ghost:hover { background: var(--ink); color: var(--white); }

/* ── ARTICLE ── */
.article-head {
  padding: 4.5rem 2rem 2.5rem;
  border-bottom: 1px solid var(--border);
}
.article-inner { max-width: 720px; margin: 0 auto; }
.crumb {
  font-family: var(--font-mono);
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 0.8rem;
}
.crumb a { color: var(--accent); text-decoration: none; }
.crumb a:hover { text-decoration: underline; }
.article-head h1 {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 4.4vw, 2.7rem);
  font-weight: 800; line-height: 1.12; letter-spacing: -1.2px;
  margin-bottom: 1rem;
}
.standfirst { font-size: 1.05rem; color: var(--muted); line-height: 1.75; }
.byline {
  font-family: var(--font-mono); font-size: 0.75rem; color: var(--muted);
  margin-top: 1.5rem; letter-spacing: 0.03em;
}

article { padding: 3rem 2rem 4rem; }
article .article-inner > * + * { margin-top: 1.15rem; }
article h2 {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.6vw, 1.65rem);
  font-weight: 800; letter-spacing: -0.5px;
  margin-top: 3rem !important; margin-bottom: 0.2rem;
  scroll-margin-top: 5rem;
}
article h3 {
  font-family: var(--font-display);
  font-size: 1.05rem; font-weight: 700;
  margin-top: 2rem !important; margin-bottom: 0.1rem;
}
article p { font-size: 1rem; line-height: 1.78; }
article ul, article ol { padding-left: 1.3rem; }
article li { font-size: 1rem; line-height: 1.75; margin-bottom: 0.5rem; }
article a { color: var(--accent); font-weight: 600; text-decoration: none; }
article a:hover { text-decoration: underline; }
article strong { font-weight: 700; }
article code {
  font-family: var(--font-mono); font-size: 0.86em;
  background: var(--light); border: 1px solid var(--border);
  border-radius: 4px; padding: 0.1em 0.38em;
}

/* Numbered walkthrough */
ol.steps { list-style: none; padding-left: 0; counter-reset: step; }
ol.steps > li {
  counter-increment: step;
  position: relative; padding-left: 2.6rem; margin-bottom: 1.1rem;
}
ol.steps > li::before {
  content: counter(step);
  position: absolute; left: 0; top: 0.08rem;
  width: 1.75rem; height: 1.75rem; border-radius: 50%;
  background: var(--green-light); color: var(--green);
  font-family: var(--font-mono); font-size: 0.82rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}

/* Callout */
.callout {
  background: var(--light); border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: 8px; padding: 1.25rem 1.4rem;
}
.callout p { font-size: 0.94rem; }
.callout p + p { margin-top: 0.6rem; }

/* Comparison table */
.table-wrap { overflow-x: auto; }
table.cmp { border-collapse: collapse; width: 100%; font-size: 0.92rem; }
table.cmp th, table.cmp td {
  border: 1px solid var(--border); padding: 0.7rem 0.9rem;
  text-align: left; vertical-align: top;
}
table.cmp th {
  background: var(--light); font-family: var(--font-mono);
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--muted);
}

/* Inline tool CTA */
.tool-cta {
  border: 1px solid var(--border); border-radius: 12px;
  padding: 1.75rem; background: var(--white);
  box-shadow: 0 4px 16px rgba(13,13,20,0.04);
}
.tool-cta .kicker {
  font-family: var(--font-mono); font-size: 0.7rem; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted);
  margin-bottom: 0.5rem;
}
.tool-cta h3 {
  font-family: var(--font-display); font-size: 1.15rem; font-weight: 800;
  margin: 0 0 0.45rem !important; letter-spacing: -0.3px;
}
.tool-cta p { font-size: 0.92rem; color: var(--muted); margin-bottom: 1.15rem; }
.tool-cta .btn-primary { padding: 0.65rem 1.4rem; font-size: 0.9rem; }

/* FAQ */
.faq dt {
  font-family: var(--font-display); font-weight: 700; font-size: 1rem;
  margin-top: 1.5rem;
}
.faq dd { margin: 0.4rem 0 0; color: var(--ink); font-size: 0.97rem; line-height: 1.75; }

/* Related */
.related-grid {
  display: grid; gap: 1rem;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}
.related-card {
  border: 1px solid var(--border); border-radius: 8px; padding: 1.25rem;
  text-decoration: none; color: inherit; display: block;
  transition: box-shadow 0.2s, transform 0.2s, border-color 0.2s;
}
.related-card:hover { box-shadow: 0 6px 20px rgba(13,13,20,0.07); transform: translateY(-2px); border-color: var(--ink); }
.related-card strong {
  font-family: var(--font-display); font-size: 0.98rem; font-weight: 700;
  display: block; margin-bottom: 0.35rem;
}
.related-card span { font-size: 0.86rem; color: var(--muted); line-height: 1.6; }

/* ── FOOTER ── */
footer {
  background: var(--ink); color: rgba(255,255,255,0.3);
  padding: 1.75rem 2.5rem;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 1rem; font-size: 0.82rem;
}
footer a { color: rgba(255,255,255,0.45); text-decoration: none; transition: color 0.2s; }
footer a:hover { color: var(--white); }
.footer-links { display: flex; gap: 1.5rem; }
