:root {
  --ink: #14123A;            /* azul estrutural */
  --deep: #14123A;           /* alias p/ usos como bg dark */
  --ink-2: #233269;          /* azul acadêmico */
  --ink-3: #3B378B;          /* azul institucional */
  --aqua: #73CBD5;           /* azul contemporâneo */
  --orange: #F39215;         /* laranja documentado */
  --gray: #DEDEDE;           /* cinza neutro */
  --paper: #DEDEDE;          /* cinza neutro técnico — fundo */
  --paper-2: #CFCFCF;
  --card: #FFFFFF;
  --line: #C2C2C8;
  --line-strong: #A8A8B0;
  --muted: #4A4F66;
  --up: #2F7D4F;
  --down: #B23A48;

  --font-sans: "Helvetica Neue", Helvetica, "Inter", Arial, sans-serif;
  --font-mono: "JetBrains Mono", "IBM Plex Mono", ui-monospace, monospace;

  --radius: 6px;
  --radius-lg: 10px;
  --maxw: 1280px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

button { font-family: inherit; cursor: pointer; }
a { color: inherit; text-decoration: none; }

/* ─── Typography helpers ─── */
.mono { font-family: var(--font-mono); font-feature-settings: "tnum"; }
.eyebrow {
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-3);
}

/* ─── Layout ─── */
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 32px; }
.section { padding: 88px 0; }
.section-tight { padding: 56px 0; }

/* ─── Nav ─── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; height: 68px;
  background: rgba(222, 222, 222, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  z-index: 50;
  transition: background .3s ease, border-color .3s ease, box-shadow .3s ease;
}
.nav.scrolled { background: rgba(222, 222, 222, 0.98); box-shadow: 0 1px 0 var(--line); }
.nav-inner {
  max-width: var(--maxw); margin: 0 auto; padding: 0 32px;
  height: 100%; display: flex; align-items: center; gap: 36px;
}
.nav-brand {
  display: flex; align-items: center; gap: 12px;
  font-weight: 700; font-size: 16px; letter-spacing: -0.005em;
  color: var(--ink);
}
.nav-brand-mark {
  height: 34px; width: auto; border-radius: 0;
  object-fit: contain;
  transition: transform .25s ease;
  display: block;
}
.nav-brand:hover .nav-brand-mark { transform: scale(1.04); }
.nav-brand-sub { font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); font-weight: 500; margin-top: 3px; }
.nav-links { display: flex; gap: 2px; margin-left: auto; align-items: center; }
.nav-link {
  position: relative;
  padding: 10px 14px; font-size: 14px; font-weight: 500;
  color: var(--ink); opacity: .78;
  transition: opacity .2s ease, color .2s ease;
}
.nav-link:hover { opacity: 1; color: var(--ink-3); }
.nav-link.active { opacity: 1; color: var(--ink-3); font-weight: 700; }
.nav-link.active::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 2px; height: 2px;
  background: var(--ink-3);
  border-radius: 2px;
}
.nav-cta {
  margin-left: 12px;
  padding: 9px 18px; font-size: 13px; font-weight: 600;
  border: none; border-radius: 6px;
  background: var(--ink-3); color: #fff;
  transition: background .2s ease, transform .2s ease;
}
.nav-cta:hover { background: var(--ink); transform: translateY(-1px); }

/* ─── Ticker ─── */
.ticker {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--paper-2);
  overflow: hidden;
  position: relative;
}
/* .ticker-track {
  display: flex; gap: 40px;
  padding: 11px 0;
  animation: tickerScroll 65s linear infinite;
  white-space: nowrap;
  width: max-content;
} */
@keyframes tickerScroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
.ticker-item {
  display: inline-flex; gap: 10px; align-items: baseline;
  font-family: var(--font-mono); font-size: 12px;
}
.ticker-label { color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; }
.ticker-val { color: var(--ink); font-weight: 600; }
.ticker-chg { font-size: 11px; font-weight: 500; }
.ticker-chg.up { color: var(--up); }
.ticker-chg.down { color: var(--down); }

/* ─── Mobile menu ─── */
.nav-burger {
  display: none;
  margin-left: auto;
  width: 44px; height: 44px;
  background: transparent; border: none;
  flex-direction: column; justify-content: center; align-items: center;
  gap: 5px; padding: 0;
  border-radius: 6px;
  transition: background .2s;
}
.nav-burger:hover { background: var(--paper-2); }
.mobile-menu-inner { background: var(--paper); }
.burger-line {
  width: 22px; height: 2px; background: var(--ink); border-radius: 2px;
  /* ink agora é claro — boa visibilidade sobre nav escura */
  transition: transform .3s cubic-bezier(.2,.7,.2,1), opacity .2s;
  transform-origin: center;
}
.burger-line.open:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger-line.open:nth-child(2) { opacity: 0; }
.burger-line.open:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 0;
  background: rgba(20, 18, 58, 0.5);
  backdrop-filter: blur(6px);
  z-index: 49;
  opacity: 0; pointer-events: none;
  transition: opacity .3s ease;
}
.mobile-menu.open { opacity: 1; pointer-events: auto; }
.mobile-menu-inner {
  position: absolute; top: 68px; right: 0; bottom: 0;
  width: min(420px, 100%);
  background: var(--paper);
  padding: 40px 32px;
  display: flex; flex-direction: column;
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform .35s cubic-bezier(.2,.7,.2,1);
  box-shadow: -20px 0 40px -20px rgba(20,18,58,0.3);
}
.mobile-menu.open .mobile-menu-inner { transform: translateX(0); }
.mobile-link {
  display: flex; align-items: baseline; gap: 14px;
  padding: 16px 4px;
  font-size: 22px; font-weight: 700;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
  opacity: 0; transform: translateX(20px);
  transition: opacity .35s ease, transform .35s cubic-bezier(.2,.7,.2,1), color .2s;
}
.mobile-menu.open .mobile-link { opacity: 1; transform: translateX(0); }
.mobile-link:hover { color: var(--ink-3); }
.mobile-link.active { color: var(--ink-3); }
.mobile-link-num { font-size: 11px; letter-spacing: 0.14em; color: var(--muted); font-weight: 700; min-width: 28px; }
.mobile-link.active .mobile-link-num { color: var(--orange); }

@media (max-width: 1024px) {
  .nav-burger { display: flex; }
  .mobile-menu-inner { padding-top: 28px; }
}

/* ─── Buttons ─── */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 13px 22px; font-size: 14px; font-weight: 600;
  border-radius: 6px; border: 1px solid transparent;
  transition: all .22s cubic-bezier(.2,.7,.2,1);
  background: transparent; color: inherit;
}
.btn-primary { background: var(--ink-3); color: #fff; }
.btn-primary:hover { background: var(--ink); transform: translateY(-1px); box-shadow: 0 6px 18px -6px rgba(59,55,139,0.5); }
.btn-ghost { border-color: currentColor; }
.btn-ghost:hover { background: rgba(255,255,255,0.08); }
.btn-outline { border-color: var(--ink-3); color: var(--ink-3); }
.btn-outline:hover { background: var(--ink-3); color: #fff; }
.btn-arrow { width: 16px; height: 16px; display: inline-block; transition: transform .22s ease; }
.btn:hover .btn-arrow { transform: translateX(3px); }

/* ─── Cards ─── */
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 26px;
  transition: all .3s cubic-bezier(.2,.7,.2,1);
  position: relative;
  display: flex; flex-direction: column;
}
.card:hover {
  border-color: var(--ink-3);
  transform: translateY(-3px);
  box-shadow: 0 14px 30px -18px rgba(20,18,58,0.25);
}
.card-meta { display: flex; gap: 12px; align-items: center; font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.1em; font-weight: 600; }
.card-tag {
  padding: 4px 10px;
  background: var(--ink-3); color: #fff;
  border-radius: 999px;
  font-size: 10px; font-weight: 700; letter-spacing: 0.1em;
}
.card-tag.alt { background: var(--orange); }
.card-tag.alt2 { background: var(--aqua); color: var(--ink); }
.card-title { font-size: 19px; font-weight: 700; line-height: 1.3; letter-spacing: -0.01em; margin: 14px 0 10px; color: var(--ink); }
.card-desc { font-size: 14px; line-height: 1.55; color: var(--muted); flex: 1; }
.card-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 18px; }
.chip { padding: 4px 10px; font-size: 11px; background: var(--paper-2); border: 1px solid var(--line); border-radius: 999px; color: var(--muted); font-weight: 500; }

