/*
 * The site's own look, taken from the operational dashboard's (docs/DESIGN.md), so the dashboard's screenshots sit in
 * a site of their own colors and voice rather than the theme's stock indigo and Inter.
 *
 * Burnt orange marks what the dashboard's accent marks, the way on and the current place: links, the current page in
 * the navigation, and focus. It fills no surface. The header's title, the headings, the navigation's section labels,
 * and code take the dashboard's system monospace; the reading text takes the system's sans, which long pages read more
 * easily in. Both are system faces, so no page loads a web font (zensical.toml sets font = false).
 */

/* On body, where the theme sets them, which a :root rule can't override. */
body {
  --md-text-font-family: system-ui, -apple-system, sans-serif;
  --md-code-font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
}

/* Light: the dashboard's accent. A link's text is a step darker, 5.7:1 on white, 5.2:1 on the code background a linked
   flag sits on, and at least 4.75:1 on a callout's, where the accent itself fell under 4.5:1; links darken further on
   hover and focus, 6.7:1. */
[data-md-color-primary="custom"] {
  --md-primary-fg-color: #c8461f;
  --md-primary-fg-color--light: #d9663f;
  --md-primary-fg-color--dark: #a3381a;
  --md-primary-bg-color: #fff;
  --md-primary-bg-color--light: #ffffffb3;
  --md-typeset-a-color: #b53f1c;
}

/* The dashboard's grounds and its warn and crit pairs, for the code and the callouts. Light code sits on the
   dashboard's cold paper, a cool gray as light as the theme's #f5f5f5, so the highlighter's colors keep their 4.5:1;
   a callout's ground is a step darker than the code's, so code inside one still shows as code. */
[data-md-color-scheme="default"] {
  --md-code-bg-color: #f2f5f8;
  --pp-callout-bg: #e9edf2;
  --pp-callout-icon: #626b77;
  --pp-line: #cfd7e0;
  --pp-ok: #1a7a42;
  --pp-ok-soft: #e3f4ea;
  --pp-warn: #8a5d08;
  --pp-warn-soft: #f9f0da;
  --pp-crit: #c02a20;
  --pp-crit-soft: #fbe6e4;
  --pp-scroll-shadow: #19222d2e;
}

/* Dark keeps the theme's code ground, and a callout's is a step lighter. */
[data-md-color-scheme="slate"] {
  --pp-callout-bg: #1c222b;
  --pp-callout-icon: #858f9d;
  --pp-line: #2b333f;
  --pp-ok: #3fb950;
  --pp-ok-soft: #12251a;
  --pp-warn: #d29922;
  --pp-warn-soft: #2a2110;
  --pp-crit: #f85149;
  --pp-crit-soft: #2d1512;
  --pp-scroll-shadow: #000000b3;
}

[data-md-color-accent="custom"] {
  --md-accent-fg-color: #a3381a;
  --md-accent-fg-color--transparent: #c8461f1a;
  --md-accent-bg-color: #fff;
  --md-accent-bg-color--light: #ffffffb3;
}

/* Dark: the dashboard's dark accent, 7.1:1 on the page; links lighten on hover and focus, 9.9:1. */
[data-md-color-scheme="slate"][data-md-color-primary="custom"] {
  --md-primary-fg-color: #ff7043;
  --md-primary-fg-color--light: #ff8a65;
  --md-primary-fg-color--dark: #e85a2e;
  --md-typeset-a-color: #ff7043;
}

[data-md-color-scheme="slate"][data-md-color-accent="custom"] {
  --md-accent-fg-color: #ffa07f;
  --md-accent-fg-color--transparent: #ff70431f;
}

/* The dashboard's voice for the page's structure: its brand mark's face for the title, the headings, and the
   navigation's sections. Monospace needs no negative tracking, which the theme gives its sans headings. */
.md-header__title,
.md-nav__item--section > .md-nav__link,
.md-typeset h1,
.md-typeset h2,
.md-typeset h3,
.md-typeset h4 {
  font-family: var(--md-code-font-family);
  letter-spacing: 0;
}

.md-header__title {
  font-weight: 600;
}

.md-typeset h1,
.md-typeset h2 {
  font-weight: 640;
}

