/*
 * SENZA Formations - FAQ, sources, video and promotional visual of a blog article.
 *
 * The FAQ and the sources follow the rich blocks in the main column (templates/article/show/_faq.html.twig,
 * _sources.html.twig); the video and the promo card open the sidebar (_video_card.html.twig,
 * _promo_card.html.twig). Loaded right after article-rich-blocks.css.
 *
 * Text elements are prefixed with ".sz-article" to win over the paragraph and heading rules of main.css.
 */

.sz-article-faq,
.sz-article-sources {
    margin-top: 48px;
}

.sz-article .sz-article-faq__title,
.sz-article .sz-article-sources__title {
    margin: 0 0 16px;
    font-size: 26px;
    line-height: 1.3;
    font-weight: var(--tg-fw-semi-bold);
}

/* =============================================================
   FAQ
   ============================================================= */

/* Sz:AccordionItem rows in their "bare" skin, separated by rules as on the mock-up. */
.sz-article-faq__list {
    border-top: 1px solid var(--tg-border-3);
}

.sz-article-faq .sz-accordion__item:last-child {
    border-bottom: 1px solid var(--tg-border-3);
}

.sz-article-faq .sz-accordion__trigger {
    gap: 16px;
    padding: 18px 0;
    font-size: 17px;
    line-height: 1.4;
}

/* The open question keeps the heading colour: only its chevron tells it apart. */
.sz-article-faq .sz-accordion__trigger[aria-expanded="true"] {
    color: var(--tg-heading-color);
}

/* The right-pointing chevron of the bare skin, set in a circle and turned down when closed, up when open. */
.sz-article-faq .sz-accordion__chevron,
.sz-article-video .sz-accordion__chevron {
    box-sizing: border-box;
    border: 1.5px solid var(--tg-theme-primary);
    border-radius: 50%;
    transform: rotate(90deg);
}

.sz-article-faq .sz-accordion__chevron {
    width: 30px;
    height: 30px;
    padding: 7px;
}

.sz-article-faq .sz-accordion__trigger[aria-expanded="true"] .sz-accordion__chevron,
.sz-article-video .sz-accordion__trigger[aria-expanded="true"] .sz-accordion__chevron {
    transform: rotate(-90deg);
}

.sz-article-faq .sz-accordion__body--bare {
    padding: 0 0 20px;
}

.sz-article .sz-article-faq__answer {
    max-width: 660px;
    margin: -6px 0 0;
    font-size: 16px;
    line-height: 1.7;
    color: var(--tg-body-color);
}

/* =============================================================
   Sources
   ============================================================= */

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

.sz-article-sources__item {
    display: flex;
    gap: 14px;
    align-items: flex-start;
}

.sz-article-sources__number {
    flex: none;
    min-width: 24px;
    padding-top: 3px;
    font-family: var(--tg-heading-font-family);
    font-weight: var(--tg-fw-semi-bold);
    font-size: 13px;
    color: var(--tg-theme-primary);
    font-variant-numeric: tabular-nums;
}

.sz-article-sources__body {
    min-width: 0;
    overflow-wrap: anywhere;
}

/* main.css removes the underline of every link, hover included: it is set back explicitly. */
.sz-article .sz-article-sources__link,
.sz-article .sz-article-sources__link:hover,
.sz-article .sz-article-sources__link:focus {
    font-weight: 500;
    font-size: 15.5px;
    line-height: 1.5;
    color: var(--tg-heading-color);
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-color: var(--tg-border-1);
}

.sz-article .sz-article-sources__link:hover,
.sz-article .sz-article-sources__link:focus-visible {
    color: var(--tg-theme-primary);
    text-decoration-color: currentColor;
}

.sz-article-sources__domain {
    display: block;
    margin-top: 2px;
    font-size: 13px;
    color: var(--tg-body-color);
}

/* =============================================================
   Video
   ============================================================= */

/* In the page flow above the sticky stack (article-page.css), with the same gap. */
.sz-article-sidebar-media {
    display: flex;
    flex-direction: column;
    gap: 18px;
    margin-bottom: 18px;
}

/* Never shrunk by their column, whatever its height: the video keeps its 16/9 frame. */
.sz-article .sz-article-video,
.sz-article-promo {
    flex: none;
}

