/* Cranes Help. Tokens follow pikespeak-design-system/src/index.css and the product's
   book.css so the help pages read like the product: paper, ink, one yellow accent. */

@font-face {
  font-family: "Inter Variable";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(/assets/inter.3100e775e8.woff2) format("woff2-variations");
}
@font-face {
  font-family: "Hedvig Letters Serif Variable";
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url(/assets/hedvig-letters-serif.2d555f3693.woff2) format("woff2-variations");
}

:root {
  color-scheme: light;
  --font-sans: "Inter Variable", system-ui, sans-serif;
  --font-title: "Hedvig Letters Serif Variable", Georgia, serif;

  --background: #fcfcfc;
  --foreground: #171716;
  --card: #ffffff;
  --pane: #f4f4f3;
  --muted-foreground: #6b6a66;
  --ink-soft: #a3a29e;
  --ink-faint: #d3d2ce;
  --border: rgb(20 20 18 / 8%);
  --accent: #f1f1ef;
  --highlight: #f7c600;
  --highlight-ink: #7a5d00;
  --highlight-wash: rgb(247 198 0 / 18%);
  --focus-halo: rgb(247 198 0 / 45%);
  --slip-paper: #fdf8ee;
  --slip-ink: #1d1c19;
  --slip-ink-soft: #5f5b52;
  --code-surface: #f4f4f3;

  --shadow-float: 0 0 0 1px rgb(20 20 18 / 5%), 0 1px 2px rgb(20 20 18 / 4%), 0 10px 28px -14px rgb(20 20 18 / 18%);
  --shadow-float-hover: 0 0 0 1px rgb(20 20 18 / 7%), 0 2px 4px rgb(20 20 18 / 5%), 0 14px 32px -14px rgb(20 20 18 / 22%);
  --shadow-dialog: 0 0 0 1px rgb(20 20 18 / 6%), 0 24px 64px -24px rgb(20 20 18 / 30%);
  --ease-swift: cubic-bezier(0.23, 0.88, 0.26, 0.92);

  --radius-control: 0.75rem;
  --radius-card: 1rem;
  --radius-dialog: 1.25rem;

  --type-meta: 0.8125rem;
  --type-ui: 0.875rem;
  --type-reading: 1.0625rem;
  --leading-reading: 1.65;

  --side: 16rem;
  --toc: 13rem;
  --measure: 40rem;
  --gutter: 1.25rem;
}

/* Dark follows the product's reading-tuned dark tones. */
:root[data-theme="dark"] {
  color-scheme: dark;
  --background: #121211;
  --foreground: #eeede9;
  --card: #1c1c1b;
  --pane: #1c1c1b;
  --muted-foreground: #b4b2ac;
  --ink-soft: #8f8d87;
  --ink-faint: #4d4c48;
  --border: rgb(255 255 255 / 11%);
  --accent: #222221;
  --highlight: #ffd426;
  --highlight-ink: #ffd95a;
  --highlight-wash: rgb(255 212 38 / 14%);
  --focus-halo: rgb(255 212 38 / 35%);
  --code-surface: #1f1f1e;
  --shadow-float: 0 0 0 1px rgb(255 255 255 / 12%), 0 12px 32px -14px rgb(0 0 0 / 80%);
  --shadow-float-hover: 0 0 0 1px rgb(255 255 255 / 16%), 0 14px 36px -14px rgb(0 0 0 / 75%);
  --shadow-dialog: 0 0 0 1px rgb(255 255 255 / 14%), 0 24px 64px -20px rgb(0 0 0 / 90%);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --background: #121211;
    --foreground: #eeede9;
    --card: #1c1c1b;
    --pane: #1c1c1b;
    --muted-foreground: #b4b2ac;
    --ink-soft: #8f8d87;
    --ink-faint: #4d4c48;
    --border: rgb(255 255 255 / 11%);
    --accent: #222221;
    --highlight: #ffd426;
    --highlight-ink: #ffd95a;
    --highlight-wash: rgb(255 212 38 / 14%);
    --focus-halo: rgb(255 212 38 / 35%);
    --code-surface: #1f1f1e;
    --shadow-float: 0 0 0 1px rgb(255 255 255 / 12%), 0 12px 32px -14px rgb(0 0 0 / 80%);
    --shadow-float-hover: 0 0 0 1px rgb(255 255 255 / 16%), 0 14px 36px -14px rgb(0 0 0 / 75%);
    --shadow-dialog: 0 0 0 1px rgb(255 255 255 / 14%), 0 24px 64px -20px rgb(0 0 0 / 90%);
  }
}

