/* ThemeLab — themelab.page
   Visual language borrowed from the Index theme: paper, fog and stone surfaces, ink text,
   one quiet green accent, hairlines and pills. No saturated page backgrounds. */

@font-face {
  font-family: "Instrument Sans";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(/assets/fonts/instrument-sans-latin.2ee17598a9.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Instrument Sans";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(/assets/fonts/instrument-sans-latin-ext.c4fcfea41f.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ---------- Tokens ---------- */

:root {
  --font: "Instrument Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;

  --bg: #fbfbf9;
  --surface: #ffffff;
  --fog: #f2f2ef;
  --fog-2: #eaeae5;
  --line: #e3e3de;
  --line-strong: #d2d2cb;
  --text: #161616;
  --text-2: #3a3a37;
  --muted: #64645f;
  --accent: #0f5c45;
  --accent-hover: #0a4735;
  --accent-soft: #dcebe3;
  --accent-soft-2: #eef5f1;
  --on-accent-soft: #0b4a37;
  --btn: #161616;
  --btn-text: #ffffff;
  --btn-hover: #0f5c45;
  --focus: #0f5c45;
  --mark: #dcebe3;

  --note-bg: #f4f4f1;   --note-line: #e3e3de; --note-icon: #4a4a46;
  --tip-bg: #eef5f1;    --tip-line: #cfe3d8;  --tip-icon: #0f5c45;
  --warn-bg: #fbf4e4;   --warn-line: #eedcb0; --warn-icon: #8a5a06;
  --imp-bg: #fbefec;    --imp-line: #f2d2cb;  --imp-icon: #a03a2c;
  --code-bg: #f4f4f1;

  --shadow-pop: 0 1px 2px rgb(22 22 22 / .04), 0 18px 48px -12px rgb(22 22 22 / .18);
  --shadow-card: 0 1px 2px rgb(22 22 22 / .04), 0 8px 24px -14px rgb(22 22 22 / .16);

  --r-sm: 6px;
  --r: 10px;
  --r-lg: 14px;
  --r-xl: 20px;
  --pill: 999px;

  --header-h: 60px;
  --page: 1440px;
  --gutter: clamp(16px, 3vw, 32px);

  --ease-out: cubic-bezier(.2, .8, .2, 1);
  --ease: cubic-bezier(.4, 0, .2, 1);
  --t-fast: 140ms;
  --t: 220ms;
  --t-slow: 340ms;

  color-scheme: light;
}

:root[data-theme="dark"] {
  --bg: #121413;
  --surface: #171a18;
  --fog: #1c201e;
  --fog-2: #232825;
  --line: #2a302c;
  --line-strong: #39413c;
  --text: #ecede9;
  --text-2: #c8ccc6;
  --muted: #9aa19b;
  --accent: #8ccfb0;
  --accent-hover: #a8ddc4;
  --accent-soft: #1c3a2e;
  --accent-soft-2: #18291f;
  --on-accent-soft: #bfe6d3;
  --btn: #ecede9;
  --btn-text: #121413;
  --btn-hover: #a8ddc4;
  --focus: #8ccfb0;
  --mark: #24493a;

  --note-bg: #1a1e1c;   --note-line: #2a302c; --note-icon: #c8ccc6;
  --tip-bg: #16251e;    --tip-line: #23402f;  --tip-icon: #8ccfb0;
  --warn-bg: #241f13;   --warn-line: #43391e; --warn-icon: #e2bd6c;
  --imp-bg: #271a18;    --imp-line: #47302b;  --imp-icon: #ec9d8f;
  --code-bg: #1a1e1c;

  --shadow-pop: 0 1px 2px rgb(0 0 0 / .3), 0 24px 60px -16px rgb(0 0 0 / .6);
  --shadow-card: 0 1px 2px rgb(0 0 0 / .25), 0 10px 30px -16px rgb(0 0 0 / .5);
  color-scheme: dark;
}

/* Without JavaScript the system setting still applies */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    --bg: #121413; --surface: #171a18; --fog: #1c201e; --fog-2: #232825; --line: #2a302c; --line-strong: #39413c;
    --text: #ecede9; --text-2: #c8ccc6; --muted: #9aa19b; --accent: #8ccfb0; --accent-hover: #a8ddc4;
    --accent-soft: #1c3a2e; --accent-soft-2: #18291f; --on-accent-soft: #bfe6d3; --btn: #ecede9; --btn-text: #121413;
    --btn-hover: #a8ddc4; --focus: #8ccfb0; --mark: #24493a;
    --note-bg: #1a1e1c; --note-line: #2a302c; --note-icon: #c8ccc6; --tip-bg: #16251e; --tip-line: #23402f; --tip-icon: #8ccfb0;
    --warn-bg: #241f13; --warn-line: #43391e; --warn-icon: #e2bd6c; --imp-bg: #271a18; --imp-line: #47302b; --imp-icon: #ec9d8f;
    --code-bg: #1a1e1c; color-scheme: dark;
  }
}

/* ---------- Base ---------- */

*, *::before, *::after { box-sizing: border-box; }

html:not([data-motion="reduced"]) { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html:not([data-motion]) { scroll-behavior: auto; } }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 24px);
  interpolate-size: allow-keywords;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  font-feature-settings: "tnum" 1;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

body > main { flex: 1 0 auto; }

img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; }
::selection { background: var(--mark); color: var(--text); }

.icon { width: 18px; height: 18px; flex: none; }

:focus { outline: none; }
:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
  border-radius: 4px;
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.skip-link {
  position: fixed;
  top: 10px; left: 10px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: var(--pill);
  background: var(--btn);
  color: var(--btn-text);
  font-weight: 500;
  text-decoration: none;
  transform: translateY(-160%);
  transition: transform var(--t) var(--ease-out);
}
.skip-link:focus-visible { transform: none; }

kbd {
  display: inline-flex;
  align-items: center;
  min-width: 1.6em;
  justify-content: center;
  padding: 0 .4em;
  height: 1.55em;
  border: 1px solid var(--line-strong);
  border-bottom-width: 2px;
  border-radius: 5px;
  background: var(--surface);
  font: 500 .78em/1 var(--font);
  color: var(--text-2);
  vertical-align: .08em;
}

.muted { color: var(--muted); }

.todo {
  display: inline-block;
  padding: 0 .35em;
  border-radius: 4px;
  background: var(--warn-bg);
  outline: 1px dashed var(--warn-icon);
  color: var(--text);
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 20px;
  border-radius: var(--pill);
  border: 0;
  font-weight: 500;
  font-size: 15px;
  letter-spacing: -.005em;
  text-decoration: none;
  cursor: pointer;
  transition: background-color var(--t) var(--ease), color var(--t) var(--ease), box-shadow var(--t) var(--ease), transform var(--t) var(--ease-out);
}
.btn .icon { width: 17px; height: 17px; transition: transform var(--t) var(--ease-out); }
.btn--primary { background: var(--btn); color: var(--btn-text); }
.btn--primary:hover { background: var(--btn-hover); }
.btn--primary:hover .icon:last-child { transform: translateX(3px); }
.btn--secondary { background: var(--surface); color: var(--text); box-shadow: inset 0 0 0 1px var(--line-strong); }
.btn--secondary:hover { box-shadow: inset 0 0 0 1px var(--text); }
.btn:active { transform: translateY(1px); }

.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 40px; height: 40px;
  border: 0;
  border-radius: var(--pill);
  background: transparent;
  color: var(--text-2);
  cursor: pointer;
  transition: background-color var(--t-fast) var(--ease), color var(--t-fast) var(--ease);
}
.icon-btn:hover { background: var(--fog); color: var(--text); }
.icon-btn .icon { width: 20px; height: 20px; }

.badge {
  display: inline-flex;
  align-items: center;
  height: 24px;
  padding: 0 10px;
  border-radius: var(--pill);
  background: var(--fog);
  color: var(--text-2);
  font-size: 12.5px;
  font-weight: 500;
  white-space: nowrap;
}
.badge--soft { background: var(--accent-soft); color: var(--on-accent-soft); }

