/* ================================================================ */
/* Media Library
/* ================================================================ */

/* ———————————————————————————————————————————————————————————————— */
/* Global Variables
/* ———————————————————————————————————————————————————————————————— */

:root {
    /* Color */
    --color-green-base: #1AC374;
    --color-green-light: #25CC7E;
    --color-type-base: #333840;
    --color-type-light: #7D8085;
    /* Common */
    --border-base: 1px solid rgba( 0, 0, 0, 0.16 );
    --border-active: 1px solid var( --color-green-base );
    --border-radius-base: 6px;
    --border-radius-small: 4px;
    --box-shadow-active: 0 0 0 1px var( --color-green-base );
    --clip-path-base: polygon( 0 0, 100% 0, 100% calc( 100% - 56px ), 0 100% );
    /* Type */
    --font-family-mono: 'IBM Plex Mono', monospace;
    --font-family-icon: 'Material Symbols Outlined', sans-serif;
    --font-weight-base: 400;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;
}


/* ———————————————————————————————————————————————————————————————— */
/* Typography
/* ———————————————————————————————————————————————————————————————— */

/* Headings
/* ---------------------------------------------------------------- */

.template--video,
.template--video p,
.template--video ul,
.template--video ol {
    font-size: 16px;
    line-height: 1.5;
}

/* H1 */
.template--video h1,
.template--video .h1 {
    font-size: 32px;
    letter-spacing: -0.4px;
    margin: 0 0 16px;
}

/* H2 */
.template--video h2,
.template--video .h2 {
    font-size: 24px;
    letter-spacing: -0.24px;
    margin: 0 0 16px;
}

/* H4 */
.template--video h4,
.template--video .h4 {
    font-size: 17px;
    line-height: 1.36;
    margin: 0 0 12px;
}

/* H3 */
.template--video h3,
.template--video .h3 {
    font-size: 20px;
    line-height: 1.36;
    margin: 0 0 12px;
}

/* H5 */
.template--video h5,
.template--video .h5 {
    font-size: 14px;
    letter-spacing: 0.8px;
    line-height: 1.6;
    margin: 0 0 12px;
    text-transform: uppercase;
}

/* Text [Small] */
.template--video .text--small {
    font-size: 13px;
}

/* Adjust @medium breakpoint */
@media( min-width: 1024px ) {
    
    /* H1 */
    .template--video h1,
    .template--video .h1 {
        font-size: 48px;
        letter-spacing: -0.88px;
        margin-bottom: 20px;
    }

    /* H2 */
    .template--video h2,
    .template--video .h2 {
        font-size: 32px;
        letter-spacing: -0.72px;
    }

}


/* ———————————————————————————————————————————————————————————————— */
/* Utilities
/* ———————————————————————————————————————————————————————————————— */

/* Positioning
/* ---------------------------------------------------------------- */

/* Push [Center] */
.push--center {
    margin-left: auto;
    margin-right: auto;
}


/* Wraps & Containers
/* ---------------------------------------------------------------- */

/* Wrap [Container] */
.wrap--container {
    padding-left: 4vw;
    padding-right: 4vw;
}

/* Wrap [Base] */
.wrap--base {
    max-width: 1424px;
    width: 100%;
}


/* ———————————————————————————————————————————————————————————————— */
/* Components
/* ———————————————————————————————————————————————————————————————— */

/* Button
/* ---------------------------------------------------------------- */

/* Variant [Base] */
/* ---------------------------------------- */

.button--base {
    background-color: var( --color-green-base );
    border: none;
    border-radius: var( --border-radius-base );
    color: white;
    cursor: pointer;
    font-size: 14px;
    font-weight: var( --font-weight-bold );
    letter-spacing: 0.48px;
    line-height: 1.3;
    padding: 16px 24px;
    text-transform: uppercase;
    transition: all 0.24s ease-out;
}

/* State [Hover] */
.button--base:hover {
    background-color: var( --color-green-light );
}

/* State [Loading] */
.button--base.is-loading {
    color: transparent;
    pointer-events: none;
    position: relative;
}

