/*
 * 24K Consulting — mobile typography refinement, post V13.9 preview.
 * Purpose: readable mobile type hierarchy across IT/EN without rewriting content.
 * Applies only to widths <= 700px; desktop/tablet above 700px remain unchanged.
 * Additive layer: intentionally supersedes legacy and V13.9 mobile font sizes.
 */
@media (max-width: 700px) {
  :root {
    --24k-mobile-body-v140: 19px;
    --24k-mobile-lead-v140: 20px;
    --24k-mobile-caption-v140: 17px;
    --24k-mobile-label-v140: 16px;
    --24k-mobile-subhead-v140: 23px;
  }

  /* 1 — Small editorial labels share a restrained, readable scale. */
  body.v13-site main .practice-eyebrow,
  body.v13-site main .v13-kicker,
  body.v13-site main .eyebrow,
  body.v13-site main .connected-eyebrow-v1228,
  body.v13-site main .v1265-context-eyebrow,
  body.v13-site main .v1376-eyebrow,
  body.v13-site main .v1376-case-type,
  body.v13-site main .smart-step,
  body.v13-site main .v1259-sector-step {
    font-size: var(--24k-mobile-label-v140) !important;
    line-height: 1.42 !important;
    letter-spacing: .045em !important;
  }
  /* A former home-only rule made this peer label unusually small. */
  body.v13-page-home #top p.v13-kicker,
  body.v13-page-home.home-focused main #approach .v1255-method-detail .v1255-method-copy > p.practice-eyebrow {
    font-size: var(--24k-mobile-label-v140) !important;
    line-height: 1.42 !important;
    letter-spacing: .045em !important;
  }

  /* 2 — Reading text: same rank, same size and a comfortable line rhythm. */
  body.v13-site main p:not(.v13-kicker):not(.v13-summary):not(.practice-eyebrow):not(.eyebrow):not(.v1376-eyebrow):not(.v1376-case-type):not(.v1265-context-eyebrow):not(.connected-eyebrow-v1228):not(.smart-step):not(.v1259-sector-step):not(.trust-method-subtitle):not(.credibility-lead):not(.connected-description-v1228):not(.market-story-disclaimer-v1254),
  body.v13-site main li {
    font-size: var(--24k-mobile-body-v140) !important;
    line-height: 1.58 !important;
  }
  body.v13-site main .v13-hero .v13-summary,
  body.v13-page-home main #top .v13-summary,
  body.v13-page-cross-border main .connected-description-v1228,
  body.v13-page-home main #value-in-practice p.v1376-intro {
    font-size: var(--24k-mobile-lead-v140) !important;
    line-height: 1.54 !important;
    letter-spacing: normal !important;
  }
  body.v13-page-home main #value-in-practice p.v138-case-paragraph {
    font-size: var(--24k-mobile-body-v140) !important;
    line-height: 1.57 !important;
  }
  body.v13-page-home.home-focused #approach .engagement-step-grid article p,
  body.v13-page-home.home-focused #approach .v1255-method-detail .v1255-method-copy > p:not(.practice-eyebrow),
  body.v13-page-home main #approach .v138-approach-explainer {
    font-size: var(--24k-mobile-body-v140) !important;
    line-height: 1.58 !important;
  }
  body.v13-page-home main #profile p.credibility-lead,
  body.v13-page-home main #profile p.v1272-identity-role,
  body.v13-page-home main #contact .opportunity > p {
    font-size: 19.5px !important;
    line-height: 1.56 !important;
  }
  body.v13-page-home main #profile p.v1272-identity-role {font-size:18px !important;line-height:1.5 !important;}
  body.v13-page-home main #contact .opportunity > p {font-size:21px !important;line-height:1.56 !important;}
  body.v13-page-home main #profile p.v1272-identity-overline {font-size:17px !important;line-height:1.5 !important;}

  /* 3 — Hierarchy: heroes > main sections > peer focus > cards/subheads. */
  body.v13-site main h1,
  body.v13-site main .v13-hero h1,
  body.v13-site.v13-page-home main .v13-hero-home h1 {font-size:clamp(33px,9vw,36px) !important;line-height:1.13 !important;}
  body.v13-page-home main #value-in-practice h2,
  body.v13-page-home main #expertise h2,
  body.v13-page-home main #approach h2,
  body.v13-page-home main #contact h2,
  body.v13-page-home main #profile h2 {font-size:32px !important;line-height:1.2 !important;}
  body.v13-page-modernization main .v138-sector-focus > h2,
  body.v13-page-modernization main .v1266-tourism-feature h2,
  body.v13-page-modernization main .v1263-agri-feature h2 {font-size:32px !important;line-height:1.19 !important;}
  body.v13-page-modernization main .coach-stories-intro > h2,
  body.v13-page-modernization main .practice-sectionhead > h2,
  body.v13-page-modernization main .v1264-benefits > h2,
  body.v13-site main #crossborder-services h2,
  body.v13-site main #strategic-markets h2,
  body.v13-site main #connected-markets h2,
  body.v13-site main #market-story h2,
  body.v13-site main .market-topics-v1254 > h2,
  body.v13-site main .v1259-usa-market > h2,
  body.v13-site main .business-growth-v1254 > h2,
  body.v13-site main .v1259-logistics-routes > h2,
  body.v13-site main .practice-sectionhead > h2 {font-size:30px !important;line-height:1.22 !important;}
  body.v13-site main .practice-bands > h2,
  body.v13-site main .practice-offer > h2,
  body.v13-site main .v1264-offer > h2,
  body.v13-site main .practice-trust > h2,
  body.v13-site main .practice-final > h2,
  body.v13-site main .practice-related > h2,
  body.v13-page-modernization main section.practice-final h2 {font-size:28px !important;line-height:1.25 !important;}
  body.v13-page-home main #value-in-practice .v1376-case h3,
  body.v13-page-home main #approach .engagement-step-grid article h3,
  body.v13-page-home main #approach .v1255-method-copy h3,
  body.v13-site main .practice-steps article h3,
  body.v13-site main .practice-steps > article h3 {font-size:var(--24k-mobile-subhead-v140) !important;line-height:1.3 !important;}
  body.v13-page-home main #expertise .v1234c-core-card h3 {font-size:25px !important;line-height:1.25 !important;}
  body.v13-page-home main #expertise .v1234c-core-card .v13762-card-subtitle {font-size:21px !important;line-height:1.35 !important;}
  body.v13-page-home main #expertise .v1234c-core-card .v1234c-description {font-size:19px !important;line-height:1.58 !important;}
  body.v13-page-home main #expertise .v1234c-core-card .v1234c-action {font-size:17.5px !important;line-height:1.4 !important;}
  body.v13-page-home main #approach .trust-method-subtitle {font-size:22px !important;line-height:1.37 !important;}
  body.v13-page-modernization main .v1259-sector-family h3 {font-size:22px !important;line-height:1.31 !important;}
  body.v13-site main .market-topics-v1254 .market-topic-v1254 h3,
  body.v13-site main #strategic-markets .v1259-market-card h3 {font-size:24px !important;line-height:1.28 !important;}
  body.v13-page-privacy main .privacy-notice h3 {font-size:21px !important;line-height:1.34 !important;}

  /* 4 — Captions, labels, help and links must never become microscopic. */
  body.v13-site main .market-story-disclaimer-v1254,
  body.v13-site main figcaption,
  body.v13-site main .field-help,
  body.v13-site main small,
  body.v13-site main .small-note,
  body.v13-site main .v1259-markets-note,
  body.v13-site main .connected-motto-v1228 {
    font-size:var(--24k-mobile-caption-v140) !important;
    line-height:1.53 !important;
  }
  body.v13-page-home #top .v13-actions .v13-cta,
  body.v13-site main .v13-cta,
  body.v13-site main .btn,
  body.v13-site main .v1255-method-action,
  body.v13-site main .practice-related a,
  body.v13-site main .related-links a,
  body.v13-site main .v1265-context-path a,
  body.v13-page-home main #profile a.credibility-primary,
  body.v13-page-home main #profile a.credibility-secondary,
  body.v13-page-home main #value-in-practice a.v1376-case-cta {
    font-size:17px !important;
    line-height:1.45 !important;
  }
  body.v13-page-modernization main .v1259-sector-button {
    font-size:17px !important;
    line-height:1.4 !important;
    white-space:normal;
    min-height:46px;
  }
  body.v13-site main label {font-size:17px !important;line-height:1.42 !important;}
  body.v13-site main input:not([type="hidden"]),
  body.v13-site main select,
  body.v13-site main textarea {font-size:18px !important;line-height:1.48 !important;}

  /* 5 — Navigation, utility labels and footer, adjusted but not oversized. */
  body.v13-site .site-header nav.menu a {font-size:16px !important;line-height:1.35 !important;}
  body.v13-site .site-header nav.menu {gap:clamp(7px,2.6vw,13px) !important;}
  body.v13-site .site-header .lang-switch a {font-size:15.5px !important;line-height:1.35 !important;}
  body.v13-site .site-footer,
  body.v13-site .site-footer a {font-size:15.5px !important;line-height:1.5 !important;}
}

