/* The help site's look: the portal's family (its type, its blue, its warm
   greys) at reading measure. The faces are the portal's own files, which
   the build copies under /static/fonts/ for the specimens anyway. */

@font-face { font-family: "IBM Plex Sans"; font-weight: 400; font-style: normal; font-display: swap; src: url("/static/fonts/ibm-plex-sans-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-weight: 500; font-style: normal; font-display: swap; src: url("/static/fonts/ibm-plex-sans-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-weight: 600; font-style: normal; font-display: swap; src: url("/static/fonts/ibm-plex-sans-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-weight: 400; font-style: normal; font-display: swap; src: url("/static/fonts/ibm-plex-mono-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-weight: 500; font-style: normal; font-display: swap; src: url("/static/fonts/ibm-plex-mono-latin-500-normal.woff2") format("woff2"); }

:root {
	--bg: #f8f7f5;
	--surface: #ffffff;
	--sunk: #f2f0ed;
	--ink: #15151a;
	--body: #3d3b42;
	--muted: #5a5860;
	--faint: #6f6b68;
	--line: #e5e1dc;
	--hair: #eeebe6;
	--accent: #0060a8;
	--accent-fill: #0072c6;
	--accent-soft: #e8f4ff;
	--accent-line: #c6e2fb;
	--attn: #7a4500;
	--attn-soft: #fdf1e0;
	--attn-line: #f3d9b0;
	--solid: #15151a;
	--solid-ink: #ffffff;
	--code: #101014;
	--code-ink: #f2f1ef;
	--code-line: #26262e;
	--sans: "IBM Plex Sans", "Helvetica Neue", Helvetica, Arial, system-ui, sans-serif;
	--mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
	color-scheme: light;
}

@media (prefers-color-scheme: dark) {
	:root:not([data-theme="light"]) {
		--bg: #0b0b0e; --surface: #141419; --sunk: #101014; --ink: #f4f3f1; --body: #c9c6cc; --muted: #a3a0a8; --faint: #8c8990;
		--line: #26262e; --hair: #1e1e25; --accent: #8ed2ff; --accent-soft: #0d2436; --accent-line: #16405e;
		--attn: #dfa03c; --attn-soft: #2a2013; --attn-line: #4a3517; --solid: #f4f3f1; --solid-ink: #15151a;
		--code: #08080a; --code-line: #26262e;
		color-scheme: dark;
	}
}
:root[data-theme="dark"] {
	--bg: #0b0b0e; --surface: #141419; --sunk: #101014; --ink: #f4f3f1; --body: #c9c6cc; --muted: #a3a0a8; --faint: #8c8990;
	--line: #26262e; --hair: #1e1e25; --accent: #8ed2ff; --accent-soft: #0d2436; --accent-line: #16405e;
	--attn: #dfa03c; --attn-soft: #2a2013; --attn-line: #4a3517; --solid: #f4f3f1; --solid-ink: #15151a;
	--code: #08080a; --code-line: #26262e;
	color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 15px/1.55 var(--sans); }
a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { text-wrap: balance; }
code, kbd, pre { font-family: var(--mono); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--solid); color: var(--solid-ink); padding: 8px 12px; border-radius: 6px; z-index: 10; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--accent-fill); outline-offset: 2px; }
.muted { color: var(--muted); }
.faint { color: var(--faint); }