.eyebrow {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  height: var(--header-h);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--line);
}
.site-header__inner {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 100%;
  max-width: var(--page);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 600;
  font-size: 17px;
  letter-spacing: -.03em;
  border-radius: 8px;
}
.logo-mark { width: 28px; height: 28px; }
.logo-mark__bg { fill: var(--text); }
.logo-mark__cell { fill: var(--bg); opacity: .92; }
.logo-mark__dot { fill: var(--accent); }
:root[data-theme="dark"] .logo-mark__dot { fill: #0f5c45; }
:root[data-theme="dark"] .logo-mark__cell { fill: var(--bg); }
.brand:hover .logo-mark__dot { animation: dot-pop .5s var(--ease-out); transform-origin: 20.5px 20.5px; }
@keyframes dot-pop { 40% { transform: scale(1.25); } }

.site-nav {
  display: flex;
  gap: 2px;
  margin-left: 18px;
}
.site-nav__link {
  position: relative;
  padding: 7px 12px;
  border-radius: var(--pill);
  color: var(--muted);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  transition: color var(--t-fast) var(--ease), background-color var(--t-fast) var(--ease);
}
.site-nav__link:hover { color: var(--text); background: var(--fog); }
.site-nav__link[aria-current="page"] { color: var(--text); }
.site-nav__link[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 12px; right: 12px; bottom: -11px;
  height: 2px;
  border-radius: 2px;
  background: var(--text);
}

.site-header__tools {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
}

.search-trigger {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 38px;
  width: 260px;
  padding: 0 8px 0 14px;
  border: 0;
  border-radius: var(--pill);
  background: var(--fog);
  box-shadow: inset 0 0 0 1px var(--line);
  color: var(--muted);
  font-size: 14.5px;
  cursor: pointer;
  transition: box-shadow var(--t-fast) var(--ease), background-color var(--t-fast) var(--ease);
}
.search-trigger:hover { box-shadow: inset 0 0 0 1px var(--line-strong); background: var(--surface); }
.search-trigger .icon { width: 17px; height: 17px; }
.search-trigger__kbd { margin-left: auto; }
.no-js .search-trigger { display: none; }

.theme-toggle__icons { position: relative; width: 20px; height: 20px; }
.theme-toggle__icons .icon { position: absolute; inset: 0; transition: transform var(--t-slow) var(--ease-out), opacity var(--t) var(--ease); }
.theme-toggle__sun { opacity: 0; transform: rotate(-90deg) scale(.6); }
:root[data-theme="dark"] .theme-toggle__sun { opacity: 1; transform: none; }
:root[data-theme="dark"] .theme-toggle__moon { opacity: 0; transform: rotate(90deg) scale(.6); }
.no-js .theme-toggle { display: none; }

.nav-toggle { display: none; margin-left: -8px; }

/* ---------- Docs layout ---------- */

.docs-layout {
  display: grid;
  grid-template-columns: 264px minmax(0, 1fr) 232px;
  gap: 0 clamp(24px, 3.5vw, 56px);
  width: 100%;
  max-width: var(--page);
  margin: 0 auto;
  padding: 0 var(--gutter);
  flex: 1 0 auto;
}

.docs-sidebar {
  position: sticky;
  top: var(--header-h);
  align-self: start;
  height: calc(100vh - var(--header-h));
  height: calc(100dvh - var(--header-h));
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 28px 8px 48px 0;
  scrollbar-width: thin;
  scrollbar-color: var(--line-strong) transparent;
}
.docs-sidebar__head { display: flex; align-items: center; justify-content: space-between; margin: 0 0 18px 12px; }
.docs-sidebar__head .icon-btn { display: none; }
.docs-sidebar__theme { font-weight: 600; letter-spacing: -.02em; font-size: 15px; display: inline-flex; gap: 8px; align-items: center; }
.version { font-weight: 500; font-size: 12px; color: var(--muted); padding: 1px 7px; border-radius: var(--pill); box-shadow: inset 0 0 0 1px var(--line); }

.docs-nav__group + .docs-nav__group { margin-top: 22px; }
.docs-nav__heading {
  margin: 0 0 6px 12px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text);
  letter-spacing: .01em;
}
.docs-nav ul { list-style: none; margin: 0; padding: 0; }
.docs-nav a {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 8px;
  color: var(--muted);
  text-decoration: none;
  font-size: 14.5px;
  line-height: 1.4;
  transition: color var(--t-fast) var(--ease), background-color var(--t-fast) var(--ease);
}
.docs-nav a:hover { color: var(--text); background: var(--fog); }
.docs-nav a[aria-current="page"] { color: var(--text); background: var(--fog); font-weight: 500; }
.docs-nav a[aria-current="page"]::before {
  content: "";
  position: absolute;
  left: 0; top: 8px; bottom: 8px;
  width: 2px;
  border-radius: 2px;
  background: var(--accent);
}
.docs-nav__out { width: 14px; height: 14px; opacity: .5; }
.docs-nav__sub details > summary {
  display: flex; align-items: center; gap: 8px;
  padding: 6px 12px;
  border-radius: 8px;
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.4;
  list-style: none;
  cursor: pointer;
  user-select: none;
  transition: color var(--t-fast) var(--ease), background-color var(--t-fast) var(--ease);
}
.docs-nav__sub details > summary::-webkit-details-marker { display: none; }
.docs-nav__sub details > summary:hover { color: var(--text); background: var(--fog); }
.docs-nav__sub details[open] > summary { color: var(--text); font-weight: 500; }
.docs-nav__count { margin-left: auto; padding: 0 6px; border-radius: var(--pill); background: var(--fog); color: var(--muted); font-size: 11.5px; font-weight: 500; line-height: 18px; }
.docs-nav__chev { width: 14px; height: 14px; color: var(--muted); transition: transform var(--t) var(--ease-out); }
.docs-nav__sub details[open] .docs-nav__chev { transform: rotate(90deg); }
.docs-nav__sub details::details-content { block-size: 0; overflow: hidden; transition: block-size var(--t-slow) var(--ease-out), content-visibility var(--t-slow) allow-discrete; }
.docs-nav__sub details[open]::details-content { block-size: auto; }
.docs-nav__sub ul { margin: 2px 0 6px 12px; padding-left: 0; border-left: 1px solid var(--line); }
.docs-nav__sub ul a { padding: 5px 12px; font-size: 14px; border-radius: 0 8px 8px 0; }
.docs-nav__sub ul a[aria-current="page"]::before { left: -1px; top: 4px; bottom: 4px; }

.docs-main { min-width: 0; padding: 36px 0 80px; outline: none; }

.docs-toc { position: relative; }
.docs-toc__inner {
  position: sticky;
  top: var(--header-h);
  max-height: calc(100vh - var(--header-h));
  overflow-y: auto;
  padding: 40px 0 40px;
  scrollbar-width: none;
}
.docs-toc__heading { margin: 0 0 10px; font-size: 12.5px; font-weight: 600; letter-spacing: .01em; }
.toc { position: relative; }
.toc ul { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--line); }
.toc a {
  display: block;
  padding: 4px 0 4px 14px;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.4;
  text-decoration: none;
  transition: color var(--t-fast) var(--ease);
}
.toc__l3 a { padding-left: 26px; font-size: 13px; }
.toc a:hover { color: var(--text); }
.toc a.is-active { color: var(--text); font-weight: 500; }
.toc__marker {
  position: absolute;
  left: 0; top: 0;
  width: 2px; height: 0;
  margin-left: -.5px;
  border-radius: 2px;
  background: var(--accent);
  opacity: 0;
  transition: transform var(--t-slow) var(--ease-out), height var(--t-slow) var(--ease-out), opacity var(--t) var(--ease);
}
.toc__marker.is-on { opacity: 1; }
.docs-toc__top { display: inline-block; margin-top: 18px; font-size: 13px; color: var(--muted); text-decoration: none; }
.docs-toc__top:hover { color: var(--text); }

.docs-backdrop { display: none; }

/* ---------- Prose ---------- */

.prose { max-width: 760px; color: var(--text-2); }
.prose--simple { max-width: 760px; margin: 0 auto; }

.prose .crumbs ol, .crumbs ol { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0 0 18px; padding: 0; font-size: 13.5px; color: var(--muted); }
.crumbs li { margin: 0; padding: 0; }
.crumbs li + li::before { content: "/"; margin-right: 6px; color: var(--line-strong); }
.prose .crumbs a, .crumbs a { color: var(--muted); text-decoration: none; }
.prose .crumbs a:hover, .crumbs a:hover { color: var(--text); }
.docs-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 16px; margin: 0 0 18px; }
.docs-head .crumbs ol { margin: 0; }
.prose .md-link { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); text-decoration: none; white-space: nowrap; }
.prose .md-link .icon { width: 14px; height: 14px; }
.prose .md-link:hover { color: var(--text); }