.sz-article .sz-article-video {
    padding: 0;
    overflow: hidden;
}

/* Shared by the facade link and the iframe that replaces it, so that the card keeps its height. */
.sz-article-video__player {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    aspect-ratio: 16 / 9;
    border: 0;
    background: var(--tg-common-color-black-2);
}

.sz-article-video__player--embedded {
    display: block;
}

.sz-article-video__thumbnail {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sz-article-video__play {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border: 2px solid var(--tg-common-color-white);
    border-radius: 50%;
    background: var(--tg-theme-primary);
    color: var(--tg-common-color-white);
    box-shadow: 4px 5px 0 0 var(--tg-common-color-blue);
    transition: transform 0.2s ease;
}

.sz-article-video__play svg {
    margin-left: 3px;
}

.sz-article-video__player:hover .sz-article-video__play,
.sz-article-video__player:focus-visible .sz-article-video__play {
    transform: scale(1.06);
}

.sz-article-video__meta {
    display: flex;
    gap: 12px;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px 16px;
}

.sz-article-video__heading {
    min-width: 0;
}

.sz-article .sz-article-video__label {
    margin: 0;
    font-size: 11.5px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    font-weight: var(--tg-fw-semi-bold);
    color: var(--tg-theme-primary);
}

.sz-article .sz-article-video__title {
    margin: 3px 0 0;
    font-family: var(--tg-heading-font-family);
    font-weight: var(--tg-fw-semi-bold);
    font-size: 15px;
    line-height: 1.3;
    color: var(--tg-heading-color);
}

.sz-article .sz-article-video__platform-link {
    flex: none;
    font-size: 13px;
    font-weight: var(--tg-fw-semi-bold);
    white-space: nowrap;
    color: var(--tg-theme-primary);
}

.sz-article .sz-article-video__platform-link:hover {
    color: var(--tg-common-color-blue);
}

.sz-article-video__transcript {
    border-top: 1px solid var(--tg-border-3);
}

.sz-article-video .sz-accordion__item {
    border-bottom: none;
}

.sz-article-video .sz-accordion__trigger {
    gap: 12px;
    padding: 13px 18px;
    font-size: 14px;
}

.sz-article-video .sz-accordion__trigger[aria-expanded="true"] {
    color: var(--tg-heading-color);
}

.sz-article-video .sz-accordion__chevron {
    width: 26px;
    height: 26px;
    padding: 6px;
}

.sz-article-video .sz-accordion__body--bare {
    padding: 0 18px 18px;
}

.sz-article-video__transcript-lines {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-height: 360px;
    overflow-y: auto;
    scrollbar-width: thin;
}

.sz-article .sz-article-video__transcript-line {
    margin: 0;
    font-size: 14px;
    line-height: 1.65;
    color: var(--tg-body-color);
}

.sz-article-video__timestamp {
    margin-right: 8px;
    font-weight: var(--tg-fw-semi-bold);
    color: var(--tg-theme-primary);
    font-variant-numeric: tabular-nums;
}

/* =============================================================
   Promotional visual
   ============================================================= */

/* Its offset shadow spills over the gap between the columns, nothing clips it. */
.sz-article-promo {
    padding: 20px 20px 24px;
    border-radius: var(--sz-radius-card);
    background: var(--tg-theme-primary);
    color: var(--tg-common-color-white);
    box-shadow: 4px 6px 0 0 var(--tg-common-color-blue);
}

.sz-article-promo__visual {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 10;
    margin-bottom: 18px;
    border-radius: 12px;
    object-fit: cover;
    background: rgba(255, 255, 255, 0.14);
}

.sz-article-promo__logo {
    display: block;
    width: auto;
    height: 30px;
    margin-bottom: 12px;
}

.sz-article .sz-article-promo__tagline {
    margin: 0 0 18px;
    font-family: var(--tg-heading-font-family);
    font-weight: var(--tg-fw-semi-bold);
    font-size: 18px;
    line-height: 1.4;
    color: var(--tg-common-color-white);
    text-wrap: pretty;
}

/* The default hover of .btn-two turns it primary, which would melt it into the card. */
.sz-article-promo .btn-two:hover,
.sz-article-promo .btn-two:focus-visible {
    background: var(--tg-common-color-blue);
    border-color: var(--tg-common-color-blue);
}
