/* The docs page, laid out the way the app is: a rail of chapters where the app has its bots,
   each chapter's sections under it like tasks, and the page where the conversation sits.
   Colours, type and the shared parts (the bar, buttons, the command box, the Claws) come from
   ../style.css; this file adds only what the docs need. */

:root {
  --bg-hover: rgba(255, 255, 255, 0.06);
  --bg-selected: rgba(255, 255, 255, 0.1);
  --scrim: rgba(0, 0, 0, 0.56);
  --bar-h: 68px;
  --rail-w: 312px;
  --measure: 692px;
  --wide: 1016px;
  --pad: clamp(20px, 4vw, 56px);
  --gap-chapter: clamp(104px, 11vw, 168px);
  --gap-sec: clamp(44px, 5vw, 64px);
}
/* A link lands with its heading just under the bar: a chapter and a section each begin with
   their own gap, which the landing skips. */
html {
  scroll-padding-top: calc(var(--bar-h) + 20px);
}
:root[data-theme="light"] {
  --bg-hover: rgba(17, 18, 19, 0.05);
  --bg-selected: rgba(17, 18, 19, 0.08);
  --scrim: rgba(17, 18, 19, 0.32);
}

/* The window: the bar and the rail share the rail's tone, and the page is the lighter sheet
   beside them, its corner rounded where the three meet. */
.docs-page,
.docs-page .bar {
  background: var(--bg-rail);
}
.docs-page .bar-inner {
  max-width: none;
}
.docs-page .bar nav a[aria-current="page"] {
  color: var(--text);
}
/* The name is as tall to press as the buttons beside it. */
.docs-page .brand {
  min-height: 40px;
}
.docs {
  display: grid;
  grid-template-columns: var(--rail-w) minmax(0, 1fr);
  align-items: start;
}
.stage {
  min-width: 0;
  background: var(--bg);
}
/* The sheet's corner stays under the bar while the page scrolls beneath it. */
.stage-corner {
  position: sticky;
  top: var(--bar-h);
  z-index: 3;
  width: 28px;
  height: 28px;
  margin-bottom: -28px;
  fill: var(--bg-rail);
  pointer-events: none;
}

/* The rail: Search, then every chapter with its Claw. The chapter being read opens to its
   sections, the way a bot's tasks sit under it. */
.rail {
  position: sticky;
  top: var(--bar-h);
  height: calc(100dvh - var(--bar-h));
  padding: 4px 14px 40px calc(var(--edge) - 10px);
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
}
.find-open {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 44px;
  padding: 0 8px 0 14px;
  border: 0;
  border-radius: 999px;
  background: var(--bg-bubble);
  color: var(--text-muted);
  font-size: var(--t-s);
  text-align: left;
  cursor: pointer;
  transition:
    background-color 160ms var(--ease),
    color 160ms var(--ease);
}
.find-open:hover {
  color: var(--text);
}
html:not(.js) .find-open {
  display: none;
}
.find-open svg {
  flex: none;
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
}
.find-open .keys {
  margin-left: auto;
}
.rail-list,
.rail-tasks {
  list-style: none;
  margin: 0;
  padding: 0;
}
.rail-list {
  display: grid;
  gap: 2px;
  margin-top: 14px;
}
.rail-bot {
  border-radius: 22px;
  transition: background-color 240ms var(--ease);
}
.rail-bot[data-on] {
  background: var(--bg-hover);
}
.rail-row {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 52px;
  padding: 6px 12px 6px 8px;
  border-radius: 22px;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.2;
  text-decoration: none;
}
.rail-row:hover {
  color: inherit;
  background: var(--bg-hover);
}
.rail-bot[data-on] > .rail-row:hover {
  background: none;
}
.rail-row .claw-art {
  flex: none;
  width: 36px;
  height: 36px;
}
/* Closed, a chapter's sections take no room, and docs.js keeps them out of the tab order; open,
   they slide out from under it. Without script every chapter is open. */
