/* The user manual at /manual: the application's tokens, type and Day/Dusk themes, arranged for reading.
 * Contents on the left, one article card with a comfortable measure, an on-page contents list for long
 * articles, and nothing decorative. Colors and sizes come from tokens.css under the interface theme in
 * theme.css; print forces Day. */

* {
  box-sizing: border-box;
}

html {
  font-size: 100%;
  scroll-padding-top: calc(var(--topbar-height, var(--lm-layout-topbar)) + 1rem);  /* manual.js measures the top bar */
  scrollbar-gutter: stable;
  scrollbar-color: var(--lm-color-border-strong) var(--lm-color-bg-canvas);
}

body {
  margin: 0;
  background: var(--lm-color-bg-canvas);
  color: var(--lm-color-fg-default);
  font: var(--lm-ui-weight) var(--lm-font-size-sm) / var(--lm-density-ui-leading) var(--lm-font-family-ui);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: var(--lm-color-fg-accent);
  text-underline-offset: 0.18em;
  text-decoration-thickness: 1px;
}

a:hover {
  color: var(--lm-color-fg-accent-hover);
  text-decoration-thickness: 2px;
}

:is(a, button, input, [tabindex]):focus-visible {
  outline: var(--lm-focus-width) solid var(--lm-color-focus-ring);
  outline-offset: var(--lm-focus-offset);
  border-radius: var(--lm-radius-xs);
}

::selection {
  background: var(--lm-color-selection-bg);
  color: var(--lm-color-selection-fg);
}

[hidden] {
  display: none !important;
}

.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-link {
  position: fixed;
  left: 1rem;
  top: 0;
  z-index: var(--lm-z-skiplink);
  transform: translateY(-150%);
  padding: 0.5rem 1rem;
  border-radius: var(--lm-radius-control);
  background: var(--lm-color-bg-raised);
  color: var(--lm-color-fg-default);
  font-weight: 600;
}

.skip-link:focus {
  transform: translateY(0.5rem);
  box-shadow: var(--lm-shadow-popover);
}

/* ---------- Top bar ---------- */

.topbar {
  position: sticky;
  top: 0;
  z-index: var(--lm-z-topbar);
  background: color-mix(in oklab, var(--lm-color-bg-surface) 94%, transparent);
  border-bottom: 1px solid var(--lm-color-border-default);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.topbar-inner {
  max-width: 90rem;
  min-height: var(--lm-layout-topbar);
  margin-inline: auto;
  padding: 0.5rem var(--lm-layout-frame-gutter);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1rem;
}

.app-name {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  flex-shrink: 0;
  border-radius: var(--lm-radius-sm);
  color: var(--lm-color-fg-default);
  text-decoration: none;
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1;
  white-space: nowrap;
}

.app-name:hover {
  color: var(--lm-color-fg-default);
}

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: 0.5rem;
  background: var(--ui-mark-bg);
  color: var(--ui-mark-fg);
}

.brand-mark svg {
  width: 1.375rem;
  height: 1.375rem;
  fill: currentColor;
}

.brand-mark .trend {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.3;
  stroke-linecap: round;
  stroke-dasharray: 0.5 2.5;
  opacity: 0.55;
}

.app-name .brand-sub {
  color: var(--lm-color-fg-muted);
  font-weight: 400;
}

.manual-label {
  padding: 0.25rem 0.625rem;
  border-radius: var(--lm-radius-control);
  background: var(--lm-color-bg-accent-subtle);
  color: var(--lm-color-fg-accent);
  font-size: var(--lm-font-size-xs);
  font-weight: 600;
  letter-spacing: 0;
}

.menu-button,
.theme-button,
.app-links a,
.search-page-row button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: var(--lm-density-control-height);
  padding: 0 0.875rem;
  border: 0;
  border-radius: var(--lm-radius-control);
  background: transparent;
  color: var(--lm-color-fg-body);
  font: 500 var(--lm-font-size-sm) / 1 var(--lm-font-family-ui);
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
}

.menu-button:hover,
.theme-button:hover,
.app-links a:hover {
  background: var(--lm-color-bg-hover);
  color: var(--lm-color-fg-default);
}

