/* Shared reset for subtrees rebuilt from Nikita's design layer. */

:where([data-rx], [data-rx] *:not(svg *)),
:where([data-rx], [data-rx] *:not(svg *))::before,
:where([data-rx], [data-rx] *:not(svg *))::after {
  all: revert;
}

/* Base for rebuilt subtrees */
:where([data-rx]) :where(h1, h2, h3, p, ul, ol, figure, dl, dd) {
  margin: 0;
  padding: 0;
}

:where([data-rx]) :where(ul, ol) {
  list-style: none;
}

:where([data-rx]) :where(h1, h2, h3) {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 1.02;
  text-wrap: balance;
}

:where([data-rx]) :where(p) {
  line-height: 1.5;
}

:where([data-rx]) :where(img) {
  display: block;
  max-width: 100%;
}

:where([data-rx]) :where(svg) {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

:where([data-rx]) :where(a) {
  color: inherit;
}

:where([data-rx]) :where(button, input, select, textarea) {
  font: inherit;
  color: inherit;
}

:where([data-rx]) :where(strong, b) {
  font-weight: 500;
}

:where([data-rx]) :where(small) {
  font-size: inherit;
}

:where([data-rx]) :where(i, em) {
  font-style: normal;
}

:where([data-rx]) :focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
}