/* Base */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  min-width: 20rem;
  background: var(--background);
  color: var(--foreground);
  font-family: var(--font-sans);
  font-size: var(--type-ui);
  line-height: 1.5;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-variant-ligatures: no-common-ligatures;
}
a {
  color: inherit;
  text-underline-offset: 0.2em;
  text-decoration-thickness: from-font;
}
button,
input {
  font: inherit;
  color: inherit;
}
button {
  cursor: pointer;
}
:focus-visible {
  outline: 2px solid var(--foreground);
  outline-offset: 2px;
  box-shadow: 0 0 0 6px var(--focus-halo);
  border-radius: 0.375rem;
}
.icon {
  width: 1.125rem;
  height: 1.125rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
}
kbd {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 500;
  padding: 0.0625rem 0.375rem;
  border-radius: 0.375rem;
  background: var(--card);
  box-shadow: inset 0 0 0 1px var(--border), 0 1px 0 var(--border);
  white-space: nowrap;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}
.skip-link {
  position: fixed;
  top: 0.5rem;
  left: 0.5rem;
  z-index: 50;
  translate: 0 -200%;
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-control);
  background: var(--card);
  box-shadow: var(--shadow-float);
}
.skip-link:focus {
  translate: 0;
}

/* Buttons */
.button {
  display: inline-flex;
  align-items: center;
  height: 2.25rem;
  padding: 0 1rem;
  border: 0;
  border-radius: 999px;
  background: var(--foreground);
  color: var(--background);
  font-size: var(--type-ui);
  font-weight: 500;
  text-decoration: none;
  transition: opacity 200ms var(--ease-swift);
}
.button:hover {
  opacity: 0.86;
}
.button-quiet {
  background: transparent;
  color: var(--foreground);
  box-shadow: inset 0 0 0 1px var(--border);
}
.icon-button {
  display: inline-grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted-foreground);
  transition: background 200ms var(--ease-swift), color 200ms var(--ease-swift);
}
.icon-button:hover {
  background: var(--accent);
  color: var(--foreground);
}

