/* Canonical Compasso Docente typography contract.
   Semantic type roles are normalized here so new/legacy module CSS cannot inflate page hierarchy. */
.teacher-unified-shell{
  --teacher-type-page:28px;
  --teacher-type-section:18px;
  --teacher-type-card:15px;
  --teacher-type-body:13px;
  --teacher-type-control:12px;
  --teacher-type-small:11px;
  --teacher-type-eyebrow:10px;
}

/* Page titles: every primary page surface uses the same hierarchy. */
.teacher-unified-shell .teacher-unified-content :where(h1){
  font-size:var(--teacher-type-page)!important;
  line-height:1.15!important;
  letter-spacing:-.035em!important;
  font-weight:700!important;
}

/* Sections and cards keep one predictable step below page titles. */
.teacher-unified-shell .teacher-unified-content :where(h2){
  font-size:var(--teacher-type-section)!important;
  line-height:1.25!important;
  letter-spacing:-.02em!important;
  font-weight:700!important;
}
.teacher-unified-shell .teacher-unified-content :where(.teacher-x-card>header h2,.class-workspace-card-head h2){
  font-size:var(--teacher-type-card)!important;
  line-height:1.3!important;
}
.teacher-unified-shell .teacher-unified-content :where(h3){
  font-size:var(--teacher-type-card)!important;
  line-height:1.3!important;
  font-weight:700!important;
}

/* Body copy and controls. Smaller metadata continues to use small/caption roles. */
.teacher-unified-shell .teacher-unified-content :where(p){
  font-size:var(--teacher-type-body)!important;
  line-height:1.5!important;
}
.teacher-unified-shell .teacher-unified-content :where(button,input,select,textarea){
  font-size:var(--teacher-type-control)!important;
}
.teacher-unified-shell .teacher-unified-content :where(label){
  font-size:var(--teacher-type-small)!important;
  line-height:1.4!important;
}
.teacher-unified-shell .teacher-unified-content :where(small){
  font-size:10px!important;
  line-height:1.4!important;
}

/* Eyebrows, empty states and the class workspace previously depended on global inheritance. */
.teacher-unified-shell :where(.teacher-page-heading>div>span,.teacher-unified-utility>.td-section-title>div>span,.class-workspace-list>header>span,.class-workspace-hero>div>span,.class-workspace-area>header span){
  font-size:var(--teacher-type-eyebrow)!important;
  line-height:1.4!important;
}
.teacher-unified-shell .class-workspace-empty strong{
  font-size:13px!important;
  line-height:1.35!important;
}
.teacher-unified-shell .class-workspace-empty span,
.teacher-unified-shell .class-workspace-items span,
.teacher-unified-shell .class-workspace-tabs button span{
  font-size:var(--teacher-type-small)!important;
  line-height:1.4!important;
}
.teacher-unified-shell .class-workspace-tabs button strong{
  font-size:var(--teacher-type-control)!important;
  line-height:1.35!important;
}

/* Turmas is a critical legacy surface. Keep explicit selectors with higher specificity so
   historical module rules cannot override the canonical hierarchy in the public runtime. */
.teacher-unified-shell .teacher-unified-content .class-workspace-list>header>h1,
.teacher-unified-shell .teacher-unified-content .class-workspace-hero h1{
  font-size:var(--teacher-type-page)!important;
  line-height:1.15!important;
  letter-spacing:-.035em!important;
  font-weight:700!important;
}
.teacher-unified-shell .teacher-unified-content .class-workspace-list>header>p,
.teacher-unified-shell .teacher-unified-content .class-workspace-hero p{
  font-size:var(--teacher-type-body)!important;
  line-height:1.5!important;
}
.teacher-unified-shell .teacher-unified-content .class-workspace-list>header>.teacher-x-primary{
  font-size:var(--teacher-type-control)!important;
}

/* Home pedagógica é uma superfície irmã do wrapper de conteúdo; recebe papéis explícitos. */
.ped-home h1{
  font-size:28px!important;
  line-height:1.15!important;
  letter-spacing:-.035em!important;
  font-weight:700!important;
}
.ped-home>header>span{font-size:10px!important;line-height:1.4!important}
.ped-home>header p{font-size:13px!important;line-height:1.5!important}
.ped-home-actions strong,.ped-home-continue>strong{font-size:13px!important;line-height:1.35!important}
.ped-home-actions span,.ped-home-continue span{font-size:12px!important;line-height:1.4!important}

/* Shell navigation and context remain stable regardless of module styles. */
.teacher-unified-shell .teacher-unified-nav button,
.teacher-unified-shell .teacher-module-subnav button{font-size:13px!important}
.teacher-unified-shell .teacher-contextbar strong{font-size:13px!important}
.teacher-unified-shell .teacher-contextbar span{font-size:11px!important}
.teacher-unified-shell .teacher-context-filters label{font-size:10px!important}
.teacher-unified-shell .teacher-context-filters select{font-size:11px!important}

@media(max-width:650px){
  .teacher-unified-shell{--teacher-type-page:24px;--teacher-type-section:17px;--teacher-type-body:13px}
  .ped-home h1{font-size:24px!important}
}