.js .rail-fold {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 320ms var(--ease);
}
.rail-tasks {
  min-height: 0;
  padding: 0 6px;
  overflow: hidden;
}
.js .rail-bot[data-on] .rail-fold {
  grid-template-rows: 1fr;
}
.rail-tasks li:last-child {
  padding-bottom: 8px;
}
.rail-tasks a {
  display: block;
  padding: 7px 12px 7px 14px;
  border-radius: 12px;
  font-size: var(--t-s);
  line-height: 1.3;
  color: var(--text-muted);
  text-decoration: none;
  transition:
    background-color 140ms var(--ease),
    color 140ms var(--ease);
}
.rail-tasks a:hover {
  color: var(--text);
  background: var(--bg-hover);
}
.rail-tasks a[aria-current] {
  color: var(--text);
  background: var(--bg-selected);
}

/* Keys: the same raised fill as a bubble, in the text face. */
.keys {
  display: inline-flex;
  gap: 3px;
  white-space: nowrap;
}
kbd {
  display: inline-grid;
  place-items: center;
  min-width: 26px;
  height: 26px;
  padding: 0 7px;
  border-radius: 8px;
  background: var(--bg-selected);
  color: var(--text);
  font: 500 13px / 1 var(--font);
}
.find-open kbd {
  color: var(--text-muted);
}

/* The page's first screen: its name, one sentence, and the reader's Claw. */
.lead,
.begin,
.chapter,
.docs-foot {
  max-width: calc(var(--wide) + 2 * var(--pad));
  margin: 0 auto;
  padding-left: var(--pad);
  padding-right: var(--pad);
}
.lead {
  padding-top: clamp(40px, 6vw, 84px);
}
.lead h1 {
  font-size: var(--t-xl);
  font-weight: 600;
  line-height: 0.98;
  letter-spacing: -0.04em;
}
.lead-say {
  max-width: min(24em, 100% - 230px);
  margin-top: 20px;
  font-size: var(--t-m);
  line-height: 1.35;
}
/* The reader's Claw stands on the band below, its feet just over the edge. */
.lead-claw {
  position: absolute;
  z-index: 1;
  right: calc(var(--pad) + clamp(20px, 4vw, 64px));
  bottom: 100%;
  --claw: clamp(104px, 12vw, 152px);
  width: var(--claw);
  margin-bottom: calc(var(--claw) * -0.13);
}

/* Where to begin: three situations across the band, and for the chosen one its steps beside
   the screen it starts on. Without script the three follow one another, each under its own
   heading, beside the first one's screen. */
