/* =========================================================
   Alliance Research Group
   Identidade: azul-marinho #001B56 e dourado #C9A200 da marca
   Tipografia: New Science (padrao visual do grupo)
   ========================================================= */

/* --- New Science: coloque os arquivos licenciados em /assets/fonts --- */
@font-face {
  font-family: 'New Science';
  src: url('fonts/NewScience-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'New Science';
  src: url('fonts/NewScience-Medium.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'New Science';
  src: url('fonts/NewScience-Semibold.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'New Science';
  src: url('fonts/NewScience-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* --- Fallback embutido, usado enquanto a New Science nao estiver instalada --- */
@font-face {
  font-family: 'Archivo Fallback';
  src: url('fonts/archivo-latin-wght-normal.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Archivo Fallback';
  src: url('fonts/archivo-latin-ext-wght-normal.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Plex Mono';
  src: url('fonts/ibm-plex-mono-latin-400-normal.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Plex Mono';
  src: url('fonts/ibm-plex-mono-latin-ext-400-normal.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Plex Mono';
  src: url('fonts/ibm-plex-mono-latin-500-normal.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Plex Mono';
  src: url('fonts/ibm-plex-mono-latin-ext-500-normal.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  color-scheme: light only;
  --navy: #001b56;
  --navy-deep: #000f31;
  --navy-mid: #0b2c74;
  --gold: #c9a200;
  --gold-light: #e2bf3d;
  --paper: #eceef3;
  --paper-2: #f6f7fa;
  --white: #ffffff;
  --text: #171d2c;
  --muted: #59627d;
  --line: #d5dae4;
  --line-dark: rgba(255, 255, 255, 0.16);

  --sans: 'New Science', 'NewScience', 'Archivo Fallback', 'Archivo', 'Helvetica Neue', Arial, sans-serif;
  --mono: 'Plex Mono', 'IBM Plex Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;

  --wrap: 1240px;
  --pad: clamp(1.25rem, 4vw, 3rem);
  --band: clamp(4rem, 8.5vw, 7.5rem);
  --radius: 3px;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }

h1, h2, h3, h4 {
  margin: 0;
  color: var(--navy);
  font-weight: 600;
  letter-spacing: -0.022em;
  line-height: 1.1;
  text-wrap: balance;
}

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

::selection { background: var(--gold); color: var(--navy-deep); }

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 2px;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--navy);
  color: #fff;
  padding: .75rem 1.25rem;
  z-index: 999;
}
.skip:focus { left: 0; }

/* ---------- layout ---------- */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--pad);
}

.band { padding-block: var(--band); }
.band-tight { padding-block: clamp(2.75rem, 5.5vw, 4.5rem); }

.band-navy {
  background: var(--navy);
  color: rgba(255, 255, 255, .9);
}
.band-navy h1, .band-navy h2, .band-navy h3, .band-navy h4 { color: #fff; }

.band-white { background: var(--white); }

.rail {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: clamp(1.75rem, 4vw, 4.5rem);
  align-items: start;
}
@media (max-width: 900px) {
  .rail { grid-template-columns: 1fr; gap: 1.5rem; }
}

.rail-label {
  font-family: var(--mono);
  font-size: .7rem;
  font-weight: 500;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--navy);
  padding-top: .45rem;
  border-top: 2px solid var(--gold);
  position: sticky;
  top: 6.5rem;
}
.band-navy .rail-label { color: var(--gold-light); }
@media (max-width: 900px) {
  .rail-label { position: static; padding-top: .4rem; }
}

.lede {
  font-size: clamp(1.06rem, 1.5vw, 1.28rem);
  line-height: 1.55;
  color: var(--muted);
  max-width: 60ch;
}
.band-navy .lede,
.hero .lede,
.page-hero .lede { color: rgba(255, 255, 255, .88); }

.section-head h2 {
  font-size: clamp(1.65rem, 3.1vw, 2.5rem);
  max-width: 22ch;
}
.section-head .lede { margin-top: 1.1rem; }

.mono {
  font-family: var(--mono);
  font-size: .74rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------- header ---------- */
.masthead {
  position: sticky;
  top: 0;
  z-index: 80;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
@supports ((backdrop-filter: blur(10px)) or (-webkit-backdrop-filter: blur(10px))) {
  .masthead {
    background: rgba(236, 238, 243, .92);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
  }
}
.masthead-inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  min-height: 68px;
}
.brand { display: inline-flex; align-items: center; flex: none; }
.brand img { height: 22px; width: auto; }

.nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: clamp(.9rem, 1.7vw, 1.7rem);
}
.nav a {
  text-decoration: none;
  font-size: .875rem;
  color: var(--navy);
  padding: .35rem 0;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
  transition: border-color .18s ease, opacity .18s ease;
}
.nav a:hover { border-bottom-color: var(--gold); }
.nav a[aria-current='page'] { border-bottom-color: var(--navy); font-weight: 600; }

.nav-utility {
  display: flex;
  align-items: center;
  gap: .55rem;
  padding-left: 1.1rem;
  border-left: 1px solid var(--line);
}
.lang-btn {
  font-family: var(--sans);
  font-size: .78rem;
  font-weight: 500;
  letter-spacing: .02em;
  background: none;
  border: 1px solid var(--line);
  color: var(--navy);
  padding: .34rem .55rem;
  cursor: pointer;
  border-radius: 2px;
  line-height: 1;
}
.lang-btn[aria-pressed='true'] { background: var(--navy); color: #fff; border-color: var(--navy); }
.lang-btn:hover { border-color: var(--navy); }

.icon-link {
  display: inline-flex;
  color: var(--navy);
  opacity: .75;
  transition: opacity .18s ease;
}
.icon-link:hover { opacity: 1; }
.icon-link svg { width: 18px; height: 18px; }

.menu-toggle {
  display: none;
  margin-left: auto;
  background: none;
  border: 1px solid var(--line);
  color: var(--navy);
  font-family: var(--sans);
  font-size: .875rem;
  font-weight: 500;
  padding: .55rem .9rem;
  min-height: 40px;
  cursor: pointer;
  border-radius: 4px;
}

@media (max-width: 1040px) {
  .nav {
    position: fixed;
    inset: 68px 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--paper-2);
    border-bottom: 1px solid var(--line);
    padding: .5rem var(--pad) 1.5rem;
    transform: translateY(-120%);
    transition: transform .28s ease;
    max-height: calc(100vh - 68px);
    max-height: calc(100dvh - 68px);
    overflow-y: auto;
  }
  .nav.open { transform: translateY(0); }
  .nav a { padding: .8rem 0; border-bottom: 1px solid var(--line); font-size: 1rem; }
  .nav a:hover { border-bottom-color: var(--line); }
  .nav-utility { border-left: 0; padding-left: 0; padding-top: 1rem; }
  .menu-toggle { display: block; }
}

/* ---------- hero da home ---------- */
.hero {
  position: relative;
  background: var(--navy);
  color: rgba(255, 255, 255, .9);
  overflow: hidden;
}
.hero-orbit {
  position: absolute;
  left: -6%;
  top: 17%;
  width: 116%;
  height: auto;
  pointer-events: none;
  z-index: 2;
}
.hero-grid {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
  padding-block: clamp(3.25rem, 6.5vw, 5.75rem) clamp(2.5rem, 5vw, 4rem);
}
.hero h1 {
  color: #fff;
  font-size: clamp(2.3rem, 4.9vw, 3.8rem);
  font-weight: 700;
  letter-spacing: -0.038em;
  line-height: 1.02;
  margin-bottom: 1.5rem;
  text-wrap: balance;
}
.hero h1 em {
  font-style: normal;
  color: var(--gold-light);
}
.hero .lede { max-width: 46ch; }
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  margin-top: 2rem;
}
.hero-figure {
  position: relative;
  margin: 0;
  margin-right: calc(-1 * ((100vw - min(100vw, var(--wrap))) / 2 + var(--pad)));
}
.hero-figure img {
  width: 100%;
  aspect-ratio: 4 / 3.15;
  object-fit: cover;
  filter: saturate(.78) contrast(1.03);
}
.hero-figure::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 27, 86, .34), rgba(0, 27, 86, .06) 55%, rgba(0, 27, 86, .42));
  mix-blend-mode: multiply;
}
.hero-figure figcaption {
  position: absolute;
  left: 0;
  bottom: 0;
  z-index: 2;
  background: var(--navy-deep);
  color: rgba(255, 255, 255, .8);
  font-family: var(--mono);
  font-size: .68rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: .5rem .85rem;
}
@media (max-width: 940px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-figure { margin-inline: calc(-1 * var(--pad)); }
  .hero-figure img { aspect-ratio: 16 / 10; }
}

.hero-facts-band { background: var(--navy); }
.hero-facts {
  position: relative;
  z-index: 3;
  border-top: 1px solid var(--line-dark);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.hero-facts div {
  padding: 1.5rem 1.25rem;
  border-right: 1px solid var(--line-dark);
  font-size: .875rem;
  line-height: 1.45;
  text-align: center;
  color: rgba(255, 255, 255, .6);
}
.hero-facts div:last-child { border-right: 0; }
.hero-facts-band .hero-facts { border-top: 0; }
.hero-facts strong {
  display: block;
  color: #fff;
  font-size: 1.02rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  margin-bottom: .2rem;
}
@media (max-width: 780px) {
  .hero-facts-band { background: var(--navy); }
.hero-facts { grid-template-columns: repeat(2, 1fr); }
  .hero-facts div:nth-child(2) { border-right: 0; }
  .hero-facts div:nth-child(-n+2) { border-bottom: 1px solid var(--line-dark); }
}

/* ---------- hero interno ---------- */
.page-hero {
  background: var(--navy);
  color: rgba(255, 255, 255, .9);
  padding-block: clamp(3rem, 6vw, 5.25rem) clamp(2.5rem, 5vw, 4rem);
}
.page-hero .kicker {
  font-family: var(--mono);
  font-size: .72rem;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 1.1rem;
}
.page-hero h1 {
  color: #fff;
  font-size: clamp(2.1rem, 4.8vw, 3.6rem);
  font-weight: 700;
  letter-spacing: -0.032em;
  max-width: 18ch;
}
.page-hero .lede { margin-top: 1.35rem; }

/* ---------- botoes ---------- */
/* Um único sistema: altura, raio, peso e espaçamento iguais em todo o site.
   Hierarquia por cor, não por forma. */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  font-family: var(--sans);
  font-size: .9375rem;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.005em;
  text-decoration: none;
  white-space: nowrap;
  padding: .78rem 1.25rem;
  min-height: 44px;
  border-radius: 4px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color .16s ease, border-color .16s ease, color .16s ease;
}
.btn .ic-arrow { transition: transform .18s ease; }
.btn:hover .ic-arrow { transform: translateX(3px); }

.btn-solid { background: var(--gold); color: var(--navy-deep); }
.btn-solid:hover { background: var(--gold-light); }
.btn-line { border-color: rgba(255, 255, 255, .32); color: #fff; }
.btn-line:hover { border-color: rgba(255, 255, 255, .7); background: rgba(255, 255, 255, .07); }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-mid); }
.btn-navy-line { border-color: var(--line); color: var(--navy); background: var(--white); }
.btn-navy-line:hover { border-color: var(--navy); }

.btn-sm {
  font-size: .84rem;
  padding: .5rem .8rem;
  min-height: 36px;
  gap: .4rem;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  font-size: .9375rem;
  font-weight: 500;
  color: var(--navy);
  text-decoration: none;
  border-bottom: 1px solid var(--gold);
  padding-bottom: .18rem;
}
.link-arrow .ic-arrow { transition: transform .18s ease; }
.link-arrow:hover .ic-arrow { transform: translateX(3px); }
.band-navy .link-arrow { color: #fff; }

/* pastilhas de filtro */
.filters { display: flex; flex-wrap: wrap; gap: .45rem; margin-bottom: 2rem; }
.filters button {
  font-family: var(--sans);
  font-size: .85rem;
  font-weight: 500;
  background: var(--white);
  border: 1px solid var(--line);
  color: var(--navy);
  padding: .48rem .85rem;
  min-height: 36px;
  cursor: pointer;
  border-radius: 999px;
  transition: background-color .16s ease, border-color .16s ease, color .16s ease;
}
.filters button:hover { border-color: var(--navy); }
.filters button b {
  font-weight: 400;
  color: var(--muted);
  margin-left: .3rem;
  font-variant-numeric: tabular-nums;
}
.filters button[aria-pressed='true'] { background: var(--navy); color: #fff; border-color: var(--navy); }
.filters button[aria-pressed='true'] b { color: rgba(255, 255, 255, .6); }

/* ---------- linhas de pesquisa ---------- */
.lines { border-top: 1px solid var(--line); }
.line-row {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr) minmax(0, 1.35fr);
  gap: clamp(1rem, 3vw, 3rem);
  padding-block: clamp(1.75rem, 3.4vw, 2.75rem);
  border-bottom: 1px solid var(--line);
  align-items: start;
}
.line-row .tag {
  font-family: var(--mono);
  font-size: .7rem;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: #94793a;
  padding-top: .45rem;
}
.line-row h3 { font-size: clamp(1.25rem, 2.1vw, 1.7rem); letter-spacing: -0.025em; }
.line-row p { color: var(--muted); margin: 0; }
@media (max-width: 860px) {
  .line-row { grid-template-columns: 1fr; gap: .6rem; }
}

/* ---------- painel RISE ---------- */
.rise-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.rise-logo { width: min(280px, 62%); height: auto; margin-bottom: 1.75rem; }
.rise-figures {
  display: flex;
  flex-wrap: wrap;
  gap: 2.25rem;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line-dark);
}
.rise-figures div strong {
  display: block;
  font-size: clamp(1.6rem, 2.6vw, 2.1rem);
  font-weight: 600;
  color: #fff;
  letter-spacing: -0.03em;
  line-height: 1;
}
.rise-figures div span {
  font-size: .84rem;
  color: rgba(255, 255, 255, .74);
}
@media (max-width: 900px) { .rise-panel { grid-template-columns: 1fr; } }

/* ---------- cartoes genericos ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.card-grid.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 900px) { .card-grid.cols-3 { grid-template-columns: 1fr; } }
@media (max-width: 620px) { .card-grid { grid-template-columns: 1fr; } }
.card-grid > article {
  background: var(--white);
  padding: clamp(1.4rem, 2.4vw, 2rem);
}
.card-grid h3 { font-size: 1.08rem; margin-bottom: .6rem; }
.card-grid p { color: var(--muted); font-size: .95rem; margin: 0; }
.card-grid .num {
  font-family: var(--mono);
  font-size: .7rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #94793a;
  display: block;
  margin-bottom: .7rem;
}
.band-navy .card-grid .num { color: var(--gold-light); }

/* variante centralizada, usada pontualmente (ex.: Estrutura, em Sobre) */
.cards-center > article { text-align: center; }
.cards-center .card-ic { display: flex; justify-content: center; }

/* ---------- timeline ---------- */
.timeline { border-top: 1px solid var(--line); }
.timeline-item {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: clamp(1rem, 3vw, 2.5rem);
  padding-block: 1.75rem;
  border-bottom: 1px solid var(--line);
}
.timeline-item .when {
  font-family: var(--mono);
  font-size: .78rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #94793a;
}
.timeline-item h3 { font-size: 1.15rem; margin-bottom: .5rem; }
.timeline-item p { color: var(--muted); margin: 0; }
@media (max-width: 720px) { .timeline-item { grid-template-columns: 1fr; gap: .4rem; } }

/* ---------- valores ---------- */
.values {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border-block: 1px solid var(--line);
}
@media (max-width: 900px) { .values { grid-template-columns: 1fr; } }

.chips { display: flex; flex-wrap: wrap; gap: .6rem; }
.chips span {
  font-size: .9rem;
  color: var(--navy);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: .55rem .9rem;
}
.chips span { border-radius: 999px; }
.chips span::before {
  content: attr(data-n);
  font-family: var(--mono);
  font-size: .7rem;
  color: var(--gold);
  margin-right: .5rem;
}
.values > div { background: var(--paper); padding: 1.5rem clamp(1rem, 2vw, 1.6rem); }
.values h3 { font-size: 1rem; margin-bottom: .4rem; }
.values p { font-size: .92rem; color: var(--muted); margin: 0; }

/* ---------- pessoas ---------- */
.lead-person {
  display: grid;
  grid-template-columns: minmax(0, 300px) minmax(0, 1fr);
  gap: clamp(1.75rem, 4vw, 3.5rem);
  align-items: start;
}
.lead-person img { aspect-ratio: 1; object-fit: cover; width: 100%; border-radius: 50%; }
.lead-person h2 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); margin-bottom: .35rem; }
@media (max-width: 780px) {
  .lead-person { grid-template-columns: 1fr; }
  .lead-person img { max-width: 260px; }
}

