/*
 * Bootable docs theme. Replaces the Antora default UI's site.css, styling the same markup, whose behaviour (the nav
 * tree, the table of contents, the copy button, highlight.js) still comes from its site.js.
 * The tokens and the header are in tokens.css and header.css, which the API reference loads too.
 */

/* ---------------------------------------------------------------------------------------------------------------
 * Base
 * ------------------------------------------------------------------------------------------------------------- */

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

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-height) + 24px);
}

html.is-clipped--nav {
  overflow-y: hidden;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text-body);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.75;
  font-feature-settings: "cv11", "ss01";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
}

button {
  font: inherit;
  color: inherit;
}

::selection {
  background: var(--accent-subtle);
}


/* ---------------------------------------------------------------------------------------------------------------
 * Layout
 * ------------------------------------------------------------------------------------------------------------- */

.body {
  display: flex;
  max-width: var(--page-width);
  margin: 0 auto;
}

main.article {
  flex: 1;
  min-width: 0;
  padding: 0 48px 64px;
}

main.article > .content {
  display: flex;
  flex-direction: row-reverse;
  justify-content: flex-end;
  gap: 56px;
}

article.doc {
  flex: 1;
  min-width: 0;
  max-width: var(--content-width);
}

/* ---------------------------------------------------------------------------------------------------------------
 * Toolbar: breadcrumbs, and the page's edit link
 * ------------------------------------------------------------------------------------------------------------- */

.toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 56px;
  max-width: calc(var(--content-width) + var(--toc-width) + 56px);
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.toolbar .home-link,
.page-versions {
  display: none;
}

.breadcrumbs {
  flex: 1;
  min-width: 0;
}

.breadcrumbs ul {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
}

.breadcrumbs li {
  display: inline-flex;
  align-items: center;
}

.breadcrumbs li + li::before {
  content: "";
  width: 14px;
  height: 14px;
  margin: 0 6px;
  background: var(--text-faint);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m9 18 6-6-6-6'/%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 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m9 18 6-6-6-6'/%3E%3C/svg%3E") center / contain no-repeat;
}

.breadcrumbs a {
  text-decoration: none;
  color: var(--text-muted);
}

.breadcrumbs a:hover {
  color: var(--text);
}

.breadcrumbs li:last-child a {
  color: var(--text);
  font-weight: 500;
}

.edit-this-page a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-muted);
  text-decoration: none;
}

.edit-this-page a::before {
  content: "";
  width: 14px;
  height: 14px;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 20h9'/%3E%3Cpath d='M16.5 3.5a2.1 2.1 0 0 1 3 3L7 19l-4 1 1-4Z'/%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 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 20h9'/%3E%3Cpath d='M16.5 3.5a2.1 2.1 0 0 1 3 3L7 19l-4 1 1-4Z'/%3E%3C/svg%3E") center / contain no-repeat;
}

.edit-this-page a:hover {
  color: var(--text);
}

/* ---------------------------------------------------------------------------------------------------------------
 * Table of contents: "On this page"
 * ------------------------------------------------------------------------------------------------------------- */

aside.toc.sidebar {
  flex: none;
  width: var(--toc-width);
  position: sticky;
  top: calc(var(--header-height) + 8px);
  align-self: flex-start;
  max-height: calc(100vh - var(--header-height) - 16px);
  overflow-y: auto;
  padding: 8px 0 24px;
  font-size: 0.8125rem;
  scrollbar-width: thin;
}

.toc .toc-menu h3 {
  margin: 0 0 10px;
  color: var(--text);
  font-size: 0.8125rem;
  font-weight: 600;
}

.toc ul {
  list-style: none;
  margin: 0;
  padding: 0;
  border-left: 1px solid var(--border);
}

.toc li a {
  display: block;
  margin-left: -1px;
  padding: 4px 0 4px 14px;
  border-left: 1px solid transparent;
  color: var(--text-muted);
  line-height: 1.45;
  text-decoration: none;
  transition: color 100ms, border-color 100ms;
}

