/* Norsulabs components. Values come from tokens.css. */
.nl-page { background: var(--paper); color: var(--ink); font-family: var(--font-serif); font-size: 18px; line-height: 1.55; font-variant-numeric: lining-nums tabular-nums; }
.nl-page a { color: var(--link); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.nl-page a:visited { color: var(--visited); }
.nl-page a:hover { text-decoration-thickness: 2px; }
.nl-page a:focus-visible { outline: 2px dotted var(--ink); outline-offset: 2px; }
.nl-wrap { box-sizing: border-box; max-width: var(--page-max); margin: 0 auto; padding: 36px var(--page-pad) var(--space-40); }

.nl-masthead { display: flex; flex-wrap: wrap; align-items: last baseline; justify-content: space-between; gap: 16px var(--space-40); padding-bottom: var(--space-20); }
.nl-name { margin: 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: clamp(10px, 1.4vw, 18px); font-size: clamp(52px, 7.4vw, 88px); line-height: 0.95; font-weight: 400; letter-spacing: -0.025em; }
.nl-name img { height: auto; flex: none; position: relative; top: 1px; }
.nl-name .nl-mark-lg { display: block; width: clamp(54px, 7.8vw, 93px); }
.nl-name .nl-mark-sm { display: none; width: min(60px, 15vw); }
@media (max-width: 700px) { .nl-name .nl-mark-lg { display: none; } .nl-name .nl-mark-sm { display: block; } }
.nl-lede { margin: 0; flex: 0 1 430px; font-size: 20px; line-height: 1.4; text-wrap: pretty; }

.nl-nav { display: flex; flex-wrap: wrap; border-left: var(--rule-1) solid var(--ink); border-top: var(--rule-3) solid var(--ink); }
.nl-nav a { display: flex; flex: 1 1 130px; align-items: center; justify-content: center; min-height: var(--target-min); padding: 0 var(--space-12); border-right: var(--rule-1) solid var(--ink); border-bottom: var(--rule-1) solid var(--ink); }

.nl-columns { display: flex; flex-wrap: wrap; align-items: flex-start; gap: var(--space-40) var(--space-48); margin-top: var(--space-34); }
.nl-main { flex: 999 1 var(--main-basis); min-width: 0; }
.nl-aside { flex: 1 1 var(--aside-basis); min-width: 0; }
.nl-main > * + * { margin-top: var(--space-40); }
.nl-aside > * + * { margin-top: var(--space-28); }

.nl-band { margin: 0; padding: var(--space-5) var(--space-12); border: var(--rule-1) solid var(--ink); background: var(--band); font-size: 20px; line-height: 1.4; font-weight: 700; }

.nl-entry { padding: var(--space-20) 0 var(--space-6); border-bottom: var(--rule-1) solid var(--hairline); }
.nl-entry h3 { margin: 0; font-size: 28px; line-height: 1.2; font-weight: 600; }
.nl-entry h3 a { padding: 10px 0; }
.nl-new { background: var(--mark); color: var(--ink); padding: 0 var(--space-5); font-size: 16px; font-style: italic; font-weight: 400; }
.nl-byline { margin: var(--space-4) 0 var(--space-6); font-size: 16px; font-style: italic; line-height: 1.45; color: var(--ink-soft); }
.nl-summary { margin: 0; max-width: var(--measure); text-wrap: pretty; }
.nl-actions { margin: 0; display: flex; flex-wrap: wrap; gap: 0 var(--space-24); font-size: 17px; }
.nl-actions a { display: inline-flex; align-items: center; min-height: var(--target-min); }

.nl-list { list-style: none; margin: 0; padding: 0; }
.nl-list li { display: flex; flex-wrap: wrap; align-items: center; gap: 0 var(--space-20); border-bottom: var(--rule-1) solid var(--hairline); }
.nl-list time { flex: none; width: 104px; }
.nl-list span { flex: 1 1 240px; }
.nl-list a, .nl-standalone { display: inline-flex; align-items: center; min-height: var(--target-min); }

.nl-table { width: 100%; border-collapse: collapse; font-size: 16px; }
.nl-band + .nl-table { margin-top: calc(-1 * var(--rule-1)); }
.nl-table th, .nl-table td { border: var(--rule-1) solid var(--ink); padding: var(--space-5) var(--space-8); vertical-align: top; text-align: left; }
.nl-table thead th { background: var(--band); }
.nl-table tbody th { font-weight: 400; }
.nl-table .nl-num { text-align: right; }

.nl-figure { margin: var(--space-20) 0 0; }
.nl-figure svg { display: block; width: 100%; height: auto; font-size: 15px; fill: var(--ink); }
.nl-figure .nl-axis { fill: none; stroke: var(--ink); }
.nl-figure .nl-ref { fill: none; stroke: var(--ink-soft); stroke-dasharray: 3 3; }
.nl-figure .nl-ref-label { fill: var(--ink-soft); }
.nl-figure .nl-series { fill: none; stroke: var(--link); stroke-width: 1.6; }
.nl-figure figcaption { margin-top: var(--space-8); font-size: 16px; line-height: 1.45; color: var(--ink-soft); }
.nl-figure figcaption b { color: var(--ink); }

.nl-steps { margin: var(--space-14) 0 0; padding-left: 22px; }
.nl-steps li { padding-bottom: var(--space-8); }
.nl-steps li:last-child { padding-bottom: 0; }

.nl-footer { margin-top: var(--space-44); padding-top: var(--space-14); border-top: var(--rule-3) solid var(--ink); display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--space-6) 32px; font-size: 16px; line-height: 1.45; color: var(--ink-soft); }
.nl-footer p { margin: 0; }

