/* Espaço do Professor — folha única.
   Sem JavaScript, sem cookies, sem fontes externas: o site precisa ser, de fato,
   o que a política de privacidade afirma que ele é. */

:root {
  --azul-claro: #2F7BFF;
  --azul: #0035B5;
  --tinta: #16202D;
  --grafite: #5A6B80;
  --laranja: #FF7A00;
  --laranja-claro: #FFA526;
  --lancado: #137A45;   /* o verde de "cadastrado" do calendário do SIAP */
  --papel: #F2F5FA;
  --linha: #D9E1EC;
  --medida: 40rem;      /* ~68 caracteres: medida de leitura dos documentos */
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: #fff;
  color: var(--tinta);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--azul); text-underline-offset: .18em; }
a:hover { color: var(--laranja); }
:focus-visible { outline: 3px solid var(--laranja); outline-offset: 3px; border-radius: 2px; }

/* ---------- Cabeçalho ---------- */

.topo {
  position: sticky; top: 0; z-index: 10;
  background: rgba(255,255,255,.94);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--linha);
}
.topo-interno {
  max-width: 62rem; margin: 0 auto; padding: .7rem 1.25rem;
  display: flex; flex-wrap: wrap; gap: .5rem 1.5rem;
  align-items: center; justify-content: space-between;
}
.marca { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--tinta); }
.marca img { width: 30px; height: 30px; border-radius: 7px; display: block; }
.marca b { font-weight: 650; font-size: 1.02rem; letter-spacing: -.012em; }
.topo nav { display: flex; gap: 1.4rem; font-size: .96rem; }
.topo nav a { color: var(--grafite); text-decoration: none; }
.topo nav a:hover { color: var(--azul); text-decoration: underline; }

/* ---------- Herói: o diário ---------- */

.heroi {
  background: var(--papel);
  border-bottom: 1px solid var(--linha);
  /* pauta: o fundo é papel de diário */
  background-image: repeating-linear-gradient(
    to bottom, transparent 0 2.74rem, rgba(90,107,128,.09) 2.74rem 2.78rem);
}
.heroi-interno { max-width: 62rem; margin: 0 auto; padding: 3.4rem 1.25rem 3rem; }

.heroi h1 {
  margin: 0 0 .7rem;
  font-size: clamp(2.05rem, 5.2vw, 3.1rem);
  line-height: 1.07;
  letter-spacing: -.028em;
  font-weight: 700;
}
.resumo {
  margin: 0 0 2rem;
  max-width: 34rem;
  font-size: clamp(1.08rem, 2.2vw, 1.22rem);
  line-height: 1.5;
  color: var(--grafite);
}

/* Os dois lados do herói: o painel que se opera, e o diário que resulta dele. */
.palco { display: grid; gap: 1.5rem; align-items: center; }
@media (min-width: 54rem) {
  .palco { grid-template-columns: 19.5rem minmax(0, 1fr); gap: 2.2rem; }
}

/* O painel da extensão, reconstruído com a paleta do próprio produto:
   o azul #073456 é o azul institucional do SIAP, lido da folha de estilo dele;
   o laranja #e8701a é a moldura que delimita a janela da extensão. */