.toc li[data-level="2"] a {
  padding-left: 26px;
}

.toc li[data-level="3"] a {
  padding-left: 38px;
}

.toc li a:hover {
  color: var(--text);
}

.toc li a.is-active {
  border-left-color: var(--accent);
  color: var(--accent);
  font-weight: 500;
}

/* the copy site.js puts at the top of the page, for narrow screens */
.toc.embedded {
  display: none;
}

/* ---------------------------------------------------------------------------------------------------------------
 * Article: type
 * ------------------------------------------------------------------------------------------------------------- */

.doc {
  color: var(--text-body);
  font-size: 1rem;
  line-height: 1.75;
}

.doc h1,
.doc h2,
.doc h3,
.doc h4,
.doc h5,
.doc h6 {
  color: var(--text);
  font-weight: 600;
  line-height: 1.25;
  position: relative;
}

.doc h1.page {
  margin: 8px 0 12px;
  font-size: 2.5rem;
  line-height: 1.15;
  letter-spacing: -0.025em;
}

.doc .page-lead {
  margin: 0 0 32px;
  color: var(--text-muted);
  font-size: 1.1875rem;
  line-height: 1.6;
}

.doc h2 {
  margin: 56px 0 16px;
  padding-top: 0;
  font-size: 1.75rem;
  letter-spacing: -0.02em;
}

.doc h3 {
  margin: 36px 0 12px;
  font-size: 1.25rem;
  letter-spacing: -0.01em;
}

.doc h4 {
  margin: 28px 0 8px;
  font-size: 1.0625rem;
}

.doc .anchor {
  position: absolute;
  left: -1.1em;
  padding-right: 0.3em;
  color: var(--text-faint);
  text-decoration: none;
  opacity: 0;
  transition: opacity 100ms;
}

.doc .anchor::before {
  content: "#";
  font-weight: 500;
}

.doc h2:hover .anchor,
.doc h3:hover .anchor,
.doc h4:hover .anchor {
  opacity: 1;
}

.doc p {
  margin: 0;
}

.doc .paragraph,
.doc .ulist,
.doc .olist,
.doc .dlist,
.doc .listingblock,
.doc .literalblock,
.doc .admonitionblock,
.doc .tabs,
.doc .colist,
.doc .exampleblock,
.doc .quoteblock,
.doc .tablecontainer,
.doc > table,
.doc .sectionbody > table {
  margin: 0 0 20px;
}

.doc a {
  color: var(--text);
  font-weight: 500;
  text-decoration: underline;
  text-decoration-color: var(--border-strong);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: text-decoration-color 100ms, color 100ms;
}

.doc a:hover {
  color: var(--accent);
  text-decoration-color: var(--accent);
}

.doc strong {
  color: var(--text);
  font-weight: 600;
}

.doc ul,
.doc ol {
  margin: 0;
  padding-left: 1.4em;
}

.doc li {
  margin: 6px 0;
}

.doc li::marker {
  color: var(--text-faint);
}

.doc li > p {
  margin: 0;
}

.doc .ulist .ulist,
.doc .olist .olist {
  margin: 4px 0 0;
}

.doc hr {
  border: 0;
  border-top: 1px solid var(--border);
  margin: 40px 0;
}

/* inline code */
.doc code {
  font-family: var(--font-mono);
  font-size: 0.85em;
  font-variant-ligatures: none;
}

.doc :not(pre) > code {
  padding: 2px 6px;
  border-radius: 5px;
  background: var(--inline-code-bg);
  color: var(--inline-code-text);
  white-space: nowrap;
}

.doc a > code {
  color: inherit;
}

.doc a.kdoc {
  text-decoration: none;
}

.doc a.kdoc > code {
  border: 1px solid var(--accent-border);
  transition: background-color 100ms;
}

.doc a.kdoc:hover > code {
  background: var(--accent-subtle);
  color: var(--accent);
}

