/*
Theme Name: K Creator Wave
Theme URI: https://kcreatorwave.com/
Author: K Creator Wave
Author URI: https://kcreatorwave.com/
Description: Lightweight Korean creator magazine theme with fast click-to-play YouTube videos, multiple creator channels, SEO-ready editorial layouts, and app WebView support.
Version: 2.6.0
Requires at least: 6.5
Tested up to: 7.0
Requires PHP: 7.4
Text Domain: kcreatorwave
Tags: blog, news, entertainment, one-column, two-columns, custom-logo, custom-menu, featured-images, translation-ready, block-styles, wide-blocks
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
*/

:root {
  --kcw-bg: #f7f8fc;
  --kcw-surface: #ffffff;
  --kcw-surface-soft: #f0f2ff;
  --kcw-text: #131722;
  --kcw-muted: #667085;
  --kcw-line: #e4e8f0;
  --kcw-brand: #5947f5;
  --kcw-brand-dark: #4031c7;
  --kcw-accent: #ff4e88;
  --kcw-radius: 20px;
  --kcw-shadow: 0 18px 50px rgba(27, 35, 55, .09);
  --kcw-shadow-soft: 0 8px 26px rgba(27, 35, 55, .055);
  --kcw-container: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--kcw-bg);
  color: var(--kcw-text);
  font-family: Pretendard, "Noto Sans KR", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.72;
  word-break: keep-all;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--kcw-brand); }
button, input, textarea, select { font: inherit; }

