/*
 * The RIC EDGE site. Colours are roles of the Rightech IoT Core palette
 * (@rightech/ui 3.0.0-rc31), the same the portal uses; the mark is the
 * Rightech one repainted orange, as in the portal. Links take primary-600
 * rather than the package's primary-500: on white the latter measures 3.53
 * against the 4.5 body text needs, primary-600 measures 4.91.
 */

@font-face {
  font-family: "Open Sans";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(fonts/open-sans-cyrillic-400.woff2) format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Open Sans";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(fonts/open-sans-cyrillic-600.woff2) format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Open Sans";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(fonts/open-sans-latin-400.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Open Sans";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(fonts/open-sans-latin-600.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --bg: #FFFFFF;          /* bg-primary, grey-0 */
  --bg-soft: #F5F7F9;     /* bg-secondary, grey-50 */
  --bg-code: #F5F7F9;
  --text: #2C3038;        /* text-primary, grey-850 */
  --text-2: #5E646B;      /* text-secondary, grey-700 */
  --text-3: #777D84;      /* text-tertiary, grey-600 */
  --border: #E4E5E5;      /* border-primary, grey-200 */
  --link: #086DE0;        /* primary-600 */
  --link-hover: #005FDB;  /* primary-700 */
  --edge: #C77F15;        /* orange-600: the EDGE mark */
  --edge-soft: #FFEDD2;   /* orange-50 */
  --edge-strong: #A5560B; /* a pictogram on edge-soft: 4.65, orange-600 is 2.83 */
  --ok: #4A9624;          /* text-success, green-600 */
  --mono: Consolas, Menlo, Monaco, "Liberation Mono", "Courier New", monospace;
  --code-size: 14px;
  --code-line: 1.55;
  --code-pad-y: 14px;
  --code-pad-x: 16px;
  --copy-size: 30px;
  /* Highlighting: each holds 4.5 against --bg-code. */
  --hl-call: #086DE0;     /* primary-600, as a link */
  --hl-flag: #0B7285;
  --hl-string: #3B7A1C;
  --hl-value: #7A3FC4;
  --hl-keyword: #A5560B;
  --hl-comment: #6B7178;  /* text-tertiary is 3.87 here */
  --wrap: 1080px;
  --gutter: 24px;  /* the side padding of .wrap: the rules below keep to it */
  /* The text column: a document, and the text of the landing. A line of
     text keeps a readable length; the boxes of the landing — code, tables,
     cards — take the whole width, since a box draws an edge and ragged text
     does not, and a section reads straight when its boxes share one. */
  --column: 760px;
  /* The header's height: it stays on screen, and anchors and the docs'
     sidebar keep clear of it. site.js keeps the number exact — the menu
     wraps with the width; these are the measured heights for a page read
     without the script: 61px wider than 640, 103px on a phone. */
  --top-h: 61px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #121212;          /* grey-950 */
    --bg-soft: #1E1F21;     /* grey-900 */
    --bg-code: #1E1F21;
    --text: #F7F7F7;        /* grey-20 */
    --text-2: #A9AEB5;      /* grey-400 */
    --text-3: #939AA3;      /* grey-500 */
    --border: #2C3038;      /* grey-850 */
    --link: #2986FF;        /* primary-500: 5.31 on grey-950 */
    --link-hover: #9CC3FB;  /* primary-300 */
    --edge: #F59E1B;        /* orange-500 */
    --edge-soft: #2C2418;
    --edge-strong: #F59E1B; /* 7.13 on edge-soft */
    --ok: #5CBB2D;          /* green-500 */
    --hl-call: #5EA4FF;
    --hl-flag: #4CC3D0;
    --hl-string: #7CC45A;
    --hl-value: #B99CF5;
    --hl-keyword: #F0A04B;
    --hl-comment: #939AA3;  /* grey-500 */
    color-scheme: dark;
  }
}

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

