:root {
  color-scheme: light dark;
  --max: 920px;
  --pad: 20px;
  --radius: 12px;
  --radius-sm: 10px;
  --bg: #ffffff;
  --text: #111111;
  --text-strong: #000000;
  --muted: #555555;
  --border: rgba(127, 127, 127, 0.25);
  --surface: rgba(127, 127, 127, 0.06);
  --surface-2: rgba(127, 127, 127, 0.08);
  --accent: LinkText;
  --accent-2: LinkText;
  --accent-soft: rgba(127, 127, 127, 0.06);
  --warning: #7a4a00;
  --warning-bg: rgba(127, 127, 127, 0.06);
  --real-bg: rgba(127, 127, 127, 0.06);
  --real-text: #145a3a;
  --code-bg: rgba(127, 127, 127, 0.06);
  --code-border: rgba(127, 127, 127, 0.25);
  --code-text: var(--text);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b0b0b;
    --text: #eeeeee;
    --text-strong: #ffffff;
    --muted: #bdbdbd;
    --border: rgba(190, 190, 190, 0.28);
    --surface: rgba(255, 255, 255, 0.07);
    --surface-2: rgba(255, 255, 255, 0.09);
    --warning: #f0c36a;
    --real-text: #8fd9b4;
  }
}

* {
  box-sizing: border-box;
}

html {
  overflow-y: scroll;
  scroll-behavior: smooth;
}

@supports (scrollbar-gutter: stable) {
  html {
    overflow-y: auto;
    scrollbar-gutter: stable;
  }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, system-ui, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.55;
}

img {
  max-width: 100%;
  height: auto;
}

video,
iframe,
embed {
  max-width: 100%;
}

a {
  color: LinkText;
}

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

code,
pre {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 0.95em;
}

h1 {
  margin: 0 0 8px;
  color: var(--text-strong);
  font-size: 28px;
  line-height: 1.2;
}

h2 {
  margin-top: 28px;
  color: var(--text-strong);
  font-size: 18px;
  line-height: 1.3;
}

h3 {
  margin-top: 18px;
  color: var(--text-strong);
  font-size: 16px;
  line-height: 1.35;
}

p {
  margin: 0 0 1em;
}

ul {
  margin: 8px 0 0;
  padding-left: 20px;
}

ol {
  margin: 8px 0 0;
  padding-left: 22px;
}

table {
  width: 100%;
  margin-top: 10px;
  border-collapse: collapse;
}

th,
td {
  padding: 8px 10px;
  border: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
}

th {
  background: var(--surface-2);
}

blockquote {
  margin: 12px 0;
  padding: 10px 12px;
  border-left: 3px solid rgba(127, 127, 127, 0.35);
  border-radius: var(--radius-sm);
  background: var(--surface);
}

blockquote p {
  margin: 0;
}

.skip-link {
  position: absolute;
  top: -48px;
  left: 16px;
  z-index: 1000;
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg);
  color: var(--text-strong);
}

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

.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--pad);
}

.site-header {
  max-width: var(--max);
  margin: 0 auto;
  padding: 28px var(--pad) 10px;
}

.site-header .container {
  max-width: none;
  padding: 0;
}

.site-header h1 {
  line-height: 1.55;
}

.site-header .muted {
  margin: 1em 0;
}

.header-inner {
  display: block;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 8px;
  color: var(--text-strong);
  font-weight: 700;
  text-decoration: none;
}

.brand-mark {
  display: none;
}

.site-nav {
  display: block;
}

.site-nav a,
nav a {
  margin-right: 14px;
  color: LinkText;
  text-decoration: none;
}

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

.page-intro {
  padding-top: 10px;
}

.page-intro + .section {
  margin-top: 12px;
}

.eyebrow {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin: 0 0 8px;
  color: var(--muted);
}

.eyebrow strong {
  color: var(--text-strong);
}