.button--base.is-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid rgba( 255, 255, 255, 0.3 );
    border-top-color: white;
    border-radius: 50%;
    animation: button-spin 0.6s linear infinite;
}

@keyframes button-spin {
    to { transform: rotate( 360deg ); }
}

/* Variant [Tag] */
/* ---------------------------------------- */

.button--tag {
    background-color: transparent;
    border: var( --border-base );
    border-radius: var( --border-radius-small );
    color: var( --color-type-base );
    font-size: 13px;
    font-weight: var( --font-weight-base );
    line-height: 1.2;
    padding: 8px 12px;
    transition: all 0.16s ease-out;
}

/* State [Active] */
/* ---------------------------------------- */

.button--tag.state--active {
    background-color: var( --color-green-base );
    border-color: var( --color-green-base );
    color: white;
    font-weight: var( --font-weight-semibold );
}


/* Feed
/* ---------------------------------------------------------------- */

/* Variant [Tag] */
/* ---------------------------------------- */

/* Feed container */
.feed--tag {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}


/* Variant [Video] */
/* ---------------------------------------- */

/* Feed container */
.feed--video {
    display: grid;
    grid-template-columns: repeat( 2, 1fr );
    column-gap: 16px;
    row-gap: 32px;
    align-items: stretch;
}

/* Item container */
.feed--video .item--video {
    border-top: var( --border-base );
    padding-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    height: 100%;
}

/* Item » Container [Thumbnail] */
.feed--video .item--video .container--thumbnail {
    aspect-ratio: 16 / 9;
    background-color: rgba( 0, 0, 0, 0.08 );
    border-radius: var( --border-radius-base );
    overflow: hidden;
    position: relative;
    flex: 0 0 auto;
}

/* Item » Container [Thumbnail] » Link */
.feed--video .item--video .container--thumbnail .item__link--thumbnail {
    height: 100%;
    left: 0;
    position: absolute;
    top: 0;
    width: 100%;
    z-index: 2;
}

/* Item » Container [Thumbnail] » Image */
.feed--video .item--video .container--thumbnail img {
    display: block;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: opacity 0.32s ease-in-out;
    width: 100%;
    z-index: 0;
}

/* Item » Container [Thumbnail] » State [Hover] */
.feed--video .item--video .container--thumbnail:hover img {
    opacity: 0.88;
}

/* Item » Container [Thumbnail] » Duration */
.feed--video .item--video .container--thumbnail .item__indicator--duration {
    background-color: rgba( 0, 0, 0, 0.64 );
    border-radius: var( --border-radius-small );
    bottom: 8px;
    color: white;
    font-family: var( --font-family-mono );
    font-size: 12px;
    font-weight: var( --font-weight-semibold );
    left: 8px;
    line-height: 1.5;
    padding: 4px 8px;
    pointer-events: none;
    position: absolute;
    z-index: 1;
}

/* Item » Container [Content] */
.feed--video .item--video .container--content {
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex: 1 1 auto;
    min-height: 0;
}

/* Item » Container [Content] » Title */
.feed--video .item--video .container--content .item__title {
    margin: 0;
}

/* Item » Container [Content] » Link */
.feed--video .item--video .container--content .item__link--title {
    color: var( --color-type-base );
    transition: color 0.16s ease-out;
}

/* Item » Container [Content] » Link:Hover */
.feed--video .item--video .container--content .item__link--title:hover {
    color: var( --color-green-base );
}

/* Item » Container [Content] » Meta */
.feed--video .item--video .container--content .container--meta {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-top: auto;
}

/* Item » Container [Content] » Meta » Speakers */
.feed--video .item--video .container--content .container--meta .item__speakers {
   font-size: 13px;
   font-weight: var( --font-weight-bold );
   margin: 0;
}

/* Item » Container [Content] » Meta » Categories */
.feed--video .item--video .container--content .container--meta .item__categories {
    font-size: 13px;
    margin: 0;
}

