.cp-doc {
  --doc-bg: #f4f7ff;
  --doc-surface: #ffffff;
  --doc-text: #1b274a;
  --doc-muted: #526186;
  --doc-accent: #2f6bff;
  --doc-border: rgba(33, 52, 111, 0.12);
  --doc-shadow: 0 18px 38px rgba(17, 30, 67, 0.08);
}

.cp-doc .about-hero,
.cp-doc .docs-hero {
  background: linear-gradient(135deg, #eef3ff 0%, #f7f9ff 45%, #e8f1ff 100%);
  border-bottom: 1px solid #e5ecfb;
}

.cp-doc .about-hero-wrap,
.cp-doc .docs-hero-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.85fr);
  gap: 26px;
  align-items: center;
}

.cp-doc .about-hero-content h1,
.cp-doc .docs-hero-content h1,
.cp-doc .about-hero h1,
.cp-doc .docs-hero h1 {
  color: var(--doc-text);
  font-size: clamp(2rem, 3.8vw, 3.2rem);
  line-height: 1.1;
  font-weight: 900;
  letter-spacing: -0.02em;
  margin-bottom: 14px;
}

.cp-doc .about-hero-content p,
.cp-doc .docs-hero-content p,
.cp-doc .about-hero p,
.cp-doc .docs-hero p,
.cp-doc .about-hero-subtitle,
.cp-doc .docs-hero-subtitle {
  color: var(--doc-muted);
  font-size: 1.05rem;
  line-height: 1.7;
}

.cp-doc .about-kicker,
.cp-doc .docs-kicker {
  display: inline-flex;
  align-items: center;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--doc-accent);
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(47, 107, 255, 0.1);
  border: 1px solid rgba(47, 107, 255, 0.2);
  margin-bottom: 14px;
}

.cp-doc .about-hero-card,
.cp-doc .docs-hero-card {
  background: var(--doc-surface);
  border: 1px solid var(--doc-border);
  border-radius: 18px;
  padding: 14px;
  box-shadow: var(--doc-shadow);
}

.cp-doc .about-hero-image,
.cp-doc .docs-hero-image {
  position: relative;
  min-height: 230px;
  border-radius: 14px;
  border: 1px dashed rgba(47, 107, 255, 0.35);
  background: linear-gradient(180deg, #f9fbff 0%, #eef4ff 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.cp-doc .about-hero-image img,
.cp-doc .docs-hero-image img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  object-fit: cover;
}

.cp-doc .about-shell,
.cp-doc .docs-shell,
.cp-doc .container > .docs-block,
.cp-doc .container > .about-block {
  color: var(--doc-text);
}

.cp-doc .about-grid,
.cp-doc .docs-grid {
  display: grid;
  gap: 18px;
}

.cp-doc .about-block,
.cp-doc .docs-block,
.cp-doc .about-block-inner,
.cp-doc .docs-block-inner {
  background: var(--doc-surface);
  border: 1px solid var(--doc-border);
  border-radius: 16px;
  box-shadow: 0 10px 24px rgba(25, 42, 96, 0.06);
}

.cp-doc .about-block-inner,
.cp-doc .docs-block-inner {
  padding: 26px;
}

.cp-doc .about-section-head,
.cp-doc .docs-section-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.cp-doc .about-num,
.cp-doc .docs-num {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  color: #fff;
  background: var(--doc-accent);
}

.cp-doc .about-list,
.cp-doc .docs-list,
.cp-doc ul,
.cp-doc ol {
  color: #334155;
  line-height: 1.72;
}

.cp-doc .about-intro-note,
.cp-doc .docs-top-note,
.cp-doc .docs-note {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  border: 1px solid rgba(47, 107, 255, 0.2);
  border-radius: 13px;
  background: #f8fbff;
  color: #274472;
  padding: 12px 14px;
}

.cp-doc .about-intro-note-badge,
.cp-doc .docs-top-note-badge {
  width: 24px;
  height: 24px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #2f6bff;
  color: #fff;
  font-weight: 800;
  font-size: 0.8rem;
  flex: 0 0 24px;
}

.cp-doc .cp-image-placeholder {
  width: 100%;
  height: 100%;
  min-height: 230px;
  border-radius: 10px;
  border: 1px dashed rgba(47, 107, 255, 0.45);
  background: repeating-linear-gradient(
    -45deg,
    rgba(47, 107, 255, 0.08),
    rgba(47, 107, 255, 0.08) 12px,
    rgba(47, 107, 255, 0.16) 12px,
    rgba(47, 107, 255, 0.16) 24px
  );
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #2b4e8d;
  font-weight: 700;
  font-size: 0.92rem;
  padding: 14px;
}

.cp-doc .docs-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.cp-doc .docs-card {
  background: var(--doc-surface);
  border: 1px solid var(--doc-border);
  border-radius: 16px;
  box-shadow: 0 10px 24px rgba(25, 42, 96, 0.06);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.cp-doc .docs-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 36px rgba(25, 42, 96, 0.12);
}

.cp-doc .docs-card h2,
.cp-doc .docs-card h3,
.cp-doc .docs-level h3,
.cp-doc .docs-block h2 {
  color: var(--doc-text);
  font-weight: 800;
}

.cp-doc .docs-card p,
.cp-doc .docs-level p,
.cp-doc .docs-search-note,
.cp-doc .docs-search-empty {
  color: var(--doc-muted);
}

.cp-doc .docs-search {
  background: var(--doc-surface);
  border: 1px solid var(--doc-border);
  border-radius: 16px;
  padding: 14px;
  margin-bottom: 12px;
}

.cp-doc .docs-search input[type='search'] {
  width: 100%;
  border: 1px solid rgba(47, 107, 255, 0.24);
  border-radius: 12px;
  padding: 10px 12px;
  outline: none;
}

.cp-doc .docs-search input[type='search']:focus {
  border-color: rgba(47, 107, 255, 0.6);
  box-shadow: 0 0 0 3px rgba(47, 107, 255, 0.14);
}

.cp-doc .docs-search-note {
  margin-top: 8px;
  font-size: 0.9rem;
}

.cp-doc .docs-search-empty {
  display: none;
  border: 1px dashed rgba(47, 107, 255, 0.35);
  border-radius: 12px;
  background: rgba(47, 107, 255, 0.06);
  padding: 12px;
  margin-bottom: 12px;
}

.cp-doc .docs-chipbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0 18px;
}

.cp-doc .docs-chip {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(47, 107, 255, 0.24);
  background: rgba(47, 107, 255, 0.08);
  color: #1f4bd9;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
}

.cp-doc .docs-chip:hover {
  background: rgba(47, 107, 255, 0.14);
}

.cp-doc .docs-level {
  background: var(--doc-surface);
  border: 1px solid var(--doc-border);
  border-radius: 16px;
  padding: 16px;
}

.cp-doc .docs-level-badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 0.78rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.cp-doc .docs-level-badge.beginner {
  color: #1f7a38;
  background: rgba(53, 176, 74, 0.14);
}

.cp-doc .docs-level-badge.advanced {
  color: #1f4bd9;
  background: rgba(47, 107, 255, 0.14);
}

@media (max-width: 991px) {
  .cp-doc .about-hero-wrap,
  .cp-doc .docs-hero-wrap {
    grid-template-columns: 1fr;
  }

  .cp-doc .about-block-inner,
  .cp-doc .docs-block-inner {
    padding: 20px;
  }
}
