/* ── Section shell ──────────────────────────────── */
.section {
  padding: var(--space-16) var(--gutter);
}
.section--surface { background-color: var(--color-surface); }
.section--bg      { background-color: var(--color-bg); }

.section__inner {
  max-width: 1200px;
  margin: 0 auto;
}

/* ── Hero ───────────────────────────────────────── */
.cs-meta {
  display: flex;
  gap: var(--space-4);
  margin-bottom: var(--space-8);
}

.cs-meta__tag {
  font-family: var(--font-body);
  font-size: var(--text-xxs);
  font-weight: var(--weight-bold);
  color: var(--color-text-muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.cs-meta__tag + .cs-meta__tag::before {
  content: '·';
  margin-right: var(--space-4);
}

.cs-title {
  font-family: var(--font-heading);
  font-size: clamp(var(--text-2xl), 7vw, var(--text-xl));
  font-weight: var(--weight-bold);
  line-height: var(--leading-tight);
  color: var(--color-text-muted);
  margin-bottom: var(--space-8);
}

.cs-overview {
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: var(--weight-regular);
  color: var(--color-text);
  line-height: var(--leading-loose);
  max-width: 700px;
  margin-bottom: var(--space-12);
}

/* ── Attributes row ─────────────────────────────── */
.cs-attrs {
  display: flex;
  gap: var(--space-12);
  padding-top: var(--space-8);
  border-top: 1px solid var(--color-border);
}

.cs-attr__label {
  font-family: var(--font-body);
  font-size: var(--text-xxs);
  font-weight: var(--weight-bold);
  color: var(--color-text-muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: var(--space-1);
}

.cs-attr__value {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: var(--weight-regular);
  color: var(--color-text);
}

/* ── Inner sections ─────────────────────────────── */
.cs-section-title {
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  font-weight: var(--weight-bold);
  line-height: var(--leading-normal);
  color: var(--color-text-muted);
  margin-bottom: var(--space-12);
}

.cs-body {
  min-height: 120px;
}

.cs-body--narrow {
  max-width: 66.66%;
}

.cs-body > p,
.cs-body > .cs-block__group > p {
  margin-bottom: var(--space-6);
}
.cs-body > p:last-child,
.cs-body > .cs-block__group > p:last-child {
  margin-bottom: 0;
}

/* ── Framework — paradigm group ─────────────────── */
.cs-paradigm {
  padding-top: var(--space-12);
  padding-bottom: var(--space-16);
  border-top: 1px solid var(--color-border);
}

.cs-paradigm__title {
  font-family: var(--font-body);
  font-size: var(--text-lg);
  font-weight: var(--weight-bold);
  line-height: var(--leading-normal);
  color: var(--color-text-muted);
  margin-bottom: var(--space-12);
}

/* ── Framework — content block ───────────────────── */
.cs-block {
  margin-bottom: var(--space-12);
}
.cs-block:last-child { margin-bottom: 0; }

.cs-block__title {
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: var(--weight-bold);
  line-height: var(--leading-normal);
  color: var(--color-text);
  margin-bottom: var(--space-8);
}

.cs-block__layout {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: var(--space-8);
  align-items: start;
}
.cs-block__layout--wide-image {
  grid-template-columns: 1fr 2fr;
}

.cs-block__text {
  font-size: var(--text-sm);
  color: var(--color-text);
  line-height: var(--leading-loose);
}

.cs-block__text p {
  margin-bottom: var(--space-6);
}
.cs-block__text p:last-child {
  margin-bottom: 0;
}

.cs-block__group {
  margin-bottom: var(--space-6);
}
.cs-block__group:last-child {
  margin-bottom: 0;
}

.cs-block__reframe {
  font-weight: var(--weight-bold);
  color: var(--color-text);
}

.cs-block__secondary,
.cs-block__cite {
  font-size: var(--text-xxs);
  color: var(--color-text-secondary);
}

.cs-block__image {
  border-radius: 12px;
  border: 1px solid var(--color-border);
  background-color: var(--color-surface);
  width: 100%;
  object-fit: contain;
}

/* ── Figure with caption ───────────────────────── */
.cs-figure {
  border-radius: 12px;
  border: 1px solid var(--color-border);
  background-color: var(--color-surface);
  overflow: hidden;
}

.cs-figure img {
  width: 100%;
  object-fit: contain;
  display: block;
  padding: var(--space-4);
  box-sizing: border-box;
}

.cs-figure__caption {
  padding: var(--space-3) var(--space-4);
  border-top: 1px solid var(--color-border);
  font-family: var(--font-body);
  font-size: var(--text-xxs);
  color: var(--color-text-secondary);
  line-height: var(--leading-loose);
  width: 100%;
}

/* ── Expertise viz card ─────────────────────────── */
.viz-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  width: 100%;
  overflow: hidden;
}
.viz-section { padding: var(--space-6); }
.viz-divider  { height: 1px; background: var(--color-border); }
.viz-annotation {
  font-size: var(--text-xxs);
  color: var(--color-text-secondary);
  text-align: center;
  margin-top: var(--space-3);
  line-height: var(--leading-loose);
}
.viz-card svg { display: block; width: 100%; height: auto; }

/* ── Responsive ─────────────────────────────────── */
@media (max-width: 860px) {
  .cs-attrs {
    flex-direction: column;
    gap: var(--space-6);
  }
  .cs-block__layout {
    grid-template-columns: 1fr;
  }
  .cs-body--narrow {
    max-width: 100%;
  }
}

@media (max-width: 480px) {
  .cs-title { font-size: var(--text-lg); }
  .cs-overview { font-size: var(--text-sm); }
  .cs-section-title { font-size: var(--text-base); }
}
