/* Flow site. Colours and type are the tokens of the documentation theme (docs/wiki.css). */
:root {
    color-scheme: dark;
    --bg: #080a0f; --bg-far: #05070b; --surface: #0d1017; --surface-2: #12161f;
    --border: #1b2230; --border-light: #29323f;
    --text: #e9eef6; --text-muted: #a3aebf; --text-faint: #828e9f;
    --accent: #22d3ee; --accent-strong: #67e8f9; --accent-soft: rgba(34, 211, 238, 0.13); --on-accent: #04222a;
    --purple: #b39dff; --green: #4ade80;
    --sans: "IBM Plex Sans", system-ui, sans-serif; --display: "Archivo", "IBM Plex Sans", sans-serif; --mono: "IBM Plex Mono", ui-monospace, monospace;
}
* { box-sizing: border-box; }
html { background: var(--bg-far); }
body { margin: 0; font-family: var(--sans); color: var(--text); background: var(--bg); line-height: 1.6; -webkit-font-smoothing: antialiased; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-strong); }
.wrap { max-width: 1060px; margin: 0 auto; padding: 0 24px; }
header.top { position: sticky; top: 0; z-index: 5; background: rgba(8, 10, 15, 0.82); backdrop-filter: blur(10px); border-bottom: 1px solid var(--border); }
header.top .wrap { display: flex; align-items: center; gap: 28px; height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 700; font-size: 19px; color: var(--text); letter-spacing: 0.01em; }
.brand img { width: 28px; height: 28px; }
nav.main { display: flex; gap: 22px; margin-left: auto; font-size: 15px; }
nav.main a { color: var(--text-muted); }
nav.main a:hover, nav.main a.here { color: var(--text); }
.hero { padding: 88px 0 56px; }
.hero h1 { font-family: var(--display); font-weight: 700; font-size: clamp(34px, 5.4vw, 58px); line-height: 1.08; letter-spacing: -0.015em; margin: 0 0 20px; max-width: 16ch; }
.hero p.lede { font-size: 19px; color: var(--text-muted); max-width: 60ch; margin: 0 0 30px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.btn { display: inline-block; padding: 10px 18px; border-radius: 8px; border: 1px solid var(--border-light); color: var(--text); font-weight: 500; font-size: 15px; }
.btn:hover { border-color: var(--accent); color: var(--text); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.btn.primary:hover { background: var(--accent-strong); color: var(--on-accent); }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin: 8px 0 72px; }
pre { margin: 0; background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 18px 20px; overflow-x: auto; font-family: var(--mono); font-size: 14px; line-height: 1.6; color: var(--text); }
pre .k { color: #c79cff; } pre .t { color: #7dd3fc; } pre .s { color: #9ede6d; } pre .f { color: #82aaff; } pre .c { color: #7d8b9e; }
.label { font-family: var(--mono); font-size: 12px; color: var(--text-faint); text-transform: uppercase; letter-spacing: 0.08em; margin: 0 0 10px; }
section { padding: 0 0 64px; }
h2 { font-family: var(--display); font-weight: 600; font-size: 26px; margin: 0 0 8px; letter-spacing: -0.005em; }
p.note { color: var(--text-muted); margin: 0 0 22px; max-width: 70ch; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 14px; margin-top: 20px; }
.card { display: block; background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 18px 20px; color: var(--text); }
a.card:hover { border-color: var(--border-light); background: var(--surface-2); color: var(--text); }
.card h3 { font-family: var(--mono); font-weight: 500; font-size: 15px; margin: 0 0 8px; display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.card p { margin: 0; color: var(--text-muted); font-size: 15px; }
.tag { font-family: var(--mono); font-size: 11px; color: var(--text-faint); border: 1px solid var(--border-light); border-radius: 999px; padding: 1px 8px; }
.card .links { margin-top: 12px; font-size: 14px; display: flex; gap: 16px; }
footer { border-top: 1px solid var(--border); padding: 28px 0 44px; color: var(--text-faint); font-size: 14px; }
footer .wrap { display: flex; gap: 22px; flex-wrap: wrap; }
footer a { color: var(--text-muted); }
/* library documents */
.doc-layout { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 44px; padding: 40px 0 80px; }
.doc-nav { position: sticky; top: 84px; align-self: start; font-size: 14.5px; max-height: calc(100vh - 110px); overflow-y: auto; }
.doc-nav h4 { font-family: var(--mono); font-weight: 500; font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-faint); margin: 18px 0 8px; }
.doc-nav a { display: block; padding: 4px 0; color: var(--text-muted); }
.doc-nav a.here { color: var(--accent); }
.doc { min-width: 0; overflow-wrap: anywhere; }
.doc pre code.hljs { padding: 0; background: none; }
.doc h1 { font-family: var(--display); font-size: 36px; line-height: 1.15; margin: 0 0 18px; }
.doc h2 { margin: 40px 0 12px; padding-top: 6px; }
.doc h3 { font-family: var(--display); font-size: 19px; margin: 28px 0 8px; }
.doc p, .doc li { color: #cfd7e3; }
.doc code { font-family: var(--mono); font-size: 0.9em; background: var(--surface-2); border: 1px solid var(--border); border-radius: 5px; padding: 1px 5px; }
.doc pre { margin: 16px 0; }
.doc pre code { background: none; border: 0; padding: 0; font-size: 13.5px; }
.doc table { border-collapse: collapse; width: 100%; margin: 16px 0; font-size: 14.5px; display: block; overflow-x: auto; }
.doc th, .doc td { border-bottom: 1px solid var(--border); padding: 8px 12px; text-align: left; vertical-align: top; }
.doc th { color: var(--text-muted); font-weight: 500; }
.doc img { max-width: 100%; border-radius: 8px; }
.doc blockquote { margin: 16px 0; padding: 2px 18px; border-left: 3px solid var(--border-light); color: var(--text-muted); }
@media (max-width: 760px) {
    .two { grid-template-columns: 1fr; }
    .hero { padding: 56px 0 40px; }
    nav.main { gap: 16px; font-size: 14px; }
    .doc-layout { grid-template-columns: minmax(0, 1fr); gap: 8px; padding-top: 20px; }
    header.top .wrap { gap: 14px; }
    nav.main a.wide { display: none; }
    .doc-nav { position: static; max-height: none; border-bottom: 1px solid var(--border); padding-bottom: 14px; }
    .doc h1 { font-size: 28px; }
}
