/* Estilos de elementos HTML. Valores sempre por tokens (docs/modulos/web.md). */

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  background-color: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-sans);
  font-size: var(--font-size-md);
  line-height: var(--line-height-normal);
}

h1,
h2,
h3,
p,
dl,
dd {
  margin: 0;
}

h1,
h2 {
  font-family: var(--font-heading);
}

a {
  color: var(--color-primary);
}

a:hover {
  color: var(--color-primary-hover);
}

:focus-visible {
  outline: var(--focus-width) solid var(--color-focus);
  outline-offset: var(--focus-width);
}

main:focus {
  outline: none;
}

input,
select,
textarea,
button {
  font: inherit;
  color: inherit;
}

summary {
  color: var(--color-primary);
  cursor: pointer;
  font-weight: var(--font-weight-medium);
}

details[open] > summary {
  margin-bottom: var(--space-4);
}

[hidden] {
  display: none;
}

@media print {
  nav,
  button,
  .button,
  .toasts,
  .filters,
  details:not([open]) {
    display: none;
  }

  .table-wrap {
    max-height: none;
    overflow: visible;
  }
}
