:root {
  --blue: #0b75ad;
  --blue-2: #2787c7;
  --teal: #006d5b;
  --cyan: #effaff;
  --gray: #eaeaea;
  --ink: #24313a;
  --muted: #60717c;
  --white: #fff;
  --orange: #dc721c;
  --radius: 14px;
  --shadow: 0 10px 28px rgba(13, 57, 82, .08);
  --max: 1180px;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: Inter, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: var(--blue); text-decoration-thickness: 1px; text-underline-offset: .18em; }
a:hover { color: var(--teal); }
button, input { font: inherit; }
.skip-link {
  position: fixed; left: 1rem; top: -5rem; z-index: 1000;
  padding: .75rem 1rem; color: var(--white); background: var(--teal);
}
.skip-link:focus { top: 1rem; }
.container { width: min(calc(100% - 2.5rem), var(--max)); margin-inline: auto; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.section { padding: 4.8rem 0; }
.section--soft { background: var(--cyan); }
.section--compact { padding: 3rem 0; }
.section--ondemand { padding: 2.4rem 0; background: #f4f1eb; }
.section--ondemand .section-heading { margin-bottom: 1.1rem; }
.eyebrow {
  margin: 0 0 .65rem;
  color: var(--teal);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}
h1, h2, h3 { margin-top: 0; line-height: 1.16; }
h1 { font-size: clamp(2rem, 5vw, 4.3rem); letter-spacing: -.035em; }
h2 { font-size: clamp(1.75rem, 3vw, 2.6rem); letter-spacing: -.025em; }
h3 { font-size: 1.13rem; }
p { margin-top: 0; }
.lead { max-width: 760px; color: var(--muted); font-size: 1.08rem; }
.muted { color: var(--muted); }

.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.96);
  border-bottom: 1px solid rgba(11,117,173,.14);
  backdrop-filter: blur(12px);
}
.header-inner {
  min-height: 68px;
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
}
.brand {
  color: var(--ink); text-decoration: none; font-size: 1.35rem; font-weight: 850;
  letter-spacing: -.03em; white-space: nowrap;
}
.site-nav { display: flex; align-items: center; gap: 1.1rem; }
.nav-list { display: flex; align-items: center; gap: clamp(.75rem, 2vw, 1.65rem); margin: 0; padding: 0; list-style: none; }
.nav-list a {
  display: block; padding: 1.35rem 0 1.1rem;
  color: var(--ink); border-bottom: 3px solid transparent;
  text-decoration: none; font-size: .91rem; font-weight: 650;
}
.nav-list a:hover, .nav-list a[aria-current="page"] { color: var(--blue); border-bottom-color: var(--blue-2); }
.language-switcher {
  display: flex; align-items: center; gap: .42rem; padding-left: .9rem;
  border-left: 1px solid rgba(11,117,173,.2);
}
.language-switcher-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.language-link {
  width: 28px; height: 24px; display: grid; place-items: center;
  border: 1px solid transparent; border-radius: 5px; text-decoration: none;
}
.language-link img {
  width: 22px; height: 15px; display: block; object-fit: cover;
  border: 1px solid rgba(13,57,82,.18); border-radius: 2px;
}
.language-link:hover, .language-link:focus-visible { background: var(--cyan); border-color: var(--blue-2); }
.language-link[aria-current="true"] { background: var(--cyan); border-color: var(--teal); }
.nav-toggle {
  display: none; width: 44px; height: 44px; padding: 0; border: 0; background: transparent;
}
.nav-toggle span, .nav-toggle::before, .nav-toggle::after {
  content: ""; display: block; width: 24px; height: 2px; margin: 5px auto; background: var(--ink); transition: .2s;
}