.prose h1, .simple-main h1, .theme-hero h1 {
  margin: 0 0 14px;
  color: var(--text);
  font-size: clamp(2rem, 1.4rem + 2vw, 2.6rem);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -.045em;
  text-wrap: balance;
}
.lede {
  margin: 0 0 36px;
  font-size: 1.15rem;
  line-height: 1.6;
  color: var(--muted);
  text-wrap: pretty;
}

.prose h2, .prose h3, .prose h4 {
  position: relative;
  color: var(--text);
  font-weight: 500;
  letter-spacing: -.03em;
  text-wrap: balance;
}
.prose h2 {
  margin: 56px 0 14px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
  font-size: 1.6rem;
  line-height: 1.2;
}
.prose > h2:first-of-type { margin-top: 40px; }
.prose h3 { margin: 38px 0 10px; font-size: 1.22rem; line-height: 1.3; letter-spacing: -.02em; }
.prose h4 { margin: 26px 0 8px; font-size: 1.02rem; letter-spacing: -.01em; }

.anchor {
  position: absolute;
  left: -28px;
  top: .15em;
  display: grid;
  place-items: center;
  width: 22px; height: 22px;
  border-radius: 6px;
  color: var(--muted);
  opacity: 0;
  transition: opacity var(--t-fast) var(--ease), color var(--t-fast) var(--ease);
}
.prose h2 .anchor { top: calc(28px + .2em); }
.anchor .icon { width: 15px; height: 15px; }
.prose h2:hover .anchor, .prose h3:hover .anchor, .prose h4:hover .anchor, .anchor:focus-visible { opacity: 1; }
.anchor:hover { color: var(--accent); }

.prose p { margin: 0 0 16px; text-wrap: pretty; }
.prose strong { color: var(--text); font-weight: 600; }
.prose a:where(:not(.card, .btn, .anchor, .support-step, .pager__link)) {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-color: color-mix(in srgb, var(--accent) 35%, transparent);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: text-decoration-color var(--t-fast) var(--ease), color var(--t-fast) var(--ease);
}
.prose a:where(:not(.card, .btn, .anchor, .support-step, .pager__link)):hover { text-decoration-color: currentColor; color: var(--accent-hover); }
.icon--ext { display: inline; width: 13px; height: 13px; margin-left: 2px; vertical-align: -1px; }

.prose ul, .prose ol { margin: 0 0 18px; padding-left: 1.35em; }
.prose li { margin: 6px 0; padding-left: 4px; }
.prose li::marker { color: var(--muted); }
.prose ol li::marker { font-weight: 500; font-size: .92em; }
.prose li > ul, .prose li > ol { margin: 6px 0 4px; }

.prose code {
  padding: .12em .4em;
  border-radius: 5px;
  background: var(--code-bg);
  box-shadow: inset 0 0 0 1px var(--line);
  font-family: var(--mono);
  font-size: .86em;
  color: var(--text);
  word-break: break-word;
}

.prose hr { border: 0; border-top: 1px solid var(--line); margin: 40px 0; }

.prose blockquote { margin: 0 0 18px; padding: 2px 0 2px 18px; border-left: 2px solid var(--line-strong); color: var(--muted); }

/* UI paths like Theme settings › Colors */
.ui-path {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2px;
  padding: 1px 8px;
  border-radius: 6px;
  background: var(--fog);
  box-shadow: inset 0 0 0 1px var(--line);
  color: var(--text);
  font-size: .9em;
  font-weight: 500;
  line-height: 1.55;
  vertical-align: .02em;
}
.ui-path__sep { display: inline-flex; color: var(--muted); }
.ui-path__sep .icon { width: 12px; height: 12px; }

/* Tables */
.table-wrap {
  margin: 0 0 22px;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--surface);
  -webkit-overflow-scrolling: touch;
}
.prose table, .table-wrap table { width: 100%; border-collapse: collapse; font-size: 14.5px; line-height: 1.5; }
.table-wrap th, .table-wrap td { padding: 10px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.table-wrap thead th { background: var(--fog); color: var(--text); font-weight: 600; font-size: 13px; white-space: nowrap; }
.table-wrap tbody tr:last-child > * { border-bottom: 0; }
.table-wrap tbody th { font-weight: 500; color: var(--text); }
.table-wrap td.num { text-align: right; }
.index-table tbody th a { font-weight: 500; }

/* Callouts */
.callout {
  display: flex;
  gap: 12px;
  margin: 22px 0;
  padding: 14px 16px 14px 14px;
  border-radius: var(--r-lg);
  border: 1px solid var(--note-line);
  background: var(--note-bg);
}
.callout__icon { flex: none; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; color: var(--note-icon); }
.callout__icon .icon { width: 19px; height: 19px; }
.callout__body { min-width: 0; padding-top: 2px; }
.callout__body > :last-child { margin-bottom: 0; }
.callout__body p { margin-bottom: 10px; }
.callout__title { margin: 0 0 4px !important; color: var(--text); font-weight: 600; }
.callout--tip { background: var(--tip-bg); border-color: var(--tip-line); }
.callout--tip .callout__icon { color: var(--tip-icon); }
.callout--warning, .callout--code { background: var(--warn-bg); border-color: var(--warn-line); }
.callout--warning .callout__icon, .callout--code .callout__icon { color: var(--warn-icon); }
.callout--important { background: var(--imp-bg); border-color: var(--imp-line); }
.callout--important .callout__icon { color: var(--imp-icon); }

/* Code blocks */
.code-block {
  margin: 0 0 22px;
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  background: var(--code-bg);
  overflow: hidden;
}
.code-block__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 6px 4px 14px;
  border-bottom: 1px solid var(--line);
  font-size: 12.5px;
  font-weight: 500;
  color: var(--muted);
}
.code-block pre { margin: 0; padding: 14px 16px; overflow-x: auto; font: 13.5px/1.65 var(--mono); color: var(--text); tab-size: 2; }
.code-block code { background: none; box-shadow: none; padding: 0; font-size: inherit; }
.copy-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 30px;
  padding: 0 10px;
  border: 0;
  border-radius: var(--pill);
  background: transparent;
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color var(--t-fast) var(--ease), color var(--t-fast) var(--ease);
}
.copy-btn:hover { background: var(--fog-2); color: var(--text); }
.copy-btn .icon { width: 15px; height: 15px; }
.copy-btn__done { display: none; color: var(--accent); }
.copy-btn.is-copied .copy-btn__copy { display: none; }
.copy-btn.is-copied .copy-btn__done { display: block; animation: pop var(--t-slow) var(--ease-out); }
@keyframes pop { from { transform: scale(.5); opacity: 0; } }
.no-js .copy-btn { display: none; }

/* Cards */
.cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 8px 0 28px; }
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 18px 18px 18px;
  border-radius: var(--r-lg);
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line);
  text-decoration: none;
  transition: box-shadow var(--t) var(--ease), transform var(--t) var(--ease-out), background-color var(--t) var(--ease);
}
.card:hover { box-shadow: inset 0 0 0 1px var(--line-strong), var(--shadow-card); transform: translateY(-2px); }
.card__icon { display: grid; place-items: center; width: 34px; height: 34px; margin-bottom: 6px; border-radius: 10px; background: var(--accent-soft-2); color: var(--accent); }
.card__icon .icon { width: 19px; height: 19px; }
.card__title { display: flex; align-items: center; gap: 6px; color: var(--text); font-weight: 500; letter-spacing: -.01em; }
.card__arrow { width: 16px; height: 16px; margin-left: auto; color: var(--muted); transition: transform var(--t) var(--ease-out), color var(--t) var(--ease); }
.card:hover .card__arrow { transform: translateX(3px); color: var(--text); }
.card__text { color: var(--muted); font-size: 14.5px; line-height: 1.5; }

