/* Generated by scripts/build-guides.mjs — do not edit by hand. */
:root {
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --primary-light: #dbeafe;
  --accent: #d4a373;
  --text-heading: #1e293b;
  --text-body: #475569;
  --text-muted: #64748b;
  --bg-white: #ffffff;
  --bg-cream: #f8fafc;
  --bg-warm: #f1f5f9;
  --border: #e2e8f0;
  --radius-sm: 8px;
  --radius: 14px;
  --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
  --font-display: var(--font-sans);
  --font-logo: 'Alata', sans-serif;
  /* Both mirror LandingPage.css so the logo and nav land on the same vertical
     lines as they do on the marketing pages. A reader moving between the two
     should not see the page edge shift. */
  --max-w: 1140px;
  --gutter: 2rem;
}

*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg-white);
  color: var(--text-body);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

/* Horizontal padding ONLY. .wrap is always combined with a section class
   (.guide-header, .index-header, article) that sets its own vertical padding,
   and a padding shorthand on either side of that pairing silently zeroes
   the other's axis — class-vs-class is decided by source order, class-vs-
   element (article) by specificity. Both directions of that bug shipped here
   once: the header lost its side gutters and the article lost the 96px above
   the footer. Keep the two axes in separate declarations. */
.wrap {
  max-width: 780px;
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

/* ── nav ── */
.site-nav {
  position: sticky; top: 0; z-index: 10;
  background: rgba(255,255,255,.9);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: var(--max-w);
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; height: 64px;
}
.logo {
  font-family: var(--font-logo);
  font-size: 1.35rem; font-weight: 600;
  color: var(--text-heading); text-decoration: none; letter-spacing: -.01em;
}
.nav-links { display: flex; align-items: center; gap: 22px; }
.nav-links a {
  color: var(--text-body); text-decoration: none;
  font-size: .94rem; font-weight: 500;
}
.nav-links a:hover { color: var(--primary); }
/* Mirrors .cta-button in LandingPage.css exactly - same label, same slot in the
   same nav. Any drift here (the pill radius it used to have, or the .94rem/500
   it inherits from .nav-links a) reads as a different button on a reader's way
   between the two pages. */
.nav-cta {
  background: var(--primary); color: #fff !important;
  font-size: .9rem; font-weight: 600;
  padding: .6rem 1.3rem; border-radius: var(--radius-sm);
  white-space: nowrap;
  transition: background .2s;
}
.nav-cta:hover { background: var(--primary-dark); }

/* ── article ── */
.guide-header { padding-top: 56px; padding-bottom: 8px; }
.eyebrow {
  display: inline-block; margin-bottom: 14px;
  font-size: .8rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  color: var(--primary);
  text-decoration: none;
}
.eyebrow:hover { color: var(--primary-dark); }
h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 2.9rem);
  line-height: 1.15; margin: 0 0 16px;
  color: var(--text-heading); letter-spacing: -.02em;
}
.standfirst { font-size: 1.16rem; color: var(--text-muted); margin: 0 0 18px; }
.meta { font-size: .88rem; color: var(--text-muted); border-top: 1px solid var(--border); padding-top: 16px; }

article { padding-bottom: 96px; }
article h2 {
  font-size: 1.55rem; line-height: 1.3; margin: 52px 0 14px;
  color: var(--text-heading); letter-spacing: -.015em;
  scroll-margin-top: 84px;
}
article h3 {
  font-size: 1.16rem; margin: 34px 0 10px;
  color: var(--text-heading);
  scroll-margin-top: 84px;
}
article p { margin: 0 0 18px; }
article ul, article ol { margin: 0 0 18px; padding-left: 24px; }
article li { margin-bottom: 9px; }
article li > ul, article li > ol { margin-top: 9px; }
article a { color: var(--primary); text-decoration: underline; text-underline-offset: 2px; }
article a:hover { color: var(--primary-dark); }
article strong { color: var(--text-heading); font-weight: 600; }
article img { max-width: 100%; height: auto; border-radius: var(--radius); border: 1px solid var(--border); }
article hr { border: 0; border-top: 1px solid var(--border); margin: 44px 0; }