/* The headings' levels in size and space, since the monospace most readers get (Menlo, Consolas, Liberation Mono)
   has only a regular and a bold, so the weights above differ only in Safari's SF Mono. Each level is 4/3 of the one
   below, 32, 24, and 18px over the 16px text, where the theme's 30, 24, and 20 stepped by 1.25 and 1.2. A section's
   h2 gets the most room above and a hairline in the dashboard's line color, which marks a section as its panels do;
   the title sits close over its introduction, and a long heading breaks into even lines. */
.md-typeset h1,
.md-typeset h2,
.md-typeset h3,
.md-typeset h4 {
  text-wrap: balance;
}

/* A title never breaks inside a word, where the theme's overflow-wrap broke one too long for the room left of the
   page's edit and view-source buttons, which float at its right: on a phone Troubleshooting broke as Troubleshooti /
   ng. A word that doesn't fit beside them takes the line below them, the column's whole width, where every title's
   longest word fits from a 360px screen up. */
.md-typeset h1 {
  margin: 0 0 0.75em;
  font-size: 2em;
  line-height: 1.25;
  overflow-wrap: normal;
}

.md-typeset h2 {
  margin: 2em 0 0.5em;
  padding-top: 0.5em;
  border-top: 1px solid var(--pp-line);
  font-size: 1.5em;
  line-height: 1.3;
}

.md-typeset h1 + h2 {
  padding-top: 0;
  border-top: 0;
}

.md-typeset h3 {
  margin: 1.8em 0 0.5em;
  font-size: 1.125em;
  font-weight: 600;
  line-height: 1.35;
}

.md-typeset h2 + h3 {
  margin-top: 0.9em;
}

.md-typeset h4 {
  font-size: 1em;
}

/* A checklist's boxes are squares, as a checkbox's are, where the theme drew circles, which read as a choice of one,
   as radio buttons do. */
:root {
  --md-tasklist-icon: url("data:image/svg+xml;charset=utf-8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><rect x='3' y='3' width='18' height='18' rx='2' fill='none' stroke='black' stroke-width='2'/></svg>");
  --md-tasklist-icon--checked: url("data:image/svg+xml;charset=utf-8,<svg 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'><rect x='3' y='3' width='18' height='18' rx='2'/><path d='m7.5 12 3 3 6-6.5'/></svg>");
}

/* The boxes can be ticked (zensical.toml's clickable_checkbox), so a ticked one is the same square with a check in it,
   in the dashboard's ok, where the theme drew a circle in a bright green, 1.5:1 on white. An empty box is drawn in
   the secondary text's color, about 4.5:1, as a control's edge needs 3:1, where the theme's lighter gray was 2:1. The
   box shows the pointer, and takes the site's focus ring while its checkbox, which the theme hides behind it, has the
   keyboard's focus. */
.md-typeset .task-list-indicator::before {
  background-color: var(--md-default-fg-color--light);
}

.md-typeset [type="checkbox"]:checked + .task-list-indicator::before {
  background-color: var(--pp-ok);
}

.md-typeset .task-list-control {
  cursor: pointer;
}

.md-typeset .task-list-control [type="checkbox"]:focus-visible + .task-list-indicator::after {
  position: absolute;
  top: 0.35em;
  left: -1.5em;
  width: 1.15em;
  height: 1.15em;
  outline: 2px solid var(--md-accent-fg-color);
  outline-offset: 1px;
  content: "";
}

/* A page's contents list breaks a long heading into even lines. */
.md-nav--secondary .md-nav__link {
  text-wrap: balance;
}

/* Code in a heading, such as Troubleshooting's 404 Not Found and the log lines it starts from, takes the heading's own
   size, weight, and color, on no ground: the heading's face is already the code's, so the theme's chip, at 0.85 of the
   heading's size on a gray ground, only made the words an operator scans for the smallest in the heading. The contents
   list sets it the same way, in its links' colors, where it stood out as a gray chip, at 0.9 of their size, where the
   monospace, wider than the links' sans, reads as the same size. */
.md-typeset :is(h1, h2, h3, h4) code,
.md-nav--secondary .md-nav__link code {
  padding: 0;
  background-color: transparent;
  color: inherit;
  font-size: 1em;
}

