/* COSMO Tecnologia — camada oficial de identidade visual.
   Mantém o logotipo intacto e unifica tipografia, assinatura cromática e
   elementos orbitais sem alterar a arquitetura de conteúdo das páginas. */

:root {
  --cosmo-black: #050505;
  --cosmo-acid: #c5fb05;
  --cosmo-white: #ffffff;
  --cosmo-gray-050: #f6f6f3;
  --cosmo-gray-300: #dcddd8;
  --cosmo-graphite: #70716d;
  --cosmo-font-ui: "Inter", Arial, sans-serif;
  --cosmo-font-data: "IBM Plex Mono", Consolas, monospace;
}

html,
body,
body button,
body input,
body select,
body textarea {
  font-family: var(--cosmo-font-ui) !important;
}

body :is(h1, h2, h3, h4, h5, h6) {
  font-family: var(--cosmo-font-ui) !important;
}

body :is(
  code,
  kbd,
  samp,
  pre,
  .metric,
  .metric-value,
  .kpi,
  .kpi-value,
  .reading,
  .reading-grid dd,
  .status-badge,
  .signal,
  .hero-count,
  .data-stream,
  .ops-kpis strong,
  .hero-event-values,
  .vehicle,
  .telemetry
) {
  font-family: var(--cosmo-font-data) !important;
  font-variant-numeric: tabular-nums;
}

::selection {
  color: var(--cosmo-black);
  background: var(--cosmo-acid);
}

:focus-visible {
  outline-color: var(--cosmo-acid) !important;
}

img:is(
  .brand-logo,
  .footer-logo,
  [src*="cosmo-logo"],
  [src*="cosmotec-logo"],
  [src$="/images/logo.png"],
  [src="images/logo.png"]
) {
  object-fit: contain !important;
  filter: none !important;
}

:is(.site-header, .public-header, body > header.nav) {
  background-color: rgba(5, 5, 5, .96) !important;
  border-bottom-color: rgba(197, 251, 5, .15) !important;
}

:is(.button, .nav-cta, .diagnostic-cta, .slide-copy a, .actions a:first-child) {
  border-radius: 999px !important;
}

.gov-light h2 em {
  color: var(--cosmo-black) !important;
  text-decoration-line: underline;
  text-decoration-color: var(--cosmo-acid);
  text-decoration-thickness: .08em;
  text-underline-offset: .12em;
}

body > :is(.site-footer, .site-footer-v11, .site-footer-v22, footer) {
  background-color: var(--cosmo-black) !important;
  background-image: none !important;
}

body > footer.cosmo-simple-footer {
  width: 100% !important;
  min-height: 118px !important;
  margin: 0 !important;
  padding: 0 !important;
  display: block !important;
  color: var(--cosmo-graphite) !important;
  background: var(--cosmo-black) !important;
  border: 0 !important;
  border-top: 3px solid var(--cosmo-acid) !important;
  font-size: 11px !important;
  text-align: left !important;
}

.cosmo-footer-inner {
  width: min(1440px, calc(100% - 80px));
  min-height: 115px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 150px 1fr auto;
  align-items: center;
  gap: 34px;
}

.cosmo-footer-brand {
  display: flex;
  align-items: center;
}

.cosmo-footer-brand img {
  width: 132px !important;
  height: auto !important;
  max-height: none !important;
  object-fit: contain !important;
  filter: none !important;
}

.cosmo-footer-inner p {
  width: auto !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
  color: #8f908c !important;
  font-size: 11px !important;
  line-height: 1.5 !important;
}

.cosmo-footer-inner nav {
  display: flex !important;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(22px, 2.3vw, 42px);
}

.cosmo-footer-inner nav a {
  color: #8f908c !important;
  font-size: 11px !important;
  font-weight: 500 !important;
  white-space: nowrap;
  text-decoration: none !important;
  transition: color .2s ease;
}

.cosmo-footer-inner nav a:hover,
.cosmo-footer-inner nav a:focus-visible {
  color: var(--cosmo-acid) !important;
}

.cosmo-side,
.cosmo-drawer {
  border-color: rgba(197, 251, 5, .14) !important;
}

.cosmo-side .vertical-brand {
  width: 190px;
  height: auto;
  left: 50%;
  bottom: 102px;
  writing-mode: initial;
  transform: translateX(-50%) rotate(-90deg) !important;
}

.cosmo-side .vertical-brand img {
  width: 190px;
  height: auto;
  object-fit: contain;
}

@media (max-width: 600px) {
  .cosmo-side .vertical-brand,
  .cosmo-side .vertical-brand img {
    width: 150px;
  }

  .cosmo-side .vertical-brand {
    bottom: 84px;
  }

  body > footer.cosmo-simple-footer {
    min-height: 154px !important;
  }

  .cosmo-footer-inner {
    width: calc(100% - 40px);
    min-height: 151px;
    padding: 24px 0 20px;
    grid-template-columns: 124px 1fr;
    gap: 13px 20px;
  }

  .cosmo-footer-brand img {
    width: 120px !important;
  }

  .cosmo-footer-inner p {
    font-size: 10px !important;
  }

  .cosmo-footer-inner nav {
    grid-column: 1 / -1;
    justify-content: space-between;
    gap: 12px;
  }

  .cosmo-footer-inner nav a {
    font-size: 10px !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
  }
}