/* Top bar */
.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: 3.75rem;
  padding: 0 var(--gutter);
  background: color-mix(in srgb, var(--background) 82%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.topbar[data-variant="home"] {
  position: absolute;
  inset-inline: 0;
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  color: var(--slip-ink);
}
.topbar-start,
.topbar-end {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  height: 2rem;
  padding: 0 0.25rem;
  text-decoration: none;
}
.brand img {
  display: block;
  width: 4rem;
  height: auto;
}
:root[data-theme="dark"] .page .brand img,
:root[data-theme="dark"] .footer-logo img {
  filter: invert(1);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .page .brand img,
  :root:not([data-theme="light"]) .footer-logo img {
    filter: invert(1);
  }
}
.brand-divider {
  width: 1px;
  height: 0.875rem;
  background: currentColor;
  opacity: 0.25;
}
.brand-label {
  font-size: var(--type-ui);
  font-weight: 500;
}
.search-trigger {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  height: 2rem;
  min-width: 13rem;
  padding: 0 0.375rem 0 0.75rem;
  border: 0;
  border-radius: 999px;
  background: var(--card);
  box-shadow: var(--shadow-float);
  color: var(--muted-foreground);
  transition: box-shadow 200ms var(--ease-swift);
}
.search-trigger:hover {
  box-shadow: var(--shadow-float-hover);
}
.search-trigger .icon {
  width: 1rem;
  height: 1rem;
}
.search-trigger-label {
  flex: 1;
  text-align: start;
}
.topbar[data-variant="home"] .search-trigger {
  display: none;
}
.topbar[data-variant="home"] .icon-button {
  color: var(--slip-ink);
}
.topbar[data-variant="home"] .icon-button:hover {
  background: rgb(0 0 0 / 7%);
}
.pill-link {
  display: inline-flex;
  align-items: center;
  height: 2rem;
  padding: 0 0.875rem;
  border-radius: 999px;
  font-weight: 500;
  text-decoration: none;
  transition: background 200ms var(--ease-swift);
}
.pill-link:hover {
  background: var(--accent);
}
.topbar[data-variant="home"] .pill-link:hover {
  background: rgb(0 0 0 / 7%);
}
.contents-toggle {
  display: none;
}

/* Home: the waitlist's paper slip on yellow, holding the search. */
.hero {
  position: relative;
  background: var(--highlight);
  color: var(--slip-ink);
}
.hero-main {
  display: grid;
  place-items: center;
  min-height: min(40rem, 88svh);
  padding: 6rem var(--gutter) 5rem;
}
.slip {
  position: relative;
  width: min(100%, 34rem);
  background: var(--slip-paper);
  color: var(--slip-ink);
}
.slip-body {
  padding: 2.5rem 2.25rem 2.25rem;
}
.slip h1 {
  margin: 0 0 0.875rem;
  font-family: var(--font-title);
  font-size: clamp(2.375rem, 7vw, 3.25rem);
  font-weight: 400;
  line-height: 1.04;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.slip-lede {
  margin: 0 0 1.75rem;
  font-size: 1rem;
  line-height: 1.5;
  text-wrap: pretty;
}
.hero-search {
  position: relative;
}
.hero-search input {
  width: 100%;
  height: 2.75rem;
  padding: 0;
  border: 0;
  border-bottom: 1.5px solid var(--slip-ink);
  border-radius: 0;
  outline: 0;
  background: transparent;
  color: var(--slip-ink);
  font-size: 1.0625rem;
}
.hero-search input::placeholder {
  color: var(--slip-ink-soft);
}
.hero-search input:focus-visible {
  border-bottom-width: 2px;
  box-shadow: none;
}
.hero-search input::-webkit-search-cancel-button {
  display: none;
}
.hero-results {
  position: absolute;
  z-index: 5;
  top: calc(100% + 0.5rem);
  inset-inline: -0.75rem;
  max-height: min(24rem, 60svh);
  overflow: auto;
  padding: 0.375rem;
  border-radius: var(--radius-card);
  background: #ffffff;
  box-shadow: var(--shadow-dialog);
  color: #171716;
  --foreground: #171716;
  --muted-foreground: #6b6a66;
  --accent: #f1f1ef;
  --highlight-wash: rgb(247 198 0 / 22%);
}
/* The stub, torn along a perforation with a notch cut from each side. */
.slip-stub {
  position: relative;
  padding: 1.5rem 2.25rem 1.75rem;
}
.slip-stub::before {
  content: "";
  position: absolute;
  top: 0;
  inset-inline: 1.5rem;
  border-top: 1.5px dashed var(--slip-ink);
}
.slip-notch {
  position: absolute;
  top: 0;
  width: 1.5rem;
  height: 1.5rem;
  background: var(--highlight);
  transform: translateY(-50%) rotate(45deg);
}
.slip-notch[data-side="left"] {
  left: -0.75rem;
}
.slip-notch[data-side="right"] {
  right: -0.75rem;
}
.slip-stub-label {
  margin: 0 0 0.625rem;
  color: var(--slip-ink-soft);
  font-size: var(--type-meta);
}
.popular {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.popular a {
  display: inline-flex;
  align-items: center;
  height: 1.875rem;
  padding: 0 0.75rem;
  border-radius: 999px;
  box-shadow: inset 0 0 0 1px rgb(29 28 25 / 18%);
  font-size: var(--type-meta);
  font-weight: 500;
  text-decoration: none;
  transition: background 200ms var(--ease-swift);
}
.popular a:hover {
  background: rgb(29 28 25 / 7%);
}

/* Home: topics */
.topics {
  width: min(100% - 2 * var(--gutter), 68rem);
  margin: 0 auto;
  padding: 4.5rem 0 2rem;
}
.topics > h2,
.new-here h2 {
  margin: 0 0 1.5rem;
  font-family: var(--font-title);
  font-size: 1.5rem;
  font-weight: 400;
  letter-spacing: -0.01em;
}
.topic-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(19rem, 1fr));
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.topic-card {
  display: flex;
  flex-direction: column;
  padding: 1.5rem 1.5rem 1.25rem;
  border-radius: var(--radius-card);
  background: var(--card);
  box-shadow: var(--shadow-float);
  transition: box-shadow 200ms var(--ease-swift);
}
.topic-card:hover {
  box-shadow: var(--shadow-float-hover);
}
.topic-card h3 {
  margin: 0 0 0.375rem;
  font-family: var(--font-title);
  font-size: 1.25rem;
  font-weight: 400;
  line-height: 1.3;
}
.topic-card h3 a {
  text-decoration: none;
}
.topic-card h3 a:hover {
  text-decoration: underline;
}
.topic-card > p {
  margin: 0 0 1rem;
  color: var(--muted-foreground);
  line-height: 1.55;
}
.topic-card .tick-list {
  flex: 1;
}
.topic-more {
  align-self: flex-start;
  margin-top: 0.75rem;
  color: var(--muted-foreground);
  font-size: var(--type-meta);
  font-weight: 500;
  text-decoration: none;
}
.topic-more:hover {
  color: var(--foreground);
}
/* Lists drawn with the ruler's short ticks. */
.tick-list {
  display: grid;
  gap: 0.125rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.tick-list a {
  position: relative;
  display: block;
  padding: 0.3125rem 0 0.3125rem 1.25rem;
  text-decoration: none;
  line-height: 1.4;
}
.tick-list a::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.9375rem;
  width: 0.75rem;
  height: 1px;
  background: var(--ink-soft);
  transition: width 200ms var(--ease-swift), background 200ms var(--ease-swift);
}
.tick-list a:hover::before {
  width: 0.875rem;
  background: var(--highlight);
  height: 2px;
}
.tick-list a:hover {
  text-decoration: underline;
  text-decoration-color: var(--ink-soft);
}
.new-here {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem 2rem;
  width: min(100% - 2 * var(--gutter), 68rem);
  margin: 2rem auto 0;
  padding: 2rem 0;
  border-top: 1px solid var(--border);
}
.new-here h2 {
  margin-bottom: 0.5rem;
}
.new-here p {
  max-width: 38rem;
  margin: 0;
  color: var(--muted-foreground);
  font-size: 0.9375rem;
  line-height: 1.6;
}

/* Pages: contents ruler, reading column, and "On this page". */
.layout {
  display: grid;
  grid-template-columns: var(--side) minmax(0, 1fr) var(--side);
  align-items: start;
  min-height: calc(100svh - 3.75rem);
}
.layout[data-has-toc="true"] {
  grid-template-columns: var(--side) minmax(0, 1fr) var(--side);
}
.reading {
  width: min(100%, var(--measure));
  margin: 0 auto;
  padding: 2.5rem 0 7rem;
}

.ruler {
  position: sticky;
  top: 3.75rem;
  max-height: calc(100svh - 3.75rem);
  overflow-y: auto;
  padding: 2.25rem 1rem 3rem var(--gutter);
  scrollbar-width: none;
  /* The minor ticks of the ruler, every half line. */
  background-image: repeating-linear-gradient(
    to bottom,
    var(--ink-faint) 0 1px,
    transparent 1px 0.5rem
  );
  background-size: 0.5rem calc(100% - 5.25rem);
  background-repeat: no-repeat;
  background-position: var(--gutter) 2.25rem;
}
.ruler ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
.ruler > ul > li + li {
  margin-top: 0.25rem;
}
.ruler-item {
  position: relative;
  display: block;
  padding: 0.3125rem 0 0.3125rem 1.75rem;
  color: var(--muted-foreground);
  font-size: var(--type-ui);
  line-height: 1.35;
  text-decoration: none;
  background: var(--background);
  transition: color 200ms var(--ease-swift);
}
.ruler-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.9375rem;
  width: 1rem;
  height: 1px;
  background: var(--ink-soft);
  transition: width 200ms var(--ease-swift), background 200ms var(--ease-swift);
}
.ruler-item[data-level="head"] {
  color: var(--foreground);
  font-weight: 500;
}
.ruler-item[data-level="sub"] {
  padding-left: 2.25rem;
  font-family: var(--font-title);
  font-size: 0.9375rem;
}
.ruler-item[data-level="sub"]::before {
  width: 0.625rem;
}
.ruler-item:hover {
  color: var(--foreground);
}
.ruler-item[aria-current="page"] {
  color: var(--foreground);
}
.ruler-item[aria-current="page"]::before {
  width: 1.5rem;
  height: 2px;
  top: 0.875rem;
  background: var(--highlight);
}
.ruler-item[data-level="head"][data-open] + ul {
  margin: 0.125rem 0 0.5rem;
}

.crumb {
  margin: 0 0 1.25rem;
  color: var(--muted-foreground);
  font-size: var(--type-meta);
}
.crumb a {
  text-decoration: none;
}
.crumb a:hover {
  color: var(--foreground);
  text-decoration: underline;
}
.crumb span {
  margin: 0 0.25rem;
  color: var(--ink-soft);
}
.reading h1 {
  margin: 0 0 0.75rem;
  font-family: var(--font-title);
  font-size: clamp(1.875rem, 4vw, 2.375rem);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.lede {
  margin: 0 0 2.5rem;
  color: var(--muted-foreground);
  font-size: 1.0625rem;
  line-height: 1.55;
  text-wrap: pretty;
}

/* Article text is set like the book: serif, at a reading size. */
.prose {
  font-family: var(--font-title);
  font-size: var(--type-reading);
  line-height: var(--leading-reading);
  letter-spacing: 0;
  text-wrap: pretty;
  hanging-punctuation: first;
}
.prose > * {
  margin: 0;
}
.prose > * + * {
  margin-top: 1.1em;
}
.prose h2 {
  margin-top: 2.5rem;
  font-family: var(--font-title);
  font-size: 1.375rem;
  font-weight: 400;
  line-height: 1.3;
  letter-spacing: -0.01em;
}
.prose h3 {
  margin-top: 2rem;
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: -0.01em;
}
.prose h2 + *,
.prose h3 + * {
  margin-top: 0.625rem;
}
.prose :is(h2, h3) {
  position: relative;
  scroll-margin-top: 5rem;
}
.heading-anchor {
  position: absolute;
  left: -1.75rem;
  top: 50%;
  translate: 0 -50%;
  display: grid;
  place-items: center;
  width: 1.5rem;
  height: 1.5rem;
  color: var(--ink-soft);
  opacity: 0;
  transition: opacity 150ms var(--ease-swift);
}
.heading-anchor .icon {
  width: 1rem;
  height: 1rem;
}
:is(h2, h3):hover .heading-anchor,
.heading-anchor:focus-visible {
  opacity: 1;
}
.prose a {
  text-decoration-color: var(--ink-soft);
}
.prose a:hover {
  text-decoration-color: currentColor;
}
.prose strong {
  font-weight: 600;
}
/* UI labels are quoted in bold; set them in the interface face so they read as controls. */
.prose strong,
.prose kbd {
  font-family: var(--font-sans);
  font-size: 0.9em;
  letter-spacing: -0.01em;
}
.prose ul,
.prose ol {
  padding-left: 1.5rem;
}
.prose li + li {
  margin-top: 0.4em;
}
.prose li > ul,
.prose li > ol {
  margin-top: 0.4em;
}
.prose ul li::marker {
  color: var(--ink-soft);
}
.prose ol {
  list-style: none;
  counter-reset: step;
  padding-left: 2.25rem;
}
.prose ol > li {
  position: relative;
  counter-increment: step;
}
.prose ol > li::before {
  content: counter(step);
  position: absolute;
  left: -2.25rem;
  top: 0.1875rem;
  display: grid;
  place-items: center;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 999px;
  background: var(--pane);
  color: var(--foreground);
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1;
}
.prose code {
  padding: 0.125rem 0.375rem;
  border-radius: 0.375rem;
  background: var(--code-surface);
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 0.84em;
}
.prose pre {
  overflow-x: auto;
  padding: 1rem 1.125rem;
  border-radius: var(--radius-control);
  background: var(--code-surface);
  line-height: 1.55;
}
.prose pre code {
  padding: 0;
  background: none;
  font-size: 0.8125rem;
}
.prose blockquote {
  padding-left: 1.125rem;
  border-left: 2px solid var(--ink-faint);
  color: var(--muted-foreground);
}
.prose hr {
  height: 0;
  margin: 2.5rem 0;
  border: 0;
  border-top: 1.5px dashed var(--ink-faint);
}
.prose mark {
  padding: 0 0.125rem;
  background: var(--highlight-wash);
  color: inherit;
}
.table-wrap {
  overflow-x: auto;
}
.prose table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--font-sans);
  font-size: var(--type-ui);
  line-height: 1.5;
}
.prose th,
.prose td {
  padding: 0.625rem 0.75rem 0.625rem 0;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
}
.prose th {
  color: var(--muted-foreground);
  font-weight: 500;
}
.prose table strong {
  font-size: inherit;
}
.callout {
  padding: 1rem 1.25rem;
  border-radius: var(--radius-control);
  background: var(--pane);
  font-size: 1rem;
}
.callout > * {
  margin: 0;
}
.callout > * + * {
  margin-top: 0.75em;
}
.callout-label {
  font-family: var(--font-sans);
  font-size: var(--type-meta);
  font-weight: 600;
  margin-right: 0.25rem;
}
.callout-tip .callout-label::before,
.callout-note .callout-label::before,
.callout-important .callout-label::before,
.callout-warning .callout-label::before {
  content: "";
  display: inline-block;
  width: 0.5rem;
  height: 0.5rem;
  margin-right: 0.4375rem;
  border-radius: 999px;
  vertical-align: 0.0625rem;
  background: var(--ink-soft);
}
.callout-tip .callout-label::before {
  background: var(--highlight);
}
.callout-important,
.callout-warning {
  background: var(--highlight-wash);
}
.callout-warning .callout-label::before,
.callout-important .callout-label::before {
  background: var(--highlight-ink);
}

