/* ======================================================================== */
/*  TRENDIZE — LumApps demo site custom CSS                                 */
/* ======================================================================== */
/*
    TABLE OF CONTENTS
    0. Font imports (must stay at the very top of the file)
    1. ✍️  Brand settings — the only values to edit for a rebranding
    2. 🎨 LumApps Design System tokens (https://design.lumapps.com)
    3. 🌍 Global styles (applied everywhere)
    4. 🧩 Custom CSS classes
         4.1 Layout & utility classes (rows / cells / widgets)
         4.2 Widget classes
    5. 📃 Page-specific styles (login, homepage, user directory, onboarding)
    6. 🧪 Product improvements & bug fixes (grouped by product area)

    Naming convention for custom classes set in the designer:
    - widget class "xxx"  -> .widget--xxx
    - row class "xxx"     -> .component-row--xxx
    - cell class "xxx"    -> .component-cell--xxx
*/


/* ************************************************************************ */
/*  0. FONT IMPORTS                                                         */
/* ************************************************************************ */
/*  @import is only valid before any other rule: keep every font here.
    - Poppins: headlines (weights actually used: 300 to 700)
    - Cookie: handwriting style for quotes, used in the HTML widgets        */

@import url('https://fonts.googleapis.com/css2?family=Cookie&family=Poppins:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400&display=swap');


/* ************************************************************************ */
/*  1. ✍️ BRAND SETTINGS — change values in this section only               */
/* ************************************************************************ */

