/* Zamam article template v1 — responsive rich prose (.za) */

.za {
  --za-accent: #a78bfa;
  --za-teal: #2dd4bf;
  --za-gold: #c9a227;
  --za-surface: rgba(26, 35, 50, 0.65);
  --za-border: rgba(45, 63, 86, 0.55);
  font-size: 1.02rem;
  line-height: 1.85;
}

[data-theme="light"] .za {
  --za-surface: rgba(248, 250, 252, 0.95);
  --za-border: rgba(148, 163, 184, 0.45);
}

/* Embedded article HTML often ships light-only .za variables and targets [data-theme="dark"].
   Site dark mode is :root without data-theme="light"; on refresh that missed [data-theme="dark"].
   High-specificity remap fixes all articles without per-post edits. */
html:not([data-theme="light"]) .article-single__prose .za,
html[data-theme="dark"] .article-single__prose .za,
html:not([data-theme="light"]) .prose .za,
html[data-theme="dark"] .prose .za {
  --za-primary: #818cf8;
  --za-primary-hover: #6366f1;
  --za-text-main: #f8fafc;
  --za-text-muted: #94a3b8;
  --za-bg-page: transparent;
  --za-bg-card: #1e293b;
  --za-bg-card-alt: #0f172a;
  --za-border: #334155;
  --za-alert-bg: rgba(2, 132, 199, 0.15);
  --za-alert-text: #7dd3fc;
  --za-alert-border: #38bdf8;
  --za-tip-bg: rgba(202, 138, 4, 0.15);
  --za-tip-text: #fde047;
  --za-tip-border: #facc15;
  --za-warn-bg: rgba(239, 68, 68, 0.15);
  --za-warn-text: #fca5a5;
  --za-warn-border: #f87171;
  --za-surface: rgba(26, 35, 50, 0.65);
  --za-accent: #a78bfa;
  color: var(--za-text-main);
}

.article-single__canvas {
  width: 100%;
  margin-bottom: 2.5rem;
  padding-top: clamp(1.35rem, 3.5vw, 2.25rem);
}

/* ── Hero: two-column (content RTL-right · cover visual-left) ── */
.article-single__hero {
  margin-bottom: 1.85rem;
}

.article-single__hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(11rem, 34%);
  gap: 1.35rem 1.75rem;
  align-items: stretch;
  min-height: 13.5rem;
  padding: 1.15rem 1.25rem;
  border-radius: 20px;
  border: 1px solid var(--border);
  background:
    linear-gradient(145deg, rgba(139, 92, 246, 0.07) 0%, transparent 42%),
    linear-gradient(180deg, var(--surface) 0%, color-mix(in srgb, var(--surface-2) 65%, var(--surface)) 100%);
  box-shadow:
    0 18px 42px rgba(15, 23, 42, 0.1),
    0 0 0 1px rgba(139, 92, 246, 0.06);
}

[data-theme="light"] .article-single__hero-grid {
  background:
    linear-gradient(145deg, rgba(139, 92, 246, 0.06) 0%, transparent 45%),
    linear-gradient(180deg, #fff 0%, #f8fafc 100%);
  box-shadow:
    0 16px 40px rgba(15, 23, 42, 0.06),
    0 0 0 1px rgba(139, 92, 246, 0.08);
}

.article-single__hero-aside {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.65rem;
  min-width: 0;
}

.article-single__crumb {
  margin: 0 0 0.85rem;
  padding: 0.38rem 0.85rem;
  font-size: 0.74rem;
  line-height: 1.55;
  align-self: flex-start;
}

.article-single__crumb span[aria-current] {
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
  max-width: 14rem;
  color: var(--text);
  font-weight: 600;
}

.article-single__header {
  text-align: start;
  padding: 0;
}

.article-single__cat {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--accent-2);
  text-decoration: none;
  margin-bottom: 0.45rem;
  padding: 0.22rem 0.62rem;
  border-radius: 999px;
  border: 1px solid rgba(139, 92, 246, 0.28);
  background: rgba(139, 92, 246, 0.1);
  transition: border-color 0.18s ease, background 0.18s ease, color 0.18s ease;
}

.article-single__cat::before {
  content: "";
  width: 0.35rem;
  height: 0.35rem;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.85;
}

.article-single__cat:hover {
  color: var(--accent);
  border-color: rgba(139, 92, 246, 0.45);
  background: rgba(139, 92, 246, 0.16);
  text-decoration: none;
}

