/* DG Research Heading
   The Research catalog is the reference: Georgia / 400 / #294b60.
   Only the heading face, weight and ink belong here. Templates retain their
   sizes, line heights, spacing and layout. No font shorthand or !important.

   Both static documents (body) and mounted applications (#root) use this
   treatment. The shared component outranks legacy template heading rules.
   Figure labels, mathematical typesetting, navigation and controls are excluded.
*/
:root {
  --dg-heading-family: Georgia, "Times New Roman", serif;
  --dg-heading-weight: 400;
  --dg-heading-ink: #294b60;
  --dg-heading-inverse-ink: #e8e3d6;
}

/* Existing dark instrument/product surfaces retain a readable inverse ink.
   This opt-in changes headings only; it does not retheme their content. */
[data-heading-tone="inverse"] { --dg-heading-ink: var(--dg-heading-inverse-ink); }
[data-heading-tone="paper"] { --dg-heading-ink: #294b60; }

:root :is(body, #root) :is(h1,h2,h3,h4,h5,h6,[role="heading"],.dg-heading):not(:where(
  svg *, figure *, nav *, button *, .topbar *, .dg-header *, .site-header *, #mainNav *,
  .wordmark, .katex *, .MathJax *, [data-heading-preserve], [data-heading-preserve] *
)) {
  font-family: var(--dg-heading-family);
  font-weight: var(--dg-heading-weight);
  color: var(--dg-heading-ink);
}

/* A linked or emphasized title is still one heading, including its hover state.
   Keep italics, link decoration and focus outlines supplied by the template. */
:root :is(body, #root) :is(h1,h2,h3,h4,h5,h6,[role="heading"],.dg-heading):not(:where(
  svg *, figure *, nav *, button *, .topbar *, .dg-header *, .site-header *, #mainNav *,
  .wordmark, .katex *, .MathJax *, [data-heading-preserve], [data-heading-preserve] *
)) :is(a,strong,b,em,span):not(:where(.katex, .katex *, .MathJax, .MathJax *, [data-heading-preserve], [data-heading-preserve] *)) {
  font-family: inherit;
  font-weight: inherit;
  color: inherit;
}

:root :is(body, #root) :is(h1,h2,h3,h4,h5,h6,.dg-heading) a:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 4px;
}