/* ─── Footer ─── */
.footer { background: var(--ink); color: #DEDEDE; padding: 40px 0 20px; }
.footer .container { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 28px; }
.footer h4 { font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--aqua); margin: 0 0 10px; font-weight: 700; }
.footer a { display: block; padding: 3px 0; font-size: 14px; opacity: .82; transition: opacity .2s, color .2s; }
.footer a:hover { opacity: 1; color: var(--aqua); }
.footer-bottom { max-width: var(--maxw); margin: 28px auto 0; padding: 14px 32px 0; border-top: 1px solid rgba(115,203,213,0.14); display: flex; justify-content: space-between; align-items: center; font-size: 12px; opacity: .55; font-family: var(--font-mono); }

/* ─── Fade-in on scroll ─── */
.fadein {
  opacity: 0; transform: translateY(16px);
  transition: opacity .65s ease, transform .65s cubic-bezier(.2,.7,.2,1);
}
.fadein.visible { opacity: 1; transform: translateY(0); }
.fadein.delay-1 { transition-delay: .08s; }
.fadein.delay-2 { transition-delay: .16s; }
.fadein.delay-3 { transition-delay: .24s; }
.fadein.delay-4 { transition-delay: .32s; }

/* ─── Hero ─── */
.hero {
  position: relative;
  padding: 152px 0 96px;
  overflow: hidden;
  min-height: calc(100vh - 110px);
}

/* Hero A: imagem de capa */
.hero-gradient {
  background: url('img/telainicial.png') center / cover no-repeat;
  color: #DEDEDE;
}

/* ─── Hero "Calouros" / brand pattern ─── */
.hero-brand {
  background: var(--paper);
  color: var(--ink);
  padding: 128px 0 0;
  border-bottom: 4px solid var(--ink);
  overflow: hidden;
}
.hero-brand-grid {
  display: grid; grid-template-columns: 2fr 1fr; gap: 0;
  min-height: 520px;
}
.hero-brand-left {
  position: relative; padding: 48px 48px 56px;
  display: flex; flex-direction: column; justify-content: space-between;
  background: var(--paper);
  overflow: hidden;
}
.hero-brand-circles {
  position: absolute; inset: 0; pointer-events: none;
  display: flex; align-items: center; justify-content: center; gap: 0;
}
.hero-brand-circles svg { width: 100%; height: 100%; }
.hero-brand-circle {
  fill: none; stroke: var(--ink-3); stroke-width: 1.5;
  opacity: 0.55;
  animation: floatCircle 14s ease-in-out infinite;
}
.hero-brand-circle:nth-child(2) { animation-delay: -3s; stroke: var(--ink-2); }
.hero-brand-circle:nth-child(3) { animation-delay: -6s; stroke: var(--aqua); stroke-width: 2; }
@keyframes floatCircle {
  0%, 100% { transform: translateX(0) translateY(0); }
  50% { transform: translateX(8px) translateY(-6px); }
}
.hero-brand-top, .hero-brand-bot { position: relative; z-index: 1; display: flex; justify-content: space-between; align-items: start; font-weight: 700; font-size: 13px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink); }
.hero-brand-bot { align-items: end; }
.hero-brand-title {
  position: relative; z-index: 1;
  font-size: clamp(48px, 8vw, 108px);
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: -0.025em;
  margin: 32px 0;
  color: var(--ink);
  text-wrap: balance;
}
.hero-brand-title .accent { font-style: italic; color: var(--ink-3); }
.hero-brand-mark-block {
  display: flex; align-items: center; gap: 12px;
  font-size: 11px; line-height: 1.35; color: var(--ink);
  font-weight: 500;
}
.hero-brand-mark-block .mk {
  width: 44px; height: 44px; border-radius: 6px;
  background: var(--ink-3); color: var(--ink);
  display: grid; place-items: center; font-weight: 700; font-size: 20px;
}
.hero-brand-mark-block strong { font-weight: 700; display: block; }
.hero-brand-mark-block em { font-style: italic; font-weight: 400; opacity: 0.7; display: block; font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; margin-top: 2px; }

.hero-brand-right {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(4, 1fr);
  background: var(--ink-3);
}
.tile {
  display: grid; place-items: center;
  font-weight: 700; font-size: clamp(18px, 2.2vw, 30px);
  letter-spacing: -0.02em;
  transition: transform .4s cubic-bezier(.2,.7,.2,1), background .3s ease;
}
.tile:hover { transform: scale(0.92); }
.tile.blue   { background: var(--ink-3); color: var(--aqua); }
.tile.aqua   { background: var(--aqua);  color: var(--ink-3); }
.tile.orange { background: var(--orange); color: var(--ink); }
.tile.ink    { background: var(--ink);    color: var(--aqua); }
.tile.dot::after { content: ""; width: 60%; aspect-ratio: 1; background: currentColor; border-radius: 50%; opacity: 0.7; }
.tile.triangle::after { content: ""; width: 0; height: 0; border-left: 18px solid transparent; border-right: 18px solid transparent; border-bottom: 30px solid currentColor; opacity: 0.85; }
.tile.text::after { content: "CAEF"; font-weight: 700; }

.hero-brand-actions {
  display: flex; gap: 12px; flex-wrap: wrap;
  margin-top: 36px; position: relative; z-index: 1;
}

@media (max-width: 900px) {
  .hero-brand-grid { grid-template-columns: 1fr; }
  .hero-brand-right { aspect-ratio: 16/8; }
}
@media (max-width: 640px) {
  .hero-brand { padding-top: 88px; }
  .hero-brand-left { padding: 28px; }
}
.hero-editorial {
  background: var(--paper);
  color: var(--ink);
  border-bottom: 1px solid var(--line);
}

/* Hero C: data */
.hero-data {
  background: var(--ink);
  color: #fff;
  padding-bottom: 0;
}

.hero-eyebrow {
  display: inline-flex; gap: 12px; align-items: center;
  font-size: 12px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.16em;
  opacity: 0.85;
  margin-bottom: 28px;
}
.hero-editorial .hero-eyebrow { color: var(--ink-3); opacity: 1; }
.hero-eyebrow-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--orange); }

.hero-title {
  font-size: clamp(40px, 6.4vw, 80px);
  line-height: 1.02;
  letter-spacing: -0.025em;
  font-weight: 700;
  margin: 0 0 24px;
  text-wrap: balance;
}
.hero-title .accent { color: var(--aqua); font-style: italic; }
.hero-editorial .hero-title .accent { color: var(--ink-3); }

