/* Ordinary articles share a consistent vertical rhythm, including newer blocks. */
.mt-subpage.single-article .article__content > .article__block {
  margin: 64px 0;
}
.mt-subpage.single-article .article__content > .article__block:first-child {
  margin-top: 0;
}
.mt-subpage.single-article .article__content p + p { margin-top: 20px; }
.mt-subpage.single-basics .article__content > p + .article__block { margin-top: 64px; }
.mt-subpage.single-basics .article__block__sub > p + p { margin-top: 20px; }
/* These lists contain prose, not hanging bullets; preserve recap/source styling. */
.mt-subpage:is(.single-article, .single-basics) .article__block:where(:not(#summary, #lesson-summary)) > .article__block__sub > ul:not([class]) {
  text-indent: 0;
  margin-left: 0;
}
.mt-subpage.single-article .article__content .article__block__sub > h3:not(:first-child) {
  margin-top: 32px;
}
.mt-subpage.single-article .article__content ol:not([class]) {
  margin: 24px 0;
  padding-left: 1.65em;
  text-indent: 0;
  list-style: decimal outside;
  font-size: 17px;
  line-height: 2;
}
.mt-subpage.single-article .article__content ol:not([class]) > li {
  padding-left: .25em;
}
.mt-subpage.single-article .article__content ol:not([class]) > li + li {
  margin-top: 16px;
}
.mt-subpage.single-article .article__content ol:not([class]) > li::marker {
  color: #17666b;
  font-weight: 700;
}
/* Plain comparison tables stay distinct from the existing chalkboard tables. */
.mt-subpage.single-article .article__content .table__wrapper:not(.table__wrapper--talk) {
  margin: 28px 0;
  overflow-x: auto;
}
.mt-subpage.single-article .article__content .table__wrapper:not(.table__wrapper--talk) table {
  width: 100%;
  max-width: 640px;
  background: #fff;
  line-height: 1.7;
}
.mt-subpage.single-article .article__content .table__wrapper:not(.table__wrapper--talk) :is(th, td) {
  border: 1px solid #b9d1cf;
  padding: 12px 16px;
  vertical-align: middle;
}
.mt-subpage.single-article .article__content .table__wrapper:not(.table__wrapper--talk) th {
  background: #e4f0ee;
  color: #173f3b;
}
.mt-subpage.single-article .article__content .table__wrapper:not(.table__wrapper--talk) tbody tr:nth-child(even) td {
  background: #f3f8f7;
}
/* Native disclosure remains keyboard-operable, with an explicit touch target. */
.mt-subpage.single-article .article__content details {
  margin: 16px 0 32px;
  border: 1px solid #b9d1cf;
  border-radius: 8px;
  background: #f3f8f7;
}
.mt-subpage.single-article .article__content details > summary {
  padding: 12px 16px;
  min-height: 48px;
  font-size: 16px;
  line-height: 1.7;
  font-weight: 700;
  cursor: pointer;
}
.mt-subpage.single-article .article__content details > summary:focus-visible {
  outline: 3px solid #17666b;
  outline-offset: 3px;
}
.mt-subpage.single-article .article__content details[open] > summary {
  border-bottom: 1px solid #b9d1cf;
}
.mt-subpage.single-article .article__content details > p {
  margin: 0;
  padding: 16px;
}
/* Article dialogue: keep the tail beside the speaker at every breakpoint. */
.mt-subpage:is(.single-article, .single-basics) .talk__block {
  flex-wrap: nowrap;
  align-items: flex-start;
  gap: 24px;
  margin: 32px 0;
}
.mt-subpage:is(.single-article, .single-basics) .talk__character {
  flex: 0 0 100px;
  margin: 0;
}
.mt-subpage:is(.single-article, .single-basics) .talk__character__thumbnail {
  border-radius: 50%;
  margin: 0;
}
.mt-subpage:is(.single-article, .single-basics) .talk__character__thumbnail img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.mt-subpage:is(.single-article, .single-basics) .talk__bubble {
  flex: 1 1 0;
  min-width: 0;
  width: auto;
}
.mt-subpage:is(.single-article, .single-basics) .talk__bubble::after {
  top: min(50%, 50px);
  transform: translateY(-50%);
  left: -13px;
  width: 14px;
  height: 24px;
  clip-path: polygon(100% 0, 0 50%, 100% 100%);
}
.mt-subpage:is(.single-article, .single-basics) .talk__bubble > p {
  margin: 0;
}
.mt-subpage:is(.single-article, .single-basics) .talk__bubble > p + p {
  margin-top: 16px;
}
@media (max-width: 600px) {
  .mt-subpage.single-article .page__main > .link__btn--more {
    margin-inline: 20px;
    min-width: 0;
  }
  .mt-subpage.single-article .article__content > .article__block { margin: 48px 0; }
  .mt-subpage.single-basics .article__content > p + .article__block { margin-top: 48px; }
  .mt-subpage.single-article .article__content ol:not([class]) { font-size: 16px; line-height: 1.95; }
  .mt-subpage.single-article .article__content .table__wrapper:not(.table__wrapper--talk) :is(th, td) {
    font-size: 14px;
    padding: 12px 8px;
  }
  .mt-subpage.single-article .article__content .table__wrapper:not(.table__wrapper--talk) th { white-space: normal; }
  .mt-subpage:is(.single-article, .single-basics) .talk__block { gap: 16px; }
  .mt-subpage:is(.single-article, .single-basics) .talk__character { flex-basis: 56px; }
  .mt-subpage:is(.single-article, .single-basics) .talk__bubble { padding: 14px; }
  .mt-subpage:is(.single-article, .single-basics) .talk__bubble::after {
    top: min(50%, 28px);
    left: -11px;
    width: 12px;
    height: 20px;
  }
}
