/* Portal v3 phase 4 (§10.1, USE_PAGE_ALIGN, class page-align): one page container for every gym and Finance page,
   measured from the Tiers page (PHASE-4-PLAN.md §7). Tiers' content starts 64 px from the sidebar at 1440 and 1024
   (main's 32 px + the page's 32 px), 48 px at 768 and 32 px at 390 (the drawer's widths: main's 16 px + the page's 32 or
   16 px), fills the width (no max width) and is start-aligned; the end gap is the same. Every page root in the shell's
   main takes the same padding and width here, so Summary, Dashboard, Overview, Tasks, Smart insights, KPI pages and the
   Finance manager pages (centred at 985 px before) start on Tiers' line, and the Front desk pages, Reports and Settings
   (32 px before) move in to it. Wide pages (tables, the desk, calendars) keep their full width. Logical properties only,
   so Arabic mirrors. The person pages (a fixed layer in the Visitors style) and full-screen flows are not page roots. */
html.page-align.pages-v3.portal-v3:not([data-skin]) .gym.p3{--p4-pg-pad:32px;--p4-pg-max:none}
@media (max-width:767px){html.page-align.pages-v3.portal-v3:not([data-skin]) .gym.p3{--p4-pg-pad:16px}}
html.page-align.pages-v3.portal-v3:not([data-skin]) .gym.p3 main>.stk>:is(.p3-col,.p3-desk,.p3-rep,.p3-set,.p3f-page,.p3-gs-page,.scr):not(#p4a){
  box-sizing:border-box;width:100%;max-width:var(--p4-pg-max);margin-inline:0;padding-inline:var(--p4-pg-pad)}

/* §10.3 (the consistency pass): the texts the type audit (review/ui-v2/type-audit.mjs gym) found outside the portal's type
   styles (DESIGN.md §16.2), each moved to its p3 style; UI v2's condensed eyebrows and big numbers left on gym pages.
   Five ids: they win over UI v2's type layer and portal rules (three) and phase 1 to 3's (four). */
html.page-align.pages-v3.portal-v3:not([data-skin]) .gym.p3 main :is(.lab,.stat-l,.mb-m,.cal-h,tbody>tr.sec>td):not(#p1):not(#p2):not(#p3):not(#p4):not(#p5){font-family:var(--p3-ff);font-size:var(--p3-eyebrow-fs);line-height:var(--p3-eyebrow-lh);font-weight:600;font-style:normal;letter-spacing:var(--p3-ls-eye);text-transform:var(--p3-caps)}
html.page-align.pages-v3.portal-v3:not([data-skin]) .gym.p3 main .lab>span:not(#p1):not(#p2):not(#p3):not(#p4):not(#p5){font:inherit;letter-spacing:inherit;text-transform:inherit}
html.page-align.pages-v3.portal-v3:not([data-skin]) .gym.p3 main .stream-btn .lab:not(#p1):not(#p2):not(#p3):not(#p4):not(#p5){font-size:var(--p3-body-fs);line-height:var(--p3-body-lh);letter-spacing:0;text-transform:none}
html.page-align.pages-v3.portal-v3:not([data-skin]) .gym.p3 main .eq-code:not(#p1):not(#p2):not(#p3):not(#p4):not(#p5){font-family:var(--p3-ff);font-size:var(--p3-small-fs);line-height:var(--p3-small-lh);font-weight:600;letter-spacing:0;text-transform:none}
html.page-align.pages-v3.portal-v3:not([data-skin]) .gym.p3 main :is(.big-kv>b,.pf-avg>b,.pg-res b,.shs-n):not(#p1):not(#p2):not(#p3):not(#p4):not(#p5){font-family:var(--p3-ff);font-size:var(--p3-hero-num-fs);line-height:var(--p3-hero-num-lh);font-weight:600;letter-spacing:0;text-transform:none}
html.page-align.pages-v3.portal-v3:not([data-skin]) .gym.p3 main .kpis>.kpi>b:not(#p1):not(#p2):not(#p3):not(#p4):not(#p5){font-family:var(--p3-ff);font-size:var(--p3-title-fs);line-height:var(--p3-title-lh);font-weight:600}
html.page-align.pages-v3.portal-v3:not([data-skin]) .gym.p3 main .p3cm-rh-v:not(#p1):not(#p2):not(#p3):not(#p4):not(#p5){font-family:var(--p3-ff-cond);font-size:var(--p3-big-num-fs);line-height:var(--p3-big-num-lh);font-weight:600}
