:root {
  font-family: var(--kb-font-body);
  color: var(--kb-text-primary);
  background: var(--kb-surface-page);
}

:root[data-kb-bottom] {
  background: var(--kb-surface-frame-deep);
}

html {
  box-sizing: border-box;
  min-height: 100%;
  font-size: 100%;
  scroll-behavior: smooth;
  text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
}

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

body {
  min-height: 100%;
  margin: 0;
  background: var(--kb-surface-page);
  color: var(--kb-text-primary);
  font-family: var(--kb-font-body);
  font-size: var(--kb-type-body);
  font-weight: var(--kb-weight-body);
  line-height: var(--kb-leading-body);
  text-rendering: optimizeLegibility;
}

img,
picture,
svg,
video,
audio,
canvas {
  display: block;
  max-width: 100%;
}

audio {
  width: 100%;
}

img,
video {
  height: auto;
}

iframe {
  display: block;
  max-width: 100%;
  border: 0;
}

figure {
  margin: 0;
}

figcaption {
  margin-top: var(--kb-gap-group);
  color: var(--kb-text-secondary);
  font-size: var(--kb-type-meta);
  line-height: var(--kb-leading-lead);
}

.kb-figure__credit {
  font-style: italic;
}

.kb-figure__caption + .kb-figure__credit {
  margin-inline-start: 0.75em;
}

@media (width <= 64rem) {
  .kb-figure__credit {
    font-size: var(--kb-type-status);
  }
}

p,
ul,
ol,
dl,
blockquote,
figure,
table {
  margin-block: 0 var(--kb-gap-paragraph);
}

p:last-child,
ul:last-child,
ol:last-child,
dl:last-child,
blockquote:last-child,
figure:last-child,
table:last-child {
  margin-bottom: 0;
}

ul,
ol {
  padding-left: 1.35em;
}

:is(ul, ol):where([class^="kb-"], [class*=" kb-"]) {
  margin: 0;
  padding: 0;
  list-style: none;
}

li + li {
  margin-top: var(--kb-gap-tight);
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin-block: 0 var(--kb-heading-gap);
  color: var(--kb-text-primary);
  font-weight: var(--kb-weight-heading);
  line-height: var(--kb-leading-heading);
  letter-spacing: var(--kb-tracking-heading);
  text-wrap: balance;
  overflow-wrap: break-word;
}

@media (width <= 40rem) {
  :is(h1, h2, h3, h4, h5, h6) {
    -webkit-hyphens: auto;
    hyphens: auto;
    hyphenate-limit-chars: 10 4 4;
  }
}

h1 {
  font-size: var(--kb-type-h1);
}

h2 {
  font-size: var(--kb-type-h2);
}

h3 {
  font-size: var(--kb-type-h3);
  font-weight: var(--kb-weight-control);
  line-height: var(--kb-leading-snug);
}

h4 {
  font-size: var(--kb-type-h4);
  font-weight: var(--kb-weight-control);
  line-height: var(--kb-leading-snug);
}

h5,
h6 {
  font-size: var(--kb-type-h4);
  font-weight: var(--kb-weight-control);
  line-height: var(--kb-leading-snug);
  letter-spacing: 0;
}

:is(h1, h2, h3, h4, h5, h6) + p {
  margin-top: var(--kb-heading-gap);
}

:where(p, ul, ol, dl, blockquote, figure, table) + :is(h2, h3, h4, h5, h6) {
  margin-top: var(--kb-heading-space);
}

a {
  color: var(--kb-link);
  text-decoration: none;
  text-decoration-thickness: var(--kb-underline-thickness);
  text-underline-offset: var(--kb-underline-offset);
  text-decoration-skip-ink: auto;
  transition: color var(--kb-duration) ease;
}

a:is(:hover, :focus-visible) {
  color: var(--kb-link-hover);
}

a:where(:hover, :focus-visible) {
  text-decoration: underline;
}

button.submit:disabled {
  background: var(--kb-state-disabled-surface);
  background-image: none;
  color: var(--kb-state-disabled-text);
  cursor: not-allowed;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: var(--kb-focus-ring-width) solid var(--kb-focus-ring-outer);
  outline-offset: var(--kb-focus-ring-offset, var(--kb-focus-ring-width));
  box-shadow: var(--kb-focus-ring-shadow, 0 0 0 var(--kb-focus-ring-width) var(--kb-focus-ring-inner));
}

strong,
b {
  font-weight: var(--kb-weight-control);
}

small {
  font-size: var(--kb-type-meta);
}

blockquote {
  padding-left: var(--kb-gap-block);
  border-left: 0.35rem solid var(--kb-text-label);
  color: var(--kb-text-secondary);
  font-size: var(--kb-type-lead);
  line-height: var(--kb-leading-lead);
}

hr {
  height: 0;
  margin-block: var(--kb-space-48);
  border: 0;
}

table {
  border-collapse: collapse;
  font-variant-numeric: tabular-nums;
}

:where(table, col, tr, th, td) {
  width: auto !important;
  height: auto !important;
  border: 0 !important;
  background: none !important;
}

:where(table) {
  width: 100% !important;
}

caption {
  padding-bottom: var(--kb-space-8);
  color: var(--kb-text-secondary);
  font-size: var(--kb-type-meta);
  line-height: var(--kb-leading-lead);
  text-align: left;
}

th,
td {
  padding: var(--kb-space-10) var(--kb-space-16);
  text-align: left;
  vertical-align: top;
}