.menu-button[aria-expanded="true"] {
  background: var(--lm-color-bg-selected);
  color: var(--lm-color-fg-default);
  font-weight: 600;
}

.menu-icon,
.menu-icon::before,
.menu-icon::after {
  display: block;
  width: 1rem;
  height: 1.5px;
  background: currentColor;
  border-radius: 1px;
}

.menu-icon {
  position: relative;
}

.menu-icon::before,
.menu-icon::after {
  content: "";
  position: absolute;
  left: 0;
}

.menu-icon::before {
  top: -5px;
}

.menu-icon::after {
  top: 5px;
}

.app-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  margin-left: auto;
}

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

.manual-search {
  position: relative;
  flex: 1 1 18rem;
  max-width: 30rem;
}

.manual-search input,
.search-page-row input {
  width: 100%;
  min-height: var(--lm-density-control-height);
  padding: 0 1rem;
  border: 1px solid var(--lm-color-border-strong);
  border-radius: var(--lm-radius-control);
  background: var(--lm-color-bg-surface);
  color: var(--lm-color-fg-default);
  font: 400 var(--lm-font-size-sm) / 1.2 var(--lm-font-family-ui);
  caret-color: var(--lm-color-fg-accent);
}

.manual-search input::placeholder {
  color: var(--lm-color-fg-muted);
}

.search-results {
  position: absolute;
  top: calc(100% + 0.375rem);
  left: 0;
  right: 0;
  z-index: var(--lm-z-popover);
  min-width: min(28rem, calc(100vw - 2rem));
  max-height: min(34rem, 70vh);
  overflow: auto;
  overscroll-behavior: contain;
  padding: 0.375rem;
  border-radius: var(--lm-radius-md);
  background: var(--lm-color-bg-raised);
  box-shadow: var(--lm-shadow-popover);
}

.search-option {
  display: grid;
  gap: 0.125rem;
  padding: 0.625rem 0.75rem;
  border-radius: var(--lm-radius-sm);
  color: var(--lm-color-fg-body);
  text-decoration: none;
}

.search-option:hover,
.search-option[aria-selected="true"] {
  background: var(--lm-color-bg-selected);
  color: var(--lm-color-fg-default);
}

.search-option[aria-selected="true"] {
  box-shadow: inset 3px 0 0 var(--lm-color-border-accent);
}

.search-option-title {
  color: var(--lm-color-fg-default);
  font-weight: 600;
}

