:root {
  color-scheme: light dark;
  --brand: #004aad;
  --brand-strong: #003a88;
  --ink: #111c33;
  --body: #3d4a63;
  --muted: #64708a;
  --line: #dde3ee;
  --surface: #f7f9fc;
  --tint: #eef3fc;
  --card: #ffffff;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--surface);
  font-synthesis: none;
}

* { box-sizing: border-box; }

body { margin: 0; background: var(--surface); color: var(--ink); -webkit-font-smoothing: antialiased; }

a { color: var(--brand); text-underline-offset: 0.18em; }
a:hover { color: var(--brand-strong); }
a:focus-visible { outline: 3px solid rgba(0, 74, 173, 0.35); outline-offset: 3px; border-radius: 0.25rem; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  backdrop-filter: blur(12px);
}

.site-header__inner,
.article,
.site-footer__inner {
  width: min(100% - 2rem, 72rem);
  margin-inline: auto;
}

.site-header__inner {
  min-height: 3.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand { display: inline-flex; align-items: center; gap: 0.6rem; color: var(--ink); font-weight: 650; text-decoration: none; letter-spacing: -0.02em; }
.brand img { border-radius: 0.6rem; }
.brand span { color: var(--brand); }

.site-nav { display: flex; align-items: center; gap: 1.25rem; font-size: 0.9rem; font-weight: 550; }
.site-nav a:not(.button) { color: var(--muted); text-decoration: none; }
.site-nav a:not(.button):hover { color: var(--ink); }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.4rem;
  padding: 0.55rem 0.95rem;
  border-radius: 0.65rem;
  background: var(--brand);
  color: #fff;
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 6px 16px -6px rgba(0, 74, 173, 0.5);
}

