/* Knowledge Center — editorial magazine layout (distinct from Verticals) */

body.icem-knowledge-page [data-about-section] {
  scroll-margin-top: calc(var(--icem-chrome-offset, 7.5rem) + 1rem);
}

body.icem-knowledge-page .icem-about-hero {
  min-height: 46vh;
}

/* Overview — channel index */
.icem-kc-channels {
  display: grid;
  gap: 0;
  border-top: 1px solid rgba(43, 43, 43, 0.12);
  border-bottom: 1px solid rgba(43, 43, 43, 0.12);
}

@media (min-width: 900px) {
  .icem-kc-channels {
    grid-template-columns: repeat(3, 1fr);
  }
}

.icem-kc-channel {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  padding: 1.65rem 1.35rem 1.5rem;
  text-decoration: none;
  color: inherit;
  background: #fff;
  border-bottom: 1px solid rgba(43, 43, 43, 0.1);
  transition: background 0.25s ease, transform 0.25s ease;
}

@media (min-width: 900px) {
  .icem-kc-channel {
    border-bottom: none;
    border-right: 1px solid rgba(43, 43, 43, 0.1);
    min-height: 100%;
  }

  .icem-kc-channel:last-child {
    border-right: none;
  }
}

.icem-kc-channel:hover {
  background: #f7f4ef;
  color: inherit;
}

.icem-kc-channel-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.icem-kc-channel-idx {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: rgba(43, 43, 43, 0.35);
}

.icem-kc-channel i {
  font-size: 1.15rem;
  color: var(--icem-accent, #e68a2e);
}

.icem-kc-channel h3 {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #2b2b2b;
}

.icem-kc-channel p {
  margin: 0;
  flex: 1;
  font-size: 0.94rem;
  line-height: 1.6;
  color: #45423c;
}

.icem-kc-channel-go {
  margin-top: 0.35rem;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--icem-accent, #e68a2e);
}

/* Blogs — featured + stack */
.icem-kc-blogs {
  background: #fff;
}

.icem-kc-featured {
  display: grid;
  gap: 0;
  margin-bottom: 1.75rem;
  background: #1f1c19;
  color: #fff;
  overflow: hidden;
}

@media (min-width: 960px) {
  .icem-kc-featured {
    grid-template-columns: 1.15fr 0.85fr;
    min-height: 22rem;
  }
}

.icem-kc-featured-media {
  position: relative;
  min-height: 15rem;
  background:
    linear-gradient(180deg, rgba(20, 18, 14, 0.15), rgba(20, 18, 14, 0.45)),
    var(--kc-img) center/cover no-repeat;
}

@media (min-width: 960px) {
  .icem-kc-featured-media {
    min-height: 100%;
  }
}

.icem-kc-featured-body {
  padding: 1.6rem 1.4rem 1.7rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.75rem;
}

@media (min-width: 960px) {
  .icem-kc-featured-body {
    padding: 2.25rem 2rem;
  }
}

.icem-kc-tag {
  display: inline-flex;
  align-self: flex-start;
  padding: 0.28rem 0.65rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: var(--icem-accent, #e68a2e);
  color: #fff;
}

.icem-kc-featured-body h3 {
  margin: 0;
  font-size: clamp(1.35rem, 2.2vw, 1.85rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: #fff;
}

.icem-kc-featured-body p {
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.65;
  font-size: 0.98rem;
}

.icem-kc-byline {
  margin: 0;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
}

.icem-kc-blog-grid {
  display: grid;
  gap: 1.35rem;
}

@media (min-width: 768px) {
  .icem-kc-blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.icem-kc-blog-card {
  display: grid;
  gap: 0.95rem;
  background: transparent;
  transition: transform 0.3s ease;
}

.icem-kc-blog-card:hover {
  transform: translateY(-4px);
}

.icem-kc-blog-card-media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #2b2b2b;
}

.icem-kc-blog-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.45s ease;
}

.icem-kc-blog-card:hover .icem-kc-blog-card-media img {
  transform: scale(1.04);
}

.icem-kc-blog-card h3 {
  margin: 0 0 0.4rem;
  font-size: 1.12rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: #2b2b2b;
  line-height: 1.3;
}

.icem-kc-blog-card p {
  margin: 0 0 0.55rem;
  font-size: 0.92rem;
  line-height: 1.6;
  color: #45423c;
}

.icem-kc-meta {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(43, 43, 43, 0.5);
}

.icem-kc-meta span + span::before {
  content: "·";
  margin: 0 0.4rem;
  opacity: 0.6;
}

/* News — date-led list */
.icem-kc-news {
  background: #f3eee6;
}

.icem-kc-news-list {
  display: grid;
  gap: 0;
}

.icem-kc-news-item {
  display: grid;
  gap: 1.15rem;
  padding: 1.5rem 0;
  border-bottom: 1px solid rgba(43, 43, 43, 0.12);
  align-items: start;
}

.icem-kc-news-item:first-child {
  border-top: 1px solid rgba(43, 43, 43, 0.12);
}

@media (min-width: 800px) {
  .icem-kc-news-item {
    grid-template-columns: 7.5rem minmax(160px, 220px) 1fr;
    gap: 1.5rem;
    align-items: center;
  }
}

.icem-kc-news-date {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.icem-kc-news-date strong {
  font-size: 1.85rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--icem-accent, #e68a2e);
}

.icem-kc-news-date span {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(43, 43, 43, 0.55);
}

.icem-kc-news-thumb {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #2b2b2b;
}

.icem-kc-news-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.icem-kc-news-copy h3 {
  margin: 0 0 0.45rem;
  font-size: 1.12rem;
  font-weight: 700;
  color: #2b2b2b;
  letter-spacing: -0.015em;
}

.icem-kc-news-copy p {
  margin: 0;
  font-size: 0.94rem;
  line-height: 1.6;
  color: #45423c;
}

.icem-kc-news-copy .icem-kc-meta {
  margin-top: 0.55rem;
}

/* Gallery — empty slots only */
.icem-kc-gallery {
  background: #fff;
}

.icem-kc-gallery-grid {
  display: grid;
  gap: 0.9rem;
  grid-template-columns: repeat(2, 1fr);
}

@media (min-width: 768px) {
  .icem-kc-gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1100px) {
  .icem-kc-gallery-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.icem-kc-slot {
  position: relative;
  aspect-ratio: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 1rem;
  text-align: center;
  background:
    linear-gradient(145deg, #f7f4ef 0%, #efe8de 100%);
  border: 1.5px dashed rgba(43, 43, 43, 0.22);
  color: rgba(43, 43, 43, 0.55);
}

.icem-kc-slot.is-wide {
  grid-column: span 2;
  aspect-ratio: 2 / 1;
}

@media (max-width: 767.98px) {
  .icem-kc-slot.is-wide {
    grid-column: span 2;
    aspect-ratio: 16 / 10;
  }
}

.icem-kc-slot i {
  font-size: 1.55rem;
  color: rgba(230, 138, 46, 0.65);
}

.icem-kc-slot strong {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(43, 43, 43, 0.7);
}

.icem-kc-slot span {
  font-size: 0.78rem;
  line-height: 1.4;
  max-width: 12rem;
}

.icem-kc-slot-num {
  position: absolute;
  top: 0.65rem;
  left: 0.75rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: rgba(43, 43, 43, 0.28);
}

@media (max-width: 575.98px) {
  .icem-kc-featured-body {
    padding: 1.35rem 1.15rem 1.45rem;
  }

  .icem-kc-news-item {
    padding: 1.25rem 0;
  }
}
