@layer guise.document.base, guise.document.theme;

:root {
  --ink: #1a1a1a;
  --bg: #efefef;
  --accent: #2b64cf;
  --muted: rgba(26,26,26,.85);
  --font-body: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  --font-display: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  --severity-ok: #217045;
  --severity-warn: #82580a;
  --severity-urgent: #b32b22;
  --surface: #ffffff;
  --surface-raised: #f5f5f5;
  --surface-well: #ffffff;
  --guise-hair: rgba(26,26,26,.10);
  --guise-hair-strong: rgba(26,26,26,.18);
  --guise-pre-bg: #e4e4e4;
  --guise-footer: rgba(26,26,26,.85);
  --guise-rule: rgba(26,26,26,.16);
  --guise-rule-strong: rgba(26,26,26,.26);
  --guise-font-mono: ui-monospace, Menlo, Consolas, monospace;
  --guise-accent-text-l-min: 0;
  --guise-accent-text-l-max: 0.51;
  --guise-accent-fill-l-min: 0;
  --guise-accent-fill-l-max: 0.6;
}

@media (prefers-color-scheme: dark) {
  :root {
    --ink: #e7e7e7;
    --bg: #121212;
    --accent: #75a6ff;
    --muted: rgba(231,231,231,.85);
    --severity-ok: #6bc290;
    --severity-warn: #d6aa50;
    --severity-urgent: #ef9389;
    --surface: #1c1c1c;
    --surface-raised: #262626;
    --surface-well: #171717;
    --guise-hair: rgba(231,231,231,.14);
    --guise-hair-strong: rgba(231,231,231,.24);
    --guise-pre-bg: #1c1c1c;
    --guise-footer: rgba(231,231,231,.85);
    --guise-rule: rgba(231,231,231,.20);
    --guise-rule-strong: rgba(231,231,231,.30);
    --guise-accent-text-l-min: 0.69;
    --guise-accent-text-l-max: 1;
    --guise-accent-fill-l-min: 0.6;
    --guise-accent-fill-l-max: 1;
  }
}

:root {
  --guise-theme-color-light: #efefef;
  --guise-theme-color-dark: #121212;
}

