/* Final developer pass — scoped overrides loaded last. */

/* Keep footer information prominent without leaving an oversized black ending. */
.footer-client-simplified,
.imp16-footer {
  min-height: 0 !important;
  padding: clamp(24px, 3vw, 42px) clamp(20px, 5vw, 72px) !important;
  gap: 22px !important;
  background: #080808 !important;
  align-items: center !important;
}

.footer-contact,
.imp16-footer-contact {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: 10px 16px !important;
  font-size: clamp(14px, 1vw, 16px) !important;
}

.footer-contact a,
.imp16-footer-contact a {
  display: inline-flex !important;
  align-items: center !important;
  gap: 9px !important;
  min-height: 42px !important;
  padding: 8px 12px !important;
  font-size: clamp(14px, 1vw, 16px) !important;
  line-height: 1.3 !important;
  font-weight: 650 !important;
  color: #fff !important;
  text-decoration: none !important;
  border: 1px solid rgba(255, 255, 255, 0.18) !important;
  border-radius: 999px !important;
}

.footer-contact a::before,
.imp16-footer-contact a::before {
  display: grid;
  place-items: center;
  flex: 0 0 24px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #df1f33;
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
}

.footer-contact a[href^="mailto:"]::before,
.imp16-footer-contact a[href^="mailto:"]::before { content: "@"; }
.footer-contact a[href*="wa.me"]::before,
.imp16-footer-contact a[href*="wa.me"]::before { content: "☎"; }
.footer-contact a[href*="linkedin.com"]::before,
.imp16-footer-contact a[href*="linkedin.com"]::before { content: "in"; }

/* Beat the earlier desktop/mobile footer link selectors without increasing
   the footer footprint. */
footer.footer-client-simplified .footer-contact a,
.imp16-shell .imp16-footer .imp16-footer-contact a {
  font-size: clamp(14px, 1vw, 16px) !important;
  line-height: 1.3 !important;
  font-weight: 650 !important;
}

/* Final case-study outcome: clear programme attribution. */
.impact-note-compact {
  display: block !important;
  margin-top: 18px !important;
  padding: 15px 18px !important;
  border: 0 !important;
  border-radius: 10px !important;
  background: #080808 !important;
  color: #fff !important;
  font-weight: 650 !important;
  line-height: 1.5 !important;
}

.impact-note-compact strong { color: #fff !important; }

/* Programmes: balanced hero and a six-image, equal-height gallery. */
.page-programmes-refined .content-hero {
  grid-template-columns: minmax(0, 1.02fr) minmax(420px, .98fr) !important;
  align-items: stretch !important;
}

.page-programmes-refined .content-hero-media,
.page-programmes-refined .content-hero-media img {
  min-height: 100% !important;
}

.page-programmes-refined .content-hero-media img {
  object-fit: cover !important;
  object-position: 50% 38% !important;
}

[data-real-session-gallery="programmes"] .real-session-masonry {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: clamp(14px, 1.5vw, 24px) !important;
}

[data-real-session-gallery="programmes"] .programme-format-link,
[data-real-session-gallery="programmes"] .real-session-shot {
  width: 100% !important;
  height: 100% !important;
  min-width: 0 !important;
}

[data-real-session-gallery="programmes"] .real-session-shot {
  display: grid !important;
  grid-template-rows: auto minmax(46px, auto) !important;
  margin: 0 !important;
}

[data-real-session-gallery="programmes"] .real-session-shot img {
  width: 100% !important;
  aspect-ratio: 4 / 3 !important;
  height: auto !important;
  object-fit: cover !important;
  object-position: center 38% !important;
  border-radius: 16px 16px 0 0 !important;
}

[data-real-session-gallery="programmes"] .real-session-shot--inclusive img {
  object-position: center 44% !important;
}

[data-real-session-gallery="programmes"] figcaption {
  display: flex !important;
  align-items: center !important;
  padding: 12px 14px !important;
  font-size: 13px !important;
}

/* Programmes accessibility: retain the editorial labels while keeping them
   comfortably legible on high-density laptop and mobile displays. */
.page-programmes-refined .content-hero-copy .eyebrow,
.page-programmes-refined .programme-diagram-intro .eyebrow,
.page-programmes-refined .real-session-gallery-head .eyebrow,
.page-programmes-refined .story-aside > span,
.page-programmes-refined .story-aside .eyebrow,
.page-programmes-refined .programme-diagram-card__head .eyebrow {
  font-size: 12px !important;
  line-height: 1.45 !important;
}

.page-programmes-refined .programme-diagram-intro > .eyebrow {
  display: none !important;
}

.page-programmes-refined .programme-diagram-card__head h3,
.page-programmes-refined .audience-diagram-card strong {
  line-height: 1.3 !important;
}

/* Use a quiet full outline instead of the previous thick side-tab accent. */
.page-programmes-refined .mobile-energy-ribbon {
  border-left: 1px solid rgba(213, 31, 50, 0.34) !important;
  border-top: 1px solid rgba(213, 31, 50, 0.34) !important;
  border-right: 1px solid rgba(213, 31, 50, 0.34) !important;
  border-bottom: 1px solid rgba(213, 31, 50, 0.34) !important;
}

@media (max-width: 767px) {
  .footer-client-simplified,
  .imp16-footer {
    padding: 24px 18px 28px !important;
    align-items: flex-start !important;
  }

  .footer-contact,
  .imp16-footer-contact {
    width: 100% !important;
    justify-content: flex-start !important;
    gap: 9px !important;
  }

  .footer-contact a,
  .imp16-footer-contact a {
    max-width: 100% !important;
    overflow-wrap: anywhere !important;
  }

  .page-programmes-refined .imp16-hero__clip {
    aspect-ratio: 4 / 3 !important;
    height: auto !important;
  }

  .page-programmes-refined .imp16-hero__clip img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: 50% 35% !important;
  }

  [data-real-session-gallery="programmes"] .real-session-masonry {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }

  [data-real-session-gallery="programmes"] .real-session-shot img {
    aspect-ratio: 4 / 3 !important;
  }

  .impact-note-compact {
    padding: 14px 16px !important;
  }
}