.hero-sub {
  font-size: 18px; line-height: 1.55; max-width: 620px;
  opacity: 0.85; margin: 0 0 36px;
  font-weight: 400;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.hero-belluzzo {
  font-size: 17px; letter-spacing: 0.04em;
  opacity: 1; margin-top: 48px; font-weight: 700;
  color: #fff;
  padding-top: 20px;
  border-top: 2px solid rgba(115,203,213,0.5);
  display: inline-block;
}

/* Hero data variant blocks */
.hero-data-grid {
  display: grid; grid-template-columns: repeat(5, 1fr);
  border-top: 1px solid rgba(115,203,213,0.18);
  margin-top: 80px;
}
.hero-data-cell {
  padding: 28px 24px;
  border-right: 1px solid rgba(115,203,213,0.18);
  transition: background .3s ease;
}
.hero-data-cell:last-child { border-right: none; }
.hero-data-cell:hover { background: rgba(115,203,213,0.05); }
.hero-data-cell .lbl { font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase; opacity: 0.55; font-weight: 700; }
.hero-data-cell .val { font-size: 34px; font-weight: 700; letter-spacing: -0.02em; margin: 12px 0 4px; }
.hero-data-cell .chg { font-family: var(--font-mono); font-size: 12px; }
.hero-data-cell .chg.up { color: #8FE0B0; }
.hero-data-cell .chg.down { color: #F0A0A8; }

/* ─── Section heads ─── */
.section-head {
  display: grid; grid-template-columns: 1fr auto;
  align-items: end; gap: 32px;
  margin-bottom: 44px;
  padding-bottom: 22px;
  border-bottom: 2px solid var(--ink-3);
  position: relative;
}
.section-head::after {
  content: ""; position: absolute; left: 0; bottom: -2px;
  width: 80px; height: 4px; background: var(--orange); border-radius: 2px;
}
.section-head-title {
  font-size: clamp(30px, 3.6vw, 42px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  font-weight: 700;
  margin: 10px 0 0;
  text-wrap: balance;
  color: var(--ink);
}
.section-head-link {
  display: inline-flex; gap: 6px; align-items: center;
  font-size: 13px; font-weight: 600;
  color: var(--ink-3);
  padding-bottom: 6px;
}
.section-head-link:hover .btn-arrow { transform: translateX(3px); }

/* Grid layouts */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }

/* ─── Event card ─── */
.event-card {
  display: grid; grid-template-columns: 130px 1fr auto; gap: 28px;
  align-items: center;
  padding: 24px 28px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  transition: all .3s cubic-bezier(.2,.7,.2,1);
}
.event-card + .event-card { margin-top: 14px; }
.event-card:hover { border-color: var(--ink-3); transform: translateX(3px); box-shadow: 0 10px 24px -16px rgba(20,18,58,0.2); }
.event-date {
  text-align: center;
  line-height: 1;
  padding-right: 24px;
  border-right: 1px solid var(--line);
}
.event-date .day { font-size: 44px; font-weight: 700; letter-spacing: -0.03em; display: block; color: var(--ink-3); }
.event-date .mon { font-size: 11px; text-transform: uppercase; letter-spacing: 0.16em; margin-top: 8px; display: block; color: var(--muted); font-weight: 700; }
.event-title { font-size: 20px; font-weight: 700; letter-spacing: -0.01em; line-height: 1.25; margin: 0 0 10px; color: var(--ink); }
.event-meta { display: flex; gap: 16px; font-size: 13px; color: var(--muted); margin-bottom: 8px; flex-wrap: wrap; }
.event-meta-item { display: inline-flex; gap: 6px; align-items: center; font-weight: 500; }
.event-meta-item svg { color: var(--ink-3); }
.event-desc { font-size: 14px; color: var(--muted); line-height: 1.5; }
.event-cta {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 18px; font-weight: 600;
  border: 1px solid var(--ink-3); border-radius: 6px;
  color: var(--ink-3);
  font-size: 13px; transition: all .2s;
}
.event-cta:hover { background: var(--ink-3); color: #fff; }

/* ─── Page hero ─── */
.page-hero {
  padding: 144px 0 148px;
  border-bottom: none;
  background-color: #3e458d;
  background-image:
    radial-gradient(ellipse 70% 45% at 50% 118%, rgba(255,255,255,0.95) 0%, transparent 55%),
    radial-gradient(ellipse 170% 80% at 50% 120%, rgba(255,255,255,0.45) 0%, transparent 65%);
  color: #DEDEDE;
  position: relative;
  overflow: hidden;
}
.page-hero::after {
  content: ""; position: absolute; right: -120px; top: 60px;
  width: 320px; height: 320px; border-radius: 50%;
  background: radial-gradient(circle, var(--aqua), transparent 70%);
  opacity: 0.25;
  pointer-events: none;
}
.page-hero .eyebrow { margin-bottom: 20px; display: inline-block; color: var(--aqua); }
.page-hero h1 {
  font-size: clamp(40px, 5.2vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.025em;
  font-weight: 700;
  margin: 0 0 20px;
  text-wrap: balance;
  color: #fff;
}
.page-hero h1 .accent { color: var(--aqua); font-style: italic; }
.page-hero p { font-size: 17px; line-height: 1.55; max-width: 620px; color: rgba(222,222,222,0.82); margin: 0; }

/* ─── Filters ─── */
.filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 36px; }
.filter-chip {
  padding: 8px 16px; font-size: 13px; font-weight: 500;
  border: 1px solid var(--line); border-radius: 999px;
  background: var(--card); color: var(--ink);
  transition: all .2s ease;
}
.filter-chip:hover { border-color: var(--ink-3); color: var(--ink-3); }
.filter-chip.active { background: var(--ink-3); color: #fff; border-color: var(--ink-3); font-weight: 600; }

/* ─── Indicators page ─── */
.indicator-card {
  padding: 28px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  transition: all .3s ease;
  position: relative;
}
.indicator-card:hover { border-color: var(--ink-3); transform: translateY(-2px); box-shadow: 0 10px 24px -16px rgba(20,18,58,0.2); }
.indicator-header { display: flex; justify-content: space-between; align-items: start; }
.indicator-name { font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.indicator-value { font-size: 48px; font-weight: 700; letter-spacing: -0.03em; line-height: 1; margin: 14px 0 8px; color: var(--ink); }
.indicator-change { font-family: var(--font-mono); font-size: 13px; display: inline-flex; gap: 6px; align-items: center; font-weight: 500; }
.indicator-change.up { color: var(--up); }
.indicator-change.down { color: var(--down); }
.indicator-spark { margin-top: 22px; height: 60px; }
.indicator-foot { display: flex; justify-content: space-between; font-family: var(--font-mono); font-size: 11px; color: var(--muted); margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); text-transform: uppercase; letter-spacing: 0.1em; }

/* ─── Newsletter ─── */
.newsletter-form {
  display: flex; gap: 0;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 6px;
  max-width: 480px;
  transition: border-color .25s;
}
.newsletter-form:focus-within { border-color: var(--ink-3); }
.newsletter-form input {
  flex: 1; border: none; outline: none;
  padding: 12px 16px; font-size: 15px;
  background: transparent; color: var(--ink);
  font-family: var(--font-sans);
}
.newsletter-form input::placeholder { color: var(--muted); }
.newsletter-form button {
  padding: 12px 20px; font-size: 13px; font-weight: 600;
  border: none; border-radius: 6px;
  background: var(--ink-3); color: #fff;
  transition: background .2s;
}
.newsletter-form button:hover { background: var(--ink); }

.newsletter-signup-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }

.newsletter-issue {
  display: grid; grid-template-columns: 70px 1fr auto;
  gap: 24px; align-items: center;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
  transition: padding-left .3s ease;
}
.newsletter-issue:hover { padding-left: 8px; }
.newsletter-issue:hover .num { color: var(--ink-3); }
.newsletter-issue .num { font-size: 26px; font-weight: 700; color: var(--gray); transition: color .25s; }
.newsletter-issue .title { font-size: 19px; font-weight: 700; letter-spacing: -0.01em; margin: 0 0 5px; color: var(--ink); }
.newsletter-issue .meta { font-size: 12px; color: var(--muted); font-weight: 500; }
.newsletter-issue .read { font-size: 12px; font-weight: 600; color: var(--ink-3); display: inline-flex; align-items: center; gap: 6px; }

/* ─── Sobre page ─── */
.about-block { display: grid; grid-template-columns: 1fr 2fr; gap: 64px; padding: 48px 0; border-bottom: 1px solid var(--line); }
.about-block:last-child { border-bottom: none; }
.about-block h2 { font-size: 30px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.1; margin: 0; color: var(--ink); }
.about-block h2::after { content: ""; display: block; width: 40px; height: 3px; background: var(--orange); margin-top: 12px; border-radius: 2px; }
.about-block .body p { font-size: 16px; line-height: 1.65; margin: 0 0 16px; color: var(--ink); opacity: .85; }

.values-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.value-card {
  padding: 24px;
  background: var(--card);
  border-left: 4px solid var(--ink-3);
  border-radius: 6px;
  transition: all .25s ease;
}
.value-card:nth-child(2) { border-left-color: var(--aqua); }
.value-card:nth-child(3) { border-left-color: var(--orange); }
.value-card:nth-child(4) { border-left-color: var(--ink-2); }
.value-card:nth-child(5) { border-left-color: var(--ink); }
.value-card:hover { transform: translateX(4px); box-shadow: 0 8px 20px -14px rgba(20,18,58,0.3); }
.value-card h3 { font-size: 17px; font-weight: 700; margin: 0 0 8px; color: var(--ink); }
.value-card p { font-size: 14px; line-height: 1.55; margin: 0; color: var(--muted); }

/* ─── Sobre: Nossa história ─── */
.history-callout {
  margin: 6px 0 22px;
  padding: 20px 24px;
  background: var(--card);
  border-left: 4px solid var(--orange);
  border-radius: 0 var(--radius) var(--radius) 0;
}
.history-callout-num {
  font-family: var(--font-mono);
  font-size: 34px; font-weight: 700; line-height: 1;
  letter-spacing: -0.03em; color: var(--ink-3);
  display: block;
}
.about-block .body .history-callout p {
  font-size: 14px; line-height: 1.55;
  margin: 10px 0 0; color: var(--muted); opacity: 1;
}

.founding-roster { margin: 10px 0 22px; border-top: 1px solid var(--line); }
.roster-item {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 16px; padding: 12px 4px;
  border-bottom: 1px solid var(--line);
  transition: background .25s ease, padding-left .25s ease;
}
.roster-item:hover { background: var(--paper-2); padding-left: 10px; }
.roster-name { font-size: 15px; font-weight: 700; color: var(--ink); }
.roster-role {
  font-family: var(--font-mono); font-size: 11px; font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--ink-3); white-space: nowrap;
}

.history-close {
  margin-top: 10px;
  padding: 24px 28px;
  background: var(--ink-3);
  border-radius: var(--radius-lg);
}
.about-block .body .history-close p {
  font-size: 17px; line-height: 1.6; font-weight: 500;
  margin: 0; color: var(--paper); opacity: 1;
}
.about-block .body .history-close p + p { margin-top: 8px; }
.about-block .body .history-close em { font-style: italic; color: var(--aqua); }

.member-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; margin-top: 36px; }
.member {
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 22px;
  transition: all .3s ease;
  background: var(--card);
}
.member:hover { border-color: var(--ink-3); transform: translateY(-3px); box-shadow: 0 12px 24px -16px rgba(20,18,58,0.18); }
.member-portrait {
  aspect-ratio: 1;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--ink-3), var(--ink-2));
  margin-bottom: 16px;
  position: relative; overflow: hidden;
  display: grid; place-items: center;
  color: var(--ink);
  font-size: 42px;
  font-weight: 700;
}
/* Brilho decorativo do retrato com inicial. Sobre uma foto real ele vira um
   véu azulado que suja a imagem, então só entra quando não há foto — ou quando
   a foto quebrou e o JS caiu de volta pra inicial (.failed). */