:root {
    /* FONTS */
    /* Uncomment to apply the font to every UI element (comments, descriptions...) */
    /* --lumx-typography-font-family: 'Poppins', sans-serif; */
    --lumx-typography-global-headlines-font-family: 'Poppins', sans-serif; /* To add in the product */
    --lumx-typography-global-headlines-font-weight: 600;                   /* To add in the product */

    /* BACKGROUNDS */
    --site-background: #f8f8f8;                                  /* Page background (view + designer) */
    --page-header-background: var(--lumx-color-primary-L5);      /* 'page-header' rows */

    /* GRADIENTS */
    /* Brand gradient: login page + breaking news excerpt */
    --gradient-except-homepage: linear-gradient(90deg, #ec56aa 38%, #f0b24b 100%);
    /* Homepage alert header — remove to rely on the native designer settings */
    --gradient-alert-homepage: linear-gradient(45deg, #367aff 0%, #da2887 100%);

    /* RADIUS — everything is derived from the default radius */
    --default-border-radius: 20px;
    --card-border-radius: var(--default-border-radius);                          /* 20px */
    --thumbnail-border-radius: calc(var(--default-border-radius) * 0.5);         /* 10px */
    --lumx-button-border-radius: calc(var(--default-border-radius) * 0.25);      /*  5px */
}


/* ************************************************************************ */
/*  2. 🎨 LUMAPPS DESIGN SYSTEM TOKENS                                      */
/* ************************************************************************ */

:root {
    /* TYPOGRAPHY — headlines (title1 to title6) inherit the brand font settings */
    --lumx-typography-custom-title1-font-family: var(--lumx-typography-global-headlines-font-family);
    --lumx-typography-custom-title1-font-weight: var(--lumx-typography-global-headlines-font-weight);
    --lumx-typography-custom-title1-line-height: 56px;
    --lumx-typography-custom-title2-font-family: var(--lumx-typography-global-headlines-font-family);
    --lumx-typography-custom-title2-font-weight: var(--lumx-typography-global-headlines-font-weight);
    --lumx-typography-custom-title2-line-height: 42px;
    --lumx-typography-custom-title3-font-family: var(--lumx-typography-global-headlines-font-family);
    --lumx-typography-custom-title3-font-weight: var(--lumx-typography-global-headlines-font-weight);
    --lumx-typography-custom-title4-font-family: var(--lumx-typography-global-headlines-font-family);
    --lumx-typography-custom-title4-font-weight: var(--lumx-typography-global-headlines-font-weight);
    --lumx-typography-custom-title5-font-family: var(--lumx-typography-global-headlines-font-family);
    --lumx-typography-custom-title5-font-weight: var(--lumx-typography-global-headlines-font-weight);
    --lumx-typography-custom-title6-font-family: var(--lumx-typography-global-headlines-font-family);
    --lumx-typography-custom-title6-font-weight: var(--lumx-typography-global-headlines-font-weight);

    /* TYPOGRAPHY — body styles */
    --lumx-typography-custom-intro-font-size: 20px;
    --lumx-typography-custom-intro-font-weight: var(--lumx-typography-font-weight-light);
    --lumx-typography-custom-intro-line-height: 30px;
    --lumx-typography-custom-body-large-font-size: 20px;
    --lumx-typography-custom-body-large-font-weight: var(--lumx-typography-font-weight-light);
    --lumx-typography-custom-metadata-font-size: 11px;
    --lumx-typography-custom-metadata-text-transform: uppercase;   /* To add in the product */
    --lumx-typography-custom-metadata-letter-spacing: 2px;         /* To add in the product */

    /* APP */
    --lumx-app-background: var(--site-background);
    --lumx-app-header-box-shadow: none;

    /* METADATA */
    --lumx-metadata-state-default-theme-light-color: var(--lumx-color-primary-L2);
    --lumx-metadata-state-hover-theme-light-color: var(--lumx-color-primary-L1);
    --lumx-metadata-state-active-theme-light-color: var(--lumx-color-primary-N);
    --lumx-metadata-margin-vertical: 0;                             /* To add in the product */
    --lumx-metadata-list-separator: '';

    /* TAG */
    --lumx-tag-state-default-theme-light-color: var(--lumx-color-primary-L2);
    --lumx-tag-state-hover-theme-light-color: var(--lumx-color-primary-L1);
    --lumx-tag-state-hover-theme-dark-color: var(--lumx-color-light-L2);
    --lumx-tag-state-active-theme-light-color: var(--lumx-color-primary-D2);
    --lumx-tag-state-active-theme-dark-color: var(--lumx-color-light-L2);

    /* TEXT FIELD */
    --lumx-text-field-input-border-radius: var(--default-border-radius);
    --lumx-text-field-state-default-theme-light-input-border-color: transparent;

    /* TABS — rounded "pill" tabs, low emphasis = 1px outline, selected = primary tint */
    --lumx-tabs-links-spacing: var(--lumx-spacing-unit-regular);    /* To add in the product */
    --lumx-tabs-link-height: 40px;
    --lumx-tabs-link-border-radius: var(--default-border-radius);

    --lumx-tabs-link-emphasis-low-state-default-border-top-width: 1px;
    --lumx-tabs-link-emphasis-low-state-default-border-right-width: 1px;
    --lumx-tabs-link-emphasis-low-state-default-border-bottom-width: 1px;
    --lumx-tabs-link-emphasis-low-state-default-border-left-width: 1px;
    --lumx-tabs-link-emphasis-low-state-default-theme-light-border-color: var(--lumx-color-dark-L4);
    --lumx-tabs-link-emphasis-low-state-default-theme-light-color: var(--lumx-color-dark-N);

    --lumx-tabs-link-emphasis-low-state-hover-border-top-width: 1px;
    --lumx-tabs-link-emphasis-low-state-hover-border-right-width: 1px;
    --lumx-tabs-link-emphasis-low-state-hover-border-bottom-width: 1px;
    --lumx-tabs-link-emphasis-low-state-hover-border-left-width: 1px;
    --lumx-tabs-link-emphasis-low-state-hover-theme-light-background-color: transparent;
    --lumx-tabs-link-emphasis-low-state-hover-theme-light-border-color: var(--lumx-color-dark-L3);
    --lumx-tabs-link-emphasis-low-state-hover-theme-light-color: var(--lumx-color-dark-N);
    --lumx-tabs-link-emphasis-low-state-hover-theme-dark-background-color: transparent;

    --lumx-tabs-link-emphasis-low-state-active-border-top-width: 1px;
    --lumx-tabs-link-emphasis-low-state-active-border-right-width: 1px;
    --lumx-tabs-link-emphasis-low-state-active-border-bottom-width: 1px;
    --lumx-tabs-link-emphasis-low-state-active-border-left-width: 1px;
    --lumx-tabs-link-emphasis-low-state-active-theme-light-background-color: transparent;
    --lumx-tabs-link-emphasis-low-state-active-theme-light-border-color: var(--lumx-color-dark-L2);
    --lumx-tabs-link-emphasis-low-state-active-theme-light-color: var(--lumx-color-dark-N);
    --lumx-tabs-link-emphasis-low-state-active-theme-dark-background-color: transparent;

    --lumx-tabs-link-emphasis-selected-state-default-border-bottom-width: 0px;
    --lumx-tabs-link-emphasis-selected-state-default-theme-light-background-color: var(--lumx-color-primary-L6);
    --lumx-tabs-link-emphasis-selected-state-default-theme-light-color: var(--lumx-color-primary-N);
    --lumx-tabs-link-emphasis-selected-state-hover-border-bottom-width: 0px;
    --lumx-tabs-link-emphasis-selected-state-hover-theme-light-background-color: var(--lumx-color-primary-L5);
    --lumx-tabs-link-emphasis-selected-state-hover-theme-light-color: var(--lumx-color-primary-N);
    --lumx-tabs-link-emphasis-selected-state-hover-theme-dark-background-color: transparent;
    --lumx-tabs-link-emphasis-selected-state-active-border-bottom-width: 0px;
    --lumx-tabs-link-emphasis-selected-state-active-theme-light-background-color: var(--lumx-color-primary-L4);
    --lumx-tabs-link-emphasis-selected-state-active-theme-light-color: var(--lumx-color-primary-N);
    --lumx-tabs-link-emphasis-selected-state-active-theme-dark-background-color: transparent;
}


/* ************************************************************************ */
/*  3. 🌍 GLOBAL STYLES                                                     */
/* ************************************************************************ */

/* --- Typography -------------------------------------------------------- */

/* Headline font on UI labels (needed while --lumx-typography-font-family is commented) */
.main-nav-item__label,
.widget-header__title,
.widget-footer__label,
.block-intro,
.widget-welcome {
    font-family: var(--lumx-typography-global-headlines-font-family);
}

/* Main navigation: medium instead of bold */
.main-nav-item__label {
    font-weight: 500;
}

/* Widget titles in primary color */
.widget--theme-light .block-title,
.widget-title__title {
    color: var(--lumx-color-primary-N) !important;
}

/* Rich text editor */
.block-structured-content strong.wrex-content-bold,
.ask-ai-answer__wrapper .wrex-content-bold {
    font-weight: 600 !important;
}
.block-structured-content .wrex-content-body {
    font-size: 18px !important;
}

/* --- Backgrounds ------------------------------------------------------- */

/* Page background (view mode and designer) */
.layout,
.content--designer-mode,
#front-office-app {
    background-color: var(--site-background);
}

/* --- Radius ------------------------------------------------------------ */

/* Unified radius on all thumbnails, including Play video thumbnails */
.lumx-thumbnail__image,
.block-video-thumbnail__image {
    border-radius: var(--thumbnail-border-radius);
}

/* --- Top bar ----------------------------------------------------------- */

/* Hide Favorite sites and Resource center icons */
.header-top__favorite-sites,
.header-top__resource-center {
    display: none;
}

/* --- Metadata (pill style) --------------------------------------------- */

.metadata-link {
    padding: 3px 15px !important;
    border-radius: var(--lumx-button-border-radius) !important;
    text-transform: uppercase;
    font-weight: bolder !important;
}
.metadata-link--theme-light {
    color: #ffffff !important;
    background-color: var(--lumx-color-primary-N) !important;
}
.metadata-link--theme-dark {
    color: var(--lumx-color-primary-N) !important;
    background-color: #ffffff !important;
}

/* Missing spacing between metadata and publication date (metadata widget) */
.metadata-link-list {
    margin-top: 5px !important;
}


/* ************************************************************************ */
/*  4. 🧩 CUSTOM CSS CLASSES                                                */
/* ************************************************************************ */

/* ======================================================================== */
/*  4.1 Layout & utility classes                                            */
/* ======================================================================== */

/* Row 'page-header' (full width) and 'page-header--theme-dark' */
.component-row--page-header,
.component-row--page-header--theme-dark {
    padding-top: 20px;
    padding-bottom: 20px;
    margin-bottom: 40px;
}
.component-row--page-header {
    min-height: 230px;
    background-color: var(--page-header-background) !important;
}
.component-row--page-header--theme-dark {
    background-color: var(--lumx-color-primary-N);
}

/* Variant: page header inside the container instead of full width.
   Uncomment to use it as the default.
.row.component-row--page-header {
    background-color: transparent !important;
}
.row.component-row--page-header .row-wrapper.row-wrapper--is-regular {
    background-color: var(--page-header-background) !important;
    padding: 10px;
    border-radius: var(--thumbnail-border-radius);
}
.component-row--page-header {
    padding-bottom: 0;
    margin-bottom: 0;
}
*/

/* Row 'separator-top' / 'separator-bottom' (to replace with cell borders) */
.row[class*='component-row--separator'] > .row-wrapper,
.component-row[class*='component-row--separator'] > .component-row__wrapper {
    border: 0 solid var(--lumx-color-dark-L4);
}
.component-row--separator-top > .row-wrapper,
.component-row--separator-top > .component-row__wrapper {
    padding-top: var(--row-spacing);
    border-top-width: 1px !important;
}
.component-row--separator-bottom > .row-wrapper,
.component-row--separator-bottom > .component-row__wrapper {
    padding-bottom: var(--row-spacing);
    border-bottom-width: 1px !important;
}
@media (min-width: 64em) {
    .component-row--separator-bottom > .row-wrapper,
    .component-row--separator-bottom > .component-row__wrapper {
        width: 936px !important;
    }
}

/* Row 'fixed': fixed (parallax) background image */
.component-row--fixed {
    background-attachment: fixed;
}

/* Row or widget 'dark': primary background */
.component-row--dark,
.widget--dark .widget-content {
    background-color: var(--lumx-color-primary-N) !important;
}

/* Widget 'blur': frosted glass background */
.widget--blur .widget-content,
.widget--blur .block-list__item {
    background-color: rgba(255, 255, 255, .25) !important;
    backdrop-filter: blur(70px);
}

/* Widget 'title-center': centered title */
.widget--title-center {
    --lumx-widget-title-alignment-h: center;
    --lumx-widget-title-text-align: center;
}

/* Widget alignment: 'h-align-left' / 'h-align-center' / 'h-align-right' / 'v-align-center' (! Unsafe) */
.widget--h-align-center {
    align-items: center;
}
.widget--h-align-center .widget-content {
    justify-content: center;
}
.widget--h-align-left .widget-content {
    justify-content: flex-start !important;
}
.widget--h-align-right .widget-content {
    justify-content: flex-end;
}
.widget--v-align-center .widget-content {
    align-items: center;
}

/* 'not-in-mobile' on a widget, row or cell: hidden on mobile */
@media (max-width: 767px) {
    .widget--not-in-mobile,
    .component-row--not-in-mobile,
    .component-cell--not-in-mobile {
        display: none;
    }
}

/* ======================================================================== */
/*  4.2 Widget classes (alphabetical)                                       */
/* ======================================================================== */

/* --- 'community-list-card': communities with a small round thumbnail --- */
.widget--community-list-card .lumx-thumbnail__background .lumx-thumbnail__image {
    width: 72px !important;
    height: 72px !important;
    margin-left: 24px;
    border-radius: 50% !important;
    object-fit: cover !important;
}

/* --- 'community-list-in-community-hub': community lists on the Community hub page --- */
.widget--community-list-in-community-hub .widget-header {
    text-align: center;
}
.widget--community-list-in-community-hub .widget-header .widget-header__icon {
    padding: 3px 10px;
    margin-bottom: 10px;
    border-radius: 100px;
    background-color: var(--lumx-color-primary-N);
}

/* --- 'custom_news': story-like 3-column news cards --- */
@media (min-width: 481px) {
    .widget--custom_news .widget-slideshow__wrapper,
    .widget--custom_news .lumx-slideshow__wrapper {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 24px !important;
    }
    .widget--custom_news .widget-slideshow__block {
        height: 100%;
    }
    .widget--custom_news .widget-slideshow__controls,
    .widget--custom_news .block-slideshow--size-l.block-slideshow--cover .block-slideshow__controls {
        display: none;
    }
    .widget--custom_news .block-slideshow--with-navigation .block-page-preview--cover.block-page-preview--size-xs .block-page-preview__content {
        padding: 110px 24px 24px 24px !important;
    }
    .widget--custom_news .content-block--background-thumbnail .content-block__thumbnail {
        align-items: flex-end;
        height: 100%;
    }
    .widget--custom_news .content-block-excerpt,
    .widget--custom_news .block-html.block-html--dark {
        font-size: var(--lumx-typography-custom-body-font-size) !important;
    }
    /* Dark gradient overlay for readability */
    .widget--custom_news .block-page-preview--cover .block-page-preview__content:before,
    .widget--custom_news .content-block--default-style.content-block--view-mode-cover.content-block--background-thumbnail .content-block__fields {
        content: '';
        position: absolute;
        inset: 0;
        pointer-events: none;
        background: linear-gradient(360deg, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0.44) 55%, rgba(0, 0, 0, 0) 80%);
        opacity: 1;
        border-radius: 16px;
    }
    .widget--custom_news .content-block-title a,
    .widget--custom_news .content-block-title,
    .widget--custom_news .block-page-preview__title {
        font-family: var(--lumx-typography-custom-title4-font-family);
        font-size: var(--lumx-typography-custom-title4-font-size);
        font-style: var(--lumx-typography-custom-title4-font-style);
        font-weight: var(--lumx-typography-custom-title4-font-weight);
        line-height: var(--lumx-typography-custom-title4-line-height);
    }
    .widget--custom_news .content-block-title a {
        width: 130% !important;
    }
}
.widget--custom_news .lumx-thumbnail__background {
    transition: transform 0.4s;
}
.widget--custom_news .lumx-thumbnail__background:hover {
    transform: scale(1.15);
}
.widget--custom_news .metadata-link {
    color: white !important;
    background-color: var(--lumx-color-primary-N) !important;
}