code {
  font-family: ui-monospace, SFMono-Regular, 'SF Mono', Menlo, monospace;
  font-size: .88em;
  background: var(--bg-warm);
  border: 1px solid var(--border);
  border-radius: 5px;
  padding: 1.5px 5px;
  word-break: break-word;
  color: var(--text-heading);
}
pre {
  background: #0f172a;
  border-radius: var(--radius-sm);
  padding: 16px 18px;
  overflow-x: auto;
  margin: 0 0 20px;
  font-size: .88rem;
  line-height: 1.6;
}
pre code {
  background: none; border: 0; padding: 0;
  color: #e2e8f0; font-size: inherit; word-break: normal;
}

blockquote {
  margin: 0 0 20px;
  padding: 14px 20px;
  background: var(--bg-cream);
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: var(--text-body);
}
blockquote p:last-child { margin-bottom: 0; }

/* Tables can be wider than the column; scroll them, never the page. */
.table-scroll { overflow-x: auto; margin: 0 0 22px; }
table { border-collapse: collapse; width: 100%; font-size: .93rem; }
th, td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--border); vertical-align: top; }
th { color: var(--text-heading); font-weight: 600; background: var(--bg-cream); white-space: nowrap; }

/* ── table of contents ── */
.toc {
  background: var(--bg-cream);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin: 36px 0 8px;
}
.toc-title {
  font-size: .78rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  color: var(--text-muted); margin: 0 0 10px;
}
.toc ul { margin: 0; padding: 0; list-style: none; }
.toc li { margin-bottom: 6px; }
.toc a { color: var(--text-body); text-decoration: none; }
.toc a:hover { color: var(--primary); text-decoration: underline; }

/* ── index ── */
.index-header { padding-top: 64px; padding-bottom: 8px; }
.guide-list { list-style: none; margin: 32px 0 96px; padding: 0; }
.guide-card {
  display: block; text-decoration: none; color: inherit;
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: 24px 26px; margin-bottom: 16px;
  transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}
.guide-card:hover {
  border-color: var(--primary);
  box-shadow: 0 4px 20px rgba(37,99,235,.09);
  transform: translateY(-1px);
}
.guide-card h2 { font-size: 1.28rem; margin: 0 0 8px; color: var(--text-heading); letter-spacing: -.01em; }
.guide-card p { margin: 0; color: var(--text-muted); font-size: .98rem; }

/* ── cta ── */
/* Sits at the end of the article, directly above the footer, so it needs real
   space on both sides: without the top margin it reads as one more section of
   the guide, and without the article's bottom padding it collides with the
   footer. The footer uses --bg-warm rather than --bg-cream for the same
   reason — two panels of the identical grey stacked on each other merge into
   one shape and the gap between them stops registering. */
.guide-cta {
  background: var(--bg-cream);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 30px;
  text-align: center;
  margin: 48px 0 0;
}
.guide-cta h2 { margin: 0 0 8px; font-size: 1.3rem; color: var(--text-heading); }
.guide-cta p { margin: 0 0 18px; color: var(--text-muted); }
/* Mirrors .btn-cta-primary in LandingPage.css - the end-of-page CTA there. */
.btn {
  display: inline-block; background: var(--primary); color: #fff;
  padding: .85rem 2rem; border-radius: var(--radius-sm);
  text-decoration: none; font-weight: 600; font-size: 1rem;
  transition: background .2s;
}
.btn:hover { background: var(--primary-dark); }

/* ── footer ── */
.site-footer { border-top: 1px solid var(--border); background: var(--bg-warm); padding: 40px 0; }
.footer-inner {
  max-width: var(--max-w);
  display: flex; justify-content: space-between; align-items: center;
  gap: 20px; flex-wrap: wrap;
}
.footer-logo { font-family: var(--font-logo); font-size: 1.1rem; color: var(--text-heading); font-weight: 600; }
.footer-tagline { margin: 4px 0 0; font-size: .88rem; color: var(--text-muted); }
.footer-copy { margin: 0; font-size: .86rem; color: var(--text-muted); }
.footer-copy a { color: var(--text-muted); text-decoration: none; }
.footer-copy a:hover { color: var(--primary); }

/* 768px matches LandingPage.css, so the gutter narrows at the same width on
   both. */
@media (max-width: 768px) {
  body { font-size: 16px; }
  :root { --gutter: 1.25rem; }
  .guide-header, .index-header { padding-top: 40px; }
  .nav-links { gap: 14px; }
  /* The logo already goes home; the CTA and Guides links are what a reader on
     this page actually needs. */
  .nav-links a[href="/"] { display: none; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}
