/* =====================================================================
   GRC Inside 1.1.0 — layout de portal (home, editorias, lateral, rodapé)
   Carregado depois do style.css. Não altera o cabeçalho nem o menu.
   ===================================================================== */

/* ---------- Elementos comuns ---------- */
.cat {
  display: inline-block; color: #4F46E5; background: rgba(79,70,229,.1);
  font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em;
  padding: 4px 10px; border-radius: 4px; line-height: 1.3; text-decoration: none;
}
.cat:hover { background: #4F46E5; color: #ffffff; }
.cat-solid { background: #4F46E5; color: #ffffff; }
.cat-solid:hover { background: #06B6D4; color: #111625; }
.cat-post { margin-bottom: 12px; }
.meta { color: #64748b; font-size: 12px; font-variant-numeric: tabular-nums; }
.excerpt { margin: 0; color: #475569; font-size: 14.5px; line-height: 1.6; }
.bloco h3, .bloco h4, .mini h3, .ov-title { margin: 0; text-wrap: balance; }
.bloco h3 a, .bloco h4 a, .mini h3 a { color: #0f172a; }
.bloco h3 a:hover, .bloco h4 a:hover, .mini h3 a:hover { color: #4F46E5; }
.readmore { font-size: 13px; font-weight: 700; }

/* Miniatura com fundo da marca quando o post não tem imagem */
.thumb {
  position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 6px;
  background: radial-gradient(120% 90% at 85% 10%, rgba(6,182,212,.35), transparent 60%), linear-gradient(135deg, #111625, #2b2670);
}
.thumb::after {
  content: attr(data-cat); position: absolute; left: 12px; right: 12px; bottom: 10px;
  color: rgba(255,255,255,.55); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; line-height: 1.3;
}
.thumb img {
  position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; max-width: none;
  object-fit: cover; margin: 0; border-radius: 0; transition: transform .4s ease;
}
.thumb:hover img, article:hover > .thumb img, li:hover > .thumb img { transform: scale(1.04); }
.thumb.sq { aspect-ratio: 4 / 3; }
.thumb.sq::after { font-size: 9px; left: 8px; right: 8px; bottom: 6px; }
@media (prefers-reduced-motion: reduce) { .thumb img { transition: none; } }

/* Cabeçalho de seção */
.sec-head {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 12px;
  border-bottom: 1px solid #e2e8f0; margin-bottom: 6px;
}
.sec-head h1, .sec-head h2 {
  margin: 0 0 -1px; padding-bottom: 10px; border-bottom: 3px solid #4F46E5;
  font-size: 15px; font-weight: 900; text-transform: uppercase; letter-spacing: .06em; color: #0f172a; line-height: 1.3;
}
.sec-head .more { font-size: 12px; font-weight: 700; padding-bottom: 10px; white-space: nowrap; }
.sec-sub { margin: 0 0 18px; color: #94a3b8; font-size: 12px; }
.sec-head-page { margin-bottom: 22px; }
.sec-head-page h1 { font-size: 20px; letter-spacing: .04em; }
.sec-desc { margin: -8px 0 22px; color: #475569; font-size: 14px; line-height: 1.6; }

/* ---------- Home de portal: ocupa a largura toda; a lateral vai dentro do layout ---------- */
.grc-portal-home #wrapper { padding-top: 24px; }
.grc-portal-home #post-wrapper { float: none; width: 100%; padding-left: 0; margin: 0; }

/* Faixa "Últimas" */
.ticker {
  display: flex; align-items: center; gap: 14px; height: 42px; overflow: hidden;
  background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 6px; padding: 0 12px; margin-bottom: 22px;
}
.ticker-label {
  flex: none; background: #4F46E5; color: #ffffff; font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .08em; padding: 4px 10px; border-radius: 3px;
}
.ticker-track {
  flex: 1; display: flex; overflow: hidden; min-width: 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 92%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 4%, #000 92%, transparent);
}
.ticker-track ul { flex: none; display: flex; gap: 36px; padding: 0 36px 0 0; margin: 0; list-style: none; animation: grc-tick 70s linear infinite; }
.ticker-track:hover ul, .ticker-track:focus-within ul { animation-play-state: paused; }
.ticker-track li { display: flex; gap: 8px; white-space: nowrap; font-size: 13px; }
.ticker-track time { color: #64748b; font-variant-numeric: tabular-nums; }
.ticker-track a { color: #1e293b; font-weight: 500; }
.ticker-track a:hover { color: #4F46E5; }
@keyframes grc-tick { to { transform: translateX(-100%); } }
@media (prefers-reduced-motion: reduce) { .ticker-track ul { animation: none; } }

/* Destaques */
.destaques { display: grid; grid-template-columns: 1.85fr 1fr; gap: 16px; }
.destaques.destaques-solo { grid-template-columns: 1fr; }
.destaques-side { display: grid; grid-auto-rows: 1fr; gap: 16px; }
.ov { position: relative; display: flex; min-height: 210px; border-radius: 8px; overflow: hidden; background: #111625; }
.ov-xl { min-height: 460px; }
.ov .ov-img { position: absolute; inset: 0; aspect-ratio: auto; border-radius: 0; }
.ov .ov-img::after { display: none; }
.ov-body {
  position: relative; z-index: 2; margin-top: auto; width: 100%; padding: 22px;
  display: flex; flex-direction: column; align-items: flex-start; gap: 10px; pointer-events: none;
  background: linear-gradient(180deg, rgba(11,15,25,0) 0%, rgba(11,15,25,.78) 45%, rgba(11,15,25,.95) 100%);
}
.ov-body a { pointer-events: auto; }
.ov .ov-title { color: #ffffff; font-size: 17px; font-weight: 700; line-height: 1.3; }
.ov-xl .ov-title { font-size: 28px; line-height: 1.2; letter-spacing: -.01em; }
.ov .ov-title a { color: #ffffff; }
.ov .ov-title a:hover { color: #06B6D4; }
.ov .meta { color: #cbd5e1; }
.ov .excerpt { color: #cbd5e1; max-width: 62ch; }
.ov-md .ov-body { padding: 16px; }

/* Faixa com mais 4 matérias */
.strip {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
  margin-top: 20px; padding-bottom: 26px; border-bottom: 1px solid #e2e8f0;
}
.mini > div { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; margin-top: 10px; }
.mini h3 { font-size: 15px; line-height: 1.35; }

/* Colunas: conteúdo + lateral */
.cols { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 36px; margin-top: 32px; align-items: start; }
.cols #sidebar-wrapper { float: none; width: auto; }
.main-col { display: flex; flex-direction: column; gap: 40px; min-width: 0; }

/* Subseção: manchete + lista */
.lead-list { display: grid; grid-template-columns: 1.15fr 1fr; gap: 24px; }
.lead-list.lead-only { grid-template-columns: 1fr; }
.lead { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.lead h3 { font-size: 21px; line-height: 1.3; }
.list, .cols2 { list-style: none; margin: 0; padding: 0; }
.list li, .cols2 li { display: grid; grid-template-columns: 104px 1fr; gap: 12px; align-items: start; }
.list { display: flex; flex-direction: column; gap: 16px; }
.list li + li { padding-top: 16px; border-top: 1px solid #e2e8f0; }
.list li > div, .cols2 li > div { display: flex; flex-direction: column; align-items: flex-start; gap: 5px; min-width: 0; }
.list h4, .cols2 h4 { font-size: 14.5px; line-height: 1.35; }
.list .cat, .cols2 .cat { font-size: 10px; padding: 3px 8px; }

/* Subseção: grade */
.grid4 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px 20px; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.card h3 { font-size: 17px; line-height: 1.3; }
.grid3 .card h3 { font-size: 15.5px; }

/* Subseção: manchete horizontal */
.wide {
  display: grid; grid-template-columns: 1fr 1fr; gap: 22px; align-items: center;
  background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 8px; padding: 16px;
}
.wide > div { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.wide h3 { font-size: 21px; line-height: 1.3; }

/* Subseção: duas colunas */
.cols2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 24px; }
.cols2-below { margin-top: 20px; }

/* Chamada para colaboradores */
.cta {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  background: #111625; border-radius: 8px; padding: 26px 28px; border-left: 4px solid #06B6D4;
}
.cta-kicker { margin: 0 0 6px; color: #06B6D4; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; }
.cta h2 { color: #ffffff; font-size: 20px; line-height: 1.3; margin: 0 0 6px; }
.cta p:last-child { margin: 0; color: #94a3b8; font-size: 14px; line-height: 1.55; max-width: 52ch; }
.cta .btn {
  flex: none; background: #4F46E5; color: #ffffff; font-size: 13px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .06em; padding: 12px 18px; border-radius: 4px;
}
.cta .btn:hover { background: #06B6D4; color: #111625; }

.all-posts-link { text-align: center; }
.all-posts-link a {
  display: inline-block; border: 1px solid #4F46E5; color: #4F46E5; font-size: 13px; font-weight: 700;
  padding: 10px 18px; border-radius: 4px;
}
.all-posts-link a:hover { background: #4F46E5; color: #ffffff; }

/* "Leia também" no fim do post */
.leia-tambem { margin: 10px 0 30px; }
.leia-tambem .sec-head { margin-bottom: 18px; }

/* ---------- Barra lateral ---------- */
.sidebar .widget h2 { font-weight: 900; letter-spacing: .08em; font-size: 13px; }

.sidebar .grc-social { padding: 16px; }
.sidebar .grc-social .soc {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  background: #0A66C2; color: #ffffff; border-radius: 6px; padding: 11px 14px; font-size: 13px; font-weight: 700;
}
.sidebar .grc-social .soc:hover { background: #004182; color: #ffffff; }
.sidebar .grc-social svg { width: 20px; height: 20px; fill: currentColor; flex: none; }

.sidebar .widget .ranking { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.sidebar .widget .ranking li { display: grid; grid-template-columns: 30px 1fr; gap: 10px; align-items: start; border: 0; padding: 0; margin: 0; }
.sidebar .widget .ranking .n { color: #06B6D4; font-size: 26px; font-weight: 900; line-height: 1; font-variant-numeric: tabular-nums; }
.sidebar .widget .ranking a { color: #e2e8f0; font-size: 13.5px; font-weight: 500; line-height: 1.4; }
.sidebar .widget .ranking a:hover { color: #06B6D4; }

.sidebar .widget .eventos { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.sidebar .widget .eventos li { display: grid; grid-template-columns: 46px 1fr; gap: 12px; align-items: start; border: 0; padding: 0; margin: 0; }
.sidebar .widget .eventos .dt {
  display: flex; flex-direction: column; align-items: center; padding: 4px 0;
  background: rgba(79,70,229,.22); border: 1px solid rgba(79,70,229,.5); border-radius: 6px;
  color: #c7d2fe; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em;
}
.sidebar .widget .eventos .dt b { color: #ffffff; font-size: 18px; line-height: 1.1; letter-spacing: 0; font-variant-numeric: tabular-nums; }
.sidebar .widget .eventos a { color: #e2e8f0; font-size: 13px; font-weight: 600; line-height: 1.35; }
.sidebar .widget .eventos a:hover { color: #06B6D4; }
.sidebar .widget .eventos small { display: block; color: #94a3b8; font-size: 11.5px; margin-top: 2px; }
.sidebar .widget .w-more { display: inline-block; margin-top: 14px; font-size: 12px; font-weight: 700; color: #06B6D4; }
.sidebar .widget .w-more:hover { color: #ffffff; }

.sidebar .widget .editorias li { padding-bottom: 8px; margin-bottom: 8px; }

/* ---------- Rodapé ---------- */
#footer-widget-container { padding: 44px 24px 0; }
.footer-grid { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; padding-bottom: 32px; }
#footer-widget-container h3 {
  color: #ffffff; font-size: 15px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em;
  border-bottom: 2px solid #4F46E5; padding-bottom: 8px; margin: 0 0 14px; display: inline-block;
}
.f-about p { margin: 0 0 16px; color: #94a3b8; font-size: 13.5px; line-height: 1.75; max-width: 62ch; }
.f-linkedin { display: inline-flex; align-items: center; gap: 8px; color: #cbd5e1; font-size: 13px; font-weight: 700; }
.f-linkedin svg { width: 18px; height: 18px; fill: #0A66C2; background: #ffffff; border-radius: 3px; padding: 1px; }
.f-linkedin:hover { color: #06B6D4; }
.f-links { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.f-links a { color: #94a3b8; font-size: 13px; }
.f-links a:hover { color: #06B6D4; }
.f-bottom {
  max-width: 1200px; margin: 0 auto; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center;
  gap: 12px; padding: 18px 0; border-top: 1px solid rgba(148,163,184,.15); font-size: 12px; color: #64748b;
}
.f-bottom .footer-links { margin: 0; padding: 0; border: 0; }
.f-bottom .footer-links ul { justify-content: flex-end; }

/* ---------- Responsivo ---------- */
@media (max-width: 1024px) {
  .cols { grid-template-columns: 1fr; }
  .strip { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .grc-portal-home #wrapper { padding-top: 18px; }
  .destaques, .lead-list, .wide, .cols2, .footer-grid, .grid3 { grid-template-columns: 1fr; }
  .ov-xl { min-height: 340px; }
  .ov-xl .ov-title { font-size: 22px; }
  .ov-xl .excerpt { display: none; }
  .cta { flex-direction: column; align-items: flex-start; }
  .footer-grid { gap: 28px; }
  .f-bottom { flex-direction: column; align-items: flex-start; }
  .f-bottom .footer-links ul { justify-content: flex-start; }
}
@media (max-width: 480px) {
  .strip, .grid4 { grid-template-columns: 1fr; }
  .ticker { margin-bottom: 16px; }
}

/* ---------- Comentários ---------- */
.grc-comments { margin: 10px 0 30px; }
.grc-comments .sec-head { margin-bottom: 16px; }
.comment-list { list-style: none; margin: 0 0 24px; padding: 0; }
.comment-list li { border-bottom: 1px solid #e2e8f0; padding: 14px 0; }
.comment-list .children { list-style: none; padding-left: 24px; }
.comment-author { display: flex; align-items: center; gap: 10px; font-weight: 700; color: #0f172a; font-size: 14px; }
.comment-author img { border-radius: 50%; }
.comment-metadata { font-size: 12px; margin: 4px 0 8px; }
.comment-metadata a { color: #64748b; }
.comment-content { font-size: 14.5px; line-height: 1.7; color: #334155; }
.comment-form { display: grid; gap: 12px; font-size: 14px; color: #475569; }
.comment-form p { margin: 0; }
.comment-form label { display: block; font-weight: 600; color: #1e293b; margin-bottom: 4px; font-size: 13px; }
.comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"], .comment-form textarea {
  width: 100%; border: 1px solid #cbd5e1; border-radius: 6px; padding: 10px 12px; font: inherit; color: #0f172a; background: #ffffff;
}
.comment-form input:focus, .comment-form textarea:focus { outline: 2px solid #06B6D4; outline-offset: 1px; border-color: #06B6D4; }
.comment-form-cookies-consent { display: flex; gap: 8px; align-items: flex-start; }
.comment-form-cookies-consent label { display: inline; font-weight: 400; }
.comment-form .btn-comment {
  background: #4F46E5; color: #ffffff; border: 0; border-radius: 4px; padding: 11px 18px; font-size: 13px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .06em; cursor: pointer;
}
.comment-form .btn-comment:hover { background: #06B6D4; color: #111625; }
