/*
 * GEC Editorial Page (templates/editorial-page.php): long-form Page body, and the post list of a
 * "Trang trụ cột" (TopicHub) under it. Cards are the shared .gec-post-card (editorial.css); type
 * and spacing come from theme tokens only.
 */

/* Body: the block editor's paragraphs, headings, lists and tables, in one vertical rhythm. */
.gec-editorial__body > * + * {
  margin-block-start: var(--space-4);
}

.gec-editorial__body > h2 {
  margin-block-start: var(--space-8);
  font-size: var(--font-size-2xl);
  line-height: var(--line-height-snug);
}

.gec-editorial__body > h3 {
  margin-block-start: var(--space-6);
  font-size: var(--font-size-xl);
  line-height: var(--line-height-snug);
}

.gec-editorial__body p,
.gec-editorial__body li {
  line-height: var(--line-height-relaxed);
}

.gec-editorial__body ul,
.gec-editorial__body ol {
  padding-inline-start: var(--space-6);
}

.gec-editorial__body li + li {
  margin-block-start: var(--space-2);
}

.gec-editorial__body .wp-block-table table {
  inline-size: 100%;
  border-collapse: collapse;
}

.gec-editorial__body .wp-block-table td {
  padding: var(--space-3) var(--space-4);
  border: 1px solid var(--color-border);
  vertical-align: top;
  line-height: var(--line-height-normal);
}

.gec-editorial__body .wp-block-table td:first-child {
  inline-size: 30%;
  font-weight: var(--font-weight-bold);
}

/* Topic hub: the posts of the hub's tag. */
.gec-topic-hub {
  margin-block-start: var(--space-8);
  padding-block-start: var(--space-6);
  border-block-start: 1px solid var(--color-border);
}

.gec-topic-hub__title {
  margin: 0 0 var(--space-5);
  font-size: var(--font-size-2xl);
  line-height: var(--line-height-snug);
}

.gec-topic-hub__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-5);
}

.gec-topic-hub .gec-post-card__title {
  font-size: var(--font-size-lg);
  line-height: var(--line-height-snug);
}

.gec-topic-hub .gec-post-card__excerpt {
  font-size: var(--font-size-sm);
  line-height: var(--line-height-normal);
}

@media (max-width: 700px) {
  .gec-topic-hub__grid {
    grid-template-columns: 1fr;
  }
}
