/* theFinder site. Type scale, colour and spacing follow Apple's product and developer pages. */

:root {
  color-scheme: light dark;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Helvetica Neue", "Segoe UI", Helvetica, Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;

  --bg: #ffffff;
  --bg-alt: #f5f5f7;
  --tile: #ffffff;
  --tile-dark: #000000;
  --text: #1d1d1f;
  --text-2: #6e6e73;
  --text-3: #86868b;
  --line: #d2d2d7;
  --line-soft: #e8e8ed;
  --link: #0066cc;
  --blue: #0071e3;
  --blue-hover: #0077ed;
  --green: #03a10e;
  --orange: #b64400;
  --gold: #c8912a;
  --nav: rgb(255 255 255 / 0.72);
  --code-bg: #f5f5f7;
  --shadow: 0 2px 12px rgb(0 0 0 / 0.08);

  --tk-kw: #ad3da4;
  --tk-str: #c41a16;
  --tk-com: #707f8c;
  --tk-num: #1c00cf;
  --tk-fn: #326d74;
  --tk-type: #703daa;
  --tk-prop: #3f6e74;
  --tk-tag: #0b4f79;
  --tk-attr: #836c28;
  --tk-op: #1d1d1f;
  --tk-const: #1c00cf;
  --tk-var: #3f6e74;
  --tk-meta: #643820;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #000000;
    --bg-alt: #101010;
    --tile: #1d1d1f;
    --tile-dark: #1d1d1f;
    --text: #f5f5f7;
    --text-2: #a1a1a6;
    --text-3: #86868b;
    --line: #424245;
    --line-soft: #2c2c2e;
    --link: #2997ff;
    --blue: #0071e3;
    --blue-hover: #0077ed;
    --green: #30d158;
    --orange: #ff9f0a;
    --gold: #ecbf5f;
    --nav: rgb(22 22 23 / 0.72);
    --code-bg: #161617;
    --shadow: 0 2px 12px rgb(0 0 0 / 0.5);

    --tk-kw: #fc5fa3;
    --tk-str: #fc6a5d;
    --tk-com: #7f8c98;
    --tk-num: #d0bf69;
    --tk-fn: #67b7a4;
    --tk-type: #d0a8ff;
    --tk-prop: #67b7a4;
    --tk-tag: #5dd8ff;
    --tk-attr: #d0bf69;
    --tk-op: #f5f5f7;
    --tk-const: #d0bf69;
    --tk-var: #67b7a4;
    --tk-meta: #fd8f3f;
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-padding-top: 64px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.47059;
  letter-spacing: -0.022em;
  -webkit-font-smoothing: antialiased;
  font-synthesis: none;
}

a {
  color: var(--link);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

code,
kbd,
pre {
  font-family: var(--mono);
  letter-spacing: 0;
}
:not(pre) > code {
  font-size: 0.88em;
  padding: 0.1em 0.3em;
  border-radius: 5px;
  background: var(--code-bg);
}

:focus-visible {
  outline: 3px solid rgb(0 125 250 / 0.6);
  outline-offset: 2px;
}

.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.wrap {
  width: min(980px, 100% - 44px);
  margin-inline: auto;
}

/* Local navigation */

.localnav {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--nav);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgb(0 0 0 / 0.08);
}
@media (prefers-color-scheme: dark) {
  .localnav {
    border-bottom-color: rgb(255 255 255 / 0.1);
  }
}
.localnav-in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: min(980px, 100% - 44px);
  height: 52px;
  margin-inline: auto;
}
.localnav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 12px;
  letter-spacing: -0.01em;
}
.localnav-links a:not(.pill) {
  color: var(--text);
  opacity: 0.8;
}
.localnav-links a:not(.pill):hover,
.localnav-links a[aria-current="page"] {
  opacity: 1;
  text-decoration: none;
}
.localnav-links a[aria-current="page"] {
  color: var(--text-3);
}
/* EN / TR switch: a two-segment control, the current language filled in. */
.langs {
  display: flex;
  padding: 2px;
  border-radius: 980px;
  background: var(--line-soft);
}
.localnav-links .langs a {
  min-width: 26px;
  padding: 2px 7px;
  border-radius: 980px;
  color: var(--text-2);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-align: center;
  opacity: 1;
}
.localnav-links .langs a:hover {
  color: var(--text);
}
.localnav-links .langs a[aria-current="true"] {
  background: var(--bg);
  color: var(--text);
  box-shadow: 0 1px 2px rgb(0 0 0 / 0.14);
}

