/* Site Haus docs: a calm, readable reference. Light and dark follow the system and can be switched. */
/* Site Haus docs: a clean, product-style reference. Light and dark follow the system and can be switched. */
:root { --bg: #FFFFFF; --card: #FFFFFF; --soft: #F4F4F5; --line: #E7E7E9; --fg: #0F0F10; --muted: #6A6A72; --faint: #92929A; --accent: #0F0F10; --link: #0F0F10; --code: #F6F6F7; --warn: #B45309; --ok: #1F7A55; --info: #2F5D8C; --shadow: 0 8px 30px rgba(0,0,0,.07); --serif: "Geist", system-ui, -apple-system, sans-serif; --sans: "Geist", system-ui, -apple-system, sans-serif; --mono: "Geist Mono", ui-monospace, Menlo, monospace; --sidew: 304px; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --bg: #0C0C0D; --card: #121214; --soft: #1A1A1D; --line: #26262A; --fg: #F4F4F5; --muted: #9D9DA6; --faint: #70707A; --accent: #F4F4F5; --link: #F4F4F5; --code: #151517; --warn: #E2A24A; --ok: #6FCB9F; --info: #8DB4E0; --shadow: 0 8px 30px rgba(0,0,0,.5); } }
:root[data-theme="dark"] { --bg: #0C0C0D; --card: #121214; --soft: #1A1A1D; --line: #26262A; --fg: #F4F4F5; --muted: #9D9DA6; --faint: #70707A; --accent: #F4F4F5; --link: #F4F4F5; --code: #151517; --warn: #E2A24A; --ok: #6FCB9F; --info: #8DB4E0; --shadow: 0 8px 30px rgba(0,0,0,.5); }
* { box-sizing: border-box; } html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body { margin: 0; background: var(--bg); color: var(--fg); font: 400 15.5px/1.65 var(--sans); -webkit-font-smoothing: antialiased; }
a { color: var(--link); text-underline-offset: 3px; } a:hover { text-decoration-thickness: 2px; } .sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
.top { display: none; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--fg); text-decoration: none; font: 600 17px var(--sans); letter-spacing: -.01em; } .brand .mark { width: 26px; height: 26px; border-radius: 8px; background: var(--fg); display: grid; place-items: center; color: var(--bg); font: 700 14px var(--sans); }
.brand .tag { font: 500 12px var(--sans); color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 1px 9px; }
.seg { display: inline-flex; gap: 2px; padding: 3px; border: 1px solid var(--line); border-radius: 999px; background: var(--soft); } .seg button { border: 0; background: transparent; color: var(--muted); width: 30px; height: 26px; border-radius: 999px; display: grid; place-items: center; cursor: pointer; } .seg button:hover { color: var(--fg); } .seg button[aria-pressed="true"] { background: var(--bg); color: var(--fg); box-shadow: 0 0 0 1px var(--line); }
.sidehead { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 22px 24px 4px; }
.sidesearch { display: flex; align-items: center; gap: 10px; margin: 16px 24px 6px; width: calc(100% - 48px); height: 44px; padding: 0 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--bg); color: var(--muted); font: 400 15px var(--sans); cursor: pointer; text-align: left; } .sidesearch:hover { border-color: var(--faint); } .sidesearch span { flex: 1; } .sidesearch kbd { font: 500 12px var(--mono); border: 0; background: none; padding: 0; color: var(--faint); }
.mobtools { display: none; }
.wrap { display: grid; grid-template-columns: var(--sidew) minmax(0, 1fr) 232px; gap: clamp(24px, 4vw, 64px); max-width: 1560px; margin: 0 auto; padding-right: clamp(16px, 3vw, 40px); }
.side { position: sticky; top: 0; align-self: start; height: 100vh; display: flex; flex-direction: column; border-right: 1px solid var(--line); font-size: 15px; }
.navscroll { flex: 1; overflow: auto; padding: 10px 24px 24px; scrollbar-width: thin; }
.nsec { margin: 22px 0 0; } .nh { display: block; font: 600 15px var(--sans); color: var(--fg); text-decoration: none; margin: 0 0 8px; }
.nsec ul { list-style: none; margin: 0; padding: 0 0 0 0; border-left: 1px solid var(--line); } .nsec li a { display: block; position: relative; padding: 7px 0 7px 18px; margin-left: -1px; border-left: 1px solid transparent; color: var(--muted); text-decoration: none; line-height: 1.35; } .nsec li a:hover { color: var(--fg); border-left-color: var(--faint); } .nsec li a.on { color: var(--fg); font-weight: 600; border-left-color: var(--fg); }
.sidefoot { border-top: 1px solid var(--line); padding: 10px 24px 14px; } .sidefoot a { display: flex; align-items: center; justify-content: space-between; padding: 9px 0; color: var(--fg); text-decoration: none; font-size: 15px; } .sidefoot a svg { color: var(--muted); } .sidefoot a:hover svg { color: var(--fg); }
.main { min-width: 0; padding: 48px 0 60px; max-width: 760px; } .toc { position: sticky; top: 24px; align-self: start; max-height: calc(100vh - 110px); overflow: auto; padding: 48px 0 30px; font-size: 13.5px; } .toc b { display: block; font: 600 12px var(--sans); letter-spacing: .07em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.toc ul { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--line); } .toc li a { display: block; padding: 3px 0 3px 12px; margin-left: -1px; border-left: 2px solid transparent; color: var(--muted); text-decoration: none; line-height: 1.4; } .toc li.l3 a { padding-left: 26px; } .toc li a:hover { color: var(--fg); } .toc li a.on { color: var(--fg); border-left-color: var(--accent); font-weight: 500; }
.crumbs { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; font-size: 13px; color: var(--muted); margin-bottom: 14px; } .crumbs a { color: var(--muted); text-decoration: none; } .crumbs a:hover { color: var(--fg); } .crumbs i { display: grid; opacity: .6; }
h1 { font: 600 clamp(30px, 4vw, 38px)/1.15 var(--serif); letter-spacing: -.025em; margin: 0 0 10px; } .doc h2, .main h2 { font: 600 24px/1.3 var(--serif); letter-spacing: -.015em; margin: 2.1em 0 .5em; } .doc h3 { font: 600 17px/1.35 var(--sans); margin: 1.7em 0 .4em; } .doc h4 { font: 600 15px var(--sans); margin: 1.4em 0 .3em; }
.anchor { margin-left: 8px; color: var(--faint); text-decoration: none; font-weight: 400; opacity: 0; transition: opacity .15s; } h2:hover .anchor, h3:hover .anchor, h4:hover .anchor, .anchor:focus { opacity: 1; }
.lede { font-size: 18px; line-height: 1.6; color: var(--muted); margin: 0 0 1.4em; max-width: 62ch; } .planline { display: inline-block; font: 600 12px var(--sans); color: var(--ok); background: color-mix(in srgb, var(--ok) 12%, transparent); border-radius: 999px; padding: 3px 11px; margin: 0 0 10px; }
.doc p, .doc li { max-width: 72ch; } .doc ul, .doc ol { padding-left: 1.4em; } .doc li { margin: .3em 0; } .doc li > ul, .doc li > ol { margin: .3em 0; }
.doc ol.steps { list-style: none; counter-reset: s; padding-left: 0; } .doc ol.steps > li { counter-increment: s; position: relative; padding-left: 40px; margin: 1em 0; } .doc ol.steps > li::before { content: counter(s); position: absolute; left: 0; top: 1px; width: 26px; height: 26px; border-radius: 50%; background: var(--fg); color: var(--bg); font: 600 13px/26px var(--sans); text-align: center; }
code { font: 500 .88em var(--mono); background: var(--code); border: 1px solid var(--line); border-radius: 6px; padding: 1px 6px; } .code { position: relative; margin: 1.1em 0; } .code pre { margin: 0; background: var(--code); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; overflow: auto; font: 400 13.5px/1.6 var(--mono); } .code pre code { background: none; border: 0; padding: 0; font: inherit; }
.copy { position: absolute; top: 8px; right: 8px; font: 500 12px var(--sans); border: 1px solid var(--line); background: var(--card); color: var(--muted); border-radius: 8px; padding: 3px 9px; cursor: pointer; opacity: 0; transition: opacity .15s; } .code:hover .copy, .copy:focus { opacity: 1; }
kbd { font: 500 12.5px var(--mono); background: var(--card); border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 6px; padding: 1px 7px; white-space: nowrap; } .plus { color: var(--faint); margin: 0 3px; }
.table { overflow: auto; margin: 1.2em 0; border: 1px solid var(--line); border-radius: 12px; } table { border-collapse: collapse; width: 100%; font-size: 14.5px; } th, td { text-align: left; padding: 9px 14px; border-bottom: 1px solid var(--line); vertical-align: top; } th { background: var(--soft); font-weight: 600; font-size: 13px; } tr:last-child td { border-bottom: 0; }
blockquote { margin: 1.2em 0; padding: 2px 18px; border-left: 3px solid var(--line); color: var(--muted); } hr { border: 0; border-top: 1px solid var(--line); margin: 2.2em 0; } img { max-width: 100%; border-radius: 12px; border: 1px solid var(--line); }
.callout { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; margin: 1.3em 0; padding: 14px 16px; border: 1px solid var(--line); border-left-width: 4px; border-radius: 12px; background: var(--card); max-width: 72ch; } .callout p { margin: 0 0 .5em; } .callout p:last-child { margin: 0; } .callout-t { font: 700 12px var(--sans); letter-spacing: .05em; text-transform: uppercase; padding-top: 3px; }
.callout-tip { border-left-color: var(--ok); } .callout-tip .callout-t { color: var(--ok); } .callout-note { border-left-color: var(--info); } .callout-note .callout-t { color: var(--info); } .callout-important, .callout-warning { border-left-color: var(--warn); } .callout-important .callout-t, .callout-warning .callout-t { color: var(--warn); } .callout-plan { border-left-color: var(--accent); } .callout-plan .callout-t { color: var(--muted); }
.hero { padding: 36px 0 18px; } .eyebrow { font: 600 12px var(--sans); letter-spacing: .09em; text-transform: uppercase; color: var(--muted); margin: 0 0 10px; } .bigsearch { position: relative; max-width: 560px; margin: 18px 0 8px; } .bigsearch input { padding: 14px 16px 14px 42px; font-size: 16px; border-radius: 14px; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; margin: 26px 0 10px; } .card { display: grid; gap: 6px; align-content: start; padding: 18px; border: 1px solid var(--line); border-radius: 16px; background: var(--card); text-decoration: none; color: var(--fg); transition: transform .15s, box-shadow .15s, border-color .15s; } .card:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: var(--accent); }
.card b { font: 600 17px var(--serif); } .card span { color: var(--muted); font-size: 14px; line-height: 1.5; } .card small { color: var(--faint); font-size: 12px; margin-top: 4px; }
.start { margin-top: 2em !important; } .startlist, .results { list-style: none; margin: 14px 0; padding: 0; display: grid; gap: 10px; } .startlist a, .results a { display: grid; gap: 3px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--card); text-decoration: none; color: var(--fg); } .startlist a:hover, .results a:hover { border-color: var(--accent); }
.startlist b, .results b { font-weight: 600; } .startlist span, .results span { color: var(--muted); font-size: 14px; } .results small { color: var(--faint); font-size: 12px; text-transform: uppercase; letter-spacing: .05em; } .empty { color: var(--muted); } .plan { font: 600 11px var(--sans); font-style: normal; color: var(--ok); margin-left: 8px; }
.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 48px; } .pager a { display: grid; gap: 2px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 14px; text-decoration: none; color: var(--fg); background: var(--card); } .pager a:hover { border-color: var(--accent); } .pager .next { text-align: right; grid-column: 2; } .pager small { color: var(--faint); font-size: 12px; text-transform: uppercase; letter-spacing: .05em; }
.foot { display: flex; gap: 22px; flex-wrap: wrap; justify-content: center; padding: 26px 16px 40px; color: var(--muted); font-size: 13.5px; border-top: 1px solid var(--line); margin-top: 20px; } .foot a { color: var(--muted); }
/* the search overlay */
.sov { position: fixed; inset: 0; z-index: 60; background: rgba(20,18,14,.5); display: grid; justify-items: center; align-content: start; padding: 11vh 16px 0; } .sov[hidden] { display: none; } .spanel { width: min(640px, 100%); background: var(--card); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); overflow: hidden; }
.spanel input { width: 100%; border: 0; border-bottom: 1px solid var(--line); background: transparent; color: var(--fg); font: 400 17px var(--sans); padding: 18px 20px; } .spanel input:focus { outline: none; } .sres { list-style: none; margin: 0; padding: 6px; max-height: 52vh; overflow: auto; } .sres a { display: grid; gap: 2px; padding: 10px 14px; border-radius: 10px; text-decoration: none; color: var(--fg); } .sres a:hover, .sres a[aria-selected="true"] { background: var(--soft); } .sres b { font-weight: 600; font-size: 15px; } .sres small { color: var(--faint); } .sres span { color: var(--muted); font-size: 13.5px; } .snone { padding: 18px 20px; color: var(--muted); }
/* No "On this page" list: the page uses the whole width instead of leaving an empty column */
@media (min-width: 861px) { .wrap.notoc { grid-template-columns: var(--sidew) minmax(0, 1fr); } .wrap.notoc .toc { display: none; } .wrap.notoc .main { max-width: none; } }
@media (max-width: 1180px) { .wrap { grid-template-columns: var(--sidew) minmax(0, 1fr); } .toc { display: none; } }
@media (max-width: 860px) { .wrap { grid-template-columns: minmax(0, 1fr); padding: 0 16px; } .top { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 12px; height: 56px; margin: 0 -16px; padding: 0 16px; background: var(--bg); border-bottom: 1px solid var(--line); } .top .menu { display: grid; place-items: center; width: 36px; height: 36px; border: 1px solid var(--line); background: var(--card); color: var(--fg); border-radius: 10px; cursor: pointer; } .top .brand { margin-right: auto; }
  .side { position: fixed; z-index: 40; inset: 56px auto 0 0; height: calc(100dvh - 56px); width: min(88vw, 340px); background: var(--bg); transform: translateX(-102%); transition: transform .2s; } .side.open { transform: none; box-shadow: var(--shadow); } .main { padding-top: 22px; } .pager { grid-template-columns: 1fr; } .pager .next { grid-column: auto; } }
