/* CSS isolation namespace anchor */
.theme-mm-psy .blog-article__body { /* inherits site tokens */ }
/*
 * TEA-Design — Blog ↔ site style bridge (DEFAULT for every new theme).
 * Contract: shared/blog-theme-style-parity-contract.md
 * Seed: teya_blog_site_parity_ensure.py → assets/css/teya-blog-parity.css
 *
 * AXIOM: one visual system. This file does NOT invent a second brand —
 * it maps blog wrappers onto site tokens (--font-*, --container-max, --cta-*,
 * --text-*, --radius-*) and service chrome (.svc-longread__figure, .svc-table,
 * .faq-section, .svc-cta-banner).
 */

/* --- Shell width = homepage / services --- */
.blog-article__body {
  width: var(--container-max, 1200px);
  max-width: var(--container-max, 1200px);
  margin-inline: auto;
  box-sizing: border-box;
}

.prose,
.entry-content,
.blog-article__content,
.article__body {
  max-width: none;
  width: 100%;
  font-family: var(--font-body, inherit);
  color: var(--text-info-color, var(--body-text, inherit));
  line-height: var(--text-info-line, var(--leading-body, 1.65));
}

/* --- Typography = site tokens (no blog-only fonts) --- */
.blog-article__content :where(h2),
.blog-article__content.prose :where(h2),
.blog-article__content.entry-content :where(h2) {
  font-family: var(--font-display, var(--font-body, inherit));
  font-weight: 700;
  font-size: var(--text-h2, clamp(1.35rem, 2.5vw, 1.85rem));
  line-height: 1.25;
  color: var(--text-info-color, inherit);
  margin: 1.75rem 0 0.85rem;
}

.blog-article__content :where(h2):first-child {
  margin-top: 0;
}

.blog-article__content :where(h3),
.blog-article__content.prose :where(h3) {
  font-family: var(--font-display, var(--font-body, inherit));
  font-size: var(--text-h3, clamp(1.1rem, 2vw, 1.35rem));
  font-weight: 600;
  margin: 1.5rem 0 0.5rem;
  color: var(--text-info-color, inherit);
}

.blog-article__content :where(p) {
  margin: 0 0 0.9rem;
  line-height: var(--text-info-line, var(--leading-body, 1.65));
}

.blog-article__content :where(a) {
  color: var(--cta-primary, var(--color-accent, inherit));
  text-decoration: underline;
  text-underline-offset: 2px;
}

.blog-article__content :where(ul),
.blog-article__content :where(ol),
.prose :where(ul),
.prose :where(ol),
.entry-content :where(ul),
.entry-content :where(ol) {
  margin: 0 0 1rem 1.15rem;
  padding-left: 0;
}

.blog-article__content :where(li),
.prose :where(li),
.entry-content :where(li) {
  margin-bottom: 0.35rem;
}

/* --- Tables = site table chrome (blog-table / svc-table) --- */
.blog-article__content :where(table),
.entry-content :where(table),
.prose :where(table),
table.blog-table,
.blog-table,
.article__table,
.blog-article__content table.svc-table {
  margin-block: 2.5rem !important;
  margin-inline: 0 !important;
  width: 100%;
  max-width: none;
  display: table;
  border-collapse: collapse;
  font-size: 0.92rem;
}

.blog-article__content > :where(p):has(+ table),
.entry-content > :where(p):has(+ table),
.prose > :where(p):has(+ table) {
  margin-bottom: 0 !important;
}

.blog-article__content > table + :where(p),
.entry-content > table + :where(p),
.prose > table + :where(p) {
  margin-top: 0 !important;
}

.blog-article__content table th,
.blog-article__content table td,
.blog-table th,
.blog-table td {
  padding: 0.75rem 0.9rem;
  border: 1px solid color-mix(in srgb, currentColor 12%, transparent);
  text-align: left;
  vertical-align: top;
}

.blog-article__content table thead th,
.blog-table thead th,
.blog-table tr:first-child th {
  background: color-mix(in srgb, currentColor 4%, transparent);
  font-weight: 600;
}

/* --- Figures = service longread (full column, cover, 3:2) --- */
.blog-article__content figure.svc-longread__figure,
.blog-article__content figure.blog-banner,
.blog-article__content .svc-longread__figure,
.blog-article__content figure.article__figure {
  display: block;
  width: 100% !important;
  max-width: none !important;
  margin: 1.25rem 0 1.5rem;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  border-radius: var(--radius-card, 8px);
  box-sizing: border-box;
}

.blog-article__content figure.svc-longread__figure :where(img),
.blog-article__content figure.blog-banner :where(img),
.blog-article__content .svc-longread__figure :where(img),
.blog-article__content figure.article__figure :where(img) {
  display: block;
  width: 100% !important;
  max-width: none !important;
  height: 100% !important;
  max-height: none !important;
  object-fit: cover;
  object-position: center center;
  border-radius: var(--radius-card, 8px);
  margin: 0;
}

.blog-article__content > :where(img) {
  display: block;
  width: 100% !important;
  max-width: none !important;
  height: auto;
  margin: 1.25rem 0 1.5rem;
  border-radius: var(--radius-card, 8px);
}

@media (max-width: 767px) {
  .blog-article__content figure.svc-longread__figure,
  .blog-article__content figure.blog-banner,
  .blog-article__content figure.article__figure {
    aspect-ratio: 4 / 3;
  }
}

/* --- CTA = service banner class (layout only; colors from site) --- */
.blog-article__body > .svc-cta-banner.cta-band--shell,
.blog-article__body > .cta-band.cta-band--shell {
  margin-block: 1.75rem 1.35rem;
  width: 100%;
}

/* --- FAQ = site faq-section (full content width, no 800px center) --- */
.blog-article__body > .faq-section,
.blog-article__body > .faq-section.article-faq,
.blog-article .faq-section {
  margin: 1.25rem 0 0.5rem !important;
  padding: 0 !important;
  max-width: none !important;
  width: 100% !important;
  border-radius: var(--radius-card, 12px);
  overflow: hidden;
}

.blog-article__body > .faq-section .faq__intro,
.blog-article__body > .faq-section .faq-list,
.blog-article__body > .faq-section .faq__list,
.blog-article .faq-section .faq__intro,
.blog-article .faq-section .faq-list,
.blog-article .faq-section .faq__list,
.blog-article .faq-list,
.blog-article .faq__list {
  max-width: none !important;
  width: 100% !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

/* --- Cover typography uses site fonts --- */
.blog-article-cover__title {
  font-family: var(--font-display, var(--font-body, inherit));
  color: inherit;
}

.blog-article-cover__teaser,
.blog-article-cover__label {
  font-family: var(--font-body, inherit);
}

/* Gate markers (do not remove): --container-max blog-article__content */