.hero {
  min-height: clamp(245px, 25vw, 320px); display: grid; align-items: center;
  background:
    linear-gradient(90deg, rgba(239,250,255,.98) 0%, rgba(239,250,255,.86) 38%, rgba(239,250,255,.18) 63%, rgba(239,250,255,0) 75%),
    url("../images/banner-flipped.jpg") center 28% / cover no-repeat;
  border-bottom: 1px solid var(--gray);
}
.hero-copy { width: min(670px, 60%); padding: 2rem 0; }
.hero h1 { margin-bottom: .8rem; color: var(--ink); max-width: 680px; font-size: clamp(1.75rem, 3.5vw, 3.1rem); }
.hero .lead { color: #3f535f; }
.hero-actions, .card-actions, .social-links { display: flex; flex-wrap: wrap; gap: .7rem; }
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: .45rem;
  min-height: 44px; padding: .68rem 1rem;
  color: var(--white); background: var(--blue); border: 1px solid var(--blue);
  border-radius: 8px; text-decoration: none; font-size: .88rem; font-weight: 750;
}
.button:hover { color: var(--white); background: var(--teal); border-color: var(--teal); }
.button--outline { color: var(--blue); background: var(--white); }
.button--outline:hover { color: var(--white); }
.button--small { min-height: 38px; padding: .5rem .75rem; font-size: .8rem; }
.button--registration { background: var(--orange); border-color: var(--orange); }
.button--registration:hover { background: var(--teal); border-color: var(--teal); }
.publication-unavailable {
  display: inline-grid; min-width: 38px; min-height: 38px; place-items: center;
  color: var(--muted); font-weight: 800;
}
.network-icon {
  width: 1.25rem; height: 1.25rem; display: inline-grid; place-items: center;
  color: var(--white); background: var(--blue); border-radius: 3px; font-size: .72rem; font-weight: 900;
}
.network-icon--lattes { border-radius: 50%; background: var(--teal); }
.network-icon--lattes { object-fit: contain; background: var(--white); }
.network-icon--orcid { color: var(--white); background: #a6ce39; font-size: .58rem; font-weight: 850; }
.network-icon--scholar { object-fit: contain; background: transparent; border-radius: 50%; }
.profile-links { justify-content: center; margin-top: 1rem; }
.social-links--center { justify-content: center; }

.about-layout {
  display: grid; grid-template-columns: 220px 1fr; gap: 2.2rem; align-items: start;
}
.profile-summary { text-align: center; }
.profile-photo {
  width: 104px; aspect-ratio: 1; margin: 0 auto 1rem;
  display: grid; place-items: center; overflow: hidden;
  border: 3px solid var(--blue-2); border-radius: 50%; background: var(--cyan);
  color: var(--blue); font-size: 1.8rem; font-weight: 850;
}
.profile-photo img { width: 100%; height: 100%; object-fit: cover; }
.page--sobre .profile-photo { width: 132px; }
.credentials {
  display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 1.25rem;
}
.credential {
  padding-left: 1.2rem; border-left: 2px solid rgba(39,135,199,.25);
}
.credential h3 { color: var(--blue); font-size: .95rem; text-transform: uppercase; letter-spacing: .04em; }
.credential-icon {
  display: inline-grid; width: 1.6rem; height: 1.6rem; margin-right: .3rem;
  place-items: center; border-radius: 50%; background: var(--cyan);
  font-size: .92rem; line-height: 1; vertical-align: middle;
}
.credential ul { margin: 0; padding-left: 1.05rem; font-size: .9rem; }
.credential li + li { margin-top: .55rem; }
.thesis {
  width: min(100%, 960px); margin: 2.7rem auto 0; padding: 1.2rem 2rem;
  text-align: center; border-top: 1px solid var(--teal); border-bottom: 1px solid rgba(0,109,91,.15);
  background: var(--cyan);
}
.thesis strong { color: var(--teal); }
.thesis-title { margin-bottom: .45rem; color: var(--ink); font-size: 1.08rem; font-weight: 800; }
.thesis-copy { margin: 0; font-size: .91rem; }

.section-heading {
  display: flex; align-items: end; justify-content: space-between; gap: 1rem; margin-bottom: 1.7rem;
}
.section-heading h2 { margin-bottom: 0; color: var(--blue); }
.section-link { flex: 0 0 auto; font-weight: 800; font-size: .9rem; }
.card-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 1.25rem; }
.card {
  min-width: 0; overflow: hidden; display: flex; flex-direction: column;
  background: var(--white); border: 1px solid var(--gray); border-radius: var(--radius); box-shadow: var(--shadow);
}
.card-media { aspect-ratio: 16 / 8.7; width: 100%; object-fit: cover; background: var(--cyan); }
.card-body { display: flex; flex: 1; flex-direction: column; padding: 1.2rem; }
.card-meta {
  margin-bottom: .55rem; color: var(--teal); font-size: .72rem; font-weight: 800;
  letter-spacing: .06em; text-transform: uppercase;
}
.card h3 { margin-bottom: .55rem; }
.card p { color: var(--muted); font-size: .91rem; }
.card .card-actions { margin-top: auto; }
.book-card { display: grid; grid-template-columns: 132px 1fr; }
.book-card .book-cover { width: 100%; height: 100%; min-height: 220px; object-fit: cover; }
.book-card .card-body { padding: 1.1rem; }
.book-card.compact { grid-template-columns: 110px 1fr; }
.book-card.compact .book-cover {
  width: 110px; height: 200px; min-height: 0; align-self: start;
  padding: .65rem; object-fit: contain; background: var(--white);
}
.topic-card .card-media { aspect-ratio: 16/7; }
.topic-grid-compact { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: .8rem; }
.topic-card--compact { display: grid; grid-template-columns: 96px 1fr; min-height: 112px; box-shadow: none; }
.topic-card--compact .card-media {
  width: 96px; height: 100%; aspect-ratio: auto; padding: .35rem;
  object-fit: cover; background: #f8fdff;
}
.topic-card--compact .card-body { padding: .8rem; }
.topic-card--compact .card-meta { margin-bottom: .25rem; font-size: .63rem; }
.topic-card--compact h3 { margin-bottom: .25rem; font-size: .96rem; }
.topic-card--compact p { margin: 0; font-size: .78rem; line-height: 1.4; }

.book-carousel, .event-carousel, .article-carousel {
  display: grid; grid-template-columns: none; grid-auto-flow: column;
  grid-auto-columns: calc((100% - 2.5rem) / 3); gap: 1.25rem;
  overflow-x: auto; padding: .1rem .1rem 1rem;
  overscroll-behavior-inline: contain; scroll-snap-type: inline mandatory;
  cursor: grab; scrollbar-color: var(--blue-2) var(--gray);
}
.book-carousel > *, .event-carousel > *, .article-carousel > * { scroll-snap-align: start; }
.book-carousel.is-dragging, .event-carousel.is-dragging, .article-carousel.is-dragging {
  cursor: grabbing; user-select: none; scroll-snap-type: none;
}
.carousel-shell { position: relative; }
.carousel-arrow {
  position: absolute; z-index: 5; top: 50%; width: 42px; height: 42px;
  display: grid; place-items: center; padding: 0; color: var(--white);
  background: rgba(11,117,173,.94); border: 2px solid var(--white); border-radius: 50%;
  box-shadow: 0 4px 14px rgba(13,57,82,.22); transform: translateY(-50%);
  cursor: pointer;
}
.carousel-arrow span { margin-top: -2px; font-size: 1.9rem; line-height: 1; }
.carousel-arrow--previous { left: -.7rem; }
.carousel-arrow--next { right: -.7rem; }
.carousel-arrow:disabled { opacity: .28; cursor: default; }
.more-card a {
  min-height: 100%; padding: 2rem; display: grid; place-content: center; gap: 1rem;
  color: var(--white); background: var(--blue); text-align: center;
  text-decoration: none; font-size: 1.1rem; font-weight: 800;
}
.more-card a:hover { color: var(--white); background: var(--teal); }
.more-card strong { font-size: 2rem; line-height: 1; }

