/*
 * apps-support.tringify.com and themes-support.tringify.com.
 * The Help Center's look: a grey frame with the header on it, and the page
 * on a raised panel with soft corners. Light and dark follow the visitor's
 * colour scheme, or their choice from the header toggle (data-theme on
 * <html>, set by site.js). Monochrome; no focus rings, no grey hover fills.
 */

:root {
  color-scheme: light dark;
  /* Light (default). Values match the Help Center's --help-* tokens. */
  --frame: hsl(0 0% 94.5%);
  --panel: hsl(0 0% 100%);
  --popover: hsl(0 0% 100%);
  --fg: hsl(0 0% 9%);
  --fg-soft: hsl(0 0% 22%);
  --fg-muted: hsl(0 0% 40%);
  --line: hsl(0 0% 89%);
  --line-strong: hsl(0 0% 80%);
  --tint: hsl(0 0% 96%);
  --active: hsl(0 0% 93%);
  --header: hsl(0 0% 94.5% / 0.82);
  --mark: hsl(48 96% 64% / 0.55);
  --warn-bg: hsl(43 96% 95%);
  --warn-border: hsl(38 92% 58%);
  --panel-shadow: 0 1px 2px rgb(0 0 0 / 0.04), 0 8px 24px -12px rgb(0 0 0 / 0.1);
  --radius-panel: 18px;
  --radius: 12px;
  --radius-sm: 8px;
  --measure: 72ch;
  --font-sans:
    ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI Variable", "Segoe UI",
    Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --font-mono:
    ui-monospace, SFMono-Regular, "SF Mono", Menlo, Monaco, Consolas, "Liberation Mono", monospace;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --frame: hsl(240 3% 6%);
    --panel: hsl(240 3% 9.5%);
    --popover: hsl(240 3% 12%);
    --fg: hsl(0 0% 96%);
    --fg-soft: hsl(0 0% 82%);
    --fg-muted: hsl(240 3% 64%);
    --line: hsl(240 3% 16%);
    --line-strong: hsl(240 3% 26%);
    --tint: hsl(240 3% 13%);
    --active: hsl(240 3% 15%);
    --header: hsl(240 3% 6% / 0.8);
    --mark: hsl(45 90% 50% / 0.32);
    --warn-bg: hsl(38 55% 10%);
    --warn-border: hsl(38 75% 42%);
    --panel-shadow: 0 0 0 1px hsl(240 3% 14%);
  }
}

:root[data-theme="dark"] {
  --frame: hsl(240 3% 6%);
  --panel: hsl(240 3% 9.5%);
  --popover: hsl(240 3% 12%);
  --fg: hsl(0 0% 96%);
  --fg-soft: hsl(0 0% 82%);
  --fg-muted: hsl(240 3% 64%);
  --line: hsl(240 3% 16%);
  --line-strong: hsl(240 3% 26%);
  --tint: hsl(240 3% 13%);
  --active: hsl(240 3% 15%);
  --header: hsl(240 3% 6% / 0.8);
  --mark: hsl(45 90% 50% / 0.32);
  --warn-bg: hsl(38 55% 10%);
  --warn-border: hsl(38 75% 42%);
  --panel-shadow: 0 0 0 1px hsl(240 3% 14%);
  color-scheme: dark;
}

:root[data-theme="light"] {
  color-scheme: light;
}

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

html {
  background: var(--frame);
  color: var(--fg);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.7;
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  scroll-padding-top: 5.5rem;
  scrollbar-width: none;
}

html::-webkit-scrollbar,
.docs-nav::-webkit-scrollbar,
.toc::-webkit-scrollbar,
.prose pre::-webkit-scrollbar,
.table-scroll::-webkit-scrollbar {
  display: none;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--frame);
}

a {
  color: inherit;
  text-decoration: none;
}

/* No focus rings (Tringify standard): keyboard focus shows as an
   underline on links and a stronger border on fields and buttons. */
:focus,
:focus-visible {
  outline: none;
}
a:focus-visible {
  text-decoration: underline;
  text-underline-offset: 3px;
}

::selection {
  background: var(--mark);
}

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

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 50;
  padding: 0.5rem 0.875rem;
  border-radius: 999px;
  background: var(--fg);
  color: var(--panel);
  font-size: 0.875rem;
  font-weight: 500;
}
.skip:focus {
  top: 0.75rem;
}

.icon {
  width: 1rem;
  height: 1rem;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---------- Header (on the frame) ---------- */

.top {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--header);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  backdrop-filter: saturate(180%) blur(14px);
}

