/* Portal v3, phase 1 (PHASE-1-PROMPT.md §6): the gym portal's type. Barlow for Latin text, Alexandria for Arabic,
   Barlow Condensed only for the rare big number (p3-big-num), Archivo for the logo only; tabular figures everywhere.
   This sheet sits above UI v2's type layer (css/type-v2.css, made by design/type-v2/build.mjs, which leaves the
   css/portal-v3/ sheets out): the styles below are classes and variables, and the portal-wide defaults lift the few
   shared pieces the prompt names (body, table headers, Arabic letter spacing). Pages keep their own layouts (phase 2). */
html.portal-v3:not([data-skin]){
  --p3-ff:'Barlow','Alexandria',system-ui,-apple-system,'Segoe UI',Roboto,sans-serif;
  --p3-ff-cond:'Barlow Condensed','Alexandria',system-ui,sans-serif;
  /* size / line height per style; the phone sizes below 768 px */
  --p3-title-xl-fs:40px;--p3-title-xl-lh:48px;--p3-title-fs:32px;--p3-title-lh:40px;--p3-section-fs:22px;--p3-section-lh:28px;
  --p3-card-title-fs:17px;--p3-card-title-lh:24px;--p3-body-fs:15px;--p3-body-lh:22px;--p3-small-fs:13px;--p3-small-lh:18px;
  --p3-label-fs:14px;--p3-label-lh:20px;--p3-th-fs:13px;--p3-th-lh:18px;--p3-eyebrow-fs:12px;--p3-eyebrow-lh:16px;
  --p3-hero-num-fs:40px;--p3-hero-num-lh:48px;--p3-big-num-fs:56px;--p3-big-num-lh:60px;
  --p3-caps:uppercase;--p3-ls-eye:.08em;
}
@media (max-width:767px){html.portal-v3:not([data-skin]){--p3-title-xl-fs:32px;--p3-title-xl-lh:40px;--p3-title-fs:28px;--p3-title-lh:36px;--p3-section-fs:20px;--p3-section-lh:26px;--p3-hero-num-fs:34px;--p3-hero-num-lh:40px;--p3-big-num-fs:44px;--p3-big-num-lh:48px}}
/* Arabic: the same sizes in Alexandria, 2 px more line height for body, small and label, no capitals and no letter spacing
   (letter spacing breaks Arabic joining) */
html.portal-v3:not([data-skin])[dir=rtl]{--p3-body-lh:24px;--p3-small-lh:20px;--p3-label-lh:22px;--p3-th-lh:20px;--p3-caps:none;--p3-ls-eye:0}

