/* ==========================================================================
   ARTIGO / POST — Nikolas Ferreira (template de materia + video)
   ========================================================================== */
.nk-article-page { background: #f8fafc; color: #1e293b; }

.nk-article-header {
  background: #1E50A2; color: #fff; padding: 40px 0 35px; border-bottom: 4px solid #FFCC00;
  margin-top: var(--nk-header-h);
}
@media (max-width: 768px) { .nk-article-header { margin-top: var(--nk-header-h); } }
@media (min-width: 1200px) { .nk-article-header { margin-top: var(--nk-header-h); } }

.nk-article-wrap { max-width: 1000px; margin: 0 auto; padding: 0 24px; }
.nk-article-wrap--wide { max-width: 1440px; }

.nk-breadcrumb { display: flex; align-items: center; gap: 8px; font-size: 13px; color: #cbd5e1; margin-bottom: 16px; flex-wrap: wrap; }
.nk-breadcrumb a { color: #FFCC00; text-decoration: none; font-weight: 600; }
.nk-breadcrumb a:hover { text-decoration: underline; }

.nk-article-badges { display: flex; gap: 10px; margin-bottom: 12px; flex-wrap: wrap; }

.nk-article-title { font-size: clamp(24px, 4vw, 32px); font-weight: 800; line-height: 1.25; color: #fff; margin: 12px 0 16px; font-family: var(--nk-font); }

.nk-article-meta-bar {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px;
  padding-top: 14px; border-top: 1px solid rgba(255, 255, 255, 0.15); font-size: 13.5px; color: #e2e8f0;
}
.nk-article-meta-left { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.nk-article-yt-link { color: #FFCC00; text-decoration: none; font-weight: 700; display: inline-flex; align-items: center; gap: 6px; }
.nk-article-yt-link:hover { text-decoration: underline; }

/* Layout corpo: coluna principal + sidebar */
.nk-article-body-layout { display: grid; grid-template-columns: 1fr 340px; gap: 36px; padding: 40px 0 70px; }
.nk-article-body-layout--full { grid-template-columns: 1fr; max-width: 820px; margin: 0 auto; }

/* Player do YouTube responsivo */
.nk-video-player-wrap {
  position: relative; width: 100%; padding-bottom: 56.25%; height: 0; background: #000;
  border-radius: 16px; overflow: hidden; box-shadow: 0 10px 30px rgba(30, 80, 162, 0.18); margin-bottom: 24px;
}
.nk-video-player-wrap iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: 0; }

.nk-video-actions {
  display: flex; align-items: center; justify-content: space-between; background: #fff; padding: 16px 24px;
  border-radius: 12px; border: 1px solid #e2e8f0; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04); margin-bottom: 32px; flex-wrap: wrap; gap: 14px;
}
.nk-channel-author { display: flex; align-items: center; gap: 12px; }
.nk-channel-avatar { width: 44px; height: 44px; border-radius: 50%; background: #1E50A2; color: #FFCC00; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 16px; border: 2px solid #FFCC00; }
.nk-channel-name { font-weight: 800; color: #1E50A2; font-size: 15px; }
.nk-channel-sub { font-size: 12px; color: #64748b; }
.nk-sub-btn-yt { background: #ff0000; color: #fff; font-weight: 700; padding: 10px 20px; border-radius: 30px; text-decoration: none; font-size: 13.5px; display: inline-flex; align-items: center; gap: 8px; transition: background 0.2s; }
.nk-sub-btn-yt:hover { background: #cc0000; }

/* Conteudo do artigo (corpo em markdown) */
.nk-article-content { background: #fff; padding: 36px 40px; border-radius: 16px; border: 1px solid #e2e8f0; box-shadow: 0 4px 16px rgba(30, 80, 162, 0.04); }
.nk-article-content > p:first-of-type,
.nk-article-lead { font-size: 17px; line-height: 1.65; color: #334155; font-weight: 500; }
.nk-article-lead { padding-bottom: 20px; border-bottom: 2px solid #f1f5f9; margin-bottom: 28px; }
.nk-article-content h2 { font-size: 24px; font-weight: 800; color: #1E50A2; margin: 32px 0 16px; font-family: var(--nk-font); }
.nk-article-content h2 { scroll-margin-top: 96px; }
.nk-article-content h3 { font-size: 19px; font-weight: 700; color: #1E50A2; margin: 28px 0 12px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; scroll-margin-top: 96px; }
.nk-article-content p { font-size: 15.5px; line-height: 1.7; color: #334155; margin-bottom: 18px; }
.nk-article-content a { color: #1E50A2; font-weight: 600; }
.nk-article-content ul, .nk-article-content ol { margin: 0 0 18px; padding-left: 22px; }
.nk-article-content li { font-size: 15.5px; line-height: 1.7; color: #334155; margin-bottom: 8px; list-style: disc; }
.nk-article-content ol li { list-style: decimal; }
.nk-article-content img { border-radius: 12px; margin: 8px 0 20px; }

/* ==========================================================================
   RESUMO DO ARTIGO / TABLE OF CONTENTS (TOC) COM FUNDO AZUL
   ========================================================================== */
.nk-toc {
  background: #1E50A2;
  color: #ffffff;
  border-radius: 14px;
  border: 1px solid rgba(255, 204, 0, 0.4);
  border-left: 5px solid #FFCC00;
  box-shadow: 0 8px 24px rgba(30, 80, 162, 0.16);
  margin: 28px 0 32px;
  padding: 18px 22px;
  width: 100%;
  box-sizing: border-box;
  transition: all 0.3s ease;
}

.nk-toc__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  cursor: pointer;
  user-select: none;
}

.nk-toc__title-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #FFCC00;
}

.nk-toc__title-wrap .nk-ico {
  color: #FFCC00;
  flex-shrink: 0;
}

.nk-toc__title {
  font-size: 15.5px;
  font-weight: 800;
  color: #FFCC00;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.nk-toc__toggle {
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 20px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.nk-toc__toggle:hover {
  background: #FFCC00;
  color: #1E50A2;
  border-color: #FFCC00;
}

.nk-toc__chevron {
  transition: transform 0.25s ease;
}

.nk-toc.is-collapsed .nk-toc__chevron {
  transform: rotate(-90deg);
}

.nk-toc__body {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  transition: max-height 0.3s ease, opacity 0.2s ease;
}

.nk-toc.is-collapsed .nk-toc__body {
  display: none;
}

.nk-toc__list {
  list-style: none !important;
  padding-left: 0 !important;
  margin: 0 !important;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.nk-toc__item {
  font-size: 14.5px;
  line-height: 1.45;
  color: #f1f5f9;
  list-style: none !important;
  margin-bottom: 0 !important;
  display: flex;
  align-items: flex-start;
}

.nk-toc__item a {
  color: #ffffff !important;
  text-decoration: none !important;
  font-weight: 600;
  transition: color 0.2s ease, transform 0.2s ease;
  display: inline-block;
}

.nk-toc__item a:hover {
  color: #FFCC00 !important;
  text-decoration: underline !important;
  transform: translateX(3px);
}

.nk-toc__item--h3 {
  padding-left: 22px;
  font-size: 13.5px;
  opacity: 0.94;
}

.nk-toc__num {
  color: #FFCC00;
  font-weight: 800;
  margin-right: 8px;
  flex-shrink: 0;
}
.nk-article-content blockquote {
  background: #1E50A2;
  color: #ffffff;
  border-left: 5px solid #FFCC00;
  padding: 18px 24px;
  margin: 24px 0;
  font-style: normal;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(30, 80, 162, 0.15);
}
.nk-article-content blockquote p {
  color: #ffffff !important;
  font-size: 16px;
  line-height: 1.68;
  margin-bottom: 8px;
}
.nk-article-content blockquote p:last-child {
  margin-bottom: 0;
}
.nk-article-content blockquote strong {
  color: #FFCC00 !important;
  font-weight: 800;
}
.nk-article-content blockquote a {
  color: #FFCC00 !important;
  font-weight: 800;
  text-decoration: underline;
  transition: opacity 0.2s ease;
}
.nk-article-content blockquote a:hover {
  opacity: 0.85;
}
.nk-article-content blockquote em {
  color: #f1f5f9;
}

/* Palavras Relacionadas / Tags no próprio layout sem borda */
.nk-related-tags {
  margin: 36px 0 20px;
  padding: 18px 0 0;
  border-top: 1px solid #e2e8f0;
  background: transparent;
}
.nk-related-tags__title {
  font-size: 14.5px;
  font-weight: 800;
  color: #1E50A2;
  margin: 0 0 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.nk-related-tags__list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
}
.nk-tag-balloon {
  display: inline-flex;
  align-items: center;
  background: transparent;
  color: #1E50A2 !important;
  font-size: 14.5px;
  font-weight: 800;
  padding: 0;
  border-radius: 0;
  text-decoration: none !important;
  box-shadow: none;
  border: none;
  transition: color 0.2s ease;
}
.nk-tag-balloon:hover {
  background: transparent;
  color: #00A859 !important;
  text-decoration: underline !important;
  transform: none;
  box-shadow: none;
}

/* ==========================================================================
   CAIXA DE DOAÇÃO PARA A CAMPANHA (2 COLUNAS: TEXTO + DADOS BANCÁRIOS COPIA E COLA)
   ========================================================================== */
.nk-donation-box {
  background: linear-gradient(135deg, #00A859 0%, #008044 100%);
  color: #ffffff !important;
  border-radius: 16px;
  padding: 28px;
  margin: 36px 0 32px;
  box-shadow: 0 10px 30px rgba(0, 168, 89, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-sizing: border-box;
}

.nk-donation-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 28px;
  align-items: start;
}
@media (max-width: 860px) {
  .nk-donation-grid {
    grid-template-columns: 1fr;
    gap: 22px;
  }
}

.nk-donation-badge {
  display: inline-block;
  background: #FFCC00;
  color: #1E50A2;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 4px 10px;
  border-radius: 6px;
  margin-bottom: 12px;
}

.nk-donation-title {
  color: #FFCC00 !important;
  font-size: 20px;
  font-weight: 800;
  margin: 0 0 12px !important;
  line-height: 1.25;
}

.nk-donation-col-txt p {
  color: #ffffff !important;
  font-size: 14.5px;
  line-height: 1.65;
  margin-bottom: 12px;
}
.nk-donation-col-txt p:last-child {
  margin-bottom: 0;
}
.nk-donation-col-txt p strong {
  color: #FFCC00 !important;
}

.nk-donation-card-inner {
  background: rgba(0, 0, 0, 0.28);
  border: 1px dashed rgba(255, 204, 0, 0.8);
  border-radius: 14px;
  padding: 20px;
}

.nk-donation-header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  padding-bottom: 12px;
  margin-bottom: 14px;
  flex-wrap: wrap;
  gap: 6px;
}

.nk-donation-bank-name {
  color: #FFCC00;
  font-weight: 800;
  font-size: 15px;
}

.nk-donation-account-type {
  font-size: 12px;
  color: #e2e8f0;
  font-weight: 600;
}

.nk-copy-group {
  margin-bottom: 12px;
}
.nk-copy-group:last-child {
  margin-bottom: 0;
}

.nk-copy-label {
  font-size: 11px;
  color: #FFCC00;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.04em;
  margin-bottom: 4px;
}

.nk-copy-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(0, 0, 0, 0.35);
  border-radius: 8px;
  padding: 6px 10px;
  gap: 10px;
}

.nk-copy-code {
  font-family: monospace, sans-serif;
  font-size: 13.5px;
  color: #ffffff;
  font-weight: 700;
  word-break: break-all;
  user-select: all;
}

.nk-copy-btn {
  background: #FFCC00;
  color: #1E50A2;
  border: none;
  font-size: 11.5px;
  font-weight: 800;
  padding: 5px 10px;
  border-radius: 6px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  flex-shrink: 0;
  transition: all 0.2s ease;
}
.nk-copy-btn:hover {
  background: #ffffff;
  color: #00A859;
}
.nk-copy-btn.is-copied {
  background: #ffffff;
  color: #00A859;
}

.nk-copy-sub {
  display: block;
  font-size: 10.5px;
  color: #d1fae5;
  margin-top: 4px;
  line-height: 1.35;
}

.nk-copy-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
@media (max-width: 480px) {
  .nk-copy-grid-2 {
    grid-template-columns: 1fr;
  }
}

/* ========================================================================== 
   CARDS DE REDES SOCIAIS COLORIDAS & DADOS OFICIAIS DO GABINETE
   ========================================================================== */
.nk-official-channels-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(300px, .85fr);
  gap: 22px;
  align-items: stretch;
  margin: 20px 0 32px;
}
.nk-social-channels-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
  align-content: start;
}

.nk-social-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 12px;
  text-decoration: none !important;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  transition: all 0.2s ease;
}
.nk-social-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
}

.nk-social-card__icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.nk-social-card__icon svg {
  width: 20px;
  height: 20px;
}

.nk-social-card__info {
  display: flex;
  flex-direction: column;
}
.nk-social-card__info strong {
  font-size: 13px;
  color: #1E50A2;
  font-weight: 700;
}
.nk-social-card__info span {
  font-size: 11.5px;
  color: #64748b;
}

/* Cores específicas de cada rede social */
.nk-social-card--yt .nk-social-card__icon { background: #fee2e2; color: #ef4444; }
.nk-social-card--ig .nk-social-card__icon { background: #fce7f3; color: #ec4899; }
.nk-social-card--x .nk-social-card__icon { background: #f1f5f9; color: #0f172a; }
.nk-social-card--tg .nk-social-card__icon { background: #e0f2fe; color: #0284c7; }
.nk-social-card--tk .nk-social-card__icon { background: #f1f5f9; color: #000000; }
.nk-social-card--fb .nk-social-card__icon { background: #dbeafe; color: #1d4ed8; }
.nk-social-card--kw .nk-social-card__icon { background: #ffedd5; color: #ea580c; }

/* Box Dados Oficiais do Gabinete */
.nk-gabinete-box {
  background: #1E50A2;
  color: #fff;
  border: 0;
  border-top: 5px solid #FFCC00;
  border-radius: 14px;
  padding: 22px 24px;
  margin: 0;
  box-shadow: 0 10px 24px rgba(30, 80, 162, .20);
}
.nk-gabinete-header {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #FFCC00;
  margin-bottom: 4px;
}
.nk-gabinete-header h3 {
  font-size: 17px !important;
  font-weight: 800 !important;
  color: #fff !important;
  margin: 0 !important;
}
.nk-gabinete-sub {
  font-size: 12.5px !important;
  color: rgba(255,255,255,.74) !important;
  margin: 0 0 16px !important;
}
.nk-gabinete-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 20px;
}
@media (max-width: 600px) {
  .nk-gabinete-grid {
    grid-template-columns: 1fr;
  }
}
.nk-gabinete-item {
  font-size: 13.5px;
  color: #fff;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.nk-gabinete-item--full {
  grid-column: 1 / -1;
}
.nk-gabinete-lbl {
  font-size: 11px;
  text-transform: uppercase;
  color: #FFCC00;
  font-weight: 700;
  letter-spacing: 0.03em;
}
.nk-gabinete-item a {
  color: #fff !important;
  text-decoration: underline !important;
}
.nk-gabinete-action {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid rgba(255,255,255,.2);
}
.nk-gabinete-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #FFCC00;
  color: #1E50A2 !important;
  font-size: 13px;
  font-weight: 700;
  padding: 9px 18px;
  border-radius: 8px;
  text-decoration: none !important;
  transition: all 0.2s ease;
}
.nk-gabinete-btn:hover {
  background: #fff;
  color: #1E50A2 !important;
}

@media (max-width: 900px) {
  .nk-official-channels-layout { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .nk-social-channels-grid { grid-template-columns: 1fr; }
}

.nk-timestamp-tag { background: #f1f5f9; color: #1E50A2; font-size: 12px; font-weight: 700; padding: 3px 8px; border-radius: 6px; border: 1px solid #cbd5e1; }
.nk-article-note-box { background: #fffbe6; border-left: 4px solid #FFCC00; padding: 20px 24px; border-radius: 8px; margin: 36px 0 20px; font-size: 14.5px; color: #78350f; line-height: 1.6; }
.nk-article-note-box strong { color: #92400e; }

/* Sidebar direita */
.nk-article-sidebar { display: flex; flex-direction: column; gap: 24px; }
.nk-sidebar-widget { background: #fff; padding: 24px; border-radius: 16px; border: 1px solid #e2e8f0; box-shadow: 0 4px 14px rgba(30, 80, 162, 0.04); }
.nk-sidebar-widget-title { font-size: 17px; font-weight: 800; color: #1E50A2; margin: 0 0 16px; padding-bottom: 10px; border-bottom: 2px solid #FFCC00; }
.nk-sidebar-list { display: flex; flex-direction: column; gap: 16px; }
.nk-sidebar-item { display: flex; gap: 12px; text-decoration: none; color: inherit; }
.nk-sidebar-item img { width: 100px; height: 62px; object-fit: cover; border-radius: 8px; flex-shrink: 0; }
.nk-sidebar-item h5 { font-size: 13px; font-weight: 700; color: #1E50A2; margin: 0 0 4px; line-height: 1.3; }
.nk-sidebar-item span { font-size: 11px; color: #64748b; }
.nk-sidebar-item:hover h5 { color: #1E50A2; }
.nk-sidebar-cta { background: linear-gradient(135deg, #1E50A2 0%, #1E50A2 100%); color: #fff; }
.nk-sidebar-cta h4 { font-size: 18px; font-weight: 800; color: #FFCC00; margin: 0 0 10px; }
.nk-sidebar-cta p { font-size: 13px; color: #e2e8f0; line-height: 1.5; margin-bottom: 16px; }
.nk-sidebar-cta a { display: block; text-align: center; background: #FFCC00; color: #1E50A2; font-weight: 800; font-size: 13.5px; padding: 12px; border-radius: 30px; text-decoration: none; }

@media (max-width: 1024px) {
  .nk-article-body-layout { grid-template-columns: 1fr; }
  .nk-article-content { padding: 24px 20px; }
}

/* ==========================================================================
   CAPA NO TOPO DO POST
   ========================================================================== */
.nk-article-cover {
  margin: 0 0 22px; border-radius: 0; overflow: hidden;
  box-shadow: 0 10px 30px rgba(30, 80, 162, 0.14); background: #cbd5e1;
}
.nk-article-cover img { width: 100%; height: auto; display: block; aspect-ratio: 16 / 8; object-fit: cover; }
.nk-article-credit {
  display: flex; align-items: center; gap: 6px; font-size: 12px; color: #64748b;
  background: #f1f5f9; padding: 8px 14px; font-style: normal;
}
.nk-article-credit .nk-ico { color: #94a3b8; flex-shrink: 0; }
.nk-byline-link { color: inherit; text-decoration: none; }
.nk-byline-link:hover strong { color: #FFCC00; }

/* ==========================================================================
   AÇÕES DO ARTIGO (dentro do cabeçalho azul): RESUMIR COM IA + COMPARTILHAR
   ========================================================================== */
.nk-actions {
  display: flex; flex-wrap: wrap; gap: 14px 30px; align-items: center; justify-content: space-between;
  margin-top: 18px; padding-top: 16px; border-top: 1px solid #e2e8f0;
}
.nk-ai, .nk-share-box {
  display: flex; flex-direction: row; align-items: center; gap: 12px; flex-wrap: wrap;
}
.nk-ai__label, .nk-share-label {
  display: inline-flex; align-items: center; gap: 7px; white-space: nowrap;
  font-size: 12px; font-weight: 800; color: #1E50A2; text-transform: uppercase; letter-spacing: 0.06em;
}
.nk-ai__label .nk-ico, .nk-share-label .nk-ico { color: #1E50A2; }

/* Itens de IA: só ícone, botão compacto, com tooltip ao passar o mouse */
.nk-ai__items { display: flex; flex-wrap: wrap; gap: 8px; }
.nk-ai-item {
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 10px; text-decoration: none;
  background: #fff; border: 1px solid #cbd5e1; color: #1E50A2;
  transition: transform 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}
.nk-ai-item svg { width: 20px; height: 20px; }
.nk-ai-item:hover { transform: translateY(-3px); background: #FFCC00; box-shadow: 0 10px 20px rgba(0, 0, 0, 0.28); }
.nk-ai-item::after {
  content: attr(data-tip); position: absolute; bottom: calc(100% + 9px); left: 50%;
  transform: translateX(-50%) translateY(4px); background: #0a1424; color: #fff;
  font-size: 11.5px; font-weight: 700; white-space: nowrap; padding: 6px 10px; border-radius: 7px;
  opacity: 0; pointer-events: none; z-index: 6; box-shadow: 0 8px 18px rgba(0, 0, 0, 0.35);
  transition: opacity 0.16s ease, transform 0.16s ease;
}
.nk-ai-item::before {
  content: ""; position: absolute; bottom: calc(100% + 4px); left: 50%; transform: translateX(-50%);
  border: 5px solid transparent; border-top-color: #0a1424; opacity: 0; z-index: 6; transition: opacity 0.16s ease;
}
.nk-ai-item:hover::after { opacity: 1; transform: translateX(-50%) translateY(0); }
.nk-ai-item:hover::before { opacity: 1; }

/* Compartilhar (botões redondos brancos: LinkedIn, e-mail, copiar, incorporar) */
.nk-share-btns { display: flex; flex-wrap: wrap; gap: 8px; }
.nk-share-btn {
  width: 38px; height: 38px; border-radius: 10px; border: 1px solid rgba(255, 255, 255, 0.6); background: #fff; color: #1E50A2;
  display: inline-flex; align-items: center; justify-content: center; cursor: pointer; text-decoration: none;
  transition: all 0.18s ease; padding: 0;
}
.nk-share-btn:hover { transform: translateY(-3px); color: #fff; box-shadow: 0 8px 18px rgba(0, 0, 0, 0.22); }
.nk-sh--wa:hover { background: #25D366; border-color: #25D366; }
.nk-sh--fb:hover { background: #1877F2; border-color: #1877F2; }
.nk-sh--x:hover { background: #000; border-color: #000; }
.nk-sh--tg:hover { background: #229ED9; border-color: #229ED9; }
.nk-sh--in:hover { background: #0A66C2; border-color: #0A66C2; }
.nk-sh--mail:hover, .nk-sh--copy:hover, .nk-sh--embed:hover { background: #1E50A2; border-color: #1E50A2; }
.nk-share-btn.is-ok { background: #00A859; border-color: #00A859; color: #fff; }
.nk-sh--embed.is-active { background: #0a1424; border-color: #0a1424; color: #fff; }

/* Botões com rótulo (ícone + nome, cor sólida) — usados no topo e no fim da matéria */
.nk-share-btn--label { width: auto; height: 40px; padding: 0 14px; gap: 8px; border-radius: 8px; border: none; color: #fff; font-size: 13px; font-weight: 800; }
.nk-share-btn--label span { line-height: 1; }
.nk-share-btn--label:hover { color: #fff; filter: brightness(1.08); }
.nk-share-btn--label.nk-sh--wa { background: #25D366; }
.nk-share-btn--label.nk-sh--fb { background: #1877F2; }
.nk-share-btn--label.nk-sh--x { background: #000; }
.nk-share-btn--label.nk-sh--tg { background: #229ED9; }
.nk-share-btn--label.nk-sh--in { background: #0A66C2; }
.nk-share-btn--label.nk-sh--pin { background: #E60023; }
.nk-share-btn--label.nk-sh--rd { background: #FF4500; }
.nk-share-btn--label.nk-sh--mail { background: #334155; }

/* Caixa de incorporar */
.nk-embed-box { background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 12px; padding: 18px 20px; margin: -8px 0 26px; }
.nk-embed-head { display: flex; flex-direction: column; gap: 3px; margin-bottom: 12px; }
.nk-embed-head strong { display: inline-flex; align-items: center; gap: 7px; font-size: 14px; color: #1E50A2; }
.nk-embed-head span { font-size: 12.5px; color: #64748b; }
.nk-embed-code {
  width: 100%; font-family: ui-monospace, "Cascadia Code", Consolas, monospace; font-size: 12.5px; line-height: 1.5;
  color: #1e293b; background: #fff; border: 1px solid #cbd5e1; border-radius: 8px; padding: 12px; resize: vertical; margin-bottom: 12px;
}
.nk-embed-copy { font-size: 13px; padding: 9px 16px; }

/* ==========================================================================
   COMPARTILHAR NO FIM DA MATÉRIA + NAVEGAÇÃO ENTRE POSTS
   ========================================================================== */
.nk-share-end {
  margin: 40px 0 0; padding-top: 26px; border-top: 1px solid #e2e8f0;
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 14px;
}
.nk-share-end__label { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.05em; color: #1e293b; }
.nk-share-end__label .nk-ico { color: #1E50A2; }
.nk-share-end__btns { display: flex; flex-wrap: wrap; gap: 8px; }
.nk-shend {
  width: 42px; height: 42px; border-radius: 10px; color: #fff; text-decoration: none;
  display: inline-flex; align-items: center; justify-content: center;
  transition: transform 0.16s ease, box-shadow 0.16s ease, filter 0.16s ease;
}
.nk-shend:hover { transform: translateY(-3px); box-shadow: 0 8px 18px rgba(0,0,0,0.18); filter: brightness(1.06); }
.nk-shend--fb { background: #1877F2; }
.nk-shend--x { background: #000; }
.nk-shend--pin { background: #E60023; }
.nk-shend--in { background: #0A66C2; }
.nk-shend--rd { background: #FF4500; }
.nk-shend--wa { background: #25D366; }
.nk-shend--tg { background: #229ED9; }
.nk-shend--mail { background: #334155; }
@media (max-width: 560px) { .nk-share-end { justify-content: flex-start; } }

.nk-postnav { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin: 26px 0 0; }
.nk-postnav__item {
  display: flex; flex-direction: column; gap: 8px; padding: 18px 20px;
  border: 1px solid #e2e8f0; border-radius: 14px; background: #fff; text-decoration: none;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}
.nk-postnav__item:hover { border-color: #1E50A2; box-shadow: 0 10px 24px rgba(30, 80, 162, 0.1); transform: translateY(-2px); }
.nk-postnav__item--next { text-align: right; align-items: flex-end; }
.nk-postnav__label { display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.06em; color: #e74c5e; }
.nk-postnav__title { font-size: 15.5px; font-weight: 800; color: #1e293b; line-height: 1.3; }
.nk-postnav__item:hover .nk-postnav__title { color: #1E50A2; }
.nk-flip { display: inline-flex; transform: scaleX(-1); }
@media (max-width: 600px) {
  .nk-postnav { grid-template-columns: 1fr; }
  .nk-postnav__item--next { text-align: left; align-items: flex-start; }
}

/* ==========================================================================
   CAIXA DE BIO DO AUTOR
   ========================================================================== */
.nk-author-box {
  display: grid; grid-template-columns: 160px 1fr; gap: 28px; align-items: center;
  background: linear-gradient(135deg, #f8fafc 0%, #eef4fb 100%); border: 1px solid #d8e3f0;
  border-left: 6px solid #1E50A2; border-radius: 18px; padding: 30px; margin-top: 36px;
  box-shadow: 0 12px 30px rgba(30, 80, 162, 0.10);
}
.nk-author-photo {
  width: 160px; height: 160px; border-radius: 50%; object-fit: cover; object-position: center 20%;
  border: 0; outline: 0; box-shadow: 0 5px 14px rgba(15, 23, 42, 0.14);
  justify-self: center;
}
.nk-author-eyebrow { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.12em; color: #1E50A2; }
.nk-author-name { font-size: 24px; font-weight: 800; color: #1E50A2; margin: 4px 0 2px; line-height: 1.1; }
.nk-author-role { font-size: 13px; font-weight: 700; color: #64748b; margin: 0 0 12px; }
.nk-author-bio { font-size: 14.5px; line-height: 1.6; color: #475569; margin: 0 0 16px; }
.nk-author-foot { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.nk-author-social { display: flex; gap: 8px; }
.nk-author-social a {
  width: 34px; height: 34px; border-radius: 50%; background: #1E50A2; color: #fff;
  display: inline-flex; align-items: center; justify-content: center; transition: all 0.18s ease;
}
.nk-author-social a:hover { background: #FFCC00; color: #1E50A2; transform: translateY(-2px); }
.nk-author-more { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 800; color: #1E50A2; text-decoration: none; }
.nk-author-more:hover { gap: 9px; }

@media (max-width: 560px) {
  .nk-author-box { grid-template-columns: 1fr; gap: 22px; padding: 24px 20px; text-align: left; }
  .nk-author-photo { width: 140px; height: 140px; justify-self: center; }
}

/* ==========================================================================
   POSTS RELACIONADOS (matriz 3 x 2)
   ========================================================================== */
.nk-related { margin-top: 40px; padding-top: 30px; border-top: 1px solid #e2e8f0; }
.nk-related__title { font-size: 23px; font-weight: 900; color: #1e293b; margin: 0 0 22px; letter-spacing: -0.01em; }
.nk-related__title span { color: #e74c5e; }
.nk-related__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
@media (max-width: 900px) { .nk-related__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .nk-related__grid { grid-template-columns: 1fr; } }

/* ==========================================================================
   LISTAGEM /blog e /categorias — grade de materias
   ========================================================================== */
.nk-list-page { background: #f4f7fc; }
.nk-list-header { background: #1E50A2; color: #fff; padding: 40px 0; border-bottom: 4px solid #FFCC00; margin-top: var(--nk-header-h); }
@media (max-width: 768px) { .nk-list-header { margin-top: 62px; } }
@media (min-width: 1200px) { .nk-list-header { margin-top: 78px; } }
.nk-list-header h1 { font-size: clamp(26px, 4vw, 36px); font-weight: 800; margin: 0; }
.nk-list-header p { color: #cbd5e1; margin: 8px 0 0; font-size: 15px; }
.nk-list-header .nk-cat-desc { color: #e8eef7; max-width: 760px; font-size: 16px; line-height: 1.6; margin-top: 12px; }
.nk-list-header .nk-cat-count { color: #9db4d8; font-size: 13px; margin-top: 10px; }

.nk-list-wrap { max-width: 1440px; margin: 0 auto; padding: 44px 24px 70px; }
.nk-cat-nav { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 30px; }
.nk-cat-chip {
  display: inline-block; padding: 7px 16px; border-radius: 999px; background: #fff; border: 1px solid rgba(30, 80, 162, 0.2);
  color: #1E50A2; font-size: 13px; font-weight: 700; text-decoration: none; transition: all 0.2s;
}
.nk-cat-chip:hover, .nk-cat-chip[aria-current="page"] { background: #1E50A2; color: #fff; border-color: #1E50A2; }

.nk-post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 900px) { .nk-post-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .nk-post-grid { grid-template-columns: 1fr; } }

.nk-post-card {
  background: #fff; border-radius: 14px; overflow: hidden; border: 1px solid rgba(30, 80, 162, 0.12);
  box-shadow: 0 6px 18px rgba(30, 80, 162, 0.05); display: flex; flex-direction: column;
  text-decoration: none; color: inherit; transition: all 0.25s ease;
}
.nk-post-card:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(30, 80, 162, 0.12); border-color: rgba(30, 80, 162, 0.3); }
.nk-post-card__img { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: #cbd5e1; }
.nk-post-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.nk-post-card:hover .nk-post-card__img img { transform: scale(1.05); }
.nk-post-card__badge { position: absolute; top: 12px; left: 12px; z-index: 2; }
.nk-post-card__body { padding: 18px 20px 20px; display: flex; flex-direction: column; flex: 1; }
.nk-post-card__title { font-size: 17px; font-weight: 800; color: #111827; line-height: 1.3; margin: 0 0 10px; }
.nk-post-card:hover .nk-post-card__title { color: #1E50A2; }
.nk-post-card__excerpt { font-size: 13.5px; line-height: 1.55; color: #64748b; margin: 0 0 14px; flex: 1; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.nk-post-card__meta { font-size: 11.5px; font-weight: 600; color: #94a3b8; display: flex; align-items: center; gap: 8px; }

.nk-empty { text-align: center; color: #64748b; padding: 60px 0; font-size: 16px; }

/* ==========================================================================
   WIDGET DO TWITTER / X (SIDEBAR DO POST)
   ========================================================================== */
.nk-sidebar-tweets { background: #fff; border: 1px solid #e2e8f0; border-radius: 16px; padding: 22px; margin-bottom: 24px; box-shadow: 0 4px 14px rgba(0,0,0,0.04); }
.nk-tweets-container { margin: 12px 0 16px; max-height: 440px; overflow-y: auto; scrollbar-width: thin; }
.nk-tweets-fallback { display: flex; flex-direction: column; gap: 12px; }
.nk-tweet-item { display: block; padding: 12px 14px; background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 10px; text-decoration: none; color: inherit; transition: all 0.18s ease; }
.nk-tweet-item:hover { border-color: #000; background: #fff; box-shadow: 0 4px 12px rgba(0,0,0,0.06); transform: translateY(-1px); }
.nk-tweet-meta { font-size: 11.5px; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-bottom: 4px; }
.nk-tweet-author { color: #0f172a; font-weight: 800; }
.nk-tweet-handle { color: #64748b; font-weight: 600; }
.nk-tweet-date { color: #94a3b8; }
.nk-tweet-text { font-size: 12.5px; line-height: 1.5; color: #334155; margin: 0; }
.nk-tweet-cta { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; padding: 10px; border-radius: 8px; background: #000; color: #fff; font-size: 13px; font-weight: 800; text-decoration: none; transition: background 0.18s ease; }
.nk-tweet-cta:hover { background: #1d9bf0; color: #fff; }
