:root {
  color-scheme: light;
  --canvas: #f6f8fb;
  --surface: #ffffff;
  --surface-muted: #eef2f7;
  --ink: #121a24;
  --muted: #5b6778;
  --line: #d8e0ea;
  --accent: #2457c5;
  --accent-strong: #183f98;
  --accent-soft: #e8efff;
  --code: #101821;
  --code-ink: #e8eef7;
  --success: #1f6c4d;
  --radius: 12px;
  --shadow: 0 18px 50px rgb(25 42 70 / 10%);
  --max: 1440px;
}

html[data-theme="dark"] {
  color-scheme: dark;
  --canvas: #0d131b;
  --surface: #131c26;
  --surface-muted: #192531;
  --ink: #f4f7fb;
  --muted: #aab7c7;
  --line: #2a394a;
  --accent: #77a0ff;
  --accent-strong: #a9c0ff;
  --accent-soft: #1a2d55;
  --code: #080d13;
  --code-ink: #edf3fb;
  --success: #7fd5ae;
  --shadow: 0 18px 50px rgb(0 0 0 / 28%);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: "Segoe UI Variable", "Segoe UI", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}

a { color: inherit; }

button, a { -webkit-tap-highlight-color: transparent; }

button { font: inherit; }

img { display: block; max-width: 100%; }

code, pre { font-family: "Cascadia Code", "SFMono-Regular", ui-monospace, monospace; }

.skip-link {
  position: fixed;
  left: 16px;
  top: -80px;
  z-index: 100;
  padding: 10px 14px;
  color: white;
  background: var(--accent-strong);
  border-radius: 8px;
}

.skip-link:focus { top: 12px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(100% - 48px, var(--max));
  min-height: 68px;
  margin: 0 auto;
  background: color-mix(in srgb, var(--canvas) 88%, transparent);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 800;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  color: white;
  background: var(--accent);
  border-radius: 7px;
  font-size: 14px;
}

nav { display: flex; align-items: center; gap: 24px; white-space: nowrap; }

nav a, .theme-button {
  color: var(--muted);
  background: none;
  border: 0;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

nav a:hover, nav a:focus-visible, .theme-button:hover, .theme-button:focus-visible { color: var(--accent); }

.hero {
  display: grid;
  grid-template-columns: minmax(0, .78fr) minmax(520px, 1.22fr);
  gap: clamp(48px, 7vw, 110px);
  align-items: center;
  width: min(100% - 48px, var(--max));
  min-height: auto;
  margin: 0 auto;
  padding: 64px 0 72px;
}

.eyebrow, .section-kicker, .difficulty, .contents-label {
  margin: 0 0 16px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

h1, h2, h3, p { text-wrap: pretty; }

h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(50px, 6.4vw, 94px);
  font-weight: 800;
  letter-spacing: -.065em;
  line-height: .98;
}

.hero-summary {
  max-width: 540px;
  margin: 30px 0 0;
  color: var(--muted);
  font-size: 20px;
  line-height: 1.5;
}

.install-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 540px;
  margin-top: 34px;
  padding: 8px 8px 8px 16px;
  color: var(--code-ink);
  background: var(--code);
  border: 1px solid color-mix(in srgb, var(--line) 40%, transparent);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.install-row code { overflow: hidden; font-size: 14px; text-overflow: ellipsis; white-space: nowrap; }

.copy-button {
  flex: 0 0 auto;
  padding: 8px 11px;
  color: var(--code-ink);
  background: color-mix(in srgb, white 8%, transparent);
  border: 1px solid color-mix(in srgb, white 14%, transparent);
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.copy-button:hover, .copy-button:focus-visible { background: color-mix(in srgb, white 15%, transparent); }

.hero-actions, .next-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }

.button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 10px 17px;
  border: 1px solid var(--line);
  border-radius: 9px;
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
  transition: transform .16s ease, background-color .16s ease;
}

.button:hover { transform: translateY(-1px); }

.button.primary { color: white; background: var(--accent); border-color: var(--accent); }
.button.primary:hover { background: var(--accent-strong); }
.button.secondary { background: var(--surface); }
.button.secondary:hover { border-color: var(--accent); }