@layer guise.document.base {

:root {
  --guise-doc-size-base: 1.05rem;
  --guise-doc-size-h1: 1.75rem;
  --guise-doc-size-h2: 1.15rem;
  
  --guise-doc-size-h3: 1rem;
  --guise-doc-size-ui: 1rem;
  --guise-doc-size-meta: 1rem;
  
  --guise-doc-size-brand-min: 1.4rem;
  --guise-doc-size-brand-max: 1.6rem;
  --guise-doc-size-brand-floor: var(--guise-doc-size-title-min);
  --guise-doc-size-title-min: 1.25rem;
  --guise-doc-size-title-max: 1.65rem;

  --guise-doc-line-height: 1.65;
  --guise-doc-line-height-heading: 1.15;
  --guise-doc-line-height-tight: 1.3;

  --guise-doc-tracking-body: 0;
  
  --guise-doc-tracking-ui: 0.04em;
  --guise-doc-tracking-brand: -0.02em;
  --guise-doc-tracking-heading: -0.015em;

  --guise-doc-weight-normal: 400;
  --guise-doc-weight-heading: 500;

  --guise-doc-max: 680px;
  --guise-doc-measure: 70ch;

  --guise-doc-space-p: 1rem;
  --guise-doc-space-section: 2rem;
  --guise-doc-space-hr: 2rem;
  --guise-doc-space-item: 0.6rem;
  --guise-doc-size-index-min: 1.15rem;
  --guise-doc-size-index-max: 1.35rem;
  --guise-doc-space-index-item: 1.25rem;
}

*, *::before, *::after { box-sizing: border-box; }

body, h1, h2, h3, p, figure, figcaption {
  margin: 0;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

html { overflow-y: scroll; }

@supports (scrollbar-gutter: stable) {
  html {
    scrollbar-gutter: stable;
    overflow-y: auto;
  }
}

body {
  margin: 0 auto;
  max-width: min(var(--guise-doc-max), 90%);
  padding: 40px 32px 72px;
  
  padding: calc(40px + env(safe-area-inset-top)) calc(32px + env(safe-area-inset-right)) calc(72px + env(safe-area-inset-bottom)) calc(32px + env(safe-area-inset-left));
  color: var(--ink);
  background: var(--bg);
  font-family: var(--font-body);
  font-size: var(--guise-doc-size-base);
  font-weight: var(--guise-doc-weight-normal);
  line-height: var(--guise-doc-line-height);
  letter-spacing: var(--guise-doc-tracking-body);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

p {
  margin-top: var(--guise-doc-space-p);
}

code,
pre {
  font-family: var(--guise-font-mono);
  font-size: 85%;
}

pre {
  padding: 1rem 1.4rem;
  overflow: auto;
  border-radius: 3px;
  background: var(--guise-pre-bg);
  margin-top: var(--guise-doc-space-p);
}

pre code {
  font-size: inherit;
}

hr {
  border: none;
  height: 1px;
  margin: var(--guise-doc-space-hr) 0;
  background:
    linear-gradient(
      to right,
      var(--guise-rule-strong) 0%,
      var(--guise-rule) 60%,
      var(--bg) 100%
    );
}

a {
  color: var(--ink);
  text-decoration: none;
  transition: opacity .14s ease;
}

a:visited {
  color: var(--ink);
}

a:hover,
a:active {
  opacity: .6;
}

a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 1px;
}

[data-part="prose"] a,
[data-part="prose"] a:visited {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: .2em;
}

body > a[data-part="skip-link"] {
  position: absolute;
  top: -100%;
  left: 1rem;
  padding: .4rem .8rem;
  background: var(--bg);
  color: var(--ink);
  border: 1px solid var(--guise-hair-strong);
  font-size: var(--guise-doc-size-ui);
  letter-spacing: var(--guise-doc-tracking-ui);
  text-transform: uppercase;
  z-index: 100;
}

body > a[data-part="skip-link"]:focus {
  top: 1rem;
}

h1,
h2,
[data-part="brand"] {
  font-family: var(--font-display);
}

h1 {
  font-size: var(--guise-doc-size-h1);
  font-weight: var(--guise-doc-weight-heading);
  line-height: var(--guise-doc-line-height-heading);
  letter-spacing: var(--guise-doc-tracking-heading);
  margin-bottom: .6rem;
}

h2 {
  font-size: var(--guise-doc-size-h2);
  font-weight: var(--guise-doc-weight-heading);
  line-height: var(--guise-doc-line-height-tight);
  letter-spacing: var(--guise-doc-tracking-heading);
  margin-top: var(--guise-doc-space-section);
  margin-bottom: .45rem;
}

h3 {
  font-size: var(--guise-doc-size-h3);
  font-weight: var(--guise-doc-weight-normal);
  line-height: var(--guise-doc-line-height-tight);
  letter-spacing: var(--guise-doc-tracking-ui);
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 1.5rem;
  margin-bottom: .35rem;
}

body > header {
  padding: 20px 0 0;
  margin-bottom: 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

[data-part="brand"] {
  margin: 0;
  font-size:
    min(
      clamp(
        var(--guise-doc-size-brand-min),
        2.4vw,
        var(--guise-doc-size-brand-max)
      ),
      max(
        var(--guise-doc-size-brand-floor),
        var(--guise-doc-size-brand-min) - (390px - 100vw) * 0.035
      )
    );
  font-weight: var(--guise-doc-weight-heading);
  letter-spacing: var(--guise-doc-tracking-brand);
  line-height: 1;
  text-align: center;
  white-space: nowrap;
}

[data-part="brand"] a,
[data-part="brand"] a:visited {
  color: var(--ink);
  opacity: 1;
}

[data-part="brand"] a:hover {
  opacity: .5;
}

[data-part="role"] {
  font-size: var(--guise-doc-size-meta);
  color: var(--muted);
  margin: .3rem 0 .5rem;
  text-align: center;
}

[data-part="masthead-socket"] {
  width: 100%;
  max-width: var(--guise-doc-measure);
  margin: 4px 0 0;
}

[data-part="masthead-socket"] hr {
  margin: 6px 0 0;
  background:
    linear-gradient(
      to right,
      var(--bg) 0%,
      var(--guise-rule) 20%,
      var(--guise-rule-strong) 50%,
      var(--guise-rule) 80%,
      var(--bg) 100%
    );
}

body > header nav[aria-label="Primary"] > ul {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
}

body > header nav[aria-label="Primary"] a {
  font-size: var(--guise-doc-size-ui);
  letter-spacing: var(--guise-doc-tracking-ui);
  text-transform: uppercase;
  color: var(--muted);
  padding-bottom: 4px;
  border-bottom: 1px solid transparent;
  transition: color .14s ease;
}

body > header nav[aria-label="Primary"] a:hover {
  color: var(--ink);
}

body > header nav[aria-label="Primary"] a[aria-current="page"] {
  color: var(--ink);
  border-bottom-color: var(--ink);
  cursor: default;
}

main > article {
  max-width: var(--guise-doc-measure);
  margin: 0 auto;
}

article > header {
  padding: 1.4rem 0 1rem;
  margin-bottom: 1.4rem;
  position: relative;
  max-width: var(--guise-doc-measure);
  margin-left: auto;
  margin-right: auto;
}

article > header::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background:
    linear-gradient(
      to right,
      var(--guise-rule-strong) 0%,
      var(--guise-rule) 60%,
      var(--bg) 100%
    );
}

article > header > h1 {
  font-size:
    clamp(
      var(--guise-doc-size-title-min),
      2.5vw,
      var(--guise-doc-size-title-max)
    );
  font-weight: var(--guise-doc-weight-heading);
  letter-spacing: var(--guise-doc-tracking-heading);
  line-height: var(--guise-doc-line-height-heading);
  margin: 0 0 .3rem;
}

article > header > time {
  display: block;
  color: var(--muted);
  font-size: var(--guise-doc-size-meta);
  margin-top: .4rem;
}

article > header > p {
  color: var(--muted);
  font-size: var(--guise-doc-size-meta);
  margin: .6rem 0 0;
  max-width: 58ch;
  line-height: var(--guise-doc-line-height);
}

article > figure {
  max-width: var(--guise-doc-measure);
  margin: 0 auto 2rem;
}

article > figure img {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 16/9;
  object-fit: cover;
}

article > figure figcaption {
  margin-top: .5rem;
  font-size: var(--guise-doc-size-meta);
  color: var(--muted);
  line-height: var(--guise-doc-line-height-tight);
}

[data-part="prose"] {
  line-height: var(--guise-doc-line-height);
  max-width: var(--guise-doc-measure);
  margin-left: auto;
  margin-right: auto;
}

[data-part="prose"] h2 {
  font-size: var(--guise-doc-size-h2);
  font-weight: var(--guise-doc-weight-heading);
  letter-spacing: var(--guise-doc-tracking-heading);
  margin-top: var(--guise-doc-space-section);
  margin-bottom: .45rem;
}

[data-part="prose"] h3 {
  font-size: var(--guise-doc-size-h3);
  letter-spacing: var(--guise-doc-tracking-ui);
  text-transform: uppercase;
  font-weight: var(--guise-doc-weight-normal);
  color: var(--muted);
  margin-top: 1.5rem;
  margin-bottom: .35rem;
}

[data-part="prose"] :is(ul, ol) {
  margin: var(--guise-doc-space-p) 0 0;
}

[data-part="prose"] li + li,
[data-part="prose"] li > :is(ul, ol) {
  margin-top: var(--guise-doc-space-item);
}

[data-part="prose"] li > p:first-child {
  margin-top: 0;
}

[data-part="prose"] blockquote {
  margin: var(--guise-doc-space-p) 0 0;
  padding-left: 1.2rem;
  border-left: 2px solid var(--guise-hair-strong);
  color: var(--muted);
}

[data-part="prose"] :is(h4, h5, h6) {
  font-weight: var(--guise-doc-weight-heading);
  line-height: var(--guise-doc-line-height-tight);
  letter-spacing: var(--guise-doc-tracking-heading);
  margin-top: 1.5rem;
  margin-bottom: .35rem;
}

[data-part="prose"] h4 {
  font-size: var(--guise-doc-size-meta);
}

[data-part="prose"] h5 {
  font-size: var(--guise-doc-size-ui);
}

[data-part="prose"] h6 {
  font-size: var(--guise-doc-size-ui);
  color: var(--muted);
}

[data-part="transclusion"] {
  border-left: 2px solid var(--guise-hair-strong);
  padding-left: 1.2rem;
  margin: var(--guise-doc-space-section) 0;
}

nav[data-part="content-index"] section {
  margin-bottom: 0;
}

nav[data-part="content-index"] section + section {
  margin-top: 3rem;
}

nav[data-part="content-index"] h2 {
  display: flex;
  align-items: center;
  gap: .6rem;
  font-size: var(--guise-doc-size-ui);
  letter-spacing: var(--guise-doc-tracking-ui);
  text-transform: uppercase;
  color: var(--muted);
  font-weight: var(--guise-doc-weight-heading);
  line-height: 1;
  margin: 0 0 .7rem 0;
}

nav[data-part="content-index"] h2::after {
  content: "";
  flex: 1 1 auto;
  height: 1px;
  display: block;
  background:
    linear-gradient(
      to right,
      var(--guise-rule) 60%,
      var(--bg)
    );
}

nav[data-part="content-index"] ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

nav[data-part="content-index"] li {
  padding: 0;
  margin-bottom: var(--guise-doc-space-index-item);
}

nav[data-part="content-index"] li:last-child {
  margin-bottom: 0;
}

nav[data-part="content-index"] li a {
  font-size:
    clamp(
      var(--guise-doc-size-index-min),
      2.2vw,
      var(--guise-doc-size-index-max)
    );
  font-weight: var(--guise-doc-weight-heading);
  color: var(--ink);
  letter-spacing: var(--guise-doc-tracking-heading);
  line-height: var(--guise-doc-line-height-tight);
  display: block;
  width: fit-content;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-decoration-color: var(--guise-rule);
  text-underline-offset: .18em;
  transition: text-decoration-color .14s ease;
}

nav[data-part="content-index"] li a:visited {
  color: var(--ink);
}

nav[data-part="content-index"] li a:hover {
  text-decoration-color: var(--ink);
}

nav[data-part="content-index"] li p {
  color: var(--muted);
  line-height: var(--guise-doc-line-height);
  margin: .1rem 0 0;
  max-width: 58ch;
  font-size: var(--guise-doc-size-meta);
}

dl {
  margin: 0 0 1.8rem;
  padding: 0;
}

dt,
dd {
  margin: 0;
}

dt {
  font-size: var(--guise-doc-size-ui);
  letter-spacing: var(--guise-doc-tracking-ui);
  text-transform: uppercase;
  color: var(--muted);
  padding-top: .6rem;
}

dd {
  padding-bottom: .6rem;
  position: relative;
}

dd::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background:
    linear-gradient(
      to right,
      var(--guise-rule) 60%,
      var(--bg)
    );
}

body > footer {
  width: 100%;
  margin: 28px 0 0;
  color: var(--guise-footer);
  font-size: var(--guise-doc-size-ui);
  letter-spacing: var(--guise-doc-tracking-body);
  text-align: center;
}

body > footer a {
  color: inherit;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: .2em;
}

body > footer a[aria-current="page"] {
  text-decoration: none;
}

span[data-part="element-ref"] {
  color: var(--muted);
}

span[data-part="broken-link"] {
  color: var(--muted);
  text-decoration: line-through;
}

span[data-part="broken-transclusion"] {
  color: var(--muted);
  font-style: italic;
}

details:has([data-sbfw-clear]) {
  margin: var(--guise-doc-space-p) 0 0;
}

details:has([data-sbfw-clear]) > summary {
  display: inline-block;
  padding: .55rem 1rem;
  font-size: var(--guise-doc-size-ui);
  line-height: var(--guise-doc-line-height-tight);
  color: var(--ink);
  border: 1px solid var(--guise-hair-strong);
  border-radius: 3px;
  cursor: pointer;
  transition: border-color .14s ease, color .14s ease;
}

details:has([data-sbfw-clear]) > summary:hover {
  border-color: var(--ink);
}

details:has([data-sbfw-clear]) > summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

details[open]:has([data-sbfw-clear]) > summary {
  color: var(--muted);
  border-color: var(--guise-hair);
}

[data-sbfw-clear] {
  display: inline-block;
  margin: var(--guise-doc-space-p) 0 0;
  padding: .55rem 1rem;
  font: inherit;
  font-size: var(--guise-doc-size-ui);
  line-height: var(--guise-doc-line-height-tight);
  color: var(--ink);
  background: transparent;
  border: 1px solid var(--guise-hair-strong);
  border-radius: 3px;
  cursor: pointer;
  transition: border-color .14s ease, color .14s ease;
}

[data-sbfw-clear]:hover {
  border-color: var(--ink);
}

[data-sbfw-clear]:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

[data-sbfw-clear][data-sbfw-clear-state="clearing"] {
  color: var(--muted);
  border-color: var(--guise-hair);
  cursor: progress;
}

[data-sbfw-clear][data-sbfw-clear-state="cleared"] {
  color: var(--severity-ok);
  border-color: var(--severity-ok);
  cursor: default;
}

[data-sbfw-clear][data-sbfw-clear-state="failed"] {
  color: var(--severity-urgent);
  border-color: var(--severity-urgent);
}

table {
  border-collapse: collapse;
  width: 100%;
  margin: var(--guise-doc-space-hr) 0 0;
}

th {
  padding: .6rem 0;
  vertical-align: baseline;
  position: relative;
  text-align: left;
  font-size: var(--guise-doc-size-ui);
  font-weight: var(--guise-doc-weight-heading);
  letter-spacing: var(--guise-doc-tracking-ui);
  text-transform: uppercase;
  color: var(--muted);
}

td {
  padding: .6rem 0;
  vertical-align: baseline;
  position: relative;
}

:is(th, td):not(:last-child) {
  padding-right: 1.2rem;
}

td::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background:
    linear-gradient(
      to right,
      var(--guise-rule) 60%,
      var(--bg)
    );
}

