* { box-sizing: border-box; margin: 0; padding: 0; }
:root { color-scheme: light; --navy: #101826; --ink: #16202e; --muted: #536173; --line: #dce2ea; --accent: #2b5ca8; --soft: #eef3fa; --warning-bg: #fff6e7; --warning-line: #dfbd7d; --warning-ink: #754706; }
html { scroll-behavior: smooth; }
body { background: #fff; color: var(--ink); font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; font-size: 15.5px; line-height: 1.65; -webkit-font-smoothing: antialiased; }
a { color: var(--accent); text-decoration-thickness: .08em; text-underline-offset: .18em; }
a:hover { text-decoration-thickness: .12em; }
a:focus-visible { outline: 3px solid #8db5ee; outline-offset: 3px; border-radius: 3px; }
.wrap { width: min(100% - 40px, 820px); margin-inline: auto; }
.skip-link { position: fixed; top: 10px; left: 10px; z-index: 10; padding: 10px 14px; border-radius: 7px; background: var(--navy); color: #fff; transform: translateY(-160%); }
.skip-link:focus { transform: translateY(0); }

header { border-bottom: 1px solid var(--line); background: #fff; }
.header-inner { display: flex; min-height: 66px; align-items: center; justify-content: space-between; gap: 20px; }
.brand { color: var(--ink); font-size: 18px; font-weight: 600; text-decoration: none; }
.brand span { color: var(--accent); font-weight: 800; }
.back { font-size: 14px; font-weight: 700; }

main { padding-block: 54px 86px; }
.eyebrow { margin-bottom: 6px; color: var(--accent); font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
h1 { max-width: 680px; font-size: clamp(30px, 6vw, 44px); letter-spacing: -.03em; line-height: 1.14; text-wrap: balance; }
.updated { margin-top: 10px; color: var(--muted); font-size: 14px; }

.warning { margin-block: 30px; padding: 20px 22px; border: 1px solid #9bbcf0; border-radius: 10px; background: linear-gradient(135deg, #e5edff 0%, #f4f7ff 100%); color: #1d467f; }
.warning h2 { margin: 0 0 5px; padding: 0; border: 0; color: #1d467f; font-size: 17px; }
.warning p { margin: 0; color: #1d467f; }

.toc { margin: 34px 0 44px; padding: 22px 24px; border: 1px solid var(--line); border-radius: 10px; background: #f7f9fc; }
.toc strong { display: block; margin-bottom: 8px; }
.toc ol { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 34px; margin-left: 22px; }
.toc li { margin: 0; }

section { scroll-margin-top: 20px; }
h2 { margin: 44px 0 14px; padding-top: 23px; border-top: 1px solid var(--line); font-size: 22px; letter-spacing: -.015em; line-height: 1.3; }
h3 { margin: 25px 0 8px; font-size: 16px; }
p, li, dd { color: #394658; }
p { margin-bottom: 12px; }
ul, ol { margin-left: 22px; }
li { margin-bottom: 7px; }
.todo { padding: 10px 13px; border-left: 3px solid #c47b16; background: var(--warning-bg); color: var(--warning-ink); font-size: 14px; }
.todo-blue { border-left-color: var(--accent); background: #eaf2ff; color: #1d467f; }

dl { overflow: hidden; border: 1px solid var(--line); border-radius: 10px; }
dl div { display: grid; grid-template-columns: minmax(180px, .8fr) minmax(0, 1.2fr); border-bottom: 1px solid var(--line); }
dl div:last-child { border-bottom: 0; }
dt, dd { padding: 12px 14px; }
dt { background: #f7f9fc; font-weight: 700; }
dd { margin: 0; }

.table-scroll { max-width: 100%; margin-block: 14px; overflow-x: auto; border: 1px solid var(--line); border-radius: 10px; }
.table-scroll:focus-visible { outline: 3px solid #8db5ee; outline-offset: 3px; }
table { width: 100%; min-width: 720px; border-collapse: collapse; font-size: 14px; }
th, td { padding: 11px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
th { background: #f7f9fc; color: var(--ink); }
tbody tr:last-child td { border-bottom: 0; }
.checklist { padding: 17px 20px 11px 42px; border: 1px solid var(--line); border-radius: 10px; background: var(--soft); }

footer { padding-block: 30px; background: var(--navy); font-size: 14px; }
footer .wrap { display: flex; gap: 10px; }
footer a { color: #d3deed; }
footer span { color: #8290a4; }

@media (max-width: 620px) {
  .wrap { width: min(100% - 32px, 820px); }
  .header-inner { align-items: flex-start; flex-direction: column; justify-content: center; gap: 2px; padding-block: 12px; }
  main { padding-block: 40px 64px; }
  .toc ol { grid-template-columns: 1fr; }
  dl div { grid-template-columns: 1fr; }
  dt { padding-bottom: 5px; }
  dd { padding-top: 5px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