.hero-result {
  margin: 0;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transform: rotate(1deg);
}

.window-bar, .panel-bar, .result-card figcaption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.window-bar {
  min-height: 42px;
  padding: 0 14px;
  color: var(--muted);
  background: var(--surface-muted);
  border-bottom: 1px solid var(--line);
  font-size: 11px;
  font-weight: 700;
}

.hero-result img { width: 100%; aspect-ratio: 2.22 / 1; object-fit: cover; object-position: left top; }

.hero-code {
  box-shadow: var(--shadow);
}

.hero-code pre {
  min-height: 390px;
  padding: 30px;
  font-size: 14px;
  line-height: 1.8;
}

.orientation {
  display: block;
  width: min(100% - 48px, var(--max));
  margin: 0 auto;
  padding: 100px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.orientation h2, .next-step h2 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(34px, 4vw, 58px);
  letter-spacing: -.045em;
  line-height: 1.08;
}

.orientation > p { max-width: 760px; margin: 26px 0 0; color: var(--muted); font-size: 18px; }

.beginner-path {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin: 52px 0 0;
  padding: 0;
  border-top: 1px solid var(--line);
  list-style: none;
}

.beginner-path li { min-width: 0; border-right: 1px solid var(--line); }
.beginner-path li:last-child { border-right: 0; }
.beginner-path a {
  display: flex;
  min-height: 164px;
  padding: 24px 20px 20px;
  flex-direction: column;
  color: var(--ink);
  text-decoration: none;
  transition: background-color .2s ease, transform .2s ease;
}
.beginner-path a:hover, .beginner-path a:focus-visible { background: var(--accent-soft); }
.beginner-path a:active { transform: translateY(1px); }
.beginner-path span {
  color: var(--accent);
  font-family: "Cascadia Code", "SFMono-Regular", ui-monospace, monospace;
  font-size: 11px;
  font-weight: 800;
}
.beginner-path strong { margin-top: 18px; font-size: 19px; letter-spacing: -.025em; }
.beginner-path small { max-width: 30ch; margin-top: 7px; color: var(--muted); font-size: 14px; line-height: 1.5; }

.docs-layout {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: clamp(36px, 6vw, 96px);
  width: min(100% - 48px, var(--max));
  margin: 0 auto;
  padding: 72px 0 0;
}

.contents {
  position: sticky;
  top: 100px;
  align-self: start;
}

.contents ol { display: grid; gap: 4px; margin: 0; padding: 0; list-style: none; }
.contents-label-secondary { margin-top: 26px; margin-bottom: 8px; color: var(--muted); font-size: 10px; }

.contents li a {
  display: grid;
  grid-template-columns: 30px 1fr;
  gap: 8px;
  padding: 8px 10px;
  color: var(--muted);
  border-left: 2px solid transparent;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

.contents li a span { color: color-mix(in srgb, var(--muted) 65%, transparent); font-family: "Cascadia Code", "SFMono-Regular", ui-monospace, monospace; font-weight: 500; }
.contents li a:hover, .contents li a.active { color: var(--accent); background: var(--accent-soft); border-left-color: var(--accent); }

.lessons { min-width: 0; }

.lesson {
  scroll-margin-top: 96px;
  padding: 0 0 84px;
  border-bottom: 1px solid var(--line);
}

.lesson + .lesson { padding-top: 84px; }
.helper-guide + .lesson { padding-top: 84px; }
.lesson:last-child { padding-bottom: 72px; }

.helper-guide {
  scroll-margin-top: 96px;
  padding: 112px 0;
  border-bottom: 1px solid var(--line);
}

.tutorial-page > main > .cheatsheet { display: none; }

.core-cheatsheet {
  width: min(100% - 48px, var(--max));
  margin: 0 auto;
  padding: 24px 0 112px;
  scroll-margin-top: 96px;
}

.core-cheatsheet-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, .72fr);
  gap: clamp(36px, 7vw, 110px);
  align-items: end;
  margin-bottom: 32px;
  padding-top: 64px;
  border-top: 1px solid var(--line);
}

