/* ============================================================
   type.css: site-wide typography roles (loaded last)
   Family: IBM Plex Sans (Latin) + Noto Sans SC (Chinese)
   Calibrated against jrkdm.com / Sparkdesign: medium-weight headings,
   tight tracking, 16px body, quiet 14–15px UI.
   Hero 54/560 · Page title 46/560 · H2 36/550 · H3 19/600
   Body 16/400/1.6 · Lead 17.5 · Secondary 14 · Fine 13
   Nav 14.5/500 · Buttons 15/550 · Badges 12/550 · Eyebrow 12/600 +0.14em caps
   Values live in base.css (:root); mobile steps down there too.
   ============================================================ */

/* ---------- Hero (home) ---------- */
.s-hh h1 {
  font-size: var(--hero-size); font-weight: var(--hero-weight);
  line-height: var(--hero-lh); letter-spacing: var(--hero-ls);
}

/* ---------- Page heroes (about / franchise / apply …) ---------- */
.s-hero h1 {
  font-size: var(--page-size); font-weight: var(--page-weight); line-height: var(--hero-lh); letter-spacing: var(--hero-ls);
}
.s-hero h1 small { font-size: 18px; font-weight: 500; letter-spacing: 0; }

/* ---------- H2: section titles and page titles ---------- */
.s-sec h2, .s-where h2, .s-cta h2, .s-purpose h2,
.s-hwhy h2, .s-hben h2, .s-hcta h2, .s-hgal h2, .s-ct-empty-h,
.s-hero--short h1, .s-hero--faq h1,
.s-formhead h2, .s-form--center .s-formhead h2,
.s-done h1, .s-narrow h1, .s-login-box h1, .s-login-h,
.w-head h1, .w-h1row h1, .w-head-detail .w-h1row h1, .w-head:has(+ .w-split-detail) h1 {
  font-size: var(--h2-size); font-weight: var(--h2-weight);
  line-height: var(--h2-lh); letter-spacing: var(--h2-ls);
}
/* Workspace page titles sit at the lower end of the H2 range */
.w-head h1, .w-h1row h1, .w-head-detail .w-h1row h1, .w-head:has(+ .w-split-detail) h1 { font-size: 30px; font-weight: 560; }
.s-hstory-q { font-size: 28px; font-weight: 500; line-height: 1.35; letter-spacing: var(--h2-ls); }

/* ---------- H3: card, column and panel headings ---------- */
.s-card h3, .s-card--icon h3, .s-card--sq h3, .s-cols h3, .s-reqs .s-cols h3, .s-journey .s-cols h3,
.s-why h3, .s-hben h3, .s-terms dt, .s-side h2, .s-prose h2, .s-faq-cta h2, .s-logos-title,
.w-h2 h2, .w-h2-sm h2, .w-ph h2, .w-docpanel .w-ph h2, .w-evpanel .w-ph h2, .w-drawer .w-ph h2,
.w-split-new .w-aside .w-h2 h2, .w-split-acct .w-h2 h2, .w-split-detail .w-h2 h2,
.w-split-sdetail .w-aside .w-h2 h2, .w-split-app .w-aside .w-h2 h2, .w-split-app .w-h2 h2,
.w-split-rules .w-h2 h2, .w-edhead h2, .w-tpl-h, .w-mail-b h3, .w-calstrip h3, .w-evtitle, .w-fl-h {
  font-size: var(--h3-size); font-weight: var(--h3-weight); line-height: var(--h3-lh); letter-spacing: var(--h3-ls);
}
.w-h2 h2 small { font-size: 14px; font-weight: 400; }
/* Small headings inside notes, steps, side lists */
.s-note h3, .s-side h3, .s-done-steps h2, .s-qa-q, .s-hstory-eb,
.w-vers b, .w-th-h b, .w-evpanel .w-dots b, .w-t-desk .w-two {
  font-size: 15px; font-weight: 600; line-height: 1.4; letter-spacing: 0; text-transform: none;
}
.s-qa-q { font-size: 16.5px; font-weight: 550; }