.top-inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  max-width: 88rem;
  margin: 0 auto;
  padding: 0.75rem 1.5rem;
  min-height: 4rem;
}

.top-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 0;
}

.app-icon {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 28px;
  height: 28px;
  overflow: hidden;
  border-radius: 8px;
  background: var(--tint);
  box-shadow: inset 0 0 0 1px var(--line);
}
.app-icon img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.app-icon-letter {
  color: var(--fg);
  font-size: 0.8125rem;
  font-weight: 650;
}

.brand {
  font-weight: 650;
  font-size: 1rem;
  letter-spacing: -0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.by {
  color: var(--fg-muted);
  font-size: 0.875rem;
  white-space: nowrap;
}
@media (max-width: 420px) {
  .by {
    display: none;
  }
}

.top-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex: none;
}

.top-link {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.4375rem 0.875rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--panel);
  font-size: 0.8125rem;
  font-weight: 500;
  white-space: nowrap;
  transition: border-color 0.15s ease;
}
.top-link:hover,
.top-link:focus-visible {
  border-color: var(--line-strong);
  text-decoration: none;
}

.theme-toggle {
  display: inline-grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--panel);
  color: var(--fg);
  cursor: pointer;
  transition: border-color 0.15s ease;
}
.theme-toggle[hidden] {
  display: none;
}
.theme-toggle:hover,
.theme-toggle:focus-visible {
  border-color: var(--line-strong);
}
.theme-toggle .icon-moon {
  display: none;
}
:root[data-theme="dark"] .theme-toggle .icon-sun {
  display: none;
}
:root[data-theme="dark"] .theme-toggle .icon-moon {
  display: block;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .icon-sun {
    display: none;
  }
  :root:not([data-theme="light"]) .theme-toggle .icon-moon {
    display: block;
  }
}

/* ---------- Search (header) ---------- */

.search {
  position: relative;
  flex: 1 1 22rem;
  max-width: 28rem;
  margin-left: auto;
}

.search-icon {
  position: absolute;
  left: 0.875rem;
  top: 50%;
  width: 1rem;
  height: 1rem;
  transform: translateY(-50%);
  fill: none;
  stroke: var(--fg-muted);
  stroke-width: 2;
  stroke-linecap: round;
  pointer-events: none;
}

.search input {
  width: 100%;
  height: 2.5rem;
  padding: 0 2.5rem 0 2.5rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--panel);
  color: var(--fg);
  font: inherit;
  font-size: 0.875rem;
  transition: border-color 0.15s ease;
  -webkit-appearance: none;
  appearance: none;
}
.search input::placeholder {
  color: var(--fg-muted);
}
.search input:hover {
  border-color: var(--line-strong);
}
.search input:focus {
  border-color: var(--fg-muted);
}
.search input::-webkit-search-cancel-button {
  -webkit-appearance: none;
}

.search kbd {
  position: absolute;
  right: 0.625rem;
  top: 50%;
  transform: translateY(-50%);
  min-width: 1.375rem;
  padding: 0.0625rem 0.375rem;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--tint);
  color: var(--fg-muted);
  font: 500 0.75rem/1.4 var(--font-sans);
  text-align: center;
  pointer-events: none;
}
.search kbd[hidden],
.search input:focus ~ kbd {
  display: none;
}

/* ---------- Frame and panel ---------- */

.frame {
  flex: 1;
  width: 100%;
  max-width: 88rem;
  margin: 0 auto;
  padding: 0.5rem 1.5rem 2rem;
}

.panel {
  max-width: 52rem;
  margin: 0 auto;
  padding: 3rem 3.5rem 3.5rem;
  border-radius: var(--radius-panel);
  background: var(--panel);
  box-shadow: var(--panel-shadow);
}

.panel-wide {
  max-width: none;
  padding: 2.5rem 2.5rem 3rem;
}

.foot {
  padding: 0 1.5rem 2.5rem;
  text-align: center;
}
.foot p {
  margin: 0;
  color: var(--fg-muted);
  font-size: 0.8125rem;
}

/* ---------- Type ---------- */

h1 {
  margin: 0 0 0.75rem;
  font-size: 2.125rem;
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -0.025em;
}

h2 {
  margin: 2.5rem 0 0.75rem;
  font-size: 1.25rem;
  line-height: 1.3;
  font-weight: 650;
  letter-spacing: -0.015em;
}