/* --- 'learning-compact': learning catalog with small thumbnails --- */
.widget--learning-compact .lumx-grid-column {
    --lumx-grid-column-columns: 2;
}
.widget--learning-compact .lumx-link__content {
    display: flex !important;
}
.widget--learning-compact .training-informations__container-without-progress-bar,
.widget--learning-compact .training-informations__container-with-progress-bar {
    width: 200px;
    margin-right: 20px;
}
.widget--learning-compact .training-informations__text {
    margin-top: 0 !important;
}

/* --- 'metadata-no-bg': metadata without the pill background --- */
.widget--metadata-no-bg .metadata-link {
    padding: 0 !important;
    font-size: medium;
}
.widget--metadata-no-bg .metadata-link--theme-light {
    color: var(--lumx-color-primary-N) !important;
    background-color: transparent !important;
}
/* (theme-dark keeps the global pill style: primary text on white) */

/* --- 'slideshow-content-list': less space between slideshow actions and news (76px by default) --- */
.widget--slideshow-content-list .block-page-preview__content {
    padding-bottom: 40px !important;
}

/* --- 'space-instagram-design': communities listed like Instagram stories --- */
.widget--space-instagram-design {
    --lumx-thumbnail-aspect-ratio: 1/1;
    overflow: visible !important;
}
.widget--space-instagram-design .widget-content {
    overflow: visible !important;
}
.widget--space-instagram-design .block-grid {
    --lumx-grid-column-item-min-width: 150px !important;
}
.widget--space-instagram-design .block-community-preview {
    align-items: center;
}
.widget--space-instagram-design .block-community-preview .block-community-preview__thumbnail-wrapper {
    width: 100px;
    height: 100px;
    margin-bottom: var(--lumx-spacing-unit-big) !important;
    overflow: hidden;
    border-radius: 999px;
    outline: 4px solid var(--lumx-color-secondary-D2);
    outline-offset: 4px;
}
.widget--space-instagram-design .lumx-heading.lumx-text {
    text-align: center;
}

