/* The demo site's own styles (charts are styled by oscharts.css). */
:root { color-scheme: light dark; --ink: #0b0b0b; --ink-2: #52514e; --bg: #f9f9f7; --line: #c3c2b7; --link: #1c5cab; --focus: #1c5cab; }
@media (prefers-color-scheme: dark) { :root { --ink: #f0efec; --ink-2: #c3c2b7; --bg: #0d0d0d; --line: #383835; --link: #86b6ef; --focus: #86b6ef; } }
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 1.0625rem/1.55 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
a { color: var(--link); text-underline-offset: 0.15em; }
a, code { overflow-wrap: anywhere; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, pre:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.skip { position: absolute; left: 0.5rem; top: -4rem; padding: 0.5rem 1rem; background: var(--ink); color: var(--bg); z-index: 10; }
.skip:focus { top: 0.5rem; }
.site-header, main, .site-footer { max-width: 60rem; margin: 0 auto; padding: 0 1rem; }
.site-header { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 0.5rem 1.5rem; padding-top: 1rem; padding-bottom: 1rem; border-bottom: 1px solid var(--line); }
.brand { margin: 0; font-weight: 700; font-size: 1.125rem; }
.brand a { color: inherit; text-decoration: none; }
.brand-note { display: block; font-weight: 400; font-size: 0.875rem; color: var(--ink-2); }
.site-header ul { display: flex; flex-wrap: wrap; gap: 0.25rem 1rem; list-style: none; margin: 0; padding: 0; }
.site-header a[aria-current="page"] { font-weight: 700; text-decoration-thickness: 2px; }
main { padding-top: 1.5rem; padding-bottom: 2rem; }
h1 { font-size: clamp(1.6rem, 4vw, 2.25rem); line-height: 1.2; margin: 0.5rem 0 0.75rem; }
h2 { font-size: 1.375rem; margin: 2rem 0 0.75rem; }
.lead { font-size: 1.125rem; max-width: 70ch; color: var(--ink-2); }
.toc ul { padding-left: 1.25rem; }
.toc h2 { margin-top: 1.5rem; }
.demo { margin: 1.25rem 0 2rem; }
.more { margin: -1.25rem 0 0; font-size: 0.9375rem; }
.crumbs { font-size: 0.9375rem; margin: 0; }
.code { background: color-mix(in srgb, var(--ink) 6%, transparent); border: 1px solid var(--line); border-radius: 6px; padding: 0.75rem 1rem; overflow: auto; font-size: 0.875rem; line-height: 1.5; }
.spaced li { margin-bottom: 0.5rem; }
.spark-demo { font-size: 1.0625rem; }
.site-footer { border-top: 1px solid var(--line); padding-top: 1rem; padding-bottom: 2rem; font-size: 0.9375rem; color: var(--ink-2); }
.maker { display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: 1rem; margin: 1rem 0; }
.field { display: flex; flex-direction: column; gap: 0.3rem; }
.field.wide, .maker .actions { grid-column: 1 / -1; }
label { font-weight: 600; }
input, select, textarea { font: inherit; color: inherit; background: transparent; border: 1px solid var(--ink-2); border-radius: 6px; padding: 0.5rem 0.6rem; min-height: 2.75rem; }
textarea { font-family: ui-monospace, "Cascadia Mono", Menlo, monospace; font-size: 0.9375rem; width: 100%; }
.hint { margin: 0; font-size: 0.9375rem; color: var(--ink-2); }
button { font: inherit; min-height: 2.75rem; padding: 0 1.1rem; border: 0; border-radius: 6px; background: var(--ink); color: var(--bg); cursor: pointer; }
.status { min-height: 1.5rem; font-weight: 600; }
.export textarea { margin-top: 0.3rem; }
table.plain { border-collapse: collapse; margin: 1rem 0; }
table.plain th, table.plain td { border: 1px solid var(--line); padding: 0.3rem 0.6rem; text-align: left; }