.member-portrait:not(.member-portrait-photo)::after,
.member-portrait-photo.failed::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle at 30% 30%, rgba(115,203,213,0.3), transparent 60%);
}
.member-name { font-size: 17px; font-weight: 700; letter-spacing: -0.005em; color: var(--ink); }
.member-role { font-size: 11px; text-transform: uppercase; letter-spacing: 0.14em; color: var(--ink-3); margin-top: 4px; font-weight: 700; }

/* ─── Contato ─── */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; }
.contact-info dt { font-size: 11px; text-transform: uppercase; letter-spacing: 0.16em; color: var(--ink-3); margin-top: 24px; font-weight: 700; }
.contact-info dd { font-size: 18px; margin: 6px 0 0; letter-spacing: -0.005em; font-weight: 500; }

.form-field { margin-bottom: 18px; }
.form-field label { display: block; font-size: 11px; text-transform: uppercase; letter-spacing: 0.14em; color: var(--muted); margin-bottom: 8px; font-weight: 700; }
.form-field input, .form-field textarea, .form-field select {
  width: 100%; padding: 12px 14px;
  background: var(--card);
  border: 1px solid var(--line); border-radius: 6px;
  font-family: var(--font-sans); font-size: 15px;
  color: var(--ink);
  transition: border-color .2s;
}
.form-field input:focus, .form-field textarea:focus, .form-field select:focus {
  outline: none; border-color: var(--ink-3);
  box-shadow: 0 0 0 3px rgba(59,55,139,0.12);
}

/* ─── Stats row ─── */
.stat-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--card); border-radius: 10px; overflow: hidden; }
.stat-cell { padding: 32px 28px; border-right: 1px solid var(--line); position: relative; overflow: hidden; transition: background .3s ease; }
.stat-cell::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--ink-3); transform: scaleY(0); transform-origin: bottom; transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.stat-cell.visible::before { transform: scaleY(1); }
.stat-cell:nth-child(2)::before { background: var(--aqua); }
.stat-cell:nth-child(3)::before { background: var(--orange); }
.stat-cell:nth-child(4)::before { background: var(--ink-2); }
.stat-cell:hover { background: var(--paper-2); }
.stat-cell:last-child { border-right: none; }
.stat-num { font-size: 52px; font-weight: 700; line-height: 1; letter-spacing: -0.03em; color: var(--ink-3); }
.stat-cell:nth-child(2) .stat-num { color: var(--ink); }
.stat-cell:nth-child(3) .stat-num { color: var(--orange); }
.stat-cell:nth-child(4) .stat-num { color: var(--ink-2); }
.stat-lbl { font-size: 11px; text-transform: uppercase; letter-spacing: 0.14em; color: var(--muted); margin-top: 10px; font-weight: 700; }

/* ─── Misc ─── */
.dot {
  display: inline-block; width: 6px; height: 6px; border-radius: 50%;
  background: var(--up);
  animation: pulse 2s ease-in-out infinite;
  margin-right: 8px;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .5; transform: scale(0.85); }
}

/* Italic emphasis (per identity: Helvetica Oblique) */
em, .italic { font-style: italic; }