.nl-nav a[aria-current="page"] { background: var(--band); font-weight: 700; }
.nl-sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.nl-page :is(button, input, select, textarea, progress, pre, [tabindex]):focus-visible { outline: 2px dotted var(--ink); outline-offset: 2px; }
.nl-page code, .nl-page pre, .nl-page kbd { font-family: var(--font-mono); }

/* page navigation */
.nl-crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; font-size: 16px; }
.nl-crumbs li { display: flex; align-items: center; min-height: var(--target-min); }
.nl-crumbs li + li::before { content: "/"; margin: 0 var(--space-12); color: var(--ink-soft); }
.nl-crumbs a { display: inline-flex; align-items: center; justify-content: center; min-height: var(--target-min); min-width: var(--target-min); }

.nl-tablist { display: flex; flex-wrap: wrap; padding-left: var(--rule-1); border-bottom: var(--rule-1) solid var(--ink); }
.nl-tab { min-height: var(--target-min); margin-left: calc(-1 * var(--rule-1)); padding: 0 var(--space-20); border: var(--rule-1) solid var(--ink); border-bottom: 0; border-radius: var(--radius-0); background: var(--paper); color: var(--ink); font: inherit; cursor: pointer; }
.nl-tab:hover { text-decoration: underline; text-underline-offset: 3px; }
.nl-tab[aria-selected="true"] { background: var(--band); font-weight: 700; }
.nl-tabpanel { padding: var(--space-14) var(--space-12); border: var(--rule-1) solid var(--ink); border-top: 0; }
.nl-tabpanel > p { margin: 0; }

.nl-pages ul { list-style: none; margin: 0; padding: 0 0 0 var(--rule-1); display: flex; flex-wrap: wrap; }
.nl-pages li { display: flex; margin-left: calc(-1 * var(--rule-1)); }
.nl-pages li > * { box-sizing: border-box; display: inline-flex; align-items: center; justify-content: center; min-width: var(--target-min); min-height: var(--target-min); padding: 0 var(--space-12); border: var(--rule-1) solid var(--ink); }
.nl-pages [aria-current="page"] { background: var(--ink); color: var(--paper); font-weight: 700; }
.nl-pages [aria-disabled="true"] { color: var(--ink-soft); }
@media (max-width: 420px) { .nl-pages li > * { padding: 0 var(--space-8); } }

.nl-contents { max-width: 420px; border: var(--rule-1) solid var(--ink); }
.nl-contents .nl-band { border: 0; border-bottom: var(--rule-1) solid var(--ink); }
.nl-contents ol { margin: 0; padding: var(--space-4) var(--space-12) var(--space-4) 36px; }
.nl-contents ol ol { padding: 0 0 0 22px; }
.nl-contents a { display: inline-flex; align-items: center; min-height: var(--target-min); }