.article-single__title {
  font-size: clamp(1.25rem, 2.6vw, 1.85rem);
  font-weight: 800;
  line-height: 1.42;
  margin: 0 0 0.7rem;
  letter-spacing: -0.015em;
}

.article-single__hero-media {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  min-height: 0;
}

.article-single__cover-frame {
  margin: 0;
  width: 100%;
  height: 100%;
  min-height: 11rem;
  max-height: 13.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.45rem;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(139, 92, 246, 0.14);
  background:
    radial-gradient(circle at 30% 20%, rgba(139, 92, 246, 0.12), transparent 55%),
    linear-gradient(160deg, var(--surface-2), var(--surface));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.article-single__cover {
  display: block;
  width: 100%;
  height: 100%;
  max-height: 12.5rem;
  object-fit: contain;
  object-position: center;
  border-radius: 14px;
}

.article-single__preview-banner {
  margin: 0 0 1rem;
  text-align: center;
}

.article-single__preview-banner p {
  margin: 0.35rem 0 0;
}

.article-single__body {
  padding-top: 0;
}

.article-single__prose,
.article-single__body .prose {
  max-width: none;
  margin-inline: 0;
  width: 100%;
}

.article-single__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 2rem;
}

.article-layout {
  display: grid;
  gap: 1.75rem;
  align-items: start;
}

@media (min-width: 960px) {
  .article-layout--with-toc,
  .article-layout:has(.article-toc-wrap:not([hidden])) {
    grid-template-columns: minmax(11.5rem, 14.5rem) minmax(0, 1fr);
  }

  /*
   * CSS-only TOC sidebar (RTL: column 1 = visual right).
   * grid-row: span 200 — sticky needs a tall grid area; 1 / -1 fails when
   * rows are only implicit. Skip when JS already promoted the aside TOC.
   */
  .article-layout:not(.article-layout--with-toc):not(:has(.article-toc-wrap:not([hidden])))
    .article-single__prose > .za:has(> .za-toc),
  .article-layout:not(.article-layout--with-toc):not(:has(.article-toc-wrap:not([hidden])))
    .prose > .za:has(> .za-toc) {
    display: grid;
    grid-template-columns: minmax(11.5rem, 14.5rem) minmax(0, 1fr);
    column-gap: 1.75rem;
    align-items: start;
  }

  .article-layout:not(.article-layout--with-toc):not(:has(.article-toc-wrap:not([hidden])))
    .za:has(> .za-toc) > .za-toc {
    grid-column: 1;
    grid-row: 1 / span 200;
    position: sticky;
    top: calc(var(--header-h, 76px) + 0.75rem);
    align-self: start;
    height: max-content;
    max-height: calc(100vh - 6.5rem);
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-gutter: stable;
    z-index: 2;
    margin-bottom: 0;
    padding: 0.9rem 1rem;
    border-radius: 16px;
    border: 1px solid color-mix(in srgb, var(--accent) 22%, var(--border));
    background:
      linear-gradient(165deg, rgba(139, 92, 246, 0.1) 0%, transparent 55%),
      color-mix(in srgb, var(--surface) 94%, transparent);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.12);
  }

  .article-layout:not(.article-layout--with-toc):not(:has(.article-toc-wrap:not([hidden])))
    .za:has(> .za-toc) > .za-toc .za-toc__title {
    display: block;
    margin: 0 0 0.55rem;
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--accent-2, var(--za-accent));
    letter-spacing: 0.04em;
  }

  .article-layout:not(.article-layout--with-toc):not(:has(.article-toc-wrap:not([hidden])))
    .za:has(> .za-toc) > .za-toc a {
    display: block;
    font-size: 0.82rem;
    line-height: 1.5;
    color: var(--muted);
    padding: 0.22rem 0;
  }

  .article-layout:not(.article-layout--with-toc):not(:has(.article-toc-wrap:not([hidden])))
    .za:has(> .za-toc) > .za-toc a:hover {
    color: var(--text);
    background: rgba(139, 92, 246, 0.08);
    text-decoration: none;
  }

  .article-layout:not(.article-layout--with-toc):not(:has(.article-toc-wrap:not([hidden])))
    .za:has(> .za-toc) > :not(.za-toc) {
    grid-column: 2;
    min-width: 0;
  }
}

.article-toc-wrap {
  align-self: stretch;
  min-height: 0;
}

