:root{
  --black: #121212;
  --black-soft: #1E1E1E;
  --green: #1A7F45;  /* v1.91: era #1C8A4B; contraste 4,39 → 5,04 no branco (WCAG AA pede 4,5) */
  --green-dark: #146238;
  --red: #C1272D;
  --red-dark: #931E23;
  --white: #FFFFFF;
  --paper: #F4F5F7;
  --card: #FFFFFF;
  --ink: #16181B;
  --ink-soft: #454C57;
  --line: #E4E6EA;
  --radius-sm: 6px;
  --radius-md: 12px;
}
*{box-sizing:border-box; margin:0; padding:0;}
body{
  background: var(--paper);
  color: var(--ink);
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
a{color:inherit; text-decoration:none;}
img{display:block; max-width:100%;}
button{font-family:'Inter';}

/* ---------- TOPBAR ---------- */
.topbar{
  display:flex; align-items:center; justify-content:space-between;
  padding: 16px 40px;
  background: var(--white);
  border-bottom: 1px solid var(--line);
  position: sticky; top:0; z-index:50;
  box-shadow: 0 1px 0 rgba(0,0,0,0.02);
}
.brand{ display:flex; align-items:center; gap:16px; color:inherit; text-decoration:none; border-radius:10px; }
.brand:focus-visible{ outline:2px solid var(--green); outline-offset:4px; }
.brand-mark{
  width:76px; height:76px; border-radius:50%;
  background: var(--black);
  display:flex; align-items:center; justify-content:center;
  border: 3px solid var(--red);
  overflow: hidden;
  flex: none;
}
.brand-mark img{ width:100%; height:100%; object-fit:cover; }

.brand-name{
  font-family:'Space Grotesk'; font-weight:800; font-size:28px; letter-spacing:0.01em;
  color: var(--black);
}
.brand-name span{ color: var(--ink); font-weight:700; font-size:15px; display:block; margin-top:4px; letter-spacing:0.01em;}
.nav-links{ display:flex; gap:28px; }
/* Menu: todos em preto; só o da parte da página em que a pessoa está fica verde (v1.43). */
.nav-links a{ font-size:18px; font-weight:700; color: var(--ink); transition: color .15s; white-space:nowrap;}
.nav-links a:hover{ color: var(--ink); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 8px; text-decoration-color: var(--line); }
.nav-links a.active, .nav-links a.active:hover{ color: var(--green); }
.nav-links a.active{ text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 8px; }
.nav-right{ display:flex; align-items:center; gap:14px; }
.btn-enter{
  background: var(--green); color: var(--white);
  font-weight:700; font-size:17px; padding:12px 24px; border-radius: 8px; border:none; cursor:pointer;
}
.avatar{
  width:34px; height:34px; border-radius:50%;
  background: var(--red);
  color:#fff;
  display:flex; align-items:center; justify-content:center;
  font-family:'Space Grotesk'; font-weight:700; font-size:13px;
}

/* ---------- LAYOUT ---------- */
.layout{
  max-width: 1180px; margin: 0 auto;
  padding: 0 40px 80px;
}

/* ---------- HERO ---------- */
.hero{
  background:
    radial-gradient(circle at 12% 20%, rgba(28,138,75,0.26), transparent 40%),
    radial-gradient(circle at 88% 85%, rgba(193,39,45,0.22), transparent 40%),
    var(--black);
  border-radius: 0; /* a faixa ocupa a largura toda; antes os cantos ficavam fora da tela */
  margin: 0 0 36px;
  padding: clamp(40px, 6vw, 72px) clamp(20px, 5vw, 40px) clamp(40px, 6vw, 68px);
  color: var(--white);
  position:relative;
  overflow:hidden;
}
.hero::after{
  display:none; content:"";
  position:absolute; right:-40px; bottom:-80px;
  width:280px; height:280px; border-radius:50%;
  background: radial-gradient(circle, rgba(28,138,75,0.28), transparent 70%);
}
.hero-inner{ max-width: 1180px; margin:0 auto; position:relative; z-index:2; }
.hero-inner--centro{ text-align:center; display:flex; flex-direction:column; align-items:center; }
.hero h1{
  font-family:'Space Grotesk'; font-weight:800; font-size: clamp(32px, 5.2vw, 60px); line-height:1.08;
  letter-spacing:-0.01em; max-width: 900px; margin-top:10px;
}
.hero-eyebrow{ font-size: clamp(12px, 1.2vw, 15px); font-weight:800; color: var(--green); letter-spacing:0.16em; }
.hero .hero-lead{ margin-top:0; color:#fff; font-weight:600; font-size: clamp(18px, 2vw, 24px); line-height:1.4; max-width: 900px; }
.hero .hero-texto{ margin-top:14px; color: rgba(255,255,255,0.82); font-size: clamp(16px, 1.6vw, 19px); line-height:1.65; max-width: 820px; }
.hero p{ margin-top:14px; color: rgba(255,255,255,0.8); font-size:17px; max-width:520px; }

/* ---------- BOAS-VINDAS (hero) ---------- */
.welcome-icon{
  width: clamp(104px, 11vw, 140px); height: clamp(104px, 11vw, 140px); border-radius:50%; overflow:hidden;
  border:4px solid var(--green); box-shadow: 0 0 0 6px rgba(28,138,75,0.18); margin-bottom:18px; flex:none;
}
.welcome-icon img{ width:100%; height:100%; object-fit:cover; }

/* ---------- SECTION HEAD ---------- */
.section-head{ display:flex; align-items:center; justify-content:space-between; margin-bottom: 18px; }
.section-head h2{ font-family:'Space Grotesk'; font-weight:700; font-size: 23px; }
.section-head a{ font-size:15px; font-weight:700; color: var(--red); }

/* ---------- FILTER CHIPS ---------- */
.filters{ display:flex; gap:10px; flex-wrap:wrap; margin-bottom: 22px; }
.chip{
  font-size:15px; font-weight:700; padding:9px 17px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--white); color: var(--ink-soft);
  cursor:pointer;
}
.chip.active{ background: var(--black); border-color: var(--black); color: var(--white); }

/* ---------- CATALOG GRID (Mural) ---------- */
.catalog-grid{
  display:grid; grid-template-columns: repeat(3, 1fr); gap:20px;
  margin-bottom: 44px;
}
.card-item{
  background: var(--card); border:1px solid var(--line); border-radius: var(--radius-md);
  overflow:hidden; display:flex; flex-direction:column;
  cursor: pointer; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card-item:hover{
  transform: translateY(-4px);
  box-shadow: 0 10px 26px rgba(0,0,0,0.12);
  border-color: var(--green);
}
.card-item:hover .card-body h3{ color: var(--green); }
.card-thumb{
  height:130px; display:flex; align-items:center; justify-content:center;
  font-size:34px; position:relative; transition: background-size .35s ease;
}
.card-item:hover .card-thumb{
  background-size: 112% !important;
}
.badge{
  position:absolute; top:12px; left:12px;
  background: rgba(255,255,255,0.92); color: var(--black);
  font-size:10px; font-weight:800; padding:4px 9px; border-radius:999px; letter-spacing:0.03em;
}
.card-body{ padding: 16px 18px 18px; display:flex; flex-direction:column; flex:1; }
.card-tag{
  align-self:flex-start;
  font-size:12px; font-weight:700; padding:4px 10px; border-radius:999px; margin-bottom:10px;
}
.card-body h3{ font-family:'Space Grotesk'; font-size:17px; font-weight:700; margin-bottom:8px; transition: color .2s ease; }
.card-body p{ font-size:15px; color: var(--ink-soft); flex:1; }
.card-meta{
  display:flex; align-items:center; justify-content:space-between;
  margin-top:14px; padding-top:14px; border-top:1px solid var(--line);
}
.card-meta span{ font-size:13px; color: var(--ink-soft); }

/* thumb + tag color variants (verde / vermelho / preto, sem repetir sempre a mesma) */
.tb-green{ background: var(--green); color:#fff; }
.tb-red{ background: var(--red); color:#fff; }
.tb-black{ background: var(--black); color:#fff; }
.tag-green{ background: rgba(28,138,75,0.12); color: var(--green-dark); }
.tag-red{ background: rgba(193,39,45,0.1); color: var(--red-dark); }
.tag-black{ background: rgba(18,18,18,0.08); color: var(--black); }

/* ---------- ESTRUTURA DO DA ---------- */
.estrutura-grid{
  display:grid; grid-template-columns: repeat(4, 1fr); gap:16px;
  margin-bottom: 44px;
}
.estrutura-card{
  background: var(--card); border:1px solid var(--line); border-radius: var(--radius-md);
  padding: 18px; border-top: 3px solid var(--green);
  cursor: pointer; transition: transform .2s ease, box-shadow .2s ease;
}
.estrutura-card:hover{
  transform: translateY(-4px);
  box-shadow: 0 10px 26px rgba(0,0,0,0.12);
}
.estrutura-card:hover h3{ color: var(--green); }
.estrutura-card.accent-red{ border-top-color: var(--red); }
.estrutura-card.accent-black{ border-top-color: var(--black); }
.estrutura-icon{ font-size:22px; margin-bottom:10px; }
.estrutura-card h3{ font-family:'Space Grotesk'; font-size:16px; font-weight:700; margin-bottom:6px; transition: color .2s ease; }
.estrutura-card p{ font-size:14px; color: var(--ink-soft); margin-bottom:8px; }
.estrutura-membros{ font-size:13px; font-weight:700; color: var(--green); }

.integrantes-list{ display:flex; flex-direction:column; gap:10px; }
.integrante-item{
  display:flex; justify-content:space-between; align-items:center;
  padding:10px 14px; background: var(--paper); border-radius: var(--radius-sm);
}
.integrante-item b{ font-size:14px; }
.integrante-item span{ font-size:13px; color: var(--ink-soft); }

/* ---------- AÇÕES SOCIAIS ---------- */
.acoes-sociais-banner{
  border-radius: var(--radius-md); overflow:hidden; margin-bottom:0;
}
.acoes-sociais-banner img{
  width:100%; display:block; max-height:320px; object-fit:cover;
}
.acoes-sociais-grid{
  display:grid; grid-template-columns: repeat(4, 1fr); gap:16px;
  margin-bottom: 44px;
}
.acao-social-card{
  background: var(--card); border:1px solid var(--line); border-radius: var(--radius-md);
  padding: 18px;
}
.acao-social-head{ display:flex; flex-direction:column; gap:8px; margin-bottom:8px; }
.acao-social-head h3{ font-family:'Space Grotesk'; font-size:16px; font-weight:700; }
.acao-social-card p{ font-size:14px; color: var(--ink-soft); }
.status-badge{
  align-self:flex-start; font-size:11px; font-weight:800; padding:4px 10px;
  border-radius:999px; text-transform:uppercase; letter-spacing:0.03em;
}
.status-ativo{ background: rgba(28,138,75,0.14); color: var(--green-dark); }  /* v1.91: contraste 4,23 → acima de 4,5 */
.status-inativo{ background: rgba(193,39,45,0.12); color: var(--red); }

/* ---------- MANIFESTO (lema) ---------- */
/* Centralizado e ocupando o card inteiro: logo, lema grande e texto largo. */
.manifesto{
  display:flex; flex-direction:column; align-items:center; justify-content:center; text-align:center;
  gap:18px;
  background:
    radial-gradient(circle at 12% 18%, rgba(28,138,75,0.28), transparent 42%),
    radial-gradient(circle at 88% 85%, rgba(193,39,45,0.24), transparent 42%),
    var(--black);
  border-radius: var(--radius-md);
  padding: clamp(36px, 6vw, 72px) clamp(22px, 6vw, 80px);
  margin-bottom: 32px;
  color: var(--white);
}
.manifesto-mark{
  width: clamp(96px, 11vw, 136px); height: clamp(96px, 11vw, 136px); border-radius:50%; flex:none;
  background: var(--black-soft);
  display:flex; align-items:center; justify-content:center;
  border: 4px solid var(--green);
  box-shadow: 0 0 0 6px rgba(28,138,75,0.18);
  overflow: hidden;
}
.manifesto-mark img{ width:100%; height:100%; object-fit:cover; }
.manifesto-text{ width:100%; display:flex; flex-direction:column; align-items:center; }
.manifesto-eyebrow{ font-size: clamp(13px, 1.2vw, 16px); font-weight:800; color: var(--green); letter-spacing:0.16em; }
.manifesto-text h2{
  font-family:'Space Grotesk'; font-weight:800; line-height:1.08;
  font-size: clamp(32px, 5.2vw, 64px); margin: 10px 0 0; letter-spacing:-0.01em;
}
.manifesto-traco{ display:block; width:96px; height:4px; border-radius:4px; margin: 22px auto;
  background: linear-gradient(90deg, var(--green) 50%, var(--red) 50%); }
.manifesto-text p{ color: rgba(255,255,255,0.86); font-size: clamp(16px, 1.7vw, 21px); line-height:1.65; max-width: 900px; margin:0 auto; }

.btn{
  font-weight:700; font-size:16px; padding:12px 20px; border-radius: 8px;
  border:none; cursor:pointer; font-family:'Inter';
}
.btn-primary{ background: var(--green); color:#fff; }
.btn-ghost{ background: transparent; border:1px solid var(--line); color: var(--ink); }

/* ---------- FOOTER ---------- */
.footer{
  background: var(--black); color: rgba(255,255,255,0.75);
  padding: 22px 40px; text-align:center; font-size:14px;
}
.footer strong{ color: var(--white); }

/* ---------- MODAL (slot genérico) ---------- */
.modal-overlay{
  display:none; position:fixed; inset:0; z-index:100;
  background: rgba(18,18,18,0.55);
  align-items:center; justify-content:center;
  padding: 20px;
}
.modal-overlay.open{ display:flex; }
.modal-box{
  background: var(--white); border-radius: var(--radius-md);
  padding: 32px; width:100%; max-width: 460px;
  position:relative; max-height: 84vh; overflow-y:auto;
  border-top: 4px solid var(--green);
}
.modal-box.modal-box--auth{ min-height: 500px; }
.modal-box.modal-box--wide{ max-width: 760px; }
.modal-box--centro .modal-eyebrow, .modal-box--centro h2{ text-align:center; padding:0 28px; }
.galeria-grid{
  display:grid; grid-template-columns: repeat(3, 1fr); gap:8px;
  margin-top: 14px;
}
.galeria-grid img{
  width:100%; height:110px; object-fit:cover; border-radius:8px;
  border:1px solid var(--line); cursor:pointer;
  transition: transform .2s ease, box-shadow .2s ease;
}
.galeria-grid img:hover{
  transform: translateY(-4px);
  box-shadow: 0 8px 18px rgba(0,0,0,0.18);
}

.lightbox-overlay{
  display:none; position:fixed; inset:0; z-index:200;
  background: rgba(0,0,0,0.95);
  align-items:center; justify-content:center; flex-direction:column;
  padding: 32px; cursor: zoom-out;
}
.lightbox-overlay.open{ display:flex; }
.lightbox-overlay img{
  max-width: 80vw; max-height: 78vh; object-fit:contain;
  border-radius: var(--radius-sm); cursor: default;
  box-shadow: 0 20px 50px rgba(0,0,0,0.4);
  animation: lightbox-in .18s ease;
}
@keyframes lightbox-in{
  from{ transform: scale(0.92); opacity:0; }
  to{ transform: scale(1); opacity:1; }
}
.lightbox-legenda{
  color: rgba(255,255,255,0.85); font-size:14px; margin-top:16px; text-align:center; max-width:80vw;
}
.lightbox-close{
  position:absolute; top:20px; right:24px;
  background: rgba(255,255,255,0.12); border:none; color:#fff;
  width:38px; height:38px; border-radius:50%; font-size:18px; cursor:pointer;
}
.lightbox-close:hover{ background: rgba(255,255,255,0.22); }
.modal-close{
  position:absolute; top:16px; right:16px;
  background: var(--paper); border:none; width:30px; height:30px; border-radius:50%;
  color: var(--ink-soft); font-size:14px; cursor:pointer;
}
.modal-eyebrow{ font-size:13px; font-weight:700; color: var(--green); display:block; margin-bottom:8px; }
.modal-box h2{ font-family:'Space Grotesk'; font-weight:800; font-size:22px; margin-bottom:14px; }
.modal-empty{
  border: 1.5px dashed var(--line); border-radius: var(--radius-sm);
  padding: 22px; text-align:center; color: var(--ink-soft); font-size:14px;
  background: var(--paper);
}
#modal-body p{ color: var(--ink-soft); font-size:16px; margin-bottom:10px; }
#modal-body .modal-meta{ font-size:14px; color: var(--ink-soft); margin-top:12px; }

.edicoes-anteriores{ margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); }
.edicoes-anteriores h4{ font-family:'Space Grotesk'; font-weight:700; font-size:16px; margin-bottom:12px; }
.edicao-anterior{
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 14px; margin-bottom: 12px; background: var(--paper);
}
.edicao-anterior b{ display:block; font-size:15px; margin-bottom:4px; }
.edicao-anterior p{ font-size:14px; margin-bottom:8px; }
.galeria-mini{ grid-template-columns: repeat(4, 1fr); gap:6px; margin-top:8px; }
.galeria-mini img{ height:64px; }
.edicao-destaques{ margin-top:8px; padding-left:18px; font-size:14px; color: var(--ink-soft); }
.edicao-destaques li{ margin-bottom:4px; }

.cta-button{
  display:inline-block; margin-top:14px; padding:12px 24px;
  background: var(--green); color: var(--white); font-weight:700;
  font-size:15px; border-radius: var(--radius-sm); text-decoration:none;
  border:none; cursor:pointer; font-family:'Inter';
}
.cta-button:hover{ opacity:0.88; }
.cta-button--outline{
  background: transparent; color: var(--red); border: 1.5px solid var(--red);
  margin-top:10px;
}
.cta-qr{
  display:flex; align-items:center; gap:10px; margin-top:12px;
}
.cta-qr img{
  width:64px; height:64px; border-radius:6px; border:1px solid var(--line);
  flex:none;
}
.cta-qr span{ font-size:13px; color: var(--ink-soft); }
.aviso-box{
  margin-top:18px; padding:14px 16px; border-left:4px solid var(--red);
  background: var(--paper); border-radius: var(--radius-sm);
}
.aviso-box strong{
  display:block; color: var(--red); font-size:12px; text-transform:uppercase;
  letter-spacing:.6px; margin-bottom:6px;
}
.aviso-box p{ font-size:14px; margin-bottom:4px; }

.field-group{ display:flex; flex-direction:column; gap:6px; margin-bottom:14px; }
.field-label{ font-size:14px; font-weight:700; color: var(--ink); text-align:center; }
.field-group input, .field-group select, .field-group textarea{
  width:100%;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 12px 14px; color: var(--ink); font-family:'Inter'; font-size:15px; resize:vertical;
}
.modal-login-error{ color: var(--red); font-size:14px; margin: -6px 0 12px; text-align:center; display:none; }
.checkbox-row{
  display:flex; align-items:center; justify-content:center; gap:8px;
  font-size:15px; color: var(--ink-soft); margin: 14px 0 4px; cursor:pointer;
}
.checkbox-row input[type="checkbox"]{ width:16px; height:16px; accent-color: var(--green); cursor:pointer; }

/* Telas médias (tablet, notebook pequeno): o menu encolhe em degraus para não
   encostar no logo nem quebrar linha. Abaixo de 900px o menu some (ver abaixo). */
/* v1.57: cabeçalho calibrado por largura.
   >= 1440px: tamanho cheio. 1181-1439px: menu na linha, compacto, nome sem quebrar.
   <= 1180px: menu no botão ☰ (ver MENU DO CELULAR). */
.brand-name span{ white-space:nowrap; }
@media (min-width: 1181px) and (max-width: 1439px){
  .topbar{ padding: 14px 28px; gap: 24px; }
  .brand{ gap:12px; flex:none; }
  .brand-mark{ width:60px; height:60px; }
  .brand-name{ font-size:23px; }
  .brand-name span{ font-size:13px; margin-top:2px; }
  .nav-links{ gap:18px; }
  .nav-links a{ font-size:16px; }
  .nav-links a.nav-externo{ padding-left:18px; }
  .btn-enter{ font-size:16px; padding:10px 20px; }
}
@media (min-width: 1440px) and (max-width: 1599px){
  .nav-links{ gap:22px; }
  .nav-links a{ font-size:17px; }
  .nav-links a.nav-externo{ padding-left:20px; }
}
@media (min-width: 1181px) and (max-width: 1300px){
  .nav-links{ gap:15px; }
  .nav-links a{ font-size:15.5px; }
}

@media (max-width: 900px){
  .layout{ padding: 0 20px 60px; }
  .hero{ margin: 0 0 28px; }
  .estrutura-grid{ grid-template-columns: repeat(2, 1fr); }
  .acoes-sociais-grid{ grid-template-columns: repeat(2, 1fr); }
  .catalog-grid{ grid-template-columns: 1fr; }
  .topbar{ padding: 14px 20px; }
  .brand{ gap:12px; }
  .brand-mark{ width:60px; height:60px; }
  .brand-name{ font-size:22px; }
  .brand-name span{ font-size:13px; }
  .galeria-grid{ grid-template-columns: repeat(2, 1fr); }
  .galeria-mini{ grid-template-columns: repeat(3, 1fr); }
}

/* ---------- VESTIBULAR (R42) ----------
   Fundo, texto e botão usam as cores do site. O verde e o vermelho usados
   como TEXTO sobre o fundo escuro são versões mais claras, porque as do site
   ficam abaixo do contraste mínimo de 4,5:1 nesse fundo (verde 4,27; vermelho 3,21).
   Contrastes: verde #1fa34a 5,71; vermelho #f0545a 5,46; cinza #a3a3a3 7,43;
   botão branco sobre --green-dark 7,41. */
.dafo-vest{
  --dv-mudo: #a3a3a3;
  --dv-linha: #2a2a2a;
  --dv-verde-texto: #1fa34a;
  --dv-vermelho-texto: #f0545a;
  background: var(--black);
  color: var(--white);
  border: 1px solid var(--dv-linha);
  border-radius: var(--radius-md);
  padding: 20px;
  margin: 0 0 32px;
  line-height: 1.4;
  scroll-margin-top: 124px; /* altura do cabeçalho fixo */
}
.dafo-vest [hidden]{ display:none !important; }
.dv-topo{ display:flex; flex-wrap:wrap; justify-content:space-between; align-items:flex-start; gap:10px; margin-bottom:18px; }
.dafo-vest h2{ margin:0; font-family:'Space Grotesk'; font-size:1.35rem; font-weight:800; letter-spacing:.01em; color: var(--white); }
.dv-sub{ margin:2px 0 0; color: var(--dv-mudo); font-size:.9rem; }
.dv-selo{ border:1px solid var(--dv-verde-texto); color: var(--dv-verde-texto); border-radius:999px; padding:4px 10px; font-size:.75rem; font-weight:700; text-transform:uppercase; letter-spacing:.04em; white-space:nowrap; }

.dv-linha{ list-style:none; margin:0 0 14px; padding:0; display:grid; grid-template-columns:1fr; gap:8px; }
.dv-linha li{ border-left:3px solid var(--dv-linha); padding:6px 10px; display:flex; flex-direction:column; }
.dv-etapa{ font-size:.78rem; text-transform:uppercase; letter-spacing:.05em; color: var(--dv-mudo); font-weight:700; }
.dv-data{ font-weight:700; font-size:1rem; }
.dv-linha li.dv-feito{ opacity:.45; }
.dv-linha li.dv-feito .dv-etapa::after{ content:" ✓"; }
.dv-linha li[aria-current="step"]{ border-left-color: var(--red); background: rgba(193,39,45,.14); }
.dv-linha li[aria-current="step"] .dv-etapa{ color: var(--dv-vermelho-texto); }
.dv-agenda{ margin-top:4px; font-size:.78rem; color: var(--white); text-decoration:underline; text-underline-offset:2px; align-self:flex-start; }

.dv-aviso{ margin:0 0 14px; padding:10px 12px; border-left:3px solid var(--red); background: rgba(193,39,45,.14); font-weight:700; }
.dv-info{ margin:0 0 18px; color: var(--dv-mudo); font-size:.92rem; }

.dv-h3{ margin:0 0 8px; font-size:.78rem; text-transform:uppercase; letter-spacing:.05em; color: var(--dv-mudo); }
.dv-cursos{ list-style:none; margin:0 0 18px; padding:0; display:grid; grid-template-columns:1fr; gap:6px; }
.dv-cursos a{ display:flex; justify-content:space-between; align-items:baseline; gap:10px; padding:8px 10px; border:1px solid var(--dv-linha); border-radius:8px; color:inherit; transition: border-color .15s; }
.dv-cursos a:hover{ border-color: var(--dv-verde-texto); }
.dv-nome{ font-weight:600; font-size:.92rem; }
.dv-nome::after{ content:" ↗"; color: var(--dv-mudo); font-weight:400; font-size:.8em; }
.dv-turno{ color: var(--dv-mudo); font-size:.82rem; white-space:nowrap; }

.dv-acoes{ display:flex; flex-wrap:wrap; gap:10px; margin-bottom:14px; }
.dv-btn{ display:inline-flex; align-items:center; justify-content:center; min-height:44px; padding:10px 16px; border-radius:8px; font-weight:700; font-size:.92rem; }
.dv-btn-prim{ background: var(--green-dark); color: var(--white); }
.dv-btn-sec{ border:1px solid var(--white); color: var(--white); }
.dafo-vest a:focus-visible{ outline:2px solid var(--dv-vermelho-texto); outline-offset:2px; }

.dv-rodape{ display:flex; flex-wrap:wrap; justify-content:space-between; align-items:center; gap:8px; }
.dv-fonte{ margin:0; font-size:.75rem; color: var(--dv-mudo); }
.dv-share{ font-size:.8rem; font-weight:700; color: var(--dv-verde-texto); min-height:32px; display:inline-flex; align-items:center; }
.dv-share:hover{ text-decoration:underline; }

@media (min-width: 640px){
  .dv-linha{ grid-template-columns: repeat(4, 1fr); }
  .dv-linha li{ border-left:0; border-top:3px solid var(--dv-linha); padding:8px 6px 0 0; background:none; }
  .dv-linha li[aria-current="step"]{ border-top-color: var(--red); background:none; }
  .dv-cursos{ grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px){
  .dafo-vest{ scroll-margin-top: 120px; }
}

/* ---------- ENVIO POR E-MAIL (formulários de demanda e de inscrição na Expo) ---------- */
.envio-painel{ display:flex; flex-direction:column; gap:12px; }
.envio-titulo{ margin:0; font-weight:700; color: var(--ink); text-align:center; }
.envio-principal{ display:flex; align-items:center; justify-content:center; min-height:48px; width:100%; text-align:center; }
.envio-aviso{ margin:0; padding:8px 10px; border-left:3px solid var(--red); background: var(--paper); font-size:13px; font-weight:600; color: var(--ink); }
.envio-aviso[hidden]{ display:none; }
.envio-texto{ width:100%; padding:10px; border:1px solid var(--line); border-radius:8px; background: var(--paper); color: var(--ink); font-family:'Inter'; font-size:13px; resize:vertical; }
.envio-aviso a{ color: var(--green-dark); text-decoration:underline; }
.envio-voltar{ display:flex; align-items:center; justify-content:center; min-height:48px; width:100%; background: var(--red); color:#fff; }
.envio-voltar:hover, .envio-principal:hover{ filter: brightness(0.92); }
.envio-principal, .envio-voltar{ line-height:1.5; }
.envio-voltar:focus-visible, .envio-principal:focus-visible{ outline:2px solid var(--black); outline-offset:2px; }

/* ---------- MENU DO CELULAR (botão ☰, até 1180px desde a v1.57) ----------
   No PC o botão fica escondido e o menu aparece na linha do cabeçalho.
   No celular o menu vira um painel que abre logo abaixo do cabeçalho. */
.nav-toggle{ display:none; }
@media (max-width: 1180px){
  /* o logo e o nome encolhem e quebram linha; o Entrar e o ☰ nunca encostam */
  .brand-name span{ white-space:normal; }
  .topbar{ gap:12px; }
  .brand{ min-width:0; flex:1 1 auto; }
  .brand-name{ min-width:0; }
  .brand-name span{ line-height:1.25; }
  .nav-right{ gap:10px; flex:none; }
  .btn-enter{ font-size:15px; padding:10px 14px; }
  .nav-toggle{
    display:flex; flex-direction:column; justify-content:center; align-items:center; gap:5px;
    width:44px; height:44px; padding:0; border:1px solid var(--line); border-radius:8px;
    background: var(--white); cursor:pointer; flex:none;
  }
  .nav-toggle-barra{ display:block; width:22px; height:2.5px; border-radius:2px; background: var(--black); transition: transform .2s, opacity .2s; }
  .nav-toggle[aria-expanded="true"] .nav-toggle-barra:nth-child(1){ transform: translateY(7.5px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] .nav-toggle-barra:nth-child(2){ opacity:0; }
  .nav-toggle[aria-expanded="true"] .nav-toggle-barra:nth-child(3){ transform: translateY(-7.5px) rotate(-45deg); }
  .nav-toggle:focus-visible{ outline:2px solid var(--green); outline-offset:2px; }

  .nav-links{
    display:none; position:absolute; top:100%; left:0; right:0;
    flex-direction:column; gap:0; padding:8px 20px 16px;
    background: var(--white); border-bottom:1px solid var(--line);
    box-shadow: 0 12px 24px rgba(0,0,0,0.12);
    max-height: calc(100vh - 90px); overflow-y:auto;
  }
  .topbar.menu-aberto .nav-links{ display:flex; }
  .nav-links a{
    display:flex; align-items:center; min-height:52px; padding:0 4px;
    font-size:18px; border-bottom:1px solid var(--line);
  }
  .nav-links a:last-child{ border-bottom:none; }
}
/* Páginas sem o botão ☰ (login, Área do Aluno, status, privacidade): o menu curto
   continua na linha entre 901 e 1180px, como era antes da v1.57. */
@media (min-width: 901px) and (max-width: 1180px){
  .nav-links:not(#menu-principal){ display:flex; position:static; flex-direction:row; gap:18px; padding:0;
    background:none; border:0; box-shadow:none; max-height:none; overflow:visible; }
  .nav-links:not(#menu-principal) a{ min-height:0; padding:0; border:0; font-size:16px; }
}
@media (max-width: 480px){
  .topbar{ padding:12px 16px; gap:10px; }
  .brand{ gap:10px; }
  .brand-mark{ width:52px; height:52px; }
  .brand-name{ font-size:20px; }
  .brand-name span{ font-size:12px; margin-top:2px; }
  .nav-right{ gap:8px; }
}
@media (max-width: 360px){
  .brand-mark{ width:44px; height:44px; }
  .brand{ gap:8px; }
  .brand-name{ font-size:18px; }
  .brand-name span{ font-size:11px; }
  .btn-enter{ font-size:14px; padding:9px 10px; }
}

/* ---------- DEMANDA ENVIADA PELA API (R11) ---------- */
.demanda-turnstile{ display:flex; justify-content:center; margin: 0 0 8px; }
.demanda-turnstile:empty{ display:none; }
.demanda-enviar:disabled{ opacity:.75; cursor:progress; }
.demanda-ok{ display:flex; flex-direction:column; align-items:center; text-align:center; gap:6px; padding: 8px 0 4px; }
.demanda-ok-icone{ width:64px; height:64px; border-radius:50%; background: var(--green); color:#fff; font-size:34px; font-weight:800; display:flex; align-items:center; justify-content:center; margin-bottom:6px; }
.demanda-ok-titulo{ margin:0; font-family:'Space Grotesk'; font-weight:800; font-size:22px; color: var(--black); }
#modal-body .demanda-ok-rotulo{ margin:10px 0 0; font-size:13px; font-weight:700; color: var(--ink-soft); text-transform:uppercase; letter-spacing:.06em; }
#modal-body .demanda-ok-protocolo{ margin:0; font-family:'Space Grotesk'; font-weight:800; font-size:28px; color: var(--green-dark); letter-spacing:.02em; user-select:all; }
#modal-body .demanda-ok-texto{ margin:6px 0 14px; font-size:15px; color: var(--ink-soft); word-break:break-word; }
.demanda-ok-fechar{ width:100%; min-height:48px; line-height:1.5; }

/* Sair: sempre em vermelho, em todo o site */
.sair{ color: var(--red) !important; font-weight:700; }
.sair-escuro{ color:#FF5A60 !important; border-color: rgba(255,90,96,0.6) !important; }

/* ---------- v1.28: revisão de interface ---------- */
/* Mural: texto do card em até 3 linhas (cards da mesma altura); o texto inteiro abre no clique */
.card-body p{ display:-webkit-box; -webkit-line-clamp:3; line-clamp:3; -webkit-box-orient:vertical; overflow:hidden; flex:none; }
.card-body{ display:flex; flex-direction:column; }
.card-body .card-meta{ margin-top:auto; display:flex; justify-content:space-between; align-items:center; gap:8px; }
.card-mais{ font-size:13px; font-weight:700; color: var(--green) !important; white-space:nowrap; }
.badge-fixado{ background: var(--red); color: var(--white); }
/* Detalhe do card: imagem no topo e janela larga no PC */
.detalhe-capa{ width:100%; aspect-ratio: 2.6 / 1; background-size:cover; background-repeat:no-repeat; border-radius:10px; margin: 0 0 18px; }
.modal-box.modal-box--wide{ max-width: 880px; }
@media (min-width: 900px){ .modal-box.modal-box--wide{ padding: 36px 44px; } .modal-box.modal-box--wide p{ font-size:16px; line-height:1.65; } }
/* Eventos/Avisos no menu: o título do mural para logo abaixo do cabeçalho fixo */
#mural{ scroll-margin-top: 124px; }
@media (max-width: 900px){ #mural{ scroll-margin-top: 104px; } }
/* Link externo (site da Fatec) separado dos links do portal */
.nav-links a.nav-externo{ font-weight:600; border-left:1px solid var(--line); padding-left:24px; }
.nav-links a.nav-externo span{ font-size:.85em; }
@media (max-width: 1180px){ .nav-links a.nav-externo{ border-left:none; padding-left:4px; } }

/* Vestibular no tema claro: mesmo fundo e mesmas cores do resto do site */
.dafo-vest{
  --dv-mudo: var(--ink-soft);
  --dv-linha: var(--line);
  --dv-verde-texto: var(--green-dark);
  --dv-vermelho-texto: var(--red);
  background: var(--white); color: var(--ink);
  border:1px solid var(--line); border-top:4px solid var(--green);
  padding: 24px;
}
.dafo-vest h2{ color: var(--ink); }
.dv-selo{ background: rgba(28,138,75,0.1); border-color: transparent; }
.dv-linha li{ background: var(--paper); border-radius:8px; }
.dv-linha li[aria-current="step"]{ background: rgba(193,39,45,0.08); }
.dv-agenda{ color: var(--green-dark); font-weight:700; }
.dv-aviso{ background: rgba(193,39,45,0.08); }
.dv-info{ font-weight:600; color: var(--ink); }
.dv-cursos a{ background: var(--white); }
.dv-cursos a:hover{ border-color: var(--green); }
.dv-btn-prim{ background: var(--green); }
.dv-btn-sec{ border:1px solid var(--line); color: var(--ink); background: var(--white); }
.dv-rodape{ border-top:1px solid var(--line); padding-top:12px; }
@media (min-width: 640px){
  .dv-linha li{ border-top:3px solid var(--line); padding:10px 12px; border-left:0; background: var(--paper); }
  .dv-linha li[aria-current="step"]{ border-top-color: var(--red); background: rgba(193,39,45,0.08); }
}

/* ---------- v1.29: data do evento nos cards ---------- */
.quando{ font-size:13px; font-weight:700; color: var(--green-dark) !important; }
.quando em{ font-style:normal; font-weight:700; font-size:11px; text-transform:uppercase; letter-spacing:.03em;
  background: rgba(28,138,75,0.12); color: var(--green-dark); border-radius:999px; padding:2px 8px; margin-left:4px; white-space:nowrap; }
.quando.quando-encerrado{ color: var(--ink-soft) !important; }
.quando.quando-encerrado em{ background: var(--paper); color: var(--ink-soft); }
.quando.quando-indefinido{ color: var(--ink-soft) !important; font-weight:600; }
.modal-quando{ margin: 0 0 12px; }
.modal-quando .quando{ font-size:15px; }
.edicao-anterior .quando{ display:block; margin: 2px 0 6px; }

/* ---------- v1.32: Loja D.A.F.O ---------- */
.loja{
  margin: 8px 0 32px; scroll-margin-top: 124px;
  background: var(--card); border:1px solid var(--line); border-top: 4px solid var(--red);
  border-radius: var(--radius-md); padding: 28px;
}
.loja-cabeca{ text-align:center; margin-bottom:22px; }
.loja-selo{ display:inline-block; font-size:12px; font-weight:800; letter-spacing:0.04em; text-transform:uppercase;
  color: var(--red); background: rgba(193,39,45,0.1); padding:5px 12px; border-radius:999px; }
.loja-cabeca h2{ font-family:'Space Grotesk'; font-weight:800; font-size: clamp(24px, 3vw, 32px); margin:10px 0 6px; }
@media (max-width: 600px){ .loja{ padding: 20px 16px; } }
@media (max-width: 900px){ .loja{ scroll-margin-top: 104px; } }
.loja[hidden], .nav-links a[hidden]{ display:none !important; }
.loja-sub{ color: var(--ink-soft); margin: 0 auto; max-width: 620px; }
.loja-grid{ display:grid; grid-template-columns: repeat(auto-fit, minmax(260px, 360px)); justify-content:center; gap:18px; margin-bottom:18px; }
@media (max-width: 600px){ .loja-grid{ grid-template-columns: 1fr; } }
.loja-item{ background: var(--card); border:1px solid var(--line); border-radius: var(--radius-md); overflow:hidden; display:flex; flex-direction:column; }
.loja-foto{ aspect-ratio: 4 / 3; background: var(--paper) center/cover no-repeat; display:flex; align-items:center; justify-content:center; font-size:56px; }
.loja-info{ padding:16px 18px 18px; display:flex; flex-direction:column; gap:6px; flex:1; }
.loja-info h3{ font-family:'Space Grotesk'; font-size:18px; }
.loja-info p{ color: var(--ink-soft); font-size:14px; }
.loja-tamanhos{ font-weight:600; }
.loja-rodape{ display:flex; justify-content:space-between; align-items:center; gap:10px; margin-top:auto; padding-top:10px; }
.loja-preco{ font-family:'Space Grotesk'; font-size:22px; font-weight:800; color: var(--green-dark); white-space:nowrap; }
.loja-encomendar{ padding:10px 18px; }
.loja-passos{ display:grid; grid-template-columns: repeat(3, 1fr); gap:12px; list-style:none; padding:0; margin:0; counter-reset: passo; }
.loja-passos li{ counter-increment: passo; background: var(--paper); border:1px solid transparent; border-radius:10px; padding:12px 14px; font-size:14px; color: var(--ink-soft); }
.loja-passos li::before{ content: counter(passo); display:inline-flex; width:22px; height:22px; border-radius:50%; background: var(--green); color:#fff; font-weight:800; font-size:12px; align-items:center; justify-content:center; margin-right:8px; }
@media (max-width: 700px){ .loja-passos{ grid-template-columns:1fr; } }
.loja-resumo{ text-align:center; margin-bottom:12px; }
.loja-duas{ display:grid; grid-template-columns: 1fr 1fr; gap:12px; }
.loja-total{ text-align:center; font-size:16px; margin: 4px 0 10px; }
.loja-pix{ width:100%; text-align:center; display:flex; flex-direction:column; gap:6px; margin-top:6px; }
.loja-pix .chave-2fa{ display:flex; gap:8px; align-items:center; background: var(--paper); border-radius:8px; padding:10px 12px; font: 600 14px ui-monospace, Menlo, monospace; word-break:break-all; text-align:left; }
.loja-pix .chave-2fa span{ flex:1; }
.loja-pix .btn-mini{ border:1px solid var(--line); background: var(--white); border-radius:6px; padding:6px 10px; font: 700 13px 'Inter', sans-serif; color: var(--green); cursor:pointer; }
.loja-duas > .field-group{ min-width:0; }
.loja-duas input, .loja-duas select{ min-width:0; width:100%; }
@media (max-width: 380px){ .loja-duas{ grid-template-columns:1fr; gap:0; } }
/* Vestibular: o selo quebra a linha em telas estreitas (estourava 3px em 320px desde a v1.28) */
@media (max-width: 400px){ .dv-selo{ white-space:normal; } }
.loja-detalhes{ align-self:flex-start; background:none; border:none; padding:0; color: var(--green); font: 700 14px 'Inter', sans-serif; cursor:pointer; }
.loja-detalhes:hover{ text-decoration:underline; }
/* Um produto só: no PC o card ocupa a largura toda, com a foto à esquerda */
@media (min-width: 760px){
  .loja-grid:has(> .loja-item:only-child){ grid-template-columns: 1fr; }
  .loja-item:only-child{ flex-direction:row; }
  .loja-item:only-child .loja-foto{ width: 46%; flex:none; aspect-ratio:auto; min-height: 320px; }
  .loja-item:only-child .loja-info{ padding: 28px 32px; gap:10px; }
  .loja-item:only-child .loja-info h3{ font-size:24px; }
  .loja-item:only-child .loja-info p{ font-size:15px; }
}
.loja-foto{ position:relative; }
.loja-ilustrativa{ position:absolute; left:10px; bottom:10px; font-size:11px; font-weight:700; background: rgba(255,255,255,0.9); color: var(--ink-soft); padding:3px 8px; border-radius:999px; }
.loja-prazo{ text-align:center; font-size:14px; font-weight:600; color: var(--ink-soft); margin-top:10px; }
#loja-semestre-turno[hidden]{ display:none; }

/* Avisos de última hora, mural vazio e selo de inativo na estrutura (v1.37) */
.badge-urgente{ background: var(--red); color: var(--white); }
.mural-vazio{ text-align:center; color: var(--ink-soft); font-size:15px; padding: 28px 16px; margin-bottom:24px;
  background: var(--card); border:1px dashed var(--line); border-radius: var(--radius-md); }
.mural-vazio[hidden]{ display:none; }
.estrutura-status{ display:inline-block; margin: 0 8px 8px 0; }
.aviso-inativo{ display:flex; flex-direction:column; gap:8px; margin-top:12px; padding:12px 14px;
  background: rgba(193,39,45,0.06); border-radius: var(--radius-sm); }
.aviso-inativo .status-badge{ align-self:flex-start; }

/* Galeria do produto na Loja (v1.38) */
.loja-galeria{ display:flex; flex-direction:column; }
.loja-foto--galeria{ border:none; padding:0; width:100%; cursor: zoom-in; display:block;
  background-color:#D7D7D8; background-size:contain; background-repeat:no-repeat; background-position:center; }
.loja-ampliar{ position:absolute; right:10px; bottom:10px; font-size:11px; font-weight:700; background: rgba(17,17,17,0.75); color:#fff;
  padding:3px 9px; border-radius:999px; }
.loja-miniaturas{ display:grid; grid-template-columns: repeat(4, 1fr); gap:6px; padding:8px 8px 0; }
.loja-mini{ border:2px solid transparent; background: var(--paper); border-radius:8px; padding:3px 3px 4px; cursor:pointer;
  display:flex; flex-direction:column; align-items:stretch; gap:3px; font: 600 11px 'Inter', sans-serif; color: var(--ink-soft); min-width:0; }
.loja-mini-img{ display:block; aspect-ratio: 1 / 1; border-radius:5px; background:#D7D7D8 center/cover no-repeat; }
.loja-mini-txt{ white-space:nowrap; overflow:hidden; text-overflow:ellipsis; text-align:center; }
.loja-mini.ativa{ border-color: var(--green); color: var(--green); }
.loja-mini:focus-visible, .loja-foto--galeria:focus-visible{ outline:3px solid var(--green); outline-offset:2px; }
.card-thumb, .detalhe-capa{ position:relative; }
.capa-ilustrativa{ position:absolute; right:10px; bottom:10px; font-size:11px; font-weight:700; background: rgba(255,255,255,0.9);
  color: var(--ink-soft); padding:3px 8px; border-radius:999px; line-height:1.3; }
@media (max-width: 420px){
  .loja-miniaturas{ gap:4px; padding:6px 6px 0; }
  .loja-mini{ font-size:10px; padding:2px 2px 3px; }
  .loja-mini-txt{ white-space:normal; line-height:1.15; min-height:2.3em; display:flex; align-items:center; justify-content:center; }
}

/* Janela do mural: lista de tópicos e texto original que abre e fecha (v1.40) */
.detalhe-topicos{ margin-top:16px; padding:14px 16px; background: var(--paper); border-radius: var(--radius-sm); }
.detalhe-topicos h4{ font-family:'Space Grotesk'; font-size:15px; margin-bottom:8px; }
.detalhe-topicos ul{ margin:0; padding-left:20px; display:flex; flex-direction:column; gap:4px; }
.detalhe-topicos li{ font-size:15px; color: var(--ink); }
.detalhe-topicos p{ font-size:15px; color: var(--ink); margin:0 0 8px; }
.detalhe-original{ margin-top:16px; border:1px solid var(--line); border-radius: var(--radius-sm); padding:10px 14px; }
.detalhe-original summary{ cursor:pointer; font-weight:700; color: var(--green); font-size:14px; }
.detalhe-original p{ font-size:14px; color: var(--ink-soft); margin-top:8px; font-style:italic; }

/* Lightbox em carrossel (v1.41) */
.lightbox-nav{ position:absolute; top:50%; transform:translateY(-50%); width:52px; height:52px; border-radius:50%;
  border:none; background: rgba(255,255,255,0.14); color:#fff; font-size:34px; line-height:1; cursor:pointer;
  display:flex; align-items:center; justify-content:center; padding-bottom:4px; }
.lightbox-nav:hover{ background: rgba(255,255,255,0.26); }
.lightbox-nav:focus-visible{ outline:3px solid #fff; outline-offset:2px; }
.lightbox-nav[hidden]{ display:none; }
.lightbox-ant{ left:16px; }
.lightbox-prox{ right:16px; }
.lightbox-contador{ color: rgba(255,255,255,0.7); font-size:13px; font-weight:700; margin-top:6px; }
.lightbox-contador[hidden]{ display:none; }
@media (max-width: 600px){
  .lightbox-overlay{ padding: 56px 8px 24px; }
  .lightbox-overlay img{ max-width: 100%; max-height: 70vh; }
  .lightbox-nav{ top:auto; bottom:18px; transform:none; width:46px; height:46px; }
  .lightbox-ant{ left:calc(50% - 110px); }
  .lightbox-prox{ right:calc(50% - 110px); }
  .lightbox-contador{ margin-top:10px; }
}

/* Card "Tem uma demanda?" centralizado, no mesmo padrão da Loja (v1.42) */
.demanda-card{
  background: var(--card); border:1px solid var(--line); border-top: 4px solid var(--red);
  border-radius: var(--radius-md); padding: clamp(28px, 4vw, 44px) clamp(18px, 4vw, 40px);
  margin: 8px 0 40px; text-align:center; display:flex; flex-direction:column; align-items:center; gap:10px;
  scroll-margin-top: 124px;
}
.selo-pill{ display:inline-block; font-size:12px; font-weight:800; letter-spacing:0.04em; text-transform:uppercase;
  color: var(--red); background: rgba(193,39,45,0.1); padding:5px 12px; border-radius:999px; }
.demanda-card h2{ font-family:'Space Grotesk'; font-weight:800; font-size: clamp(24px, 3vw, 32px); margin-top:4px; }
.demanda-card p{ color: var(--ink-soft); font-size: clamp(15px, 1.4vw, 17px); line-height:1.6; max-width: 620px; }
.btn-demanda{ background: var(--red); color:#fff; margin-top:8px; padding: 13px 28px; font-size:16px; }
.btn-demanda:hover{ background: var(--red-dark); }
@media (max-width: 900px){ .demanda-card{ scroll-margin-top: 104px; } }


/* ---------- Congregação (v1.55) ---------- */
.congregacao{ background: var(--card); border:1px solid var(--line); border-top: 4px solid var(--red); border-radius: var(--radius-md);
  padding: clamp(22px, 4vw, 40px); margin: 40px 0; display:grid; grid-template-columns: 1fr 1fr; gap: 26px 40px;
  scroll-margin-top: 124px; }
@media (max-width: 900px){ .congregacao{ scroll-margin-top: 104px; } }
.cg-cabeca, .cg-membros, .cg-cpa, .cg-rodape, .cg-aviso, .cg-diferenca{ grid-column: 1 / -1; }
.cg-cabeca{ text-align:center; }
.cg-cabeca h2{ font-family:'Space Grotesk'; font-weight:800; font-size: clamp(24px, 3vw, 32px); margin-top:4px; }
.cg-lead{ color: var(--ink-soft); font-size: clamp(15px, 1.4vw, 17px); line-height:1.6; max-width: 660px; margin: 8px auto 0; }
.congregacao h3{ font-family:'Space Grotesk'; font-weight:700; font-size: 18px; margin-bottom: 10px; }
.cg-faz ul{ list-style:none; padding:0; display:grid; gap: 8px; }
.cg-faz li{ padding-left: 20px; position:relative; line-height:1.5; font-size: 15px; }
.cg-faz li::before{ content:''; position:absolute; left:2px; top:9px; width:8px; height:8px; border-radius:2px; background: var(--red); }
.cg-como p{ font-size: 15px; line-height:1.6; color: var(--ink); }
.cg-numeros{ display:grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: 16px; }
.cg-numeros span{ background: var(--paper); border-radius: 10px; padding: 12px; font-size: 14px; color: var(--ink-soft); }
.cg-numeros b{ display:block; font-family:'Space Grotesk'; font-size: 28px; color: var(--ink); line-height:1.1; }
.cg-membros{ display:grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.cg-grupo{ background: var(--paper); border-radius: 10px; padding: 16px; }
.cg-grupo ul{ list-style:none; padding:0; display:grid; gap: 8px; font-size: 14.5px; }
 .cg-ref{ font-size: 11.5px; font-weight:800; letter-spacing:.05em; text-transform:uppercase; color: var(--ink-soft); margin: 12px 0 6px; }
.cg-grupo h3 + .cg-ref{ margin-top: 0; }
.cg-grupo small{ display:block; color: var(--ink-soft); font-size: 12.5px; }
.cg-alunos{ background: var(--black); color:#fff; }
.cg-alunos h3{ color:#fff; }
.cg-pauta{ display:block; margin-top: 14px; font-size: 13.5px; font-weight:700; color:#fff; text-decoration: underline; text-underline-offset: 3px; }
.cg-rodape{ text-align:center; }
.cg-link{ background: var(--black); color:#fff; display:inline-block; max-width:100%; white-space:normal; line-height:1.35; text-align:center; text-decoration:none; }
.cg-rodape p{ color: var(--ink-soft); font-size: 12.5px; margin-top: 10px; }
.cg-cpa{ background: var(--paper); border-radius: 10px; padding: 16px 18px; }
.cg-aviso{ border-left: 4px solid var(--black); background: var(--paper); border-radius: 10px; padding: 14px 16px; }
.cg-aviso p{ font-size: 14.5px; line-height:1.55; color: var(--ink); }
.cg-irpara{ display:inline-block; margin-top: 6px; font-weight:700; color: var(--green); text-decoration: underline; text-underline-offset: 3px; }
.cg-irpara-escuro{ color: var(--ink); }
.cg-diferenca{ display:grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.cg-diferenca p{ font-size: 14.5px; line-height:1.55; }
.cg-diferenca .cg-alunos p{ color: rgba(255,255,255,.9); }
.cg-cpa p{ color: var(--ink-soft); font-size: 14px; margin-bottom: 10px; }
.cg-cpa ul{ list-style:none; padding:0; display:grid; grid-template-columns: repeat(auto-fill, minmax(min(220px, 100%), 1fr)); gap: 8px 16px; font-size: 14.5px; }
.cg-cpa small{ display:block; color: var(--ink-soft); font-size: 12.5px; }
@media (max-width: 1040px){ .cg-membros{ grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 720px){ .congregacao{ grid-template-columns: 1fr; } .cg-membros, .cg-diferenca{ grid-template-columns: 1fr; } }
/* v1.61: a Congregação abre como janela do card do mural (igual à Doação de Sangue) */
.congregacao > *{ min-width: 0; }
.congregacao.cg-modal{ background:none; border:none; border-radius:0; padding:0; margin: 4px 0 0; gap: 22px 32px; }
.cg-modal .cg-cabeca{ text-align:left; }
.cg-modal .cg-lead{ margin: 0; max-width:none; }
.cg-modal .cg-membros{ grid-template-columns: repeat(2, 1fr); }
#modal-body .cg-modal .cg-rodape p{ font-size: 12.5px; line-height:1.5; margin: 10px 0 0; }
#modal-body .cg-modal .cg-cpa p{ font-size: 14px; }
#modal-body .cg-modal .cg-ref{ font-size: 11.5px; line-height:1.4; margin: 12px 0 6px; }
#modal-body .cg-modal .cg-grupo h3 + .cg-ref{ margin-top: 0; }
#modal-body .cg-modal .cg-como p{ font-size: 15px; }
@media (max-width: 720px){ .congregacao.cg-modal{ grid-template-columns: 1fr; } .cg-modal .cg-membros{ grid-template-columns: 1fr; } }

/* v1.66: botão "Instalar o app" no topo da página inicial (só aparece quando dá para instalar) */
.btn-instalar{ margin-top: 22px; background: transparent; color:#fff; border: 1.5px solid rgba(255,255,255,.55);
  display:inline-flex; align-items:center; gap: 8px; font-size: 15.5px; padding: 11px 20px; }
.btn-instalar:hover, .btn-instalar:focus-visible{ background: var(--green); border-color: var(--green); }
.btn-instalar[hidden]{ display:none; }
.instalar-passos{ text-align:left; margin: 6px 0 0 20px; display:grid; gap: 10px; font-size: 15.5px; line-height:1.5; }

/* R54 (acessibilidade): a janela e a foto ampliada recebem o foco ao abrir, sem contorno;
   o card do mural mostra o contorno só para quem navega pelo teclado */
.modal-box:focus, .lightbox-overlay:focus{ outline:none; }
.card-item:focus-visible{ outline:3px solid var(--green); outline-offset:3px; }

/* v2.00: avisos no celular (botão no Mural e na Área do Aluno) */
.avisos-celular { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 4px 0 16px; padding: 12px 14px;
  background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--green); border-radius: var(--radius-sm); }
.avisos-celular[hidden] { display: none; }
.avisos-celular-texto { flex: 1 1 220px; font-size: 15px; color: var(--ink); }
.avisos-celular-botao { flex: 0 0 auto; background: var(--green); color: #fff; border: 0; padding: 10px 16px; border-radius: 999px; font-weight: 700; cursor: pointer; }
.avisos-celular-botao:disabled { opacity: .6; cursor: wait; }
.avisos-celular-botao:focus-visible { outline: 3px solid var(--green-dark); outline-offset: 2px; }