.people {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: clamp(1.5rem, 2.4vw, 2.1rem);
}
.people img { max-width: 116px; margin-inline: auto; }
.people-mini { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.people-mini img { max-width: 92px; margin-inline: auto; }
@media (max-width: 900px) { .people-mini { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.lead-person img { max-width: 220px; }
.person { display: flex; flex-direction: column; align-items: center; text-align: center; }
.person img {
  aspect-ratio: 1;
  object-fit: cover;
  width: 100%;
  border-radius: 50%;
  filter: grayscale(1) contrast(1.04);
  transition: filter .3s ease;
}
.person:hover img { filter: grayscale(0); }
.person h3 { font-size: 1.02rem; margin: 1rem 0 .2rem; }
.person .role {
  font-size: .82rem;
  color: var(--muted);
  margin-bottom: .6rem;
}
.person .bio {
  font-size: .9rem;
  line-height: 1.6;
  color: var(--muted);
  margin-bottom: .75rem;
  text-align: center;
  max-width: 34ch;
  margin-inline: auto;
}
.person a {
  margin-top: auto;
  align-self: center;
  font-size: .84rem;
  font-weight: 500;
  color: var(--navy);
  text-decoration: none;
  border-bottom: 1px solid var(--gold);
  padding-bottom: .1rem;
}
.person a:hover { border-bottom-width: 2px; }

.people-strip {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1rem;
}
.people-strip figure { margin: 0; }
.people-strip img { aspect-ratio: 1; object-fit: cover; filter: grayscale(1); border-radius: 50%; }
.people-strip figcaption {
  font-size: .8rem;
  color: rgba(255, 255, 255, .74);
  margin-top: .6rem;
  line-height: 1.35;
}
@media (max-width: 860px) { .people-strip { grid-template-columns: repeat(3, 1fr); } }

/* ---------- arquivo de publicacoes ---------- */
.year-rail {
  display: flex;
  gap: .35rem;
  align-items: flex-end;
  overflow-x: auto;
  padding-bottom: .5rem;
  margin-bottom: 3rem;
  scrollbar-width: thin;
}
.year-rail a {
  flex: 1 1 0;
  min-width: 52px;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: .5rem;
  padding-bottom: .55rem;
  border-bottom: 2px solid var(--line);
  transition: border-color .18s ease;
}
.year-rail a:hover { border-bottom-color: var(--navy); }
.year-rail .bar {
  background: var(--navy);
  border-top: 3px solid var(--gold);
  transition: background .18s ease;
}
.year-rail a:hover .bar { background: var(--navy-mid); }
.year-rail .yr {
  font-family: var(--mono);
  font-size: .72rem;
  color: var(--navy);
  letter-spacing: .04em;
}
.year-rail .ct {
  font-family: var(--mono);
  font-size: .66rem;
  color: var(--muted);
}

.year-group { scroll-margin-top: 5.5rem; counter-reset: ref; }
.ano { margin: 0; }
.ano-btn {
  display: flex;
  align-items: baseline;
  gap: .9rem;
  width: 100%;
  padding: 1rem .5rem 1rem 0;
  background: none;
  border: 0;
  border-bottom: 1px solid var(--line);
  font-family: inherit;
  color: var(--navy);
  text-align: left;
  cursor: pointer;
  transition: border-color .16s ease;
}
.ano-btn:hover { border-bottom-color: var(--navy); }
.ano-num {
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.ano-ct {
  font-size: .875rem;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.ano-btn .ic-chevron {
  margin-left: auto;
  align-self: center;
  opacity: .55;
  transition: transform .22s ease, opacity .16s ease;
}
.ano-btn:hover .ic-chevron { opacity: 1; }
.ano-btn[aria-expanded='true'] {
  border-bottom-width: 2px;
  border-bottom-color: var(--navy);
}
.ano-btn[aria-expanded='true'] .ic-chevron { transform: rotate(180deg); opacity: 1; }
.refs[hidden] { display: none; }
.year-group .refs { margin-bottom: 2.5rem; }

.arquivo-barra {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  padding-bottom: 1.25rem;
}
.arquivo-barra p { margin: 0; }
#abrir-todos[aria-pressed='true'] .ic-chevron { transform: rotate(180deg); }
#abrir-todos .ic-chevron { transition: transform .22s ease; }

/* ---------- icones proprios ---------- */
.ic { flex: none; display: block; }
.ic-arrow { flex: none; display: block; }
.ic-fato { width: 20px; height: 20px; color: var(--gold-light); margin: 0 auto .8rem; }
.card-ic { display: block; color: var(--navy); margin-bottom: 1.1rem; }
.card-ic .ic { width: 24px; height: 24px; }
.band-navy .card-ic { color: var(--gold-light); }

/* ---------- hero de fundo inteiro ---------- */
.hero-full {
  padding-block: 0;
  background-color: var(--navy-deep);
  background-image:
    linear-gradient(101deg,
      rgba(0, 15, 49, .97) 0%,
      rgba(0, 20, 64, .93) 34%,
      rgba(0, 27, 86, .7) 62%,
      rgba(20, 46, 108, .58) 84%,
      rgba(201, 162, 0, .2) 100%),
    linear-gradient(180deg, rgba(0, 15, 49, .4), rgba(0, 15, 49, 0) 42%, rgba(0, 15, 49, .6)),
    url('../images/group/hcpa-hospital.webp');
  background-repeat: no-repeat;
  background-size: cover, cover, cover;
  background-position: center, center, center 60%;
}
.hero-inner {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: clamp(400px, 56vh, 545px);
  padding-block: clamp(2.75rem, 5.5vw, 4.25rem);
  max-width: min(var(--wrap), 100%);
}
.hero-inner .lede { max-width: 52ch; }
.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  font-family: var(--mono);
  font-size: .72rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 1.5rem;
}
.hero-kicker .ic { width: 18px; height: 18px; }
@media (max-width: 720px) {
  .hero-full {
    background-image:
      linear-gradient(168deg, rgba(0, 15, 49, .93) 0%, rgba(0, 27, 86, .84) 58%, rgba(201, 162, 0, .22) 100%),
      url('../images/group/hcpa-hospital.webp');
    background-size: cover, cover;
    background-position: center, center 55%;
  }
  .hero-inner { min-height: 0; padding-block: 3rem 2.5rem; }
}

/* ---------- atalhos da home ---------- */
.tiles {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.tile {
  position: relative;
  background: var(--white);
  padding: 1.5rem 1.35rem 3rem;
  text-decoration: none;
  color: var(--text);
  display: block;
  transition: background .2s ease, color .2s ease;
}
.tile-ic { display: block; color: var(--navy); margin-bottom: 1.5rem; transition: color .2s ease; }
.tile-ic .ic { width: 26px; height: 26px; }
.tile-ic { color: var(--navy); }
.tile h3 { font-size: 1rem; margin-bottom: .4rem; transition: color .2s ease; }
.tile p { font-size: .85rem; color: var(--muted); margin: 0; transition: color .2s ease; }
.tile-go {
  position: absolute;
  left: 1.35rem;
  bottom: 1.35rem;
  color: var(--gold);
  display: inline-flex;
  transition: transform .2s ease;
}
.tile:hover { background: var(--navy); color: #fff; }
.tile:hover h3 { color: #fff; }
.tile:hover p { color: rgba(255, 255, 255, .7); }
.tile:hover .tile-ic { color: var(--gold-light); }
.tile:hover .tile-go { transform: translateX(5px); }
@media (max-width: 1000px) { .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) {
  .tiles { grid-template-columns: 1fr; }
  .tile {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    column-gap: 1rem;
    padding: 1.1rem 1.15rem;
  }
  .tile-ic { margin-bottom: 0; }
  .tile h3 { margin-bottom: .15rem; }
  .tile p { grid-column: 2; }
  .tile-ic { grid-row: 1 / span 2; }
  .tile-go { position: static; grid-column: 3; grid-row: 1 / span 2; }
}

/* ---------- livros ---------- */
.band-books .kicker {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  font-family: var(--mono);
  font-size: .72rem;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 1.1rem;
}
.band-books .kicker .ic { width: 18px; height: 18px; }
.band-books h1 {
  color: #fff;
  font-size: clamp(1.9rem, 4vw, 3.1rem);
  font-weight: 700;
  letter-spacing: -0.032em;
  max-width: 20ch;
}
.band-books .lede { margin-top: 1.2rem; }

.books {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: clamp(.85rem, 1.6vw, 1.5rem);
}
.book { text-decoration: none; color: inherit; display: block; }
.book-cover { display: block; overflow: hidden; }
.book-cover img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  box-shadow: 0 16px 34px rgba(0, 0, 0, .38);
  transition: transform .3s cubic-bezier(.22, .61, .36, 1);
}
.book:hover .book-cover img { transform: translateY(-6px); }
.book-body { display: block; padding-top: 1.1rem; }
.book-meta {
  font-family: var(--mono);
  font-size: .68rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  display: block;
  color: var(--gold-light);
  margin-bottom: .55rem;
}
.book-org, .book-go { display: block; font-size: .82rem; }
.book h3 { font-size: .95rem; color: #fff; line-height: 1.35; margin-bottom: .5rem; }
.book-org { color: rgba(255, 255, 255, .7); }
.book-go {
  color: #fff;
  font-weight: 500;
  margin-top: .95rem;
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  border-bottom: 1px solid var(--gold);
  padding-bottom: .15rem;
}
.book-go .ic { width: 15px; height: 15px; }
.book:hover .book-go { color: var(--gold-light); }
@media (max-width: 1080px) { .books { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 620px) { .books { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- filtro por tema ---------- */
.filters-tema { margin-bottom: 2.25rem; }

/* ---------- referencias ---------- */
.publication-archive { counter-reset: ref; }
.refs { list-style: none; margin: 0; padding: 0; }
.refs li {
  position: relative;
  padding: 1.3rem 1rem 1.3rem 3.4rem;
  margin-left: -1rem;
  border-bottom: 1px solid var(--line);
  transition: background-color .16s ease;
}
.refs li:hover { background: rgba(255, 255, 255, .55); }
.band-white .refs li:hover { background: var(--paper-2); }
.refs li::before {
  counter-increment: ref;
  content: counter(ref, decimal-leading-zero);
  position: absolute;
  left: 1rem;
  top: 1.5rem;
  font-family: var(--mono);
  font-size: .8rem;
  color: #98a1b6;
}
.refs h4 {
  font-size: 1.02rem;
  line-height: 1.4;
  letter-spacing: -0.012em;
  margin-bottom: .55rem;
  max-width: 72ch;
}
.ref-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .45rem .8rem;
  font-size: .84rem;
  color: var(--muted);
  margin: 0 0 .95rem;
}
.ref-venue { font-variant-numeric: tabular-nums; }
.ref-temas { display: inline-flex; flex-wrap: wrap; gap: .4rem; }
.ref-temas span {
  background: var(--paper);
  border: 1px solid var(--line);
  color: var(--navy);
  border-radius: 999px;
  padding: .16rem .55rem;
  font-size: .76rem;
  line-height: 1.5;
}
.band-white .ref-temas span { background: var(--paper-2); }
.ref-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .35rem 1.15rem;
}
.ref-act {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-family: var(--sans);
  font-size: .875rem;
  font-weight: 500;
  line-height: 1.2;
  color: var(--navy);
  background: none;
  border: 0;
  padding: .35rem 0;
  cursor: pointer;
  text-decoration: none;
}
.ref-act span {
  border-bottom: 1px solid transparent;
  padding-bottom: .1rem;
  transition: border-color .16s ease;
}
.ref-act:hover span { border-bottom-color: var(--gold); }
.ref-act .ic-chevron { transition: transform .2s ease; opacity: .7; }
.ref-act[aria-expanded='true'] .ic-chevron { transform: rotate(180deg); }
.ref-act .ic { opacity: .65; }
.ref-act-link { position: relative; padding-left: 1.15rem; }
.ref-act-link::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  width: 1px;
  height: 15px;
  margin-top: -7.5px;
  background: var(--line);
}
.ref-authors {
  margin: .85rem 0 .2rem;
  font-size: .875rem;
  line-height: 1.6;
  color: var(--muted);
  background: var(--paper-2);
  border-left: 2px solid var(--gold);
  padding: .8rem 1rem;
  max-width: 80ch;
}
.band-white .ref-authors { background: var(--paper); }
.year-group.vazio { display: none; }
.year-rail a.vazio { opacity: .28; pointer-events: none; }

/* ---------- projetos ---------- */
.works { border-top: 1px solid var(--line); }
.work {
  display: grid;
  grid-template-columns: 3.5rem minmax(0, 1fr) 9.5rem;
  gap: clamp(.75rem, 2vw, 2rem);
  padding-block: 1.6rem;
  border-bottom: 1px solid var(--line);
  align-items: start;
}
.work .idx {
  font-family: var(--mono);
  font-size: .8rem;
  color: #98a1b6;
  padding-top: .25rem;
}
.work h3 { font-size: 1.06rem; line-height: 1.35; letter-spacing: -0.012em; }
.work .book-of {
  font-family: var(--mono);
  font-size: .68rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: .5rem;
}
.work .venue {
  font-size: .82rem;
  color: var(--muted);
  margin-top: .35rem;
  font-style: italic;
}
.work .who { font-size: .88rem; color: var(--muted); margin-top: .7rem; }
.work .who a { color: var(--navy); text-decoration: none; border-bottom: 1px solid var(--line); }
.work .who a:hover { border-bottom-color: var(--gold); }
.work .fund {
  font-size: .82rem;
  color: var(--muted);
  margin-top: .6rem;
  padding-left: .8rem;
  border-left: 2px solid var(--gold);
}
.work .side { display: flex; flex-direction: column; gap: .5rem; align-items: flex-start; }
.status {
  font-size: .78rem;
  font-weight: 500;
  padding: .22rem .6rem;
  border-radius: 999px;
  white-space: nowrap;
}
.status-producao { background: #e3e8f4; color: var(--navy); }
.status-submetido { background: #fbf0cd; color: #6b5500; }
.status-aceito { background: var(--navy); color: #fff; }
.status-revisao { background: #e6e6e6; color: #40485c; }
.status-publicado { background: var(--gold); color: var(--navy-deep); }
.inst {
  font-size: .78rem;
  color: var(--muted);
}
@media (max-width: 820px) {
  .work { grid-template-columns: 2.5rem minmax(0, 1fr); }
  .work .side { grid-column: 2; flex-direction: row; flex-wrap: wrap; align-items: center; margin-top: .3rem; }
}


/* ---------- equipe agrupada por etapa ---------- */
.team-list { margin-top: 2.5rem; }
.team-group + .team-group { margin-top: clamp(2.75rem, 5vw, 4rem); }
.team-group-title {
  display: flex;
  align-items: baseline;
  gap: .9rem;
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  padding-bottom: .7rem;
  margin-bottom: 2rem;
  border-bottom: 1px solid var(--line);
}
.team-group-title span {
  font-size: .875rem;
  font-weight: 400;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.person .bio[hidden] { display: none; }
.bio-toggle {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  margin: 0 auto .9rem;
  padding: .3rem .2rem;
  background: none;
  border: 0;
  font-family: inherit;
  font-size: .84rem;
  font-weight: 500;
  color: var(--navy);
  cursor: pointer;
}
.bio-toggle-ic {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 1.5px solid var(--gold);
  color: var(--navy);
  flex: none;
  transition: background-color .18s ease, transform .22s ease;
}
.bio-toggle-ic .ic-mais { transition: transform .22s ease; }
.bio-toggle span:last-child { border-bottom: 1px solid var(--gold); padding-bottom: .1rem; }
.bio-toggle:hover .bio-toggle-ic { background: var(--gold); }
.bio-toggle[aria-expanded='true'] .bio-toggle-ic { background: var(--navy); border-color: var(--navy); }
.bio-toggle[aria-expanded='true'] .bio-toggle-ic { color: #fff; }
.bio-toggle[aria-expanded='true'] .ic-mais { transform: rotate(45deg); }
.person-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: .35rem 1rem;
  margin-top: auto;
  padding-top: .5rem;
}
.person-links a {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  font-size: .84rem;
  font-weight: 500;
  color: var(--navy);
  text-decoration: none;
  border-bottom: 1px solid var(--gold);
  padding-bottom: .1rem;
}
.person-links a .ic { opacity: .6; }
.person-links a:hover { border-bottom-width: 2px; }

/* ---------- premios e imprensa ---------- */
.awards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: clamp(1.5rem, 3vw, 2.5rem);
}
.award img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.award .meta {
  font-size: .82rem;
  color: var(--muted);
  margin: 1.1rem 0 .5rem;
}
.award h3 { font-size: 1.02rem; line-height: 1.4; }

.press { border-top: 1px solid var(--line); }
.press-item {
  display: grid;
  grid-template-columns: 9rem minmax(0, 1fr) auto;
  gap: clamp(.75rem, 2vw, 2rem);
  padding-block: 1.35rem;
  border-bottom: 1px solid var(--line);
  align-items: baseline;
}
.press-item .src {
  font-size: .84rem;
  color: var(--muted);
  line-height: 1.45;
}
.press-item .src b { color: var(--navy); font-weight: 600; display: block; margin-bottom: .1rem; }
.press-item h3 { font-size: 1.02rem; line-height: 1.4; letter-spacing: -0.012em; }
.press-item .outs { display: flex; flex-wrap: wrap; gap: .75rem; }
.press-item .outs a {
  font-size: .84rem;
  font-weight: 500;
  color: var(--navy);
  text-decoration: none;
  border-bottom: 1px solid var(--gold);
  padding-bottom: .1rem;
  white-space: nowrap;
}
.press-item .outs a:hover { border-bottom-width: 2px; }
@media (max-width: 820px) {
  .press-item { grid-template-columns: 1fr; gap: .5rem; }
}

/* ---------- videos ---------- */
.embed {
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--navy-deep);
  overflow: hidden;
}
.embed iframe, .embed img { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; object-fit: cover; }
.embed button {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  background: none;
  cursor: pointer;
  display: grid;
  place-items: center;
}
.embed button svg {
  width: 58px;
  height: 58px;
  position: relative;
  filter: drop-shadow(0 6px 18px rgba(0, 0, 0, .38));
  transition: transform .18s ease;
}
.embed button:hover svg { transform: scale(1.07); }
.featured-video {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  gap: clamp(1.75rem, 4vw, 3.5rem);
  align-items: center;
}
@media (max-width: 880px) { .featured-video { grid-template-columns: 1fr; } }

.videos {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: clamp(1.25rem, 2.5vw, 2rem);
}
.videos h3 { font-size: .98rem; margin: .9rem 0 .45rem; line-height: 1.35; }
.videos .n {
  font-family: var(--mono);
  font-size: .72rem;
  letter-spacing: .06em;
  color: #98a1b6;
}
.videos a {
  font-size: .84rem;
  font-weight: 500;
  color: var(--navy);
  text-decoration: none;
  border-bottom: 1px solid var(--gold);
  padding-bottom: .1rem;
}
.videos a:hover { border-bottom-width: 2px; }


/* ---------- mural de fotos ---------- */
.galeria {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(.6rem, 1.2vw, 1rem);
}
.foto {
  position: relative;
  display: block;
  padding: 0;
  border: 0;
  background: var(--navy-deep);
  cursor: zoom-in;
  overflow: hidden;
  border-radius: 3px;
}
.foto img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  filter: saturate(.9);
  transition: transform .45s cubic-bezier(.22, .61, .36, 1), opacity .25s ease;
}
.foto::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 15, 49, 0) 45%, rgba(0, 15, 49, .82));
  opacity: .85;
  transition: opacity .25s ease;
  pointer-events: none;
}
.foto-legenda {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  padding: .85rem .9rem;
  text-align: left;
  font-family: var(--sans);
  font-size: .82rem;
  font-weight: 500;
  line-height: 1.3;
  color: #fff;
}
.foto:hover img { transform: scale(1.05); }
.foto:hover::after { opacity: 1; }
@media (max-width: 900px) { .galeria { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .galeria { grid-template-columns: 1fr; } }

/* ---------- foto ampliada ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(.5rem, 2vw, 1.5rem);
  padding: clamp(1rem, 4vw, 3rem);
  background: rgba(0, 12, 40, .96);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.lightbox[hidden] { display: none; }
.lightbox-quadro { margin: 0; text-align: center; }
.lightbox-quadro img {
  max-width: 100%;
  max-height: 76vh;
  width: auto;
  margin-inline: auto;
  border-radius: 3px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .5);
}
.lightbox-quadro figcaption {
  margin-top: 1.1rem;
  font-size: .92rem;
  color: rgba(255, 255, 255, .78);
  max-width: 62ch;
  margin-inline: auto;
}
.lightbox button {
  background: none;
  border: 1px solid rgba(255, 255, 255, .26);
  color: #fff;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: border-color .16s ease, background-color .16s ease;
}
.lightbox button:hover { border-color: #fff; background: rgba(255, 255, 255, .1); }
.lightbox-ant .ic-chevron { transform: rotate(90deg); }
.lightbox-prox .ic-chevron { transform: rotate(-90deg); }
.lightbox-fechar {
  position: absolute;
  top: clamp(1rem, 3vw, 2rem);
  right: clamp(1rem, 3vw, 2rem);
}

@media (max-width: 640px) {
  .lightbox { grid-template-columns: 1fr; grid-template-rows: minmax(0, 1fr) auto; padding-top: 4.5rem; }
  .lightbox-quadro { grid-row: 1; }
  .lightbox-nav { position: static; }
  .lightbox-ant { grid-column: 1; grid-row: 2; justify-self: start; }
  .lightbox-prox { grid-column: 1; grid-row: 2; justify-self: end; }
  .lightbox-quadro img { max-height: 62vh; }
}

/* ---------- manual ---------- */
.chapters {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.chapters a {
  background: var(--white);
  padding: .95rem 1.1rem;
  text-decoration: none;
  display: flex;
  gap: .8rem;
  align-items: baseline;
  color: var(--text);
  font-size: .93rem;
  transition: background .18s ease;
}
.chapters a:hover { background: var(--paper-2); }
.chapters b { font-family: var(--mono); font-size: .74rem; color: #98a1b6; font-weight: 400; }
@media (max-width: 980px) { .chapters { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .chapters { grid-template-columns: 1fr; } }

.quote {
  font-size: clamp(1.25rem, 2.6vw, 1.9rem);
  line-height: 1.35;
  letter-spacing: -0.025em;
  color: #fff;
  max-width: 24ch;
  margin: 0;
  font-weight: 500;
}
.quote + cite {
  display: block;
  margin-top: 1.5rem;
  font-size: .88rem;
  font-style: normal;
  color: rgba(255, 255, 255, .76);
}

/* ---------- destaque / callouts ---------- */
.spotlight {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(1.75rem, 4vw, 4rem);
  align-items: center;
}
.spotlight img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
@media (max-width: 880px) { .spotlight { grid-template-columns: 1fr; } }

.notes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.notes a, .notes > div {
  background: var(--white);
  padding: 1.6rem;
  text-decoration: none;
  color: var(--text);
  display: block;
  transition: background .18s ease;
}
.notes a:hover { background: var(--paper-2); }
.note-go {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  margin-top: .95rem;
  font-size: .84rem;
  font-weight: 500;
  color: var(--navy);
  border-bottom: 1px solid var(--gold);
  padding-bottom: .12rem;
}
.note-go .ic { width: 15px; height: 15px; }
.notes .kind {
  font-family: var(--mono);
  font-size: .68rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #94793a;
  display: block;
  margin-bottom: .85rem;
}
.notes h3 { font-size: 1rem; line-height: 1.4; margin-bottom: .6rem; }
.notes .where { font-size: .85rem; color: var(--muted); }

.regions { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.5rem; }
.regions span {
  font-family: var(--mono);
  font-size: .7rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  border: 1px solid var(--line-dark);
  color: rgba(255, 255, 255, .82);
  padding: .45rem .8rem;
  border-radius: 2px;
}

/* ---------- rodape ---------- */
.foot {
  background: var(--navy-deep);
  color: rgba(255, 255, 255, .8);
  padding-block: clamp(3rem, 6vw, 4.5rem) 2rem;
  font-size: .92rem;
}
.foot-top {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr));
  gap: clamp(1.75rem, 4vw, 3rem);
  padding-bottom: 2.75rem;
  border-bottom: 1px solid var(--line-dark);
}
.foot img.wordmark { height: 26px; width: auto; margin-bottom: 1.25rem; }
.foot h4 {
  font-family: var(--mono);
  font-size: .68rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 1rem;
  font-weight: 500;
}
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.foot a { color: rgba(255, 255, 255, .9); text-decoration: none; }
.foot a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.foot-base {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  padding-top: 1.5rem;
  font-size: .82rem;
  color: rgba(255, 255, 255, .62);
}
@media (max-width: 860px) { .foot-top { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .foot-top { grid-template-columns: 1fr; } }

/* ---------- paragrafos justificados (uso pontual) ---------- */
/* Em coluna estreita, texto justificado sem uma boa hifenizacao abre
   rios de espaco em branco entre as palavras. Por isso a justificacao
   só se aplica a partir de uma largura confortável; abaixo disso o
   texto volta a alinhar à esquerda, mais legível em telas de celular. */
.justificado {
  text-align: justify;
  hyphens: auto;
  -webkit-hyphens: auto;
  text-justify: inter-word;
}
@media (max-width: 700px) {
  .justificado { text-align: left; hyphens: none; -webkit-hyphens: none; }
}

/* ---------- animacao de entrada ---------- */
.rise-in {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .6s cubic-bezier(.22, .61, .36, 1), transform .6s cubic-bezier(.22, .61, .36, 1);
}
.rise-in.shown { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .rise-in { opacity: 1; transform: none; transition: none; }
  .person { display: flex; flex-direction: column; align-items: center; text-align: center; }
.person img { transition: none; }
}

/* ---------- widget de traducao do Google ----------
   O widget injeta uma barra fixa no topo e desloca o body. Estas regras
   neutralizam a interferência sem impedir a tradução do texto. */
#google_translate_element,
.goog-te-banner-frame,
.goog-te-gadget,
.goog-logo-link,
#goog-gt-tt,
.goog-te-balloon-frame { display: none !important; }
.skiptranslate > iframe { display: none !important; visibility: hidden !important; height: 0 !important; }
body { top: 0 !important; position: static !important; }
html { margin-top: 0 !important; }
font[style] { background: none !important; box-shadow: none !important; color: inherit !important; }
.goog-text-highlight { background: none !important; box-shadow: none !important; }

/* ---------------------------------------------------------------
   Rede de segurança para navegadores antigos.
   Sem aspect-ratio, as imagens recortadas perdem altura e a página
   desmonta. Aqui elas recebem altura explícita.
   --------------------------------------------------------------- */
@supports not (aspect-ratio: 1 / 1) {
  .person img,
  .lead-person img,
  .people-strip img { height: 116px; }
  .lead-person img { height: 220px; }
  .books img,
  .book-cover img { height: 260px; }
  .award img { height: 220px; }
  .foto img { height: 190px; }
  .spotlight img { height: 340px; }
  .embed { height: 0; padding-bottom: 56.25%; }
}

/* Modo de alto contraste do Windows: mantém contornos e legibilidade. */
@media (forced-colors: active) {
  .btn,
  .ref-act,
  .filters button,
  .tile,
  .foto { forced-color-adjust: none; }
  .btn,
  .filters button { border: 1px solid ButtonBorder; }
  .hero-full { background-image: none; background-color: Canvas; }
  .band-navy,
  .page-hero,
  .foot { background: Canvas; color: CanvasText; }
}
