* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: "Segoe UI", system-ui, sans-serif;
  background: #f4f6f9;
  color: #222;
  font-size: 14px;
  line-height: 1.5;
}
a { color: #e65100; }
header.hub-header {
  background: linear-gradient(135deg, #ff6a00, #ff8c00);
  color: white;
  padding: 20px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
header.hub-header h1 { font-size: 24px; font-weight: 700; }
header.hub-header p { font-size: 13px; opacity: 0.9; margin-top: 4px; }
.hub-brand { display: flex; align-items: center; gap: 14px; }
.hub-avatar {
  width: 42px; height: 42px; border-radius: 10px;
  background: #1a1a2e; color: #fff; display: flex;
  align-items: center; justify-content: center;
  font-weight: 800; font-size: 13px;
}
.hub-nav {
  display: flex; gap: 8px; flex-wrap: wrap;
  padding: 12px 24px; background: #2d3748;
}
.hub-nav a {
  color: rgba(255,255,255,.75); text-decoration: none;
  padding: 10px 16px; border-radius: 8px 8px 0 0;
  font-size: 13px; font-weight: 600;
}
.hub-nav a:hover { color: #fff; background: rgba(255,255,255,.08); }
.hub-nav a.ativo { background: #f4f6f9; color: #ff6a00; }
.wrap { max-width: 1100px; margin: 0 auto; padding: 28px 20px 48px; }
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
}
.card {
  background: white; border-radius: 12px; padding: 22px;
  box-shadow: 0 2px 10px rgba(0,0,0,.07);
  border: 1px solid #eee; text-decoration: none; color: inherit;
  transition: transform .12s, box-shadow .12s;
  display: flex;
  flex-direction: column;
}
.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0,0,0,.1);
}
.card h2 { font-size: 17px; margin-bottom: 8px; color: #1a1a2e; }
.card p { font-size: 13px; color: #666; margin: 0; flex: 1; }
.card .tag {
  display: inline-block; margin-top: 12px;
  font-size: 11px; font-weight: 700; color: #ff6a00;
}
.section-title {
  font-size: 18px; font-weight: 700;
  color: #2d3748; margin: 24px 0 12px;
}
.panel {
  background: white; border-radius: 12px;
  padding: 20px; box-shadow: 0 2px 10px rgba(0,0,0,.06);
  border: 1px solid #eee; margin-bottom: 16px;
}
.panel h3 { font-size: 15px; margin-bottom: 10px; color: #1a1a2e; }
.panel ul { list-style: none; }
.panel li { padding: 6px 0; border-bottom: 1px solid #f0f0f0; font-size: 13px; }
.panel li:last-child { border-bottom: none; }
.meta { font-size: 12px; color: #888; margin-top: 8px; }
.vazio { color: #999; font-size: 13px; padding: 8px 0; }
.ext-link { font-size: 13px; margin-top: 16px; }

.card-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}

.card-head h2 {
  margin: 0;
  font-size: 17px;
  color: #1a1a2e;
  line-height: 1.1;
}

.card-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 12px;
  color: #fff;
  flex-shrink: 0;
  line-height: 1;
}

.card-icon-fundos { background: #0a7a3e; }
.card-icon-agenda { background: #2563eb; }
.card-icon-crilog { background: #1565c0; }
.card-icon-knsc11 { background: #b91c1c; }
.card-icon-crilog,
.card-icon-knsc11 {
  transform: translateY(-1px);
}

.card-cta {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid #f1f1f1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  font-weight: 700;
  color: #ff6a00;
}

.card-arrow { font-size: 16px; }
.card:hover .card-cta { color: #e65100; }

.destaques {
  margin-top: 26px;
  padding-top: 20px;
  border-top: 1px solid #eef0f3;
}

.destaques-title {
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: #ff6a00;
  margin-bottom: 12px;
}

.destaques-grid {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.destaque-pill {
  background: #fff;
  border: 1px solid #e8eaed;
  border-radius: 999px;
  padding: 10px 14px;
  text-decoration: none;
  color: #1a1a2e;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: border-color 0.12s, color 0.12s, transform 0.12s;
  display: inline-flex;
  align-items: center;
}

.destaque-pill:hover {
  border-color: #ff6a00;
  color: #ff6a00;
  transform: translateY(-1px);
}

.destaque-pill.ativo {
  border-color: #ff6a00;
  color: #ff6a00;
  transform: none;
}

/* Materiais (documentos) - bloco padronizado (CRI LOG x KNSC11) */
.cri-panel.hub-docs-panel,
.k11-panel.hub-docs-panel {
  margin-top: 18px;
  margin-bottom: 22px;
  background: #fff8f0;
  border-color: #ff6a00;
  box-shadow: 0 6px 20px rgba(255, 106, 0, .10);
}

.hub-docs-title {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .4px;
  color: #ff6a00;
  margin: 0 0 16px;
}

.hub-doc-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hub-doc-tab {
  display: inline-flex;
  flex-direction: column;
  gap: 4px;
  width: 220px;
  max-width: 100%;
  background: #fff3e8;
  border: 1px solid #ffd2a8;
  color: #ff6a00;
  text-decoration: none;
  padding: 12px 14px;
  border-radius: 10px;
  font-weight: 800;
  font-size: 14px;
}

.hub-doc-tab:hover { filter: brightness(0.98); }

.hub-doc-name {
  color: #ff6a00;
  font-weight: 900;
  font-size: 14px;
  line-height: 1.2;
}

.hub-doc-meta {
  color: #666;
  font-weight: 800;
  font-size: 12px;
  line-height: 1.3;
  min-height: 18px; /* garante altura consistente quando o KNSC nao tem meta */
}

.hub-doc-empty {
  color: #666;
  font-size: 14px;
  margin-top: 6px;
  line-height: 1.6;
}

@media (max-width: 720px) {
  .hub-doc-tab { width: 100%; }
}
