/*
 * SENZA Formations - rich blocks of a blog article.
 *
 * Callout, numbered steps, expert quote and featured training card, rendered after the article body
 * (templates/article/show/_rich_blocks.html.twig). Loaded right after article-page.css.
 *
 * Text elements are prefixed with ".sz-article" to win over the paragraph and list rules of main.css.
 */

.sz-article-rich-blocks {
    display: flex;
    flex-direction: column;
    gap: 32px;
    margin-top: 48px;
}

/* Limited rich text of the callout and of the steps (Trix: div blocks, lists, bold, links). */
.sz-article .sz-article-rich-text p,
.sz-article .sz-article-rich-text ul,
.sz-article .sz-article-rich-text ol {
    margin: 0 0 10px;
}

.sz-article .sz-article-rich-text ul,
.sz-article .sz-article-rich-text ol {
    padding-left: 22px;
}

.sz-article .sz-article-rich-text ul {
    list-style: disc;
}

.sz-article .sz-article-rich-text ol {
    list-style: decimal;
}

.sz-article .sz-article-rich-text > :last-child {
    margin-bottom: 0;
}

.sz-article .sz-article-rich-text strong,
.sz-article .sz-article-rich-text b {
    color: var(--tg-heading-color);
    font-weight: var(--tg-fw-semi-bold);
}

