/* Estilos dos elementos HTML (docs/modulos/web.md, "CSS"). Componentes ficam em components.css. */

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

html {
  font-family: var(--font-sans);
  line-height: var(--line-height-normal);
  color: var(--color-text);
  background: var(--color-bg);
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

h1,
h2,
h3 {
  line-height: var(--line-height-tight);
  margin: 0 0 var(--space-3);
}

h1 {
  font-size: var(--font-size-xl);
  font-weight: var(--font-weight-bold);
}

h2 {
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-bold);
}

p {
  margin: 0 0 var(--space-3);
}

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);
}

[tabindex="-1"]:focus {
  outline: none;
}

button,
input,
select {
  font: inherit;
}

pre,
code {
  font-family: var(--font-mono);
}

fieldset {
  border: 0;
  margin: 0;
  padding: 0;
  min-width: 0;
}

table {
  border-collapse: collapse;
  width: 100%;
}

@media print {
  .app-header,
  .action-bar,
  .button,
  .segmented,
  .toast-region {
    display: none;
  }

  .table-wrap {
    overflow: visible;
  }
}
