:root {
  --pca-divider: color-mix(in srgb, var(--md-default-fg-color) 18%, transparent);
  --pca-soft-bg: color-mix(in srgb, var(--md-primary-fg-color) 6%, transparent);
  --pca-hover-bg: color-mix(in srgb, var(--md-primary-fg-color) 11%, transparent);
}

.md-grid {
  max-width: 92rem;
}

.md-content__inner {
  max-width: 68rem;
}

.md-typeset {
  line-height: 1.75;
}

.md-typeset h1 {
  border-bottom: 1px solid var(--pca-divider);
  font-weight: 700;
  letter-spacing: 0;
  padding-bottom: 0.45rem;
}

.md-typeset h2,
.md-typeset h3 {
  letter-spacing: 0;
}

.pca-page-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  justify-content: flex-end;
  margin: 0.15rem 0 0.65rem;
}

.pca-page-actions__link {
  align-items: center;
  border: 1px solid var(--pca-divider);
  border-radius: 4px;
  color: var(--md-default-fg-color--light);
  display: inline-flex;
  font-size: 0.68rem;
  gap: 0.3rem;
  line-height: 1.35;
  padding: 0.28rem 0.45rem;
}

.pca-page-actions__link:hover,
.pca-page-actions__link:focus-visible {
  background: var(--pca-hover-bg);
  border-color: var(--md-accent-fg-color);
  color: var(--md-accent-fg-color);
  outline: none;
}

.pca-page-actions__icon {
  display: inline-flex;
  flex: 0 0 0.85rem;
  height: 0.85rem;
  width: 0.85rem;
}

.pca-page-actions__revision {
  color: var(--md-code-fg-color);
  font-family: var(--md-code-font-family);
  font-size: 0.62rem;
}

.md-typeset table:not([class]) {
  border: 1px solid var(--pca-divider);
  border-radius: 4px;
  overflow: hidden;
}

.md-typeset table:not([class]) th {
  background: var(--pca-soft-bg);
  font-weight: 650;
}

.md-typeset table:not([class]) tr:nth-child(even) td {
  background: color-mix(in srgb, var(--md-default-fg-color) 2.5%, transparent);
}

.doc-section {
  border-top: 1px solid var(--pca-divider);
  margin-top: 1.4rem;
}

.doc-section--level-2 > h2,
.doc-section--level-3 > h3 {
  align-items: center;
  display: flex;
  gap: 0.45rem;
  margin: 0;
  padding: 1rem 0 0.5rem;
}

.doc-section--level-3 {
  border-top-style: dashed;
  margin-top: 0.8rem;
}

.doc-section--level-3 > h3 {
  padding-top: 0.75rem;
}

.doc-section__toggle {
  align-items: center;
  background: transparent;
  border: 0;
  border-radius: 4px;
  color: var(--md-default-fg-color--light);
  cursor: pointer;
  display: inline-flex;
  flex: 0 0 1.65rem;
  height: 1.65rem;
  justify-content: center;
  margin: 0;
  padding: 0;
}

.doc-section__toggle:hover,
.doc-section__toggle:focus-visible {
  background: var(--pca-hover-bg);
  color: var(--md-accent-fg-color);
  outline: none;
}

.doc-section__toggle-icon {
  border-bottom: 2px solid currentcolor;
  border-right: 2px solid currentcolor;
  display: block;
  height: 0.48rem;
  transform: rotate(45deg) translate(-0.1rem, -0.1rem);
  transition: transform 120ms ease;
  width: 0.48rem;
}

.doc-section--collapsed > :is(h2, h3) > .doc-section__toggle .doc-section__toggle-icon {
  transform: rotate(-45deg);
}

.doc-section__body[hidden] {
  display: none;
}

.doc-section-actions {
  align-items: center;
  display: flex;
  gap: 0.5rem;
  justify-content: flex-end;
  margin: 0.75rem 0 0.25rem;
}

.doc-section-actions__button {
  background: transparent;
  border: 1px solid var(--pca-divider);
  border-radius: 4px;
  color: var(--md-default-fg-color--light);
  cursor: pointer;
  font: inherit;
  font-size: 0.72rem;
  padding: 0.3rem 0.55rem;
}

.doc-section-actions__button:hover,
.doc-section-actions__button:focus-visible {
  background: var(--pca-hover-bg);
  border-color: var(--md-accent-fg-color);
  color: var(--md-default-fg-color);
  outline: none;
}

.md-nav__item .md-nav__link--active {
  font-weight: 650;
}

@media screen and (max-width: 44.984375em) {
  .md-typeset {
    line-height: 1.65;
  }

  .doc-section-actions {
    justify-content: flex-start;
  }

  .pca-page-actions {
    justify-content: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  .doc-section__toggle-icon {
    transition: none;
  }
}
