.calio-posts-tab {
  display: grid;
  gap: 20px;
}

.calio-posts-tab-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.calio-posts-tab-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 16px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 999px;
  background: #fff;
  color: #0f172a;
  font-weight: 700;
  cursor: pointer;
  transition: transform .2s ease, border-color .2s ease, background-color .2s ease, box-shadow .2s ease;
}

.calio-posts-tab-button.is-active,
.calio-posts-tab-button:hover,
.calio-posts-tab-button:focus-visible {
  border-color: rgba(37, 99, 235, 0.22);
  background: #eff6ff;
  box-shadow: 0 12px 24px rgba(37, 99, 235, 0.1);
  transform: translateY(-1px);
}

.calio-posts-tab.tab-skin-underline .calio-posts-tab-button {
  border: none;
  border-radius: 0;
  box-shadow: inset 0 -2px 0 0 transparent;
  background: transparent;
  padding-inline: 4px;
}

.calio-posts-tab.tab-skin-card .calio-posts-tab-button {
  min-height: 54px;
  border-radius: 18px;
  padding-inline: 18px;
}

.calio-posts-tab-label {
  display: inline-flex;
  align-items: center;
}

.calio-posts-tab-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  min-height: 24px;
  padding: 0 8px;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.08);
  color: #2563eb;
  font-size: 11px;
  font-weight: 700;
}

.calio-posts-tab-panel {
  display: none;
  border: 1px solid transparent;
}

.calio-posts-tab-panel.is-active {
  display: block;
}

.calio-posts-tab.panel-skin-soft .calio-posts-tab-panel {
  background: linear-gradient(-180deg, #fff, #f8fafc);
  border-color: rgba(148, 163, 184, 0.16);
  padding: 18px;
}

.calio-posts-tab.panel-skin-outline .calio-posts-tab-panel {
  border-color: rgba(148, 163, 184, 0.22);
  padding: 18px;
}

.calio-posts-tab-panel.is-entering {
  animation: calioPostsTabFade .22s ease;
}

.calio-posts-tab-grid {
  display: grid;
  gap: 20px;
}

.calio-posts-tab.cols-1 .calio-posts-tab-grid {
  grid-template-columns: minmax(0, 1fr);
}

.calio-posts-tab.cols-2 .calio-posts-tab-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.calio-posts-tab.cols-3 .calio-posts-tab-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.calio-posts-tab-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 22px;
  background: #fff;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.calio-posts-tab-card:hover,
.calio-posts-tab-card:focus-within {
  transform: translateY(-3px);
  border-color: rgba(37, 99, 235, 0.18);
  box-shadow: 0 22px 48px rgba(15, 23, 42, 0.12);
}

.calio-posts-tab-media {
  display: block;
  overflow: hidden;
  background: #e2e8f0;
  aspect-ratio: 4 / 3;
}

.calio-posts-tab-media img {
  width: 100%;
  height: 100%;
  display: block;
  -o-object-fit: cover;
     object-fit: cover;
}

.calio-posts-tab-content {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 12px;
  padding: 20px;
}

.calio-posts-tab.skin-minimal .calio-posts-tab-card {
  border-color: transparent;
  border-radius: 0;
  box-shadow: none;
}

.calio-posts-tab-meta {
  color: #64748b;
  font-size: 12px;
}

.calio-posts-tab-title {
  margin: 0;
  font-size: 1.2rem;
  line-height: 1.35;
}

.calio-posts-tab-title a {
  color: #0f172a;
  text-decoration: none;
}

.calio-posts-tab-excerpt {
  color: #475569;
  font-size: 14px;
  line-height: 1.7;
}

.calio-posts-tab-button-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  width: -moz-fit-content;
  width: fit-content;
  min-height: 40px;
  padding: 10px 16px;
  border-radius: 999px;
  background: #0f172a;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

.calio-posts-tab-button-link::after {
  content: '->';
}

.calio-posts-tab-empty {
  padding: 24px;
  border: 1px dashed rgba(148, 163, 184, 0.4);
  border-radius: 18px;
  color: #64748b;
  text-align: center;
}

@keyframes calioPostsTabFade {
  from {
    opacity: .35;
    transform: translateY(6px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1024px) {
  .calio-posts-tab.cols-3 .calio-posts-tab-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .calio-posts-tab.cols-2 .calio-posts-tab-grid,
  .calio-posts-tab.cols-3 .calio-posts-tab-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