.wordmark {
  color: var(--text);
  font-size: 21px;
  font-weight: 600;
  letter-spacing: -0.02em;
  white-space: nowrap;
}
.wordmark:hover {
  text-decoration: none;
}
.wordmark span {
  color: var(--gold);
}
.wordmark-sm {
  font-size: 24px;
}

/* Buttons and links */

.pill {
  display: inline-block;
  padding: 11px 21px;
  border-radius: 980px;
  background: var(--blue);
  color: #fff;
  font-size: 17px;
  line-height: 1.17648;
  letter-spacing: -0.022em;
  white-space: nowrap;
}
.pill:hover {
  background: var(--blue-hover);
  text-decoration: none;
}
.pill-sm {
  padding: 4px 11px;
  font-size: 12px;
  line-height: 1.33337;
  letter-spacing: -0.01em;
}
.more::after {
  content: "\00a0›";
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 16px 32px;
  margin-top: 32px;
}

/* Hero */

.hero {
  padding: 88px 22px 48px;
  text-align: center;
}
.eyebrow {
  margin: 0 0 8px;
  color: var(--orange);
  font-size: 17px;
  font-weight: 600;
}
.hero-title {
  margin: 0;
  font-size: clamp(48px, 9vw, 96px);
  line-height: 1.04;
  font-weight: 600;
  letter-spacing: -0.015em;
}
.hero-lede {
  max-width: 680px;
  margin: 20px auto 0;
  color: var(--text-2);
  font-size: clamp(21px, 2.4vw, 28px);
  line-height: 1.25;
  font-weight: 400;
  letter-spacing: 0.007em;
}

/* Live demo stage */