/* ─── Responsive ─── */
@media (max-width: 1024px) {
  .nav-links { display: none; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .hero-data-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-data-cell:nth-child(2n) { border-right: none; }
  .footer .container { grid-template-columns: 1fr 1fr; }
  .about-block { grid-template-columns: 1fr; gap: 20px; }
  .member-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .stat-row { grid-template-columns: repeat(2, 1fr); }
  .stat-cell:nth-child(2n) { border-right: none; }
  .stat-cell:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .values-grid { grid-template-columns: 1fr; }
  .roster-item { flex-direction: column; align-items: flex-start; gap: 4px; }
  .roster-role { white-space: normal; }
  .page-hero { padding: 110px 0 80px; }
  .newsletter-signup-grid { grid-template-columns: 1fr; gap: 40px; }
}
@media (max-width: 640px) {
  .container { padding: 0 20px; }
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .section { padding: 56px 0; }
  .hero { padding: 112px 0 48px; }
  .hero-sub { font-size: 16px; }
  .hero-belluzzo { font-size: 14px; margin-top: 28px; }
  .hero-actions { gap: 10px; }
  .hero-actions .btn { padding: 11px 18px; font-size: 13px; }
  .hero-data-grid { grid-template-columns: 1fr; }
  .hero-data-cell { border-right: none; border-bottom: 1px solid rgba(115,203,213,0.18); }
  .section-head { grid-template-columns: 1fr; gap: 16px; }
  .footer .container { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; gap: 10px; align-items: start; }
  .event-card { grid-template-columns: 1fr; gap: 14px; }
  .event-date { display: flex; gap: 12px; align-items: baseline; border-right: none; padding-right: 0; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
  .event-date .day { font-size: 30px; }
  .member-grid { grid-template-columns: 1fr 1fr; }
  .page-hero { padding: 88px 0 56px; }
  .page-hero h1 { font-size: clamp(30px, 8vw, 48px); }
  .stat-num { font-size: 38px; }
  .stat-cell { padding: 22px 18px; }
  .newsletter-issue { grid-template-columns: 44px 1fr; gap: 6px 14px; }
  .newsletter-issue .read { grid-column: 2; margin-top: 2px; }
  .newsletter-issue .num { font-size: 20px; }
}

/* ─── Splash screen ─── */
.splash {
  position: fixed; inset: 0; z-index: 1000;
  background: #ffffff;
  display: flex; align-items: center; justify-content: center;
  animation: splashBgOut 0.28s ease-in 1.0s forwards;
  pointer-events: none;
}
.splash-logo {
  height: 90px; width: auto;
  animation: splashZoom 1.3s cubic-bezier(.16,1,.3,1) 0.1s both;
}
@keyframes splashZoom {
  0%   { opacity: 0; transform: scale(0.75); }
  22%  { opacity: 1; transform: scale(1); }
  68%  { opacity: 1; transform: scale(8); }
  100% { opacity: 0; transform: scale(28); }
}
@keyframes splashBgOut {
  from { opacity: 1; }
  to   { opacity: 0; }
}

/* ─── CARDS CLICÁVEIS ─────────────────────────────────────── */
.card {
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding: 0;   /* removemos padding porque agora tem imagem no topo */
}
.card-clickable {
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  border: 1px solid var(--line);
}
.card-clickable:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(20, 18, 58, 0.08);
  border-color: var(--ink-3);
}
.card-clickable:focus-visible {
  outline: 2px solid var(--ink-3);
  outline-offset: 2px;
}

/* ─── IMAGEM NO CARD ─────────────────────────────────────── */
.card-image {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--paper-2);
}
.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}
.card-clickable:hover .card-image img {
  transform: scale(1.03);
}

/* ─── PLACEHOLDER (quando não tem imagem) ────────────────── */
.card-placeholder {
  width: 100%;
  aspect-ratio: 16 / 9;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--ink) 0%, var(--ink-2) 100%);
  color: rgba(255, 255, 255, 0.95);
}
/* Pattern decorativo geométrico */
.card-placeholder::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(255,255,255,0.06) 0, transparent 40%),
    radial-gradient(circle at 80% 70%, rgba(115, 203, 213, 0.15) 0, transparent 40%);
  opacity: 0.9;
}
.card-placeholder::after {
  content: '';
  position: absolute;
  right: -20px; bottom: -20px;
  width: 120px; height: 120px;
  border: 2px solid rgba(255,255,255,0.08);
  border-radius: 50%;
}
.placeholder-label {
  position: relative;
  z-index: 1;
  font-family: var(--font-mono, monospace);
  font-size: 12px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  padding: 8px 22px;
  border: 1px solid rgba(255,255,255,0.4);
  border-radius: 999px;
  background: rgba(0,0,0,0.15);
  backdrop-filter: blur(4px);
}

/* Variações de cor por tipo de publicação */
.placeholder-tcc,
.placeholder-iniciacao-cientifica,
.placeholder-monografia,
.placeholder-dissertacao {
  background: linear-gradient(135deg, var(--ink) 0%, var(--ink-3) 100%);
}
.placeholder-tcc::after,
.placeholder-iniciacao-cientifica::after {
  background: radial-gradient(circle, rgba(115, 203, 213, 0.15) 0%, transparent 70%);
  border-color: rgba(115, 203, 213, 0.2);
}