.article-toc {
  position: sticky;
  top: calc(var(--header-h, 76px) + 0.75rem);
  max-height: calc(100vh - 6.5rem);
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
  z-index: 2;
  padding: 0.9rem 1rem;
  border-radius: 16px;
  border: 1px solid color-mix(in srgb, var(--accent) 22%, var(--border));
  background:
    linear-gradient(165deg, rgba(139, 92, 246, 0.1) 0%, transparent 55%),
    color-mix(in srgb, var(--surface) 94%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.12);
}

.article-toc__title {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--accent-2);
  margin-bottom: 0.55rem;
  letter-spacing: 0.04em;
}

.article-toc ol {
  margin: 0;
  padding: 0 1rem 0 0;
  list-style: none;
  counter-reset: article-toc;
}

.article-toc li {
  margin-bottom: 0.3rem;
  counter-increment: article-toc;
}

.article-toc a {
  display: block;
  font-size: 0.82rem;
  line-height: 1.5;
  color: var(--muted);
  text-decoration: none;
  padding: 0.22rem 0;
  border-radius: 6px;
  transition: color 0.15s, background 0.15s;
}

.article-toc a::before {
  content: attr(data-toc-index) ". ";
  color: var(--accent-2);
  font-weight: 700;
  font-size: 0.72rem;
}

.article-toc a:hover,
.article-toc a.is-active {
  color: var(--text);
  background: rgba(139, 92, 246, 0.08);
}

.article-layout__main { min-width: 0; }

.article-hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  justify-content: flex-start;
  margin-top: 0;
  font-size: 0.78rem;
  color: var(--muted);
}

.article-hero-meta__item,
.article-hero-meta span {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.28rem 0.62rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  white-space: nowrap;
}

[data-theme="light"] .article-hero-meta__item,
[data-theme="light"] .article-hero-meta span {
  background: rgba(255, 255, 255, 0.72);
}

.article-cover-placeholder {
  margin: 0;
  width: 100%;
  height: 100%;
  min-height: 11rem;
  max-height: 13.5rem;
  border-radius: 16px;
  border: 1px dashed var(--border);
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.08), rgba(45, 212, 191, 0.06));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 0.82rem;
  text-align: center;
  padding: 0.75rem;
}

@media (max-width: 860px) {
  .article-single__hero-grid {
    grid-template-columns: 1fr;
    min-height: 0;
    gap: 1rem;
    padding: 1rem;
  }

  .article-single__hero-media {
    order: -1;
  }

  .article-single__cover-frame,
  .article-cover-placeholder {
    min-height: 9.5rem;
    max-height: 11.5rem;
  }

  .article-single__cover {
    max-height: 10.5rem;
  }

  .article-single__crumb span[aria-current] {
    max-width: none;
    -webkit-line-clamp: 2;
  }

  .article-single__title {
    font-size: clamp(1.2rem, 5vw, 1.55rem);
  }
}

@media (max-width: 480px) {
  .article-hero-meta__item,
  .article-hero-meta span {
    font-size: 0.72rem;
    padding: 0.22rem 0.5rem;
  }
}

.za-lead {
  position: relative;
  padding: 1.15rem 1.25rem 1.15rem 1.1rem;
  margin-bottom: 1.75rem;
  border-radius: 14px;
  border: 1px solid rgba(124, 58, 237, 0.35);
  background: linear-gradient(120deg, rgba(124, 58, 237, 0.12), rgba(15, 20, 25, 0.4));
  border-right: 4px solid var(--za-accent);
}

.za-lead p { margin: 0; color: var(--text); font-size: 1.08rem; }
.za-lead__badge {
  display: inline-block;
  font-size: 0.72rem;
  padding: 0.15rem 0.5rem;
  border-radius: 6px;
  background: rgba(45, 212, 191, 0.15);
  color: var(--za-teal);
  margin-bottom: 0.5rem;
}

.za-toc {
  margin-bottom: 2rem;
  padding: 1rem 1.15rem;
  border-radius: 14px;
  border: 1px solid color-mix(in srgb, var(--accent) 20%, var(--za-border));
  background:
    linear-gradient(145deg, rgba(124, 58, 237, 0.08), rgba(45, 212, 191, 0.04)),
    var(--za-surface);
}

/* Global .prose list margins must not affect zamam-v1 TOC / step lists */
.prose .za :is(.za-toc, .za-steps) :is(ol, ul) {
  margin: 0;
  padding: 0;
}

.prose .za-toc a {
  text-decoration: none !important;
}

@media (min-width: 960px) {
  .za-toc--inline-fallback,
  .article-layout--with-toc .za-toc,
  .article-layout:has(.article-toc-wrap:not([hidden])) .za-toc {
    display: none;
  }
}

