:root {
  color-scheme: dark;
  --bg: #080c16;
  --surface: #101725;
  --text: #edf2fa;
  --dim: #a6b1c4;
  --accent: #a0c4ff;
  --gold: #f5bf68;
  --line: rgba(160, 196, 255, .19);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.8 var(--font);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-underline-offset: .22em; }
a:hover { color: #d7e5ff; }
a:focus-visible, main:focus-visible { outline: 2px solid var(--gold); outline-offset: 5px; }
.skip {
  position: fixed;
  z-index: 10;
  top: 12px;
  left: 12px;
  padding: 9px 16px;
  background: var(--gold);
  color: var(--bg);
  transform: translateY(-180%);
}
.skip:focus { transform: none; color: var(--bg); }
.site-nav { border-bottom: 1px solid var(--line); }
.nav-inner, .wrap, .site-footer {
  width: min(1160px, 100%);
  margin-inline: auto;
  padding-inline: 32px;
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-block: 15px; }
.brand { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; color: var(--text); text-decoration: none; font-size: 1.25rem; font-weight: 650; letter-spacing: -.04em; }
.nav-links { display: flex; flex-wrap: wrap; gap: 5px 24px; font-size: .85rem; }
.nav-links a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; color: var(--dim); }
.nav-links a:hover, .nav-links [aria-current] { color: var(--text); }
.breadcrumbs { padding-top: 28px; color: var(--dim); font-size: .8rem; }
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; padding: 0; margin: 0; }
.breadcrumbs li + li::before { content: "/"; padding-right: 10px; color: var(--dim); }
.breadcrumbs a { display: inline-block; padding-block: 8px; }
.guide-header { padding-block: 52px 56px; border-bottom: 1px solid var(--line); }
.eyebrow { display: flex; align-items: center; gap: 12px; color: var(--accent); font-size: .72rem; font-weight: 600; letter-spacing: .15em; text-transform: uppercase; }
.eyebrow::before { content: ""; width: 28px; height: 1px; background: var(--gold); }
h1 { max-width: 970px; margin: 21px 0; font-size: clamp(2.8rem, 6.5vw, 5.2rem); font-weight: 540; letter-spacing: -.06em; line-height: 1.09; }
h1 em { font-family: Georgia, "Times New Roman", serif; font-weight: 400; letter-spacing: -.055em; color: var(--gold); }
.lead { max-width: 740px; margin: 0; color: var(--dim); font-size: 1.16rem; line-height: 1.7; }
.checked { margin: 24px 0 0; color: var(--dim); font-size: .76rem; }
.guide-layout { display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: 64px; align-items: start; padding-block: 52px 80px; }
.contents { position: sticky; top: 26px; font-size: .82rem; }
.contents h2 { margin: 0 0 12px; font: 600 .73rem/1.6 var(--font); color: var(--dim); text-transform: uppercase; letter-spacing: .1em; }
.contents ol { list-style: none; padding: 0; margin: 0; }
.contents a { display: block; padding-block: 9px; text-decoration: none; line-height: 1.5; }
.guide-body { min-width: 0; max-width: 750px; overflow-wrap: anywhere; }
.guide-body section + section { margin-top: 52px; }
.guide-body h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); font-weight: 520; letter-spacing: -.04em; line-height: 1.25; margin: 0 0 20px; }
.guide-body h3 { font-size: 1.1rem; letter-spacing: -.02em; font-weight: 600; margin: 28px 0 10px; line-height: 1.5; }
.guide-body p { margin: 0 0 19px; }
.guide-body ul, .guide-body ol { padding-left: 24px; }
.guide-body li { padding-left: 4px; margin-block: 10px; }
.guide-body strong { color: var(--text); font-weight: 650; }
code { font-size: .9em; color: #c7dbfc; overflow-wrap: anywhere; }
.pieces { margin: 26px 0; }
.pieces > div { padding: 20px 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: 125px 1fr; gap: 20px; }
.pieces dt { color: var(--accent); font-weight: 650; }
.pieces dd { margin: 0; color: var(--dim); }
.note { margin-block: 26px; padding: 20px 24px; background: var(--surface); border: 1px solid var(--line); border-radius: 5px; }
.note p:last-child { margin-bottom: 0; }
.note h3 { margin-top: 0; color: var(--gold); }
.steps { list-style: none; counter-reset: steps; padding: 0 !important; margin: 0; }
.steps > li { counter-increment: steps; position: relative; padding: 0 0 36px 54px; margin: 0; }
.steps > li::before { content: counter(steps, decimal-leading-zero); position: absolute; left: 0; top: 2px; color: var(--gold); font: 500 .8rem/1.8 var(--font); }
.steps > li + li { padding-top: 28px; border-top: 1px solid var(--line); }
.steps > li + li::before { top: 30px; }
.steps h2 { font-size: 1.65rem; }
.steps p:last-child { margin-bottom: 0; }
.sources { padding-top: 32px; border-top: 1px solid var(--line); color: var(--dim); font-size: .85rem; }
.sources h2 { color: var(--text); font-size: 1.3rem; }
.next-step { border-top: 1px solid var(--line); padding-top: 32px; }
.next-step p { color: var(--dim); }
.button { display: inline-flex; align-items: center; gap: 28px; min-height: 48px; padding: 11px 20px; border: 1px solid var(--gold); border-radius: 5px; background: var(--gold); color: #15130e; font-size: .9rem; line-height: 1.5; font-weight: 650; text-decoration: none; }
.button:hover { background: #ffd291; color: #15130e; }
.site-footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; border-top: 1px solid var(--line); padding-block: 22px 30px; color: var(--dim); font-size: .78rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: 4px 22px; }
.site-footer a { display: inline-block; padding-block: 9px; color: var(--dim); }
@media (max-width: 820px) {
  .guide-layout { grid-template-columns: 1fr; gap: 36px; padding-block: 32px 56px; }
  .contents { position: static; border-bottom: 1px solid var(--line); padding-bottom: 24px; }
  .contents ol { display: flex; flex-wrap: wrap; gap: 0 25px; }
  .guide-body { max-width: none; }
  .guide-header { padding-block: 38px 36px; }
}
@media (max-width: 520px) {
  body { font-size: 16px; }
  .nav-inner, .wrap, .site-footer { padding-inline: 22px; }
  .nav-inner { align-items: flex-start; gap: 10px; flex-direction: column; }
  .nav-links { gap: 2px 21px; }
  .breadcrumbs { padding-top: 16px; }
  h1 { font-size: 2.9rem; }
  .lead { font-size: 1.05rem; }
  .pieces > div { grid-template-columns: 1fr; gap: 8px; }
  .steps > li { padding-left: 36px; }
  .note { padding: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
@media print {
  :root { color-scheme: light; --bg: #fff; --text: #111; --dim: #333; --accent: #183b67; --gold: #61400a; --line: #ccc; --surface: #f5f5f5; }
  .site-nav, .contents, .skip, .site-footer { display: none; }
  .wrap { padding-inline: 0; }
  .guide-layout { display: block; padding-block: 24px; }
  .guide-header { padding-block: 16px; }
  .guide-body { max-width: none; }
  .button { background: none; color: var(--text); }
  code { color: var(--text); }
}