/* ---------------------------------------------------------------------------------------------------------------
 * Code blocks
 * ------------------------------------------------------------------------------------------------------------- */

.doc .listingblock > .title,
.doc .tableblock > .title,
.doc .imageblock > .title {
  margin-bottom: 8px;
  color: var(--text);
  font-size: 0.875rem;
  font-weight: 600;
}

.doc .listingblock > .content,
.doc .literalblock > .content {
  position: relative;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--code-bg);
  overflow: hidden;
}

/* site.js adds a toolbox, the language and a copy button: a header strip above the code */
.doc .listingblock > .content:has(> .source-toolbox) {
  padding-top: 36px;
}

.doc pre {
  margin: 0;
  padding: 14px 18px;
  overflow-x: auto;
  background: transparent;
  color: var(--code-text);
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  line-height: 1.7;
  tab-size: 2;
  scrollbar-width: thin;
}

.doc pre code {
  display: block;
  padding: 0;
  background: none;
  color: inherit;
  font-size: inherit;
  white-space: pre;
}

.doc .source-toolbox {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 36px;
  padding: 0 8px 0 16px;
  border-bottom: 1px solid var(--border);
  background: var(--code-header-bg);
}

.doc .source-lang {
  color: var(--text-muted);
  font-family: var(--font-sans);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.doc .copy-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 26px;
  margin-left: auto;
  padding: 0 8px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--text-muted);
  font-size: 0.75rem;
  font-weight: 500;
  cursor: pointer;
}

.doc .copy-button::after {
  content: "Copy";
}

.doc .copy-button:hover {
  background: var(--bg-hover);
  color: var(--text);
}

.doc .copy-button .copy-icon {
  width: 14px;
  height: 14px;
  opacity: 0.7;
}

:root[data-theme="dark"] .doc .copy-button .copy-icon {
  filter: invert(1);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .doc .copy-button .copy-icon {
    filter: invert(1);
  }
}

.doc .copy-toast {
  position: absolute;
  right: 100%;
  top: 50%;
  transform: translateY(-50%);
  margin-right: 6px;
  padding: 2px 8px;
  border-radius: 6px;
  background: var(--text);
  color: var(--bg);
  font-size: 0.75rem;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 150ms;
}

.doc .copy-button.clicked .copy-toast {
  opacity: 1;
}

/* syntax highlighting (highlight.js) */
.hljs-keyword,
.hljs-selector-tag,
.hljs-built_in,
.hljs-doctag,
.hljs-section {
  color: var(--hl-keyword);
}

.hljs-string,
.hljs-regexp,
.hljs-addition,
.hljs-template-tag {
  color: var(--hl-string);
}

.hljs-number,
.hljs-literal,
.hljs-symbol,
.hljs-bullet {
  color: var(--hl-number);
}

.hljs-comment,
.hljs-quote {
  color: var(--hl-comment);
  font-style: italic;
}

.hljs-title,
.hljs-title.function_,
.hljs-function .hljs-title {
  color: var(--hl-title);
}

.hljs-type,
.hljs-class .hljs-title,
.hljs-title.class_ {
  color: var(--hl-type);
}

.hljs-meta,
.hljs-meta .hljs-keyword {
  color: var(--hl-meta);
}

.hljs-attr,
.hljs-attribute,
.hljs-property {
  color: var(--hl-attr);
}

.hljs-variable,
.hljs-template-variable,
.hljs-tag,
.hljs-name,
.hljs-deletion,
.hljs-subst {
  color: var(--hl-variable);
}

.hljs-emphasis {
  font-style: italic;
}

.hljs-strong {
  font-weight: 700;
}

/* callouts: numbered markers in the code, and the list below it */
.doc .conum[data-value] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-family: var(--font-sans);
  font-size: 0.6875rem;
  font-style: normal;
  font-weight: 700;
  line-height: 1;
  vertical-align: 1px;
}

.doc .conum[data-value]::after {
  content: attr(data-value);
}