/* Adjust @small breakpoint */
@media( min-width: 640px ) {

    /* Feed container */
    .feed--video {
        grid-template-columns: repeat( 3, 1fr );
        column-gap: 24px;
    }

}

/* Adjust @until small breakpoint */
@media( max-width: 639px ) {

    /* Title */
    .feed--video .item--video .container--content .item__title {
        font-size: 16px;
        line-height: 1.36;
    }

}

/* Adjust @medium breakpoint */
@media( min-width: 1024px ) {

    /* Feed container */
    .feed--video {
        grid-template-columns: repeat( 4, 1fr );
    }

}


/* Form
/* ---------------------------------------------------------------- */

/* Variant [Registration] */
/* ---------------------------------------- */

/* Form container */
.form--registration {
    display: grid;
    column-gap: 16px;
    row-gap: 16px;
}

/* Label */
.form--registration label {
    font-size: 13px;
    font-weight: var( --font-weight-bold );
    line-height: 1.5;
    margin: 0 0 6px;
}

/* Indicator [Required] */
.form--registration .indicator--required {
    color: var( --color-green-base );
    font-size: 15px;
}

/* Input [Text, Email] */
.form--registration input[type="text"],
.form--registration input[type="email"] {
    border: var( --border-base );
    border-radius: var( --border-radius-base );
    font-size: 16px;
    line-height: 1.5;
    padding: 12px 16px;
    margin: 0 !important;
    transition: all 0.16s ease-out;
    width: 100%;
}

/* Input [Text, Email] » State [Focus] */
.form--registration input[type="text"]:focus,
.form--registration input[type="email"]:focus {
    border-color: var( --color-green-base );
    box-shadow: var( --box-shadow-active );
    outline: none;
}

/* Placeholder */
.form--registration input[type="text"]::placeholder,
.form--registration input[type="email"]::placeholder {
    color: var( --color-type-base );
    opacity: 0.64;
}

/* Disclaimer */
.form--registration .form__disclaimer {
    color: var( --color-type-light );
    font-size: 11px;
    margin: 0;
    padding-right: 16px;
}


/* Button */
.form--registration .form__button button {
    width: 100%;
}

/* Adjust @medium breakpoint */
@media( min-width: 1024px ) {

    /* Grid structure */
    .form--registration {
        grid-template-columns: repeat( 2, 1fr );
    }

    /* Disclaimer */
    .form--registration .form__disclaimer {
        margin-top: 12px;
    }

    /* Button */
    .form--registration .form__button {
        margin-top: 12px;
    }

}


/* Link
/* ---------------------------------------------------------------- */

/* Variant [Back, Icon] */
/* ---------------------------------------- */

.link--back-icon {
    color: var( --color-type-light );
    display: inline-flex !important;
    align-items: center;
    gap: 2px;
    font-size: 14px;
    font-weight: var( --font-weight-bold );
    letter-spacing: 0.8px;
    line-height: 1.6;
    text-transform: uppercase;
    transition: all 0.16s ease-out;
}

/* Icon */
.link--back-icon::before {
    content: '\f46b';
    font-family: var( --font-family-icon );
    transition: transform 0.16s ease-out;
}

/* State [Hover] */
.link--back-icon:hover {
    color: var( --color-type-light );
    opacity: 0.72;
}

/* Animate Icn */
.link--back-icon:hover::before {
    transform: translateX( -2px );
}


/* Modal
/* ---------------------------------------------------------------- */

/* Variant [Registration]
/* ---------------------------------------- */

/* Modal container */
.modal--registration {
    background-color: white;
    border-radius: var( --border-radius-base );
    box-shadow: 0 4px 64px 0 rgba( 0, 0, 0, 0.16 );
    margin: 0 auto 64px;
    max-width: 800px;
    padding: 40px 6vw;
    position: relative;
    z-index: 1;
}

/* Icon */
.modal--registration .modal__icon {
    margin: 0 auto 16px;
}

/* Icon » Image */
.modal--registration .modal__icon img {
    display: block;
    height: 56px;
    margin: 0 auto;
    width: 56px;
}