tr:first-child :is(th, td)::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background:
    linear-gradient(
      to right,
      var(--guise-rule) 60%,
      var(--bg)
    );
}

td a {
  color: var(--ink);
}

td a:visited {
  color: var(--ink);
}

td a:hover {
  opacity: .5;
}

@media (max-width: 680px) {
  
  body {
    padding: 16px 20px 52px;
    padding: calc(16px + env(safe-area-inset-top)) calc(20px + env(safe-area-inset-right)) calc(52px + env(safe-area-inset-bottom)) calc(20px + env(safe-area-inset-left));
    max-width: none;
    width: 100%;
  }

  body > header {
    padding-top: 14px;
  }

  body > header nav[aria-label="Primary"] > ul {
    gap: 16px;
  }
}

}

@layer guise.document.theme {

html {
  scroll-padding-top: calc(var(--guise-doc-bar-h) + env(safe-area-inset-top, 0px) + .75rem);
}

body {
  padding-top: 0;
}

body > header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  grid-template-rows: 1fr auto auto;
  align-items: center;
  column-gap: 1rem;
  min-height: calc(var(--guise-doc-bar-h) + env(safe-area-inset-top, 0px));
  margin-bottom: 16px;
  padding: calc(var(--guise-doc-bar-foot) + env(safe-area-inset-top, 0px)) 0 var(--guise-doc-bar-foot);
  background: var(--surface-raised);
  border-bottom: 1px solid var(--guise-doc-bar-edge);
  border-image: linear-gradient(var(--surface-raised) calc(100% - 1px), var(--guise-doc-bar-edge) 0) fill 0 0 1 0 / 0 0 1px 0 / 0 100vmax;
}