/* Task lists (launch checklist) */
.prose ul.tasks { list-style: none; padding-left: 0; }
.prose li.task { position: relative; margin: 0; padding: 7px 0 7px 34px; border-bottom: 1px solid var(--line); }
.prose li.task:last-child { border-bottom: 0; }
.task input {
  position: absolute; left: 0; top: 9px;
  appearance: none; -webkit-appearance: none;
  width: 20px; height: 20px; margin: 0;
  border-radius: 6px;
  background: var(--surface);
  box-shadow: inset 0 0 0 1.5px var(--line-strong);
  cursor: pointer;
  transition: background-color var(--t) var(--ease), box-shadow var(--t) var(--ease);
}
.task input::after {
  content: ""; position: absolute; left: 7px; top: 3.5px; width: 5px; height: 10px;
  border: solid var(--btn-text); border-width: 0 2px 2px 0;
  transform: rotate(45deg) scale(.4); opacity: 0;
  transition: transform var(--t) var(--ease-out), opacity var(--t-fast) var(--ease);
}
.task input:checked { background: var(--accent); box-shadow: none; }
:root[data-theme="dark"] .task input::after { border-color: #121413; }
.task input:checked::after { transform: rotate(45deg) scale(1); opacity: 1; }
.task input:hover { box-shadow: inset 0 0 0 1.5px var(--text); }
.task input:checked:hover { box-shadow: none; }
.task label { cursor: pointer; transition: color var(--t) var(--ease); }
.task input:checked + label { color: var(--muted); text-decoration: line-through; text-decoration-color: var(--line-strong); }
.task-progress { display: flex; align-items: center; gap: 12px; margin: 0 0 8px; font-size: 14px; color: var(--muted); }
.task-progress__bar { flex: 1; max-width: 220px; height: 6px; border-radius: 99px; background: var(--fog-2); overflow: hidden; }
.task-progress__bar span { display: block; height: 100%; width: var(--p, 0%); border-radius: inherit; background: var(--accent); transition: width var(--t-slow) var(--ease-out); }
.task-progress button { margin-left: auto; border: 0; background: none; color: var(--muted); font-size: 13px; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.task-progress button:hover { color: var(--text); }

.ref-link {
  display: flex; align-items: center; gap: 10px;
  margin: 12px 0 22px; padding: 11px 14px;
  border-radius: var(--r-lg);
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line);
  color: var(--muted) !important; font-size: 14.5px; text-decoration: none !important;
  transition: box-shadow var(--t) var(--ease), transform var(--t) var(--ease-out);
}
.ref-link strong { color: var(--text); font-weight: 500; }
.ref-link > .icon:first-child { width: 17px; height: 17px; color: var(--accent); }
.ref-link__arrow { margin-left: auto; width: 16px; height: 16px; transition: transform var(--t) var(--ease-out); }
.ref-link:hover { box-shadow: inset 0 0 0 1px var(--line-strong), var(--shadow-card); }
.ref-link:hover .ref-link__arrow { transform: translateX(3px); color: var(--text); }
.ref-link + .ref-link { margin-top: -14px; }

/* At a glance (section and block pages) */
.glance {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  margin: -12px 0 32px;
  border-radius: var(--r-lg);
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line);
  overflow: hidden;
}
.glance div { padding: 12px 16px; border-bottom: 1px solid var(--line); }
.glance div:nth-child(odd) { border-right: 1px solid var(--line); }
.glance div:nth-last-child(-n + 2):nth-child(odd), .glance div:last-child { border-bottom: 0; }
.glance dt { margin-bottom: 2px; color: var(--muted); font-size: 12.5px; font-weight: 500; }
.glance dd { margin: 0; color: var(--text); font-size: 14.5px; line-height: 1.5; }
@media (max-width: 720px) {
  .glance { grid-template-columns: 1fr; }
  .glance div:nth-child(odd) { border-right: 0; }
  .glance div:nth-last-child(-n + 2):nth-child(odd) { border-bottom: 1px solid var(--line); }
  .glance div:last-child { border-bottom: 0; }
}
.cards--compact .card { padding: 14px 16px; gap: 4px; }
.cards--compact .card__text { font-size: 14px; }

/* Steps */
.steps > ol { list-style: none; counter-reset: step; padding: 0; margin: 0 0 24px; }
.steps > ol > li { position: relative; counter-increment: step; padding: 0 0 22px 48px; margin: 0; }
.steps > ol > li::before {
  content: counter(step);
  position: absolute;
  left: 0; top: -1px;
  display: grid;
  place-items: center;
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line-strong);
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
}
.steps > ol > li::after { content: ""; position: absolute; left: 14.5px; top: 34px; bottom: 4px; width: 1px; background: var(--line); }
.steps > ol > li:last-child::after { display: none; }

/* Settings reference */
.settings-ref {
  margin: 14px 0 22px;
  border-radius: var(--r-lg);
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line);
  overflow: hidden;
}
.settings-ref + .settings-ref, .settings-empty + .settings-ref, .settings-ref + .settings-empty { margin-top: -12px; }
.settings-ref summary {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  list-style: none;
  cursor: pointer;
  user-select: none;
  font-size: 14.5px;
  transition: background-color var(--t-fast) var(--ease);
  border-radius: var(--r-lg);
}
.settings-ref summary::-webkit-details-marker { display: none; }
.settings-ref summary:hover { background: var(--fog); }
.settings-ref[open] summary { border-radius: var(--r-lg) var(--r-lg) 0 0; box-shadow: inset 0 -1px 0 var(--line); }
.settings-ref__title { display: inline-flex; align-items: center; gap: 10px; color: var(--text); font-weight: 500; }
.settings-ref__title .icon { width: 17px; height: 17px; color: var(--muted); }
.settings-ref__count { display: inline-flex; align-items: center; gap: 8px; margin-left: auto; color: var(--muted); font-size: 13px; white-space: nowrap; }
.settings-ref__chev { transition: transform var(--t-slow) var(--ease-out); }
.settings-ref[open] .settings-ref__chev { transform: rotate(180deg); }
.settings-ref::details-content {
  block-size: 0;
  overflow: hidden;
  transition: block-size var(--t-slow) var(--ease-out), content-visibility var(--t-slow) allow-discrete;
}
.settings-ref[open]::details-content { block-size: auto; }
.settings-ref .table-wrap { margin: 0; border: 0; border-radius: 0; }
.settings-table { font-size: 14px !important; }
.settings-table th[scope="row"] { width: 42%; }
.settings-table .setting-label { display: block; }
.settings-table .setting-info { display: block; margin-top: 3px; color: var(--muted); font-weight: 400; font-size: 13px; line-height: 1.45; }
.settings-table .setting-values { color: var(--text-2); }
.settings-table .setting-default { white-space: nowrap; color: var(--text-2); }
.settings-table tr.group th { padding-top: 16px; background: var(--fog); color: var(--text); font-size: 12.5px; font-weight: 600; letter-spacing: .01em; }
.settings-table tr.note td { color: var(--muted); font-size: 13px; background: color-mix(in srgb, var(--fog) 50%, transparent); }
.settings-table code { font-size: .85em; }
.pill { display: inline-block; padding: 0 8px; border-radius: var(--pill); background: var(--fog); font-size: 12.5px; color: var(--muted); }
.pill--on { background: var(--accent-soft); color: var(--on-accent-soft); }
.swatch { display: inline-block; width: 12px; height: 12px; margin-right: 6px; border-radius: 3px; background: var(--c); box-shadow: inset 0 0 0 1px rgb(0 0 0 / .15); vertical-align: -1px; }
.settings-empty { display: flex; gap: 10px; align-items: center; margin: 14px 0 22px; padding: 11px 14px; border-radius: var(--r-lg); box-shadow: inset 0 0 0 1px var(--line); font-size: 14px; color: var(--muted); }
.settings-empty .icon { width: 17px; height: 17px; }

/* Help box and pager */
.help-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  max-width: 760px;
  margin: 56px 0 18px;
  padding: 18px 20px;
  border-radius: var(--r-lg);
  background: var(--fog);
}
.help-box p { margin: 0; color: var(--muted); font-size: 14.5px; }
.help-box a:not(.btn) { color: var(--text); }
.help-box__title { color: var(--text) !important; font-weight: 600; margin-bottom: 2px !important; }
.help-box .btn { flex: none; min-height: 40px; font-size: 14px; }

.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; max-width: 760px; }
.pager__link {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px 16px;
  border-radius: var(--r-lg);
  box-shadow: inset 0 0 0 1px var(--line);
  text-decoration: none;
  transition: box-shadow var(--t) var(--ease), background-color var(--t) var(--ease);
}
.pager__link:hover { box-shadow: inset 0 0 0 1px var(--line-strong); background: var(--surface); }
.pager__link--next { text-align: right; align-items: flex-end; }
.pager__dir { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 13px; }
.pager__dir .icon { width: 15px; height: 15px; transition: transform var(--t) var(--ease-out); }
.pager__link--prev:hover .icon { transform: translateX(-3px); }
.pager__link--next:hover .icon { transform: translateX(3px); }
.pager__title { color: var(--text); font-weight: 500; }