/* Heading */
.modal--registration .modal__heading {
    margin: 0 auto 32px;
    max-width: 512px;
    text-align: center;
}

/* Adjust @medium breakpoint */
@media( min-width: 1024px ) {

    /* Heading */
    .modal--registration {
        margin: 0 auto 128px;
        padding: 48px;
    }

}


/* ———————————————————————————————————————————————————————————————— */
/* Layout [Archive]
/* ———————————————————————————————————————————————————————————————— */

/* Section [Page Header]
/* ---------------------------------------------------------------- */

/* Section container */
.section--page-header-archive {
    background-color: var( --color-green-base );
    clip-path: var( --clip-path-base );
    color: white;
    margin-top: 56px;
    padding-top: 56px;
    padding-bottom: 80px;
}

/* Container [Heading] */
.section--page-header-archive .container__heading {
    align-items: center;
    display: grid;
    grid-template-columns: 56px 1fr;
    gap: 16px;
    margin: 0 0 16px;
}

/* Icon » Image */
.section--page-header-archive .container__icon img {
    display: block;
    height: 56px;
    width: 56px;
}

/* Heading */
.section--page-header-archive .section__heading {
    margin: 0;
}

/* Content */
.section--page-header-archive .section__content {
    font-size: 18px;
    font-weight: 500;
    margin: 0 0 4px;
    max-width: 640px;
}
    
/* Wrap [Inner] */
.section--page-header-archive .wrap--inner {
    max-width: 768px;
}

/* Adjust @large breakpoint */
@media( min-width: 1200px ) {

    /* Section container */
    .section--page-header-archive {
        margin-top: 88px;
        padding-bottom: 80px;
        padding-top: 72px;
    }

}


/* Section [Filtration]
/* ---------------------------------------------------------------- */

/* Section container */
.section--filtration {
    padding-top: 24px;
    padding-bottom: 32px;
}

/* Label */
.section--filtration .section__label {
    display: block;
    font-size: 13px;
    font-weight: var( --font-weight-semibold );
    line-height: 1.2;
    margin: 0 0 12px;
}

.section--filtration #aml-filter-controls {
    display: grid;
    gap: 12px;
    grid-template-columns: 1fr;
}

.section--filtration .aml-filter-group {
    width: 100%;
}

.section--filtration .aml-filter-select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-color: white;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%23333840' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round' fill='none'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    border: var( --border-base );
    border-radius: var( --border-radius-small );
    cursor: pointer;
    font-size: 14px;
    line-height: 1.3;
    padding: 10px 36px 10px 12px;
    width: 100%;
}

.section--filtration .aml-filter-select option:disabled {
    color: #b0b4ba;
}

@media( min-width: 640px ) {
    .section--filtration #aml-filter-controls {
        grid-template-columns: 1fr 1fr;
        gap: 24px;
    }
}

/* State [Unauthenticated] */
.section--filtration.state--unauthenticated .wrap--base {
    filter: grayscale( 100% );
    opacity: 0.16;
    pointer-events: none;
}


/* Section [Feed]
/* ---------------------------------------------------------------- */

/* Section container */
.section--feed {
    padding-bottom: 128px;
    min-height: 768px;
    position: relative;
}

.section--feed .container--load-more {
    text-align: center;
    margin: 56px auto 0;
    max-width: 1424px;
    width: 100%;
}

/* State [Unauthenticated] */
.section--feed.state--unauthenticated .wrap--base {
    filter: grayscale( 100% );
    opacity: 0.16;
    pointer-events: none;
}

/* Registration Modal */
.section--feed.state--unauthenticated .modal--registration {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX( -50% );
    width: calc( 100% - 8vw );
    z-index: 1;
}

/* Overlay [Fade] */
.section--feed.state--unauthenticated .overlay--fade {
    background: linear-gradient( 0deg, rgba( 255, 255, 255, 1 ) 0%, rgba( 255, 255, 255, 0 ) 100%);
    height: 100%;
    left: 0;
    position: absolute;
    top: 0;
    width: 100%;
}


/* ———————————————————————————————————————————————————————————————— */
/* Layout [Single]
/* ———————————————————————————————————————————————————————————————— */