/* Final Shivi sign-off — 16 November 2026. */

/* Landing navigation: increase the text links without competing with the
   Training Lab wordmark. */
.page-home-refined .site-nav.nav-v5 .desktop-nav > a {
  font-size: 14px !important;
  line-height: 1.2 !important;
  letter-spacing: 0 !important;
}

/* Landing hero CTAs: a small readability lift at both breakpoints. */
.page-home-refined .doc-home-hero .doc-hero-actions .tr-pill {
  min-height: 50px !important;
  padding-inline: 24px !important;
  font-size: 15px !important;
  line-height: 1.25 !important;
}

/* All-page footer: use the available width, strengthen the type hierarchy,
   and keep the premium black/red/white treatment compact. */
footer.footer-client-simplified,
footer.imp16-footer {
  display: grid !important;
  grid-template-columns: minmax(260px, .8fr) minmax(0, 1.2fr) !important;
  width: 100% !important;
  padding: clamp(32px, 3.6vw, 52px) clamp(24px, 6vw, 96px) !important;
  gap: clamp(24px, 4vw, 64px) !important;
  border-top: 1px solid rgba(223, 31, 51, .65) !important;
  background: #080808 !important;
  color: #fff !important;
  align-items: center !important;
}

footer.footer-client-simplified .founder-footer-name,
footer.imp16-footer .imp16-footer-name {
  color: #fff !important;
  font-size: clamp(20px, 1.75vw, 27px) !important;
  line-height: 1.2 !important;
  font-weight: 600 !important;
}

footer.footer-client-simplified .footer-contact,
footer.imp16-footer .imp16-footer-contact {
  display: flex !important;
  width: 100% !important;
  flex-flow: row wrap !important;
  justify-content: flex-end !important;
  align-items: center !important;
  gap: 12px !important;
  border: 0 !important;
}

footer.footer-client-simplified .footer-contact a,
footer.imp16-footer .imp16-footer-contact a {
  min-height: 46px !important;
  padding: 10px 15px !important;
  color: #fff !important;
  font-size: clamp(15px, 1.12vw, 18px) !important;
  line-height: 1.3 !important;
  font-weight: 650 !important;
  border: 1px solid rgba(255, 255, 255, .22) !important;
  border-radius: 999px !important;
  background: rgba(255, 255, 255, .035) !important;
}

