:root {
  color-scheme: dark;
  --bg: #101615;
  --header: #101816;
  --surface: #17211f;
  --raised: #202d29;
  --line: #374742;
  --line-strong: #566a61;
  --text: #eef4f1;
  --muted: #adbfba;
  --mint: #a9f0cd;
  --mint-bg: #204137;
  --orange: #ffc491;
  --focus: #a3dfff;
  --radius: .7rem;
  font: 16px/1.55 system-ui, sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { line-height: 1.25; }
h1 { font-size: clamp(1.95rem, 4.2vw, 2.5rem); letter-spacing: -.045em; }
h2 { font-size: 1.3rem; letter-spacing: -.025em; }
h3 { font-size: 1rem; }
a { color: var(--mint); text-underline-offset: .23em; }
button, input, select, textarea, summary { font: inherit; color: inherit; }
button, .button, input, select, textarea {
  border: 1px solid var(--line-strong);
  border-radius: .42rem;
  background: var(--raised);
}
button, .button {
  display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
  padding: .45rem .76rem; min-height: 2.55rem; text-align: center;
  cursor: pointer; text-decoration: none; font-size: .92rem;
}
button:disabled { opacity: .5; cursor: default; }
button:hover:not(:disabled), .button:hover { border-color: var(--mint); }
button[aria-pressed="true"] { background: var(--mint-bg); border-color: #75ad92; color: var(--mint); }
.primary, .primary:hover:not(:disabled) { background: var(--mint); border-color: var(--mint); color: #10251b; font-weight: 650; }
.primary:hover:not(:disabled) { background: #c3f9df; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
input, select, textarea { width: 100%; padding: .48rem .65rem; }
input[type="checkbox"] { width: 1rem; accent-color: var(--mint); }
textarea { resize: vertical; min-height: 5rem; }
label { display: block; }
.wrap { width: min(1120px, calc(100% - 64px)); margin-inline: auto; }
.bar { border-bottom: 1px solid var(--line); background: var(--header); }
.header-inner, .header-actions, .actions { display: flex; align-items: center; flex-wrap: wrap; }
.header-inner { min-height: 4rem; justify-content: space-between; gap: .65rem; padding-block: .45rem; }
.header-actions, .actions { gap: .45rem; }
.header-actions { gap: .8rem; }
.header-actions a { color: var(--muted); font-size: .92rem; }
.brand { display: inline-flex; align-items: center; gap: .6rem; color: var(--text); text-decoration: none; font-weight: 700; }
.brand img { flex: 0 0 auto; }
.page-heading { display: grid; gap: .42rem; padding-block: 2rem 1.45rem; }
.page-heading p { max-width: 70ch; }
.demo-heading { padding-top: 1.65rem; }
.topic-back { display: inline-flex; align-items: center; gap: .45rem; justify-self: start; margin-bottom: .35rem; font-size: .91rem; text-decoration: none; }
.topic-back svg { flex: none; }
.topic-back span { text-decoration: underline; }
.demo-reference { margin-block: -1rem 2rem; }
.panel { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); padding: clamp(.95rem, 2vw, 1.3rem); min-width: 0; }
.panel-head { display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: .6rem .85rem; margin-bottom: .85rem; }
.panel-head p { margin-top: .28rem; }
.muted { color: var(--muted); }
.small { font-size: .9rem; }
.pill { display: inline-flex; align-items: center; border: 1px solid var(--line-strong); border-radius: 2rem; padding: .1rem .52rem; color: var(--muted); font-size: .81rem; line-height: 1.45; }
.skip { position: absolute; z-index: 2; top: .4rem; left: .4rem; transform: translateY(-150%); color: var(--mint); }
.skip:focus { transform: none; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
[hidden] { display: none !important; }
@media (max-width: 680px) {
  .wrap { width: calc(100% - 32px); }
  .header-inner { min-height: 3.65rem; }
  .page-heading { padding-block: 1.45rem 1.15rem; }
}