.site-nav a.button, .button:hover { color: #fff; }
.button:hover { background: var(--brand-strong); }

.article { padding-block: 2.5rem 5rem; }
.breadcrumb { margin: 0 0 2.5rem; color: var(--muted); font-size: 0.875rem; }
.breadcrumb a { color: var(--muted); }
.breadcrumb span { padding-inline: 0.45rem; color: #a7b0c2; }

.article__header { max-width: 52rem; }
.eyebrow { margin: 0; color: var(--brand); font-size: 0.8rem; font-weight: 650; letter-spacing: 0.08em; text-transform: uppercase; }
h1 { margin: 0.8rem 0 0; font-size: clamp(2.3rem, 6vw, 4rem); font-weight: 700; line-height: 1.02; letter-spacing: -0.04em; text-wrap: balance; }
.dek { margin: 1.4rem 0 0; color: var(--body); font-size: clamp(1.05rem, 2vw, 1.25rem); line-height: 1.7; text-wrap: pretty; }
.reviewed { margin: 1rem 0 0; color: var(--muted); font-size: 0.82rem; }

.article__body { max-width: 48rem; margin-top: 3.2rem; }
.article__body section, .answer { margin-top: 3.5rem; }
.article__body h2 { margin: 0 0 1rem; font-size: clamp(1.55rem, 3.5vw, 2.1rem); font-weight: 700; line-height: 1.15; letter-spacing: -0.03em; }
.article__body h3 { margin: 0; font-size: 1.04rem; line-height: 1.4; }
.article__body p, .article__body li { color: var(--body); font-size: 1rem; line-height: 1.8; }
.article__body p { margin: 0.8rem 0 0; }

code { padding: 0.1em 0.35em; border-radius: 0.35rem; background: var(--tint); color: var(--brand-strong); font: 0.88em ui-monospace, SFMono-Regular, Menlo, monospace; }
pre { margin: 1.25rem 0 0; padding: 1.1rem 1.25rem; overflow-x: auto; border-radius: 0.9rem; background: #0b1730; line-height: 1.7; }
pre code { padding: 0; background: none; color: #dce7ff; font-size: 0.85rem; }

.answer, .limits {
  padding: 1.4rem 1.5rem;
  border: 1px solid #cddcf4;
  border-radius: 1rem;
  background: var(--tint);
}
.limits { border-color: var(--line); background: var(--card); }
.answer h2, .limits h2 { font-size: 1.35rem; }

.steps { margin: 1.5rem 0 0; padding: 0; list-style: none; counter-reset: guide-step; }
.steps li { position: relative; padding: 0 0 2.1rem 3.5rem; counter-increment: guide-step; }
.steps li::before {
  content: counter(guide-step);
  position: absolute;
  top: -0.2rem;
  left: 0;
  width: 2.25rem;
  height: 2.25rem;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--brand);
  color: white;
  font-size: 0.88rem;
  font-weight: 700;
}
.steps li:not(:last-child)::after { content: ""; position: absolute; top: 2.35rem; bottom: 0.25rem; left: 1.09rem; width: 1px; background: #cddcf4; }

.checks { margin: 1rem 0 0; padding: 0; list-style: none; }
.checks li { position: relative; padding-left: 1.75rem; }
.checks li + li { margin-top: 0.5rem; }
.checks li::before { content: ""; position: absolute; top: 0.62em; left: 0.2rem; width: 0.55rem; height: 0.55rem; border-radius: 999px; background: var(--brand); box-shadow: 0 0 0 4px rgba(0, 74, 173, 0.14); }

.table-wrap { margin-top: 1.25rem; overflow-x: auto; border: 1px solid var(--line); border-radius: 0.9rem; background: var(--card); }
table { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
th, td { padding: 0.65rem 0.9rem; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
th { color: var(--muted); font-size: 0.78rem; font-weight: 650; letter-spacing: 0.04em; text-transform: uppercase; }
td { color: var(--body); line-height: 1.55; }
tr:last-child td { border-bottom: 0; }
td code { white-space: nowrap; }

.questions { display: grid; gap: 1.8rem; }

.guide-list { display: grid; gap: 1rem; margin: 3rem 0 0; padding: 0; list-style: none; grid-template-columns: repeat(auto-fill, minmax(18rem, 1fr)); }
.guide-card { padding: 1.5rem; border: 1px solid var(--line); border-radius: 1.1rem; background: var(--card); transition: border-color 0.15s ease, transform 0.15s ease; }
.guide-card:hover { border-color: rgba(0, 74, 173, 0.4); transform: translateY(-2px); }
.guide-card h2 { margin: 0.6rem 0 0; font-size: 1.25rem; line-height: 1.3; letter-spacing: -0.02em; }
.guide-card h2 a { color: var(--ink); text-decoration: none; }
.guide-card h2 a::after { content: ""; position: absolute; inset: 0; }
.guide-card { position: relative; }
.guide-card p:last-child { margin: 0.6rem 0 0; color: var(--body); font-size: 0.95rem; line-height: 1.6; }

.article__cta { margin-top: 4rem; padding: 2rem; border-radius: 1.25rem; background: var(--brand); background-image: radial-gradient(circle at top right, rgba(125, 180, 255, 0.35), transparent 60%); color: #fff; }
.article__cta h2 { color: inherit; }
.article__cta p { color: rgba(255, 255, 255, 0.8); }
.article__cta .button { margin-top: 1.25rem; background: #fff; color: var(--brand); box-shadow: none; }
.article__cta .button:hover { background: #e8f0ff; color: var(--brand-strong); }

.site-footer { border-top: 1px solid var(--line); }
.site-footer__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; padding-block: 1.5rem; color: var(--muted); font-size: 0.82rem; }
.site-footer__inner p { margin: 0; }
.site-footer__inner nav { display: flex; flex-wrap: wrap; gap: 1rem; }
.site-footer__inner nav a { color: var(--muted); }

@media (max-width: 36rem) {
  .site-nav { gap: 0.75rem; }
  .site-nav a[href="/guides/"] { display: none; }
  .site-header .button { min-height: 2.2rem; padding: 0.45rem 0.7rem; font-size: 0.78rem; }
  .brand { font-size: 0.9rem; }
  .article { padding-top: 1.7rem; }
  .steps li { padding-left: 3rem; }
}

@media (prefers-color-scheme: dark) {
  :root {
    --ink: #eef2fa;
    --body: #b9c3d8;
    --muted: #8d99b3;
    --line: #25314b;
    --surface: #0e1528;
    --tint: #16254a;
    --card: #131c33;
  }
  a, .eyebrow, .brand span { color: #7fb0ff; }
  a:hover { color: #a9caff; }
  code { color: #a9caff; }
  .answer { border-color: #27407a; }
  .steps li::before { background: #2f6fd8; }
  .steps li:not(:last-child)::after { background: #27407a; }
  .checks li::before { background: #5b93f0; }
  pre { background: #070d1c; border: 1px solid var(--line); }
}
