/* OSR-93 Figma Theme, Size and Font collections. */
:root {
  --bg-page: #f3f5f7;
  --bg-raised: #e8ecf0;
  --bg-sunken: #d3dae1;
  --bg-code: #0a0e13;
  --bg-code-bar: #121821;
  --bg-accent-soft: #d3f1ec;
  --bg-inverse: #0a0e13;
  --text-primary: #0a0e13;
  --text-muted: #4a5563;
  --text-accent: #0a6f69;
  --text-on-accent: #f3f5f7;
  --text-on-inverse: #f3f5f7;
  --text-yes: #1e6b33;
  --text-no: #b42318;
  --text-placeholder: #8a5600;
  --accent: #0a6f69;
  --border: #d3dae1;
  --border-strong: #0a0e13;
  --code-text: #e6edf3;
  --code-keyword: #ff9fc3;
  --code-string: #b5e58e;
  --code-func: #7cc7ff;
  --code-comment: #8d9aaa;
  --code-number: #f2c46d;
  --grid-line: rgba(10, 14, 19, 0.08);
  --glow: rgba(10, 111, 105, 0.00);
  --space-2xs: 4px;
  --space-xs: 8px;
  --space-sm: 12px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 40px;
  --space-2xl: 64px;
  --space-section: 96px;
  --space-gutter: 80px;
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 14px;
  --fs-display: 64px;
  --fs-h2: 36px;
  --fs-h3: 22px;
  --fs-lead: 22px;
  --fs-body: 17px;
  --fs-code: 15px;
  --fs-label: 13px;
  --font-display: "Geist", sans-serif;
  --font-body: "Geist", sans-serif;
  --font-mono: "JetBrains Mono", monospace;
}
@media (prefers-color-scheme: dark) {
  :root {
  --bg-page: #07090d;
  --bg-raised: #0d1117;
  --bg-sunken: #141a22;
  --bg-code: #0d1117;
  --bg-code-bar: #141a22;
  --bg-accent-soft: #0b2a28;
  --bg-inverse: #e6edf3;
  --text-primary: #e6edf3;
  --text-muted: #9aa7b6;
  --text-accent: #3de3c4;
  --text-on-accent: #07090d;
  --text-on-inverse: #07090d;
  --text-yes: #7bd88f;
  --text-no: #ff8a7a;
  --text-placeholder: #f2c46d;
  --accent: #3de3c4;
  --border: #232c38;
  --border-strong: #9aa7b6;
  --code-text: #e6edf3;
  --code-keyword: #ff9fc3;
  --code-string: #b5e58e;
  --code-func: #7cc7ff;
  --code-comment: #8d9aaa;
  --code-number: #f2c46d;
  --grid-line: rgba(230, 237, 243, 0.07);
  --glow: rgba(61, 227, 196, 0.25);
  }
}
@media (max-width: 767px) {
  :root {
  --space-2xs: 4px;
  --space-xs: 8px;
  --space-sm: 12px;
  --space-md: 16px;
  --space-lg: 20px;
  --space-xl: 28px;
  --space-2xl: 40px;
  --space-section: 56px;
  --space-gutter: 20px;
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --fs-display: 38px;
  --fs-h2: 28px;
  --fs-h3: 20px;
  --fs-lead: 18px;
  --fs-body: 16px;
  --fs-code: 14px;
  --fs-label: 13px;
  }
}
@font-face {
  font-family: "Geist";
  src: url("fonts/Geist-Regular.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Geist";
  src: url("fonts/Geist-SemiBold.woff2") format("woff2");
  font-style: normal;
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: "Geist";
  src: url("fonts/Geist-Bold.woff2") format("woff2");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("fonts/JetBrainsMono-Regular.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("fonts/JetBrainsMono-Medium.woff2") format("woff2");
  font-style: normal;
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("fonts/JetBrainsMono-Bold.woff2") format("woff2");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

* { box-sizing: border-box; }
html { color-scheme: light dark; scroll-padding-top: 24px; }
body { margin: 0; background: var(--bg-page); color: var(--text-primary); font: var(--fs-body)/1.55 var(--font-body); }
body, p, li, td { overflow-wrap: anywhere; }
h1, h2, h3, p, ul, pre { margin: 0; }
h1 { font: 700 var(--fs-display)/1.05 var(--font-mono); letter-spacing: -.03em; }
h2 { font: 600 var(--fs-h2)/1.15 var(--font-display); letter-spacing: -.02em; }
h3 { font: 600 var(--fs-h3)/1.3 var(--font-body); letter-spacing: -.01em; }
strong { font-weight: 600; }
a { color: var(--text-accent); text-underline-offset: .2em; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible, summary:focus-visible, [tabindex]:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
code, pre { font-family: var(--font-mono); }
code { font-size: .94em; }
ul { padding: 0; list-style: none; }
img { display: block; max-width: 100%; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.skip-link { position: absolute; z-index: 10; top: 8px; left: 8px; padding: 12px; background: var(--bg-page); transform: translateY(-200%); }
.skip-link:focus { transform: translateY(0); }
.site-header { display: flex; align-items: center; gap: var(--space-lg); padding: 16px max(var(--space-gutter), calc((100% - 1280px)/2)); border-bottom: 1px solid var(--border); }
.brand { display: flex; align-items: center; gap: 8px; flex: 1; color: var(--text-primary); font: 700 var(--fs-body)/1 var(--font-mono); text-decoration: none; white-space: nowrap; }
.brand-library { font: 400 var(--fs-label)/1 var(--font-mono); color: var(--text-muted); }
.brand picture { flex-shrink: 0; }
.desktop-nav { display: flex; align-items: center; gap: 24px; }
.desktop-nav a { color: var(--text-muted); text-decoration: none; font: 500 var(--fs-label)/1 var(--font-mono); white-space: nowrap; }
.desktop-nav a:hover { color: var(--text-accent); text-decoration: underline; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid var(--border-strong); border-radius: var(--radius-sm); padding: 12px 20px; color: var(--text-primary); font: 500 var(--fs-label)/1 var(--font-mono); text-decoration: none; white-space: nowrap; }
.button:hover { outline: 1px solid var(--border-strong); }
.button.primary { color: var(--text-on-accent); background: var(--accent); border-color: var(--accent); }
.mobile-menu { display: none; position: relative; }
main > section { display: flex; flex-direction: column; gap: var(--space-xl); padding: var(--space-section) max(var(--space-gutter), calc((100% - 1280px)/2)); border-top: 1px solid var(--border); }
.section-heading { display: flex; flex-direction: column; gap: 16px; }
.section-label, .card-label { display: flex; align-items: center; gap: 12px; color: var(--text-accent); font: 500 var(--fs-label)/1.4 var(--font-mono); letter-spacing: .04em; }
.label-line { display: block; width: 24px; height: 1px; background: var(--accent); }
.sources { display: block; margin-top: 4px; color: var(--text-accent); font: 400 var(--fs-label)/1.5 var(--font-mono); }
.sources::before { content: "↗ "; }
.sources a { text-decoration: none; }
.sources a:hover, .sources a:focus-visible { text-decoration: underline; }
.sources a + a::before { content: " · "; }
#hero { position: relative; border-top: 0; padding-top: 88px; gap: var(--space-2xl); background-image: conic-gradient(from 90deg at 1px 1px, transparent 25%, var(--grid-line) 0); background-size: 80px 80px; }
.hero-top { display: grid; grid-template-columns: minmax(0, 1fr) 560px; gap: var(--space-2xl); align-items: center; }
.hero-copy { display: flex; flex-direction: column; gap: var(--space-lg); min-width: 0; }
.eyebrow { color: var(--text-accent); font: 500 var(--fs-label)/1.4 var(--font-mono); letter-spacing: .08em; }
.hero-copy > p:not(.eyebrow) { font-size: var(--fs-lead); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.pipeline { padding: var(--space-lg); background: var(--bg-raised); border: 1px solid var(--border); border-radius: var(--radius-md); display: flex; flex-direction: column; gap: 16px; box-shadow: 0 0 48px var(--glow); font: 500 var(--fs-label)/1 var(--font-mono); }
.pipeline > p { color: var(--text-muted); letter-spacing: .1em; }
.pipeline-flow { display: flex; align-items: center; justify-content: flex-start; gap: 10px; }
.pipeline-flow > span:not(.flow-arrow) { padding: 8px 12px; border: 1px solid var(--border); border-radius: var(--radius-sm); white-space: nowrap; }
.pipeline-flow > .stage { background: var(--bg-accent-soft); border-color: var(--accent) !important; color: var(--text-accent); }
.flow-arrow { color: var(--text-muted); }
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; align-items: start; }
.facts > li { padding: 16px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--bg-raised); display: flex; flex-direction: column; gap: 8px; }
.facts strong { font-size: var(--fs-h3); line-height: 1.25; letter-spacing: -.01em; }
.fact-body { color: var(--text-muted); }
.use-columns, .security-columns, .schema-columns { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: var(--space-2xl); align-items: start; }
.content-column, .schema-text { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.use-columns .content-column { gap: 8px; }
.use-columns li { position: relative; padding: 10px 0 10px 42px; border-bottom: 1px solid var(--border); line-height: 1.5; }
.use-columns li::before { content: "[+]"; position: absolute; left: 0; top: 10px; color: var(--text-yes); font-family: var(--font-mono); font-weight: 700; }
.use-columns .content-column:last-child li::before { content: "[−]"; color: var(--text-no); }
.table-scroll { min-width: 0; width: 100%; overflow-x: auto; border-radius: var(--radius-md); box-shadow: inset 0 0 0 1px var(--border); }
table { table-layout: fixed; border-collapse: collapse; min-width: 1280px; width: 100%; font-size: 15px; line-height: 1.4; }
th, td { padding: 12px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--border); }
th { background: var(--bg-raised); font: 500 var(--fs-label)/1.4 var(--font-mono); }
th:nth-child(1) { width: 220px; }
th:nth-child(2) { width: 150px; }
th:nth-child(3) { width: 190px; }
th:nth-child(4) { width: 140px; }
th:nth-child(5) { width: 180px; }
th:nth-child(6) { width: 400px; }
tbody tr:last-child td { border-bottom: 0; }
td:nth-child(2), td:nth-child(3), td:nth-child(4) { font-family: var(--font-mono); }
.scroll-hint { display: none; font: 400 var(--fs-label)/1.5 var(--font-mono); color: var(--text-muted); }
.measurement-notes { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: var(--space-lg); }
.current-gate { padding: 16px var(--space-lg); background: var(--bg-accent-soft); border-left: 3px solid var(--accent); font-size: 15px; }
.current-gate > .card-label { margin-bottom: 6px; }
.install-columns { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: var(--space-lg); align-items: start; }
.usage-columns { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: var(--space-lg); align-items: start; }
.code-block { min-width: 0; width: 100%; border: 1px solid var(--border); border-radius: var(--radius-md); overflow: hidden; color: var(--code-text); background: var(--bg-code); }
.code-bar { display: flex; align-items: center; gap: 8px; padding: 8px 16px; background: var(--bg-code-bar); color: var(--code-comment); font: 500 var(--fs-label)/1 var(--font-mono); letter-spacing: .06em; }
.code-bar::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--code-comment); }
pre { padding: 16px; white-space: pre; overflow: auto; font-size: var(--fs-code); line-height: 1.7; tab-size: 4; }
pre code { font: inherit; }
.code-keyword { color: var(--code-keyword); }
.code-string { color: var(--code-string); }
.code-number { color: var(--code-number); }
.code-comment { color: var(--code-comment); }
.code-func { color: var(--code-func); }
.mapper-card { display: flex; flex-direction: column; gap: 12px; padding: var(--space-lg); background: var(--bg-accent-soft); border: 1px solid var(--accent); border-radius: var(--radius-md); text-decoration: none; }
.mapper-card strong { font: 600 var(--fs-h3)/1.3 var(--font-mono); }
.mapper-card > span:last-child { color: var(--text-muted); font: 400 var(--fs-label)/1.5 var(--font-mono); }
#comparison-guidance ul { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 16px; align-items: start; }
#comparison-guidance li { padding: 16px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--bg-raised); }
#comparison-guidance .card-label { margin-bottom: 8px; }
#license-links-contributing-security > ul { display: flex; flex-wrap: wrap; gap: 16px; }
#license-links-contributing-security > ul a { display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; border: 1px solid var(--border); border-radius: var(--radius-sm); color: var(--text-primary); font: 500 var(--fs-label)/1 var(--font-mono); text-decoration: none; }
#license-links-contributing-security > ul a::after { content: "↗"; color: var(--text-accent); }
.footer-line { display: flex; align-items: center; gap: 8px; padding-top: var(--space-lg); border-top: 1px solid var(--border); font: 400 var(--fs-label)/1.3 var(--font-mono); color: var(--text-muted); }
.footer-line picture { width: 16px; flex-shrink: 0; }
@media (min-width: 768px) and (max-width: 1199px) {
  :root { --space-gutter: 32px; }
  .site-header { flex-wrap: wrap; }
  .desktop-nav { order: 3; width: 100%; justify-content: space-between; gap: 12px; }
  .hero-top { grid-template-columns: 1fr; }
  .pipeline { max-width: 560px; }
}
@media (max-width: 767px) {
  .desktop-nav, .desktop-github { display: none; }
  .site-header { padding-top: 16px; padding-bottom: 16px; }
  .mobile-menu { display: block; font: 500 var(--fs-label)/1 var(--font-mono); }
  .mobile-menu summary { cursor: pointer; list-style: none; color: var(--text-primary); padding: 6px 0; }
  .mobile-menu summary::-webkit-details-marker { display: none; }
  .mobile-menu nav { position: absolute; z-index: 2; right: 0; top: 36px; display: flex; flex-direction: column; min-width: 210px; padding: 12px; border: 1px solid var(--border-strong); border-radius: var(--radius-sm); background: var(--bg-page); }
  .mobile-menu nav a { padding: 12px; }
  #hero { padding-top: 40px; background-size: 40px 40px; }
  .hero-top, .facts, .use-columns, .install-columns, .usage-columns, .measurement-notes, .schema-columns, .security-columns, #comparison-guidance ul { grid-template-columns: minmax(0,1fr); }
  .pipeline-flow { flex-direction: column; gap: 8px; }
  .flow-arrow { transform: rotate(90deg); }
  .pipeline { width: 100%; }
  .pipeline-flow { width: 100%; }
  .sources { font-size: var(--fs-label); }
  .scroll-hint { display: block; margin-bottom: calc(8px - var(--space-xl)); }
  .use-columns li { padding-left: 41px; }
  #license-links-contributing-security > ul { gap: 12px; }
}

.section-label { line-height: 1; }
.label-name { color: var(--text-muted); letter-spacing: .1em; }
.facts .card-label { line-height: 1; }

/* Source links remain keyboard/touch targets even when long citations wrap. */
.sources { line-height: 26px; }
.sources a { padding-block: 4px; }

/* Keep a visible focus ring outside the clipped code surface. */
.code-block:focus-within { outline: 2px solid var(--accent); outline-offset: 4px; }

.code-block pre:focus-visible { outline: none; }
