/* ==========================================================================
   Material 3 Expressive — Base, Fontes Auto-hospedadas & Tipografia
   ========================================================================== */

@font-face {
  font-family: "Roboto Flex";
  src: url("/painel/fonts/RobotoFlex-latin.woff2") format("woff2");
  font-weight: 100 1000;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Roboto Mono";
  src: url("/painel/fonts/RobotoMono-latin.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

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

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  background: var(--md-sys-color-surface);
  color: var(--md-sys-color-on-surface);
  font-family: var(--md-sys-typescale-plain);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  caret-color: var(--md-sys-color-primary);
}

/* Superfícies do navegador tematizadas */
::selection {
  background: var(--md-sys-color-primary-container);
  color: var(--md-sys-color-on-primary-container);
}

::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: var(--md-sys-color-outline-variant);
  border-radius: var(--md-sys-shape-corner-full);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--md-sys-color-outline);
}

[hidden] {
  display: none !important;
}

:focus-visible {
  outline: 2px solid var(--md-sys-color-primary);
  outline-offset: 2px;
}

/* ---------- Tipografia M3 Expressive ---------- */
h1, h2, h3, h4 {
  margin: 0;
  font-family: var(--md-sys-typescale-brand);
  color: var(--md-sys-color-on-surface);
  letter-spacing: -0.02em;
  text-wrap: balance;
}

p {
  margin: 0;
  max-width: 72ch;
}

.md-display-emphasized {
  font-family: var(--md-sys-typescale-brand);
  font-size: clamp(2rem, 3.2vw, 2.75rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.03em;
  font-variation-settings: "opsz" 48;
}

.md-headline-emphasized {
  font-family: var(--md-sys-typescale-brand);
  font-size: 1.5rem;
  font-weight: 680;
  line-height: 1.25;
  letter-spacing: -0.02em;
  font-variation-settings: "opsz" 32;
}

.md-title-large {
  font-size: 1.2rem;
  font-weight: 620;
  line-height: 1.3;
  letter-spacing: -0.015em;
}

.md-title-medium {
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.4;
}

.md-label-large {
  font-size: 0.875rem;
  font-weight: 560;
  letter-spacing: 0.01em;
}

.muted {
  color: var(--md-sys-color-on-surface-variant);
  font-size: 0.875rem;
}

.mono {
  font-family: var(--md-sys-typescale-mono);
  font-size: 0.84rem;
}

.tabular {
  font-variant-numeric: tabular-nums;
}

code {
  font-family: var(--md-sys-typescale-mono);
  font-size: 0.85em;
  background: var(--md-sys-color-surface-container-high);
  color: var(--md-sys-color-on-surface);
  padding: 2px 6px;
  border-radius: var(--md-sys-shape-corner-extra-small);
}

a {
  color: var(--md-sys-color-primary);
  text-underline-offset: 3px;
}

/* ---------- Ícones SVG Sprite ---------- */
.m3-icon {
  width: 20px;
  height: 20px;
  display: inline-block;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.m3-icon.filled {
  fill: currentColor;
  stroke: none;
}

.m3-icon-sm {
  width: 17px;
  height: 17px;
}

.m3-icon-lg {
  width: 24px;
  height: 24px;
}