/* ---------- Simple pages ---------- */

.simple-main { width: 100%; padding: 56px var(--gutter) 96px; outline: none; }

.support-steps { display: grid; gap: 10px; margin: 0 0 28px; }
.support-step {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 18px;
  border-radius: var(--r-lg);
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line);
  text-decoration: none;
  color: var(--text-2);
  transition: box-shadow var(--t) var(--ease), transform var(--t) var(--ease-out);
}
.support-step:hover { box-shadow: inset 0 0 0 1px var(--line-strong), var(--shadow-card); transform: translateY(-1px); }
.support-step > span:nth-child(2) { display: flex; flex-direction: column; gap: 2px; font-size: 14.5px; color: var(--muted); }
.support-step strong { color: var(--text); font-size: 15.5px; font-weight: 500; }
.support-step__n { flex: none; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--accent-soft); color: var(--on-accent-soft); font-weight: 600; font-size: 14px; }
.support-step__arrow { margin-left: auto; color: var(--muted); transition: transform var(--t) var(--ease-out); }
.support-step:hover .support-step__arrow { transform: translateX(3px); color: var(--text); }

.form-card {
  margin: 28px 0 8px;
  padding: clamp(18px, 3vw, 28px);
  border-radius: var(--r-xl);
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line), var(--shadow-card);
}
/* Tally (free plan) only renders its light theme; in dark mode invert the frame so it sits on the dark card.
   invert(.9) maps white to about #1a1a1a and the dark text to about #d4d4d4; hue-rotate keeps the green accent green. */
:root[data-theme="dark"] .tally-frame { filter: invert(.9) hue-rotate(180deg); }
.tally-frame { display: block; width: 100%; border: 0; min-height: 520px; color-scheme: normal; }
.form-card__alt { margin: 12px 0 0 !important; font-size: 13.5px; color: var(--muted); }
.form-placeholder { display: grid; justify-items: center; gap: 4px; padding: 28px 8px; text-align: center; border: 1.5px dashed var(--line-strong); border-radius: var(--r-lg); }
.form-placeholder p { max-width: 480px; margin: 0 0 8px; }
.form-placeholder__icon { display: grid; place-items: center; width: 48px; height: 48px; margin-bottom: 8px; border-radius: 50%; background: var(--accent-soft); color: var(--on-accent-soft); }
.form-placeholder__icon .icon { width: 22px; height: 22px; }
.form-placeholder__title { color: var(--text); font-weight: 600; font-size: 1.05rem; }
.todo-note { display: inline-block; margin-top: 6px !important; padding: 2px 10px; border-radius: var(--pill); background: var(--warn-bg); color: var(--warn-icon); font-size: 12.5px; font-weight: 600; letter-spacing: .02em; }

.page-404 .simple-main { display: grid; place-items: center; text-align: center; }
.page-404 .prose--simple { max-width: 560px; }

/* ---------- Home ---------- */

.home, .theme-page { width: 100%; max-width: var(--page); margin: 0 auto; padding: 0 var(--gutter) 96px; outline: none; }

.hero { position: relative; padding: clamp(56px, 8vw, 104px) 0 clamp(48px, 6vw, 80px); }
.hero--visual { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.hero__inner { max-width: 760px; }
.hero__title + .hero__actions { margin-top: 8px; }
.hero__title {
  margin: 0 0 22px;
  font-size: clamp(2.6rem, 1.4rem + 4.6vw, 5rem);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: -.05em;
  text-wrap: balance;
}
.hero__lede { max-width: 620px; margin: 0 0 32px; color: var(--muted); font-size: clamp(1.05rem, 1rem + .35vw, 1.25rem); line-height: 1.6; text-wrap: pretty; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin: 0 0 26px; }
.section-head h2 { margin: 0; font-size: clamp(1.6rem, 1.2rem + 1.2vw, 2.1rem); font-weight: 500; letter-spacing: -.04em; line-height: 1.1; }
.section-head p { max-width: 520px; margin: 0; color: var(--muted); }

.theme-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 16px; }
.theme-card {
  display: flex;
  flex-direction: column;
  border-radius: var(--r-xl);
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line);
  overflow: hidden;
  transition: box-shadow var(--t) var(--ease), transform var(--t-slow) var(--ease-out);
}
.theme-card:not(.theme-card--soon):hover { box-shadow: inset 0 0 0 1px var(--line-strong), var(--shadow-card); transform: translateY(-3px); }
.theme-card__visual { display: block; padding: 24px 24px 0; background: var(--fog); border-bottom: 1px solid var(--line); overflow: hidden; }
.theme-card__visual .frame { border-radius: 12px 12px 0 0; transform: translateY(6px); transition: transform var(--t-slow) var(--ease-out); }
.theme-card:hover .theme-card__visual .frame { transform: none; }
.theme-card__visual--soon { display: grid; place-items: center; min-height: 240px; flex: 1; padding: 28px; }
.soon-lines { display: grid; gap: 10px; width: 60%; }
.soon-lines i { display: block; height: 12px; border-radius: var(--pill); background: var(--fog-2); animation: shimmer 2.4s var(--ease) infinite; }
.soon-lines i:nth-child(2) { width: 80%; animation-delay: .2s; }
.soon-lines i:nth-child(3) { width: 55%; animation-delay: .4s; }
@keyframes shimmer { 50% { opacity: .45; } }
.theme-card__body { padding: 22px 24px 24px; }
.theme-card__body p { margin: 0 0 12px; color: var(--muted); }
.theme-card__top { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.theme-card__top h3 { margin: 0; font-size: 1.35rem; font-weight: 500; letter-spacing: -.03em; }
.theme-card__top h3 a { text-decoration: none; }
.theme-card__top h3 a::after { content: ""; position: absolute; inset: 0; }
.theme-card { position: relative; }
.theme-card__demos { position: relative; z-index: 1; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0 0 16px !important; }
.theme-card__demos-label { margin-right: 4px; font-size: 13.5px; color: var(--muted); }
.theme-card__demos a { display: inline-flex; align-items: center; gap: 4px; height: 30px; padding: 0 12px; border-radius: var(--pill); background: var(--fog); box-shadow: inset 0 0 0 1px var(--line); color: var(--text); font-size: 13.5px; font-weight: 500; text-decoration: none; transition: box-shadow var(--t-fast) var(--ease), background-color var(--t-fast) var(--ease); }
.theme-card__demos a:hover { background: var(--surface); box-shadow: inset 0 0 0 1px var(--text); }
.theme-card__demos .icon--ext { width: 13px; height: 13px; margin: 0; }
.theme-card__links { position: relative; z-index: 1; display: flex; flex-wrap: wrap; gap: 16px; font-size: 14.5px; }
.theme-card__links a { color: var(--text); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line-strong); }
.theme-card__links a:hover { text-decoration-color: currentColor; }

.promises { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 72px; }
.promise { padding: 24px; border-radius: var(--r-xl); background: var(--fog); }
.promise__icon { width: 24px; height: 24px; margin-bottom: 18px; color: var(--accent); }
.promise h3 { margin: 0 0 6px; font-size: 1.1rem; font-weight: 500; letter-spacing: -.02em; }
.promise p { margin: 0 0 14px; color: var(--muted); font-size: 15px; }
.promise a { font-size: 14.5px; font-weight: 500; color: var(--text); text-underline-offset: 3px; text-decoration-color: var(--line-strong); }
.promise a:hover { text-decoration-color: currentColor; }

/* Home: full-height hero over the planet */
html, body { overflow-x: clip; }
.hero--space {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: calc(100vh - var(--header-h));
  min-height: calc(100svh - var(--header-h));
  max-height: 980px;
  padding: 48px 0 96px;
}
.space {
  position: absolute;
  top: 0; bottom: 0;
  left: 50%;
  z-index: -1;
  width: 100vw;
  height: 100%;
  transform: translateX(-50%);
  opacity: 0;
  transition: opacity 1.2s var(--ease);
  pointer-events: none;
}
.space.is-ready { opacity: 1; }
.hero--space .hero__title { max-width: 11.5ch; font-size: clamp(2.8rem, 1.2rem + 5.4vw, 6rem); }
.hero__scroll {
  position: absolute;
  left: 50%; bottom: 28px;
  display: grid; place-items: center;
  width: 40px; height: 40px;
  margin-left: -20px;
  border-radius: 50%;
  color: var(--muted);
  box-shadow: inset 0 0 0 1px var(--line-strong);
  background: color-mix(in srgb, var(--bg) 70%, transparent);
  transition: color var(--t) var(--ease), box-shadow var(--t) var(--ease);
  animation: nudge 2.6s var(--ease) 1.5s infinite;
}
.hero__scroll:hover { color: var(--text); box-shadow: inset 0 0 0 1px var(--text); }
@keyframes nudge { 0%, 70%, 100% { transform: none; } 80% { transform: translateY(4px); } 90% { transform: translateY(-1px); } }
@media (max-width: 760px) {
  .hero--space { justify-content: flex-start; padding-top: 56px; }
  .hero__scroll { display: none; }
}

