/* ======================================================================
   EIW V0.8.7.8 — Refined Body Typography
   Purpose: one calm, legible hierarchy across every learner-facing page.
   Loaded after eiw-brand-theme.css so legacy per-module type rules cannot
   fragment the reading experience.
   ====================================================================== */

.eiw-app-shell{
  --eiw-type-font:Inter,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;
  --eiw-type-heading:#18213f;
  --eiw-type-heading-strong:#111936;
  --eiw-type-body:#606b82;
  --eiw-type-body-soft:#69738a;
  --eiw-type-muted:#747d92;
  --eiw-type-subtle:#8790a3;
  --eiw-type-primary:#3f5fd3;
  --eiw-type-link:#3459cf;
  --eiw-type-border:#dfe4f1;
  --eiw-type-h1:clamp(40px,4.2vw,50px);
  --eiw-type-h2:clamp(28px,2.7vw,34px);
  --eiw-type-h3:20px;
  --eiw-type-body-size:16px;
  --eiw-type-body-line:1.64;
  --eiw-type-small:14px;
  --eiw-type-meta:12px;
  font-family:var(--eiw-type-font);
  font-size:16px;
  line-height:1.6;
  color:var(--eiw-type-body);
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
  text-rendering:optimizeLegibility;
}
.eiw-app-shell :is(h1,h2,h3,h4,h5,h6){
  font-family:var(--eiw-type-font);
  color:var(--eiw-type-heading);
  text-wrap:balance;
}
.eiw-app-shell :is(p,li,dd,dt){text-wrap:pretty}