.screen-reader-text {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.screen-reader-text:focus {
  position: fixed !important;
  top: 12px;
  left: 12px;
  z-index: 100000;
  width: auto;
  height: auto;
  padding: 12px 16px;
  clip: auto;
  border-radius: 10px;
  background: #fff;
  color: #111;
  box-shadow: var(--kcw-shadow);
}

.kcw-container {
  width: min(calc(100% - 32px), var(--kcw-container));
  margin-inline: auto;
}

/* Header */
.kcw-site-header {
  position: sticky;
  top: 0;
  z-index: 999;
  border-bottom: 1px solid rgba(228, 232, 240, .96);
  background: rgba(255, 255, 255, .97);
  isolation: isolate;
}
.admin-bar .kcw-site-header { top: 32px; }
.kcw-header-row {
  display: flex;
  min-height: 70px;
  align-items: center;
  gap: 24px;
}
.kcw-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  font-size: 1.04rem;
  font-weight: 900;
  letter-spacing: -.035em;
}
.kcw-brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--kcw-brand), var(--kcw-accent));
  color: #fff;
  box-shadow: 0 8px 20px rgba(89, 71, 245, .24);
}
.custom-logo { display: block; width: auto; max-height: 44px; }
.kcw-main-nav { margin-inline-start: auto; }
.kcw-main-nav ul {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.kcw-main-nav a {
  display: block;
  padding: 9px 12px;
  border-radius: 10px;
  color: #344054;
  font-size: .93rem;
  font-weight: 760;
}
.kcw-main-nav a:hover,
.kcw-main-nav .current-menu-item > a { background: var(--kcw-surface-soft); color: var(--kcw-brand); }
.kcw-header-actions {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 8px;
  margin-inline-start: auto;
}
.kcw-icon-button {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid var(--kcw-line);
  border-radius: 12px;
  background: #fff;
  color: var(--kcw-text);
  padding: 0;
  line-height: 1;
  cursor: pointer;
}
.kcw-icon-button:hover { border-color: #c9c4ff; background: #f7f6ff; color: var(--kcw-brand); }
.kcw-icon-button:focus-visible { outline: 3px solid rgba(89, 71, 245, .22); outline-offset: 2px; }
.kcw-header-icon {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  pointer-events: none;
}
.kcw-menu-toggle { display: none; }
.kcw-search-panel {
  position: absolute;
  top: 100%;
  right: 0;
  left: 0;
  display: none;
  border-top: 1px solid var(--kcw-line);
  border-bottom: 1px solid var(--kcw-line);
  padding: 14px 0;
  background: #fff;
  box-shadow: 0 18px 34px rgba(27, 35, 55, .10);
}
.kcw-search-panel.is-open { display: block; }
.kcw-search-form { display: flex; gap: 8px; }
.kcw-search-form input[type="search"] {
  min-width: 0;
  flex: 1;
  padding: 12px 14px;
  border: 1px solid var(--kcw-line);
  border-radius: 12px;
  background: #fff;
}
.kcw-button,
.kcw-search-form button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border: 0;
  border-radius: 12px;
  background: var(--kcw-brand);
  color: #fff;
  font-weight: 850;
  cursor: pointer;
  transition: transform .18s ease, background .18s ease;
}
.kcw-button:hover,
.kcw-search-form button:hover { transform: translateY(-1px); background: var(--kcw-brand-dark); color: #fff; }

/* General layout */
.kcw-main { min-height: 64vh; padding: 32px 0 72px; }
.kcw-section { margin-top: 46px; }
.kcw-section:first-child { margin-top: 0; }
.kcw-section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}
.kcw-section-heading h2,
.kcw-page-title {
  margin: 0;
  font-size: clamp(1.45rem, 3vw, 2rem);
  line-height: 1.25;
  letter-spacing: -.045em;
}
.kcw-section-heading p,
.kcw-page-description { margin: 6px 0 0; color: var(--kcw-muted); }
.kcw-section-link { color: var(--kcw-brand); font-weight: 850; white-space: nowrap; }

/* Clean editorial hero */
.kcw-hero {
  display: grid;
  grid-template-columns: minmax(0, 2.03fr) minmax(350px, 1fr);
  gap: 0;
  aspect-ratio: 2.65 / 1;
  overflow: hidden;
  border: 1px solid var(--kcw-line);
  border-radius: 28px;
  background: var(--kcw-surface);
  box-shadow: var(--kcw-shadow);
}
.kcw-hero-media {
  position: relative;
  display: block;
  align-self: stretch;
  width: 100%;
  height: 100%;
  min-height: 0;
  overflow: hidden;
  background: #eef1f7;
}
.kcw-hero-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.kcw-hero-media::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 26%;
  background: linear-gradient(0deg, rgba(18, 23, 34, .15), transparent);
  pointer-events: none;
}
.kcw-hero-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(25px, 3.2vw, 40px);
  background:
    radial-gradient(circle at 100% 0, rgba(255, 78, 136, .11), transparent 35%),
    radial-gradient(circle at 0 100%, rgba(89, 71, 245, .11), transparent 42%),
    #fff;
}
.kcw-kicker {
  display: inline-flex;
  align-self: flex-start;
  margin-bottom: 10px;
  padding: 7px 11px;
  border-radius: 999px;
  background: #eeecff;
  color: var(--kcw-brand-dark);
  font-size: .76rem;
  font-weight: 900;
  letter-spacing: .02em;
}
.kcw-hero h1 {
  margin: 0;
  font-size: clamp(1.8rem, 2.75vw, 2.58rem);
  line-height: 1.16;
  letter-spacing: -.057em;
}
.kcw-hero h1 a:hover { color: var(--kcw-brand-dark); }
.kcw-hero-excerpt {
  margin: 13px 0 16px;
  color: #596274;
  font-size: .93rem;
  line-height: 1.72;
}
.kcw-hero-action { margin-top: 18px; }
.kcw-meta { display: flex; flex-wrap: wrap; gap: 7px 12px; color: var(--kcw-muted); font-size: .8rem; }