.sz-article .sz-article-rich-text a:not([class]) {
    color: var(--tg-theme-primary);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.sz-article .sz-article-rich-text a:not([class]):hover {
    color: var(--tg-common-color-blue-2);
}

/* =============================================================
   Callout
   ============================================================= */

.sz-article-rich-callout {
    display: flex;
    gap: 18px;
    align-items: flex-start;
    padding: 24px 28px;
    border-radius: var(--sz-radius-card);
    background: color-mix(in oklch, var(--tg-theme-secondary) 16%, #fff);
    font-size: 16px;
    line-height: 1.7;
    color: var(--tg-heading-color);
}

.sz-article-rich-callout__icon {
    flex: none;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 2px solid #000;
    border-radius: 12px;
    background: var(--tg-theme-secondary);
    box-shadow: 3px 3px 0 0 #3d3d3d;
    font-family: var(--tg-heading-font-family);
    font-weight: var(--tg-fw-extra-bold);
    font-size: 20px;
    color: #000;
}

.sz-article-rich-callout__body {
    min-width: 0;
}

.sz-article .sz-article-rich-callout__title {
    margin: 0 0 6px;
    font-family: var(--tg-heading-font-family);
    font-weight: var(--tg-fw-bold);
    font-size: 12.5px;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: #8a6500;
}

/* =============================================================
   Steps
   ============================================================= */

.sz-article .sz-article-rich-steps {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.sz-article-rich-steps__item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.sz-article-rich-steps__number {
    flex: none;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    margin-top: 2px;
    border-radius: 50%;
    background: var(--tg-theme-primary);
    box-shadow: 2px 3px 0 0 var(--tg-common-color-blue);
    font-family: var(--tg-heading-font-family);
    font-weight: var(--tg-fw-bold);
    font-size: 15px;
    color: #fff;
}

.sz-article-rich-steps__body {
    min-width: 0;
    font-size: 17px;
    line-height: 1.7;
    color: var(--tg-body-color);
}

.sz-article .sz-article-rich-steps__title {
    font-weight: var(--tg-fw-semi-bold);
    color: var(--tg-heading-color);
}

/* Trix wraps the text in a block (div, sometimes p): the first one is put back on the line of the title. */
.sz-article .sz-article-rich-steps__title + :is(div, p) {
    display: inline;
}

/* =============================================================
   Expert quote
   ============================================================= */

.sz-article .sz-article-rich-quote {
    position: relative;
    overflow: hidden;
    margin: 0;
    padding: 28px 32px;
    border-radius: var(--sz-radius-card);
    background: var(--tg-common-color-gray-2);
}

.sz-article-rich-quote__mark {
    position: absolute;
    top: 4px;
    right: 26px;
    font-family: var(--tg-heading-font-family);
    font-weight: var(--tg-fw-extra-bold);
    font-size: 110px;
    line-height: 1;
    color: var(--tg-theme-primary);
    opacity: .16;
    pointer-events: none;
}

/* main.css styles every blockquote as a quoted panel (background, italic, left bar, quote icon). */
.sz-article .sz-article-rich-quote__text {
    position: static;
    overflow: visible;
    margin: 14px 0 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: none;
    font-style: normal;
}

.sz-article .sz-article-rich-quote__text::before,
.sz-article .sz-article-rich-quote__text::after {
    content: none;
}

.sz-article .sz-article-rich-quote__text p {
    max-width: 600px;
    margin: 0;
    font-family: var(--tg-heading-font-family);
    font-weight: var(--tg-fw-medium);
    font-size: 19px;
    font-style: normal;
    line-height: 1.55;
    color: var(--tg-heading-color);
    text-wrap: pretty;
}

.sz-article-rich-quote__author {
    display: flex;
    gap: 14px;
    align-items: center;
    margin-top: 22px;
}

.sz-article-rich-quote__photo {
    flex: none;
    display: block;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    object-fit: cover;
    background: #fff;
}

.sz-article .sz-article-rich-quote__name {
    margin: 0;
    font-weight: var(--tg-fw-semi-bold);
    font-size: 15px;
    color: var(--tg-heading-color);
}

.sz-article .sz-article-rich-quote__role {
    margin: 0;
    font-size: 13.5px;
    color: var(--tg-body-color);
}

/* =============================================================
   Featured training card
   ============================================================= */

.sz-article-rich-training {
    display: flex;
    flex-wrap: wrap;
    overflow: hidden;
    border: 1px solid var(--tg-border-3);
    border-radius: var(--sz-radius-card);
    background: #fff;
}

.sz-article-rich-training__offer {
    position: relative;
    flex: 1 0 210px;
    max-width: 240px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 26px;
    padding: 26px 24px;
    background: var(--tg-theme-primary);
    color: #fff;
}

.sz-article .sz-article-rich-training__eyebrow {
    margin: 0;
    font-family: var(--tg-heading-font-family);
    font-weight: var(--tg-fw-semi-bold);
    font-size: 12px;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--tg-theme-secondary);
}

.sz-article .sz-article-rich-training__price {
    margin: 0;
    font-family: var(--tg-heading-font-family);
    font-weight: var(--tg-fw-extra-bold);
    font-size: 36px;
    line-height: 1;
    color: #fff;
}

.sz-article .sz-article-rich-training__hours {
    margin: 8px 0 0;
    font-size: 13px;
    color: #fff;
    opacity: .85;
}

.sz-article .sz-article-rich-training__financing {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.sz-article-rich-training__financing li {
    padding: 4px 10px;
    border-radius: var(--sz-radius-pill);
    background: rgba(255, 255, 255, .2);
    font-weight: var(--tg-fw-semi-bold);
    font-size: 11px;
}

.sz-article-rich-training__star {
    position: absolute;
    top: 22px;
    right: 18px;
    width: 18px;
    height: 18px;
    fill: var(--tg-theme-secondary);
}

.sz-article-rich-training__details {
    flex: 1 1 320px;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 26px 28px;
}

.sz-article-rich-training__badges {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.sz-article .sz-article-rich-training__title {
    margin: 0;
    font-family: var(--tg-heading-font-family);
    font-weight: var(--tg-fw-semi-bold);
    font-size: 21px;
    line-height: 1.3;
    color: var(--tg-heading-color);
    text-wrap: pretty;
}

.sz-article .sz-article-rich-training__key-points li {
    font-weight: var(--tg-fw-medium);
    color: var(--tg-heading-color);
}

/* Some pedagogical objectives run over several lines: cut at two, the full text stays in the page. */
.sz-article-rich-training__key-point {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    overflow: hidden;
    min-width: 0;
}

.sz-article-rich-training__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 6px;
}

/* The offer panel stacks above the details once they no longer fit side by side. */
@media (max-width: 575px) {
    .sz-article-rich-training__offer {
        max-width: none;
    }

    .sz-article-rich-callout,
    .sz-article .sz-article-rich-quote {
        padding: 22px 20px;
    }
}
