/*
 * The Author Central — site-wide text alignment standard
 * Section headings and supporting copy are left-aligned consistently.
 * Navigation, buttons, carousel arrows, pagination, and card controls are untouched.
 */

/* Main page content and legacy pages that render sections directly under body. */
html body main :is(h1, h2, h3, h4, p),
html body > section :is(h1, h2, h3, h4, p) {
    text-align: left !important;
    margin-left: 0 !important;
    margin-right: auto !important;
    align-self: flex-start !important;
}

/* Align section-heading wrappers that previously centered their heading groups. */
html body main :is(
    .centered-head,
    .center-block,
    .story-centered,
    .genre-centered,
    .tac-centered-copy,
    .aboutx-section-head,
    .aboutx-section-head--center,
    .bookx-section-head,
    .bookx-section-head--center,
    .contactx-section-head,
    .termsx-section-head,
    .testix-section-head,
    .privx-section-head,
    .pkgx-section-head,
    .tac-section-head-center,
    .tacx-head,
    .tacx-head--center,
    .tac-hd,
    .btr-hd,
    .tac-faq-intro,
    .approach-header,
    .spectrum-header,
    .proc-cards-header,
    .sec-header,
    .inner-sec-head-box,
    .inner-upper-head-box,
    .inner-banner-head,
    .section-head,
    .section-header,
    .section-heading,
    .section-title-wrap,
    .faq-intro,
    .reach-inner,
    .tac-process-section__header,
    .tacx-blog__head
),
html body > section :is(
    .centered-head,
    .center-block,
    .story-centered,
    .genre-centered,
    .tac-centered-copy,
    .aboutx-section-head,
    .aboutx-section-head--center,
    .bookx-section-head,
    .bookx-section-head--center,
    .contactx-section-head,
    .termsx-section-head,
    .testix-section-head,
    .privx-section-head,
    .pkgx-section-head,
    .tac-section-head-center,
    .tacx-head,
    .tacx-head--center,
    .tac-hd,
    .btr-hd,
    .tac-faq-intro,
    .approach-header,
    .spectrum-header,
    .proc-cards-header,
    .sec-header,
    .inner-sec-head-box,
    .inner-upper-head-box,
    .inner-banner-head,
    .section-head,
    .section-header,
    .section-heading,
    .section-title-wrap,
    .faq-intro,
    .reach-inner,
    .tac-process-section__header,
    .tacx-blog__head
) {
    text-align: left !important;
    margin-left: 0 !important;
    margin-right: auto !important;
}

/* Ensure the eyebrow/overline label sits at the same left edge as its heading. */
html body main :is(
    .section-label,
    .overline,
    .hero-badge,
    .bookx-label,
    .genre-kicker,
    .genre-section-kicker,
    .contactx-label,
    .aboutx-label,
    .termsx-label,
    .testix-label,
    .privx-label,
    .pkgx-label,
    .tac-faq-label,
    .section-kicker,
    .eyebrow
),
html body > section :is(
    .section-label,
    .overline,
    .hero-badge,
    .bookx-label,
    .genre-kicker,
    .genre-section-kicker,
    .contactx-label,
    .aboutx-label,
    .termsx-label,
    .testix-label,
    .privx-label,
    .pkgx-label,
    .tac-faq-label,
    .section-kicker,
    .eyebrow
) {
    display: flex !important;
    width: max-content;
    max-width: 100%;
    margin-left: 0 !important;
    margin-right: auto !important;
    justify-content: flex-start !important;
    text-align: left !important;
    align-self: flex-start !important;
}

/* Catch page-specific heading containers without moving the shared page container. */
html body main :is(div, header, section):has(> h1, > h2),
html body > section :is(div, header, section):has(> h1, > h2) {
    text-align: left !important;
}