/* Cards */
.kcw-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  align-items: start;
}
.kcw-card {
  overflow: hidden;
  border: 1px solid var(--kcw-line);
  border-radius: var(--kcw-radius);
  background: var(--kcw-surface);
  box-shadow: var(--kcw-shadow-soft);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.kcw-card:hover { transform: translateY(-4px); border-color: #d7d2ff; box-shadow: var(--kcw-shadow); }
.kcw-card-media {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #eef1f7;
}
.kcw-card-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform .35s ease;
}
.kcw-card:hover .kcw-card-media img { transform: scale(1.025); }
.kcw-play-badge {
  position: absolute;
  right: 12px;
  bottom: 12px;
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 1px solid rgba(255,255,255,.74);
  border-radius: 50%;
  background: rgba(255,255,255,.94);
  color: var(--kcw-brand);
  box-shadow: 0 8px 24px rgba(17,24,39,.2);
}
.kcw-card-content { padding: 19px; }
.kcw-card-category { color: var(--kcw-brand); font-size: .77rem; font-weight: 900; }
.kcw-card-title { margin: 8px 0 11px; font-size: 1.08rem; line-height: 1.48; letter-spacing: -.027em; }
.kcw-card-title a { display: block; }
.kcw-card-excerpt { margin: 0 0 13px; color: var(--kcw-muted); font-size: .89rem; }

/* Creator cards */
.kcw-creators { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; }
.kcw-creator-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 20px 12px;
  border: 1px solid var(--kcw-line);
  border-radius: 17px;
  background: #fff;
  text-align: center;
  box-shadow: 0 5px 18px rgba(27,35,55,.035);
  transition: transform .18s ease, border-color .18s ease;
}
.kcw-creator-card:hover { transform: translateY(-2px); border-color: #cec8ff; }
.kcw-creator-avatar {
  width: 72px;
  height: 72px;
  overflow: hidden;
  border-radius: 50%;
  background: #eceffa;
  box-shadow: inset 0 0 0 1px rgba(17,24,39,.04);
}
.kcw-creator-avatar img { display: block; width: 100%; height: 100%; object-fit: cover; }
.kcw-creator-name { overflow: hidden; max-width: 100%; font-weight: 900; text-overflow: ellipsis; white-space: nowrap; }
.kcw-creator-count { color: var(--kcw-muted); font-size: .77rem; }

/* Ads */
.kcw-ad-area { margin: 30px auto; padding: 16px; border: 1px dashed #ccd3df; border-radius: 14px; background: rgba(255,255,255,.65); text-align: center; }
.kcw-ad-area:empty { display: none; }

/* Article page */
.kcw-content-shell { display: grid; grid-template-columns: minmax(0, 1fr) 286px; gap: 30px; align-items: start; }
.kcw-article,
.kcw-sidebar-card {
  border: 1px solid var(--kcw-line);
  border-radius: 22px;
  background: #fff;
  box-shadow: var(--kcw-shadow-soft);
}
.kcw-article { overflow: hidden; }
.kcw-article-header {
  max-width: 900px;
  margin-inline: auto;
  padding: clamp(30px, 5vw, 58px) clamp(24px, 5vw, 58px) 28px;
}
.kcw-article-header h1 {
  margin: 12px 0 17px;
  font-size: clamp(2rem, 4.8vw, 3.35rem);
  line-height: 1.2;
  letter-spacing: -.056em;
}
.kcw-article-visual {
  margin: 0 24px;
  overflow: hidden;
  border-radius: 18px;
  background: #eef1f7;
}
.kcw-article-visual img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }

/* Fast YouTube facade: no iframe is loaded until the visitor presses play. */
.kcw-video-facade,
.kcw-video-wrap {
  position: relative;
  margin: 0 24px;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border-radius: 18px;
  background: #eef1f7;
  isolation: isolate;
}
.kcw-video-facade img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.kcw-video-facade::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(0deg, rgba(13,17,28,.46), rgba(13,17,28,.02) 55%);
  pointer-events: none;
}
.kcw-video-facade.is-playing::after { display: none; }
.kcw-video-play {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 54px;
  padding: 0 20px;
  transform: translate(-50%, -50%);
  border: 1px solid rgba(255,255,255,.7);
  border-radius: 999px;
  background: rgba(255,255,255,.96);
  color: #171a24;
  font-weight: 900;
  box-shadow: 0 14px 34px rgba(0,0,0,.25);
  cursor: pointer;
}
.kcw-video-play:hover { background: #fff; color: var(--kcw-brand); }
.kcw-video-play-icon {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 50%;
  background: var(--kcw-brand);
  color: #fff;
  font-size: .77rem;
  text-indent: 2px;
}
.kcw-video-direct {
  position: absolute;
  right: 16px;
  bottom: 14px;
  z-index: 3;
  color: #fff;
  font-size: .78rem;
  font-weight: 800;
  text-shadow: 0 2px 8px rgba(0,0,0,.38);
}
.kcw-video-wrap { margin: 0; border-radius: 0; }
.kcw-video-wrap iframe,
.kcw-video-facade iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.kcw-entry-content {
  max-width: 850px;
  margin-inline: auto;
  padding: clamp(30px, 5vw, 58px);
  font-size: 1.04rem;
}
.kcw-entry-content > *:first-child { margin-top: 0; }
.kcw-entry-content > *:last-child { margin-bottom: 0; }
.kcw-entry-content h2 { margin-top: 2.05em; font-size: 1.62rem; line-height: 1.35; letter-spacing: -.04em; }
.kcw-entry-content h3 { margin-top: 1.75em; font-size: 1.28rem; letter-spacing: -.03em; }
.kcw-entry-content p { margin: 1.08em 0; }
.kcw-entry-content a { color: var(--kcw-brand); text-decoration: underline; text-underline-offset: 3px; }
.kcw-entry-content blockquote { margin: 1.7em 0; padding: 18px 22px; border-left: 4px solid var(--kcw-brand); border-radius: 0 12px 12px 0; background: #f3f2ff; }
.kcw-entry-content ul, .kcw-entry-content ol { padding-left: 1.4em; }
.kcw-entry-content .wp-block-image img { border-radius: 14px; }
.kcw-entry-content .alignwide { margin-left: max(-6vw, -70px); margin-right: max(-6vw, -70px); max-width: none; }
.kcw-source-box { margin-top: 28px; padding: 16px 18px; border: 1px solid #e5e7f3; border-radius: 12px; background: #f8f8fd; color: #475467; font-size: .9rem; }
.kcw-sidebar { position: sticky; top: 100px; display: grid; gap: 18px; }
.kcw-sidebar-card { padding: 20px; }
.kcw-sidebar-card h2 { margin: 0 0 14px; font-size: 1.03rem; }
.kcw-related-list { display: grid; gap: 13px; }
.kcw-related-item { display: grid; grid-template-columns: 92px 1fr; gap: 12px; align-items: center; }
.kcw-related-item img {
  display: block;
  width: 92px;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 10px;
  background: #eef1f7;
}
.kcw-related-item h3 { margin: 0; font-size: .87rem; line-height: 1.45; }

/* Archives */
.kcw-archive-header { margin-bottom: 28px; padding: 30px; border-radius: 22px; background: linear-gradient(135deg, #2d2362, #6657eb); color: #fff; }
.kcw-archive-header .kcw-page-description { color: rgba(255,255,255,.78); }
.kcw-creator-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
  padding: 22px 24px;
}
.kcw-creator-header .kcw-creator-avatar { flex: 0 0 82px; width: 82px; height: 82px; }
.kcw-creator-header .kcw-kicker { margin: 0 0 6px; padding: 5px 9px; }
.kcw-creator-header .kcw-page-description,
.kcw-creator-header .kcw-page-description p { margin: 6px 0 0; }
/* Creator channel links are intentionally hidden from the public creator header. */
.kcw-creator-header .kcw-button,
.kcw-creator-header a[href*="youtube.com"],
.kcw-creator-header a[href*="youtu.be"] { display: none !important; }
.kcw-creator-header p:has(> .kcw-button),
.kcw-creator-header p:has(> a[href*="youtube.com"]),
.kcw-creator-header p:has(> a[href*="youtu.be"]) { display: none !important; margin: 0 !important; }
.kcw-empty { padding: 42px; border: 1px solid var(--kcw-line); border-radius: 18px; background: #fff; text-align: center; }
.kcw-pagination { margin-top: 34px; }
.kcw-pagination .nav-links { display: flex; flex-wrap: wrap; gap: 8px; }
.kcw-pagination .page-numbers { display: grid; min-width: 40px; height: 40px; place-items: center; border: 1px solid var(--kcw-line); border-radius: 10px; background: #fff; }
.kcw-pagination .current { border-color: var(--kcw-brand); background: var(--kcw-brand); color: #fff; }

/* Footer */
.kcw-site-footer { border-top: 1px solid #282d40; background: #151827; color: #d7dbe7; }
.kcw-footer-grid { display: grid; grid-template-columns: 1.2fr .8fr .8fr; gap: 38px; padding: 48px 0 34px; }
.kcw-site-footer h2, .kcw-site-footer h3 { margin-top: 0; color: #fff; }
.kcw-footer-nav ul { margin: 0; padding: 0; list-style: none; }
.kcw-footer-nav li + li { margin-top: 7px; }
.kcw-footer-nav a { color: #c7ccda; }

.kcw-footer-legal { border-top: 1px solid rgba(255,255,255,.08); }
.kcw-footer-legal ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin: 0;
  padding: 18px 0;
  list-style: none;
}
.kcw-footer-legal a { color: #c7ccda; font-size: .88rem; }
.kcw-footer-legal a:hover { color: #fff; }

.kcw-footer-bottom { padding: 18px 0; border-top: 1px solid rgba(255,255,255,.08); color: #98a2b3; font-size: .84rem; }

.kcw-app-view .kcw-web-only,
.kcw-app-view .kcw-ad-area { display: none !important; }
.kcw-app-view .kcw-main { padding-top: 18px; }

@media (max-width: 1120px) {
  .kcw-hero {
    grid-template-columns: 1fr;
    aspect-ratio: auto;
  }
  .kcw-hero-media {
    order: 0;
    height: auto;
    aspect-ratio: 16 / 9;
  }
  .kcw-hero-content { order: 1; }
}

@media (max-width: 980px) {
  .kcw-menu-toggle { display: grid; }
  .kcw-main-nav {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    display: none;
    margin: 0;
    padding: 10px max(16px, calc((100vw - var(--kcw-container)) / 2 + 16px)) 16px;
    border-top: 1px solid var(--kcw-line);
    border-bottom: 1px solid var(--kcw-line);
    background: #fff;
    box-shadow: 0 18px 34px rgba(27, 35, 55, .10);
  }
  .kcw-main-nav.is-open { display: block; }
  .kcw-main-nav ul { align-items: stretch; flex-direction: column; gap: 3px; }
  .kcw-main-nav a { padding: 12px 14px; text-align: left; }
  .kcw-hero { grid-template-columns: 1fr; }
  .kcw-hero-media { order: 0; }
  .kcw-hero-content { order: 1; }
  .kcw-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kcw-creators { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .kcw-content-shell { grid-template-columns: 1fr; }
  .kcw-sidebar { position: static; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kcw-footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 782px) {
  .admin-bar .kcw-site-header { top: 46px; }
}

@media (max-width: 640px) {
  .kcw-container { width: min(calc(100% - 22px), var(--kcw-container)); }
  .kcw-header-row { min-height: 64px; gap: 8px; }
  .kcw-brand { min-width: 0; gap: 8px; }
  .kcw-brand-mark { width: 36px; height: 36px; border-radius: 11px; }
  .kcw-brand-text { max-width: 160px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .kcw-header-actions { margin-inline-start: auto; gap: 6px; }
  .kcw-icon-button { width: 40px; height: 40px; border-radius: 11px; }
  .kcw-main-nav { padding-inline: 11px; }
  .kcw-main-nav a { text-align: left; }
  .kcw-search-panel { padding: 11px 0; }
  .kcw-main { padding-top: 20px; }
  .kcw-hero { border-radius: 20px; }
  .kcw-hero-content { padding: 25px 22px 28px; }
  .kcw-hero h1 { font-size: clamp(1.78rem, 8.6vw, 2.35rem); }
  .kcw-hero-excerpt { margin-bottom: 17px; }
  .kcw-hero-action { margin-top: 20px; }
  .kcw-grid { grid-template-columns: 1fr; gap: 16px; }
  .kcw-creators { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kcw-section { margin-top: 36px; }
  .kcw-section-heading { align-items: start; }
  .kcw-article-header { padding: 29px 20px 23px; }
  .kcw-article-header h1 { font-size: clamp(1.78rem, 8.7vw, 2.38rem); }
  .kcw-video-facade,
  .kcw-article-visual { margin-inline: 11px; border-radius: 15px; }
  .kcw-video-play { min-height: 48px; padding: 0 15px; }
  .kcw-video-direct { right: 12px; bottom: 10px; }
  .kcw-entry-content { padding: 30px 20px; font-size: 1rem; }
  .kcw-entry-content .alignwide { margin-left: 0; margin-right: 0; }
  .kcw-sidebar { grid-template-columns: 1fr; }
  .kcw-footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .kcw-creator-header { align-items: flex-start; gap: 13px; margin-bottom: 16px; padding: 18px; }
  .kcw-creator-header .kcw-creator-avatar { flex-basis: 64px; width: 64px; height: 64px; }
  .kcw-creator-header .kcw-page-title { font-size: clamp(1.18rem, 5.6vw, 1.45rem); }
  .kcw-creator-header .kcw-page-description,
  .kcw-creator-header .kcw-page-description p { margin-top: 4px; font-size: .88rem; line-height: 1.62; }
}

@media (max-width: 390px) {
  .kcw-container { width: min(calc(100% - 16px), var(--kcw-container)); }
  .kcw-brand-text { max-width: 132px; font-size: .96rem; }
  .kcw-header-actions { gap: 5px; }
  .kcw-icon-button { width: 38px; height: 38px; }
  .kcw-main-nav { padding-inline: 8px; }
  .kcw-search-form { gap: 6px; }
  .kcw-search-form button { padding-inline: 13px; }
}

/* Editorial article system — v2.5.0 */
.kcw-article-deck {
  max-width: 760px;
  margin: -2px 0 18px;
  color: var(--kcw-muted);
  font-size: clamp(1rem, 1.8vw, 1.14rem);
  line-height: 1.75;
}
.kcw-article-summary {
  margin: 0 0 24px;
  padding: 22px 24px;
  border: 1px solid #ddd9ff;
  border-radius: 18px;
  background: linear-gradient(135deg, #f7f5ff 0%, #fff 70%);
  box-shadow: 0 10px 28px rgba(91, 74, 218, .06);
}
.kcw-article-summary__header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}
.kcw-article-summary__header h2 {
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  font-size: 1.16rem;
  letter-spacing: -.035em;
}
.kcw-summary-icon {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 9px;
  background: var(--kcw-brand);
  color: #fff;
  font-size: .82rem;
  font-weight: 900;
}
.kcw-article-summary p { margin: 0; color: #465064; line-height: 1.75; }
.kcw-article-summary ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 18px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}
.kcw-article-summary li { position: relative; padding-left: 17px; }
.kcw-article-summary li::before {
  content: "";
  position: absolute;
  top: .72em;
  left: 0;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--kcw-brand);
}
.kcw-article-summary a { color: #252a38; font-weight: 750; text-decoration: none; }
.kcw-article-summary a:hover { color: var(--kcw-brand); }

.kcw-article-toc {
  margin: 0 0 34px;
  padding: 20px 22px;
  border: 1px solid var(--kcw-line);
  border-radius: 16px;
  background: #fbfcff;
}
.kcw-article-toc__heading { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.kcw-article-toc__heading h2 {
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  font-size: 1.08rem;
}
.kcw-article-toc__heading span { color: var(--kcw-muted); font-size: .78rem; }
.kcw-article-toc ol {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 18px;
  margin: 15px 0 0;
  padding: 0;
  counter-reset: kcw-toc;
  list-style: none;
}
.kcw-article-toc li { min-width: 0; counter-increment: kcw-toc; }
.kcw-article-toc a {
  display: flex;
  align-items: baseline;
  gap: 8px;
  color: #374151;
  font-size: .91rem;
  line-height: 1.5;
  text-decoration: none;
}
.kcw-article-toc a::before { content: counter(kcw-toc, decimal-leading-zero); color: var(--kcw-brand); font-size: .72rem; font-weight: 900; }
.kcw-article-toc a:hover { color: var(--kcw-brand); }
.kcw-article-toc .kcw-toc-level-3 { padding-left: 16px; }

.kcw-article-body { color: #202635; }
.kcw-article-body h2 {
  scroll-margin-top: 112px;
  margin: 2.35em 0 .85em;
  padding: 13px 16px 13px 18px;
  border-left: 5px solid var(--kcw-brand);
  border-radius: 0 13px 13px 0;
  background: linear-gradient(90deg, #f4f2ff, rgba(244,242,255,.18));
  font-size: clamp(1.42rem, 2.8vw, 1.78rem);
  line-height: 1.35;
  letter-spacing: -.045em;
}
.kcw-article-body h3 {
  scroll-margin-top: 112px;
  margin: 2em 0 .7em;
  padding-bottom: 8px;
  border-bottom: 1px solid #e8eaf1;
  font-size: 1.25rem;
}
.kcw-article-body p { line-height: 1.88; }
.kcw-article-body > ul,
.kcw-article-body > ol {
  margin: 1.25em 0;
  padding: 18px 22px 18px 42px;
  border: 1px solid #e7e9f1;
  border-radius: 15px;
  background: #fbfcfe;
}
.kcw-article-body li + li { margin-top: .48em; }
.kcw-article-body strong { color: #151a27; }

.kcw-article-sources {
  margin-top: 38px;
  padding-top: 27px;
  border-top: 1px solid var(--kcw-line);
}
.kcw-article-sources h2 { margin: 0 0 14px; font-size: 1.12rem; }
.kcw-source-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.kcw-source-links a {
  display: grid;
  gap: 5px;
  min-width: 0;
  padding: 15px 16px;
  border: 1px solid var(--kcw-line);
  border-radius: 13px;
  background: #fbfcff;
  color: #252a38;
  text-decoration: none;
}
.kcw-source-links a:hover { border-color: #cfc9ff; background: #f8f6ff; }
.kcw-source-links span { color: var(--kcw-muted); font-size: .76rem; }
.kcw-source-links strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .91rem; }
.kcw-updated-note { margin: 12px 0 0; color: var(--kcw-muted); font-size: .78rem; }

@media (max-width: 640px) {
  .kcw-article-summary { padding: 18px; }
  .kcw-article-summary ul,
  .kcw-article-toc ol,
  .kcw-source-links { grid-template-columns: 1fr; }
  .kcw-article-toc { padding: 18px; }
  .kcw-article-body h2 { margin-top: 2em; padding: 11px 13px; font-size: 1.36rem; }
  .kcw-article-body > ul,
  .kcw-article-body > ol { padding: 15px 17px 15px 35px; }
}

/* Header and homepage hero refinement — v2.5.0 */
.kcw-site-header {
  border-bottom-color: rgba(211, 205, 255, .92);
  background:
    linear-gradient(90deg, #f1efff 0%, #faf7ff 52%, #fff4f9 100%);
  box-shadow: 0 8px 26px rgba(64, 49, 199, .055);
}
.kcw-main-nav a {
  color: #2f3150;
}
.kcw-main-nav a:hover,
.kcw-main-nav .current-menu-item > a {
  background: rgba(255, 255, 255, .76);
  color: var(--kcw-brand-dark);
  box-shadow: inset 0 0 0 1px rgba(89, 71, 245, .08);
}
.kcw-icon-button {
  border-color: rgba(176, 168, 237, .55);
  background: rgba(255, 255, 255, .84);
  box-shadow: 0 5px 16px rgba(64, 49, 199, .055);
}
.kcw-icon-button:hover {
  border-color: #bcb3ff;
  background: #fff;
}
.kcw-search-panel {
  border-color: rgba(211, 205, 255, .92);
  background: rgba(250, 248, 255, .985);
}
.kcw-hero-content {
  padding-top: clamp(24px, 2.8vw, 34px);
  padding-bottom: clamp(24px, 2.8vw, 34px);
}
.kcw-hero h1 {
  font-size: clamp(1.76rem, 2.6vw, 2.46rem);
}
.kcw-hero-excerpt {
  margin-top: 12px;
  margin-bottom: 13px;
}
.kcw-hero-action {
  margin-top: 14px;
}

@media (max-width: 980px) {
  .kcw-main-nav {
    border-color: rgba(211, 205, 255, .92);
    background: rgba(250, 248, 255, .99);
  }
}

@media (max-width: 640px) {
  .kcw-hero-content {
    padding: 22px 20px 24px;
  }
  .kcw-hero h1 {
    font-size: clamp(1.68rem, 8.2vw, 2.22rem);
  }
  .kcw-hero-action {
    margin-top: 15px;
  }
}

@media (max-width: 680px) {
  .kcw-footer-legal ul { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 18px; }
  .kcw-footer-legal a { display: block; line-height: 1.45; }
}
