.article-comments .wp-editor-wrap { margin-top: 10px; width: 100%; }
.article-comments .article-comments__header { box-sizing: border-box; padding-inline: 24px; }
.single-post-page .article-sources-bottom { box-sizing: border-box; padding-inline: 24px; }
.asg-related-panel { display: contents; }
.asg-related-tabs[hidden], .asg-related-panel[hidden],
.asg-related-panel > [hidden] { display: none !important; }
@media (min-width: 1101px) {
  .single-post-page .blog-sidebar.asg-related-ready { gap: 16px; padding: 20px; min-width: 0; }
  .single-post-page .asg-related-tabs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; padding: 5px; border-radius: 12px; background: #edf5f2; }
  .single-post-page .asg-related-tabs button { min-width: 0; min-height: 42px; padding: 8px 10px; border: 0; border-radius: 8px; background: transparent; color: #3f5b50; font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; }
  .single-post-page .asg-related-tabs button[aria-selected="true"] { color: #fff; background: #047857; box-shadow: 0 2px 6px #064e3b20; }
  .single-post-page .asg-related-tabs button:focus-visible { outline: 2px solid #047857; outline-offset: 2px; }
  .single-post-page .asg-related-panel { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; min-width: 0; }
}
@media (max-width: 1100px) {
  .blog-sidebar.asg-related-ready { gap: 16px; padding: 20px; min-width: 0; }
  .blog-archive-page .asg-related-tabs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .asg-related-tabs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; padding: 5px; border-radius: 12px; background: #edf5f2; }
  .asg-related-tabs button { min-width: 0; min-height: 42px; padding: 8px 10px; border: 0; border-radius: 8px; background: transparent; color: #3f5b50; font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; }
  .asg-related-tabs button[aria-selected="true"] { color: #fff; background: #047857; box-shadow: 0 2px 6px #064e3b20; }
  .asg-related-tabs button:focus-visible, .asg-related-more:focus-visible { outline: 2px solid #047857; outline-offset: 2px; }
  .asg-related-panel { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; min-width: 0; }
  .asg-related-panel .sidebar-post-card { display: grid; grid-template-columns: 68px minmax(0, 1fr); gap: 12px; align-items: start; margin: 0; padding: 12px; min-width: 0; }
  .asg-related-panel .sidebar-post-card__image { width: 68px; height: 68px; min-height: 0; border-radius: 8px; overflow: hidden; }
  .asg-related-panel .sidebar-post-card__image img { width: 100%; height: 100%; object-fit: cover; }
  .asg-related-panel .sidebar-post-card__body { display: contents; }
  .asg-related-panel .sidebar-post-card h3 { min-width: 0; margin: 0; font-size: 15px; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
  .asg-related-panel .post-pin-badge { display: none; }
  .asg-related-panel .sidebar-post-card__metrics { grid-column: 1 / -1; gap: 6px 8px; font-size: 11px; }
  .asg-related-more { grid-column: 1 / -1; justify-self: center; min-height: 40px; border: 1px solid #bcd7cb; border-radius: 8px; padding: 8px 18px; background: #fff; color: #046548; font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; }
}
@media (max-width: 600px) {
  .single-post-page .article-sources-bottom { padding-inline: 16px; }
  .blog-sidebar.asg-related-ready { padding: 14px; }
  .asg-related-tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .asg-related-panel { grid-template-columns: minmax(0, 1fr); }
}
.article-comments .wp-editor-container { border: 1px solid #cbd5e1; border-radius: 8px; overflow: hidden; }
.article-comments .mce-toolbar button { min-height: 36px; }
.article-comments .children { margin: 18px 0 0 16px; padding-left: 18px; border-left: 2px solid #cbd5e1; list-style: none; }
.asgc-reply-context { padding: 12px 16px; border-left: 3px solid #2563eb; background: #eff6ff; color: #172554; }
#asgc-error { color: #b91c1c; }
.asgc-image-hint { font-size: 13px; line-height: 1.5; margin: 8px 0 0; color: #4e626c; }
#asgc-upload-status:empty { display: none; }
#asgc-image-file[hidden] { display: none; }
.article-comment__text { font-size: 18px; overflow-wrap: anywhere; }
.article-comment__text img { display: block; width: auto; max-width: min(100%, 220px); max-height: 160px; object-fit: contain; height: auto; border-radius: 8px; cursor: zoom-in; margin: 12px 0; }
.asgc-lightbox { max-width: 96vw; max-height: 96vh; padding: 12px; border: 0; border-radius: 12px; }
.asgc-lightbox::backdrop { background: rgb(0 0 0 / 80%); }
.asgc-lightbox img { display: block; max-width: 90vw; max-height: 80vh; object-fit: contain; }
.asgc-lightbox button { display: block; margin: 0 0 8px auto; padding: 8px 16px; cursor: pointer; }
.asgc-reactions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 12px 0; }
.asgc-reactions button { padding: 7px 12px; border: 1px solid #cbd5e1; border-radius: 8px; background: #fff; color: #172554; cursor: pointer; }
.asgc-reactions button[aria-pressed="true"] { background: #dbeafe; border-color: #2563eb; }
.asgc-vote-status { font-size: 14px; }
@media (max-width: 600px) { .article-comments .children { margin-left: 4px; padding-left: 10px; } }

/* Keep intrinsic table/editor widths from squeezing tablet article columns. */
.single-post-page .article-grid > *,
.single-post-page .article-content > *,
.article-comments, .article-comments .comment-form > *,
.article-comments .wp-editor-wrap, .article-comments .wp-editor-container { min-width: 0; box-sizing: border-box; }
.article-comments .wp-editor-wrap, .article-comments .mce-tinymce { max-width: 100%; }
.article-comments .mce-toolbar .mce-flow-layout-item { margin-right: 0; }
.single-post-page .article-content { overflow-wrap: anywhere; padding-inline: 24px; }
.single-post-page .article-content table { display: block; max-width: 100%; overflow-x: auto; }
.single-post-page .article-content pre { min-width: 0; max-width: 100%; overflow-x: auto; }
.asgc-reply-context { grid-column: 1 / -1; }
@media (max-width: 1100px) {
  .single-post-page .article-layout { width: calc(100% - 32px); margin-inline: auto; }
  .single-post-page .article-grid { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .single-post-page .article-header, .single-post-page .article-cover,
  .single-post-page .article-comments { width: 100%; max-width: 100%; }
  .single-post-page .article-header { padding: 20px 24px; }
  .single-post-page .article-content { padding: 0 24px; }
  .article-comments .comment-respond { padding: 20px; }
  .single-post-page:has(#comments :focus-within) .article-chat-promo,
  .single-post-page:has(.article-sidebar :focus-within) .article-chat-promo,
  .single-post-page:has(.mce-window) .article-chat-promo { display: none; }
}
@media (max-width: 600px) {
  .article-comments .article-comments__header { padding-inline: 16px; }
  .single-post-page .article-layout { width: calc(100% - 24px); }
  .single-post-page .article-header { padding: 16px; }
  .single-post-page .article-content { padding: 0 16px; }
  .article-comments .comment-respond { padding: 14px; }
  .article-comments .article-comment__body { padding: 14px; }
  .article-comments .comment-form { grid-template-columns: minmax(0, 1fr); }
  .article-comments .mce-btn button { padding-inline: 7px; }
  .article-comments .mce-listbox button { min-width: 54px; }
  .single-post-page:has(#comments :focus-within) .article-chat-promo { display: none; }
  .single-post-page .mce-window { max-width: calc(100vw - 24px) !important; left: 12px !important; }
  .single-post-page .mce-window .mce-container-body { max-width: 100%; }
}
