.wck-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .35em;
  margin: .25em .35em .25em 0;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none !important;
  transition: color .2s ease, background-color .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.wck-button-sm {
  min-height: 32px;
  padding: 0 12px;
  font-size: .88em;
}

.wck-button-md {
  min-height: 40px;
  padding: 0 16px;
}

.wck-button-lg {
  min-height: 48px;
  padding: 0 22px;
  font-size: 1.06em;
}

.wck-button-primary {
  background: var(--wck-accent, #2563eb);
  color: #fff !important;
  box-shadow: 0 10px 20px rgba(37, 99, 235, .18);
}

.wck-button-secondary {
  background: #111827;
  color: #fff !important;
}

.wck-button-ghost {
  border-color: #cbd5e1;
  background: #fff;
  color: #1f2937 !important;
}

.wck-button-danger {
  background: #dc2626;
  color: #fff !important;
}

.wck-alert {
  margin: 1.25em 0;
  padding: 16px 18px;
  border: 1px solid #dbe3f0;
  border-left-width: 4px;
  border-radius: 8px;
  background: #f8fafc;
}

.wck-alert strong {
  display: block;
  margin-bottom: 4px;
}

.wck-alert-info {
  border-left-color: var(--wck-accent, #2563eb);
}

.wck-alert-success {
  border-left-color: #16a34a;
  background: #f0fdf4;
}

.wck-alert-warning {
  border-left-color: #f59e0b;
  background: #fffbeb;
}

.wck-alert-danger {
  border-left-color: #dc2626;
  background: #fef2f2;
}

.wck-card {
  margin: 1.35em 0;
  padding: 20px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(15, 23, 42, .08);
}

.wck-card h3 {
  margin-top: 0;
}

.wck-badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 9px;
  border-radius: 999px;
  font-size: .85em;
  font-weight: 700;
  vertical-align: baseline;
}

.wck-badge-info {
  background: #dbeafe;
  color: #1d4ed8;
}

.wck-badge-success {
  background: #dcfce7;
  color: #15803d;
}

.wck-badge-warning {
  background: #fef3c7;
  color: #b45309;
}

.wck-badge-danger {
  background: #fee2e2;
  color: #b91c1c;
}

.wck-mark {
  padding: .12em .28em;
  border-radius: 5px;
  background: #fef08a;
  color: inherit;
}

.wck-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin: 1.35em 0;
}

.wck-column {
  min-width: 0;
}

.wck-quote {
  margin: 1.35em 0;
  padding: 16px 20px;
  border-left: 4px solid var(--wck-accent, #2563eb);
  border-radius: 0 8px 8px 0;
  background: #f8fafc;
}

.wck-quote cite {
  display: block;
  margin-top: .75em;
  color: #64748b;
  font-style: normal;
}

.wck-details {
  margin: 1.25em 0;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #fff;
}

.wck-details summary {
  padding: 13px 16px;
  color: #111827;
  font-weight: 700;
  cursor: pointer;
}

.wck-details > div {
  padding: 0 16px 16px;
}

.wck-download {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: 1.25em 0;
  padding: 16px;
  border: 1px solid #dbe3f0;
  border-radius: 8px;
  background: #f8fafc;
  color: #111827 !important;
  text-decoration: none !important;
}

.wck-download strong,
.wck-download small {
  display: block;
}

.wck-download small {
  margin-top: 3px;
  color: #64748b;
}

.wck-download em {
  flex: 0 0 auto;
  padding: 7px 11px;
  border-radius: 7px;
  background: var(--wck-accent, #2563eb);
  color: #fff;
  font-style: normal;
  font-weight: 700;
}

.wck-progress {
  margin: 1.25em 0;
}

.wck-progress > div {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 7px;
  color: #334155;
  font-size: .95em;
}

.wck-progress {
  position: relative;
  height: 9px;
  border-radius: 999px;
  background: #e5e7eb;
}

.wck-progress > div {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 13px;
}

.wck-progress i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--wck-accent, #2563eb);
}

.wck-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 2em 0;
  color: #64748b;
  font-size: .92em;
  font-weight: 700;
}

.wck-divider:before,
.wck-divider:after {
  content: "";
  flex: 1;
  height: 1px;
  background: #e5e7eb;
}

.wck-spacer-sm {
  height: 14px;
}

.wck-spacer-md {
  height: 28px;
}

.wck-spacer-lg {
  height: 46px;
}

.wck-figure {
  margin: 1.35em 0;
}

.wck-figure img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 8px;
}

.wck-figure figcaption {
  margin-top: 8px;
  color: #64748b;
  font-size: .92em;
  text-align: center;
}

.wck-video {
  position: relative;
  margin: 1.35em 0;
  overflow: hidden;
  border-radius: 8px;
  background: #0f172a;
}

.wck-video:before {
  content: "";
  display: block;
}

.wck-video-16x9:before {
  padding-top: 56.25%;
}

.wck-video-4x3:before {
  padding-top: 75%;
}

.wck-video-1x1:before {
  padding-top: 100%;
}