.doc .conum[data-value] + b,
.doc pre .conum[data-value] + b {
  display: none;
}

.doc .colist > table {
  border-collapse: collapse;
  font-size: 0.9375rem;
}

.doc .colist td {
  padding: 4px 0;
  vertical-align: top;
}

.doc .colist td:first-child {
  padding-right: 12px;
  padding-top: 6px;
}

/* ---------------------------------------------------------------------------------------------------------------
 * Tabs: a segmented control above their panels
 * ------------------------------------------------------------------------------------------------------------- */

.doc .tabs > .content > .tablist {
  margin: 0 0 12px;
}

.doc .tablist > ul {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 2px;
  margin: 0;
  padding: 3px;
  list-style: none;
  border-radius: 10px;
  background: var(--bg-muted);
}

.doc .tablist > ul li {
  display: flex;
  align-items: center;
  margin: 0;
  padding: 4px 14px;
  border-radius: 7px;
  color: var(--text-muted);
  font-size: 0.8125rem;
  font-weight: 500;
  line-height: 1.6;
  cursor: pointer;
  user-select: none;
  transition: background-color 120ms, color 120ms;
}

.doc .tablist > ul li:hover {
  color: var(--text);
}

.doc .tablist > ul li p {
  margin: 0;
}

.doc .tabs.is-loading .tablist li:first-child,
.doc .tabs:not(.is-loading) .tablist li.is-selected {
  background: var(--bg);
  color: var(--text);
  box-shadow: var(--shadow-sm), 0 0 0 1px var(--border);
}

.doc .tablist > ul li:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}

.doc .tabs.is-loading .tabpanel + .tabpanel,
.doc .tabs:not(.is-loading) .tabpanel.is-hidden {
  display: none;
}

.doc .tabpanel > :last-child {
  margin-bottom: 0;
}

/* An install block with a telemetry variant: both listings are in each tab, and the reader's Telemetry switch, at the
 * end of the tab bar, shows one; the choice is on <html>, set before the first paint (head-meta.hbs). */
.doc .install-telemetry .tablist {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

:root:not([data-install-telemetry="on"]) .doc .install-otel,
:root[data-install-telemetry="on"] .doc .install-plain {
  display: none;
}

.doc .install-switch {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--text-muted);
  font: 500 0.8125rem/1.6 var(--font-sans);
  cursor: pointer;
}

.doc .install-switch:hover {
  color: var(--text);
}

.doc .install-switch-track {
  position: relative;
  width: 30px;
  height: 18px;
  border-radius: 999px;
  background: var(--border-strong);
  transition: background-color 120ms;
}

.doc .install-switch-track::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--bg);
  box-shadow: var(--shadow-sm);
  transition: transform 120ms;
}

.doc .install-switch[aria-checked="true"] {
  color: var(--text);
}

.doc .install-switch[aria-checked="true"] .install-switch-track {
  background: var(--accent);
}

.doc .install-switch[aria-checked="true"] .install-switch-track::after {
  transform: translateX(12px);
}

.doc .install-switch:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

.doc .tabpanel > .paragraph {
  margin-bottom: 12px;
}

/* ---------------------------------------------------------------------------------------------------------------
 * Tables
 * ------------------------------------------------------------------------------------------------------------- */

.doc table.tableblock {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 10px;
  border-collapse: separate;
  border-spacing: 0;
  overflow: hidden;
  font-size: 0.875rem;
  line-height: 1.55;
  margin: 0 0 24px;
}

.doc table.tableblock th,
.doc table.tableblock td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
}

.doc table.tableblock tr:last-child > td,
.doc table.tableblock tbody:last-child tr:last-child > td {
  border-bottom: 0;
}

.doc table.tableblock thead th {
  background: var(--bg-subtle);
  color: var(--text);
  font-size: 0.8125rem;
  font-weight: 600;
}

.doc table.tableblock tbody tr:hover > td {
  background: var(--bg-subtle);
}