.md-nav--secondary .md-nav__link code {
  font-size: 0.9em;
}

/* Reading text, its lists, and a screenshot's caption pull a word down beside one that a line would hold alone at a
   paragraph's end, as the headings above even their lines; a browser without pretty wrapping wraps as before. */
.md-typeset :is(p, li, figcaption) {
  text-wrap: pretty;
}

/* A screenshot's caption, as secondary text at the tables' size, where the theme set it in italics at the reading
   size, which competed with the text around it. */
.md-typeset figcaption {
  margin-top: 0.6em;
  color: var(--md-default-fg-color--light);
  font-size: 0.7rem;
  font-style: normal;
}

/* A caption sits close under its screenshot, 8px, and further from the text after it, 30px, so it reads as the
   screenshot's. The figure's Markdown leaves a line break between its two screenshots, one per theme, and the caption,
   which, beside the hidden theme's link, made an empty line: the caption sat 43px under the screenshot, further than
   from the text after it, and floated between the two. */
.md-typeset figure > br {
  display: none;
}

/* A screenshot's edge, a hairline in the dashboard's line color, in either scheme: the light scheme's screenshots are as
   white at their edges as the page, so where nothing framed them, a screenshot's edge disappeared into the page. */
.md-typeset figure img {
  border: 1px solid var(--pp-line);
}

/* An excerpt of a screenshot, the part of it the text around it reads: a table's chosen columns set side by side, as
   Home's of the Paths view (excerpt_shot in bin/screenshots-lib.sh), or a part of a view (crop_shot, stack_shot). Its
   lightbox opens the whole view, which its image names as data-src. The whole view, across the column's width, showed
   the dashboard's 12.5px text at 5px on a desktop and 2 on a phone. The figure gives the excerpt's width in its pixels
   as --pp-shot-px, and the excerpt takes 1/48rem for each: a shot is 3 pixels to the CSS pixel, so every excerpt shows
   the dashboard's text at the same size, 0.78rem, 15.6px on a desktop, about the reading text's. Home's, which gives
   none, takes 27rem, its 1,294 pixels'. In a phone's column, an excerpt wider than the column shrinks to it, and one of
   up to 1,230 pixels keeps the text at 10px or more in a 375px screen's. It starts at the text's edge, as a diagram
   that fills the measure does. */
.md-typeset .pp-shot-excerpt {
  width: min(calc(var(--pp-shot-px, 1296) * 1rem / 48), 100%);
  margin-left: 0;
}

.md-typeset .pp-shot-excerpt img {
  width: 100%;
}

/* An excerpt's caption starts at its left edge, as the excerpt and the text do, and runs its width, where the theme
   centered it in a narrower box, which left it floating off the excerpt's edge. */
.md-typeset .pp-shot-excerpt figcaption {
  max-width: none;
  margin-inline: 0;
  text-align: left;
}

/* Reading text at 16px, the theme's 15px a step up, so a long page's measure comes nearer the comfortable range. */
.md-typeset {
  font-size: 0.8rem;
}

/* Reading text at about 75 characters a line, the comfortable measure, where the column's full width ran the system
   sans, narrower than the theme's Inter, to about 95. Code, tables, diagrams, and screenshots keep the full width,
   which they use. 27rem is 34em of the reading text's 0.8rem, so it scales with the text. A callout that
   opens, as one that's always open, keeps to the measure too. One inside a tab, as the Quick Start's Keep it running,
   takes the tab's width for its code and tables, as a list with code does, and its text keeps the measure, where it
   ran to about 94 characters a line. */
.md-typeset > :is(p, ul, ol, dl, blockquote):not(:has(img)),
.md-typeset .tabbed-block > :is(p, ul, ol, dl):not(:has(img)),
.md-typeset .tabbed-block > :is(.admonition, details) > :is(p, ul, ol, dl),
.md-typeset > .admonition,
.md-typeset > details {
  max-width: 27rem;
}

/* A list with a code block or a table in it, a procedure's steps or a demo's scenarios, takes the column's width, as
   code and tables do elsewhere, where its code was held to the reading measure and scrolled sideways; its text keeps
   the measure. */
.md-typeset > ul:has(pre, table),
.md-typeset > ol:has(pre, table) {
  max-width: none;
}