html { -webkit-text-size-adjust: 100%; scroll-padding-top: var(--top-h); }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 "Open Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  overflow-wrap: break-word;
}

a { color: var(--link); text-decoration: none; }
a:hover { color: var(--link-hover); text-decoration: underline; }

code, pre { font-family: var(--mono); }
code {
  /* A flag like --yes must not break between its hyphens. */
  white-space: nowrap;
  font-size: 0.875em;
  padding: 0.1em 0.35em;
  border-radius: 4px;
  background: var(--bg-code);
}

/* Code blocks. Their metrics are variables so the copy button can be placed
   from the same numbers: centred on the first line, it sits in the middle of
   a one-line command and level with the first line of a listing, at any font
   size. The inset from the right equals the one from the top, so in a
   one-line block the button has the same air on three sides. */
pre {
  position: relative;
  margin: 16px 0;
  padding: var(--code-pad-y) var(--code-pad-x);
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg-code);
  font-size: var(--code-size);
  line-height: var(--code-line);
  overflow-x: auto;
  tab-size: 4;
}
pre code { padding: 0; background: none; font-size: inherit; white-space: inherit; }

/* Highlighting, put on when the site is built (scripts/highlight.mjs). What
   is run takes the colour of a link: it is what the eye looks for in a
   command. A comment is dimmed. */
pre .x, pre .p { color: var(--hl-call); }
pre .f { color: var(--hl-flag); }
pre .s { color: var(--hl-string); }
pre .v, pre .n, pre .t { color: var(--hl-value); }
pre .k, pre .o { color: var(--hl-keyword); }
pre .c { color: var(--hl-comment); }

/* The button sits on a wrapper, not on the block: a block wider than the
   screen scrolls, and the button must not scroll away with it. */
.code-wrap { position: relative; margin: 16px 0; }
.code-wrap > pre { margin: 0; }
/* Room on the right for a button that stays on screen over a first line that
   would run under it. The script decides which blocks need it: a reserve on
   every block put a scrollbar under lines that fit. */
pre.clear-copy { padding-right: calc(var(--code-pad-x) + var(--copy-size) + 8px); }

.copy {
  --inset: calc(1px + var(--code-pad-y) + (var(--code-size) * var(--code-line) - var(--copy-size)) / 2);
  position: absolute;
  top: var(--inset);
  right: var(--inset);
  display: grid;
  place-items: center;
  width: var(--copy-size);
  height: var(--copy-size);
  padding: 0;
  border: 1px solid transparent;
  border-radius: 6px;
  /* Opaque, and masked to the block's edge: a scrolled first line passes
     under the button instead of showing on both sides of it. One shadow
     fills the gap to the right border (stopping a pixel short of it), the
     other keeps a little air on the left. */
  background: var(--bg-code);
  box-shadow: calc(var(--inset) - 1px) 0 0 0 var(--bg-code), -6px 0 0 0 var(--bg-code);
  color: var(--text-3);
  cursor: pointer;
  transition: color 0.15s, background-color 0.15s, border-color 0.15s, opacity 0.15s, transform 0.1s;
}
.copy svg { display: block; }
.copy:hover { color: var(--link); background: var(--bg); border-color: var(--border); }
.copy:active { transform: scale(0.92); }
.copy:focus-visible { outline: 2px solid var(--link); outline-offset: 2px; }
.copy[data-state="done"] { color: var(--ok); border-color: var(--ok); background: var(--bg); }
.copy[data-state="selected"] { color: var(--link); border-color: var(--link); background: var(--bg); }

/* The tip says what the icon does and what has just happened. It opens to
   the left, over the block, so it never leaves the page on a narrow screen. */
.copy::after {
  content: attr(data-tip);
  position: absolute;
  top: 50%;
  right: calc(100% + 6px);
  transform: translateY(-50%);
  padding: 2px 8px;
  border-radius: 6px;
  background: var(--text);
  color: var(--bg);
  font: 600 12px/1.6 "Open Sans", system-ui, sans-serif;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.15s;
}
.copy:hover::after, .copy:focus-visible::after, .copy:not([data-state="copy"])::after { opacity: 1; }