/* Header + primary navigation: readable without visually competing with content. */
.eiw-app-header{color:var(--eiw-type-heading)}
.eiw-brand-copy strong{font-size:14.5px;font-weight:760;color:var(--eiw-type-heading-strong)}
.eiw-brand-copy small{font-size:11.5px;font-weight:430;line-height:1.4;color:var(--eiw-type-muted)}
.eiw-nav-link{font-size:14px;font-weight:680;line-height:1.2;color:#4d5878}
.eiw-user-chip{font-size:13.5px;font-weight:680;color:var(--eiw-type-heading)}

/* Universal page hierarchy. */
.eiw-app-main h1{
  color:var(--eiw-type-heading-strong);
  font-size:var(--eiw-type-h1);
  font-weight:760;
  line-height:1.08;
  letter-spacing:-.035em;
}
.eiw-app-main h2{
  color:var(--eiw-type-heading);
  font-size:var(--eiw-type-h2);
  font-weight:730;
  line-height:1.17;
  letter-spacing:-.025em;
}
.eiw-app-main h3{
  color:var(--eiw-type-heading);
  font-size:var(--eiw-type-h3);
  font-weight:700;
  line-height:1.3;
  letter-spacing:-.012em;
}
.eiw-app-main h4{color:var(--eiw-type-heading);font-size:17px;font-weight:700;line-height:1.35}
.eiw-app-main p{color:var(--eiw-type-body);font-size:var(--eiw-type-body-size);font-weight:400;line-height:var(--eiw-type-body-line);letter-spacing:.002em}
.eiw-app-main a{font-weight:650}
.eiw-app-main .eiw-muted{color:var(--eiw-type-muted);font-size:14.5px;font-weight:420;line-height:1.55;letter-spacing:.002em}
.eiw-app-main .eiw-eyebrow{
  margin-bottom:9px;
  color:#5868b5;
  font-size:11.5px;
  font-weight:800;
  line-height:1.3;
  letter-spacing:.115em;
}

/* Hero copy: strong but never poster-sized. */
.eiw-app-main :is(
  .eiw-smart-dashboard-copy h1,
  .eiw-dashboard-hero h1,
  .eiw-course-hero h1,
  .eiw-checkpoint-hero h1,
  .eiw-directory-hero h1,
  .eiw-leaderboard-hero h1,
  .eiw-live-events-title h1,
  .eiw-community-v2-title h1,
  .eiw-profile-hero h1,
  .eiw-account-hero h1
){
  margin-top:6px;
  color:var(--eiw-type-heading-strong);
  font-family:var(--eiw-type-font);
  font-size:var(--eiw-type-h1);
  font-weight:760;
  line-height:1.08;
  letter-spacing:-.035em;
}
.eiw-app-main :is(
  .eiw-smart-dashboard-copy>p,
  .eiw-dashboard-hero>div>p,
  .eiw-course-intro,
  .eiw-checkpoint-hero p,
  .eiw-directory-hero p,
  .eiw-leaderboard-hero p,
  .eiw-live-events-title p,
  .eiw-community-v2-title p,
  .eiw-profile-hero p,
  .eiw-account-hero p
){
  color:var(--eiw-type-body);
  font-size:17px;
  font-weight:395;
  line-height:1.64;
  letter-spacing:-.004em;
}
.eiw-community-v2-title small{
  color:var(--eiw-type-muted);
  font-size:14px;
  font-weight:420;
  line-height:1.55;
}

/* Section headings + helper copy. */
.eiw-section-heading{align-items:end;gap:24px}
.eiw-section-heading h2{font-size:clamp(27px,2.5vw,33px);font-weight:730;line-height:1.2;color:var(--eiw-type-heading)}
.eiw-section-heading>.eiw-muted{max-width:430px;text-align:right;color:var(--eiw-type-muted);font-size:14.5px;font-weight:420;line-height:1.55}

/* Cards: a compact, dependable reading scale. */
.eiw-app-main :is(
  .eiw-course-card h3,
  .eiw-next-card h3,
  .eiw-coming-grid h3,
  .eiw-checkpoint-week-heading h3,
  .eiw-directory-person h3,
  .eiw-community-v2-side-card h3,
  .eiw-community-v2-card h3,
  .eiw-live-card-copy h2,
  .eiw-live-empty-state h2
){font-family:var(--eiw-type-font);font-size:19px;font-weight:700;line-height:1.3;color:var(--eiw-type-heading);letter-spacing:-.012em}
.eiw-app-main :is(
  .eiw-course-card p,
  .eiw-next-card p,
  .eiw-coming-grid p,
  .eiw-checkpoint-week p,
  .eiw-directory-card>p,
  .eiw-community-v2-post-body,
  .eiw-community-v2-empty p,
  .eiw-live-card-copy p,
  .eiw-live-empty-state p,
  .eiw-result-summary p,
  .eiw-feedback-card p,
  .eiw-smart-empty p,
  .eiw-dashboard-quiet-links small
){
  color:var(--eiw-type-body);
  font-size:15px;
  font-weight:400;
  line-height:1.66;
  letter-spacing:0;
}

/* Utility / metadata copy: still readable, clearly secondary. */
.eiw-app-main :is(
  small,
  .eiw-browser-only,
  .eiw-agenda-empty,
  .eiw-directory-counts span,
  .eiw-directory-person span,
  .eiw-directory-person small,
  .eiw-profile-stat-grid span,
  .eiw-live-host-row em,
  .eiw-live-card-bottom small,
  .eiw-community-v2-author small,
  .eiw-community-v2-space-main small,
  .eiw-community-v2-highlight em,
  .eiw-community-v2-no-comments,
  .eiw-today-progress small,
  .eiw-smart-momentum-strip small
){
  color:var(--eiw-type-muted);
  font-size:13px;
  font-weight:430;
  line-height:1.52;
}

/* Labels, chips and metadata should be compact rather than tiny. */
.eiw-app-main :is(
  .eiw-course-card-top span,
  .eiw-meta-row span,
  .eiw-lesson-meta>span,
  .eiw-ready-badge,
  .eiw-live-event-badge,
  .eiw-community-v2-type,
  .eiw-community-v2-space-chip,
  .eiw-community-v2-highlight small
){font-size:11px;font-weight:780;line-height:1.25;letter-spacing:.045em}

/* Forms, tabs, controls and CTAs. */
.eiw-app-main :is(button,input,select,textarea){font-family:var(--eiw-type-font)}
.eiw-app-main :is(input,select,textarea){font-size:15px;font-weight:400;color:var(--eiw-type-heading);line-height:1.5}
.eiw-app-main :is(
  .eiw-primary-cta,
  .eiw-secondary-button,
  .eiw-slot-book,
  .eiw-community-v2-create,
  .eiw-community-v2-secondary,
  .eiw-live-calendar-cta,
  .eiw-live-tabs a,
  .eiw-live-type-filters a,
  .eiw-directory-tabs a,
  .eiw-community-v2-nav a
){font-size:14px;font-weight:720;line-height:1.2}

/* Home / Learn / My Journey. */
.eiw-page-home .eiw-smart-dashboard-copy h1{font-size:clamp(39px,3.8vw,48px)}
.eiw-page-home .eiw-smart-dashboard-copy>p{font-size:16.5px;color:var(--eiw-type-body)}
.eiw-page-home .eiw-today-journey-main h2{font-size:clamp(26px,2.4vw,32px);font-weight:730}
.eiw-page-home .eiw-today-journey-main>p{font-size:15.5px;color:var(--eiw-type-body)}
.eiw-page-home .eiw-smart-goal small{font-size:12px;font-weight:430;color:var(--eiw-type-muted)}
.eiw-page-home .eiw-smart-goal strong{font-size:15px;font-weight:680;color:var(--eiw-type-heading)}
.eiw-page-home .eiw-smart-momentum-strip strong{font-size:24px;font-weight:740;color:var(--eiw-type-heading-strong)}
.eiw-page-home .eiw-smart-momentum-strip small{font-size:12.5px;font-weight:480}
.eiw-page-home .eiw-growth-section :is(p,li){color:var(--eiw-type-body)}

/* Checkpoint. */
.eiw-page-checkpoint .eiw-checkpoint-capacity strong{font-size:42px;font-weight:760}
.eiw-page-checkpoint .eiw-checkpoint-capacity span{font-size:11.5px;font-weight:700;line-height:1.45}
.eiw-page-checkpoint .eiw-slot-date{font-size:13.5px;font-weight:700;color:var(--eiw-type-heading)}
.eiw-page-checkpoint .eiw-slot-card>strong{font-size:16px;font-weight:700;color:var(--eiw-type-heading)}
.eiw-page-checkpoint .eiw-booked-room h4{font-size:20px;font-weight:700}

/* Community. */
.eiw-page-community .eiw-community-v2-title h1{font-size:clamp(40px,4vw,48px)}
.eiw-page-community .eiw-community-v2-title p{color:var(--eiw-type-body);font-size:16.5px;font-weight:430}
.eiw-page-community .eiw-community-v2-script{font-size:19px;color:#4864cb}
.eiw-page-community .eiw-community-v2-nav a{color:#4f5b7b}
.eiw-page-community .eiw-community-v2-nav a.is-active{color:var(--eiw-type-link)}
.eiw-page-community .eiw-community-v2-post-author strong{font-size:15px;font-weight:700;color:var(--eiw-type-heading)}
.eiw-page-community .eiw-community-v2-post-body{font-size:15.5px;color:#56617a;line-height:1.7;font-weight:400;letter-spacing:.002em}
.eiw-page-community .eiw-community-v2-side-heading h3{font-size:19px;font-weight:720}
.eiw-page-community .eiw-community-v2-space-main strong{font-size:14px;font-weight:700;color:var(--eiw-type-heading)}
.eiw-page-community .eiw-community-v2-stat strong{font-size:22px;font-weight:740;color:var(--eiw-type-link)}
.eiw-page-community .eiw-community-v2-stat span{font-size:12.5px;font-weight:430;color:var(--eiw-type-muted)}

/* Learners directory. */
.eiw-page-learners .eiw-directory-hero h1{font-size:clamp(39px,3.7vw,48px)}
.eiw-page-learners .eiw-directory-person h3{font-size:16.5px;font-weight:700}
.eiw-page-learners .eiw-directory-card>p{font-size:14.5px;color:var(--eiw-type-body)}
.eiw-page-learners .eiw-directory-card-foot{font-size:12.5px;color:var(--eiw-type-muted)}
.eiw-page-learners .eiw-directory-counts strong{font-size:24px;font-weight:740;color:var(--eiw-type-heading)}
.eiw-page-learners .eiw-directory-counts span{font-size:12px}

/* Leaderboard: intentionally calmer than the previous oversized poster treatment. */
.eiw-page-leaderboard .eiw-leaderboard-hero h1{font-size:clamp(39px,3.8vw,48px)}
.eiw-page-leaderboard .eiw-leaderboard-hero p{font-size:16.5px;font-weight:400;color:var(--eiw-type-body);line-height:1.68}
.eiw-page-leaderboard .eiw-your-rank span{font-size:11px;font-weight:760;color:#d9dcf2}
.eiw-page-leaderboard .eiw-your-rank strong{font-size:42px;font-weight:760}
.eiw-page-leaderboard .eiw-your-rank small{font-size:12.5px;color:#dfe2f2}
.eiw-page-leaderboard .eiw-leader-row{color:var(--eiw-type-body)}

/* Live. */
.eiw-page-live .eiw-live-events-title h1{font-size:clamp(40px,4vw,48px);font-family:var(--eiw-type-font);font-weight:760;color:var(--eiw-type-heading-strong)}
.eiw-page-live .eiw-live-events-title p{font-size:16.5px;font-weight:395;color:var(--eiw-type-body)}
.eiw-page-live .eiw-live-card-copy h2{font-size:19px;font-weight:710}
.eiw-page-live .eiw-live-card-copy p{font-size:14.5px;color:var(--eiw-type-body)}
.eiw-page-live .eiw-live-host-row strong{font-size:13.5px;font-weight:680;color:var(--eiw-type-heading)}
.eiw-page-live .eiw-calendar-event-time{font-size:10px;font-weight:800}
.eiw-page-live .eiw-calendar-event-title{font-size:11px;font-weight:700;color:var(--eiw-type-heading)}
.eiw-page-live .eiw-calendar-event-host{font-size:10px!important;font-weight:500;color:var(--eiw-type-muted)!important}

/* Course / lesson pages are part of the same learner product and inherit the system. */
.eiw-page-learn .eiw-course-card h3,.eiw-page-home #learn .eiw-course-card h3{font-size:19px;font-weight:700}
.eiw-lesson-content h1{font-size:clamp(36px,3.8vw,48px);font-weight:750;line-height:1.1}
.eiw-reading-content{color:#505b76;font-size:17px;line-height:1.8;font-weight:400;letter-spacing:.001em}
.eiw-reading-content :is(p,li){font-size:17px;line-height:1.8;color:#505b76;font-weight:400;letter-spacing:.001em}
.eiw-reading-content h2{font-size:30px;font-weight:730;line-height:1.25}
.eiw-reading-content h3{font-size:22px;font-weight:700;line-height:1.35}

/* Refined regular-copy layer: lighter, calmer and more editorial.
   Headings, labels and CTAs intentionally keep their stronger hierarchy. */
.eiw-app-main :is(
  .eiw-course-intro,
  .eiw-checkpoint-hero p,
  .eiw-directory-hero p,
  .eiw-leaderboard-hero p,
  .eiw-live-events-title p,
  .eiw-community-v2-title p,
  .eiw-profile-hero p,
  .eiw-account-hero p,
  .eiw-course-card p,
  .eiw-next-card p,
  .eiw-coming-grid p,
  .eiw-checkpoint-week p,
  .eiw-directory-card>p,
  .eiw-community-v2-post-body,
  .eiw-community-v2-empty p,
  .eiw-live-card-copy p,
  .eiw-live-empty-state p,
  .eiw-result-summary p,
  .eiw-feedback-card p,
  .eiw-smart-empty p
){font-weight:400;color:var(--eiw-type-body)}

/* Harmonise passive text colors across differently themed pages. */
.eiw-app-main :is(.eiw-course-card-bottom small,.eiw-hero-progress small,.eiw-access-note,.eiw-browser-only){color:var(--eiw-type-muted)}

@media(max-width:980px){
  .eiw-app-shell{--eiw-type-h1:clamp(37px,6vw,46px);--eiw-type-h2:clamp(27px,4vw,32px)}
  .eiw-section-heading{align-items:flex-start;flex-direction:column;gap:8px}
  .eiw-section-heading>.eiw-muted{max-width:none;text-align:left}
}

@media(max-width:780px){
  .eiw-app-shell{
    --eiw-type-h1:clamp(34px,9vw,40px);
    --eiw-type-h2:clamp(25px,6vw,30px);
    --eiw-type-h3:18px;
    --eiw-type-body-size:15.5px;
    --eiw-type-body-line:1.62;
  }
  .eiw-app-main{width:min(100% - 28px,1360px)}
  .eiw-nav-link{font-size:13px}
  .eiw-app-main :is(
    .eiw-smart-dashboard-copy>p,
    .eiw-dashboard-hero>div>p,
    .eiw-course-intro,
    .eiw-checkpoint-hero p,
    .eiw-directory-hero p,
    .eiw-leaderboard-hero p,
    .eiw-live-events-title p,
    .eiw-community-v2-title p
  ){font-size:15.5px;line-height:1.6}
  .eiw-app-main :is(.eiw-course-card p,.eiw-next-card p,.eiw-community-v2-post-body,.eiw-directory-card>p,.eiw-live-card-copy p){font-size:14.5px}
  .eiw-app-main :is(small,.eiw-community-v2-author small,.eiw-live-host-row em){font-size:12.5px}
  .eiw-page-home .eiw-smart-dashboard-copy h1,
  .eiw-page-community .eiw-community-v2-title h1,
  .eiw-page-leaderboard .eiw-leaderboard-hero h1,
  .eiw-page-live .eiw-live-events-title h1,
  .eiw-page-learners .eiw-directory-hero h1{font-size:clamp(34px,9vw,40px)}
  .eiw-reading-content,.eiw-reading-content :is(p,li){font-size:16px;line-height:1.72}
}

@media(max-width:480px){
  .eiw-app-shell{--eiw-type-h1:34px;--eiw-type-h2:26px;--eiw-type-body-size:15px}
  .eiw-app-main .eiw-eyebrow{font-size:10.5px;letter-spacing:.105em}
  .eiw-app-main h3{font-size:18px}
  .eiw-app-main :is(.eiw-primary-cta,.eiw-secondary-button,.eiw-slot-book,.eiw-community-v2-create,.eiw-community-v2-secondary){font-size:13.5px}
}

/* V0.8.7.8 — Balanced body typography layer.
   The goal is the midpoint between the earlier heavy and overly light treatments.
   Body copy is readable at a calm medium-light weight; headings, navigation and CTAs remain stronger. */
.eiw-app-main :is(
  p,
  .eiw-muted,
  .eiw-course-intro,
  .eiw-today-journey-main p,
  .eiw-today-meta,
  .eiw-next-card p,
  .eiw-course-card p,
  .eiw-directory-card>p,
  .eiw-directory-card-foot,
  .eiw-live-card-copy p,
  .eiw-live-card-bottom small,
  .eiw-result-summary p,
  .eiw-feedback-card p,
  .eiw-community-v2-post-body,
  .eiw-community-v2-space-main small,
  .eiw-community-v2-highlight em,
  .eiw-community-v2-empty p,
  .eiw-community-v2-author small,
  .eiw-community-v2-comment-count,
  .eiw-community-v2-no-comments,
  .eiw-dashboard-quiet-links small,
  .eiw-smart-goal small,
  .eiw-smart-empty p,
  .eiw-calendar-event-host,
  .eiw-today-progress small,
  .eiw-course-card-bottom small,
  .eiw-hero-progress small,
  .eiw-access-note,
  .eiw-browser-only,
  .eiw-directory-person span,
  .eiw-directory-person small,
  .eiw-profile-stat-grid span,
  .eiw-live-host-row em
){
  color:var(--eiw-type-body-soft) !important;
  font-weight:425 !important;
}

.eiw-app-main :is(
  .eiw-smart-dashboard-copy>p,
  .eiw-dashboard-hero>div>p,
  .eiw-checkpoint-hero p,
  .eiw-directory-hero p,
  .eiw-leaderboard-hero p,
  .eiw-live-events-title p,
  .eiw-community-v2-title p,
  .eiw-profile-hero p,
  .eiw-account-hero p,
  .eiw-page-home .eiw-today-journey-main>p,
  .eiw-page-home .eiw-smart-dashboard-copy>p,
  .eiw-page-home .eiw-today-journey-main p,
  .eiw-page-checkpoint .eiw-result-summary p,
  .eiw-page-learners .eiw-directory-hero p,
  .eiw-page-live .eiw-live-events-title p
){
  color:#606b82 !important;
  font-weight:420 !important;
  line-height:1.68;
}

.eiw-page-community .eiw-community-v2-post-body{
  color:#5f6a82 !important;
  font-weight:425 !important;
  line-height:1.72;
}

.eiw-page-live .eiw-live-card-copy p,
.eiw-page-learners .eiw-directory-card>p,
.eiw-page-home .eiw-course-card p,
.eiw-page-learn .eiw-course-card p,
.eiw-page-checkpoint .eiw-feedback-card p,
.eiw-page-checkpoint .eiw-result-summary p{
  color:#626d84 !important;
  font-weight:425 !important;
}

/* V0.8.8.0 — final readable scale for the compact Lesson roadmap. */
.eiw-lesson-sidebar .eiw-week-title{font-size:12px;line-height:1.42;color:#4f5874}
.eiw-lesson-sidebar .eiw-week-toggle-copy small{font-size:11px;line-height:1.42;color:#6f7892}
.eiw-lesson-sidebar .eiw-week-lessons .eiw-journey-item strong{font-size:13px;line-height:1.42}
.eiw-lesson-sidebar .eiw-week-lessons .eiw-journey-item small{font-size:11px;line-height:1.42;color:#69738e}
.eiw-lesson-sidebar .eiw-journey-module.is-collapsible .eiw-module-lock-note{font-size:12px;line-height:1.48;color:#626c86}
