/*
Theme Name: Agence Augustin
Theme URI: https://agence-augustin.fr
Author: Agence Augustin
Author URI: https://agence-augustin.fr
Description: Thème personnalisé de l'Agence Augustin.
Version: 1.0.140
Requires at least: 6.5
Tested up to: 6.8
Requires PHP: 8.2
Text Domain: agence-augustin
*/


/* ============================================================
   V92 — Texte éditorial: lignes WordPress autoritaires

   PHP transforme chaque retour manuel du WYSIWYG en ligne explicite.
   Le navigateur n'ajoute aucun retour sur ordinateur. Les lignes sont
   alignées sur le même axe que le titre et le CTA.
   ============================================================ */
body main.single-journal .aa-article-text .aa-article-copy {
    display: grid !important;
    width: 100% !important;
    min-width: 0 !important;
}

body main.single-journal .aa-article-text .aa-article-copy--align-default,
body main.single-journal .aa-article-text .aa-article-copy--align-left {
    justify-items: start !important;
}

body main.single-journal .aa-article-text .aa-article-copy--align-center {
    justify-items: center !important;
}

body main.single-journal .aa-article-text .aa-article-copy--align-right {
    justify-items: end !important;
}

body main.single-journal .aa-article-text .aa-article-copy__inner {
    display: flex !important;
    width: min(100%, 1180px) !important;
    max-width: 1180px !important;
    min-width: 0 !important;
    flex-direction: column !important;
    align-items: stretch !important;
    box-sizing: border-box !important;
}

body main.single-journal .aa-article-text .aa-article-copy--align-default .aa-article-copy__inner,
body main.single-journal .aa-article-text .aa-article-copy--align-left .aa-article-copy__inner {
    margin-right: auto !important;
    margin-left: 0 !important;
}

body main.single-journal .aa-article-text .aa-article-copy--align-center .aa-article-copy__inner {
    margin-right: auto !important;
    margin-left: auto !important;
}

body main.single-journal .aa-article-text .aa-article-copy--align-right .aa-article-copy__inner {
    margin-right: 0 !important;
    margin-left: auto !important;
}

body main.single-journal .aa-article-text .aa-article-copy__title,
body main.single-journal .aa-article-text .aa-article-copy__content,
body main.single-journal .aa-article-text .aa-article-cta {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
}

body main.single-journal .aa-article-text .aa-article-copy__content {
    display: block !important;
    overflow: visible !important;
    white-space: normal !important;
    text-wrap: wrap !important;
}

body main.single-journal .aa-article-text .aa-article-copy__content > .aa-article-authored-block {
    display: flex !important;
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
    flex-direction: column !important;
    margin-right: 0 !important;
    margin-left: 0 !important;
    white-space: normal !important;
    text-wrap: wrap !important;
    overflow: visible !important;
    overflow-wrap: normal !important;
    word-break: normal !important;
    hyphens: none !important;
}

body main.single-journal .aa-article-text .aa-article-copy__content .aa-article-authored-line {
    display: block !important;
    width: max-content !important;
    max-width: none !important;
    min-width: 0 !important;
    white-space: nowrap !important;
    text-wrap: nowrap !important;
    overflow-wrap: normal !important;
    word-break: normal !important;
    hyphens: none !important;
    text-align: inherit !important;
}

body main.single-journal .aa-article-text .aa-article-copy__content .aa-article-authored-line :is(
    span, strong, em, b, i, a, code, small, sub, sup, mark
) {
    white-space: inherit !important;
    text-wrap: inherit !important;
    text-align: inherit !important;
}

body main.single-journal .aa-article-text .aa-article-copy__content .aa-article-authored-line--empty {
    min-height: 1em !important;
}

body main.single-journal .aa-article-text .aa-article-copy--align-default :is(.aa-article-copy__title, .aa-article-copy__content),
body main.single-journal .aa-article-text .aa-article-copy--align-left :is(.aa-article-copy__title, .aa-article-copy__content) {
    text-align: left !important;
}

body main.single-journal .aa-article-text .aa-article-copy--align-default .aa-article-authored-block,
body main.single-journal .aa-article-text .aa-article-copy--align-left .aa-article-authored-block {
    align-items: flex-start !important;
}

body main.single-journal .aa-article-text .aa-article-copy--align-center :is(.aa-article-copy__title, .aa-article-copy__content) {
    text-align: center !important;
}

