/**
 * Premium color wheel studio — ChromaXP
 * Reference surpassed: htmlcolorcodes.com/color-wheel/
 */

.cx-page-color-wheel .cx-tool-panel[aria-label='Interactive color wheel'] {
  padding: 0;
  overflow: hidden;
  border: none;
  background: transparent;
  box-shadow: none;
}

.cx-cw-studio {
  --cw-accent: #2563eb;
  --cw-accent-soft: rgba(37, 99, 235, 0.12);
  --cw-surface: #ffffff;
  --cw-surface-2: #f8fafc;
  --cw-border: #e2e8f0;
  --cw-shadow: 0 4px 24px rgba(15, 23, 42, 0.08), 0 1px 3px rgba(15, 23, 42, 0.06);
  --cw-radius: 16px;
  --cw-radius-sm: 10px;
  font-feature-settings: 'kern' 1, 'liga' 1;
}

.cx-cw-studio__layout {
  display: grid;
  grid-template-columns: minmax(300px, 460px) minmax(340px, 1fr);
  gap: 1.5rem;
  align-items: stretch;
}

@media (max-width: 1100px) {
  .cx-cw-studio__layout {
    grid-template-columns: 1fr;
  }
}

/* —— Selector column —— */
.cx-cw-selector {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.cx-cw-selector__hero {
  border-radius: var(--cw-radius);
  padding: 1.25rem 1.35rem;
  background: linear-gradient(135deg, var(--cw-hero-from, #7c3aed) 0%, var(--cw-hero-to, #4f46e5) 100%);
  box-shadow: var(--cw-shadow);
  transition: background 0.35s ease;
  position: relative;
  overflow: hidden;
}

.cx-cw-selector__hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.2), transparent 55%);
  pointer-events: none;
}

.cx-cw-selector__hero-inner {
  position: relative;
  display: flex;
  align-items: center;
  gap: 1.1rem;
}

.cx-cw-hero-swatch {
  width: 4.5rem;
  height: 4.5rem;
  border-radius: 14px;
  border: 3px solid rgba(255, 255, 255, 0.85);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  flex-shrink: 0;
}

.cx-cw-hero-meta {
  flex: 1;
  min-width: 0;
  color: #fff;
}

.cx-cw-hero-label {
  margin: 0 0 0.35rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  opacity: 0.9;
}

.cx-cw-hex-row {
  display: flex;
  gap: 0.5rem;
  align-items: stretch;
  margin-bottom: 0.65rem;
}

.cx-cw-hex-input {
  flex: 1;
  min-width: 0;
  font-family: ui-monospace, 'Cascadia Code', monospace;
  font-size: 1.125rem;
  font-weight: 700;
  padding: 0.5rem 0.75rem;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-radius: var(--cw-radius-sm);
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  backdrop-filter: blur(8px);
}

.cx-cw-hex-input:focus {
  outline: none;
  border-color: #fff;
  background: rgba(255, 255, 255, 0.25);
}

.cx-cw-btn-copy {
  padding: 0.5rem 1rem;
  border: none;
  border-radius: var(--cw-radius-sm);
  background: #fff;
  color: #1e293b;
  font-weight: 700;
  font-size: 0.8125rem;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.cx-cw-btn-copy:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.cx-cw-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  font-size: 0.75rem;
  opacity: 0.95;
}

.cx-cw-stats b {
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

/* —— Wheel stage —— */
.cx-cw-wheel-stage {
  position: relative;
  background: var(--cw-surface);
  border: 1px solid var(--cw-border);
  border-radius: var(--cw-radius);
  box-shadow: var(--cw-shadow);
  padding: 1.25rem;
  text-align: center;
}

.cx-cw-wheel-stage__canvas-wrap {
  position: relative;
  display: inline-block;
  max-width: 100%;
}

.cx-cw-wheel-stage__canvas-wrap::after {
  content: '';
  position: absolute;
  inset: 8%;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.4);
  pointer-events: none;
}

