/* Spinovista — layout & surface redesign (loads after spinovista-ui.css) */

html body.theme-spv::before {
  background:
    linear-gradient(180deg, rgba(34, 211, 238, 0.04) 0%, transparent 35%),
    repeating-linear-gradient(
      -12deg,
      transparent,
      transparent 48px,
      rgba(34, 211, 238, 0.03) 48px,
      rgba(34, 211, 238, 0.03) 49px
    ) !important;
}

html body.theme-spv .depth-lines {
  opacity: 0.12 !important;
  background: linear-gradient(90deg, rgba(34, 211, 238, 0.06) 1px, transparent 1px) !important;
  background-size: 24px 100% !important;
}

/* —— Header —— */
html body.theme-spv .spv-header {
  background: rgba(6, 9, 13, 0.92) !important;
  border-bottom: 1px solid rgba(34, 211, 238, 0.22) !important;
  box-shadow: 0 1px 0 rgba(163, 230, 53, 0.08);
}

html body.theme-spv .spv-rg {
  background: #0a1219 !important;
  border-bottom: 1px solid rgba(148, 163, 184, 0.12) !important;
}

html body.theme-spv .spv-rg__age {
  border-radius: var(--r-s) !important;
  background: linear-gradient(135deg, #0891b2, #22d3ee) !important;
  box-shadow: none !important;
}

html body.theme-spv .spv-nav__list {
  background: rgba(15, 23, 42, 0.9) !important;
  border: 1px solid rgba(34, 211, 238, 0.15) !important;
  border-radius: var(--r-m) !important;
}

html body.theme-spv .spv-nav__link.is-active {
  background: var(--grad-accent) !important;
  border-radius: var(--r-s) !important;
  box-shadow: var(--glow) !important;
}

html body.theme-spv .spv-menu-btn {
  border-radius: var(--r-s) !important;
}

html body.theme-spv .spv-drawer__close {
  border-radius: var(--r-s) !important;
}

/* —— Hero —— */
html body.theme-spv .spv-hero__orb {
  display: none !important;
}

html body.theme-spv .spv-hero.hero,
html body.theme-spv .spv-page-hero.hero {
  border-bottom: 1px solid rgba(34, 211, 238, 0.12) !important;
  background: var(--ink-0) !important;
}

html body.theme-spv .spv-hero--home.hero,
html body.theme-spv .spv-page-hero.hero {
  background: var(--ink-0) !important;
}

html body.theme-spv .spv-hero-home__cell {
  border-radius: var(--r-m) !important;
}

html body.theme-spv .spv-hero-home__cell--title {
  border-radius: var(--r-l) !important;
}

html body.theme-spv .spv-hero-home__pulse li {
  border-radius: var(--r-s) !important;
}

html body.theme-spv .spv-hero:not(.spv-hero--home) .spv-hero__title-line--accent {
  border-left: 3px solid #22d3ee !important;
  border-image: none !important;
  padding-left: 0.75rem !important;
}

html body.theme-spv .spv-hero__kicker-age {
  border-radius: var(--r-s) !important;
  background: #0891b2 !important;
}

html body.theme-spv .spv-page-hero__chips li {
  border-radius: var(--r-s) !important;
}

/* —— Brand cards — deck overrides —— */
html body.theme-spv .spv-card__visit.btn {
  border-radius: var(--r-s) !important;
  background: linear-gradient(135deg, #0e7490, #22d3ee) !important;
  box-shadow: 0 6px 18px rgba(34, 211, 238, 0.22) !important;
  border: none !important;
}

html body.theme-spv .spv-card__ficha {
  border-radius: var(--r-s) !important;
}

/* —— Buttons & chips —— */
html body.theme-spv .btn {
  border-radius: var(--r-m) !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4) !important;
}

html body.theme-spv .btn--accent {
  background: var(--grad-accent) !important;
}

html body.theme-spv .btn--ghost {
  border-radius: var(--r-m) !important;
  border: 1px solid rgba(34, 211, 238, 0.35) !important;
  background: rgba(15, 23, 42, 0.6) !important;
}

html body.theme-spv .chip {
  border-radius: var(--r-s) !important;
}

html body.theme-spv .sec-head__link {
  border-radius: var(--r-m) !important;
  border-color: rgba(34, 211, 238, 0.35) !important;
  background: rgba(34, 211, 238, 0.06) !important;
}

/* —— Sections & surfaces —— */
html body.theme-spv .surf-1 {
  background: rgba(11, 17, 24, 0.65) !important;
}

html body.theme-spv .surf-2 {
  background: #070b10 !important;
  border-top: 1px solid rgba(34, 211, 238, 0.08);
  border-bottom: 1px solid rgba(34, 211, 238, 0.08);
}

html body.theme-spv .df-adnote {
  border-radius: var(--r-m) !important;
  border-left: 3px solid #22d3ee !important;
  background: rgba(8, 145, 178, 0.08) !important;
}

html body.theme-spv .df-oper .oper__in {
  border-radius: var(--r-l) !important;
  border-left: 4px solid rgba(34, 211, 238, 0.35) !important;
}

html body.theme-spv .spv-registry__row,
html body.theme-spv .spv-spotlight__item {
  border-radius: var(--r-m) !important;
  border: 1px solid rgba(148, 163, 184, 0.12) !important;
}

html body.theme-spv .faq__item,
html body.theme-spv .plate,
html body.theme-spv .tool {
  border-radius: var(--r-m) !important;
}

html body.theme-spv .spv-footer {
  background: linear-gradient(180deg, transparent, #040608 25%) !important;
  border-top: 1px solid rgba(34, 211, 238, 0.12) !important;
}

html body.theme-spv .spv-brand__name {
  background: linear-gradient(90deg, #67e8f9, #a3e635) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
}

html body.theme-spv .cc-banner {
  border-radius: var(--r-l) !important;
  border-color: rgba(34, 211, 238, 0.3) !important;
}

/* —— Home: rail steps (4 passos) —— */
html body.theme-spv .df-oper .oper__in {
  border-left: none !important;
}

html body.theme-spv .spv-registry__row,
html body.theme-spv .spv-spotlight__item {
  border-left: none !important;
}

html body.theme-spv .helpline {
  border-radius: var(--r-l) !important;
}

html body.theme-spv .spv-hero:not(.spv-hero--home) .spv-hero__aside {
  border-radius: var(--r-l) !important;
  border: 1px solid rgba(34, 211, 238, 0.18) !important;
  background: linear-gradient(160deg, rgba(11, 17, 24, 0.95), rgba(6, 9, 13, 0.9)) !important;
  box-shadow: var(--sh-1) !important;
}

/* —— Responsive spacing (override inner.css legacy gaps) —— */
html body.theme-spv .isec {
  padding-block: var(--sec-pad-block, var(--pad)) !important;
}

html body.theme-spv .oper__in {
  gap: clamp(0.55rem, 1.2vw, 0.75rem) !important;
}

html body.theme-spv .iprose {
  gap: clamp(0.45rem, 1vw, 0.7rem) !important;
}

html body.theme-spv main .isec > .wrap.iwrap.iprose {
  padding: clamp(0.55rem, 1.4vw, 0.8rem) !important;
}

html body.theme-spv .iprose .h2 {
  margin: 0.65rem 0 0.35rem !important;
}

html body.theme-spv .iprose .h2:first-child {
  margin-top: 0 !important;
}

html body.theme-spv .iprose p {
  margin: 0 !important;
}

html body.theme-spv .df-adnote {
  margin: 0 0 0.45rem !important;
  padding: 0.55rem 0.65rem !important;
}

html body.theme-spv .df-toc {
  margin: 0 !important;
  line-height: 1.5 !important;
}

html body.theme-spv .df-contact {
  gap: clamp(0.65rem, 1.8vw, 1.1rem) !important;
}

html body.theme-spv .resources {
  margin-top: 0.5rem !important;
  gap: 0.45rem !important;
}

html body.theme-spv .iend {
  margin-top: clamp(0.5rem, 1.2vw, 0.75rem) !important;
  padding: clamp(0.6rem, 1.4vw, 0.85rem) !important;
  gap: 0.65rem !important;
}

html body.theme-spv .section.manifesto {
  padding-block: clamp(0.5rem, 1.5vw, 0.85rem) !important;
}

html body.theme-spv .section.rg .rg__in {
  padding: clamp(0.65rem, 1.6vw, 0.9rem) !important;
  gap: 0.75rem 1rem !important;
}

html body.theme-spv .spv-page-hero__layout {
  padding: clamp(0.6rem, 1.6vw, 0.85rem) clamp(0.65rem, 1.8vw, 0.95rem) !important;
  padding-left: clamp(0.85rem, 2vw, 1.1rem) !important;
}

html body.theme-spv .spv-page-hero__figure {
  min-height: auto !important;
  padding: 0.4rem !important;
}

html body.theme-spv .df-rv-ficha .wrap,
html body.theme-spv .df-rv-body .wrap,
html body.theme-spv .df-rv-others .wrap {
  gap: 0.4rem !important;
}

html body.theme-spv .df-oper .oper__plates {
  gap: 0.4rem !important;
}

html body.theme-spv .df-oper .df-oper__cols {
  gap: 0.45rem !important;
}

html body.theme-spv .spv-footer {
  margin-top: clamp(1.25rem, 3vw, 2rem) !important;
  padding-top: clamp(1.25rem, 3vw, 2rem) !important;
}

@media (max-width: 720px) {
  html body.theme-spv .helpline {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 0.45rem !important;
    padding: 0.65rem 0.75rem !important;
  }

  html body.theme-spv .helpline__num {
    font-size: clamp(1.75rem, 8vw, 2.25rem) !important;
  }

  html body.theme-spv .sec-head {
    padding: 0.55rem 0.65rem !important;
  }

  html body.theme-spv .faq__q {
    padding: 0.65rem 0.75rem !important;
  }

  html body.theme-spv .faq__a p {
    padding: 0 0.75rem 0.75rem !important;
  }

  html body.theme-spv .spv-registry {
    gap: 0.4rem !important;
    margin-top: 0 !important;
  }

  html body.theme-spv .spv-spotlight {
    gap: 0.4rem !important;
    margin-top: 0.35rem !important;
  }

  html body.theme-spv .rail {
    gap: 0.35rem !important;
  }

  html body.theme-spv .df-rv-art {
    padding: 0.6rem 0.65rem !important;
  }

  html body.theme-spv .df-rv-art + .df-rv-art {
    margin-top: 0.35rem !important;
  }

  html body.theme-spv .spv-footer__grid {
    gap: 1.25rem 1rem !important;
  }
}
