/**
 * Entrada única do design-system — importa tokens + componentes e define o
 * reset/base da aplicação. É este o arquivo referenciado pelas views
 * (<link rel="stylesheet" href=".../assets/css/app.css">).
 */
@import "tokens.css";
@import "components.css";

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

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font: var(--fs-base) / 1.5 var(--fonte-texto);
    color: var(--texto);
    background: var(--superficie);
}

h1, h2, h3, h4, b, strong {
    font-family: var(--fonte-titulo);
}

h1, h2, h3, h4 {
    color: var(--texto);
    margin: 0 0 var(--space-2);
}

a {
    text-decoration: none;
    color: inherit;
}

button, input, select, textarea {
    font-family: inherit;
}

img {
    max-width: 100%;
}

body.admin-page {
    background: var(--superficie-alt);
}

body.admin-page section {
    padding: 0;
}

.dashboard,
.module {
    padding: 28px 30px;
}

@media (max-width: 600px) {
    .dashboard,
    .module {
        padding: 20px 12px;
    }
}

/* ---- Utilitários mínimos ---- */
.container {
    width: min(1160px, calc(100% - 40px));
    margin: auto;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.hidden {
    display: none !important;
}

.u-flex-between {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.u-text-muted {
    color: var(--texto-secundario);
}
