/* Final mobile colour hierarchy — 22 Nov 2026 */
@media (max-width: 900px) {
  body .imp16-shell {
    --mobile-primary-red: #D32337;
    --mobile-charcoal: #27272D;
    --mobile-paper: #F3F0EB;
    --i16-red: var(--mobile-primary-red);
  }

  /* Primary actions use the single approved red. */
  body .imp16-shell .imp16-button:not(.imp16-button--ghost),
  body .imp16-shell .smart-form button,
  body .imp16-shell .button.red,
  body .imp16-shell .imp16-menu__foot > a {
    background: var(--mobile-primary-red) !important;
    border-color: var(--mobile-primary-red) !important;
    color: #fff !important;
  }

  body .imp16-shell .imp16-button:not(.imp16-button--ghost) .imp16-arrow,
  body .imp16-shell .imp16-menu__foot > a .imp16-arrow {
    color: #fff !important;
  }

  /* Secondary actions remain charcoal, never red. */
  body .imp16-shell .imp16-button.imp16-button--ghost {
    background: var(--mobile-charcoal) !important;
    border-color: var(--mobile-charcoal) !important;
    color: #fff !important;
  }

  body .imp16-shell .imp16-button.imp16-button--ghost .imp16-arrow {
    color: #fff !important;
  }

  /* The service statement is a neutral information card, not a CTA. */
  body .imp16-shell .mobile-energy-ribbon {
    background: var(--mobile-paper) !important;
    border: 1px solid #D8D2CA !important;
    color: #1C1C20 !important;
  }

  body .imp16-shell .mobile-energy-ribbon span,
  body .imp16-shell .mobile-energy-ribbon svg {
    color: #1C1C20 !important;
  }

  /* Previously red content panels/cards return to the neutral system. */
  body .imp16-shell .mobile-coral-story,
  body .imp16-shell .imp16-close {
    background: var(--mobile-charcoal) !important;
    color: #fff !important;
  }

  body .imp16-shell .mobile-coral-story h2,
  body .imp16-shell .mobile-coral-story h3,
  body .imp16-shell .mobile-coral-story p,
  body .imp16-shell .mobile-coral-story summary,
  body .imp16-shell .imp16-close h2,
  body .imp16-shell .imp16-close p {
    color: #fff !important;
  }

  body .imp16-shell .feedback-mobile-lab--business > b,
  body .imp16-shell .feedback-mobile-lab--training > b,
  body .imp16-shell .feedback-service-paths a,
  body .imp16-shell .contact-option {
    background: var(--mobile-charcoal) !important;
    border-color: #46464D !important;
    color: #fff !important;
  }

  /* Small brand accents use the same approved red, never a brighter crimson. */
  body .imp16-shell .imp16-progress i,
  body .imp16-shell .imp16-rule,
  body .imp16-shell .imp16-plus {
    background-color: var(--mobile-primary-red) !important;
    color: var(--mobile-primary-red) !important;
  }

  body .imp16-shell .feedback-service-paths a::after,
  body .imp16-shell .feedback-service-quote,
  body .imp16-shell .feedback-service-quote-mobile {
    border-color: var(--mobile-primary-red) !important;
    color: var(--mobile-primary-red) !important;
  }
}

/* A first-paint cover prevents hero imagery appearing before the logo intro. */
html.shivi-intro-boot body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: #030303;
  pointer-events: none;
  animation: shivi-boot-cover-failsafe .2s ease 7s forwards;
}

html.shivi-intro-boot .sig-intro-v6 {
  z-index: 100000;
}

@keyframes shivi-boot-cover-failsafe {
  to { opacity: 0; visibility: hidden; }
}
