/* nabi-lang.org and docs.nabi-lang.org, on top of nabi.css. */

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 76px; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; background: var(--bg); color: var(--ink); overflow-wrap: break-word; }
body > :is(.shell, main) { flex: 1 0 auto; }
body > .foot { flex: none; }
:lang(ko) { word-break: keep-all; }
::selection { background: var(--acc-bg); }
img { max-width: 100%; height: auto; }
button { font: inherit; }


/* header */

.hdr { position: sticky; top: 0; z-index: 20; }
.hdr .in { position: relative; }
.frame { padding-left: 24px; padding-right: 24px; }
.brand img { display: block; }
.nav a[aria-current] { color: var(--ink); background: var(--bg-2); font-weight: 500; }
.hdr .tools { margin-left: auto; display: flex; gap: 8px; align-items: center; }
.hdr .gh { display: inline-flex; align-items: center; min-height: 24px; color: var(--ink-2); padding: 0 6px; }
.hdr .btn-sm { padding: 7px 12px; }
.hdr .btn[aria-current] { box-shadow: 0 0 0 2px var(--bg), 0 0 0 3px var(--line-2); }

.search { position: relative; width: 260px; cursor: text; }
.search:focus-within { outline: 2px solid var(--focus); outline-offset: 2px; }
/* the icon: a button only while the header is folded (search.js) */
.s-open { all: unset; display: flex; cursor: inherit; }
/* folded, the icon is the whole control: a 24px target at least */
.nav-compact .s-open { min-width: 24px; min-height: 24px; align-items: center; justify-content: center; }
.search input:focus-visible { outline: none; }
.search input { flex: 1; min-width: 0; height: 100%; padding: 0; border: 0; outline: 0; background: transparent; color: var(--ink); font: inherit; font-size: 14px; appearance: none; -webkit-appearance: none; }
.search input::placeholder { color: var(--ink-3); opacity: 1; }
.search input::-webkit-search-cancel-button, .search input::-webkit-search-decoration { -webkit-appearance: none; display: none; }
.search input:is(:focus, :not(:placeholder-shown)) ~ .kbd { display: none; }
.results { position: absolute; right: 0; top: calc(100% + 8px); width: min(460px, calc(100vw - 32px)); max-height: 70vh; overflow-y: auto; margin: 0; padding: 4px; list-style: none; background: var(--panel); border: 1px solid var(--line-2); border-radius: 10px; box-shadow: 0 12px 32px -8px rgb(0 0 0 / .25); font-size: 14px; line-height: 20px; }
.results a { display: block; padding: 8px 10px; border-radius: var(--r); color: var(--ink); }
.results a:hover, .results a[aria-selected="true"] { background: var(--bg-2); text-decoration: none; }
.results small { display: block; margin-top: 2px; color: var(--ink-3); font-size: 13px; line-height: 18px; }
.results .hit-t { font-weight: 500; }
.results .hit-p { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.results .hit-x { color: var(--ink-2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.results .src { float: right; margin-left: 8px; color: var(--ink-3); font-size: 13px; }
.results .legend { position: sticky; bottom: -4px; background: var(--panel); display: flex; gap: 16px; margin: 4px -4px -4px; padding: 8px 14px; border-top: 1px solid var(--line); color: var(--ink-3); font-size: 13px; line-height: 18px; }
.results .legend .kbd + .kbd { margin-left: 2px; }
.results mark { background: none; color: var(--acc); font-weight: 600; }
.results .empty { padding: 8px 10px; color: var(--ink-3); }
.results .grp-pkgs { margin-top: 4px; padding-top: 4px; border-top: 1px solid var(--line); }
.results .grp-pkgs ul { margin: 0; padding: 0; list-style: none; }
.results .grp-h { padding: 6px 10px 2px; color: var(--ink-3); }

.vers { position: relative; }
.vers summary { display: flex; align-items: center; gap: 6px; height: 34px; padding: 0 10px; border: 1px solid var(--line-2); border-radius: var(--r); background: var(--panel); color: var(--ink); font-family: var(--mono); font-size: 12px; list-style: none; cursor: pointer; white-space: nowrap; }
.vers summary::-webkit-details-marker { display: none; }
.vers summary::after { content: ""; width: 8px; height: 8px; background: var(--ink-3); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 6l5 5 5-5' fill='none' stroke='black' stroke-width='2.5'/%3E%3C/svg%3E") center/contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 6l5 5 5-5' fill='none' stroke='black' stroke-width='2.5'/%3E%3C/svg%3E") center/contain no-repeat; }
.vers-menu { position: absolute; right: 0; top: calc(100% + 8px); z-index: 21; min-width: 200px; margin: 0; padding: 4px; list-style: none; background: var(--panel); border: 1px solid var(--line-2); border-radius: 10px; box-shadow: 0 12px 32px -8px rgb(0 0 0 / .25); }
.vers-menu:empty { display: none; }
.vers:not([open]) .vers-menu { opacity: 0; translate: 0 -4px; }
.vers-menu a { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 6px 10px; border-radius: var(--r); color: var(--ink); font-family: var(--mono); font-size: 13px; line-height: 20px; }
.vers-menu a:hover { background: var(--bg-2); text-decoration: none; }
.vers-menu a[aria-current] { color: var(--acc); font-weight: 500; }
.vers-menu small { color: var(--ink-3); font-family: var(--sans); font-size: 13px; }
.ver-banner { margin: 0; padding: 8px 24px; text-wrap: pretty; border-bottom: 1px solid var(--line); background: var(--bg-2); color: var(--ink-2); font-size: 14px; line-height: 20px; }
.ver-banner a { margin-left: 8px; font-weight: 500; }

.ib:hover { color: var(--ink); }

.nav-toggle { display: none; width: 34px; height: 34px; place-items: center; padding: 0; border: 1px solid var(--line-2); border-radius: var(--r); background: var(--panel); color: var(--ink-2); cursor: pointer; }
.nav-toggle .bars, .nav-toggle .bars::before, .nav-toggle .bars::after { content: ""; display: block; width: 16px; height: 2px; border-radius: 1px; background: currentColor; }
.nav-toggle .bars { position: relative; }
.nav-toggle .bars::before { position: absolute; top: -5px; }
.nav-toggle .bars::after { position: absolute; top: 5px; }
.top.nav-open .nav-toggle .bars { background: transparent; }
.top.nav-open .nav-toggle .bars::before { top: 0; transform: rotate(45deg); }
.top.nav-open .nav-toggle .bars::after { top: 0; transform: rotate(-45deg); }

/* search.js folds the nav when it no longer fits on one row */
.top.nav-measuring .in { flex-wrap: nowrap; }
.top.nav-measuring .in > *, .top.nav-measuring .nav { flex-shrink: 0; flex-wrap: nowrap; }
.nav-compact .in { gap: 8px; }
.nav-compact .nav-toggle { display: grid; order: 3; }
.nav-compact .tools { order: 2; }
.nav-compact .nav { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; gap: 2px; padding: 8px 16px 12px; background: var(--bg); border-bottom: 1px solid var(--line); }
.nav-compact.nav-open .nav { display: flex; }
.nav-compact .nav { opacity: 0; translate: 0 -4px; }
.nav-compact.nav-open .nav { opacity: 1; translate: none; }
.nav-compact .nav a { padding: 10px 10px; }
.nav-compact .search { width: 34px; padding: 0; justify-content: center; }
.nav-compact .search input, .nav-compact .search > .kbd { display: none; }
.nav-compact .search.open { position: absolute; left: 16px; right: 16px; top: 13px; width: auto; z-index: 3; padding: 0 10px; justify-content: flex-start; }
.nav-compact .search.open input { display: block; }
.nav-compact .gh, .nav-compact .vers-full { display: none; }
.nav-compact .brand { gap: 7px; }

/* docs shell */

.shell { display: flex; align-items: flex-start; }
.side { position: sticky; top: 61px; height: calc(100vh - 61px); overflow-y: auto; display: block; background: var(--bg-2); }
.side ul { list-style: none; margin: 0; padding: 0; }
.side a { color: var(--ink-2); }
.side a[aria-current] { background: var(--acc-bg); color: var(--acc); font-weight: 500; }
.side a[aria-current] .no { color: var(--acc); }
.side .up { margin: 0 0 8px; color: var(--ink-3); }
.side-title { margin: 0 0 4px; }
.side-title a { color: var(--ink); font-weight: 600; }
.side .no { width: auto; min-width: 18px; padding-top: 1px; }
.side .pages .pages { margin: 2px 0 6px 10px; padding-left: 0; border-left: 1px solid var(--line); }
.side .pages .pages a { gap: 6px; padding-left: 8px; }
.side .pages .pages .no { min-width: 0; }
.side li.open > a { color: var(--ink); font-weight: 500; }

.main { flex: 1 1 0; min-width: 0; display: flex; justify-content: center; gap: 56px; padding: 40px 56px 96px; }
.main > article { flex: 1 1 auto; min-width: 0; max-width: 800px; }
/* body text keeps a reading measure (about 75 characters); code, output
   and tables take the whole column */
.prose > :is(p, ul, ol, dl, blockquote, h1, h2, h3, h4, .callout, .tr-note), .prose .lost, .prose > div[lang] > :is(p, ul, ol, dl, blockquote, h1, h2, h3, h4) { max-width: 640px; }
.toc { position: sticky; top: 101px; max-height: calc(100vh - 121px); overflow-y: auto; }
.toc .t-label { margin: 0 0 10px; }
.toc ul { list-style: none; margin: 0; padding: 0; }
.toc li a { display: block; color: var(--ink-2); padding: 4px 0 4px 14px; border-left: 1px solid var(--line); }
.toc li.sub a { padding-left: 26px; }
.toc a[aria-current] { color: var(--ink); border-left: 2px solid var(--acc); padding-left: 13px; font-weight: 500; }
.toc li.sub a[aria-current] { padding-left: 25px; }
.toc a:hover { color: var(--ink); text-decoration: none; }
.toc code { font-family: var(--mono); font-size: 12px; }
.cbar, .side-h, .toc-m { display: none; }
.prose .toc-m { margin: 0 0 24px; border: 1px solid var(--line); border-radius: var(--r); font-size: 14px; line-height: 20px; }
.toc-m summary { padding: 10px 14px; color: var(--ink); font-weight: 500; cursor: pointer; }
.prose .toc-m ul { list-style: none; margin: 0; padding: 0 0 8px; }
.prose .toc-m li { margin: 0; }
.prose .toc-m a { display: block; padding: 6px 14px; color: var(--ink-2); text-decoration: none; }
.prose .toc-m li.sub a { padding-left: 28px; }
.prose .toc-m a:hover { color: var(--ink); }
.scrim { position: fixed; inset: 0; z-index: 39; background: rgb(251 251 252 / .7); }
@media not print { .nb.dk .scrim { background: rgb(9 10 13 / .7); } }
html.lock { overflow: hidden; }
/* full-screen layers fade without the .appear drop */
.scrim.appear, .kbd-help.appear { translate: none; }
.wide .main > article { max-width: 880px; }
.home .main > article { max-width: 800px; }

/* prose */

article.prose { display: block; max-width: none; font-size: 16px; line-height: 26px; }
.prose > :first-child { margin-top: 0; }
.prose :is(p, ul, ol, dl, blockquote, pre, .table-wrap, .code, .callout, figure) { margin: 0 0 18px; }
.prose :is(p, li) { text-wrap: pretty; }
.prose :is(h1, h2, h3, h4) { position: relative; margin: 0; color: var(--ink); font-family: var(--mono); }
.prose h1 { font-size: 40px; line-height: 48px; letter-spacing: -0.035em; font-weight: 600; text-wrap: balance; margin-bottom: 16px; }
.prose h2 { font-size: 26px; line-height: 34px; letter-spacing: -0.03em; font-weight: 600; text-wrap: balance; margin: 48px 0 14px; }
.prose h3 { font-size: 18px; line-height: 26px; letter-spacing: -0.02em; font-weight: 600; margin: 32px 0 10px; }
.prose h4 { font-size: 16px; line-height: 26px; font-weight: 600; margin: 24px 0 8px; }
.prose > :is(h1, h1 + .toc-m) + p { font-size: 19px; line-height: 30px; color: var(--ink-2); margin-bottom: 24px; }
.anchor { position: absolute; left: -28px; display: flex; align-items: center; justify-content: center; width: 24px; height: 1lh; min-height: 24px; color: var(--ink-3) !important; font-weight: 400; opacity: 0; text-decoration: none !important; }
:is(h1, h2, h3, h4):hover > .anchor { opacity: 1; }
.prose h1 > .anchor { display: none; }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose li + li { margin-top: 4px; }
.prose li > :is(ul, ol) { margin: 4px 0; }
.prose li::marker { color: var(--ink-3); }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 32px 0; }
/* --link at 35%, per theme: no color-mix() on iOS < 16.2 */
.prose :is(p, li, td, dd, blockquote) a { text-decoration: underline; text-decoration-color: rgb(0 106 165 / .35); text-underline-offset: 3px; }
@media not print { :where(.nb.dk) .prose :is(p, li, td, dd, blockquote) a { text-decoration-color: rgb(122 213 248 / .35); } }
.prose :is(p, li, td, dd, blockquote) a:hover { text-decoration-color: currentColor; }
.prose blockquote { padding: 0 0 0 16px; border-left: 2px solid var(--line-2); color: var(--ink-2); }
.prose strong { font-weight: 600; }
.prose :not(pre) > code, .ic { font-family: var(--mono); font-size: 0.88em; background: var(--code); border: 1px solid var(--line); padding: 0 .3em; border-radius: 4px; overflow-wrap: anywhere; }
.prose :is(h1, h2, h3, h4) code { font-family: var(--mono); font-weight: 500; letter-spacing: -0.02em; font-size: 0.92em; background: none; border: 0; padding: 0; }
.prose pre { position: relative; margin-top: 0; padding: 14px 16px; overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r); background: var(--code); font-family: var(--mono); font-size: 14px; line-height: 22px; tab-size: 4; }
.prose pre code { font: inherit; background: none; border: 0; padding: 0; }
.mono, pre, code, kbd { font-feature-settings: "zero", "ss01"; }
.a { color: var(--acc); }

/* code blocks: search.js adds the bar and folds output in */
.code.cb { position: relative; }
.code.cb > .cb-h { min-height: 36px; padding: 4px 6px 4px 14px; }
.code .cb-h .t-label { font-size: 12px; }
.code .cb-h .run { padding: 2px 9px; font-size: 13px; line-height: 18px; }
.code .cb-h .copy { margin-left: auto; }
.code .cb-h .run + .copy { margin-left: 0; }
.code .cb-body { display: flex; flex-wrap: wrap; }
.code .cb-body > pre { flex: 3 1 360px; min-width: 0; margin: 0; border: 0; border-radius: 0; background: none; }
.code .cb-body > pre.output { flex: 1 1 100%; border-top: 1px solid var(--line); }
.code .cb-body.side-by-side > pre.output { flex: 1 1 200px; border-top: 0; border-left: 1px solid var(--line); }
pre.output, .prose pre.output { background: var(--term); color: var(--term-ink); font-size: 13px; line-height: 21px; padding-top: 32px; }
pre.output::before { content: "Output"; position: absolute; top: 9px; left: 16px; color: var(--ink-3); font-family: var(--sans); font-size: 13px; line-height: 18px; }
pre.output:lang(ko)::before { content: "출력"; }
.prose :is(pre, .code):has(+ pre.output) { margin-bottom: 0; border-bottom-left-radius: 0; border-bottom-right-radius: 0; }
.prose :is(pre, .code):has(+ pre.output) + pre.output { border-top: 0; border-top-left-radius: 0; border-top-right-radius: 0; }
.code.tall.collapsed .cb-body > pre:first-child { max-height: 440px; overflow: hidden; }
.code .expand { display: block; width: 100%; padding: 8px; border: 0; border-top: 1px solid var(--line); background: var(--bg-2); color: var(--ink-2); font-size: 13px; line-height: 18px; cursor: pointer; }
.code .expand:hover { color: var(--ink); }
.prose pre.term { background: var(--term); color: var(--term-ink); font-size: 13px; line-height: 21px; white-space: pre; }
/* error codes in output link to their pages */
a.ecode { color: inherit !important; text-decoration: underline; text-decoration-style: dotted; text-decoration-color: currentColor; text-underline-offset: 3px; }
a.ecode:hover { text-decoration-style: solid; }

.table-wrap { overflow-x: auto; }
.prose table { border-collapse: collapse; font-size: 14px; line-height: 21px; font-variant-numeric: tabular-nums; min-width: 60%; }
.prose th { text-align: left; font-size: 13px; line-height: 18px; font-weight: 600; color: var(--ink-2); padding: 8px 12px; border-bottom: 1px solid var(--line-2); vertical-align: bottom; }
.prose td { padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose :is(td, th) > code { white-space: nowrap; }
.prose :is(td, th):first-child { padding-left: 0; }

.prose .callout { display: block; padding: 14px 16px; font-size: 15px; line-height: 24px; }
.callout > :last-child { margin-bottom: 0; }
.callout > p { margin-bottom: 8px; }
.callout-title { margin: 0 0 2px !important; color: var(--note-ink); font-size: 13px; line-height: 18px; font-weight: 600; }
/* --acc 35% into --line, per theme */
.callout.warning, .callout.caution, .callout.important { border-color: #e6a9c4; background: var(--acc-bg); }
@media not print { .nb.dk :is(.callout.warning, .callout.caution, .callout.important) { border-color: #6b3a52; } }
.callout:is(.warning, .caution, .important) .callout-title { color: var(--acc); }
.prose .callout :not(pre) > code { background: var(--bg); }
.footnote { font-size: 14px; line-height: 20px; color: var(--ink-2); }

/* one line over the title: where the page is, and its other language */
.pagehead { display: flex; align-items: center; gap: 16px; margin: -6px 0 14px; font-size: 13px; line-height: 18px; }
.crumb { display: flex; align-items: center; gap: 8px; min-width: 0; color: var(--ink-3); }
.crumb a { display: inline-block; padding: 3px 0; color: var(--ink-3); }
.crumb a:hover { color: var(--ink); }
.crumb .sep { color: var(--line-2); }
.crumb a, .crumb .here { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.crumb a { flex: 0 1 auto; min-width: 2em; }
.crumb .here { flex: 1 1 auto; min-width: 0; }
.prose .tr-note { padding: 10px 14px; border: 1px solid var(--line); border-radius: var(--r); background: var(--bg-2); color: var(--ink-2); font-size: 14px; line-height: 20px; }
.prose .edit { margin: 48px 0 16px; font-size: 13px; line-height: 18px; color: var(--ink-3); }
.prose .edit .upd { margin-left: 8px; white-space: nowrap; }
.pager { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.pager a { display: flex; flex-direction: column; gap: 2px; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--r); background: var(--panel); color: var(--ink); font-weight: 500; }
.pager a:hover { border-color: var(--line-2); text-decoration: none; }
.pager small { color: var(--ink-3); font-size: 13px; line-height: 18px; font-weight: 400; }
.pager .next { grid-column: 2; text-align: right; }

/* section indexes */
.prose ol.chapters { list-style: none; padding: 0; margin: 8px 0 24px; }
.chapters li { display: flex; gap: 12px; padding: 14px 0; border-top: 1px solid var(--line); margin: 0 !important; }
.chapters .no { flex: 0 0 24px; color: var(--ink-3); font-family: var(--mono); font-size: 13px; line-height: 26px; }
.chapters li > div { min-width: 0; }
.prose .chapters a { font-weight: 600; color: var(--ink); text-decoration: none; }
.prose .chapters a:hover { text-decoration: underline; }
.chapters p { margin: 2px 0 0; color: var(--ink-2); font-size: 14px; line-height: 20px; }
.ex-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 40px; margin: 8px 0 24px; }
.ex { display: flex; flex-direction: column; gap: 2px; padding: 14px 0; border-top: 1px solid var(--line); color: var(--ink) !important; text-decoration: none !important; }
.ex b { font-weight: 600; }
.ex span { color: var(--ink-2); font-size: 14px; line-height: 20px; }
.ex:hover b { text-decoration: underline; text-underline-offset: 3px; }

/* docs home: content from nabi-lang/docs */
.home .hero { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; padding: 8px 0 24px; }
.home .hero > img { width: 40px; height: 40px; }
.home .hero h1 { margin: 0; }
.home .hero .lead { font-size: 19px; line-height: 30px; color: var(--ink-2); max-width: 36em; }
/* stretched, not sized to the unbreakable command (WebKit overflowed) */
.home .install { align-self: stretch; min-width: 0; max-width: 540px; margin-top: 8px; }
.home .install p { margin: 0; color: var(--ink-3); font-size: 13px; line-height: 18px; }
/* the sections: one plain list, name and what it holds */
.prose dl.sections { display: grid; grid-template-columns: 180px minmax(0, 1fr); margin: 24px 0 40px; max-width: none; border-bottom: 1px solid var(--line); }
.sections dt, .sections dd { margin: 0; padding: 12px 0; border-top: 1px solid var(--line); }
.sections dt { font-weight: 500; }
.prose .sections dt a { color: var(--ink); text-decoration: none; }
.prose .sections dt a:hover { text-decoration: underline; text-underline-offset: 3px; }
.sections dd { color: var(--ink-2); font-size: 14px; line-height: 26px; }

/* API pages */
/* a package's docs: its page on the registry and its source, under the title */
.prose .pkg-links { margin: -8px 0 20px; font-size: 14px; line-height: 20px; color: var(--ink-3); }
.prose .pkg-links a { color: var(--ink-2); }
.doc .prose > h1 code { font-weight: 500; font-size: 1em; letter-spacing: -0.03em; overflow-wrap: anywhere; }
.prose h1 code a { color: var(--ink-3); }
.api-item { padding: 24px 0 8px; border-top: 1px solid var(--line); }
.prose .api-item h3 { margin: 0 0 12px; font-family: var(--mono); font-weight: 500; font-size: 20px; line-height: 28px; letter-spacing: -0.02em; display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: baseline; }
.api-item h3 a { color: var(--ink); min-width: 0; overflow-wrap: anywhere; }
.api-item h3 .since { margin-left: auto; }
.api-item h3 .since + .src { margin-left: 0; }
a.src { margin-left: auto; color: var(--ink-3) !important; font-family: var(--sans); font-size: 13px; line-height: 18px; font-weight: 400; letter-spacing: 0; text-decoration: none !important; white-space: nowrap; }
a.src:hover { color: var(--ink) !important; }
/* the API's small links: 24px targets at least */
a.src { display: inline-flex; align-items: center; min-height: 24px; }
.m-h > h4 > .self { display: inline-flex; align-items: center; justify-content: center; min-width: 24px; min-height: 24px; }
.m-h { display: flex; align-items: baseline; gap: 12px; }
.m-h > pre { flex: 1 1 auto; min-width: 0; }
.mod { color: var(--ink-3); }
.nm { color: var(--ink); font-weight: 500; }
.toc li.m a { padding-left: 38px; }
.toc li.m a[aria-current] { padding-left: 37px; }
.prose .toc-m li.m a { padding-left: 42px; }
/* a type's methods in "On this page" (web::apidoc::nav::rail) */
.toc .grp summary { display: flex; align-items: center; gap: 6px; padding: 4px 0 4px 14px; border-left: 1px solid var(--line); color: var(--ink-2); cursor: pointer; list-style: none; }
.toc .grp summary:hover, .prose .toc-m .grp summary:hover { color: var(--ink); }
.prose .toc-m .grp summary { display: flex; align-items: center; gap: 6px; padding: 6px 14px 6px 28px; color: var(--ink-2); font-weight: 400; list-style: none; }
.grp summary code { min-width: 0; overflow-wrap: anywhere; }
.toc .grp .ct { font-size: 11px; }
.prose .toc-m .grp ul { padding: 0; }
.api-filter { position: relative; display: flex; align-items: center; gap: 10px; max-width: 640px; margin: 8px 0 24px; }
.api-filter input { flex: 1 1 auto; min-width: 0; height: 36px; padding: 0 36px 0 12px; border: 1px solid var(--field-line); border-radius: var(--r); background: var(--panel); color: var(--ink); font: inherit; font-size: 14px; }
.api-filter input::placeholder { color: var(--ink-3); opacity: 1; }
.api-filter .kbd { position: absolute; left: calc(100% - 40px); }
.api-filter:has(.ct:not(:empty)) .kbd, .api-filter input:focus ~ .kbd { display: none; }
.api-filter .ct { flex: none; color: var(--ink-3); font-size: 13px; line-height: 18px; }
.api-filter .ct:empty { display: none; }
.prose pre.sig { margin-bottom: 14px; white-space: pre-wrap; }
/* signatures break only between the pieces apidoc.nabi marks, and
   continue indented */
:is(pre.sig, .m-h > pre, .m-h > h4) code { display: block; padding-left: 4ch; text-indent: -4ch; }
.nw { white-space: nowrap; }
/* a piece wider than a phone's column breaks after all */
@media (max-width: 600px) {
  :is(pre.sig, .m-h > pre, .m-h > h4) .nw { white-space: normal; }
  :is(pre.sig, .m-h > pre, .m-h > h4) code { overflow-wrap: anywhere; }
}
.since { margin-left: auto; color: var(--ink-3); font-family: var(--sans); font-size: 13px; line-height: 18px; font-weight: 400; letter-spacing: 0; white-space: nowrap; }
.prose .members { list-style: none; padding: 0; margin: 8px 0 16px; }
.prose .members > li { margin: 0; padding: 14px 0; border-top: 1px solid var(--line); }
.prose .m-h > pre { margin: 0; padding: 0; border: 0; background: none; white-space: pre-wrap; }
.members p { margin: 6px 0 0 !important; color: var(--ink-2); }
.members > li:has(> .m-h > h4:target) { background: var(--acc-bg); box-shadow: -12px 0 0 var(--acc-bg), 12px 0 0 var(--acc-bg); }
/* each member is a heading (its own address); § links to it */
.prose .m-h > h4 { flex: 1 1 auto; min-width: 0; display: flex; align-items: baseline; gap: 8px; margin: 0; font-family: var(--mono); font-size: 14px; line-height: 22px; font-weight: 400; letter-spacing: 0; white-space: pre-wrap; }
.prose .m-h > h4 > code { flex: 0 1 auto; min-width: 0; font-weight: 400; letter-spacing: 0; font-size: inherit; }
.m-h > h4 > .self { flex: none; color: var(--ink-3) !important; font-family: var(--sans); font-size: 13px; text-decoration: none !important; }
.m-h > h4 > .self:hover { color: var(--ink) !important; }
a.t { color: var(--t); }
a.t:hover { text-decoration: underline; text-underline-offset: 3px; }
.impls { margin: 0 0 16px; font-size: 14px; line-height: 20px; color: var(--ink-2); }
.impls summary { cursor: pointer; padding: 4px 0; }
.impls ul { list-style: none; margin: 8px 0 0; padding: 0; }
.impls li { padding: 4px 0; }
.api-more { font-size: 14px; }
.prose .api-list { list-style: none; padding: 0; }
.api-list li { display: flex; flex-wrap: wrap; gap: 4px 16px; padding: 8px 0; border-top: 1px solid var(--line); margin: 0 !important; }
.api-list li a { flex: 0 0 auto; text-decoration: none !important; }
.api-list span { color: var(--ink-2); font-size: 14px; line-height: 22px; }
/* a re-exported name, anchored where it is re-exported */
.reexports > li:target { background: var(--acc-bg); box-shadow: -12px 0 0 var(--acc-bg), 12px 0 0 var(--acc-bg); }

/* the landing page */

.landing section > .frame { padding-top: 64px; padding-bottom: 64px; }
.hero > .frame { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 56px; align-items: center; padding-top: 56px !important; padding-bottom: 72px !important; }
.hero-t { display: flex; flex-direction: column; gap: 26px; }
.hero-t h1 { margin: 0; max-width: 11em; }
.hero-t .t-lead { margin: 0; max-width: 30em; }
.news-link { color: var(--ink-2) !important; }
.install { display: flex; flex-direction: column; gap: 10px; max-width: 540px; }
.install .line { display: flex; align-items: center; gap: 12px; border: 1px solid var(--line-2); border-radius: var(--r); padding: 8px 8px 8px 14px; font-size: 14px; line-height: 22px; background: var(--panel); }
.install .line code { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; background: none; border: 0; padding: 0; font-size: inherit; }
.install .line button { margin-left: auto; flex: none; }
/* the hero's column is narrower than the command: wrap it at a space */
@media (min-width: 901px) {
  .hero .install .line code { white-space: normal; text-overflow: clip; }
}
.install .line .nw { white-space: nowrap; }
.install [hidden] { display: none; }
/* both commands share a cell, so switching keeps the hero's height */
.install[data-os-pick] { display: grid; grid-template-columns: minmax(0, 1fr); }
.install[data-os-pick] > .os-pick { justify-self: start; }
.install .os { display: flex; flex-direction: column; gap: 10px; grid-area: 2 / 1; align-self: start; }
.install .os[hidden] { display: flex; visibility: hidden; }
/* the hero's install command: macOS & Linux or Windows */
.os-pick { display: flex; gap: 2px; align-self: flex-start; padding: 2px; border: 1px solid var(--line-2); border-radius: var(--r); font-size: 13px; line-height: 18px; }
.os-pick button { padding: 3px 10px; border: 0; border-radius: var(--r); background: none; color: var(--ink-2); cursor: pointer; }
.os-pick button:hover { color: var(--ink); }
.os-pick button[aria-pressed="true"] { background: var(--panel); color: var(--ink); box-shadow: 0 0 0 1px var(--field-line); }
.prog .cb-h { display: flex; align-items: center; gap: 12px; }
/* the playground link: as quiet as the docs' Run and Copy */
.prog .cb-h .play { margin-left: auto; padding: 3px 10px; font-size: 13px; line-height: 18px; border-color: transparent; background: transparent; color: var(--ink-2) !important; }
.prog .cb-h .play:hover { background: var(--bg-2); color: var(--ink) !important; }
.install p { margin: 0; }
.go { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; margin: 0; }
/* the mark, large, beside the hero text */
.hero-m { width: 100%; max-width: 480px; aspect-ratio: 1; justify-self: center; align-self: center; margin-top: -48px; }
.hero-m .mark { display: block; width: 100%; height: 100%; }
.hero-m .mark path { stroke-width: .4; stroke-linejoin: round; }
.term-fig { margin: 0; }
.prog + .term-fig { margin-top: 12px; }
.prog .cb-h { min-height: 30px; padding: 5px 14px; }
.feat-f { display: flex; flex-direction: column; min-width: 0; }
.feat-f .term { margin: 0; }
.term .e, .term .h { font-weight: 600; }
.feats .frame { padding-top: 24px !important; }
.feats h2 { margin: 0 0 8px; }
.feat { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 48px; align-items: start; padding: 40px 0; border-top: 1px solid var(--line); }
.feat-t { display: flex; flex-direction: column; gap: 10px; }
.feat-t h3, .feat-t p { margin: 0; }
.feat-t p { color: var(--ink-2); }
.landing pre.cb { margin: 0; }
/* using a package: text and list beside the example */
.pkgs .frame { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 48px; align-items: start; border-top: 1px solid var(--line); }
.pkg-list { list-style: none; margin: 4px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 20px; font-size: 14px; line-height: 20px; }
.pkg-list span { color: var(--ink-3); }
.pkgs .links { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.progs { background: var(--bg-2); border-block: 1px solid var(--line); }
.progs .frame, .get .frame, .new .frame { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 56px; }
.progs .frame { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); }
.progs .frame > div:first-child, .get .frame > div:first-child, .new .frame > div:first-child { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.landing h2 { margin: 0; }
/* the landing page's text links stand alone: a 24px target at least */
.landing a.t-ui { display: inline-flex; align-items: center; min-height: 24px; }
.landing section p { margin: 0; }
.progs p, .get p:not(.t-small) { color: var(--ink-2); }
.progs .ex-list { margin: 0; }
.get pre.cb { margin-top: 4px; overflow-x: auto; align-self: stretch; }
.arc-wrap { min-width: 0; overflow-x: auto; }
.arc { width: 100%; border-collapse: collapse; font-size: 14px; line-height: 20px; }
.arc caption { text-align: left; padding-bottom: 10px; font-weight: 600; }
.arc :is(th, td) { padding: 10px 12px 10px 0; border-top: 1px solid var(--line); text-align: left; vertical-align: top; }
.arc th { font-weight: 500; width: 100px; }
.arc .mono { color: var(--ink-2); font-size: 13px; }
.arc .note { color: var(--ink-3); }
.arc td:last-child { text-align: right; padding-right: 0; }
.arc-wrap .t-small { margin-top: 12px !important; }
.new { border-top: 1px solid var(--line); }
.new ul { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 10px; }
.new li { text-wrap: pretty; }
.new code { font-family: var(--mono); font-size: 0.88em; background: var(--code); border: 1px solid var(--line); padding: 0 .3em; border-radius: 4px; }

/* download, roadmap, faq and news: content from nabi-lang/www */
.page { max-width: 880px; padding-top: 48px; padding-bottom: 96px; }
.lead-sm { font-size: 19px; line-height: 30px; color: var(--ink-2); margin: 0 0 24px; }
/* news: the list of posts and each post's date */
.post-date { font-size: 14px; line-height: 20px; color: var(--ink-3); margin: -8px 0 24px; }
.prose .posts { list-style: none; margin: 0 0 24px; padding: 0; border-bottom: 1px solid var(--line); }
.prose .posts li { margin: 0; display: flex; flex-wrap: wrap; gap: 4px 16px; align-items: baseline; justify-content: space-between; padding: 14px 0; border-top: 1px solid var(--line); }
.posts li .post-date { margin: 0; }
.dl { margin: 0 0 24px; border-bottom: 1px solid var(--line); }
.dl-os { display: grid; grid-template-columns: 110px minmax(0, 1fr) auto; column-gap: 16px; row-gap: 2px; align-items: baseline; padding: 14px 0; border-top: 1px solid var(--line); }
.dl-glyph { display: none; }
.dl-os h3 { grid-column: 1; grid-row: 1; margin: 0 !important; font-size: 16px; line-height: 26px; }
.dl-os > p:not(.dl-sum) { grid-column: 1; grid-row: 2; margin: 0; color: var(--ink-3); font-size: 13px; line-height: 18px; }
.prose .dl-os > code { grid-column: 2; grid-row: 1; background: none; border: 0; padding: 0; color: var(--ink-2); font-size: 13px; }
.dl-links { grid-column: 3; grid-row: 1; display: flex; gap: 12px; justify-content: flex-end; }
.prose .dl-links a { display: inline-block; padding: 3px 0; font-family: var(--mono); font-size: 13px; text-decoration: none; }
.dl-os .dl-sum { grid-column: 2 / 4; grid-row: 2; margin: 0; text-align: right; font-size: 13px; line-height: 18px; color: var(--ink-3); }
.prose .dl-sum a { display: inline-block; padding: 3px 0; color: var(--ink-3); }
.dl-os.here, .arc tr.here > * { background: var(--bg-2); }
.dl-os.here { box-shadow: -12px 0 0 var(--bg-2), 12px 0 0 var(--bg-2); }
.arc tr.here > th { box-shadow: -12px 0 0 var(--bg-2); }
.dl .sz, .arc .sz { color: var(--ink-3); font-family: var(--sans); font-size: 13px; margin-left: 6px; }
.credit { margin-top: 48px; color: var(--ink-3); font-size: 13px; line-height: 18px; }
.rm-legend { display: none; }
.rm { margin: 0 0 24px; }
.rm-card { padding: 20px 0 8px; border-top: 1px solid var(--line); }
.rm-card header { display: flex; gap: 12px; align-items: baseline; }
.rm-ver { font-family: var(--mono); font-size: 14px; line-height: 20px; color: var(--ink-2); }
.rm-pill { color: var(--ink-3); font-size: 13px; line-height: 18px; }
/* the status repeats the section heading above the card */
.rm-card .rm-pill { display: none; }
.prose .rm-card h3 { margin: 6px 0 8px; }
.rm-card ul { color: var(--ink-2); }
.rm-link { display: inline-block; margin-bottom: 12px; font-size: 14px; }
.prose .rm-log { list-style: none; padding: 0; }
.rm-entry { padding: 14px 0; border-top: 1px solid var(--line); margin: 0 !important; }
.rm-log time { margin-left: 8px; color: var(--ink-3); font-size: 13px; }
.rm-log p { margin: 4px 0 0; color: var(--ink-2); font-size: 14px; line-height: 20px; }

/* 404 */
.lost { max-width: 640px; padding: 24px 0 48px; }
.lost h1 { margin-bottom: 12px; }
.lost .lead { font-size: 19px; line-height: 30px; color: var(--ink-2); }
.lost .lead code { overflow-wrap: anywhere; }
.lost .lost-hint { margin: -8px 0 20px; font-size: 16px; }
.lost-find { display: flex; gap: 8px; margin: 0 0 24px; }
.lost-q { flex: 1 1 auto; display: flex; align-items: center; gap: 8px; height: 42px; padding: 0 12px; border: 1px solid var(--field-line); border-radius: var(--r); background: var(--panel); color: var(--ink-3); cursor: text; }
.lost-q:focus-within { outline: 2px solid var(--focus); outline-offset: 2px; }
.lost-q input { flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: transparent; color: var(--ink); font: inherit; font-size: 16px; }
.lost-q input::placeholder { color: var(--ink-3); opacity: 1; }
.prose .lost-links { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 20px; }
.prose .lost-links li { margin: 0; }
.prose .lost-links a { text-decoration: none; }


/* overlays */
.kbd-help { position: fixed; inset: 0; z-index: 40; display: grid; place-items: center; padding: 16px; background: rgb(0 0 0 / .4); }
.kbd-card { width: min(380px, 100%); padding: 20px 24px; border: 1px solid var(--line-2); border-radius: 12px; background: var(--panel); }
.kbd-card h2 { margin: 0 0 12px; font-size: 16px; line-height: 26px; font-weight: 600; }
.kbd-card dl { display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; margin: 0; align-items: center; font-size: 14px; line-height: 20px; }
.kbd-card dd { margin: 0; color: var(--ink-2); }
.toast { position: fixed; left: 50%; bottom: 32px; z-index: 40; padding: 8px 14px; border-radius: var(--r); background: var(--ink); color: var(--bg); font-size: 13px; line-height: 18px; transform: translateX(-50%); }

/* narrow screens */
@media (max-width: 1200px) {
  .toc { display: none; }
  .toc-m { display: block; }
  .main { padding: 40px 40px 80px; }
}
@media (max-width: 900px) {
  html { scroll-padding-top: 72px; }
  html:has(.cbar) { scroll-padding-top: 112px; }
  .frame { padding-left: 16px; padding-right: 16px; }
  .hdr .in { padding: 0 16px; }
  .shell { display: block; }
  .cbar { display: flex; align-items: center; gap: 12px; height: 40px; padding: 0 16px; border-top: 1px solid var(--line); }
  .side-toggle { display: inline-flex; flex: none; align-items: center; gap: 8px; height: 32px; margin-left: -8px; padding: 0 8px; border: 0; border-radius: var(--r); background: none; color: var(--ink); font-size: 14px; line-height: 20px; font-weight: 500; cursor: pointer; }
  .side-toggle:hover { background: var(--bg-2); }
  .side { position: fixed; z-index: 40; top: 0; bottom: 0; left: 0; width: min(320px, 86vw); height: auto; padding: 0 16px 32px; overflow-y: auto; overscroll-behavior: contain; border-right: 1px solid var(--line); visibility: hidden; transform: translateX(-100%); }
  .side-open .side { visibility: visible; transform: none; }
  .side-h { display: flex; align-items: center; justify-content: space-between; position: sticky; top: 0; z-index: 1; height: 60px; margin: 0 -16px 12px; padding: 0 12px 0 16px; border-bottom: 1px solid var(--line); background: var(--bg-2); }
  .side-h .t-label { margin: 0; }
  .side a { padding-top: 8px; padding-bottom: 8px; }
  .side .api-nav { --row: 36px; --tw: 28px; }
  .main { display: block; padding: 24px 16px 64px; }
  .prose h1 { font-size: 28px; line-height: 36px; letter-spacing: -0.03em; }
  .prose h2 { font-size: 20px; line-height: 28px; letter-spacing: -0.01em; margin-top: 40px; }
  .prose h3 { font-size: 16px; line-height: 26px; letter-spacing: 0; }
  .prose > :is(h1, h1 + .toc-m) + p, .home .hero .lead, .lead-sm, .lost .lead { font-size: 16px; line-height: 26px; }
  .anchor { display: none; }
  .ex-list, .prose .cards { grid-template-columns: minmax(0, 1fr); }
  .pager { grid-template-columns: minmax(0, 1fr); }
  .pager .next { grid-column: 1; }
  .hero > .frame, .feat, .progs .frame, .get .frame, .new .frame, .pkgs .frame { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .hero > .frame { padding-top: 40px !important; padding-bottom: 48px !important; }
  .hero-m { max-width: 280px; margin-top: 0; }
  .hero-t h1 { font-size: 44px; line-height: 52px; letter-spacing: -0.025em; }
  .landing section > .frame { padding-top: 48px; padding-bottom: 48px; }
  .feat { gap: 20px; padding: 32px 0; }
  .ver-banner { padding: 8px 16px; }
  .dl-os { grid-template-columns: minmax(0, 1fr) auto; }
  .dl-os h3, .dl-os > p:not(.dl-sum) { grid-column: 1; }
  .prose .dl-os > code { grid-column: 1; grid-row: 3; }
  .dl-links { grid-column: 2; grid-row: 1 / 3; }
  .dl-os .dl-sum { grid-column: 1 / 3; grid-row: 4; text-align: left; }
  .arc .note { display: none; }
}
@media (max-width: 370px) {
  .hdr .brand :is(.sl, .site) { display: none; }
}
@media (max-width: 767px) {
  .search input { font-size: 16px; }
}
/* no keyboard shortcuts on touch screens */
@media (hover: none) {
  .search .kbd, .kbd-hint { display: none; }
}
@media (max-width: 480px) {
  .pkgs summary small { display: none; }
  .hero-t h1 { font-size: 30px; line-height: 38px; letter-spacing: -0.018em; }
  .hero-t .t-lead { font-size: 16px; line-height: 26px; }
  .install .line { font-size: 13px; }
  .prose dl.sections { grid-template-columns: minmax(0, 1fr); }
  .sections dd { padding-top: 0; border-top: 0; }
}

@media (prefers-reduced-motion: no-preference) {
  .nav a, .side a, .toc a, .pager a, .results a { transition: color 120ms, background-color 120ms, border-color 120ms; }
  .nav-toggle .bars, .nav-toggle .bars::before, .nav-toggle .bars::after { transition: transform 160ms, background-color 120ms, top 160ms; }
  .side { transition: transform 200ms, visibility 0s 200ms; }
  .side-open .side { transition: transform 200ms; }
  /* the compact nav's panel: in on nav-open, out on nav-shut (search.js),
     never when the nav folds on load or resize */
  .nav-compact.nav-open .nav { transition: opacity var(--dur) var(--ease), translate var(--dur) var(--ease); }
  @starting-style { .nav-compact.nav-open .nav { opacity: 0; translate: 0 -4px; } }
  .nav-compact.nav-shut:not(.nav-open) .nav { pointer-events: none; }
  .nav-compact.nav-shut .nav { transition: opacity var(--dur-out) var(--ease), translate var(--dur-out) var(--ease), display var(--dur-out) allow-discrete; }
  /* the version menu drops in; it is a popup, so it fades rather than grows */
  .vers[open] .vers-menu { transition: opacity var(--dur) var(--ease), translate var(--dur) var(--ease); }
  @starting-style { .vers[open] .vers-menu { opacity: 0; translate: 0 -4px; } }
  /* the hero's install command: a click crossfades it (search.js) */
  ::view-transition { pointer-events: none; }
  ::view-transition-group(root), ::view-transition-old(root), ::view-transition-new(root) { animation-duration: var(--dur); animation-timing-function: var(--ease); }
}

@media print {
  .skip, .hdr, .side, .toc, .toc-m, .pager, .foot, .cb-h, .pagehead, .anchor, .ver-banner, .api-filter, .m-h .self { display: none !important; }
  .shell, .main { display: block; padding: 0; }
  pre { white-space: pre-wrap; break-inside: avoid; }
  body { background: #fff; }
  /* nabi.css prints outside addresses; not the Source links */
  .main a.src::after { content: none; }
}
.hero h1 .acc { color: var(--acc); }
/* the slogan: each half on one line */
.hero h1.t-display { font-size: min(48px, 3.7vw); line-height: 1.18; }
.hero h1 .acc { white-space: nowrap; }
@media (max-width: 899px) { .hero h1.t-display { font-size: min(48px, 7.4vw); } }

/* a package's docs header (docs.rs style): the package, its version menu
   and its links in place of the language docs' sections */
.pkg-hdr .pkg-title { display: flex; align-items: center; gap: 8px; min-width: 0; margin-left: 4px; }
.pkg-hdr .pkg-name { line-height: 24px; font-family: var(--mono); font-weight: 600; font-size: 15px; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-decoration: none; }
.pkg-hdr .pkg-v { font-family: var(--mono); font-size: 12px; color: var(--ink-3); }
.pkg-hdr .main-nav .out { color: var(--ink-3); font-size: 12px; }
.pkg-hdr .pkg-title .vers { flex: none; }
/* narrow: the mark alone, then the package, which keeps the room */
.nav-compact.pkg-hdr .brand .sl, .nav-compact.pkg-hdr .brand .site { display: none; }
.nav-compact.pkg-hdr .pkg-title { flex: 1 1 auto; }
.nav-compact.pkg-hdr .pkg-title .vers summary { padding: 0 6px; }
.nav-compact.pkg-hdr .pkg-title .vers summary::after { display: none; }
