/* ANPEC-only layouts. Colors, headings, type, and slide furniture come from
   the unmodified Econometrics I 2026 theme in custom.scss. */

.reveal .paper-subtitle {
  color: #6B6B6B;
  font-size: 0.77em;
  line-height: 1.25;
  margin: -0.35em 0 0.8em;
}
.reveal .paper-subtitle p { margin: 0; }

/* Valdemar's two-paper comparison, scoped to this research slide. */
.reveal #vies-politico-ia > .paper-subtitle { font-size: 0.77em; }
.reveal #vies-politico-ia .columns {
  gap: 48px;
  margin: 0.65em 0 0;
}
.reveal #vies-politico-ia .column { min-width: 0; }
.reveal #vies-politico-ia .column > div > p { margin: 0; }
.reveal #vies-politico-ia .ai-journal {
  color: var(--slate);
  font-size: 0.85em;
  font-weight: 600;
}
.reveal #vies-politico-ia .ai-paper-title {
  color: var(--fgvblue);
  font-size: 1em;
  font-weight: 700;
  margin: 0 0 0.35em;
  line-height: 1.2;
}
.reveal #vies-politico-ia .ai-authors {
  color: #6B6B6B;
  font-size: 0.77em;
  line-height: 1.25;
  margin: 0.3em 0 0.65em;
}
.reveal #vies-politico-ia .column ul { margin: 0; }
.reveal #vies-politico-ia .column li + li { margin-top: 0.35em; }
.reveal #vies-politico-ia .ai-takeaway {
  border-top: 2px solid var(--fgvblue);
  margin-top: 0.65em;
  padding-top: 0.3em;
}

.reveal .faculty-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 25px 40px;
  margin: 20px 35px 0;
}
.reveal .faculty-member { text-align: center; font-size: 25px; }
.reveal .faculty-member p { margin: 10px 0 0; }
.reveal .faculty-member img {
  display: block;
  height: 215px;
  max-width: 100%;
  width: auto;
  object-fit: contain;
  margin: 0 auto;
}
.reveal #professores img.braido-portrait {
  width: 195px;
  object-fit: cover;
}

.reveal .course-sequence {
  border-top: 1.5px solid #D8DEE5;
  margin-top: 0.6em;
  padding-top: 0.4em;
}
.reveal .emap-courses {
  border-top: 1.5px solid #D8DEE5;
  margin-top: 0.6em;
  padding-top: 0.4em;
}

/* The field summaries contain four lists rather than one continuous list.
   Keep their paragraph gaps compact without changing the course typography. */
.reveal .research-fields p { margin: 0.3em 0 0.12em; }
.reveal .research-fields li > p { margin: 0; }
.reveal .slides .research-fields ul { margin-top: 0; margin-bottom: 0.35em; }
.reveal .slides .research-fields ul li { margin-top: 0.2em; }
.reveal .slides .placements-slide ul li { margin-top: 0.3em; }

/* General presentation layouts. */
.reveal .slides section.general-opening { text-align: center; }
.reveal section.general-opening > h2 { display: none; }
.reveal .general-opening .standout-body {
  color: var(--slate);
  font-size: 1.65em;
}
.reveal section.general-emphasis .standout-body { font-size: 1.35em; }

@media screen and (prefers-reduced-motion: no-preference) {
  html:not(.print-pdf) .reveal section.present > .zoom-on-entry {
    animation: anpec-zoom-on-entry 1.5s ease;
  }
  html:not(.print-pdf) .reveal section.present > .fade-on-entry {
    animation: anpec-fade-on-entry 1.25s ease-out;
  }
}
@keyframes anpec-zoom-on-entry {
  from { opacity: 0; transform: scale(0.1); }
}
@keyframes anpec-fade-on-entry {
  from { opacity: 0; }
}

.reveal .general-rankings .columns { align-items: center; }
.reveal .general-rankings .column + .column { padding-left: 1em; }
.reveal .general-rankings img { width: 100%; }
.reveal .general-publications img { height: 500px; }
.reveal .general-publications > p:has(img) { text-align: center; }

