/* ================================================================
   StaffHub 2.0 — client portal: enterprise typography
   File: /v2/client/css/client-enterprise.css   2.0.0-beta.1 (2026-10-12)

   Loaded after /v2/css/theme-enterprise.css (and after index.html's own
   <style> block). theme-enterprise already swaps the portal's Barlow
   Condensed display face for Inter; this undoes what only suited the
   condensed face: ALL-CAPS headings, names and buttons with wide letter
   spacing, and condensed-scale font sizes. Headings, names and buttons
   go sentence case at Inter sizes; small labels stay uppercase, tighter.
   Colours: the sage greys were swapped for slate in client-portal.css /
   client-pwa.css directly (v2 copies) — every text colour ≥ 4.5:1.
   ================================================================ */

/* ── Headings, names, titles: sentence case ─────────────────────── */
.cp-form h1, .cp-topbar h1, .cp-board__site, .cp-post__name,
.cp-roster__site, .cp-occ__site, .cp-docs__site, .cp-log__type,
.cp-doc__title, .cp-empty h3, .cp-leave__name, .cp-filter-head h2,
.cp-rday__name, .cp-panel__title, .cp-rail__orgname, .cp-login__pitch,
.cp-mobtopbar__name, .cp-cam__head, .cp-pwa__title,
.cpm-sheet h2, .cpm-cta h3 {
    text-transform: none;
    letter-spacing: -0.015em;
    font-weight: 650;
}
.cp-board__site, .cp-roster__site, .cp-occ__site, .cp-docs__site { font-size: 24px; }
.cp-form h1        { font-size: 24px; }
.cp-topbar h1      { font-size: 19px; }
.cp-rday__name     { font-size: 20px; }
.cp-post__name, .cp-log__type, .cp-doc__title, .cp-leave__name { font-size: 16px; }
.cp-panel__title, .cp-filter-head h2 { font-size: 16px; }
.cp-empty h3       { font-size: 17px; }
.cp-rail__orgname  { font-size: 16px; }
.cp-mobtopbar__name { font-size: 15px; }
.cp-cam__head      { font-size: 15px; }
.cp-pwa__title     { font-size: 17px; line-height: 1.25; }
.cpm-sheet h2      { font-size: clamp(21px, 3.2vw, 26px); line-height: 1.2; }
.cpm-cta h3        { font-size: 17px; }
.cp-login__pitch {
    font-size: clamp(28px, 3.4vw, 44px);
    line-height: 1.1;
    max-width: 15ch;
    font-weight: 700;
}
.cp-rail__mark, .cp-login__mark { letter-spacing: .08em; font-weight: 700; font-size: 17px; }

/* ── Buttons and links: sentence case, normal tracking ─────────── */
.cp-btn, .cp-doc__open, .cp-textbtn, .cp-seg__btn, .cp-chip,
.cp-log__more summary, .cp-pwa__btn, .cp-pwa-update__btn,
.cp-nav__label, .cp-login__formside button.cp-link.cpm-teaser-btn {
    text-transform: none;
    letter-spacing: 0;
    font-weight: 600;
}
.cp-btn { font-size: 14.5px; }
.cp-nav__label { font-size: 14.5px; font-weight: 500; }
.cp-nav__item.is-active .cp-nav__label { font-weight: 600; }
.cp-seg__btn, .cp-chip, .cp-textbtn, .cp-doc__open,
.cp-log__more summary, .cp-pwa__btn, .cp-pwa-update__btn { font-size: 13.5px; }
.cp-login__formside button.cp-link.cpm-teaser-btn { font-size: 16px; }

/* ── Small labels: stay uppercase, tighter and steadier ────────── */
.cp-eyebrow, .cp-sitepick__label, .cp-board__countlabel, .cp-rail__poweredby,
.cp-slot__shift, .cp-docgroup__title, .cp-filter-group legend, .cp-rgrid__dow,
.cp-rgrid__corner, .cp-pwa__eyebrow {
    letter-spacing: .06em;
    font-size: 11.5px;
    font-weight: 600;
}
.cp-docgroup__title { font-size: 12px; }

/* Form labels: sentence case, like the rest of 2.0 */
.cp-field label {
    text-transform: none;
    letter-spacing: 0;
    font-size: 13px;
    font-weight: 600;
    color: var(--sh-text);
}

/* Big figures keep the display weight, Inter-sized */
.cp-board__count { font-size: 34px; font-weight: 700; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }

/* Login headline accent: light blue on navy (9:1), like the rest of 2.0 */
.cp-login__pitch em { color: #8fb8ff; }

/* ── Side menu: nothing overlaps on short screens ──────────────────
   .cp-nav was flex:1 1 auto + min-height:0 with no overflow clipping, so
   on a short window it shrank below its items and the last ones spilled
   under the footer (email + Sign out). Now no rail block shrinks; the rail
   (already overflow-y:auto) scrolls instead, and the footer still sits at
   the bottom when there's room (margin-top:auto). */
.cp-rail > * { flex-shrink: 0; }
.cp-nav { flex: 0 0 auto; min-height: auto; }
.cp-rail__foot { padding-bottom: 16px; }
.cp-rail__orgname { line-height: 1.25; }
.cp-rail__email { overflow-wrap: anywhere; line-height: 1.4; }
@media (max-height: 760px) {
    .cp-rail__org { padding-top: 14px; padding-bottom: 14px; gap: 10px; }
    .cp-rail__avatar { width: 64px; height: 64px; }
    .cp-rail__avatarletters { font-size: 24px; }
}