.painel { margin: 0; }
.painel-corpo {
  border: 2px solid #e8701a;
  border-radius: 8px;
  background: #fff;
  padding: .85rem .9rem 1rem;
  font-size: .79rem;
  line-height: 1.45;
  color: #000;
  box-shadow: 0 1px 2px rgba(22,32,45,.05), 0 10px 26px -16px rgba(7,52,86,.45);
}
.painel-dica {
  margin: 0 0 .85rem; padding: .45rem .6rem;
  background: #e8eef4; border-left: 3px solid #073456;
  color: #073456;
}
.painel-titulo {
  display: flex; align-items: center; gap: .45rem;
  margin: 1rem 0 .5rem; color: #073456; font-weight: 600;
}
.painel-titulo:first-of-type { margin-top: 0; }
.painel-n {
  display: inline-grid; place-items: center; width: 1.15rem; height: 1.15rem;
  border-radius: 50%; background: #e8eef4; color: #073456;
  font-size: .72rem; font-weight: 700; flex: none;
}
.painel-ano { margin: 0 0 .6rem; color: #5a6572; }
.painel-rotulo { margin: .4rem 0 .18rem; color: #5a6572; }
.painel-campo {
  margin: 0; padding: .36rem .45rem;
  border: 1px solid #c9d4de; border-radius: 4px; color: #5a6572;
}
.painel-botao {
  margin: .45rem 0 0; padding: .52rem .6rem;
  background: #073456; border: 1px solid #073456; border-radius: 5px;
  color: #fff; font-weight: 600; text-align: center;
}
.painel figcaption { margin-top: .7rem; font-size: .88rem; color: var(--grafite); }

/* O box de aulas do dia, como o professor vê no SIAP */
.diario {
  margin: 0;
  background: #fff;
  border: 1px solid var(--linha);
  border-radius: 10px;
  box-shadow: 0 1px 2px rgba(22,32,45,.05), 0 8px 24px -14px rgba(22,32,45,.3);
  overflow: hidden;
}
.diario-cabeca {
  display: flex; justify-content: space-between; align-items: baseline; gap: 1rem;
  padding: .7rem .95rem;
  border-bottom: 1px solid var(--linha);
  background: linear-gradient(180deg, #fff, var(--papel));
  font-size: .92rem;
}
.diario-cabeca .data { font-weight: 640; }
.diario-cabeca .turma { color: var(--grafite); }

.aulas { list-style: none; margin: 0; padding: 0; }
.aulas li {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: .55rem .95rem;
  border-top: 1px solid var(--linha);
  font-size: .97rem;
}
.aulas li:first-child { border-top: 0; }
.aulas .rotulo { color: var(--tinta); }
.aulas .estado { display: inline-flex; align-items: center; gap: .45rem; color: var(--lancado); font-size: .88rem; font-weight: 600; }

/* O check é desenhado, uma aula após a outra: é o que o produto faz. */
.tique { width: 17px; height: 17px; display: block; flex: none; }
.tique path {
  stroke: var(--laranja); stroke-width: 3.2; fill: none;
  stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 26; stroke-dashoffset: 26;
  animation: risca .42s ease-out forwards;
}
.aulas li:nth-child(1) .tique path { animation-delay: .35s; }
.aulas li:nth-child(2) .tique path { animation-delay: .62s; }
.aulas li:nth-child(3) .tique path { animation-delay: .89s; }
.aulas li:nth-child(4) .tique path { animation-delay: 1.16s; }
.aulas li:nth-child(5) .tique path { animation-delay: 1.43s; }
.aulas .estado { opacity: 0; animation: surge .3s ease-out forwards; }
.aulas li:nth-child(1) .estado { animation-delay: .5s; }
.aulas li:nth-child(2) .estado { animation-delay: .77s; }
.aulas li:nth-child(3) .estado { animation-delay: 1.04s; }
.aulas li:nth-child(4) .estado { animation-delay: 1.31s; }
.aulas li:nth-child(5) .estado { animation-delay: 1.58s; }

@keyframes risca { to { stroke-dashoffset: 0; } }
@keyframes surge { to { opacity: 1; } }

@media (prefers-reduced-motion: reduce) {
  .tique path, .aulas .estado { animation: none; stroke-dashoffset: 0; opacity: 1; }
}

.legenda {
  margin: 1.1rem 0 0; max-width: 38rem;
  font-size: .9rem; color: var(--grafite);
}

/* ---------- Corpo ---------- */

main { max-width: 62rem; margin: 0 auto; padding: 2.4rem 1.25rem 3rem; }
main.documento { max-width: calc(var(--medida) + 9rem); padding-top: 2.6rem; }

h2 {
  font-size: 1.3rem; font-weight: 660; letter-spacing: -.012em;
  line-height: 1.28; margin: 0 0 .65rem;
}
h3 { font-size: 1.04rem; font-weight: 650; margin: 1.5rem 0 .4rem; }
p { margin: 0 0 .72rem; }

/* Duas colunas: o que faz, o que não faz */
.par { display: grid; gap: 2.6rem; }
@media (min-width: 48rem) { .par { grid-template-columns: 1fr 1fr; gap: 3.4rem; } }

.lista { list-style: none; margin: 0; padding: 0; }
.lista li { padding: .55rem 0; border-top: 1px solid var(--linha); }
.lista li:first-child { border-top: 0; padding-top: 0; }
.bloco-nao .lista li { color: var(--grafite); }
.bloco-nao .lista b { color: var(--tinta); font-weight: 640; }

.nota {
  margin-top: 2.2rem; padding: 1rem 1.2rem;
  background: var(--papel); border: 1px solid var(--linha);
  border-left: 3px solid var(--azul-claro); border-radius: 0 8px 8px 0;
}
.nota p:last-child { margin-bottom: 0; }
.nota.aviso { border-left-color: var(--laranja); }

.secao { margin-top: 2.5rem; }
.secao > p, .secao > ul { max-width: 38rem; }
.nota { max-width: 44rem; }

/* ---------- Documentos legais ---------- */

.documento h1 { font-size: clamp(1.75rem, 4vw, 2.3rem); line-height: 1.12; letter-spacing: -.022em; margin: 0 0 .45rem; }
.vigencia { margin: 0 0 1.8rem; color: var(--grafite); font-size: .95rem; }

.indice { margin: 0 0 2.4rem; padding: 1.1rem 1.3rem; background: var(--papel); border: 1px solid var(--linha); border-radius: 10px; }
.indice h2 { font-size: .98rem; font-weight: 650; margin: 0 0 .7rem; color: var(--grafite); }
.indice ol { margin: 0; padding: 0; list-style: none; columns: 2; column-gap: 2rem; font-size: .95rem; }
@media (max-width: 40rem) { .indice ol { columns: 1; } }
.indice li { margin: .22rem 0; break-inside: avoid; padding-left: 1.75rem; text-indent: -1.75rem; }
.indice a { color: var(--tinta); text-decoration: none; }
.indice a:hover { color: var(--azul); text-decoration: underline; }
.indice .numero { display: inline-block; min-width: 1.5em; color: var(--grafite); }

.documento h2 { margin: 2.2rem 0 .7rem; padding-top: 1.2rem; border-top: 1px solid var(--linha); position: relative; }
.documento h2 .numero {
  color: var(--azul-claro); font-weight: 700; font-variant-numeric: tabular-nums;
  margin-right: .55rem;
}
@media (min-width: 58rem) {
  .documento h2 .numero { position: absolute; left: -3.1rem; top: 1.2rem; margin: 0; text-align: right; width: 2.2rem; }
}
.documento h2:first-of-type { border-top: 0; padding-top: 0; }
.documento > p, .documento > ul, .documento > ol { max-width: var(--medida); }
.documento li { margin: .22rem 0; }

table { width: 100%; border-collapse: collapse; margin: 1.1rem 0 1.3rem; font-size: .95rem; }
caption { text-align: left; color: var(--grafite); font-size: .9rem; padding-bottom: .4rem; }
th, td { text-align: left; vertical-align: top; padding: .5rem .7rem; border-bottom: 1px solid var(--linha); }
thead th { background: var(--papel); font-weight: 640; border-bottom: 1px solid var(--linha); }
tbody tr:last-child td { border-bottom: 0; }

blockquote {
  margin: 1.3rem 0; padding: .95rem 1.2rem; max-width: var(--medida);
  background: var(--papel); border-left: 3px solid var(--laranja); border-radius: 0 8px 8px 0;
  font-style: italic; color: var(--grafite);
}
code { background: var(--papel); border: 1px solid var(--linha); padding: .05rem .32rem; border-radius: 4px; font-size: .9em; }

/* ---------- Rodapé ---------- */

.rodape { border-top: 1px solid var(--linha); background: var(--papel); }
.rodape-interno {
  max-width: 62rem; margin: 0 auto; padding: 2rem 1.25rem 2.6rem;
  color: var(--grafite); font-size: .94rem;
}
.rodape nav { display: flex; flex-wrap: wrap; gap: 1.3rem; margin-bottom: .9rem; }
.rodape nav a { color: var(--tinta); }
.rodape p { margin: .25rem 0; }

@media (max-width: 34rem) {
  body { font-size: 1rem; }
  .heroi-interno { padding: 2.4rem 1.25rem 2.2rem; }
  main { padding-top: 2.2rem; }
  th, td { padding: .5rem .5rem; }
}