.md-typeset > ul:has(pre, table) > li > p,
.md-typeset > ol:has(pre, table) > li > p {
  max-width: 27rem;
}

/* A code block's Copy and Select buttons sat over the end of its first line on a half-clear ground, which the text
   showed through. Their ground is the block's own color, so a long line runs cleanly under them, and where there's a
   pointer they show only while it's over the block, or one of them has focus. A touch screen, with no hover, keeps
   them in view. */
.md-typeset .md-code__nav {
  background-color: var(--md-code-bg-color);
}

@media (hover: hover) {
  .md-typeset .md-code__nav {
    opacity: 0;
    transition: opacity 125ms;
  }

  .md-typeset .md-code__nav:focus-within,
  .md-typeset pre:hover > .md-code__nav {
    opacity: 1;
  }
}

/* A code block wider than its column, as most of a configuration page's are on a phone, shows a shadow inside each edge
   it's cut at, so a reader can tell it scrolls sideways, where nothing said so: on a 375px screen, about a third of the
   Quick Start's blocks and three quarters of Agent Configuration's ran past the edge. Each shadow stays at its edge
   (scroll), and a strip of the block's ground at each end of its lines, which moves with them (local), covers it while
   that end is in view. They're the block's background, so they lie under its text and its Copy and Select buttons, and
   nothing moves but the text the reader scrolls. */
.md-typeset pre > code {
  background-image:
    linear-gradient(to right, var(--md-code-bg-color) 40%, transparent),
    linear-gradient(to left, var(--md-code-bg-color) 40%, transparent),
    linear-gradient(to right, var(--pp-scroll-shadow), transparent),
    linear-gradient(to left, var(--pp-scroll-shadow), transparent);
  background-repeat: no-repeat;
  background-attachment: local, local, scroll, scroll;
  background-position: left, right, left, right;
  background-size: 1.5rem 100%, 1.5rem 100%, 0.75rem 100%, 0.75rem 100%;
}

/* Callouts carry the cautions a reader most needs, which the theme set a step under the text around them, at 12.8px;
   they take the tables' 14px, the site's one size under the reading text. */
.md-typeset .admonition,
.md-typeset details {
  font-size: 0.7rem;
}

/* A callout's color says what it means, as the dashboard's do: amber for a caution, red for a danger. A note, a tip,
   and an info are neutral, where the theme gave each a hue of its own (blue, teal, cyan) and a warning the orange that
   means a link here. Each keeps its own icon and title, so the color is never the only sign. Its tone colors the icon,
   and the chevron of one that opens, where the theme gave that its own hue. */
.md-typeset :is(.admonition, details):is(.note, .tip, .info) {
  --pp-tone: var(--pp-callout-icon);

  background-color: var(--pp-callout-bg);
}

.md-typeset :is(.admonition, details).warning {
  --pp-tone: var(--pp-warn);

  background-color: var(--pp-warn-soft);
}

.md-typeset :is(.admonition, details).danger {
  --pp-tone: var(--pp-crit);

  background-color: var(--pp-crit-soft);
}

/* A success, such as the Quick Start's last step, is the dashboard's ok, the green of a scrape that worked. */
.md-typeset :is(.admonition, details).success {
  --pp-tone: var(--pp-ok);

  background-color: var(--pp-ok-soft);
}

.md-typeset :is(.note, .tip, .info, .warning, .danger, .success) > :is(.admonition-title, summary)::before {
  background-color: var(--pp-tone);
}

.md-typeset :is(.note, .tip, .info, .warning, .danger, .success) > summary::after {
  color: var(--pp-tone);
}

/* What a command prints, set apart from what you type: a block you type from is filled, and one the proxy or agent
   answers with is drawn in the dashboard's line, on the page, under a label naming whose output it is (a fence's
   title, as `{ .text .pp-output title="The agent's log" }`). There's nothing in it to run, so it has no Copy or Select
   buttons. Output that shows things working (.pp-output--ok) leads its label with the dashboard's ok light. */
.md-typeset .pp-output > .filename {
  border: 1px solid var(--pp-line);
  border-bottom: 0;
  border-radius: 0.4rem 0.4rem 0 0;
  background-color: transparent;
  color: var(--md-default-fg-color--light);
  font-family: var(--md-code-font-family);
  font-weight: 500;
}

