/* Per-job pricing, in the existing three colours and square-edged layout. */
@layer ppsPalette {
  .job-rates { display: grid !important; gap: 10px !important; margin: 0 !important; }
  .job-rates .job-rate { display: flex !important; justify-content: flex-end; align-items: baseline; gap: 8px !important; }
  .job-rates .job-rate strong { margin: 0 !important; font: 600 26px/1.2 "IBM Plex Sans", sans-serif !important; white-space: nowrap; }
  .job-rates .job-rate > span { font: 400 17px/1.35 "IBM Plex Sans", sans-serif !important; text-transform: none !important; letter-spacing: normal !important; }
  .service-page-summary .job-rates { margin-top: 18px !important; }
  .service-page-summary .job-rate, .service-offer-price.job-rates .job-rate { justify-content: flex-start; }
  .service-page-summary > strong { font-size: 18px !important; }
  .job-definition { margin: 20px 0 !important; font-size: 17px !important; line-height: 1.5 !important; }
  .homepage #services .deliverable-entry-desk .desk-calculator-link { display: block; margin-top: 14px; font-size: 17px !important; line-height: 1.4; text-decoration: underline; text-underline-offset: 5px; }
  .homepage #services .deliverable-entry-desk .desk-volume-note { grid-column: 2 / -1 !important; grid-row: 2 !important; display: block; font-size: 16px !important; line-height: 1.4; }
  .homepage #services .deliverable-entry-desk .job-rates .job-rate > span,
  .homepage #services .deliverable-entry-desk .desk-volume-note { color: #f1f4f2 !important; }

  .prepress-calculator-section { padding: clamp(44px, 5vw, 72px) 0; background: #f1f4f2; color: #151b17; scroll-margin-top: 110px; }
  .calculator-heading { margin-bottom: 30px; }
  .calculator-heading h2 { max-width: 760px; margin: 0 0 12px; font-size: clamp(30px, 3.5vw, 46px); line-height: 1.1; letter-spacing: -.035em; }
  .calculator-heading p { margin: 0; font-size: 19px; line-height: 1.45; }
  .prepress-calculator { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, .8fr); gap: clamp(32px, 6vw, 88px); align-items: start; }
  .calculator-inputs label { display: block; color: #151b17; }
  .calculator-inputs label > span { display: block; margin-bottom: 10px; font-size: 17px; font-weight: 500; line-height: 1.35; }
  .calculator-inputs .calculator-period { display: flex; gap: 16px; align-items: center; margin-bottom: 24px; }
  .calculator-period > span { margin: 0 !important; }
  .calculator-period select { width: auto; min-width: 148px; min-height: 52px; padding: 11px 34px 11px 16px; background: #b1e80e !important; color: #151b17 !important; border: 1px solid #151b17; border-radius: 0 !important; font: inherit; font-size: 18px; font-weight: 600 !important; cursor: pointer; }
  .calculator-volumes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
  .calculator-volumes input { box-sizing: border-box; width: 100%; height: auto; min-height: 56px; padding: 10px 12px; border: 1px solid #151b17; border-radius: 0 !important; background: #f1f4f2 !important; color: #151b17 !important; font: 500 24px/1.3 "IBM Plex Sans", sans-serif !important; }
  .calculator-volumes input:focus-visible, .calculator-period select:focus-visible { outline: 2px solid #151b17; outline-offset: 3px; }
  .calculator-rule { margin: 20px 0 0; font-size: 16px; line-height: 1.5; max-width: 620px; }
  .calculator-result { min-width: 0; padding-top: 2px; }
  .calculator-result-label { margin: 0 0 12px; font-size: 18px; line-height: 1.35; }
  .calculator-result output { display: block; font: 600 clamp(30px, 3.6vw, 46px)/1.15 "IBM Plex Sans", sans-serif; letter-spacing: -.035em; overflow-wrap: anywhere; }
  .calculator-total-highlight { box-sizing: border-box; padding: clamp(18px, 2vw, 24px); background: #b1e80e !important; color: #151b17 !important; border-radius: 0 !important; }
  .calculator-total-highlight .calculator-result-label { margin: 0 0 10px !important; color: #151b17 !important; font-weight: 500 !important; }
  .calculator-total-highlight output { margin: 0 !important; color: #151b17 !important; font-size: clamp(32px, 4vw, 52px) !important; line-height: 1.1 !important; }
  .calculator-plan { margin: 14px 0 22px; font-size: 16px; line-height: 1.45; }
  .calculator-breakdown { display: grid; gap: 12px; margin: 0; }
  .calculator-breakdown > div { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 6px 18px; }
  .calculator-breakdown dt, .calculator-breakdown dd { margin: 0; font-size: 17px; line-height: 1.4; }
  .calculator-breakdown dd { font-weight: 500; }
  .calculator-note { margin: 26px 0 20px; max-width: 780px; font-size: 16px; line-height: 1.5; }
  .calculator-contact { margin: 0; }
  .desk-exclusions { margin: 20px 0 !important; }
  @media (max-width: 900px) and (min-width: 721px) {
    .homepage #services .deliverable-entry-desk .desk-volume-note { grid-row: 3 !important; }
    .homepage #services .deliverable-entry-desk .job-rates { justify-self: start !important; }
    .homepage #services .deliverable-entry-desk .job-rate { justify-content: flex-start; }
  }
  @media (max-width: 720px) {
    .homepage #services .job-rates .job-rate { justify-content: flex-start; }
    .homepage #services .deliverable-entry-desk .job-rates { grid-column: 1 / -1 !important; grid-row: 2 !important; }
    .homepage #services .deliverable-entry-desk .desk-volume-note { grid-column: 1 / -1 !important; grid-row: 3 !important; }
    .prepress-calculator { grid-template-columns: minmax(0, 1fr); gap: 32px; }
    .calculator-heading { margin-bottom: 26px; }
    .calculator-volumes { gap: 16px; }
    .calculator-inputs label > span { font-size: 16px; }
    .calculator-result { padding-top: 24px; border-top: 1px solid #151b17; }
    .calculator-contact { width: 100%; }
  }
}

@layer ppsPalette {
  body.scan-focused.homepage #services .deliverable-entry-desk .job-rates {
    min-width: 0;
    max-width: 100%;
  }
  body.scan-focused.homepage #services .deliverable-entry-desk .job-rate > span {
    min-width: 0;
    overflow-wrap: anywhere;
    hyphens: auto;
  }
  body.scan-focused.homepage #services .deliverable-entry-desk .job-rate {
    display: grid !important;
    grid-template-columns: 52px auto minmax(0, 1fr);
    align-items: center;
    gap: 10px !important;
    text-align: left;
  }
  body.scan-focused.homepage #services .deliverable-entry-desk .job-rate .desk-rate-visual {
    grid-column: auto !important;
    grid-row: auto !important;
    width: 52px !important;
    height: 44px !important;
    padding: 3px !important;
    margin: 0;
    object-fit: contain;
  }
  .calculator-result[data-quote-state="custom"] output {
    font-size: clamp(28px, 3vw, 40px) !important;
  }
}

/* Optional production quantities use the existing calculator layout. */
@layer ppsPalette {
  .calculator-addons { min-width: 0; margin: 28px 0 0; padding: 0; border: 0; }
  .calculator-addons legend { padding: 0; font: 600 18px/1.35 "IBM Plex Sans", sans-serif; color: #151b17; }
  .calculator-addons > p { margin: 8px 0 18px; font-size: 16px; line-height: 1.45; color: #151b17; }
  .calculator-breakdown > div[hidden] { display: none; }
}
.prepress-desk-page .desk-base-scope { margin: 22px 0 0; max-width: 960px; font-size: 18px; line-height: 1.5; }