/* ---------- Body ---------- */
.s-hh-sub, .s-hero-sub, .s-lead, .s-hstory-body, .s-hcta p, .s-stories .s-lead {
  font-size: var(--lead-size); font-weight: 400; line-height: 1.6;
}
.s-card > p:last-child, .s-partnership .s-card > p:last-child, .s-card--icon > p:last-child,
.s-card--sq > p:last-child, .s-cols p, .s-journey .s-cols p, .s-why p, .s-hben p, .s-where p:last-child,
.s-terms dd, .s-qa > p, .s-prose p, .s-aside, .s-cta p:not(.s-eyebrow), .s-side-body, .s-done-sub,
.s-narrow-sub, .s-done-msg, .s-login-art-text p:last-child, .s-hstory-who,
.w-p, .w-sub, .w-tl-t, .w-th-b, .w-mail-b p, .w-calstrip p {
  font-size: var(--body-size); font-weight: 400; line-height: var(--body-lh);
}
.s-card > p:last-child, .s-card--icon > p:last-child, .s-card--sq > p:last-child, .s-cols p, .s-journey .s-cols p,
.s-terms dd, .s-qa > p, .s-aside, .s-side-body, .w-tl-t, .w-th-b, .w-mail-b p, .w-calstrip p { font-size: 15px; }
.w-sub { font-size: 14.5px; }
.w-p, .w-tl-t, .w-th-b, .w-mail-b p, .w-calstrip p { font-size: 14.5px; line-height: 1.6; }

/* Secondary text: notes, hints, meta, footer (not body copy) */
.s-note p, .s-foot-brand p, .s-foot-col p, .s-side li p, .s-side-sub, .s-cta p.s-fine, .s-fine, .s-split-fine,
.s-check, .s-login-sub, .s-alert, .s-totp, .s-attach, .s-estimate, .s-faq-cta p,
.w-note, .w-alert, .w-hint, .w-comp-hint, .w-metaline, .w-two-s, .w-doclist small, .w-mlist small, .w-vers small {
  line-height: 1.55;
}

/* ---------- Navigation, tabs, menus ---------- */
.s-nav a, .s-mnav nav a, .s-fh nav, .s-tabs a, .s-faq-cats button, .s-steps, .s-login, .s-fh .s-login,
.w-nav a, .w-qtabs a, .w-qtabs-sm a, .w-ltabs a, .w-ltabs-cms a, .w-seg > *, .w-langtabs .w-seg > *,
.w-comp-tabs button, .w-umenu > a, .w-umenu > button, .w-ubtn, .w-sfoot > *, .w-pagelist a, .w-tpllist a,
.w-langs a, .w-pager button {
  font-weight: var(--ui-weight); letter-spacing: 0;
}
.s-nav a, .s-fh nav, .s-tabs a, .s-faq-cats button, .s-login, .w-ltabs a, .w-ltabs-cms a, .w-umenu > a,
.w-umenu > button, .w-ubtn, .w-pagelist a, .w-tpllist a { font-size: var(--ui-size); }
.s-mnav nav a { font-size: 16px; }
.w-nav a, .w-qtabs a { font-size: 14.5px; }
.w-qtabs-sm a, .w-seg > *, .w-langtabs .w-seg > *, .w-comp-tabs button, .w-sfoot > *, .w-langs a, .w-pager button,
.s-steps { font-size: 13.5px; }
.s-tabs a.on, .s-faq-cats button[aria-pressed="true"], .w-ltabs a[aria-current], .w-nav a[aria-current] { font-weight: 600; }

/* ---------- Buttons ---------- */
.s-btn, .s-headcta, .s-submit, .s-skip, .s-hh .s-btn, .s-hcta .s-btn, .s-faq-cta .s-btn, .s-generic .btn,
.w-btn, .w-btn.w-xl, .w-btn.w-sm, .w-toolrow .w-btn, .w-btnrow .w-btn, .w-acts .w-btn, .w-newform .w-btn.w-xl,
.w-cms3 .w-edbar .w-btn, .w-cms2 .w-edbar .w-btn, .w-split-rules .w-sform .w-btn {
  font-size: var(--btn-size); font-weight: var(--btn-weight); letter-spacing: 0; line-height: 1;
}
.s-hh .s-btn, .s-hcta .s-btn, .s-submit, .w-btn.w-xl, .w-newform .w-btn.w-xl { font-size: 15.5px; }
.s-headcta, .w-btn.w-sm, .w-btn { font-size: 14px; }
.w-more, .w-ul, .w-img-a { font-weight: 500; letter-spacing: 0; }