.lead {
  margin: 0 0 1.75rem;
  max-width: var(--measure);
  color: var(--fg-soft);
  font-size: 1.125rem;
  line-height: 1.6;
}

.muted {
  color: var(--fg-muted);
}

.intro {
  max-width: var(--measure);
}

.button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 1.125rem;
  border-radius: 999px;
  background: var(--fg);
  color: var(--panel);
  font-weight: 500;
  font-size: 0.9375rem;
  transition: opacity 0.15s ease;
}
.button::after {
  content: "→";
}
.button:hover,
.button:focus-visible {
  opacity: 0.85;
  text-decoration: none;
}

/* ---------- Breadcrumbs ---------- */

.crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.375rem;
  margin: 0 0 0.875rem;
  color: var(--fg-muted);
  font-size: 0.8125rem;
  line-height: 1.4;
}
.crumbs a {
  transition: color 0.15s ease;
}
.crumbs a:hover {
  color: var(--fg);
}
.crumbs .sep {
  opacity: 0.6;
}
.crumbs [aria-current="page"] {
  color: var(--fg-soft);
}

/* ---------- Hub ---------- */

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr));
  gap: 0.75rem;
  margin: 0 0 2rem;
  padding: 0;
  list-style: none;
}
.cards a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 1.125rem 1.25rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  font-weight: 550;
  transition:
    border-color 0.15s ease,
    transform 0.15s ease;
}
.cards a::after {
  content: "→";
  color: var(--fg-muted);
  transition: transform 0.15s ease;
}
.cards a:hover,
.cards a:focus-visible {
  border-color: var(--line-strong);
  text-decoration: none;
}
.cards a:hover::after {
  transform: translateX(2px);
  color: var(--fg);
}

.links {
  margin: 0;
  padding: 0;
  list-style: none;
}
.links li + li {
  margin-top: 0.375rem;
}
.links a {
  text-decoration: underline;
  text-decoration-color: var(--line-strong);
  text-underline-offset: 3px;
  transition: text-decoration-color 0.15s ease;
}
.links a:hover {
  text-decoration-color: var(--fg);
}

/* ---------- Documents ---------- */

.doc {
  min-width: 0;
}

.doc-head {
  margin: 0 0 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--line);
}
.doc-head h1 {
  margin: 0;
}

.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1rem 0 0;
}

.chip {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  background: var(--tint);
  color: var(--fg-soft);
  font-size: 0.8125rem;
  line-height: 1.5;
}
.chip-link {
  border: 1px solid var(--line);
  background: transparent;
  transition: border-color 0.15s ease;
}
.chip-link::after {
  content: "→";
  margin-left: 0.375rem;
}
.chip-link:hover,
.chip-link:focus-visible {
  border-color: var(--line-strong);
  text-decoration: none;
}