/* The nested list defines the career tree. CSS draws its connectors. */
.reveal .career-tree {
  --branch-line: #8296A9;
  margin: 1.15em auto 0;
  max-width: 1120px;
}
.reveal .career-tree ul {
  display: block;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 1em;
}
.reveal .slides .career-tree li { margin: 0; }
.reveal .career-root,
.reveal .career-route {
  display: block;
  position: relative;
  text-align: center;
  font-weight: 600;
}
.reveal .career-root {
  width: fit-content;
  margin: 0 auto;
  padding: 0.5em 1.5em;
  background: var(--slate);
  color: white;
}
.reveal .career-tree > ul > li > ul {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  position: relative;
  padding-top: 48px;
}
.reveal .career-tree > ul > li > ul::before {
  content: "";
  position: absolute;
  top: 24px;
  inset-inline: calc(100% / 6);
  border-top: 2px solid var(--branch-line);
}
.reveal .career-tree > ul > li > ul > li { padding: 0 12px; }
.reveal .career-root::after,
.reveal .career-route::before {
  content: "";
  position: absolute;
  left: calc(50% - 1px);
  height: 24px;
  border-left: 2px solid var(--branch-line);
}
.reveal .career-root::after { top: 100%; }
.reveal .career-route::before { bottom: 100%; }
.reveal .career-route {
  padding: 0.45em 0.25em;
  border-bottom: 2px solid var(--fgvblue);
  background: #F5F7FA;
  color: var(--slate);
  font-size: 0.92em;
}
.reveal .career-tree .career-route + ul { margin-left: 0.8em; }
.reveal .career-tree .career-route + ul > li {
  position: relative;
  padding: 0.55em 0 0.55em 1.1em;
  font-size: 0.88em;
}
.reveal .career-tree .career-route + ul > li::before,
.reveal .career-tree .career-route + ul > li::after {
  content: "";
  position: absolute;
  left: 0;
}
.reveal .career-tree .career-route + ul > li::before {
  top: 0;
  bottom: 0;
  border-left: 2px solid var(--branch-line);
}
.reveal .career-tree .career-route + ul > li:last-child::before { bottom: 50%; }
.reveal .career-tree .career-route + ul > li::after {
  top: 50%;
  width: 0.7em;
  border-top: 2px solid var(--branch-line);
}

.reveal .general-research-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1em;
}
.reveal .general-research-field {
  grid-column: span 2;
  border-top: 2px solid var(--fgvblue);
  background: #F5F7FA;
  padding: 0.55em 0.8em;
  font-size: 0.9em;
}
.reveal .general-research-field:nth-child(-n+2) { grid-column: span 3; }
.reveal .general-research-field p { margin: 0.35em 0; }

.reveal .general-testimonial iframe {
  display: block;
  width: 1040px;
  max-width: 100%;
  aspect-ratio: 16 / 9;
  margin: 0 auto;
  border: 0;
}
.reveal .general-testimonial .testimonial-print-link { display: none; }
.print-pdf .reveal .general-testimonial iframe { display: none; }
.print-pdf .reveal .general-testimonial .testimonial-print-link { display: inline; }

.reveal .general-placement-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.15em 0.6em;
  margin-top: 1em;
}
.reveal .general-placement { text-align: center; }
.reveal .general-placement p { margin: 0.2em 0; }
.reveal .general-placement img {
  width: 220px;
  height: 95px;
  object-fit: contain;
  margin: 0;
}

.reveal .general-rio img {
  width: 100%;
  max-height: 350px;
  object-fit: contain;
  object-position: left center;
}
.reveal .general-student-photos {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: repeat(2, 260px);
  gap: 12px;
}
.reveal .general-student-photos p { margin: 0; }
.reveal .general-student-photos p:first-child { grid-row: span 2; }
.reveal .general-student-photos img {
  display: block;
  width: 100%;
  height: 100%;
  margin: 0;
  object-fit: contain;
}

/* Preserve the course's insets and question-slide centering in PDF view;
   Reveal's print defaults otherwise reset both with !important. */
