.course-heading { max-width: 54rem; margin: clamp(1rem, 4vw, 3rem) 0 2rem; }
.course-heading h1, .course-hero h1, .course-lesson-heading h1 {
  font: 400 clamp(3rem, 5.4vw, 5.5rem)/.98 var(--editorial); letter-spacing: -.045em;
}
.course-heading h1 em { color: var(--accent); }
.course-heading > p:last-child, .course-hero-content > p, .course-lesson-heading > p:last-of-type { font-size: 1.125rem; color: var(--muted); }
.course-eyebrow { font: 700 .79rem/1.4 var(--body); color: var(--accent); text-transform: uppercase; letter-spacing: .12em; margin-block: 0 .85rem; }
.course-catalog { display: grid; gap: 1.5rem; }
.course-card { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); border-block: 1px solid var(--line); gap: clamp(1rem, 4vw, 3rem); padding-block: 1.75rem; align-items: center; }
.course-card-picture, .course-card-picture img { display: block; width: 100%; }
.course-card-picture img { border-radius: 2.65rem .5rem .5rem .5rem; aspect-ratio: 1.6; object-fit: cover; }
.course-card h2, .course-section h2, .course-syllabus h2, .course-text h2, .course-exercise-section h2 {
  font: 400 clamp(2rem, 3.2vw, 3rem)/1.05 var(--editorial); letter-spacing: -.035em;
}
.course-card h2 a { color: var(--ink); text-decoration-thickness: 1px; }
.course-subtitle { font-size: 1.22rem; line-height: 1.35; font-weight: 650; }
.course-card .button, .course-hero form { margin-top: 1.15rem; }
.course-hero { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .95fr); gap: clamp(1.5rem, 4.5vw, 4.5rem); align-items: center; margin-block: 1rem 2rem; padding: clamp(1.1rem, 3.8vw, 3rem); border-radius: .8rem; color: #fff4e7; background: radial-gradient(ellipse at 90% 40%, #49333a, #201b21 76%); }
.course-hero h1, .course-hero-content > p { color: inherit; }
.course-hero .course-eyebrow { color: #edc19f; font-size: .78rem; }
.course-hero .button { background: #f4bb90; border-color: #f4bb90; color: #2c1e23; }
.course-hero .button:hover { background: #ffcfaa; }
.course-hero a:not(.button) { color: #fff3e6; }
.course-hero :focus-visible { outline-color: #ffd0a7; }
.course-hero-image { width: 100%; height: auto; border-radius: 3.8rem .45rem .45rem .45rem; aspect-ratio: 1.15; object-fit: cover; }
.course-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; border-block: 1px solid var(--line); padding: 1rem 0; margin-bottom: 3rem; }
.course-facts div { display: grid; gap: .2rem; }
.course-facts span, .lesson-meta, .course-source-line { color: var(--muted); font-size: .94rem; }
.course-facts strong { font: 400 clamp(1.3rem, 2vw, 1.8rem)/1.2 var(--editorial); }
.course-detail-grid { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(1.5rem, 6vw, 5rem); }
.course-section { margin-block: 0 2rem; }
.course-section > p, .course-outcomes { font-size: 1.08rem; }
.course-outcomes { padding-left: 1.2rem; }
.course-outcomes li { margin-block: .5rem; }
.course-outcomes li::marker { color: var(--accent); }
.course-phase { color: var(--accent); font-size: .84rem; letter-spacing: .1em; text-transform: uppercase; padding-block: 1.4rem .5rem; }
.syllabus-lesson { display: grid; grid-template-columns: 2.5rem minmax(0, 1fr); gap: .7rem; padding: 1.05rem 0; border-top: 1px solid var(--line); }
.lesson-number { color: var(--accent); font: 400 1.5rem/1.15 var(--editorial); }
.syllabus-lesson h4 { font: 400 1.54rem/1.12 var(--editorial); }
.syllabus-lesson p { margin-block: .3rem; }
.syllabus-topics { margin-block-start: .65rem; }
.syllabus-topics summary { width: fit-content; cursor: pointer; font-weight: 600; }
.syllabus-topics ul { margin-block: .55rem; padding-inline-start: 1.4rem; }
.lesson-meta strong { color: var(--success); }
.course-progress { display: grid; gap: .4rem; max-width: 26rem; margin-block: 1rem; font-weight: 650; }
.course-progress progress { width: 100%; height: .62rem; border: 0; border-radius: .8rem; accent-color: var(--accent); }
.course-progress progress::-webkit-progress-bar { background: #e1d2c9; border-radius: .8rem; }
.course-progress progress::-webkit-progress-value { background: var(--accent); border-radius: .8rem; }
.course-hero progress::-webkit-progress-bar { background: #6a5059; }
.course-hero progress::-webkit-progress-value { background: #f4bb90; }
.course-completed { color: var(--success); font-weight: 700; }
.course-hero .course-completed { color: #b9eaca; }
.course-sources { margin-top: 2.5rem; border-top: 1px solid var(--line); padding-block: 2rem 0; }
.course-sources details { max-width: 55rem; border-bottom: 1px solid var(--line); }
.course-sources details > :last-child { margin-bottom: 1rem; }
.course-lesson-heading { margin-bottom: 2rem; padding-bottom: 1.5rem; border-bottom: 1px solid var(--line); }
.course-lesson-heading h1 { max-width: 22ch; font-size: clamp(2.7rem, 5vw, 4.7rem); }
.lesson-top-actions { display: flex; flex-wrap: wrap; gap: .75rem 1.25rem; margin-top: 1.25rem; }
.course-reading-layout { display: grid; grid-template-columns: minmax(0, 17.5rem) minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 4rem); align-items: start; }
.course-sidebar { position: sticky; top: 1rem; max-height: calc(100dvh - 2rem); overflow-y: auto; padding: .75rem; border: 1px solid var(--line); border-radius: .75rem; background: #fff9f2; }
.course-index summary { font-weight: 700; padding: .4rem; }
.course-index .course-progress { padding-inline: .4rem; margin-block: .4rem 1rem; }
.course-index nav { display: grid; gap: .25rem; }
.course-index nav a { display: grid; grid-template-columns: 1.6rem minmax(0, 1fr); align-items: start; gap: .45rem; line-height: 1.3; padding: .65rem .4rem; border-radius: .3rem; text-decoration: none; min-height: 2.75rem; }
.course-index nav a[aria-current] { background: #efdfd4; color: #4e2d2b; font-weight: 700; }
.course-index nav a small { display: block; color: var(--success); font-weight: 600; }
.course-reading { min-width: 0; max-width: 51rem; }
.course-lesson-photo { margin: 0 0 1.5rem; }
.course-lesson-photo img { display: block; width: 100%; height: auto; max-height: 21rem; object-fit: cover; border-radius: 3rem .45rem .45rem .45rem; }
.course-video-section { margin: 0 0 2rem; padding: 1rem; border: 1px solid var(--line); background: #fff9f2; border-radius: 1.1rem; }
.course-video-heading { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .6rem; margin-bottom: .85rem; }
.course-video-heading h2 { font: 400 clamp(1.75rem, 3vw, 2.45rem)/1 var(--editorial); letter-spacing: -.035em; scroll-margin-top: 1.5rem; }
.course-video-heading span { color: var(--muted); font-weight: 650; font-variant-numeric: tabular-nums; }
.course-video { display: block; width: 100%; aspect-ratio: 16 / 9; background: #201b21; border-radius: .65rem; }
.course-video:focus-visible { outline-offset: 3px; }
.course-learning-objectives { background: #efe4db; border-radius: .75rem; padding: clamp(1rem, 2.7vw, 2rem); margin-bottom: 2rem; }
.course-learning-objectives h2 { font-size: 1.5rem; }
.course-learning-objectives ul { padding-left: 1.2rem; margin: .6rem 0 1rem; }
.course-text { margin-bottom: 2.2rem; }
.leitura-publicada { white-space:pre-line; overflow-wrap:anywhere; }
.course-reading-table { width: 100%; border-collapse: collapse; margin-block: 1.25rem; font-size: .96rem; line-height: 1.5; }
.course-reading-table caption { text-align: start; font-weight: 650; margin-block-end: .5rem; }
.course-reading-table :is(th, td) { text-align: start; vertical-align: top; border-bottom: 1px solid var(--line); padding: .55em clamp(.25rem, 1vw, .8rem); overflow-wrap: anywhere; }
.course-text h2 { font-size: clamp(1.8rem, 3vw, 2.45rem); margin-bottom: .75rem; }
.course-text > p { font: 400 clamp(1.16rem, 1.5vw, 1.37rem)/1.6 var(--editorial); max-width: 66ch; margin-block: 0 1rem; }
.course-diagram { padding: 1.25rem; margin: 1.25rem 0; border-radius: .75rem; background: #eee4db; border: 1px solid #d4c0b2; }
.course-diagram figcaption { font-weight: 700; margin-bottom: .8rem; }
.diagram-center { background: #3b2a33; color: #fff2e5; margin: 0 auto .9rem; padding: .85rem; border-radius: 3rem; text-align: center; max-width: 20rem; font: 400 1.5rem/1.2 var(--editorial); }
.course-diagram ol { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 11rem), 1fr)); gap: .55rem; list-style: none; padding: 0; }
.course-diagram li { padding: .7rem .8rem; background: #fff9f2; border: 1px solid #e2d2c6; border-radius: .4rem; color: #50302d; font-weight: 600; text-align: center; }
.course-source-line { border-top: 1px solid var(--line); padding-top: 1rem; }
.course-exercise-section { margin-top: 3rem; scroll-margin-top: 1.5rem; }
.course-workbook, .course-activity, .course-quiz { display: grid; gap: .75rem; }
.course-activity, .course-quiz { border: 1px solid var(--line); border-radius: .75rem; padding: 1.2rem; background: #fffaf3; }
.course-workbook { margin-top: 1.2rem; }
.course-activity h3 { font-size: 1.3rem; }
.course-activity p { margin: 0; }
.course-activity .field { margin: 0; }
.course-activity textarea { line-height: 1.45; }
.course-quiz legend { padding-inline: .4rem; }
.quiz-option { display: flex; gap: .65rem; align-items: center; min-height: 2.75rem; padding: .7rem; border: 1px solid var(--line); border-radius: .4rem; cursor: pointer; }
.quiz-option:has(input:checked) { border-color: var(--accent); background: #f0e2d9; }
.quiz-option input { flex: 0 0 1.1rem; height: 1.1rem; accent-color: var(--accent); }
.quiz-feedback { padding: .7rem; border-radius: .3rem; background: var(--wash); }
.quiz-feedback.correct { color: var(--success); background: var(--success-bg); }
.course-reopen { margin-block: 1rem; }
.course-pager { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; border-top: 1px solid var(--line); padding-top: 1.5rem; margin-top: 2rem; }
.slide-header { margin-bottom: 1.3rem; }
.slide-header h1 { font: 400 clamp(2.25rem, 4vw, 3.65rem)/1 var(--editorial); }
.deck-tools { position: sticky; top: 0; z-index: 2; display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; padding-block: .6rem; margin-bottom: .4rem; background: var(--paper); }
.deck-tools .slide-count { min-width: 7.5rem; text-align: center; }
.course-slide { background: radial-gradient(ellipse at 90% 40%, #49353e, #252029 72%); color: #fff3e6; min-height: min(44rem, 58vw); aspect-ratio: 16 / 9; display: flex; flex-direction: column; justify-content: space-between; gap: 1rem; border-radius: .7rem; padding: clamp(1.3rem, 5.2vw, 4rem); margin-bottom: .7rem; overflow: hidden; }
.course-slide.slide-cover { background: radial-gradient(ellipse at 20% 80%, #7a4a3b, #3a2b32 75%); }
.slide-brand, .slide-bottom { display: flex; align-items: center; justify-content: space-between; gap: .65rem; color: #f2bd96; font-weight: 650; max-width: none; }
.slide-brand img { flex: none; }
.slide-brand span { margin-left: auto; }
.slide-content { margin: auto 0; }
.slide-content-cover { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, .8fr); gap: 1.4rem; align-items: center; }
.slide-content-cover img { display: block; width: 100%; height: auto; aspect-ratio: 1.1; object-fit: cover; border-radius: 2.6rem .4rem .4rem .4rem; }
.slide-content-cover h2 { font-size: clamp(2rem, 4.2vw, 4.25rem); }
.slide-content-cover ul { font-size: clamp(.98rem, 1.8vw, 1.8rem); }
.slide-content h2 { color: inherit; font: 400 clamp(2.25rem, 5vw, 5.1rem)/.98 var(--editorial); letter-spacing: -.045em; max-width: 24ch; }
.slide-content ul { font-size: clamp(1rem, 2.35vw, 2.3rem); line-height: 1.28; margin-top: 1.3rem; padding-left: 1.25em; }
.slide-content li { margin-block: .65rem; }
.slide-content li::marker { color: #f4bb90; }
.slide-bottom { border-top: 1px solid #a6887e; padding-top: .8rem; font-size: .9rem; }
.course-deck:fullscreen { background: #211b23; color: #fff3e6; padding: 1rem; overflow-y: auto; }
.course-deck:fullscreen .deck-tools { background: #211b23; }
.course-deck:fullscreen .deck-stage { max-width: min(100%, calc((100dvh - 8rem) * 16 / 9)); margin-inline: auto; }
.course-deck:fullscreen .course-slide { min-height: 0; }
.course-deck:fullscreen .deck-hint { color: #f4dbce; }
.deck-tools[hidden], .course-slide[hidden], .deck-hint[hidden], .slide-expand[hidden] { display: none; }
@media (max-width: 799px) {
  .course-card, .course-hero, .course-detail-grid, .course-reading-layout { grid-template-columns: minmax(0, 1fr); }
  .course-hero-image { aspect-ratio: 1.9; grid-row: 1; }
  .course-facts { grid-template-columns: 1fr; gap: .7rem; }
  .course-sidebar { position: static; max-height: none; }
  .course-index nav { max-height: 14rem; overflow-y: auto; }
  .course-slide { aspect-ratio: auto; min-height: 29rem; }
  .slide-content-cover { grid-template-columns: minmax(0, 1fr); }
  .slide-content-cover img { aspect-ratio: 2.1; grid-row: 1; }
  .course-deck:fullscreen .deck-stage { max-width: 100%; }
  .slide-content ul { font-size: clamp(1.1rem, 4.6vw, 1.55rem); }
}
@media (prefers-reduced-motion: no-preference) {
  .course-hero, .course-card { animation: course-in .55s ease-out both; }
  .course-slide:not([hidden]) { animation: course-in .22s ease-out both; }
  @keyframes course-in { from { opacity: .55; transform: translateY(8px); } }
}
@page { size: landscape; margin: 0; }
@media print {
  .page-curso-slides :is(.masthead, .footer, .skip, .slide-header, .deck-tools, .deck-hint, .form-pending) { display: none !important; }
  .page-curso-slides main { width: 100%; padding: 0; }
  .course-slide, .course-slide[hidden] { display: flex !important; break-after: page; break-inside: avoid; height: 100vh; min-height: 0; max-height: none; width: 100%; aspect-ratio: auto; margin: 0; padding: 1.5cm; border-radius: 0; print-color-adjust: exact; animation: none; }
  .course-slide:last-child { break-after: auto; }
  .slide-content h2 { font-size: 34pt; }
  .slide-content ul { font-size: 21pt; }
  .slide-content-cover { grid-template-columns: minmax(0,1.35fr) minmax(0,.8fr); }
  .slide-content-cover img { grid-row: auto; aspect-ratio: 1.1; }
  .slide-content-cover h2 { font-size: 31pt; }
  .slide-content-cover ul { font-size: 18pt; }
}