.placeholder-artigo {
  background: linear-gradient(135deg, var(--ink-2) 0%, #4a5cb8 100%);
}
.placeholder-blog {
  background: linear-gradient(135deg, #c96c1b 0%, var(--orange) 100%);
}
.placeholder-resenha {
  background: linear-gradient(135deg, #4a7a5f 0%, #6a9b7f 100%);
}
.placeholder-noticia {
  background: linear-gradient(135deg, var(--ink-2) 0%, var(--aqua) 200%);
}

/* ─── CARD BODY (padding movido pra dentro) ─────────────── */
.card-body {
  padding: 22px 22px 26px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.card-body .card-title {
  flex: 1;
}

/* ─── NEWSLETTER-ISSUE CLICÁVEL ────────────────────────── */
.newsletter-issue.clickable {
  transition: background 0.15s, border-color 0.15s;
}
.newsletter-issue.clickable:hover {
  background: var(--paper-2);
}

/* ═════════════════════════════════════════════════════════
   PÁGINA DE DETALHE
   ═════════════════════════════════════════════════════════ */

.btn-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s;
  text-decoration: none;
}
.btn-back:hover {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
  transform: translateX(-3px);
}

.detalhe {
  padding: 40px 0 100px;
}

.detalhe-header {
  padding-bottom: 32px;
  margin-bottom: 32px;
  border-bottom: 1px solid var(--line);
  max-width: 800px;
}

.detalhe-meta {
  display: flex;
  gap: 14px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.detalhe-tipo {
  background: var(--ink);
  color: var(--paper);
  padding: 4px 14px;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.detalhe-data {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--muted);
}
.detalhe-area {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-3);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 500;
}

.detalhe-titulo {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 20px;
  color: var(--ink);
  font-family: var(--font-sans);
}

.detalhe-autores,
.detalhe-orientador {
  margin: 8px 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.5;
}
.detalhe-autores strong,
.detalhe-orientador strong {
  color: var(--ink);
  margin-right: 4px;
}

.detalhe-imagem {
  margin: 32px 0;
  border-radius: 12px;
  overflow: hidden;
  background: var(--paper-2);
  max-height: 500px;
}
.detalhe-imagem img {
  width: 100%;
  height: auto;
  display: block;
  max-height: 500px;
  object-fit: cover;
}

/* ─── Botões de ação (Ler / Baixar) ─── */
.detalhe-acoes {
  display: flex;
  gap: 12px;
  margin: 32px 0;
  flex-wrap: wrap;
}
.detalhe-acoes .btn {
  padding: 12px 24px;
  font-size: 15px;
}

/* Reaproveitando o .btn-outline se não existir */
.btn-outline {
  background: transparent;
  border: 1px solid var(--ink);
  color: var(--ink);
}
.btn-outline:hover {
  background: var(--paper-2);
}

/* ─── Resumo (produções) ─── */
.detalhe-resumo {
  margin: 40px 0;
  padding: 28px 32px;
  background: var(--paper-2);
  border-radius: 12px;
  border-left: 4px solid var(--aqua);
  max-width: 800px;
}
.detalhe-resumo h2 {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 14px;
  font-weight: 500;
}
.detalhe-resumo p {
  margin: 0;
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink-2);
  font-family: var(--font-serif);
}

/* ─── Conteúdo (notícias / blog) ─── */
.detalhe-conteudo {
  font-family: var(--font-serif);
  font-size: 19px;
  line-height: 1.75;
  color: var(--ink-2);
  margin: 40px 0;
  max-width: 720px;
}
.detalhe-conteudo p {
  margin: 0 0 24px;
}
.detalhe-conteudo p:first-child::first-letter {
  font-size: 56px;
  font-weight: 700;
  line-height: 1;
  float: left;
  margin: 6px 14px 0 0;
  color: var(--ink);
  font-family: var(--font-sans);
}

/* ─── Tags no rodapé ─── */
.detalhe-tags {
  margin: 48px 0 24px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  max-width: 800px;
}
.detalhe-tags strong {
  color: var(--muted);
  margin-right: 12px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

/* ─── Info extra (ano, menção) ─── */
.detalhe-extra {
  margin: 32px 0;
  padding: 24px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 48px;
  flex-wrap: wrap;
  max-width: 800px;
}
.detalhe-extra > div {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.detalhe-extra .lbl {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted);
}
.detalhe-extra .val {
  font-size: 18px;
  font-weight: 500;
  color: var(--ink);
}

/* ─── Aviso quando não tem PDF ─── */
.detalhe-aviso {
  margin: 32px 0;
  padding: 18px 24px;
  background: #fef3c7;
  border-left: 4px solid var(--orange);
  border-radius: 8px;
  color: #78500a;
  font-size: 14px;
  max-width: 800px;
}
.detalhe-aviso p { margin: 0; line-height: 1.6; }


/* ─── TOOLBAR (filtros + busca) ─────────────────────────── */
.filter-toolbar {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.filter-toolbar .filter-bar {
  flex: 1 1 400px;
  min-width: 0;   /* permite shrink pra caber no flex */
}

.filter-search {
  flex: 0 1 260px;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--card, var(--paper));
  font-family: inherit;
  font-size: 14px;
  color: var(--ink);
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.filter-search:focus {
  border-color: var(--ink);
  box-shadow: 0 0 0 3px rgba(20, 18, 58, 0.08);
}

.filter-summary {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 24px;
  font-family: var(--font-mono);
  letter-spacing: 0.05em;
}

/* ─── FILTER BAR (container com scroll horizontal) ─────── */
.filter-bar {
  position: relative;
  margin: 0;
}

.filter-scroll {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: smooth;
  padding: 4px 2px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;   /* Firefox */
}
.filter-scroll::-webkit-scrollbar {
  display: none;   /* Chrome / Safari */
}

/* ─── DEGRADÊS nas bordas (avisa que tem mais) ─────────── */
.filter-fade {
  position: absolute;
  top: 0; bottom: 0;
  width: 40px;
  pointer-events: none;
  z-index: 2;
  opacity: 0;
  transition: opacity 0.2s;
}
.filter-fade.visible { opacity: 1; }
.filter-fade-left {
  left: 0;
  background: linear-gradient(to right,
    var(--paper) 0%,
    var(--paper) 20%,
    rgba(255,255,255,0) 100%);
}
.filter-fade-right {
  right: 0;
  background: linear-gradient(to left,
    var(--paper) 0%,
    var(--paper) 20%,
    rgba(255,255,255,0) 100%);
}

/* ─── FILTER CHIP (com contador integrado) ─────────────── */
.filter-chip {
  flex-shrink: 0;   /* não permite chip encolher */
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink-2);
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 500;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.15s;
  white-space: nowrap;
}
.filter-chip:hover:not(:disabled) {
  border-color: var(--ink-3);
  color: var(--ink);
}
.filter-chip.active {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}
.filter-chip.active .filter-count {
  background: rgba(255,255,255,0.2);
  color: var(--paper);
}
.filter-chip.empty {
  opacity: 0.4;
  cursor: not-allowed;
}
.filter-chip:disabled { cursor: not-allowed; }

.filter-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 20px;
  padding: 0 6px;
  background: var(--paper-2);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  border-radius: 999px;
  line-height: 1;
}

/* ─── RESPONSIVO ────────────────────────────────────────── */
@media (max-width: 640px) {
  .filter-toolbar {
    gap: 12px;
  }
  .filter-search {
    flex: 1 1 100%;
    order: -1;   /* busca vai pra cima no mobile */
  }
  .filter-chip {
    padding: 7px 14px;
    font-size: 13px;
  }
  .filter-count {
    font-size: 10px;
    min-width: 20px;
    height: 18px;
  }
}

.footer a.footer-restricted {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 12px;
  opacity: 0.5;
  letter-spacing: 0.02em;
  transition: opacity 0.15s;
}

.footer a.footer-restricted:hover {
  opacity: 0.9;
}


/* Container quando tem foto — usa mesmo tamanho/formato do portrait com inicial */
.member-portrait-photo {
  position: relative;
  overflow: hidden;
  padding: 0;   /* remove padding pra imagem ocupar 100% */
  background: var(--paper-2);   /* fallback enquanto a imagem carrega */
}

.member-portrait-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;   /* preenche o círculo sem distorcer */
  display: block;
  transition: transform 0.4s ease;
}

/* Hover: pequeno zoom pra dar vida */
.member:hover .member-portrait-photo img {
  transform: scale(1.05);
}

/* Estado "failed": se a imagem quebrar, o JS injeta a inicial como texto.
   Aqui apenas garantimos que o texto fique centralizado.  */
.member-portrait-photo.failed {
  display: flex;
  align-items: center;
  justify-content: center;
  /* Sem 'inherit' aqui: herdar do .member zerava os 42px do retrato e a
     inicial saía miúda. Deixando de fora, valem os valores do .member-portrait
     e o fallback fica igual ao retrato sem foto. */
  background: linear-gradient(135deg, var(--ink-3), var(--ink-2));
}


/* ─── Tempo de leitura no cabeçalho ─── */
.detalhe-tempo {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-3, #666);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* ─── Layout "leitura" (notícias/blog/newsletter) ─── */
/* Diferença do padrão: max-width menor no conteúdo pra facilitar leitura,
   e tipografia ligeiramente maior. */
.detalhe.detalhe-leitura .detalhe-conteudo {
  font-size: 20px;
  line-height: 1.8;
  max-width: 680px;   /* linha ótima pra leitura em português (~65 caracteres) */
  color: var(--ink-2, #2a2a4a);
}

.detalhe.detalhe-leitura .detalhe-conteudo p {
  margin: 0 0 28px;
}

/* Espaço um pouco maior entre parágrafos pra leitura confortável */
.detalhe.detalhe-leitura .detalhe-header {
  max-width: 680px;
}

/* Tag de categoria mais destacada no modo leitura */
.detalhe.detalhe-leitura .detalhe-tipo {
  background: var(--aqua, #73CBD5);
  color: var(--ink, #14123a);
  font-weight: 600;
}

/* Imagem de capa full-width no modo leitura */
.detalhe.detalhe-leitura .detalhe-imagem {
  max-width: 100%;
  margin: 40px 0 48px;
}

/* Responsivo: no mobile, reduz o tamanho */
@media (max-width: 640px) {
  .detalhe.detalhe-leitura .detalhe-conteudo {
    font-size: 17px;
    line-height: 1.7;
  }
}


/* ─── Detalhe: PDF embed (layout revista) ───────────────── */

.detalhe-pdf-embed {
  margin: 48px 0;
  border-top: 2px solid var(--ink);
  padding-top: 32px;
}

.detalhe-pdf-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.detalhe-pdf-label {
  font-family: var(--font-mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted);
  font-weight: 600;
}

.detalhe-pdf-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.detalhe-pdf-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 8.5 / 11;
  max-height: 90vh;
  border: 1px solid var(--line);
  border-radius: 4px;
  overflow: hidden;
  background: var(--paper-2);
}

.detalhe-pdf-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.detalhe-pdf-nota {
  margin: 12px 0 0;
  font-size: 12px;
  color: var(--muted);
  text-align: center;
  font-style: italic;
}

/* ─── Detalhe: Galeria de fotos ─────────────────────────── */

.galeria-secao {
  margin: 48px 0;
  padding-top: 32px;
  border-top: 2px solid var(--ink);
}

.galeria-titulo {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 24px;
  display: flex;
  align-items: baseline;
  gap: 16px;
  flex-wrap: wrap;
}

.galeria-count {
  font-size: 13px;
  font-family: var(--font-mono);
  font-weight: 400;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.galeria-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 8px;
}

.galeria-thumb {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border: 0;
  padding: 0;
  cursor: pointer;
  background: var(--paper-2);
  border-radius: 4px;
  transition: transform 0.2s ease;
}

.galeria-thumb:hover {
  transform: scale(1.02);
  z-index: 1;
}

.galeria-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: filter 0.2s ease;
}

.galeria-thumb:hover img {
  filter: brightness(1.05);
}

@media (max-width: 600px) {
  .galeria-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ─── Lightbox modal ────────────────────────────────────── */

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(20, 18, 58, 0.95);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  animation: lightbox-fade 0.2s ease;
}

@keyframes lightbox-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}

.lightbox-inner {
  max-width: 90vw;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.lightbox-inner img {
  max-width: 100%;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 4px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.lightbox-caption {
  color: rgba(255, 255, 255, 0.8);
  font-size: 13px;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 24px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 0;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease;
}

.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.25);
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: 0;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  font-size: 40px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease;
}

.lightbox-nav:hover {
  background: rgba(255, 255, 255, 0.25);
}

.lightbox-prev {
  left: 20px;
}

.lightbox-next {
  right: 20px;
}

@media (max-width: 600px) {
  .lightbox-nav {
    width: 44px;
    height: 44px;
    font-size: 30px;
  }
  .lightbox-prev {
    left: 8px;
  }
  .lightbox-next {
    right: 8px;
  }
  .lightbox-close {
    top: 8px;
    right: 8px;
  }
}

/* ─── Admin: GalleryUpload ─────────────────────────────── */

.gallery-upload {
  width: 100%;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 12px;
  margin-bottom: 12px;
}

.gallery-item {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: 6px;
  overflow: hidden;
  background: var(--paper-2);
  border: 1px solid var(--line-soft, var(--line));
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.gallery-item-actions {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 8px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.75), transparent);
  gap: 4px;
}

.gallery-btn {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 0;
  background: rgba(255, 255, 255, 0.9);
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease;
}

.gallery-btn:hover:not(:disabled) {
  background: #fff;
}

.gallery-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.gallery-btn.danger {
  background: rgba(220, 60, 60, 0.9);
  color: #fff;
  font-size: 18px;
}

.gallery-btn.danger:hover {
  background: rgba(220, 60, 60, 1);
}

.gallery-pos {
  background: rgba(255, 255, 255, 0.9);
  color: var(--ink);
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 10px;
  font-family: var(--font-mono);
}

/* ─── Admin: PDF mode tabs ─────────────────────────────── */

.pdf-mode-tabs {
  display: flex;
  gap: 6px;
  margin-bottom: 12px;
}

.pdf-preview {
  padding: 12px;
  background: var(--paper-2);
  border-radius: 6px;
  border: 1px solid var(--line-soft, var(--line));
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
}

/* ─── Botão voltar no detalhe ─────────────────────────── */

.btn-voltar {
  background: transparent;
  border: 0;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  cursor: pointer;
  padding: 8px 0;
  transition: color 0.15s ease;
}

.btn-voltar:hover {
  color: var(--ink);
}

.detalhe-hero {
  padding: 24px 0 0;
}


.detalhe-pdf-embed {
  margin: 48px 0;
  border-top: 2px solid var(--ink);
  padding-top: 32px;
}

.detalhe-pdf-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.detalhe-pdf-label {
  font-family: var(--font-mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted);
  font-weight: 600;
}

.detalhe-pdf-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.detalhe-pdf-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 8.5 / 11;
  max-height: 90vh;
  border: 1px solid var(--line);
  border-radius: 4px;
  overflow: hidden;
  background: var(--paper-2);
}

