/* Permanent Academy typography. Shared token/shell changes live in core.
   Keep Academy's existing 16/17/18px responsive rem base, including its header. */
[hidden]{display:none!important}
body.type-site:not(.type-practice) {
  --font-body:var(--type-font-body);
  --d-font-body:var(--type-font-body);
  --font-display:var(--d-font-display);
  --font-bn:'Tiro Bangla', 'Figtree', 'Hind Siliguri', 'Noto Sans Bengali', sans-serif;
  font-family:var(--font-body);
  font-size:var(--type-base);
  font-weight:400;
  font-style:normal;
  line-height:var(--type-line-text);
  font-synthesis:none;
}
.type-site:not(.type-practice) :where(p,li,dt,dd,span,a,label,input,select,button,summary,strong,b,small) {
  font-family:inherit;
  font-style:normal;
}
.type-site:not(.type-practice) :where(strong,b,label,summary) { font-weight:600; }
.type-site:not(.type-practice) :where(button,.btn,.mp-action) { font-weight:700; }
.type-site:not(.type-practice) :where(input,select,button) { font-family:var(--font-body); font-size:var(--type-base); line-height:var(--type-line-ui); }
.type-site:not(.type-practice) :where(h1,h2,h3) { font-family:var(--font-body); font-weight:600; font-style:normal; }
.type-site:not(.type-practice) .br-brand-name {
  display:block;
  font-family:var(--font-display);
  font-size:var(--type-wordmark);
  font-weight:600;
  line-height:var(--type-line-ui);
  letter-spacing:var(--type-case-tracking,normal);
}
.type-site:not(.type-practice) .site-head .inner { width:min(1200px,calc(100% - 64px)); padding-inline:0; }
.type-site:not(.type-practice) .head-link, .type-site:not(.type-practice) .head-nav .btn { font-family:var(--font-body); font-size:var(--type-sm); line-height:var(--type-line-ui); }
.type-site:not(.type-practice) .head-link { font-weight:600; }
.type-site:not(.type-practice) .head-nav .btn { font-weight:700; }
.type-site:not(.type-practice) .bp { font-family:var(--font-body); }
.type-site:not(.type-practice) .bp .bp-menu { padding-block:4px; }
.type-site:not(.type-practice) .site-foot { font-family:var(--font-body); font-size:var(--type-sm); line-height:var(--type-line-text); }
.type-site:not(.type-practice) .site-foot .foot-row + .foot-row { font-size:var(--type-sm); }
.type-site:not(.type-practice) .site-foot .foot-brand { font-family:var(--font-display); font-size:var(--type-xl); font-weight:600; line-height:var(--type-line-section); }
/* Preserve the existing gold and the real 500 italic file. Bangla remains upright. */
.type-site:not(.type-practice) .site-foot .tagline { font-family:var(--font-display); font-size:var(--type-lg); font-weight:400; font-style:normal; }
.type-site:not(.type-practice) .site-foot .tagline .g-en { font-family:var(--font-display); font-weight:500; font-style:italic; }
.type-site:not(.type-practice) .site-foot .tagline .g-bn { font-family:var(--font-bn); font-size:var(--type-base); font-style:normal; font-weight:400; }
.type-site:not(.type-practice) .g .g-bn, .type-site:not(.type-practice) .g .g-en { font-size:inherit; font-weight:inherit; }
.type-site:not(.type-practice) .pw-page, .type-site:not(.type-practice) .pass-sales { line-height:var(--type-line-text); }
.type-site:not(.type-practice).pw-page h1, .type-site:not(.type-practice) .pass-sales h1 {
  font-family:var(--font-display); font-size:var(--type-page); font-weight:600;
  line-height:var(--type-line-page); letter-spacing:var(--type-case-tracking,normal); text-wrap:balance;
}
.type-site:not(.type-practice).pw-page h2, .type-site:not(.type-practice) .pass-sales h2 {
  font-family:var(--font-display); font-size:var(--type-section); font-weight:600;
  line-height:var(--type-line-section); letter-spacing:-.01em;
}
.type-site:not(.type-practice).pw-page h3, .type-site:not(.type-practice) .pass-sales h3 {
  font-family:var(--font-body); font-size:var(--type-card); font-weight:600; line-height:var(--type-line-section);
}
.type-site:not(.type-practice).pw-page .pw-kicker, .type-site:not(.type-practice) .pass-sales-kicker, .type-site:not(.type-practice) .mp-eyebrow {
  font-family:var(--font-body); font-size:var(--type-sm); font-weight:600;
  line-height:var(--type-line-ui); text-transform:uppercase;--type-case-tracking:var(--type-eyebrow-tracking); letter-spacing:var(--type-case-tracking,normal);
}
.type-site:not(.type-practice).pw-page .pw-intro { font-size:var(--type-md); line-height:var(--type-line-text); margin-top:16px; }
.type-site:not(.type-practice).pw-page .pw-module-name { font-family:var(--font-body); font-size:var(--type-card); line-height:var(--type-line-section); }
.type-site:not(.type-practice).pw-page .pw-section-head p, .type-site:not(.type-practice).pw-page .pw-module-description,
.type-site:not(.type-practice).pw-page .pw-promises li { line-height:var(--type-line-text); }
.type-site:not(.type-practice).pw-page .pw-plan-price strong { font-size:var(--type-4xl); font-weight:700; }
.type-site:not(.type-practice) .pass-sales { font-size:var(--type-base); }
.type-site:not(.type-practice) .pass-sales h1 { max-width:22ch; margin-bottom:12px; overflow-wrap:normal; }
.type-site:not(.type-practice) .pass-sales h2 { margin-bottom:12px; }
.type-site:not(.type-practice) .pass-sales-price strong { font-size:var(--type-3xl); font-weight:700; line-height:var(--type-line-ui); }
.type-site:not(.type-practice) .pass-sales .btn { font-size:var(--type-base); line-height:var(--type-line-ui); }
.type-site:not(.type-practice) .pass-sales .pass-sales-action { font-size:var(--type-base); font-weight:700; line-height:var(--type-line-ui); }
.type-site:not(.type-practice) .pass-sales-apps + p { margin-top:16px; }
.type-site:not(.type-practice) .pass-sales :where(.tiny,.hint,.pay-switch,.pass-legal) { font-size:var(--type-sm); line-height:var(--type-line-text); }
.type-site:not(.type-practice) .pass-sales .pay-step { font-size:var(--type-base); line-height:var(--type-line-text); }
.type-site:not(.type-practice) .pass-sales :where(.pay-methods,.pay-mine,.pay-form,label) { font-size:var(--type-base); }
.type-site:not(.type-practice) .pass-sales :where(.g-inline .g-bn,.g .g-bn) { font-size:inherit; }
.type-site:not(.type-practice) .pass-sales .pay-form label { font-weight:600; line-height:var(--type-line-ui); }
.type-site:not(.type-practice) .pass-sales .pay-number { font-family:var(--font-body); font-size:var(--type-base); font-weight:600; }
.type-site:not(.type-practice) .mp-reference { font-family:var(--font-body); line-height:var(--type-line-text); }
/* Signed-in app hierarchy: a compact display title; smaller titles use text. */
.type-site:not(.type-practice) .mp-reference h1 {
  font-family:var(--font-display); font-size:var(--type-2xl); font-weight:600;
  line-height:var(--type-line-page); letter-spacing:var(--type-case-tracking,normal);
}
.type-site:not(.type-practice) .mp-reference .mp-hero h2,
.type-site:not(.type-practice) .mp-reference .mp-section-head h2 {
  font-family:var(--font-body); font-size:var(--type-xl); font-weight:600;
  line-height:var(--type-line-section); letter-spacing:var(--type-case-tracking,normal);
}
.type-site:not(.type-practice) .mp-page-head h1 { margin-bottom:8px; }
.type-site:not(.type-practice) .mp-page-head { margin-bottom:20px; }
.type-site:not(.type-practice) .mp-hero h2 { margin-bottom:8px; }
.type-site:not(.type-practice) .mp-stat-label, .type-site:not(.type-practice) .mp-stat strong span,
.type-site:not(.type-practice) .mp-section-head span, .type-site:not(.type-practice) .mp-reference .mp-mins,
.type-site:not(.type-practice) .mp-reference .mp-pass { font-size:var(--type-sm); font-weight:400; letter-spacing:var(--type-case-tracking,normal); }
.type-site:not(.type-practice) .mp-stat strong { font-family:var(--font-body); font-size:var(--type-xl); font-weight:600; line-height:var(--type-line-ui); letter-spacing:var(--type-case-tracking,normal); }
.type-site:not(.type-practice) .mp-stat[data-home-stat="today"] strong { font-weight:700; }
.type-site:not(.type-practice) .mp-reference .mp-skill b { font-family:var(--font-body); font-size:var(--type-md); font-weight:600; line-height:var(--type-line-section); }
.type-site:not(.type-practice) .mp-reference .mp-action { font-size:var(--type-base); font-weight:700; line-height:var(--type-line-ui); }
@media(max-width:1050px) {
  .type-site:not(.type-practice) .site-head .inner { width:calc(100% - 48px); }
}
@media(max-width:760px) {
  .type-site:not(.type-practice) .site-head .inner { width:calc(100% - 32px); }
  .type-site:not(.type-practice) .site-head .inner { gap:8px; }
  .type-site:not(.type-practice) .br-brand { gap:6px; flex-shrink:0; }
  .type-site:not(.type-practice) .br-brand-name { min-width:max-content; }
  .type-site:not(.type-practice) .head-nav .btn { padding-inline:10px; }
  .type-site:not(.type-practice).pw-page .pw-kicker { margin-bottom:10px; }
  .type-site:not(.type-practice).pw-page .pw-intro { margin-top:12px; }
  .type-site:not(.type-practice).pw-page .pw-actions { margin-top:16px; }
  .type-site:not(.type-practice) .pass-sales h1 { max-width:100%; }
  .type-site:not(.type-practice) .mp-reference .mp-page-head { margin-bottom:16px; }
  .type-site:not(.type-practice) .mp-reference .mp-hero { padding-block:16px; }
}
@media(pointer:coarse) {
  .type-site:not(.type-practice) .site-head a, .type-site:not(.type-practice) .site-foot a, .type-site:not(.type-practice) .pass-sales a,
  .type-site:not(.type-practice) .pass-sales button, .type-site:not(.type-practice) .pass-sales input,
  .type-site:not(.type-practice) .pass-sales select, .type-site:not(.type-practice) .pass-sales summary { min-height:44px; }
  .type-site:not(.type-practice) .site-foot a { display:inline-flex; align-items:center; }
}