.search-option-section {
  margin: 0;
  color: var(--lm-color-fg-muted);
  font-size: var(--lm-font-size-2xs);
  font-weight: 500;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.search-option-text {
  font-size: var(--lm-font-size-xs);
  line-height: 1.45;
}

.search-empty {
  margin: 0;
  padding: 0.75rem;
  color: var(--lm-color-fg-muted);
}

.search-all {
  display: block;
  padding: 0.625rem 0.75rem;
  border-top: 1px solid var(--lm-color-border-default);
  margin-top: 0.25rem;
  font-weight: 600;
}

mark {
  padding: 0 0.1em;
  border-radius: 0.2em;
  background: var(--lm-color-bg-highlight);
  color: var(--lm-color-fg-on-highlight);
}

/* ---------- Layout ---------- */

.manual-layout {
  max-width: 90rem;
  margin-inline: auto;
  padding: 1.5rem var(--lm-layout-frame-gutter) 3rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.5rem;
}

.article-column {
  min-width: 0;
}

.article-column:focus {
  outline: none;
}

@media (min-width: 64rem) {
  .manual-layout {
    grid-template-columns: 16.5rem minmax(0, 1fr);
    gap: 2rem;
  }

  .manual-nav {
    position: sticky;
    top: calc(var(--lm-layout-topbar) + 1rem);
    align-self: start;
    max-height: calc(100dvh - var(--lm-layout-topbar) - 2rem);
    overflow-y: auto;
    overscroll-behavior: contain;
  }

  .menu-button {
    display: none !important;
  }
}

/* Small screens: the contents list opens from the Contents button (it stays in the page without scripts). */
@media (max-width: 63.99rem) {
  .js .manual-nav {
    display: none;
  }

  .js.nav-open .manual-nav {
    display: block;
    position: fixed;
    inset: var(--nav-top, 3.5rem) 0 0 0;
    z-index: var(--lm-z-popover);
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 1rem var(--lm-layout-frame-gutter) 2rem;
    background: var(--lm-color-bg-canvas);
    border-top: 1px solid var(--lm-color-border-default);
  }

  .js.nav-open body {
    overflow: hidden;
  }

  .js.nav-open .manual-nav a {
    display: flex;
    align-items: center;
    min-height: 2.5rem;
  }

  .js .topbar-inner:has(.menu-button) {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas: "brand menu" "search search";
  }

  .js .topbar-inner:has(.menu-button) .app-name {
    grid-area: brand;
  }

  .js .topbar-inner:has(.menu-button) .menu-button {
    grid-area: menu;
  }

  .js .topbar-inner:has(.menu-button) .manual-search {
    grid-area: search;
  }

  /* The drawer carries these links when the Contents button is available. */
  .js .topbar-inner:has(.menu-button) .app-links {
    display: none;
  }

  .manual-search {
    flex-basis: 100%;
    max-width: none;
  }

  .app-links a {
    padding-inline: 0.625rem;
  }

  /* Pages without a Contents button keep these links: let them wrap under the brand. */
  .app-links {
    flex-wrap: wrap;
    margin-left: 0;
  }
}

.nav-app-links {
  display: none;
}

@media (max-width: 63.99rem) {
  .js .nav-app-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 0 0 1.25rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--lm-color-border-default);
  }

  .js .nav-app-links a,
  .js .nav-app-links .theme-button {
    display: inline-flex;
    align-items: center;
    min-height: var(--lm-density-control-height);
    padding: 0 0.875rem;
    border-radius: var(--lm-radius-control);
    background: var(--lm-color-bg-surface);
    box-shadow: 0 0 0 1px var(--lm-color-border-default);
    font-weight: 600;
  }
}

@media (max-width: 30rem) {
  .brand-text {
    display: none;
  }
}

/* ---------- Contents ---------- */

.manual-nav {
  font-size: var(--lm-font-size-sm);
}

.nav-groups,
.nav-groups ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-group + .nav-group {
  margin-top: 1.25rem;
}

.nav-group-title {
  margin: 0 0 0.375rem;
  padding-inline: 0.75rem;
  color: var(--lm-color-fg-muted);
  font-size: var(--lm-font-size-2xs);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.manual-nav a {
  display: block;
  padding: 0.3125rem 0.75rem;
  border-radius: var(--lm-radius-sm);
  color: var(--lm-color-fg-body);
  line-height: 1.35;
  text-decoration: none;
}

.manual-nav a:hover {
  background: var(--lm-color-bg-hover);
  color: var(--lm-color-fg-default);
}

/* The current page is filled, heavier and marked with a bar, so it never relies on color alone. */
.manual-nav a[aria-current="page"] {
  background: var(--lm-color-bg-selected);
  box-shadow: inset 3px 0 0 var(--lm-color-border-accent);
  color: var(--lm-color-fg-default);
  font-weight: 600;
}

/* ---------- Breadcrumbs, article, pager ---------- */

.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  margin: 0 0 0.75rem;
  padding: 0;
  list-style: none;
  color: var(--lm-color-fg-muted);
  font-size: var(--lm-font-size-xs);
}

.breadcrumbs li + li::before {
  content: "›";
  margin-right: 0.25rem;
  color: var(--lm-color-fg-subtle);
}

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

.manual-article {
  padding: clamp(1.25rem, 3vw, 2.5rem) clamp(1rem, 3.5vw, 3rem) 2.5rem;
  border-radius: var(--lm-radius-card);
  background: var(--lm-color-bg-surface);
  box-shadow: var(--lm-shadow-card);
}