.doc table.tableblock p {
  margin: 0;
}

.doc table.tableblock p + p {
  margin-top: 6px;
}

.doc table.tableblock code {
  white-space: nowrap;
}

/* a group of rows, its heading a header cell across the table, as in a function's module table */
.doc table.tableblock tbody th {
  padding-top: 16px;
  padding-bottom: 6px;
  background: var(--bg);
  color: var(--text-muted);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.doc table.tableblock tbody tr:first-child > th {
  padding-top: 12px;
}

/* a module's name in a group's heading keeps its case */
.doc table.tableblock tbody th code {
  text-transform: none;
  letter-spacing: normal;
}

/* a module's -otel variant, after its name and its description */
.doc table.tableblock .module-variant {
  color: var(--text-muted);
}

.doc table.tableblock .module-variant code {
  color: inherit;
}

/* ---------------------------------------------------------------------------------------------------------------
 * Admonitions
 * ------------------------------------------------------------------------------------------------------------- */

.doc .admonitionblock > table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
}

.doc .admonitionblock td.icon {
  display: none;
}

.doc .admonitionblock td.content {
  padding: 14px 18px 14px 44px;
  border: 1px solid color-mix(in srgb, var(--admonition, var(--note)) 25%, transparent);
  border-radius: 10px;
  background: var(--admonition-bg, var(--note-bg));
  position: relative;
  font-size: 0.9375rem;
}

.doc .admonitionblock td.content::before {
  content: "";
  position: absolute;
  left: 16px;
  top: 18px;
  width: 16px;
  height: 16px;
  background: var(--admonition, var(--note));
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='M12 16v-4M12 8h.01'/%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 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='M12 16v-4M12 8h.01'/%3E%3C/svg%3E") center / contain no-repeat;
}

.doc .admonitionblock.tip {
  --admonition: var(--tip);
  --admonition-bg: var(--tip-bg);
}

.doc .admonitionblock.warning,
.doc .admonitionblock.important {
  --admonition: var(--warning);
  --admonition-bg: var(--warning-bg);
}

.doc .admonitionblock.caution {
  --admonition: var(--caution);
  --admonition-bg: var(--caution-bg);
}

.doc .admonitionblock td.content > .title {
  color: var(--text);
  font-weight: 600;
  margin-bottom: 4px;
}

.doc .admonitionblock td.content > :last-child {
  margin-bottom: 0;
}

/* ---------------------------------------------------------------------------------------------------------------
 * Cards: [.cards] on a list makes each item a card, its first link the card's title
 * ------------------------------------------------------------------------------------------------------------- */

.doc .ulist.cards > ul {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
  padding: 0;
  list-style: none;
}

.doc .ulist.cards > ul > li {
  position: relative;
  margin: 0;
  padding: 16px 18px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--bg);
  box-shadow: var(--shadow-card);
  color: var(--text-muted);
  font-size: 0.875rem;
  line-height: 1.55;
  transition: border-color 120ms, box-shadow 120ms, transform 120ms;
}

.doc .ulist.cards > ul > li:hover {
  border-color: var(--accent-border);
  box-shadow: 0 0 0 3px var(--accent-subtle);
}

.doc .ulist.cards > ul > li > p > a:first-child {
  display: block;
  margin-bottom: 4px;
  color: var(--text);
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
}

.doc .ulist.cards > ul > li > p > a:first-child strong {
  font-weight: 600;
}

/* the whole card is the link */
.doc .ulist.cards > ul > li > p > a:first-child::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
}

.doc .ulist.cards > ul > li:hover > p > a:first-child {
  color: var(--accent);
}

/* ---------------------------------------------------------------------------------------------------------------
 * Pagination and footer
 * ------------------------------------------------------------------------------------------------------------- */

.doc nav.pagination {
  display: flex;
  gap: 12px;
  margin-top: 64px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  font-size: 0.875rem;
}

.doc nav.pagination span {
  flex: 1;
}