.tabs {
  display: grid; grid-template-columns: 1fr 1fr; margin-bottom: 1.5rem;
  border: 1px solid var(--blue); border-radius: 9px; overflow: hidden;
}
.tabs a { padding: .72rem 1rem; text-align: center; text-decoration: none; font-weight: 800; }
.tabs a[aria-current="page"], .tabs a:hover { color: var(--white); background: var(--blue); }

.page-hero {
  position: relative; display: grid; align-items: center; min-height: 220px;
  padding: 1.55rem 0 1.35rem; overflow: hidden;
  background-color: var(--cyan); background-position: center; background-size: cover;
  border-bottom: 1px solid var(--gray);
}
.page-hero::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(239,250,255,.99) 0%, rgba(239,250,255,.94) 47%, rgba(239,250,255,.56) 69%, rgba(239,250,255,.12) 100%);
}
.page-hero > .container { position: relative; z-index: 1; }
.page--sobre .page-hero { background-image: url("../images/header-sobre.jpg"); }
.page--artigos .page-hero { background-image: url("../images/header-artigos.jpg"); }
.page--artigos-cientificos .page-hero { background-image: url("../images/header-artigos-cientificos.jpg"); }
.page--livros .page-hero { background-image: url("../images/header-livros.jpg"); }
.page--agenda .page-hero { background-image: url("../images/header-agenda.jpg"); }
.page--contato .page-hero { background-image: url("../images/header-contato.jpg"); }
.page-hero h1 { margin-bottom: .4rem; color: var(--blue); font-size: clamp(1.9rem, 3.6vw, 3rem); }
.page-hero .eyebrow { margin-bottom: .35rem; }
.page-hero .lead { margin-bottom: 0; }
.page-hero .hero-actions { margin-top: .8rem; }
.profile-heading { font-size: clamp(1.25rem, 2vw, 1.7rem); }
.breadcrumbs { margin-bottom: .55rem; color: var(--muted); font-size: .85rem; }
.breadcrumbs a { color: inherit; }
.filter-bar {
  display: flex; gap: .8rem; margin: 0 0 1.5rem; padding: 1rem;
  background: var(--cyan); border: 1px solid var(--gray); border-radius: 12px;
}
.archive-callout {
  display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 1.5rem;
  align-items: center; margin-bottom: 1.5rem; padding: 1.4rem;
  color: var(--ink); background: var(--cyan); border: 1px solid var(--gray); border-radius: 12px;
}
.archive-callout h2 { margin-bottom: .45rem; font-size: 1.35rem; }
.archive-callout p:last-child { margin-bottom: 0; color: var(--muted); }
.archive-callout > :only-child { grid-column: 1 / -1; }
.filter-bar input {
  width: 100%; min-height: 44px; padding: .65rem .8rem;
  color: var(--ink); background: var(--white); border: 1px solid #ccd7dc; border-radius: 8px;
}
.list-grid { display: grid; gap: 1rem; }
.list-card {
  display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 1rem; align-items: center;
  padding: 1.2rem; border: 1px solid var(--gray); border-radius: 12px; background: var(--white);
}
.list-card h2, .list-card h3 { margin-bottom: .35rem; font-size: 1.1rem; }
.list-card p { margin-bottom: 0; color: var(--muted); font-size: .9rem; }
.list-card-actions { display: grid; gap: .55rem; justify-items: center; min-width: 150px; }
.list-card-actions .button { width: 100%; }
.citation-trigger {
  display: inline-flex; align-items: center; justify-content: center; gap: .3rem;
  padding: .4rem .55rem; color: var(--teal); background: transparent; border: 0;
  text-decoration: none; font-size: .82rem; font-weight: 800; cursor: pointer;
}
.citation-trigger span { font-size: 1.05rem; line-height: 1; }
.citation-trigger:hover, .citation-trigger:focus-visible { color: var(--blue); text-decoration: underline; }
.collection-footer { display: flex; justify-content: center; margin-top: 1.5rem; }
.publication-details { display: flex; flex-wrap: wrap; align-items: center; gap: .55rem 1rem; margin-top: .7rem; }
.publication-nature {
  display: inline-flex; align-items: center; min-height: 30px; padding: .3rem .65rem;
  color: var(--teal); background: var(--cyan); border-radius: 999px;
  font-size: .74rem; font-weight: 800;
}
.doi-link {
  display: inline-flex; align-items: center; gap: .45rem; color: var(--muted);
  text-decoration: none; font-size: .78rem; font-weight: 700;
}
.doi-link img { width: 28px; height: 28px; object-fit: contain; border-radius: 50%; }
.doi-link:hover { color: var(--teal); text-decoration: underline; }
.citation-dialog {
  width: min(calc(100% - 2rem), 760px); max-height: min(88vh, 760px); overflow: auto;
  padding: 0; color: var(--ink); background: var(--white); border: 0;
  border-radius: 16px; box-shadow: 0 24px 70px rgba(5,35,50,.28);
}
.citation-dialog::backdrop { background: rgba(8,28,39,.58); backdrop-filter: blur(3px); }
.citation-dialog-inner { padding: 1.5rem; }
.citation-dialog-heading {
  display: flex; justify-content: space-between; gap: 1rem; align-items: start;
  margin-bottom: 1.2rem; padding-bottom: 1rem; border-bottom: 1px solid var(--gray);
}
.citation-dialog-heading h2 { margin-bottom: 0; color: var(--blue); font-size: 1.45rem; }
.citation-close {
  width: 38px; height: 38px; flex: 0 0 38px; display: grid; place-items: center;
  padding: 0; color: var(--muted); background: var(--cyan); border: 0;
  border-radius: 50%; font-size: 1.55rem; line-height: 1; cursor: pointer;
}
.citation-close:hover { color: var(--white); background: var(--teal); }
.citation-format {
  padding: 1rem; background: var(--cyan); border: 1px solid #d8ebf1; border-radius: 10px;
}
.citation-format + .citation-format { margin-top: 1rem; }
.citation-format h3 { margin-bottom: .55rem; color: var(--teal); font-size: .86rem; letter-spacing: .08em; }
.citation-text {
  padding-left: 2rem; color: var(--ink) !important; font-size: .9rem !important;
  text-indent: -2rem; overflow-wrap: anywhere;
}
.citation-copy {
  margin-top: .8rem; padding: .45rem .7rem; color: var(--blue); background: var(--white);
  border: 1px solid var(--blue); border-radius: 7px; font-size: .76rem; font-weight: 800; cursor: pointer;
}
.citation-copy:hover { color: var(--white); background: var(--blue); }
.citation-note { margin: .9rem 0 0; color: var(--muted); font-size: .74rem; }
.book-list { display: grid; gap: 1.25rem; }
.book-detail {
  display: grid; grid-template-columns: 180px 1fr; gap: 1.5rem;
  padding: 1.4rem; border: 1px solid var(--gray); border-radius: var(--radius); background: var(--white);
}
.book-detail img { width: 180px; max-height: 270px; object-fit: cover; border-radius: 7px; }
.book-detail h2 { margin-bottom: .65rem; color: var(--blue); font-size: 1.27rem; }
.book-detail h2 span { font-weight: 650; }
.tag-list { display: flex; flex-wrap: wrap; gap: .45rem; margin: .8rem 0 1rem; padding: 0; list-style: none; }
.tag-list li { padding: .25rem .55rem; color: var(--teal); background: var(--cyan); border-radius: 999px; font-size: .76rem; font-weight: 700; }
.buy-online { padding-top: .85rem; border-top: 1px solid var(--gray); }
.buy-label {
  margin: 0 0 .55rem; color: var(--teal); font-size: .72rem;
  font-weight: 850; letter-spacing: .08em; text-transform: uppercase;
}
.cart-icon {
  position: relative; width: 17px; height: 15px; flex: 0 0 17px;
  display: inline-block; border-bottom: 2px solid currentColor;
  background: linear-gradient(currentColor,currentColor) 0 0 / 5px 2px no-repeat;
}
.cart-icon::before {
  content: ""; position: absolute; left: 3px; top: 2px; width: 11px; height: 7px;
  border: 2px solid currentColor; border-top: 0; transform: skew(-8deg);
}
.cart-icon::after {
  content: ""; position: absolute; left: 4px; bottom: -5px; width: 3px; height: 3px;
  background: currentColor; border-radius: 50%; box-shadow: 8px 0 0 currentColor;
}
.buy-online .button .cart-icon { color: var(--white); }
.book-development {
  display: grid; gap: 1.25rem; margin-top: 2rem; padding-top: 2.5rem;
  border-top: 2px solid rgba(0,109,91,.2);
}
.book-development-heading h2 { margin-bottom: 0; color: var(--teal); font-size: 1.65rem; }

