/* Comfortable mobile reading without changing the editorial identity.
 * Rem sizes respect the reader's font preference. No zoom restrictions. */
:root { --green: #16745f; }
.dark .split-text .flow > p { color: #d0cdda; }
.dark .split-text .flow > .eyebrow { color: var(--mint); }
.fluentform .ff-el-form-control { border-color: #787b80 !important; }
.fluentform .ff-el-form-control::placeholder { color: #65676c; opacity: 1; }
.fluentform .ff-el-is-error .ff_t_c, .fluentform .ff-el-is-error .ff_t_c a { color: #a42424 !important; }

@media screen and (max-width: 1000px) {
  body { font-size: 1.125rem; }
  main, .site-footer { overflow-wrap: anywhere; }
  main .wp-block-group > *, .footer-grid > * { min-width: 0; }
  .wp-block-buttons > .wp-block-button, .contact-email a { max-width: 100%; }
  .grid-4, .ai-benefits { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  /* Main prose stays at 18px; labels and supporting copy remain distinct. */
  .wp-site-blocks .wp-block-post-content p.wp-block-paragraph:where(:not(.eyebrow, .editorial-kicker, .statement, .quote, .step-number, .ai-prompt, .ai-benefit-number, .section-index, .row-number, .advice-number)) {
    font-size: 1.125rem;
    line-height: 1.7;
  }
  .wp-site-blocks .wp-block-post-content li { font-size: 1.125rem; line-height: 1.7; }
  .wp-site-blocks .wp-block-post-content p.hero-manifesto { font-size: 1.25rem; }
  .wp-site-blocks .wp-block-post-content p.contact-email { font-size: 1.25rem; }
  .wp-site-blocks .wp-block-post-content .ai-case-control { font-size: 1rem !important; }
  .wp-site-blocks .wp-block-post-content p:is(.image-credit, .ai-caption, .breadcrumb, .ai-flow-subtitle) {
    font-size: .875rem;
    line-height: 1.6;
  }
  .wp-site-blocks .wp-block-post-content p:is(.ai-flow-label, .ai-case-label) {
    font-size: .8125rem;
    line-height: 1.6;
    letter-spacing: .06em;
  }
  .wp-site-blocks .wp-block-post-content p:is(.eyebrow, .editorial-kicker, .section-index, .advice-number, .row-number, .ai-benefit-number) {
    font-size: .8125rem;
    line-height: 1.6;
    letter-spacing: .07em;
  }
  .wp-site-blocks .wp-block-post-content p:is(.product-preview p, .local-note, .privacy-summary, .ai-deliverable) {
    font-size: 1rem;
    line-height: 1.7;
  }
  .tag { font-size: .8125rem; }
  .process-step h3, .ai-benefit h3, .ai-measure-row h3,
  .contact-details h2, .contact-details h3 { font-size: 1.25rem; line-height: 1.4; }
  .faq summary, .ai-faq .faq summary { font-size: 1.125rem; line-height: 1.6; min-height: 44px; }
  .faq details { padding-block: 20px; }

  /* Targets are generous even when the visible link is only one short line. */
  .wp-block-buttons .wp-block-button__link,
  .editorial-copy .wp-block-button__link,
  .ai-opening .is-style-outline .wp-block-button__link {
    font-size: 1rem;
    line-height: 1.5;
    min-height: 48px;
    padding: 14px 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: normal;
  }
  .advice-home .editorial-copy .is-style-outline .wp-block-button__link {
    padding: 10px 0;
  }
  .ai-opening .is-style-outline .wp-block-button__link { padding: 10px 0; }
  .text-link a, .advice-product .text-link a, .ai-reception .text-link a {
    font-size: 1rem;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    padding-block: 8px;
    line-height: 1.6;
  }
  .contact-email a, .breadcrumb a { display: inline-flex; align-items: center; min-height: 44px; }
  .wp-block-navigation__responsive-container-open,
  .wp-block-navigation__responsive-container-close { min-width: 44px; min-height: 44px; padding: 10px; }
  .wp-block-navigation .is-menu-open .wp-block-navigation-item__content { font-size: 1.125rem; min-height: 48px; }

  /* Labels, privacy consent and validation must be as readable as the inputs. */
  .fluentform .ff-el-input--label label,
  .fluentform .ff-el-form-control,
  .fluentform .ff-btn-submit,
  .fluentform .ff-el-tc,
  .fluentform .text-danger { font-size: 1rem !important; line-height: 1.6 !important; }
  .fluentform .ff-el-form-control { min-height: 50px; }
  .fluentform .ff-el-form-check-label { min-height: 44px; padding-block: 8px; }
  .fluentform input[type=checkbox] { width: 22px; height: 22px; vertical-align: middle; margin-right: 8px; accent-color: var(--violet-text); }
  .fluentform .ff-btn-submit { min-height: 50px; max-width: 100%; white-space: normal; overflow-wrap: anywhere; }

  .footer-intro, .footer-links p { font-size: 1rem; line-height: 1.7; }
  .footer-heading { font-size: .8125rem; line-height: 1.6; }
  .footer-links p { margin-bottom: 4px; }
  .footer-links a, .footer-bottom a { display: inline-flex; align-items: center; min-height: 44px; padding-block: 8px; }
  .footer-bottom { font-size: .875rem; gap: 16px; }
  .footer-bottom p { line-height: 1.7; }
  .footer-bottom a { margin-right: 4px; }

  /* The consent plugin otherwise inherits WordPress's shrinking fluid body. */
  #cc_div { font-size: 1rem; }
  #cc_div :is(.c-bn, .b-tl, .cc-link) { min-height: 44px; min-width: 44px; font-size: 1rem; line-height: 1.5; }
  #cc_div :is(#c-txt, .p, .c-txt, .b-t) { font-size: 1rem; line-height: 1.6; }
  /* Let the consent dialog reserve real space for larger button labels. */
  #cc_div #s-inr { display: flex; flex-direction: column; padding: 0 !important; }
  #cc_div #s-hdr { position: relative; height: auto; min-height: 76px; flex-shrink: 0; }
  #cc_div #s-bl { flex: 1; min-height: 0; height: auto; overflow-y: auto; }
  #cc_div #s-bns { position: static; height: auto; flex-shrink: 0; display: grid; gap: 8px; padding: 16px; }
  #cc_div #s-bns .c-bn { width: 100%; margin: 0; white-space: normal; line-height: 1.5; }
  #cc_div #s-bl .b-tl.exp { font-size: 1rem; }
  .cookie-settings-link { min-height: 48px; font-size: 1rem; padding: 10px 14px; }
}

@media screen and (max-width: 600px) {
  .grid-4, .ai-benefits, .advice-products, .footer-grid { grid-template-columns: minmax(0, 1fr); }
  .advice-row { grid-template-columns: 24px minmax(0, 1fr); }
  .advice-products { gap: 36px; }
  .footer-grid { gap: 28px; }
  .footer-heading { margin-bottom: 10px; }
  .process-step { padding-right: 0; }
  .ai-benefit-number { margin-bottom: 14px; }
  .ai-case-today, .ai-case-solution { padding-left: 0; }
  .contact-form { padding: 24px 20px; }
  .ai-flow-step { padding-inline: 16px; }
}

@media screen and (max-width: 380px) {
  .contact-form { padding-inline: 16px; }
  .ai-workflow { padding-inline: 16px; }
  .advice-health-note, .product-card, .note-card { padding-inline: 22px; }
}
