@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url('/fonts/inter-var.woff2') format('woff2');
}
@font-face {
  font-family: 'DM Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/dm-mono-400.woff2') format('woff2');
}
@font-face {
  font-family: 'DM Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/fonts/dm-mono-500.woff2') format('woff2');
}

/* Shared styling for the guide pages. Tokens mirror index.html so the
   articles and the tool read as one site. */
:root {
  --red: #dc2743;
  --orange: #f09433;
  --blue: #0095f6;
  --purple: #8b5cf6;
  --green: #10b981;
  --ig-grad: linear-gradient(135deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
  --bg: #fafafa;
  --surface: #fff;
  --border: rgba(0, 0, 0, 0.1);
  --border-soft: rgba(0, 0, 0, 0.06);
  --text: #111;
  --muted: #666;
  --faint: #999;
}

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

.wrap { max-width: 720px; margin: 0 auto; padding: 0 20px; }

/* ---------- header ---------- */
.site-header {
  border-bottom: 1px solid var(--border-soft);
  background: var(--surface);
  position: sticky;
  top: 0;
  z-index: 10;
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 60px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 17px;
  letter-spacing: -0.3px;
  color: var(--text);
  text-decoration: none;
}
.brand img { width: 28px; height: 28px; border-radius: 7px; }
.header-cta {
  background: var(--ig-grad);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  padding: 9px 18px;
  border-radius: 8px;
  white-space: nowrap;
}

/* ---------- breadcrumb ---------- */
.crumb { font-size: 13px; color: var(--faint); padding: 20px 0 0; }
.crumb a { color: var(--muted); text-decoration: none; }
.crumb a:hover { text-decoration: underline; }

/* ---------- article ---------- */
article { padding: 8px 0 56px; }
article h1 {
  font-size: clamp(28px, 5vw, 40px);
  font-weight: 900;
  letter-spacing: -1px;
  line-height: 1.15;
  margin: 16px 0 14px;
}
article .standfirst { font-size: 18px; color: var(--muted); margin-bottom: 8px; }
article .meta { font-size: 13px; color: var(--faint); margin-bottom: 32px; }
article h2 {
  font-size: clamp(21px, 3.4vw, 26px);
  font-weight: 800;
  letter-spacing: -0.4px;
  margin: 44px 0 14px;
}
article h3 { font-size: 18px; font-weight: 700; margin: 30px 0 10px; }
article p { margin-bottom: 18px; }
article ul, article ol { margin: 0 0 18px 22px; }
article li { margin-bottom: 9px; }
article a { color: var(--red); text-decoration: underline; text-underline-offset: 2px; }
article strong { font-weight: 700; }

/* ---------- callouts ---------- */
.note, .warn {
  border-radius: 10px;
  padding: 16px 18px;
  margin: 26px 0;
  font-size: 15px;
  border: 1.5px solid;
}
.note { background: #f0f9ff; border-color: #bae6fd; }
.warn { background: #fff8e1; border-color: #ffe082; color: #7a5c00; }
.note p:last-child, .warn p:last-child { margin-bottom: 0; }

/* ---------- steps ---------- */
.steps { list-style: none; margin: 0 0 22px; counter-reset: s; }
.steps li {
  counter-increment: s;
  position: relative;
  padding-left: 42px;
  margin-bottom: 18px;
}
.steps li::before {
  content: counter(s);
  position: absolute;
  left: 0; top: 1px;
  width: 27px; height: 27px;
  background: var(--ig-grad);
  color: #fff;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 700;
}

/* ---------- inline CTA ---------- */
.cta {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: 14px;
  padding: 26px;
  margin: 36px 0;
  text-align: center;
}
.cta h3 { margin: 0 0 8px; font-size: 20px; }
.cta p { color: var(--muted); font-size: 15px; margin-bottom: 18px; }
.cta a {
  display: inline-block;
  background: var(--ig-grad);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  padding: 13px 28px;
  border-radius: 9px;
}

/* ---------- table ---------- */
.tbl-wrap { overflow-x: auto; margin: 0 0 22px; }
table { border-collapse: collapse; width: 100%; font-size: 15px; }
th, td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--border-soft); }
th { font-weight: 700; background: #f4f4f5; white-space: nowrap; }

/* ---------- faq ---------- */
.faq { border-top: 1px solid var(--border-soft); margin-top: 12px; }
.faq details { border-bottom: 1px solid var(--border-soft); padding: 16px 0; }
.faq summary { font-weight: 700; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; float: right; color: var(--faint); font-weight: 400; }
.faq details[open] summary::after { content: '\2212'; }
.faq details p { margin: 12px 0 0; color: var(--muted); }

/* ---------- related ---------- */
.related { margin: 48px 0 0; padding-top: 28px; border-top: 1px solid var(--border-soft); }
.related h2 { font-size: 18px; margin: 0 0 14px; }
.related ul { list-style: none; margin: 0; }
.related li { margin-bottom: 10px; }

/* ---------- footer ---------- */
.site-footer {
  border-top: 1px solid var(--border-soft);
  padding: 26px 0;
  text-align: center;
  font-size: 14px;
  color: var(--faint);
}
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }

/* ---------- visual step flow ---------- */
.flow {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 22px 16px;
  margin: 28px 0 34px;
  padding: 0;
  list-style: none;
  counter-reset: fs;
}
.flow > li { counter-increment: fs; margin: 0; }
.flow figure { margin: 0; }
.flow svg {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: #000;
}
.flow figcaption {
  font-size: 13.5px;
  line-height: 1.45;
  color: var(--muted);
  margin-top: 10px;
  padding-left: 26px;
  position: relative;
}
.flow figcaption::before {
  content: counter(fs);
  position: absolute;
  left: 0; top: 0;
  width: 19px; height: 19px;
  background: var(--ig-grad);
  color: #fff;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 700;
}
.flow figcaption strong { color: var(--text); }