/* With a mouse the button shows when the pointer is over the block; on a
   touch screen there is no hover, and it stays. The command on the landing
   page is there to be copied, so its button is always shown. */
@media (hover: hover) {
  .copy { opacity: 0; }
  .code-wrap:hover .copy, .copy:focus-visible, .copy:not([data-state="copy"]), .hero .copy { opacity: 1; }
}
@media (hover: none) {
  :root { --copy-size: 34px; }
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* The rules under the header, between the bands and over the footer are as
   wide as the content, not the window: the column of .wrap less its
   gutters. A border on the full-width element would run edge to edge. */
.top::after, .band::before, .bottom::before {
  content: "";
  display: block;
  height: 1px;
  background: var(--border);
  margin-inline: max(var(--gutter), (100% - var(--wrap)) / 2 + var(--gutter));
}

/* Header and footer */

/* The header is always on screen: the menu is the way to the other
   sections, and a reader deep in install.md should not have to scroll back
   for it. */
.top { position: sticky; top: 0; z-index: 20; background: var(--bg); }

.top .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 60px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 600;
  font-size: 18px;
  letter-spacing: 0.02em;
}
.brand:hover { color: var(--text); text-decoration: none; }
.top nav { display: flex; flex-wrap: wrap; gap: 4px 20px; font-size: 15px; }
.top nav a { color: var(--text-2); }
.top nav a:hover { color: var(--link); text-decoration: none; }
.top nav a[aria-current="page"] { color: var(--text); text-decoration: underline; text-decoration-color: var(--edge); text-underline-offset: 8px; }
/* APT and its box: the box is declared once in the layout (#box) and used
   where APT stands as a word of its own — the menu, the section, the
   footer. It takes the text's colour and size and never parts from the
   word it marks. */
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.box {
  width: 1.15em;
  height: 1.15em;
  margin-right: 0.3em;
  vertical-align: -0.2em;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
h2 .box { stroke-width: 1.6; }
.nowrap, .top nav a { white-space: nowrap; }
/* The menu's button: made by site.js, shown on a phone only. */
.menu-button { display: none; }

.bottom {
  margin-top: 72px;
  padding: 0 0 36px;
  color: var(--text-2);
  font-size: 14px;
}
.bottom::before { margin-bottom: 28px; }
.bottom p { margin: 4px 0; }
/* Four columns: this site, Rightech, how to reach us, Rightech elsewhere. */
.foot { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px 32px; margin: 24px 0 28px; }
.foot h2 {
  margin: 0 0 10px;
  color: var(--text-3);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.foot ul { margin: 0; padding: 0; list-style: none; }
.foot li { margin: 6px 0; line-height: 1.45; color: var(--text-3); }  /* a label; its address is the link */
.foot a { color: var(--text-2); }
.foot a:hover { color: var(--link); text-decoration: none; }
/* An address is what a reader came to this column for: it reads as a link,
   like the other links of the footer's text, not as grey under a grey label. */
.foot a[href^="mailto:"] { color: var(--link); }
/* Rightech's networks as rightech.io shows them: a row of circles with the
   network's mark cut out of each (a mask, #s-* in the layout), so the
   circle takes the text's colour and the mark shows the page in either
   theme. The name is the link's label and its tooltip. */
.social { display: flex; flex-wrap: wrap; gap: 10px; }
.social a { display: inline-flex; color: var(--text-2); border-radius: 50%; }
.social a:hover { color: var(--link); }
.social a:focus-visible { outline: 2px solid var(--link); outline-offset: 2px; }
.soc { width: 32px; height: 32px; fill: currentColor; }
/* The current stable, put in by site.js from the repository on this host. */
.copyright [data-stable]::before { content: " · "; }
.copyright { color: var(--text-3); }
.muted { color: var(--text-3); }

/* Landing. A step larger than a document: a document is read line by line,
   the landing is looked over, and its secondary text is no smaller than a
   document's body. */

.page-home main { font-size: 17px; --code-size: 15px; }
.hero { padding: 72px 0 56px; }
.eyebrow {
  margin: 0 0 8px;
  color: var(--edge);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.hero h1 {
  margin: 0;
  font-size: 56px;
  line-height: 1.1;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.lead {
  max-width: 680px;
  margin: 16px 0 28px;
  color: var(--text-2);
  font-size: 21px;
  line-height: 1.55;
}
.hero .code-wrap { margin: 0; }
.hero { --code-size: 16px; --code-pad-y: 16px; --code-pad-x: 18px; }
pre.command { border-color: var(--edge); border-left-width: 4px; }
.meta { margin: 14px 0 0; color: var(--text-3); font-size: 15px; }

.band { padding: 0 0 8px; }
.band::before { margin-bottom: 56px; }
.band h2 { margin: 0 0 20px; font-size: 34px; line-height: 1.25; font-weight: 600; }
.band h3 { margin: 28px 0 8px; font-size: 20px; font-weight: 600; }
:where(.band .wrap) > p { max-width: var(--column); }
.section-lead { max-width: 720px; margin: -8px 0 20px; color: var(--text-2); font-size: 19px; }

/* Features as a list: a pictogram, and to its right the name and a line or
   two of text. Two columns: a line of text beside a pictogram needs the
   room that a third column would take. The pictograms are drawn in the
   page, stroked as the icons of site.js, in the colour of the EDGE mark. */
.feature-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px 48px;
  margin: 0 0 24px;
  padding: 0;
  list-style: none;
}
.feature-list li { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 16px; align-items: start; }
.feature-list .icon {
  width: 44px;
  height: 44px;
  padding: 10px;
  border-radius: 10px;
  background: var(--edge-soft);
  color: var(--edge-strong);
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
/* The name stands level with the middle of the pictogram. */
.feature-list h3 { margin: 9px 0 6px; font-size: 19px; line-height: 1.35; }
.feature-list p { margin: 0; color: var(--text-2); font-size: 16px; }

.principles {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px 32px;
  margin-top: 24px;
  color: var(--text-2);
  font-size: 16px;
}
.principles p { margin: 0; }
/*
 * The architecture picture comes in the site's two themes and follows the
 * reader's, as the page does: <picture> lets the browser choose and fetch one.
 * Two images, one hidden by CSS, cost both — measured on the site: each theme
 * fetched both pictures, 190 KB for nothing, lazy loading or not.
 */
.diagram { margin: 0 0 32px; }
.diagram img { display: block; width: 100%; height: auto; border: 1px solid var(--border); border-radius: 8px; }
.diagram figcaption { margin-top: 8px; color: var(--text-2); font-size: 14px; }
.principles strong { color: var(--text); }

.steps { margin: 20px 0; padding-left: 22px; max-width: var(--column); }
.steps li { margin: 6px 0; padding-left: 4px; }
.steps li::marker { color: var(--edge); font-weight: 600; }
.code-steps { max-width: none; }
.code-steps > li { margin: 16px 0; }
.code-steps p { margin: 0; max-width: var(--column); }
.code-steps .code-wrap { margin: 8px 0 0; }

.pair h3 { margin-top: 24px; }
.pair p { max-width: var(--column); margin: 0; color: var(--text-2); font-size: 16px; }
.pair .code-wrap { margin: 10px 0 0; }
.more { margin-top: 20px; }

.doc-groups {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px 32px;
}
.doc-group h3 {
  margin: 0 0 8px;
  color: var(--text-3);
  font-size: 14px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.doc-group ul { margin: 0 0 16px; padding: 0; list-style: none; }
.doc-group li { margin: 0 0 14px; }
.doc-group a { font-weight: 600; }
.doc-group span { display: block; color: var(--text-2); font-size: 15px; line-height: 1.5; }

/* Tables, on the landing and in the documents */

.table { margin: 16px 0; overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.5; }
th, td { padding: 8px 12px 8px 0; border-bottom: 1px solid var(--border); text-align: left; vertical-align: top; }
th { color: var(--text-3); font-weight: 600; font-size: 13px; }
.page-home table { font-size: 16px; }
.page-home th { font-size: 14px; }

/* Documents */

.doc {
  display: grid;
  grid-template-columns: 232px minmax(0, 1fr);
  gap: 48px;
  padding-top: 32px;
}

.side { align-self: start; position: sticky; top: calc(var(--top-h) + 16px); max-height: calc(100vh - var(--top-h) - 32px); overflow-y: auto; font-size: 14px; }
.side summary { display: none; }
.side nav ul { margin: 0 0 12px; padding: 0; list-style: none; }
.side-group {
  margin: 16px 0 4px;
  color: var(--text-3);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.side-group:first-child { margin-top: 0; }
.side nav a { display: block; padding: 4px 10px; border-radius: 6px; color: var(--text-2); }
.side nav a:hover { background: var(--bg-soft); color: var(--text); text-decoration: none; }
.side .current > a { background: var(--bg-soft); color: var(--text); font-weight: 600; box-shadow: inset 3px 0 0 var(--edge); }
.side .toc { margin: 4px 0 8px 10px; padding-left: 8px; border-left: 1px solid var(--border); }
.side .toc a { padding: 2px 8px; font-size: 13px; line-height: 1.45; }
.side .toc code { font-size: 0.95em; padding: 0; background: none; }

.prose { max-width: var(--column); min-width: 0; }
.prose h1 { margin: 0 0 20px; font-size: 34px; line-height: 1.2; font-weight: 600; }
.prose h2 { margin: 44px 0 12px; padding-top: 4px; font-size: 24px; line-height: 1.3; font-weight: 600; }
.prose h3 { margin: 28px 0 8px; font-size: 18px; line-height: 1.35; font-weight: 600; }
.prose h4, .prose h5, .prose h6 { margin: 20px 0 6px; font-size: 16px; font-weight: 600; }
.prose h2, .prose h3, .prose h4 { scroll-margin-top: 16px; }
.prose p, .prose ul, .prose ol { margin: 12px 0; }
.prose ul, .prose ol { padding-left: 24px; }
.prose li { margin: 4px 0; }
.prose li > p { margin: 6px 0; }
.prose li > .code-wrap { margin: 8px 0; }
.prose blockquote {
  margin: 16px 0;
  padding: 10px 16px;
  border-left: 4px solid var(--edge);
  border-radius: 0 8px 8px 0;
  background: var(--edge-soft);
}
.prose blockquote p { margin: 6px 0; }
.anchor {
  margin-left: 8px;
  color: var(--text-3);
  font-weight: 400;
  opacity: 0;
}
:is(h2, h3, h4):hover > .anchor, .anchor:focus { opacity: 1; text-decoration: none; }
.prose .page-feedback { margin-top: 48px; padding-top: 16px; border-top: 1px solid var(--border); color: var(--text-3); font-size: 14px; }

/* Narrow screens */

@media (max-width: 900px) {
  .doc-groups { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .foot { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .doc { grid-template-columns: minmax(0, 1fr); gap: 16px; padding-top: 16px; }
  .side { position: static; max-height: none; overflow: visible; border: 1px solid var(--border); border-radius: 8px; }
  .side summary { display: list-item; padding: 10px 14px; font-weight: 600; cursor: pointer; }
  .side nav { padding: 0 8px 8px; }
}

@media (max-width: 640px) {
  :root { --gutter: 16px; --top-h: 103px; }
  .top .wrap { flex-direction: column; align-items: flex-start; gap: 4px; padding-top: 12px; padding-bottom: 10px; }
  .top nav { gap: 2px 16px; font-size: 14px; }
  /* With the script the menu is behind a button: the header is one line,
     and the menu opens over the page under it, a row of 44px a link — a
     finger, not a pointer. Without the script the two lines above stay. */
  .js-menu .top .wrap { flex-direction: row; align-items: center; padding-top: 0; padding-bottom: 0; }
  .menu-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    margin-inline-end: -10px;
    padding: 0;
    border: 0;
    border-radius: 8px;
    background: none;
    color: var(--text);
    cursor: pointer;
  }
  .menu-button:focus-visible { outline: 2px solid var(--link); outline-offset: 2px; }
  /* The icon is the button's picture, not a target: a tap on it is the
     button's, and site.js swaps nothing under the finger. */
  .menu-button > span { display: flex; pointer-events: none; }
  .menu-button .cross, .menu-button[aria-expanded="true"] .bars { display: none; }
  .menu-button[aria-expanded="true"] .cross { display: flex; }
  .js-menu .top nav {
    display: none;
    position: absolute;
    top: 100%;
    inset-inline: 0;
    flex-direction: column;
    gap: 0;
    padding: 4px var(--gutter) 12px;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    box-shadow: none;
    font-size: 16px;
  }
  .js-menu .top.open nav { display: flex; }
  .js-menu .top nav a { padding: 10px 0; }
  .hero { padding: 40px 0 36px; }
  .hero h1 { font-size: 38px; }
  .lead, .section-lead { font-size: 17px; }
  .band::before { margin-bottom: 40px; }
  .band h2 { font-size: 26px; }
  .feature-list, .principles, .doc-groups { grid-template-columns: minmax(0, 1fr); }
  .feature-list { gap: 24px; }
  .feature-list li { grid-template-columns: 40px minmax(0, 1fr); gap: 14px; }
  .feature-list .icon { width: 40px; height: 40px; padding: 9px; }
  .feature-list h3 { margin-top: 7px; }
  /* Text may break a long path, a table may not: the table scrolls whole. */
  code { white-space: normal; overflow-wrap: anywhere; }
  td code, th code { white-space: nowrap; overflow-wrap: normal; }
  /* A cell with a sentence in it (marked when the page is built); squeezed,
     it reads a word a line. */
  td.wide { min-width: 14em; }
  /* The one command a visitor came for wraps rather than hides under the button. */
  .hero pre { white-space: pre-wrap; overflow-wrap: anywhere; }
  .prose h1 { font-size: 28px; }
  .prose h2 { font-size: 21px; }
  :root, .page-home main, .hero { --code-size: 13px; }
}

/* Release and patch notes inside the shared documentation column. */
.release-list { border-top: 1px solid var(--border); }
.release-entry { display: grid; grid-template-columns: 176px minmax(0, 1fr); gap: 24px; padding: 28px 0; border-bottom: 1px solid var(--border); }
.release-entry h3 { margin: 0 0 12px; font-size: 24px; line-height: 1.3; font-weight: 600; }
.release-entry h3 a { color: var(--text); }
.release-entry h3 a:hover { color: var(--link); }
.release-entry p { max-width: var(--column); margin: 0 0 16px; color: var(--text-2); }
.release-meta { display: flex; align-items: flex-start; flex-direction: column; gap: 8px; color: var(--text-2); font-size: 14px; }
.release-labels { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.channel, .release-version { display: inline-flex; padding: 2px 8px; border: 1px solid var(--border); border-radius: 6px; background: var(--bg-soft); color: var(--text); font-size: 13px; font-weight: 600; line-height: 1.6; }
.release-footnote { margin: 20px 0 48px; max-width: var(--column); }
.release-back { display: inline-block; margin-bottom: 24px; font-size: 14px; }
.article-meta { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 12px; margin-bottom: 16px; }
@media (max-width: 640px) {
  .release-entry { grid-template-columns: minmax(0, 1fr); gap: 16px; padding: 24px 0; }
  .release-entry .release-meta { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 12px; }
  .release-entry h3 { font-size: 22px; }
}
