/* ==========================================================================
   TEAM 5 — Full mobile polish, 390px (2026-11-03 · Issue 8 of 8)
   --------------------------------------------------------------------------
   Systematic 390px pass over all 58 pages. Every rule below is scoped to
   max-width:767px — desktop styles are NOT touched. Loaded LAST in <head>
   on every page, so it wins cascade ties (a couple of !important kept only
   where they beat earlier mobile !importants).
   Audit findings that needed NO change (already handled by earlier layers):
   - page-level horizontal scroll: html/body overflow-x hidden/clip everywhere
   - all used multi-column grids collapse to 1-2 cols at <=1020px (21 grid
     classes checked; the leftovers are dead CSS or desktop-min-width only)
   - marquee rotation + hero-frame tilt removed at <=1020px; mega panels
     display:none at <=1020px; sticky story/process sections go static
   - type scale: h-display capped 2.6rem, h-section clamp(1.6rem,7.2vw,2rem),
     h-article 2rem min, lede 1.02rem; rotator words wrap (no nowrap)
   - buttons: compact + 44px min (owner rule, locked); anchor-nav 44px;
     accordion summaries 56px; inputs 16px (iOS zoom guard)
   - animations: visibility-safety rules force content visible; no JS pinning
     runs on mobile (#assembly / data-carousel are dead markup); stack
     effects disabled on phones
   Deliberately NOT touched (other teams / standing rules):
   - .proc-* and .pmp-*        → Team 1 (process mobile section)
   - .tst-*                    → Team 3 (reviews cards)
   - cursor classes            → other team
   - visibility-safety rules   → owner standing rule, kept intact
   ========================================================================== */

/* ============================ PHONE (<=767px) ============================ */
@media (max-width:767px){

  /* ---------- A. ZERO HORIZONTAL OVERFLOW ---------- */
  /* 9 bare <table>s across 8 blog articles sit outside .table-wrap and would
     bleed past 390px. Fixed layout + wrapping keeps every column on screen
     with borders intact (no scroll container, no markup change). */
  main table{table-layout:fixed;width:100%}
  main table th,main table td{overflow-wrap:anywhere;word-break:break-word;
    font-size:.85rem;line-height:1.45;padding:.55rem .6rem}

  /* ---------- D. 44px MINIMUM TOUCH TARGETS ---------- */
  /* Footer links were min-height:40px (mobile-pro §7) — below the minimum. */
  .site-footer a,.fcol li a{min-height:44px!important}
  /* Legal-row links had no minimum at all. */
  .site-footer .footer-legal a{display:inline-flex;align-items:center;min-height:44px}
  /* Article TOC: each anchor link gets a comfortable tap row. */
  .article-toc a{display:inline-block;padding:.35rem 0}

  /* ---------- B. READABLE TYPE SCALE ---------- */
  /* Article h2s were 1.7rem with 2.6rem top margin — heavy at 390px. */
  .article-body h2{font-size:1.45rem;margin:2rem 0 .8rem}

  /* ---------- C. BALANCED SECTION SPACING ---------- */
  /* Article CTA band: 2.2rem padding + 3rem margins felt cavernous on phones. */
  .article-cta{padding:1.6rem 1.25rem;margin:2.25rem 0}
  .article-cta h3{font-size:1.3rem}
}