/* ---------- the styles ---------- */
html.portal-v3:not([data-skin]) :is(.p3-title-xl,.p3-title,.p3-section,.p3-card-title,.p3-body,.p3-body-strong,.p3-small,.p3-label,.p3-th,.p3-eyebrow,.p3-hero-num):not(#p1):not(#p2):not(#p3):not(#p4){font-family:var(--p3-ff);font-weight:400;letter-spacing:0;text-transform:none;font-variant-numeric:tabular-nums lining-nums;color:var(--p3-text)}
html.portal-v3:not([data-skin]) .p3-title-xl:not(#p1):not(#p2):not(#p3):not(#p4){font-size:var(--p3-title-xl-fs);line-height:var(--p3-title-xl-lh);letter-spacing:-.01em}
html.portal-v3:not([data-skin]) .p3-title:not(#p1):not(#p2):not(#p3):not(#p4){font-size:var(--p3-title-fs);line-height:var(--p3-title-lh);letter-spacing:-.01em}
html.portal-v3:not([data-skin]) .p3-section:not(#p1):not(#p2):not(#p3):not(#p4){font-size:var(--p3-section-fs);line-height:var(--p3-section-lh)}
html.portal-v3:not([data-skin]) .p3-card-title:not(#p1):not(#p2):not(#p3):not(#p4){font-size:var(--p3-card-title-fs);line-height:var(--p3-card-title-lh)}
html.portal-v3:not([data-skin]) .p3-body:not(#p1):not(#p2):not(#p3):not(#p4){font-size:var(--p3-body-fs);line-height:var(--p3-body-lh)}
html.portal-v3:not([data-skin]) .p3-body-strong:not(#p1):not(#p2):not(#p3):not(#p4){font-size:var(--p3-body-fs);line-height:var(--p3-body-lh);font-weight:600}
html.portal-v3:not([data-skin]) .p3-small:not(#p1):not(#p2):not(#p3):not(#p4){font-size:var(--p3-small-fs);line-height:var(--p3-small-lh);color:var(--p3-muted)}
html.portal-v3:not([data-skin]) .p3-label:not(#p1):not(#p2):not(#p3):not(#p4){font-size:var(--p3-label-fs);line-height:var(--p3-label-lh);color:var(--p3-muted)}
html.portal-v3:not([data-skin]) .p3-th:not(#p1):not(#p2):not(#p3):not(#p4){font-size:var(--p3-th-fs);line-height:var(--p3-th-lh);color:var(--p3-muted)}
html.portal-v3:not([data-skin]) .p3-eyebrow:not(#p1):not(#p2):not(#p3):not(#p4){font-size:var(--p3-eyebrow-fs);line-height:var(--p3-eyebrow-lh);font-weight:600;letter-spacing:var(--p3-ls-eye);text-transform:var(--p3-caps);color:var(--p3-muted)}
html.portal-v3:not([data-skin]) .p3-hero-num:not(#p1):not(#p2):not(#p3):not(#p4){font-size:var(--p3-hero-num-fs);line-height:var(--p3-hero-num-lh);letter-spacing:-.01em}
html.portal-v3:not([data-skin]) .p3-big-num:not(#p1):not(#p2):not(#p3):not(#p4){font-family:var(--p3-ff-cond);font-size:var(--p3-big-num-fs);line-height:var(--p3-big-num-lh);font-weight:600;letter-spacing:0;text-transform:none;font-variant-numeric:tabular-nums lining-nums;color:var(--p3-text)}
html.portal-v3:not([data-skin])[dir=rtl] :is(.p3-title-xl,.p3-title,.p3-hero-num):not(#p1):not(#p2):not(#p3):not(#p4){letter-spacing:0}

/* ---------- amounts (P3Amt): the decimals at 60 % size, raised to the top of the text ---------- */
html.portal-v3:not([data-skin]) .p3-amt{font-variant-numeric:tabular-nums lining-nums;white-space:nowrap;unicode-bidi:isolate}
html.portal-v3:not([data-skin]) .p3-amt.hero:not(#p1):not(#p2):not(#p3):not(#p4){font-family:var(--p3-ff);font-size:var(--p3-hero-num-fs);line-height:var(--p3-hero-num-lh);font-weight:400;letter-spacing:-.01em;color:var(--p3-text)}
html.portal-v3:not([data-skin]) .p3-amt-dec{font-size:60%;vertical-align:text-top;line-height:1;letter-spacing:0}
html.portal-v3:not([data-skin]) .p3-amt.hero .p3-amt-dec{position:relative;top:.2em}
html.portal-v3:not([data-skin]) .p3-amt.struck{text-decoration:line-through;text-decoration-thickness:1px;color:var(--p3-muted)}
html.portal-v3:not([data-skin]) .p3-amt.neg{color:inherit}

/* ---------- portal-wide defaults (existing pages keep their layout) ---------- */
html.portal-v3:not([data-skin]) body{font-family:var(--p3-ff);font-variant-numeric:tabular-nums}
html.portal-v3:not([data-skin]) :is(input,select,textarea,button){font-variant-numeric:tabular-nums}
/* table headers: 13 px, regular, muted, no capitals */
html.portal-v3:not([data-skin]) :is(.tbl th,.atbl th):not(#p1):not(#p2):not(#p3):not(#p4){font-family:var(--p3-ff);font-size:var(--p3-th-fs);line-height:var(--p3-th-lh);font-weight:400;letter-spacing:0;text-transform:none;color:var(--p3-muted)}
/* Arabic: no letter spacing anywhere in the portal (the logo keeps its own) */
html.portal-v3:not([data-skin])[dir=rtl] :not(.xb-mark):not(.xb-mark *):not(.xbw):not(.xbw *):not(#p1):not(#p2):not(#p3):not(#p4){letter-spacing:0}