/* controls */
.nl-buttons { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-12); }
.nl-btn { box-sizing: border-box; display: inline-flex; align-items: center; justify-content: center; min-height: var(--target-min); min-width: var(--target-min); padding: 0 var(--space-20); border: var(--rule-1) solid var(--ink); border-radius: var(--radius-0); background: var(--band); color: var(--ink); font: inherit; font-size: 17px; line-height: 1.2; cursor: pointer; }
.nl-btn:hover { background: var(--paper); }
.nl-btn:active { background: var(--ink); color: var(--paper); }
.nl-btn.nl-primary { background: var(--ink); color: var(--paper); font-weight: 700; }
.nl-btn.nl-primary:hover { background: var(--ink-soft); }
.nl-btn.nl-danger { background: var(--paper); border-color: var(--alert); color: var(--alert); }
.nl-btn.nl-danger:hover { background: var(--alert); color: var(--paper); }
.nl-btn:disabled, .nl-btn.nl-primary:disabled, .nl-btn.nl-danger:disabled { border: var(--rule-1) dashed var(--ink-soft); background: var(--paper); color: var(--ink-soft); font-weight: 400; cursor: not-allowed; }

.nl-field { display: flex; flex-direction: column; gap: var(--space-4); max-width: 420px; }
.nl-label { padding: 0; font-size: 17px; font-weight: 700; }
.nl-hint { margin: 0; font-size: 16px; line-height: 1.45; color: var(--ink-soft); }
.nl-error { margin: 0; font-size: 16px; line-height: 1.45; color: var(--alert); }
.nl-input { box-sizing: border-box; width: 100%; min-width: 0; min-height: var(--target-min); margin: 0; padding: var(--space-8) var(--space-12); border: var(--rule-1) solid var(--ink); border-radius: var(--radius-0); background: var(--paper); color: var(--ink); font: inherit; line-height: 1.4; -webkit-appearance: none; appearance: none; }
textarea.nl-input { min-height: 120px; resize: vertical; }
select.nl-input { padding-right: 40px; background: var(--paper) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M0 0h12L6 8z'/%3E%3C/svg%3E") no-repeat right 14px center; }
.nl-input::placeholder { color: var(--ink-soft); }
.nl-input[aria-invalid="true"] { border: 2px solid var(--alert); }
.nl-input:disabled { border: var(--rule-1) dashed var(--ink-soft); color: var(--ink-soft); opacity: 1; cursor: not-allowed; }

.nl-choices { margin: 0; padding: 0; border: 0; }
.nl-choice { display: flex; align-items: center; gap: var(--space-12); min-height: var(--target-min); cursor: pointer; }
.nl-choice input { flex: none; width: 18px; height: 18px; margin: 0; accent-color: var(--ink); }
.nl-choice:has(input:disabled) { color: var(--ink-soft); cursor: not-allowed; }

.nl-search { display: flex; max-width: 480px; margin: 0; }
.nl-search .nl-input { flex: 1; }
.nl-search .nl-btn { flex: none; margin-left: calc(-1 * var(--rule-1)); }

.nl-filterbar { display: flex; flex-wrap: wrap; align-items: flex-end; gap: var(--space-12) var(--space-20); margin: 0; padding: var(--space-12); border: var(--rule-1) solid var(--ink); }
.nl-filterbar .nl-field { flex: 1 1 180px; }
.nl-filterbar > p { flex: 1 0 100%; margin: 0; font-size: 16px; color: var(--ink-soft); }

.nl-form { max-width: 560px; margin: 0; }
.nl-form > * + * { margin-top: var(--space-20); }

/* article */
.nl-article-head { padding-bottom: var(--space-8); border-bottom: var(--rule-1) solid var(--hairline); }
.nl-headline { margin: 0; max-width: 24em; font-size: clamp(32px, 5vw, 40px); line-height: 1.15; font-weight: 600; text-wrap: balance; }
.nl-article-head .nl-byline { margin-top: var(--space-8); }

.nl-prose { max-width: var(--measure); }
.nl-prose > * { margin: 0; }
.nl-prose > * + * { margin-top: var(--space-14); }
.nl-prose > h2 { margin-top: var(--space-34); font-size: 22px; line-height: 1.35; font-weight: 700; }
.nl-prose > h3 { margin-top: var(--space-28); font-size: 18px; font-style: italic; font-weight: 400; }
.nl-prose > :first-child { margin-top: 0; }
.nl-prose ul, .nl-prose ol { padding-left: 22px; }
.nl-prose li + li { margin-top: var(--space-8); }
.nl-prose :not(pre) > code { font-size: 0.95em; overflow-wrap: anywhere; }

.nl-quote { max-width: 60ch; margin: var(--space-20) 0 0; padding: 0 0 0 var(--space-40); }
.nl-quote p { margin: 0; font-style: italic; font-size: 20px; line-height: 1.45; }
.nl-quote footer { margin-top: var(--space-6); font-size: 16px; color: var(--ink-soft); }

.nl-code { margin: var(--space-20) 0 0; border: var(--rule-1) solid var(--ink); }
.nl-code figcaption { display: flex; align-items: center; justify-content: space-between; gap: var(--space-12); min-height: var(--target-min); padding-left: var(--space-12); border-bottom: var(--rule-1) solid var(--ink); background: var(--band); font-size: 16px; line-height: 1.4; }
.nl-code figcaption .nl-btn { flex: none; border-width: 0 0 0 var(--rule-1); }
.nl-code pre { margin: 0; padding: var(--space-12); overflow: auto; font-size: 16px; line-height: 1.5; tab-size: 4; }
.nl-code pre:focus-visible { outline-offset: -4px; }

.nl-equation { display: flex; align-items: center; gap: var(--space-20); max-width: var(--measure); margin: var(--space-20) 0 0; }
.nl-equation > div { flex: 1; min-width: 0; overflow-x: auto; padding: var(--space-8) 0 var(--space-8) var(--space-40); font-size: 20px; white-space: nowrap; }
.nl-equation sub { font-size: 0.7em; line-height: 0; }
@media (max-width: 500px) { .nl-equation > div { padding-left: 0; } .nl-quote { padding-left: var(--space-20); } }

.nl-footnotes { max-width: var(--measure); margin-top: var(--space-28); border-top: var(--rule-1) solid var(--ink); font-size: 16px; line-height: 1.45; }
.nl-footnotes ol { margin: var(--space-12) 0 0; padding-left: 22px; }
.nl-footnotes li + li { margin-top: var(--space-8); }
.nl-page sup a { padding: 0 2px; }
.nl-page sup { line-height: 0; }

/* data */
.nl-status { white-space: nowrap; }
.nl-status[data-state="queued"], .nl-status[data-state="idle"] { color: var(--ink-soft); }
.nl-status[data-state="failed"], .nl-status[data-state="diverged"] { color: var(--alert); font-weight: 700; }

.nl-table-scroll { overflow-x: auto; }
.nl-table .nl-sort { display: inline-flex; align-items: center; gap: var(--space-6); min-height: var(--target-min); margin: calc(-1 * var(--space-5)) 0; padding: 0; border: 0; background: none; color: inherit; font: inherit; font-weight: 700; text-align: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.nl-table .nl-sort::after { content: "\2195"; display: inline-block; min-width: 0.7em; }
.nl-table [aria-sort="ascending"] .nl-sort::after { content: "\2191"; }
.nl-table [aria-sort="descending"] .nl-sort::after { content: "\2193"; }
.nl-table tbody tr[data-current] > * { background: var(--band); }
.nl-table tbody tr[data-current] > th { font-weight: 700; }

.nl-details { display: grid; grid-template-columns: minmax(96px, max-content) minmax(0, 1fr); max-width: 560px; margin: 0; border-top: var(--rule-1) solid var(--ink); border-left: var(--rule-1) solid var(--ink); font-size: 16px; }
.nl-details dt, .nl-details dd { margin: 0; padding: var(--space-5) var(--space-8); border-right: var(--rule-1) solid var(--ink); border-bottom: var(--rule-1) solid var(--ink); overflow-wrap: anywhere; }
.nl-details dt { background: var(--band); font-weight: 700; }
.nl-band + .nl-details { margin-top: calc(-1 * var(--rule-1)); max-width: none; }

.nl-progress { max-width: 560px; margin: 0; }
.nl-progress label { display: block; margin-bottom: var(--space-4); font-size: 16px; line-height: 1.45; }
.nl-progress progress { -webkit-appearance: none; appearance: none; display: block; box-sizing: border-box; width: 100%; height: 18px; border: var(--rule-1) solid var(--ink); border-radius: var(--radius-0); background: var(--paper); }
.nl-progress progress::-webkit-progress-bar { background: var(--paper); }
.nl-progress progress::-webkit-progress-value { background: var(--ink); }
.nl-progress progress::-moz-progress-bar { background: var(--ink); }

.nl-log pre { max-height: 220px; font-size: 15px; }
.nl-log .nl-log-error { color: var(--alert); }

.nl-bars { width: 100%; border-collapse: collapse; font-size: 16px; }
.nl-bars th { width: 1%; padding: var(--space-4) var(--space-12) var(--space-4) 0; text-align: left; font-weight: 400; }
.nl-bars td { padding: var(--space-4) 0; }
@media (min-width: 501px) { .nl-bars th { white-space: nowrap; } }
.nl-bars td.nl-bar-cell { border-left: var(--rule-1) solid var(--ink); }
.nl-bar { display: block; height: 16px; background: var(--ink); forced-color-adjust: none; }
.nl-bars td.nl-num { width: 1%; padding-left: var(--space-12); text-align: right; }
.nl-bars tr[data-current] th, .nl-bars tr[data-current] td { font-weight: 700; }
.nl-bars tr[data-current] .nl-bar { background: var(--link); }

.nl-multiples { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 210px), 1fr)); gap: var(--space-20); }
.nl-multiple h3 { margin: 0 0 var(--space-4); font-size: 16px; line-height: 1.45; font-weight: 700; }
.nl-multiple h3 span { font-weight: 400; }
.nl-figure .nl-series.nl-quiet { stroke: var(--ink); }

