/* Three brand colours only. Layout, scripts and interaction targets are retained. */
@layer ppsPalette {
  :root {
    --surface-dark: #151b17 !important;
    --surface-light: #f1f4f2 !important;
    --surface-ink: #151b17 !important;
    --surface-muted: #151b17 !important;
    --ink: #151b17 !important;
    --ink-soft: #151b17 !important;
    --paper: #f1f4f2 !important;
    --white: #f1f4f2 !important;
    --signal: #b1e80e !important;
    --signal-strong: #b1e80e !important;
    --accent: #b1e80e !important;
  }
  *, *::before, *::after {
    box-shadow: none !important;
    text-shadow: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    /* Keep motion, but do not interpolate hover paints into extra colours. */
    transition-property: transform, opacity, visibility, max-height, height, width, grid-template-rows, clip-path !important;
  }
  input, select, textarea { accent-color: #b1e80e; caret-color: #151b17; color: #151b17 !important; }
  input::placeholder, textarea::placeholder { color: #151b17 !important; opacity: 1 !important; }
  :focus-visible { outline-color: #151b17; }
  ::selection { background: #b1e80e; color: #151b17; }
  :is(a.button, button.button, .submit-button, .service-offer-cta, .legal-inline-button,
      .nav-quote-link, .cookie-button, .proof-viewer-close) {
    transition: transform 180ms cubic-bezier(.2,.75,.25,1) !important;
  }
  :is(.button-primary, .submit-button, .service-offer-cta, .legal-inline-button,
      .nav-quote-link, .cookie-action-decision, .proof-viewer-close) {
    background: #b1e80e !important;
    color: #151b17 !important;
  }
  :is(.button-primary, .submit-button, .service-offer-cta, .legal-inline-button,
      .nav-quote-link, .cookie-action-decision):is(:hover, :focus-visible) {
    background: #151b17 !important;
    color: #f1f4f2 !important;
    outline: 1px solid #b1e80e;
    outline-offset: -1px;
  }
  :is(.button:not(.button-primary), .cookie-action-secondary):is(:hover, :focus-visible) {
    background: #b1e80e !important;
    color: #151b17 !important;
  }
  :is(.desktop-nav > a:not(.nav-quote-link), .nav-dropdown-trigger,
      .nav-mega-item, .mobile-nav a, .language-options a):is(:hover, :focus-visible),
  .nav-dropdown:is(:hover, :focus-within) > .nav-dropdown-trigger {
    background: #b1e80e !important;
    color: #151b17 !important;
  }
  :is(.nav-mega-item, .language-options a):is(:hover, :focus-visible) :is(span, strong, small) {
    color: #151b17 !important;
  }
  .language-options a[aria-current="page"] { background: #151b17 !important; color: #f1f4f2 !important; }
  .language-options a[aria-current="page"] :is(span, strong) { color: #f1f4f2 !important; }
  .language-options a[aria-current="page"]:is(:hover, :focus-visible),
  .language-options a[aria-current="page"]:is(:hover, :focus-visible) :is(span, strong) {
    background: #b1e80e !important; color: #151b17 !important;
  }
  .pipeline-proof-frame > span { background: #151b17 !important; color: #f1f4f2 !important; }
  .engagement-route-number, .solution-path-card h3 { color: #151b17 !important; }
  .service-buyer-action > p { color: #151b17 !important; }
  .problem-card :is(.problem-number, .inline-label, a) { color: #151b17 !important; }
  .cookie-modal-backdrop, .proof-viewer::backdrop { background: #151b17 !important; }
  .cookie-modal-backdrop { color: #151b17 !important; }
  .cookie-dialog { background: #f1f4f2 !important; color: #151b17 !important; }
  .cookie-dialog :is(h2, h3, p, label, .cookie-kicker, .sr-only) { color: #151b17 !important; }
  .cookie-switch input:disabled + span { opacity: 1 !important; }
  @media (prefers-reduced-motion: reduce) {
    :is(a.button, button.button, .submit-button, .service-offer-cta, .legal-inline-button,
        .nav-quote-link, .cookie-button, .proof-viewer-close) { transition: none !important; }
  }
}

/* Movement-only feedback outside navigation and action buttons. */
@layer ppsPalette {
  :is(main a:not([class]), .related-problems-link, .proof-viewer-original,
      .site-footer a:not(.footer-brand)):not(.connected-path a):not(.problem-guide-nav a):not(.problem-guide-decision a) {
    position: relative;
    top: 0;
    transition: top 180ms cubic-bezier(.2,.75,.25,1) !important;
  }
  :is(main a:not([class]), .related-problems-link, .proof-viewer-original,
      .site-footer a:not(.footer-brand)):not(.connected-path a):not(.problem-guide-nav a):not(.problem-guide-decision a):is(:hover, :focus-visible) {
    top: -2px;
  }
  :is(.connected-path > li > a, .deliverable-entry, .support-card,
      .engagement-route-card, .solution-path-card, .problem-card,
      .related-problem-card, .proof-image-link, .conf-list > li,
      .faq-item > summary, .problem-guide-nav a, .problem-guide-decision a) {
    transition: transform 180ms cubic-bezier(.2,.75,.25,1) !important;
  }
  :is(.connected-path > li > a, .deliverable-entry, .support-card,
      .engagement-route-card, .solution-path-card, .problem-card,
      .related-problem-card, .proof-image-link, .conf-list > li,
      .faq-item > summary, .problem-guide-nav a, .problem-guide-decision a):is(:hover, :focus-visible) {
    transform: translateY(-3px) !important;
  }
  .nav-dropdown-menu .nav-mega-desk {
    grid-column: 1 / -1 !important;
    grid-template-columns: 112px minmax(0, 1fr) !important;
    gap: 20px !important;
    padding: 18px !important;
    background: #151b17 !important;
    color: #f1f4f2 !important;
  }
  .nav-mega-desk .nav-menu-visual { width: 112px !important; height: 76px !important; }
  .nav-mega-desk .nav-menu-copy,
  .nav-mega-desk .nav-menu-copy :is(strong, span) { color: #f1f4f2 !important; }
  .nav-dropdown-menu .nav-mega-desk:is(:hover, :focus-visible) {
    background: #b1e80e !important;
    color: #151b17 !important;
  }
  .nav-mega-desk:is(:hover, :focus-visible) .nav-menu-copy,
  .nav-mega-desk:is(:hover, :focus-visible) .nav-menu-copy :is(strong, span) {
    color: #151b17 !important;
  }
  @media (prefers-reduced-motion: reduce) {
    :is(main a:not([class]), .related-problems-link, .proof-viewer-original,
        .site-footer a:not(.footer-brand)) { top: 0 !important; transition: none !important; }
    :is(.connected-path > li > a, .deliverable-entry, .support-card,
        .engagement-route-card, .solution-path-card, .problem-card,
        .related-problem-card, .proof-image-link, .conf-list > li,
        .faq-item > summary, .problem-guide-nav a, .problem-guide-decision a) {
      transition: none !important;
      transform: none !important;
    }
  }
}

/* Two clearly scoped desk options; the homepage desk mirrors the dark menu row. */
@layer ppsPalette {
  .homepage #services .deliverable-entry-desk {
    background: #151b17 !important;
    color: #f1f4f2 !important;
    padding: clamp(24px, 2.7vw, 36px) 24px !important;
    grid-template-columns: clamp(118px, 10vw, 142px) minmax(0, 1fr) minmax(240px, auto) !important;
  }
  .homepage #services .deliverable-entry-desk :is(p, span, strong, small) {
    color: #f1f4f2 !important;
  }
  .homepage #services .deliverable-entry-desk img {
    background: #f1f4f2 !important;
    padding: 8px !important;
    box-sizing: border-box;
  }
  .desk-pricing { display: grid !important; gap: 18px !important; margin: 0 !important; }
  .desk-pricing .desk-price-option { display: grid !important; gap: 4px !important; }
  .desk-pricing .desk-price-option > span {
    font-family: "IBM Plex Sans", sans-serif !important;
    font-size: 17px !important;
    font-weight: 400 !important;
    line-height: 1.35 !important;
    letter-spacing: normal !important;
    text-transform: none !important;
  }
  .desk-pricing .desk-price-option > strong {
    font-family: "IBM Plex Sans", sans-serif !important;
    font-size: 24px !important;
    font-weight: 600 !important;
    line-height: 1.3 !important;
    margin: 0 !important;
  }
  .desk-pricing .desk-price-option small { font-size: 17px !important; font-weight: 400 !important; margin-left: 4px; }
  .service-page-summary .desk-pricing { margin-top: 18px !important; }
  .service-page-summary .desk-scope-note { margin-top: 18px !important; font-size: 17px !important; }
  @media (max-width: 900px) and (min-width: 721px) {
    .homepage #services .deliverable-entry-desk { grid-template-columns: 118px minmax(0, 1fr) !important; }
    .homepage #services .deliverable-entry-desk .desk-pricing {
      grid-column: 2 !important; grid-row: 2 !important;
      text-align: left !important; justify-self: start !important;
    }
  }
  @media (max-width: 720px) {
    .homepage #services .deliverable-entry-desk {
      grid-template-columns: 76px minmax(0, 1fr) !important;
      padding: 24px 18px !important;
      column-gap: 16px !important;
      row-gap: 24px !important;
    }
    .homepage #services .deliverable-entry-desk img { width: 76px !important; }
    .homepage #services .deliverable-entry-desk .desk-pricing {
      grid-column: 1 / -1 !important; grid-row: 2 !important;
      text-align: left !important; justify-self: start !important;
    }
  }
}
