:root {
  color-scheme: light;
  --text: #172033;
  --muted: #5e6878;
  --line: #e1e5ec;
  --accent: #42552b;
  --accent-dark: #303f1e;
  --surface: #f7f8fa;
  font: 16px/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  color: var(--text);
  background: #fff;
}
* { box-sizing: border-box; }
body { margin: 0; }
a { color: var(--accent-dark); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
button, input, select { font: inherit; }
button, select { cursor: pointer; }
button { color: inherit; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, [tabindex="0"]:focus-visible { outline: 3px solid #93b4ff; outline-offset: 4px; }
button:disabled { cursor: default; opacity: .55; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { color: #172033; line-height: 1.25; font-weight: 650; }
h1 { font-size: 3.25rem; letter-spacing: -.045em; }
h2 { font-size: 1.75rem; letter-spacing: -.025em; }
h3 { font-size: 1.125rem; letter-spacing: -.012em; }
img { display: block; max-width: 100%; }
code, pre { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .875em; }
p code, dd code, li code, td code { padding: .12em .32em; border-radius: 3px; background: #eff2f7; color: #263f70; overflow-wrap: anywhere; }
pre { margin: 0; padding: 22px 24px; overflow: auto; line-height: 1.8; tab-size: 2; color: #29364d; }
pre code { font-size: inherit; }
.container, .header-inner, .footer-inner { width: min(1120px, calc(100% - 64px)); margin: 0 auto; }
.skip-link { position: fixed; z-index: 100; top: 8px; left: 12px; transform: translateY(-150%); padding: 8px 16px; border-radius: 4px; color: #fff; background: var(--accent); }
.skip-link:focus { transform: none; }
.site-header { position: sticky; top: 0; z-index: 30; height: 76px; border-bottom: 1px solid var(--line); background: #fff; }
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); font-size: 1.25rem; font-weight: 700; letter-spacing: -.035em; text-decoration: none; white-space: nowrap; }
.brand svg { flex: none; }
.site-nav { display: flex; gap: 30px; align-items: center; height: 100%; }
.site-nav a { display: inline-flex; align-items: center; height: 100%; border-bottom: 2px solid transparent; padding-top: 2px; color: #4b5668; text-decoration: none; font-size: .875rem; }
.site-nav a:hover { color: var(--accent); }
.site-nav a[aria-current="page"] { color: var(--accent); border-bottom-color: var(--accent); }
.site-nav .source-link { margin-left: 8px; color: var(--text); }
.menu-toggle { display: none; padding: 7px 12px; border: 1px solid var(--line); border-radius: 5px; background: #fff; font-size: .875rem; }
.docs-content, .example-workspace > * { min-width: 0; }
.button { display: inline-flex; justify-content: center; align-items: center; min-height: 43px; padding: 9px 18px; border: 1px solid transparent; border-radius: 6px; text-decoration: none; font-size: .875rem; font-weight: 600; line-height: 1.5; white-space: nowrap; }
.button:hover { text-decoration: none; }
.button-primary { color: #fff; background: var(--accent); border-color: var(--accent); }
.button-primary:hover { background: var(--accent-dark); border-color: var(--accent-dark); }
.button-secondary { color: #344054; border-color: #cfd5df; background: #fff; }
.button-secondary:hover { background: #f8fafc; border-color: #aab4c4; }
.copy-button { flex: none; font-size: .75rem; line-height: 1.5; padding: 5px 8px; border: 1px solid #d7dde7; border-radius: 4px; background: #fff; color: #596477; min-height: 29px; }
.copy-button:hover { color: var(--accent-dark); border-color: #a8b9da; }
.preview-card { min-width: 0; border: 1px solid #d5dce5; border-radius: 8px; overflow: hidden; background: #fff; box-shadow: 0 3px 8px #14223a06, 0 15px 40px -24px #14223a38; }
.preview-heading { display: flex; align-items: center; justify-content: space-between; padding: 13px 17px; border-bottom: 1px solid var(--line); font-size: .8125rem; font-weight: 600; }
.preview-heading span:last-child { color: var(--muted); font-size: .75rem; font-weight: 400; }
.preview-scroll { --preview-height: 300px; height: var(--preview-height); overflow: hidden; overscroll-behavior: contain; position: relative; }
.preview-scroll .sd-stage { background: #1e2c47; }
.preview-landscape { background: #dbe5df; }
.preview-sky { position: absolute; inset: 0; background: linear-gradient(#d5e3e8, #e9e4cc); }
.preview-sun { position: absolute; width: 62px; height: 62px; border-radius: 50%; background: #f8edcf; right: 25%; top: 17%; }
.preview-ridge { position: absolute; left: -12%; width: 124%; max-width: none; height: 100%; bottom: -38%; }
.preview-ridge.far { bottom: -26%; }
.preview-ridge.mid { bottom: -40%; }
.preview-ridge.near { bottom: -57%; }
.preview-title { position: absolute; left: 9%; top: 23%; color: #203c32; max-width: 80%; }
.preview-title h3 { color: inherit; font-size: 1.875rem; font-weight: 650; letter-spacing: -.04em; line-height: 1.15; }
.preview-title p { margin-top: 10px; font-size: .8125rem; color: #395448; }
.preview-assembly { background: #eaf0ff; }
.preview-assembly .preview-title { color: #193b77; top: 15%; }
.preview-pieces { position: absolute; left: 8%; right: 8%; top: 54%; display: flex; gap: 12px; }
.preview-piece { width: 27%; position: absolute; top: 56%; padding: 13px 8px; border: 1px solid #a6bce6; border-radius: 6px; color: #24477c; background: #fff; text-align: center; font-size: .8125rem; font-weight: 500; box-shadow: 0 3px 7px #1d397a0a; }
.preview-piece.piece-a { left: 6%; }.preview-piece.piece-b { left: 36.5%; }.preview-piece.piece-c { left: 67%; }
.preview-text-line { position: absolute; left: 9%; top: 25%; font-size: 2rem; font-weight: 650; line-height: 1.2; color: #203c32; letter-spacing: -.035em; }
.preview-text-line:nth-child(1) { top: 25%; }
.preview-controls { padding: 13px 16px 14px; border-top: 1px solid var(--line); }
.preview-control-label { display: flex; justify-content: space-between; gap: 20px; font-size: .75rem; color: var(--muted); }
.preview-control-label output { font-variant-numeric: tabular-nums; color: #344054; }
.preview-range { display: block; accent-color: var(--accent); width: 100%; height: 22px; margin: 8px 0 9px; cursor: ew-resize; }
.preview-bottom { display: flex; justify-content: space-between; align-items: center; gap: 15px; font-size: .75rem; color: var(--muted); }
.preview-bottom button { padding: 0; border: 0; background: none; font-size: .75rem; color: #526078; min-height: 24px; }
.preview-bottom button:hover { color: var(--accent); }
.preview-transition { padding: 2px 20px 2px 6px; border: 1px solid var(--line); border-radius: 3px; font-size: .75rem; color: #526078; background-color: #fff; }
select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='m2 2 4 4 4-4' fill='none' stroke='%23526078' stroke-width='1.5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 6px center; }
.code-panel, .code-block { min-width: 0; background: #f8f9fc; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; }
.code-toolbar, .code-block-header { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 9px 13px; border-bottom: 1px solid var(--line); background: #f2f4f8; }
.tabs { display: flex; gap: 2px; }
.tabs button { font-size: .8125rem; border: 0; border-radius: 4px; padding: 7px 9px; background: transparent; color: #616d81; }
.tabs button[aria-selected="true"] { background: #fff; color: var(--accent-dark); box-shadow: 0 1px 3px #182e5012; }
.tabs button:hover { color: var(--accent-dark); }
.code-panel pre { font-size: .75rem; padding: 22px 20px; min-height: 330px; }
.code-note { padding: 14px 20px; font-size: .8125rem; color: var(--muted); border-top: 1px solid var(--line); background: #fff; line-height: 1.65; }
.site-footer { border-top: 1px solid var(--line); background: #fafbfc; }
.footer-inner { padding: 35px 0; display: grid; grid-template-columns: 1.1fr 1.2fr auto; align-items: start; gap: 30px; }
.footer-brand { font-size: 1rem; font-weight: 650; color: var(--text); text-decoration: none; letter-spacing: -.02em; }
.footer-inner p { color: var(--muted); font-size: .8125rem; margin-top: 6px; }
.footer-inner nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 22px; padding-top: 2px; }
.footer-inner nav a { color: var(--muted); font-size: .8125rem; text-decoration: none; }
.footer-inner nav a:hover { text-decoration: underline; }
.footer-note { white-space: nowrap; }
.docs-layout { display: grid; grid-template-columns: 200px minmax(0,1fr); gap: 70px; align-items: start; padding-top: 46px; padding-bottom: 80px; }
.docs-sidebar { position: sticky; top: 113px; }
.docs-sidebar nav p { font-size: .875rem; font-weight: 600; margin-bottom: 13px; }
.docs-sidebar nav a { display: block; padding: 5px 0; text-decoration: none; color: var(--muted); font-size: .875rem; }
.docs-sidebar nav a:hover { color: var(--accent-dark); }
.sidebar-download { display: inline-block; margin-top: 24px; font-size: .8125rem; }
.page-heading { padding-bottom: 18px; }
.page-heading h1 { font-size: 2.625rem; margin: 10px 0 16px; }
.page-heading>p:last-child { color: var(--muted); font-size: 1.0625rem; max-width: 700px; }
.breadcrumb { color: var(--muted); font-size: .8125rem; }
.docs-content section { padding-top: 33px; scroll-margin-top: 90px; }
.docs-content section+section { margin-top: 12px; }
.docs-content h2 { font-size: 1.5rem; padding-bottom: 12px; margin-bottom: 17px; border-bottom: 1px solid var(--line); }
.docs-content h3 { margin: 24px 0 13px; }
.docs-content p { margin: 15px 0; color: #475468; }
.docs-content .page-heading p { margin: 0; }
.docs-content .code-block { margin: 22px 0; }
.code-block-header { padding: 10px 15px; color: var(--muted); font-size: .8125rem; }
.code-block pre { font-size: .8125rem; }
.timing-diagram { display: flex; gap: 4px; margin: 24px 0; }
.timing-diagram>div { flex: 1.6; padding: 17px 15px; background: #eaf0fc; border: 1px solid #d4e0f6; color: #2b4d89; }
.timing-diagram>div:nth-child(2) { flex: .6; background: #f1f2f5; color: #606b7e; border-color: #e0e3e9; }
.timing-diagram>div:last-child { flex: 1.2; }
.timing-diagram strong { font-size: .8125rem; display: block; font-weight: 600; }.timing-diagram span { font-size: .75rem; }
.note { border-left: 3px solid #b4cafa; background: #f5f8ff; padding: 17px 20px; margin: 24px 0; font-size: .875rem; }
.note p { margin: 7px 0 0; }
.docs-next { display: flex; justify-content: space-between; gap: 20px; border-top: 1px solid var(--line); padding-top: 24px; margin-top: 40px; font-size: .875rem; }
.table-scroll { overflow-x: auto; margin: 23px 0; border: 1px solid var(--line); border-radius: 5px; }
table { width: 100%; border-collapse: collapse; text-align: left; font-size: .875rem; line-height: 1.7; }
th,td { padding: 12px 15px; vertical-align: top; }
th { background: #f5f7fa; font-size: .8125rem; font-weight: 600; }
tr+tr, tbody tr:first-child { border-top: 1px solid var(--line); }
td { color: #516075; }
td:first-child { color: var(--text); white-space: nowrap; }
td code { background: none; padding: 0; }
.examples-page { padding-top: 45px; padding-bottom: 75px; }
.examples-page .page-heading { max-width: 740px; }
.example-tabs { display: flex; gap: 30px; border-bottom: 1px solid var(--line); margin: 22px 0 30px; }
.example-tabs button { padding: 11px 0 14px; background: none; border: 0; border-bottom: 2px solid transparent; color: var(--muted); font-size: .875rem; }
.example-tabs button[aria-selected="true"] { color: var(--accent-dark); border-bottom-color: var(--accent); font-weight: 600; }
.example-workspace { display: grid; grid-template-columns: 1.1fr 1fr; gap: 35px; align-items: start; }
.large-preview .preview-scroll { --preview-height: 350px; }
.large-preview .preview-title h3 { font-size: 2.125rem; }
.preview-options { display: flex; justify-content: space-between; gap: 16px; font-size: .8125rem; margin-top: 17px; flex-wrap: wrap; }
.preview-options label { display: inline-flex; align-items: center; gap: 7px; cursor: pointer; color: var(--muted); }
.preview-options input { accent-color: var(--accent); }
.preview-help { color: var(--muted); font-size: .875rem; margin-top: 18px; }
.example-explanation h2 { font-size: 1.5rem; margin: 2px 0 13px; }
.example-explanation>p { color: var(--muted); font-size: .9375rem; }
.example-explanation .code-block { margin: 22px 0 15px; }
.example-explanation .code-context { font-size: .8125rem; }
.example-downloads { display: flex; align-items: center; justify-content: space-between; gap: 40px; margin-top: 50px; padding: 32px 0; border-block: 1px solid var(--line); }
.example-downloads h2, .scope-note h2 { font-size: 1.25rem; margin-bottom: 10px; }
.example-downloads p { color: var(--muted); font-size: .9375rem; max-width: 660px; }
.scope-note { margin-top: 36px; max-width: 780px; }.scope-note p { color: var(--muted); font-size: .9375rem; }
.preview-card[data-static="true"] .preview-scroll { overflow-y: auto; }
.preview-card[data-static="true"] .preview-landscape { min-height: 300px; }
.preview-card[data-static="true"] .preview-assembly { min-height: 300px; }
.preview-card[data-static="true"] .preview-sun,.preview-card[data-static="true"] .preview-ridge,.preview-card[data-static="true"] .preview-piece { display: none; }
.preview-card[data-static="true"] .preview-title,.preview-card[data-static="true"] .preview-text-line { position: relative; left: auto; top: auto; padding: 28px 25px; max-width: none; }
@media (max-width: 1000px) {
  .docs-layout { grid-template-columns: 165px minmax(0,1fr); gap: 35px; }
  .footer-inner { grid-template-columns: 1fr 1fr; }.footer-note { grid-column: 1/-1; margin-top: 0!important; }
  .footer-inner nav { justify-content: flex-end; }.example-workspace { gap: 25px; }
}
@media (max-width: 760px) {
  .container,.header-inner,.footer-inner { width: calc(100% - 40px); }
  .site-header { height: 66px; }.site-nav { gap: 20px; }.site-nav a { font-size: .8125rem; }.site-nav .source-link { display: none; }
  .preview-scroll { --preview-height: 310px; }.preview-card { max-width: 580px; width: 100%; }
  .docs-layout { display: block; padding-top: 28px; padding-bottom: 50px; }.docs-sidebar { position: static; border-bottom: 1px solid var(--line); padding-bottom: 20px; margin-bottom: 30px; }
  .docs-sidebar nav { display: flex; flex-wrap: wrap; gap: 6px 20px; }.docs-sidebar nav p { width: 100%; margin-bottom: 0; }.docs-sidebar nav a { padding: 2px 0; font-size: .8125rem; }.sidebar-download { display: none; }
  .page-heading h1 { font-size: 2.25rem; }.page-heading>p:last-child { font-size: 1rem; }.docs-content section { padding-top: 27px; scroll-margin-top: 80px; }
  .example-workspace { grid-template-columns: 1fr; gap: 32px; }.large-preview { max-width: none; }.example-explanation>p { max-width: 650px; }
  .example-downloads { gap: 22px; }.example-downloads p { font-size: .875rem; }.example-tabs { gap: 25px; }
}
@media (max-width: 480px) {
  .brand { font-size: 1.125rem; }.brand svg { width: 24px; height: 24px; }.menu-toggle { display: block; }
  .site-nav { display: none; position: absolute; height: auto; top: 65px; left: 0; right: 0; border-bottom: 1px solid var(--line); padding: 10px 20px 16px; background: #fff; gap: 0; }
  .site-nav[data-open="true"] { display: flex; flex-direction: column; align-items: stretch; }.site-nav a { padding: 10px 0; font-size: .875rem; border: 0; }.site-nav .source-link { display: inline-flex; margin-left: 0; }
  .button { padding: 9px 15px; }
  .preview-heading { padding: 12px 14px; }.preview-scroll { --preview-height: 280px; }.preview-title h3 { font-size: 1.75rem; }.preview-title p { font-size: .8125rem; }
  .code-toolbar { flex-wrap: wrap; gap: 8px; padding: 9px; }.tabs { gap: 0; }.tabs button { padding: 6px 8px; font-size: .75rem; }.code-toolbar>.copy-button { margin-left: auto; }
  .code-panel pre,.code-block pre { font-size: .75rem; padding: 18px 15px; }.code-note { padding: 12px 15px; }
  .footer-inner { display: block; padding: 28px 0; }.footer-inner nav { justify-content: flex-start; margin: 22px 0; gap: 12px 20px; }
  .example-tabs { gap: 20px; overflow-x: auto; }.example-tabs button { white-space: nowrap; font-size: .8125rem; }
  .examples-page { padding-top: 30px; }.example-downloads { display: block; }.example-downloads .button { margin-top: 20px; }
  .large-preview .preview-scroll { --preview-height: 300px; }.large-preview .preview-title h3 { font-size: 1.75rem; }.preview-piece { font-size: .75rem; }
  .timing-diagram>div { padding: 12px 9px; }.timing-diagram strong { font-size: .75rem; }.timing-diagram span { font-size: .75rem; }
  .table-scroll { margin-inline: 0; }th,td { padding: 10px 12px; }table { min-width: 500px; }.docs-next { flex-wrap: wrap; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