@media print { .top, .side, .sidehead, .toc, .foot, .pager, .copy { display: none !important; } .wrap { display: block; } body { background: #fff; color: #000; } }
.si2 { display: grid; flex: none; } .sidesearch .si2 { color: var(--fg); }
.sidesearch span { flex: 0 1 auto; } .sidesearch span:nth-of-type(2) { flex: 1; } .sidesearch .si2 { flex: none; }
.sidehead .brand { white-space: nowrap; gap: 8px; font-size: 16px; } .sidehead .brand .tag { font-size: 11px; padding: 0 7px; }
.bigsearch { position: relative; } .bigsearch input { width: 100%; font: 400 15px var(--sans); color: var(--fg); background: var(--bg); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px 14px 44px; } .bigsearch input::placeholder { color: var(--faint); } .bigsearch input:focus { outline: none; border-color: var(--fg); box-shadow: 0 0 0 3px color-mix(in srgb, var(--fg) 12%, transparent); }
.si { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); color: var(--faint); display: grid; pointer-events: none; }
.hero { padding-top: 0; }

/* Back to the app */
.backapp { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 500; color: var(--muted, #6b6b6b); text-decoration: none; padding: 5px 9px 5px 6px; border-radius: 8px; width: max-content; } .backapp:hover { color: var(--fg, #111); background: color-mix(in srgb, currentColor 8%, transparent); } .backapp svg { flex: none; }
.side > .backapp { margin: 18px 0 0 18px; }
.top .backapp { margin-left: auto; }

/* "On this page" sits in the vertical middle of the window and stays there as the page scrolls */
@media (min-width: 1181px) { .toc { top: 0; height: 100vh; max-height: none; padding: 24px 0; display: flex; flex-direction: column; } .toc b { margin-top: auto; } .toc ul { margin-bottom: auto; } }

/* pictures with a caption, and the picture at the top of a page */
figure { margin: 1.5em 0; } figure img { display: block; width: 100%; height: auto; } figcaption { margin-top: 9px; font-size: 13.5px; line-height: 1.5; color: var(--muted); text-align: center; }
figure.hero { margin: 1.2em 0 1.8em; } figure.hero img { box-shadow: 0 10px 30px rgba(0,0,0,.08); }
