/* HUBMAT — Portal do Professor v3
   Regra: reorganiza visualmente sem remover cards, acessos ou recursos. */
body.teacher{--teacher-navy:#071a3a;--teacher-teal:#0b7567;--teacher-teal-dark:#174f49;--teacher-mint:#dff3ee;--teacher-mint-2:#f4fbf9;--teacher-line:#bfded7;--teacher-text:#173b38;--teacher-muted:#506963;background:#f7fbfa;color:var(--teacher-text)}
body.teacher .hps-main{background:#f7fbfa;color:var(--teacher-text)}
body.teacher .container{width:min(1160px,calc(100% - 36px));margin-inline:auto}
body.teacher .hero{padding:42px 0 38px;background:linear-gradient(135deg,#dff3ee 0%,#f8fffd 58%,#edf5fb 100%);color:var(--teacher-text)}
body.teacher .hero-grid{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(330px,.85fr);gap:28px;align-items:center}
body.teacher .hero .eyebrow,body.teacher .kicker{color:var(--teacher-teal);background:none;border:0;padding:0;font-size:10px;font-weight:900;letter-spacing:.08em;text-transform:uppercase}
body.teacher .hero h1{max-width:720px;margin:12px 0 12px;color:var(--teacher-navy);font-size:clamp(40px,4.9vw,62px);line-height:1;letter-spacing:-2px}
body.teacher .hero>div p,body.teacher .hero-grid>div>p{max-width:720px;color:#465f5a;font-size:14px;line-height:1.55;font-weight:700}
body.teacher .hero-actions{gap:9px;margin-top:20px}.teacher .btn{min-height:42px;padding:9px 14px;border-radius:999px;font-size:11px}.teacher .btn-primary{background:var(--teacher-navy);border-color:var(--teacher-navy);color:#fff}.teacher .btn-light{background:#fff;border-color:#bfd9d3;color:var(--teacher-teal-dark)}
body.teacher .hero-panel{padding:21px;border:1px solid #badbd3;border-radius:22px;background:#fff;box-shadow:0 12px 30px rgba(11,79,75,.08)}
body.teacher .hero-panel h2{margin:0 0 12px;color:var(--teacher-teal-dark);font-size:18px}.teacher-metrics{gap:7px;margin-top:0}.teacher-metric{padding:10px;border-color:#cbe3dd;background:#f1faf7}.teacher-metric strong{color:var(--teacher-teal-dark);font-size:16px}.teacher-metric span{color:#58716b;font-size:8px}.teacher .hero-list{margin-top:10px;gap:6px}.teacher .hero-list a{min-height:36px;padding:8px 10px;border-color:#c9e0db;background:#fbfffe;color:#315b54;font-size:10px}

body.teacher .pr2-proof{padding:18px 0;background:#fff;border-top:1px solid #dceae6;border-bottom:1px solid #dceae6}.teacher .pr2-proof-grid{gap:8px}.teacher .pr2-proof-card{min-height:84px;padding:13px 14px;border-color:#cfe2dd;border-radius:14px;background:#fff;box-shadow:none}.teacher .pr2-proof-card strong{color:var(--teacher-navy);font-size:24px}.teacher .pr2-proof-card span{color:#516b65;font-size:9px;line-height:1.25}

.teacher-authority{padding:40px 0;background:#edf8f5}.teacher .pr2-head{max-width:820px;margin-inline:auto}.teacher .pr2-head h2{margin:7px 0 8px;color:var(--teacher-navy);font-size:clamp(28px,3vw,38px);line-height:1.05}.teacher .pr2-head p{font-size:12px;line-height:1.5;color:#506a64}.teacher .pr2-value-grid{gap:9px;margin-top:18px}.teacher-authority .pr2-value-card{min-height:168px;padding:18px;border:1px solid #cfe2dd;border-radius:17px;background:#fff;box-shadow:none}.teacher .pr2-value-card h3{font-size:16px;color:var(--teacher-navy)}.teacher .pr2-value-card p{font-size:10px;line-height:1.4;color:#506a64}

.teacher .section-sm{padding:22px 0}.teacher-summary{padding:20px;border-color:#bdded6;border-radius:18px;background:linear-gradient(135deg,#e9f7f3,#fff);box-shadow:none}.teacher-summary h2{font-size:23px;color:var(--teacher-navy)}.teacher-summary p{font-size:11px;color:#4d6761}.teacher-summary-nav{gap:6px;margin-top:13px}.teacher-summary-nav a{min-height:38px;border-color:#c6ded8;border-radius:10px;background:#fff;color:var(--teacher-teal-dark);font-size:8px}.teacher-summary-nav a:hover{background:var(--teacher-teal);color:#fff}

.teacher-section{padding:30px 0;scroll-margin-top:76px}.teacher-section+.teacher-section{padding-top:18px}.teacher-section:nth-of-type(even){background:#fbfdfc}.teacher-section-head{gap:20px;margin-bottom:13px}.teacher-section-head h2{margin:6px 0 3px;color:var(--teacher-navy);font-size:clamp(24px,2.6vw,33px)}.teacher-section-head p{font-size:11.2px;line-height:1.45;color:#506a64}.teacher-count{padding:6px 9px;background:#dff1ed;color:#0a695d;font-size:8px}
.teacher-priority-section{padding-top:28px;background:#e9f5f2}.teacher-priority-grid{gap:9px}.teacher-priority{min-height:142px;padding:16px;border:1px solid #c8dfda;border-radius:17px;background:#fff;box-shadow:none}.teacher-priority>i{width:42px;height:42px;border-radius:12px;font-size:16px}.teacher-priority strong{font-size:15px;color:var(--teacher-navy)}.teacher-priority p{font-size:10px;line-height:1.4;color:#516a65}.teacher-priority div>span{margin-top:9px;font-size:8px}.priority-number{width:22px;height:22px;font-size:8px}

.teacher-tool-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:9px}.teacher-tool{min-height:164px;padding:14px;border:1px solid #d0e0dc;border-radius:15px;background:#fff;box-shadow:none}.teacher-tool:before{height:3px}.teacher-tool:hover{transform:translateY(-2px);box-shadow:0 9px 22px rgba(11,28,60,.08)}.teacher-tool-icon{width:36px;height:36px;border-radius:10px;font-size:15px}.teacher-badge{max-width:120px;padding:4px 6px;font-size:7px}.teacher-tool h3{margin-top:10px;color:var(--teacher-navy);font-size:13.5px}.teacher-tool p{margin-top:5px;color:#536a65;font-size:9.5px;line-height:1.4}.teacher-tool-link{margin-top:9px;font-size:8px}.teacher-feature{grid-column:span 2;min-height:164px;background:linear-gradient(135deg,#154f49,#0b7567);border-color:#0b7567}.teacher-feature:before{background:#79d5c1}.teacher-feature h3{color:#fff}.teacher-feature .teacher-tool-icon{color:#d7fff6}.teacher-feature .teacher-badge{color:#dffcf5}.teacher-feature p{color:#def4ef}.teacher-feature .teacher-tool-link{color:#fff}

/* Professor no centro da decisão — contraste deliberadamente maior */
.teacher .pr2-section.pr2-soft{padding:32px 0;background:#e8f4f1}.teacher .pr2-statement{gap:18px;padding:24px;border:1px solid #bcd9d2;border-radius:18px;background:#fff;box-shadow:0 8px 22px rgba(15,79,75,.05)}.teacher .pr2-eyebrow{color:#0a6d60!important}.teacher .pr2-statement h2{color:var(--teacher-navy);font-size:28px}.teacher .pr2-statement p{color:#45615b!important;font-size:11px}.teacher .pr2-statement-points{gap:7px}.teacher .pr2-statement-points>div{padding:11px;border:1px solid #cfe1dd;border-radius:12px;background:#f7fbfa}.teacher .pr2-statement-points strong{color:var(--teacher-navy)!important;font-size:12px}.teacher .pr2-statement-points span{color:#4c6660!important;font-size:9px}
.teacher-notice{padding:20px;border:1px solid #d9d0ef;border-radius:17px;background:linear-gradient(135deg,#f4f0fb,#fff);box-shadow:none}.teacher-notice h2{color:var(--teacher-navy);font-size:22px}.teacher-notice p{color:#58646f;font-size:11px}.teacher-notice .btn-primary{background:#5b4387;border-color:#5b4387;color:#fff}

.teacher .hub-v2-back-top{display:none!important}

@media(max-width:1080px){.teacher-tool-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.teacher-feature{grid-column:span 2}.teacher .hero-grid{grid-template-columns:1fr}.teacher .hero-panel{max-width:none}.teacher-summary-nav{grid-template-columns:repeat(3,1fr)}}
@media(max-width:760px){body.teacher .container{width:min(100% - 22px,1160px)}body.teacher .hero{padding:28px 0 24px}.teacher .hero h1{font-size:38px;letter-spacing:-1.4px}.teacher .hero-grid{gap:16px}.teacher .hero-panel{padding:16px}.teacher-metrics{grid-template-columns:repeat(2,1fr)}.teacher .pr2-proof-grid{grid-template-columns:repeat(2,1fr)}.teacher .pr2-value-grid{grid-template-columns:1fr}.teacher-summary-nav{grid-template-columns:repeat(2,1fr)}.teacher-section{padding:24px 0}.teacher-section-head{align-items:flex-start;flex-direction:column;gap:6px}.teacher-priority-grid{grid-template-columns:1fr}.teacher-tool-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.teacher-feature{grid-column:span 2}.teacher .pr2-statement{grid-template-columns:1fr}.teacher-notice{grid-template-columns:1fr}.teacher-notice-actions{justify-content:flex-start}}
@media(max-width:520px){.teacher .hero h1{font-size:33px}.teacher .hero-grid>div>p{font-size:12.5px}.teacher .pr2-proof-grid{grid-template-columns:1fr 1fr}.teacher .pr2-proof-card{min-height:76px}.teacher-summary{padding:16px}.teacher-summary-nav{grid-template-columns:1fr 1fr}.teacher-tool-grid{grid-template-columns:1fr}.teacher-feature{grid-column:auto}.teacher-tool{min-height:0}.teacher-priority{grid-template-columns:42px 1fr;gap:10px}.teacher .pr2-statement h2{font-size:24px}.teacher-notice-actions .btn{width:100%}}

/* RESPONSIVIDADE V4 — celular, tablet e desktop sem sobreposições */
body.teacher .hps-main,body.teacher .hero,body.teacher .hero-grid,body.teacher .hero-grid>*{min-width:0}
body.teacher .hero-grid>div,body.teacher .hero-panel{position:relative;float:none;transform:none}
body.teacher .hero-panel{width:auto;max-width:100%;margin:0}
body.teacher .hero-actions{display:flex;flex-wrap:wrap}
body.teacher .teacher-metrics{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}
body.teacher .teacher-metric{min-width:0}
body.teacher .teacher-tool,body.teacher .teacher-priority,body.teacher .pr2-value-card,body.teacher .pr2-proof-card{min-width:0}

@media(max-width:1080px){
  body.teacher .hero-grid{display:grid!important;grid-template-columns:minmax(0,1fr)!important;grid-auto-rows:auto!important;gap:22px!important;align-items:stretch!important}
  body.teacher .hero-grid>div{grid-column:1!important;grid-row:auto!important;width:100%!important;max-width:none!important;min-width:0!important}
  body.teacher .hero-panel{grid-column:1!important;grid-row:auto!important;position:static!important;width:100%!important;max-width:none!important;margin:0!important;inset:auto!important;transform:none!important}
  body.teacher .hero h1{max-width:820px;font-size:clamp(40px,6vw,54px);line-height:.98}
  body.teacher .hero-grid>div>p{max-width:800px}
  body.teacher .teacher-metrics{grid-template-columns:repeat(4,minmax(0,1fr))}
  body.teacher .teacher-priority-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  body.teacher .pr2-value-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  body.teacher .pr2-value-card:first-child:nth-last-child(3){grid-column:1/-1}
  body.teacher .pr2-statement{grid-template-columns:1fr!important}
  body.teacher .teacher-notice{grid-template-columns:1fr auto}
}

@media(max-width:760px){
  body.teacher .container{width:min(100% - 24px,1160px)!important}
  body.teacher .hero{padding:28px 0 26px!important}
  body.teacher .hero-grid{gap:18px!important}
  body.teacher .hero h1{max-width:none!important;margin:11px 0 12px!important;font-size:clamp(34px,9.6vw,42px)!important;line-height:1.01!important;letter-spacing:-1.4px!important;overflow-wrap:normal!important;word-break:normal!important;hyphens:none!important}
  body.teacher .hero-grid>div>p{max-width:none!important;font-size:13px!important;line-height:1.5!important}
  body.teacher .hero-actions{display:grid!important;grid-template-columns:1fr 1fr!important;gap:8px!important;margin-top:17px!important}
  body.teacher .hero-actions .btn{width:100%!important;min-width:0!important;padding:9px 10px!important;font-size:10px!important}
  body.teacher .hero-panel{padding:17px!important;border-radius:18px!important}
  body.teacher .hero-panel h2{font-size:19px!important;line-height:1.15!important}
  body.teacher .teacher-metrics{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important}
  body.teacher .teacher-metric{padding:12px!important}
  body.teacher .teacher-metric strong{font-size:19px!important}
  body.teacher .teacher-metric span{font-size:8px!important;line-height:1.25!important}
  body.teacher .hero-list{grid-template-columns:1fr!important}
  body.teacher .hero-list a{min-height:42px!important;padding:10px 12px!important;font-size:10.5px!important}
  body.teacher .pr2-proof{margin-top:0!important;padding:14px 0!important}
  body.teacher .pr2-proof-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;padding:8px!important;border-radius:17px!important}
  body.teacher .teacher-authority{padding:30px 0!important}
  body.teacher .pr2-value-grid{grid-template-columns:1fr!important}
  body.teacher .pr2-value-card:first-child:nth-last-child(3){grid-column:auto!important}
  body.teacher .teacher-summary{padding:17px!important}
  body.teacher .teacher-summary-nav{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  body.teacher .teacher-priority-grid{grid-template-columns:1fr!important}
  body.teacher .teacher-section-head{align-items:flex-start!important;flex-direction:column!important;gap:7px!important}
  html[data-hub-page="professor"] body.teacher .teacher-tool-grid{grid-template-columns:1fr!important}
  body.teacher .teacher-feature{grid-column:auto!important}
  body.teacher .teacher-tool{min-height:0!important;padding:17px!important}
  body.teacher .teacher-tool h3{font-size:15px!important}
  body.teacher .teacher-tool p{font-size:10.5px!important}
  body.teacher .pr2-statement{grid-template-columns:1fr!important;padding:20px!important}
  body.teacher .teacher-notice{grid-template-columns:1fr!important}
  body.teacher .teacher-notice-actions{justify-content:flex-start!important}
}

@media(max-width:520px){
  body.teacher .hero h1{font-size:clamp(31px,9.2vw,36px)!important;line-height:1.02!important}
  body.teacher .hero .eyebrow{font-size:9px!important;line-height:1.35!important}
  body.teacher .hero-actions{grid-template-columns:1fr!important}
  body.teacher .hero-panel{padding:15px!important}
  body.teacher .pr2-proof-grid{grid-template-columns:1fr 1fr!important}
  body.teacher .pr2-proof-card{min-height:78px!important;padding:11px!important}
  body.teacher .pr2-proof-card strong{font-size:21px!important}
  body.teacher .teacher-summary-nav{grid-template-columns:1fr 1fr!important}
  body.teacher .teacher-priority{grid-template-columns:42px minmax(0,1fr)!important;gap:10px!important;padding:14px!important}
  body.teacher .teacher-priority strong{font-size:14px!important}
  body.teacher .teacher-priority p{font-size:10px!important}
  body.teacher .teacher-notice-actions .btn{width:100%!important}
}