.za-toc__title {
  margin: 0 0 0.75rem;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--za-accent);
  letter-spacing: 0.02em;
}

.za-toc ol {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: za-toc;
}

.za-toc li {
  margin-bottom: 0.5rem;
  counter-increment: za-toc;
}

.za-toc li:last-child {
  margin-bottom: 0;
}

.za-toc a {
  display: flex;
  align-items: baseline;
  gap: 0.35rem;
  width: 100%;
  color: var(--text);
  text-decoration: none;
  font-size: 0.9rem;
  line-height: 1.55;
  padding: 0.2rem 0;
}

.za-toc a::before {
  content: attr(data-toc-index, counter(za-toc)) ". ";
  color: var(--za-teal);
  font-weight: 700;
  font-size: 0.78rem;
}

.za-toc a:hover {
  color: var(--za-accent);
  text-decoration: underline;
}

.za-sec {
  margin-bottom: 1.35rem;
  padding: 1.25rem 1.35rem;
  border-radius: 18px;
  border: 1px solid color-mix(in srgb, var(--accent) 14%, var(--za-border));
  background:
    linear-gradient(180deg, rgba(139, 92, 246, 0.04) 0%, transparent 38%),
    color-mix(in srgb, var(--surface) 88%, transparent);
  scroll-margin-top: calc(var(--header-h, 76px) + 1rem);
}

.za-faq {
  scroll-margin-top: calc(var(--header-h, 76px) + 1rem);
}
.za-sec h2 {
  font-size: 1.35rem;
  margin: 0 0 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--za-border);
  color: var(--za-accent);
}
.za-sec h3 { font-size: 1.1rem; margin: 1.35rem 0 0.55rem; }
.za-sec p { margin: 0 0 1rem; color: var(--text); }
.za-sec ul, .za-sec ol { margin: 0 1.2rem 1rem 0; }
.za-sec li { margin-bottom: 0.4rem; }
.za-sec a { color: var(--za-teal); }

.za-cards {
  display: grid;
  gap: 0.85rem;
  margin: 1.25rem 0;
  grid-template-columns: 1fr;
}

@media (min-width: 560px) {
  .za-cards { grid-template-columns: repeat(3, 1fr); }
  .za-cards--2 { grid-template-columns: repeat(2, 1fr); }
}

.za-card {
  padding: 1rem;
  border-radius: 12px;
  border: 1px solid var(--za-border);
  background: var(--za-surface);
  transition: border-color 0.2s, transform 0.2s;
}

.za-card:hover { border-color: rgba(124, 58, 237, 0.45); transform: translateY(-2px); }
.za-card__icon { font-size: 1.35rem; display: block; margin-bottom: 0.45rem; }
.za-card__title { margin: 0 0 0.4rem; font-size: 0.95rem; font-weight: 600; }
.za-card__body { margin: 0; font-size: 0.88rem; color: var(--muted); line-height: 1.65; }

.za-steps { list-style: none; margin: 1.25rem 0; padding: 0; }
.za-step {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  padding: 0.85rem 0;
  border-bottom: 1px solid rgba(45, 63, 86, 0.35);
}
.za-step:last-child { border-bottom: none; }
.za-step__n {
  flex-shrink: 0;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 700;
  background: rgba(124, 58, 237, 0.2);
  color: var(--za-accent);
}
.za-step__t { flex: 1; padding-top: 0.25rem; }

.za-callout { margin: 1.25rem 0; padding: 0.9rem 1rem; border-radius: 10px; border: 1px solid var(--za-border); }
.za-callout--tip { border-color: rgba(45, 212, 191, 0.35); background: rgba(45, 212, 191, 0.08); }
.za-callout--warn { border-color: rgba(251, 191, 36, 0.4); background: rgba(251, 191, 36, 0.08); }
.za-callout--info { border-color: rgba(124, 58, 237, 0.35); background: rgba(124, 58, 237, 0.08); }
.za-callout p { margin: 0.35rem 0 0; }
.za-callout__label { font-size: 0.72rem; font-weight: 700; color: var(--muted); }

.za-table-wrap {
  overflow-x: auto;
  margin: 1.25rem 0;
  border-radius: 12px;
  border: 1px solid var(--za-border);
  background: color-mix(in srgb, var(--surface) 90%, transparent);
}