.begin {
  position: relative;
  margin-top: clamp(36px, 5vw, 60px);
}
.begin-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(20px, 2.6vw, 36px) clamp(24px, 3.4vw, 52px);
  align-items: center;
  padding: clamp(20px, 3vw, 40px);
  border-radius: 28px;
  background: color-mix(in srgb, var(--accent) var(--wash), var(--bg-rail));
}
.begin-head {
  grid-column: 1 / -1;
}
.begin h2 {
  font-size: var(--t-m);
  line-height: 1.2;
  letter-spacing: -0.015em;
}
.begin-tabs {
  display: none;
}
.js .begin-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 16px;
}
.begin-tabs button {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 48px;
  padding: 0 20px 0 16px;
  border: 0;
  border-radius: 999px;
  background: none;
  color: var(--text-muted);
  font-size: var(--t-b);
  text-align: left;
  cursor: pointer;
  transition:
    background-color 160ms var(--ease),
    color 160ms var(--ease);
}
.begin-tabs button::before {
  content: "";
  flex: none;
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: var(--text-faint);
  transition:
    background-color 160ms var(--ease),
    transform 160ms var(--ease);
}
.begin-tabs button:hover {
  color: var(--text);
}
.begin-tabs button[aria-selected="true"] {
  background: var(--bg);
  color: var(--text);
}
.begin-tabs button[aria-selected="true"]::before {
  background: var(--accent);
  transform: scale(1.3);
}
.begin-way[hidden],
.begin-pic[hidden] {
  display: none;
}
.begin-way .steps {
  margin-top: 0;
}
.begin-way h3 {
  margin: 28px 0 12px;
  font-size: var(--t-b);
  letter-spacing: 0;
}
.begin-way:first-child h3 {
  margin-top: 0;
}
.js .begin-way h3 {
  position: absolute;
  width: 1px;
  height: 1px; /* taste-skill-ignore: read aloud, not shown */
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.begin-more {
  margin-top: 16px;
  font-size: var(--t-s);
  color: var(--text-muted);
}
.begin-pics {
  min-width: 0;
}
.begin-pic .shot {
  width: 100%;
  max-width: 560px;
  border-radius: 18px;
}
html:not(.js) .begin-pic ~ .begin-pic {
  display: none;
}
.js .begin-way .steps,
.js .begin-way .begin-more,
.js .begin-pic {
  animation: arrive 320ms var(--ease) both;
}

/* A screen of the app, in the theme the page is in. */
.shot {
  max-width: 100%;
  height: auto;
  margin: 0 auto;
  border-radius: 14px;
}
.shot-light,
:root[data-theme="light"] .shot-dark {
  display: none;
}
:root[data-theme="light"] .shot-light {
  display: block;
}

/* A chapter: its Claw beside its name, one sentence, then its sections. The chapter's colour
   is its Claw's, and its pictures sit on a wash of it. */
.chapter {
  padding-top: var(--gap-chapter);
  scroll-margin-top: calc(28px - var(--gap-chapter));
}
.chapter-head,
.sec > * {
  max-width: var(--measure);
  margin-left: auto;
  margin-right: auto;
}
.chapter-head {
  position: relative;
}
.chapter-claw {
  position: absolute;
  right: calc(100% + 24px);
  top: -14px;
  width: 88px;
}
/* A chapter's Claw comes up when its chapter scrolls in (../claws.js). It is hidden only once
   that script has found it out of sight, so a late script never hides one already on screen. */
.js .chapter-claw[data-wake][data-asleep] {
  opacity: 0;
  transform: translateY(40%) scale(0.7);
  transform-origin: 50% 100%;
}
.js .chapter-claw[data-wake][data-woke] {
  opacity: 1;
  transform: none;
  transition:
    opacity 300ms var(--ease),
    transform 620ms cubic-bezier(0.3, 1.5, 0.5, 1);
}
.chapter h2 {
  font-size: var(--t-l);
}
.chapter-say {
  margin-top: 14px;
  font-size: var(--t-m);
  line-height: 1.35;
}
/* The site's own sections are full-width bands; a section here is a part of a chapter. */
.sec {
  max-width: none;
  margin: 0;
  padding: var(--gap-sec) 0 0;
  scroll-margin-top: calc(0px - var(--gap-sec));
}
/* A long address or path breaks where it must, so nothing is wider than a phone; ordinary
   words stay whole. A table keeps its words whole too, and scrolls inside itself. */
.sec,
.chapter-head {
  overflow-wrap: break-word;
}
.sec :is(a, code) {
  overflow-wrap: anywhere;
}
.sec li {
  min-width: 0;
}
.table :is(th, td, a, code) {
  overflow-wrap: normal;
}
.sec h3 {
  font-size: var(--t-m);
}
.sec h4 {
  margin: 28px auto 0;
  font-size: var(--t-b);
  font-weight: 600;
  line-height: 1.3;
}
.sec p,
.sec ul,
.sec ol {
  margin-top: 14px;
}
.sec h4 + p,
.sec h4 + ul,
.sec h4 + ol {
  margin-top: 8px;
}
.sec b,
.sec strong {
  font-weight: 600;
}
.sec a {
  text-decoration-color: var(--text-faint);
}
.sec a:hover {
  text-decoration-color: currentColor;
}
.sec :not(pre) > code {
  padding: 2px 6px;
  border-radius: 6px;
  background: var(--bg-code);
}
/* A heading's own link shows beside it on hover and focus. */
.mark {
  margin-left: 8px;
  color: var(--text-faint);
  font-weight: 400;
  text-decoration: none;
  opacity: 0;
  transition: opacity 140ms var(--ease);
}
.mark:focus-visible {
  opacity: 1;
}
@media (hover: hover) {
  :is(h2, h3):hover .mark {
    opacity: 1;
  }
}
/* The heading a link or a search result led to is marked for a moment. */
.arrived {
  animation: arrived 1400ms var(--ease);
}
/* A heading a search result landed on holds focus so reading goes on from it; the mark above
   shows where it is. */
:is(h2, h3, h4)[tabindex="-1"]:focus {
  outline: 0;
}
@keyframes arrived {
  0%,
  40% {
    color: var(--accent);
  }
}

.sec ul {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 8px;
}
.sec ul > li {
  position: relative;
  padding-left: 22px;
}
.sec ul > li::before {
  content: "";
  position: absolute;
  left: 3px;
  top: 0.64em;
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--text-faint);
}
/* Steps in the page: the number on the bubble fill, the words in the text column. */
.sec ol {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 12px;
  counter-reset: step;
}
.sec ol > li {
  position: relative;
  min-height: 28px;
  padding-left: 42px;
  counter-increment: step;
}
.sec ol > li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: var(--bg-bubble);
  font-size: var(--t-s);
  font-weight: 600;
}
.sec li > ul,
.sec li > p {
  margin-top: 8px;
}