.print-pdf .reveal .slides .pdf-page section { padding: 0 40px !important; }
.print-pdf .reveal .slides .pdf-page section > h2 {
  color: var(--slate);
  background: none;
  margin: 0 0 0.62em;
  padding: 0.1em 0 0.3em;
  border-bottom: 2.5px solid var(--slate);
  text-align: left;
  font-weight: 600;
  letter-spacing: 0.005em;
}
.print-pdf .reveal .slides .pdf-page section.standout {
  height: 720px !important;
  display: grid !important;
  place-items: center;
}

/* ---------- Macro deck ---------- */

/* Faculty photos: 128px sources, shown as circles in a 3x3 grid. */
.reveal .photo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px 40px;
  margin: 0 35px;
}
.reveal .photo-member { text-align: center; font-size: 23px; }
.reveal .photo-member p { margin: 4px 0 0; }
.reveal .photo-member img {
  display: block;
  width: 104px;
  height: 104px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--slate);
  margin: 0 auto;
}

/* First-year course map: three columns, two parts each. */
.reveal .course-map {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  font-size: 0.66em;
  line-height: 1.22;
}
.reveal .course-col .course-name {
  display: block;
  color: var(--slate);
  font-weight: 700;
  font-size: 1.3em;
  padding-bottom: 0.15em;
  border-bottom: 3px solid var(--fgvblue);
}
.reveal .course-col p { margin: 0; }
.reveal .course-part {
  background: #F2F5F8;
  border-radius: 0 0 6px 6px;
  padding: 0.45em 0.6em 0.5em;
  margin-top: 0.55em;
}
.reveal .course-prof { color: var(--fgvblue); font-weight: 700; }
.reveal .slides .course-part ul { margin: 0.2em 0 0; padding-left: 1.05em; }
.reveal .slides .course-part ul li { margin-top: 0.12em; }

/* Guiding question at the top of each course part. */
.reveal .course-part .course-q {
  display: block;
  font-style: italic;
  color: var(--slate);
  margin: 0.15em 0 0.1em;
}

.reveal .slides .student-slide ul ul { margin-top: 0.1em; }
.reveal .recent-theses p { margin: 0.2em 0 0.1em; }
.reveal .slides .recent-theses ul { margin: 0 0 0.45em; }
.reveal .slides .recent-theses ul li { margin-top: 0.15em; }

/* Teoria Econômica */
.reveal .theory-faculty-slide .photo-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  row-gap: 28px;
  margin-top: 32px;
}
.reveal .theory-faculty-slide .photo-member img {
  width: 140px;
  height: 140px;
}

.reveal .theory-publications .columns { font-size: 0.8em; line-height: 1.26; }
.reveal .theory-publications .column p { margin: 0 0 0.85em; }
.reveal .theory-publications .column strong { color: var(--slate); }
.reveal .theory-publication-credit { font-size: 0.72em; color: var(--slate); }

.reveal .theory-students .columns { margin-top: 0.9em; font-size: 0.88em; line-height: 1.3; }
.reveal .theory-students .column > p { margin: 0.5em 0; }
.reveal .theory-students .column > p:has(> em) { min-height: 2.6em; }
.reveal .theory-students .column > p:has(> .theory-student-placement) {
  border-top: 1.5px solid #D8DEE5;
  padding-top: 0.5em;
}
.reveal .theory-student-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.4em;
  min-height: 90px;
}
.reveal .theory-student-header p { margin: 0; }
.reveal .theory-student-header img {
  display: block;
  width: 76px;
  height: 76px;
  margin-block: 0;
  object-fit: cover;
  border: 3px solid var(--slate);
  border-radius: 50%;
}
.reveal .theory-student-name { color: var(--slate); font-size: 1.15em; font-weight: 700; }
.reveal .theory-student-placement { color: var(--fgvblue); font-weight: 700; }

