:root {
  --guide-ink: #12161f;
  --guide-muted: #5a6273;
  --guide-line: #e4e7ee;
  --guide-accent: #1a56db;
  --guide-button: #1a56db;
  --guide-paper: #fff;
  --guide-page: #f6f7fb;
  --guide-warm: #fff8e6;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--guide-ink);
  background: var(--guide-page);
  font-family: 'Source Sans 3', system-ui, sans-serif;
  font-size: 1rem;
  line-height: 1.7;
}

a { color: var(--guide-accent); }
a:focus-visible, button:focus-visible {
  outline: 3px solid #f5c518;
  outline-offset: 3px;
}

.wrap {
  width: min(100% - 32px, 860px);
  margin: 0 auto;
  padding: 26px 0 64px;
}

.guide-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--guide-line);
}

.brand {
  color: var(--guide-accent);
  font-family: Outfit, system-ui, sans-serif;
  font-size: 1.08rem;
  font-weight: 800;
  letter-spacing: -.02em;
  text-decoration: none;
  white-space: nowrap;
}

.guide-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 10px 18px;
}

.guide-nav a {
  color: var(--guide-muted);
  font-size: .94rem;
  font-weight: 600;
  text-decoration: none;
}

.guide-nav a:hover, .back:hover { text-decoration: underline; }

.guide-nav .nav-cta, .cta {
  display: inline-block;
  border-radius: 10px;
  padding: 10px 18px;
  background: var(--guide-button);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
}

.guide-nav .nav-cta { padding: 8px 14px; }
.guide-nav .nav-cta:hover, .cta:hover { background: #1245ba; }

.breadcrumbs {
  margin: 22px 0 10px;
  color: var(--guide-muted);
  font-size: .9rem;
}

.breadcrumbs a { text-decoration: none; }
.breadcrumbs a:hover { text-decoration: underline; }

h1, h2, h3 {
  color: var(--guide-ink);
  font-family: Outfit, 'Source Sans 3', system-ui, sans-serif;
  line-height: 1.24;
}

h1 {
  max-width: 22ch;
  margin: 14px 0 12px;
  font-size: clamp(2rem, 5vw, 3rem);
  letter-spacing: -.035em;
}

h2 {
  margin: 0 0 10px;
  font-size: clamp(1.3rem, 3vw, 1.65rem);
  letter-spacing: -.02em;
}

h3 { margin: 0 0 7px; font-size: 1.08rem; }

p { margin: 0 0 16px; }

.lede {
  max-width: 70ch;
  margin: 0 0 12px;
  color: var(--guide-muted);
  font-size: clamp(1.08rem, 2vw, 1.22rem);
}

.guide-meta {
  margin: 0 0 24px;
  color: var(--guide-muted);
  font-size: .9rem;
}

.back {
  display: inline-block;
  margin: 0 0 22px;
  font-weight: 700;
  text-decoration: none;
}

.card {
  margin: 20px 0;
  padding: clamp(20px, 4vw, 30px);
  border: 1px solid var(--guide-line);
  border-radius: 14px;
  background: var(--guide-paper);
}

.card > :last-child { margin-bottom: 0; }
.card p, .card li { color: #2b3241; }
.card ul, .card ol { padding-left: 1.35rem; }
.card li { margin: 0 0 8px; }
.card li:last-child { margin-bottom: 0; }
.card h2:not(:first-child) { margin-top: 26px; }
.card h3:not(:first-child) { margin-top: 20px; }

.note {
  margin: 20px 0;
  padding: 16px 20px;
  border: 1px solid #f0dfa8;
  border-radius: 12px;
  background: var(--guide-warm);
  color: #574817;
}

.note p:last-child { margin-bottom: 0; }

.point-grid, .guide-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 18px 0;
}

.point-card, .guide-card {
  padding: 18px;
  border: 1px solid var(--guide-line);
  border-radius: 12px;
  background: var(--guide-paper);
}

.point-card h3 { color: var(--guide-accent); }
.point-card p:last-child, .guide-card p:last-child { margin-bottom: 0; }

.guide-card {
  display: block;
  color: inherit;
  text-decoration: none;
  transition: transform .12s ease, border-color .12s ease;
}

.guide-card:hover {
  transform: translateY(-2px);
  border-color: var(--guide-accent);
}

.sources {
  margin: 20px 0;
  padding: 18px 20px;
  border-left: 4px solid var(--guide-accent);
  background: var(--guide-paper);
}

.sources h2 { font-size: 1.1rem; }
.sources ul { margin: 8px 0 0; padding-left: 1.25rem; }
.sources li { margin: 0 0 7px; }
.sources li:last-child { margin-bottom: 0; }

.guide-figure {
  display: flex;
  align-items: center;
  gap: 20px;
  margin: 20px 0;
  padding: 16px;
  border: 1px solid var(--guide-line);
  border-radius: 12px;
  background: var(--guide-paper);
}

.guide-figure img {
  width: 112px;
  height: 112px;
  flex: 0 0 auto;
  object-fit: contain;
  border: 1px solid var(--guide-line);
  border-radius: 10px;
  background: #fff;
}

.guide-figure figcaption { color: var(--guide-muted); }

.guide-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 14px 24px;
  margin-top: 36px;
  padding-top: 20px;
  border-top: 1px solid var(--guide-line);
  color: var(--guide-muted);
  font-size: .9rem;
}

.guide-footer nav { display: flex; flex-wrap: wrap; gap: 8px 16px; }
.guide-footer a { text-decoration: none; }
.guide-footer a:hover { text-decoration: underline; }

.cta { margin-top: 8px; }

@media (max-width: 600px) {
  .wrap { width: min(100% - 28px, 860px); padding-top: 18px; }
  .guide-header { align-items: flex-start; }
  .guide-nav { gap: 7px 12px; }
  .guide-nav a { font-size: .86rem; }
  .guide-nav a:not(.nav-cta) { display: none; }
  .point-grid, .guide-grid { grid-template-columns: 1fr; }
  .guide-figure { align-items: flex-start; }
  .guide-figure img { width: 88px; height: 88px; }
}

@media (prefers-color-scheme: dark) {
  :root {
    --guide-ink: #eef1f7;
    --guide-muted: #a2abc0;
    --guide-line: #2a3040;
    --guide-accent: #8fb0ff;
    --guide-button: #1a56db;
    --guide-paper: #151a24;
    --guide-page: #0e1117;
    --guide-warm: #221d0f;
  }
  .card p, .card li { color: #c9d0de; }
  .note { border-color: #4a3d1a; color: #e8d9a8; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .guide-card { transition: none; }
  .guide-card:hover { transform: none; }
}