.za-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.za-table th, .za-table td {
  padding: 0.65rem 0.75rem;
  text-align: right;
  border-bottom: 1px solid var(--za-border);
  vertical-align: top;
}
.za-table th {
  background: rgba(124, 58, 237, 0.14);
  color: var(--za-accent);
  font-weight: 700;
  font-size: 0.82rem;
  white-space: nowrap;
}
.za-table tbody tr:hover td { background: rgba(139, 92, 246, 0.05); }
.za-table tr:last-child td { border-bottom: none; }

.za-compare { display: grid; gap: 1rem; margin: 1.25rem 0; }
@media (min-width: 600px) { .za-compare { grid-template-columns: 1fr 1fr; } }
.za-compare__col { padding: 1rem; border-radius: 12px; border: 1px solid var(--za-border); background: var(--za-surface); }
.za-compare__col h4 { margin: 0 0 0.35rem; color: var(--za-gold); }
.za-compare__sub { margin: 0 0 0.65rem; font-size: 0.85rem; color: var(--muted); }

.za-tl { margin: 1.25rem 0; border-right: 2px solid rgba(124, 58, 237, 0.35); padding-right: 1rem; }
.za-tl__item { margin-bottom: 1rem; }
.za-tl__when { display: block; font-size: 0.78rem; font-weight: 600; color: var(--za-teal); margin-bottom: 0.25rem; }

.za-faq { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--za-border); }
.za-faq h2 { font-size: 1.25rem; color: var(--za-accent); margin-bottom: 1rem; }
.za-faq__item { margin-bottom: 0.5rem; border: 1px solid var(--za-border); border-radius: 10px; background: var(--za-surface); overflow: hidden; }
.za-faq__item summary { cursor: pointer; padding: 0.85rem 1rem; font-weight: 600; list-style: none; }
.za-faq__item summary::-webkit-details-marker { display: none; }
.za-faq__item[open] summary { border-bottom: 1px solid var(--za-border); }
.za-faq__item p { margin: 0; padding: 0.85rem 1rem; color: var(--muted); font-size: 0.92rem; }