/* --- 'squared-thumb': square thumbnails --- */
.widget--squared-thumb .block-page-preview .block-page-preview__thumbnail-wrapper,
.widget--squared-thumb .block-community-preview .block-community-preview__thumbnail-wrapper {
    flex: 0 0 96px !important; /* ! Unsafe */
}
.widget--squared-thumb .lumx-thumbnail {
    --lumx-thumbnail-aspect-ratio: 1/1;
}

/* --- 'ungrouped-news': each content list item as a white card --- */
.widget--ungrouped-news .block-list__item {
    padding: 20px;
    border-radius: var(--card-border-radius);
    background-color: white !important;
}
.widget--ungrouped-news .lumx-divider {
    display: none;
}

/* --- 'welcome-bold': bolder welcome widget --- */
.widget--welcome-bold {
    font-weight: var(--lumx-typography-global-headlines-font-weight);
}

/* --- Shared: title4 typography reused by several widget classes
       (custom_news gets the same set from tablet size, inside its media query) --- */
.widget--breaking-news .block-page-preview__excerpt,
.widget--upcoming-events .lumx-heading .lumx-link__content {
    font-family: var(--lumx-typography-custom-title4-font-family);
    font-size: var(--lumx-typography-custom-title4-font-size);
    font-style: var(--lumx-typography-custom-title4-font-style);
    font-weight: var(--lumx-typography-custom-title4-font-weight);
    line-height: var(--lumx-typography-custom-title4-line-height);
}


/* ************************************************************************ */
/*  5. 📃 PAGE-SPECIFIC STYLES                                              */
/* ************************************************************************ */

/* ======================================================================== */
/*  5.1 Login page (v2)                                                     */
/* ======================================================================== */

#login-app {
    background: var(--gradient-except-homepage) !important;
    /* background-image: url('ADD THE BACKGROUND IMAGE URL');
       background-size: cover; */
}
.login-page {
    background-color: white !important;
}