:where(tbody tr:nth-child(odd)) > :where(th, td) {
  background: var(--kb-surface-highlight) !important;
}

th {
  font-weight: var(--kb-weight-heading);
}

thead th {
  padding-block: 0 var(--kb-space-8);
  color: var(--kb-text-secondary);
  font-size: var(--kb-type-status);
  font-weight: var(--kb-weight-label);
  letter-spacing: var(--kb-tracking-label);
  line-height: var(--kb-leading-snug);
  text-transform: uppercase;
  vertical-align: bottom;
}

:where(tbody td:first-child:not(:only-child)) {
  width: 1% !important;
  font-weight: var(--kb-weight-control);
  white-space: nowrap;
}

.content-table {
  overflow-x: auto;
}

@media (width < 30rem) {
  :where(table:not([class], [data-sortable-table])) thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
  }

  :where(table:not([class], [data-sortable-table])) :is(tr, th, td) {
    display: block;
    width: auto !important;
    white-space: normal;
  }

  :where(table:not([class], [data-sortable-table])) :is(th, td):not(:last-child) {
    padding-bottom: 0;
  }

  :where(table:not([class], [data-sortable-table])) :is(th, td) + :is(th, td) {
    padding-top: var(--kb-space-2);
  }
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

input,
select,
textarea {
  max-width: 100%;
  color: var(--kb-text-primary);
}

textarea {
  resize: vertical;
}

::selection {
  background: var(--kb-selection-bg, var(--kb-selection-on-light-bg));
  color: var(--kb-selection-text, var(--kb-selection-on-light-text));
}

.kb-eyebrow,
.kb-pagehead__eyebrow {
  color: var(--kb-eyebrow-color, var(--kb-text-label));
  font-size: var(--kb-eyebrow-font-size, var(--kb-type-label));
  font-weight: var(--kb-eyebrow-font-weight, var(--kb-weight-label));
  letter-spacing: var(--kb-eyebrow-letter-spacing, var(--kb-tracking-label));
  line-height: var(--kb-eyebrow-line-height, var(--kb-leading-snug));
  text-transform: uppercase;
}

.kb-eyebrow {
  margin-block: 0 var(--kb-heading-gap);
}

.kb-eyebrow:has(+ :is(h1, h2, h3, h4, h5, h6)) {
  margin-bottom: var(--kb-eyebrow-gap);
}

.kb-eyebrow + :is(h1, h2, h3, h4, h5, h6) {
  margin-top: 0;
}

.kb-tab {
  --kb-selection-bg: var(--kb-selection-on-dark-bg);
  --kb-selection-text: var(--kb-selection-on-dark-text);
  background: var(--kb-surface-structure);
  color: var(--kb-text-on-structure);
  font-size: var(--kb-type-status);
  font-weight: var(--kb-weight-control);
  line-height: var(--kb-leading-heading);
}

.kb-tab--status {
  font-weight: var(--kb-weight-label);
  letter-spacing: var(--kb-tracking-label);
  text-transform: uppercase;
}

.kb-mark {
  display: inline-block;
  padding: var(--kb-space-2) var(--kb-space-6);
  background: var(--kb-state-selected-surface);
  color: var(--kb-state-selected-text);
  font-size: var(--kb-type-status);
  font-weight: var(--kb-weight-heading);
  letter-spacing: var(--kb-tracking-status);
  line-height: var(--kb-leading-control);
  text-transform: uppercase;
  white-space: nowrap;
}

.kb-proper-name {
  color: var(--kb-text-structure);
  font-size: var(--kb-type-control);
  font-weight: var(--kb-weight-heading);
  letter-spacing: var(--kb-tracking-versal);
  text-transform: uppercase;
}

.kb-meta {
  color: var(--kb-text-secondary);
  font-size: var(--kb-type-status);
  font-weight: var(--kb-weight-control);
  line-height: var(--kb-leading-heading);
  letter-spacing: 0.02em;
  text-transform: none;
}

[hidden] {
  display: none !important;
}

.invisible {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

a.invisible:focus {
  --kb-selection-bg: var(--kb-selection-on-dark-bg);
  --kb-selection-text: var(--kb-selection-on-dark-text);
  position: fixed;
  top: calc(var(--kb-header-height) + var(--kb-space-8));
  left: var(--kb-container-padding-inline);
  z-index: 1000;
  width: auto;
  height: auto;
  padding: var(--kb-space-12) var(--kb-space-16);
  overflow: visible;
  clip-path: none;
  background: var(--kb-surface-frame);
  color: var(--kb-text-on-dark);
  font-weight: var(--kb-weight-label);
  line-height: var(--kb-leading-snug);
  text-decoration: none;
}

@view-transition {
  navigation: auto;
}

::view-transition-group(kb-logo),
::view-transition-old(kb-logo),
::view-transition-new(kb-logo),
::view-transition-group(kb-header),
::view-transition-new(kb-header) {
  animation: none;
}

::view-transition-old(kb-header) {
  display: none;
}

::view-transition-old(kb-logo),
::view-transition-new(kb-logo) {
  mix-blend-mode: normal;
}

::view-transition-group(*) {
  animation-duration: 0.45s;
  animation-timing-function: ease-in-out;
}

::view-transition-old(root) {
  animation: none;
}

::view-transition-new(root) {
  animation: 0.45s ease-out both kb-page-in;
}

::view-transition-old(root),
::view-transition-new(root) {
  mix-blend-mode: normal;
}

@keyframes kb-page-in {
  from {
    opacity: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  @view-transition {
    navigation: none;
  }

  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