.stage {
  width: min(1200px, 100% - 44px);
  margin: 24px auto 0;
  padding-bottom: 96px;
}
.window {
  border-radius: 14px;
  overflow: hidden;
  background: var(--bg-alt);
  box-shadow:
    0 0 0 1px rgb(0 0 0 / 0.08),
    0 30px 80px -20px rgb(0 0 0 / 0.35);
}
@media (prefers-color-scheme: dark) {
  .window {
    box-shadow:
      0 0 0 1px rgb(255 255 255 / 0.12),
      0 30px 80px -20px rgb(0 0 0 / 0.9);
  }
}
.window-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  padding: 0 14px;
  border-bottom: 1px solid var(--line-soft);
  color: var(--text-3);
  font-size: 12px;
}
.window-bar i {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #ff5f57;
}
.window-bar i:nth-child(2) {
  background: #febc2e;
}
.window-bar i:nth-child(3) {
  background: #28c840;
}
.window-bar span {
  flex: 1;
  text-align: center;
  margin-right: 52px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.window-frame {
  display: block;
  width: 100%;
  height: min(680px, 78vh);
  border: 0;
  background: var(--bg-alt);
}
.stage-note {
  max-width: 640px;
  margin: 20px auto 0;
  color: var(--text-3);
  font-size: 14px;
  line-height: 1.43;
  text-align: center;
}

/* Sections */

.section {
  padding: 112px 0;
}
.section-alt {
  background: var(--bg-alt);
}
.section-ink {
  background: #000;
  color: #f5f5f7;
  --text-2: #a1a1a6;
  --code-bg: #1d1d1f;
  --line: #424245;
}
.section-title {
  margin: 0;
  font-size: clamp(40px, 5.5vw, 56px);
  line-height: 1.07;
  font-weight: 600;
  letter-spacing: -0.005em;
}
.section-lede {
  max-width: 640px;
  margin: 20px 0 0;
  color: var(--text-2);
  font-size: 21px;
  line-height: 1.38;
  letter-spacing: 0.011em;
}
.center {
  text-align: center;
  margin-inline: auto;
}
.narrow {
  max-width: 720px;
}

.statement {
  margin: 0;
  color: var(--text-3);
  font-size: clamp(24px, 3.2vw, 32px);
  line-height: 1.25;
  font-weight: 600;
  letter-spacing: 0.004em;
}
.statement b {
  color: var(--text);
  font-weight: 600;
}

/* Highlights gallery */

.gallery {
  margin-top: 48px;
}
.gallery-track {
  display: flex;
  gap: 20px;
  margin: 0;
  padding: 0 max(22px, (100% - 980px) / 2) 8px;
  list-style: none;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: max(22px, (100% - 980px) / 2);
  scrollbar-width: none;
}
.gallery-track::-webkit-scrollbar {
  display: none;
}
.tile {
  flex: none;
  display: flex;
  flex-direction: column;
  width: min(400px, 82vw);
  min-height: 520px;
  padding: 36px 32px 32px;
  border-radius: 28px;
  background: var(--tile);
  scroll-snap-align: start;
}
.tile-dark {
  background: var(--tile-dark);
  color: #f5f5f7;
  --text-2: #a1a1a6;
}
.tile-kicker {
  margin: 0 0 8px;
  color: var(--text-2);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.016em;
}
.tile-title {
  margin: 0;
  font-size: 28px;
  line-height: 1.14;
  font-weight: 600;
  letter-spacing: 0.007em;
}
.tile-title code {
  font-size: 0.8em;
  background: none;
  padding: 0;
}
.tile-foot {
  margin: 16px 0 0;
  color: var(--text-2);
  font-size: 14px;
  line-height: 1.43;
}
.viz {
  margin-top: auto;
  padding-top: 32px;
}

.viz-number strong {
  display: block;
  font-size: min(120px, 24vw);
  line-height: 1;
  font-weight: 700;
  letter-spacing: -0.04em;
  background: linear-gradient(180deg, #f5f5f7, #86868b);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.viz-number-green strong {
  background: none;
  color: var(--green);
}
.viz-number span {
  display: block;
  margin-top: 12px;
  color: var(--text-2);
  font-size: 17px;
}

.viz-versions {
  margin: 0;
  padding: 32px 0 0;
  list-style: none;
  font-size: 15px;
}
.viz-versions li {
  position: relative;
  display: grid;
  grid-template-columns: 20px 1fr;
  padding: 0 0 18px;
  color: var(--text-2);
}
.viz-versions li:not(:last-child)::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 14px;
  bottom: 0;
  width: 2px;
  background: var(--line-soft);
}
.viz-versions b {
  color: var(--text);
  font-weight: 600;
}
.viz-versions em {
  grid-column: 2;
  font-style: normal;
  font-size: 13px;
  color: var(--text-3);
}
.dot {
  width: 10px;
  height: 10px;
  margin-top: 6px;
  border-radius: 50%;
  border: 2px solid var(--text-3);
  background: var(--tile);
}
.dot.is-now {
  border-color: var(--blue);
  background: var(--blue);
}

.toast {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px 12px 16px;
  border-radius: 12px;
  background: #1d1d1f;
  color: #f5f5f7;
  font-size: 14px;
  box-shadow: 0 12px 30px -10px rgb(0 0 0 / 0.4);
}
@media (prefers-color-scheme: dark) {
  .toast {
    background: #3a3a3c;
  }
}
.toast button {
  border: 0;
  background: none;
  color: #64b5ff;
  font: inherit;
  font-weight: 600;
}
.viz-toast p {
  margin: 20px 0 0;
  color: var(--text-2);
  font-size: 14px;
  line-height: 1.43;
}

.viz-code {
  margin: 0;
  padding: 20px;
  border-radius: 14px;
  background: #161617;
  color: #f5f5f7;
  font-size: 13px;
  line-height: 1.6;
  overflow-x: auto;
  --tk-fn: #67b7a4;
  --tk-str: #fc6a5d;
}
.viz-code + .tile-foot {
  margin-top: 16px;
}

.viz-keys {
  display: grid;
  gap: 12px;
  font-size: 15px;
  color: var(--text-2);
}
.viz-keys span {
  display: flex;
  align-items: center;
  gap: 6px;
}
kbd {
  display: inline-block;
  min-width: 30px;
  padding: 3px 8px;
  border-radius: 7px;
  border: 1px solid var(--line);
  border-bottom-width: 2px;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 13px;
  font-weight: 500;
  text-align: center;
}
.viz-keys kbd:last-of-type {
  margin-right: 8px;
}

.viz-tree {
  display: grid;
  gap: 8px;
  font-family: var(--mono);
  font-size: 13px;
  color: #a1a1a6;
}
.viz-tree .i1 {
  padding-left: 18px;
}
.viz-tree .is-hl {
  color: var(--gold);
}
.viz-tree em {
  font-family: var(--font);
  font-style: normal;
  color: #86868b;
}

.gallery-nav {
  display: flex;
  justify-content: flex-end;
  gap: 16px;
  width: min(980px, 100% - 44px);
  margin: 24px auto 0;
}
.round {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: rgb(210 210 215 / 0.64);
  color: rgb(0 0 0 / 0.56);
  cursor: pointer;
}
.round:hover {
  background: rgb(223 223 227 / 0.7);
}
.round:disabled {
  opacity: 0.42;
  cursor: default;
}
.round svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
@media (prefers-color-scheme: dark) {
  .round {
    background: rgb(66 66 69 / 0.72);
    color: rgb(255 255 255 / 0.8);
  }
}

/* Film */

.film {
  position: relative;
  margin-top: 48px;
  border-radius: 20px;
  overflow: hidden;
  background: #000;
  aspect-ratio: 16 / 9;
}
.film video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.film-play {
  position: absolute;
  left: 50%;
  bottom: 32px;
  translate: -50% 0;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px 12px 16px;
  border: 0;
  border-radius: 980px;
  background: rgb(255 255 255 / 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  color: #1d1d1f;
  font: inherit;
  font-weight: 500;
  white-space: nowrap;
  cursor: pointer;
}
.film-play svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}
.film.is-playing .film-play {
  display: none;
}

/* Backends */

.split {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: 48px;
  align-items: start;
}
.split .section-lede {
  font-size: 19px;
}
.code-tabs {
  border-radius: 18px;
  background: var(--tile);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.code-tabs-list {
  display: flex;
  gap: 4px;
  padding: 8px;
  overflow-x: auto;
  border-bottom: 1px solid var(--line-soft);
  scrollbar-width: none;
}
.code-tabs-list button {
  flex: none;
  padding: 6px 12px;
  border: 0;
  border-radius: 8px;
  background: none;
  color: var(--text-2);
  font: inherit;
  font-size: 14px;
  cursor: pointer;
}
.code-tabs-list button:hover {
  color: var(--text);
}
.code-tabs-list button[aria-selected="true"] {
  background: var(--bg-alt);
  color: var(--text);
  font-weight: 600;
}
.code-panel {
  padding: 4px 0 8px;
}
.code-file {
  margin: 12px 20px 0;
  color: var(--text-3);
  font-family: var(--mono);
  font-size: 12px;
}
.code-panel pre {
  margin: 0;
  padding: 12px 20px 16px;
  overflow-x: auto;
  font-size: 13px;
  line-height: 1.6;
}

/* Storage */

.volumes {
  display: grid;
  grid-template-columns: 1fr 132px 1.1fr 132px 1fr;
  align-items: center;
  margin-top: 56px;
}
.vol {
  display: grid;
  gap: 4px;
  padding: 24px;
  border-radius: 18px;
  border: 1px solid var(--line);
  text-align: center;
}
.vol b {
  font-size: 21px;
  font-weight: 600;
}
.vol span {
  color: var(--text-2);
  font-size: 14px;
}
.vol .vol-kind {
  color: var(--text-3);
  font-family: var(--mono);
  font-size: 12px;
}
.vol-core {
  border: 0;
  background: var(--text);
  color: var(--bg);
}
.vol-core span,
.vol-core .vol-kind {
  color: var(--text-3);
}
.vol-link {
  position: relative;
  height: 2px;
  background: var(--line);
}
.vol-link span {
  position: absolute;
  left: 50%;
  bottom: 8px;
  translate: -50% 0;
  color: var(--text-3);
  font-size: 11px;
  white-space: nowrap;
}
.facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin: 56px 0 0;
  padding: 0;
  list-style: none;
  color: var(--text-2);
  font-size: 17px;
}
.facts b {
  display: block;
  margin-bottom: 4px;
  color: var(--text);
  font-weight: 600;
}

/* Editors */

.trio {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 48px;
}
.card {
  padding: 28px 28px 32px;
  border-radius: 18px;
  background: var(--tile);
}
.card h3 {
  margin: 0 0 8px;
  font-size: 21px;
  line-height: 1.19;
  font-weight: 600;
  letter-spacing: 0.011em;
}
.card p {
  margin: 0;
  color: var(--text-2);
  font-size: 15px;
  line-height: 1.47;
  letter-spacing: -0.016em;
}

/* Security */

.sec-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px 32px;
  margin: 56px 0 0;
}
.sec-grid div {
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.sec-grid dt {
  font-size: 19px;
  font-weight: 600;
}
.sec-grid dd {
  margin: 6px 0 0;
  color: var(--text-2);
  font-size: 15px;
  line-height: 1.47;
}

/* Comparison */

.compare {
  margin-top: 64px;
}
.compare-head {
  position: sticky;
  top: 52px;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1.2fr 1.2fr;
  gap: 24px;
  padding: 20px 0;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}
.compare-model {
  display: grid;
  gap: 2px;
}
.compare-model b {
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.compare-model > span {
  color: var(--text-3);
  font-size: 12px;
}
.compare-group {
  margin-top: 48px;
}
.compare-cat {
  margin: 0 0 4px;
  font-size: 24px;
  font-weight: 600;
  letter-spacing: 0.009em;
}
.compare-row {
  display: grid;
  grid-template-columns: 1fr 1.2fr 1.2fr;
  gap: 24px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line-soft);
  font-size: 15px;
  line-height: 1.47;
}
.compare-row [role="rowheader"] {
  color: var(--text-2);
}
.compare-row .yes::before,
.compare-row .no::before {
  display: inline-block;
  width: 18px;
  margin-right: 4px;
  font-weight: 600;
}
.compare-row .yes::before {
  content: "✓";
  color: var(--green);
}
.compare-row .no::before {
  content: "–";
  color: var(--text-3);
}
.compare-row .no {
  color: var(--text-2);
}

.choose {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 64px;
}
.choose > div {
  padding: 32px;
  border-radius: 18px;
  background: var(--bg-alt);
}
.choose h3 {
  margin: 0 0 12px;
  font-size: 21px;
  font-weight: 600;
}
.choose ul {
  margin: 0;
  padding-left: 1.1em;
  color: var(--text-2);
  font-size: 15px;
  line-height: 1.6;
}
.footnote {
  margin: 24px 0 0;
  color: var(--text-3);
  font-size: 12px;
  line-height: 1.5;
}

/* Packages */

.install {
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 640px;
  margin-top: 32px;
  padding: 10px 10px 10px 20px;
  border-radius: 14px;
  background: var(--tile);
  box-shadow: var(--shadow);
}
.install code {
  flex: 1;
  min-width: 0;
  overflow-x: auto;
  white-space: nowrap;
  font-size: 14px;
  background: none !important;
  padding: 0 !important;
}
.copy {
  flex: none;
  padding: 6px 14px;
  border: 0;
  border-radius: 980px;
  background: var(--bg-alt);
  color: var(--text);
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}
.copy:hover {
  background: var(--line-soft);
}
.packages {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin: 40px 0 0;
}
.packages div {
  display: flex;
  flex-direction: column;
  padding: 28px;
  border-radius: 18px;
  background: var(--tile);
}
.packages dt code {
  padding: 0;
  background: none;
  font-size: 17px;
  font-weight: 600;
}
.packages dd {
  flex: 1;
  margin: 8px 0 16px;
  color: var(--text-2);
  font-size: 15px;
}

/* Closing and footer */

.closing {
  text-align: center;
}
.closing-title {
  margin: 0;
  font-size: clamp(48px, 7vw, 80px);
  line-height: 1.05;
  font-weight: 600;
  letter-spacing: -0.015em;
}

.footer {
  padding: 20px 0 32px;
  background: var(--bg-alt);
  color: var(--text-3);
  font-size: 12px;
  line-height: 1.33;
}
.footer-in {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 24px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
.footer p {
  margin: 0;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 20px;
}
.footer a {
  color: var(--text-2);
}

/* Docs */

.docs {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  width: min(1200px, 100%);
  margin-inline: auto;
}
.docs-side {
  position: sticky;
  top: 53px;
  align-self: start;
  max-height: calc(100vh - 53px);
  overflow-y: auto;
  padding: 32px 20px 48px 22px;
  border-right: 1px solid var(--line-soft);
  font-size: 14px;
}
.docs-side h2 {
  margin: 24px 0 8px;
  color: var(--text-3);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: uppercase;
}
.docs-side h2:first-child {
  margin-top: 0;
}
.docs-side ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
.docs-side li a {
  display: block;
  padding: 5px 10px;
  margin-left: -10px;
  border-radius: 8px;
  color: var(--text);
  line-height: 1.3;
}
.docs-side li a:hover {
  background: var(--bg-alt);
  text-decoration: none;
}
.docs-side li a[aria-current="page"] {
  background: var(--bg-alt);
  font-weight: 600;
}
.docs-side li > a > code {
  padding: 0;
  background: none;
  font-size: 13px;
}
.docs-side .toc {
  margin: 4px 0 8px 2px;
  padding-left: 10px;
  border-left: 1px solid var(--line-soft);
}
.docs-side .toc a {
  color: var(--text-2);
  font-size: 13px;
  padding-block: 3px;
}
.docs-side .toc a.is-active {
  color: var(--text);
}
.docs-menu {
  display: none;
}

.doc {
  min-width: 0;
  max-width: 820px;
  padding: 48px 48px 96px;
}
.doc-kicker {
  margin: 0 0 4px;
  color: var(--text-2);
  font-size: 14px;
  font-weight: 600;
}
.doc h1 {
  margin: 0 0 24px;
  font-size: 40px;
  line-height: 1.1;
  font-weight: 600;
  letter-spacing: 0;
}
.doc h1 code {
  padding: 0;
  background: none;
  font-size: 0.82em;
}
.doc h2 {
  margin: 56px 0 16px;
  padding-top: 24px;
  border-top: 1px solid var(--line-soft);
  font-size: 28px;
  line-height: 1.14;
  font-weight: 600;
  letter-spacing: 0.007em;
}
.doc h3 {
  margin: 36px 0 12px;
  font-size: 21px;
  line-height: 1.19;
  font-weight: 600;
  letter-spacing: 0.011em;
}
.doc h4 {
  margin: 28px 0 8px;
  font-size: 17px;
  font-weight: 600;
}
.doc h2 code,
.doc h3 code {
  font-size: 0.86em;
}
.doc .anchor {
  margin-left: 8px;
  color: var(--text-3);
  font-weight: 400;
  opacity: 0;
}
.doc :is(h2, h3, h4):hover .anchor,
.doc .anchor:focus-visible {
  opacity: 1;
  text-decoration: none;
}
.doc p,
.doc li {
  color: var(--text);
}
.doc p {
  margin: 0 0 16px;
}
.doc ul,
.doc ol {
  margin: 0 0 16px;
  padding-left: 1.4em;
}
.doc li {
  margin: 4px 0;
}
.doc li > ul,
.doc li > ol {
  margin: 4px 0 0;
}
.doc hr {
  display: none;
}
.doc blockquote {
  margin: 0 0 16px;
  padding: 14px 18px;
  border-radius: 12px;
  background: var(--bg-alt);
  color: var(--text-2);
  font-size: 15px;
}
.doc blockquote p:last-child {
  margin: 0;
}
.doc pre {
  position: relative;
  margin: 0 0 20px;
  padding: 16px 20px;
  border-radius: 12px;
  background: var(--code-bg);
  overflow-x: auto;
  font-size: 13px;
  line-height: 1.6;
}
.doc pre .copy {
  position: absolute;
  top: 8px;
  right: 8px;
  opacity: 0;
  background: var(--bg);
  font-family: var(--font);
}
.doc pre:hover .copy,
.doc pre .copy:focus-visible {
  opacity: 1;
}
.table-wrap {
  margin: 0 0 20px;
  overflow-x: auto;
}
.doc table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  line-height: 1.45;
}
.doc th {
  padding: 8px 12px 8px 0;
  border-bottom: 1px solid var(--line);
  color: var(--text-2);
  font-weight: 600;
  text-align: left;
  white-space: nowrap;
}
.doc td {
  padding: 10px 12px 10px 0;
  border-bottom: 1px solid var(--line-soft);
  vertical-align: top;
}
.doc td:first-child code {
  white-space: nowrap;
}
.doc-pager {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 64px;
}
.doc-pager a {
  display: grid;
  gap: 2px;
  padding: 16px 20px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--link);
  font-size: 17px;
}
.doc-pager a:hover {
  border-color: var(--link);
  text-decoration: none;
}
.doc-pager span {
  color: var(--text-3);
  font-size: 12px;
}
.doc-pager .next {
  grid-column: 2;
  text-align: right;
}
.doc-edit {
  margin-top: 32px;
  color: var(--text-3);
  font-size: 12px;
}

