/* Article detail has no cover image: keep its heading full width. */
.article-page .article-header { grid-template-columns: minmax(0, 1fr); }
.article-page .article-header-copy { max-width: 880px; }
/* Prevent the grid's automatic min-content width from expanding the page.
   break-word alone is not considered when CSS Grid sizes a 1fr track. */
.article-page .article-layout { min-width: 0; max-width: 100%; }
.article-page .article-body,
.article-page .article-aside { min-width: 0; max-width: 100%; box-sizing: border-box; }
.article-page .article-body > * { max-width: 100%; }
.article-page .article-body img { display: block; width: auto; max-width: 100%; height: auto; }
@media (max-width: 780px) {
  .article-page .article-layout { grid-template-columns: minmax(0, 1fr); }
}
/* Safe rich article body in the public Dia a Dia page. */
.article-body { overflow-wrap: break-word; word-break: normal; hyphens: none; }
.article-body a { overflow-wrap: anywhere; }
.article-body h2, .article-body h3, .article-body h4 { color: #181a43; line-height: 1.3; margin: 1.45em 0 .55em; }
.article-body h2 { font-size: clamp(23px, 3vw, 30px); }
.article-body h3 { font-size: clamp(19px, 2.5vw, 23px); }
.article-body p { margin: 0 0 1.2em; }
.article-body ul, .article-body ol { padding-left: 26px; margin: 0 0 1.1em; }
.article-body li { margin-bottom: 6px; }
.article-body blockquote { border-left: 4px solid #9476e8; padding: 8px 16px; margin: 22px 0; background: #f7f4ff; color: #4a426e; }
.article-body a { text-decoration: underline; text-underline-offset: 3px; color: #5a36b7; }
.article-body img { display: inline-block; max-width: 100%; height: auto; margin: 16px 0; border-radius: 15px; box-shadow: 0 10px 26px rgba(22,23,53,.08); }
.article-body .ql-align-center { text-align: center; }
.article-body .ql-align-right { text-align: right; }
.article-body .ql-align-justify { text-align: justify; }
.article-body .ql-indent-1 { padding-left: 2em; }
.article-body .ql-indent-2 { padding-left: 4em; }
.article-body .ql-indent-3 { padding-left: 6em; }
.article-body .ql-indent-4 { padding-left: 8em; }
.article-body .ql-indent-5 { padding-left: 10em; }
.article-body .ql-indent-6 { padding-left: 12em; }
.article-body .ql-indent-7 { padding-left: 14em; }
.article-body .ql-indent-8 { padding-left: 16em; }
.article-body li[data-list="bullet"] { list-style-type: disc; }
.article-body li[data-list="ordered"] { list-style-type: decimal; }
.article-body .ql-ui { display: none; }
.article-body pre { padding: 16px; white-space: pre-wrap; border-radius: 10px; background: #f3f2fa; }
@media (max-width: 780px) { .article-body img { margin: 9px 0; } }

/* Article feedback follows the site's editorial palette, without crowding mobile. */
.article-actions {
  max-width: 900px;
  margin: 26px auto 0;
  padding: clamp(20px, 3vw, 32px);
  border: 1px solid rgba(101, 76, 164, .17);
  border-radius: 26px;
  background: linear-gradient(135deg, #fff, #f8f5ff);
  box-shadow: 0 10px 30px rgba(43, 33, 94, .05);
}
.article-actions-heading { display: flex; justify-content: space-between; gap: 20px; align-items: flex-start; }
.article-actions-heading h2 { margin: 8px 0; color: #20204c; font-size: clamp(21px, 3vw, 26px); }
.article-actions-heading p { margin: 0 0 18px; color: #636483; font-size: 15px; line-height: 1.5; }
.article-reactions-total {
  flex-shrink: 0; padding: 9px 13px; border-radius: 20px;
  background: #f0ebff; color: #5839a5; font-size: 13px; font-weight: 700;
}
.article-reaction-choices { display: flex; flex-wrap: wrap; gap: 10px; }
.article-reaction-choices button, .article-share-button {
  cursor: pointer; font: 700 14px/1.35 system-ui, sans-serif;
  border-radius: 16px; padding: 12px 15px; min-height: 46px;
  transition: background-color .15s ease, border-color .15s ease;
}
.article-reaction-choices button {
  border: 1px solid #dcd2f5; background: #fff; color: #4d3a87;
}
.article-reaction-choices button strong {
  display: inline-block; margin-left: 5px; color: #6b5b93;
}
.article-reaction-choices button[aria-pressed="true"] { background: #f0e9ff; border-color: #7651d5; }
.article-reaction-choices button:disabled { opacity: .65; cursor: wait; }
.article-reaction-choices button:focus-visible, .article-share-button:focus-visible {
  outline: 3px solid #8063d6; outline-offset: 3px;
}
.article-action-feedback { color: #5b488e; font-size: 13px; line-height: 1.5; }
.article-action-feedback:empty { display: none; }
.article-share-row { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin-top: 16px; }
.article-share-button { color: #fff; background: #6f42d8; border: 1px solid #6f42d8; }
.article-share-button:hover { background: #5e32c7; }
@media (max-width: 600px) {
  .article-actions { margin-top: 18px; padding: 20px 16px; border-radius: 22px; }
  .article-actions-heading { flex-direction: column; gap: 6px; }
  .article-reactions-total { align-self: flex-start; margin-bottom: 12px; }
  .article-reaction-choices button { flex: 1 1 130px; }
  .article-share-button { width: 100%; }
}