/* ---------- Badges, pills, tags ---------- */
.s-badge, .s-tag, .s-pill, .s-faq-cats button b,
.w-pill, .w-pill-sq, .w-pill-xs, .w-new, .w-chip, .w-2fa, .w-demo, .w-count, .w-fchip,
.w-t .w-pill, .w-t-recent .w-pill, .w-t-ptk .w-pill, .w-t-desk .w-pill, .w-t-apps .w-pill, .w-t-apps .w-pill-xs,
.w-t-apps-mini .w-pill, .w-flist .w-pill, .w-sec-clock .w-pill, .w-mlist .w-pill, html:not([lang="zh-CN"]) .w-t .w-pill {
  font-size: var(--badge-size); font-weight: var(--badge-weight); letter-spacing: var(--badge-ls); text-transform: none;
}
.w-pill, .w-t .w-pill, .w-t-recent .w-pill, .w-t-ptk .w-pill, .w-t-desk .w-pill, .w-t-apps .w-pill,
.w-t-apps-mini .w-pill, .w-flist .w-pill, .w-sec-clock .w-pill, .w-demo, .w-chip, .w-fchip { font-size: 12px; font-weight: 500; }

/* ---------- Eyebrow: the only uppercase, tracked label ---------- */
.s-eyebrow, .s-page .s-eyebrow, .s-login-page .s-eyebrow, .s-hh .s-eyebrow, .s-login-art-text .s-eyebrow {
  font-size: var(--eyebrow-size); font-weight: 600; line-height: 20px;
  letter-spacing: var(--eyebrow-ls); text-transform: uppercase;
}
.s-hh .s-eyebrow { font-size: 12.5px; }
/* Small numeric / count labels are not eyebrows */
.s-card .s-num, .s-card--sq .s-num, .s-faq-count, .s-faq-count span:last-child, .s-qa-n, .s-steps i,
.w-zone, .w-stat span, .w-t thead th, .w-t-mini thead th, .w-t-ptk thead th, .w-t-pdocs thead th, .w-fl, .w-lab dt,
.w-when small, .w-vars-h {
  letter-spacing: 0; text-transform: none;
}
.s-card .s-num, .s-card--sq .s-num, .s-qa-n, .s-steps i { font-size: 13px; font-weight: 600; letter-spacing: .04em; }
.w-t thead th, .w-t-mini thead th, .w-t-ptk thead th, .w-t-pdocs thead th { font-size: 12.5px; font-weight: 600; color: var(--muted); }
.w-stat span { font-size: 13.5px; font-weight: 500; }

/* ---------- Data tables and forms (workspace) ---------- */
.w-t, .w-t-mini td, .w-t-recent td, .w-t-ptk td, .w-t-pdocs td, .w-t-todo td, .w-t-apps td, .w-t-apps-mini td,
.w-t-adocs td, .w-t-partners td, .w-t-rules td, .w-t-audit td, .w-t-hist td, .w-t-pdocs td:not(:first-child) {
  font-size: 14px; line-height: 1.5;
}
.w-two, .w-t-ptk .w-two { font-size: 14px; font-weight: 500; }
.w-two-s, .w-t-ptk .w-two-s { font-size: 12.5px; }
.w-fl, .w-hform .w-f > .w-fl, .w-newform .w-f > .w-fl, .w-acctform .w-f > .w-fl, .w-sform .w-f > .w-fl,
.w-lform .w-f > .w-fl, .w-tplform .w-f-stack .w-fl, .w-drawer .w-f-stack .w-fl, .w-f-row > .w-fl, .w-imgslot > .w-fl,
.w-hform fieldset.w-urg > legend, .w-lf > span, .s-field > label:first-child, .s-field legend {
  font-size: 14px; font-weight: 500; letter-spacing: 0;
}
.w-in, .w-sform .w-in, .w-newform .w-in, .w-cms-ed .w-in, .w-cms2 .w-in, .w-search input, .w-fsel select, .w-range input,
.w-fbar-desk .w-fsel select, .w-fbar-desk .w-range, .w-fbar-adocs .w-search, .w-fbar-adocs .w-fsel select,
.w-fbar-partners .w-search, .w-fbar-partners .w-fsel select, .w-lf .w-range, .w-lf .w-fsel select, .w-lf .w-search,
.w-storesel select, .w-radio, .w-drop-b,
.s-form input:not([type=checkbox]):not([type=file]):not([type=range]), .s-form select, .s-form textarea, .s-search input {
  font-size: 15px; letter-spacing: 0;
}