/* ======================================================================== */
/*  5.2 Homepage                                                            */
/* ======================================================================== */

/* --- 'alert' / 'alert-full' --- */
.widget--alert {
    align-items: center;
}
.widget--alert .lumx-link__content {
    font-size: 15px;
}
.widget--alert .block-slideshow__controls {
    display: none;
}
.widget--alert .block-slideshow__item-wrapper {
    text-align: center;
}
.widget--alert .block-slideshow--grouped,
.widget--alert .block-slideshow--ungrouped {
    margin-top: 0;
}
.widget--alert-full {
    display: grid !important;
    grid-template-columns: 35% 65% !important;
    gap: 20px !important;
}
.widget--alert-full .widget-header {
    padding-top: 25px;
}
.widget--alert-full .widget-header__wrapper {
    background: var(--gradient-alert-homepage);
}
.widget--alert-full .lumx-link__content::before {
    font-size: 20px;
}
.widget--alert-full .block-page-preview__title {
    text-align: left;
}

/* --- 'breaking-news': full-width hero news --- */
.widget--breaking-news {
    --lumx-typography-custom-title3-font-size: 60px;
    --lumx-typography-custom-title3-line-height: 50px;
    --lumx-typography-custom-metadata-font-size: 22px;
    --lumx-typography-custom-metadata-font-weight: 700;
    --lumx-typography-custom-publish-info-font-size: 16px;
}
.widget--breaking-news .lumx-thumbnail__image {
    border-radius: 0;
}
.widget--breaking-news .widget-content {
    padding: 0 !important;
    border-radius: 0 !important;
}
.widget--breaking-news .metadata-link {
    text-transform: uppercase !important;
    letter-spacing: -0.7px;
    color: white !important;
    background-color: transparent !important;
    text-shadow: 2px 2px 5px black;
}
.widget--breaking-news .block-page-preview .block-page-preview__content {
    position: relative !important;
    gap: var(--lumx-spacing-unit-huge) !important;
    align-items: center !important;
    justify-content: center !important;
    height: 100% !important;
    padding: 0 !important;
    background-color: var(--lumx-color-dark-L3) !important;
}
.widget--breaking-news .block-page-preview .block-page-preview__content::before {
    display: none !important;
}
.widget--breaking-news .block-page-preview .block-page-preview__field {
    max-width: 900px !important;
    margin: 0 !important;
}
.widget--breaking-news .block-page-preview .block-page-preview__title {
    text-align: center;
    line-height: 60px !important;
}
.widget--breaking-news .block-page-preview__title .lumx-link__content {
    text-shadow: 2px 2px 5px black;
}
/* Excerpt: title4 typography (see 4.2 shared) at 30px, filled with the brand gradient */
.widget--breaking-news .block-page-preview__excerpt {
    font-size: 30px !important;
    text-align: center;
    background: var(--gradient-except-homepage);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.widget--breaking-news .block-slideshow .block-slideshow__controls {
    right: auto !important;
    left: 50% !important;
    transform: translateX(-50%);
}

/* --- 'upcoming-events' --- */
.widget--upcoming-events .reactions-block,
.widget--upcoming-events .event-actions {
    display: none;
}
.widget--upcoming-events .block-event-preview__date,
.widget--upcoming-events .block-event-preview__title {
    font-size: 15px;
    font-style: var(--lumx-typography-custom-body-font-style);
}
.widget--upcoming-events .block-event-preview__date {
    font-weight: bold;
}
.widget--upcoming-events .block-event-preview__title {
    font-weight: var(--lumx-typography-interface-subtitle1-font-weight);
}
.widget--upcoming-events .block-event-preview__date::before {
    content: '';
    display: inline-block;
    width: 16px;
    height: 16px;
    margin-right: 8px;
    vertical-align: middle;
    background: url('https://trendize.lumapps.com/serve/4930449491099648-1810132748352095/calendar-icon-white.png?contentDisposition=inline') center / contain no-repeat;
}
/* Event title: title4 typography (see 4.2 shared) with title3 size */
.widget--upcoming-events .lumx-heading .lumx-link__content {
    font-size: var(--lumx-typography-custom-title3-font-size);
    filter: brightness(2);
}
.widget--upcoming-events .lumx-thumbnail__image {
    border-radius: 200px var(--lumx-button-border-radius) var(--lumx-button-border-radius) 200px;
}

/* --- 'tools' --- */
.widget--tools .lumx-thumbnail__image {
    border-radius: var(--lumx-button-border-radius);
}
.widget--tools .lumx-thumbnail--theme-dark .lumx-thumbnail__image {
    background: var(--lumx-color-light-L3);
}
.widget--tools .lumx-thumbnail--theme-light .lumx-thumbnail__image {
    background-color: var(--lumx-color-primary-L5);
}
.widget--tools .directory-entry-block__actions {
    display: none;
}

/* --- Section widgets with an illustration on the right: 'section-space' / 'section-learning' --- */
.widget--section-space,
.widget--section-learning {
    position: relative;
    padding: 2rem;
    background-image: var(--section-illustration);
    background-repeat: no-repeat;
    background-position: right center !important;
    background-size: 200px auto !important;
}
.widget--section-space {
    --section-illustration: url('https://trendize.lumapps.com/serve/4930449491099648-4601456288385001/social-illustration.png?contentDisposition=inline');
}
.widget--section-learning {
    --section-illustration: url('https://trendize.lumapps.com/serve/4930449491099648-7452564412042345/learning-illustration.png?contentDisposition=inline');
}

/* --- Posts with an illustration: 'post-question' / 'post-idea' --- */
.widget--post-question .block-post__content::after,
.widget--post-idea .block-post__content::after {
    content: '';
    display: inline-block;
    width: 250px;
    height: 250px;
    margin-left: 8px;
    background-image: var(--post-illustration);
    background-size: cover;
}
.widget--post-question {
    --post-illustration: url('https://trendize.lumapps.com/serve/4930449491099648-2528169335768867/question-illustration.png?contentDisposition=inline');
}
.widget--post-idea {
    --post-illustration: url('https://trendize.lumapps.com/serve/4930449491099648-3638971229164723/idea-illustration.png?contentDisposition=inline');
}

/* Question flags readable on dark widgets */
.widget--theme-dark [data-id='posts-flag-unanswered'],
.widget--theme-dark [data-id='posts-flag-answered'] {
    background-color: white;
    border-color: var(--lumx-color-light-L2);
}

/* --- 'learning-dark': 3 trainings max, no search, white text --- */
.widget--learning-dark .lumx-grid-column > :nth-child(n + 4),
.widget--learning-dark .learning-catalog__search {
    display: none;
}
.widget--learning-dark .lumx-text:not(.lumx-flag__label) {
    color: white;
}

/* ======================================================================== */
/*  5.3 User directory page                                                 */
/* ======================================================================== */

.user-directory-page {
    width: 100%;
    padding: 30px 200px 0;
}
.user-directory-page .lumx-header-label__title {
    color: var(--lumx-color-primary-N) !important;
    font-family: var(--lumx-typography-custom-title1-font-family);
    font-size: var(--lumx-typography-custom-title1-font-size);
    font-style: var(--lumx-typography-custom-title1-font-style);
    font-weight: var(--lumx-typography-custom-title1-font-weight);
    line-height: var(--lumx-typography-custom-title1-line-height);
    text-align: var(--lumx-widget-title-text-align);
    text-transform: var(--lumx-widget-title-text-transform);
    word-break: break-word;
}
.user-directory-content__wrapper {
    margin-top: 50px;
}
.user-directory-list__card,
.user-directory-page__card {
    border-radius: var(--card-border-radius);
}

/* ======================================================================== */
/*  5.4 Onboarding / DEI page                                               */
/* ======================================================================== */

.widget--onboarding-ceo-video-text,
.widget--onboarding-ceo-video-text .widget-content {
    background-color: var(--lumx-color-primary-N) !important;
}

/* Video row above the next rows, without radius */
.component-row--onboarding-video-row {
    z-index: 1;
}
.component-row--onboarding-video-row .video-player,
.component-row--onboarding-video-row .video-player .lumx-thumbnail .lumx-thumbnail__image {
    border-radius: 0 !important;
}

/* Step counter: 'onboarding-count' + 'onboarding-count--1' ... '--5' */
.widget--onboarding-count {
    position: relative;
    padding-left: 80px;
}
.widget--onboarding-count::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 64px;
    font-family: sans-serif;
    font-size: 78px;
    font-weight: 200;
    line-height: 1;
}
.widget--theme-light.widget--onboarding-count::before {
    color: var(--lumx-color-primary-N);
    background-color: transparent;
}
.widget--theme-dark.widget--onboarding-count::before {
    color: #ffffff;
    background-color: var(--lumx-color-primary-N);
}
.widget--onboarding-count--1::before { content: '1/'; }
.widget--onboarding-count--2::before { content: '2/'; }
.widget--onboarding-count--3::before { content: '3/'; }
.widget--onboarding-count--4::before { content: '4/'; }
.widget--onboarding-count--5::before { content: '5/'; }