.hero__pause {
  position: absolute;
  left: 0; bottom: 28px;
  display: inline-flex; align-items: center; gap: 8px;
  height: 36px; padding: 0 14px 0 10px;
  border: 0; border-radius: var(--pill);
  background: color-mix(in srgb, var(--bg) 70%, transparent);
  box-shadow: inset 0 0 0 1px var(--line-strong);
  color: var(--muted);
  font-size: 13.5px; font-weight: 500;
  cursor: pointer;
  transition: color var(--t) var(--ease), box-shadow var(--t) var(--ease);
}
.hero__pause:hover { color: var(--text); box-shadow: inset 0 0 0 1px var(--text); }
.hero__pause-icon { position: relative; width: 16px; height: 16px; }
.hero__pause-icon .icon { position: absolute; inset: 0; width: 16px; height: 16px; fill: currentColor; stroke: none; transition: opacity var(--t) var(--ease), transform var(--t) var(--ease-out); }
.hero__pause-play { opacity: 0; transform: scale(.6); }
.hero__pause[aria-pressed="true"] .hero__pause-pause { opacity: 0; transform: scale(.6); }
.hero__pause[aria-pressed="true"] .hero__pause-play { opacity: 1; transform: none; }
.no-js .hero__pause { display: none; }
@media (max-width: 760px) { .hero__pause { bottom: 20px; } }

.motion-switch {
  display: flex; align-items: center; gap: 10px;
  margin-top: 12px; padding: 4px 0;
  border: 0; background: none;
  color: var(--muted); font-size: 13.5px; font-weight: 500;
  cursor: pointer;
}
.motion-switch:hover { color: var(--text); }
.motion-switch__track { position: relative; width: 34px; height: 20px; border-radius: 99px; background: var(--fog-2); box-shadow: inset 0 0 0 1px var(--line-strong); transition: background-color var(--t) var(--ease); }
.motion-switch__thumb { position: absolute; top: 3px; left: 3px; width: 14px; height: 14px; border-radius: 50%; background: var(--surface); box-shadow: 0 1px 2px rgb(0 0 0 / .25); transition: transform var(--t) var(--ease-out); }
.motion-switch[aria-checked="true"] .motion-switch__track { background: var(--accent); box-shadow: none; }
.motion-switch[aria-checked="true"] .motion-switch__thumb { transform: translateX(14px); }
.site-footer__appearance { display: flex; flex-direction: column; align-items: flex-start; }