.page-title {
  margin: 0 0 8px;
  font-size: 28px;
  line-height: 1.2;
  letter-spacing: 0;
}

.page-lead,
.section-lead,
.hero-note,
.small-note,
.muted {
  color: var(--muted);
}

.page-lead {
  max-width: 74ch;
  margin: 0;
  font-size: 1rem;
}

.article-cta {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}

.article-cta {
  padding: 16px;
}

.article-cta h2 {
  margin-top: 0;
}

.article-cta p {
  color: var(--muted);
}

.article-shell {
  max-width: 800px;
  margin: 0 auto;
  padding: 22px var(--pad) 0;
}

.article-header h1 {
  margin: 0 0 12px;
  font-size: clamp(32px, 7vw, 52px);
  line-height: 1.05;
  letter-spacing: 0;
}

.article-lead {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: clamp(18px, 2.5vw, 22px);
  line-height: 1.45;
}

.article-hero-image {
  margin: 22px 0 28px;
}

.article-hero-image img {
  display: block;
  width: 100%;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.article-body {
  max-width: 720px;
  margin: 0 auto;
  font-size: 1.05rem;
  line-height: 1.75;
}

.article-body h2 {
  margin-top: 40px;
  font-size: 24px;
}

.article-body p {
  margin-bottom: 1.15em;
}

.article-body li {
  margin: 0.4rem 0;
}

.article-cta {
  margin-top: 34px;
  margin-bottom: 34px;
}

.section {
  padding-top: 0;
  padding-bottom: 0;
}

.card {
  margin: 14px 0;
  padding: 16px;
  border-radius: var(--radius);
}

.card h2:first-child,
.card h3:first-child,
.card p:first-child {
  margin-top: 0;
}

.hero {
  display: block;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: LinkText;
  font: inherit;
  font-weight: 600;
  text-decoration: none;
}

.button.primary,
.button.secondary,
.button.minor {
  background: transparent;
  color: LinkText;
}

.button:hover {
  background: var(--surface);
  color: var(--text-strong);
}

.kicker-row,
.inline-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin-top: 14px;
}

.inline-links a {
  color: LinkText;
  font-weight: 600;
  text-decoration: none;
}

.pill,
.asset-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 600;
}

.asset-tag.real {
  color: var(--real-text);
}

.asset-tag.placeholder,
.asset-tag.neutral {
  color: var(--muted);
}

.grid {
  display: grid;
  gap: 14px;
  min-width: 0;
}

.grid.two,
.grid.three,
.grid.four {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.asset-frame {
  margin: 14px 0;
}

.asset-frame img {
  display: block;
  width: 100%;
  border-radius: var(--radius);
}

.asset-caption {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  align-items: center;
  justify-content: space-between;
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.95rem;
}

.press-hero {
  padding-top: 10px;
  padding-bottom: 20px;
}

.press-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(280px, 1.18fr);
  gap: 22px;
  align-items: center;
  margin-top: 48px;
  min-width: 0;
}

.press-hero-media,
.press-media {
  margin: 0;
  min-width: 0;
}

.press-hero-media img,
.press-featured-asset img,
.press-media img,
.press-media video {
  display: block;
  width: 100%;
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
}

.press-media video {
  aspect-ratio: 16 / 9;
  height: auto;
  max-width: 100%;
  min-width: 0;
}

.press-card {
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
}

.press-note {
  margin-top: 12px;
  color: var(--muted);
  font-size: 0.95rem;
}

#quick-facts,
#descriptions,
#screenshots,
#demo-movie,
#demo-repository,
#asset-links,
#usage {
  margin-top: 52px;
}

.press-copy-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
  min-width: 0;
}

.press-copy-title {
  color: var(--text-strong);
  font-weight: 700;
}

.press-copy-block pre {
  white-space: pre-wrap;
  padding-right: 12px;
}

.press-featured-asset {
  margin-top: 14px;
}

.table-wrap.press-fact-table table {
  margin-top: 12px;
}