/* ************************************************************************ */
/*  6. 🧪 PRODUCT IMPROVEMENTS & BUG FIXES                                  */
/* ************************************************************************ */

/* ======================================================================== */
/*  6.1 Micro-apps & My Apps                                                */
/* ======================================================================== */

.my-apps {
    padding-bottom: 0;
}
.myapps-header .lumx-select {
    padding: 0;
}
.my-apps .micro-app {
    padding: 0;
    border: 1px solid rgb(224, 224, 224);
    border-radius: var(--card-border-radius);
    background: var(--lumx-color-light-N);
    box-shadow: none;
}
.my-apps .micro-app__header {
    padding-top: 10px;
    padding-bottom: 10px;
    border-top-left-radius: var(--lumx-button-border-radius);
    border-top-right-radius: var(--lumx-button-border-radius);
    background-color: var(--lumx-color-primary-N);
}
.my-apps .micro-app__header-title {
    margin-top: 8px !important;
    color: var(--lumx-color-light-N);
}
.my-apps .micro-app__header .micro-app__header-button {
    color: var(--lumx-color-light-N);
}

/* Micro-app widget: title spacing and auto height */
.widget-micro-app .lumx-toolbar {
    padding-left: 0;
    padding-bottom: 20px;
}
.widget-micro-app .widget-wrapper {
    height: auto !important;
}

/* Micro-app buttons and thumbnails */
.lumx-adaptive-card__element--action-set {
    display: block !important;
    padding-top: 10px;
    padding-bottom: 10px;
}
.lumx-adaptive-card__element.lumx-adaptive-card__element--action-set {
    margin-top: 0 !important;
}
.micro-app .lumx-thumbnail__image {
    border-radius: var(--card-border-radius) !important;
}

/* No border when a micro-app opens in a modal (web) */
.lumx-dialog .micro-app {
    border-color: transparent !important;
}

/* SNCF micro-app: custom background */
[data-id='micro-app-213259417888433193631854722086131858779'] .adaptive-card {
    padding: 10px;
    background-color: #fcc6a2;
}

