/* Shared phone scale. Desktop and tablet presentation retain their native styles. */
@media (max-width: 680px) {
  :root {
    --cc-mobile-card-space: 20px;
    --cc-mobile-title: clamp(34px, 9.4vw, 40px);
    --cc-mobile-section-title: clamp(26px, 7.2vw, 30px);
  }

  html body :is(main#primary#primary, main) h1 {
    font-size: var(--cc-mobile-title) !important;
    line-height: 1.08 !important;
    overflow-wrap: normal !important;
    word-break: normal !important;
  }
  html body :is(main#primary#primary, main, .cc-footer-newsletter) h2 {
    font-size: var(--cc-mobile-section-title) !important;
    line-height: 1.16 !important;
  }
  /* Reading headings keep the article's smaller, comfortable scale. */
  html body main.cc-single-article h2 { font-size: 26px !important; line-height: 1.2 !important; }

  html body :is(main#primary#primary, main, .cc-footer-newsletter, .cc-apply-modal, .cc-job-apply-modal)
  :is(input:not([type=checkbox]):not([type=radio]):not([type=hidden]), textarea, select) {
    font-size: 16px !important;
  }

  /* Let the value shrink/wrap at word boundaries, never split a short fact label. */
  html body :is(main#primary#primary, main) .cc-job-card__row {
    display: grid !important;
    grid-template-columns: max-content minmax(0, 1fr) !important;
    column-gap: 12px !important;
    align-items: center !important;
  }
  html body :is(main#primary#primary, main) .cc-job-card__label {
    width: auto !important;
    min-width: 0 !important;
    white-space: nowrap !important;
    word-break: normal !important;
    overflow-wrap: normal !important;
    letter-spacing: 0 !important;
    font-size: 12px !important;
  }
  html body :is(main#primary#primary, main) .cc-job-card__value {
    min-width: 0 !important;
    width: auto !important;
    white-space: normal !important;
    word-break: normal !important;
    overflow-wrap: anywhere !important;
    line-height: 1.4 !important;
    text-align: right !important;
  }
  html body :is(main#primary#primary, main) .cc-job-card__title-wrap {
    min-height: 0 !important;
    padding-bottom: 20px !important;
    margin-bottom: 0 !important;
  }
  html body :is(main#primary#primary, main) .cc-job-card__title {
    font-size: 22px !important;
    line-height: 1.16 !important;
  }
  html body :is(main#primary#primary, main) .cc-benefit-trio__card {
    padding: 12px 8px !important;
  }
  html body :is(main#primary#primary, main) .cc-benefit-trio__heading {
    font-size: clamp(12px, 3.3vw, 14px) !important;
    line-height: 1.3 !important;
    word-break: normal !important;
    overflow-wrap: normal !important;
  }

  /* One inset for content cards; section gutters remain 16px and section rhythm 24px. */
  html body :is(main#primary#primary, main)
  :is(.cc-home-feature-mini, .cc-friendly-recruitment__step, .cc-guarantee-card,
      .cc-contact-info-card, .cc-form-card, .cc-contact-form-card) {
    padding: var(--cc-mobile-card-space) !important;
  }
  html body :is(main#primary#primary, main) .cc-form-card :is(h2,h3) {
    margin-bottom: 16px !important;
  }
  html body :is(main#primary#primary, main) .cc-form-card > p {
    margin-top: 0 !important;
  }
  html body.home :is(main#primary#primary, main) .cc-home-hero__mobile-picture {
    opacity: .24 !important;
  }
  html body.home :is(main#primary#primary, main) .cc-home-hero__mobile-photo {
    /* Decorative photo remains in its CMS-defined position, behind readable copy. */
    background-image: none !important;
  }
}