.wck-video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.wck-steps {
  counter-reset: wck-step;
  margin: 1.35em 0;
  padding: 0;
  list-style: none;
}

.wck-steps li {
  position: relative;
  min-height: 42px;
  margin: 0 0 18px;
  padding-left: 52px;
}

.wck-steps li:before {
  counter-increment: wck-step;
  content: counter(wck-step);
  position: absolute;
  left: 0;
  top: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--wck-accent, #2563eb);
  color: #fff;
  font-weight: 800;
}

.wck-steps li:after {
  content: "";
  position: absolute;
  left: 15px;
  top: 38px;
  bottom: -18px;
  width: 2px;
  background: #e5e7eb;
}

.wck-steps li:last-child:after {
  display: none;
}

.wck-steps strong {
  display: block;
  margin-bottom: 4px;
  color: #111827;
}

.wck-tabs {
  margin: 1.35em 0;
}

.wck-tabs > input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.wck-tab-labels {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}

.wck-tab-labels label {
  padding: 8px 12px;
  border: 1px solid #dbe3f0;
  border-radius: 8px;
  background: #fff;
  color: #334155;
  cursor: pointer;
  font-weight: 700;
}

.wck-tab-panels {
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #fff;
}

.wck-tab-panels section {
  display: none;
  padding: 18px;
}

.wck-tabs > input:nth-of-type(1):checked ~ .wck-tab-labels label:nth-of-type(1),
.wck-tabs > input:nth-of-type(2):checked ~ .wck-tab-labels label:nth-of-type(2),
.wck-tabs > input:nth-of-type(3):checked ~ .wck-tab-labels label:nth-of-type(3),
.wck-tabs > input:nth-of-type(4):checked ~ .wck-tab-labels label:nth-of-type(4),
.wck-tabs > input:nth-of-type(5):checked ~ .wck-tab-labels label:nth-of-type(5) {
  border-color: var(--wck-accent, #2563eb);
  background: #eff6ff;
  color: var(--wck-accent, #2563eb);
}

.wck-tabs > input:nth-of-type(1):checked ~ .wck-tab-panels section:nth-of-type(1),
.wck-tabs > input:nth-of-type(2):checked ~ .wck-tab-panels section:nth-of-type(2),
.wck-tabs > input:nth-of-type(3):checked ~ .wck-tab-panels section:nth-of-type(3),
.wck-tabs > input:nth-of-type(4):checked ~ .wck-tab-panels section:nth-of-type(4),
.wck-tabs > input:nth-of-type(5):checked ~ .wck-tab-panels section:nth-of-type(5) {
  display: block;
}

.wck-timeline {
  position: relative;
  margin: 1.35em 0;
  padding-left: 28px;
}

.wck-timeline:before {
  content: "";
  position: absolute;
  left: 8px;
  top: 4px;
  bottom: 4px;
  width: 2px;
  background: #e5e7eb;
}

.wck-event {
  position: relative;
  margin-bottom: 18px;
}

.wck-event:before {
  content: "";
  position: absolute;
  left: -26px;
  top: 7px;
  width: 12px;
  height: 12px;
  border: 3px solid #fff;
  border-radius: 50%;
  background: var(--wck-accent, #2563eb);
  box-shadow: 0 0 0 1px #dbe3f0;
}

.wck-event time {
  display: inline-block;
  margin-bottom: 4px;
  color: #64748b;
  font-size: .9em;
}

.wck-event strong {
  display: block;
  color: #111827;
}

.wck-gallery {
  display: grid;
  gap: 10px;
  margin: 1.35em 0;
}

.wck-gallery-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.wck-gallery-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.wck-gallery-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.wck-gallery img {
  width: 100%;
  height: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 8px;
}

.wck-linkcard {
  display: block;
  margin: 1.25em 0;
  padding: 16px;
  border: 1px solid #dbe3f0;
  border-radius: 8px;
  background: #fff;
  color: #111827 !important;
  text-decoration: none !important;
}

.wck-linkcard strong,
.wck-linkcard span,
.wck-linkcard em {
  display: block;
}

.wck-linkcard span {
  margin-top: 4px;
  color: #475569;
}

.wck-linkcard em {
  margin-top: 8px;
  color: var(--wck-accent, #2563eb);
  font-size: .9em;
  font-style: normal;
}

.wck-kbd {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 7px;
  border: 1px solid #cbd5e1;
  border-bottom-width: 2px;
  border-radius: 6px;
  background: #f8fafc;
  color: #111827;
  font-family: Menlo, Monaco, Consolas, "Courier New", monospace;
  font-size: .88em;
}

.wck-text-center {
  text-align: center;
}

.wck-text-right {
  text-align: right;
}

.wck-text-small {
  color: #64748b;
  font-size: .92em;
}

@media (max-width: 720px) {
  .wck-columns {
    grid-template-columns: 1fr;
  }

  .wck-download {
    align-items: flex-start;
    flex-direction: column;
  }

  .wck-gallery-3,
  .wck-gallery-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