/* On a phone the theme runs a code block out to the screen's edges and squares its corners, which suits a filled block
   but set an output's outline on the edges themselves, so an output keeps the column's gutter, as a callout and code
   in a tab do, and its corners stay round, as on a wider screen. */
.md-typeset .pp-output {
  margin-right: 0;
  margin-left: 0;
}

.md-typeset .pp-output--ok > .filename::before {
  display: inline-block;
  width: 0.5em;
  height: 0.5em;
  margin-right: 0.6em;
  border-radius: 50%;
  background-color: var(--pp-ok);
  vertical-align: 0.05em;
  content: "";
}

/* Nothing in it is copied, so a long line wraps, where it scrolled sideways, as a command's line still does, and it
   needs no shadow to say it scrolls: the strips that cover the shadows are the filled block's ground. */
.md-typeset .pp-output > pre > code {
  border: 1px solid var(--pp-line);
  border-bottom-right-radius: 0.4rem;
  border-bottom-left-radius: 0.4rem;
  background-color: transparent;
  background-image: none;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.md-typeset .pp-output .md-code__nav {
  display: none;
}

/* An HTTP status as the dashboard shows a scrape's: a pill, green for one that worked and red for one that didn't,
   whose text says which, so the color is never the only sign. */
.md-typeset .pp-status {
  padding: 0.1em 0.55em;
  border-radius: 20px;
  font-family: var(--md-code-font-family);
  font-size: 0.85em;
  font-weight: 600;
  white-space: nowrap;
}

.md-typeset .pp-status--ok {
  background-color: var(--pp-ok-soft);
  color: var(--pp-ok);
}

.md-typeset .pp-status--crit {
  background-color: var(--pp-crit-soft);
  color: var(--pp-crit);
}

/* The screenshots' lightbox caption, on the dashboard's dark surface in the site's reading face at the tables' size,
   under the dark overlay, where it was 16px Arial, near-black on a white bar in the light scheme and on the page's
   ground in the dark. Each rule takes the html element and three classes, to outrank the theme's caption rules, which
   take it and two (html .gslide .gslide-title), and GLightbox's, whose stylesheet loads after this one, and which take
   three on a window 768px wide or less, where they laid the caption over the screen's foot on a gradient, in white at
   10px, under 50px of padding. */
html .glightbox-clean .gslide .gslide-description {
  padding: 0;
  background: #151a21;
}

html .glightbox-clean .gslide .gdesc-inner {
  padding: 0.5rem 0.7rem;
}

html .glightbox-clean .gslide .gslide-title {
  margin-bottom: 0;
  color: #e7ebf1;
  font-family: var(--md-text-font-family);
  font-size: 0.7rem;
  line-height: 1.5;
}

/* The screenshots' lightbox is dark in either scheme, so its buttons' focus ring is the dark scheme's accent, 7:1 on
   its overlay, where GLightbox drew a navy one the overlay all but hid, and the browser's own for a focus the site's
   script moves (javascripts/screenshots.js). */
.glightbox-container .gbtn:is(.focused, :focus-visible) {
  outline: 2px solid #ff7043;
  outline-offset: 2px;
}

/* A screenshot's copy for the other scheme: the theme hides its image, and this its link, an empty Tab stop that a
   screen reader announced as a link with no name. */
[data-md-color-scheme="default"] a.glightbox:has(> img[src$="#only-dark"]),
[data-md-color-scheme="slate"] a.glightbox:has(> img[src$="#only-light"]) {
  display: none;
}

/* The header's search button and icons take the site's focus ring, the accent, where the browser drew its own blue, the
   one blue on the page. The theme toggle's icon is the label of a radio button the theme hides, which has the focus,
   and the theme rings the label only through its focus-visible polyfill's class, in the browser's style. */
.md-search__button:focus-visible,
.md-header__button:focus-visible,
.md-option:focus-visible + label {
  outline: 2px solid var(--md-accent-fg-color);
  outline-offset: 2px;
}

/* The buttons the theme floats over the text, the page's contents on a screen too narrow to show them beside it, and
   back to the top while the reader scrolls up, sat on a ground half clear and blurred, which the text scrolling under
   them showed through, smeared, so a button and the words behind it read as one. Each takes the page's own ground,
   opaque, and the dashboard's line around it, in either scheme; the theme's accent still fills one that's hovered or
   focused. The contents' button is the only one in a sidebar, and its selector takes the theme's two classes, so it
   outranks the theme's own, as this stylesheet loads after it. */
.md-sidebar .md-sidebar-button,
.md-top {
  border: 1px solid var(--pp-line);
  background-color: var(--md-default-bg-color);
  backdrop-filter: none;
}

/* A set of tabs takes the focus ring around its strip of labels while one of its tabs has the focus, which is on a
   radio button the theme hides, where only the label's color changed, on a label already underlined. The theme
   still colors the focused tab's label, so the ring says the strip has the focus, and the color which tab. */
.md-typeset .tabbed-set > input:focus-visible ~ .tabbed-labels {
  outline: 2px solid var(--md-accent-fg-color);
  outline-offset: 2px;
}

/* An option in running text keeps its dashes with its name (javascripts/code.js marks it), where a line could break
   after the dashes of `--restart unless-stopped` and leave them alone at its end. */
.md-typeset code.pp-flag {
  white-space: nowrap;
}

/* A table's text a step up from the theme's 12.8px. */
.md-typeset table:not([class]) {
  font-size: 0.7rem;
}

/* A reference table's flags, keys, and variables break only where javascripts/tables.js gives them a place to, after a
   dot, an underscore, or a slash, and never inside a word, where the theme broke them to fit the column, as
   --agent_por|t or proxy.admin.enabl|ed. Without the script, they break only at spaces and hyphens, and a wide table
   scrolls sideways. */
.md-typeset table:not([class]) code {
  overflow-wrap: normal;
  word-break: normal;
}

.md-typeset table:not([class]) code .md-table-key {
  white-space: nowrap;
}

/* A table's cells at the dashboard's padding, about 8px by 14px, where the theme's 13px by 17px gave the CLI Reference's
   descriptions a column a few words wide. */
.md-typeset table:not([class]) th,
.md-typeset table:not([class]) td {
  padding: 0.6em 1em;
}

/* The row a link lands on, such as a configuration page's link to a setting's row in the CLI Reference, marked as the
   current place is. */
.md-typeset table:not([class]) tr:has(:target) {
  background-color: var(--md-accent-fg-color--transparent);
}

/* The reference tables, which javascripts/tables.js marks by their header row, span the column and share their
   columns' widths, so each table's columns line up under the last's, where the theme sized each table to its own
   rows; a value wider than its column widens it. In them an option or a variable never breaks, and a key breaks only
   before its last part, as proxy.grpc. / permitKeepAliveWithoutCalls: a break opportunity tables.js puts in is
   gone when its <wbr> isn't displayed, as white-space can't take it away. On a narrower screen, the tables size
   their columns to their rows and break where tables.js allows, and on a phone's they stack (below). */
@media screen and (min-width: 45em) {
  .md-typeset__table:has(> table[data-kind="settings"]) {
    display: block;
  }

  .md-typeset table[data-kind="settings"] {
    display: table;
    width: 100%;
  }

  .md-typeset table[data-kind="settings"] th:first-child {
    width: 40%;
  }

  .md-typeset table[data-kind="settings"] td:first-child > :not(:first-child) wbr,
  .md-typeset table[data-kind="settings"] td:first-child > :first-child wbr:not(:last-of-type) {
    display: none;
  }
}

@media screen and (min-width: 60em) {
  .md-typeset__table:has(> table[data-kind="options"]) {
    display: block;
  }

  .md-typeset table[data-kind="options"] {
    display: table;
    width: 100%;
  }

  .md-typeset table[data-kind="options"] th:nth-child(-n + 2) {
    width: 30%;
  }

  .md-typeset table[data-kind="options"] th:nth-child(3) {
    width: 10%;
  }

  .md-typeset table[data-kind="options"] td:first-child wbr,
  .md-typeset table[data-kind="options"] td:nth-child(2) wbr:not(:last-of-type) {
    display: none;
  }
}

/* On a phone, where a reference table's identifiers ran it to half again the column's width and its descriptions off
   the screen, each row is a block: its first cell, the key, option, or member the row describes, on top, then each
   other cell, in the columns' order, after its column's name in small spaced capitals, as the dashboard labels its
   columns (tables.js labels each cell). A description is the row's prose, which reads as one without a label, where
   "Description" before every one said nothing. A cell with nothing in it, as an option's with no setting, shows
   nothing. A demo page's tables, of URLs, parts, and commands, stack the same way (tables.js's records), where they ran
   up to half again a phone's column and scrolled sideways with nothing to say so; their first cell, the row's name, is
   semibold, which sets it apart as a key's code does in the others.
   The header row stays for a screen reader, which reads each cell with its column, as tables.js keeps the table's
   roles, so the labels are hidden from it. With no columns to share, the rows' code takes 0.9 of the table's text,
   12.6px, about the dashboard's 12.5px table text, where the theme's 0.85 made a key, the row's subject, its smallest
   text, at 11.9px. On a wider screen it stays at 0.85, as in a callout: at 0.9 the variables and options that never
   break, as CLIENT_CACHE_CLEANUP_INTERVAL_MINS, widen the shared first column of five tables by up to 17px. */
@media screen and (width < 45em) {
  .md-typeset__table:has(> table[data-kind]) {
    display: block;
  }

  .md-typeset table[data-kind],
  .md-typeset table[data-kind] tbody,
  .md-typeset table[data-kind] tr,
  .md-typeset table[data-kind] td {
    display: block;
  }

  .md-typeset table[data-kind] thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }

  .md-typeset table[data-kind] tr {
    padding: 0.6em 1em;
  }

  .md-typeset table[data-kind] tr + tr {
    border-top: 0.05rem solid var(--md-typeset-table-color);
  }

  .md-typeset table[data-kind] td {
    padding: 0;
    border-top: 0;
  }

  .md-typeset table[data-kind] td + td {
    margin-top: 0.25em;
  }

  .md-typeset table[data-kind] td:empty {
    margin-top: 0;
  }

  .md-typeset table[data-kind="records"] td:first-child {
    font-weight: 600;
  }

  .md-typeset table[data-kind] code {
    font-size: 0.9em;
  }

  .md-typeset table[data-kind] td:not(:first-child, :empty, [data-label="Description"])::before {
    margin-right: 0.75em;
    color: var(--md-default-fg-color--light);
    font-size: 0.75em;
    font-weight: 600;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    content: attr(data-label) / "";
  }
}