[data-part="brand"] {
  grid-column: 1;
  grid-row: 1;
  font-size: var(--guise-doc-bar-name);
  line-height: 1.2;
  text-align: left;
}

[data-part="brand"] a {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: var(--guise-doc-bar-touch);
}

[data-part="brand"] a:not([aria-current="page"]) {
  padding-left: .7em;
}

[data-part="brand"] a:not([aria-current="page"])::before {
  content: "";
  position: absolute;
  left: -.15em;
  top: 50%;
  width: .5em;
  height: .5em;
  margin-top: -.25em;
  border-left: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  border-radius: 1px;
  transform: rotate(45deg);
}

[data-part="role"] {
  grid-column: 1;
  grid-row: 2;
  margin: -.55rem 0 0;
  line-height: 1.2;
  text-align: left;
  white-space: nowrap;
}

[data-part="masthead-socket"] {
  grid-column: 1 / -1;
  grid-row: 3;
  max-width: none;
  margin: 0;
}

[data-part="masthead-socket"] hr {
  position: relative;
  top: var(--guise-doc-bar-foot);
  height: 1px;
  margin: 0 0 -1px;
  background: var(--guise-doc-bar-edge);
}

body:has(> header > [data-part="masthead-socket"] > :not(hr)) {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  column-gap: 1rem;
}