.table-wrap.press-fact-table th,
.table-wrap.press-fact-table td {
  padding: 9px 0;
  border: 0;
  border-bottom: 1px solid var(--border);
}

.table-wrap.press-fact-table th {
  width: 116px;
  padding-right: 18px;
  background: transparent;
  color: var(--muted);
  font-weight: 700;
}

.table-wrap.press-fact-table tr:last-child th,
.table-wrap.press-fact-table tr:last-child td {
  border-bottom: 0;
}

.press-screenshot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
  margin-top: 12px;
  min-width: 0;
}

.press-media img {
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.asset-list {
  display: grid;
  gap: 10px;
  margin-top: 10px;
  padding-left: 0;
  list-style: none;
}

.asset-list li {
  display: grid;
  gap: 2px;
}

.asset-list a {
  font-weight: 700;
  text-decoration: none;
}

.asset-list span {
  color: var(--muted);
  font-size: 0.95rem;
}

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.stat {
  padding: 0;
}

.stat strong {
  display: block;
  margin-bottom: 4px;
  color: var(--text-strong);
  font-size: 1rem;
}

.section-title {
  margin: 0 0 8px;
  color: var(--text-strong);
  font-size: 18px !important;
  line-height: 1.3;
  letter-spacing: 0;
}

.mini-title {
  margin: 8px 0;
  color: var(--text-strong);
  font-size: 16px;
  line-height: 1.35;
}

.card-link {
  display: block;
  height: 100%;
  color: inherit;
  text-decoration: none;
}

.card-link .card {
  height: 100%;
}

.card-link:hover .card {
  background: var(--surface);
}

.card-link p:last-child,
.card p:last-child {
  margin-bottom: 0;
}

.breadcrumbs {
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 0.95rem;
}

.breadcrumbs a {
  color: inherit;
  text-decoration: none;
}

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

.feature-list,
.check-list {
  margin: 8px 0 0;
  padding-left: 20px;
}

.feature-list li,
.check-list li {
  margin: 0.35rem 0;
}

.callout {
  padding: 10px 12px;
  border-left: 3px solid rgba(127, 127, 127, 0.35);
  border-radius: var(--radius-sm);
  background: var(--surface);
}

.callout.warning,
.callout.success {
  border-left-color: rgba(127, 127, 127, 0.35);
  background: var(--surface);
}

.code-block {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--code-border);
  border-radius: var(--radius-sm);
  background: var(--code-bg);
  color: var(--code-text);
}

.code-block pre {
  margin: 0;
  padding: 12px 70px 12px 12px;
  overflow: auto;
}

.copy-button {
  position: absolute;
  top: 8px;
  right: 8px;
  padding: 6px 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg);
  color: var(--text);
  font: inherit;
  cursor: pointer;
}

.copy-button:hover {
  background: var(--surface);
}

.faq {
  display: grid;
  gap: 12px;
}

.faq details {
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: transparent;
}

.faq summary {
  color: var(--text-strong);
  font-weight: 700;
  cursor: pointer;
}

.faq details p:last-child {
  margin-bottom: 0;
}

.table-wrap {
  overflow: auto;
}

.table-wrap table {
  width: 100%;
  border-collapse: collapse;
}

.table-wrap th,
.table-wrap td {
  padding: 8px 10px;
  border: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
}

.table-wrap th {
  background: var(--surface-2);
}

.site-footer {
  max-width: var(--max);
  margin: 0 auto;
  margin-top: 48px;
  padding: 10px var(--pad) 28px;
}

.site-footer .container {
  max-width: none;
  padding: 0;
}

.site-footer .footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 18px;
}

.site-footer h2 {
  margin: 0 0 8px;
  font-size: 16px;
}

.site-footer ul {
  margin: 0;
  padding-left: 20px;
}

.site-footer li {
  margin: 0.35rem 0;
}

.site-footer a {
  color: LinkText;
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--text-strong);
}