.nl-lineage, .nl-lineage ul { list-style: none; margin: 0; padding: 0; }
.nl-lineage ul { margin-left: var(--space-8); }
.nl-lineage ul > li { position: relative; padding-left: var(--space-24); }
.nl-lineage ul > li::before { content: ""; position: absolute; left: 0; top: 0; width: 16px; height: 22px; border-left: var(--rule-1) solid var(--ink); border-bottom: var(--rule-1) solid var(--ink); }
.nl-lineage ul > li:not(:last-child)::after { content: ""; position: absolute; left: 0; top: 22px; bottom: 0; border-left: var(--rule-1) solid var(--ink); }
.nl-node { display: flex; flex-wrap: wrap; align-items: center; gap: 0 var(--space-12); min-height: var(--target-min); font-size: 16px; }
.nl-node a { display: inline-flex; align-items: center; min-height: var(--target-min); }

/* feedback */
.nl-notice { max-width: var(--measure); border: var(--rule-1) solid var(--ink); }
.nl-notice > h3 { margin: 0; padding: var(--space-5) var(--space-12); border-bottom: var(--rule-1) solid var(--ink); background: var(--band); font-size: 17px; line-height: 1.4; font-weight: 700; }
.nl-notice > div { padding: var(--space-8) var(--space-12) var(--space-12); }
.nl-notice p, .nl-notice ul { margin: 0; }
.nl-notice ul { padding-left: 22px; }
.nl-notice li a { display: inline-flex; align-items: center; min-height: var(--target-min); }
.nl-notice[data-kind="warning"] > h3 { background: var(--mark); }
.nl-notice[data-kind="error"] { border-color: var(--alert); }
.nl-notice[data-kind="error"] > h3 { border-color: var(--alert); background: var(--paper); color: var(--alert); }

.nl-empty { max-width: var(--measure); padding: var(--space-20); border: var(--rule-1) solid var(--ink); }
.nl-empty h3 { margin: 0; font-size: 20px; line-height: 1.4; }
.nl-empty p { margin: var(--space-4) 0 var(--space-14); }

.nl-dialog { box-sizing: border-box; width: min(440px, calc(100% - 32px)); padding: 0; border: var(--rule-1) solid var(--ink); border-radius: var(--radius-0); background: var(--paper); color: var(--ink); }
.nl-dialog::backdrop { background: rgba(0, 0, 0, 0.45); }
.nl-dialog .nl-band { border: 0; border-bottom: var(--rule-1) solid var(--ink); }
.nl-dialog > div { padding: var(--space-12); }
.nl-dialog p { margin: 0 0 var(--space-14); }

.nl-notfound > * { margin: 0; }
.nl-notfound > * + * { margin-top: var(--space-14); }
