/*
 * Paleta inspirada visualmente na identidade dos Institutos Federais.
 * Não foi encontrado manual de marca no repositório; os tokens abaixo são
 * aproximações conservadoras e podem ser ajustados após consulta à referência oficial.
 */
:root {
  color-scheme: light;
  --if-green: #176c3a;
  --if-green-dark: #0d4727;
  --if-green-soft: #e8f2ec;
  --if-red: #b82a32;
  --surface: #ffffff;
  --surface-muted: #f3f5f3;
  --surface-strong: #e4e9e5;
  --text: #17211b;
  --text-muted: #56615a;
  --line: #cad2cc;
  --focus: #8b1e26;
  --shadow-soft: 0 1rem 3rem rgba(13, 71, 39, .09);
  --slide-pad-inline: clamp(1.5rem, 6vw, 6.5rem);
  --slide-pad-block: clamp(2rem, 6vh, 5rem);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

html[data-font-size="0"] { font-size: 87.5%; }
html[data-font-size="1"] { font-size: 100%; }
html[data-font-size="2"] { font-size: 112.5%; }
html[data-font-size="3"] { font-size: 125%; }
html[data-font-size="4"] { font-size: 150%; }
html[data-font-size="5"] { font-size: 200%; }

html.high-contrast {
  color-scheme: dark;
  --if-green: #4cff88;
  --if-green-dark: #ffff00;
  --if-green-soft: #111111;
  --if-red: #ffff00;
  --surface: #000000;
  --surface-muted: #000000;
  --surface-strong: #ffffff;
  --text: #ffffff;
  --text-muted: #ffffff;
  --line: #ffffff;
  --focus: #ffff00;
}

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

[hidden] { display: none !important; }

html {
  scroll-behavior: smooth;
  background: var(--surface-muted);
}

body {
  margin: 0;
  min-width: 18rem;
  min-height: 100vh;
  background: var(--surface-muted);
  color: var(--text);
  line-height: 1.5;
}

button,
input,
textarea,
select { font: inherit; }

button { color: inherit; }

img { max-width: 100%; }

a { color: var(--if-green-dark); text-underline-offset: .18em; }

html.links-emphasized a {
  text-decoration-line: underline;
  text-decoration-thickness: .18em;
  text-underline-offset: .22em;
}

html.high-contrast a {
  color: #ffff00;
  text-decoration-line: underline;
  text-decoration-thickness: .14em;
}

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 4px;
}

.skip-links {
  position: absolute;
  z-index: 100;
  top: 0;
  left: 0;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 0;
  left: 1rem;
  padding: .8rem 1rem;
  transform: translateY(-130%);
  border-radius: 0 0 .4rem .4rem;
  background: var(--surface);
  color: var(--if-green-dark);
  font-weight: 800;
}

.skip-link:focus { transform: translateY(0); }
.skip-link:nth-child(2) { left: 11.5rem; }
.skip-link:nth-child(3) { left: 20rem; }

.site-shell {
  width: min(calc(100% - 2rem), 78rem);
  margin-inline: auto;
}

.accessibility-bar {
  position: relative;
  z-index: 40;
  min-height: 2.75rem;
  background: var(--if-green-dark);
  color: var(--surface);
}

.accessibility-shell {
  position: relative;
  display: flex;
  min-height: 2.75rem;
  align-items: center;
  justify-content: flex-end;
}

.accessibility-menu {
  position: relative;
  width: fit-content;
  margin-left: auto;
}

.accessibility-trigger {
  display: flex;
  min-height: 2.35rem;
  padding: .45rem .65rem;
  align-items: center;
  gap: .55rem;
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 999px;
  font-size: .85rem;
  font-weight: 800;
  cursor: pointer;
  list-style: none;
}

.accessibility-trigger::-webkit-details-marker { display: none; }
.accessibility-trigger::marker { content: ""; }
.accessibility-trigger:hover,
.accessibility-menu[open] .accessibility-trigger { background: rgba(255, 255, 255, .14); }

.accessibility-menu[open] .accessibility-panel {
  animation: dropdown-reveal 180ms ease-out both;
  transform-origin: top right;
}

.accessibility-chevron {
  display: inline-block;
  margin-left: .2rem;
  font-size: 1.15rem;
  transition: transform 160ms ease-out;
}

.accessibility-menu[open] .accessibility-chevron { transform: rotate(180deg); }

.accessibility-panel {
  position: absolute;
  top: calc(100% + .65rem);
  right: 0;
  width: min(28rem, calc(100vw - 2rem));
  max-height: calc(100dvh - 4.5rem);
  padding: 1.15rem;
  overflow-y: auto;
  overscroll-behavior: contain;
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: var(--surface);
  box-shadow: 0 1.2rem 3.5rem rgba(4, 30, 16, .25);
  color: var(--text);
}