.doc nav.pagination .next {
  text-align: right;
}

.doc nav.pagination a {
  display: block;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  font-weight: 600;
  text-decoration: none;
}

.doc nav.pagination a:hover {
  border-color: var(--accent-border);
  color: var(--accent);
}

.doc nav.pagination a::before {
  display: block;
  color: var(--text-muted);
  font-size: 0.75rem;
  font-weight: 500;
}

.doc nav.pagination .prev a::before {
  content: "Previous";
}

.doc nav.pagination .next a::before {
  content: "Next";
}

.footer {
  border-top: 1px solid var(--border);
  padding: 24px;
  color: var(--text-faint);
  font-size: 0.8125rem;
  text-align: center;
}

.footer p {
  margin: 0;
}

.footer a {
  color: var(--text-muted);
}

/* ---------------------------------------------------------------------------------------------------------------
 * Home page
 * ------------------------------------------------------------------------------------------------------------- */

.home .doc h1.page {
  font-size: 3rem;
  letter-spacing: -0.035em;
  margin-top: 24px;
}

.home .doc #preamble .paragraph:first-child p {
  color: var(--text-muted);
  font-size: 1.1875rem;
  line-height: 1.6;
}

.home aside.toc.sidebar {
  display: none;
}

/* ---------------------------------------------------------------------------------------------------------------
 * The wiring page: a card per style; bootable.js marks the reader's and adds a button to choose another
 * ------------------------------------------------------------------------------------------------------------- */

.doc .openblock.wiring-style {
  position: relative;
  margin: 16px 0;
  padding: 18px 20px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--bg);
  box-shadow: var(--shadow-card);
  scroll-margin-top: calc(var(--header-height) + 24px);
  transition: border-color 0.15s, box-shadow 0.15s;
}

.doc .openblock.wiring-style > .title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 0 0 6px;
  color: var(--text);
  font-size: 1.0625rem;
  font-style: normal;
  font-weight: 650;
}

.doc .openblock.wiring-style > .content > :first-child,
.doc .openblock.wiring-style .paragraph:first-child p {
  margin-top: 0;
}

.doc .openblock.wiring-style p {
  margin-bottom: 0;
}

.doc .openblock.wiring-style.is-chosen {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-subtle), var(--shadow-card);
}

.wiring-style-choose {
  flex: none;
  padding: 5px 12px;
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  background: var(--bg);
  color: var(--text);
  font: 500 13px/20px var(--font-sans);
  cursor: pointer;
}

.wiring-style-choose:hover {
  border-color: var(--accent);
  color: var(--accent-strong);
}

.wiring-style-choose:disabled {
  border-color: transparent;
  background: var(--accent-subtle);
  color: var(--accent-strong);
  cursor: default;
}

.wiring-style-choose:disabled::before {
  content: "\2713\00a0";
}

/* ---------------------------------------------------------------------------------------------------------------
 * Narrow screens
 * ------------------------------------------------------------------------------------------------------------- */

@media (max-width: 1180px) {
  aside.toc.sidebar {
    display: none;
  }

  .toolbar {
    max-width: var(--content-width);
  }
}

@media (max-width: 960px) {
  main.article {
    padding: 0 16px 48px;
  }

  .doc h1.page {
    font-size: 2rem;
  }

  .home .doc h1.page {
    font-size: 2.25rem;
  }

  .doc h2 {
    font-size: 1.5rem;
    margin-top: 44px;
  }

  .doc .anchor {
    display: none;
  }

  /* a wide table scrolls within its own box, rather than the page sideways */
  .doc table.tableblock {
    display: block;
    overflow-x: auto;
  }
}

@media print {
  .header,
  .nav-container,
  .toolbar,
  aside.toc,
  .source-toolbox {
    display: none !important;
  }
}

/* definition list terms, such as "No classpath scanning", stand out from their descriptions */
.doc .dlist dt {
  font-weight: 700;
  color: var(--text);
}
