:root {
  color-scheme: light;
  --canvas: #f4f5f8;
  --paper: #fff;
  --soft: #eef0f4;
  --ink: var(--text-strong);
  --muted: var(--text-secondary);
  --line: #dfe1e7;
  --accent: #7654e7;
  --display: Manrope, -apple-system, BlinkMacSystemFont, sans-serif;
  --body: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 100px; }
body { margin: 0; background: var(--paper); color: var(--text-primary); font: var(--reading-copy)/var(--reading-leading) var(--body); -webkit-font-smoothing: antialiased; }
a { color: var(--accent); text-underline-offset: 4px; }
a:hover { color: #5536bc; }
a:focus-visible, summary:focus-visible { outline: 3px solid var(--accent); outline-offset: 5px; border-radius: 3px; }
.skip-link { position: absolute; top: -80px; left: 20px; z-index: 120; background: var(--paper); padding: 12px 20px; border: 1px solid var(--ink); border-radius: 8px; }
.skip-link:focus { top: 12px; }
.nav { border-bottom: 1px solid var(--line); background: var(--canvas); }
.nav-inner { max-width: 1240px; margin: auto; padding: 20px 32px; display: flex; align-items: center; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 9px; color: var(--ink); font: 750 23px/1 var(--display); text-decoration: none; letter-spacing: -1px; white-space: nowrap; }
.brand:hover { color: var(--ink); }
.brand img { width: 28px; height: 28px; display: block; }
.nav-links { margin-left: auto; display: flex; align-items: center; gap: 26px; font-size: 15px; line-height: 1.5; }
.nav-links a { color: var(--ink); text-decoration: none; }
.nav-links a:not(.button):hover { color: var(--accent); }
.locale-link { color: var(--muted) !important; }
.button { display: inline-flex; gap: 18px; justify-content: center; align-items: center; min-height: 48px; padding: 12px 22px; border: 1px solid var(--ink); border-radius: 999px; background: var(--ink); color: var(--paper); font: 600 16px/1.5 var(--body); text-decoration: none; font-size: 16px; }
.button:hover { background: #36363c; color: var(--paper); }
.nav-links .button { color: var(--paper); min-height: 42px; padding: 10px 18px; font-size: 15px; }
.button.secondary { border-color: var(--line); background: var(--paper); color: var(--ink); }
.button.secondary:hover { border-color: #a8a8b3; background: #fafafa; }
.container { max-width: 1180px; margin: auto; padding: 0 32px; }
.breadcrumb { display: flex; flex-wrap: wrap; gap: 10px; font-size: var(--label-copy); color: var(--text-secondary); padding-top: 28px; }
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--accent); }
.hero { padding: 52px 0 40px; max-width: 900px; }
.guide-kicker { display: flex; align-items: center; gap: 12px; margin-bottom: 22px; }
.guide-icon { display: grid; width: 38px; height: 38px; place-items: center; border-radius: 11px; font-size: 21px; line-height: 1; font-family: var(--body); }
.blue { color: #2b61b7; background: #e8effd; }
.orange { color: #a4540b; background: #fff0df; }
.green { color: #267247; background: #e5f4e9; }
.red { color: #af4354; background: #fbe7ea; }
.eyebrow { font: 600 var(--label-copy)/1.5 var(--body); letter-spacing: .08em; text-transform: uppercase; color: var(--text-secondary); margin: 0 0 16px; font-size: var(--label-copy); }
.guide-kicker .eyebrow { margin: 0; }
h1, h2, h3 { font-family: var(--display); font-weight: 650; letter-spacing: -.045em; line-height: 1.18; text-wrap: balance; }
h1 { font-size: clamp(36px, 5.2vw, 62px); max-width: 890px; margin: 0 0 24px; }
h2 { font-size: clamp(25px, 3vw, 33px); margin: 0 0 20px; }
h3 { font-size: 21px; margin: 28px 0 12px; }
.lead { font-size: var(--reading-copy); line-height: 1.65; max-width: 760px; color: var(--text-primary); }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 26px 0 16px; }
.meta { font-size: var(--label-copy); font-family: var(--body); color: var(--text-secondary); line-height: 1.7; }
.quick-start { margin: 0 0 36px; padding: 28px 32px; border: 1px solid var(--line); border-radius: 18px; background: var(--paper); }
.quick-start h2 { font-size: 23px; margin: 0 0 18px; }
.quick-start ol { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 40px; margin: 0; padding-left: 24px; }
.quick-start li { padding-left: 4px; font-size: var(--body-copy); line-height: 1.7; color: var(--text-primary); }
.quick-start li::marker { font: 650 16px var(--body); color: var(--ink); }
.quick-start p { margin: 12px 0 0; font-size: var(--body-copy); color: var(--text-primary); line-height: 1.7; }
.quick-start a { display: inline-flex; align-items: center; min-height: 38px; max-width: 100%; overflow-wrap: anywhere; font-weight: 600; color: var(--ink); }
.guide-layout { display: grid; grid-template-columns: minmax(0, 1fr) 220px; gap: 48px; align-items: start; padding-bottom: 64px; }
.guide-content { min-width: 0; background: transparent; border: 0; border-radius: 0; padding: 0; max-width: var(--reading-width); }
.guide-content section { padding: 42px 0; border-top: 1px solid var(--line); }
.guide-content section:last-of-type { padding-bottom: 24px; }
.guide-content p { margin: 0 0 1.2em; }
.guide-content p:last-child { margin-bottom: 0; }
.guide-content li { padding: 0 0 10px; }
.guide-content ul, .guide-content ol { padding-left: 24px; margin: 18px 0; }
.guide-content strong { font-weight: 650; }
.toc { position: sticky; top: 24px; padding: 10px 0 24px; font-size: 16px; line-height: 1.65; max-height: calc(100svh - 60px); overflow-y: auto; }
.toc h2 { font: 700 14px/1.5 var(--body); text-transform: uppercase; color: var(--muted); letter-spacing: .06em; margin-bottom: 14px; }
.toc a { display: block; text-decoration: none; border-left: 1px solid var(--line); padding: 10px 0 10px 16px; color: var(--text-primary); font-size: 16px; line-height: 1.5; }
.toc a:hover { color: var(--ink); border-color: var(--ink); }
.callout { padding: 22px 24px; background: var(--canvas); border: 1px solid var(--line); border-radius: 12px; margin: 22px 0; }
.callout p:last-child { margin-bottom: 0; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; margin: 22px 0; }
table { width: 100%; border-collapse: collapse; font-size: 17px; line-height: 1.65; min-width: 520px; }
th, td { padding: 15px 16px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
th { background: var(--canvas); font-weight: 600; color: var(--ink); }
td { color: var(--text-primary); }
tr:last-child td, tbody tr:last-child th { border-bottom: 0; }
figure { margin: 0 0 30px; }
figure img { display: block; width: 100%; height: auto; border-radius: 12px; background: var(--canvas); }
figcaption { font-size: var(--label-copy); line-height: 1.65; color: var(--text-secondary); margin-top: 12px; }
.workflow-illustration { padding: 22px; background: var(--canvas); border: 1px solid var(--line); border-radius: 12px; }
.illustration-label { font: 500 10px/1.5 var(--mono); text-transform: uppercase; letter-spacing: .06em; color: var(--text-secondary); margin: 0 0 20px !important; font-size: var(--label-copy); }
.workflow-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.workflow-step { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; min-width: 0; }
.workflow-number { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; font: 600 11px var(--mono); margin-bottom: 7px; }
.workflow-step strong { font: 700 18px/1.4 var(--display); letter-spacing: -.025em; }
.workflow-step > span:last-child { font-size: var(--body-copy); line-height: 1.7; color: var(--text-primary); }
.example-note { margin: 22px 0; padding: 22px 24px; border: 1px solid var(--line); border-radius: 12px; background: var(--canvas); }
.example-note h3 { margin: 0 0 12px; font-size: 20px; }
.example-note dl { margin: 16px 0 0; }
.example-note dt { font-weight: 600; }
.example-note dd { margin: 2px 0 14px; }
.example-note dd:last-child { margin-bottom: 0; }
.example-note p:last-child, .example-note ul:last-child, .example-note ol:last-child { margin-bottom: 0; }
details { padding: 20px 0; border-top: 1px solid var(--line); }
summary { font-weight: 600; cursor: pointer; line-height: 1.6; }
details p { padding-top: 14px; }
.related { border-top: 1px solid var(--line); padding: 48px 0 56px; }
.related h2 { font-size: 31px; margin-bottom: 26px; }
.related-links { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.related-links a { display: flex; flex-direction: column; position: relative; padding: 24px; border: 1px solid var(--line); border-radius: 15px; background: var(--paper); text-decoration: none; color: var(--ink); }
.related-links a:hover { border-color: #aaaab5; }
.related-index { color: var(--text-secondary); font: 500 10px/1.5 var(--mono); margin-bottom: 30px; font-size: var(--label-copy); }
.related-links strong { display: block; font: 650 20px/1.3 var(--display); letter-spacing: -.04em; margin-bottom: 10px; }
.related-links span:not(.related-index):not(.related-arrow) { font-size: var(--body-copy); line-height: 1.7; color: var(--text-primary); }
.related-arrow { position: absolute; top: 22px; right: 24px; font-size: 20px; color: var(--ink); }
footer { border-top: 1px solid var(--line); padding: 30px 0; font-size: var(--label-copy); color: var(--text-secondary); }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.footer-brand { font-size: 18px; letter-spacing: -.7px; }
.footer-brand img { width: 23px; height: 23px; }
.footer-links { display: flex; gap: 20px; flex-wrap: wrap; font-size: var(--label-copy); color: var(--text-secondary); }
.footer-links a { color: var(--muted); text-decoration: none; }
.footer-links a:hover { color: var(--accent); }
.source-note { font-size: var(--label-copy); color: var(--text-secondary); }
.publisher-note { padding-top: 16px; }
.legal-content { max-width: 820px; margin: 48px auto 64px; padding: 40px 44px; background: var(--paper); border: 1px solid var(--line); border-radius: 18px; }
.legal-content h1 { font-size: clamp(32px, 4.5vw, 45px); margin-bottom: 14px; }
.legal-updated { color: var(--muted); font: 14px/1.7 var(--body); margin-bottom: 36px !important; }
.legal-content h2 { font-size: 24px; margin: 34px 0 14px; }
.legal-content h3 { font-size: 19px; margin: 26px 0 12px; }
.legal-content p, .legal-content ul, .legal-content ol { font-size: var(--reading-copy); color: var(--text-primary); margin: 0 0 18px; }
.legal-content ul, .legal-content ol { padding-left: 24px; }
.legal-content li { margin-bottom: 7px; }
.legal-content address { font-style: normal; color: var(--text-primary); font-size: var(--reading-copy); }
.legal-content table { margin: 18px 0; min-width: 0; overflow-wrap: anywhere; }
.legal-content strong { color: var(--ink); }
.legal-page .related-links { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.legal-page .related-links strong { font-size: 18px; }
@media (max-width: 1000px) {
  .guide-layout { grid-template-columns: minmax(0, 1fr) 190px; gap: 48px; }
  .guide-content { padding: 0; max-width: var(--reading-width); border: 0; border-radius: 0; background: transparent; }
  .workflow-illustration { padding: 18px; }
  .workflow-steps { gap: 12px; }
  .nav-links { gap: 20px; font-size: 15px; }
  .legal-page .related-links { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 800px) {
  .guide-layout { grid-template-columns: 1fr; gap: 48px; }
  .toc { position: static; order: -1; padding: 0; margin-bottom: 24px; max-height: none; overflow: visible; font-size: 16px; max-height: calc(100svh - 60px); overflow-y: auto; }
  .toc a { display: inline-block; border: 0; padding: 10px 0 10px 16px; margin-right: 18px; color: var(--text-primary); font-size: 16px; line-height: 1.5; }
  .hero { padding: 36px 0 28px; }
  .nav-inner { flex-wrap: wrap; gap: 18px; }
  .nav-links { margin-left: auto; gap: 18px; font-size: 15px; }
  .nav-links > a:first-child { display: none; }
  .quick-start { padding: 24px; }
  .quick-start ol { grid-template-columns: 1fr; gap: 10px; }
  .related-links { grid-template-columns: 1fr; gap: 12px; }
  .related-index { margin-bottom: 16px; font-size: var(--label-copy); color: var(--text-secondary); }
  .related-links a { padding: 22px; }
  .legal-content { margin: 32px 24px 48px; padding: 32px; }
}
@media (max-width: 520px) {
  .container { padding: 0 20px; }
  .nav-inner { padding: 18px 20px; gap: 20px; }
  .brand { font-size: 22px; }
  .nav-links { width: 100%; margin-left: 0; justify-content: space-between; gap: 12px; font-size: 15px; }
  .nav-links .button { min-height: 42px; padding: 10px 15px; font-size: 15px; gap: 12px; }
  .hero { padding-top: 30px; }
  h1 { font-size: 36px; overflow-wrap: anywhere; }
  .lead { font-size: var(--reading-copy); color: var(--text-primary); line-height: 1.65; }
  .actions .button { width: 100%; }
  .quick-start { padding: 22px; border-radius: 14px; margin-bottom: 24px; }
  .guide-content { padding: 0; border-radius: 0; max-width: var(--reading-width); border: 0; background: transparent; }
  .guide-content section { padding: 42px 0; }
  .workflow-steps { grid-template-columns: 1fr; gap: 18px; }
  .workflow-step { display: grid; grid-template-columns: 34px 1fr; column-gap: 12px; row-gap: 3px; }
  .workflow-number { grid-row: 1 / 3; margin: 0; }
  .workflow-step > span:last-child { grid-column: 2; font-size: var(--body-copy); color: var(--text-primary); line-height: 1.7; }
  table { min-width: 480px; font-size: 17px; line-height: 1.65; }
  .related { padding: 32px 0 40px; }
  .related h2 { font-size: 27px; }
  .footer-inner { align-items: flex-start; gap: 22px; }
  .footer-inner > span { width: 100%; }
  .footer-links { gap: 16px; font-size: var(--label-copy); color: var(--text-secondary); }
  .legal-content { margin: 28px 20px 40px; padding: 24px 16px; border-radius: 14px; }
  .legal-content h1 { font-size: clamp(22px, 6.875vw, 30px); overflow-wrap: anywhere; }
  .legal-page .related-links { grid-template-columns: 1fr; }
  .legal-content th, .legal-content td { padding: 10px 8px; font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