@media (min-width: 84rem) {
  .manual-article.has-toc {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 14rem;
    column-gap: 2.5rem;
  }

  .manual-article.has-toc .article-header {
    grid-column: 1 / -1;
  }

  .manual-article.has-toc .page-toc {
    grid-column: 2;
    grid-row: 2;
    position: sticky;
    top: calc(var(--lm-layout-topbar) + 1.5rem);
    align-self: start;
    max-height: calc(100dvh - var(--lm-layout-topbar) - 3rem);
    overflow-y: auto;
    margin: 0.5rem 0 0;
    padding: 0 0 0 1rem;
    border: 0;
    border-left: 1px solid var(--lm-color-border-default);
    background: none;
  }

  .manual-article.has-toc .article-body {
    grid-column: 1;
    grid-row: 2;
  }

  .page-toc summary {
    pointer-events: none;
  }

  .manual-article.has-toc .page-toc summary::before {
    display: none;
  }
}

.page-toc {
  margin: 0 0 1.5rem;
  padding: 0.875rem 1rem;
  border-radius: var(--lm-radius-md);
  background: var(--lm-color-bg-sunken);
  font-size: var(--lm-font-size-xs);
}

.page-toc summary {
  list-style: none;
  cursor: pointer;
}

.page-toc summary::-webkit-details-marker {
  display: none;
}

.page-toc summary::before {
  content: "";
  display: inline-block;
  width: 0.4rem;
  height: 0.4rem;
  margin: 0 0.5rem 0.15rem 0.1rem;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(-45deg);
}

.page-toc details[open] summary::before {
  transform: rotate(45deg);
}

.page-toc details[open] summary {
  margin-bottom: 0.5rem;
}

.toc-title {
  margin: 0;
  color: var(--lm-color-fg-muted);
  font-size: var(--lm-font-size-2xs);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.page-toc ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

.page-toc li + li {
  margin-top: 0.25rem;
}

.page-toc a {
  display: inline-block;
  padding-block: 0.125rem;
  color: var(--lm-color-fg-body);
  text-decoration: none;
  line-height: 1.35;
}

.page-toc a:hover {
  color: var(--lm-color-fg-accent);
  text-decoration: underline;
}

.article-body {
  max-width: 72ch;
  color: var(--lm-color-fg-body);
  font: var(--lm-prose-weight) var(--lm-font-size-base) / 1.65 var(--lm-font-family-prose);
}

.article-body > :first-child {
  margin-top: 0;
}

.article-header h1,
.article-body h2,
.article-body h3,
.article-body h4 {
  color: var(--lm-color-fg-default);
  font-family: var(--lm-font-family-display);
  font-weight: 600;
  text-wrap: balance;
}

.article-header {
  max-width: 72ch;
}

.article-header h1 {
  margin: 0 0 1.25rem;
  color: var(--lm-color-fg-default);
  font-family: var(--lm-font-family-display);
  font-weight: 600;
  text-wrap: balance;
  font-size: var(--lm-font-size-4xl);
  line-height: 1.12;
  letter-spacing: -0.02em;
}

.article-body h2 {
  margin: 2.5rem 0 0.75rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--lm-color-border-default);
  font-size: var(--lm-font-size-2xl);
  line-height: 1.25;
  letter-spacing: -0.01em;
}

.article-body h3 {
  margin: 1.75rem 0 0.5rem;
  font-size: var(--lm-font-size-lg);
  line-height: 1.3;
}

.article-body h4 {
  margin: 1.25rem 0 0.375rem;
  font-size: var(--lm-font-size-base);
}

.heading-link {
  margin-left: 0.375rem;
  padding: 0 0.25rem;
  color: var(--lm-color-fg-subtle);
  font-weight: 400;
  text-decoration: none;
  opacity: 0;
}

:is(h2, h3, h4):hover .heading-link,
.heading-link:focus-visible {
  opacity: 1;
}

.article-body p,
.article-body ul,
.article-body ol,
.article-body blockquote,
.article-body figure,
.article-body pre,
.article-body .table-scroll,
.article-body .callout {
  margin: 0 0 1rem;
}

.article-body > p:first-child {
  color: var(--lm-color-fg-default);
  font-size: var(--lm-font-size-lg);
  line-height: 1.55;
}

.article-body ul,
.article-body ol {
  padding-left: 1.5rem;
}

.article-body li + li {
  margin-top: 0.375rem;
}