/* ======================================================================== */
/*  6.2 AI: Ask AI, Digital Assistant, Agents                               */
/* ======================================================================== */

/* Standardized body text in the Digital Assistant and the Agent chat */
.assistant-message .wrex-content-body,
.assistant-message .lumx-flex-box,
.ai-agents-chat-drawer .wrex-content-body,
.ai-agents-chat-drawer .wrex-content-link {
    font-size: 14px;
    font-weight: var(--lumx-typography-interface-body1-font-weight);
    line-height: 20px;
}

/* Agent chat */
.ai-agents-chat-drawer .wrex-content-body.wrex-text-align-start {
    margin-bottom: 5px !important;          /* No extra space after a line followed by a list */
}
.agents-chat-drawer b,
.agents-chat-drawer strong {
    font-weight: 600 !important;
}
.lumx-chat-footer__text-field .lumx-text-field__input-wrapper {
    padding: 5px !important;                /* Input text cut on the corners */
}
.lumx-chat-drawer .lumx-dialog__header {
    margin-bottom: 20px !important;         /* Space between header and the first user message */
}
.ai-agent-message .micro-app {
    width: 100% !important;
    border-radius: 15px !important;
    background-color: var(--lumx-color-dark-L6) !important;
}

/* Agent library: no hard-coded header background */
.agent-library__header::before {
    background-image: none !important;
    background-color: var(--lumx-color-primary-L5) !important;
}

/* Ask AI: no negative margin on the conversation section */
.ai-generated-result-loading-state,
.search-generated-results {
    margin: 0 0 24px !important;
}

/* Ask AI: answer formatting */
.ask-ai-answer__wrapper .wrex-content-body,
.ask-ai-answer__wrapper .wrex-content-link,
.ask-ai-answer__wrapper .wrex-content-title {
    font-size: 16px;
}
.ask-ai-answer__wrapper .wrex-text-align-start {
    margin-bottom: 10px;
}
.ask-ai-answer-footer .lumx-typography-body2 {
    padding-left: 10px;
    padding-right: 10px;
    font-size: smaller;
    border: 1px solid var(--lumx-color-dark-L4);
    border-radius: var(--lumx-tabs-link-border-radius);
    background: var(--lumx-color-light-L2);
}
.ask-ai-source-chip {
    background: var(--lumx-color-light-L2) !important;
}

/* Ask AI: source icons for ServiceNow and Confluence results */
.ask-ai-sources-list__source-chip a[href*="service-now"] {
    --source-icon: url("https://cdn-public.softwarereviews.com/production/favicons/offerings/8865/original/NOW.png");
}
.ask-ai-sources-list__source-chip a[href*="atlassian"] {
    --source-icon: url("https://cdn-icons-png.flaticon.com/512/5968/5968793.png");
}
.ask-ai-sources-list__source-chip a[href*="service-now"] .lumx-icon,
.ask-ai-sources-list__source-chip a[href*="atlassian"] .lumx-icon {
    display: none;
}
.ask-ai-sources-list__source-chip a[href*="service-now"]::before,
.ask-ai-sources-list__source-chip a[href*="atlassian"]::before {
    content: "";
    display: inline-block;
    width: 16px;
    height: 16px;
    margin-top: 8px;
    vertical-align: middle;
    background: var(--source-icon) center / contain no-repeat;
}
.ask-ai-sources-list__source-chip a[href*="service-now"] span,
.ask-ai-sources-list__source-chip a[href*="atlassian"] span {
    margin-left: 15px;
}

/* ======================================================================== */
/*  6.3 Search                                                              */
/* ======================================================================== */

