/* Comissão organizadora — perfil completo + outros perfis resumidos */

.committee-page-link{margin-top:9px}

/* =========================================================
   Cards da página inicial
   ========================================================= */
.committee-home-grid{
  display:grid!important;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:18px;
}

.committee-home-card{
  background:#fff;
  border:1px solid #e0e7eb;
  border-top:4px solid var(--green);
  border-radius:17px;
  padding:17px;
  display:grid;
  grid-template-columns:88px minmax(0,1fr);
  gap:15px;
  align-items:start;
  box-shadow:0 10px 26px rgba(13,42,65,.06);
}

.committee-home-photo{
  width:88px;height:88px;border-radius:15px;overflow:hidden;background:#e9f1ed;
  display:grid;place-items:center;color:var(--green);font-size:1.4rem;font-weight:950
}

.committee-home-photo img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}

.committee-home-info{min-width:0}
.committee-home-info h3{margin:7px 0 7px;color:var(--navy);line-height:1.18}
.committee-role{font-weight:850;color:#29475b;margin:0 0 5px}
.committee-institution{color:#617485;margin:0 0 8px;line-height:1.4}

.committee-short-bio{
  color:#40576a;
  margin:7px 0 10px;
  line-height:1.5;
  display:-webkit-box;
  -webkit-box-orient:vertical;
  -webkit-line-clamp:3;
  line-clamp:3;
  overflow:hidden;
}

/* =========================================================
   Hero
   ========================================================= */
.committee-directory-hero{
  background:linear-gradient(135deg,#f4ecde,#fff);
  padding:52px 0 46px;
  border-bottom:1px solid #ece4d8;
}

.committee-directory-hero h1{
  color:var(--navy);
  font-size:clamp(2.3rem,5vw,4.3rem);
  margin:7px 0 13px;
  letter-spacing:-.035em;
}

.committee-directory-hero p{
  max-width:830px;
  color:#486074;
  font-size:1.06rem;
  line-height:1.65;
}

.committee-back-link{
  display:block;
  margin-bottom:25px;
  color:var(--green);
  font-weight:900;
  text-decoration:none;
}

/* =========================================================
   Perfil principal
   ========================================================= */
.committee-featured-profile{
  display:grid;
  grid-template-columns:220px minmax(0,1fr);
  gap:28px;
  align-items:start;
  border:1px solid #dbe5e9;
  border-radius:22px;
  padding:26px;
  background:linear-gradient(135deg,#fff,#f7faf8);
  box-shadow:0 14px 38px rgba(13,42,65,.07);
}

.committee-profile-only{
  max-width:980px;
  margin:0 auto;
}

.committee-profile-photo{
  width:112px;
  height:112px;
  border-radius:18px;
  overflow:hidden;
  background:#e9f1ed;
  display:grid;
  place-items:center;
  color:var(--green);
  font-size:1.65rem;
  font-weight:950;
  flex:0 0 auto;
}

.committee-profile-photo.large{
  width:220px;
  height:220px;
  border-radius:22px;
  font-size:2.3rem;
}

.committee-profile-photo img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}

.committee-profile-photo.fallback{
  border:1px solid #d9e5df;
}

.committee-featured-profile h2{
  font-size:clamp(1.8rem,3vw,2.7rem);
  margin:8px 0;
  color:var(--navy);
}

.committee-featured-role{
  font-size:1.06rem;
  font-weight:900;
  color:#284c61;
  margin:0 0 4px;
}

.committee-featured-bio{
  white-space:pre-line;
  line-height:1.75;
  color:#30495b;
  margin-top:17px;
  max-width:800px;
}

.committee-links{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
  margin-top:18px;
}

.committee-social-btn{
  padding:8px 12px;
  font-size:.78rem;
}

/* =========================================================
   Outros perfis abaixo do perfil principal
   ========================================================= */
.committee-related-section{
  max-width:980px;
  margin:48px auto 0;
  padding-top:32px;
  border-top:1px solid #e2e8ec;
}

.committee-related-head{
  margin-bottom:18px;
}

.committee-related-head h2{
  color:var(--navy);
  margin:5px 0 6px;
  font-size:1.75rem;
}

.committee-related-head p{
  color:#66798a;
  margin:0;
  line-height:1.5;
}

.committee-related-grid{
  grid-template-columns:repeat(2,minmax(0,1fr));
}

/* =========================================================
   Cards resumidos
   ========================================================= */
.committee-group{margin:0 0 48px}
.committee-group-head{margin-bottom:18px}
.committee-group-head h2{color:var(--navy);margin:4px 0;font-size:1.8rem}

.committee-directory-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:17px;
  align-items:stretch;
}

.committee-directory-card{
  border:1px solid #dfe7eb;
  border-radius:18px;
  padding:16px;
  background:#fff;
  display:flex;
  gap:15px;
  align-items:flex-start;
  box-shadow:0 9px 26px rgba(13,42,65,.05);
  min-height:225px;
}

.committee-directory-info{
  min-width:0;
  flex:1;
  display:flex;
  flex-direction:column;
  align-self:stretch;
}

.committee-directory-info h3{
  color:var(--navy);
  margin:7px 0 4px;
  font-size:1.05rem;
  line-height:1.25;
}

.committee-directory-bio{
  color:#3e5668;
  line-height:1.55;
  margin:8px 0 0;

  /* SOMENTE TRÊS LINHAS */
  display:-webkit-box;
  -webkit-box-orient:vertical;
  -webkit-line-clamp:3;
  line-clamp:3;
  overflow:hidden;
  max-height:4.65em;
}

.committee-no-bio{
  color:#758696;
  font-style:italic;
}

.committee-card-actions{
  margin-top:auto;
  padding-top:12px;
  display:flex;
  gap:8px;
  flex-wrap:wrap;
}

.committee-see-more{
  padding:8px 13px;
  font-size:.8rem;
  text-decoration:none;
}

/* =========================================================
   Responsivo
   ========================================================= */
@media(max-width:1050px){
  .committee-home-grid{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
}

@media(max-width:760px){
  .committee-directory-hero{
    padding:38px 0 34px;
  }

  .committee-back-link{
    margin-bottom:24px;
  }

  .committee-directory-hero .kicker{
    display:block;
    margin-bottom:10px;
  }

  .committee-home-grid{
    grid-template-columns:1fr;
  }

  .committee-featured-profile{
    grid-template-columns:1fr;
  }

  .committee-profile-photo.large{
    width:170px;
    height:170px;
  }

  .committee-directory-grid,
  .committee-related-grid{
    grid-template-columns:1fr;
  }

  .committee-directory-card{
    min-height:0;
  }

  .committee-related-section{
    margin-top:36px;
    padding-top:26px;
  }
}

@media(max-width:480px){
  .committee-home-card{
    grid-template-columns:72px minmax(0,1fr);
    padding:14px;
  }

  .committee-home-photo{
    width:72px;
    height:72px;
  }

  .committee-directory-card{
    flex-direction:column;
  }
}


/* =========================================================
   Perfil individual — mesma linguagem visual dos convidados
   ========================================================= */

.committee-individual-page{
  background:#f7f2e9;
}

.committee-individual-page .committee-directory-hero{
  display:none;
}

.committee-individual-page .topbar{
  background:#fff;
  border-bottom:1px solid #dce5e9;
}

.committee-individual-page .topbar .nav{
  min-height:76px;
  justify-content:space-between;
}

.committee-individual-page .topbar .menu,
.committee-individual-page .topbar .menu-button,
.committee-individual-page .topbar .desktop-cta{
  display:none!important;
}

.committee-profile-nav-back{
  margin-left:auto;
  white-space:nowrap;
}

.committee-individual-page main>.section.white{
  background:#f7f2e9;
  padding-top:38px;
  padding-bottom:70px;
}

.committee-individual-page #committee-featured,
.committee-individual-page #committee-directory{
  max-width:980px;
  margin-left:auto;
  margin-right:auto;
}

.committee-profile-breadcrumb{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
  align-items:center;
  margin-bottom:17px;
  color:#6b7e8d;
  font-size:.78rem;
  font-weight:800;
}

.committee-profile-breadcrumb a{
  color:var(--green);
  text-decoration:none;
}

.committee-individual-page .committee-featured-profile{
  grid-template-columns:minmax(240px,320px) minmax(0,1fr);
  gap:24px;
  padding:16px;
  border-radius:20px;
  background:#fff;
  border:1px solid #d8e2e7;
  box-shadow:0 14px 36px rgba(13,42,65,.055);
}

.committee-featured-photo-column{
  min-width:0;
}

.committee-individual-page .committee-profile-photo.large{
  width:100%;
  height:100%;
  min-height:410px;
  max-height:560px;
  border-radius:16px;
  font-size:3rem;
}

.committee-individual-page .committee-profile-photo.large img{
  width:100%;
  height:100%;
  min-height:410px;
  max-height:560px;
  object-fit:cover;
}

.committee-individual-page .committee-featured-info{
  padding:12px 12px 10px 0;
  min-width:0;
}

.committee-individual-page .committee-featured-info>.kicker{
  display:block;
  margin-bottom:9px;
}

.committee-profile-badge{
  display:inline-flex;
  margin-bottom:4px;
}

.committee-individual-page .committee-featured-profile h2{
  margin:8px 0 5px;
  color:var(--navy);
  font-size:clamp(2rem,4.1vw,3.15rem);
  line-height:1.03;
  letter-spacing:-.03em;
}

.committee-individual-page .committee-featured-role{
  font-size:1rem;
  color:#173f5c;
  margin-top:0;
}

.committee-individual-page .committee-institution{
  color:#687d8d;
  margin-top:4px;
}

.committee-profile-about{
  margin-top:24px;
}

.committee-profile-about h3{
  margin:0 0 7px;
  color:var(--navy);
  font-size:1rem;
}

.committee-individual-page .committee-featured-bio{
  margin-top:0;
  color:#4d6475;
  line-height:1.72;
}

.committee-individual-page .committee-links{
  margin-top:22px;
}

.committee-individual-page .committee-social-btn{
  min-height:39px;
  padding:8px 13px;
  font-size:.76rem;
}

/* Outros integrantes: cards compactos como na página de convidados. */
.committee-individual-page .committee-related-section{
  max-width:980px;
  margin-top:38px;
  padding-top:0;
  border-top:0;
}

.committee-individual-page .committee-related-head{
  margin-bottom:15px;
}

.committee-individual-page .committee-related-head h2{
  font-size:clamp(1.7rem,3vw,2.2rem);
}

.committee-related-compact-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:13px;
}

.committee-related-card{
  display:flex;
  gap:11px;
  align-items:center;
  min-width:0;
  padding:11px;
  border:1px solid #d8e2e7;
  border-radius:14px;
  background:#fff;
  color:#17364f;
  text-decoration:none;
  transition:transform .15s ease,box-shadow .15s ease;
}

.committee-related-card:hover{
  transform:translateY(-2px);
  box-shadow:0 10px 25px rgba(13,42,65,.075);
}

.committee-related-card img,
.committee-related-avatar{
  flex:0 0 64px;
  width:64px;
  height:64px;
  border-radius:11px;
  object-fit:cover;
  background:#e8f0ed;
}

.committee-related-avatar{
  display:grid;
  place-items:center;
  color:var(--green);
  font-size:1.15rem;
  font-weight:950;
}

.committee-related-card-info{
  min-width:0;
}

.committee-related-card-info>span{
  display:block;
  margin-bottom:3px;
  color:var(--green);
  font-size:.61rem;
  font-weight:950;
  text-transform:uppercase;
  letter-spacing:.035em;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

.committee-related-card-info strong{
  display:block;
  color:var(--navy);
  font-size:.84rem;
  line-height:1.25;
}

.committee-related-card-info small{
  display:block;
  margin-top:3px;
  color:#718391;
  font-size:.68rem;
  line-height:1.3;
}

@media(max-width:820px){
  .committee-individual-page .committee-featured-profile{
    grid-template-columns:1fr;
  }

  .committee-individual-page .committee-profile-photo.large,
  .committee-individual-page .committee-profile-photo.large img{
    min-height:340px;
    max-height:500px;
  }

  .committee-individual-page .committee-featured-info{
    padding:2px 5px 8px;
  }

  .committee-related-compact-grid{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
}

@media(max-width:560px){
  .committee-individual-page main>.section.white{
    padding-top:24px;
  }

  .committee-individual-page .topbar .nav{
    min-height:68px;
    gap:8px;
  }

  .committee-profile-nav-back{
    font-size:.7rem;
    padding:8px 10px;
  }

  .committee-individual-page .committee-featured-profile{
    padding:12px;
    border-radius:17px;
  }

  .committee-individual-page .committee-profile-photo.large,
  .committee-individual-page .committee-profile-photo.large img{
    min-height:300px;
    max-height:420px;
  }

  .committee-individual-page .committee-links{
    display:grid;
  }

  .committee-individual-page .committee-links .btn{
    width:100%;
  }

  .committee-related-compact-grid{
    grid-template-columns:1fr;
  }
}


/* =========================================================
   Página inicial — comissão com foto compacta no celular
   Atualização 19/08/2026
   ========================================================= */

.committee-home-photo{
  text-decoration:none;
}

.committee-home-name-link{
  color:inherit;
  text-decoration:none;
}

.committee-home-name-link:hover{
  text-decoration:underline;
  text-decoration-thickness:1px;
  text-underline-offset:3px;
}

@media(max-width:760px){
  /*
   * No celular o card vira uma linha compacta:
   * foto pequena à esquerda + informações à direita.
   */
  #comissoes .committee-home-grid{
    gap:12px;
  }

  #comissoes .committee-home-card{
    grid-template-columns:68px minmax(0,1fr);
    gap:12px;
    align-items:center;
    padding:13px 14px;
    min-height:0;
    border-radius:15px;
  }

  #comissoes .committee-home-photo{
    width:68px;
    height:68px;
    border-radius:13px;
    align-self:start;
  }

  #comissoes .committee-home-info{
    align-self:center;
  }

  #comissoes .committee-home-info .badge{
    font-size:.68rem;
    padding:5px 8px;
  }

  #comissoes .committee-home-info h3{
    font-size:1.05rem;
    line-height:1.2;
    margin:5px 0 5px;
  }

  #comissoes .committee-role,
  #comissoes .committee-institution{
    font-size:.82rem;
    line-height:1.35;
    margin:0;
  }

  #comissoes .committee-role + .committee-institution{
    margin-top:2px;
  }

  /*
   * A biografia completa fica para "Ver perfil".
   * Isso evita cards muito altos no celular.
   */
  #comissoes .committee-short-bio{
    display:none;
  }

  #comissoes .committee-home-profile-link{
    display:inline-block;
    margin-top:6px;
    font-size:.75rem;
  }
}

@media(max-width:420px){
  #comissoes .committee-home-card{
    grid-template-columns:60px minmax(0,1fr);
    gap:11px;
    padding:12px;
  }

  #comissoes .committee-home-photo{
    width:60px;
    height:60px;
    border-radius:12px;
  }

  #comissoes .committee-home-info h3{
    font-size:1rem;
  }

  #comissoes .committee-role,
  #comissoes .committee-institution{
    font-size:.78rem;
  }
}