/* Topic page */
.article-list {
  margin: 0 0 3rem;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--border);
}
.article-list li {
  border-bottom: 1px solid var(--border);
}
.article-list a {
  display: grid;
  gap: 0.25rem;
  padding: 1.125rem 0;
  text-decoration: none;
}
.article-list-title {
  font-family: var(--font-title);
  font-size: 1.1875rem;
  line-height: 1.35;
}
.article-list-description {
  color: var(--muted-foreground);
  line-height: 1.5;
}
.article-list a:hover .article-list-title {
  text-decoration: underline;
  text-decoration-color: var(--ink-soft);
}

/* After the article */
.related {
  margin-top: 3.5rem;
}
.related h2 {
  margin: 0 0 0.75rem;
  color: var(--muted-foreground);
  font-size: var(--type-meta);
  font-weight: 500;
}
.related .tick-list a {
  font-family: var(--font-title);
  font-size: 1rem;
}
.still-stuck {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1.5px dashed var(--ink-faint);
  color: var(--muted-foreground);
  line-height: 1.6;
}
.still-stuck p {
  margin: 0;
}
.still-stuck strong {
  color: var(--foreground);
  font-weight: 500;
}
.pager {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 2.5rem;
  font-size: var(--type-ui);
}
.pager a {
  color: var(--muted-foreground);
  text-decoration: none;
}
.pager a:hover {
  color: var(--foreground);
}
.pager a[rel="next"] {
  margin-left: auto;
  text-align: right;
}
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.on-this-page {
  position: sticky;
  top: 3.75rem;
  padding: 2.5rem var(--gutter) 2rem 1.5rem;
  font-size: var(--type-meta);
}
.on-this-page p {
  margin: 0 0 0.625rem;
  color: var(--muted-foreground);
  font-weight: 500;
}
.on-this-page ul {
  margin: 0;
  padding: 0;
  list-style: none;
  border-left: 1px solid var(--border);
}
.on-this-page a {
  position: relative;
  display: block;
  padding: 0.3125rem 0 0.3125rem 0.875rem;
  color: var(--muted-foreground);
  line-height: 1.4;
  text-decoration: none;
}
.on-this-page a:hover {
  color: var(--foreground);
}
.on-this-page a[aria-current="true"] {
  color: var(--foreground);
}
.on-this-page a[aria-current="true"]::before {
  content: "";
  position: absolute;
  left: -1px;
  top: 0.375rem;
  bottom: 0.375rem;
  width: 2px;
  background: var(--highlight);
}

