.content-rich {
  --content-rich-pad: var(--sp-12);
}
@media (min-width: 640px) { .content-rich { --content-rich-pad: var(--sp-16); } }
@media (min-width: 900px) { .content-rich { --content-rich-pad: var(--sp-20); } }

.content-rich { --content-gutter: var(--sp-4); }
@media (min-width: 640px) { .content-rich { --content-gutter: var(--sp-6); } }

.mod_article.content-rich.content-rich > :is(.content-text, .content-table, .table-scroll, :has(> .table-scroll), .quote, figure, :has(> .quote), :has(> figure)) {
  box-sizing: border-box;
  width: calc(100% - 2 * var(--content-gutter));
  max-width: calc(var(--container-narrow) - 2 * var(--content-gutter));
  margin: 0 auto;
  padding-inline: 0;
}
.mod_article.content-rich.content-rich > :is(.quote, figure, :has(> .quote), :has(> figure), .content-table, .table-scroll, :has(> .table-scroll)) { margin-top: var(--sp-8); }
.mod_article.content-rich.content-rich > .content-text.hint { margin-block: var(--sp-4) 1.25rem; padding: .75rem .75rem .75rem 2.5rem; }
.mod_article.content-rich.content-rich > .quote { padding: var(--sp-6); }

.mod_article.content-rich.content-rich > :has(.page-header--content) + :is(.content-text, .content-table, .table-scroll, :has(> .table-scroll), .quote, figure, :has(> .quote), :has(> figure)) {
  margin-top: calc(var(--content-rich-pad) + var(--sp-8));
}
.mod_article.content-rich.content-rich > :is(.content-text, .content-table, .table-scroll, :has(> .table-scroll), .quote, figure, :has(> .quote), :has(> figure)) + :not(:is(.content-text, .content-table, .table-scroll, :has(> .table-scroll), .quote, figure, :has(> .quote), :has(> figure))) { margin-top: var(--content-rich-pad); }
.mod_article.content-rich.content-rich > :is(.content-text, .content-table, .table-scroll, :has(> .table-scroll), .quote, figure, :has(> .quote), :has(> figure)):last-child { margin-bottom: var(--content-rich-pad); }

.content-rich .content-text :is(h2, h3, h4):not(:first-child) { margin-top: var(--sp-6); }
.content-rich .content-text h2:not(:first-child) { margin-top: var(--sp-12); }
.content-rich .content-text h3:not(:first-child) { margin-top: var(--sp-8); }
.content-rich .content-text ol { list-style: decimal; margin: 0 0 var(--sp-4); padding: 0 0 0 var(--sp-6); }
.content-rich .content-text ul:not(.region-facts) { list-style: disc; margin: 0 0 var(--sp-4); padding: 0 0 0 var(--sp-6); }
.content-rich .content-text a { text-decoration: underline; text-underline-offset: 2px; }

.content-rich .content-text.sample-note p { margin: 0; }

.content-rich figure { line-height: 1.5; }
.content-rich figure img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--r-lg); }
.content-rich figcaption { margin-top: var(--sp-3); font-size: var(--fs-sm); line-height: 1.5; color: var(--c-text-muted); }

.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table-scroll:focus-visible { outline: 2px solid var(--c-primary); outline-offset: 2px; }
.table-scroll table { border-collapse: collapse; width: 100%; min-width: 560px; font-size: var(--fs-sm); }
.table-scroll :is(th, td) { padding: var(--sp-3) var(--sp-4); text-align: left; vertical-align: top; border-bottom: 1px solid var(--c-line); }
.table-scroll thead th { border-bottom: 2px solid var(--c-line); }
.table-scroll tbody th { font-weight: 700; }

.hint {
  --tone: var(--brand-primary, #1F3458);
  display: block;
  position: relative;
  margin: 1.25rem 0;
  padding: .75rem .75rem .75rem 2.5rem;
  border: 1px solid color-mix(in srgb, var(--tone) 45%, transparent);
  border-radius: var(--r-md);
  background: color-mix(in srgb, var(--tone) 10%, #fff);
  color: var(--c-text);
  font-size: .8125rem;
  line-height: 1.5;
  text-align: left;
}
.hint::before {
  content: '';
  position: absolute;
  left: .75rem;
  top: .86rem;
  width: 16px;
  height: 16px;
  background-color: var(--tone);
  pointer-events: none;
  -webkit-mask: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='%23000'%20stroke-width='1.9'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Ccircle%20cx='12'%20cy='12'%20r='10'/%3E%3Cline%20x1='12'%20y1='11'%20x2='12'%20y2='16.5'/%3E%3Cline%20x1='12'%20y1='7.6'%20x2='12.01'%20y2='7.6'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='%23000'%20stroke-width='1.9'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Ccircle%20cx='12'%20cy='12'%20r='10'/%3E%3Cline%20x1='12'%20y1='11'%20x2='12'%20y2='16.5'/%3E%3Cline%20x1='12'%20y1='7.6'%20x2='12.01'%20y2='7.6'/%3E%3C/svg%3E") center / contain no-repeat;
}
.content-text.hint .rte > :is(p, ul, ol):last-child { margin-bottom: 0; }
.content-text.hint p { margin: 0; font-size: inherit; }

@media (max-width: 799px) { .region-grid--reverse > img { order: -1; } }