body:has(> header > [data-part="masthead-socket"] > :not(hr)) > * {
  flex: 1 1 100%;
  min-width: 0;
}

body:has(> header > [data-part="masthead-socket"] > :not(hr)) > header {
  display: contents;
}

body > header:has(> [data-part="masthead-socket"] > :not(hr)) > [data-part="brand"],
body > header:has(> [data-part="masthead-socket"] > :not(hr)) > [data-part="role"],
body > header:has(> [data-part="masthead-socket"] > :not(hr)) > nav[aria-label="Primary"] {
  position: sticky;
  top: 0;
  box-sizing: border-box;
}

body > header:has(> [data-part="masthead-socket"] > :not(hr)) > [data-part="brand"] {
  order: -3;
  flex: none;
  z-index: 20;
  display: flex;
  align-items: center;
  min-height: calc(var(--guise-doc-bar-h) + env(safe-area-inset-top, 0px));
  padding: calc(var(--guise-doc-bar-foot) + env(safe-area-inset-top, 0px)) 0 var(--guise-doc-bar-foot);
  background: var(--surface-raised);
  border-bottom: 1px solid var(--guise-doc-bar-edge);
  border-image: linear-gradient(var(--surface-raised) calc(100% - 1px), var(--guise-doc-bar-edge) 0) fill 0 0 1 0 / 0 0 1px 0 / 0 100vmax;
}