/* The floating pill, like the product's bottom bar. */
.floating-bar {
  position: fixed;
  z-index: 15;
  bottom: max(1.25rem, env(safe-area-inset-bottom));
  left: 50%;
  translate: -50% 0;
  display: flex;
  align-items: center;
  gap: 0.25rem;
  max-width: calc(100vw - 2rem);
  height: 2.5rem;
  padding: 0 0.3125rem 0 1rem;
  border-radius: 999px;
  background: var(--card);
  box-shadow: var(--shadow-float);
  font-size: var(--type-meta);
  opacity: 0;
  translate: -50% 0.75rem;
  pointer-events: none;
  transition: opacity 250ms var(--ease-swift), translate 250ms var(--ease-swift);
}
.floating-bar[data-visible] {
  opacity: 1;
  translate: -50% 0;
  pointer-events: auto;
}
.floating-title {
  overflow: hidden;
  max-width: 16rem;
  color: var(--muted-foreground);
  text-overflow: ellipsis;
  white-space: nowrap;
}
.floating-separator {
  width: 1px;
  height: 1rem;
  margin: 0 0.375rem;
  background: var(--border);
}
.floating-bar button,
.floating-bar a {
  display: inline-flex;
  align-items: center;
  height: 1.875rem;
  padding: 0 0.75rem;
  border: 0;
  border-radius: 999px;
  background: transparent;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  transition: background 200ms var(--ease-swift);
}
.floating-bar button:hover,
.floating-bar a:hover {
  background: var(--accent);
}