.article-body li > ul,
.article-body li > ol {
  margin: 0.375rem 0 0;
}

.article-body li::marker {
  color: var(--lm-color-fg-muted);
}

.article-body ol > li::marker {
  font-weight: 600;
}

.article-body strong {
  color: var(--lm-color-fg-default);
  font-weight: 600;
}

.article-body code {
  padding: 0.05em 0.35em;
  border-radius: var(--lm-radius-xs);
  background: var(--lm-color-bg-sunken);
  color: var(--lm-color-fg-default);
  font-family: var(--lm-font-family-mono);
  font-size: 0.9em;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}

.article-body pre {
  overflow-x: auto;
  padding: 0.875rem 1rem;
  border-radius: var(--lm-radius-sm);
  background: var(--lm-color-bg-sunken);
  font-size: var(--lm-font-size-sm);
  line-height: 1.5;
}

.article-body pre code {
  padding: 0;
  background: none;
  overflow-wrap: normal;
  white-space: pre;
}

.article-body blockquote {
  padding-left: 1rem;
  border-left: 3px solid var(--lm-color-border-strong);
  color: var(--lm-color-fg-muted);
}

.article-body a.download::before {
  content: "↓ ";
  font-weight: 600;
}

.article-body a.external::after {
  content: " ↗";
  font-size: 0.85em;
}

.article-body figure img {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: var(--lm-radius-sm);
  box-shadow: 0 0 0 1px var(--lm-color-border-default);
}

.article-body figcaption {
  margin-top: 0.5rem;
  color: var(--lm-color-fg-muted);
  font-size: var(--lm-font-size-sm);
}

/* Tables scroll inside their own frame on narrow screens rather than widening the page. */
.table-scroll {
  overflow-x: auto;
  overscroll-behavior-x: contain;
  border: 1px solid var(--lm-color-border-default);
  border-radius: var(--lm-radius-sm);
}

.table-scroll table {
  width: 100%;
  border-collapse: collapse;
  font: 400 var(--lm-font-size-sm) / 1.45 var(--lm-font-family-ui);
  font-variant-numeric: tabular-nums;
}

.table-scroll th,
.table-scroll td {
  padding: 0.5rem 0.75rem;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--lm-color-border-default);
}

.table-scroll th {
  background: var(--lm-color-bg-sunken);
  color: var(--lm-color-fg-default);
  font-weight: 600;
}

.table-scroll tr:last-child td {
  border-bottom: 0;
}

.table-scroll td.align-right,
.table-scroll th.align-right {
  text-align: right;
}

.table-scroll td.align-center,
.table-scroll th.align-center {
  text-align: center;
}

.table-scroll td:first-child {
  color: var(--lm-color-fg-default);
}

/* Callouts carry their name in words; the color only supports it. */
.callout {
  padding: 0.875rem 1rem;
  border-left: 4px solid var(--callout-edge);
  border-radius: 0 var(--lm-radius-sm) var(--lm-radius-sm) 0;
  background: var(--callout-bg);
  font-size: var(--lm-font-size-md);
}

.callout > :last-child {
  margin-bottom: 0;
}