/* The Quick Start's flow line, the social card's with the port of each hop: Prometheus and the proxy on one side of
   the firewall, the agent and its app on the other, and the firewall the accent's wall between them, a border so it
   holds in forced colors. The diagram is one image to a screen reader, its aria-label the line in words. */
.md-typeset .pp-flow {
  container-type: inline-size;
  margin: 1.5em 0;
}

.md-typeset .pp-flow__diagram {
  display: flex;
  color: var(--md-default-fg-color--light);
  font-family: var(--md-code-font-family);
  font-size: 0.8rem;
  line-height: 1.7;
  white-space: pre;
}

.md-typeset .pp-flow__side {
  display: flex;
  flex-direction: column;
}

/* The zones' names at the tables' size, which stays put when the line stacks and shrinks. */
.md-typeset .pp-flow__zone {
  padding: 0 1ch;
  font-size: 0.7rem;
  letter-spacing: 0.06em;
}

/* Each zone's name sits against the wall, so the two read as the sides it divides. */
.md-typeset .pp-flow__side:first-child .pp-flow__zone {
  text-align: right;
}

.md-typeset .pp-flow__line b {
  color: var(--md-default-fg-color);
  font-weight: 600;
}

.md-typeset .pp-flow__wall {
  flex: none;
  border-left: 3px solid var(--md-primary-fg-color);
}

