:root {
  color-scheme: light;
  --text: #1b1f24;
  --muted: #4a5360;
  --bg: #fdfdfc;
  --panel: #f1f4f7;
  --accent: #0a5f87; /* 7:1 on --bg */
  --accent-text: #ffffff;
  --code-cmd: #8250df;
  --code-sub: #0a7a3e;
  --you: #e3eef5;
  --code-bg: #dfe6ec;
  --chosen-bg: #0a5f87;
  --chosen-text: #ffffff;
  --error: #a4161a;
  --focus: #b8480b;
  --hover-line: #c86a00; /* the orange line under a link or button the pointer is on: the complement of the logo's blue, 3.7:1 on --bg */
  --tagline-hover: #0a5f87; /* the slogan when the logo is pointed at: the site's blue (an orange slogan on the light page looked muddy) */
  --subhead: #28749d; /* a page's name inside a multi-page section: a quieter blue than the links, 4.7:1 on the panel */
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  line-height: 1.6;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --text: #e8ebee;
    --muted: #b3bcc6;
    --bg: #14181d;
    --panel: #1e242b;
    --accent: #6cc4ec;
    --accent-text: #0b1014;
    --code-cmd: #d2a8ff;
    --code-sub: #7ee2a8;
    --you: #1f3442;
    --code-bg: #2d3946;
    --chosen-bg: #25506a;
    --chosen-text: #e8ebee;
    --error: #ff8a80;
    --focus: #ffb36b;
  --hover-line: #f2a65a;
  --tagline-hover: #ffb36b;
  --subhead: #4ea7ce; /* darker than the links' blue on the dark theme, 5.8:1 on the panel */
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --text: #e8ebee;
  --muted: #b3bcc6;
  --bg: #14181d;
  --panel: #1e242b;
  --accent: #6cc4ec;
  --accent-text: #0b1014;
  --code-cmd: #d2a8ff;
  --code-sub: #7ee2a8;
  --you: #1f3442;
  --code-bg: #2d3946;
  --chosen-bg: #25506a;
  --chosen-text: #e8ebee;
  --error: #ff8a80;
  --focus: #ffb36b;
  --hover-line: #f2a65a;
  --tagline-hover: #ffb36b;
  --subhead: #4ea7ce; /* darker than the links' blue on the dark theme, 5.8:1 on the panel */
}
/* Light chosen with the switch: "only" asks a browser's forced dark mode to leave the page as it is. */
:root[data-theme="light"] { color-scheme: only light; }
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); }
header, main, footer { max-width: 44rem; margin: 0 auto; padding: 1rem; }
header { text-align: center; padding-top: 2rem; }
header img { max-width: 60vw; height: auto; }
.logo--dark { display: none; }
.tagline { margin: 0.25rem 0 0; font-size: 1.15rem; } /* the page text color, as on the earlier home page */
a { color: var(--accent); text-underline-offset: 0.15em; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
h2:focus { outline: none; } /* focus is moved here; it is not a control */
.skip { position: absolute; left: -999rem; }
.skip:focus { left: 1rem; top: 1rem; background: var(--bg); padding: 0.5rem; z-index: 1; }
.visually-hidden, .trap {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap;
}

.step { margin: 2rem 0; scroll-margin-top: 1.5rem; }
.step [id] { scroll-margin-top: 1.5rem; }
/* Where the page lands on a step (or a heading in one), leave room below the menu button, which floats over the top left of narrow screens. */
@media (max-width: 52rem) { .step, .step [id] { scroll-margin-top: 4.25rem; } }
.step h1, .step h2 { font-size: 1.35rem; line-height: 1.3; margin: 0 0 0.75rem; }
.say { background: var(--panel); border-radius: 0 1rem 1rem 1rem; padding: 0.25rem 1.25rem; }
.say h2, .say h3, .say h4 { font-size: 1.1rem; margin-top: 1.5rem; }
/* The page's name under its section's title, first in the panel. */
.say .subhead { font-size: 1.1rem; margin: 0.9rem 0 0.4rem; color: var(--subhead); }
/* Naming real fonts, not just "monospace", keeps browsers from shrinking typed text below the text around it. */
code, pre, kbd, samp { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", "DejaVu Sans Mono", monospace; }
pre { overflow-x: auto; padding: 0.75rem; background: var(--bg); border-radius: 0.5rem; font-size: 1em; }
code, kbd, samp { font-size: 1em; }
pre code { font-size: inherit; }
/* Typed text in a sentence gets a tint, so it stands apart from the text around it. */
:not(pre) > code, kbd { background: var(--code-bg); padding: 0.1em 0.35em; border-radius: 0.3em; }
.shell .line::before { content: "$ "; content: "$ " / ""; color: var(--muted); user-select: none; }
[data-os="windows"] .shell .line::before { content: "> "; content: "> " / ""; }
[data-os="mac"] .shell .line::before { content: "% "; content: "% " / ""; }
.prompt-symbol::before { content: "$"; }
[data-os="windows"] .prompt-symbol::before { content: ">"; }
[data-os="mac"] .prompt-symbol::before { content: "%"; }
.steps { padding-left: 1.5rem; }
.steps li { margin: 0.75rem 0 1rem; padding-left: 0.25rem; }
.steps pre { margin: 0.4rem 0 0; }
.shell .cmd { color: var(--code-cmd); font-weight: 600; }
.shell .sub { color: var(--code-sub); }

.choices ul { list-style: none; padding: 0; margin: 1rem 0 0; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.choice {
  display: inline-block; padding: 0.55rem 1rem; border-radius: 1.5rem;
  border: 2px solid var(--accent); color: var(--accent); text-decoration: none; font-weight: 600;
}
.choice:hover { background: var(--you); }
.choice.chosen, .choice.chosen:hover { background: var(--chosen-bg); color: var(--chosen-text); }
.past { margin: 0.75rem 0; }
.past-title { margin: 0; color: var(--muted); font-size: 0.95rem; }
.you-line { margin: 0.35rem 0 0; text-align: right; }
.you {
  display: inline-block; max-width: 80%; text-align: left;
  background: var(--you); color: var(--text); border-radius: 1rem 0 1rem 1rem;
  padding: 0.5rem 1rem; font-weight: 600; text-decoration: none;
}
.you:hover { text-decoration: underline; }

dl.terms > div { margin: 0.75rem 0; }
dl.terms dt { font-weight: 600; }
dl.terms dd { margin: 0.15rem 0 0 1.25rem; }

.search { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; margin: 1rem 0 0.25rem; }
.search label { flex-basis: 100%; font-weight: 600; }
input, textarea, button { font: inherit; }
input:not([type="checkbox"]), textarea {
  padding: 0.5rem; border: 2px solid var(--muted); border-radius: 0.4rem;
  background: var(--bg); color: var(--text); width: 100%;
}
.search-field { flex: 1; position: relative; display: flex; min-width: 12rem; }
.search-field input { width: 100%; padding-right: 2.5rem; }
.search-field input::-webkit-search-cancel-button { display: none; }
.search-clear {
  position: absolute; right: 0.3rem; top: 50%; transform: translateY(-50%);
  width: 1.9rem; height: 1.9rem; padding: 0; border: 0; border-radius: 50%;
  background: transparent; color: var(--text); font-size: 1.3rem; line-height: 1;
}
.search-clear:hover { background: var(--you); }
.search-clear[hidden] { display: none; }
.results.compact { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 0.5rem 0 1rem; }
.results.compact a {
  display: inline-block; padding: 0.15rem 0.65rem; border: 2px solid var(--accent); border-radius: 0.4rem;
  font-size: 0.9rem; font-weight: 600; text-decoration: none;
}
.results.compact a[aria-current="page"] { background: var(--chosen-bg); color: var(--chosen-text); }
button {
  padding: 0.55rem 1.1rem; border: 2px solid var(--accent); border-radius: 0.4rem;
  background: var(--accent); color: var(--accent-text); font-weight: 600; cursor: pointer;
}
.status { color: var(--muted); min-height: 1.6em; margin: 0; }
.results { padding-left: 1.25rem; }
.results p { margin: 0.1rem 0 0.75rem; color: var(--muted); }
.contents { columns: 2 14rem; }

.contact .field { margin: 0 0 1rem; }
.contact .field > label:not(.check) { display: block; font-weight: 600; margin-bottom: 0.3rem; }
.req { font-weight: normal; color: var(--muted); }
.check { display: flex; gap: 0.5rem; align-items: flex-start; }
.check input { margin-top: 0.35rem; width: 1.1rem; height: 1.1rem; }
.conversing .progress { color: var(--muted); font-size: 0.9rem; margin: 0 0 0.5rem; }
.conversing .progress.title { font-size: 1.1rem; font-weight: bold; color: var(--subhead); margin: 0.9rem 0 0.4rem; }
.conversing .nav { display: flex; flex-wrap: wrap; gap: 0.75rem; margin: 0 0 1rem; }
.conversing .nav button:not([type="submit"]), .review button { background: transparent; color: var(--accent); }
.review table { border-collapse: collapse; width: 100%; margin: 0 0 1rem; }
.review th, .review td { text-align: left; vertical-align: top; padding: 0.55rem 0.75rem 0.55rem 0; border-bottom: 1px solid var(--subhead); }
.review th { font-weight: 600; white-space: nowrap; width: 1%; }
.review td { white-space: pre-wrap; overflow-wrap: anywhere; }
.review td:last-child { width: 1%; padding-right: 0; }
.review .change { display: inline-flex; align-items: center; justify-content: center; width: 2rem; height: 2rem; padding: 0; border-radius: 50%; }
@media (max-width: 30rem) {
  .review table, .review tbody { display: block; }
  .review tr { display: grid; grid-template-columns: 1fr auto; column-gap: 0.75rem; padding: 0.55rem 0; border-bottom: 1px solid var(--subhead); }
  .review th, .review td { display: block; width: auto; padding: 0; border: 0; white-space: normal; }
  .review th { grid-column: 1; }
  .review td:nth-child(2) { grid-column: 1; margin-top: 0.15rem; }
  .review td:last-child { grid-column: 2; grid-row: 1 / span 2; align-self: center; }
}
.contact .group { border: 0; padding: 0; margin: 0 0 1rem; }
.contact .group legend { font-weight: 600; padding: 0; margin-bottom: 0.5rem; }
.say .contact { padding-top: 0.75rem; }
.say > form:last-child { margin: 0 0 1rem; } /* a form that ends the box, such as the confirm button's: room under the button */
.intro { margin: 0 0 var(--reader-gap, 1rem); }
.intro p:last-child { margin-bottom: 0; }
[hidden] { display: none !important; }
.results.compact { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 0.5rem 0 1rem; }
.results.compact a {
  display: inline-block; padding: 0.15rem 0.65rem; border: 2px solid var(--accent); border-radius: 0.4rem;
  font-size: 0.9rem; font-weight: 600; text-decoration: none;
}
.results.compact a[aria-current="page"] { background: var(--chosen-bg); color: var(--chosen-text); }
button {
  padding: 0.55rem 1.1rem; border: 2px solid var(--accent); border-radius: 0.4rem;
  background: var(--accent); color: var(--accent-text); font-weight: 600; cursor: pointer;
}
.status { color: var(--muted); min-height: 1.6em; margin: 0; }
.results { padding-left: 1.25rem; }
.results p { margin: 0.1rem 0 0.75rem; color: var(--muted); }
.contents { columns: 2 14rem; }

.contact .field { margin: 0 0 1rem; }
.contact .field > label:not(.check) { display: block; font-weight: 600; margin-bottom: 0.3rem; }
.req { font-weight: normal; color: var(--muted); }
.check { display: flex; gap: 0.5rem; align-items: flex-start; }
.check input { margin-top: 0.35rem; width: 1.1rem; height: 1.1rem; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.note { font-size: 0.9rem; color: var(--muted); }
textarea { resize: vertical; }
.hint { font-weight: normal; color: var(--muted); }
.error { color: var(--error); font-weight: 600; margin: 0.25rem 0 0; }
[aria-invalid="true"] { border-color: var(--error) !important; }
.error-summary { border: 3px solid var(--error); border-radius: 0.5rem; padding: 0 1rem; margin: 1rem 0; }

footer { color: var(--muted); font-size: 0.9rem; border-top: 1px solid var(--panel); margin-top: 3rem; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

.menu { position: fixed; top: 0.5rem; left: 0.5rem; z-index: 2; }
.menu summary {
  list-style: none; cursor: pointer; display: inline-flex; padding: 0.5rem;
  border: 2px solid var(--accent); border-radius: 0.4rem; background: var(--bg); color: var(--accent);
}
.menu summary::-webkit-details-marker { display: none; }
.menu[open] summary { background: var(--accent); color: var(--accent-text); }
.menu nav {
  margin-top: 0.5rem; width: 17rem; max-width: calc(100vw - 1rem); max-height: calc(100vh - 5rem); overflow-y: auto;
  background: var(--panel); border: 1px solid var(--muted); border-radius: 0.5rem; padding: 0.5rem 0;
}
.menu ul { list-style: none; margin: 0; padding: 0; }
.menu a { display: block; padding: 0.45rem 1rem; text-decoration: none; }
.menu a:hover { background: var(--you); }
.menu a.chosen { background: var(--chosen-bg); color: var(--chosen-text); }
.menu li:not(.elsewhere) + li.elsewhere { border-top: 1px solid var(--muted); margin-top: 0.35rem; padding-top: 0.35rem; }

/* Fixed, like the menu button across from it, so it's always within reach. */
.theme-toggle {
  position: fixed; top: 0.5rem; right: 0.5rem; z-index: 2; /* the same corner spacing as the menu */
  width: 44px; height: 44px; border-radius: 50%; padding: 0;
  display: flex; align-items: center; justify-content: center;
  background: var(--panel); color: var(--text); border: 1px solid var(--muted);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18); cursor: pointer;
}
.theme-toggle:hover { border-color: var(--accent); }
.theme-toggle svg { width: 20px; height: 20px; display: block; }
.theme-toggle .icon-sun { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .icon-sun { display: block; }
  :root:not([data-theme="light"]) .theme-toggle .icon-moon,
  :root:not([data-theme="light"]) .logo--light { display: none; }
  :root:not([data-theme="light"]) .logo--dark { display: inline; }
}
:root[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
:root[data-theme="dark"] .theme-toggle .icon-moon, :root[data-theme="dark"] .logo--light { display: none; }
:root[data-theme="dark"] .logo--dark { display: inline; }

/* typing.js: a step stays hidden until its text is split into chunks, then each chunk appears on its delay. */
html.typing .step[data-typed]:not(.typing-ready) { visibility: hidden; animation: typing-fallback 0s 3s forwards; }
@keyframes typing-fallback { to { visibility: visible; } }
.chunk, .appear { opacity: 0; animation: chunk-in 1ms forwards; }
@keyframes chunk-in { to { opacity: 1; } }

/* Previous | Contents | Next, like the transport buttons of an audio player, inside the reader. */
.reader-nav { margin: 1.25rem 0 0.75rem; }
.reader-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.reader-nav li { min-width: 0; max-width: 100%; }
.reader-btn {
  display: block; max-width: 100%; padding: 0.25rem 0.75rem; border-radius: 0.4rem; font-size: 0.9rem; font-weight: 600;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  border: 2px solid var(--accent); color: var(--accent); text-decoration: none; background: var(--bg);
}
.reader-btn:hover { background: var(--you); }

mark { background: #ffb36b; color: #14181d; padding: 0 0.1em; border-radius: 0.2em; }

.preview-note { margin: 0; padding: 0.5rem 1rem; background: var(--panel); color: var(--muted); font-size: 0.9rem; text-align: center; }
/* The manual and the README in the reader */
.where { font-size: 0.8rem; color: var(--muted); margin-left: 0.25rem; }
.group-context { margin: 0 0 1.25rem; padding-bottom: 0.75rem; border-bottom: 1px solid var(--you); }
.group-context p { margin: 0.25rem 0; }
.group-name { font-weight: 600; color: var(--muted); }
.table-scroll { overflow-x: auto; margin: 1rem 0; }
.table-scroll:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.table-scroll table { border-collapse: collapse; }
.table-scroll th, .table-scroll td { border: 1px solid var(--you); padding: 0.35rem 0.6rem; text-align: left; vertical-align: top; }
.outline ul { list-style: none; margin: 0.25rem 0; padding-left: 1.25rem; }
.outline > ul { padding-left: 0; }
.outline li { margin: 0.2rem 0; }
.outline > ul > li > strong { display: inline-block; margin-top: 0.6rem; }

/* All the docs: at the right of the reader's buttons, in the text color (black on light, white on dark) */
.reader-nav .go-docs { margin-left: auto; }
.reader-btn.docs-btn, .go-docs .reader-btn { border-color: var(--text); color: var(--text); }
.scope { flex-basis: 100%; display: flex; flex-wrap: wrap; gap: 0.25rem 1rem; margin: 0.6rem 0 0; padding: 0; border: 0; }
.scope legend { padding: 0; margin-right: 0.75rem; font-weight: 600; }
.scope label { flex-basis: auto; font-weight: 400; }
.scope label { display: inline-flex; align-items: center; gap: 0.35rem; }
.scope input { width: auto; margin: 0; }

/* How to install uv: the commands for each system, with the prompt that system's terminal ends with */
.os-blocks { display: flex; flex-direction: column; }
[data-os="windows"] .os-blocks .on-windows { order: -1; }
.shell.on-windows .line::before { content: "> "; content: "> " / ""; }
[data-os="windows"] .shell.on-unix .line::before { content: "$ "; content: "$ " / ""; }
.os-blocks pre { margin: 0.4rem 0 0.75rem; }
.os-blocks pre { white-space: pre-wrap; overflow-wrap: anywhere; }

/* Get started: Overview | Step 1 | Step 2 | Step 3 | Notes, in the style of the reader's buttons; the current one is filled */
.guide-nav .reader-btn[aria-current="page"] { background: var(--accent); color: var(--bg); }

/* News: each item under its own heading, a rule between them */
.news-list { list-style: none; padding: 0; margin: 0 0 1rem; }
.news-list li { padding: 0.3rem 0; }
.news-filter { margin-top: 0; }
.news-show { margin: 0; }
.news-show-go { margin-top: 0.6rem; }
@media (scripting: enabled) { .news-show-go { display: none; } }
.news-filter + .status, .news-show + .status { min-height: 0; margin: 0.5rem 0 0; }
.choices-prompt { margin: 1rem 0 0; font-weight: 600; }
.choices-prompt + ul { margin-top: 0.5rem; }

/* A small arrow-out-of-a-box after links that open another site in a new tab. It takes the link's color.
   The word joiner keeps it on the same line as the last word of the link. */
a[target="_blank"]::after {
  content: "\2060"; margin-left: 0.2em; padding-left: 0.8em;
  background-color: currentColor;
  -webkit-mask: url("external.svg") left center / 0.75em no-repeat;
  mask: url("external.svg") left center / 0.75em no-repeat;
}

/* The orange line under a link or button the pointer is on, as on the earlier home page. */
a:hover { text-decoration-color: var(--hover-line); text-decoration-thickness: 2px; text-underline-offset: 0.22em; }
.menu a:hover, .you:hover { text-decoration: underline var(--hover-line) 2px; text-underline-offset: 0.22em; }
.choice:hover, .reader-btn:hover, .results.compact a:hover, button:not(.search-clear):hover, .menu summary:hover { box-shadow: 0 2px 0 var(--hover-line); }
.theme-toggle:hover { box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18), 0 2px 0 var(--hover-line); }
/* Phone browsers paint their own rectangle over whatever is tapped, which looks wrong on the logo's irregular shape.
   The buttons and the logo turn it off; a press fades the buttons a little instead (and, with motion allowed, shrinks them). */
.logo, .choice, .reader-btn, button, .menu summary { -webkit-tap-highlight-color: transparent; }
.choice:active, .reader-btn:active, button:active, .menu summary:active { opacity: 0.8; }
@media (prefers-reduced-motion: no-preference) {
  a, .choice, .reader-btn, button, .menu summary { transition: text-decoration-color 0.15s, text-underline-offset 0.15s, box-shadow 0.15s, background-color 0.15s, transform 0.1s ease, opacity 0.1s ease; }
  /* A press: a little smaller while the pointer or finger is down, back to size on release in the same time. */
  .choice:active, .reader-btn:active, .logo:active, button[type="submit"]:active, .conversing .nav button:active, .review .change:active, .screen-tabs [role="tab"]:active, .sheet-close:active { transform: scale(0.96); }
  /* The logo is much larger than a button, so the same press looks slower; it takes half the time. */
  .logo { transition: transform 0.05s ease; }
}

/* The row of links under the Welcome step: one for each step on the page, centered, as many to a line as fit.
   Every link has the same space on both sides (half of it each side of a dot), so each line is centered.
   A dot belongs to the link after it and sits on that link's left edge; the first link of each line hides its
   dot (the page marks it with .row-start), so no dot is ever left at the start or end of a line. */
.jump ul { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; justify-content: center; }
.jump li { position: relative; margin: 0; padding: 0 0.75rem; }
.jump li::before {
  content: "\00b7"; content: "\00b7" / ""; position: absolute; left: 0; top: 0.35rem; transform: translateX(-50%); color: var(--muted);
}
.jump li.row-start::before { display: none; }
.jump a { display: inline-block; padding: 0.35rem 0; }

/* The footer's links, flush left, with a dot between neighbors on a line, marked the same way (client.js markRows).
   Each link has a gap on its left, half of it holding the dot; the list is pulled left by one gap, so a link at
   the start of a line sits at the edge. The dots show only once the rows are marked, so without scripts there are none. */
.footer-links { --gap: 1.5rem; }
.footer-links ul { margin: 0 0 0 calc(-1 * var(--gap)); padding: 0; list-style: none; display: flex; flex-wrap: wrap; }
.footer-links li { position: relative; margin: 0 0 0 var(--gap); padding: 0; }
.footer-links.rows li::before {
  content: "\00b7"; content: "\00b7" / ""; position: absolute; left: calc(var(--gap) / -2); top: 0.35rem; transform: translateX(-50%); color: var(--muted);
}
.footer-links.rows li.row-start::before { display: none; }
.footer-links a { display: inline-block; padding: 0.35rem 0; }

/* The search sits on the page, between the heading and the shaded panel that holds the document.
   The space under the heading, under the search and under the panel is the same. */
:root { --reader-gap: 1.25rem; }
.step[data-help] > h2 { margin-bottom: var(--reader-gap); }
.step[data-help] .choices ul { margin-top: var(--reader-gap); }
.step[data-help] .choices .choices-prompt { margin-top: var(--reader-gap); }
.step[data-help] .choices .choices-prompt + ul { margin-top: 0.5rem; }
.search-area { margin: 0 0 var(--reader-gap); }
.search-area .search { margin: 0; }
.search-area .status { min-height: 0; margin: 0.5rem 0 0; }
.search-area .status:empty { margin: 0; }

/* Pointing at the logo changes the slogan's color: the site's blue on the light page, orange on the dark one... */
.logo:hover + .tagline, .logo:focus-visible + .tagline { color: var(--tagline-hover); }
@media (prefers-reduced-motion: no-preference) { .tagline { transition: color 0.2s; } }
/* ...and an orange line appears under the word, broken where the tail of the g crosses it. */
.logo { position: relative; display: inline-block; line-height: 0; vertical-align: top; margin-bottom: 8px; }
.logo::after {
  content: ""; position: absolute; left: 0; right: 0; top: 95%; height: 2px; background: var(--hover-line); opacity: 0; pointer-events: none;
  -webkit-mask-image: linear-gradient(to right, #000 24.2%, transparent 24.2% 37.5%, #000 37.5%);
  mask-image: linear-gradient(to right, #000 24.2%, transparent 24.2% 37.5%, #000 37.5%);
}
.logo:hover::after, .logo:focus-visible::after { opacity: 1; }
@media (prefers-reduced-motion: no-preference) { .logo::after { transition: opacity 0.2s ease; } }

:root[data-app] .app-pointer { display: none; }

/* The screens under the Welcome text (screensHtml in server.js, screens.js). Without scripts they show one
   after another, each with its name; with scripts, a row of tabs shows one at a time, each as tall as it is. */
.screens { margin: 1.25rem 0 1.5rem; }
.screens-intro { margin: 0 0 0.6rem; }
.screen-tabs { display: flex; flex-wrap: wrap; gap: 0.35rem; margin-bottom: 0.6rem; }
.screen-tabs [role="tab"] {
  font: inherit; font-size: 0.95rem; padding: 0.25rem 0.85rem; cursor: pointer;
  color: var(--text); background: transparent; border: 1px solid var(--muted); border-radius: 999px;
}
.screen-tabs [role="tab"]:hover { background: var(--you); }
.screen-tabs [role="tab"][aria-selected="true"] { color: var(--chosen-text); background: var(--chosen-bg); border-color: var(--chosen-bg); font-weight: 600; }
.screen-tabs [role="tab"]:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.screen-name { font-size: 1rem; margin: 1rem 0 0.4rem; }
html.js .screen-name { display: none; }
html.js .screen:not(.on) { display: none; }
/* The terminal screens follow the site's theme, like a terminal with a light or dark profile. */
.say .term {
  --t-bg: var(--bg); --t-fg: #1f2328; --t-line: #c8ced5; --t-bold: #000000; --t-blue: #0550ae; --t-green: #116329;
  --t-code-fg: #1f2328; --t-code-bg: #e3e7eb; --t-bar-fg: #ffffff; --t-bar-bg: #3a4149;
  margin: 0; padding: 0.9rem 1.1rem; border-radius: 0.6rem; overflow-x: auto;
  background: var(--t-bg); color: var(--t-fg); border: 1px solid var(--t-line);
  font: 0.8rem/1.45 ui-monospace, "SFMono-Regular", "DejaVu Sans Mono", Menlo, Consolas, monospace;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .say .term { --t-bg: #16191d; --t-fg: #e6edf3; --t-line: #30363d; --t-bold: #ffffff; --t-blue: #6cb6ff; --t-green: #3fd49a; --t-code-fg: #f0f3f6; --t-code-bg: #3b434d; --t-bar-fg: #16191d; --t-bar-bg: #d0d7de; }
}
:root[data-theme="dark"] .say .term { --t-bg: #16191d; --t-fg: #e6edf3; --t-line: #30363d; --t-bold: #ffffff; --t-blue: #6cb6ff; --t-green: #3fd49a; --t-code-fg: #f0f3f6; --t-code-bg: #3b434d; --t-bar-fg: #16191d; --t-bar-bg: #d0d7de; }
.say .term code { font: inherit; background: none; padding: 0; color: inherit; }
.term:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.term b { font-weight: 700; color: var(--t-bold); }
.term .t-blue, .term .t-blue b { color: var(--t-blue); }
.term .t-green { color: var(--t-green); }
.term .t-code { color: var(--t-code-fg); background: var(--t-code-bg); }
.term .t-bar { color: var(--t-bar-fg); background: var(--t-bar-bg); }
/* The Review tab: one finding as the review page shows it, in that page's own look (its review.css, light and dark). */
.review-snippet {
  --r-bg: #ffffff; --r-fg: #1a1a1a; --r-link: #0842a0; --r-line: #c8c8c8; --r-panel: #f3f4f6;
  background: var(--r-bg); color: var(--r-fg); border: 1px solid var(--muted); border-radius: 0.6rem;
  padding: 0.25rem 1.1rem 0.5rem; font: 1rem/1.55 system-ui, sans-serif; overflow-wrap: anywhere;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .review-snippet { --r-bg: #121212; --r-fg: #e8e8e8; --r-link: #8ab4f8; --r-line: #444; --r-panel: #1e1e1e; }
}
:root[data-theme="dark"] .review-snippet { --r-bg: #121212; --r-fg: #e8e8e8; --r-link: #8ab4f8; --r-line: #444; --r-panel: #1e1e1e; }
.review-snippet a { color: var(--r-link); }
.review-snippet h4 { font-size: 1.05rem; margin: 0.75rem 0 0; }
.review-snippet ul { padding-left: 1.4rem; margin: 0.5rem 0; }
.review-snippet code { font-size: 0.92em; background: var(--r-panel); color: inherit; padding: 0.05rem 0.3rem; border-radius: 0.25rem; }
.review-snippet li.item { list-style: none; margin: 0.5rem 0 0.5rem -1.4rem; }
.review-snippet li.item > ul > li { list-style: none; }
.review-snippet .tick {
  display: inline-block; width: 1.05rem; height: 1.05rem; margin-right: 0.45rem; vertical-align: -0.15rem;
  border: 2px solid var(--r-fg); border-radius: 0.2rem; background: var(--r-bg);
}
.screen-caption { margin: 0.5rem 0 0; color: var(--muted); font-size: 0.95rem; }
.screen-action { margin: 0.75rem 0 0; }
.screen-action .reader-btn { display: inline-block; }
.swipe-note { margin: -0.2rem 0 0.5rem; }

/* The sample review page, in a panel that slides up over the page (screens.js). */
html.sheet-open { overflow: hidden; }
.review-sheet {
  box-sizing: border-box; width: min(64rem, 100vw); height: 92vh; height: 92dvh; max-width: none; max-height: none;
  margin: auto auto 0; padding: 0; border: 0; border-radius: 1rem 1rem 0 0; overflow: hidden;
  display: none; flex-direction: column; background: var(--bg); color: var(--text);
  box-shadow: 0 -0.5rem 2rem rgb(0 0 0 / 0.35);
}
.review-sheet[open] { display: flex; }
.review-sheet::backdrop { background: rgb(0 0 0 / 0.5); }
.sheet-bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0.5rem 0.75rem 0.5rem 1.25rem; border-bottom: 1px solid var(--muted); }
.sheet-bar h2 { font-size: 1rem; margin: 0; }
.sheet-close { font: inherit; font-weight: 600; padding: 0.3rem 1rem; cursor: pointer; color: var(--chosen-text); background: var(--chosen-bg); border: 0; border-radius: 999px; }
.sheet-close:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.review-sheet iframe { flex: 1; width: 100%; border: 0; background: var(--bg); }
@keyframes sheet-up { from { transform: translateY(100%); } to { transform: none; } }
@keyframes sheet-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes backdrop-fade { from { opacity: 0; } to { opacity: 1; } }
.review-sheet[open] { animation: sheet-fade 0.2s ease-out; }
.review-sheet[open]::backdrop { animation: backdrop-fade 0.2s ease-out; }
.review-sheet.closing, .review-sheet.closing::backdrop { animation: sheet-fade 0.2s ease-in reverse forwards; }
@media (prefers-reduced-motion: no-preference) {
  .review-sheet[open] { animation: sheet-up 0.35s cubic-bezier(0.2, 0.8, 0.2, 1); }
  .review-sheet.closing { animation: sheet-up 0.3s cubic-bezier(0.4, 0, 1, 1) reverse forwards; }
}
