:root {
  color-scheme: light dark;
  --background: #f4f7f8;
  --surface: #ffffff;
  --surface-muted: #eaf1f3;
  --text: #172126;
  --text-muted: #59666d;
  --border: #cbd6da;
  --accent: #1769aa;
  --accent-strong: #0e568f;
  --accent-soft: #e5f2fa;
  --success: #237a57;
  --success-soft: #e5f4ed;
  --warning: #9a4f23;
  --warning-soft: #fff0e5;
  --focus: #f2a900;
  --shadow: 0 12px 30px rgb(23 33 38 / 8%);
}

@media (prefers-color-scheme: dark) {
  :root {
    --background: #0f1518;
    --surface: #171f23;
    --surface-muted: #202b30;
    --text: #f1f5f6;
    --text-muted: #b3c0c5;
    --border: #38474d;
    --accent: #79bff0;
    --accent-strong: #a5d6f7;
    --accent-soft: #17364a;
    --success: #73d2aa;
    --success-soft: #173c30;
    --warning: #f2ad7a;
    --warning-soft: #452b20;
    --focus: #ffd166;
    --shadow: 0 16px 34px rgb(0 0 0 / 24%);
  }
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--background);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Yu Gothic", sans-serif;
  font-size: 16px;
  line-height: 1.7;
}

a {
  color: var(--accent-strong);
  text-underline-offset: 0.2em;
}

a:hover {
  text-decoration-thickness: 2px;
}

a:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 10px;
  left: 10px;
  padding: 8px 12px;
  background: var(--text);
  color: var(--surface);
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  z-index: 20;
  top: 0;
  border-bottom: 1px solid var(--border);
  background: color-mix(in srgb, var(--background) 92%, transparent);
  backdrop-filter: blur(18px);
}

.header-inner,
.content,
.footer-inner {
  width: min(100% - 40px, 960px);
  margin-inline: auto;
}

.header-inner {
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--text);
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
}

.brand picture,
.brand img {
  display: block;
  width: 34px;
  height: 34px;
}

.brand img {
  border-radius: 8px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.site-nav a {
  padding: 7px 10px;
  border-radius: 6px;
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  background: var(--surface-muted);
  color: var(--text);
}

.content {
  padding-block: 64px 80px;
}

.hero {
  max-width: 760px;
  padding-block: 28px 36px;
}

.hero-brand {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 20px;
}

.hero-brand picture,
.hero-brand img {
  display: block;
  width: 68px;
  height: 68px;
}

.hero-brand img {
  border-radius: 8px;
  box-shadow: var(--shadow);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 14px;
  font-size: clamp(2rem, 6vw, 3rem);
  line-height: 1.15;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 12px;
  font-size: 1.35rem;
  line-height: 1.35;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 8px;
  font-size: 1rem;
  line-height: 1.45;
  letter-spacing: 0;
}

p,
li {
  color: var(--text-muted);
}

.lead {
  max-width: 710px;
  margin-bottom: 0;
  color: var(--text-muted);
  font-size: 1.1rem;
}

.action-list {
  margin: 22px 0 0;
  padding: 0;
  border-top: 1px solid var(--border);
  list-style: none;
}

.action-list li {
  border-bottom: 1px solid var(--border);
}

.action-link {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 22px 4px;
  color: var(--text);
  text-decoration: none;
}

.action-link:hover .action-title {
  color: var(--accent-strong);
}

.action-title,
.action-description {
  display: block;
}

.action-title {
  margin-bottom: 2px;
  font-weight: 700;
}

.action-description {
  color: var(--text-muted);
  font-size: 14px;
}

.action-mark {
  display: block;
  width: 20px;
  height: 20px;
  color: var(--accent);
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.notice {
  margin-top: 36px;
  padding: 18px 20px;
  border: 1px solid var(--border);
  border-left: 4px solid var(--warning);
  border-radius: 6px;
  background: var(--warning-soft);
}

.notice strong {
  display: block;
  margin-bottom: 4px;
}

.notice p {
  margin-bottom: 0;
  color: var(--text);
}

.eyebrow {
  margin-bottom: 8px;
  color: var(--accent-strong);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
}

.document-page {
  max-width: 960px;
}

.document-section {
  max-width: 760px;
  padding-block: 26px;
  border-top: 1px solid var(--border);
}

.document-section code {
  padding: 2px 5px;
  border-radius: 4px;
  background: var(--surface-muted);
  color: var(--text);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.9em;
}

.steps {
  margin: 0;
  padding-left: 1.4em;
}

.steps li + li {
  margin-top: 9px;
}

.download-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.download-button {
  display: grid;
  min-height: 82px;
  align-content: center;
  padding: 14px 16px;
  border: 1px solid var(--accent);
  border-radius: 6px;
  background: var(--accent-soft);
  color: var(--text);
  font-weight: 700;
  text-decoration: none;
}

.download-button.secondary {
  border-color: var(--border);
  background: var(--surface);
}

.download-button span {
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 400;
}

.document-note {
  margin-top: 14px;
  font-size: 14px;
}

.page-header {
  max-width: 760px;
  margin-bottom: 42px;
}

.page-header h1 {
  margin-bottom: 10px;
}

.meta {
  margin-bottom: 14px;
  color: var(--text-muted);
  font-size: 13px;
}

.language-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}

.language-links a {
  padding: 6px 10px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--surface);
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

.language-links a:hover,
.language-links a[aria-current="page"] {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent-strong);
}