/* A note beside the text: plain, a tip on the accent, a caution on the warning tone, and what
   is not in the beta yet behind an open dot. */
.note {
  margin-top: 20px;
  padding: 16px 20px;
  border-radius: 18px;
  background: var(--bg-bubble);
}
.note > :first-child {
  margin-top: 0;
}
.note-tip {
  background: var(--accent-soft);
}
.note-warn {
  background: var(--warn-soft);
}
.note-soon {
  position: relative;
  padding-left: 44px;
}
.note-soon::before {
  content: "";
  position: absolute;
  left: 20px;
  top: 25px;
  width: 9px;
  height: 9px;
  border-radius: 999px;
  box-shadow: inset 0 0 0 1.5px var(--text-faint); /* taste-skill-ignore: an open dot for what is coming */
}

/* A command to copy, as on the home page. */
.sec .cmd-box {
  margin-top: 16px;
}
.sec .cmd-box + .cmd-box {
  margin-top: 8px;
}
.sec .copy {
  min-height: 40px;
}
/* Each command names its tool here, where no tabs do. */
.js .sec .cmd-tool {
  display: block;
  min-width: 5.5em;
}

/* A picture of the app: wider than the text, on a wash of the chapter's colour. */
.fig {
  max-width: var(--wide);
  margin-top: 32px;
}
.fig-stage {
  padding: clamp(12px, 2.6vw, 36px);
  border-radius: 28px;
  background: color-mix(in srgb, var(--chapter, var(--accent)) var(--wash), var(--bg-rail));
}
.fig figcaption {
  max-width: var(--measure);
  margin: 12px auto 0;
  font-size: var(--t-s);
  color: var(--text-muted);
}
/* A picture opens larger: press it, or the button in its corner, which shows on hover and focus
   (always, where there is no hover). */
.fig-stage {
  position: relative;
}
.js .fig .shot {
  cursor: zoom-in;
}
.fig-open {
  position: absolute;
  right: 14px;
  bottom: 14px;
  display: none;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 999px;
  background: var(--bg-inverse);
  color: var(--text-inverse);
  opacity: 0;
  cursor: pointer;
  transition:
    opacity 160ms var(--ease),
    transform 160ms var(--ease);
}
.js .fig-open {
  display: grid;
}
.fig-open svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.fig-stage:hover .fig-open,
.fig-open:focus-visible {
  opacity: 1;
}
.fig-open:active {
  transform: scale(0.94);
}
@media (hover: none) {
  .fig-open {
    opacity: 1;
  }
}
.view {
  width: 100vw;
  max-width: none;
  height: 100dvh;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
}
.view::backdrop {
  background: var(--scrim);
}
.view[open] {
  display: grid;
  animation: find-in 220ms var(--ease);
}
.view-room {
  display: grid;
  place-items: center;
  min-height: 0;
  padding: clamp(12px, 3vw, 40px);
  overflow: auto;
  overscroll-behavior: contain;
  cursor: zoom-out;
}
.view-room img {
  max-width: none;
  width: min(100%, var(--natural));
  height: auto;
  border-radius: 14px;
  box-shadow: var(--shadow-pop); /* taste-skill-ignore: it floats over the page */
}
.view-close {
  position: fixed;
  top: 16px;
  right: 16px;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 999px;
  background: var(--bg-inverse);
  color: var(--text-inverse);
  cursor: pointer;
}
.view-close svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
}
/* A phone shows the picture at a size its words can be read at, to pan across. */
@media (max-width: 760px) {
  .view-room {
    place-items: start;
  }
  .view-room img {
    width: min(var(--natural), 860px);
  }
}
.js .fig {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity 700ms var(--ease),
    transform 700ms var(--ease);
}
.js .fig.in {
  opacity: 1;
  transform: none;
}