/* Very narrow phones: preserve the scale, modestly manage headline wrapping. */
@media (max-width:350px) {
  body.v13-site main h1,
  body.v13-site main .v13-hero h1,
  body.v13-site.v13-page-home main .v13-hero-home h1 {font-size:33px !important;}
  body.v13-page-home main #value-in-practice h2,
  body.v13-page-home main #expertise h2,
  body.v13-page-home main #approach h2,
  body.v13-page-home main #contact h2,
  body.v13-page-home main #profile h2 {font-size:30px !important;}
  body.v13-page-modernization main .v138-sector-focus > h2,
  body.v13-page-modernization main .v1266-tourism-feature h2,
  body.v13-page-modernization main .v1263-agri-feature h2 {font-size:30px !important;}
  body.v13-site .site-header nav.menu a {font-size:15px !important;}
}

/* Error page does not use the shared v13-site body. */
@media (max-width:700px) {
  body:not(.v13-site) .panel .kicker {font-size:16px !important;}
  body:not(.v13-site) .panel p {font-size:19px !important;line-height:1.58 !important;}
  body:not(.v13-site) a {font-size:17px !important;}
}

/* Additional audit: some descriptions are spans/summary/strong, not <p> tags.
   Normalize their actual semantic roles instead of scaling them indiscriminately. */
@media (max-width:700px) {
  body.v13-site .site-header .brand .business-name {
    font-size:15px !important;
    line-height:1.35 !important;
  }
  body.v13-site main a.back,
  body.v13-site main .coach-story-open-label,
  body.v13-site main .market-story-caption-v1254,
  body.v13-site main .v1259-region-code,
  body.v13-site main .connected-markets-band-v1228 span,
  body.v13-site main .coach-story-sector,
  body.v13-site main .practice-trust strong {
    font-size:16px !important;
    line-height:1.45 !important;
  }
  body.v13-page-modernization main .coach-story-teaser,
  body.v13-page-cross-border main .crossborder-landing-choice .choice-content > span {
    font-size:18px !important;
    line-height:1.5 !important;
  }
  body.v13-site main details summary {font-size:17px !important;line-height:1.45 !important;}
}
@media (max-width:700px) {
  body.v13-page-modernization main .v1267-tourism-value-grid h4 {
    font-size:19px !important;
    line-height:1.35 !important;
  }
  body.v13-page-modernization main .v1264-benefits li span {
    font-size:19px !important;
    line-height:1.55 !important;
  }
}