body > header:has(> [data-part="masthead-socket"] > :not(hr)) > nav[aria-label="Primary"] {
  order: -2;
  flex: 1 1 0;
  z-index: 21;
  display: flex;
  align-items: center;
  min-height: calc(var(--guise-doc-bar-h) + env(safe-area-inset-top, 0px));
  padding: calc(var(--guise-doc-bar-foot) + env(safe-area-inset-top, 0px)) 0 var(--guise-doc-bar-foot);
}

body > header:has(> [data-part="masthead-socket"] > :not(hr)) > [data-part="role"] {
  order: -1;
  flex: 1 1 100%;
  min-width: 0;
  top: calc(var(--guise-doc-bar-h) + env(safe-area-inset-top, 0px) - 1.2em - var(--guise-doc-bar-foot) - 1px);
  z-index: 20;
  margin: calc(-1.2em - var(--guise-doc-bar-foot) - 1px) 0 0;
}

body > header:has(> [data-part="role"]):has(> [data-part="masthead-socket"] > :not(hr)) > [data-part="brand"] {
  align-items: flex-start;
}

body > header:has(> [data-part="masthead-socket"] > :not(hr)) > [data-part="masthead-socket"] {
  flex: 1 1 100%;
  min-width: 0;
  margin: 16px 0;
}

body > header nav[aria-label="Primary"] {
  grid-column: 2;
  grid-row: 1 / span 2;
  min-width: 0;
}

body > header nav[aria-label="Primary"] > ul {
  container: guise-doc-bar / inline-size;
  flex-wrap: nowrap;
  justify-content: flex-end;
  gap: 0;
  width: calc(100% / var(--guise-doc-bar-entries, 1));
  margin: 0 0 0 auto;
}

body > header nav[aria-label="Primary"] > ul:has(> li:nth-child(2)) { --guise-doc-bar-entries: 2; }
body > header nav[aria-label="Primary"] > ul:has(> li:nth-child(3)) { --guise-doc-bar-entries: 3; }
body > header nav[aria-label="Primary"] > ul:has(> li:nth-child(4)) { --guise-doc-bar-entries: 4; }
body > header nav[aria-label="Primary"] > ul:has(> li:nth-child(5)) { --guise-doc-bar-entries: 5; }
body > header nav[aria-label="Primary"] > ul:has(> li:nth-child(6)) { --guise-doc-bar-entries: 6; }

body > header nav[aria-label="Primary"] > ul > li {
  flex: none;
}

body > header nav[aria-label="Primary"] > ul > li + li {
  margin-left: 1.5rem;
}

body > header nav[aria-label="Primary"] a {
  display: flex;
  align-items: center;
  min-height: var(--guise-doc-bar-touch);
  padding: 0;
  border-bottom: 0;
  font-size: var(--guise-doc-bar-label);
  line-height: 1.2;
  white-space: nowrap;
}

body > header nav[aria-label="Primary"] a[aria-current="page"] {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: .4em;
}

@media (min-width: 681px) {
  body > header {
    margin-bottom: 24px;
  }

  body > header:has(> [data-part="masthead-socket"] > :not(hr)) > [data-part="masthead-socket"] {
    margin: 24px 0;
  }
}

}