/* Footer */
.site-footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  padding: 4rem var(--gutter) 5.5rem;
}
.home .site-footer {
  padding-bottom: 3rem;
}
.footer-logo img {
  display: block;
  width: 4.5rem;
  height: auto;
}
.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 1.25rem;
  color: var(--muted-foreground);
  font-size: var(--type-meta);
}
.site-footer a {
  text-decoration: none;
}
.site-footer nav a:hover {
  color: var(--foreground);
  text-decoration: underline;
}

/* Search */
.search-dialog {
  width: min(100% - 2rem, 38rem);
  max-height: min(34rem, 80svh);
  margin: 12svh auto auto;
  padding: 0;
  border: 0;
  border-radius: var(--radius-dialog);
  background: var(--card);
  color: var(--foreground);
  box-shadow: var(--shadow-dialog);
  overflow: hidden;
}
.search-dialog::backdrop {
  background: rgb(20 20 18 / 24%);
  backdrop-filter: blur(2px);
}
.search-dialog[open] {
  animation: rise 200ms var(--ease-swift);
}
@keyframes rise {
  from {
    opacity: 0;
    translate: 0 0.5rem;
  }
}
.search-panel {
  display: flex;
  flex-direction: column;
  max-height: inherit;
}
.search-field {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0 1rem;
  border-bottom: 1px solid var(--border);
  color: var(--muted-foreground);
}
.search-field input {
  flex: 1;
  min-width: 0;
  height: 3.25rem;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--foreground);
  font-size: 1rem;
}
.search-field input:focus-visible {
  box-shadow: none;
}
.search-field input::-webkit-search-cancel-button {
  display: none;
}
.search-results {
  overflow-y: auto;
  padding: 0.375rem;
}
.search-results:empty {
  display: none;
}
.search-result {
  display: grid;
  gap: 0.125rem;
  padding: 0.625rem 0.75rem;
  border-radius: 0.75rem;
  text-decoration: none;
  line-height: 1.45;
}
.search-result[aria-selected="true"] {
  background: var(--accent);
}
.search-result-title {
  font-weight: 500;
}
.search-result-section {
  color: var(--muted-foreground);
  font-weight: 400;
}
.search-result-topic {
  color: var(--muted-foreground);
  font-size: 0.75rem;
}
.search-result-snippet {
  color: var(--muted-foreground);
  font-size: var(--type-meta);
}
.search-result mark {
  background: var(--highlight-wash);
  color: var(--foreground);
  border-radius: 0.125rem;
}
.search-empty {
  padding: 1rem 0.75rem;
  color: var(--muted-foreground);
  line-height: 1.5;
}
.search-empty a {
  color: var(--foreground);
}