/* Source logos on search tabs: LumApps / Microsoft / Google Drive */
#all,
[data-id='search-filter-microsoft'],
[data-id='search-filter-e4526712-4ef3-4cc7-b45d-8b893d2522bd'] {
    background-repeat: no-repeat;
    background-position: left center;
    background-size: 30px 30px;
}
#all {
    padding-left: 35px;
    margin-right: 15px;
    background-image: url(https://storage.googleapis.com/greg-carlin-lumapps-extensions/img/lumapps-logo-grey.png);
}
[data-id='search-filter-microsoft'] {
    background-image: url(https://storage.googleapis.com/greg-carlin-lumapps-extensions/img/microsoft-logo-grey.png);
}
[data-id='search-filter-e4526712-4ef3-4cc7-b45d-8b893d2522bd'] {
    background-image: url(https://storage.googleapis.com/greg-carlin-lumapps-extensions/img/googledrive-logo-grey.png);
}
[data-id='search-filter-microsoft'] span,
[data-id='search-filter-e4526712-4ef3-4cc7-b45d-8b893d2522bd'] span {
    padding-left: 30px;
}

/* File type colors in search results */
[data-id='search-result-thumbnail-folder'] svg                { color: #f5d367; }
[data-id='search-result-thumbnail-file'] svg                  { color: #a9a8a8; }
[data-id='search-result-thumbnail-file-excel-box'] svg,
[data-id='search-result-thumbnail-google-spreadsheet'] svg    { color: #207d41; }
[data-id='search-result-thumbnail-file-powerpoint-box'] svg,
[data-id='search-result-thumbnail-file-presentation-box'] svg { color: #d14722; }
[data-id='search-result-thumbnail-file-word-box'] svg,
[data-id='search-result-thumbnail-file-document-box'] svg     { color: #1d78d4; }
[data-id='search-result-thumbnail-web-box'] svg               { color: #218285; }
[data-id='search-result-thumbnail-file-pdf-box'] svg          { color: #b30c00; }

/* Promoted results */
.lumx-flag--color-yellow {
    border: 1px solid var(--lumx-color-primary-L3);
    background-color: var(--lumx-color-primary-L6);
}

/* Segmented search: font sizes */
.search-page__results-wrapper .lumx-typography-headline {
    font-size: 22px !important;
}
.layout-wrapper__show-all .lumx-typography-subtitle2 {
    font-size: 14px !important;
}

/* ======================================================================== */
/*  6.4 Events, comments & posts                                            */
/* ======================================================================== */

.widget-event-organizers .widget-header__title,
.space-wrapper .widget-comments .widget-header__title {
    font-weight: bold;
    font-size: 16px !important;
}

/* White text on dark event widgets */
.widget--theme-dark.widget-event-list .widget-content .lumx-link__content,
.widget--theme-dark.widget--upcoming-events button .lumx-link__content {
    color: white;
}
.widget--theme-dark.widget-event-list .widget-content svg path {
    fill: white;
}

/* Comment author readable in dark mode */
.comments--theme-dark .user-card-popover__wrapper .lumx-link__content {
    color: white;
}

/* Post categories readable on a dark background */
.lumx-color-font-light-N .post-publication-description__tags {
    color: var(--lumx-color-light-N);
    font-weight: bolder;
}

/* ======================================================================== */
/*  6.5 Journeys & Learning                                                 */
/* ======================================================================== */

/* No hard-coded white background behind the "Mark as done" button */
.acknowledge-message {
    background-color: transparent !important;
}

/* End-user journey items as white cards, one per row */
.end-user-journey-items-list .lumx-list-item {
    margin-bottom: 30px;
    padding: 30px;
    border-radius: var(--lumx-button-border-radius) !important;
    background: white !important;
}
.end-user-journey-items-list .lumx-divider--theme-light {
    background-color: transparent !important;
}
.end-user-journey-items-list .lumx-grid-column {
    --lumx-grid-column-columns: 1 !important;
}

/* Learning iframe not squeezed by the footer */
.training-page.page.page--wide {
    min-height: 85vh;
}


/* Added by jmazoyer 041226 following Mix Mode */

/* COURSE HEADER — catégories en pastilles */
.learning-object-header__content .lumx-inline-list {
    display: flex !important;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0;
    padding: 0;
}
.learning-object-header__content .lumx-inline-list__item {
    display: inline-flex;
    margin: 0 !important;
    padding: 0 !important;
}
.learning-object-header__content .lumx-inline-list__item-separator {
    display: none !important;
}
.learning-object-header__content .lumx-inline-list__item .lumx-text {
    display: inline-block;
    white-space: nowrap;            /* un libellé ne se coupe jamais */
    padding: 4px 12px;
    border: 1px solid var(--lumx-color-primary-L3);
    border-radius: 999px;
    background: var(--lumx-color-primary-L6);
    color: var(--lumx-color-primary-N);
    font-size: 12px;
    line-height: 1.4;
    letter-spacing: 0.5px;          /* au lieu de 2px */
    text-transform: none;           /* « Crowning Stories » au lieu de « CROWNING STORIES » */
}

/* COURS — barre de navigation en bas, relevée de quelques pixels */
.activity-toolbar {
    order: 99;
    margin-bottom: 25px; /* ← hauteur de remontée, à ajuster */
}

/* COURS MOBILE — carte presque collée aux bords */
.mobile-course-activity .lumx-slideshow {
    padding-left: 8px !important;
    padding-right: 8px !important;
}

/* texte plus large dans la carte */
.mobile-course-activity .course-card__card {
    padding-left: 16px !important;
    padding-right: 16px !important;
}

.course-card__card--transition {
	
	background-color: darkgoldenrod !important;
}







/* ======================================================================== */
/*  6.6 Play (video)                                                        */
/* ======================================================================== */

/* Cover mode on video thumbnails */
.video-player__thumbnail :where(img:not(.video-player__thumbnail__fallback, .lumx-thumbnail__image--is-loading)),
.video-list__thumbnail :where(img:not(.video-list__thumbnail__fallback, .lumx-thumbnail__image--is-loading)),
.block-video-thumbnail__image img {
    object-fit: cover !important;
}

/* No hard-coded white background on a playlist */
.playlist-page.page--has-background {
    background-color: transparent;
}

/* ======================================================================== */
/*  6.7 Designer, settings & misc                                           */
/* ======================================================================== */

/* Writer mode: featured image button full height + centered title */
.content--basic-designer-mode .widget-featured-image,
.content--basic-designer-mode .widget-featured-image button {
    height: 100% !important;
}
.widget-title__editable-textarea .lumx-text-field__input-native {
    text-align: center;
    margin-top: 15px;
}

/* Hide the translation popover in the page writer editor */
.content-language-popover {
    display: none !important;
}

/* Colored lock icon in the style panel when activated */
.mdi-lock {
    color: var(--lumx-color-secondary-N);
}

/* Icon alignment */
.lumx-icon--has-shape {
    display: flex !important;
}

/* Spaces: full width for all tabs */
.space-wrapper--list {
    display: block !important;
}

/* Social Advocacy "Add" button above the chatbot button */
.sa-make-shareable__fab {
    bottom: 100px;
}

/* Warning on the user preferences page */
[data-id='user-settings-general-tab']:before {
    content: '⚠️ Please do not edit the main language of the demo users';
    margin-top: 20px;
    padding: 2px 7px;
    border-radius: var(--lumx-button-border-radius);
    font-size: 15px;
    font-weight: bold;
    color: #ff4433;
    background-color: #ffe5b4;
}