body main.single-journal .aa-article-text .aa-article-copy--align-center .aa-article-authored-block {
    align-items: center !important;
}

body main.single-journal .aa-article-text .aa-article-copy--align-right :is(.aa-article-copy__title, .aa-article-copy__content) {
    text-align: right !important;
}

body main.single-journal .aa-article-text .aa-article-copy--align-right .aa-article-authored-block {
    align-items: flex-end !important;
}

body main.single-journal .aa-article-text .aa-article-copy__content > ul,
body main.single-journal .aa-article-text .aa-article-copy__content > ol {
    width: 100% !important;
    max-width: none !important;
    box-sizing: border-box !important;
}

@media (max-width: 1023px) {
    body main.single-journal .aa-article-text .aa-article-copy__inner,
    body main.single-journal .aa-article-text .aa-article-copy__content {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
    }

    body main.single-journal .aa-article-text .aa-article-copy__content .aa-article-authored-line {
        width: auto !important;
        max-width: 100% !important;
        white-space: normal !important;
        text-wrap: wrap !important;
        overflow-wrap: normal !important;
        word-break: normal !important;
    }
}


/* ============================================================
   V86 — Journal page: subtitles and compact list ending
   ============================================================ */
body main .journal-featured__separator {
    display: block;
}

body main .journal-featured__separator .aa-rule-gold {
    width: 100% !important;
    background: var(--aa-or) !important;
    opacity: .5 !important;
}

body main .journal-featured__title,
body main .journal-featured__subtitle,
body main .journal-featured__excerpt,
body main .journal-card__title,
body main .journal-card__subtitle,
body main .journal-card__excerpt {
    white-space: normal !important;
    text-wrap: wrap !important;
    overflow-wrap: normal !important;
    word-break: normal !important;
    hyphens: none !important;
}

body main .journal-featured__title,
body main .journal-card__title {
    width: auto !important;
    max-width: 100% !important;
}

body main .journal-featured__subtitle,
body main .journal-featured__excerpt,
body main .journal-card__subtitle,
body main .journal-card__excerpt {
    width: 100% !important;
}

body main .journal-featured__subtitle,
body main .journal-card__subtitle {
    white-space: pre-line !important;
}

body main .journal-list .journal-card:not(:last-child) {
    border-bottom: 1px solid rgba(60, 42, 30, .10) !important;
}

body main .journal-list:is(.theme-brun, .theme-ardoise, .theme-nuit) .journal-card:not(:last-child) {
    border-bottom-color: rgba(243, 230, 212, .16) !important;
}


/* Featured/list subtitle sourced from Article > Introduction. */
body main .journal-featured__subtitle {
    max-width: 34ch !important;
    margin: .7rem 0 0 !important;
    color: var(--aa-ardoise) !important;
    font-family: "Cormorant Garamond", var(--aa-font-display), serif !important;
    font-size: clamp(1.05rem, 1.55vw, 1.3rem) !important;
    font-style: italic !important;
    font-weight: 300 !important;
    line-height: 1.45 !important;
    letter-spacing: .025em !important;
}

body main .journal-card__subtitle {
    max-width: 40ch !important;
    margin: -.35rem 0 0 !important;
    color: var(--aa-ardoise) !important;
    font-family: "Cormorant Garamond", var(--aa-font-display), serif !important;
    font-size: clamp(1rem, 1.3vw, 1.18rem) !important;
    font-style: italic !important;
    font-weight: 300 !important;
    line-height: 1.45 !important;
    letter-spacing: .02em !important;
}

body main .journal-featured:is(.theme-brun, .theme-ardoise, .theme-nuit) .journal-featured__subtitle,
body main .journal-list:is(.theme-brun, .theme-ardoise, .theme-nuit) .journal-card__subtitle {
    color: var(--aa-lin) !important;
}

/* Keep the final article close to the following section/footer. */
body main .journal-list.section {
    padding-bottom: 1rem !important;
}

body main .journal-list .journal-card:last-child {
    padding-bottom: 1.25rem !important;
}

@media (max-width: 767px) {
    body main .journal-list.section {
        padding-bottom: .75rem !important;
    }

    body main .journal-list .journal-card:last-child {
        padding-bottom: 1rem !important;
    }
}