@layer guise.document.theme {

:root {
  --guise-doc-bar-scale: 1;
  --guise-doc-bar-icon: calc(2.75rem * 0.56 * var(--guise-doc-bar-scale));
  --guise-doc-bar-label: calc(1rem * var(--guise-doc-bar-scale));
  --guise-doc-bar-gap: calc(1.125rem * 0.02 * var(--guise-doc-bar-scale));
  --guise-doc-bar-inset-start: calc(1.125rem * 0.22 * var(--guise-doc-bar-scale));
  --guise-doc-bar-inset-end: calc(1.125rem * 0.07 * var(--guise-doc-bar-scale));
  --guise-doc-bar-foot: calc(1.125rem * 0.06 * var(--guise-doc-bar-scale));
  --guise-doc-bar-h: calc(max(2.75rem, calc(var(--guise-doc-bar-inset-start) + var(--guise-doc-bar-icon) + var(--guise-doc-bar-gap) + var(--guise-doc-bar-label) * 1.2 + var(--guise-doc-bar-inset-end))) + var(--guise-doc-bar-foot) * 2 + 1px);
  --guise-doc-bar-name: min(clamp(var(--guise-doc-size-brand-min), 2.4vw, var(--guise-doc-size-brand-max)), max(var(--guise-doc-size-brand-floor), var(--guise-doc-size-brand-min) - (390px - 100vw) * 0.035));
  --guise-doc-bar-touch: 2.75rem;
  --guise-doc-bar-edge: color-mix(in oklab, var(--ink) 22%, var(--surface-raised));
}

/*!
Where the drawings come from. Some of these icons are drawn from, or after,
the Lucide icon set (https://lucide.dev), which is itself in part derived
from Feather; the rest are drawn in the same manner on the same grid. Both
licences allow this and ask that their notices travel with every copy, so
they stand here, in the file that ships:

ISC License

Copyright (c) 2026 Lucide Icons and Contributors

Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted, provided that the above
copyright notice and this permission notice appear in all copies.

THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.

Some Lucide icons are derived from the Feather project, under:

The MIT License (MIT)

Copyright (c) 2013-present Cole Bemis

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
*/
body > header nav[aria-label="Primary"] > ul > li:nth-child(1) > a::before {
  clip-path: polygon(75% 87.5%, 75% 79.3%, 74.8% 77.3%, 74.1% 74.7%, 72.9% 72.3%, 72.2% 71.3%, 70.9% 69.9%, 69.3% 68.7%, 68.2% 68.1%, 66.3% 67.3%, 65.2% 67%, 62.3% 66.7%, 36.8% 66.7%, 35.6% 66.8%, 33.7% 67.3%, 31.2% 68.4%, 29.7% 69.4%, 27.8% 71.4%, 26.7% 72.9%, 25.8% 74.7%, 25.3% 76.6%, 25% 78.6%, 25% 87.5%, 16.7% 87.5%, 16.7% 78%, 17.1% 74.8%, 18% 71.7%, 19.4% 68.7%, 21.3% 66%, 24.3% 63%, 27.1% 61.1%, 31% 59.4%, 34.2% 58.6%, 36.4% 58.4%, 62.7% 58.3%, 66.7% 58.8%, 69% 59.4%, 71.9% 60.6%, 73.9% 61.7%, 76.4% 63.7%, 78.7% 66%, 80% 67.9%, 82% 71.7%, 83.1% 75.9%, 83.3% 79%, 83.3% 87.5%, 75% 87.5%, 83.3% 87.5%, 82.5% 89.9%, 80.5% 91.5%, 77.9% 91.5%, 75.8% 89.9%, 75% 87.5%, 75.8% 85.1%, 77.9% 83.5%, 80.5% 83.5%, 82.5% 85.1%, 83.3% 87.5%, 25% 87.5%, 24.2% 89.9%, 22.1% 91.5%, 19.5% 91.5%, 17.5% 89.9%, 16.7% 87.5%, 17.5% 85.1%, 19.5% 83.5%, 22.1% 83.5%, 24.2% 85.1%, 25% 87.5%, 49.9% 16.7%, 48.1% 16.8%, 45.5% 17.5%, 43.2% 18.7%, 41.2% 20.3%, 39.5% 22.4%, 38.3% 24.7%, 37.8% 26.5%, 37.5% 29.2%, 37.8% 31.8%, 38.6% 34.3%, 39.5% 35.9%, 41.2% 38%, 42.6% 39.2%, 44.9% 40.6%, 47.4% 41.4%, 50% 41.6%, 52.6% 41.4%, 54.4% 40.8%, 56.8% 39.6%, 58.8% 38%, 60.5% 36%, 61.6% 33.6%, 62.3% 31.1%, 62.5% 29.2%, 62.2% 26.6%, 61.4% 24%, 60.5% 22.4%, 58.8% 20.3%, 57.4% 19.1%, 55.1% 17.8%, 52.6% 17%, 49.9% 16.7%, 50.1% 8.3%, 54.3% 8.8%, 58.5% 10.1%, 62.2% 12.3%, 64.8% 14.5%, 67.5% 17.8%, 69.1% 20.7%, 70.4% 24.8%, 70.9% 29.1%, 70.6% 32.5%, 69.5% 36.6%, 67.5% 40.5%, 64.7% 43.9%, 61.4% 46.7%, 57.5% 48.6%, 54.3% 49.6%, 50% 50%, 45.7% 49.6%, 41.5% 48.2%, 37.8% 46.1%, 35.2% 43.9%, 32.5% 40.6%, 30.9% 37.6%, 29.6% 33.5%, 29.1% 29.2%, 29.6% 24.9%, 30.6% 21.6%, 32.5% 17.8%, 35.3% 14.4%, 38.6% 11.7%, 42.5% 9.7%, 46.7% 8.6%, 50.1% 8.3%, 49.9% 16.7%, 25% 87.5%, 83.3% 87.5%, 75% 87.5%);
}

@media (max-width: 680px) {
  body > header nav[aria-label="Primary"] > ul > li + li {
    margin-left: 0;
  }
  body > header nav[aria-label="Primary"] > ul > li:nth-child(-n+1) > a {
    flex-direction: column;
    justify-content: center;
    gap: var(--guise-doc-bar-gap);
    min-width: var(--guise-doc-bar-touch);
    padding: var(--guise-doc-bar-inset-start) .4rem var(--guise-doc-bar-inset-end);
    font-weight: 500;
    letter-spacing: 0;
    text-transform: none;
    text-decoration: none;
  }
  body > header nav[aria-label="Primary"] > ul > li:nth-child(-n+1) > a::before {
    content: "";
    flex: none;
    width: var(--guise-doc-bar-icon);
    height: var(--guise-doc-bar-icon);
    background: currentColor;
  }
  body > header nav[aria-label="Primary"] > ul > li:nth-child(-n+1) > a[aria-current="page"] {
    font-weight: 600;
  }
  body > header nav[aria-label="Primary"] > ul > li:nth-child(-n+1) > a[aria-current="page"]::before {
    background: var(--accent);
  }
}

@container guise-doc-bar (max-width: 5.3rem) {
  body > header nav[aria-label="Primary"] > ul > li + li {
    margin-left: 0;
  }
  body > header nav[aria-label="Primary"] > ul > li:nth-child(-n+1) > a {
    flex-direction: column;
    justify-content: center;
    gap: var(--guise-doc-bar-gap);
    min-width: var(--guise-doc-bar-touch);
    padding: var(--guise-doc-bar-inset-start) .4rem var(--guise-doc-bar-inset-end);
    font-weight: 500;
    letter-spacing: 0;
    text-transform: none;
    text-decoration: none;
  }
  body > header nav[aria-label="Primary"] > ul > li:nth-child(-n+1) > a::before {
    content: "";
    flex: none;
    width: var(--guise-doc-bar-icon);
    height: var(--guise-doc-bar-icon);
    background: currentColor;
  }
  body > header nav[aria-label="Primary"] > ul > li:nth-child(-n+1) > a[aria-current="page"] {
    font-weight: 600;
  }
  body > header nav[aria-label="Primary"] > ul > li:nth-child(-n+1) > a[aria-current="page"]::before {
    background: var(--accent);
  }
}

@container guise-doc-bar (max-width: 4.05rem) {
  body > header nav[aria-label="Primary"] > ul > li:nth-child(-n+1) > a {
    gap: 0;
    padding-right: 0;
    padding-left: 0;
    font-size: 0;
  }
}

}