/* Shared styles for guide articles — same locked tokens as the landing page. */
:root {
  --background: oklch(0.17 0.01 260);
  --surface: oklch(0.21 0.012 260);
  --surface-2: oklch(0.25 0.013 260);
  --foreground: oklch(0.97 0.005 260);
  --muted: oklch(0.65 0.012 260);
  --accent: oklch(0.82 0.21 130);
  --accent-soft: oklch(0.82 0.21 130 / 0.14);
  --accent-foreground: oklch(0.16 0 0);
  --border: oklch(1 0 0 / 0.08);
  --radius: 0.75rem;
  --radius-lg: 1.25rem;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text",
    "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: var(--font); background: var(--background); color: var(--foreground);
  line-height: 1.7; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
::selection { background: var(--accent); color: var(--accent-foreground); }
.wrap { width: 100%; max-width: 760px; margin: 0 auto; padding: 0 22px; }

/* Nav */
header.nav { position: sticky; top: 0; z-index: 50; background: oklch(0.17 0.01 260 / 0.8);
  backdrop-filter: saturate(140%) blur(14px); -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid var(--border); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 62px;
  max-width: 1120px; margin: 0 auto; padding: 0 22px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 750; font-size: 1.02rem; color: var(--foreground); }
.brand:hover { text-decoration: none; }
.brand .logo { width: 30px; height: 30px; }
.brand .accent { color: var(--accent); }
.nav-cta { display: inline-flex; align-items: center; gap: 8px; background: var(--accent);
  color: var(--accent-foreground); font-weight: 650; font-size: 0.9rem; padding: 9px 18px; border-radius: 999px; }
.nav-cta:hover { text-decoration: none; }

/* Article */
article { padding: 40px 0 8px; }
.breadcrumb { font-size: 0.82rem; color: var(--muted); margin-bottom: 22px; }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--foreground); }
.eyebrow { display: inline-block; font-size: 0.74rem; font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 12px; }
article h1 { font-size: clamp(2rem, 4.6vw, 2.9rem); line-height: 1.1; letter-spacing: -0.025em;
  font-weight: 800; }
.byline { display: flex; align-items: center; gap: 10px; margin-top: 18px; padding-bottom: 26px;
  border-bottom: 1px solid var(--border); color: var(--muted); font-size: 0.9rem; flex-wrap: wrap; }
.byline .avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--accent-soft);
  display: flex; align-items: center; justify-content: center; }
.byline .avatar svg { width: 18px; height: 18px; color: var(--accent); }
.byline .sep { width: 3px; height: 3px; border-radius: 50%; background: var(--muted); opacity: .5; }

.lead { font-size: 1.18rem; color: var(--foreground); margin: 28px 0; line-height: 1.6; }
article h2 { font-size: 1.55rem; letter-spacing: -0.02em; font-weight: 750; margin: 40px 0 14px;
  scroll-margin-top: 80px; }
article h3 { font-size: 1.2rem; font-weight: 700; margin: 28px 0 10px; }
article p { margin: 14px 0; color: oklch(0.88 0.006 260); }
article ul, article ol { margin: 14px 0 14px 2px; padding-left: 22px; color: oklch(0.88 0.006 260); }
article li { margin: 8px 0; }
article li::marker { color: var(--accent); }
article strong { color: var(--foreground); font-weight: 650; }
article a { font-weight: 550; }

/* Table of contents */
.toc { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 20px 24px; margin: 28px 0; }
.toc h2 { font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted);
  margin: 0 0 12px; }
.toc ol { margin: 0; padding-left: 18px; }
.toc li { margin: 6px 0; }

/* Callout / key-takeaways box */
.callout { background: linear-gradient(180deg, var(--accent-soft), transparent 70%), var(--surface);
  border: 1px solid oklch(0.82 0.21 130 / 0.28); border-radius: var(--radius-lg); padding: 22px 24px; margin: 28px 0; }
.callout .label { font-size: 0.74rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 10px; }
.callout ul { margin: 0; }

/* Step list */
.steps { list-style: none; padding: 0; margin: 22px 0; counter-reset: step; }
.steps > li { counter-increment: step; position: relative; padding: 18px 18px 18px 60px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); margin: 12px 0; }
.steps > li::before { content: counter(step); position: absolute; left: 16px; top: 16px;
  width: 30px; height: 30px; border-radius: 9px; background: var(--accent-soft); color: var(--accent);
  font-weight: 800; font-size: 0.95rem; display: flex; align-items: center; justify-content: center; }
.steps > li strong { display: block; margin-bottom: 3px; }

/* Inline CTA */
.cta { background: radial-gradient(600px 200px at 50% 0%, var(--accent-soft), transparent 70%), var(--surface);
  border: 1px solid oklch(0.82 0.21 130 / 0.28); border-radius: var(--radius-lg); padding: 30px 26px;
  margin: 40px 0; text-align: center; }
.cta h2 { margin: 0 0 8px; font-size: 1.5rem; }
.cta p { color: var(--muted); margin: 0 auto 18px; max-width: 46ch; }
.cta a.btn { display: inline-block; background: var(--accent); color: var(--accent-foreground);
  font-weight: 700; padding: 13px 26px; border-radius: 999px; }
.cta a.btn:hover { text-decoration: none; }

/* Related */
.related { margin: 44px 0 8px; }
.related h2 { font-size: 1.2rem; margin-bottom: 14px; }
.related-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.related-card { display: block; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 16px 18px; color: var(--foreground); transition: border-color .15s ease; }
.related-card:hover { border-color: oklch(1 0 0 / 0.16); text-decoration: none; }
.related-card .k { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); }
.related-card .t { font-weight: 650; margin-top: 5px; line-height: 1.35; }

/* Guides hub */
.hub-head { padding: 48px 0 8px; }
.hub-head h1 { font-size: clamp(2.1rem, 5vw, 3rem); letter-spacing: -0.03em; font-weight: 800; line-height: 1.08; }
.hub-head p { color: var(--muted); font-size: 1.12rem; margin-top: 14px; max-width: 60ch; }
.hub-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; padding: 32px 0; }
.hub-card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 24px; color: var(--foreground); transition: transform .2s ease, border-color .2s ease; }
.hub-card:hover { transform: translateY(-3px); border-color: oklch(1 0 0 / 0.16); text-decoration: none; }
.hub-card .k { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); }
.hub-card h2 { font-size: 1.25rem; font-weight: 730; margin: 8px 0 8px; letter-spacing: -0.01em; }
.hub-card p { color: var(--muted); font-size: 0.96rem; }
.hub-card .more { margin-top: 14px; color: var(--accent); font-weight: 600; font-size: 0.92rem; }

/* Footer */
footer { border-top: 1px solid var(--border); padding: 40px 0; margin-top: 48px; }
.foot { max-width: 1120px; margin: 0 auto; padding: 0 22px; display: flex; align-items: center;
  justify-content: space-between; gap: 18px; flex-wrap: wrap; }
.foot .links { display: flex; gap: 24px; color: var(--muted); font-size: 0.9rem; flex-wrap: wrap; }
.foot .links a { color: var(--muted); }
.foot .links a:hover { color: var(--foreground); }
.foot .copy { color: var(--muted); font-size: 0.84rem; width: 100%; margin-top: 6px; }

@media (max-width: 640px) {
  .hub-grid, .related-grid { grid-template-columns: 1fr; }
}