.agenda-list { display: grid; gap: .75rem; }
.agenda-group + .agenda-group { margin-top: 3rem; padding-top: 2.2rem; border-top: 1px solid rgba(11,117,173,.2); }
.agenda-group > h3 {
  margin-bottom: 1rem; color: var(--blue); font-size: 1.25rem;
}
.agenda-group--pending {
  margin-top: 3rem; padding-top: 2.25rem; border-top: 1px solid rgba(11,117,173,.22);
}
.agenda-group--pending > h3 {
  width: fit-content; margin-bottom: 1.2rem; padding: .58rem .9rem .58rem 1rem;
  color: #a64c0d; background: #fff3e9; border-left: 4px solid var(--orange);
  border-radius: 0 8px 8px 0; font-size: 1.15rem; letter-spacing: .01em;
}
.agenda-group--ondemand {
  margin-bottom: 2.5rem; padding: 1.2rem; background: rgba(255,255,255,.75);
  border: 1px solid var(--gray); border-radius: var(--radius);
}
.agenda-filter {
  display: flex; align-items: center; gap: .8rem; margin: 0 0 1.5rem;
  padding: .9rem 1rem; background: var(--cyan); border: 1px solid var(--gray); border-radius: 10px;
}
.agenda-filter label { color: var(--teal); font-size: .82rem; font-weight: 800; }
.agenda-filter select {
  min-height: 40px; padding: .45rem 2.2rem .45rem .7rem; color: var(--ink);
  background: var(--white); border: 1px solid #c8d7dd; border-radius: 7px;
}
.agenda-period-filter {
  margin-bottom: 1.35rem; padding: 0 0 1rem; border-bottom: 1px solid rgba(11,117,173,.18);
}
.agenda-period-filter > span {
  display: block; margin-bottom: .65rem; color: var(--muted);
  font-size: .76rem; font-weight: 800;
}
.agenda-year-options {
  display: inline-flex; gap: .2rem; margin-bottom: .75rem; padding: .22rem;
  background: #e7eef1; border-radius: 9px;
}
.agenda-year-button {
  min-height: 34px; padding: .38rem .8rem; color: var(--muted); background: transparent;
  border: 0; border-radius: 7px; font: inherit; font-size: .76rem; font-weight: 850; cursor: pointer;
}
.agenda-year-button:hover, .agenda-year-button:focus-visible { color: var(--teal); background: var(--white); }
.agenda-year-button.is-active {
  color: var(--white); background: var(--teal); box-shadow: 0 2px 7px rgba(0,109,91,.18);
}
.agenda-period-options {
  display: flex; gap: .45rem; overflow-x: auto; padding: 0 0 .35rem;
  overscroll-behavior-inline: contain; scrollbar-width: thin; scrollbar-color: var(--blue-2) transparent;
}
.agenda-period-button {
  min-width: max-content; min-height: 38px; padding: .45rem .8rem; color: var(--blue); background: var(--white);
  border: 1px solid #c7d7dd; border-radius: 7px; font: inherit;
  font-size: .73rem; font-weight: 850; cursor: pointer;
}
.agenda-period-button small { margin-left: .18rem; color: inherit; font-size: .62rem; opacity: .72; }
.agenda-period-button:hover, .agenda-period-button:focus-visible {
  color: var(--white); background: var(--blue-2); border-color: var(--blue-2);
}
.agenda-period-button.is-active {
  color: var(--white); background: var(--teal); border-color: var(--teal);
}
.agenda-dated { padding-top: 1.75rem; border-top: 1px solid rgba(11,117,173,.18); }
.agenda-month {
  overflow: clip; background: var(--white); border: 1px solid #d5e2e7; border-radius: 9px;
}
.agenda-month + .agenda-month { margin-top: .65rem; }
.agenda-month summary {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: .68rem .85rem; color: var(--white); background: var(--teal);
  cursor: pointer; list-style: none;
}
.agenda-month summary::-webkit-details-marker { display: none; }
.agenda-month summary:hover { background: #005b4c; }
.agenda-month h4 {
  margin: 0; color: inherit; font-size: .82rem; letter-spacing: .06em; text-transform: uppercase;
}
.agenda-month-chevron {
  width: 9px; height: 9px; flex: 0 0 9px; border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor; transform: rotate(45deg) translate(-2px,-2px);
  transition: transform .18s ease;
}
.agenda-month[open] .agenda-month-chevron { transform: rotate(225deg) translate(-1px,-1px); }
.agenda-month > .agenda-list { padding: .75rem; background: #f8fbfc; }
.agenda-month[hidden] { display: none; }
.event-card {
  display: grid; grid-template-columns: 120px 104px minmax(0,1fr) auto;
  gap: 1rem; align-items: center; min-width: 0; padding: 1rem;
  border-left: 4px solid var(--blue-2); background: var(--white);
  border-radius: 0 10px 10px 0; box-shadow: 0 5px 18px rgba(13,57,82,.06);
}
.event-date {
  width: 96px; height: 96px; align-self: center; justify-self: center;
  display: flex; align-items: center; justify-content: center;
}
.date-badge {
  width: 96px; height: 96px; display: flex; flex-direction: column; align-items: center; justify-content: center;
  overflow: hidden; color: var(--ink); background: var(--white); border: 1px solid #d9e2e6; border-radius: 10px;
  box-shadow: 0 4px 12px rgba(13,57,82,.08);
  text-align: center; text-transform: uppercase;
}
.date-badge > span:first-child {
  width: 100%; padding: .28rem .35rem; color: var(--white); background: #c83e3a;
  font-size: .68rem; font-weight: 850; letter-spacing: .06em;
}
.date-badge strong { padding: .32rem .35rem 0; font-size: 1.5rem; line-height: 1; }
.date-badge small { padding-bottom: .25rem; color: var(--muted); font-size: .7rem; font-weight: 800; }
.date-badge em {
  margin: 0 .25rem .3rem; color: var(--orange); font-size: .53rem;
  font-style: normal; font-weight: 900; line-height: 1.15;
}
.date-badge--demand {
  gap: .05rem; padding: .55rem .35rem; color: var(--ink); background: var(--cyan);
  border-color: #c9e4ee; text-transform: none;
}
.date-badge--demand strong { padding: .1rem 0 0; color: var(--teal); font-size: .84rem; }
.date-badge--demand small { padding: 0; color: var(--muted); font-size: .62rem; }
.online-icon {
  position: relative; width: 34px !important; height: 34px; flex: 0 0 34px;
  padding: 0 !important; background: transparent !important; border: 2px solid var(--blue);
  border-radius: 50%;
}
.online-icon::before, .online-icon::after {
  content: ""; position: absolute; inset: 6px 2px; border: 1px solid var(--blue); border-radius: 50%;
}
.online-icon::after { inset: 15px 3px auto; height: 0; border-width: 1px 0 0; border-radius: 0; }
.online-icon i {
  position: absolute; z-index: 1; left: 12px; top: 9px; width: 0; height: 0;
  border-top: 6px solid transparent; border-bottom: 6px solid transparent; border-left: 9px solid var(--orange);
}
.date-status-pending {
  width: 96px; height: 96px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .38rem;
  padding: .55rem; color: var(--ink); background: #fffaf6; text-align: center;
  border: 1px dashed rgba(210,102,26,.42); border-radius: 10px;
}
.date-status-pending strong { max-width: 72px; color: var(--orange); font-size: .68rem; line-height: 1.15; }
.pending-calendar {
  position: relative; width: 28px; height: 27px; flex: 0 0 28px;
  border: 2px solid var(--orange); border-radius: 5px;
}
.pending-calendar::before {
  content: ""; position: absolute; inset: 5px 0 auto; border-top: 2px solid var(--orange);
}
.pending-calendar::after {
  content: "…"; position: absolute; inset: 5px 0 0; display: grid; place-items: center;
  color: var(--orange); font-size: .9rem; font-weight: 900;
}
.event-logo {
  width: 96px; height: 96px; padding: .25rem; justify-self: center;
  object-fit: contain; background: var(--white); border-radius: 8px;
}
.event-content h3 { margin-bottom: .25rem; font-size: 1rem; }
.event-content p { margin: 0; color: var(--muted); font-size: .82rem; }
.event-action { justify-self: end; }
.event-label {
  display: inline-flex; align-items: center; gap: .3rem; padding: .35rem .55rem; color: var(--muted);
  background: var(--gray); border-radius: 6px; font-size: .72rem; font-weight: 750;
}
.event-card--compact {
  grid-template-columns: 96px 96px; grid-template-rows: 96px minmax(110px,1fr) auto;
  gap: .65rem; align-items: start; border-left-width: 3px;
}
.event-card--compact .event-date { grid-column: 1; grid-row: 1; }
.event-card--compact .event-logo { grid-column: 2; grid-row: 1; width: 96px; height: 96px; padding: .25rem; }
.event-card--compact .event-content,
.event-card--compact .event-action { grid-column: 1 / -1; }
.event-card--compact .event-action { justify-self: start; }
.project-gallery {
  display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: .75rem; margin-top: 1.5rem;
}
.project-featured {
  display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 1rem; margin: 1.5rem 0 2rem;
}
.project-item { position: relative; margin: 0; overflow: hidden; background: var(--gray); border-radius: 8px; }
.project-item--featured { border: 2px solid var(--orange); box-shadow: var(--shadow); }
.featured-badge {
  position: absolute; z-index: 1; top: .5rem; left: .5rem; padding: .25rem .5rem;
  color: var(--white); background: var(--orange); border-radius: 999px; font-size: .65rem; font-weight: 850;
}
.project-item img { width: 100%; aspect-ratio: 16/9; object-fit: cover; transition: transform .2s ease; }
.project-item--featured {
  display: block; aspect-ratio: 16/9; min-height: 0; isolation: isolate; background: var(--white);
}
.project-item--featured img {
  position: absolute; z-index: 0; inset: 0;
  width: 100%; height: 100%; max-width: 100%; max-height: 100%; aspect-ratio: auto;
  display: block; padding: 1.2rem .9rem .75rem;
  object-fit: contain; object-position: center;
}
.project-item:hover img { transform: scale(1.025); }
.project-item--featured:hover img { transform: none; }
.career-timeline { display: grid; gap: 1rem; margin-top: 2rem; }
.career-card {
  display: grid; grid-template-columns: 210px minmax(0,1fr); gap: 1.4rem; align-items: center;
  overflow: hidden; background: var(--white); border: 1px solid var(--gray); border-radius: var(--radius);
}
.career-card img { width: 210px; height: 150px; object-fit: cover; }
.career-card > div { padding: 1rem 1.2rem 1rem 0; }
.career-card h3 { margin-bottom: .35rem; color: var(--blue); }
.career-card p:last-child { margin-bottom: 0; color: var(--muted); font-size: .9rem; }
.career-period {
  margin-bottom: .25rem; color: var(--teal); font-size: .78rem;
  font-weight: 850; letter-spacing: .08em; text-transform: uppercase;
}

@media (min-width: 781px) {
  .profile-summary .social-links {
    width: 100%; display: grid; grid-template-columns: 1fr; gap: .55rem;
  }
  .profile-summary .social-links .button { width: 100%; }
}

.contact-grid {
  display: grid; grid-template-columns: minmax(0,1.35fr) minmax(280px,.65fr);
  grid-template-areas: "intro ." "form channels"; gap: 1.35rem 2rem; align-items: start;
}
.contact-intro { grid-area: intro; }
.contact-intro p { max-width: 66ch; margin-bottom: 0; }
.contact-main { grid-area: form; min-width: 0; }
.contact-side {
  grid-area: channels; min-width: 0; align-self: stretch; display: grid;
  grid-template-rows: auto minmax(0,1fr); overflow: hidden; border-radius: var(--radius);
}
.contact-side-image {
  display: block; width: 100%; height: 100%; min-height: 0; object-fit: cover;
  border: 1px solid #e3e6e8; border-top: 0; border-radius: 0 0 var(--radius) var(--radius);
}
.contact-icons {
  display: flex; align-items: center; justify-content: flex-start; gap: 1rem;
}
.contact-icon {
  width: 54px; height: 54px; display: grid; place-items: center;
  color: var(--white); background: var(--blue); border: 1px solid var(--blue);
  border-radius: 50%; text-decoration: none; box-shadow: var(--shadow);
  transition: transform .18s ease, background-color .18s ease, border-color .18s ease;
}
.contact-icon:hover {
  color: var(--white); background: var(--teal); border-color: var(--teal);
  text-decoration: none; transform: translateY(-2px);
}
.contact-icon-mark { font-size: 1.45rem; line-height: 1; }
.contact-icon-mark--linkedin { font-size: 1.15rem; font-weight: 850; letter-spacing: -.05em; }
.contact-card {
  padding: 1.4rem; background: #f8f8f6; border: 1px solid #e3e6e8;
  border-radius: var(--radius) var(--radius) 0 0;
}
.contact-list { margin: 0; padding: 0; list-style: none; }
.contact-list li + li { margin-top: .55rem; }
.contact-list a {
  display: grid; grid-template-columns: 30px minmax(0,1fr) auto; gap: .65rem;
  align-items: center; padding: .45rem .5rem; border-radius: 8px; text-decoration: none;
}
.contact-list a:hover { background: var(--white); text-decoration: none; }
.channel-icon {
  width: 26px; height: 26px; display: grid; place-items: center; box-sizing: border-box;
  color: var(--white); background: var(--blue); border-radius: 50%; font-size: .7rem; font-weight: 850;
}
.channel-icon--image { object-fit: contain; background: var(--white); }
.channel-icon--scholar { color: var(--blue); background: transparent; object-fit: contain; font-size: .62rem; }
.channel-icon--orcid { background: #a6ce39; font-size: .62rem; }
.channel-icon--youtube { background: #e34b43; font-size: .65rem; padding-left: 2px; }
.contact-form {
  position: relative; display: grid; gap: 1rem; width: 100%; box-sizing: border-box; padding: 1.5rem;
  background: #f3f1ec; border: 1px solid #e1ddd3; border-radius: var(--radius);
}
.contact-form label { display: grid; width: 100%; gap: .4rem; color: var(--ink); font-weight: 750; }
.field-label { display: inline; }
.contact-form input, .contact-form select, .contact-form textarea {
  width: 100%; box-sizing: border-box; padding: .8rem .9rem;
  color: var(--ink); background: var(--white); border: 1px solid #a9cbd8;
  border-radius: 8px; font: inherit;
}
.contact-form textarea { min-height: 150px; resize: vertical; }
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus {
  outline: 3px solid rgba(39,135,199,.2); border-color: var(--blue);
}
.contact-form .input-invalid { border-color: #c94c3f; }
.required-mark { color: #b84335; }
.form-error { min-height: 1.2em; color: #a6372c; font-size: .82rem; font-weight: 700; }
.form-note { margin: 0; color: var(--muted); font-size: .82rem; }
.field-trap {
  position: absolute !important; left: -10000px !important; width: 1px !important;
  height: 1px !important; overflow: hidden !important;
}

.site-footer { padding: 1rem 0; color: rgba(255,255,255,.88); background: var(--teal); }
.footer-shell { display: grid; grid-template-columns: minmax(280px,.7fr) 1.3fr; gap: 2rem; align-items: center; }
.footer-contact {
  display: flex; align-items: center; gap: 1rem; color: var(--white); text-decoration: none;
}
.footer-contact-icon {
  width: 54px; height: 54px; flex: 0 0 54px; display: grid; place-items: center;
  border: 2px solid rgba(255,255,255,.75); border-radius: 50%; font-size: 1.35rem;
}
.footer-contact strong { display: block; text-transform: uppercase; letter-spacing: .08em; font-size: .82rem; }
.footer-contact small { display: block; max-width: 260px; margin-top: .15rem; line-height: 1.35; }
.footer-shell nav { padding-left: 2rem; border-left: 1px solid rgba(255,255,255,.45); }
.footer-nav {
  display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .7rem 1.4rem;
  margin: 0; padding: 0; list-style: none;
}
.footer-nav a { font-size: .82rem; }
.footer-nav a span { display: none; }
.site-footer a { color: var(--white); text-decoration: none; }
.site-footer a:hover, .site-footer a:focus-visible { color: var(--white); text-decoration: underline; }
.status-message { padding: 1rem; color: var(--muted); background: var(--cyan); border-radius: 8px; }

@media (max-width: 1040px) {
  .nav-list { gap: .85rem; }
  .nav-list a { font-size: .82rem; }
  .about-layout { grid-template-columns: 180px 1fr; }
  .credentials { grid-template-columns: 1fr 1fr; }
  .credential:last-child { grid-column: 1 / -1; }
  .card-grid { grid-template-columns: 1fr 1fr; }
  .book-carousel, .event-carousel, .article-carousel { grid-auto-columns: calc((100% - 1.25rem) / 2); }
  .project-gallery { grid-template-columns: repeat(4,minmax(0,1fr)); }
  .footer-shell { grid-template-columns: minmax(250px,.75fr) 1.25fr; gap: 1.25rem; }
  .footer-shell nav { padding-left: 1.25rem; }
  .footer-nav { gap: .55rem 1rem; }
}

@media (max-width: 780px) {
  .container { width: min(calc(100% - 1.5rem), var(--max)); }
  .section { padding: 3.5rem 0; }
  .nav-toggle { display: block; }
  .site-nav {
    position: absolute; inset: 68px 0 auto;
    display: block; max-height: 0; overflow: hidden; background: var(--white);
    border-bottom: 1px solid var(--gray); transition: max-height .25s ease;
  }
  .site-nav.is-open { max-height: 75vh; overflow-y: auto; }
  .nav-list { display: block; padding: .5rem 1rem 1rem; }
  .nav-list a { padding: .8rem .5rem; border-bottom: 1px solid var(--gray); }
  .language-switcher {
    gap: .65rem; margin: 0 1rem 1rem; padding: .9rem .5rem 0;
    border-left: 0; border-top: 1px solid var(--gray);
  }
  .language-switcher-label {
    position: static; width: auto; height: auto; margin-right: .25rem;
    overflow: visible; clip: auto; color: var(--muted); font-size: .74rem; font-weight: 800;
  }
  .language-link { width: 36px; height: 31px; }
  .language-link img { width: 28px; height: 19px; }
  .hero {
    min-height: 300px; padding-top: 125px; align-items: end;
    background:
      linear-gradient(0deg, rgba(8,28,39,.24) 0%, rgba(8,28,39,.04) 100%),
      url("../images/banner-flipped.jpg") 68% center / cover no-repeat;
  }
  .hero-copy {
    width: 100%; margin: 0 0 1rem; padding: 1.15rem;
    background: rgba(239,250,255,.94); border: 1px solid rgba(255,255,255,.72);
    border-radius: var(--radius); box-shadow: 0 12px 32px rgba(5,26,38,.24);
    backdrop-filter: blur(8px);
  }
  .hero h1 { font-size: clamp(1.55rem, 7vw, 2.2rem); overflow-wrap: anywhere; }
  .hero .eyebrow { color: #005f50; }
  .hero .lead { color: #334852; }
  .about-layout { grid-template-columns: 1fr; }
  .profile-summary { text-align: left; }
  .profile-photo { margin-left: 0; width: 84px; }
  .page--sobre .profile-photo { width: 104px; }
  .credentials { display: block; }
  .credential { margin-top: .8rem; padding: 0; border: 1px solid var(--gray); border-radius: 9px; }
  .credential h3 {
    margin: 0; padding: .8rem 2.7rem .8rem .85rem; position: relative; cursor: pointer;
  }
  .credential h3::after { content: "+"; position: absolute; right: 1rem; top: .7rem; font-size: 1.1rem; }
  .credential.is-open h3::after { content: "−"; }
  .credential ul { display: none; padding: 0 1.5rem 1rem 2rem; }
  .credential.is-open ul { display: block; }
  .thesis { padding: 1rem; }
  .thesis-title { font-size: 1rem; }
  .thesis-copy { font-size: .84rem; }
  .section-heading { align-items: start; }
  .section-heading .section-link { display: none; }
  .card-scroller {
    display: grid; grid-auto-flow: column; grid-auto-columns: calc(88% - 16px); gap: 1rem;
    align-items: start;
    overflow-x: auto; overscroll-behavior-inline: contain; scroll-snap-type: inline mandatory;
    padding: 0 1.25rem 1rem .1rem;
  }
  .card-scroller > * {
    min-height: 0; align-self: stretch; scroll-snap-align: start; box-shadow: var(--shadow);
  }
  .book-carousel > * { height: 350px; }
  .article-carousel > * { height: 335px; }
  .event-carousel > * { height: 415px; }
  .event-carousel { grid-auto-columns: 88% !important; gap: .75rem; }
  .event-carousel > * { width: 100%; }
  .article-carousel .card-body { min-height: 0; padding: 1rem; overflow: hidden; }
  .article-carousel .card p { margin-bottom: .9rem; }
  .article-carousel .card h3,
  .book-carousel .card h3,
  .event-carousel .event-content h3 {
    display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 3;
  }
  .article-carousel .card p,
  .book-carousel .card p,
  .event-carousel .event-content p {
    display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 4;
  }
  .book-carousel .book-card.compact { min-height: 0; }
  .event-carousel .event-card--compact {
    min-height: 0; grid-template-rows: 96px minmax(0,1fr) auto; overflow: hidden;
  }
  .event-carousel .event-card--compact .event-content { min-height: 0; }
  .event-carousel .event-card--compact .event-logo { width: 96px; height: 96px; }
  .carousel-arrow { width: 38px; height: 38px; }
  .carousel-arrow span { font-size: 1.8rem; }
  .carousel-arrow--previous { left: -.55rem; }
  .carousel-arrow--next { right: -.55rem; }
  .card-grid:not(.card-scroller) { grid-template-columns: 1fr; }
  .book-card { grid-template-columns: 115px 1fr; }
  .book-card .book-cover { min-height: 190px; }
  .book-card.compact { grid-template-columns: 100px 1fr; }
  .book-card.compact .book-cover { width: 100px; height: 180px; min-height: 0; }
  .tabs { overflow-x: auto; grid-template-columns: minmax(160px,1fr) minmax(190px,1fr); }
  .page-hero {
    min-height: 205px; padding: 1.25rem 0 1.1rem;
    background-position: 64% center;
  }
  .page-hero::before {
    background: linear-gradient(90deg, rgba(239,250,255,.98) 0%, rgba(239,250,255,.93) 68%, rgba(239,250,255,.52) 100%);
  }
  .book-detail { grid-template-columns: 110px 1fr; }
  .book-detail img { width: 110px; max-height: 190px; }
  .topic-grid-compact, .contact-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-areas: "intro" "form" "channels"; }
  .contact-side { align-self: start; grid-template-rows: auto auto; }
  .contact-side-image { height: auto; aspect-ratio: 3/1.45; }
  .event-card {
    grid-template-columns: 104px minmax(0,1fr); gap: .7rem;
  }
  .event-date, .event-logo { justify-self: center; }
  .event-logo { grid-column: 1; grid-row: 2; width: 96px; height: 96px; }
  .event-content { grid-column: 2; grid-row: 1 / span 2; }
  .event-action { grid-column: 2; justify-self: start; }
  .event-card--compact {
    grid-template-columns: 96px 96px; grid-template-rows: 96px minmax(110px,1fr) auto;
  }
  .event-card--compact .event-date { grid-column: 1; grid-row: 1; }
  .event-card--compact .event-logo { grid-column: 2; grid-row: 1; }
  .event-card--compact .event-content,
  .event-card--compact .event-action { grid-column: 1 / -1; grid-row: auto; }
  .project-gallery { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .career-card { grid-template-columns: 150px minmax(0,1fr); }
  .career-card img { width: 150px; height: 100%; min-height: 150px; }
  .contact-icons { justify-content: flex-start; }
  .archive-callout { grid-template-columns: 1fr; }
  .footer-shell { grid-template-columns: 1fr; gap: 1rem; justify-items: center; text-align: center; }
  .footer-contact { justify-content: center; }
  .footer-contact small { margin-inline: auto; }
  .footer-shell nav { padding: .85rem 0 0; border-left: 0; border-top: 1px solid rgba(255,255,255,.35); }
  .footer-shell nav { width: 100%; }
  .footer-nav { display: flex; flex-wrap: wrap; gap: .65rem 0; justify-content: center; }
  .footer-nav li { flex: 0 0 25%; display: flex; justify-content: center; }
  .footer-nav a {
    display: grid; place-items: center; gap: .15rem; text-align: center; font-size: .68rem; line-height: 1.2;
  }
  .footer-nav a span { display: block; font-size: 1rem; }
}

@media (max-width: 520px) {
  .header-inner { min-height: 62px; }
  .site-nav { inset-block-start: 62px; }
  .brand { font-size: 1.15rem; }
  .hero {
    min-height: 0;
    padding-top: clamp(205px, 58vw, 270px);
    background:
      linear-gradient(0deg, rgba(8,28,39,.14), rgba(8,28,39,0)),
      url("../images/banner-flipped.jpg") center top / 100% auto no-repeat,
      #0b181d;
  }
  .hero-copy { margin-top: -1.25rem; }
  .hero .hero-actions { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; }
  .hero .hero-actions .button { width: auto; min-height: 40px; padding: .55rem .65rem; font-size: .75rem; }
  .list-card { grid-template-columns: 1fr; }
  .list-card-actions { width: 100%; justify-items: stretch; }
  .citation-trigger { min-height: 42px; }
  .book-detail { grid-template-columns: 92px 1fr; padding: 1rem; gap: 1rem; }
  .book-detail img { width: 92px; max-height: 155px; }
  .book-detail .card-actions { grid-column: 1 / -1; }
  .project-gallery { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .project-featured { grid-template-columns: 1fr; }
  .career-card { grid-template-columns: 1fr; }
  .career-card img { width: 100%; height: 170px; }
  .career-card > div { padding: 0 1rem 1rem; }
  .agenda-filter { align-items: stretch; flex-direction: column; }
  .section--ondemand { padding: 1.8rem 0; }
  .agenda-year-options { display: flex; width: 100%; overflow-x: auto; }
  .agenda-year-button { flex: 1 0 auto; }
  .agenda-period-options { margin-right: -.75rem; padding-right: .75rem; }
  .footer-nav li { flex-basis: 33.333%; }
  .citation-dialog {
    width: 100%; max-width: none; max-height: 88vh; margin: auto 0 0;
    border-radius: 18px 18px 0 0;
  }
  .citation-dialog-inner { padding: 1.15rem; }
  .citation-dialog-heading h2 { font-size: 1.25rem; }
}

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