/* ==========================================================================
   Especialização em IA Aplicada — UFPR/SEPT
   Versão limpa (set/2026): branco, seções em azul-claro, azul UFPR como acento.
   HTML/CSS/JS puros. Fontes hospedadas localmente.
   ========================================================================== */

/* ---------- Fontes ---------- */
@font-face { font-family: "Saira"; src: url("../assets/fonts/saira-variable.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Archivo"; src: url("../assets/fonts/archivo-variable.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Sometype Mono"; src: url("../assets/fonts/sometype-mono-variable.woff2") format("woff2"); font-weight: 400 700; font-style: normal; font-display: swap; }

/* ---------- Tokens ---------- */
:root {
  --paper: #ffffff;
  --tint: #eef4fb;          /* seções em azul muito claro */
  --tint-2: #f6f8fb;        /* linhas alternadas, caixas leves */
  --line: #dde5ee;          /* fios */
  --line-2: #c9d6e5;
  --text: #1f2933;
  --text-2: #5b6672;
  --ink: #00417f;           /* azul UFPR: botões, links, destaques */
  --ink-deep: #002f5c;
  --ink-tint: #dbe8f6;
  --red: #b3261e;           /* só para avisos */
  --marca-texto: #fff2a8;   /* só para "hoje" no calendário */
  --disc-c1: #00417f; --disc-c2: #1f6b45; --disc-c3: #96430f; --disc-c4: #6f5900;

  --font-display: "Saira", "Archivo", system-ui, sans-serif;
  --font-body: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "Sometype Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --radius: 10px;
  --measure: 66ch;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; color: var(--text); background: var(--paper);
  font-family: var(--font-body); font-size: 1.0625rem; line-height: 1.6;
  caret-color: var(--ink); scrollbar-color: var(--line-2) var(--paper);
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--ink); text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
a:hover { color: var(--ink-deep); }
::selection { background: var(--ink-tint); color: var(--text); }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.1; margin: 0; text-wrap: balance; color: var(--text); }
p { margin: 0 0 1em; max-width: var(--measure); }
ul, ol { margin: 0 0 1em; padding-left: 1.25em; max-width: var(--measure); }
li { margin-bottom: 0.4em; }
strong { font-weight: 650; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.mono, code { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }

.label { font-family: var(--font-display); font-weight: 600; font-size: 0.8125rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink); }
.h-section { font-size: clamp(1.75rem, 1.3rem + 1.8vw, 2.5rem); font-weight: 700; letter-spacing: -0.02em; margin-bottom: 20px; }
.section__intro { color: var(--text-2); font-size: 1.1rem; margin: -10px 0 40px; max-width: 60ch; }

/* ---------- Layout ---------- */
.wrap { width: min(100% - 2 * clamp(20px, 5vw, 48px), 1120px); margin-inline: auto; }
.section { padding-block: 96px; padding-block: clamp(64px, 9vw, 112px); }
.section--tint { background: var(--tint); }

/* ---------- Cabeçalho ---------- */
.topbar { position: sticky; top: 0; z-index: 20; background: rgba(255, 255, 255, 0.92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.topbar__in { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 72px; flex-wrap: wrap; padding-block: 8px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--text); }
.brand img { width: 40px; height: 40px; }
.brand__name { font-family: var(--font-display); font-weight: 650; font-size: 1rem; line-height: 1.15; }
.brand__name small { display: block; font-family: var(--font-body); font-weight: 400; font-size: 0.78rem; color: var(--text-2); }
.nav { display: flex; align-items: center; gap: clamp(16px, 2.5vw, 32px); margin: 0; padding: 0; list-style: none; max-width: none; }
.nav li { margin: 0; }
.nav a, .nav__btn {
  display: block; padding: 8px 0; margin: 0;
  font-family: var(--font-body); font-weight: 550; font-size: 0.95rem; color: var(--text);
  text-decoration: none; background: none; border: 0; cursor: pointer; appearance: none;
}
.nav a:hover, .nav__btn:hover, .nav__btn[aria-expanded="true"] { color: var(--ink); }
.nav a[aria-current="page"], .nav__btn[aria-current="page"] { color: var(--ink); font-weight: 650; }
.nav__item--sub { position: relative; }
.nav__btn { display: flex; align-items: center; gap: 6px; }
.nav__btn::after { content: ""; width: 0; height: 0; border-left: 4px solid transparent; border-right: 4px solid transparent; border-top: 5px solid currentColor; }
.nav__sub {
  position: absolute; top: calc(100% + 6px); left: -12px; z-index: 30; min-width: 190px; display: none;
  margin: 0; padding: 6px; list-style: none; background: var(--paper);
  border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 10px 30px -12px rgba(31, 41, 51, 0.25);
}
/* ponte invisível entre o botão e o painel: o mouse não "cai" no vão ao descer para o submenu */
.nav__sub::before { content: ""; position: absolute; left: 0; right: 0; top: -14px; height: 14px; }
.nav__item--sub:hover .nav__sub, .nav__item--sub:focus-within .nav__sub, .nav__btn[aria-expanded="true"] + .nav__sub { display: block; }
.nav__sub a { padding: 9px 12px; border-radius: 6px; white-space: nowrap; }
.nav__sub a:hover, .nav__sub a[aria-current="page"] { background: var(--tint); color: var(--ink); }

/* ---------- Botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 26px; border-radius: var(--radius);
  font-family: var(--font-body); font-weight: 600; font-size: 1rem; letter-spacing: 0.005em;
  color: var(--paper); background: var(--ink); border: 1.5px solid var(--ink);
  text-decoration: none; cursor: pointer; appearance: none; line-height: 1;
  transition: background 200ms var(--ease-out), transform 200ms var(--ease-out), box-shadow 200ms var(--ease-out);
}
.btn:hover { background: var(--ink-deep); border-color: var(--ink-deep); color: var(--paper); box-shadow: 0 8px 20px -10px rgba(0, 65, 127, 0.5); }
.btn:active { transform: translateY(1px); }
.btn--ghost { background: transparent; color: var(--ink); }
.btn--ghost:hover { background: var(--ink-tint); color: var(--ink-deep); box-shadow: none; }
/* desabilitado: sem contorno, texto secundário e marca "em breve" (distinto do botão vazado) */
.btn--hatch, .btn:disabled { background: var(--tint-2); color: var(--text-2); border-color: transparent; cursor: not-allowed; box-shadow: none; font-weight: 500; }
.btn--hatch::before, .btn:disabled::before { content: ""; width: 8px; height: 8px; border-radius: 50%; border: 2px solid var(--line-2); }
.btn--hatch:hover, .btn:disabled:hover { background: var(--tint-2); color: var(--text-2); border-color: transparent; transform: none; box-shadow: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Carimbo (única marca de personalidade) ---------- */
.carimbo {
  display: inline-flex; flex-direction: column; align-items: center;
  padding: 5px 14px 7px; background: var(--paper);
  border: 2px solid var(--ink); border-radius: 4px;
  box-shadow: inset 0 0 0 3px var(--paper), inset 0 0 0 4px var(--ink);
  transform: rotate(-4deg); color: var(--ink); text-transform: uppercase;
}
.carimbo__big { font-family: var(--font-display); font-weight: 800; font-size: 1.4rem; line-height: 1; letter-spacing: 0.02em; }
.carimbo__small { font-family: var(--font-mono); font-weight: 600; font-size: 0.58rem; letter-spacing: 0.1em; margin-top: 3px; }

/* ---------- Hero ---------- */
.hero { padding-block: clamp(56px, 8vw, 104px) clamp(56px, 8vw, 96px); text-align: center; }
.hero__in { max-width: 860px; margin-inline: auto; display: flex; flex-direction: column; align-items: center; }
.hero .carimbo { margin-bottom: 28px; }
.hero h1 { font-size: clamp(2.5rem, 1.6rem + 4.4vw, 4.6rem); font-weight: 750; letter-spacing: -0.03em; line-height: 1.02; }
.hero h1 em { font-style: normal; color: var(--ink); }
.hero__sub { font-size: clamp(1.1rem, 1rem + 0.5vw, 1.3rem); color: var(--text-2); max-width: 46ch; margin: 22px auto 30px; }
.hero .btn-row { justify-content: center; }
.fatos { list-style: none; margin: 44px 0 0; padding: 0; max-width: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 44px; }
.fatos li { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 2px; }
.fatos b { font-family: var(--font-mono); font-weight: 600; font-size: clamp(1.4rem, 1.1rem + 1vw, 1.9rem); color: var(--ink); letter-spacing: -0.01em; }
.fatos span { font-size: 0.9rem; color: var(--text-2); }

/* ---------- Inscrições ---------- */
.inscricoes { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: center; }
.inscricoes__datas { font-family: var(--font-mono); font-weight: 600; font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.4rem); color: var(--ink); letter-spacing: -0.02em; margin: 10px 0 6px; }
.inscricoes__datas small { font-size: 0.6em; font-weight: 400; color: var(--text-2); }
.inscricoes p { margin-bottom: 0.6em; }
.nota { font-size: 0.92rem; color: var(--text-2); }
.inscricoes__acao { background: var(--paper); border: 1px solid var(--line); border-radius: 16px; padding: 28px; }
.inscricoes__acao h3 { font-size: 1.25rem; font-weight: 650; margin-bottom: 8px; }
.inscricoes__acao p { color: var(--text-2); margin-bottom: 20px; }

/* ---------- Tabela de dados do curso ---------- */
.dados { width: 100%; border-collapse: collapse; font-size: 1rem; max-width: 760px; }
.dados th, .dados td { padding: 14px 0; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.dados tr:last-child th, .dados tr:last-child td { border-bottom: 0; }
.dados th { width: 34%; font-weight: 500; color: var(--text-2); padding-right: 24px; }
.dados td { font-weight: 550; color: var(--text); }
.dados td .mono { color: var(--ink); }

/* ---------- Linha do tempo ---------- */
.timeline { list-style: none; margin: 0; padding: 0; max-width: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; position: relative; }
.timeline::before { content: ""; position: absolute; left: 7px; right: 7px; top: 7px; height: 2px; background: var(--line-2); }
.timeline li { position: relative; padding: 30px 12px 0 0; margin: 0; }
.timeline li::before { content: ""; position: absolute; left: 0; top: 0; width: 16px; height: 16px; border-radius: 50%; background: var(--paper); border: 3px solid var(--ink); }
.timeline li.is-hot::before { background: var(--ink); }
.timeline__when { display: block; font-family: var(--font-mono); font-weight: 600; font-size: 1rem; color: var(--ink); margin-bottom: 6px; }
.timeline__what { display: block; font-family: var(--font-display); font-weight: 650; font-size: 1.1rem; }
.timeline__sub { display: block; font-size: 0.92rem; color: var(--text-2); }

/* ---------- Como funciona ---------- */
.notas { list-style: none; margin: 0; padding: 0; max-width: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.notas li { margin: 0; }
.notas h3 { font-size: 1.15rem; font-weight: 650; margin-bottom: 8px; }
.notas p { margin: 0; color: var(--text-2); font-size: 1rem; }

/* ---------- Grade curricular ---------- */
.grade { width: 100%; border-collapse: collapse; }
.grade th, .grade td { padding: 13px 12px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.grade thead th { font-family: var(--font-body); font-weight: 600; font-size: 0.8rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-2); border-bottom: 2px solid var(--line-2); }
.grade tbody tr:hover { background: var(--tint-2); }
.grade .code { font-family: var(--font-mono); font-weight: 600; color: var(--ink); white-space: nowrap; }
.grade .ch { font-family: var(--font-mono); white-space: nowrap; color: var(--text-2); }
.grade .prof { color: var(--text-2); font-size: 0.95rem; }

/* Disciplinas com ementa */
.disc { border-bottom: 1px solid var(--line); }
.disc:first-of-type { border-top: 1px solid var(--line); }
.disc summary { display: grid; grid-template-columns: 84px 1fr auto; gap: 12px; align-items: baseline; padding: 18px 8px; cursor: pointer; list-style: none; border-radius: 8px; }
.disc summary::-webkit-details-marker { display: none; }
.disc summary:hover { background: var(--tint-2); }
.disc .code { font-family: var(--font-mono); font-weight: 600; color: var(--ink); }
.disc .name { font-family: var(--font-display); font-weight: 650; font-size: 1.1rem; }
.disc .prof { display: block; font-family: var(--font-body); font-weight: 400; font-size: 0.9rem; color: var(--text-2); margin-top: 2px; }
.disc .ch { font-family: var(--font-mono); color: var(--text-2); font-size: 0.9rem; white-space: nowrap; }
.disc .ch::after { content: "+"; display: inline-block; margin-left: 14px; width: 18px; text-align: center; color: var(--ink); font-weight: 600; }
.disc[open] .ch::after { content: "−"; }
.disc__body { padding: 0 8px 22px 104px; }
.disc__body p { margin: 0; color: var(--text-2); }
.disc__body .pend { color: var(--red); font-family: var(--font-mono); font-size: 0.9rem; }

/* ---------- Docentes ---------- */
.docentes { list-style: none; margin: 0; padding: 0; max-width: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 28px 32px; }
.docentes li { margin: 0; display: grid; grid-template-columns: 64px 1fr; gap: 14px; align-items: start; }
.docentes .foto { width: 64px; height: 64px; object-fit: cover; border-radius: 12px; background: var(--tint); display: block; }
.docentes .foto--pend { border: 1px dashed var(--line-2); }
.docentes .info { min-width: 0; }
.docentes .nome { font-family: var(--font-display); font-weight: 650; font-size: 1.02rem; }
.docentes .vinc { display: block; font-size: 0.88rem; color: var(--text-2); margin: 2px 0 6px; }
.docentes a { font-size: 0.9rem; }

/* ---------- Listas de documentos e links ---------- */
.lista { list-style: none; margin: 0; padding: 0; max-width: none; }
.lista li { margin: 0; display: grid; grid-template-columns: 1fr auto; gap: 6px 24px; align-items: center; padding: 18px 8px; border-bottom: 1px solid var(--line); }
.lista li:first-child { border-top: 1px solid var(--line); }
.lista li:hover { background: var(--tint-2); }
.lista a { font-family: var(--font-display); font-weight: 650; font-size: 1.1rem; text-decoration: none; }
.lista a:hover { text-decoration: underline; }
.lista .desc { grid-column: 1; font-size: 0.95rem; color: var(--text-2); }
.lista .meta { grid-column: 2; grid-row: 1 / span 2; font-family: var(--font-mono); font-size: 0.85rem; color: var(--text-2); white-space: nowrap; text-align: right; }
.lista .is-pend { font-family: var(--font-display); font-weight: 650; font-size: 1.1rem; color: var(--text-2); }
.lista .meta--pend { color: var(--red); }

/* ---------- Texto corrido / páginas internas ---------- */
.prose h3 { font-size: 1.2rem; font-weight: 650; margin: 1.6em 0 0.5em; }
.cols-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 56px; }
.page-head { padding-block: clamp(56px, 7vw, 88px) 0; max-width: 760px; }
.page-head h1 { font-size: clamp(2.2rem, 1.4rem + 3.2vw, 3.6rem); font-weight: 750; letter-spacing: -0.03em; }
.page-head .lead { font-size: 1.2rem; color: var(--text-2); margin: 18px 0 0; }

/* ---------- Contato e rodapé ---------- */
.contato { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.contato__h { font-size: 1.25rem; font-weight: 650; margin-bottom: 14px; }
.contato .email { font-family: var(--font-mono); font-size: clamp(1.25rem, 1rem + 1.1vw, 1.7rem); font-weight: 600; }
.social { list-style: none; margin: 0; padding: 0; max-width: none; display: flex; flex-wrap: wrap; gap: 10px 18px; }
.social li { margin: 0; }
.social a { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font-size: 0.95rem; }
.social svg { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.footer { border-top: 1px solid var(--line); padding-block: 40px; font-size: 0.9rem; color: var(--text-2); }
.footer__in { display: grid; grid-template-columns: auto 1fr auto; gap: 40px; align-items: center; }
.footer__logos { display: flex; align-items: center; gap: 24px; }
.footer__logos img { height: 40px; width: auto; }
.footer address { font-style: normal; line-height: 1.5; }
.footer p { margin: 0; }
.footer .rev-line { font-size: 0.82rem; text-align: right; }

/* ---------- Calendário da turma ---------- */
.cal-status { background: var(--tint); border-radius: 16px; padding: 22px 26px; margin-bottom: 28px; max-width: none; }
.cal-status .label { margin: 0 0 8px; }
.cal-status__h { font-family: var(--font-display); font-weight: 650; font-size: 1.2rem; margin: 0 0 10px; }
.cal-status__lista { list-style: none; padding: 0; margin: 0; max-width: none; }
.cal-status__lista li { margin: 0 0 10px; }
.cal-status__disc { font: inherit; font-weight: 650; color: var(--ink); background: none; border: 0; padding: 0; cursor: pointer; text-decoration: underline; text-underline-offset: 0.2em; }
.cal-status__prox { display: block; font-size: 0.95rem; color: var(--text-2); margin-top: 2px; }
.cal-status__prox strong { color: var(--text); }
.ev__code { font-family: var(--font-mono); font-weight: 600; }
.cal-filtro { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-bottom: 20px; }
.cal-filtro select {
  font: inherit; font-size: 0.98rem; padding: 10px 40px 10px 14px; color: var(--text); background: var(--paper);
  border: 1.5px solid var(--line-2); border-radius: var(--radius); max-width: 100%; appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%);
  background-position: calc(100% - 20px) 55%, calc(100% - 15px) 55%; background-size: 5px 5px; background-repeat: no-repeat;
}
.cal-filtro select:focus-visible { border-color: var(--ink); }
.cal-link { font-size: 0.95rem; }
.cal-legenda { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 0 0 8px; max-width: none; font-size: 0.92rem; color: var(--text-2); }
.cal-legenda > div { display: flex; align-items: center; gap: 8px; }
.cal-legenda dt, .cal-legenda dd { margin: 0; }
.cal-legenda .ev { color: var(--ink); }
.cal-legenda .ev::before { margin-right: 0; }
.cal-sw { display: inline-block; width: 22px; height: 12px; border-radius: 3px; border: 1px solid var(--line-2); }
.cal-sw--sab { background: var(--tint); }
.cal-sw--hoje { background: var(--marca-texto); }
.cal-nota { font-size: 0.92rem; color: var(--text-2); margin-bottom: 28px; }
.cal-wrap { overflow-x: auto; }
.calendario { width: 100%; border-collapse: collapse; font-size: 0.97rem; }
.calendario th { text-align: left; padding: 12px; border-bottom: 2px solid var(--line-2); font-family: var(--font-body); font-weight: 600; font-size: 0.8rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-2); }
.calendario td { padding: 9px 12px; vertical-align: top; border-bottom: 1px solid var(--line); }
.calendario .cal-data { width: 11.5em; font-family: var(--font-mono); font-variant-numeric: tabular-nums; font-weight: 600; color: var(--text); white-space: nowrap; }
.calendario .cal-ano td { background: var(--ink); color: var(--paper); font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; letter-spacing: 0.06em; padding: 8px 12px; }
.calendario .cal-mes td { background: var(--tint-2); font-family: var(--font-display); font-weight: 650; text-transform: uppercase; letter-spacing: 0.06em; font-size: 0.85rem; color: var(--ink-deep); padding: 10px 12px; }
.calendario .sabado td { background: var(--tint); }
.calendario .row-encontro td { background: var(--ink-tint); }
.calendario .cal-estudos .cal-desc { color: var(--text-2); font-style: italic; }
.calendario .is-hoje td { background: var(--marca-texto); }
.calendario .cal-hoje td { font-family: var(--font-mono); }
.calendario .cal-desc small { color: var(--text-2); font-size: 0.88em; }
.ev { display: inline; color: var(--text); }
.ev .ev__tag { font-family: var(--font-body); font-weight: 650; text-transform: uppercase; letter-spacing: 0.04em; font-size: 0.78rem; }
.ev.c1 { color: var(--disc-c1); } .ev.c2 { color: var(--disc-c2); } .ev.c3 { color: var(--disc-c3); } .ev.c4 { color: var(--disc-c4); }
.ev::before { content: ""; display: inline-block; width: 9px; height: 9px; margin-right: 7px; vertical-align: 0; background: currentColor; }
.ev--inicio::before { width: 0; height: 0; background: none; border-top: 5px solid transparent; border-bottom: 5px solid transparent; border-left: 9px solid currentColor; }
.ev--encontro::before { transform: rotate(45deg) scale(0.85); }
.ev--trabalho::before { border-radius: 50%; }
.ev--atraso::before { border-radius: 50%; background: none; box-shadow: inset 0 0 0 2px currentColor; }
.ev--exame::before { border-radius: 1px; }

/* ---------- Movimento: uma entrada, só no hero ---------- */
.rise > * { opacity: 0; transform: translateY(14px); }
.rise.is-in > * { opacity: 1; transform: none; transition: opacity 700ms var(--ease-out), transform 700ms var(--ease-out); }
.rise.is-in > *:nth-child(2) { transition-delay: 80ms; }
.rise.is-in > *:nth-child(3) { transition-delay: 160ms; }
.rise.is-in > *:nth-child(4) { transition-delay: 240ms; }
.rise.is-in > *:nth-child(5) { transition-delay: 320ms; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .rise > * { opacity: 1; transform: none; transition: none; }
}

/* ---------- Responsivo ---------- */
@media (max-width: 900px) {
  .inscricoes, .cols-2, .contato { grid-template-columns: 1fr; }
  .notas { grid-template-columns: 1fr 1fr; }
  .timeline { grid-template-columns: 1fr; padding-left: 30px; gap: 20px; }
  .timeline::before { left: 7px; right: auto; top: 0; bottom: 0; width: 2px; height: auto; }
  .timeline li { padding: 0; }
  .timeline li::before { left: -30px; top: 4px; }
  .footer__in { grid-template-columns: 1fr; }
  .footer .rev-line { text-align: left; }
}
@media (max-width: 600px) {
  body { font-size: 1rem; }
  .topbar__in { flex-direction: column; align-items: flex-start; gap: 4px; }
  .topbar__in { gap: 0; }
  .nav { flex-wrap: nowrap; gap: 18px; width: calc(100% + 2 * clamp(20px, 5vw, 48px)); margin-inline: calc(-1 * clamp(20px, 5vw, 48px)); padding-inline: clamp(20px, 5vw, 48px); overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .nav::-webkit-scrollbar { display: none; }
  .nav { mask-image: linear-gradient(to right, #000 calc(100% - 36px), transparent); -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 36px), transparent); }
  .nav > li:last-child { padding-right: 24px; }
  .nav a, .nav__btn { font-size: 0.9rem; padding: 6px 0 10px; white-space: nowrap; }
  /* no celular o submenu vira links na própria linha */
  .nav__btn { display: none; }
  .nav__item--sub, .nav__sub { display: contents; }
  .nav__sub a { padding: 6px 0 10px; border-radius: 0; }
  .nav__sub a:hover, .nav__sub a[aria-current="page"] { background: none; }
  .notas { grid-template-columns: 1fr; }
  .fatos { gap: 16px 28px; }
  .grade .prof, .grade thead .th-prof { display: none; }
  .disc summary { grid-template-columns: 1fr auto; }
  .disc .code { grid-column: 1 / -1; }
  .disc__body { padding-left: 8px; }
  .lista li { grid-template-columns: 1fr; }
  .lista .meta { grid-column: 1; grid-row: auto; text-align: left; }
  .calendario { font-size: 0.9rem; }
  .calendario .cal-data { width: 8.5em; white-space: normal; }
}