/* Where the line doesn't fit across, a phone's column, the zones stack, outside over inside, and the wall lies
   between them. The longer half, 35 characters, shrinks with a column narrower than about 330px, so it never runs
   past the edge. */
@container (width < 36em) {
  .md-typeset .pp-flow__diagram {
    flex-direction: column;
    font-size: min(0.75rem, 4.5cqi);
  }

  .md-typeset .pp-flow__zone {
    padding: 0;
  }

  .md-typeset .pp-flow__side:first-child .pp-flow__zone {
    text-align: left;
  }

  .md-typeset .pp-flow__wall {
    margin: 0.5em 0;
    border-top: 3px solid var(--md-primary-fg-color);
    border-left: 0;
  }
}

/* The home page's lede, a step up from the reading text and close under the title it finishes, where bold reading
   text barely told it from the intro under it, and the title's own margin set it off like a section. */
.md-typeset h1:has(+ .pp-lede) {
  margin-bottom: 0.5em;
}

.md-typeset .pp-lede {
  margin-top: 0;
  color: var(--md-default-fg-color);
  font-size: 1.2em;
  line-height: 1.45;
}

/* The home page, whose lede alone is pp-home, has no edit or view-source button: on a phone the two pushed its title
   onto a second line, and an index has little to edit from there. Other pages with a lede, as the Quick Start, keep
   theirs. */