@media (min-width: 901px) {
  /* Neutralise the legacy `align-self:start` on the desktop footer brand so
     the lockup and contact pills share one true vertical centreline. */
  footer.footer-client-simplified .footer-brand,
  footer.footer-client-simplified .footer-contact,
  footer.imp16-footer .imp16-footer-lockup,
  footer.imp16-footer .imp16-footer-contact {
    align-self: center !important;
    margin-block: 0 !important;
  }
}

@media (max-width: 1180px) and (min-width: 901px) {
  .page-home-refined .site-nav.nav-v5 .desktop-nav > a {
    font-size: 13px !important;
  }
}

@media (max-width: 900px) {
  /* One authoritative mobile brand red. These variables and direct selectors
     intentionally load last so older mobile themes cannot reintroduce their
     legacy crimson shades after deployment or from a cached stylesheet. */
  :root,
  .imp16-shell,
  .tr-home {
    --mobile-brand-red: #D32337;
    --i16-accent: #D32337 !important;
    --bold-red: #D32337 !important;
    --red: #D32337 !important;
    --red-deep: #D32337 !important;
    --home-accent: #D32337 !important;
    --logo-red: #D32337 !important;
    --tl-red: #D32337 !important;
  }

  /* Primary surfaces and actions. Dark contrast buttons inside red panels are
     deliberately excluded so their labels remain legible. */
  .imp16-shell .imp16-button:not(.imp16-button--ghost),
  .imp16-shell .mobile-energy-ribbon,
  .imp16-shell .smart-form button,
  .mobile-menu-list a.active i,
  .training-entry-v2__frame,
  .training-entry-v3__frame {
    background-color: var(--mobile-brand-red) !important;
  }

  .imp16-shell .mobile-coral-story .imp16-button,
  .imp16-shell .imp16-close .imp16-button {
    background-color: #190e0c !important;
  }

  body .imp16-shell .mobile-coral-story .imp16-rule,
  body .imp16-shell .imp16-close .imp16-rule,
  .imp16-shell .mobile-coral-story .imp16-plus::before,
  .imp16-shell .mobile-coral-story .imp16-plus::after {
    background-color: var(--mobile-brand-red) !important;
  }

  .imp16-shell .mobile-coral-story .imp16-plus {
    color: var(--mobile-brand-red) !important;
  }

  /* Lines, progress, active states, icons and diagram accents use the same
     exact red rather than the former #d51f32 / #a90f25 variants. */
  .imp16-shell .imp16-rule,
  .imp16-shell .imp16-progress i,
  .imp16-shell .imp16-menu__nav a[aria-current="page"]::after,
  .mobile-menu-list a::before {
    background-color: var(--mobile-brand-red) !important;
  }

  .imp16-shell .imp16-hero__name,
  .imp16-shell .imp16-menu__nav a[aria-current="page"],
  .imp16-shell .imp16-menu__nav .imp16-menu__sub a[aria-current="page"],
  .imp16-shell .imp16-plus,
  .mobile-menu-intro span,
  .mobile-menu-list a.active span {
    color: var(--mobile-brand-red) !important;
  }

  .imp16-shell .mobile-diagram:not(.mobile-coral-story .mobile-diagram) {
    --diagram-accent: var(--mobile-brand-red) !important;
  }

  .imp16-shell .mobile-coral-story .mobile-diagram {
    --diagram-line: var(--mobile-brand-red) !important;
  }

  .imp16-shell .mobile-coral-story :is(.imp16-row, .imp16-more, .imp16-faq),
  .imp16-shell .mobile-coral-story .mobile-diagram-detail,
  .imp16-shell .mobile-coral-story .mobile-topic-detail,
  .imp16-shell .mobile-coral-story .mobile-topic-map .imp16-row,
  .mobile-menu-list a.active i,
  .mobile-menu-list a:hover i,
  .page-programmes-refined .mobile-energy-ribbon {
    border-color: var(--mobile-brand-red) !important;
  }

  .mobile-menu-list a:hover i {
    background-color: var(--mobile-brand-red) !important;
  }

  body .mobile-energy-ribbon {
    border-color: var(--mobile-brand-red) !important;
  }

  body .mobile-energy-ribbon svg,
  .feedback-service-quote-mobile {
    color: var(--mobile-brand-red) !important;
  }

  .feedback-service-quote-mobile {
    border-left-color: var(--mobile-brand-red) !important;
  }

  .learning-sound svg,
  .drive-editorial-insert__copy .eyebrow,
  .home-photo-journal__head .eyebrow,
  .home-photo-journal__item b,
  .imp16-shell .mobile-diagram-detail > summary,
  .imp16-shell .mobile-topic-detail > summary {
    color: var(--mobile-brand-red) !important;
  }

  .learning-path li::before,
  .imp16-shell .mobile-topic-map .imp16-row::before {
    background-color: var(--mobile-brand-red) !important;
  }

  footer.footer-client-simplified,
  footer.imp16-footer {
    border-top-color: var(--mobile-brand-red) !important;
  }

  .footer-contact a::before,
  .imp16-footer-contact a::before {
    background-color: var(--mobile-brand-red) !important;
  }

  .imp16-shell :is(a, button, summary, input, select, textarea):focus-visible {
    outline-color: var(--mobile-brand-red) !important;
  }

  .imp16-shell .mobile-coral-story :is(a, button, summary):focus-visible,
  .imp16-shell .imp16-close :is(a, button):focus-visible {
    outline-color: var(--mobile-brand-red) !important;
  }

  /* Match the mobile hero CTAs to the laptop brand-red treatment exactly. */
  .page-home-refined .imp16-shell .imp16-hero .imp16-button:not(.imp16-button--ghost),
  .page-about-refined .imp16-shell .imp16-hero .imp16-button:not(.imp16-button--ghost) {
    background: var(--mobile-brand-red) !important;
    color: #fff !important;
  }

  .page-home-refined .imp16-shell .imp16-hero .imp16-button:not(.imp16-button--ghost) .imp16-arrow,
  .page-about-refined .imp16-shell .imp16-hero .imp16-button:not(.imp16-button--ghost) .imp16-arrow {
    color: #fff !important;
  }

  /* My Story: the mobile hero now matches the approved brick-wall portrait
     used by the desktop composition, with a face-safe offset below the nav. */
  .page-about-refined .imp16-shell .mobile-stage img[src$="about-shivi-enhanced-992.webp"] {
    height: 100% !important;
    object-position: 50% 30% !important;
    box-sizing: border-box !important;
    padding-top: 84px !important;
    background: #080808 !important;
    transform: none !important;
  }

  /* Service Architect: mobile now uses the same approved hero artwork as the
     desktop design instead of the retired teal-sari podium photograph. */
  .page-service-refined .imp16-shell .mobile-stage img[src$="service-architect-shivi-hero.png"] {
    height: 100% !important;
    object-position: 68% 50% !important;
    box-sizing: border-box !important;
    padding-top: 84px !important;
    background: #080808 !important;
    transform: none !important;
  }

  /* Lift the supplied mobile homepage portrait without changing its crop on
     desktop or leaving an empty edge at the bottom of the hero. */
  .page-home-refined .imp16-shell .mobile-stage img[src$="home-mobile-hero-photo-1.jpg"] {
    height: 128% !important;
    transform: translateY(-17%) !important;
  }

  /* Keep the journal in its editorial sequence on small screens. The base
     gallery promoted the wide card to row one and displaced the middle card. */
  .imp16-shell .home-photo-journal__grid {
    display: flex !important;
    flex-direction: column !important;
  }

  .imp16-shell .home-photo-journal__item {
    width: 100% !important;
    margin: 0 !important;
  }

  .page-home-refined .doc-home-hero .doc-hero-actions .tr-pill {
    min-height: 46px !important;
    padding-inline: 16px !important;
    font-size: 14px !important;
  }

  footer.footer-client-simplified,
  footer.imp16-footer {
    grid-template-columns: 1fr !important;
    padding: 28px 20px 30px !important;
    gap: 18px !important;
    align-items: start !important;
  }

  footer.footer-client-simplified .footer-contact,
  footer.imp16-footer .imp16-footer-contact {
    display: grid !important;
    grid-template-columns: 1fr !important;
    justify-content: stretch !important;
    gap: 9px !important;
  }

  footer.footer-client-simplified .footer-contact a,
  footer.imp16-footer .imp16-footer-contact a {
    width: 100% !important;
    max-width: 100% !important;
    justify-content: flex-start !important;
    font-size: 15px !important;
  }
}