.cx-hcc-wheel-canvas,
#colorWheel {
  display: block;
  width: 100%;
  max-width: 440px;
  height: auto;
  margin: 0 auto;
  cursor: crosshair;
  touch-action: none;
  filter: drop-shadow(0 8px 20px rgba(15, 23, 42, 0.12));
}

.cx-cw-wheel-hints {
  display: flex;
  justify-content: center;
  gap: 1.25rem;
  margin-top: 0.85rem;
  font-size: 0.6875rem;
  font-weight: 600;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.cx-cw-wheel-hints span::before {
  content: '';
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid #94a3b8;
  margin-right: 0.35rem;
  vertical-align: middle;
}

/* —— Harmony strip —— */
.cx-cw-harmony-strip {
  display: flex;
  height: 3rem;
  border-radius: var(--cw-radius-sm);
  overflow: hidden;
  box-shadow: var(--cw-shadow);
  border: 1px solid var(--cw-border);
}

.cx-cw-harmony-strip__chip {
  flex: 1;
  min-width: 0;
  border: none;
  cursor: pointer;
  transition: flex 0.2s ease, transform 0.15s ease;
  position: relative;
}

.cx-cw-harmony-strip__chip:hover {
  transform: scaleY(1.08);
  z-index: 1;
}

.cx-cw-harmony-strip__chip.is-active {
  outline: 3px solid var(--cw-accent);
  outline-offset: -3px;
  z-index: 2;
}

.cx-cw-harmony-strip__chip span {
  position: absolute;
  bottom: 2px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.5625rem;
  font-weight: 700;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
  opacity: 0;
  transition: opacity 0.15s;
}

.cx-cw-harmony-strip__chip:hover span,
.cx-cw-harmony-strip__chip.is-active span {
  opacity: 1;
}

/* —— Harmony pills —— */
.cx-cw-harmony-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.cx-cw-harmony-pill {
  padding: 0.4rem 0.75rem;
  border: 1px solid var(--cw-border);
  border-radius: 999px;
  background: var(--cw-surface);
  font-size: 0.75rem;
  font-weight: 600;
  color: #475569;
  cursor: pointer;
  transition: all 0.18s ease;
}

.cx-cw-harmony-pill:hover {
  border-color: var(--cw-accent);
  color: var(--cw-accent);
  background: var(--cw-accent-soft);
}

.cx-cw-harmony-pill.is-active {
  background: var(--cw-accent);
  border-color: var(--cw-accent);
  color: #fff;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.35);
}

/* —— HSL sliders —— */
.cx-cw-sliders {
  background: var(--cw-surface);
  border: 1px solid var(--cw-border);
  border-radius: var(--cw-radius-sm);
  padding: 1rem 1.1rem;
  display: grid;
  gap: 0.85rem;
}

.cx-cw-slider-row {
  display: grid;
  grid-template-columns: 1.75rem 1fr 2.5rem;
  gap: 0.65rem;
  align-items: center;
}

.cx-cw-slider-row label {
  font-size: 0.6875rem;
  font-weight: 800;
  color: #64748b;
  margin: 0;
}

.cx-cw-slider-row input[type='range'] {
  width: 100%;
  height: 6px;
  border-radius: 999px;
  accent-color: var(--cw-accent);
  cursor: pointer;
}

.cx-cw-slider-row output {
  font-size: 0.75rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  text-align: right;
  color: #1e293b;
}

/* —— Tools panel —— */
.cx-cw-panel {
  background: var(--cw-surface);
  border: 1px solid var(--cw-border);
  border-radius: var(--cw-radius);
  box-shadow: var(--cw-shadow);
  display: flex;
  flex-direction: column;
  min-height: 520px;
  overflow: hidden;
}

.cx-cw-panel__tabs {
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  gap: 0;
  background: var(--cw-surface-2);
  border-bottom: 1px solid var(--cw-border);
  scrollbar-width: none;
}

.cx-cw-panel__tabs::-webkit-scrollbar {
  display: none;
}

.cx-cw-panel__tab {
  flex: 1 0 auto;
  padding: 0.85rem 0.65rem;
  border: none;
  background: transparent;
  font-size: 0.6875rem;
  font-weight: 700;
  color: #64748b;
  cursor: pointer;
  border-bottom: 3px solid transparent;
  margin-bottom: -1px;
  white-space: nowrap;
  transition: color 0.15s, border-color 0.15s, background 0.15s;
}

.cx-cw-panel__tab:hover {
  color: var(--cw-accent);
  background: rgba(37, 99, 235, 0.05);
}

.cx-cw-panel__tab.is-active {
  color: var(--cw-accent);
  border-bottom-color: var(--cw-accent);
  background: var(--cw-surface);
}

.cx-cw-panel__body {
  flex: 1;
  padding: 1.15rem 1.25rem 1.25rem;
  overflow-y: auto;
  max-height: 640px;
}

.cx-cw-panel__lead {
  font-size: 0.8125rem;
  color: #64748b;
  margin: 0 0 1rem;
  line-height: 1.5;
}

/* Diagram */
.cx-cw-diagram-card {
  background: linear-gradient(180deg, #f8fafc 0%, #fff 100%);
  border: 1px solid var(--cw-border);
  border-radius: var(--cw-radius-sm);
  padding: 0.85rem;
  margin-bottom: 1rem;
  text-align: center;
}

.cx-cw-diagram-card__title {
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #64748b;
  margin: 0 0 0.5rem;
}

.cx-hcc-harmony-diagram,
.cx-hcc-edu-wheel {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 0 auto;
  cursor: crosshair;
  touch-action: none;
  border-radius: 50%;
}

/* Premium palette cards */
.cx-cw-palette-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(5.75rem, 1fr));
  gap: 0.65rem;
}