.reveal .theory-alumni .columns { align-items: center; margin-top: 0.75em; }
.reveal .theory-alumni .column img {
  display: block;
  width: 100%;
  height: 410px;
  object-fit: contain;
  margin: 0;
}
.reveal .theory-visit > p:has(img) { margin: 0; }
.reveal .theory-visit img {
  display: block;
  width: 100%;
  height: 540px;
  object-fit: contain;
  margin: 0 auto;
}
.reveal .standout-body .theory-contact { font-size: 0.45em; font-weight: 400; }

/* Microeconomia Aplicada: preserve Andrea's groupings and reveal sequence. */
.reveal .micro-faculty .photo-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 42px 18px;
  margin: 38px 0 0;
}
.reveal .micro-faculty .photo-member img {
  width: 128px;
  height: 128px;
}
.reveal .micro-faculty .photo-member p { margin-top: 10px; }
.reveal .micro-faculty .micro-visitors {
  display: grid;
  grid-template-columns: repeat(2, 61px);
  gap: 6px;
  width: 128px;
  margin: 0 auto;
}
.reveal .micro-faculty .micro-visitors img {
  width: 61px;
  height: 61px;
  border-width: 2px;
  box-sizing: border-box;
}
.reveal .micro-research .micro-publication-note {
  font-size: 0.77em;
  margin-top: 0.9em;
}
.reveal .micro-courses .column { line-height: 1.22; }
.reveal .micro-courses .column + .column { padding-left: 0.65em; }
.reveal .micro-courses .column ul { margin-block: 0.25em 0; }
.reveal .micro-courses .column li { margin-block: 0.18em; }
.reveal .micro-courses .takeaway { margin-top: 0.65em; }

.reveal :is(.micro-placements, .micro-theses) .micro-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 24px;
}
.reveal :is(.micro-placements, .micro-theses) .micro-card {
  background: rgba(0, 114, 188, 0.08);
  border-top: 3px solid var(--fgvblue);
  padding: 10px 16px 12px;
}
.reveal :is(.micro-placements, .micro-theses) .micro-card > p {
  margin: 0 0 0.25em;
}
.reveal :is(.micro-placements, .micro-theses) .micro-card ul {
  margin-block: 0;
}
.reveal .micro-placements .micro-card li { margin-block: 0.08em; }
.reveal .micro-theses .micro-card { line-height: 1.13; }
.reveal .micro-theses .micro-card li { margin-block: 0.2em; }
.reveal .micro-theses .micro-card-orange {
  border-top-color: #EB811B;
  background: rgba(235, 129, 27, 0.15);
}

.reveal .micro-questions .micro-question-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px 48px;
  margin: 30px 32px 0;
}
.reveal .micro-questions .micro-question {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 185px;
  padding: 14px 20px;
  border: 2px solid var(--fgvblue);
  border-radius: 24px;
  background: rgba(0, 114, 188, 0.08);
  color: var(--slate);
  text-align: center;
  font-size: 0.9em;
  line-height: 1.2;
}
.reveal .micro-questions .micro-question p { margin: 0.2em 0; }
.reveal .micro-questions .micro-question-author {
  color: var(--fgvblue);
  font-size: 0.8em;
}

.reveal .micro-conferences .micro-conference-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 42px;
}
.reveal .micro-conferences .micro-conference {
  position: relative;
  aspect-ratio: 3 / 4;
  margin: 0;
  overflow: hidden;
  border: 2px solid var(--slate);
}
.reveal .micro-conferences .micro-conference img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  margin: 0;
  object-fit: cover;
}
.reveal .micro-conferences .micro-conference-pair > div {
  display: grid;
  grid-template-rows: repeat(2, minmax(0, 1fr));
  height: 100%;
}
.reveal .micro-conferences .micro-photo-amazonia { object-position: 36.43% center; }
.reveal .micro-conferences .micro-photo-ecineq { object-position: 72.86% center; }
.reveal .micro-conferences .micro-conference figcaption {
  position: absolute;
  inset: auto 0 0;
  padding: 7px 5px;
  margin: 0;
  background: rgba(45, 62, 80, 0.82);
  color: white;
  font-size: 0.58em;
  font-weight: 700;
  text-align: left;
}