/* The bar */
.bar { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 5; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 20px; min-height: 64px; padding: 10px 20px; background: var(--surface); border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 10px; width: 236px; }
.brand:hover { text-decoration: none; }
.brand-mark { width: 28px; height: 28px; border-radius: 7px; background: var(--solid); color: var(--solid-ink); display: grid; place-items: center; font-weight: 600; font-size: 15px; }
.brand-name { font-weight: 600; font-size: 17px; letter-spacing: -0.01em; }
.brand-sub { color: var(--faint); font-size: 15px; }
.bar-r { margin-left: auto; display: flex; gap: 8px; align-items: center; }
.btn { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 8px; border: 1px solid var(--line); font: 500 14px var(--sans); }
.btn:hover { text-decoration: none; }
.btn.solid { background: var(--solid); color: var(--solid-ink); border-color: var(--solid); }
.icon-btn, .menu { width: 44px; height: 44px; border-radius: 8px; border: 1px solid var(--line); background: transparent; color: var(--ink); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.menu { display: none; }
.i-moon { display: block; } .i-sun { display: none; }
:root[data-theme="dark"] .i-moon { display: none; } :root[data-theme="dark"] .i-sun { display: block; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .i-moon { display: none; } :root:not([data-theme="light"]) .i-sun { display: block; } }

/* Search */
.search { position: relative; flex: 1 1 260px; max-width: 520px; display: flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 12px; background: var(--sunk); border: 1px solid var(--line); border-radius: 8px; color: var(--faint); }
.search input { flex: 1; min-width: 0; border: 0; outline: none; background: transparent; color: var(--ink); font: 14px var(--sans); }
.search kbd { font-size: 11px; border: 1px solid var(--line); border-radius: 4px; padding: 1px 6px; }
.search.big { flex: none; width: 100%; max-width: 680px; min-height: 52px; border-radius: 10px; background: var(--bg); }
.search.big input { font-size: 16px; }
.results { position: absolute; left: -1px; right: -1px; top: calc(100% + 6px); margin: 0; padding: 6px; list-style: none; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 12px 32px -12px rgba(21, 21, 26, 0.3); max-height: 60vh; overflow: auto; z-index: 6; }
.results a { display: flex; flex-direction: column; gap: 1px; padding: 9px 10px; border-radius: 6px; color: var(--ink); }
.results a:hover, .results a[aria-selected="true"] { background: var(--sunk); text-decoration: none; }
.results .r-w { font-size: 12px; color: var(--faint); }
.results .r-s { font-size: 13px; color: var(--muted); }
.results .r-none { padding: 10px; color: var(--muted); font-size: 14px; }

/* The frame: sidebar and page */
.frame { display: flex; align-items: flex-start; }
.side { flex: 0 0 272px; position: sticky; top: 65px; max-height: calc(100vh - 65px); overflow: auto; padding: 18px 14px 40px 18px; border-right: 1px solid var(--line); min-height: calc(100vh - 65px); display: flex; flex-direction: column; gap: 14px; font-size: 14px; }
.side-g { display: flex; flex-direction: column; gap: 1px; }
.side-h { font-size: 11.5px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--faint); padding: 4px 10px 6px; }
.side-l { display: flex; align-items: center; min-height: 34px; padding: 6px 10px; border-radius: 6px; color: var(--muted); border: 1px solid transparent; }
.side-l:hover { color: var(--ink); text-decoration: none; background: var(--sunk); }
.side-l.on { color: var(--ink); font-weight: 500; background: var(--surface); border-color: var(--line); }
.side-l.in { margin-left: 12px; padding-left: 20px; border-left: 1px solid var(--line); border-radius: 0 6px 6px 0; min-height: 32px; }
.side-l.in.on { color: var(--accent); background: var(--accent-soft); border-color: transparent; border-left-color: var(--accent); }
.side-p summary { list-style: none; display: flex; align-items: center; justify-content: space-between; min-height: 36px; padding: 6px 10px; border-radius: 6px; font-weight: 500; cursor: pointer; }
.side-p summary::-webkit-details-marker { display: none; }
.side-p summary:hover { background: var(--sunk); }
.side-p summary svg { color: var(--faint); transition: transform 160ms; }
.side-p[open] summary { font-weight: 600; }
.side-p[open] summary svg { transform: rotate(90deg); }
.side-s { font-size: 12px; font-weight: 600; color: var(--faint); padding: 10px 10px 2px 22px; }
.main { flex: 1 1 560px; min-width: 0; padding-bottom: 64px; }
.col { max-width: 1040px; margin: 0 auto; padding: 36px 40px 0; display: flex; flex-direction: column; gap: 48px; }