@media(max-width:420px) {
  .type-site:not(.type-practice) { --type-wordmark:var(--type-lg); }
}

/* Fix 1: only the public header on the two auth pages opts into this layer.
   Keep full wording, readable scale sizes and one row inside 16px side margins. */
@media(max-width:760px) {
  :is(.type-site:not(.type-practice):not(.pw-page),.type-header) .site-head .inner {
    width:calc(100% - 32px); padding-inline:0; gap:4px;
  }
  :is(.type-site:not(.type-practice):not(.pw-page),.type-header) .site-head .br-brand { gap:4px; flex-shrink:0; }
  :is(.type-site:not(.type-practice):not(.pw-page),.type-header) .site-head .br-brand-name {
    display:block; min-width:max-content;
    font-family:var(--d-font-display); font-size:var(--type-lg);
    font-weight:600; line-height:var(--type-line-ui); letter-spacing:var(--type-case-tracking,normal);
  }
  :is(.type-site:not(.type-practice):not(.pw-page),.type-header) .site-head .head-nav { gap:2px; }
  :is(.type-site:not(.type-practice):not(.pw-page),.type-header) .site-head .head-link,
  :is(.type-site:not(.type-practice):not(.pw-page),.type-header) .site-head .head-nav .btn {
    font-family:var(--font-body); font-size:var(--type-sm);
    line-height:var(--type-line-ui); padding-inline:6px;
    min-height:44px; display:inline-flex; align-items:center;
  }
  :is(.type-site:not(.type-practice):not(.pw-page),.type-header) .site-head .head-link { font-weight:600; }
  :is(.type-site:not(.type-practice):not(.pw-page),.type-header) .site-head .head-nav .btn { font-weight:700; }
}