.core-cheatsheet-header h2 {
  max-width: 740px;
  margin: 0;
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1.02;
  letter-spacing: -.055em;
}

.core-cheatsheet-header > div:last-child > p {
  margin: 0 0 14px;
  color: var(--muted);
}

.core-api-link {
  color: var(--accent);
  font-weight: 800;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.core-api-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.core-api-group {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.core-api-group-title {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 58px;
  padding: 0 16px;
  border-bottom: 1px solid var(--line);
  background: var(--surface-muted);
}

.core-api-group-title span {
  color: var(--accent);
  font: 700 12px/1 "Cascadia Code", ui-monospace, monospace;
}

.core-api-group-title h3 {
  margin: 0;
  font-size: 15px;
}

.core-api-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

.core-api-table td {
  padding: 12px 14px;
  vertical-align: top;
  font-size: 12px;
}

.core-api-table tr + tr td { border-top: 1px solid color-mix(in srgb, var(--line) 66%, transparent); }
.core-api-table tr:hover { background: color-mix(in srgb, var(--accent-soft) 44%, transparent); }
.core-api-table td:first-child { width: 50%; }
.core-api-table td:nth-child(2) { color: var(--muted); }
.core-api-table td:last-child { width: 50px; text-align: right; }
.core-api-table code { color: var(--ink); font-size: 11px; font-weight: 750; overflow-wrap: anywhere; }
.core-api-table a { color: var(--accent); font-weight: 800; text-decoration: none; }

.core-api-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 18px;
  color: var(--muted);
  font-size: 13px;
}

.helper-guide h2 {
  margin: 0;
  font-size: clamp(34px, 4vw, 54px);
  letter-spacing: -.045em;
  line-height: 1.08;
}

.helper-grid {
  display: grid;
  grid-template-columns: minmax(360px, 1.05fr) minmax(300px, .95fr);
  gap: 24px;
  align-items: stretch;
}

.helper-reference {
  display: grid;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.helper-reference article { padding: 22px 24px; }
.helper-reference article + article { border-top: 1px solid var(--line); }
.helper-reference article > code { color: var(--accent); font-size: 12px; font-weight: 800; }
.helper-reference h3 { margin: 8px 0 5px; font-size: 17px; letter-spacing: -.02em; }
.helper-reference p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.55; }
.helper-reference p code { color: var(--ink); font-size: .92em; }
.helper-note { margin-top: 24px; }

.lesson-header {
  display: block;
  margin-bottom: 24px;
}

.lesson h2 {
  margin: 0;
  font-size: clamp(34px, 4vw, 54px);
  letter-spacing: -.045em;
  line-height: 1.08;
}

.difficulty { margin-bottom: 9px; }

.feature-name { max-width: 820px; margin: 18px 0 0; color: var(--ink); font-size: 14px; font-weight: 700; }
.feature-name span { margin-right: 10px; color: var(--accent); font-family: "Cascadia Code", "SFMono-Regular", ui-monospace, monospace; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }
.use-case { max-width: 820px; margin: 8px 0 0; color: var(--muted); font-size: 17px; }
.use-case strong { color: var(--ink); }

.lesson-grid {
  display: grid;
  grid-template-columns: minmax(360px, .9fr) minmax(430px, 1.1fr);
  gap: 24px;
  align-items: start;
}

.lesson-grid-wide-result { grid-template-columns: minmax(360px, .72fr) minmax(520px, 1.28fr); }

.code-panel {
  min-width: 0;
  overflow: hidden;
  color: var(--code-ink);
  background: var(--code);
  border: 1px solid color-mix(in srgb, var(--line) 40%, transparent);
  border-radius: var(--radius);
}

.panel-bar {
  min-height: 44px;
  padding: 0 9px 0 15px;
  color: #9cafc4;
  border-bottom: 1px solid #273342;
  font-size: 11px;
  font-weight: 700;
}

pre { margin: 0; padding: 24px; overflow: auto; font-size: 12.5px; line-height: 1.72; tab-size: 2; }
.code-panel pre { max-height: min(68vh, 720px); }

.panel-actions { display: flex; align-items: center; gap: 6px; flex: none; }
.panel-actions a {
  padding: 8px 7px;
  color: #c5d3e3;
  text-decoration: none;
}
.panel-actions a:hover { color: #ffffff; }

.result-card {
  display: flex;
  min-width: 0;
  margin: 0;
  flex-direction: column;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.result-card > a:first-child {
  display: grid;
  min-height: 300px;
  flex: 1;
  place-items: center;
  overflow: hidden;
  background: #eef2f7;
}

.result-card img { width: 100%; height: 100%; object-fit: contain; }
.lesson-foundation .result-card > a:first-child { min-height: 0; flex: none; }
.lesson-foundation .result-card img { height: auto; }

.result-card figcaption {
  min-height: 44px;
  padding: 0 15px;
  color: var(--muted);
  border-top: 1px solid var(--line);
  font-size: 12px;
  font-weight: 700;
}

.result-card figcaption a { color: var(--accent); font-weight: 800; }

.email-result {
  display: grid;
  min-height: 300px;
  align-content: center;
  gap: 24px;
  padding: clamp(28px, 5vw, 56px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.email-result-status {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.email-result-status span {
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  color: #ffffff;
  background: var(--accent);
  border-radius: 50%;
}

.email-result dl { display: grid; gap: 12px; margin: 0; }
.email-result dl div { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 14px; }
.email-result dt { color: var(--muted); font-size: 12px; font-weight: 700; }
.email-result dd { margin: 0; color: var(--ink); font-size: 14px; font-weight: 750; }

.email-attachment {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 14px;
  background: color-mix(in srgb, var(--accent-soft) 68%, var(--surface));
  border: 1px solid color-mix(in srgb, var(--accent) 22%, var(--line));
  border-radius: 8px;
}

.email-attachment-icon {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  color: #ffffff;
  background: #217346;
  border-radius: 5px;
  font-size: 15px;
  font-weight: 850;
}

.email-attachment > span:last-child { display: grid; gap: 3px; }
.email-attachment strong { color: var(--ink); font-size: 13px; }
.email-attachment small { color: var(--muted); font-size: 11px; }

.notes-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 24px; }

.note {
  padding: 22px 24px;
  background: var(--surface);
  border-left: 3px solid #d58b28;
  border-radius: 0 var(--radius) var(--radius) 0;
}

.note h3 { margin: 0 0 6px; font-size: 13px; letter-spacing: .02em; }
.note p { margin: 0; color: var(--muted); font-size: 14px; }
.note code { color: var(--ink); font-size: .92em; }

.advanced-tip {
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.advanced-tip summary {
  display: flex;
  min-height: 100%;
  align-items: center;
  justify-content: space-between;
  padding: 20px 22px;
  color: var(--accent);
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  list-style: none;
}

.advanced-tip summary::-webkit-details-marker { display: none; }
.advanced-tip summary::after { content: "+"; font-family: "Cascadia Code", "SFMono-Regular", ui-monospace, monospace; font-size: 20px; font-weight: 400; }
.advanced-tip[open] summary { min-height: auto; border-bottom: 1px solid var(--line); }
.advanced-tip[open] summary::after { content: "−"; }
.advanced-tip > div { padding: 20px 22px; }
.advanced-tip h3 { margin: 0 0 6px; font-size: 13px; }
.advanced-tip p { margin: 0; color: var(--muted); font-size: 14px; }
.advanced-tip code { color: var(--ink); font-size: .92em; }

.cheatsheet {
  width: min(100% - 48px, var(--max));
  margin: 0 auto;
  padding: 0 0 140px;
  scroll-margin-top: 96px;
}

.cheatsheet-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, .72fr);
  gap: clamp(36px, 7vw, 110px);
  align-items: end;
  margin-bottom: 48px;
  padding-top: 72px;
  border-top: 1px solid var(--line);
}

.cheatsheet-header h2 {
  max-width: 780px;
  margin: 0;
  font-size: clamp(38px, 5vw, 68px);
  letter-spacing: -.055em;
  line-height: 1.02;
}

.cheatsheet-header > p {
  margin: 0;
  color: var(--muted);
  font-size: 17px;
}

.api-groups {
  display: grid;
  gap: 12px;
}

.api-group {
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.api-group summary {
  display: grid;
  grid-template-columns: 42px 1fr auto;
  gap: 12px;
  align-items: center;
  min-height: 64px;
  padding: 0 20px;
  cursor: pointer;
  list-style: none;
}

.api-group summary::-webkit-details-marker { display: none; }
.api-group summary span { color: var(--accent); font-family: "Cascadia Code", "SFMono-Regular", ui-monospace, monospace; font-size: 12px; }
.api-group summary strong { font-size: 16px; letter-spacing: -.01em; }
.api-group summary small { color: var(--muted); font-size: 12px; font-weight: 700; }
.api-group summary small::after { content: "+"; display: inline-block; width: 22px; margin-left: 12px; color: var(--accent); font-family: "Cascadia Code", "SFMono-Regular", ui-monospace, monospace; font-size: 19px; text-align: center; }
.api-group[open] summary { background: var(--surface-muted); border-bottom: 1px solid var(--line); }
.api-group[open] summary small::after { content: "−"; }

.api-table-wrap { overflow-x: auto; }

.api-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  text-align: left;
}

.api-table th {
  padding: 13px 20px;
  color: var(--muted);
  background: color-mix(in srgb, var(--surface-muted) 56%, transparent);
  font-size: 11px;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.api-table th:first-child { width: 34%; }
.api-table th:last-child { width: 126px; }
.api-table td { padding: 14px 20px; vertical-align: top; font-size: 13px; }
.api-table tbody tr + tr td { border-top: 1px solid color-mix(in srgb, var(--line) 66%, transparent); }
.api-table tbody tr:hover { background: color-mix(in srgb, var(--accent-soft) 44%, transparent); }
.api-table code { color: var(--ink); font-size: 12px; font-weight: 700; overflow-wrap: anywhere; }
.api-param {
  color: var(--accent);
  background: color-mix(in srgb, var(--accent-soft) 42%, transparent);
  border-bottom: 1px dotted currentColor;
  border-radius: 3px;
  cursor: help;
  transition: color .2s ease, background-color .2s ease, border-color .2s ease;
}
.api-param:hover, .api-param:focus-visible {
  color: var(--accent-strong);
  background: var(--accent-soft);
  border-bottom-style: solid;
}
.api-param:focus-visible { outline-width: 2px; outline-offset: 2px; }
.api-table td:nth-child(2) { color: var(--muted); }
.api-table a { color: var(--accent); font-weight: 800; white-space: nowrap; }

.parameter-tooltip {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 80;
  display: grid;
  width: max-content;
  max-width: min(300px, calc(100vw - 24px));
  padding: 11px 13px 12px;
  color: #eef4fb;
  background: #172330;
  border: 1px solid #32465a;
  border-radius: 8px;
  box-shadow: 0 12px 30px rgb(8 18 30 / 24%);
  pointer-events: none;
}
.parameter-tooltip.has-schema {
  width: min(440px, calc(100vw - 24px));
  max-width: min(440px, calc(100vw - 24px));
  padding: 13px 14px 14px;
}
.parameter-tooltip[hidden] { display: none; }
.parameter-tooltip::after {
  position: absolute;
  left: var(--tooltip-arrow-x, 50%);
  width: 8px;
  height: 8px;
  content: "";
  background: #172330;
  border: solid #32465a;
  transform: translateX(-50%) rotate(45deg);
}
.parameter-tooltip[data-placement="top"]::after { bottom: -5px; border-width: 0 1px 1px 0; }
.parameter-tooltip[data-placement="bottom"]::after { top: -5px; border-width: 1px 0 0 1px; }
.parameter-tooltip-name {
  color: #9db7f6;
  font-family: "Cascadia Code", "SFMono-Regular", ui-monospace, monospace;
  font-size: 11px;
  font-weight: 800;
}
.parameter-tooltip-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.parameter-tooltip-kind {
  max-width: 62%;
  padding: 2px 6px;
  color: #c8d7e8;
  background: #24374a;
  border: 1px solid #3a5168;
  border-radius: 999px;
  font-family: "Cascadia Code", "SFMono-Regular", ui-monospace, monospace;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .01em;
  overflow-wrap: anywhere;
  text-align: right;
}
.parameter-tooltip-copy { margin-top: 3px; font-size: 12px; line-height: 1.45; }
.parameter-tooltip-schema {
  display: grid;
  gap: 8px;
  margin-top: 10px;
  padding-top: 9px;
  border-top: 1px solid #32465a;
}
.parameter-tooltip-schema[hidden], .parameter-tooltip-example[hidden], .parameter-tooltip-footnote[hidden] { display: none; }
.parameter-tooltip-schema-title {
  color: #dce7f3;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.parameter-tooltip-properties { display: grid; gap: 1px; }
.parameter-tooltip-property {
  display: grid;
  grid-template-columns: minmax(112px, 1fr) minmax(0, 1.45fr);
  gap: 10px;
  padding: 5px 0;
  border-top: 1px solid rgb(255 255 255 / 7%);
}
.parameter-tooltip-property:first-child { border-top: 0; }
.parameter-tooltip-property > code {
  color: #b9ccfb;
  font-family: "Cascadia Code", "SFMono-Regular", ui-monospace, monospace;
  font-size: 10px;
  font-weight: 700;
  overflow-wrap: anywhere;
}
.parameter-tooltip-property > div { display: grid; gap: 1px; min-width: 0; }
.parameter-tooltip-property > div > span:last-child { color: #eef4fb; font-size: 10px; line-height: 1.35; }
.parameter-tooltip-property-meta { color: #91a5b9; font-size: 9px; line-height: 1.35; }
.parameter-tooltip-example {
  display: grid;
  gap: 4px;
  padding: 7px 8px;
  background: #101a24;
  border: 1px solid #2b3d50;
  border-radius: 5px;
}
.parameter-tooltip-example > span {
  color: #91a5b9;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .07em;
  text-transform: uppercase;
}
.parameter-tooltip-example code {
  color: #d8e4ff;
  font-family: "Cascadia Code", "SFMono-Regular", ui-monospace, monospace;
  font-size: 10px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}
.parameter-tooltip-footnote { color: #aebfd0; font-size: 9px; line-height: 1.4; }

.cheatsheet-note { margin: 22px 2px 0; color: var(--muted); font-size: 14px; }
.cheatsheet-note a { color: var(--accent); font-weight: 800; }

.next-step {
  width: min(100% - 48px, var(--max));
  margin: 0 auto 100px;
  padding: clamp(48px, 7vw, 96px);
  color: white;
  background: #17202a;
  border-radius: var(--radius);
}

.next-step .section-kicker { color: #9db7f6; }
.next-step .button.secondary { color: white; background: transparent; border-color: #46566a; }

footer {
  display: flex;
  justify-content: space-between;
  gap: 48px;
  width: min(100% - 48px, var(--max));
  margin: 0 auto;
  padding: 36px 0 48px;
  color: var(--muted);
  border-top: 1px solid var(--line);
  font-size: 12px;
}

footer > div { display: flex; flex-wrap: wrap; gap: 10px 16px; }
footer strong { color: var(--ink); }
.research-links { justify-content: flex-end; }
.research-links a { color: var(--accent); font-weight: 800; }

@media (max-width: 1280px) {
  .core-api-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .core-api-group:last-child { grid-column: 1 / -1; }
}

@media (max-width: 820px) {
  .core-api-grid { grid-template-columns: 1fr; }
  .core-api-group:last-child { grid-column: auto; }
}

:focus-visible { outline: 3px solid color-mix(in srgb, var(--accent) 62%, white); outline-offset: 3px; }

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

@media (max-width: 1120px) {
  .hero { grid-template-columns: 1fr; min-height: auto; }
  .hero-result { max-width: 920px; transform: none; }
  .beginner-path { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .beginner-path li:nth-child(3) { border-right: 0; }
  .beginner-path li:nth-child(n + 4) { border-top: 1px solid var(--line); }
  .docs-layout { grid-template-columns: 190px minmax(0, 1fr); gap: 40px; }
  .lesson-grid, .lesson-grid-wide-result, .helper-grid { grid-template-columns: 1fr; }
  .result-card > a:first-child { min-height: 260px; }
}

@media (max-width: 760px) {
  .site-header { width: min(100% - 28px, var(--max)); }
  .site-header nav { gap: 14px; }
  .site-header nav a:nth-of-type(1), .site-header nav a:nth-of-type(2) { display: none; }
  .brand { font-size: 14px; }
  .hero, .orientation, .docs-layout, .core-cheatsheet, .cheatsheet, .next-step, footer { width: min(100% - 28px, var(--max)); }
  .core-cheatsheet-header { grid-template-columns: 1fr; gap: 18px; }
  .core-api-footer { align-items: stretch; flex-direction: column; }
  .hero { gap: 48px; padding: 64px 0 80px; }
  h1 { font-size: clamp(46px, 14vw, 66px); }
  .hero-summary { font-size: 18px; }
  .orientation { padding: 72px 0; }
  .beginner-path { grid-template-columns: 1fr; margin-top: 38px; }
  .beginner-path li, .beginner-path li:nth-child(n + 4) { border-top: 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .beginner-path li:last-child { border-bottom: 0; }
  .beginner-path a { min-height: auto; padding-inline: 0; }
  .docs-layout { display: block; padding-top: 72px; }
  .contents { position: static; margin-bottom: 72px; }
  .contents ol { grid-template-columns: 1fr 1fr; }
  .lesson { padding-bottom: 84px; }
  .lesson + .lesson { padding-top: 84px; }
  .helper-guide { padding: 84px 0; }
  .notes-grid { grid-template-columns: 1fr; }
  .cheatsheet { padding-bottom: 96px; }
  .lesson:last-child { padding-bottom: 56px; }
  .cheatsheet-header { grid-template-columns: 1fr; gap: 20px; padding-top: 64px; }
  .api-table { min-width: 720px; }
  .result-card > a:first-child { min-height: 220px; }
  .next-step { margin-bottom: 64px; padding: 42px 28px; }
  footer { flex-direction: column; gap: 20px; }
  .research-links { justify-content: flex-start; }
}

@media (max-width: 480px) {
  .site-header nav a { display: none; }
  .hero-actions .button, .next-actions .button { width: 100%; }
  .install-row code { font-size: 11px; }
  .contents ol { grid-template-columns: 1fr; }
  .api-group summary { grid-template-columns: 34px 1fr auto; padding: 0 14px; }
  .api-group summary small { font-size: 0; }
  .api-group summary small::after { margin-left: 0; font-size: 18px; }
  .api-table { min-width: 0; table-layout: auto; }
  .api-table thead { display: none; }
  .api-table, .api-table tbody, .api-table tr, .api-table td { display: block; width: 100%; }
  .api-table tbody tr { padding: 15px 18px; }
  .api-table tbody tr + tr { border-top: 1px solid color-mix(in srgb, var(--line) 66%, transparent); }
  .api-table tbody tr + tr td { border-top: 0; }
  .api-table td { padding: 3px 0; }
  .api-table td::before { display: block; margin-bottom: 2px; color: var(--muted); font-size: 9px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
  .api-table td:nth-child(1)::before { content: "API"; }
  .api-table td:nth-child(2)::before { content: "Description"; }
  .api-table td:nth-child(3)::before { content: "Example"; }
  .api-table td:nth-child(2), .api-table td:nth-child(3) { margin-top: 8px; }
  .lesson h2, .helper-guide h2 { font-size: 34px; }
  .code-panel { margin-inline: -7px; }
  pre { padding: 20px 18px; font-size: 11.5px; }
}