.fact-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 30px 0 8px;
  border-block: 1px solid var(--border);
}

.fact {
  padding: 18px 16px;
}

.fact + .fact {
  border-left: 1px solid var(--border);
}

.fact-label,
.fact-value {
  display: block;
}

.fact-label {
  margin-bottom: 3px;
  color: var(--text-muted);
  font-size: 12px;
}

.fact-value {
  color: var(--success);
  font-size: 14px;
  font-weight: 700;
}

.page-layout {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  gap: 54px;
  align-items: start;
}

.toc {
  position: sticky;
  top: 96px;
}

.toc h2 {
  margin-bottom: 10px;
  color: var(--text-muted);
  font-size: 12px;
  text-transform: uppercase;
}

.toc a {
  display: block;
  padding: 6px 0;
  color: var(--text-muted);
  font-size: 14px;
  text-decoration: none;
}

.toc a:hover {
  color: var(--text);
}

.document {
  min-width: 0;
}

.document > section {
  padding-bottom: 38px;
  scroll-margin-top: 98px;
}

.document > section + section {
  padding-top: 38px;
  border-top: 1px solid var(--border);
}

.document p:last-child,
.document ul:last-child {
  margin-bottom: 0;
}

.document ul {
  padding-left: 1.25rem;
}

.primary-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  margin-top: 8px;
  padding: 9px 15px;
  border: 1px solid var(--accent-strong);
  border-radius: 6px;
  background: var(--accent-strong);
  color: var(--surface);
  font-weight: 700;
  text-decoration: none;
}

.primary-link:hover {
  filter: brightness(1.08);
}

.privacy-box {
  margin: 18px 0 0;
  padding: 16px 18px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--surface-muted);
}

.privacy-box p {
  margin-bottom: 0;
  color: var(--text);
}

.site-footer {
  border-top: 1px solid var(--border);
  background: var(--surface);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 88px;
  color: var(--text-muted);
  font-size: 13px;
}

.footer-links {
  display: flex;
  gap: 16px;
}

.footer-links a {
  color: var(--text-muted);
}

@media (max-width: 720px) {
  .download-row {
    grid-template-columns: 1fr;
  }

  .header-inner,
  .content,
  .footer-inner {
    width: min(100% - 28px, 960px);
  }

  .header-inner {
    min-height: 60px;
    gap: 12px;
  }

  .brand picture,
  .brand img {
    width: 30px;
    height: 30px;
  }

  .site-nav {
    gap: 0;
  }

  .site-nav a {
    padding-inline: 7px;
    font-size: 13px;
  }

  .content {
    padding-block: 38px 56px;
  }

  .hero {
    padding-block: 16px 26px;
  }

  .hero-brand {
    align-items: flex-start;
  }

  .hero-brand picture,
  .hero-brand img {
    width: 58px;
    height: 58px;
  }

  .page-layout {
    display: block;
  }

  .toc {
    position: static;
    margin-bottom: 38px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--border);
  }

  .toc nav {
    display: flex;
    flex-wrap: wrap;
    gap: 2px 14px;
  }

  .fact-strip {
    grid-template-columns: 1fr;
  }

  .fact + .fact {
    border-top: 1px solid var(--border);
    border-left: 0;
  }

  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    padding-block: 20px;
  }
}

@media (max-width: 520px) {
  .brand {
    flex: 0 0 auto;
  }

  .brand span {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }

  .site-nav {
    min-width: 0;
  }

  .site-nav a {
    padding-inline: 6px;
    font-size: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
