/* TWA V31.36 — Teacher Home mirrors Clean School Home (V31.35).
   No duplicate dashboard shortcuts, charts or lesson cards on Home.
   School colour tokens and existing role-based navigation remain active. */
body.school-edition #view-dashboard #teacher-home-card{
  display:block;
  max-width:980px;
  margin:0 auto 24px;
  padding:0!important;
  position:relative;
  overflow:hidden;
  background:#fff;
  color:#193a48;
  border:1px solid #dce8e7;
  border-radius:24px;
  box-shadow:0 16px 45px rgba(15,53,66,.065);
}
body.school-edition #view-dashboard #teacher-home-card[hidden]{display:none!important}
body.school-edition #view-dashboard .twa-teacher-school-card{display:flex;flex-direction:column;min-width:0;background:#fff}
body.school-edition #view-dashboard .twa-teacher-photo-gallery{position:relative;width:100%;background:#e5eeee;overflow:hidden}
body.school-edition #view-dashboard .twa-teacher-photo-gallery[hidden],
body.school-edition #view-dashboard .twa-teacher-gallery-controls[hidden],
body.school-edition #view-dashboard .twa-teacher-photo-slide[hidden],
body.school-edition #view-dashboard .twa-teacher-photo-slide img[hidden]{display:none!important}
body.school-edition #view-dashboard .twa-teacher-photo-stage{
  height:clamp(220px,34vw,390px);width:100%;position:relative;
  background:linear-gradient(135deg,#e3edec,#d8e6e4);overflow:hidden;
}
body.school-edition #view-dashboard .twa-teacher-photo-slide{
  position:absolute;inset:0;overflow:hidden;display:block;width:100%;height:100%;
  background:transparent;
}
body.school-edition #view-dashboard .twa-teacher-photo-slide::before{
  content:"";position:absolute;inset:-25px;pointer-events:none;
  background-image:var(--twa-teacher-photo-bg,none);
  background-size:cover;background-position:center;
  filter:blur(17px) saturate(.7);opacity:.53;
}
body.school-edition #view-dashboard .twa-teacher-photo-slide::after{
  content:"";position:absolute;inset:0;pointer-events:none;background:rgba(8,31,39,.11);
}
body.school-edition #view-dashboard .twa-teacher-photo-slide img{
  display:block;position:relative;z-index:2;width:100%;height:100%;
  object-fit:contain;object-position:center;
  filter:drop-shadow(0 7px 13px rgba(0,0,0,.09));
}
body.school-edition #view-dashboard .twa-teacher-gallery-controls{
  position:absolute;right:13px;bottom:13px;z-index:5;
  display:flex;align-items:center;gap:7px;
  color:#fff;background:rgba(8,36,49,.78);border-radius:30px;
  padding:5px 7px;font-size:12px;font-weight:750;
  box-shadow:0 9px 19px rgba(0,0,0,.18);
}
body.school-edition #view-dashboard .twa-teacher-gallery-arrow{
  display:grid;place-items:center;min-width:34px;min-height:34px;
  width:34px;height:34px;padding:0;line-height:1;font-size:24px;color:#fff;
  background:rgba(255,255,255,.16);border:1px solid rgba(255,255,255,.2);
  border-radius:50%;
}
body.school-edition #view-dashboard .twa-teacher-gallery-arrow:hover,
body.school-edition #view-dashboard .twa-teacher-gallery-arrow:focus-visible{background:rgba(255,255,255,.3)}
body.school-edition #view-dashboard .twa-teacher-home-content{padding:28px 31px 31px;min-width:0;background:#fff}
body.school-edition #view-dashboard .twa-teacher-school-identity-row{display:flex;align-items:center;gap:17px;min-width:0}
body.school-edition #view-dashboard .twa-teacher-home-crest{
  display:grid;place-items:center;flex:0 0 79px;width:79px;height:79px;
  background:#fff;color:var(--twa-brand-primary,#0c7477);
  border:1px solid #dbe8e7;border-radius:20px;
  box-shadow:0 7px 21px rgba(22,60,72,.07);overflow:hidden;
}
body.school-edition #view-dashboard .twa-teacher-home-crest img{
  display:block;width:100%;height:100%;object-fit:contain;padding:8px;
}
body.school-edition #view-dashboard .twa-teacher-home-crest img[hidden],
body.school-edition #view-dashboard .twa-teacher-home-crest span[hidden]{display:none!important}
body.school-edition #view-dashboard .twa-teacher-school-identity-copy{flex:1;min-width:0}
body.school-edition #view-dashboard .twa-teacher-home-eyebrow{
  display:block;color:var(--twa-brand-primary,#0c7477);
  font-size:11px;line-height:1.3;letter-spacing:.12em;font-weight:800;margin:0 0 7px;
}
body.school-edition #view-dashboard .twa-teacher-school-identity-copy h2{
  font-size:clamp(24px,3vw,34px);font-weight:850;
  line-height:1.15;letter-spacing:-.036em;
  overflow-wrap:break-word;color:#193a48;margin:0;
}
body.school-edition #view-dashboard .twa-teacher-home-motto{
  font-size:clamp(15px,1.8vw,18px);line-height:1.5;
  color:#48626c;font-style:italic;
  margin:18px 0 0;padding-left:15px;
  border-left:3px solid var(--twa-brand-primary,#0c7477);
}
body.school-edition #view-dashboard .twa-teacher-home-motto[hidden]{display:none!important}
body.school-edition #view-dashboard .twa-teacher-home-term{
  display:inline-flex;align-items:center;max-width:100%;
  color:#466774;font-size:12px;line-height:1.45;
  margin:18px 0 0;padding:9px 13px;
  border:1px solid var(--twa-brand-subtle,#d9eeea);
  background:var(--twa-brand-soft,#e8f5f2);
  border-radius:999px;overflow-wrap:anywhere;
}
@media(max-width:930px){
 body.school-edition #view-dashboard .twa-teacher-photo-stage{
  height:auto;aspect-ratio:var(--twa-teacher-photo-ratio,1.55);max-height:390px;
 }
 body.school-edition #view-dashboard .twa-teacher-home-content{padding:24px 18px 26px}
 body.school-edition #view-dashboard .twa-teacher-home-crest{flex-basis:66px;width:66px;height:66px;border-radius:17px}
 body.school-edition #view-dashboard .twa-teacher-school-identity-row{gap:13px}
 body.school-edition #view-dashboard .twa-teacher-home-eyebrow{font-size:10px;margin-bottom:6px}
 body.school-edition #view-dashboard .twa-teacher-school-identity-copy h2{font-size:clamp(22px,5.7vw,29px)}
 body.school-edition #view-dashboard .twa-teacher-home-motto{margin-top:16px;font-size:14px}
 body.school-edition #view-dashboard .twa-teacher-home-term{font-size:11px;margin-top:14px}
}
@media(max-width:370px){
 body.school-edition #view-dashboard .twa-teacher-home-content{padding:20px 15px 24px}
 body.school-edition #view-dashboard .twa-teacher-home-crest{flex-basis:58px;width:58px;height:58px}
 body.school-edition #view-dashboard .twa-teacher-school-identity-copy h2{font-size:21px}
}
@media(prefers-reduced-motion:reduce){
 body.school-edition #view-dashboard .twa-teacher-school-card *{scroll-behavior:auto;transition:none!important}
}
