.eaki-section {
  margin: 2rem 0;
}

.eaki-heading {
  margin: 0 0 1rem;
  font-size: 1.35rem;
  line-height: 1.2;
}

.eaki-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.eaki-card {
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04);
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.eaki-card:hover {
  border-color: rgba(0, 0, 0, 0.16);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.08);
}

.eaki-card-link {
  display: block;
  color: inherit;
  text-decoration: none;
  padding: 1rem;
}

.eaki-label {
  display: inline-block;
  margin-bottom: 0.75rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #7a4f00;
}

.eaki-thumb-wrap {
  margin-bottom: 0.75rem;
}

.eaki-thumb {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 10px;
}

.eaki-card-title {
  margin: 0 0 0.5rem;
  font-size: 1rem;
  line-height: 1.3;
}

.eaki-card-excerpt {
  margin: 0;
  color: rgba(0, 0, 0, 0.72);
  font-size: 0.94rem;
  line-height: 1.5;
}

/* Evergreen knowledge pages: hide date / author bylines from common themes. */
body.single-knowledge_block .entry-meta,
body.single-knowledge_block .entry-footer,
body.single-knowledge_block .posted-on,
body.single-knowledge_block .byline,
body.single-knowledge_block .post-meta,
body.single-knowledge_block .article-meta,
body.single-knowledge_block .meta-date,
body.single-knowledge_block .meta-author,
body.single-knowledge_block .post-date,
body.single-knowledge_block .post-author,
body.single-knowledge_block .author-name,
body.single-knowledge_block .blog-post-date,
body.single-knowledge_block .is-style-post-date,
body.single-knowledge_block .wp-block-post-date,
body.single-knowledge_block .wp-block-post-author,
body.single-knowledge_block .wp-block-post-author-name {
  display: none !important;
}

.eaki-knowledge-index .eaki-index-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0 0 1.25rem;
}

.eaki-index-filter {
  appearance: none;
  border: 1px solid rgba(0, 0, 0, 0.14);
  background: #fff;
  color: inherit;
  border-radius: 999px;
  padding: 0.4rem 0.9rem;
  font-size: 0.9rem;
  line-height: 1.2;
  cursor: pointer;
}

.eaki-index-filter:hover,
.eaki-index-filter:focus-visible {
  border-color: rgba(0, 0, 0, 0.35);
  outline: none;
}

.eaki-index-filter.is-active {
  border-color: #1d2327;
  background: #1d2327;
  color: #fff;
}

.eaki-index-item.is-hidden {
  display: none;
}

.eaki-index-empty {
  margin: 0.5rem 0 0;
  color: rgba(0, 0, 0, 0.65);
}
