/* LerneDeutsch typography polish & adjustable font sizes; responsive defaults used before API loads */
:root{--ld-font-body-size:16px;--ld-font-nav-size:13px;--ld-font-heading-scale:1;--ld-font-german-size:22px;--ld-font-pronunciation-size:16px;--ld-font-english-size:18px;--ld-font-urdu-size:28px;--ld-font-teacher-size:20px;--ld-font-practice-size:18px;--ld-font-quiz-size:17px}
/* Headings and weights: softer than the former 700-800-heavy typography */
body{font-size:var(--ld-font-body-size)}
body strong,body b{font-weight:600}
h1,h2,h3,.section-heading h2,.category-results-heading h2,.page-heading h1{font-weight:600!important}
.site-header .brand-name,.site-wordmark-copy b{font-weight:700!important}
.site-header .main-nav a,.site-header .nav-actions a{font-size:var(--ld-font-nav-size)!important;font-weight:550!important}
.site-header .main-nav a.active{font-weight:650!important}
.site-header .day1-nav-cta{display:inline-flex;flex:0 0 auto;align-items:center;justify-content:center;gap:8px;min-height:44px;padding:0 17px;border-radius:12px;background:linear-gradient(125deg,#277ce8,#235bc5 70%,#3f7fee);color:#fff;text-decoration:none;font-size:var(--ld-font-nav-size);font-weight:650;border:1px solid #8bb9f84d;box-shadow:0 5px 14px #2555a340,0 0 0 1px #bdd4ff21 inset;white-space:nowrap;transition:transform .2s,box-shadow .2s;position:relative;isolation:isolate;overflow:hidden}
.site-header .day1-nav-cta::after{content:"";position:absolute;inset:-60%;background:linear-gradient(105deg,transparent 39%,#ffffff38 49%,transparent 59%);transform:translateX(-115%) rotate(-6deg);animation:ld-cta-glint 7s ease-in-out infinite;pointer-events:none}
.site-header .day1-nav-cta:hover{color:#fff;transform:translateY(-2px);box-shadow:0 9px 22px #235bc05c,0 0 0 1px #a2c7ff80 inset}
.site-header .day1-nav-cta:focus-visible{outline:3px solid #f1d898;outline-offset:3px}
.site-header .day1-spark{font-size:17px;color:#f5e4a1;line-height:1}
.site-header .day1-arrow{font-size:16px;opacity:.9}
@keyframes ld-cta-glint{0%,78%,100%{transform:translateX(-115%) rotate(-6deg)}87%{transform:translateX(115%) rotate(-6deg)}}
/* Allow a full-width premium desktop navbar without crowding the trial link */
.site-header .nav-wrap.container{width:min(1480px,calc(100% - 42px))}
/* Keep room for CTA; ordinary nav collapses to menu before overlap */
@media(max-width:1490px){.site-header .main-nav{display:none}.site-header .menu-toggle{display:flex}.site-header .main-nav.open{display:flex;flex-direction:column;position:absolute;top:100%;left:20px;right:20px;padding:16px;gap:8px;background:#14263f;border:1px solid #30445e;border-radius:15px;box-shadow:0 18px 40px #0e1f3440}.site-header .main-nav.open a{justify-content:flex-start}}
@media(max-width:700px){.site-header .day1-nav-cta{padding-inline:12px;min-height:40px}.site-header .brand-name{font-size:23px}}
@media(max-width:560px){.site-header .day1-nav-cta{grid-column:1/-1;grid-row:2;width:100%;justify-self:stretch;font-size:13px;min-height:44px}.site-header .nav-actions{grid-column:1/-1;grid-row:3;justify-content:center}}
@media(prefers-reduced-motion:reduce){.site-header .day1-nav-cta::after{animation:none}.site-header .day1-nav-cta{transition:none}}
/* Homepage heading/body scale */
.hero h1{font-weight:600!important;font-size:clamp(30px,calc(60px * var(--ld-font-heading-scale)),70px)!important}
.section-heading h2,.levels-copy h2,.daily-copy h2,.exam-prep-copy h2,.trial-copy h2{font-weight:600!important;font-size:clamp(28px,calc(50px * var(--ld-font-heading-scale)),64px)!important}
.site-header .brand-name{font-weight:700!important}
.hero-subcopy,.seo-resource-card p,.section-heading p{font-size:var(--ld-font-body-size)!important}
/* Learning Hub specific typography */
.page-heading h1{font-size:clamp(28px,calc(42px * var(--ld-font-heading-scale)),56px)!important}
.content-card .section-heading h2,.teacher-heading h2,.reference-article h2{font-weight:600!important}
.rule-text{padding-inline:12px;font-size:var(--ld-font-english-size)!important;line-height:1.9}
.sentence-card{padding-inline:clamp(20px,2.5vw,34px)!important}
.sentence-card h3,.dialogue-german p,.lena-dialogue>p[lang="de"],.category-example-sentence>p,.teacher-german-card .teacher-narrated,.recap-paragraph[lang="de"]{font-size:var(--ld-font-german-size)!important;line-height:1.7!important;font-weight:500!important}
.sentence-card .pronunciation,.dialogue-turn .pronunciation,.lena-dialogue>.pronunciation,.practice-choice .pronunciation,.category-example .pronunciation,.word-table .word-pronunciation-col{font-size:var(--ld-font-pronunciation-size)!important;line-height:1.7}
.sentence-card .translation,.dialogue-turn .muted,.category-example-english,.teacher-translation,.quiz-option>span,.lena-dialogue .translation{font-size:var(--ld-font-english-size)!important;line-height:1.7}
.sentence-card .urdu-line,.dialogue-turn .urdu-line,.lena-dialogue .urdu-line,.rule-text .urdu-line,.teacher-translation .urdu-line,.teacher-rule-card .urdu-line,.category-example .urdu-line,.translation .urdu-line,.lesson-recap .urdu-line{font-size:var(--ld-font-urdu-size)!important;line-height:1.92!important;letter-spacing:0!important;font-weight:400!important;margin-top:12px!important}
.teacher-rule-card{padding-inline:clamp(24px,3vw,42px)!important}
.teacher-narrated:not([lang="de"]){font-size:var(--ld-font-teacher-size)!important;line-height:1.85!important}
.teacher-board-content .teacher-rule-card{line-height:1.75}
.dialogue-turn{padding-inline:clamp(20px,2vw,30px)!important}
.dialogue-turn .dialogue-german p{font-size:var(--ld-font-german-size)!important}
.practice-choice,.practice-options,.practice-feedback,.lena-dialogue .translation{font-size:var(--ld-font-practice-size)!important}
.practice-choice span[lang="de"],.lena-dialogue>p[lang="de"]{font-size:var(--ld-font-german-size)!important}
.practice-choice small:not(.pronunciation){font-size:var(--ld-font-english-size)!important}
.quiz-question h3,.quiz-option,.quiz-option>span{font-size:var(--ld-font-quiz-size)!important;line-height:1.7}
.quiz-option .urdu-line,.practice-choice .urdu-line{font-size:calc(var(--ld-font-urdu-size) * .89)!important;line-height:1.85!important;margin-top:6px!important;font-weight:400!important}
.word-table{box-sizing:border-box}
.word-table .table-scroll{padding-left:12px;padding-right:12px}
.word-table td.word-german-col b{font-weight:600!important}
.word-table .word-german-col{padding-left:20px!important}
.word-table .word-audio-col{padding-right:18px!important}
/* Admin typography panel */
.font-settings-grid,.ld-runtime-font-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.font-setting-slider,.ld-runtime-font-row{display:grid;grid-template-columns:minmax(0,1fr) minmax(85px,1fr) 58px;align-items:center;gap:14px;padding:14px;border:1px solid #dae3ef;border-radius:12px;background:#fff}
.font-setting-slider>span,.ld-runtime-font-row>span{min-width:0;display:flex;flex-direction:column}
.font-setting-slider b,.ld-runtime-font-row b{font-size:13px;font-weight:600}
.font-setting-slider small,.ld-runtime-font-row small{color:#64748b;font-size:11px;line-height:1.5}
.font-setting-slider input,.ld-runtime-font-row input{width:100%;accent-color:#346bc5;cursor:pointer}
.font-setting-slider output,.ld-runtime-font-row output{text-align:right;font-size:13px;font-variant-numeric:tabular-nums;color:#2b5c91;font-weight:600}
.ld-runtime-font-panel{margin:24px 0;padding:22px;border:1px solid #cad7eb;border-radius:16px;background:#f5f8fc}
.ld-runtime-font-panel h3{font-size:20px;font-weight:600;margin:0 0 8px}
.ld-runtime-font-panel p{font-size:13px;margin:0 0 17px;color:#52657c}
.ld-runtime-font-actions{display:flex;align-items:center;gap:14px;flex-wrap:wrap;margin-top:17px}
.ld-runtime-font-actions button{min-height:40px;border-radius:9px;background:#2459a5;color:white;padding:8px 18px;font-weight:600}
.ld-runtime-font-actions button:disabled{opacity:.6}
.ld-runtime-font-status{font-size:13px;color:#355d86}
@media(max-width:850px){.font-settings-grid,.ld-runtime-font-grid{grid-template-columns:1fr}}
@media(max-width:480px){.font-setting-slider,.ld-runtime-font-row{grid-template-columns:minmax(0,1fr) 54px}.font-setting-slider input,.ld-runtime-font-row input{grid-column:1/-1;grid-row:2}.font-setting-slider output,.ld-runtime-font-row output{grid-column:2;grid-row:1}}

/* Teacher lesson Urdu guide: scale with both admin Urdu and Teacher controls.
   Defaults to 24px instead of the old fixed ~37px, without affecting other Urdu text. */
.teacher-board-content .urdu-lesson-guide .urdu-line {
  font-size: clamp(20px, calc(var(--ld-font-urdu-size, 28px) * .5 + var(--ld-font-teacher-size, 20px) * .5), 32px) !important;
  line-height: 1.95 !important;
  font-weight: 400 !important;
  margin-top: 0 !important;
}


/* 2026-10-10: Study navigation, review hint, and daily-plan legibility. */
.lesson-pagination{font-size:15px!important;line-height:1.5;gap:16px;min-height:58px}
.lesson-pagination button,.lesson-pagination>span{font-size:15px!important;line-height:1.5;min-height:36px}
.lesson-pagination button{gap:8px;font-weight:550}
.lesson-pagination button svg{width:19px;height:19px}
.app-footer{font-size:14px!important;line-height:1.55;gap:18px;padding-top:23px}
.app-footer>span,.app-footer button{font-size:14px!important;line-height:1.55}
.app-footer button{gap:7px}
.app-footer button svg{width:16px;height:16px}
/* Make the note below the flashcard review buttons readable. */
.content-card .flashcard-actions + p.small.muted{font-size:14px!important;line-height:1.8;margin-top:18px}
/* Keep the learning rail approachable without compact 10-12px labels. */
.plan-card{padding:22px 20px}
.plan-card .rail-heading h3{font-size:17px!important;line-height:1.45}
.plan-card .rail-heading svg{width:20px;height:20px}
.plan-card>p{font-size:14px!important;line-height:1.6;margin:9px 0 12px}
.plan-card .plan-row{font-size:15px!important;line-height:1.45;gap:10px;padding:11px 0}
.plan-card .plan-row span{flex:1;min-width:0}
.plan-card .plan-row b{font-size:15px!important;font-weight:600;flex-shrink:0;white-space:nowrap}
.plan-card .plan-total{gap:8px;align-items:center;padding-top:17px}
.plan-card .plan-total b{font-size:15px!important;line-height:1.5;font-weight:600}
.plan-card>.plan-pace-note{display:block;font-size:12px;line-height:1.6;color:#64748b;margin-top:10px}
@media(max-width:767px){.lesson-pagination button,.lesson-pagination>span{font-size:14px!important}.app-footer,.app-footer>span,.app-footer button{font-size:13px!important}.plan-card{padding:20px 17px}}