.za-cta {
  margin-top: 2rem;
  padding: 1.35rem 1.5rem;
  border-radius: 14px;
  text-align: center;
  border: 1px solid rgba(124, 58, 237, 0.4);
  background: linear-gradient(160deg, rgba(124, 58, 237, 0.15), rgba(15, 20, 25, 0.5));
}
.za-cta h3 { margin: 0 0 0.5rem; font-size: 1.15rem; }
.za-cta p { margin: 0 0 1rem; color: var(--muted); font-size: 0.92rem; }
.za-cta__btn {
  display: inline-block;
  padding: 0.55rem 1.25rem;
  border-radius: 10px;
  background: var(--accent, #7c3aed);
  color: #fff !important;
  text-decoration: none !important;
  font-weight: 600;
}

.za-mod-cta {
  --mod-ink: #f4f1ff;
  --mod-muted: rgba(244, 241, 255, 0.78);
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  gap: 1.15rem;
  margin: 1.75rem 0 0.35rem;
  padding: clamp(1.15rem, 3.2vw, 1.7rem);
  border-radius: 22px;
  border: 1px solid rgba(167, 139, 250, 0.38);
  color: var(--mod-ink);
  background:
    radial-gradient(120% 90% at 100% 0%, rgba(45, 212, 191, 0.16), transparent 42%),
    radial-gradient(90% 80% at 0% 100%, rgba(201, 162, 39, 0.14), transparent 46%),
    linear-gradient(155deg, #14101f 0%, #1c1630 48%, #121826 100%);
  box-shadow:
    0 18px 40px rgba(8, 6, 18, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}
.za-mod-cta--dusk {
  background:
    radial-gradient(110% 80% at 0% 0%, rgba(167, 139, 250, 0.22), transparent 44%),
    radial-gradient(80% 70% at 100% 100%, rgba(244, 114, 182, 0.12), transparent 48%),
    linear-gradient(155deg, #171325 0%, #1a142c 52%, #10141f 100%);
}
.za-mod-cta__glow {
  position: absolute;
  inset: auto -18% -40% auto;
  width: 14rem;
  height: 14rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(167, 139, 250, 0.28), transparent 68%);
  pointer-events: none;
  z-index: 0;
}
.za-mod-cta__copy,
.za-mod-cta__preview { position: relative; z-index: 1; min-width: 0; }
.za-mod-cta__kicker {
  margin: 0 0 0.45rem;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #99f6e4;
}
.za-mod-cta h3 {
  margin: 0 0 0.55rem;
  font-size: clamp(1.12rem, 2.6vw, 1.38rem);
  line-height: 1.45;
  color: #fff;
}
.za-mod-cta__copy > p {
  margin: 0 0 0.95rem;
  color: var(--mod-muted);
  font-size: 0.92rem;
  line-height: 1.8;
}
.za-mod-cta__pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0 0 1.05rem;
  padding: 0;
  list-style: none;
}
.za-mod-cta__pills li {
  padding: 0.28rem 0.7rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  font-size: 0.78rem;
  font-weight: 600;
}
.za-mod-cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  align-items: center;
}
.za-mod-cta__btn,
.za-mod-cta__ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.7rem;
  padding: 0.55rem 1.15rem;
  border-radius: 12px;
  font-weight: 700;
  font-size: 0.92rem;
  text-decoration: none !important;
}
.za-mod-cta__btn {
  background: linear-gradient(180deg, #c4b5fd, #7c3aed);
  color: #12081f !important;
  box-shadow: 0 8px 22px rgba(124, 58, 237, 0.35);
}
.za-mod-cta__btn:hover { filter: brightness(1.06); }
.za-mod-cta__ghost {
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #e9e4ff !important;
  background: rgba(255, 255, 255, 0.04);
}
.za-mod-cta__preview {
  padding: 0.95rem 1rem;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(8, 8, 18, 0.35);
  backdrop-filter: blur(10px);
}
.za-mod-cta__preview-k {
  margin: 0 0 0.7rem;
  font-size: 0.72rem;
  font-weight: 700;
  color: #fde68a;
}
.za-mod-cta__preview ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.55rem;
}
.za-mod-cta__preview li {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  align-items: baseline;
  padding-bottom: 0.45rem;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.1);
  font-size: 0.82rem;
}
.za-mod-cta__preview li:last-child { border-bottom: 0; padding-bottom: 0; }
.za-mod-cta__preview span { color: rgba(244, 241, 255, 0.7); }
.za-mod-cta__preview strong { color: #fff; font-weight: 700; }

[data-theme="light"] .za-mod-cta {
  --mod-ink: #1e1b4b;
  --mod-muted: #4338ca;
  border-color: rgba(124, 58, 237, 0.22);
  background:
    radial-gradient(120% 90% at 100% 0%, rgba(45, 212, 191, 0.14), transparent 42%),
    linear-gradient(155deg, #f5f3ff 0%, #eef2ff 55%, #ecfeff 100%);
  box-shadow: 0 14px 32px rgba(91, 33, 182, 0.1);
  color: var(--mod-ink);
}
[data-theme="light"] .za-mod-cta h3 { color: #312e81; }
[data-theme="light"] .za-mod-cta__kicker { color: #0f766e; }
[data-theme="light"] .za-mod-cta__pills li {
  background: rgba(124, 58, 237, 0.08);
  border-color: rgba(124, 58, 237, 0.16);
}
[data-theme="light"] .za-mod-cta__ghost {
  color: #3730a3 !important;
  border-color: rgba(79, 70, 229, 0.22);
}
[data-theme="light"] .za-mod-cta__preview {
  background: rgba(255, 255, 255, 0.72);
  border-color: rgba(124, 58, 237, 0.14);
}
[data-theme="light"] .za-mod-cta__preview span { color: #64748b; }
[data-theme="light"] .za-mod-cta__preview strong { color: #1e1b4b; }

@media (min-width: 760px) {
  .za-mod-cta {
    grid-template-columns: minmax(0, 1.2fr) minmax(12rem, 0.8fr);
    align-items: stretch;
  }
}
@media (max-width: 759px) {
  .za-mod-cta { border-radius: 18px; }
  .za-mod-cta__btn,
  .za-mod-cta__ghost { width: 100%; }
}
@media (max-width: 480px) {
  .za-mod-cta { padding: 1rem; }
  .za-mod-cta__preview { order: -1; }
}
@media (prefers-reduced-motion: reduce) {
  .za-mod-cta__btn { box-shadow: none; }
  .za-mod-cta__btn:hover { filter: none; }
}

.za-figure { margin: 1.5rem 0; }
.za-figure--slot .za-figure__ph {
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  border: 1px dashed var(--za-border);
  background: rgba(255, 255, 255, 0.02);
  min-height: 4rem;
}
.za-figure img { width: 100%; border-radius: 12px; border: 1px solid var(--za-border); }
.za-figure figcaption { margin-top: 0.45rem; font-size: 0.78rem; color: var(--muted); text-align: center; }

.article-qa-section { margin-top: 0; }
.prose .za { max-width: none; }
