/* Local system fonts and local files keep the guide free of CDN requests.
   Font sizes use rem so the reader's browser text size is respected.
   Reading text is 1rem (16 px). Supporting text is at least 0.875rem (14 px).
   Only the brand tagline, the key hint and the system map are smaller. */

:root {
  --red: #c82e28;
  --red-dark: #a91f1b;
  --ink: #171b20;
  --muted: #5a626b;
  --paper: #f5f6f7;
  --line: #dde1e5;
  --white: #fff;
  --green: #2d6249;
  --focus: #1f5fb0;
  --radius: 8px;
  --max: 1240px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 100px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Segoe UI", Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-underline-offset: 4px; }
button, input { font: inherit; }
button, a, input, summary { touch-action: manipulation; }
button, summary { cursor: pointer; }
button { color: inherit; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { line-height: 1.15; }
h2 { font-size: clamp(1.75rem, 3vw, 2.375rem); font-weight: 650; letter-spacing: -.03em; }
h3 { font-size: 1.375rem; letter-spacing: -.01em; }
p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }
[hidden] { display: none !important; }
main:focus { outline: 0; }

.section-wrap { max-width: var(--max); margin: auto; padding: 0 40px; }
.eyebrow {
  display: flex; align-items: center; gap: 10px;
  font-size: .875rem; font-weight: 700; letter-spacing: .12em; line-height: 1.5;
}
.muted { color: var(--muted); }
.red-dot { width: 8px; height: 8px; background: #e1443c; border-radius: 50%; }
.skip-link {
  position: fixed; top: -90px; left: 20px; z-index: 20;
  background: #fff; padding: 12px 20px;
}
.skip-link:focus { top: 14px; }
.text-link { font-size: .875rem; font-weight: 650; text-decoration: none; color: var(--red-dark); }
.text-link:hover { text-decoration: underline; }

/* Buttons */
.button {
  display: inline-flex; gap: 24px; justify-content: center; align-items: center;
  min-height: 48px; padding: 12px 20px; border-radius: 4px;
  font-size: .9375rem; font-weight: 650; line-height: 1.4; text-decoration: none;
  transition: background .15s;
}
.button.red { background: var(--red); color: #fff; }
.button.red:hover { background: var(--red-dark); }
.button.dark { background: var(--ink); color: #fff; }
.button.dark:hover { background: #353c44; }
.button.secondary { border: 1px solid #c2c8cf; background: #fff; }
.button.secondary:hover { background: #f1f3f5; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between; gap: 28px;
  min-height: 88px; padding: 16px max(40px, calc((100vw - 1160px) / 2));
  background: #080a0d; color: #fff; border-bottom: 1px solid #2b2c30;
}
.wordmark { display: flex; align-items: center; gap: 14px; text-decoration: none; }
.brand-mark { display: block; width: 48px; height: 48px; flex: none; border-radius: 8px; }
.brand-text { display: flex; flex-direction: column; }
.brand-name { font-size: 1.1875rem; font-weight: 700; line-height: 1.25; color: #fff; }
.brand-sub { display: block; margin-top: 2px; font-size: .875rem; color: #b7bcc4; }
.top-nav { display: flex; gap: 28px; margin-left: auto; }
.top-nav a { font-size: .9375rem; text-decoration: none; color: #d1d4d9; padding: 10px 0; }
.top-nav a:hover { color: #fff; text-decoration: underline; text-decoration-color: #e14339; }
.top-nav a[aria-current="page"] { color: #fff; text-decoration: underline; text-decoration-color: #e14339; }
.header-download {
  border: 1px solid #50545b; border-radius: 4px; padding: 10px 16px;
  text-decoration: none; font-size: .9375rem; white-space: nowrap;
}
.header-download span { margin-left: 12px; color: #ee6a62; }
.header-download:hover { background: #25272d; }

/* Hero */
.hero { position: relative; overflow: hidden; background: #10141a; color: #fff; }
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse at 85% 40%, #29334188, transparent 60%);
}
.hero-inner {
  position: relative; max-width: var(--max); margin: auto;
  display: grid; grid-template-columns: 1.12fr 1fr; align-items: center; gap: 95px;
  padding: 70px 70px 62px 40px;
}
.hero h1 {
  margin: 26px 0 22px;
  font-size: clamp(2.75rem, 5vw, 4.3rem); font-weight: 650; letter-spacing: -.04em; line-height: 1.05;
}
.hero h1 span { color: #f0645a; }
.hero-lead { font-size: 1.4375rem; letter-spacing: -.02em; margin-bottom: 12px; font-weight: 500; }
.hero-description { color: #c3cad3; font-size: 1.0625rem; line-height: 1.8; }
.hero-buttons { display: flex; align-items: center; gap: 24px; margin-top: 30px; flex-wrap: wrap; }
.hero-secondary { font-size: .9375rem; color: #d0d5dc; text-decoration: none; padding: 10px 0; }
.hero-secondary:hover { color: #fff; }
.hero-strip {
  position: relative; max-width: 1160px; margin: 0 auto; padding: 22px 0;
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  border-top: 1px solid #39414a; color: #d0d5dd; font-size: .9375rem;
}
.hero-strip span { display: flex; gap: 12px; align-items: center; }
.hero-strip b { font-size: .875rem; color: #f0766d; letter-spacing: .06em; }

/* Connection map */
.system-map {
  position: relative; transform: rotate(-1deg);
  background: linear-gradient(155deg, #222a35c9, #141a24b3);
  border: 1px solid #414a56; border-radius: 8px; padding: 22px 26px;
  box-shadow: 0 20px 55px #0004; font-size: .75rem;
}
.map-caption { display: flex; justify-content: space-between; align-items: center; margin-bottom: 22px; font-size: .75rem; letter-spacing: .14em; color: #bcc6d3; }
.map-cross { color: #ef6b61; font-size: 1.25rem; font-weight: 300; }
.map-client {
  display: flex; align-items: center; justify-content: center; gap: 14px;
  background: #313b49; border: 1px solid #4d5969; padding: 16px 12px; border-radius: 5px;
}
.system-map strong { display: block; font-size: .8125rem; font-weight: 600; line-height: 1.5; }
.system-map div > span:not(.server-label, .map-icon, .map-light, .map-cross) { font-size: .75rem; color: #bac4d2; }
.map-icon { font-size: 1.75rem; color: #e8706a; line-height: 1; }
.map-divider { height: 28px; width: 1px; background: #596474; }
.map-line { position: relative; display: flex; align-items: center; justify-content: center; height: 38px; }
.map-line::before { content: ""; position: absolute; inset: 0 50%; width: 1px; background: #687382; }
.map-line span {
  position: relative; z-index: 1; padding: 1px 10px; border-radius: 20px;
  border: 1px solid #46515f; background: #1d2531; font-size: .75rem; letter-spacing: .08em;
}
.map-server { border: 1px solid #a34841; border-radius: 5px; background: #342c31; padding: 15px 20px; }
.server-label { display: block; margin-bottom: 10px; font-size: .75rem; font-weight: 650; letter-spacing: .12em; color: #f1b3ab; }
.map-server > div { display: flex; align-items: center; gap: 9px; padding: 5px 0; font-size: .8125rem; }
.map-light { width: 6px; height: 6px; border-radius: 50%; background: #ec8278; }
.map-server .map-database { justify-content: space-between; margin-top: 8px; padding-top: 11px; border-top: 1px solid #60434a; color: #fff; }
.map-controller { display: flex; justify-content: center; gap: 14px; padding: 12px; border: 1px solid #465262; border-radius: 5px; background: #252f3b; }
.map-foot { margin: 15px 0 0; text-align: center; font-size: .75rem; color: #adb7c4; }

/* Home sections */
.disclaimer { background: #fff; border-bottom: 1px solid var(--line); padding: 24px 0; }
.disclaimer h2 { font-size: 1.0625rem; letter-spacing: 0; margin: 0 0 8px; }
.disclaimer p { max-width: 900px; margin: 0 0 6px; }
.disclaimer a { color: var(--red-dark); }
.paths { padding-top: 56px; padding-bottom: 45px; }
.section-top { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 26px; }
.section-top .eyebrow { margin-bottom: 12px; }
.section-top h2 { margin-bottom: 0; }
.edition { color: var(--muted); font-size: .875rem; padding-bottom: 5px; }
.path-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.path-card {
  position: relative; display: flex; flex-direction: column; text-decoration: none;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 26px 20px; transition: border-color .15s, transform .15s;
}
.path-card::before {
  content: ""; position: absolute; top: -1px; left: 26px; right: 26px; height: 3px;
  background: var(--red); opacity: 0; transition: opacity .15s;
}
.path-card:hover { border-color: #b4bbc3; transform: translateY(-3px); }
.path-card:hover::before { opacity: 1; }
.card-code { display: block; margin-bottom: 24px; font-size: .875rem; letter-spacing: .08em; color: var(--muted); font-weight: 650; }
.path-card h3 { margin-bottom: 12px; }
.path-card p { flex: 1; margin-bottom: 22px; color: var(--muted); line-height: 1.6; }
.card-link { display: flex; justify-content: space-between; padding-top: 15px; border-top: 1px solid #e5e7e9; font-weight: 650; font-size: .9375rem; }
.card-link span { color: var(--red); font-size: 1.0625rem; }
.scope-box { margin-top: 24px; padding: 14px 18px; border-left: 3px solid #8e97a2; background: #eceff2; font-size: .9375rem; }
.chapter-overview { padding-top: 10px; padding-bottom: 60px; }
.overview-groups { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.overview-groups h3 { font-size: .875rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.overview-groups ol { list-style: none; margin: 0; padding: 0; }
.overview-groups a {
  display: flex; gap: 12px; align-items: center; min-height: 44px; padding: 8px 4px;
  border-top: 1px solid var(--line); text-decoration: none;
}
.overview-groups a:hover { background: #e9edf0; }
.overview-groups .task-number { color: var(--muted); }
.overview-groups .is-done .task-number::after { content: " ✓"; color: var(--green); }

/* Page heading for FAQ, terms and sources */
.page-head { background: #fff; border-bottom: 1px solid var(--line); padding: 44px 0 36px; }
.page-head h1 { font-size: clamp(2rem, 4vw, 2.75rem); letter-spacing: -.03em; margin: 12px 0 10px; }
.page-head p { max-width: 720px; color: var(--muted); }

/* Breadcrumb */
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: 4px 10px; list-style: none; margin: 0 0 22px; padding: 0; font-size: .875rem; color: var(--muted); }
.breadcrumb li + li::before { content: "/"; margin-right: 10px; color: #8c949d; }
.breadcrumb a { text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb [aria-current="page"] { color: var(--ink); font-weight: 600; }

/* Guide layout */
.guide-shell {
  display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 38px; align-items: start;
  padding-top: 36px; padding-bottom: 70px;
}
.guide-sidebar { position: sticky; top: 110px; max-height: calc(100dvh - 130px); overflow: auto; scrollbar-width: thin; padding-right: 12px; }
.sidebar-heading { display: flex; justify-content: space-between; align-items: center; gap: 6px; margin-bottom: 16px; }
.sidebar-heading > span:last-child { font-size: .875rem; color: var(--muted); }
.nav-group { margin-bottom: 22px; }
.nav-group > p { margin-bottom: 6px; padding: 0 12px; font-size: .875rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.task-link {
  display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 9px 12px;
  font-size: .9375rem; line-height: 1.4; text-decoration: none;
  border-left: 2px solid transparent; border-radius: 0 4px 4px 0;
}
.task-link:hover { background: #e9edf0; }
.task-number { color: var(--muted); font-size: .875rem; font-variant-numeric: tabular-nums; }
.task-link[aria-current="page"] { color: #9c1f1b; border-color: var(--red); background: #f4e5e4; font-weight: 650; }
.task-link[aria-current="page"] .task-number { color: var(--red-dark); }
.task-link.is-done .task-number { color: var(--green); }
.task-link.is-done .task-number::after { content: " ✓"; }
.saved-progress { margin-top: 10px; padding: 17px 12px 0; border-top: 1px solid var(--line); }
.saved-progress > div { display: flex; justify-content: space-between; gap: 8px; font-size: .875rem; }
.saved-progress strong { font-weight: 600; }
.saved-progress output { color: var(--muted); font-variant-numeric: tabular-nums; }
.saved-progress progress { display: block; width: 100%; height: 6px; margin: 12px 0; border: 0; border-radius: 3px; overflow: hidden; accent-color: var(--red); }
.saved-progress progress::-webkit-progress-bar { background: #dce1e5; }
.saved-progress progress::-webkit-progress-value { background: var(--red); }
.saved-progress p { margin: 8px 0; font-size: .875rem; color: var(--muted); line-height: 1.5; }
.reset-progress {
  min-height: 44px; padding: 0; border: 0; background: none;
  font-size: .875rem; color: var(--muted); text-decoration: underline; text-underline-offset: 3px;
}
.sidebar-pdf {
  display: flex; align-items: center; gap: 12px; margin-top: 18px; padding: 15px 12px;
  background: #fff; border: 1px solid var(--line); border-radius: 5px; text-decoration: none;
}
.sidebar-pdf > span:first-child { font-size: 1.5rem; color: var(--red); }
.sidebar-pdf strong { display: block; font-size: .9375rem; }
.sidebar-pdf small { display: block; font-size: .875rem; color: var(--muted); }
.mobile-chapters { display: none; }

.guide-content { min-width: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 34px 38px; }
.chapter-meta { margin-bottom: 8px; font-size: .875rem; letter-spacing: .1em; color: var(--muted); font-weight: 700; }
.chapter-name { margin-bottom: 14px; font-size: 1.125rem; font-weight: 650; }
.chapter-summary { color: var(--muted); }
.needs { margin: 22px 0; padding: 16px 19px; background: #f1f3f6; border-radius: 4px; }
.mini-label { font-size: .875rem; color: #4d5762; letter-spacing: .1em; font-weight: 700; }
.needs p { margin-top: 5px; }
.step-tabs { list-style: none; margin: 20px 0 28px; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.step-tabs a { display: flex; gap: 10px; align-items: center; min-height: 44px; font-size: .9375rem; color: var(--muted); text-decoration: none; }
.step-tabs a > span {
  display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
  width: 28px; height: 28px; border: 1px solid #c2c8cf; border-radius: 50%;
  font-size: .875rem; background: #fff;
}
.step-tabs a:hover { color: var(--ink); }
.step-tabs [aria-current="step"] { color: var(--ink); font-weight: 650; }
.step-tabs [aria-current="step"] > span { background: var(--red-dark); border-color: var(--red-dark); color: #fff; }
.step-main { border-top: 1px solid var(--line); padding-top: 25px; }
.step-kicker { margin-bottom: 10px; font-size: .875rem; color: var(--red-dark); font-weight: 700; letter-spacing: .1em; }
.step-main h1 { margin-bottom: 20px; font-size: 1.75rem; line-height: 1.25; letter-spacing: -.02em; }
.actions { counter-reset: action; list-style: none; margin: 0 0 24px; padding: 0; }
.actions li { counter-increment: action; position: relative; margin-bottom: 10px; padding-left: 36px; line-height: 1.7; }
.actions li::before {
  content: counter(action, decimal-leading-zero); position: absolute; left: 0; top: .1em;
  color: var(--muted); font-size: .875rem; font-variant-numeric: tabular-nums;
}
.table-wrap { overflow-x: auto; margin: 22px 0; border: 1px solid var(--line); border-radius: 5px; }
table { width: 100%; min-width: 520px; border-collapse: collapse; text-align: left; line-height: 1.5; }
th { font-weight: 650; color: #3d4752; background: #eef1f4; }
th, td { padding: 12px 13px; border-bottom: 1px solid var(--line); vertical-align: top; }
tr:last-child td { border-bottom: 0; }
th + th, td + td { border-left: 1px solid #e6e9ec; }
pre { overflow: auto; padding: 15px 17px; background: #171e27; color: #f2f4f6; border-radius: 4px; font-size: .9375rem; line-height: 1.7; white-space: pre-wrap; overflow-wrap: anywhere; }
code { font-family: Consolas, monospace; }
.source-note { font-size: .875rem; color: var(--muted); }
/* Value box, callouts, and on-screen labels inside steps */
.ui { display: inline-block; padding: 0 .4em; background: #eef0f3; border: 1px solid var(--line); border-radius: 3px; font-weight: 600; line-height: 1.45; }
.values { margin: 0 0 24px; background: #f4f5f7; border: 1px solid var(--line); border-left: 4px solid var(--ink); border-radius: 5px; padding: 14px 18px 6px; }
.values-title { margin: 0 0 8px; font-size: .875rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.values dl { margin: 0; }
.value-row { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 18px; padding: 9px 0; border-top: 1px solid var(--line); }
.value-row dt { flex: 0 0 11rem; color: var(--muted); }
.value-row dd { display: flex; flex: 1 1 14rem; align-items: center; gap: 12px; margin: 0; min-width: 0; }
.value-row code { font-family: Consolas, "Courier New", monospace; font-size: 1.0625rem; font-weight: 700; overflow-wrap: anywhere; }
.copy-value { min-height: 44px; min-width: 64px; padding: 0 14px; border: 1px solid var(--line); border-radius: 4px; background: #fff; font: inherit; font-size: .875rem; font-weight: 600; cursor: pointer; }
.copy-value:hover { border-color: var(--ink); }
.callout { margin: 0 0 20px; padding: 13px 17px; border: 1px solid var(--line); border-left-width: 4px; border-radius: 5px; background: #f4f6f9; }
.callout p { margin: 0; line-height: 1.6; }
.callout-label { display: block; margin-bottom: 3px; font-size: .875rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.callout-warning { background: #fdf0ef; border-color: #efc4c1; border-left-color: var(--red); }
.callout-warning .callout-label { color: var(--red-dark); }
.callout-note { border-left-color: #5a7186; }
.callout-note .callout-label { color: #3d5266; }
.callout-term { margin-bottom: 10px; padding: 9px 15px; background: transparent; border-style: dashed; border-left-width: 1px; color: var(--muted); }
.callout-term strong { color: var(--ink); }
@media print { .copy-value { display: none; } .values, .callout { break-inside: avoid; } }

/* Pictures from the manuals */
.figure { margin: 0 0 22px; padding: 12px; background: #fff; border: 1px solid var(--line); border-radius: 5px; }
.figure-link { display: block; }
.figure img { display: block; max-width: 100%; height: auto; margin: 0 auto; }
.figure figcaption { margin-top: 10px; font-size: .9375rem; line-height: 1.55; }
.figure-source { display: block; margin-top: 3px; font-size: .875rem; color: var(--muted); }
@media print { .figure { break-inside: avoid; } }

.expected { display: flex; gap: 13px; margin-top: 25px; padding: 17px 18px; background: #eff5f1; border: 1px solid #d3e2d8; border-radius: 5px; }
.expected strong { color: #254c38; }
.expected p { margin-top: 4px; }
.check-symbol {
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  width: 26px; height: 26px; margin-top: 2px; border: 1px solid #b2cbb9; border-radius: 50%;
  font-size: .875rem; color: var(--green);
}
.step-help { margin: 15px 0; border: 1px solid var(--line); border-radius: 5px; }
.step-help summary { padding: 13px 16px; font-weight: 600; min-height: 48px; }
.step-help > div { padding: 0 16px 16px; color: var(--muted); }
.step-help a { color: var(--red-dark); }
.refs { display: flex; flex-direction: column; gap: 4px; margin: 20px 0; font-size: .875rem; line-height: 1.5; color: var(--muted); overflow-wrap: anywhere; }
.refs-label { margin-bottom: 4px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.refs a { color: #4a545f; text-decoration: none; padding: 3px 0; }
.refs a:hover { text-decoration: underline; color: var(--red-dark); }
.refs a span { color: var(--red-dark); }
.completion { display: flex; gap: 12px; align-items: center; min-height: 48px; padding: 8px 0; border-top: 1px solid var(--line); cursor: pointer; }
.completion input { flex-shrink: 0; width: 22px; height: 22px; accent-color: var(--red-dark); }
.step-controls { display: flex; justify-content: space-between; align-items: center; gap: 15px; margin-top: 8px; padding-top: 22px; border-top: 1px solid var(--line); }
.step-controls .text-link { color: var(--muted); padding: 12px 0; }

/* FAQ */
.faq-section { padding: 56px 0 68px; }
.faq-layout { display: grid; grid-template-columns: 1fr 2fr; gap: 60px; }
.faq-intro { align-self: start; position: sticky; top: 120px; }
.faq-intro p { color: var(--muted); }
.faq-content { min-width: 0; }
.search-label { display: block; margin-bottom: 10px; font-weight: 650; }
.search-field { display: flex; align-items: center; gap: 10px; padding: 0 16px; background: #fff; border: 1px solid #aeb5bd; border-radius: 5px; }
.search-field > span { font-size: 1.5rem; color: var(--muted); }
.search-field input { width: 100%; min-width: 0; padding: 14px 0; border: 0; background: transparent; color: var(--ink); }
.search-field input::placeholder { color: #5d6670; opacity: 1; }
.search-field:focus-within { outline: 3px solid var(--focus); outline-offset: 2px; }
.search-field input:focus-visible { outline: 0; }
.search-field kbd { padding: 0 6px; border: 1px solid #aeb5bd; border-radius: 3px; font-size: .75rem; color: var(--muted); }
.search-count { margin: 10px 0 20px; font-size: .875rem; color: var(--muted); }
.faq-item { border-top: 1px solid var(--line); }
.faq-item:last-child { border-bottom: 1px solid var(--line); }
.faq-item summary { display: flex; align-items: center; gap: 16px; padding: 18px 0; list-style: none; font-weight: 600; line-height: 1.5; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-index { align-self: start; padding-top: 3px; font-size: .875rem; font-weight: 500; color: var(--muted); }
.plus { margin-left: auto; font-size: 1.5rem; font-weight: 300; color: #5d6772; line-height: 1; transition: transform .2s; }
.faq-item[open] .plus { transform: rotate(45deg); color: var(--red-dark); }
.faq-answer { padding: 0 28px 21px; color: var(--muted); animation: reveal .2s ease-out; }
.faq-answer .refs { margin-bottom: 0; }
.no-results { padding: 24px; border: 1px solid var(--line); background: #f0f2f5; }

/* Terms and sources */
.terms-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin: 0; }
.terms-grid > div { padding-top: 13px; border-top: 2px solid #c3c9d0; }
.terms-grid dt { margin-bottom: 6px; font-weight: 650; }
.terms-grid dd { margin: 0; color: var(--muted); line-height: 1.6; }
.content-section { padding-top: 44px; padding-bottom: 70px; }
.sources-intro { max-width: 650px; color: var(--muted); }
.source-list { list-style: none; margin: 30px 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0 36px; }
.source-list > li { display: flex; gap: 18px; min-width: 0; padding: 23px 0; border-top: 1px solid #cfd5dc; }
.source-id { padding-top: 3px; font-size: .875rem; color: var(--red-dark); font-weight: 700; }
.source-list h2 { margin-bottom: 7px; font-size: 1.0625rem; line-height: 1.4; letter-spacing: 0; }
.source-list p { margin-bottom: 8px; font-size: .9375rem; color: #4d5762; }
.source-list .source-date { font-size: .875rem; font-weight: 650; }
.source-list .source-file { font-family: Consolas, monospace; font-size: .875rem; overflow-wrap: anywhere; color: #55606b; }

/* Footer */
footer {
  display: grid; grid-template-columns: 1fr auto; gap: 8px 30px; align-items: center;
  padding: 33px max(40px, calc((100vw - 1160px) / 2));
  background: #0d1116; color: #dfe3e8; font-size: .875rem;
}
footer p { margin: 0; color: #aab3bf; }
.footer-title { display: block; text-decoration: none; margin-bottom: 8px; }
.footer-title img { display: block; width: 44px; height: 44px; border-radius: 8px; }
.footer-title span { display: block; margin-top: 9px; font-size: .875rem; color: #aab3bf; }
.footer-nav { grid-column: 2; grid-row: 1 / span 3; display: flex; flex-wrap: wrap; gap: 4px 22px; justify-content: flex-end; }
.footer-nav a { padding: 10px 0; text-decoration: none; }
.footer-nav a:hover { text-decoration: underline; }
footer a { color: #dfe3e8; }

/* Back to top */
.back-to-top {
  position: fixed; right: max(20px, env(safe-area-inset-right)); bottom: max(20px, env(safe-area-inset-bottom)); z-index: 9;
  display: flex; align-items: center; justify-content: center; width: 48px; height: 48px; padding: 0;
  border: 1px solid #fff; border-radius: 5px; background: var(--ink); color: #fff;
  font-size: .9375rem; font-weight: 650; box-shadow: 0 3px 12px #0005; overflow: hidden; white-space: nowrap;
  transition: width .2s ease, background .15s;
}
.back-to-top-icon { flex: none; color: #ff9d96; font-size: 1.375rem; line-height: 1; }
.back-to-top-label { max-width: 0; overflow: hidden; opacity: 0; transition: max-width .2s ease, opacity .2s ease; }
.back-to-top:focus-visible { width: 142px; background: #353c44; }
.back-to-top:focus-visible .back-to-top-label { max-width: 100px; opacity: 1; margin-right: 10px; }
@media (hover: hover) {
  .back-to-top:hover { width: 142px; background: #353c44; }
  .back-to-top:hover .back-to-top-label { max-width: 100px; opacity: 1; margin-right: 10px; }
}

@keyframes reveal { from { opacity: .4; transform: translateY(-3px); } to { opacity: 1; transform: translateY(0); } }

@media (min-width: 1450px) {
  .hero-inner { padding-top: 85px; padding-bottom: 75px; }
}

@media (max-width: 1100px) {
  .site-header { padding: 16px 28px; gap: 20px; }
  .top-nav { gap: 20px; }
  .hero-inner { gap: 50px; padding-right: 40px; }
  .hero-strip { margin: 0 40px; }
  .guide-shell { grid-template-columns: 220px minmax(0, 1fr); gap: 24px; }
  .guide-content { padding: 28px; }
  .faq-layout { gap: 35px; }
  .overview-groups { gap: 18px; }
}

@media (max-width: 800px) {
  html { scroll-padding-top: 85px; }
  .site-header { min-height: 74px; padding: 13px 24px; }
  .brand-mark { width: 44px; height: 44px; }
  .top-nav { display: none; }
  .hero-inner { grid-template-columns: 1fr; padding: 48px 28px; gap: 40px; }
  .system-map { transform: none; max-width: 520px; }
  .hero-strip { margin: 0 28px; }
  .section-wrap { padding-left: 26px; padding-right: 26px; }
  .path-grid, .overview-groups { grid-template-columns: 1fr; }
  .guide-shell { grid-template-columns: 1fr; padding-top: 24px; }
  .guide-sidebar { position: static; max-height: none; overflow: visible; padding: 0; }
  .mobile-chapters {
    display: flex; align-items: center; justify-content: space-between; width: 100%; min-height: 48px;
    padding: 12px 16px; background: #fff; border: 1px solid #aeb5bd; border-radius: 5px; text-align: left; font-weight: 600;
  }
  .js #chapter-menu { display: none; }
  .js #chapter-menu.is-open { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 10px; padding: 20px; background: #fff; border: 1px solid var(--line); border-radius: 5px; }
  .nav-group { margin: 0 0 15px; }
  .sidebar-heading { display: none; }
  .saved-progress { margin: 14px 0 0; padding: 12px 0 0; }
  .sidebar-pdf { display: none; }
  .guide-content { padding: 26px; }
  .faq-layout { grid-template-columns: 1fr; gap: 24px; }
  .faq-intro { position: static; }
  .terms-grid { grid-template-columns: 1fr 1fr; }
  footer { grid-template-columns: 1fr; padding: 28px; }
  .footer-nav { grid-column: auto; grid-row: auto; justify-content: flex-start; }
}

@media (max-width: 540px) {
  .site-header { padding: 12px 19px; gap: 10px; }
  .brand-mark { width: 40px; height: 40px; }
  .brand-name { font-size: 1rem; }
  .brand-sub { font-size: .75rem; }
  .header-download { padding: 8px 10px; font-size: .875rem; }
  .header-download span { margin-left: 6px; }
  .hero-inner { padding: 40px 24px 30px; }
  .hero h1 { font-size: 3rem; letter-spacing: -.03em; margin: 22px 0 18px; }
  .hero-lead { font-size: 1.3125rem; }
  .hero-buttons { gap: 12px 21px; }
  .hero-strip { margin: 0 24px; }
  .section-wrap { padding-left: 20px; padding-right: 20px; }
  .paths { padding-top: 36px; padding-bottom: 30px; }
  .section-top { display: block; margin-bottom: 20px; }
  .edition { display: block; margin-top: 12px; }
  .path-card { padding: 20px 22px 16px; }
  .card-code { margin-bottom: 12px; }
  .guide-shell { gap: 18px; padding-bottom: 40px; }
  .guide-content { padding: 22px 18px; }
  .step-main h1 { font-size: 1.5rem; }
  .expected { padding: 14px 13px; gap: 10px; }
  .step-controls { flex-wrap: wrap; }
  .step-controls .button { padding: 11px 14px; gap: 12px; }
  .js #chapter-menu.is-open { grid-template-columns: 1fr; }
  .terms-grid { grid-template-columns: 1fr; }
  .source-list { grid-template-columns: 1fr; }
  .search-field { padding: 0 12px; }
  .search-field kbd { display: none; }
  .faq-answer { padding-left: 22px; padding-right: 10px; }
  .page-head { padding: 32px 0 26px; }
  .faq-section { padding: 36px 0; }
  .content-section { padding-top: 30px; padding-bottom: 40px; }
}

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

/* Print: show the current page as a clean sheet and open the help text. */
@media print {
  html { scroll-padding-top: 0; }
  body { font-size: 11pt; background: #fff; color: #000; }
  .site-header, .hero, .paths, .chapter-overview, .guide-sidebar, .step-tabs, .step-controls, .completion,
  .search-field, .search-count, footer, .skip-link, .back-to-top, .breadcrumb, .mobile-chapters { display: none !important; }
  .section-wrap { max-width: none; padding: 0; }
  .guide-shell { display: block; padding: 0; }
  .guide-content { border: 0; padding: 0; }
  .step-main { border-top: 0; padding-top: 0; }
  .step-main h1 { font-size: 18pt; }
  .step-help { border: 0; }
  .step-help summary { padding-left: 0; }
  .needs, .expected { break-inside: avoid; }
  .table-wrap { overflow: visible; }
  table { min-width: 0; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 9pt; }
}

/* Screen-reader-only text */
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