/* Section [Page Header]
/* ---------------------------------------------------------------- */

/* Section container */
.section--page-header-single {
    background-color: var( --color-green-base );
    color: white;
    margin-top: 56px;
    padding-top: 48px;
    padding-bottom: 40px;
    text-align: center;
}

/* Heading */
.section--page-header-single .section__heading {
    margin: 0 0 16px;
}

/* Content */
.section--page-header-single .section__content {
    font-size: 18px;
    font-weight: 500;
    margin: 0 0 4px;
    max-width: 640px;
}
    
/* Wrap [Inner] */
.section--page-header-single .wrap--inner {
    max-width: 800px;
}

/* Link [Back] */
.section--page-header-single .link--back-icon {
    color: white;
    display: inline-block;
    margin: 0 0 24px;
}

/* Heading */
.section--page-header-single .section__heading {
    margin: 0 0 24px;
}

/* Container [Meta] */
.section--page-header-single .container__meta {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-top: auto;
}

/* Container [Meta] » Speakers */
.section--page-header-single .container__meta .post__speakers {
    font-size: 13px;
    font-weight: var( --font-weight-bold );
    margin: 0;
}

/* Container [Meta] » Categories */
.section--page-header-single .container__meta .post__categories {
    font-size: 13px;
    margin: 0;
}

/* Adjust @medium breakpoint */
@media( min-width: 1024px ) {

    /* Section container */
    .section--page-header-single {
        padding-top: 56px;
        padding-bottom: 48px;
    }

}

/* Adjust @large breakpoint */
@media( min-width: 1200px ) {

    /* Section container */
    .section--page-header-single {
        margin-top: 88px;
    }

}


/* Section [Video]
/* ---------------------------------------------------------------- */

/* Section container */
.section--video {
    position: relative;
}

.section--video::before {
    background-color: var( --color-green-base );
    clip-path: var( --clip-path-base );
    content: '';
    height: 50%;
    left: 0;
    position: absolute;
    top: 0;
    width: 100%;
    z-index: 0;
}

/* Wrap [Inner] */
.section--video .wrap--inner {
    max-width: 800px;
    position: relative;
    z-index: 1;
}

/* Embed */
.section--video .section__embed {
    border-radius: var( --border-radius-base );
    height: 0; 
    max-width: 100%;
    overflow: hidden;
    padding-bottom: 56.25%;
    position: relative;  
} 

/* Object */
.section--video .section__embed iframe, 
.section--video .section__embed object, 
.section--video .section__embed embed { 
    height: 100%;
    left: 0;
    position: absolute;
    top: 0;
    width: 100%;
}


/* Section [Registration]
/* ---------------------------------------------------------------- */

/* Section container */
.section--registration {
    position: relative;
}

.section--registration::before {
    background-color: var( --color-green-base );
    clip-path: var( --clip-path-base );
    content: '';
    height: 50%;
    left: 0;
    position: absolute;
    top: 0;
    width: 100%;
    z-index: 0;
}


/* Section [Content]
/* ---------------------------------------------------------------- */

/* Section container */
.section--content {
    padding-top: 40px;
    padding-bottom: 64px;
}

/* Wrap [Inner] */
.section--content .wrap--inner {
    margin: 0 auto;
    max-width: 800px;
}

/* Horizontal Rule */
.section--content hr {
    background-color: rgba( 0, 0, 0, 0.16 );
    border: none;
    height: 1px;
    margin: 48px 0;
}

/* List [UL] */
.section--content ul {
    margin-bottom: 24px;
}

/* List [UL] */
.section--content ul li {
    margin-bottom: 6px;
}

/* List markers */
.section--content ul li::marker {
    color: var( --color-green-base );
    font-size: 20px;
}

/* Container [Link] */
.section--content .container__link {
    margin-top: 48px;
}

/* Adjust @medium breakpoint */
@media( min-width: 1024px ) {

    /* Section container */
    .section--content {
        padding-top: 48px;
        padding-bottom: 128px;
    }

}