/* MOST Learn typography contract. New screens use these roles, never local sizes.
   Keep after presentation styles. Adapters below bring existing screens into the
   same contract without changing their content, state or lifecycle. */
:root {
  --font-learn: "Golos Text", sans-serif;
  --text-page-title: clamp(26px, 2.4vw, 32px);
  --text-hero-title: clamp(28px, 2.8vw, 38px);
  --text-study-display: clamp(28px, 4vw, 48px);
  --text-section-title: clamp(20px, 1.7vw, 22px);
  --text-card-title: 18px;
  --text-subsection-title: 16px;
  --text-body: 16px;
  --text-body-small: 14px;
  --text-label: 13px;
  --text-meta: 12px;
  --text-secondary-language: 14px;
  --text-button: 14px;
  --text-button-secondary: 13px;
  --text-nav-primary: 14px;
  --text-nav-secondary: 12px;
  --leading-title: 1.2;
  --leading-body: 1.6;
  --leading-helper: 1.5;
  --leading-editor: 32px;
  --tracking-title: -.025em;
  --space-title-below: 16px;
  --space-section-below: 12px;
  --space-label-below: 8px;
  --type-page-title: 750 var(--text-page-title)/var(--leading-title) var(--font-learn);
  --type-hero-title: 750 var(--text-hero-title)/var(--leading-title) var(--font-learn);
  --type-study-display: 650 var(--text-study-display)/1.3 var(--font-learn);
  --type-section-title: 700 var(--text-section-title)/1.3 var(--font-learn);
  --type-card-title: 650 var(--text-card-title)/1.4 var(--font-learn);
  --type-subsection-title: 650 var(--text-subsection-title)/1.4 var(--font-learn);
  --type-body: 400 var(--text-body)/var(--leading-body) var(--font-learn);
  --type-body-small: 400 var(--text-body-small)/var(--leading-helper) var(--font-learn);
  --type-label: 550 var(--text-label)/var(--leading-helper) var(--font-learn);
  --type-meta: 450 var(--text-meta)/var(--leading-helper) var(--font-learn);
  --type-secondary-language: 450 var(--text-secondary-language)/var(--leading-helper) var(--font-learn);
  --type-button: 600 var(--text-button)/1.4 var(--font-learn);
  --type-button-secondary: 600 var(--text-button-secondary)/1.4 var(--font-learn);
  --type-nav-primary: 600 var(--text-nav-primary)/1.3 var(--font-learn);
  --type-nav-secondary: 450 var(--text-nav-secondary)/1.3 var(--font-learn);
}
body {font:var(--type-body);}
body #workspace :where(p,li,input,select,textarea,.answer-input),body #workspace .ml-type-body {font:var(--type-body);}
body #workspace h2, body #workspace .ml-type-section-title,
body #workspace .home-section-head h3, body #workspace .start-progress-head h3,
body #workspace .notes-collection h2 {font:var(--type-section-title);letter-spacing:-.015em;margin-bottom:var(--space-section-below);}
body #workspace h3, body #workspace .ml-type-card-title,
body #workspace :where(.home-review,.home-notice) h3,
body #workspace :where(.start-course-copy,.v3-category-card) strong,
body #workspace :where(.note-row,.home-note) strong {font:var(--type-card-title);letter-spacing:-.01em;}
body #workspace :where(.study-hero,.workspace-hero,.plan-hero,.plan-dashboard-hero,.start-hero,.home-today) h2,
body #workspace .ml-type-hero-title {font:var(--type-hero-title);letter-spacing:var(--tracking-title);margin-bottom:var(--space-title-below);}
body #sectionTitle, body .topbar #sectionTitle,
body #workspace .ml-type-page-title, body.learn-admin h1 {font:var(--type-page-title);letter-spacing:var(--tracking-title);margin:0 0 var(--space-title-below);}
body #sectionTitle > span {font:inherit;}
body #sectionTitle :where(.ml-bi-label,.ml-bi-ru) {font:inherit;letter-spacing:inherit;}
body #sectionTitle .ml-bi-de {display:block;font-size:max(12px,calc(var(--text-page-title)*.6));font-weight:450;line-height:var(--leading-helper);letter-spacing:0;margin-top:4px;}
body #workspace :where(.tool-card,.writing-history-card,.fehler-list-card) h2,
body #workspace :where(.answer-head,.writing-history-row) strong,
body #workspace .notebook-optional > summary,
body #workspace .ml-type-subsection-title {font:var(--type-subsection-title);letter-spacing:0;}
body #workspace :where(.notes-home-head,.notes-empty,.mode-help,.notes-muted,.home-support,.home-review,.home-notice) p,
body #workspace :where(.note-row-preview,.mode-help,.home-context,.home-muted,.home-review-clear,.home-next,.plan-help,.writing-analysis-details),
body #workspace .ml-type-body-small {font:var(--type-body-small);letter-spacing:0;}
body #workspace :where(label,.tool-label,.eyebrow,.home-eyebrow,.plan-eyebrow,.home-language-tag),
body #workspace .ml-type-label {font:var(--type-label);letter-spacing:0;}
body #workspace :where(.note-row-meta,.writing-history-row small,.writing-status-field,.writing-footer .stat span,.home-facts,.home-lesson-progress,.error-card footer,.save-state),
body #saveState, body #workspace .ml-type-meta {font:var(--type-meta);letter-spacing:0;}
body #workspace .title-input {font:var(--type-card-title);letter-spacing:-.01em;}
body #workspace :where(.lined-textarea,#mainText,.fehler-form textarea) {font:var(--type-body);line-height:var(--leading-editor);letter-spacing:0;}
body #workspace :where(.ml-bi-de,.ui-secondary,.start-secondary,label>small),
body #workspace .ml-type-secondary-language {font:var(--type-secondary-language);color:var(--most-helper,#42536b);letter-spacing:0;}
body #workspace :where(label,.tool-label,.eyebrow,.ml-type-label,.ml-type-body-small) :where(small,.ml-bi-de,.ui-secondary) {font:var(--type-meta);letter-spacing:0;}
/* Translations of headings always follow the same ratio, with a 12px floor.
   Ordinary helper copy is the 14px secondary-language role; navigation has its
   own 12px translation role. No per-screen bilingual scale. */