.banner {
  margin: 0 0 1.75rem;
  padding: 0.875rem 1.125rem;
  border-radius: var(--radius);
  background: var(--warn-bg);
  box-shadow: inset 3px 0 0 var(--warn-border);
}
.banner p {
  margin: 0;
  font-size: 0.9375rem;
}
.banner a {
  font-weight: 550;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.badge {
  display: inline-flex;
  margin-left: 0.5rem;
  padding: 0.0625rem 0.5rem;
  border-radius: 999px;
  background: var(--fg);
  color: var(--panel);
  font-size: 0.75rem;
  font-weight: 550;
  vertical-align: 0.125rem;
}

.versions {
  margin: 0 0 1.5rem;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}
.versions li {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.5rem 0.75rem;
  padding: 0.875rem 0;
  border-bottom: 1px solid var(--line);
}
.versions a {
  font-weight: 550;
}
.versions a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.versions .muted {
  margin-left: auto;
  font-size: 0.875rem;
}

/* ---------- Prose (the developer's sanitized HTML) ---------- */

.prose {
  max-width: var(--measure);
  color: var(--fg-soft);
  font-size: 1rem;
  line-height: 1.7;
  overflow-wrap: break-word;
}
.prose > :first-child {
  margin-top: 0;
}
.prose strong,
.prose b {
  color: var(--fg);
  font-weight: 600;
}
.prose h1,
.prose h2,
.prose h3,
.prose h4,
.prose h5,
.prose h6 {
  color: var(--fg);
  font-weight: 650;
  letter-spacing: -0.015em;
  line-height: 1.3;
  scroll-margin-top: 5.5rem;
}
.prose h1 {
  margin: 2.5rem 0 1rem;
  font-size: 1.625rem;
}
.prose h2 {
  margin: 2.75rem 0 0.875rem;
  padding-top: 0.25rem;
  font-size: 1.375rem;
}
.prose h3 {
  margin: 2rem 0 0.625rem;
  font-size: 1.125rem;
}
.prose h4,
.prose h5,
.prose h6 {
  margin: 1.5rem 0 0.5rem;
  font-size: 1rem;
}
.prose p,
.prose ul,
.prose ol,
.prose blockquote,
.prose pre,
.prose table {
  margin: 0 0 1.125rem;
}
.prose ul,
.prose ol {
  padding-left: 1.375rem;
}
.prose li + li {
  margin-top: 0.375rem;
}
.prose li::marker {
  color: var(--fg-muted);
}
.prose a {
  color: var(--fg);
  font-weight: 500;
  text-decoration: underline;
  text-decoration-color: var(--line-strong);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: text-decoration-color 0.15s ease;
}
.prose a:hover,
.prose a:focus-visible {
  text-decoration-color: var(--fg);
}
.prose blockquote {
  margin-left: 0;
  margin-right: 0;
  padding: 0.875rem 1.125rem;
  border-radius: var(--radius);
  background: var(--tint);
  color: var(--fg-soft);
}
.prose blockquote > :last-child {
  margin-bottom: 0;
}
.prose code {
  padding: 0.125rem 0.375rem;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--tint);
  color: var(--fg);
  font-family: var(--font-mono);
  font-size: 0.85em;
}
.prose pre {
  overflow-x: auto;
  padding: 1rem 1.125rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--tint);
  font-size: 0.875rem;
  line-height: 1.6;
  scrollbar-width: none;
}
.prose pre code {
  padding: 0;
  border: 0;
  background: none;
  font-size: inherit;
}
.prose img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius);
}
.prose hr {
  margin: 2.25rem 0;
  border: 0;
  border-top: 1px solid var(--line);
}
.prose table {
  display: table;
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: 0.9375rem;
  scrollbar-width: none;
}
.prose th,
.prose td {
  padding: 0.625rem 0.875rem;
  text-align: left;
  vertical-align: top;
}
.prose td {
  border-top: 1px solid var(--line);
}
.prose th {
  background: var(--tint);
  color: var(--fg);
  font-weight: 600;
  font-size: 0.8125rem;
}

/* ---------- Docs layout: sidebar, text, "On this page" ---------- */

.docs {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.5rem;
}

@media (min-width: 960px) {
  .docs {
    grid-template-columns: 15rem minmax(0, 1fr);
    gap: 3rem;
  }
}

@media (min-width: 1280px) {
  .docs {
    grid-template-columns: 15rem minmax(0, var(--measure)) 13rem;
    justify-content: space-between;
  }
}