.md-content__inner:has(.pp-home) > .md-content__button {
  display: none;
}

/* Home's section rules stop where its text does, at the reading measure, as its rows and excerpt do, and its diagram
   is centered on it. With no contents column its column runs wider, and the rules crossed it, some 400px past the
   text on a desktop. */
.md-content__inner:has(.pp-home) h2 {
  max-width: 27rem;
}

/* The ways on, the home page's and each Next Steps list's: one list, a row each, the whole row its link, in the
   dashboard's rows rather than the theme's cards. The link is the row's name; the text under it says where it goes.
   Its lines are the dashboard's line, the h2 rules' color, where the theme's lightest gray left the rows' edges at
   1.12:1, barely there. */
.md-typeset .pp-ways > ul {
  max-width: 27rem;
  margin: 1em 0;
  padding: 0;
  border: 1px solid var(--pp-line);
  list-style: none;
}

.md-typeset .pp-ways > ul > li {
  position: relative;
  margin: 0;
  padding: 0.625em 1em;
}

.md-typeset .pp-ways > ul > li + li {
  border-top: 1px solid var(--pp-line);
}

.md-typeset .pp-ways > ul > li > p {
  margin: 0;
}

/* A row's description at the callouts' size, under its name, as the dashboard sets a row's detail under its title. */
.md-typeset .pp-ways > ul > li > p + p {
  margin-top: 0.25em;
  color: var(--md-default-fg-color--light);
  font-size: 0.7rem;
  line-height: 1.6;
}

.md-typeset .pp-ways > ul > li code {
  white-space: nowrap;
}

.md-typeset .pp-ways > ul > li > p:first-child a {
  font-family: var(--md-code-font-family);
  font-weight: 600;
}

/* The row's outline shows the focus, below, so the link draws none of its own inside it: only where the row can
   show it, so a browser without :has keeps the link's. */
@supports selector(:has(a)) {
  .md-typeset .pp-ways > ul > li > p:first-child a:focus-visible {
    outline: none;
  }
}

/* The link covers its whole row, so the row is one target. */
.md-typeset .pp-ways > ul > li > p:first-child a::before {
  position: absolute;
  inset: 0;
  content: "";
}

/* The arrow is decoration, so its alternative text is empty. */
.md-typeset .pp-ways > ul > li > p:first-child::after {
  margin-left: 0.5ch;
  color: var(--md-typeset-a-color);
  content: "→" / "";
}

.md-typeset .pp-ways > ul > li:hover {
  background-color: var(--md-code-bg-color);
}

.md-typeset .pp-ways > ul > li:has(a:focus-visible) {
  outline: 2px solid var(--md-accent-fg-color);
  outline-offset: -2px;
}

/* The Demos page's tour parts, each a number that links to where its demo's page covers that part, take a hit area at
   least 24px square, where each number's was 6 to 9px wide and 16px tall, less than a finger or an unsteady hand can
   count on. The number stays at the center of its area, which reaches a little over the space and punctuation around
   it, so a row reads as it did, a number no further from its comma than a space, and two numbers' areas still 24px
   apart. */
.md-typeset .pp-part {
  display: inline-flex;
  min-width: 1.2rem;
  min-height: 1.2rem;
  margin-inline: -0.25em;
  align-items: center;
  justify-content: center;
}
