/* =========================================================
   COMUNIDADE INFOGRAU — CSS PÚBLICO UNIFICADO
   Um único arquivo para todas as páginas públicas.
   ========================================================= */

:root{
  --bg:#f4f7f5;
  --surface:#fff;
  --surface-soft:#f8faf9;
  --text:#193027;
  --muted:#65736c;
  --line:#dce5e0;
  --green:#164c39;
  --green-2:#23664b;
  --green-soft:#eaf3ee;
  --gold:#b28b3e;
  --gold-soft:#fff7e7;
  --danger:#9b3a2b;
  --danger-soft:#fff2ef;
  --success:#236746;
  --success-soft:#edf8f1;
  --radius:18px;
  --shadow:0 16px 45px rgba(21,62,45,.08);
  --wrap:1200px;
}

*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  min-height:100vh;
  font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,sans-serif;
  color:var(--text);
  background:
    radial-gradient(circle at 10% 0%,rgba(178,139,62,.06),transparent 26rem),
    linear-gradient(#f8faf9,#f3f6f4);
  line-height:1.55;
}
img{max-width:100%}
a{color:#087047;text-decoration:none}
a:hover{text-decoration:underline}
button,input,textarea,select{font:inherit}
.wrap{width:min(calc(100% - 32px),var(--wrap));margin-inline:auto}
main{min-height:60vh}

/* HEADER */
.site-header{
  position:sticky;top:0;z-index:50;
  background:rgba(255,255,255,.96);
  border-bottom:1px solid var(--line);
  backdrop-filter:blur(14px);
}
.header-row{
  min-height:74px;
  display:flex;align-items:center;gap:18px;
}
.brand-link{display:flex;align-items:center;flex:0 0 auto}
.logo{width:190px;max-height:48px;object-fit:contain}
.menu{display:flex;align-items:center;gap:16px;margin-left:12px}
.menu a{color:#31443b;font-weight:650;font-size:14px;text-decoration:none}
.menu a:hover{color:var(--green)}
.search-form{margin-left:auto}
.search{
  width:230px;min-height:42px;padding:9px 13px;
  border:1px solid var(--line);border-radius:12px;background:#f8faf9;
  outline:none;
}


/* =========================================================
   LOGO - COMUNIDADE INFOGRAU
   ========================================================= */

.brand-link {
    display: flex;
    align-items: center;
    flex: 0 0 auto;
    text-decoration: none;
}

.logo-comunidade {
    display: block;
    width: 220px;
    max-width: 100%;
    height: auto;
    object-fit: contain;
}


.search:focus{background:#fff;border-color:#83a393;box-shadow:0 0 0 4px rgba(22,76,57,.08)}
.user-nav{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.user-chip{display:flex;align-items:center;gap:8px;padding:5px 8px;border-radius:12px;color:inherit;text-decoration:none}
.user-chip:hover{background:var(--green-soft);text-decoration:none}

/* BUTTONS */
.btn{
  display:inline-flex;align-items:center;justify-content:center;gap:7px;
  min-height:44px;padding:10px 16px;border:1px solid transparent;border-radius:12px;
  background:linear-gradient(135deg,var(--green-2),var(--green));
  color:#fff;font-weight:760;text-decoration:none;cursor:pointer;
  box-shadow:0 8px 18px rgba(22,76,57,.12);
}
.btn:hover{filter:brightness(1.04);text-decoration:none}
.btn.alt{background:#fff;color:var(--green);border-color:#cfdcd5;box-shadow:none}
.btn.gold{background:linear-gradient(135deg,#c19b4e,#a77d2d)}
.btn.sm{min-height:38px;padding:8px 12px;font-size:13px}

/* AVATARS */
.avatar{width:62px;height:62px;border-radius:50%;object-fit:cover;background:#eef3f0;border:1px solid var(--line)}
.avatar.sm{width:32px;height:32px}

/* HERO */
.hero{padding:76px 0 54px;border-bottom:1px solid var(--line)}
.hero .wrap{max-width:980px}
.hero h1{
  margin:8px 0 18px;
  font-size:clamp(42px,7vw,76px);line-height:.98;letter-spacing:-.055em;
  color:#17382b;
}
.hero p{max-width:780px;margin:0;font-size:19px;line-height:1.7;color:var(--muted)}
.accent{color:var(--gold);font-weight:800}
.hero-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:24px}

/* GENERIC */
.section{padding:42px 0}
.section-title{display:flex;justify-content:space-between;align-items:end;gap:16px;margin-bottom:18px}
.section-title h2{font-size:29px;margin:7px 0 0;letter-spacing:-.03em}
.pill{
  display:inline-flex;align-items:center;
  padding:5px 9px;border-radius:999px;
  background:var(--green-soft);color:var(--green);
  font-size:11px;font-weight:800;text-transform:uppercase;letter-spacing:.05em;
}
.pill.gold{background:var(--gold-soft);color:#8a6520}
.muted{color:var(--muted)}
.empty,.panel{
  padding:24px;border:1px dashed #cad6d0;border-radius:16px;background:#fff;color:var(--muted)
}
.cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}
.card{
  background:#fff;border:1px solid var(--line);border-radius:18px;padding:24px;
  box-shadow:0 8px 30px rgba(23,56,43,.04);
}
.card h2{margin:10px 0 8px;font-size:25px}
.card p{color:#506159}

/* TOPIC LIST */
.topic-list{display:grid;gap:12px}
.topic-item{
  display:grid;grid-template-columns:minmax(0,1fr) 145px;gap:18px;
  background:#fff;border:1px solid var(--line);border-radius:16px;padding:20px 22px;
}
.topic-item:hover{border-color:#bfd0c7;box-shadow:0 8px 24px rgba(22,76,57,.05)}
.topic-item h3{margin:7px 0 5px;font-size:21px;line-height:1.25}
.topic-item h3 a{color:#193b2e;text-decoration:none}
.topic-meta{display:flex;align-items:center;gap:9px;flex-wrap:wrap;font-size:12.5px;color:#78837d}
.topic-enter{display:inline-block;margin-top:9px;font-weight:750}
.stats{text-align:right;color:#78837d;font-size:12.5px;line-height:1.65}
.stats strong{color:#254538;font-size:16px}

/* CATEGORY CARDS */
.category-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
.category-card{
  display:flex;gap:14px;background:#fff;border:1px solid var(--line);border-radius:16px;padding:19px;
  color:inherit;text-decoration:none;
}
.category-card:hover{border-color:#bdcec5;text-decoration:none;box-shadow:0 8px 26px rgba(0,0,0,.04)}
.category-card h3{margin:0 0 4px}
.category-card p{margin:0;color:var(--muted);font-size:14px}
.category-icon{font-size:25px}

/* TOPIC PAGE */
.topic-page{display:grid;grid-template-columns:minmax(0,1fr) 285px;gap:24px;padding-top:40px;padding-bottom:60px}
.topic-head{margin-bottom:18px}
.topic-head h1{font-size:clamp(32px,5vw,50px);line-height:1.1;letter-spacing:-.04em;margin:12px 0 15px}
.author-row{display:flex;align-items:center;gap:8px;color:var(--muted);font-size:14px}
.post{
  display:grid;grid-template-columns:160px minmax(0,1fr);gap:20px;
  background:#fff;border:1px solid var(--line);border-radius:18px;padding:22px;margin:14px 0;
}
.post-author{display:flex;flex-direction:column;align-items:center;text-align:center;gap:7px;padding-right:15px;border-right:1px solid #edf1ef}
.post-body{font-size:16.5px;line-height:1.75;min-width:0}
.sidebar-box{background:#fff;border:1px solid var(--line);border-radius:16px;padding:19px;position:sticky;top:96px}

/* FORMS */
.form-card{
  max-width:760px;margin:42px auto;background:#fff;border:1px solid var(--line);
  border-radius:20px;padding:30px;box-shadow:var(--shadow);
}
.form-card.wide{max-width:940px}
.form-card h1{font-size:38px;margin:8px 0 10px;letter-spacing:-.035em}
.form-card h2{margin-top:0}
.form-grid{display:grid;gap:18px;width:100%}
.form-grid.two{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
.partner-form,.stack-form{display:grid;gap:18px;margin-top:24px}
.field{width:100%;min-width:0}
.field label,.form-card label{display:block;margin:0 0 7px;font-size:14px;font-weight:740}
.field input,.field select,.field textarea,
.form-card input,.form-card select,.form-card textarea{
  width:100%;max-width:100%;min-width:0;
  padding:12px 14px;border:1px solid #d5dfd9;border-radius:12px;background:#fbfcfb;color:var(--text);
  outline:none;
}
.field input,.field select,.form-card input,.form-card select{min-height:48px}
.field textarea,.form-card textarea{min-height:165px;resize:vertical;line-height:1.55}
.field input:focus,.field select:focus,.field textarea:focus,
.form-card input:focus,.form-card select:focus,.form-card textarea:focus{
  border-color:#769886;background:#fff;box-shadow:0 0 0 4px rgba(22,76,57,.08)
}
.help{margin-top:6px;color:#77827c;font-size:12.5px}
.form-actions{display:flex;gap:10px}
.flash{margin:16px 0;padding:13px 15px;border-radius:12px;border:1px solid var(--line)}
.flash.success{background:var(--success-soft);color:var(--success);border-color:#cde6d7}
.flash.error{background:var(--danger-soft);color:var(--danger);border-color:#efd0ca}
.flash-wrap{padding-top:16px}

/* INSTITUTIONAL */
.institutional-wrap,.directory-page,.search-page{padding-top:42px;padding-bottom:70px}
.institutional-page{
  max-width:900px;margin:0 auto;background:#fff;border:1px solid var(--line);
  border-radius:20px;padding:40px 44px;box-shadow:0 10px 38px rgba(0,0,0,.035);
}
.page-kicker{font-size:12px;font-weight:850;color:var(--gold);text-transform:uppercase;letter-spacing:.08em}
.institutional-page h1,.page-heading h1{
  font-size:clamp(34px,5vw,52px);line-height:1.08;letter-spacing:-.04em;margin:8px 0 12px
}
.page-lead,.page-heading p{font-size:18px;line-height:1.65;color:var(--muted)}
.prose{font-size:16.5px;line-height:1.8;color:#2c3b34}
.prose h2{margin:34px 0 10px;color:#173c2e;font-size:25px}
.prose ul{padding-left:22px}
.prose li{margin:7px 0}
.legal-note{padding:16px 18px;background:var(--gold-soft);border-left:4px solid var(--gold);border-radius:9px;margin:20px 0}
.last-update{margin-top:34px;padding-top:18px;border-top:1px solid var(--line);color:#7a857f;font-size:13px}

/* DIRECTORY */
.page-heading{max-width:820px;margin-bottom:32px}
.category-directory{display:grid;gap:13px}
.category-directory-card{
  display:grid;grid-template-columns:64px minmax(0,1fr) 30px;gap:18px;align-items:center;
  background:#fff;border:1px solid var(--line);border-radius:17px;padding:22px;color:inherit;text-decoration:none
}
.category-directory-card:hover{text-decoration:none;border-color:#baccc2;box-shadow:0 10px 30px rgba(0,0,0,.04)}
.category-directory-card h2{margin:0 0 5px}
.category-directory-card p{margin:0 0 10px;color:var(--muted)}
.category-icon.large{font-size:30px}.category-icon.huge{font-size:52px}
.category-numbers{display:flex;gap:18px;color:#6f7d75;font-size:13px}
.category-arrow{font-size:24px;color:var(--green)}
.category-hero{display:grid;grid-template-columns:80px 1fr;gap:22px;padding:42px 0 20px}
.category-hero h1{font-size:44px;margin:0 0 8px}
.category-hero p{font-size:18px;color:var(--muted);max-width:760px}

/* SEARCH */
.search-hero-form{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px;max-width:850px;margin-bottom:26px}
.search-hero-form input{min-height:54px;border:1px solid var(--line);border-radius:14px;padding:0 16px;font-size:17px;outline:none}
.search-hero-form input:focus{border-color:#799b89;box-shadow:0 0 0 4px rgba(22,76,57,.08)}
.search-summary{margin:20px 0;color:var(--muted)}

/* MEMBERS */
.member-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:15px}
.member-card{display:flex;gap:15px;align-items:center;background:#fff;border:1px solid var(--line);border-radius:16px;padding:18px;color:inherit;text-decoration:none}
.member-card:hover{text-decoration:none;border-color:#bdcec5;box-shadow:0 10px 25px rgba(0,0,0,.04)}
.member-card h2{font-size:18px;margin:0 0 4px}
.member-card p{margin:0 0 5px;color:var(--muted)}
.member-avatar{width:62px;height:62px}

/* FOOTER */
.site-footer{margin-top:70px;background:#104b3a;color:#eef7f2;padding:48px 0 24px}
.site-footer a{color:#eef7f2}
.site-footer p{color:#d7e9df;line-height:1.7}
.footer-grid{display:grid;grid-template-columns:1.35fr repeat(3,1fr);gap:38px}
.footer-grid strong{display:block;margin-bottom:13px}
.legal{display:flex;justify-content:space-between;gap:20px;margin-top:35px;padding-top:18px;border-top:1px solid rgba(255,255,255,.14);color:#c8ddd2}


.topic-share {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 9px;
    margin: 22px 0;
    padding: 15px;
    background: #f7faf8;
    border: 1px solid #dfe8e3;
    border-radius: 14px;
}

.share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 8px 13px;
    border: 0;
    border-radius: 9px;
    color: #fff;
    font: inherit;
    font-size: 13px;
    font-weight: 800;
    text-decoration: none;
    cursor: pointer;
}

.share-btn.facebook {
    background: #1877f2;
}

.share-btn.whatsapp {
    background: #168b55;
}

.share-btn.linkedin {
    background: #0a66c2;
}

.share-btn.copy {
    background: #123f30;
}

.share-btn:hover {
    filter: brightness(.93);
    transform: translateY(-1px);
}


.topic-share{display:flex;align-items:center;flex-wrap:wrap;gap:9px;margin:22px 0;padding:15px;background:#f7faf8;border:1px solid #dfe8e3;border-radius:14px}.topic-share-title{margin-right:4px;color:#163c2e;font-weight:800}.share-btn{display:inline-flex;align-items:center;justify-content:center;min-height:38px;padding:8px 13px;border:0;border-radius:9px;color:#fff;font:inherit;font-size:13px;font-weight:800;text-decoration:none;cursor:pointer;transition:filter .18s ease,transform .18s ease}.share-btn.facebook{background:#1877f2}.share-btn.whatsapp{background:#168b55}.share-btn.linkedin{background:#0a66c2}.share-btn.copy{background:#123f30}.share-btn:hover{color:#fff;filter:brightness(.93);transform:translateY(-1px)}


/* RESPONSIVE */
@media(max-width:1000px){
  .header-row{flex-wrap:wrap;padding-block:10px}
  .menu{order:3;width:100%;overflow:auto;margin-left:0;padding-bottom:4px}
  .search-form{margin-left:auto}
  .topic-page{grid-template-columns:1fr}
  .topic-sidebar{display:none}
  .category-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .member-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .footer-grid{grid-template-columns:repeat(2,1fr)}
}
@media(max-width:700px){
  .wrap{width:min(calc(100% - 22px),var(--wrap))}
  .hero{padding:52px 0 40px}
  .hero p{font-size:17px}
  .cards,.category-grid,.member-grid{grid-template-columns:1fr}
  .topic-item{grid-template-columns:1fr}
  .stats{text-align:left}
  .post{grid-template-columns:1fr}
  .post-author{align-items:flex-start;text-align:left;border-right:0;border-bottom:1px solid #edf1ef;padding:0 0 14px}
  .form-grid.two{grid-template-columns:1fr}
  .institutional-page{padding:28px 22px}
  .category-directory-card{grid-template-columns:50px minmax(0,1fr)}
  .category-arrow{display:none}
  .category-hero{grid-template-columns:1fr}
  .search-hero-form{grid-template-columns:1fr}
  .footer-grid{grid-template-columns:1fr}
  .legal{flex-direction:column}
  .search-form{width:100%;order:4}
  .search{width:100%}
  .user-nav{width:100%}
}
