/* Shared reading hierarchy. Practice glyphs and textbook images keep their size. */
.app,.study-type{
  font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Microsoft YaHei","Noto Sans SC","Noto Sans KR",sans-serif;
  font-size:1rem;
  font-weight:400;
  line-height:1.7;
}
.app h1,.study-type h1{
  font-size:clamp(1.5rem,4vw,1.75rem);
  line-height:1.45;
  font-weight:650;
  letter-spacing:normal;
  overflow-wrap:anywhere;
}
.app h1{color:var(--ink)}
.app h2,.study-type .panel h2,.study-type .completion h2{
  font-size:1.25rem;
  line-height:1.5;
  font-weight:600;
  letter-spacing:normal;
}
.app h3,.study-type .panel h3{font-size:1.0625rem;line-height:1.6;font-weight:600}
.app .brand-name{font-size:1.125rem;font-weight:650;letter-spacing:normal}
.app .topic-name,.app .category-card strong,.app .learning-card strong,
.app .roadmap-step strong,.app .unit-name,.app .portal-entry strong{font-weight:600;line-height:1.55;color:var(--ink)}
.app .topic-progress,.app .category-card small,.app .learning-card span,
.app .unit-progress,.app .section-kicker,.app .lesson-breadcrumb{font-size:.875rem;line-height:1.6;font-weight:400}
.app .section-title{font-size:1.1875rem;font-weight:600;color:var(--ink)}
.app .scene,.app .mode,.app .lesson-top-nav button,.app .nav-button,
.app .learned-button,.app .dialogue-action,.app .speak,.app .record-button{font-size:1rem;font-weight:600;line-height:1.5}
.app .bottom-nav button{font-size:.875rem;font-weight:600}
.app .korean{font-size:clamp(1.5rem,6vw,2rem);font-weight:600;line-height:1.55;letter-spacing:normal}
.app .meaning{font-size:1.0625rem;line-height:1.7;font-weight:400}
.app .dialogue-ko,.app .reply-ko{font-size:1.25rem;font-weight:500;line-height:1.65}
.app .dialogue-cn,.app .reply-cn{font-size:1rem;font-weight:400;line-height:1.7}
.app .word-ko,.app .review-ko{font-weight:600}
.app .dialogue-speaker,.app .dialogue-study,.app .number,.app .reply-title{font-size:.875rem;font-weight:500;line-height:1.5}
.app .tip,.app .role-practice p{font-size:1rem;line-height:1.7}
.study-type h1{margin-bottom:1rem}
.study-type .goal{font-size:1rem;line-height:1.75;font-weight:400;margin-bottom:1.5rem}
.study-type .panel p,.study-type .chinese-guide p,.study-type .book4-application p{
  line-height:1.75;
  font-weight:400;
}
.study-type .primary,.study-type .secondary{font-size:1rem;font-weight:600;line-height:1.5;min-height:46px}
.study-type .secondary{color:#3f4f68}
.study-type .eyebrow{font-size:.875rem;line-height:1.6;flex-wrap:wrap}
.study-type .eyebrow span:first-child{font-weight:500;color:var(--muted)}
.study-type .audio-head strong,.study-type .sentence-panel summary{font-size:1rem;font-weight:600;line-height:1.6}
.study-type .audio-number,.study-type .audio-help,.study-type .support,
.study-type .word-nav span,.study-type .bottom-nav #position{font-size:.875rem;line-height:1.65;font-weight:400}
.study-type .audio-head{flex-wrap:wrap;align-items:baseline}
.study-type .example-play,.study-type .profile-ko{font-size:1.3125rem;line-height:1.7;font-weight:500}
.study-type .sentence-text{font-size:1.25rem;line-height:1.7;font-weight:500}
.study-type .sentence-chinese{font-size:1rem;line-height:1.7;font-weight:400}
.study-type .source-heading h2,.study-type .source-reader-heading h2{font-size:1.125rem;line-height:1.55;font-weight:600}
.study-type .source-heading>span,.study-type .source-reader-heading>span{font-size:.875rem;font-weight:400;line-height:1.6}
.study-type .source-reader-heading{flex-wrap:wrap}
.study-type .chinese-guide h3,.study-type .task-reference h3,
.study-type .book4-example h3,.study-type .book4-application h3{font-size:1.0625rem;font-weight:600;line-height:1.6;color:var(--ink)}
.study-type .task-prompt{font-size:1.25rem;line-height:1.75;font-weight:400}
.study-type .book4-example [lang="ko"],.study-type .book4-application [lang="ko"]{font-size:1.3125rem;line-height:1.7;font-weight:500}
.study-type .course-unit summary strong,.study-type .course-lesson{font-weight:500}
.study-type .course-lesson small{font-weight:400}
.app .home-section h2{font-size:1.125rem;margin:0 0 12px;color:var(--ink)}
.app .home-resume{margin-top:20px}
.app .home-link{display:flex;align-items:center;gap:12px;width:100%;min-height:68px;padding:14px;text-align:left;background:#fff;border:1px solid var(--line);border-radius:14px;color:var(--ink);margin:0 0 8px}
.app .home-link strong{display:block;font-size:1rem;line-height:1.55;font-weight:600}
.app .home-link small{display:block;font-size:.875rem;line-height:1.6;color:var(--muted);font-weight:400;margin-top:3px}
.app .home-link-icon{display:grid;place-items:center;flex:0 0 34px;height:34px;background:var(--pale);color:var(--navy);border-radius:10px;font-size:1.25rem}
.app .home-entry-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.app .home-entry-grid .learning-card{min-width:0;min-height:82px;line-height:1.6}
.app .home-today,.app .home-categories{background:#fff;border:1px solid var(--line);border-radius:14px;margin-bottom:14px;padding:0 14px}
.app .home-today>summary,.app .home-categories>summary{padding:14px 0;min-height:48px;font-size:1rem;font-weight:500;cursor:pointer;color:var(--ink)}
.app .home-today .home-section{margin:0 0 14px}
.app .home-today .quick-ko{font-weight:500;line-height:1.65}
.app .home-categories .category-card{box-shadow:none}
.app .home-report{margin-top:20px}
.app .home-member{margin-top:20px;font-size:.875rem;background:transparent;border-top:1px solid var(--line);padding:16px 0 0}
.app .home-member p{margin:4px 0 8px}
.app .home-member small{display:block;margin-top:8px;color:var(--muted);font-size:.875rem;line-height:1.6}
@media(max-width:340px){.app .home-entry-grid{grid-template-columns:1fr}}
@media(max-width:600px){
  .app main{padding-left:18px;padding-right:18px}
  .app header{padding-left:18px;padding-right:18px}
  /* The embedded reader keeps its own gutters; the outer frame stays full width. */
  body.textbook-reading .app #main{padding:0}
  .study-type #main,.study-type .study-bar,.study-type .bottom-nav{padding-left:18px;padding-right:18px}
  .study-type .panel{padding:18px 16px}
  .study-type .source-block{padding:12px}
  .study-type .source-reader{padding:8px;margin-left:0;margin-right:0;max-width:100%}
}