.accessibility-title {
  margin: 0 0 1rem;
  color: var(--text);
  font-size: .82rem;
  font-weight: 800;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.accessibility-actions,
.accessibility-group {
  display: grid;
  align-items: center;
  gap: .55rem;
}

.accessibility-actions { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.accessibility-group {
  grid-template-columns: 1fr repeat(3, auto);
  grid-column: 1 / -1;
}

.group-label { margin-right: .2rem; font-size: .8rem; font-weight: 750; }

.accessibility-button {
  min-width: 2.75rem;
  min-height: 2.75rem;
  padding: .55rem .72rem;
  border: 1px solid var(--line);
  border-radius: .65rem;
  background: var(--surface-muted);
  color: var(--text);
  font-size: .8rem;
  font-weight: 750;
  cursor: pointer;
}

.accessibility-button:hover,
.accessibility-button[aria-pressed="true"] { border-color: var(--if-green-dark); background: var(--if-green-dark); color: #ffffff; }
.accessibility-button:disabled { opacity: .55; cursor: not-allowed; }
.accessibility-button--reset { grid-column: 1 / -1; border-style: dashed; }

.accessibility-hint {
  margin: 1rem 0 0;
  padding-top: .85rem;
  border-top: 1px solid var(--line);
  color: var(--text-muted);
  font-size: .75rem;
  line-height: 1.5;
}

.site-header { border-bottom: 1px solid var(--line); background: rgba(255, 255, 255, .98); }

.header-main {
  display: flex;
  min-height: 6rem;
  padding-block: 1rem;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.site-brand {
  display: inline-flex;
  align-items: center;
  gap: .9rem;
  color: var(--text);
  text-decoration: none;
}

.site-brand img { width: 3.25rem; height: 3.25rem; object-fit: contain; }
.site-brand span { display: flex; flex-direction: column; line-height: 1.2; }
.site-brand strong { color: var(--if-green-dark); font-size: 1.35rem; }
.site-brand small { color: var(--text-muted); font-size: .83rem; }

.presentation-button {
  display: inline-flex;
  min-height: 3rem;
  padding: .7rem 1rem;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  border: 2px solid var(--if-green);
  border-radius: .7rem;
  background: var(--if-green);
  color: #ffffff;
  font-weight: 800;
  cursor: pointer;
}

.presentation-button:hover { background: var(--if-green-dark); border-color: var(--if-green-dark); }
.presentation-button--hero { margin-top: 1.25rem; }

.site-nav { border-top: 1px solid var(--line); background: var(--surface-muted); }
.site-nav ul { display: flex; margin: 0; padding: 0; flex-wrap: wrap; list-style: none; }
.site-nav a { display: flex; min-height: 3rem; padding: .65rem .8rem; align-items: center; color: var(--text); font-size: .88rem; font-weight: 700; text-decoration: none; white-space: nowrap; }
.site-nav a { position: relative; }
.site-nav a::after {
  position: absolute;
  right: .8rem;
  bottom: .35rem;
  left: .8rem;
  height: 2px;
  border-radius: 999px;
  background: var(--if-green);
  content: "";
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 180ms ease-out;
}
.site-nav a:hover { background: var(--if-green-soft); color: var(--if-green-dark); }
.site-nav a:hover::after,
.site-nav a:focus-visible::after,
.site-nav a[aria-current="location"]::after { transform: scaleX(1); }

.presentation { min-height: 100vh; }

.slide {
  position: relative;
  display: flex;
  min-height: 100vh;
  min-height: 100dvh;
  padding: var(--slide-pad-block) var(--slide-pad-inline) clamp(6.5rem, 13vh, 8rem);
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  background: var(--surface);
}

.slide::before {
  position: absolute;
  top: 0;
  left: var(--slide-pad-inline);
  width: clamp(4rem, 9vw, 8rem);
  height: .45rem;
  background: var(--if-green);
  content: "";
}

.slide[hidden] { display: none; }

.slide-header {
  width: min(100%, 78rem);
  margin: 0 auto clamp(2rem, 5vh, 4rem);
}

.slide-header--result {
  display: flex;
  margin-bottom: clamp(1.25rem, 3vh, 2rem);
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
}

.eyebrow,
.panel-label,
.card-kicker {
  margin: 0 0 .65rem;
  color: var(--if-green);
  font-size: clamp(.72rem, 1.2vw, .85rem);
  font-weight: 800;
  letter-spacing: .13em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p { margin-top: 0; }

h1 {
  max-width: 11ch;
  margin-bottom: 1.6rem;
  font-size: clamp(2.7rem, 6.4vw, 6.8rem);
  font-weight: 760;
  letter-spacing: -.065em;
  line-height: .91;
}

h1 span { color: var(--if-green); }

h2 {
  margin-bottom: 0;
  font-size: clamp(2.25rem, 5vw, 5.5rem);
  font-weight: 740;
  letter-spacing: -.055em;
  line-height: .96;
}

h3 { line-height: 1.15; }

.lead {
  max-width: 38rem;
  margin-bottom: 1.4rem;
  color: var(--text-muted);
  font-size: clamp(1.1rem, 2vw, 1.6rem);
  line-height: 1.45;
}

.cover-grid,
.context-layout,
.tool-layout,
.result-layout,
.closing-layout {
  width: min(100%, 78rem);
  margin-inline: auto;
}

.slide--cover {
  background:
    linear-gradient(90deg, transparent 0 72%, var(--surface-muted) 72% 100%),
    var(--surface);
}

.slide--cover::before { width: clamp(5rem, 12vw, 11rem); }

.cover-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(16rem, .7fr);
  align-items: center;
  gap: clamp(3rem, 8vw, 8rem);
}

.cover-copy .eyebrow { margin-bottom: clamp(1.5rem, 4vh, 3rem); }

.presentation-date {
  display: inline-block;
  margin: 0;
  padding-top: .8rem;
  border-top: 2px solid var(--if-red);
  font-weight: 750;
}

.institution-card {
  position: relative;
  padding: clamp(1.5rem, 3vw, 2.5rem);
  border-top: .45rem solid var(--if-green);
  background: var(--surface);
}

.institution-card::after {
  position: absolute;
  right: 1.5rem;
  bottom: 1.5rem;
  width: .7rem;
  height: .7rem;
  border-radius: 50%;
  background: var(--if-red);
  content: "";
}

.institution-logo {
  display: block;
  width: min(100%, 13rem);
  max-height: 12rem;
  margin-bottom: 1.75rem;
  object-fit: contain;
  object-position: left center;
}

.institution-card p { max-width: 23ch; line-height: 1.45; }
.institution-card span { display: block; margin-top: .55rem; color: var(--text-muted); font-size: .9rem; }

.cover-accent {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 28%;
  height: 1rem;
  background: var(--if-green-dark);
}

.context-layout {
  display: grid;
  grid-template-columns: minmax(18rem, .9fr) minmax(30rem, 1.25fr);
  align-items: center;
  gap: clamp(3rem, 7vw, 8rem);
}

.statement {
  margin-bottom: 0;
  font-size: clamp(1.45rem, 2.7vw, 2.55rem);
  letter-spacing: -.025em;
  line-height: 1.35;
}

.statement strong { color: var(--if-green-dark); }
.statement--compact { font-size: clamp(1.4rem, 2.4vw, 2.25rem); }

.concept-grid {
  display: grid;
  margin: 0;
  padding: 0;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  list-style: none;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.concept-grid li {
  display: grid;
  min-height: 10.5rem;
  padding: clamp(1rem, 2.5vw, 2rem);
  grid-template-columns: auto 1fr;
  align-content: start;
  gap: .75rem 1rem;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.concept-grid li > span { color: var(--if-red); font-size: .75rem; font-weight: 850; }
.concept-grid strong { font-size: clamp(1.15rem, 2vw, 1.5rem); }
.concept-grid small { grid-column: 2; color: var(--text-muted); font-size: .95rem; line-height: 1.45; }

.objective-quote {
  width: min(100%, 68rem);
  margin: 0 auto clamp(2rem, 5vh, 4rem);
  padding: 0 0 0 clamp(1.25rem, 3vw, 2.5rem);
  border-left: .35rem solid var(--if-green);
  font-size: clamp(1.45rem, 2.8vw, 2.7rem);
  font-weight: 580;
  letter-spacing: -.025em;
  line-height: 1.32;
}

.metrics {
  display: grid;
  width: min(100%, 68rem);
  margin-inline: auto;
  grid-template-columns: repeat(3, 1fr);
  border-block: 1px solid var(--line);
}

.metrics div {
  display: flex;
  min-height: 7rem;
  padding: 1rem clamp(1rem, 3vw, 2.5rem);
  align-items: center;
  gap: 1rem;
  border-right: 1px solid var(--line);
}

.metrics div:last-child { border-right: 0; }
.metrics strong { color: var(--if-green); font-size: clamp(2.5rem, 5vw, 4.2rem); line-height: 1; }
.metrics span { max-width: 10rem; font-weight: 750; line-height: 1.25; }

.tool-layout {
  display: grid;
  grid-template-columns: minmax(18rem, 1fr) minmax(25rem, 1fr);
  align-items: start;
  gap: clamp(3rem, 7vw, 8rem);
}

.note {
  margin: 2rem 0 0;
  padding: 1rem 1.2rem;
  border-left: 3px solid var(--if-green);
  background: var(--if-green-soft);
  color: var(--if-green-dark);
  line-height: 1.5;
}

.category-panel { padding: clamp(1.5rem, 4vw, 3rem); background: var(--surface-muted); }

.tag-list {
  display: flex;
  margin: 1.5rem 0 2rem;
  padding: 0;
  flex-wrap: wrap;
  gap: .75rem;
  list-style: none;
}

.tag-list li {
  padding: .75rem 1rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  font-weight: 700;
}

.disclaimer { margin: 0; color: var(--text-muted); font-size: .9rem; line-height: 1.5; }
.disclaimer--wide { width: min(100%, 78rem); margin: 2rem auto 0; padding-top: 1rem; border-top: 1px solid var(--line); }

.process {
  display: grid;
  width: min(100%, 78rem);
  margin: 0 auto clamp(2rem, 5vh, 3.5rem);
  padding: 0;
  grid-template-columns: repeat(5, 1fr);
  list-style: none;
}

.process li {
  position: relative;
  display: flex;
  min-height: 11rem;
  padding: clamp(1rem, 2vw, 1.6rem);
  flex-direction: column;
  justify-content: end;
  border: 1px solid var(--line);
  border-right: 0;
}

.process li:last-child { border-right: 1px solid var(--line); }
.process li::after { position: absolute; z-index: 1; top: 50%; right: -.65rem; width: 1.2rem; height: 1.2rem; border-top: 2px solid var(--if-green); border-right: 2px solid var(--if-green); background: var(--surface); content: ""; transform: rotate(45deg); }
.process li:last-child::after { display: none; }
.process li > span { margin-bottom: auto; color: var(--if-green); font-size: 1.8rem; font-weight: 800; }
.process strong { font-size: clamp(1rem, 1.7vw, 1.35rem); }
.process small { margin-top: .25rem; color: var(--text-muted); font-size: .9rem; }

.method-note {
  width: min(100%, 65rem);
  margin: 0 auto;
  color: var(--text-muted);
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  line-height: 1.6;
  text-align: center;
}

.app-grid,
.learning-grid {
  display: grid;
  width: min(100%, 78rem);
  margin-inline: auto;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1rem, 2.5vw, 2rem);
}

.app-card {
  display: grid;
  min-height: 22rem;
  padding: clamp(1.25rem, 3vw, 2rem);
  grid-template-columns: auto 1fr;
  align-content: start;
  gap: 1.25rem;
  border: 1px solid var(--line);
  border-top: .35rem solid var(--if-green);
  background: var(--surface);
}

.app-icon {
  display: grid;
  width: 3.25rem;
  aspect-ratio: 1;
  place-items: center;
  border-radius: .65rem;
  background: var(--if-green-soft);
  color: var(--if-green-dark);
  font-weight: 850;
}

.app-card h3 { margin: 0; font-size: clamp(1.2rem, 2vw, 1.55rem); }
.app-card dl { display: grid; margin: .5rem 0 0; grid-column: 1 / -1; gap: 1rem; }
.app-card dl div { padding-top: .8rem; border-top: 1px solid var(--line); }
.app-card dt { color: var(--text-muted); font-size: .75rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.app-card dd { margin: .35rem 0 0; font-weight: 650; }

.pending-badge,
.result-badge {
  display: inline-flex;
  width: fit-content;
  min-height: 2rem;
  margin-top: auto;
  padding: .45rem .7rem;
  align-items: center;
  grid-column: 1 / -1;
  border-radius: 999px;
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.pending-badge {
  border: 1px dashed #768178;
  background: var(--surface-muted);
  color: #465149;
}

.result-badge {
  border: 1px solid #73a787;
  background: var(--if-green-soft);
  color: var(--if-green-dark);
}

.slide-header--result .pending-badge,
.slide-header--result .result-badge { margin: 0; grid-column: auto; }

.result-layout {
  display: grid;
  grid-template-columns: minmax(29rem, 1.35fr) minmax(17rem, .65fr);
  align-items: stretch;
  gap: clamp(1.25rem, 4vw, 3.5rem);
}

.result-fields {
  display: grid;
  margin: 0;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .8rem;
}

.result-fields > div { padding: .9rem 1rem; border-left: 3px solid var(--line); background: var(--surface-muted); }
.result-fields > div:nth-child(n+3) { grid-column: 1 / -1; }
.result-fields dt { margin-bottom: .35rem; color: var(--if-green-dark); font-size: .73rem; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.result-fields dd { margin: 0; line-height: 1.4; }
.result-fields code { font-size: .88em; overflow-wrap: anywhere; }
.pending-field { color: var(--text-muted); font-style: italic; }

.evidence-figure {
  display: flex;
  min-height: 24rem;
  margin: 0;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--surface-muted);
}

.evidence-figure img {
  display: block;
  width: 100%;
  min-height: 0;
  flex: 1;
  background: #091014;
  object-fit: contain;
}

.evidence-figure figcaption {
  padding: .65rem .8rem;
  color: var(--text-muted);
  font-size: .78rem;
  line-height: 1.4;
}

.result-note {
  width: min(100%, 78rem);
  margin: 1rem auto 0;
  padding: .7rem .9rem;
  border-left: 3px solid var(--if-green);
  background: var(--if-green-soft);
  color: var(--if-green-dark);
  font-size: .82rem;
  line-height: 1.45;
}

.audit-slide {
  justify-content: flex-start;
}

.audit-overview,
.audit-gallery,
.gallery-intro,
.audit-disclaimer {
  width: min(100%, 78rem);
  margin-inline: auto;
}

.audit-overview {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(18rem, .9fr);
  gap: 1rem;
}

.audit-summary,
.category-breakdown,
.priority-panel {
  padding: clamp(1.15rem, 2.5vw, 1.8rem);
  border: 1px solid var(--line);
  border-radius: .85rem;
  background: var(--surface);
}

.audit-summary {
  display: flex;
  grid-row: span 2;
  flex-direction: column;
}

.audit-intro {
  max-width: 52ch;
  margin-bottom: 1.25rem;
  color: var(--text-muted);
  font-size: clamp(1rem, 1.6vw, 1.15rem);
}

.audit-metrics {
  display: grid;
  margin: 0;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .65rem;
}

.audit-metrics div {
  min-width: 0;
  padding: 1rem;
  border-radius: .65rem;
  background: var(--surface-muted);
}

.audit-metrics dt {
  color: var(--text-muted);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.audit-metrics dd {
  margin: .25rem 0 0;
  color: var(--if-green-dark);
  font-size: clamp(1.55rem, 3vw, 2.35rem);
  font-weight: 850;
  line-height: 1;
  overflow-wrap: anywhere;
}

.audit-metrics div:last-child dd { font-size: clamp(1.05rem, 2.1vw, 1.4rem); }

.contrast-callout {
  display: flex;
  margin-top: auto;
  padding-top: 1.25rem;
  align-items: flex-start;
  gap: .9rem;
}

.contrast-swatch {
  flex: 0 0 2.6rem;
  aspect-ratio: 1;
  border: .45rem solid #dc2626;
  border-radius: 50%;
  background: #1a1d23;
  box-shadow: 0 0 0 1px var(--line);
}

.contrast-callout p { margin: .2rem 0 0; color: var(--text-muted); font-size: .82rem; }

.scanner-caution {
  display: flex;
  margin-top: auto;
  padding-top: 1.25rem;
  align-items: flex-start;
  gap: .9rem;
}

.scanner-caution > span {
  display: grid;
  flex: 0 0 2.6rem;
  aspect-ratio: 1;
  place-items: center;
  border: 2px solid #815500;
  border-radius: 50%;
  color: #815500;
  font-size: 1.25rem;
  font-weight: 900;
}

.scanner-caution p { margin: .2rem 0 0; color: var(--text-muted); font-size: .82rem; }

.category-breakdown ul,
.priority-panel ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

.category-breakdown li {
  display: grid;
  margin-top: .85rem;
  gap: .35rem;
  color: var(--text-muted);
  font-size: .84rem;
}

.youtube-categories ul,
.compact-categories ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 1rem;
}

.youtube-categories li,
.compact-categories li { margin-top: .65rem; }

.category-breakdown li > span:first-child {
  display: flex;
  justify-content: space-between;
  gap: .75rem;
}

.category-breakdown strong { color: var(--if-green-dark); }

.category-bar {
  height: .35rem;
  overflow: hidden;
  border-radius: 999px;
  background: var(--surface-strong);
}

.category-bar::before {
  display: block;
  width: var(--value);
  height: 100%;
  border-radius: inherit;
  background: var(--if-green);
  content: "";
}

.priority-panel li {
  display: grid;
  padding: .7rem 0;
  grid-template-columns: 4.6rem 1fr;
  align-items: start;
  gap: .8rem;
  border-top: 1px solid var(--line);
}

.priority-panel li:first-child { border-top: 0; }
.priority-panel p { margin: 0; color: var(--text-muted); font-size: .78rem; line-height: 1.45; }
.priority-panel p strong { color: var(--text); }

.priority {
  display: inline-flex;
  min-height: 1.75rem;
  padding: .3rem .55rem;
  align-items: center;
  justify-content: center;
  border: 1px solid currentColor;
  border-radius: 999px;
  font-size: .68rem;
  font-weight: 850;
  text-transform: uppercase;
}

.priority--high { color: #9f1d26; }
.priority--medium { color: #815500; }
.priority--review { color: var(--if-green-dark); }

.audit-disclaimer {
  margin-top: 1rem;
  padding: .9rem 1rem;
  border-left: 3px solid var(--if-green);
  border-radius: 0 .55rem .55rem 0;
  background: var(--if-green-soft);
  color: var(--if-green-dark);
  font-size: .82rem;
  line-height: 1.5;
}

.gallery-intro {
  margin-top: -1rem;
  margin-bottom: 1.25rem;
  color: var(--text-muted);
}

.audit-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: start;
  gap: 1rem;
}

.screen-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: .85rem;
  background: var(--surface);
  box-shadow: 0 .5rem 1.5rem rgba(13, 71, 39, .06);
}

.screen-card--clear { border-top: .3rem solid var(--if-green); }
.screen-card--review { border-top: .3rem solid #9a6500; }
.screen-card figure { margin: 0; }

.screen-card img {
  display: block;
  width: 100%;
  height: clamp(16rem, 30vw, 23rem);
  background: #171a21;
  object-fit: contain;
}

.screen-card figcaption {
  display: grid;
  padding: .9rem 1rem;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: .25rem .75rem;
  border-top: 1px solid var(--line);
}

.screen-card figcaption > span:first-child {
  color: var(--if-green);
  font-size: .67rem;
  font-weight: 850;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.screen-card figcaption strong { grid-row: 2; line-height: 1.25; }

.screen-status {
  display: inline-flex;
  min-height: 1.75rem;
  padding: .3rem .55rem;
  align-items: center;
  grid-row: 1 / span 2;
  grid-column: 2;
  border: 1px solid currentColor;
  border-radius: 999px;
  font-size: .65rem;
  font-weight: 800;
  line-height: 1.15;
  text-align: center;
}

.screen-status--issue { color: #9f1d26; }
.screen-status--clear { color: var(--if-green-dark); }
.screen-status--review { color: #815500; }

.screen-card details { border-top: 1px solid var(--line); }

.screen-card summary {
  display: flex;
  min-height: 3rem;
  padding: .7rem 1rem;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  color: var(--if-green-dark);
  font-size: .8rem;
  font-weight: 800;
  cursor: pointer;
  list-style: none;
}

.screen-card summary::-webkit-details-marker { display: none; }
.screen-card summary::marker { content: ""; }
.screen-card summary:hover { background: var(--if-green-soft); }
.screen-card summary span { font-size: 1.25rem; transition: transform 160ms ease-out; }
.screen-card details[open] summary span { transform: rotate(45deg); }

.screen-findings {
  padding: 0 1rem 1rem;
  color: var(--text-muted);
  font-size: .78rem;
  line-height: 1.55;
}

.screen-findings ul { margin: 0; padding-left: 1.15rem; }
.screen-findings li + li { margin-top: .55rem; }
.screen-findings p { margin: .7rem 0 0; }
.screen-findings code { overflow-wrap: anywhere; color: var(--text); }

.finding-showcase {
  display: grid;
  width: min(100%, 78rem);
  margin-inline: auto;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
  gap: clamp(.85rem, 2vw, 1.25rem);
}

.finding-card {
  display: grid;
  min-width: 0;
  overflow: hidden;
  grid-template-rows: auto 1fr;
  border: 1px solid var(--line);
  border-top: .3rem solid var(--if-green);
  border-radius: .85rem;
  background: var(--surface);
  box-shadow: 0 .5rem 1.5rem rgba(13, 71, 39, .06);
}

.finding-card--review { border-top-color: #9a6500; }
.finding-card figure { margin: 0; background: #151a1d; }

.finding-card img {
  display: block;
  width: 100%;
  height: clamp(10rem, 25vh, 15rem);
  object-fit: contain;
}

.finding-card figcaption {
  padding: .55rem .8rem;
  border-top: 1px solid var(--line);
  background: var(--surface-muted);
  color: var(--if-green-dark);
  font-size: .7rem;
  font-weight: 850;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.finding-body { padding: 1rem; }
.finding-body h3 { margin: 0 0 .9rem; font-size: clamp(1rem, 1.7vw, 1.3rem); }
.finding-body dl { display: grid; margin: 0; gap: .65rem; }
.finding-body dl div { padding-top: .55rem; border-top: 1px solid var(--line); }
.finding-body dt { color: var(--if-green-dark); font-size: .66rem; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.finding-body dd { margin: .2rem 0 0; color: var(--text-muted); font-size: .78rem; line-height: 1.45; }
.finding-body code { overflow-wrap: anywhere; color: var(--text); }

.additional-findings {
  width: min(100%, 78rem);
  margin: 1rem auto 0;
  padding: .75rem .9rem;
  border-left: 3px solid var(--if-green);
  border-radius: 0 .55rem .55rem 0;
  background: var(--surface-muted);
  color: var(--text-muted);
  font-size: .78rem;
  line-height: 1.5;
}

.additional-findings strong { color: var(--text); }

.evidence-placeholder {
  display: flex;
  min-height: 24rem;
  padding: 1.5rem;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  border: 2px dashed #8c968e;
  background:
    linear-gradient(45deg, transparent 48%, rgba(23, 108, 58, .06) 48% 52%, transparent 52%),
    var(--surface-muted);
  background-size: 2rem 2rem;
  text-align: center;
}

.evidence-placeholder span { color: var(--if-green); font-size: .74rem; font-weight: 850; letter-spacing: .14em; text-transform: uppercase; }
.evidence-placeholder strong { margin: .8rem 0 .4rem; font-size: clamp(1.25rem, 2.4vw, 1.7rem); }
.evidence-placeholder small { color: var(--text-muted); }
.evidence-placeholder img { display: block; width: 100%; height: 100%; object-fit: contain; }

.learning-grid article {
  min-height: 18rem;
  padding: clamp(1.25rem, 3vw, 2.2rem);
  border-top: .35rem solid var(--if-green);
  background: var(--surface-muted);
}

.learning-grid article > span { color: var(--if-red); font-size: .8rem; font-weight: 850; }
.learning-grid h3 { margin: 2.4rem 0 1rem; font-size: clamp(1.25rem, 2.3vw, 1.8rem); }
.learning-grid p { margin: 0; color: var(--text-muted); font-size: clamp(.95rem, 1.5vw, 1.08rem); line-height: 1.6; }

.slide--closing { background: var(--if-green-dark); color: var(--surface); }
.slide--closing::before { background: var(--if-red); }
.slide--closing .eyebrow { color: #a8d7bb; }
.slide--closing .lead { color: #d9e9df; }

.closing-layout {
  display: grid;
  grid-template-columns: minmax(18rem, 1.1fr) minmax(25rem, .9fr);
  align-items: center;
  gap: clamp(3rem, 8vw, 8rem);
}

.closing-layout h2 { margin-bottom: 1.5rem; font-size: clamp(4rem, 9vw, 9rem); }
.team-panel { padding: clamp(1.5rem, 4vw, 3rem); background: var(--surface); color: var(--text); }
.team-panel ul { margin: 1.5rem 0 0; padding: 0; list-style: none; }
.team-panel li { display: flex; min-height: 3.7rem; padding: .7rem 0; align-items: center; justify-content: space-between; gap: 1rem; border-top: 1px solid var(--line); }
.team-panel li span { color: var(--text-muted); font-size: .82rem; }

.closing-footer {
  position: absolute;
  right: var(--slide-pad-inline);
  bottom: clamp(6rem, 11vh, 7.5rem);
  left: var(--slide-pad-inline);
  display: flex;
  width: min(calc(100% - (2 * var(--slide-pad-inline))), 78rem);
  margin-inline: auto;
  padding-top: 1rem;
  align-items: center;
  gap: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, .28);
  color: #d9e9df;
  font-size: .8rem;
}

.closing-footer strong { margin-right: auto; color: var(--surface); font-size: 1.1rem; }

.slide-controls {
  display: none;
  position: fixed;
  z-index: 20;
  bottom: 1.4rem;
  left: 50%;
  min-height: 3.3rem;
  padding: .35rem;
  align-items: center;
  gap: .4rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 .3rem 1.2rem rgba(13, 71, 39, .1);
  transform: translateX(-50%);
}

.js body.presentation-mode .slide-controls { display: flex; }

.control-button {
  display: inline-flex;
  min-width: 3rem;
  min-height: 2.6rem;
  padding: .55rem .9rem;
  align-items: center;
  justify-content: center;
  gap: .45rem;
  border: 0;
  border-radius: 999px;
  background: transparent;
  font-weight: 750;
  cursor: pointer;
}

.control-button:hover:not(:disabled) { background: var(--if-green-soft); color: var(--if-green-dark); }
.control-button:disabled { color: #8f9891; cursor: not-allowed; }

.slide-counter { min-width: 4.1rem; margin: 0; color: var(--text-muted); font-variant-numeric: tabular-nums; text-align: center; }
.slide-counter #current-slide { color: var(--if-green-dark); font-weight: 850; }

.progress-track {
  display: none;
  position: fixed;
  z-index: 30;
  right: 0;
  bottom: 0;
  left: 0;
  height: .3rem;
  background: var(--surface-strong);
}

.js body.presentation-mode .progress-track { display: block; }
.progress-track span { display: block; width: calc(100% / 11); height: 100%; background: var(--if-green); transform-origin: left center; transition: width 180ms ease-out; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* A página convencional é a experiência padrão; os estilos de tela cheia só
 * prevalecem enquanto o visitante ativa explicitamente o modo apresentação. */
body:not(.presentation-mode) .presentation {
  display: grid;
  width: min(calc(100% - 2rem), 82rem);
  min-height: 0;
  margin-inline: auto;
  gap: 1.5rem;
  padding-block: 1.5rem 4rem;
}

body:not(.presentation-mode) .slide {
  display: block;
  height: auto;
  min-height: 0;
  padding: clamp(2rem, 5vw, 4rem);
  overflow: visible;
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.js body:not(.presentation-mode) .slide.reveal-on-scroll {
  opacity: 0;
  transform: translateY(1.5rem);
  transition: opacity 480ms ease-out, transform 480ms cubic-bezier(.2, .75, .25, 1);
}

.js body:not(.presentation-mode) .slide.reveal-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

body:not(.presentation-mode) .slide::before {
  left: clamp(2rem, 5vw, 4rem);
}

body:not(.presentation-mode) .slide-header { margin-bottom: clamp(1.5rem, 4vw, 3rem); }
body:not(.presentation-mode) h1 { font-size: clamp(2.8rem, 7vw, 5.8rem); }
body:not(.presentation-mode) h2 { font-size: clamp(2rem, 5vw, 4rem); }
body:not(.presentation-mode) .slide--cover { background: var(--surface); }
body:not(.presentation-mode) .cover-accent { width: 35%; }
body:not(.presentation-mode) .closing-footer {
  position: static;
  width: 100%;
  margin-top: 3rem;
}

body:not(.presentation-mode) .context-layout,
body:not(.presentation-mode) .cover-grid,
body:not(.presentation-mode) .tool-layout,
body:not(.presentation-mode) .result-layout,
body:not(.presentation-mode) .closing-layout {
  grid-template-columns: repeat(2, minmax(min(100%, 22rem), 1fr));
}

body:not(.presentation-mode) .app-grid,
body:not(.presentation-mode) .learning-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr));
}

body:not(.presentation-mode) .concept-grid,
body:not(.presentation-mode) .process {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr));
}

body:not(.presentation-mode) .process li { border: 1px solid var(--line); }
body:not(.presentation-mode) .process li::after { display: none; }

body:not(.presentation-mode) .app-card,
body:not(.presentation-mode) .learning-grid article { min-height: 0; }

body:not(.presentation-mode) .slide--closing {
  background: var(--if-green-dark);
  color: #ffffff;
}
body:not(.presentation-mode) .slide--closing .team-panel { color: var(--text); }

html.high-contrast body:not(.presentation-mode) .slide--closing { background: #000000; }

html.high-contrast .accessibility-bar,
html.high-contrast .slide--closing { background: #000000; color: #ffffff; }
html.high-contrast .accessibility-button:hover,
html.high-contrast .accessibility-button[aria-pressed="true"] { background: #ffffff; color: #000000; }
html.high-contrast .presentation-button { border-color: #ffff00; background: #ffff00; color: #000000; }
html.high-contrast .presentation-button:hover { border-color: #ffffff; background: #ffffff; }
html.high-contrast .pending-badge { border-color: #ffffff; color: #ffffff; }
html.high-contrast .priority,
html.high-contrast .screen-status { color: #ffff00; }
html.high-contrast .scanner-caution > span { border-color: #ffff00; color: #ffff00; }
html.high-contrast .screen-card--review,
html.high-contrast .screen-card--clear { border-top-color: #ffff00; }

html.reduce-motion,
html.reduce-motion *,
html.reduce-motion *::before,
html.reduce-motion *::after {
  scroll-behavior: auto !important;
  transition: none !important;
  animation: none !important;
}

html.reduce-motion body:not(.presentation-mode) .slide.reveal-on-scroll {
  opacity: 1;
  transform: none;
}

html.reduce-motion .presentation-button:hover,
html.reduce-motion .accessibility-button:hover,
html.reduce-motion .control-button:hover,
html.reduce-motion body:not(.presentation-mode) .app-card:hover,
html.reduce-motion body:not(.presentation-mode) .finding-card:hover,
html.reduce-motion body:not(.presentation-mode) .learning-grid article:hover { transform: none; }

@media (max-width: 800px) {
  .header-main { min-height: 4.5rem; padding-block: .7rem; align-items: center; flex-direction: row; gap: .75rem; }
  .site-brand { min-width: 0; gap: .6rem; }
  .site-brand img { width: 2.75rem; height: 2.75rem; }
  .site-brand small { display: none; }
  .header-main .presentation-button { width: auto; min-height: 2.75rem; padding: .55rem .75rem; font-size: .8rem; }
  .site-nav ul { flex-wrap: nowrap; overflow-x: auto; }
  .site-nav li { flex: 0 0 auto; }

  body:not(.presentation-mode) .presentation { width: min(calc(100% - 1rem), 82rem); gap: .75rem; padding-top: .75rem; }
  body:not(.presentation-mode) .slide { padding: 2.5rem clamp(1rem, 5vw, 2rem); border-radius: .25rem; }
  body:not(.presentation-mode) .cover-grid,
  body:not(.presentation-mode) .context-layout,
  body:not(.presentation-mode) .tool-layout,
  body:not(.presentation-mode) .result-layout,
  body:not(.presentation-mode) .closing-layout { grid-template-columns: 1fr; }
}

@media (max-width: 430px) {
  .skip-link:nth-child(n) { left: .5rem; }
  .accessibility-panel { position: fixed; top: 3.25rem; right: .5rem; left: .5rem; width: auto; max-height: calc(100dvh - 3.75rem); padding: 1rem; }
  .accessibility-actions { grid-template-columns: 1fr; }
  .accessibility-group { grid-template-columns: repeat(3, 1fr); }
  .group-label { grid-column: 1 / -1; }
  .accessibility-button--reset { grid-column: auto; }
}

html[data-font-size="4"] body.presentation-mode .slide,
html[data-font-size="5"] body.presentation-mode .slide {
  display: block;
  height: 100vh;
  height: 100dvh;
  overflow-x: hidden;
  overflow-y: auto;
}

html[data-font-size="4"] body.presentation-mode .cover-grid,
html[data-font-size="4"] body.presentation-mode .context-layout,
html[data-font-size="4"] body.presentation-mode .tool-layout,
html[data-font-size="4"] body.presentation-mode .result-layout,
html[data-font-size="4"] body.presentation-mode .closing-layout,
html[data-font-size="4"] body.presentation-mode .app-grid,
html[data-font-size="4"] body.presentation-mode .learning-grid,
html[data-font-size="4"] body.presentation-mode .concept-grid,
html[data-font-size="4"] body.presentation-mode .process,
html[data-font-size="4"] body.presentation-mode .metrics,
html[data-font-size="5"] body.presentation-mode .cover-grid,
html[data-font-size="5"] body.presentation-mode .context-layout,
html[data-font-size="5"] body.presentation-mode .tool-layout,
html[data-font-size="5"] body.presentation-mode .result-layout,
html[data-font-size="5"] body.presentation-mode .closing-layout,
html[data-font-size="5"] body.presentation-mode .app-grid,
html[data-font-size="5"] body.presentation-mode .learning-grid,
html[data-font-size="5"] body.presentation-mode .concept-grid,
html[data-font-size="5"] body.presentation-mode .process,
html[data-font-size="5"] body.presentation-mode .metrics,
html[data-font-size="4"] body:not(.presentation-mode) .cover-grid,
html[data-font-size="4"] body:not(.presentation-mode) .context-layout,
html[data-font-size="4"] body:not(.presentation-mode) .tool-layout,
html[data-font-size="4"] body:not(.presentation-mode) .result-layout,
html[data-font-size="4"] body:not(.presentation-mode) .closing-layout,
html[data-font-size="5"] body:not(.presentation-mode) .cover-grid,
html[data-font-size="5"] body:not(.presentation-mode) .context-layout,
html[data-font-size="5"] body:not(.presentation-mode) .tool-layout,
html[data-font-size="5"] body:not(.presentation-mode) .result-layout,
html[data-font-size="5"] body:not(.presentation-mode) .closing-layout { grid-template-columns: 1fr; }

html[data-font-size="4"] body.presentation-mode .result-fields,
html[data-font-size="5"] body.presentation-mode .result-fields { grid-template-columns: 1fr; }

html[data-font-size="4"] body.presentation-mode .result-fields > div,
html[data-font-size="5"] body.presentation-mode .result-fields > div { grid-column: auto; }

html[data-font-size="4"] body.presentation-mode .process li,
html[data-font-size="5"] body.presentation-mode .process li { border: 1px solid var(--line); }

html[data-font-size="4"] body.presentation-mode .process li::after,
html[data-font-size="5"] body.presentation-mode .process li::after { display: none; }

html[data-font-size="4"] body.presentation-mode .closing-footer,
html[data-font-size="5"] body.presentation-mode .closing-footer {
  position: static;
  width: 100%;
  margin-top: 2rem;
  flex-wrap: wrap;
}

@media (max-width: 800px) {
  :root { --slide-pad-inline: clamp(1rem, 5vw, 2rem); --slide-pad-block: 2.5rem; }

  .js body.presentation-mode { overflow: hidden; }
  .slide { display: block; height: 100vh; height: 100dvh; padding-bottom: 6.5rem; overflow-x: hidden; overflow-y: auto; }
  .slide-header { margin-bottom: 2rem; }
  .slide-header--result { align-items: start; }
  .slide-header--result .pending-badge,
  .slide-header--result .result-badge { flex-shrink: 0; }

  .slide--cover { background: var(--surface); }
  .cover-grid,
  .context-layout,
  .tool-layout,
  .result-layout,
  .closing-layout { grid-template-columns: 1fr; gap: 2rem; }
  .cover-grid { align-items: start; }
  .institution-card { background: var(--surface-muted); }
  .cover-accent { width: 45%; }

  .context-layout { align-items: start; }
  .concept-grid { grid-template-columns: 1fr; }
  .concept-grid li { min-height: auto; }

  .metrics { grid-template-columns: 1fr; }
  .metrics div { min-height: 4.5rem; border-right: 0; border-bottom: 1px solid var(--line); }
  .metrics div:last-child { border-bottom: 0; }

  .process { grid-template-columns: 1fr; }
  .process li { min-height: 6.2rem; padding-left: 5rem; border-right: 1px solid var(--line); border-bottom: 0; }
  .process li:last-child { border-bottom: 1px solid var(--line); }
  .process li::after { top: auto; right: auto; bottom: -.65rem; left: 50%; transform: rotate(135deg); }
  .process li > span { position: absolute; top: 50%; left: 1.5rem; margin: 0; transform: translateY(-50%); }

  .app-grid,
  .learning-grid { grid-template-columns: 1fr; }
  .finding-showcase { grid-template-columns: 1fr; }
  .audit-overview { grid-template-columns: 1fr; }
  .audit-summary { grid-row: auto; }
  .audit-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .app-card { min-height: 18rem; }
  .result-fields { grid-template-columns: 1fr; }
  .result-fields > div { grid-column: auto; }
  .evidence-figure,
  .evidence-placeholder { min-height: 21rem; }
  .learning-grid article { min-height: auto; }
  .learning-grid h3 { margin-top: 1.25rem; }

  .slide--closing { display: flex; }
  .closing-footer { position: static; width: 100%; margin-top: 2rem; flex-wrap: wrap; }
  .team-panel li { align-items: start; flex-direction: column; gap: .15rem; }

  .control-label { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); }
  .control-button { font-size: 1.25rem; }
}

@media (max-width: 430px) {
  h1 { font-size: clamp(2.6rem, 14vw, 4rem); }
  h2 { font-size: clamp(2.1rem, 11vw, 3.25rem); }
  .slide-header--result { flex-direction: column; }
  .category-panel { padding: 1.25rem; }
  .tag-list { align-items: stretch; flex-direction: column; }
  .tag-list li { border-radius: .4rem; }
  .audit-gallery { grid-template-columns: 1fr; }
  .audit-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .priority-panel li { grid-template-columns: 4.2rem 1fr; }
  .screen-card img { height: min(105vw, 25rem); }
  .youtube-categories ul,
  .compact-categories ul { grid-template-columns: 1fr; }
}

@media (min-width: 801px) and (max-height: 700px) {
  :root { --slide-pad-block: 1.5rem; }

  .slide { padding-bottom: 5.5rem; }
  .slide-header { margin-bottom: 1.35rem; }
  h1 { font-size: clamp(2.7rem, 5.5vw, 5rem); }
  h2 { font-size: clamp(2.25rem, 4vw, 4rem); }
  .cover-copy .eyebrow { margin-bottom: 1.25rem; }
  .institution-card { padding: 1.5rem; }
  .institution-logo { width: min(100%, 9rem); max-height: 8rem; margin-bottom: 1rem; }
  .objective-quote { margin-bottom: 1.5rem; font-size: clamp(1.35rem, 2.4vw, 2.1rem); }
  .process li { min-height: 8rem; }
  .app-card { min-height: 17rem; }
  .evidence-figure,
  .evidence-placeholder { min-height: 18rem; }
  .learning-grid article { min-height: 14rem; }
  .learning-grid h3 { margin-top: 1.25rem; }
  .closing-footer { bottom: 5.5rem; }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
    animation: none !important;
  }

  .js body:not(.presentation-mode) .slide.reveal-on-scroll {
    opacity: 1;
    transform: none;
  }

  .presentation-button:hover,
  .accessibility-button:hover,
  .control-button:hover,
  body:not(.presentation-mode) .app-card:hover,
  body:not(.presentation-mode) .finding-card:hover,
  body:not(.presentation-mode) .learning-grid article:hover { transform: none; }
}

/* No modo apresentação, cada slide é enquadrado integralmente pelo script.
 * Fora desse modo, o wrapper não interfere no fluxo normal da página. */
.presentation-slide-content { display: contents; }

.js body.presentation-mode { overflow: hidden; }

html.js body.presentation-mode .slide {
  display: block;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  min-height: 0;
  padding: var(--slide-pad-block) var(--slide-pad-inline) clamp(4.75rem, 10vh, 6.25rem);
  overflow: hidden;
}

body.presentation-mode .presentation-slide-content {
  position: absolute;
  top: var(--presentation-top, var(--slide-pad-block));
  left: var(--presentation-left, var(--slide-pad-inline));
  display: flow-root;
  width: var(--presentation-width, calc(100% - (2 * var(--slide-pad-inline))));
  min-width: 0;
  transform: scale(var(--presentation-scale, 1));
  transform-origin: top left;
}

body.presentation-mode .slide:not([hidden]) {
  animation: presentation-reveal 320ms ease-out both;
}

body.presentation-mode .audit-slide .slide-header { margin-bottom: 1rem; }
body.presentation-mode .audit-slide .gallery-intro { margin-top: 0; margin-bottom: .75rem; }
body.presentation-mode .institution-logo { margin-inline-start: clamp(2rem, 2vw, 2.75rem); }
body.presentation-mode .audit-gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); }
body.presentation-mode .finding-showcase { grid-template-columns: repeat(3, minmax(0, 1fr)); }
body.presentation-mode .screen-card img { height: clamp(8rem, 18vh, 12rem); }
body.presentation-mode .finding-card img { height: clamp(8rem, 18vh, 11rem); }
body.presentation-mode .screen-card figcaption { padding: .55rem .7rem; }
body.presentation-mode .screen-card summary { min-height: 2.4rem; padding: .45rem .7rem; }
body.presentation-mode .audit-disclaimer { margin-top: .65rem; padding-block: .65rem; }
body.presentation-mode .closing-footer {
  position: static;
  width: 100%;
  margin-top: 2rem;
  flex-wrap: wrap;
}
body.presentation-mode .cover-accent { display: none; }

@media (hover: hover) and (pointer: fine) {
  .presentation-button,
  .accessibility-button,
  .control-button,
  .app-card,
  .finding-card,
  .screen-card,
  .learning-grid article {
    transition: transform 180ms ease-out, box-shadow 180ms ease-out, border-color 180ms ease-out, background-color 180ms ease-out;
  }

  .presentation-button:hover:not(:disabled),
  .accessibility-button:hover:not(:disabled),
  .control-button:hover:not(:disabled) { transform: translateY(-2px); }

  body:not(.presentation-mode) .app-card:hover,
  body:not(.presentation-mode) .finding-card:hover,
  body:not(.presentation-mode) .screen-card:hover,
  body:not(.presentation-mode) .learning-grid article:hover {
    border-color: var(--if-green);
    box-shadow: 0 1.1rem 2.5rem rgba(13, 71, 39, .13);
    transform: translateY(-4px);
  }
}

@keyframes dropdown-reveal {
  from { opacity: 0; transform: translateY(-.4rem) scale(.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes presentation-reveal {
  from { opacity: 0; }
  to { opacity: 1; }
}

@media print {
  @page { size: 297mm 210mm; margin: 0; }

  :root {
    color-scheme: light !important;
    --if-green: #176c3a !important;
    --if-green-dark: #0d4727 !important;
    --if-green-soft: #e8f2ec !important;
    --if-red: #b82a32 !important;
    --surface: #ffffff !important;
    --surface-muted: #f3f5f3 !important;
    --surface-strong: #e4e9e5 !important;
    --text: #17211b !important;
    --text-muted: #56615a !important;
    --line: #cad2cc !important;
    font-size: 100% !important;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
    animation: none !important;
  }

  html,
  body {
    width: 297mm;
    min-width: 0;
    min-height: 0;
    margin: 0;
    overflow: visible !important;
    background: #fff;
    color: var(--text);
    print-color-adjust: exact;
    -webkit-print-color-adjust: exact;
  }

  .skip-link,
  .skip-links,
  .site-chrome,
  .presentation-button,
  .slide-controls,
  .progress-track,
  #presentation-status { display: none !important; }

  .presentation {
    display: block !important;
    width: 297mm !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    gap: 0 !important;
  }

  .slide,
  .slide[hidden] {
    display: flex !important;
    width: 297mm !important;
    min-height: 210mm !important;
    max-height: 210mm !important;
    height: 210mm !important;
    margin: 0 !important;
    padding: 2rem 3rem 3rem !important;
    justify-content: center;
    overflow: hidden !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    opacity: 1 !important;
    transform: none !important;
    break-after: page;
    break-inside: avoid;
    page-break-after: always;
    page-break-inside: avoid;
  }

  .presentation-slide-content,
  body.presentation-mode .presentation-slide-content {
    position: static !important;
    display: flow-root !important;
    width: 100% !important;
    min-width: 0 !important;
    opacity: 1 !important;
    transform: none !important;
  }

  .slide-header { margin-bottom: 1.25rem !important; }
  h1 { font-size: 4.4rem; }
  h2 { font-size: 3.4rem; }
  .cover-copy .eyebrow { margin-bottom: 1.5rem; }
  .cover-accent { display: block !important; }
  .audit-overview { gap: .75rem; }
  .audit-summary,
  .category-breakdown,
  .priority-panel { padding: 1rem; }
  .finding-showcase { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
  .finding-card { box-shadow: none; }
  .finding-card img,
  body.presentation-mode .finding-card img { height: 7.25rem !important; }
  .findings-slide .slide-header { margin-bottom: .75rem !important; }
  .findings-slide h2 { font-size: 2.75rem; }
  .findings-slide .finding-showcase { gap: .65rem; }
  .finding-card figcaption { padding: .35rem .6rem; font-size: .62rem; }
  .finding-body { padding: .65rem; }
  .finding-body h3 { margin-bottom: .5rem; font-size: 1rem; }
  .finding-body dl { gap: .25rem; }
  .finding-body dl div { padding-top: .35rem; }
  .finding-body dt { font-size: .58rem; }
  .finding-body dd { margin-top: .1rem; font-size: .66rem; line-height: 1.35; }
  .additional-findings,
  .audit-disclaimer { margin-top: .65rem; }
  .findings-slide .additional-findings {
    margin-top: .45rem;
    padding: .45rem .65rem;
    font-size: .66rem;
    line-height: 1.35;
  }
  .closing-footer,
  body.presentation-mode .closing-footer {
    position: static;
    width: 100%;
    margin-top: 2rem;
  }

  .slide:last-child { break-after: auto; page-break-after: auto; }
}
