/* Radiology field guide: ink, film, and a single teal accent. */
body {
  --font-stack: "Trebuchet MS", "Segoe UI", sans-serif;
  --docs-serif: Georgia, "Times New Roman", serif;
  --docs-film: #102c2d;
  --docs-film-ink: #f3faf7;
  --docs-signal: #abe8d6;
  --docs-rule: var(--color-background-border);
  --docs-panel: var(--color-background-secondary);
  --docs-pad: clamp(1.15rem, 4vw, 2.25rem);
}

article h1,
article h2,
article .docs-paper .rubric {
  font-family: var(--docs-serif);
  font-weight: 400;
}

article h1 {
  font-size: clamp(2rem, 5.5vw, 3.4rem);
  letter-spacing: -0.035em;
  line-height: 1.08;
}

article h2 {
  font-size: clamp(1.45rem, 3.5vw, 2rem);
  line-height: 1.2;
}

article :where(p, li) {
  line-height: 1.6;
}

/* Match the theme's specificity for docutils containers. */
[role="main"] .docs-hero,
[role="main"] .docs-paper {
  box-sizing: border-box;
  padding: var(--docs-pad);
  border-radius: .45rem;
  margin-block: 1.35rem;
  overflow-wrap: anywhere;
}

[role="main"] .docs-hero {
  color: var(--docs-film-ink);
  background: var(--docs-film) url("film-stack.svg") no-repeat right center / 39% auto;
  padding-inline-end: max(var(--docs-pad), 42%);
}

.docs-paper {
  background: var(--docs-panel);
  border: 1px solid var(--docs-rule);
  border-inline-start: .25rem solid var(--color-brand-content);
}

article .docs-eyebrow {
  margin: 0 0 .8rem;
  color: var(--color-brand-content);
  font: 700 .73rem/1.45 var(--font-stack--monospace, monospace);
  letter-spacing: .12em;
}

article .docs-hero .docs-eyebrow {
  color: var(--docs-signal);
}

article .docs-hero > p:not([class]) {
  font-size: 1.2rem;
  line-height: 1.5;
}

article .docs-paper .rubric {
  text-transform: none;
  font-size: clamp(1.35rem, 3.5vw, 1.85rem);
  line-height: 1.24;
  margin: 0;
}

article .docs-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .65rem 1rem;
  margin: 1rem 0 0;
}

article .docs-actions a {
  display: inline-block;
  padding: .27rem 0;
  text-underline-offset: .2em;
  font-weight: 700;
}

article .docs-actions a:first-of-type {
  padding: .43rem .8rem;
  border: 1px solid currentColor;
  border-radius: .25rem;
  text-decoration: none;
}

article .docs-actions a:hover {
  text-decoration: underline;
}

article .docs-hero a {
  color: var(--docs-signal);
}

article .docs-hero .docs-actions a:first-of-type {
  color: var(--docs-film);
  background: var(--docs-signal);
  border-color: var(--docs-signal);
}

article a:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
}

article .docs-hero a:focus-visible {
  outline-color: var(--docs-signal);
}

.docs-links ul {
  padding: 0;
  margin: 0;
  list-style: none;
}

.docs-links li {
  padding-block: .8rem;
  border-block-start: 1px solid var(--docs-rule);
}

.docs-links li:last-child {
  border-block-end: 1px solid var(--docs-rule);
}

.docs-links li > p {
  margin: 0;
}

.docs-links a {
  font-weight: 700;
}

@media (max-width: 50rem) {
  [role="main"] .docs-hero {
    padding-inline-end: var(--docs-pad);
    background-image: none;
  }
}
