/* =====================================================
   PORTAL REDE — Mural (comunicação interna)
   ===================================================== */

.mural-hero {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--pine-deep);
  min-height: 130px;
  display: flex;
  align-items: flex-end;
  margin-bottom: 16px;
}
.mural-hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.mural-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(8,51,68,.15), rgba(8,51,68,.82)); }
.mural-hero-inner { position: relative; z-index: 2; padding: 20px 26px; }
.mural-hero-inner h1 { color: #fff; font-size: 24px; letter-spacing: -0.02em; }
.mural-hero-inner p { color: rgba(255,255,255,.8); font-size: 14px; margin-top: 4px; }

/* Carrossel de banners (estilo GregHub) */
.mural-carousel {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--pine-deep);
  aspect-ratio: 1600 / 360;
  max-height: 280px;
  margin-bottom: 16px;
}
.mc-slide { position: absolute; inset: 0; opacity: 0; transition: opacity .5s var(--ease); }
.mc-slide.on { opacity: 1; }
.mc-slide img { width: 100%; height: 100%; object-fit: cover; }
.mc-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  z-index: 2;
  width: 38px; height: 38px;
  border: none; border-radius: 50%;
  background: rgba(255,255,255,.85);
  color: var(--ink);
  font-size: 22px; line-height: 1;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background-color .15s var(--ease);
}
.mc-arrow:hover { background: #fff; }
.mc-arrow.prev { left: 14px; }
.mc-arrow.next { right: 14px; }
.mc-dots { position: absolute; bottom: 12px; left: 50%; transform: translateX(-50%); z-index: 2; display: flex; gap: 7px; }
.mc-dot { width: 26px; height: 5px; border: none; border-radius: 3px; background: rgba(255,255,255,.45); cursor: pointer; padding: 0; transition: background-color .15s var(--ease); }
.mc-dot.on { background: #fff; }

/* Banners no config */
.cfg-banner-grid { display: flex; flex-wrap: wrap; gap: 10px; margin: 8px 0; }
.cfg-banner { position: relative; width: 200px; }
.cfg-banner img { width: 100%; height: 70px; object-fit: cover; border-radius: var(--radius-sm); border: 1px solid var(--line); }
.cfg-banner-del {
  position: absolute; top: -8px; right: -8px;
  width: 24px; height: 24px; border-radius: 50%;
  border: none; background: var(--danger); color: #fff;
  cursor: pointer; font-size: 12px; line-height: 1;
}

.mural-layout { display: grid; grid-template-columns: minmax(0,1fr) 320px; gap: 18px; align-items: start; }
@media (max-width: 980px) { .mural-layout { grid-template-columns: 1fr; } .mural-side { order: -1; } }

/* Composer */
.mural-composer { margin-bottom: 14px; }
.mural-composer-top { display: flex; gap: 12px; align-items: flex-start; }
.mural-composer-top .input { flex: 1; }
.mural-composer-row { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.mural-composer-row .select, .mural-composer-row .input { flex: 1; min-width: 150px; }
.mural-composer-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 10px; }
.mural-attach { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 600; color: var(--ink-soft); cursor: pointer; }
.mural-attach:hover { color: var(--pine); }

.mural-filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.mini-pill {
  padding: 6px 14px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-pill);
  background: var(--surface);
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-soft);
  text-decoration: none;
}
.mini-pill:hover { border-color: var(--pine); color: var(--pine); text-decoration: none; }
.mini-pill.on { background: var(--pine); border-color: var(--pine); color: #fff; }
.mini-pills { display: flex; gap: 6px; flex-wrap: wrap; }

/* Post */
.mural-post { margin-bottom: 14px; }
.mp-head { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.mp-author { font-weight: 700; font-size: 14.5px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.mp-kind { font-size: 11.5px; font-weight: 600; color: var(--pine); background: var(--pine-soft); padding: 1px 9px; border-radius: var(--radius-pill); }
.mp-pin { font-size: 11.5px; font-weight: 600; color: var(--warn); }
.mp-meta { font-size: 12px; color: var(--ink-faint); }
.mp-title { font-size: 16px; margin-bottom: 6px; }
.mp-body { font-size: 14.5px; line-height: 1.65; }
.mp-body.trix-content img { max-width: 100%; height: auto; border-radius: var(--radius-sm); margin: 8px 0; }
.mp-body.trix-content h1 { font-size: 19px; }
.mp-body.trix-content ul, .mp-body.trix-content ol { padding-left: 22px; }
.mp-body.trix-content a { color: var(--pine); }

/* Editor Trix no padrão do design system */
trix-editor {
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  min-height: 120px;
  font-size: 14.5px;
  background: var(--surface);
}
trix-editor:focus { border-color: var(--pine); outline: none; }
trix-toolbar .trix-button-group { border-color: var(--line-strong); }
trix-toolbar { margin-bottom: 6px; }

.mp-gallery { display: grid; gap: 6px; margin-top: 12px; border-radius: var(--radius-sm); overflow: hidden; }
.mp-gallery img { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: var(--radius-sm); }
.mp-gallery.mp-count-1 { grid-template-columns: 1fr; }
.mp-gallery.mp-count-2 { grid-template-columns: 1fr 1fr; }
.mp-gallery.mp-count-3, .mp-gallery.mp-count-4 { grid-template-columns: 1fr 1fr; }
.mp-gallery a { display: block; max-height: 280px; overflow: hidden; }

.mp-actions { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); }
.react-btn {
  display: inline-flex; align-items: center; gap: 4px;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  border-radius: var(--radius-pill);
  padding: 4px 11px;
  font-size: 14px;
  cursor: pointer;
  transition: all .15s var(--ease);
}
.react-btn:hover { border-color: var(--pine); }
.react-btn.on { background: var(--pine-soft); border-color: var(--pine); }
.react-btn span { font-size: 12px; font-weight: 700; color: var(--pine); }
.mp-comment-count { margin-left: auto; font-size: 12.5px; color: var(--ink-faint); }

.mp-comments { margin-top: 12px; }
.mp-comment { display: flex; align-items: flex-start; gap: 9px; padding: 7px 0; font-size: 13.5px; }
.mp-comment .grow { flex: 1; line-height: 1.5; }
.avatar.sm { width: 28px; height: 28px; font-size: 11px; }
.mp-comment-form { display: flex; gap: 8px; margin-top: 8px; }
.mp-comment-form .input { flex: 1; }

/* Widgets laterais */
.bday-day { font-size: 12.5px; font-weight: 700; color: var(--pine); white-space: nowrap; }
.cal-chip {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 48px; padding: 4px 8px;
  border-radius: var(--radius-sm);
  font-size: 12px; font-weight: 700;
  flex-shrink: 0;
}

/* FAQ */
.faq-item { border: 1px solid var(--line); border-radius: var(--radius-sm); margin-bottom: 8px; background: var(--surface); }
.faq-item summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 14px 16px; font-weight: 600; font-size: 14.5px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::before { content: "+"; color: var(--pine); font-weight: 800; font-size: 18px; margin-right: 4px; }
.faq-item[open] summary::before { content: "–"; }
.faq-answer { padding: 0 16px 16px 36px; font-size: 14px; line-height: 1.7; color: var(--ink-soft); }
