/* ==========================================================
   Section: Text Content — generic rich text
   ========================================================== */

.text-content {
    background: var(--bg);
    padding: var(--section-pad) 24px;
}

.text-content__container {
    margin: 0 auto;
}

.text-content__container--narrow { max-width: var(--container-narrow); }
.text-content__container--medium { max-width: 960px; }
.text-content__container--wide   { max-width: var(--container); }

.text-content__container h2,
.text-content__container h3,
.text-content__container h4 {
    margin: 1.6em 0 0.6em;
}

.text-content__container h2:first-child,
.text-content__container h3:first-child,
.text-content__container p:first-child {
    margin-top: 0;
}

.text-content__container p {
    margin-bottom: 1.15em;
    line-height: 1.85;
}

.text-content__container ul,
.text-content__container ol {
    margin: 0 0 1.15em 1.4em;
}

.text-content__container ul {
    list-style: disc;
}

.text-content__container ol {
    list-style: decimal;
}

.text-content__container li {
    margin-bottom: 0.4em;
    line-height: 1.75;
}

.text-content__container a {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.text-content__container img {
    border-radius: 10px;
    margin: 1.4em 0;
}

.text-content__container blockquote {
    margin: 1.6em 0;
    padding: 16px 24px;
    border-left: 3px solid var(--brand);
    background: var(--bg-blush);
    border-radius: 0 12px 12px 0;
    font-style: italic;
}

/* Legacy-content hygiene — pasted copy from the old site can carry
   inline colors on links, headings, and spans; the theme owns content
   color, and links must always read as links. */
.text-content__container [style*="color"] {
    color: inherit !important;
}
.text-content__container a,
.text-content__container a[style] {
    color: var(--brand) !important;
}
.text-content__container a [style] {
    color: inherit !important;
}
.text-content__container iframe[src*="youtube"],
.text-content__container iframe[src*="youtu.be"],
.text-content__container iframe[src*="vimeo"] {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    border-radius: 12px;
}