/* A table: rows on alternate fills, no lines. */
.table {
  overflow-x: auto;
  margin-top: 18px;
}
.table table {
  width: 100%;
  border-collapse: collapse;
}
.table th {
  padding: 8px 14px;
  font-size: var(--t-s);
  font-weight: 500;
  text-align: left;
  color: var(--text-muted);
}
.table td {
  padding: 11px 14px;
  vertical-align: top;
}
.table tbody tr:nth-child(odd) td {
  background: var(--bg-bubble);
}
.table td:first-child {
  border-radius: 14px 0 0 14px;
}
.table td:last-child {
  border-radius: 0 14px 14px 0;
}

/* The foot of the sheet. */
.docs-foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 32px;
  padding-top: var(--gap-chapter);
  padding-bottom: 40px;
  font-size: var(--t-s);
  color: var(--text-muted);
}
.docs-foot nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
}
.docs-foot a {
  color: var(--text-muted);
  text-decoration: none;
}
.docs-foot a:hover {
  color: var(--text);
  text-decoration: underline;
}

/* Search: a palette over the page, opened from the rail, the bar, / or ⌘K. */
.find {
  width: min(660px, calc(100vw - 24px));
  max-height: none;
  margin: 12vh auto 0;
  padding: 0;
  border: 0;
  border-radius: 24px;
  background: var(--bg-raised);
  color: var(--text);
  box-shadow: var(--shadow-pop); /* taste-skill-ignore: it floats over the page */
  overflow: hidden;
}
.find::backdrop {
  background: var(--scrim);
}
.find[open] {
  animation: find-in 220ms var(--ease);
}
@keyframes find-in {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.985);
  }
}
.find-field {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 4px 12px 4px 22px;
}
.find-field svg {
  flex: none;
  width: 18px;
  height: 18px;
  fill: none;
  stroke: var(--text-muted);
  stroke-width: 1.6;
  stroke-linecap: round;
}
.find-field input {
  flex: 1;
  min-width: 0;
  height: 60px;
  border: 0;
  outline: 0;
  background: none;
  color: inherit;
  font: inherit;
}
/* The field shows it has focus the way the app's search does, with a line under it. */
.find-field:has(input:focus-visible) {
  box-shadow: inset 0 -2px 0 var(--accent-line); /* taste-skill-ignore: the field's focus mark */
}
.find-field input::placeholder {
  color: var(--text-faint);
}
.find-close {
  border: 0;
  background: none;
  padding: 8px;
  border-radius: 10px;
  cursor: pointer;
}
.find-list {
  list-style: none;
  margin: 0;
  padding: 0 8px 8px;
  max-height: min(56vh, 460px);
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
}
.find-list li {
  display: grid;
  gap: 2px;
  padding: 10px 14px;
  border-radius: 16px;
  cursor: pointer;
}
.find-list li[aria-selected="true"] {
  background: var(--bg-selected);
}
.find-name {
  font-weight: 500;
}
.find-in,
.find-words,
.find-none,
.find-hint {
  font-size: var(--t-s);
  color: var(--text-muted);
}
.find-in {
  margin-left: 8px;
  font-weight: 400;
}
.find-words {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}
.find mark {
  background: none;
  color: var(--accent);
  font-weight: 500;
}
.find-none {
  padding: 18px 22px 22px;
}
.find-hint {
  display: flex;
  gap: 18px;
  padding: 10px 22px 12px;
  background: var(--bg-bubble);
}
.find-hint span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.find-hint kbd {
  background: var(--bg-raised);
}