@media (max-width: 900px) {
	.menu { display: inline-flex; }
	.brand { width: auto; }
	.bar .search:not(.big) { order: 3; flex-basis: 100%; max-width: none; }
	.bar-r .btn.solid { display: none; }
	.side { display: none; }
	.side.open { display: flex; position: fixed; inset: 64px 0 0 0; max-height: none; z-index: 4; background: var(--bg); border-right: 0; }
	.col { padding: 28px 16px 0; }
}

/* Home */
.hero { background: var(--surface); border-bottom: 1px solid var(--line); }
.hero-in { max-width: 1040px; margin: 0 auto; padding: 52px 40px 44px; display: flex; flex-direction: column; gap: 18px; }
.eyebrow { margin: 0; font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); }
.hero h1 { margin: 0; font-size: clamp(30px, 4vw, 42px); line-height: 1.12; letter-spacing: -0.02em; font-weight: 600; max-width: 20ch; }
.lede { margin: 0; color: var(--muted); font-size: 17px; max-width: 62ch; }
.block { display: flex; flex-direction: column; gap: 16px; }
.block h2, .group h2 { margin: 0; font-size: 20px; font-weight: 600; letter-spacing: -0.01em; }
.block-h { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 6px; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 22px; display: flex; flex-direction: column; gap: 12px; }
.card-top { display: flex; align-items: center; gap: 12px; }
.card h3 { margin: 0; font-size: 17px; font-weight: 600; }
.card p { margin: 0; font-size: 14px; }
.mark { width: 38px; height: 38px; border-radius: 9px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; font: 500 13px var(--mono); flex: none; }
.mark.big { width: 48px; height: 48px; border-radius: 11px; font-size: 15px; }
.links { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--hair); }
.links a { display: block; padding: 8px 0; border-bottom: 1px solid var(--hair); font-size: 14px; }
.more { color: var(--accent); font-weight: 500; font-size: 14px; }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; }
.tile { display: flex; flex-direction: column; gap: 4px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 16px 18px; font-size: 14px; }
.tile:hover, .group-row:hover { text-decoration: none; border-color: var(--accent-line); }
.tile-t { font-weight: 600; font-size: 15px; color: var(--ink); }
.list { border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
.list-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 16px; padding: 12px 18px; border-bottom: 1px solid var(--hair); font-size: 14.5px; }
.list-row:last-child { border-bottom: 0; }
.date { color: var(--faint); font: 12px var(--mono); }
.stuck { border: 1px solid var(--line); background: var(--sunk); border-radius: 12px; padding: 22px 24px; display: flex; flex-wrap: wrap; gap: 14px 28px; align-items: center; justify-content: space-between; }
.stuck h2 { margin: 0 0 2px; font-size: 18px; font-weight: 600; }
.stuck p { margin: 0; color: var(--muted); font-size: 14.5px; }