/* Screenshots in a quiet browser frame */
.frame { border-radius: 12px; background: var(--surface); box-shadow: 0 0 0 1px var(--line), var(--shadow-card); overflow: hidden; }
.frame__bar { display: flex; gap: 5px; padding: 9px 12px; background: var(--fog); border-bottom: 1px solid var(--line); }
.frame__bar span { width: 8px; height: 8px; border-radius: 50%; background: #ff5f57; box-shadow: inset 0 0 0 .5px rgb(0 0 0 / .12); }
.frame__bar span:nth-child(2) { background: #febc2e; }
.frame__bar span:nth-child(3) { background: #28c840; }
.frame__view { aspect-ratio: 16 / 10; overflow: hidden; background: var(--fog); }
.frame__view img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }

.collage { position: relative; display: block; aspect-ratio: 7 / 5; }
.collage__frame { position: absolute; width: 78%; transition: transform var(--t-slow) var(--ease-out), box-shadow var(--t-slow) var(--ease); }
.collage__frame--1 { left: 0; bottom: 0; z-index: 3; }
.collage__frame--2 { right: 0; top: 0; z-index: 1; width: 62%; }
.collage__frame--3 { right: 6%; bottom: 8%; z-index: 2; width: 52%; }
.collage:hover .collage__frame--1 { transform: translateY(-4px); }
.collage:hover .collage__frame--2 { transform: translate(6px, -6px); }
.collage:hover .collage__frame--3 { transform: translate(8px, 4px); }

.shots { position: relative; display: grid; }
.shots__item { grid-area: 1 / 1; position: relative; opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity var(--t-slow) var(--ease), transform var(--t-slow) var(--ease-out), visibility 0s linear var(--t-slow); }
.shots__item.is-active { opacity: 1; visibility: visible; transform: none; transition: opacity var(--t-slow) var(--ease), transform var(--t-slow) var(--ease-out), visibility 0s; }
.shots__phone { position: absolute; right: -16px; bottom: -30px; width: 24%; container-type: inline-size; }

/* iPhone-style mockup, all sizes in cqw (percent of the phone's width) so it scales as one piece */
.iphone {
  --status-bg: var(--sb-light, #fff); --status-fg: var(--sf-light, #000);
  position: relative;
  padding: 1.1cqw;
  border-radius: 17.5cqw;
  background: linear-gradient(135deg, #b9b9bd 0%, #5b5b60 18%, #8e8e93 42%, #3e3e43 68%, #a4a4a9 88%, #6a6a6f 100%);
  box-shadow: 0 0 0 .35cqw rgb(0 0 0 / .35), 0 30px 60px -18px rgb(0 0 0 / .45), 0 12px 24px -12px rgb(0 0 0 / .3);
}
:root[data-theme="dark"] .iphone { --status-bg: var(--sb-dark, #000); --status-fg: var(--sf-dark, #fff); }
.iphone__body { padding: 3.2cqw; border-radius: 16.4cqw; background: #050505; box-shadow: inset 0 0 0 .3cqw rgb(255 255 255 / .06); }
.iphone__screen { position: relative; aspect-ratio: 393 / 852; overflow: hidden; border-radius: 13cqw; background: var(--status-bg); }
.iphone__status {
  display: flex; align-items: center; justify-content: space-between;
  height: 12.6cqw; padding: 0 6.4cqw 0 9.5cqw;
  background: var(--status-bg); color: var(--status-fg);
}
.iphone__time { font: 600 4.1cqw/1 -apple-system, "SF Pro Text", system-ui, sans-serif; letter-spacing: -.01em; }
.iphone__island { position: absolute; top: 2.7cqw; left: 50%; width: 29cqw; height: 8.4cqw; border-radius: 99px; background: #000; transform: translateX(-50%); }
.iphone__icons { display: flex; align-items: center; gap: 1.4cqw; }
.iphone__icons svg { height: 2.9cqw; width: auto; fill: currentColor; }
.iphone__icons svg:last-child { height: 3.1cqw; }
.iphone__shot { width: 100%; }
.iphone__btn { position: absolute; width: 1.1cqw; border-radius: 1cqw; background: linear-gradient(90deg, #4a4a4f, #a9a9ae 45%, #5a5a5f); }
.iphone__btn--action { left: -.8cqw; top: 22cqw; height: 7cqw; }
.iphone__btn--up { left: -.8cqw; top: 34cqw; height: 13cqw; }
.iphone__btn--down { left: -.8cqw; top: 50cqw; height: 13cqw; }
.iphone__btn--power { right: -.8cqw; top: 38cqw; height: 20cqw; }
/* Light and dark screenshots of the same preset follow the site's appearance */
.shot-dark { display: none; }
:root[data-theme="dark"] .shot-light { display: none; }
:root[data-theme="dark"] .shot-dark { display: block; }
.no-js .shots__item:first-child { opacity: 1; visibility: visible; transform: none; }

/* ---------- Theme page ---------- */

.theme-hero { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 5vw, 72px); align-items: center; padding: clamp(40px, 6vw, 80px) 0 clamp(48px, 6vw, 88px); }
.theme-hero h1 { font-size: clamp(3rem, 2rem + 4vw, 5rem); letter-spacing: -.055em; margin-bottom: 18px; }
.facts { display: grid; grid-template-columns: repeat(4, auto); justify-content: start; gap: 28px; margin: 36px 0 0; padding-top: 22px; border-top: 1px solid var(--line); }
.facts div { display: flex; flex-direction: column-reverse; gap: 2px; }
.facts dt { color: var(--muted); font-size: 13px; }
.facts dd { margin: 0; font-size: 1.5rem; font-weight: 500; letter-spacing: -.03em; }
.theme-hero__visual { padding: 20px 20px 32px; border-radius: var(--r-xl); background: var(--fog); }
.preset-tabs { display: inline-flex; gap: 2px; margin: 0 0 16px; padding: 3px; border-radius: var(--pill); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.preset-tab { padding: 6px 14px; border: 0; border-radius: var(--pill); background: transparent; color: var(--muted); font-size: 14px; font-weight: 500; cursor: pointer; transition: background-color var(--t) var(--ease), color var(--t) var(--ease); }
.preset-tab:hover { color: var(--text); }
.preset-tab[aria-selected="true"] { background: var(--btn); color: var(--btn-text); }
.no-js .preset-tabs { display: none; }
.theme-hero--text { grid-template-columns: minmax(0, 760px); }

.preset-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.preset {
  display: flex;
  flex-direction: column;
  padding: 22px;
  border-radius: var(--r-xl);
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line);
  position: relative;
  transition: box-shadow var(--t) var(--ease), transform var(--t-slow) var(--ease-out);
}
.preset:hover { box-shadow: inset 0 0 0 1px var(--line-strong), var(--shadow-card); transform: translateY(-3px); }
.preset:has(.preset__link:focus-visible) { outline: 2px solid var(--focus); outline-offset: 3px; }
.preset.is-active { box-shadow: inset 0 0 0 1.5px var(--text); }
.preset__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.preset h3 { margin: 0; font-size: 1.25rem; font-weight: 500; letter-spacing: -.03em; }
.preset p { margin: 0 0 18px; color: var(--muted); flex: 1; }
.preset__link { display: inline-flex; align-items: center; gap: 6px; color: var(--text); font-weight: 500; font-size: 14.5px; text-decoration: none; }
.preset__link .icon { width: 16px; height: 16px; transition: transform var(--t) var(--ease-out); }
.preset__link::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.preset__link:focus-visible { outline: none; }
.preset:hover .preset__link .icon { transform: translate(2px, -2px); }
.presets, .features { margin-top: 24px; padding-top: 56px; }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--line); }
.feature { padding: 26px 26px 28px 0; border-bottom: 1px solid var(--line); }
.feature:not(:nth-child(3n + 1)) { padding-left: 26px; border-left: 1px solid var(--line); }
.feature__icon { width: 22px; height: 22px; margin-bottom: 14px; color: var(--accent); }
.feature h3 { margin: 0 0 6px; font-size: 1.05rem; font-weight: 500; letter-spacing: -.02em; }
.feature p { margin: 0; color: var(--muted); font-size: 15px; }

.cta-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 72px;
  padding: clamp(24px, 4vw, 40px);
  border-radius: var(--r-xl);
  background: var(--accent-soft-2);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 16%, transparent);
}
.cta-band h2 { margin: 0 0 4px; font-size: 1.5rem; font-weight: 500; letter-spacing: -.03em; }
.cta-band p { margin: 0; color: var(--muted); }
.cta-band__actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* ---------- Footer ---------- */

.site-footer { margin-top: auto; border-top: 1px solid var(--line); background: var(--fog); color: var(--muted); font-size: 14.5px; }
.site-footer__inner {
  display: grid;
  grid-template-columns: 1.4fr 1.2fr auto;
  gap: 40px;
  max-width: var(--page);
  margin: 0 auto;
  padding: 48px var(--gutter) 32px;
}
.site-footer__brand p { max-width: 320px; margin: 14px 0 0; }
.site-footer__cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.site-footer__cols div { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.site-footer__heading { margin: 0 0 4px; color: var(--text); font-weight: 600; font-size: 13px; }
.site-footer a:not(.brand) { color: var(--muted); text-decoration: none; transition: color var(--t-fast) var(--ease); }
.site-footer a:not(.brand):hover { color: var(--text); }
.site-footer .brand { color: var(--text); }
.site-footer__legal { max-width: var(--page); margin: 0 auto; padding: 18px var(--gutter) 32px; border-top: 1px solid var(--line); font-size: 13px; }
.site-footer__legal p { margin: 0 0 4px; }

.segmented { display: inline-flex; gap: 2px; padding: 3px; border-radius: var(--pill); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.segmented button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 32px;
  padding: 0 12px;
  border: 0;
  border-radius: var(--pill);
  background: transparent;
  color: var(--muted);
  font-size: 13.5px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color var(--t) var(--ease), color var(--t) var(--ease);
}
.segmented button .icon { width: 15px; height: 15px; }
.segmented button:hover { color: var(--text); }
.segmented button[aria-checked="true"] { background: var(--fog-2); color: var(--text); }
.no-js .site-footer__appearance { display: none; }

/* ---------- Back to top ---------- */

.to-top {
  position: fixed;
  right: max(16px, env(safe-area-inset-right));
  bottom: max(16px, env(safe-area-inset-bottom));
  z-index: 30;
  display: inline-flex; align-items: center; gap: 8px;
  height: 40px; padding: 0 16px 0 12px;
  border: 0; border-radius: var(--pill);
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  box-shadow: inset 0 0 0 1px var(--line), var(--shadow-card);
  color: var(--text-2);
  font-size: 13.5px; font-weight: 500;
  cursor: pointer;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity var(--t) var(--ease-out), transform var(--t) var(--ease-out), box-shadow var(--t) var(--ease), color var(--t) var(--ease);
}
.to-top.is-visible { opacity: 1; transform: none; }
.to-top:hover { color: var(--text); box-shadow: inset 0 0 0 1px var(--line-strong), var(--shadow-card); }
.to-top__icon { width: 16px; height: 16px; transform: rotate(90deg); transition: transform var(--t) var(--ease-out); }
.to-top:hover .to-top__icon { transform: rotate(90deg) translateX(-2px); }
.no-js .to-top { display: none; }
@media (max-width: 720px) { .to-top { padding: 0; width: 40px; justify-content: center; } .to-top span { display: none; } }

/* ---------- Search dialog ---------- */

.search {
  width: min(680px, calc(100% - 24px));
  max-width: none;
  max-height: none;
  margin: 10vh auto auto;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--text);
  overflow: visible;
}
.search::backdrop {
  background: rgb(14 16 15 / .32);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  opacity: 0;
  transition: opacity var(--t) var(--ease-out);
}
.search.is-open::backdrop { opacity: 1; }
.search__panel {
  display: flex;
  flex-direction: column;
  max-height: min(620px, 78vh);
  border-radius: var(--r-xl);
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line), var(--shadow-pop);
  overflow: hidden;
  opacity: 0;
  transform: translateY(-8px) scale(.985);
  transition: opacity var(--t) var(--ease-out), transform var(--t) var(--ease-out);
}
.search.is-open .search__panel { opacity: 1; transform: none; }
.search__field { display: flex; align-items: center; gap: 12px; padding: 0 12px 0 18px; border-bottom: 1px solid var(--line); }
.search__field > .icon { width: 20px; height: 20px; color: var(--muted); }
.search__input {
  flex: 1;
  min-width: 0;
  height: 58px;
  border: 0;
  background: transparent;
  color: var(--text);
  font: 400 17px var(--font);
  outline: none;
}
.search__input::placeholder { color: var(--muted); }
.search__input::-webkit-search-cancel-button { display: none; }
.search__close { border: 0; background: transparent; padding: 6px; cursor: pointer; border-radius: 6px; }
.search__scope { display: flex; flex-wrap: wrap; gap: 6px; padding: 10px 14px 0; }
.search__scope[hidden] { display: none; }
.search__chip { height: 30px; padding: 0 12px; border: 0; border-radius: var(--pill); background: var(--fog); box-shadow: inset 0 0 0 1px var(--line); color: var(--muted); font-size: 13px; font-weight: 500; cursor: pointer; transition: background-color var(--t-fast) var(--ease), color var(--t-fast) var(--ease); }
.search__chip:hover { color: var(--text); }
.search__chip[aria-checked="true"] { background: var(--btn); color: var(--btn-text); box-shadow: none; }
.search__results { overflow-y: auto; overscroll-behavior: contain; padding: 8px; min-height: 120px; }
.search__group { margin: 6px 10px 4px; font-size: 12px; font-weight: 600; color: var(--muted); }
.search__item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  color: var(--text);
  text-decoration: none;
  scroll-margin: 8px;
}
.search__item .icon { width: 17px; height: 17px; margin-top: 2px; color: var(--muted); }
.search__item[aria-selected="true"] { background: var(--fog); }
.search__item[aria-selected="true"] .search__go { opacity: 1; transform: none; }
.search__text { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.search__title { font-weight: 500; font-size: 15px; }
.search__crumb { color: var(--muted); font-size: 12.5px; }
.search__snippet { color: var(--muted); font-size: 13.5px; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.search__item mark { background: var(--mark); color: var(--text); border-radius: 3px; padding: 0 1px; }
.search__go { opacity: 0; transform: translateX(-4px); transition: opacity var(--t-fast) var(--ease), transform var(--t-fast) var(--ease-out); }
.search__empty { padding: 32px 16px; text-align: center; color: var(--muted); }
.search__empty strong { color: var(--text); }
.search__foot { display: flex; gap: 18px; padding: 10px 18px; border-top: 1px solid var(--line); background: var(--fog); font-size: 12.5px; color: var(--muted); }
.search__foot kbd { margin-right: 3px; }

/* ---------- Motion ---------- */

[data-reveal] { animation: reveal .6s var(--ease-out) both; }
.home > [data-reveal]:nth-child(2), .theme-page > [data-reveal]:nth-child(2) { animation-delay: .08s; }
.home > [data-reveal]:nth-child(3), .theme-page > [data-reveal]:nth-child(3) { animation-delay: .16s; }
@keyframes reveal { from { opacity: 0; transform: translateY(10px); } }

@supports (animation-timeline: view()) {
  .home > [data-reveal]:nth-child(n + 2), .theme-page > [data-reveal]:nth-child(n + 3) {
    animation: reveal linear both;
    animation-timeline: view();
    animation-range: entry 0% entry 40%;
  }
}

/* Theme switch: a crossfade by default; from a button, the new mode grows as a circle from it (see site.js) */
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .32s; animation-timing-function: var(--ease); }
html.is-mode-transition::view-transition-old(root),
html.is-mode-transition::view-transition-new(root) { animation: none; mix-blend-mode: normal; }

/* Reduced motion: set by the visitor's system or by the Animations switch (data-motion on <html>).
   Without JavaScript the system setting applies through the media query. */
html[data-motion="reduced"] *, html[data-motion="reduced"] *::before, html[data-motion="reduced"] *::after {
  animation-duration: .01ms !important;
  animation-iteration-count: 1 !important;
  animation-delay: 0s !important;
  transition-duration: .01ms !important;
  scroll-behavior: auto !important;
}
html[data-motion="reduced"] [data-reveal] { animation: none !important; }
@media (prefers-reduced-motion: reduce) {
  html:not([data-motion]) *, html:not([data-motion]) *::before, html:not([data-motion]) *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    animation-delay: 0s !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
  html:not([data-motion]) [data-reveal] { animation: none !important; }
}

/* ---------- Responsive ---------- */

@media (max-width: 1200px) {
  .docs-layout { grid-template-columns: 248px minmax(0, 1fr); }
  .docs-toc { display: none; }
  .search-trigger { width: 220px; }
}

@media (max-width: 960px) {
  .nav-toggle { display: inline-grid; }
  .docs-layout { grid-template-columns: minmax(0, 1fr); }
  .docs-sidebar {
    position: fixed;
    top: 0; left: 0; bottom: 0;
    z-index: 60;
    width: min(320px, 86vw);
    height: 100%;
    padding: 16px 16px 40px;
    background: var(--surface);
    border-right: 1px solid var(--line);
    box-shadow: var(--shadow-pop);
    transform: translateX(-102%);
    visibility: hidden;
    transition: transform var(--t-slow) var(--ease-out), visibility 0s linear var(--t-slow);
  }
  .docs-sidebar.is-open { transform: none; visibility: visible; transition: transform var(--t-slow) var(--ease-out), visibility 0s; }
  /* Theme name, version and the close button stay at the top while the drawer scrolls */
  .docs-sidebar__head {
    position: sticky;
    top: -16px;
    z-index: 1;
    margin: -16px -16px 12px;
    padding: 12px 12px 12px 28px;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
  }
  .docs-sidebar__head .icon-btn { display: inline-grid; }
  .docs-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 55;
    background: rgb(14 16 15 / .36);
    opacity: 0;
    transition: opacity var(--t-slow) var(--ease-out);
  }
  .docs-backdrop.is-open { opacity: 1; }
  .docs-backdrop[hidden] { display: none; }
  .docs-main { padding-top: 28px; }
  .theme-hero { grid-template-columns: 1fr; }
  .theme-cards { grid-template-columns: 1fr; }
  .hero--visual { grid-template-columns: 1fr; }
  .preset-grid { grid-template-columns: 1fr; }
  .promises { grid-template-columns: 1fr; }
  .feature-grid { grid-template-columns: 1fr 1fr; }
  .feature, .feature:not(:nth-child(3n + 1)) { padding: 24px 22px 24px 0; border-left: 0; }
  .feature:nth-child(even) { padding-left: 22px; border-left: 1px solid var(--line); }
  .site-footer__inner { grid-template-columns: 1fr 1fr; }
  .site-footer__appearance { grid-column: 1 / -1; }
  .anchor { display: none; }
}

@media (max-width: 720px) {
  :root { --header-h: 56px; }
  .site-nav { margin-left: auto; }
  .site-nav__link { padding: 6px 9px; font-size: 14.5px; }
  .site-nav__link[aria-current="page"]::after { bottom: -9px; left: 9px; right: 9px; }
  .site-nav__link[href="/index/"] { display: none; }
  .site-header__tools { margin-left: 0; gap: 2px; }
  .search-trigger { width: 40px; height: 40px; padding: 0; justify-content: center; background: transparent; box-shadow: none; color: var(--text-2); }
  .search-trigger .icon { width: 20px; height: 20px; }
  .search-trigger__label, .search-trigger__kbd { display: none; }
  .brand__name { font-size: 16px; }
  .cards { grid-template-columns: 1fr; }
  .help-box { flex-direction: column; align-items: flex-start; }
  .pager { grid-template-columns: 1fr; }
  .section-head { flex-direction: column; align-items: flex-start; gap: 8px; }
  .facts { grid-template-columns: repeat(2, auto); gap: 18px 36px; }
  .feature-grid { grid-template-columns: 1fr; }
  .feature, .feature:nth-child(even), .feature:not(:nth-child(3n + 1)) { padding: 22px 0; border-left: 0; }
  .cta-band { flex-direction: column; align-items: flex-start; }
  .site-footer__inner { grid-template-columns: 1fr; gap: 28px; }
  .theme-card__visual { padding: 18px 18px 0; }
  .search { margin-top: 12px; }
  .search__panel { max-height: calc(100dvh - 24px); }
  .search__foot { display: none; }
  .simple-main { padding-top: 36px; }

  /* settings tables become stacked rows */
  .settings-table thead { display: none; }
  .settings-table, .settings-table tbody, .settings-table tr, .settings-table th, .settings-table td { display: block; width: 100% !important; }
  .settings-table tr { padding: 10px 14px; border-bottom: 1px solid var(--line); }
  .settings-table tbody tr:last-child { border-bottom: 0; }
  .settings-table th, .settings-table td { padding: 0 !important; border: 0 !important; }
  .settings-table td.setting-values { margin-top: 6px; font-size: 13.5px; }
  .settings-table td.setting-values::before { content: "Options: "; color: var(--muted); }
  .settings-table td.setting-default { margin-top: 2px; font-size: 13.5px; white-space: normal; }
  .settings-table td.setting-default::before { content: "Default: "; color: var(--muted); }
  .settings-table tr.group { background: var(--fog); padding-top: 12px; padding-bottom: 8px; }
  .settings-table tr.group th { background: none; padding: 0 !important; }
  .settings-table tr.note td::before { content: none; }
}

@media (max-width: 400px) {
  .site-nav__link { padding: 6px 7px; }
  .brand__name { display: none; }
}

@media print {
  .site-header, .docs-sidebar, .docs-toc, .site-footer, .help-box, .pager, .search, .copy-btn, .md-link { display: none !important; }
  .docs-layout { display: block; }
  .settings-ref::details-content { block-size: auto; content-visibility: visible; }
  body { background: #fff; color: #000; }
}