.pro-crown {
  margin-left: 4px;
  text-decoration: none;
}

.pro-legend {
  margin-top: 8px;
  font-size: 14px;
}

.toc ul {
  margin-top: 10px;
}

.screenshot img {
  display: block;
  border-radius: var(--radius);
}

@media (min-width: 720px) {
  .toc ul {
    columns: 2;
    column-gap: 24px;
  }
}

@media (max-width: 640px) {
  .article-shell {
    padding-top: 16px;
  }

  .press-hero-grid {
    grid-template-columns: 1fr;
  }

  .card {
    padding: 14px 0;
  }

  .press-card {
    padding: 0;
  }

  #quick-facts,
  #descriptions,
  #screenshots,
  #demo-movie,
  #demo-repository,
  #asset-links,
  #usage {
    margin-top: 42px;
  }
}

/* Language switcher */
.language-switcher {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
  margin-top: 12px;
  font-size: 13px;
  line-height: 1.4;
}

.language-switcher span {
  color: var(--muted, rgba(0, 0, 0, .68));
  font-weight: 600;
}

.language-switcher a {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  margin-right: 0;
  padding: 3px 8px;
  border: 1px solid rgba(127, 127, 127, .25);
  border-radius: 999px;
  color: LinkText;
  text-decoration: none;
}

.language-switcher a:hover,
.language-switcher a[aria-current="page"] {
  border-color: currentColor;
  background: var(--surface, rgba(127, 127, 127, .08));
  color: var(--text-strong, CanvasText);
}

.language-switcher a[aria-current="page"] {
  font-weight: 600;
}

.language-switcher--footer {
  margin-top: 16px;
  margin-bottom: 28px;
}

footer > .language-switcher--footer:first-child {
  margin-top: 0;
}

.footer-nav {
  margin: 0 0 8px;
}

/* Header language menu */
.nav-with-language {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 14px;
}

.nav-with-language > a {
  margin-right: 0;
}

.header-language {
  position: relative;
  display: inline-flex;
  align-items: center;
  margin-top: 0;
  margin-left: auto;
}

.language-menu {
  position: relative;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font-size: 14px;
}

.language-menu summary {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.6rem;
  border: 1px solid var(--border, rgba(0, 0, 0, 0.18));
  border-radius: 999px;
  background: var(--bg, Canvas);
  color: var(--text, CanvasText);
  margin: 0;
  font: inherit;
  line-height: 1.2;
  cursor: pointer;
  list-style: none;
  white-space: nowrap;
  user-select: none;
}

.language-menu summary::-webkit-details-marker {
  display: none;
}

.language-menu summary::marker {
  content: "";
}

.language-menu summary:hover {
  background: var(--surface, rgba(0, 0, 0, 0.04));
}

.language-icon {
  font-size: 14px;
  line-height: 1;
}

.language-code {
  font-weight: 600;
  letter-spacing: 0.02em;
}

.language-arrow {
  font-size: 11px;
  opacity: 0.7;
}

.language-list {
  position: absolute;
  top: calc(100% + 0.4rem);
  right: 0;
  z-index: 1000;
  min-width: 180px;
  max-height: min(70vh, 360px);
  overflow: auto;
  margin: 0;
  padding: 0.4rem;
  list-style: none;
  border: 1px solid var(--border, rgba(0, 0, 0, 0.14));
  border-radius: 0.75rem;
  background: var(--bg, #fff);
  color: var(--text, #111);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

.language-list a {
  display: block;
  margin-right: 0;
  padding: 0.5rem 0.65rem;
  border-radius: 0.5rem;
  color: inherit;
  text-decoration: none;
  white-space: nowrap;
}

.language-list a:hover {
  background: var(--surface, rgba(0, 0, 0, 0.06));
}

.language-list a[aria-current="page"] {
  font-weight: 700;
  background: var(--surface, rgba(0, 0, 0, 0.06));
}
