﻿/*!
 * codex-mobile-readability.css

 * Version: 20261009v3
 *
 * Scope: phones only (@media max-width:767px).
 * Desktop (>1024px) and tablet (768-1024px) render exactly as before.
 *
 * Background: on phones lplug.min.css sets :root{--font-size:3vw}, which is
 * only 11.25px at a 375px viewport, and *{line-height:inherit} collapses every
 * line-height back to "normal" (~1.2). Body copy therefore renders below the
 * readable floor and multi-line text looks cramped.
 *
 * Loaded after lplug.min.css and the per-page sheets, so rules of equal
 * specificity win by source order.
 */

@media screen and (max-width: 767px) {

  /* 1. Base text scale: 3vw -> readable floor (375px => 15.75px, 414px => 17px) */
  :root {
    --font-size: clamp(15px, 4.2vw, 17px);
  }

  /* 2. Comfortable line-height for running text */
  body { line-height: 1.6; }
  p, pre, li, dd, dt, td, th, blockquote, figcaption { line-height: 1.6; }

  /* 3. Utility classes whose floors collapse on phones */
  .l-font12 { font-size: clamp(12px, 3.2vw, 13px); }
  .l-font14 { font-size: clamp(14px, 3.7vw, 15px); }

  /* 4. Titles / labels that wrap to 2+ lines on phones */
  .capabilities-banner-text .label { line-height: 1.3 !important; }
  .index-products-hd .name { line-height: 1.3 !important; }
  .index-products-cont > .top .name { line-height: 1.25 !important; }
  .index-capabilities .name { line-height: 1.35 !important; }

  /* 5. /products/ portfolio cards (page has its own px scale, mobile block at 700px) */
  .product-overview-v3 .po-card-link { font-size: 13px !important; line-height: 1.4 !important; }
  .product-overview-v3 .po-card-title { line-height: 1.25 !important; }
  .product-overview-v3 .po-code { font-size: 11px !important; }

  /* 6. Body-copy floor for .ccont.
     lplug.css pins .ccont to 11-14px in several phone blocks with !important, and its
     .l-font18 utility floors at 14px on phones, so the :root --font-size lift above
     never reached body copy. Re-assert a 15px floor from this later-loaded sheet:
     equal specificity + later source order beats lplug's plain utilities, and
     !important is required to beat lplug's own !important pins. Rules that live in a
     page's own inline <style> (index.html) are corrected at their source instead.

     The :not(...) list keeps the larger .l-fontNN utilities (which already floor at
     16px+ on phones) out of the rule — e.g. the category-page .ccont.l-font22 must
     stay 16px instead of being pulled down to the 15.75px floor. Only .l-font18 and
     below are lifted. */
  .ccont:not(.l-font20, .l-font22, .l-font24, .l-font26, .l-font28, .l-font30, .l-font32, .l-font34, .l-font36, .l-font38, .l-font40, .l-font42, .l-font44, .l-font46, .l-font48, .l-font50, .l-font52, .l-font54, .l-font56, .l-font58, .l-font60, .l-font72),
  .ccont.l-font18,
  .public-title .ccont,
  .index-products>.top .ccont,
  .index-products-cont .top .ccont,
  .index-products-cont>.top .ccont,
  .index-undustry .public-title .ccont,
  .index-capabilities .ccont,
  .index-capabilities .public-title .ccont,
  .index-technical .ccont,
  .technical-item .ccont,
  .index-about .public-title .ccont {
    font-size: clamp(15px, 4.2vw, 17px) !important;
    line-height: 1.55 !important;
  }
}