/*
 * Minimal styling for the component index pages. Deliberately plain and
 * readable; the component's own Storybook is where the polished demos live.
 */

:root {
  color-scheme: light dark;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  line-height: 1.5;
}

.page {
  max-width: 60rem;
  margin-inline: auto;
  padding: 2rem 1.25rem 4rem;
}

h1 {
  margin-block: 0 0.5rem;
}

.lead {
  max-width: 48rem;
  color: GrayText;
}

.links {
  font-weight: 600;
}

a {
  color: LinkText;
}

/* Inlined source blocks on the component page. */
.file {
  margin-block-start: 2rem;
}

.file h2 {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 1rem;
  border-block-end: 1px solid;
  padding-block-end: 0.35rem;
}

.file .raw-link {
  font-family: system-ui, sans-serif;
  font-size: 0.8rem;
  font-weight: 400;
}

.file pre {
  overflow: auto;
  padding: 1rem;
  background: rgba(127, 127, 127, 0.12);
  border-radius: 4px;
  tab-size: 2;
}

.file code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.85rem;
}