.callout-title {
  margin: 0 0 0.25rem !important;
  color: var(--callout-fg);
  font-size: var(--lm-font-size-xs);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.callout-note {
  --callout-edge: var(--lm-color-status-info-fg);
  --callout-bg: var(--lm-color-status-info-bg);
  --callout-fg: var(--lm-color-status-info-fg);
}

.callout-tip {
  --callout-edge: var(--lm-color-status-ok-fg);
  --callout-bg: var(--lm-color-status-ok-bg);
  --callout-fg: var(--lm-color-status-ok-fg);
}

.callout-important {
  --callout-edge: var(--lm-color-status-warn-fg);
  --callout-bg: var(--lm-color-status-warn-bg);
  --callout-fg: var(--lm-color-status-warn-fg);
}

.callout-warning {
  --callout-edge: var(--lm-color-status-fail-fg);
  --callout-bg: var(--lm-color-status-fail-bg);
  --callout-fg: var(--lm-color-status-fail-fg);
}

.pager {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}

.pager a {
  display: grid;
  gap: 0.25rem;
  padding: 1rem 1.25rem;
  border-radius: var(--lm-radius-card);
  background: var(--lm-color-bg-surface);
  box-shadow: var(--lm-shadow-card);
  color: var(--lm-color-fg-default);
  text-decoration: none;
}

.pager a:hover {
  box-shadow: var(--lm-shadow-card-hover);
}

.pager-next {
  text-align: right;
  grid-column: -2;
}

.pager-label {
  color: var(--lm-color-fg-muted);
  font-size: var(--lm-font-size-xs);
}

.pager-prev .pager-label::before {
  content: "← ";
}

.pager-next .pager-label::after {
  content: " →";
}

.pager-title {
  color: var(--lm-color-fg-accent);
  font-weight: 600;
}

.manual-footer {
  margin-top: 2rem;
  color: var(--lm-color-fg-muted);
  font-size: var(--lm-font-size-xs);
}

.manual-footer p {
  margin: 0 0 0.375rem;
}

.manual-footer code {
  font-family: var(--lm-font-family-mono);
}

/* ---------- Search page ---------- */

.search-page {
  max-width: 52rem;
  margin-inline: auto;
  padding: 1.5rem var(--lm-layout-frame-gutter) 3rem;
}

.search-page h1 {
  margin: 0 0 1rem;
  font-size: var(--lm-font-size-3xl);
}

.search-page-form label {
  display: block;
  margin-bottom: 0.375rem;
  font-weight: 600;
}

.search-page-row {
  display: flex;
  gap: 0.5rem;
}

.search-page-row button {
  background: var(--lm-color-bg-accent);
  color: var(--lm-color-fg-on-accent);
  font-weight: 600;
}

.search-page-row button:hover {
  background: var(--lm-color-bg-accent-hover);
}

.search-status {
  margin: 1rem 0;
  color: var(--lm-color-fg-muted);
}

.search-page-results {
  margin: 0;
  padding: 0;
  list-style: none;
}

.search-page-results li {
  padding: 1rem 1.25rem;
  margin-bottom: 0.75rem;
  border-radius: var(--lm-radius-card);
  background: var(--lm-color-bg-surface);
  box-shadow: var(--lm-shadow-card);
}

.search-page-title {
  font-size: var(--lm-font-size-base);
  font-weight: 600;
}

.search-page-text {
  margin: 0.25rem 0 0;
  color: var(--lm-color-fg-body);
  line-height: 1.55;
}

/* ---------- Print: one clean article in Day colors ---------- */

@page {
  margin: 16mm 14mm;
}

@media print {
  body {
    background: #fff;
    color: #17202a;
    font-size: 10.5pt;
  }

  .topbar,
  .skip-link,
  .manual-nav,
  .page-toc,
  .pager,
  .heading-link,
  .breadcrumbs,
  .manual-footer p + p {
    display: none !important;
  }

  .manual-layout {
    display: block;
    padding: 0;
    max-width: none;
  }

  .manual-article,
  .manual-article.has-toc {
    display: block;
    padding: 0;
    box-shadow: none;
    background: none;
  }

  .article-body {
    max-width: none;
    font-size: 10.5pt;
    line-height: 1.5;
    color: #1f2937;
  }

  .article-body h1 {
    font-size: 20pt;
  }

  .article-body h2 {
    font-size: 14pt;
    margin-top: 1.25rem;
    break-after: avoid;
  }

  .article-body h3 {
    font-size: 12pt;
    break-after: avoid;
  }

  .table-scroll {
    overflow: visible;
  }

  .table-scroll tr,
  .callout,
  figure,
  pre {
    break-inside: avoid;
  }

  .article-body a {
    color: inherit;
  }

  .article-body a.download::before {
    content: "";
  }

  .manual-footer {
    margin-top: 1.5rem;
    border-top: 1px solid #d0d5dd;
    padding-top: 0.5rem;
  }
}

/* iOS Safari zooms the page on focus when a field's text is under 16px. */
@media (max-width: 64rem) and (pointer: coarse) {
  .manual-search input,
  .search-page-row input {
    font-size: 16px;
  }
}