.detalhe-pdf-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.detalhe-pdf-nota {
  margin: 12px 0 0;
  font-size: 12px;
  color: var(--muted);
  text-align: center;
  font-style: italic;
}

/* ─── Detalhe: Galeria de fotos (site) ─────────────────── */

.galeria-secao {
  margin: 48px 0;
  padding-top: 32px;
  border-top: 2px solid var(--ink);
}

.galeria-titulo {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 24px;
  display: flex;
  align-items: baseline;
  gap: 16px;
  flex-wrap: wrap;
}

.galeria-count {
  font-size: 13px;
  font-family: var(--font-mono);
  font-weight: 400;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.galeria-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 8px;
}

.galeria-thumb {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border: 0;
  padding: 0;
  cursor: pointer;
  background: var(--paper-2);
  border-radius: 4px;
  transition: transform 0.2s ease;
}

.galeria-thumb:hover {
  transform: scale(1.02);
  z-index: 1;
}

.galeria-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: filter 0.2s ease;
}

.galeria-thumb:hover img {
  filter: brightness(1.05);
}

@media (max-width: 600px) {
  .galeria-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ─── Lightbox modal ────────────────────────────────────── */

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(20, 18, 58, 0.95);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  animation: lightbox-fade 0.2s ease;
}

@keyframes lightbox-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}

.lightbox-inner {
  max-width: 90vw;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.lightbox-inner img {
  max-width: 100%;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 4px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.lightbox-caption {
  color: rgba(255, 255, 255, 0.8);
  font-size: 13px;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 24px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 0;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease;
}

.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.25);
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: 0;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  font-size: 40px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease;
}

.lightbox-nav:hover {
  background: rgba(255, 255, 255, 0.25);
}

.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }

@media (max-width: 600px) {
  .lightbox-nav {
    width: 44px;
    height: 44px;
    font-size: 30px;
  }
  .lightbox-prev { left: 8px; }
  .lightbox-next { right: 8px; }
  .lightbox-close { top: 8px; right: 8px; }
}

/* ─── Botão voltar no detalhe ─────────────────────────── */

.btn-voltar {
  background: transparent;
  border: 0;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  cursor: pointer;
  padding: 8px 0;
  transition: color 0.15s ease;
}

.btn-voltar:hover {
  color: var(--ink);
}

.detalhe-hero {
  padding: 24px 0 0;
}


/* ═══════════════════════════════════════════════════════════
   LAYOUT JORNALÍSTICO — NOTÍCIAS
   ═══════════════════════════════════════════════════════════ */

.detalhe-artigo .corpo-jornal {
  max-width: 680px;
  margin: 32px auto 0;
  font-family: var(--font-serif);
  font-size: 19px;
  line-height: 1.75;
  color: var(--ink);
}