/* Below the rail's width the chapters move into a sheet, opened from a strip under the bar
   that names the place being read. */
.here {
  display: none;
}
.bar-find {
  display: none;
}
@media (max-width: 1320px) {
  .chapter-claw {
    position: static;
    width: 72px;
    margin: 0 0 14px;
  }
}
@media (max-width: 1100px) {
  /* The bar, with the strip that names the place under it. */
  .js {
    --bar-h: 122px;
  }
  .docs {
    grid-template-columns: minmax(0, 1fr);
  }
  .stage-corner {
    display: none;
  }
  .rail {
    position: fixed;
    inset: var(--bar-h) 0 0;
    z-index: 6;
    height: auto;
    padding: 8px 14px 40px;
    background: var(--bg-rail);
    visibility: hidden;
    opacity: 0;
    transform: translateY(-8px);
    transition:
      opacity 200ms var(--ease),
      transform 200ms var(--ease),
      visibility 0s 200ms;
  }
  html[data-rail] .rail {
    visibility: visible;
    opacity: 1;
    transform: none;
    transition-delay: 0s;
  }
  html[data-rail] body {
    overflow: hidden;
  }
  html:not(.js) .rail {
    position: static;
    visibility: visible;
    opacity: 1;
    transform: none;
  }
  .rail .find-open {
    display: none;
  }
  .rail-list {
    max-width: 560px;
    margin: 0 auto;
  }
  /* In the sheet a section is a row to press. */
  .rail-tasks a {
    display: flex;
    align-items: center;
    min-height: 44px;
  }
  .js .here {
    display: flex;
    padding: 0 var(--edge) 10px;
  }
  .here-open {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    min-height: 44px;
    padding: 0 16px;
    border: 0;
    border-radius: 999px;
    background: var(--bg-bubble);
    font-size: var(--t-s);
    text-align: left;
    cursor: pointer;
  }
  .here-open svg {
    flex: none;
    width: 16px;
    height: 16px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: transform 200ms var(--ease);
  }
  html[data-rail] .here-open svg {
    transform: rotate(180deg);
  }
  /* Once a place is named, the button's own name is read out but not shown. */
  .here-label:has(+ .here-name:not(:empty)) {
    position: absolute;
    width: 1px;
    height: 1px; /* taste-skill-ignore: read aloud, not shown */
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }
  .here-name {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
  }
  .here-name span {
    color: var(--text-muted);
  }
  .js .bar-find {
    display: grid;
  }
  .begin-band {
    grid-template-columns: minmax(0, 1fr);
  }
}
/* At the narrowest widths the bar keeps the logo and drops the name beside it, which the
   link's own label still gives, so Search, the theme and Download all fit. */
@media (max-width: 380px) {
  .docs-page .brand span {
    position: absolute;
    width: 1px;
    height: 1px; /* taste-skill-ignore: read aloud, not shown */
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }
  .docs-page .bar-inner {
    gap: 12px;
  }
  /* The opening sentences step down a size, so each stays a few lines. */
  .lead-say,
  .chapter-say {
    font-size: 19px;
  }
}
@media (max-width: 640px) {
  .js .begin-tabs {
    flex-direction: column;
  }
  /* The Claw keeps a place of its own above the band, clear of the sentence. */
  .lead-say {
    max-width: none;
  }
  .begin {
    margin-top: 92px;
  }
  .lead-claw {
    --claw: 88px;
  }
  /* A command's tool sits over it, so the command has the whole width. */
  .js .sec .cmd-box {
    flex-wrap: wrap;
    padding-top: 12px;
  }
  .js .sec .cmd-tool {
    flex: 0 0 100%;
  }
  .fig-stage,
  .begin-band {
    border-radius: 22px;
  }
  .find {
    margin-top: 12px;
  }
  .find-hint {
    display: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  .js .fig {
    opacity: 1;
    transform: none;
  }
}