/* A product's page */
.page-h { display: flex; flex-direction: column; gap: 12px; }
.page-h h1 { margin: 0; font-size: clamp(28px, 3.4vw, 36px); line-height: 1.15; letter-spacing: -0.02em; font-weight: 600; }
.title-row { display: flex; align-items: center; gap: 14px; }
.crumbs { margin: 0; font-size: 13px; color: var(--faint); display: flex; flex-wrap: wrap; gap: 6px; }
.crumbs a:hover { color: var(--ink); }
.crumb-here { color: var(--muted); }
.groups { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 380px), 1fr)); gap: 32px 40px; }
.group { display: flex; flex-direction: column; }
.group h2 { padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.group-row { display: flex; flex-direction: column; gap: 1px; padding: 11px 0; border-bottom: 1px solid var(--hair); font-size: 13.5px; }

/* A guide */
.guide { display: flex; justify-content: center; gap: 48px; padding: 36px 40px 0; }
.article { flex: 0 1 740px; min-width: 0; display: flex; flex-direction: column; gap: 26px; }
.meta { margin: 0; display: flex; flex-wrap: wrap; gap: 4px 16px; font: 12.5px var(--mono); color: var(--faint); }
.toc { flex: 0 0 200px; position: sticky; top: 89px; display: flex; flex-direction: column; gap: 8px; font-size: 13.5px; }
.toc .side-h { padding: 0 0 4px; }
.toc a { color: var(--muted); border-left: 2px solid var(--line); padding-left: 10px; }
.toc a.on { color: var(--ink); border-left-color: var(--accent-fill); }
@media (max-width: 1200px) { .toc { display: none; } }
@media (max-width: 900px) { .guide { padding: 28px 16px 0; } }

.prose { color: var(--body); font-size: 16px; line-height: 1.65; display: flex; flex-direction: column; gap: 14px; }
.prose > * { margin: 0; }
.prose h2 { color: var(--ink); font-size: 22px; line-height: 1.3; letter-spacing: -0.01em; font-weight: 600; margin-top: 18px; scroll-margin-top: 84px; }
.prose h3 { color: var(--ink); font-size: 18px; font-weight: 600; margin-top: 8px; }
.prose strong { color: var(--ink); font-weight: 600; }
.prose a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.prose code { font-size: 0.88em; background: var(--sunk); border: 1px solid var(--hair); border-radius: 4px; padding: 1px 5px; }
.prose pre { background: var(--code); color: var(--code-ink); border: 1px solid var(--code-line); border-radius: 10px; padding: 14px 16px; overflow-x: auto; font-size: 14px; line-height: 1.6; }
.prose pre code { background: none; border: 0; padding: 0; color: inherit; font-size: inherit; }
.prose ul, .prose ol { padding-left: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; }
.prose ul li { position: relative; padding-left: 20px; }
.prose ul li::before { content: ""; position: absolute; left: 4px; top: 0.7em; width: 6px; height: 6px; border-radius: 50%; background: var(--faint); }
.prose ol { counter-reset: step; }
.prose ol li { counter-increment: step; position: relative; padding-left: 44px; min-height: 30px; padding-top: 2px; }
.prose ol li::before { content: counter(step); position: absolute; left: 0; top: 0; width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); color: var(--ink); display: grid; place-items: center; font: 500 13px var(--mono); }
.prose blockquote { border-left: 3px solid var(--line); padding-left: 14px; color: var(--muted); }
.lede.prose { font-size: 17px; color: var(--muted); }

.callout { border: 1px solid var(--accent-line); background: var(--accent-soft); border-radius: 10px; padding: 14px 18px; display: flex; flex-direction: column; gap: 6px; font-size: 15px; }
.callout > * { margin: 0; }
.callout-k { font-size: 12px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent); }
.callout.warn { border-color: var(--attn-line); background: var(--attn-soft); }
.callout.warn .callout-k { color: var(--attn); }

.specimen { margin: 4px 0; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--sunk); }
.specimen figcaption { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 12px; padding: 8px 14px; border-bottom: 1px solid var(--line); background: var(--surface); font-size: 12.5px; color: var(--faint); }
.specimen .live { color: var(--accent); font-weight: 600; }
.specimen iframe { display: block; width: 100%; border: 0; background: transparent; }

.pager { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; }
.pager a { border: 1px solid var(--line); background: var(--surface); border-radius: 10px; padding: 14px 16px; display: flex; flex-direction: column; gap: 2px; font-weight: 500; }
.pager a .faint { font-weight: 400; font-size: 12.5px; }
.pager a.next { text-align: right; }
.pager a:hover { text-decoration: none; border-color: var(--accent-line); }
.still { margin: 0; padding-top: 18px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14.5px; }
.still a { color: var(--accent); font-weight: 500; }
