/* Scannable entry points, using the existing three-colour palette. */
@layer ppsPalette {
  .project-entry {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 24px 40px;
    align-items: center;
    margin: 0 0 40px;
    padding: 0 0 30px;
    border-bottom: 1px solid #151b17;
    color: #151b17;
  }
  .project-entry h3 { margin: 0 0 10px; font-size: clamp(26px, 2.5vw, 34px); line-height: 1.15; }
  .project-entry p { max-width: 740px; margin: 0; font-size: 18px; line-height: 1.5; }
  .project-entry .project-entry-links { display: flex; gap: 12px 24px; flex-wrap: wrap; margin-top: 14px; font-size: 16px; }
  .project-entry-links a { color: #151b17; text-underline-offset: 4px; }
  .project-entry .button { max-width: 310px; text-align: center; }
  .homepage #who-we-help { padding-top: 64px !important; padding-bottom: 64px !important; }
  .homepage #who-we-help .support-card { padding-top: 18px !important; padding-bottom: 18px !important; }
  .homepage #who-we-help .support-bullets { margin-top: 14px !important; }
  .homepage #who-we-help .support-bullets li { font-size: 18px !important; line-height: 1.45 !important; }
  .homepage #services .deliverable-entry .deliverable-technical {
    display: block;
    margin: 7px 0 8px;
    font-family: "IBM Plex Sans", sans-serif;
    font-size: 16px !important;
    font-weight: 500;
    line-height: 1.35;
    letter-spacing: normal;
    color: #151b17 !important;
  }
  .homepage #services .deliverable-entry > div > p:not(.deliverable-title) { font-size: 17px !important; line-height: 1.45 !important; }
  .homepage #services .deliverable-entry-desk .deliverable-technical { color: #f1f4f2 !important; }
  .homepage #services .combine-offer-compact {
    display: block !important;
    margin-top: 24px !important;
    padding: 18px 0 !important;
    border: 0 !important;
  }
  .homepage #services .combine-offer-compact > img { display: none !important; }
  .homepage #services .combine-offer-compact h3 { margin: 0 0 6px !important; font-size: 21px !important; line-height: 1.3 !important; }
  .homepage #services .combine-offer-compact p { margin: 0 !important; font-size: 16px !important; line-height: 1.5 !important; }
  .homepage #services { padding-bottom: 60px !important; }
  .homepage .solution-path-card > p { font-size: 17px !important; line-height: 1.5 !important; }
  .homepage #hero .hero-meta-row p { font-size: 16px !important; line-height: 1.45 !important; }

  .case-checklist { list-style: none; display: grid; gap: 15px; margin: 22px 0 0; padding: 0; }
  .case-checklist li { display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 12px; margin: 0; padding: 0; color: #151b17 !important; }
  .case-checklist .case-step-marker { display: flex; gap: 5px; align-items: center; align-self: start; padding-top: 2px; font-size: 16px; color: #151b17 !important; }
  .case-checklist li strong { display: block; margin-bottom: 3px; font-size: 18px; line-height: 1.3; color: #151b17 !important; }
  .case-checklist li div > span { display: block; font-size: 16px; line-height: 1.4; color: #151b17 !important; }
  .case-step-marker svg { color: #151b17 !important; }
  .case-checklist li { transition: transform 180ms cubic-bezier(.2,.75,.25,1) !important; }
  .case-checklist li:hover { transform: translateX(3px); }

  .service-page-hero .service-hero-cta { display: inline-flex; margin-top: 24px; }
  .service-page-main .service-page-hero { padding-top: clamp(42px, 6vw, 80px) !important; padding-bottom: 44px !important; }
  .service-page-main .service-page-hero-inner { min-height: 0 !important; }
  .service-choice { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin-top: 4px; margin-bottom: 36px; }
  .service-choice > a { display: block; padding: 16px 0; border-bottom: 1px solid #151b17; color: #151b17; text-decoration: none; transition: transform 180ms cubic-bezier(.2,.75,.25,1) !important; }
  .service-choice > a:is(:hover, :focus-visible) { transform: translateY(-3px); }
  .service-choice strong { display: block; font-size: 20px; font-weight: 600; line-height: 1.3; }
  .service-choice span { display: block; margin-top: 6px; font-size: 17px; line-height: 1.4; }
  .service-page-main .journey-compact { padding: 42px 0 !important; }
  .service-page-main .journey-compact .service-buyer-journey-inner { display: block !important; }
  .journey-compact .service-buyer-question h2 { max-width: none; margin: 0 0 24px; font-size: 28px !important; line-height: 1.2; }
  .journey-compact .service-buyer-steps { display: grid !important; grid-template-columns: repeat(3, minmax(0, 1fr)) !important; gap: 26px !important; }
  .journey-compact .service-buyer-steps li { border: 0 !important; padding: 0 !important; }
  .journey-compact .service-buyer-steps p { font-size: 17px !important; }
  .desk-outputs { margin: 24px 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
  .desk-outputs dt { font-size: 20px; font-weight: 600; line-height: 1.3; margin-bottom: 8px; }
  .desk-outputs dd { margin: 0; font-size: 18px; line-height: 1.5; }
  .rip-boundary { font-size: 18px !important; line-height: 1.5; }

  /* Layout only: consent defaults, controls and all tag logic are untouched. */
  .cookie-banner {
    width: min(440px, calc(100% - 32px)) !important;
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 14px !important;
    padding: 18px !important;
  }
  .cookie-banner .cookie-kicker { display: none !important; }
  .cookie-banner h2 { font-size: 20px !important; line-height: 1.2 !important; }
  .cookie-banner-copy > p:last-child { margin-top: 8px !important; font-size: 16px !important; line-height: 1.4 !important; }
  .cookie-banner .cookie-banner-actions { display: grid !important; grid-template-columns: 1fr 1fr !important; gap: 10px !important; }
  .cookie-banner .cookie-button { width: 100% !important; min-width: 0 !important; min-height: 44px !important; padding: 10px !important; font-size: 15px !important; }

  @media (max-width: 900px) {
    .project-entry { grid-template-columns: minmax(0, 1fr); gap: 20px; }
    .project-entry .button { justify-self: start; }
  }
  @media (max-width: 720px) {
    .homepage #who-we-help { padding: 44px 0 !important; }
    .project-entry { margin-bottom: 26px; padding-bottom: 24px; }
    .project-entry h3 { font-size: 28px; }
    .project-entry p { font-size: 17px; }
    .project-entry .button { width: 100%; max-width: none; }
    .case-checklist { gap: 12px; margin-top: 18px; }
    .service-page-main .service-page-hero { padding-top: 34px !important; padding-bottom: 30px !important; }
    .service-page-hero .service-hero-cta { margin-top: 18px; }
    .service-choice { gap: 14px; margin-bottom: 20px; }
    .service-choice strong { font-size: 18px; }
    .service-choice span { font-size: 16px; }
    .journey-compact .service-buyer-steps { grid-template-columns: minmax(0, 1fr) !important; gap: 18px !important; }
    .desk-outputs { grid-template-columns: minmax(0, 1fr); gap: 20px; }
    .cookie-banner { width: calc(100% - 20px) !important; right: 10px !important; left: 10px !important; bottom: 10px !important; padding: 14px !important; gap: 12px !important; }
  }
  @media (prefers-reduced-motion: reduce) {
    .case-checklist li, .service-choice > a { transform: none !important; transition: none !important; }
  }
}

/* Shared spacing corrections: headings, process steps and lighter service lists. */
@layer ppsPalette {
  .service-page-main .journey-compact .service-buyer-question {
    display: block !important;
    margin: 0 0 clamp(28px, 3vw, 38px) !important;
    padding: 0 !important;
  }
  .service-page-main .journey-compact .service-buyer-question h2 {
    margin: 0 !important;
    line-height: 1.2 !important;
  }
  .service-page-main .journey-compact .service-buyer-steps {
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
    gap: 32px !important;
  }
  .service-page-main .journey-compact .service-buyer-steps li {
    display: grid !important;
    grid-template-columns: 32px minmax(0, 1fr) !important;
    align-items: start !important;
    gap: 16px !important;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
  }
  .service-buyer-steps li::marker { content: "" !important; }
  .service-buyer-steps li::before { content: none !important; }
  .service-page-main .journey-compact .service-buyer-steps li > span {
    width: 32px !important;
    height: 32px !important;
    margin: 0 !important;
    padding: 0 !important;
    font-family: "IBM Plex Sans", sans-serif !important;
    font-size: 17px !important;
    font-weight: 600 !important;
    line-height: 1 !important;
  }
  .service-page-main .journey-compact .service-buyer-steps li > div { min-width: 0; }
  .service-page-main .journey-compact .service-buyer-steps strong {
    display: block !important;
    margin: 0 !important;
    font-size: 19px !important;
    line-height: 1.35 !important;
  }
  .service-page-main .journey-compact .service-buyer-steps p {
    margin: 8px 0 0 !important;
    line-height: 1.5 !important;
  }
  .service-page-main .related-problems-section .section-heading,
  .problem-guide-main .section-heading {
    margin-bottom: clamp(28px, 3vw, 38px) !important;
  }
  .homepage #services .project-entry { border-bottom: 0 !important; }
  .homepage #services .deliverable-entry,
  .homepage #services .deliverable-entry:last-child {
    border-top: 0 !important;
    border-bottom: 0 !important;
  }
  .homepage #services .deliverable-entry + .deliverable-entry {
    border-top: 1px solid #151b17 !important;
  }
  @media (max-width: 720px) {
    .service-page-main .journey-compact .service-buyer-steps { gap: 24px !important; }
    .service-page-main .journey-compact .service-buyer-steps li { gap: 14px !important; }
  }
}