/* Student pages migrate by default in base.html. Admin and the lesson content
   are deliberately outside this selector; accepted front/pass/home keep roles. */
body.type-site:not(.type-practice):not(.pw-page):not(.pass-page):not(.type-home) #main :where(*){
  font-family:var(--font-body);font-size:var(--type-base);font-weight:400;
  font-style:normal;line-height:var(--type-line-text);
}
body.type-site:not(.type-practice):not(.pw-page):not(.pass-page):not(.type-home) #main :where(h1,h1 *){
  font-family:var(--font-display);font-size:var(--type-2xl);font-weight:600;
  line-height:var(--type-line-page);letter-spacing:var(--type-case-tracking,normal);
}
body.type-site:not(.type-practice):not(.pw-page):not(.pass-page):not(.type-home) #main :where(h2,h2 *){font-family:var(--font-body);font-size:var(--type-xl);font-weight:600;line-height:var(--type-line-section);letter-spacing:var(--type-case-tracking,normal)}
body.type-site:not(.type-practice):not(.pw-page):not(.pass-page):not(.type-home) #main :where(h3,h3 *,h4,.unit-name,.topic-title,.step-title,.card-title){font-family:var(--font-body);font-size:var(--type-md);font-weight:600;line-height:var(--type-line-ui)}
body.type-site:not(.type-practice):not(.pw-page):not(.pass-page):not(.type-home) #main :where(strong,b,label,summary){font-weight:600}
body.type-site:not(.type-practice):not(.pw-page):not(.pass-page):not(.type-home) #main :where(.tiny,.hint,small,.t-meta,.unit-meta,.topic-meta,.field .hint){font-size:var(--type-sm);line-height:var(--type-line-ui)}
body.type-site:not(.type-practice):not(.pw-page):not(.pass-page):not(.type-home) #main :where(.eyebrow,.kicker,.form-section,.t-meta){font-size:var(--type-sm);font-weight:600;letter-spacing:var(--type-case-tracking,normal);text-transform:uppercase;--type-case-tracking:var(--type-eyebrow-tracking);line-height:var(--type-line-ui)}
body.type-site:not(.type-practice):not(.pw-page):not(.pass-page):not(.type-home) #main :where(.btn,.btn *,button,button *){font-family:var(--font-body);font-size:var(--type-base);font-weight:700;line-height:var(--type-line-ui)}
/* A player keeps its body, Bangla explanation and question typography. */
.type-practice :is(.site-head,.focus-head,.focus-title,.action-dock){--font-body:var(--type-font-body);font-family:var(--font-body)}
.type-practice .focus-title h1{font-family:var(--d-font-display);font-size:var(--type-2xl);font-weight:600;line-height:var(--type-line-page)}
.type-practice :is(.focus-head,.action-dock) :is(button,.btn){font-family:var(--type-font-body);font-size:var(--type-base);font-weight:700;line-height:var(--type-line-ui)}
@media(pointer:coarse){body.type-site:not(.type-practice) #main :where(a,button,input,select,summary){min-height:44px}}

/* Shared student banners/footer typography, outside the practice player. */
body.type-site:not(.type-practice) .site-foot :where(p,span,a,div){font-family:var(--font-body);font-size:var(--type-sm);font-weight:400;line-height:var(--type-line-text)}
body.type-site:not(.type-practice) .site-foot :where(.foot-brand,.foot-brand *){font-family:var(--font-display);font-size:var(--type-xl);font-weight:600;line-height:var(--type-line-section)}
body.type-site:not(.type-practice) .site-foot .tagline .g-en{font-family:var(--font-display);font-size:var(--type-lg);font-weight:500;font-style:italic}
body.type-site:not(.type-practice) :is(.daybar,.monthly-plan-banner,.adm-ribbon,.adm-sheet) :where(p,span,a,button,label,small,strong,b){font-family:var(--font-body);font-size:var(--type-sm);font-weight:400;line-height:var(--type-line-ui)}
body.type-site:not(.type-practice) :is(.daybar,.monthly-plan-banner,.adm-ribbon,.adm-sheet) :where(b,strong,label){font-weight:600}
body.type-site:not(.type-practice) :is(.daybar,.monthly-plan-banner,.adm-ribbon,.adm-sheet) :where(button,.btn){font-weight:700}

/* Text columns keep a compact start; card structure and all content remain. */
body.type-site:not(.type-practice):not(.pw-page):not(.pass-page):not(.type-home) #main > .section{padding-block:1rem}
@media(pointer:coarse){
  body.type-site:not(.type-practice) #main :is(a:not([class]),a[class=""]){display:inline-flex;align-items:center;min-height:44px}
  body.type-site:not(.type-practice) .daybar a{display:inline-flex;align-items:center;min-height:44px}
}

/* Fix 2: the owner's Tiro Bangla reading choice precedes the Latin face.
   These are Academy's existing --font-bn users on main, including inherited
   inline emphasis. The role overlay must not erase their language boundary. */
body.type-site:not(.type-practice) :is(#main,.site-head,.site-foot,.daybar,.flash-wrap,.adm-ribbon,.monthly-plan-banner) :is(.g .g-bn,.g-inline .g-bn,.skill-title .bn,.topic-bn,.bn-sub,.activity-bn,.lesson-intro,.fb-bn,.res-bn,.ma-sent .bn,.chip .bn,.rq-body .bn,.test-head h1 .bn,.test-head .bn-sub .bn,.dock-note .bn,.level-name .bn,.skill-name .bn,.skill-mini-name .bn,.rm-topic-bn,.rm-bn,.feature-card .fc-bn,.step .rm-bn,.prompt-bn,.qfb-label,.pc-prompt-bn,.pc-instruction .bn,.feedback-panel .fb-bn,.bn,.milestone .m-bn,.example .bn,.page-head .bn-sub,.q-bn,.q-sentence .sen-bn),
body.type-site:not(.type-practice) :is(#main,.site-head,.site-foot,.daybar,.flash-wrap,.adm-ribbon,.monthly-plan-banner) :is(.g .g-bn,.g-inline .g-bn,.skill-title .bn,.topic-bn,.bn-sub,.activity-bn,.lesson-intro,.fb-bn,.res-bn,.ma-sent .bn,.chip .bn,.rq-body .bn,.test-head h1 .bn,.test-head .bn-sub .bn,.dock-note .bn,.level-name .bn,.skill-name .bn,.skill-mini-name .bn,.rm-topic-bn,.rm-bn,.feature-card .fc-bn,.step .rm-bn,.prompt-bn,.qfb-label,.pc-prompt-bn,.pc-instruction .bn,.feedback-panel .fb-bn,.bn,.milestone .m-bn,.example .bn,.page-head .bn-sub,.q-bn,.q-sentence .sen-bn) :where(*){font-family:var(--font-bn);font-synthesis:weight}

/* Figtree's compact text needs its natural spacing. Only large public display
   titles retain negative tracking; the small-title roles stay untracked. */
body.type-site:not(.type-practice),body.type-site:not(.type-practice) :where(*){letter-spacing:var(--type-case-tracking,normal)}
body.type-site:not(.type-practice).pw-page :is(h1,h1 *),
body.type-site:not(.type-practice) .pass-sales :is(h1,h1 *){letter-spacing:-.02em}
@media(min-width:761px){
 body.type-site:not(.type-practice).pw-page :is(h2,h2 *),
 body.type-site:not(.type-practice) .pass-sales :is(h2,h2 *){letter-spacing:-.01em}
}
@media(max-width:760px){
 body.type-site:not(.type-practice).pw-page :is(h2,h2 *),
 body.type-site:not(.type-practice) .pass-sales :is(h2,h2 *){letter-spacing:var(--type-case-tracking,normal)}
}

/* The player body stays local; its explicitly migrated chrome is Figtree. */
.type-practice :is(.site-head,.focus-head,.focus-title,.action-dock),
.type-practice :is(.site-head,.focus-head,.focus-title,.action-dock) :where(*){letter-spacing:var(--type-case-tracking,normal)}

/* Fix 3 restores the approved uppercase eyebrow spacing. Mixed-case roles
   still resolve to normal; no text-transform, font or geometry rule changes. */





/* Inherit the uppercase role; explicit case resets stay mixed-case. */
:where(body.type-site:not(.type-practice) :is(.brand-sub,.result-card .kicker,.form-section,.part-pill,.result-level .label,.stat .label,.an-mini-title,.me-ring .ring-label > span,.trend-table th,.lad-card-h,.lnode-act-eyebrow,.lad-continue-eyebrow,.word-pos,.build-kicker,.tapdict .td-ctx-k,.tapdict .td-pos,.out-no,.mp-k,.adm-tag,.adm-eyebrow,.br-capsule,.br-tablet--tab > .br-tablet-tab,.br-table th,.br-stat-label,.br-nav-label,body.app-shell #main :is(.reading-home,.wr-home,.listening-home,.sp-home,.v-home,:where(.grammar-home) .gl-home,.mock-home) :where(.reading-eyebrow,.wr-eyebrow,.listening-eyebrow,.sp-eyebrow,.v-eyebrow,.gl-eyebrow),.ielts .qg-range,.ielts .qg-table thead th,.ielts .qg-legend-cap,.pw-page .pw-kicker,h4,.eyebrow,.type-badge,.field label,.stat .l,.mock-tag,.gtable th,.metric-pill .mlab,.xp-ring .ring-label span,.unit-label,.step-card .sc-kind,.rule-kicker,body.br-skin .band-cap,.type-site:not(.type-practice).pw-page .pw-kicker,.type-site:not(.type-practice) .pass-sales-kicker,.type-site:not(.type-practice) .mp-eyebrow,body.type-site:not(.type-practice):not(.pw-page):not(.pass-page):not(.type-home) #main :where(.eyebrow,.kicker,.form-section,.t-meta),.t-meta,.toast .toast-kicker,.step .step-kind)){--type-case-tracking:var(--type-eyebrow-tracking)}
:where(body.type-site:not(.type-practice) :is(.field label .g .g-bn,.auth-main .field label,.form-section .g-inline .g-bn,.auth-main .checkline label,.rq-pick,label.choice-card,label.choice-pill,.result-level .label .g .g-bn,.stat .label .g .g-bn,.doc-pick,.lib-level h3 .pill,.lad-card .lad-card-h,.pc-result-eyebrow,.adm-cta,.adm-title,.adm-course-name,.br-capsule--text,.ielts .qg-title,.status-pill)){--type-case-tracking:normal}

/* Inherit the uppercase role; explicit case resets stay mixed-case. */
:where(.type-practice :is(.site-head,.focus-head,.focus-title,.action-dock) :is(.brand-sub,.result-card .kicker,.form-section,.part-pill,.result-level .label,.stat .label,.an-mini-title,.me-ring .ring-label > span,.trend-table th,.lad-card-h,.lnode-act-eyebrow,.lad-continue-eyebrow,.word-pos,.build-kicker,.tapdict .td-ctx-k,.tapdict .td-pos,.out-no,.mp-k,.adm-tag,.adm-eyebrow,.br-capsule,.br-tablet--tab > .br-tablet-tab,.br-table th,.br-stat-label,.br-nav-label,body.app-shell #main :is(.reading-home,.wr-home,.listening-home,.sp-home,.v-home,:where(.grammar-home) .gl-home,.mock-home) :where(.reading-eyebrow,.wr-eyebrow,.listening-eyebrow,.sp-eyebrow,.v-eyebrow,.gl-eyebrow),.ielts .qg-range,.ielts .qg-table thead th,.ielts .qg-legend-cap,.pw-page .pw-kicker,h4,.eyebrow,.type-badge,.field label,.stat .l,.mock-tag,.gtable th,.metric-pill .mlab,.xp-ring .ring-label span,.unit-label,.step-card .sc-kind,.rule-kicker,body.br-skin .band-cap,.type-site:not(.type-practice).pw-page .pw-kicker,.type-site:not(.type-practice) .pass-sales-kicker,.type-site:not(.type-practice) .mp-eyebrow,body.type-site:not(.type-practice):not(.pw-page):not(.pass-page):not(.type-home) #main :where(.eyebrow,.kicker,.form-section,.t-meta),.t-meta,.toast .toast-kicker,.step .step-kind)){--type-case-tracking:var(--type-eyebrow-tracking)}
:where(.type-practice :is(.site-head,.focus-head,.focus-title,.action-dock) :is(.field label .g .g-bn,.auth-main .field label,.form-section .g-inline .g-bn,.auth-main .checkline label,.rq-pick,label.choice-card,label.choice-pill,.result-level .label .g .g-bn,.stat .label .g .g-bn,.doc-pick,.lib-level h3 .pill,.lad-card .lad-card-h,.pc-result-eyebrow,.adm-cta,.adm-title,.adm-course-name,.br-capsule--text,.ielts .qg-title,.status-pill)){--type-case-tracking:normal}
