﻿/* =========================
  Members Page Base
========================= */

.page-id-39 {
  --text-main: #222;
  --card-bg: #ffffff;
}

.page-id-39 a {
  color: var(--text-main);
  text-decoration: none;
}

/* =========================
  CATEGORY SECTION
========================= */

.kp-category {
  margin: 56px auto;
  padding: 32px 24px;
  border-radius: 24px;
}

/* =========================
  CATEGORY HEADER (Label Area)
========================= */

.kp-category-title {
  display: inline-block;
  padding: 10px 22px;
  border-radius: 999px;
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 32px;
  color: #222;
}

/* ---- Header Colors ---- */

.kp-category.owner .kp-category-title {
  background: #bfe8c9;
}

.kp-category.partner .kp-category-title {
  background: linear-gradient(90deg,#f6c1f0,#cbb7ff);
}

.kp-category.cast .kp-category-title {
  background: linear-gradient(90deg,#7ff0c5,#4fdba0);
}

.kp-category.art .kp-category-title {
  background: linear-gradient(90deg,#ffd39a,#ff9bbd);
}

.kp-category.singer .kp-category-title {
  background: linear-gradient(90deg,#9cc9ff,#7aa7ff);
}

.kp-category.community .kp-category-title {
  background: linear-gradient(90deg,#ffb703,#fb8500);
}

/* =========================
  CATEGORY BACKGROUND (Pastel)
========================= */

.kp-category.owner {
  background: linear-gradient(
    90deg,
    #9be7c4,
    #6ed3a3
  );
}

.kp-category.partner {
  background: linear-gradient(
    90deg,
    #e7c6ff,
    #cdb4ff
  );
}

.kp-category.cast {
  background: linear-gradient(
    90deg,
    #7fffd4,
    #5eead4
  );
}

.kp-category.art {
  background: linear-gradient(
    90deg,
    #f6a8ff,
    #ff9ecf,
    #ffd36a
  );
}

.kp-category.singer {
  background: linear-gradient(
    90deg,
    #4facfe,
    #00c6fb
  );
}

.kp-category.community {
  background: linear-gradient(
    90deg,
    #ffb703,
    #fb8500
  );
}

/* =========================
  GRID (Max 6 Members)
========================= */

.kp-members-grid {
  display: grid;
  grid-template-columns: repeat(6, 200px);
  justify-content: center;
  gap: 32px;
}

@media (max-width: 1200px) {
  .kp-members-grid {
    grid-template-columns: repeat(4, 200px);
  }
}

@media (max-width: 768px) {
  .kp-members-grid {
    grid-template-columns: repeat(2, 200px);
  }
}

/* =========================
  CARD (Round Avatar Card)
========================= */

.kp-member-card {
  background: var(--card-bg);
  border-radius: 999px;
  padding: 16px;
  box-shadow: 0 10px 28px rgba(0,0,0,.12);
  transition: transform .25s ease, box-shadow .25s ease;
  text-align: center;
}

.kp-member-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 40px rgba(0,0,0,.18);
}

/* =========================
  IMAGE
========================= */

.kp-member-card img {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  margin: 0 auto;
}

/* =========================
  NAME
========================= */

.kp-member-name {
  margin-top: 12px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;

  /* Keep name row height fixed */
  height: 1.2em;
  display: flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
}

/* =========================
  CATEGORY HEADER TEXT (WHITE)
========================= */

/* Force category header text to white */
.kp-category-title {
  color: #ffffff !important;
  text-shadow: 0 1px 3px rgba(0,0,0,0.25);
}

/* Keep icon text white as well */
.kp-category-title span,
.kp-category-title i {
  color: #ffffff;
}

.kp-member-card {
  background: #ffffff;
  box-shadow: 0 12px 30px rgba(0,0,0,0.15);
}

/* ===============================
   MEMBERS GRID (Responsive Layout)
================================ */

.kp-members-grid {
  display: grid;

  /* Auto-fit columns by member card width */
  grid-template-columns: repeat(auto-fit, 200px);

  /* Maximum 6 columns */
  max-width: calc(200px * 6 + 32px * 5);

  /* Center the full grid block */
  margin: 0 auto;

  /* Gap between cards */
  gap: 32px;

  /* Center each card in its cell */
  justify-content: center;
  justify-items: center;
}

/* ===============================
   MEMBER CARD
================================ */
/* Card width is fixed for consistent alignment */
.kp-member-card {
  width: 200px;
}

/* Avatar image size */
.kp-member-card img {
  width: 160px;
  height: 160px;
  object-fit: cover;
  border-radius: 50%;
}

/* Name label */
.kp-member-name {
  margin-top: 12px;
  font-weight: 600;
}

.kp-category.owner .kp-members-grid {
  grid-template-columns: 200px;
}

/* =========================
   Center category section content
========================= */

.kp-category {
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Title bar uses full row width */
.kp-category-title {
  width: 100%;
  max-width: 1200px;
}

@media (max-width: 1400px) {
  .kp-members-grid {
    grid-template-columns: repeat(4, 200px);
  }
}

@media (max-width: 1024px) {
  .kp-members-grid {
    grid-template-columns: repeat(3, 200px);
  }
}

@media (max-width: 768px) {
  .kp-members-grid {
    grid-template-columns: repeat(2, 200px);
  }
}

@media (max-width: 480px) {
  .kp-members-grid {
    grid-template-columns: 1fr;
  }

  .kp-member-card {
    width: 200px;
  }
}

@media (max-width: 600px) {
  .kp-members-grid {
    grid-template-columns: repeat(2, 200px);
  }
}

/* =========================
  MEMBER DETAIL (PASTEL)
  Applies only to single post pages in member categories.
========================= */

body.single-post.category-owner,
body.single-post.category-partner,
body.single-post.category-cast,
body.single-post.category-art,
body.single-post.category-singer,
body.single-post.category-community {
  background: #f4f6f8;
}

body.single-post.category-owner #primary,
body.single-post.category-partner #primary,
body.single-post.category-cast #primary,
body.single-post.category-art #primary,
body.single-post.category-singer #primary,
body.single-post.category-community #primary {
  max-width: 1280px;
  margin: 0 auto;
}

body.single-post.category-owner .entry-content,
body.single-post.category-partner .entry-content,
body.single-post.category-cast .entry-content,
body.single-post.category-art .entry-content,
body.single-post.category-singer .entry-content,
body.single-post.category-community .entry-content {
  display: grid;
  gap: 20px;
}

body.single-post.category-owner .entry-content > *,
body.single-post.category-partner .entry-content > *,
body.single-post.category-cast .entry-content > *,
body.single-post.category-art .entry-content > *,
body.single-post.category-singer .entry-content > *,
body.single-post.category-community .entry-content > * {
  background: #ffffff;
  border-radius: 18px;
  border: 1px solid rgba(78, 204, 163, 0.25);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  padding: 14px;
}

body.single-post.category-owner .entry-content h2,
body.single-post.category-owner .entry-content h3,
body.single-post.category-partner .entry-content h2,
body.single-post.category-partner .entry-content h3,
body.single-post.category-cast .entry-content h2,
body.single-post.category-cast .entry-content h3,
body.single-post.category-art .entry-content h2,
body.single-post.category-art .entry-content h3,
body.single-post.category-singer .entry-content h2,
body.single-post.category-singer .entry-content h3,
body.single-post.category-community .entry-content h2,
body.single-post.category-community .entry-content h3 {
  margin: 0 0 14px;
  padding: 10px 16px;
  border-radius: 999px;
  color: #1f2d2a;
  font-weight: 700;
  background: linear-gradient(90deg, #bdf1d2, #a3e4ff);
}

body.single-post.category-owner .entry-content a,
body.single-post.category-partner .entry-content a,
body.single-post.category-cast .entry-content a,
body.single-post.category-art .entry-content a,
body.single-post.category-singer .entry-content a,
body.single-post.category-community .entry-content a {
  color: #167f69;
}

body.single-post.category-owner .wp-block-button__link,
body.single-post.category-partner .wp-block-button__link,
body.single-post.category-cast .wp-block-button__link,
body.single-post.category-art .wp-block-button__link,
body.single-post.category-singer .wp-block-button__link,
body.single-post.category-community .wp-block-button__link {
  background: linear-gradient(90deg, #c9b6ff, #8dd7c2);
  border-radius: 999px;
  color: #fff;
  border: none;
}

body.single-post.category-owner .wp-block-embed,
body.single-post.category-partner .wp-block-embed,
body.single-post.category-cast .wp-block-embed,
body.single-post.category-art .wp-block-embed,
body.single-post.category-singer .wp-block-embed,
body.single-post.category-community .wp-block-embed {
  overflow: hidden;
  border-radius: 14px;
}

@media (max-width: 768px) {
  body.single-post.category-owner .entry-content > *,
  body.single-post.category-partner .entry-content > *,
  body.single-post.category-cast .entry-content > *,
  body.single-post.category-art .entry-content > *,
  body.single-post.category-singer .entry-content > *,
  body.single-post.category-community .entry-content > * {
    border-radius: 14px;
    padding: 12px;
  }
}

/* =========================
  MEMBER DETAIL (PASTEL V2)
  Closer to member-list visual language.
========================= */

body.single-post.category-owner,
body.single-post.category-partner,
body.single-post.category-cast,
body.single-post.category-art,
body.single-post.category-singer,
body.single-post.category-community {
  --kp-detail-bg: #f1f3f5;
  --kp-detail-panel: #ffffff;
  --kp-detail-border: rgba(114, 214, 183, 0.35);
  --kp-detail-shadow: 0 10px 28px rgba(0, 0, 0, 0.08);
  --kp-detail-head-a: #c9b7ff;
  --kp-detail-head-b: #74d9bb;
  --kp-detail-head-text: #ffffff;
  --kp-detail-link: #177d68;
  background: var(--kp-detail-bg);
}

body.single-post.category-partner {
  --kp-detail-head-a: #d8b9ff;
  --kp-detail-head-b: #aebeff;
}

body.single-post.category-cast {
  --kp-detail-head-a: #84efcc;
  --kp-detail-head-b: #4ddfb7;
}

body.single-post.category-art {
  --kp-detail-head-a: #ffc3e1;
  --kp-detail-head-b: #ffc975;
}

body.single-post.category-singer {
  --kp-detail-head-a: #8cc3ff;
  --kp-detail-head-b: #57a9ff;
}

body.single-post.category-community {
  --kp-detail-head-a: #ffcd63;
  --kp-detail-head-b: #ffad5b;
}

body.single-post.category-owner .site-main,
body.single-post.category-partner .site-main,
body.single-post.category-cast .site-main,
body.single-post.category-art .site-main,
body.single-post.category-singer .site-main,
body.single-post.category-community .site-main {
  max-width: 1320px;
  margin: 0 auto;
}

body.single-post.category-owner .entry-title,
body.single-post.category-partner .entry-title,
body.single-post.category-cast .entry-title,
body.single-post.category-art .entry-title,
body.single-post.category-singer .entry-title,
body.single-post.category-community .entry-title {
  text-align: center;
  letter-spacing: 0.04em;
  margin-bottom: 22px;
}

body.single-post.category-owner .entry-content,
body.single-post.category-partner .entry-content,
body.single-post.category-cast .entry-content,
body.single-post.category-art .entry-content,
body.single-post.category-singer .entry-content,
body.single-post.category-community .entry-content {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

body.single-post.category-owner .entry-content > .wp-block-group,
body.single-post.category-owner .entry-content > .wp-block-columns,
body.single-post.category-owner .entry-content > .wp-block-media-text,
body.single-post.category-owner .entry-content > .wp-block-embed,
body.single-post.category-owner .entry-content > .wp-block-table,
body.single-post.category-owner .entry-content > .wp-block-image,
body.single-post.category-owner .entry-content > .wp-block-cover,
body.single-post.category-owner .entry-content > table,
body.single-post.category-owner .entry-content > ul,
body.single-post.category-owner .entry-content > ol,
body.single-post.category-owner .entry-content > iframe,
body.single-post.category-partner .entry-content > .wp-block-group,
body.single-post.category-partner .entry-content > .wp-block-columns,
body.single-post.category-partner .entry-content > .wp-block-media-text,
body.single-post.category-partner .entry-content > .wp-block-embed,
body.single-post.category-partner .entry-content > .wp-block-table,
body.single-post.category-partner .entry-content > .wp-block-image,
body.single-post.category-partner .entry-content > .wp-block-cover,
body.single-post.category-partner .entry-content > table,
body.single-post.category-partner .entry-content > ul,
body.single-post.category-partner .entry-content > ol,
body.single-post.category-partner .entry-content > iframe,
body.single-post.category-cast .entry-content > .wp-block-group,
body.single-post.category-cast .entry-content > .wp-block-columns,
body.single-post.category-cast .entry-content > .wp-block-media-text,
body.single-post.category-cast .entry-content > .wp-block-embed,
body.single-post.category-cast .entry-content > .wp-block-table,
body.single-post.category-cast .entry-content > .wp-block-image,
body.single-post.category-cast .entry-content > .wp-block-cover,
body.single-post.category-cast .entry-content > table,
body.single-post.category-cast .entry-content > ul,
body.single-post.category-cast .entry-content > ol,
body.single-post.category-cast .entry-content > iframe,
body.single-post.category-art .entry-content > .wp-block-group,
body.single-post.category-art .entry-content > .wp-block-columns,
body.single-post.category-art .entry-content > .wp-block-media-text,
body.single-post.category-art .entry-content > .wp-block-embed,
body.single-post.category-art .entry-content > .wp-block-table,
body.single-post.category-art .entry-content > .wp-block-image,
body.single-post.category-art .entry-content > .wp-block-cover,
body.single-post.category-art .entry-content > table,
body.single-post.category-art .entry-content > ul,
body.single-post.category-art .entry-content > ol,
body.single-post.category-art .entry-content > iframe,
body.single-post.category-singer .entry-content > .wp-block-group,
body.single-post.category-singer .entry-content > .wp-block-columns,
body.single-post.category-singer .entry-content > .wp-block-media-text,
body.single-post.category-singer .entry-content > .wp-block-embed,
body.single-post.category-singer .entry-content > .wp-block-table,
body.single-post.category-singer .entry-content > .wp-block-image,
body.single-post.category-singer .entry-content > .wp-block-cover,
body.single-post.category-singer .entry-content > table,
body.single-post.category-singer .entry-content > ul,
body.single-post.category-singer .entry-content > ol,
body.single-post.category-singer .entry-content > iframe,
body.single-post.category-community .entry-content > .wp-block-group,
body.single-post.category-community .entry-content > .wp-block-columns,
body.single-post.category-community .entry-content > .wp-block-media-text,
body.single-post.category-community .entry-content > .wp-block-embed,
body.single-post.category-community .entry-content > .wp-block-table,
body.single-post.category-community .entry-content > .wp-block-image,
body.single-post.category-community .entry-content > .wp-block-cover,
body.single-post.category-community .entry-content > table,
body.single-post.category-community .entry-content > ul,
body.single-post.category-community .entry-content > ol,
body.single-post.category-community .entry-content > iframe {
  background: var(--kp-detail-panel);
  border: 1px solid var(--kp-detail-border);
  border-radius: 18px;
  box-shadow: var(--kp-detail-shadow);
  padding: 14px;
}

body.single-post.category-owner .entry-content > .wp-block-columns:first-child,
body.single-post.category-partner .entry-content > .wp-block-columns:first-child,
body.single-post.category-cast .entry-content > .wp-block-columns:first-child,
body.single-post.category-art .entry-content > .wp-block-columns:first-child,
body.single-post.category-singer .entry-content > .wp-block-columns:first-child,
body.single-post.category-community .entry-content > .wp-block-columns:first-child {
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 0;
  gap: 16px;
}

body.single-post.category-owner .entry-content > .wp-block-columns:first-child > .wp-block-column,
body.single-post.category-partner .entry-content > .wp-block-columns:first-child > .wp-block-column,
body.single-post.category-cast .entry-content > .wp-block-columns:first-child > .wp-block-column,
body.single-post.category-art .entry-content > .wp-block-columns:first-child > .wp-block-column,
body.single-post.category-singer .entry-content > .wp-block-columns:first-child > .wp-block-column,
body.single-post.category-community .entry-content > .wp-block-columns:first-child > .wp-block-column {
  background: var(--kp-detail-panel);
  border: 1px solid var(--kp-detail-border);
  border-radius: 18px;
  box-shadow: var(--kp-detail-shadow);
  padding: 12px;
}

body.single-post.category-owner .entry-content > .wp-block-columns:first-child img,
body.single-post.category-partner .entry-content > .wp-block-columns:first-child img,
body.single-post.category-cast .entry-content > .wp-block-columns:first-child img,
body.single-post.category-art .entry-content > .wp-block-columns:first-child img,
body.single-post.category-singer .entry-content > .wp-block-columns:first-child img,
body.single-post.category-community .entry-content > .wp-block-columns:first-child img {
  border-radius: 14px;
}

body.single-post.category-owner .entry-content h2,
body.single-post.category-owner .entry-content h3,
body.single-post.category-partner .entry-content h2,
body.single-post.category-partner .entry-content h3,
body.single-post.category-cast .entry-content h2,
body.single-post.category-cast .entry-content h3,
body.single-post.category-art .entry-content h2,
body.single-post.category-art .entry-content h3,
body.single-post.category-singer .entry-content h2,
body.single-post.category-singer .entry-content h3,
body.single-post.category-community .entry-content h2,
body.single-post.category-community .entry-content h3 {
  margin: 0 0 14px;
  padding: 11px 16px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--kp-detail-head-a), var(--kp-detail-head-b));
  color: var(--kp-detail-head-text);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.18);
  font-weight: 700;
  line-height: 1.25;
}

body.single-post.category-owner .entry-content a,
body.single-post.category-partner .entry-content a,
body.single-post.category-cast .entry-content a,
body.single-post.category-art .entry-content a,
body.single-post.category-singer .entry-content a,
body.single-post.category-community .entry-content a {
  color: var(--kp-detail-link);
}

body.single-post.category-owner .wp-block-embed iframe,
body.single-post.category-partner .wp-block-embed iframe,
body.single-post.category-cast .wp-block-embed iframe,
body.single-post.category-art .wp-block-embed iframe,
body.single-post.category-singer .wp-block-embed iframe,
body.single-post.category-community .wp-block-embed iframe {
  border-radius: 12px;
  overflow: hidden;
}

body.single-post.category-owner .wp-block-button__link,
body.single-post.category-partner .wp-block-button__link,
body.single-post.category-cast .wp-block-button__link,
body.single-post.category-art .wp-block-button__link,
body.single-post.category-singer .wp-block-button__link,
body.single-post.category-community .wp-block-button__link {
  border-radius: 999px;
  border: 0;
  color: #fff;
  font-weight: 700;
  background: linear-gradient(90deg, #9e7ee7, #61ceb1);
  box-shadow: 0 8px 20px rgba(96, 115, 190, 0.26);
}

body.single-post.category-owner .wp-block-table table,
body.single-post.category-partner .wp-block-table table,
body.single-post.category-cast .wp-block-table table,
body.single-post.category-art .wp-block-table table,
body.single-post.category-singer .wp-block-table table,
body.single-post.category-community .wp-block-table table {
  border-collapse: separate;
  border-spacing: 0;
  width: 100%;
  border: 1px solid rgba(102, 200, 169, 0.35);
  border-radius: 12px;
  overflow: hidden;
}

body.single-post.category-owner .wp-block-table td,
body.single-post.category-owner .wp-block-table th,
body.single-post.category-partner .wp-block-table td,
body.single-post.category-partner .wp-block-table th,
body.single-post.category-cast .wp-block-table td,
body.single-post.category-cast .wp-block-table th,
body.single-post.category-art .wp-block-table td,
body.single-post.category-art .wp-block-table th,
body.single-post.category-singer .wp-block-table td,
body.single-post.category-singer .wp-block-table th,
body.single-post.category-community .wp-block-table td,
body.single-post.category-community .wp-block-table th {
  border-color: rgba(102, 200, 169, 0.2);
}

@media (max-width: 960px) {
  body.single-post.category-owner .entry-content,
  body.single-post.category-partner .entry-content,
  body.single-post.category-cast .entry-content,
  body.single-post.category-art .entry-content,
  body.single-post.category-singer .entry-content,
  body.single-post.category-community .entry-content {
    gap: 16px;
  }

  body.single-post.category-owner .entry-content > .wp-block-group,
  body.single-post.category-owner .entry-content > .wp-block-columns,
  body.single-post.category-owner .entry-content > .wp-block-media-text,
  body.single-post.category-owner .entry-content > .wp-block-embed,
  body.single-post.category-owner .entry-content > .wp-block-table,
  body.single-post.category-owner .entry-content > .wp-block-image,
  body.single-post.category-owner .entry-content > .wp-block-cover,
  body.single-post.category-partner .entry-content > .wp-block-group,
  body.single-post.category-partner .entry-content > .wp-block-columns,
  body.single-post.category-partner .entry-content > .wp-block-media-text,
  body.single-post.category-partner .entry-content > .wp-block-embed,
  body.single-post.category-partner .entry-content > .wp-block-table,
  body.single-post.category-partner .entry-content > .wp-block-image,
  body.single-post.category-partner .entry-content > .wp-block-cover,
  body.single-post.category-cast .entry-content > .wp-block-group,
  body.single-post.category-cast .entry-content > .wp-block-columns,
  body.single-post.category-cast .entry-content > .wp-block-media-text,
  body.single-post.category-cast .entry-content > .wp-block-embed,
  body.single-post.category-cast .entry-content > .wp-block-table,
  body.single-post.category-cast .entry-content > .wp-block-image,
  body.single-post.category-cast .entry-content > .wp-block-cover,
  body.single-post.category-art .entry-content > .wp-block-group,
  body.single-post.category-art .entry-content > .wp-block-columns,
  body.single-post.category-art .entry-content > .wp-block-media-text,
  body.single-post.category-art .entry-content > .wp-block-embed,
  body.single-post.category-art .entry-content > .wp-block-table,
  body.single-post.category-art .entry-content > .wp-block-image,
  body.single-post.category-art .entry-content > .wp-block-cover,
  body.single-post.category-singer .entry-content > .wp-block-group,
  body.single-post.category-singer .entry-content > .wp-block-columns,
  body.single-post.category-singer .entry-content > .wp-block-media-text,
  body.single-post.category-singer .entry-content > .wp-block-embed,
  body.single-post.category-singer .entry-content > .wp-block-table,
  body.single-post.category-singer .entry-content > .wp-block-image,
  body.single-post.category-singer .entry-content > .wp-block-cover,
  body.single-post.category-community .entry-content > .wp-block-group,
  body.single-post.category-community .entry-content > .wp-block-columns,
  body.single-post.category-community .entry-content > .wp-block-media-text,
  body.single-post.category-community .entry-content > .wp-block-embed,
  body.single-post.category-community .entry-content > .wp-block-table,
  body.single-post.category-community .entry-content > .wp-block-image,
  body.single-post.category-community .entry-content > .wp-block-cover {
    border-radius: 14px;
    padding: 12px;
  }
}

/* =========================
  MEMBER DETAIL (PASTEL V3)
  Fine tune colors/layout closer to reference.
========================= */

body.single-post.category-owner,
body.single-post.category-partner,
body.single-post.category-cast,
body.single-post.category-art,
body.single-post.category-singer,
body.single-post.category-community {
  --kp-detail-bg: #eceef1;
  --kp-detail-panel: #ffffff;
  --kp-detail-border: rgba(146, 217, 196, 0.5);
  --kp-detail-shadow: 0 8px 22px rgba(30, 50, 70, 0.08);
  --kp-detail-head-a: #bfa8f2;
  --kp-detail-head-b: #79d8be;
  --kp-detail-link: #176f5d;
}

body.single-post.category-owner .entry-content > .wp-block-columns:first-child,
body.single-post.category-partner .entry-content > .wp-block-columns:first-child,
body.single-post.category-cast .entry-content > .wp-block-columns:first-child,
body.single-post.category-art .entry-content > .wp-block-columns:first-child,
body.single-post.category-singer .entry-content > .wp-block-columns:first-child,
body.single-post.category-community .entry-content > .wp-block-columns:first-child {
  display: grid;
  grid-template-columns: 1fr 1.2fr 1fr;
  align-items: stretch;
}

body.single-post.category-owner .entry-content > .wp-block-columns:first-child > .wp-block-column:nth-child(1),
body.single-post.category-partner .entry-content > .wp-block-columns:first-child > .wp-block-column:nth-child(1),
body.single-post.category-cast .entry-content > .wp-block-columns:first-child > .wp-block-column:nth-child(1),
body.single-post.category-art .entry-content > .wp-block-columns:first-child > .wp-block-column:nth-child(1),
body.single-post.category-singer .entry-content > .wp-block-columns:first-child > .wp-block-column:nth-child(1),
body.single-post.category-community .entry-content > .wp-block-columns:first-child > .wp-block-column:nth-child(1) {
  background: linear-gradient(180deg, #d8f4e7, #cbeede);
}

body.single-post.category-owner .entry-content > .wp-block-columns:first-child > .wp-block-column:nth-child(2),
body.single-post.category-partner .entry-content > .wp-block-columns:first-child > .wp-block-column:nth-child(2),
body.single-post.category-cast .entry-content > .wp-block-columns:first-child > .wp-block-column:nth-child(2),
body.single-post.category-art .entry-content > .wp-block-columns:first-child > .wp-block-column:nth-child(2),
body.single-post.category-singer .entry-content > .wp-block-columns:first-child > .wp-block-column:nth-child(2),
body.single-post.category-community .entry-content > .wp-block-columns:first-child > .wp-block-column:nth-child(2) {
  background: #cfeee7;
}

body.single-post.category-owner .entry-content > .wp-block-columns:first-child > .wp-block-column:nth-child(3),
body.single-post.category-partner .entry-content > .wp-block-columns:first-child > .wp-block-column:nth-child(3),
body.single-post.category-cast .entry-content > .wp-block-columns:first-child > .wp-block-column:nth-child(3),
body.single-post.category-art .entry-content > .wp-block-columns:first-child > .wp-block-column:nth-child(3),
body.single-post.category-singer .entry-content > .wp-block-columns:first-child > .wp-block-column:nth-child(3),
body.single-post.category-community .entry-content > .wp-block-columns:first-child > .wp-block-column:nth-child(3) {
  background: #d8efc7;
}

body.single-post.category-owner .entry-content h2:nth-of-type(odd),
body.single-post.category-owner .entry-content h3:nth-of-type(odd),
body.single-post.category-partner .entry-content h2:nth-of-type(odd),
body.single-post.category-partner .entry-content h3:nth-of-type(odd),
body.single-post.category-cast .entry-content h2:nth-of-type(odd),
body.single-post.category-cast .entry-content h3:nth-of-type(odd),
body.single-post.category-art .entry-content h2:nth-of-type(odd),
body.single-post.category-art .entry-content h3:nth-of-type(odd),
body.single-post.category-singer .entry-content h2:nth-of-type(odd),
body.single-post.category-singer .entry-content h3:nth-of-type(odd),
body.single-post.category-community .entry-content h2:nth-of-type(odd),
body.single-post.category-community .entry-content h3:nth-of-type(odd) {
  background: linear-gradient(90deg, #a774d7, #8f8ded);
}

body.single-post.category-owner .entry-content h2:nth-of-type(even),
body.single-post.category-owner .entry-content h3:nth-of-type(even),
body.single-post.category-partner .entry-content h2:nth-of-type(even),
body.single-post.category-partner .entry-content h3:nth-of-type(even),
body.single-post.category-cast .entry-content h2:nth-of-type(even),
body.single-post.category-cast .entry-content h3:nth-of-type(even),
body.single-post.category-art .entry-content h2:nth-of-type(even),
body.single-post.category-art .entry-content h3:nth-of-type(even),
body.single-post.category-singer .entry-content h2:nth-of-type(even),
body.single-post.category-singer .entry-content h3:nth-of-type(even),
body.single-post.category-community .entry-content h2:nth-of-type(even),
body.single-post.category-community .entry-content h3:nth-of-type(even) {
  background: linear-gradient(90deg, #2ec197, #65d6ba);
}

body.single-post.category-owner .wp-block-button__link,
body.single-post.category-partner .wp-block-button__link,
body.single-post.category-cast .wp-block-button__link,
body.single-post.category-art .wp-block-button__link,
body.single-post.category-singer .wp-block-button__link,
body.single-post.category-community .wp-block-button__link {
  background: linear-gradient(90deg, #8554bf, #6f72da);
}

@media (max-width: 960px) {
  body.single-post.category-owner .entry-content > .wp-block-columns:first-child,
  body.single-post.category-partner .entry-content > .wp-block-columns:first-child,
  body.single-post.category-cast .entry-content > .wp-block-columns:first-child,
  body.single-post.category-art .entry-content > .wp-block-columns:first-child,
  body.single-post.category-singer .entry-content > .wp-block-columns:first-child,
  body.single-post.category-community .entry-content > .wp-block-columns:first-child {
    display: flex;
    flex-direction: column;
  }
}


/* =========================
  MEMBER DETAIL (SIMPLE V4)
  Readability-first override for member single pages.
========================= */

body.single-post.category-owner,
body.single-post.category-partner,
body.single-post.category-cast,
body.single-post.category-art,
body.single-post.category-singer,
body.single-post.category-community {
  --kp-simple-bg: #f2f4f7;
  --kp-simple-card: #ffffff;
  --kp-simple-border: #dde5eb;
  --kp-simple-shadow: 0 4px 14px rgba(15, 23, 42, 0.06);
  --kp-simple-head-a: #b8a6ea;
  --kp-simple-head-b: #77d8bd;
  --kp-simple-text: #1f2937;
  --kp-simple-link: #176f5d;
  background: var(--kp-simple-bg);
  color: var(--kp-simple-text);
}

body.single-post.category-owner #secondary,
body.single-post.category-partner #secondary,
body.single-post.category-cast #secondary,
body.single-post.category-art #secondary,
body.single-post.category-singer #secondary,
body.single-post.category-community #secondary,
body.single-post.category-owner .widget-area,
body.single-post.category-partner .widget-area,
body.single-post.category-cast .widget-area,
body.single-post.category-art .widget-area,
body.single-post.category-singer .widget-area,
body.single-post.category-community .widget-area {
  display: none;
}

body.single-post.category-owner #primary,
body.single-post.category-partner #primary,
body.single-post.category-cast #primary,
body.single-post.category-art #primary,
body.single-post.category-singer #primary,
body.single-post.category-community #primary,
body.single-post.category-owner .content-area,
body.single-post.category-partner .content-area,
body.single-post.category-cast .content-area,
body.single-post.category-art .content-area,
body.single-post.category-singer .content-area,
body.single-post.category-community .content-area,
body.single-post.category-owner .site-main,
body.single-post.category-partner .site-main,
body.single-post.category-cast .site-main,
body.single-post.category-art .site-main,
body.single-post.category-singer .site-main,
body.single-post.category-community .site-main {
  width: 100%;
  max-width: 1120px;
  margin-left: auto;
  margin-right: auto;
  float: none;
}

body.single-post.category-owner .entry-content,
body.single-post.category-partner .entry-content,
body.single-post.category-cast .entry-content,
body.single-post.category-art .entry-content,
body.single-post.category-singer .entry-content,
body.single-post.category-community .entry-content {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

body.single-post.category-owner .entry-content > .wp-block-group,
body.single-post.category-owner .entry-content > .wp-block-columns,
body.single-post.category-owner .entry-content > .wp-block-media-text,
body.single-post.category-owner .entry-content > .wp-block-embed,
body.single-post.category-owner .entry-content > .wp-block-table,
body.single-post.category-owner .entry-content > .wp-block-image,
body.single-post.category-owner .entry-content > .wp-block-cover,
body.single-post.category-owner .entry-content > table,
body.single-post.category-owner .entry-content > ul,
body.single-post.category-owner .entry-content > ol,
body.single-post.category-owner .entry-content > iframe,
body.single-post.category-partner .entry-content > .wp-block-group,
body.single-post.category-partner .entry-content > .wp-block-columns,
body.single-post.category-partner .entry-content > .wp-block-media-text,
body.single-post.category-partner .entry-content > .wp-block-embed,
body.single-post.category-partner .entry-content > .wp-block-table,
body.single-post.category-partner .entry-content > .wp-block-image,
body.single-post.category-partner .entry-content > .wp-block-cover,
body.single-post.category-partner .entry-content > table,
body.single-post.category-partner .entry-content > ul,
body.single-post.category-partner .entry-content > ol,
body.single-post.category-partner .entry-content > iframe,
body.single-post.category-cast .entry-content > .wp-block-group,
body.single-post.category-cast .entry-content > .wp-block-columns,
body.single-post.category-cast .entry-content > .wp-block-media-text,
body.single-post.category-cast .entry-content > .wp-block-embed,
body.single-post.category-cast .entry-content > .wp-block-table,
body.single-post.category-cast .entry-content > .wp-block-image,
body.single-post.category-cast .entry-content > .wp-block-cover,
body.single-post.category-cast .entry-content > table,
body.single-post.category-cast .entry-content > ul,
body.single-post.category-cast .entry-content > ol,
body.single-post.category-cast .entry-content > iframe,
body.single-post.category-art .entry-content > .wp-block-group,
body.single-post.category-art .entry-content > .wp-block-columns,
body.single-post.category-art .entry-content > .wp-block-media-text,
body.single-post.category-art .entry-content > .wp-block-embed,
body.single-post.category-art .entry-content > .wp-block-table,
body.single-post.category-art .entry-content > .wp-block-image,
body.single-post.category-art .entry-content > .wp-block-cover,
body.single-post.category-art .entry-content > table,
body.single-post.category-art .entry-content > ul,
body.single-post.category-art .entry-content > ol,
body.single-post.category-art .entry-content > iframe,
body.single-post.category-singer .entry-content > .wp-block-group,
body.single-post.category-singer .entry-content > .wp-block-columns,
body.single-post.category-singer .entry-content > .wp-block-media-text,
body.single-post.category-singer .entry-content > .wp-block-embed,
body.single-post.category-singer .entry-content > .wp-block-table,
body.single-post.category-singer .entry-content > .wp-block-image,
body.single-post.category-singer .entry-content > .wp-block-cover,
body.single-post.category-singer .entry-content > table,
body.single-post.category-singer .entry-content > ul,
body.single-post.category-singer .entry-content > ol,
body.single-post.category-singer .entry-content > iframe,
body.single-post.category-community .entry-content > .wp-block-group,
body.single-post.category-community .entry-content > .wp-block-columns,
body.single-post.category-community .entry-content > .wp-block-media-text,
body.single-post.category-community .entry-content > .wp-block-embed,
body.single-post.category-community .entry-content > .wp-block-table,
body.single-post.category-community .entry-content > .wp-block-image,
body.single-post.category-community .entry-content > .wp-block-cover,
body.single-post.category-community .entry-content > table,
body.single-post.category-community .entry-content > ul,
body.single-post.category-community .entry-content > ol,
body.single-post.category-community .entry-content > iframe {
  background: var(--kp-simple-card);
  border: 1px solid var(--kp-simple-border);
  border-radius: 12px;
  box-shadow: var(--kp-simple-shadow);
  padding: 14px;
}

body.single-post.category-owner .entry-content > .wp-block-columns:first-child,
body.single-post.category-partner .entry-content > .wp-block-columns:first-child,
body.single-post.category-cast .entry-content > .wp-block-columns:first-child,
body.single-post.category-art .entry-content > .wp-block-columns:first-child,
body.single-post.category-singer .entry-content > .wp-block-columns:first-child,
body.single-post.category-community .entry-content > .wp-block-columns:first-child {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) minmax(320px, 1.3fr) minmax(240px, 1fr);
  gap: 14px;
  background: transparent;
  border: 0;
  box-shadow: none;
  padding: 0;
}

body.single-post.category-owner .entry-content > .wp-block-columns:first-child > .wp-block-column,
body.single-post.category-partner .entry-content > .wp-block-columns:first-child > .wp-block-column,
body.single-post.category-cast .entry-content > .wp-block-columns:first-child > .wp-block-column,
body.single-post.category-art .entry-content > .wp-block-columns:first-child > .wp-block-column,
body.single-post.category-singer .entry-content > .wp-block-columns:first-child > .wp-block-column,
body.single-post.category-community .entry-content > .wp-block-columns:first-child > .wp-block-column {
  background: var(--kp-simple-card);
  border: 1px solid var(--kp-simple-border);
  border-radius: 12px;
  box-shadow: var(--kp-simple-shadow);
  padding: 12px;
}

body.single-post.category-owner .entry-content > .wp-block-columns:first-child > .wp-block-column:nth-child(1),
body.single-post.category-owner .entry-content > .wp-block-columns:first-child > .wp-block-column:nth-child(2),
body.single-post.category-owner .entry-content > .wp-block-columns:first-child > .wp-block-column:nth-child(3),
body.single-post.category-partner .entry-content > .wp-block-columns:first-child > .wp-block-column:nth-child(1),
body.single-post.category-partner .entry-content > .wp-block-columns:first-child > .wp-block-column:nth-child(2),
body.single-post.category-partner .entry-content > .wp-block-columns:first-child > .wp-block-column:nth-child(3),
body.single-post.category-cast .entry-content > .wp-block-columns:first-child > .wp-block-column:nth-child(1),
body.single-post.category-cast .entry-content > .wp-block-columns:first-child > .wp-block-column:nth-child(2),
body.single-post.category-cast .entry-content > .wp-block-columns:first-child > .wp-block-column:nth-child(3),
body.single-post.category-art .entry-content > .wp-block-columns:first-child > .wp-block-column:nth-child(1),
body.single-post.category-art .entry-content > .wp-block-columns:first-child > .wp-block-column:nth-child(2),
body.single-post.category-art .entry-content > .wp-block-columns:first-child > .wp-block-column:nth-child(3),
body.single-post.category-singer .entry-content > .wp-block-columns:first-child > .wp-block-column:nth-child(1),
body.single-post.category-singer .entry-content > .wp-block-columns:first-child > .wp-block-column:nth-child(2),
body.single-post.category-singer .entry-content > .wp-block-columns:first-child > .wp-block-column:nth-child(3),
body.single-post.category-community .entry-content > .wp-block-columns:first-child > .wp-block-column:nth-child(1),
body.single-post.category-community .entry-content > .wp-block-columns:first-child > .wp-block-column:nth-child(2),
body.single-post.category-community .entry-content > .wp-block-columns:first-child > .wp-block-column:nth-child(3) {
  background: var(--kp-simple-card);
}

body.single-post.category-owner .entry-content h2,
body.single-post.category-owner .entry-content h3,
body.single-post.category-partner .entry-content h2,
body.single-post.category-partner .entry-content h3,
body.single-post.category-cast .entry-content h2,
body.single-post.category-cast .entry-content h3,
body.single-post.category-art .entry-content h2,
body.single-post.category-art .entry-content h3,
body.single-post.category-singer .entry-content h2,
body.single-post.category-singer .entry-content h3,
body.single-post.category-community .entry-content h2,
body.single-post.category-community .entry-content h3 {
  margin: 0 0 12px;
  padding: 10px 14px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--kp-simple-head-a), var(--kp-simple-head-b));
  color: #ffffff;
  text-shadow: none;
  font-weight: 700;
  font-size: 1rem;
}

body.single-post.category-owner .entry-content h2:nth-of-type(odd),
body.single-post.category-owner .entry-content h3:nth-of-type(odd),
body.single-post.category-owner .entry-content h2:nth-of-type(even),
body.single-post.category-owner .entry-content h3:nth-of-type(even),
body.single-post.category-partner .entry-content h2:nth-of-type(odd),
body.single-post.category-partner .entry-content h3:nth-of-type(odd),
body.single-post.category-partner .entry-content h2:nth-of-type(even),
body.single-post.category-partner .entry-content h3:nth-of-type(even),
body.single-post.category-cast .entry-content h2:nth-of-type(odd),
body.single-post.category-cast .entry-content h3:nth-of-type(odd),
body.single-post.category-cast .entry-content h2:nth-of-type(even),
body.single-post.category-cast .entry-content h3:nth-of-type(even),
body.single-post.category-art .entry-content h2:nth-of-type(odd),
body.single-post.category-art .entry-content h3:nth-of-type(odd),
body.single-post.category-art .entry-content h2:nth-of-type(even),
body.single-post.category-art .entry-content h3:nth-of-type(even),
body.single-post.category-singer .entry-content h2:nth-of-type(odd),
body.single-post.category-singer .entry-content h3:nth-of-type(odd),
body.single-post.category-singer .entry-content h2:nth-of-type(even),
body.single-post.category-singer .entry-content h3:nth-of-type(even),
body.single-post.category-community .entry-content h2:nth-of-type(odd),
body.single-post.category-community .entry-content h3:nth-of-type(odd),
body.single-post.category-community .entry-content h2:nth-of-type(even),
body.single-post.category-community .entry-content h3:nth-of-type(even) {
  background: linear-gradient(90deg, var(--kp-simple-head-a), var(--kp-simple-head-b));
}

body.single-post.category-owner .entry-content a,
body.single-post.category-partner .entry-content a,
body.single-post.category-cast .entry-content a,
body.single-post.category-art .entry-content a,
body.single-post.category-singer .entry-content a,
body.single-post.category-community .entry-content a {
  color: var(--kp-simple-link);
}

body.single-post.category-owner .wp-block-button__link,
body.single-post.category-partner .wp-block-button__link,
body.single-post.category-cast .wp-block-button__link,
body.single-post.category-art .wp-block-button__link,
body.single-post.category-singer .wp-block-button__link,
body.single-post.category-community .wp-block-button__link {
  background: linear-gradient(90deg, var(--kp-simple-head-a), var(--kp-simple-head-b));
  border-radius: 999px;
  border: 0;
  color: #ffffff;
  font-weight: 700;
  box-shadow: none;
}

@media (max-width: 1024px) {
  body.single-post.category-owner .entry-content > .wp-block-columns:first-child,
  body.single-post.category-partner .entry-content > .wp-block-columns:first-child,
  body.single-post.category-cast .entry-content > .wp-block-columns:first-child,
  body.single-post.category-art .entry-content > .wp-block-columns:first-child,
  body.single-post.category-singer .entry-content > .wp-block-columns:first-child,
  body.single-post.category-community .entry-content > .wp-block-columns:first-child {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  body.single-post.category-owner .entry-content,
  body.single-post.category-partner .entry-content,
  body.single-post.category-cast .entry-content,
  body.single-post.category-art .entry-content,
  body.single-post.category-singer .entry-content,
  body.single-post.category-community .entry-content {
    gap: 12px;
  }

  body.single-post.category-owner .entry-content > .wp-block-group,
  body.single-post.category-owner .entry-content > .wp-block-columns,
  body.single-post.category-owner .entry-content > .wp-block-media-text,
  body.single-post.category-owner .entry-content > .wp-block-embed,
  body.single-post.category-owner .entry-content > .wp-block-table,
  body.single-post.category-owner .entry-content > .wp-block-image,
  body.single-post.category-owner .entry-content > .wp-block-cover,
  body.single-post.category-partner .entry-content > .wp-block-group,
  body.single-post.category-partner .entry-content > .wp-block-columns,
  body.single-post.category-partner .entry-content > .wp-block-media-text,
  body.single-post.category-partner .entry-content > .wp-block-embed,
  body.single-post.category-partner .entry-content > .wp-block-table,
  body.single-post.category-partner .entry-content > .wp-block-image,
  body.single-post.category-partner .entry-content > .wp-block-cover,
  body.single-post.category-cast .entry-content > .wp-block-group,
  body.single-post.category-cast .entry-content > .wp-block-columns,
  body.single-post.category-cast .entry-content > .wp-block-media-text,
  body.single-post.category-cast .entry-content > .wp-block-embed,
  body.single-post.category-cast .entry-content > .wp-block-table,
  body.single-post.category-cast .entry-content > .wp-block-image,
  body.single-post.category-cast .entry-content > .wp-block-cover,
  body.single-post.category-art .entry-content > .wp-block-group,
  body.single-post.category-art .entry-content > .wp-block-columns,
  body.single-post.category-art .entry-content > .wp-block-media-text,
  body.single-post.category-art .entry-content > .wp-block-embed,
  body.single-post.category-art .entry-content > .wp-block-table,
  body.single-post.category-art .entry-content > .wp-block-image,
  body.single-post.category-art .entry-content > .wp-block-cover,
  body.single-post.category-singer .entry-content > .wp-block-group,
  body.single-post.category-singer .entry-content > .wp-block-columns,
  body.single-post.category-singer .entry-content > .wp-block-media-text,
  body.single-post.category-singer .entry-content > .wp-block-embed,
  body.single-post.category-singer .entry-content > .wp-block-table,
  body.single-post.category-singer .entry-content > .wp-block-image,
  body.single-post.category-singer .entry-content > .wp-block-cover,
  body.single-post.category-community .entry-content > .wp-block-group,
  body.single-post.category-community .entry-content > .wp-block-columns,
  body.single-post.category-community .entry-content > .wp-block-media-text,
  body.single-post.category-community .entry-content > .wp-block-embed,
  body.single-post.category-community .entry-content > .wp-block-table,
  body.single-post.category-community .entry-content > .wp-block-image,
  body.single-post.category-community .entry-content > .wp-block-cover {
    padding: 12px;
  }
}

/* =========================
   Member Detail Layout
   shortcode: [kp_member_detail member="..."]
========================= */

.kp-member-detail-page {
  --kpd-bg: #eceff2;
  --kpd-card: #ffffff;
  --kpd-border: #d7e2e8;
  --kpd-shadow: 0 8px 24px rgba(20, 40, 70, 0.10);
  --kpd-title-a: #b39ce7;
  --kpd-title-b: #6fd4b6;

  max-width: 1380px;
  margin: 20px auto 40px;
  padding: 16px;
  border-radius: 16px;
  background: var(--kpd-bg);
}

.kp-member-title-wrap {
  text-align: center;
  margin-bottom: 16px;
}

.kp-member-title {
  margin: 0;
  font-size: clamp(1.6rem, 2.8vw, 2.3rem);
  line-height: 1.2;
}

.kp-member-subtitle {
  margin: 6px 0 0;
  color: #5f6f7d;
}

.kp-member-main-grid {
  display: grid;
  grid-template-columns: 1.05fr 1.25fr 1.2fr;
  grid-template-areas:
    "icon profile history"
    "links twitch history"
    "youtube x history";
  gap: 12px;
  align-items: start;
}

.kp-card {
  background: var(--kpd-card);
  border: 1px solid var(--kpd-border);
  box-shadow: var(--kpd-shadow);
  border-radius: 12px;
  padding: 12px;
}

.kp-card-icon { grid-area: icon; }
.kp-card-profile { grid-area: profile; }
.kp-card-history { grid-area: history; max-height: 980px; overflow: auto; }
.kp-card-links { grid-area: links; display: flex; flex-wrap: wrap; gap: 8px; }
.kp-card-twitch { grid-area: twitch; }
.kp-card-youtube { grid-area: youtube; }
.kp-card-x { grid-area: x; }

.kp-member-icon,
.kp-member-profile-image {
  width: 100%;
  display: block;
  border-radius: 10px;
}

.kp-member-pr {
  margin-top: 10px;
  line-height: 1.8;
  color: #20313d;
}

.kp-card-title {
  margin: 0 0 10px;
  padding: 8px 12px;
  border-radius: 999px;
  color: #fff;
  font-size: 1rem;
  background: linear-gradient(90deg, var(--kpd-title-a), var(--kpd-title-b));
}

.kp-link-chip {
  display: inline-block;
  padding: 8px 12px;
  border-radius: 999px;
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  background: linear-gradient(90deg, #7c63d9, #66cbb1);
}

.kp-link-chip.is-youtube { background: linear-gradient(90deg, #ff4f6d, #ff8a7e); }
.kp-link-chip.is-x { background: linear-gradient(90deg, #2d2d2d, #555); }

.kp-embed-frame,
.kp-embed-wrap iframe {
  width: 100%;
  min-height: 280px;
  border: 0;
  border-radius: 10px;
}

.kp-member-history {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}

.kp-member-history-item {
  display: grid;
  grid-template-columns: 126px 1fr;
  gap: 8px;
  align-items: start;
  border: 1px solid #d8e8df;
  border-radius: 10px;
  padding: 8px;
  background: #f8fbf9;
}

.kp-member-history-date {
  display: inline-block;
  border-radius: 999px;
  padding: 4px 8px;
  text-align: center;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(90deg, #79d6b8, #7caee7);
}

.kp-member-empty {
  color: #667785;
}

@media (max-width: 1180px) {
  .kp-member-main-grid {
    grid-template-columns: 1fr;
    grid-template-areas:
      "icon"
      "profile"
      "history"
      "links"
      "twitch"
      "youtube"
      "x";
  }

  .kp-card-history {
    max-height: none;
  }
}

/* =========================
   Shortcode Layout Guard
   Prevent overlap with following content
========================= */

.kp-member-detail-page {
  display: block;
  clear: both;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  z-index: 2;
}

.kp-member-detail-page::after {
  content: "";
  display: block;
  clear: both;
}

.kp-member-main-grid,
.kp-member-detail-page .kp-card {
  position: relative;
  z-index: 3;
}

.kp-member-detail-page + * {
  clear: both;
}

/* =========================
   Member Detail Safe Layout Override
   Keep layout stable inside narrow content columns
========================= */

.kp-member-detail-page {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.kp-member-main-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-areas:
    "icon profile"
    "history history"
    "links twitch"
    "youtube x";
}

.kp-member-main-grid > * {
  min-width: 0;
}

.kp-card-history {
  max-height: 620px;
}

.kp-embed-frame,
.kp-embed-wrap iframe {
  min-height: 240px;
}

@media (max-width: 900px) {
  .kp-member-main-grid {
    grid-template-columns: 1fr;
    grid-template-areas:
      "icon"
      "profile"
      "history"
      "links"
      "twitch"
      "youtube"
      "x";
  }

  .kp-card-history {
    max-height: none;
  }
}

/* =========================
   Final Stabilizer
========================= */

.kp-member-detail-page {
  display: flow-root;
  clear: both !important;
  position: relative;
  z-index: 0;
  isolation: auto;
  overflow: visible;
  margin-bottom: 28px;
}

.kp-member-detail-page .kp-member-main-grid,
.kp-member-detail-page .kp-card {
  position: static;
  z-index: auto;
}

.kp-member-detail-page ~ * {
  clear: both !important;
}

.kp-member-detail-page + * {
  margin-top: 16px;
}

/* =========================
   YouTube Blog Card
========================= */

.kp-yt-card {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  text-decoration: none;
  color: #1f2d3a;
  border: 1px solid #d8e5ee;
  border-radius: 10px;
  background: #fff;
  padding: 8px;
}

.kp-yt-card:hover {
  box-shadow: 0 6px 16px rgba(22, 45, 72, 0.12);
}

.kp-yt-card-thumb {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 8px;
  display: block;
}

.kp-yt-card-meta {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.kp-yt-card-site {
  font-size: 12px;
  font-weight: 700;
  color: #ff2f43;
}

.kp-yt-card-title {
  font-size: 13px;
  line-height: 1.4;
  font-weight: 700;
}

.kp-yt-card-author {
  font-size: 12px;
  color: #5f6f7d;
}

.kp-yt-card-fallback {
  display: inline-block;
  text-decoration: none;
  color: #194f8a;
  border: 1px solid #d8e5ee;
  border-radius: 10px;
  background: #fff;
  padding: 10px 12px;
}

@media (max-width: 640px) {
  .kp-yt-card {
    grid-template-columns: 1fr;
  }
}