.cx-cw-palette-card {
  background: var(--cw-surface-2);
  border: 1px solid var(--cw-border);
  border-radius: var(--cw-radius-sm);
  padding: 0.5rem;
  text-align: center;
  transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
}

.cx-cw-palette-card:hover {
  border-color: var(--cw-accent);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.12);
  transform: translateY(-2px);
}

.cx-cw-palette-card.is-active {
  border-color: var(--cw-accent);
  box-shadow: 0 0 0 2px var(--cw-accent-soft);
}

.cx-cw-palette-card__swatch {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.08);
  margin-bottom: 0.4rem;
}

.cx-cw-palette-card__name {
  display: block;
  font-size: 0.625rem;
  font-weight: 700;
  color: #64748b;
  margin-bottom: 0.25rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.cx-cw-palette-card__code {
  display: block;
  width: 100%;
  font-family: ui-monospace, monospace;
  font-size: 0.625rem;
  font-weight: 600;
  padding: 0.25rem 0.2rem;
  border: 1px dashed var(--cw-border);
  border-radius: 4px;
  background: #fff;
  color: #334155;
  cursor: pointer;
}

.cx-cw-palette-card__code:hover {
  border-color: var(--cw-accent);
  color: var(--cw-accent);
}

/* Conversion rows */
.cx-cw-conv-row {
  display: grid;
  grid-template-columns: 3rem 1fr auto;
  gap: 0.5rem;
  align-items: center;
  padding: 0.5rem 0.65rem;
  background: var(--cw-surface-2);
  border: 1px solid var(--cw-border);
  border-radius: 8px;
}

.cx-cw-conv-row__label {
  font-size: 0.6875rem;
  font-weight: 800;
  color: #64748b;
}

.cx-cw-conv-row__value {
  font-size: 0.75rem;
  word-break: break-all;
  font-family: ui-monospace, monospace;
}

.cx-cw-conv-row button {
  padding: 0.25rem 0.5rem;
  font-size: 0.6875rem;
  font-weight: 700;
  border: 1px solid var(--cw-border);
  border-radius: 6px;
  background: #fff;
  cursor: pointer;
}

.cx-cw-conv-row button:hover {
  background: var(--cw-accent);
  border-color: var(--cw-accent);
  color: #fff;
}

/* Contrast */
.cx-cw-contrast-grid {
  display: grid;
  gap: 0.75rem;
}

.cx-cw-contrast-card {
  padding: 1rem;
  border-radius: var(--cw-radius-sm);
  border: 1px solid var(--cw-border);
}

.cx-cw-contrast-card__ratio {
  font-size: 1.5rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

/* Edu sections in prose */
.cx-page-color-wheel .cx-hcc-diagram {
  margin: 1.5rem auto;
  max-width: 280px;
  padding: 1rem;
  background: linear-gradient(180deg, #f8fafc, #fff);
  border: 1px solid var(--cw-border);
  border-radius: var(--cw-radius);
  box-shadow: var(--cw-shadow);
}

.cx-page-color-wheel .cx-hcc-edu-wheel {
  filter: drop-shadow(0 6px 16px rgba(15, 23, 42, 0.1));
}

.cx-page-color-wheel .cx-hcc-prose-wide {
  border-top: 1px solid var(--cw-border);
  margin-top: 3rem;
  padding-top: 2.5rem;
}

/* Dark mode */
[data-theme='dark'] .cx-cw-studio {
  --cw-surface: #1a1d26;
  --cw-surface-2: #22262f;
  --cw-border: #2e3440;
  --cw-shadow: 0 4px 24px rgba(0, 0, 0, 0.35);
}

[data-theme='dark'] .cx-cw-hex-input {
  color: #fff;
}

[data-theme='dark'] .cx-cw-palette-card__code,
[data-theme='dark'] .cx-cw-conv-row button {
  background: var(--cw-surface-2);
  color: var(--cw-text-primary, #eceef2);
}

[data-theme='dark'] .cx-cw-slider-row output {
  color: #eceef2;
}

.cx-cw-page-header .cx-section-lead {
  max-width: 42rem;
}

.cx-cw-vision-compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.cx-cw-vision-card {
  background: var(--cw-surface-2);
  border: 1px solid var(--cw-border);
  border-radius: var(--cw-radius-sm);
  padding: 0.85rem;
  text-align: center;
}

.cx-cw-vision-card__swatch {
  width: 100%;
  aspect-ratio: 1.2;
  border-radius: 10px;
  margin: 0.5rem 0;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.08);
}

.cx-hcc-edu-variations {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  justify-content: center;
  padding: 0.5rem;
}

.cx-hcc-edu-var-swatch {
  width: 2.25rem;
  height: 2.25rem;
  border: 2px solid #fff;
  border-radius: 8px;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.15);
  transition: transform 0.15s ease;
}

.cx-hcc-edu-var-swatch:hover {
  transform: scale(1.12);
  z-index: 1;
}

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* ═══════════════════════════════════════════════════════════════
   Full-page shell — hero, learn, related, FAQ
   ═══════════════════════════════════════════════════════════════ */

.cx-page-color-wheel {
  --cw-page-max: 72rem;
  background: linear-gradient(180deg, #f1f5f9 0%, #f8fafc 12rem, #fff 28rem);
}

[data-theme='dark'] body.cx-page-color-wheel {
  background: linear-gradient(180deg, #0f1117 0%, #12141a 14rem, var(--bg-base, #12141a) 30rem);
}

.cx-cw-main {
  max-width: var(--cw-page-max);
  padding-bottom: 4rem;
}

.cx-cw-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.5rem;
  font-size: 0.8125rem;
  font-weight: 500;
  color: #64748b;
  margin-bottom: 1.25rem;
}

.cx-cw-breadcrumb a {
  color: #475569;
  text-decoration: none;
}

.cx-cw-breadcrumb a:hover {
  color: var(--cw-accent, #2563eb);
}

.cx-cw-breadcrumb span[aria-current='page'] {
  color: #0f172a;
  font-weight: 600;
}

[data-theme='dark'] .cx-cw-breadcrumb span[aria-current='page'] {
  color: #eceef2;
}

/* Page hero */
.cx-cw-page-hero {
  margin-bottom: 2rem;
  padding: 2rem 2.25rem;
  border-radius: 20px;
  background: linear-gradient(135deg, #fff 0%, #f8fafc 55%, #eff6ff 100%);
  border: 1px solid var(--cw-border, #e2e8f0);
  box-shadow: var(--cw-shadow);
  position: relative;
  overflow: hidden;
}

.cx-cw-page-hero::before {
  content: '';
  position: absolute;
  top: -40%;
  right: -10%;
  width: 45%;
  aspect-ratio: 1;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.12), transparent 70%);
  pointer-events: none;
}

.cx-cw-page-hero__eyebrow {
  margin: 0 0 0.5rem;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--cw-accent, #2563eb);
}

.cx-cw-page-hero__title {
  margin: 0 0 0.75rem;
  font-size: clamp(1.75rem, 4vw, 2.35rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: #0f172a;
}

.cx-cw-page-hero__lead {
  margin: 0 0 1.25rem;
  max-width: 40rem;
  font-size: 1.0625rem;
  line-height: 1.6;
  color: #475569;
}

.cx-cw-page-hero__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.cx-cw-page-hero__chips li {
  padding: 0.35rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: #334155;
  background: #fff;
  border: 1px solid var(--cw-border, #e2e8f0);
  border-radius: 999px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
}

/* Studio section */
.cx-cw-studio-section {
  margin-bottom: 3.5rem;
}

/* Learn section */
.cx-cw-learn {
  margin-bottom: 3rem;
  padding: 2.25rem 2rem;
  border-radius: 20px;
  background: #fff;
  border: 1px solid var(--cw-border, #e2e8f0);
  box-shadow: var(--cw-shadow);
}

.cx-cw-learn__head {
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--cw-border, #e2e8f0);
}

.cx-cw-learn__title {
  margin: 0 0 0.5rem;
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #0f172a;
}

.cx-cw-learn__lead {
  margin: 0;
  max-width: 36rem;
  font-size: 1rem;
  line-height: 1.55;
  color: #64748b;
}

.cx-cw-section-block {
  margin-bottom: 2.5rem;
}

.cx-cw-section-block:last-child {
  margin-bottom: 0;
}

.cx-cw-section-block__title {
  margin: 0 0 1rem;
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #0f172a;
}

.cx-cw-section-block__intro {
  margin: -0.5rem 0 1.25rem;
  color: #64748b;
  font-size: 0.9375rem;
}

.cx-cw-callout {
  margin: 0 0 1.25rem;
  padding: 1rem 1.15rem;
  border-radius: 12px;
  background: linear-gradient(90deg, rgba(37, 99, 235, 0.08), rgba(124, 58, 237, 0.06));
  border-left: 4px solid var(--cw-accent, #2563eb);
}

.cx-cw-callout p {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.55;
  color: #334155;
}

.cx-cw-steps {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.65rem;
}

.cx-cw-steps li {
  position: relative;
  padding: 0.75rem 1rem 0.75rem 2.5rem;
  background: var(--cw-surface-2, #f8fafc);
  border: 1px solid var(--cw-border, #e2e8f0);
  border-radius: 10px;
  font-size: 0.9375rem;
  line-height: 1.45;
  color: #475569;
}

.cx-cw-steps li::before {
  content: counter(step);
  counter-increment: step;
  position: absolute;
  left: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  width: 1.35rem;
  height: 1.35rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.6875rem;
  font-weight: 800;
  color: #fff;
  background: var(--cw-accent, #2563eb);
  border-radius: 50%;
}

.cx-cw-section-block:has(.cx-cw-steps) {
  counter-reset: step;
}

.cx-cw-topic {
  margin-bottom: 1.25rem;
  padding: 1.25rem;
  background: var(--cw-surface-2, #f8fafc);
  border: 1px solid var(--cw-border, #e2e8f0);
  border-radius: 14px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.cx-cw-topic:hover {
  border-color: rgba(37, 99, 235, 0.35);
  box-shadow: 0 4px 16px rgba(37, 99, 235, 0.08);
}

.cx-cw-topic__inner {
  display: grid;
  grid-template-columns: 1fr minmax(200px, 280px);
  gap: 1.5rem;
  align-items: center;
}

@media (max-width: 768px) {
  .cx-cw-topic__inner {
    grid-template-columns: 1fr;
  }
}

.cx-cw-topic__title {
  margin: 0 0 0.5rem;
  font-size: 1.0625rem;
  font-weight: 700;
  color: #0f172a;
}

.cx-cw-topic__body {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.55;
  color: #64748b;
}

.cx-cw-topic__diagram {
  margin: 0 !important;
  max-width: 100% !important;
}

.cx-cw-mini-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin-top: 1rem;
}

@media (max-width: 600px) {
  .cx-cw-mini-grid {
    grid-template-columns: 1fr;
  }
}

.cx-cw-mini-card {
  padding: 1rem;
  background: #fff;
  border: 1px solid var(--cw-border, #e2e8f0);
  border-radius: 10px;
  text-align: center;
}

.cx-cw-mini-card h3 {
  margin: 0 0 0.35rem;
  font-size: 0.8125rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--cw-accent, #2563eb);
}

.cx-cw-mini-card p {
  margin: 0;
  font-size: 0.8125rem;
  color: #64748b;
}

.cx-cw-checklist {
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
}

.cx-cw-checklist li {
  position: relative;
  padding: 0.5rem 0 0.5rem 1.5rem;
  font-size: 0.9375rem;
  color: #475569;
  border-bottom: 1px solid var(--cw-border, #e2e8f0);
}

.cx-cw-checklist li:last-child {
  border-bottom: none;
}

.cx-cw-checklist li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--cw-accent, #2563eb);
  font-weight: 700;
}

.cx-cw-section-block--cta {
  padding: 1.5rem;
  border-radius: 14px;
  background: linear-gradient(135deg, #eff6ff 0%, #f5f3ff 100%);
  border: 1px solid rgba(37, 99, 235, 0.2);
}

.cx-page-color-wheel .cx-hcc-diagram__hint {
  margin-top: 0.65rem;
  font-size: 0.75rem;
  font-weight: 500;
  color: #64748b;
  text-align: center;
}

/* Related tools */
.cx-cw-related {
  margin-bottom: 3rem;
  padding: 2rem;
  border-radius: 20px;
  background: linear-gradient(180deg, #f8fafc 0%, #fff 100%);
  border: 1px solid var(--cw-border, #e2e8f0);
  box-shadow: var(--cw-shadow);
}

.cx-cw-related__head {
  margin-bottom: 1.5rem;
}

.cx-cw-related__title {
  margin: 0 0 0.35rem;
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #0f172a;
}

.cx-cw-related__lead {
  margin: 0;
  font-size: 0.9375rem;
  color: #64748b;
}

.cx-cw-related__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
}

.cx-cw-related__grid .cx-related-tool-card {
  padding: 1.15rem 1.25rem;
  border-radius: 14px;
  background: #fff;
  border: 1px solid var(--cw-border, #e2e8f0);
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
}

.cx-cw-related__grid .cx-related-tool-card:hover {
  border-color: var(--cw-accent, #2563eb);
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.12);
  transform: translateY(-3px);
}

.cx-cw-related__grid .cx-related-tool-card__icon {
  font-size: 1.5rem;
}

/* FAQ */
.cx-cw-faq {
  padding: 2.25rem 2rem;
  border-radius: 20px;
  background: #fff;
  border: 1px solid var(--cw-border, #e2e8f0);
  box-shadow: var(--cw-shadow);
}

.cx-cw-faq__head {
  margin-bottom: 1.5rem;
}

.cx-cw-faq__title {
  margin: 0 0 0.35rem;
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #0f172a;
}

.cx-cw-faq__lead {
  margin: 0;
  font-size: 0.9375rem;
  color: #64748b;
}

.cx-cw-faq__list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.cx-cw-faq__item {
  border: 1px solid var(--cw-border, #e2e8f0);
  border-radius: 12px;
  background: var(--cw-surface-2, #f8fafc);
  overflow: hidden;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.cx-cw-faq__item[open] {
  border-color: rgba(37, 99, 235, 0.4);
  box-shadow: 0 4px 16px rgba(37, 99, 235, 0.08);
  background: #fff;
}

.cx-cw-faq__summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.15rem;
  font-size: 0.9375rem;
  font-weight: 600;
  color: #0f172a;
  cursor: pointer;
  list-style: none;
}

.cx-cw-faq__summary::-webkit-details-marker {
  display: none;
}

.cx-cw-faq__q {
  flex: 1;
  text-align: left;
}

.cx-cw-faq__chevron {
  flex-shrink: 0;
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 50%;
  background: #e2e8f0;
  position: relative;
  transition: transform 0.2s, background 0.2s;
}

.cx-cw-faq__chevron::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 45%;
  width: 6px;
  height: 6px;
  border-right: 2px solid #475569;
  border-bottom: 2px solid #475569;
  transform: translate(-50%, -60%) rotate(45deg);
  transition: transform 0.2s;
}

.cx-cw-faq__item[open] .cx-cw-faq__chevron {
  background: var(--cw-accent, #2563eb);
}

.cx-cw-faq__item[open] .cx-cw-faq__chevron::after {
  border-color: #fff;
  transform: translate(-50%, -30%) rotate(-135deg);
}

.cx-cw-faq__answer {
  padding: 0 1.15rem 1.15rem;
  font-size: 0.9375rem;
  line-height: 1.6;
  color: #475569;
}

.cx-cw-faq__answer p {
  margin: 0;
}

.cx-cw-faq__answer a {
  color: var(--cw-accent, #2563eb);
  font-weight: 600;
}

/* Dark mode — page sections */
[data-theme='dark'] .cx-cw-page-hero,
[data-theme='dark'] .cx-cw-learn,
[data-theme='dark'] .cx-cw-related,
[data-theme='dark'] .cx-cw-faq {
  background: var(--cw-surface, #1a1d26);
  border-color: var(--cw-border, #2e3440);
}

[data-theme='dark'] .cx-cw-page-hero__title,
[data-theme='dark'] .cx-cw-learn__title,
[data-theme='dark'] .cx-cw-section-block__title,
[data-theme='dark'] .cx-cw-topic__title,
[data-theme='dark'] .cx-cw-related__title,
[data-theme='dark'] .cx-cw-faq__title,
[data-theme='dark'] .cx-cw-faq__summary {
  color: #eceef2;
}

[data-theme='dark'] .cx-cw-page-hero__lead,
[data-theme='dark'] .cx-cw-learn__lead,
[data-theme='dark'] .cx-cw-topic__body,
[data-theme='dark'] .cx-cw-faq__lead,
[data-theme='dark'] .cx-cw-faq__answer {
  color: #b4b8c4;
}

[data-theme='dark'] .cx-cw-page-hero__chips li,
[data-theme='dark'] .cx-cw-mini-card,
[data-theme='dark'] .cx-cw-faq__item[open] {
  background: var(--cw-surface-2, #22262f);
}

[data-theme='dark'] .cx-cw-topic,
[data-theme='dark'] .cx-cw-steps li,
[data-theme='dark'] .cx-cw-faq__item {
  background: #22262f;
}

[data-theme='dark'] .cx-cw-related__grid .cx-related-tool-card {
  background: var(--cw-surface-2, #22262f);
}
