.helloch-editorial-badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  background: var(--type-color, #6366f1);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1.4;
}

.helloch-editorial-type-section {
  border-left: 4px solid var(--type-color, #6366f1);
  padding-left: var(--helloch-space-md);
  margin-bottom: var(--helloch-space-2xl);
}

.helloch-editorial-type-section__head {
  margin-bottom: var(--helloch-space-lg);
}

.helloch-editorial-type-section__title {
  margin: 0;
}

.helloch-card .helloch-editorial-badge {
  margin-bottom: 0.5rem;
}

.helloch-article-header__meta .helloch-editorial-badge {
  text-transform: uppercase;
}

.helloch-article-author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: var(--helloch-space-md);
}

.helloch-article-author__avatar {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  object-fit: cover;
}

.helloch-article-author__name {
  font-weight: 600;
  color: var(--helloch-color-muted);
}

/* AGC article body — complements plugin agc-ed-article.css */
.helloch-article__content.helloch-prose--wide,
.helloch-article__content.helloch-prose--wide .agc-article,
.helloch-article__content .agc-article,
.agc-editorial-post .agc-article {
  max-width: none;
  width: 100%;
  margin-inline: 0;
}

.helloch-article__content .agc-article,
.agc-editorial-post .agc-article {
  font-size: 1.0625rem;
  line-height: 1.7;
  overflow-wrap: break-word;
  word-wrap: break-word;
  max-width: 100%;
}

.helloch-article__content .agc-article > * {
  max-width: 100%;
}

.helloch-article__content .agc-article h2,
.agc-editorial-post .agc-article h2 {
  margin-top: var(--helloch-space-xl);
  margin-bottom: var(--helloch-space-md);
  font-family: var(--helloch-font-serif);
  overflow-wrap: break-word;
}

.helloch-article__content .agc-article h3,
.agc-editorial-post .agc-article h3 {
  margin-top: var(--helloch-space-lg);
  margin-bottom: var(--helloch-space-sm);
  overflow-wrap: break-word;
}

.helloch-article__content .agc-callout,
.agc-editorial-post .agc-callout {
  margin: var(--helloch-space-lg) 0;
  padding: var(--helloch-space-md) var(--helloch-space-lg);
  border-radius: var(--helloch-radius);
  background: #f0f4f8;
  border-left: 4px solid var(--helloch-color-accent);
  max-width: 100%;
  overflow-wrap: break-word;
}

/* Scrollable table wrapper */
.helloch-article__content .agc-table,
.agc-editorial-post .agc-table {
  display: block;
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  margin: var(--helloch-space-lg) 0;
  border: 1px solid var(--helloch-color-border);
  border-radius: var(--helloch-radius);
  background: var(--helloch-color-surface);
}

.helloch-article__content .agc-table table,
.agc-editorial-post .agc-table table {
  width: 100%;
  min-width: 32rem;
  border-collapse: collapse;
  margin: 0;
}

.helloch-article__content .agc-table th,
.helloch-article__content .agc-table td,
.agc-editorial-post .agc-table th,
.agc-editorial-post .agc-table td {
  padding: 0.625rem 0.875rem;
  border: 1px solid var(--helloch-color-border);
  text-align: left;
  vertical-align: top;
  overflow-wrap: anywhere;
  word-break: break-word;
  hyphens: auto;
}

.helloch-article__content .agc-table th,
.agc-editorial-post .agc-table th {
  background: var(--helloch-color-bg);
  font-weight: 700;
}

/* Bare tables inside editorial content (no .agc-table wrapper) */
.helloch-article__content .agc-article > table,
.agc-editorial-post .agc-article > table {
  display: block;
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-collapse: collapse;
}

.helloch-article__content .agc-article img,
.helloch-article__content .agc-article video,
.helloch-article__content .agc-article iframe,
.helloch-article__content .agc-article embed,
.helloch-article__content .agc-article object,
.helloch-article__content .agc-article svg,
.helloch-article__content .agc-article figure,
.helloch-article__content .agc-article .wp-block-image,
.agc-editorial-post .agc-article img,
.agc-editorial-post .agc-article video,
.agc-editorial-post .agc-article iframe,
.agc-editorial-post .agc-article figure {
  max-width: 100%;
  height: auto;
  border-radius: var(--helloch-radius);
}

.helloch-article__content .agc-article pre,
.helloch-article__content .agc-article code,
.agc-editorial-post .agc-article pre,
.agc-editorial-post .agc-article code {
  max-width: 100%;
}

.helloch-article__content .agc-article pre,
.agc-editorial-post .agc-article pre {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding: var(--helloch-space-md);
  border-radius: var(--helloch-radius);
  background: var(--helloch-color-bg);
  font-size: 0.875rem;
  line-height: 1.5;
}

.helloch-article__content .agc-article iframe,
.agc-editorial-post .agc-article iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
}

.helloch-article__content blockquote,
.agc-editorial-post .agc-article blockquote {
  margin: var(--helloch-space-lg) 0;
  padding: var(--helloch-space-md) var(--helloch-space-lg);
  border-left: 4px solid var(--helloch-color-navy);
  background: var(--helloch-color-surface);
  font-family: var(--helloch-font-serif);
  overflow-wrap: break-word;
}

@media (max-width: 639px) {
  .helloch-article__content .agc-table th,
  .helloch-article__content .agc-table td,
  .agc-editorial-post .agc-table th,
  .agc-editorial-post .agc-table td {
    padding: 0.5rem 0.625rem;
    font-size: 0.875rem;
  }

  .helloch-article__content .agc-callout,
  .agc-editorial-post .agc-callout {
    padding: var(--helloch-space-sm) var(--helloch-space-md);
  }

  .helloch-article__content .agc-article h2,
  .agc-editorial-post .agc-article h2 {
    font-size: clamp(1.25rem, 5vw, 1.5rem);
  }
}

@media (min-width: 768px) {
  .helloch-article__content .agc-table table,
  .agc-editorial-post .agc-table table {
    min-width: 0;
  }
}