/* Narrower screens: drop "On this page", then fold the contents over the page. */
@media (max-width: 78rem) {
  .layout,
  .layout[data-has-toc="true"] {
    grid-template-columns: var(--side) minmax(0, 1fr);
  }
  .reading {
    padding-right: var(--gutter);
  }
  .on-this-page {
    display: none;
  }
}
@media (max-width: 52rem) {
  .layout,
  .layout[data-has-toc="true"] {
    grid-template-columns: minmax(0, 1fr);
  }
  .reading {
    padding: 1.75rem var(--gutter) 7rem;
  }
  .contents-toggle {
    display: inline-grid;
  }
  .ruler {
    position: fixed;
    z-index: 30;
    top: 3.75rem;
    left: 0;
    bottom: 0;
    width: min(20rem, 85vw);
    max-height: none;
    background-color: var(--background);
    box-shadow: var(--shadow-dialog);
    translate: -105% 0;
    transition: translate 300ms var(--ease-swift);
  }
  body[data-contents-open] .ruler {
    translate: 0 0;
  }
  body[data-contents-open]::after {
    content: "";
    position: fixed;
    z-index: 25;
    inset: 3.75rem 0 0;
    background: rgb(20 20 18 / 18%);
  }
  .search-trigger {
    min-width: 0;
    width: 2rem;
    padding: 0;
    justify-content: center;
    box-shadow: none;
    background: transparent;
  }
  .search-trigger-label,
  .search-trigger-kbd {
    display: none;
  }
  .heading-anchor {
    display: none;
  }
}
@media (max-width: 34rem) {
  :root {
    --gutter: 1rem;
  }
  .slip-body,
  .slip-stub {
    padding-inline: 1.5rem;
  }
  .hero-main {
    padding: 5rem var(--gutter) 3rem;
    min-height: auto;
  }
  .new-here {
    flex-direction: column;
    align-items: flex-start;
  }
  .floating-title,
  .floating-separator {
    display: none;
  }
  .floating-bar {
    padding-left: 0.3125rem;
  }
  .brand-divider,
  .brand-label {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}

@media print {
  .topbar,
  .ruler,
  .on-this-page,
  .floating-bar,
  .site-footer,
  .pager,
  .still-stuck {
    display: none;
  }
  .layout {
    display: block;
  }
}
