/* premium-blue v0.1.1 — copiado de amondf/premium_blue_design_system@3df48c6 (src/base.css). NÃO EDITAR: customizações vão em src/styles/portal.css. */
/* ==========================================================================
   Premium Blue — Base
   Reset leve, tipografia global, textura de ruído, scrollbar e seleção.
   ========================================================================== */

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--pb-header-h) + 24px);
  scrollbar-color: var(--pb-blue) rgb(6 17 31 / 0.06);
}

body {
  margin: 0;
  background: var(--pb-paper);
  color: var(--pb-ink);
  font-family: var(--pb-font-sans);
  font-size: var(--pb-text-body);
  line-height: var(--pb-leading-normal);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}

/* Textura de ruído quase imperceptível sobre a página inteira (1,6%). */
body.pb-noise::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: var(--pb-z-noise);
  pointer-events: none;
  opacity: 0.016;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

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

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

img,
svg,
video {
  display: block;
  max-width: 100%;
}

h1, h2, h3, h4, h5, h6, p {
  margin: 0;
}

::selection {
  color: var(--pb-ink);
  background: rgb(37 99 235 / 0.12);
}

:focus-visible {
  outline: 2px solid var(--pb-blue-soft);
  outline-offset: 2px;
}

/* Scrollbar com polegar em gradiente azul */
::-webkit-scrollbar {
  width: 14px;
  height: 14px;
}
::-webkit-scrollbar-track {
  background: rgb(6 17 31 / 0.05);
}
::-webkit-scrollbar-thumb {
  background: linear-gradient(var(--pb-blue) 0%, var(--pb-blue-strong) 100%) padding-box;
  border: 3px solid transparent;
  border-radius: 999px;
}
::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(var(--pb-blue-hover) 0%, #1e4fd0 100%) padding-box;
}

.pb-no-scrollbar {
  scrollbar-width: none;
}
.pb-no-scrollbar::-webkit-scrollbar {
  display: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