.nav-label {
  margin: 0 0 0.625rem;
  color: var(--fg-muted);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.docs-nav {
  display: none;
}

@media (min-width: 960px) {
  .docs-nav {
    display: block;
    position: sticky;
    top: 5.5rem;
    align-self: start;
    max-height: calc(100vh - 7rem);
    overflow-y: auto;
    scrollbar-width: none;
  }
}

.docs-nav ol,
.docs-menu ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

.docs-nav a,
.docs-menu a {
  display: block;
  padding: 0.4375rem 0.75rem;
  border-radius: 10px;
  color: var(--fg-muted);
  font-size: 0.9375rem;
  line-height: 1.4;
  transition: color 0.15s ease;
}
.docs-nav a:hover,
.docs-menu a:hover {
  color: var(--fg);
}
.docs-nav a[aria-current="page"],
.docs-menu a[aria-current="page"] {
  background: var(--active);
  color: var(--fg);
  font-weight: 550;
}

/* Temporary read marks (site.js): a quiet box in each link's padding, a
   count beside the heading and a clear link under the list. */
.has-read-marks li {
  position: relative;
}
.has-read-marks li > a {
  padding-left: 2.125rem;
}
.read-mark {
  appearance: none;
  -webkit-appearance: none;
  position: absolute;
  top: 0.6875rem;
  left: 0.75rem;
  width: 13px;
  height: 13px;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: transparent;
  cursor: pointer;
  outline: none;
  z-index: 1;
}
.read-mark:hover {
  border-color: var(--fg-muted);
}
.read-mark:checked {
  border-color: var(--fg-muted);
  background: var(--fg-muted)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 8.5l3 3 6-7' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")
    center / 11px no-repeat;
}
.is-read > a:not([aria-current="page"]) {
  opacity: 0.6;
}
.has-read-marks .nav-label {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
}
.read-count {
  white-space: nowrap;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
}
.read-clear {
  margin: 0.75rem 0 0 0.75rem;
  padding: 0;
  border: 0;
  background: none;
  color: var(--fg-muted);
  font: inherit;
  font-size: 0.75rem;
  cursor: pointer;
  outline: none;
}
.read-clear:hover {
  color: var(--fg);
}

/* Phones and tablets: the pages open as a sheet under the header. */
.docs-menu {
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.docs-menu summary {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  cursor: pointer;
  list-style: none;
  font-size: 0.9375rem;
  font-weight: 550;
}
.docs-menu summary::-webkit-details-marker {
  display: none;
}
.docs-menu summary::after {
  content: "";
  width: 0.5rem;
  height: 0.5rem;
  margin-left: auto;
  border-right: 1.5px solid var(--fg-muted);
  border-bottom: 1.5px solid var(--fg-muted);
  transform: rotate(45deg) translateY(-2px);
  transition: transform 0.15s ease;
}
.docs-menu[open] summary::after {
  transform: rotate(225deg) translateY(-1px);
}
.docs-menu-current {
  min-width: 0;
  overflow: hidden;
  color: var(--fg-muted);
  font-weight: 400;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.docs-menu ol {
  padding: 0 0.5rem 0.625rem;
}

@media (min-width: 960px) {
  .docs-menu {
    display: none;
  }
}

.toc {
  display: none;
}

@media (min-width: 1280px) {
  .toc {
    display: block;
    position: sticky;
    top: 5.5rem;
    align-self: start;
    max-height: calc(100vh - 7rem);
    overflow-y: auto;
    scrollbar-width: none;
  }
}

.toc ol {
  margin: 0;
  padding: 0 0 0 0.875rem;
  list-style: none;
  border-left: 1px solid var(--line);
}
.toc li + li {
  margin-top: 0.25rem;
}
.toc a {
  display: block;
  padding: 0.1875rem 0;
  color: var(--fg-muted);
  font-size: 0.8125rem;
  line-height: 1.45;
  transition: color 0.15s ease;
}
.toc a:hover {
  color: var(--fg);
}
.toc .toc-3 {
  padding-left: 0.75rem;
}

/* ---------- Search results ---------- */

.results {
  margin: 0;
  padding: 0;
  list-style: none;
}
.results li {
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
}
.results li:first-child {
  padding-top: 0;
}
.results a {
  font-weight: 600;
  font-size: 1.0625rem;
}
.results a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.results p {
  margin: 0.375rem 0 0;
  color: var(--fg-muted);
  font-size: 0.9375rem;
}

mark {
  padding: 0 0.125rem;
  border-radius: 3px;
  background: var(--mark);
  color: inherit;
}

/* ---------- Previous / next ---------- */

.pager {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  max-width: var(--measure);
  margin: 3rem 0 0;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
}
.pager a {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 1rem 1.25rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-weight: 550;
  line-height: 1.4;
  transition: border-color 0.15s ease;
}
.pager a:hover,
.pager a:focus-visible {
  border-color: var(--line-strong);
  text-decoration: none;
}
.pager a span {
  color: var(--fg-muted);
  font-size: 0.8125rem;
  font-weight: 400;
}
.pager .prev span::before {
  content: "← ";
}
.pager .next {
  grid-column: 2;
  text-align: right;
}
.pager .next span::after {
  content: " →";
}

/* ---------- Small screens ---------- */

@media (max-width: 720px) {
  .top-inner {
    flex-wrap: wrap;
    gap: 0.625rem;
    padding: 0.625rem 1rem;
  }
  .search {
    order: 3;
    flex-basis: 100%;
    max-width: none;
    margin-left: 0;
  }
  .search kbd {
    display: none;
  }
  .top-link {
    display: none;
  }
  .frame {
    padding: 0.25rem 0.5rem 1.5rem;
  }
  .panel,
  .panel-wide {
    padding: 1.75rem 1.25rem 2.25rem;
    border-radius: 16px;
  }
  h1 {
    font-size: 1.75rem;
  }
  .pager {
    grid-template-columns: 1fr;
  }
  .prose table {
    display: block;
    overflow-x: auto;
  }
  .pager .next {
    grid-column: 1;
  }
  .versions .muted {
    margin-left: 0;
    width: 100%;
  }
}

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