.tk-kw {
  color: var(--tk-kw);
}
.tk-str {
  color: var(--tk-str);
}
.tk-com {
  color: var(--tk-com);
  font-style: italic;
}
.tk-num {
  color: var(--tk-num);
}
.tk-fn {
  color: var(--tk-fn);
}
.tk-type {
  color: var(--tk-type);
}
.tk-prop {
  color: var(--tk-prop);
}
.tk-tag {
  color: var(--tk-tag);
}
.tk-attr {
  color: var(--tk-attr);
}
.tk-op {
  color: var(--tk-op);
}
.tk-const {
  color: var(--tk-const);
}
.tk-var {
  color: var(--tk-var);
}
.tk-meta {
  color: var(--tk-meta);
}
.tk-head,
.tk-bold {
  font-weight: 600;
}

/* Small screens */

@media (max-width: 1068px) {
  .split {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 834px) {
  .localnav-links > a:not(.pill) {
    display: none;
  }
  .section {
    padding: 80px 0;
  }
  .trio,
  .sec-grid,
  .facts {
    grid-template-columns: 1fr 1fr;
  }
  .volumes {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .vol-link {
    width: 2px;
    height: 48px;
    margin-inline: auto;
  }
  .vol-link span {
    left: 14px;
    bottom: auto;
    top: 50%;
    translate: 0 -50%;
  }
  .compare-head,
  .compare-row {
    grid-template-columns: 1fr 1fr;
    gap: 6px 16px;
  }
  .compare-head > :first-child {
    display: none;
  }
  .compare-row [role="rowheader"] {
    grid-column: 1 / -1;
    font-weight: 600;
    color: var(--text);
  }
  .choose,
  .packages {
    grid-template-columns: 1fr;
  }

  .docs {
    grid-template-columns: 1fr;
  }
  .docs-side {
    position: static;
    max-height: none;
    padding: 0 22px;
    border-right: 0;
    border-bottom: 1px solid var(--line-soft);
  }
  .docs-side > nav {
    display: none;
    padding-bottom: 24px;
  }
  .docs-side.is-open > nav {
    display: block;
  }
  .docs-menu {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 14px 0;
    border: 0;
    background: none;
    color: var(--text);
    font: inherit;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
  }
  .docs-menu::after {
    content: "⌄";
    color: var(--text-3);
  }
  .doc {
    padding: 32px 22px 80px;
  }
}

@media (max-width: 600px) {
  .trio,
  .sec-grid,
  .facts {
    grid-template-columns: 1fr;
  }
  .hero {
    padding-top: 56px;
  }
  .window-frame {
    height: 72vh;
  }
  .window-bar span {
    display: none;
  }
  .tile {
    min-height: 480px;
  }
  .film-play {
    bottom: 12px;
    padding: 8px 16px 8px 12px;
    font-size: 15px;
  }
  .film-play svg {
    width: 16px;
    height: 16px;
  }
  .doc h1 {
    font-size: 32px;
  }
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
  .gallery-track {
    scroll-behavior: smooth;
  }
}