/* ---------- Figures (stats) ---------- */
.w-stat strong { font: 500 34px/1.05 var(--sans); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.s-bignum, .s-reqs .s-bignum, .s-journey .s-bignum, .s-calc-out strong {
  font-weight: 550; letter-spacing: -0.02em; font-variant-numeric: tabular-nums;
}

/* ---------- Mobile ---------- */
@media (max-width: 760px) {
  .w-head h1, .w-h1row h1, .w-head-detail .w-h1row h1, .w-head:has(+ .w-split-detail) h1 { font-size: 24px; }
  .s-hstory-q { font-size: 21px; }
  .w-stat strong { font-size: 26px; }
  .s-hh .s-eyebrow { font-size: 13px; }
  .w-tabbar a { font-size: 12px; font-weight: 500; letter-spacing: 0; }
}

/* ---------- Weights, all languages (Noto Sans / Noto Sans SC) ----------
   Hero and page titles Light 300; section titles, body, nav, forms Regular 400;
   buttons, table headers, small headings and key figures Medium 500. Nothing heavier. */
html:is([lang]) :is(b, strong, th, legend, dt, .s-btn, .s-headcta, .s-submit, .s-skip,
  .s-eyebrow, .s-badge, .s-tag, .s-pill, .s-qa-q, .s-tabs a.on, .s-faq-cats button[aria-pressed="true"],
  .s-field > label:first-child, .s-card .s-num, .s-foot-col h2, .w-btn, .w-pill, .w-pill-sq, .w-pill-xs, .w-new,
  .w-nav a[aria-current], .w-ltabs a[aria-current], .w-two, .w-fl, .w-th-h b, .w-vers b, .w-evtitle, .w-fl-h,
  h3, .w-h2 h2, .w-ph h2) {
  font-weight: 500;
}
html:is([lang]) :is(.s-sec h2, .s-where h2, .s-cta h2, .s-purpose h2, .s-hwhy h2, .s-hben h2, .s-hcta h2, .s-hgal h2,
  .s-formhead h2, .s-hero--short h1, .s-hero--faq h1, .s-done h1, .s-narrow h1, .s-login-box h1, .s-login-h,
  .s-logos-title, .s-hstory-q) { font-weight: 400; }
html:is([lang]) :is(.s-stat-num b, .s-bignum, .w-stat strong, .s-calc-out strong) { font-weight: 500; }
html:is([lang]) :is(.s-hh h1, .s-hero h1) { font-weight: 300; }
html:is([lang]) :is(.s-nav a, .s-mnav nav a, .s-login, .s-hlang, .s-foot-col a, .w-nav a:not([aria-current]), .w-ltabs a:not([aria-current])) { font-weight: 400; }
html:is([lang]) :is(.w-head h1, .w-h1row h1) { font-weight: 500; letter-spacing: 0; }
html[lang^="zh"] :is(.w-head h1, .w-h1row h1) { line-height: 1.3; }
/* ---------- Chinese only: leading and a few sizes ---------- */
html[lang^="zh"] :is(.s-card > p:last-child, .s-cols p, .s-why p, .s-hben p, .s-where p:last-child, .s-terms dd,
  .s-qa > p, .s-prose p, .s-aside, .s-side-body, .s-done-sub, .s-narrow-sub, .s-done-msg, .s-hstory-body,
  .s-hh-sub, .s-hero-sub, .s-lead, .s-hcta p, .s-cta p:not(.s-eyebrow), .w-p, .w-tl-t, .w-th-b, .w-mail-b p) {
  line-height: 1.75;
}
html[lang^="zh"] :is(.s-nav a, .s-fh nav, .s-tabs a, .s-faq-cats button, .s-login) { font-size: 15px; }
html[lang^="zh"] .s-hh .s-btn, html[lang^="zh"] .s-hcta .s-btn, html[lang^="zh"] .s-submit { font-size: 16px; }
html[lang^="zh"] .s-hstory-q { line-height: 1.5; letter-spacing: 0; }