/* Primeiro parágrafo (lead) — em destaque */
.detalhe-artigo .corpo-jornal .lead-paragraph {
  font-size: 22px;
  line-height: 1.55;
  font-weight: 500;
  color: var(--ink);
  margin: 0 0 32px;
  padding-bottom: 32px;
  position: relative;
}

/* Ornamento decorativo abaixo do lead */
.detalhe-artigo .corpo-jornal .lead-paragraph::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 1px;
  background: var(--ink);
  opacity: 0.3;
}

/* Drop cap na primeira letra do lead */
.detalhe-artigo .corpo-jornal .lead-paragraph::first-letter {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 72px;
  line-height: 0.85;
  float: left;
  margin: 8px 12px -4px 0;
  color: var(--accent, var(--ink-3));
  padding: 0;
}

/* Parágrafos do corpo */
.detalhe-artigo .corpo-jornal p {
  margin: 0 0 22px;
  text-align: justify;
  hyphens: auto;
}

.detalhe-artigo .corpo-jornal p:last-child {
  margin-bottom: 0;
}

/* Título maior e mais editorial pra notícias */
.detalhe-artigo:not(.layout-revista) .detalhe-titulo {
  font-family: var(--font-serif);
  font-size: clamp(32px, 5vw, 52px);
  line-height: 1.05;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 12px 0 24px;
  max-width: 780px;
}

/* Meta info da notícia com estilo mais editorial */
.detalhe-artigo .detalhe-meta {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted);
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 24px;
}

.detalhe-artigo .detalhe-meta .detalhe-tag {
  background: var(--ink);
  color: #fff;
  padding: 4px 10px;
  border-radius: 3px;
  font-weight: 600;
}

/* Capa com margem inferior maior pra respirar */
.detalhe-artigo .detalhe-capa {
  margin: 0 0 40px;
  max-width: 100%;
  overflow: hidden;
  border-radius: 4px;
}

.detalhe-artigo .detalhe-capa img {
  width: 100%;
  height: auto;
  display: block;
}

@media (max-width: 640px) {
  .detalhe-artigo .corpo-jornal {
    font-size: 17px;
    line-height: 1.7;
  }
  .detalhe-artigo .corpo-jornal .lead-paragraph {
    font-size: 19px;
  }
  .detalhe-artigo .corpo-jornal .lead-paragraph::first-letter {
    font-size: 54px;
    margin: 6px 8px -2px 0;
  }
}


/* ═══════════════════════════════════════════════════════════
   PDF DE PRODUÇÃO — sem embed, botões grandes
   ═══════════════════════════════════════════════════════════ */

.detalhe-pdf-producao {
  margin: 48px auto;
  max-width: 680px;
  padding: 32px;
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: 8px;
  text-align: center;
}

.detalhe-pdf-producao-label {
  font-family: var(--font-mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted);
  margin-bottom: 20px;
}

.detalhe-pdf-producao-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.detalhe-pdf-producao-nota {
  margin: 16px 0 0;
  font-size: 13px;
  color: var(--muted);
  font-style: italic;
}

/* Botão grande pra ficar bem visível */
.btn-lg {
  font-size: 16px;
  padding: 14px 32px;
  font-weight: 600;
}


/* ═══════════════════════════════════════════════════════════
   LAYOUT REVISTA (quando tem PDF embutido em notícia)
   Ajustes pequenos pra combinar com o embed
   ═══════════════════════════════════════════════════════════ */

.detalhe-artigo.layout-revista .corpo-jornal {
  max-width: 680px;
}

.detalhe-artigo.layout-revista .corpo-jornal .lead-paragraph {
  font-size: 20px;
  padding-bottom: 24px;
  margin-bottom: 24px;
}

.detalhe-artigo.layout-revista .corpo-jornal .lead-paragraph::after {
  display: none; /* omite ornamento porque o PDF vem logo abaixo */
}

/* Quando tem PDF embutido, o texto acima vira "lead" reduzido */
.detalhe-artigo.layout-revista .detalhe-corpo p:not(.lead-paragraph) {
  font-size: 18px;
}

/* ═══════════════════════════════════════════════════════════
   styles-ticker-slides.css
   ═══════════════════════════════════════════════════════════ */

/* ─── Container do ticker (mantém aparência antiga) ────── */
.ticker {
  overflow: hidden;
  width: 100%;
  position: relative;
}

/* ─── Track: contém as duas slides lado a lado ───────── */
.ticker .ticker-track {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  width: max-content;
  animation: ticker-scroll 60s linear infinite;
  will-change: transform;
  padding: 11px 0;                     /* mantém padding original */
}

/* ─── Slide: uma unidade completa do conteúdo ────────── */
/* O gap aqui define espaço ENTRE items da mesma slide.
   O padding-right define espaço entre a slide A e a slide B. */
.ticker .ticker-slide {
  display: flex;
  align-items: center;
  gap: 40px;
  padding-right: 40px;                 /* espaço antes da próxima slide */
  flex-shrink: 0;
  white-space: nowrap;
}

/* ─── Item individual (mantém tipografia antiga) ─────── */
.ticker .ticker-item {
  display: inline-flex;
  gap: 10px;
  align-items: baseline;
  font-family: var(--font-mono);
  font-size: 12px;
  flex-shrink: 0;
}

/* ─── Pausa ao passar o mouse (opcional) ─────────────── */
.ticker:hover .ticker-track {
  animation-play-state: paused;
}

/* ─── A animação: 0% → -50% da track = 100% de uma slide ─ */
@keyframes ticker-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ─── Responsivo ─────────────────────────────────────── */
@media (max-width: 768px) {
  .ticker .ticker-track {
    animation-duration: 40s;
  }
  .ticker .ticker-slide {
    gap: 28px;
    padding-right: 28px;
  }
}
 
.btn-outline:hover,
.btn.btn-outline:hover,
a.btn-outline:hover {
  background: var(--ink) !important;
  color: #ffffff !important;
  border-color: var(--ink) !important;
}
 
/* Garante que dentro do botão (span, svg) tudo pega a cor branca */
.btn-outline:hover *,
.btn.btn-outline:hover *,
a.btn-outline:hover * {
  color: #ffffff !important;
  stroke: #ffffff !important;
}

 
/* Container do placeholder: dá mais espaço interno */
.card-placeholder {
  padding: 32px 24px !important;
  min-height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
}
 
/* O texto do tipo — aumenta bem */
.card-placeholder .placeholder-label {
  font-size: 20px !important;
  font-weight: 600 !important;
  letter-spacing: 0.14em !important;
  text-transform: uppercase;
  line-height: 1.25;
  padding: 10px 20px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.95);
  text-align: center;
  max-width: 90%;
  /* Se o texto for muito longo, quebra em várias linhas ao invés de estourar */
  word-break: keep-all;
  overflow-wrap: break-word;
}
 
/* Ajuste responsivo — em telas pequenas volta pra tamanho menor */
@media (max-width: 640px) {
  .card-placeholder .placeholder-label {
    font-size: 16px !important;
    padding: 8px 16px;
    letter-spacing: 0.12em !important;
  }
}



 
/* Container da capa da notícia/detalhe: limita altura máxima */
.detalhe-artigo .detalhe-capa {
  max-height: 420px;
  overflow: hidden;
  border-radius: 6px;
  margin: 0 0 32px;
}
 
.detalhe-artigo .detalhe-capa img {
  width: 100%;
  height: 100%;
  max-height: 420px;
  object-fit: cover;   /* Recorta bonito centralizado */
  object-position: center;
  display: block;
}
 
/* Em telas pequenas, reduz mais um pouco */
@media (max-width: 768px) {
  .detalhe-artigo .detalhe-capa {
    max-height: 280px;
  }
  .detalhe-artigo .detalhe-capa img {
    max-height: 280px;
  }
}