body #sectionTitle > small,
body #workspace :where(h2,h3,.ml-type-page-title,.ml-type-hero-title,.ml-type-section-title,.ml-type-card-title,.ml-type-subsection-title) :where(small,.start-secondary,.ml-bi-de,.ui-secondary) {
  display:block;font-family:var(--font-learn);font-size:max(12px,.6em);font-weight:450;line-height:var(--leading-helper);letter-spacing:0;color:var(--most-helper,#42536b);margin-top:4px;
}
body #workspace .answer-head strong > small {display:block;font:var(--type-meta);color:var(--most-helper);margin-top:4px;}
body #workspace :where(h2,h3,button,strong) :where(.ml-bi-ru,.start-primary) {font:inherit;letter-spacing:inherit;line-height:inherit;}
body #workspace :where(p,li,label) > .ml-bi-label > .ml-bi-ru {font:inherit;letter-spacing:inherit;}
body #workspace button, body .top-actions button,
body #workspace .ml-type-button-secondary {font:var(--type-button-secondary);letter-spacing:0;}
body #workspace button.primary,body #workspace button.plan-button,body #workspace button.home-primary,
body #workspace .ml-type-button, body .top-actions button.primary {font:var(--type-button);letter-spacing:0;}
body #workspace button :where(small,.ml-bi-de,.start-secondary) {font:var(--type-meta);letter-spacing:0;}
body #workspace :where(.notebook-tab,.answer-mode-tabs button,.category-card) {font:var(--type-nav-primary);letter-spacing:0;}
body #workspace :where(.notebook-tab,.category-card) :where(strong,.ml-bi-ru) {font:var(--type-nav-primary);letter-spacing:0;}
body #workspace :where(.notebook-tab,.category-card) :where(small,.ml-bi-de) {font:var(--type-nav-secondary);letter-spacing:0;}
body #nav .nav-item :where(.ml-bi-ru,.start-nav-label>span), body .ml-type-nav-primary {font:var(--type-nav-primary);letter-spacing:0;}
body #nav .nav-item :where(.ml-bi-de,.start-nav-label>small), body .ml-type-nav-secondary {font:var(--type-nav-secondary);letter-spacing:0;}
body #workspace .home-progress :where(.start-secondary,small) {color:#eef7ff;}
body #workspace :where(button.primary,button.plan-button,button.home-primary) :where(.ml-bi-ru,.ml-bi-de,small) {color:#fff;}
/* The standalone Admin consumes exactly the same roles. */
body.learn-admin h2 {font:var(--type-section-title);margin-bottom:var(--space-section-below);}
body.learn-admin h3 {font:var(--type-card-title);}
body.learn-admin label {font:var(--type-label);}
body.learn-admin button {font:var(--type-button);}
body.learn-admin :where(input,select,p) {font:var(--type-body);}
body.learn-admin small {font:var(--type-meta);}
@media(max-width:760px) {
  body #nav .nav-item :where(.ml-bi-ru,.start-nav-label>span) {font-size:10px;line-height:1.3;}
}
