@font-face {
  font-family:"Rubik";
  src:url("/assets/fonts/rubik-400.woff2") format("woff2");
  font-style:normal;
  font-weight:400;
  font-display:swap;
}

@font-face {
  font-family:"Rubik";
  src:url("/assets/fonts/rubik-500.woff2") format("woff2");
  font-style:normal;
  font-weight:500;
  font-display:swap;
}

@font-face {
  font-family:"Rubik";
  src:url("/assets/fonts/rubik-600.woff2") format("woff2");
  font-style:normal;
  font-weight:600;
  font-display:swap;
}

@font-face {
  font-family:"Rubik";
  src:url("/assets/fonts/rubik-700.woff2") format("woff2");
  font-style:normal;
  font-weight:700;
  font-display:swap;
}

:root {
  --pcm-font-family:"Rubik","Segoe UI",Arial,sans-serif;
  --pcm-font-regular:400;
  --pcm-font-medium:500;
  --pcm-font-bold:700;
  font-family:var(--pcm-font-family);
  font-weight:var(--pcm-font-regular);
  font-variant-numeric:tabular-nums;
  font-synthesis-weight:none;
}

:where(body,button,input,select,textarea,option,dialog,pre,code,kbd,samp) {
  font-family:inherit;
  font-variant-numeric:inherit;
}

:where(th,button,summary) {
  font-weight:var(--pcm-font-medium);
}

:where(h1,h2,h3,h4,h5,h6,strong,b) {
  font-weight:var(--pcm-font-bold);
}

.pcm-entry-wheel {
  box-sizing:border-box; width:54px; height:54px; border:6px solid #eee;
  border-top-color:#d69c00; border-right-color:#d69c00; border-radius:50%;
  animation:pcm-entry-spin .8s linear infinite, pcm-entry-appear .15s .2s backwards;
}
@keyframes pcm-entry-spin { to { transform:rotate(360deg); } }
@keyframes pcm-entry-appear { from { opacity:0; } to { opacity:1; } }
@media (prefers-reduced-motion:reduce) { .pcm-entry-wheel { animation:none; } }

/* Bloqueio de carregamento compartilhado pelo SGI. */
.pcm-navigation-locked{overflow:hidden}
.pcm-loading-dialog[open]{position:fixed;inset:0;margin:auto;background:transparent;border:0;padding:20px;overflow:visible;outline:none}
.pcm-loading-dialog::backdrop{background:rgb(15 23 42 / .38);backdrop-filter:blur(4px)}
.pcm-loading-wheel{display:block;width:54px;height:54px;border:6px solid white;border-top-color:#d69c00;border-right-color:#d69c00;border-radius:50%;animation:pcm-nav-turn .8s linear infinite}
@keyframes pcm-nav-turn{to{transform:rotate(360deg)}}
@media(prefers-reduced-motion:reduce){.pcm-loading-wheel{animation-duration:2.5s}}

/* Cabeçalho compartilhado pela entrada e pelo painel do SGI. */
:root { --header-height:84px; }

.topbar {
  position:fixed;
  inset:0 0 auto;
  z-index:30;
  height:var(--header-height);
  padding:0 30px;
  background:#0c0d0f;
  border-bottom:3px solid #ecad09;
  color:#fff;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
}

.top-left,.topbar .brand {
  display:flex;
  align-items:center;
  min-width:0;
}
.topbar .brand { gap:22px; }

.topbar .pcm-logo {
  border:0;
  padding:0;
  width:118.56px;
  height:62.83px;
  flex:none;
  background:url('/assets/brand/pcm-logo.png') center / 125% auto no-repeat;
  filter:invert(1) hue-rotate(185deg) brightness(3.5);
}
.topbar button.pcm-logo { cursor:pointer; }

.topbar .brand-title {
  border-left:1px solid #444;
  padding-left:22px;
  color:#fff;
  font-size:18px;
  font-weight:var(--pcm-font-medium);
  line-height:1.25;
  letter-spacing:.025em;
  text-transform:uppercase;
}

@media (max-width:900px) {
  :root { --header-height:76px; }
  .topbar { padding:0 22px; }
  .topbar .brand { gap:16px; }
  .topbar .brand-title { padding-left:16px; font-size:.875rem; }
}
@media (max-width:600px) {
  .topbar { padding:0 16px; }
  .topbar .brand { gap:10px; }
  .topbar .pcm-logo { width:104px; height:55.11px; }
  .topbar .brand-title { padding-left:10px; font-size:.75rem; letter-spacing:.015em; }
}
@media (max-width:390px) {
  .topbar .pcm-logo { width:76px; height:48px; }
  .topbar .brand-title { letter-spacing:0; }
}
