/* IDEALAB NATIVE PROJECT SINGLE CSS V20 R2 START */

body.idealab-native-project-page {
    margin: 0;
    background: #031127;
    color: #f5f8ff;
}

body.idealab-native-project-page
.idealab-native-project-single {
    min-height: 100vh;
    min-height: 100dvh;
    overflow: hidden;
    background:
        linear-gradient(
            180deg,
            #031127 0%,
            #061a36 48%,
            #031127 100%
        );
}

.idealab-project-single {
    position: relative;
    z-index: 1;
}

.idealab-project-single__container {
    width: min(
        calc(100% - 48px),
        1240px
    );
    margin: 0 auto;
}

.idealab-project-single__hero {
    position: relative;
    min-height: 720px;
    padding: 168px 0 96px;
    overflow: hidden;
    isolation: isolate;

    background:
        radial-gradient(
            circle at 13% 22%,
            rgba(65, 135, 255, 0.22),
            transparent 34%
        ),
        radial-gradient(
            circle at 87% 25%,
            rgba(35, 190, 255, 0.14),
            transparent 38%
        ),
        linear-gradient(
            145deg,
            #031127 0%,
            #061b38 52%,
            #031127 100%
        );
}

.idealab-project-single__hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -2;
    pointer-events: none;

    background-image:
        linear-gradient(
            rgba(98, 160, 255, 0.04) 1px,
            transparent 1px
        ),
        linear-gradient(
            90deg,
            rgba(98, 160, 255, 0.04) 1px,
            transparent 1px
        );

    background-size: 64px 64px;

    mask-image:
        linear-gradient(
            180deg,
            #000 0%,
            rgba(0, 0, 0, 0.65) 65%,
            transparent 100%
        );
}

.idealab-project-single__hero-decoration {
    position: absolute;
    z-index: -1;
    border-radius: 50%;
    pointer-events: none;
    filter: blur(90px);
}

.idealab-project-single__hero-decoration--one {
    width: 520px;
    height: 520px;
    right: -150px;
    top: 100px;
    background:
        rgba(63, 140, 255, 0.13);
}

.idealab-project-single__hero-decoration--two {
    width: 360px;
    height: 360px;
    left: -170px;
    bottom: -130px;
    background:
        rgba(44, 207, 255, 0.10);
}

.idealab-project-single__hero-grid {
    display: grid;
    grid-template-columns:
        minmax(0, 0.92fr)
        minmax(460px, 1.08fr);
    align-items: center;
    gap: 72px;
}

.idealab-project-single__hero-copy {
    min-width: 0;
}

.idealab-project-single__top-links {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
    margin-bottom: 38px;
}

.idealab-project-single__back-link,
.idealab-project-single__bottom-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;

    color:
        rgba(231, 240, 255, 0.78);
    font-size: 15px;
    font-weight: 600;
    line-height: 1.4;
    text-decoration: none;

    transition:
        color 180ms ease,
        transform 180ms ease;
}

.idealab-project-single__back-link:hover,
.idealab-project-single__back-link:focus,
.idealab-project-single__bottom-link:hover,
.idealab-project-single__bottom-link:focus {
    color: #79afff;
    transform: translateX(-3px);
}

.idealab-project-single__language-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-width: 54px;
    min-height: 42px;
    padding: 8px 14px;

    color: #ffffff;
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
    text-decoration: none;

    background:
        rgba(255, 255, 255, 0.07);
    border:
        1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;

    transition:
        background 180ms ease,
        border-color 180ms ease;
}

.idealab-project-single__language-link:hover,
.idealab-project-single__language-link:focus {
    background:
        rgba(92, 160, 255, 0.20);
    border-color:
        rgba(126, 180, 255, 0.55);
}

.idealab-project-single__eyebrow {
    margin: 0 0 18px;

    color: #72aaff;
    font-size:
        clamp(13px, 1.3vw, 16px);
    font-weight: 700;
    line-height: 1.4;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

.idealab-project-single__logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    max-width: 270px;
    min-height: 76px;
    margin: 0 0 26px;
    padding: 12px 18px;

    background:
        rgba(255, 255, 255, 0.97);
    border:
        1px solid rgba(255, 255, 255, 0.80);
    border-radius: 18px;
    box-shadow:
        0 18px 46px
        rgba(0, 0, 0, 0.20);
}

.idealab-project-single__logo-image {
    display: block;
    width: auto;
    max-width: 100%;
    height: auto;
    max-height: 66px;
    object-fit: contain;
}

.idealab-project-single__title {
    max-width: 760px;
    margin: 0;

    color: #ffffff;
    font-family: inherit;
    font-size:
        clamp(52px, 6.7vw, 94px);
    font-weight: 700;
    line-height: 0.98;
    letter-spacing: -0.045em;
    overflow-wrap: anywhere;
}

.idealab-project-single__lead {
    max-width: 650px;
    margin-top: 28px;

    color:
        rgba(237, 244, 255, 0.84);
    font-size:
        clamp(18px, 1.8vw, 23px);
    line-height: 1.58;
}

.idealab-project-single__lead p {
    margin: 0 0 1em;
}

.idealab-project-single__lead p:last-child {
    margin-bottom: 0;
}

.idealab-project-single__visual {
    position: relative;
    min-height: 520px;
    overflow: hidden;

    background:
        linear-gradient(
            145deg,
            rgba(20, 56, 105, 0.86),
            rgba(5, 24, 52, 0.98)
        );

    border:
        1px solid
        rgba(113, 169, 255, 0.22);
    border-radius: 34px;
    box-shadow:
        0 44px 100px
        rgba(0, 0, 0, 0.35);
}

.idealab-project-single__visual::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;

    background:
        linear-gradient(
            180deg,
            rgba(0, 0, 0, 0.01),
            rgba(1, 12, 28, 0.24)
        );
}

.idealab-project-single__featured-image {
    position: absolute;
    inset: 0;

    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.idealab-project-single__visual-fallback {
    position: absolute;
    inset: 0;

    display: flex;
    align-items: flex-end;
    padding: 34px;

    background:
        radial-gradient(
            circle at 75% 22%,
            rgba(92, 165, 255, 0.40),
            transparent 32%
        ),
        linear-gradient(
            145deg,
            #133765,
            #06182f
        );
}

.idealab-project-single__visual-fallback span {
    color:
        rgba(255, 255, 255, 0.22);
    font-size:
        clamp(42px, 7vw, 90px);
    font-weight: 700;
    line-height: 0.9;
    letter-spacing: -0.06em;
}

.idealab-project-single__body {
    position: relative;
    padding: 110px 0 120px;

    background:
        linear-gradient(
            180deg,
            #06182f 0%,
            #031127 100%
        );
}

.idealab-project-single__content-grid {
    display: grid;
    grid-template-columns:
        minmax(0, 1fr)
        minmax(290px, 360px);
    align-items: start;
    gap: 72px;
}

.idealab-project-single__content-grid--without-facts {
    grid-template-columns:
        minmax(0, 1fr);
}

.idealab-project-single__article {
    min-width: 0;
}

.idealab-project-single__section-label,
.idealab-project-single__fact-label {
    margin: 0 0 18px;

    color: #72aaff;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.4;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.idealab-project-single__content {
    color:
        rgba(241, 246, 255, 0.88);
    font-size:
        clamp(18px, 1.6vw, 22px);
    line-height: 1.78;
}

.idealab-project-single__content > *:first-child {
    margin-top: 0;
}

.idealab-project-single__content > *:last-child {
    margin-bottom: 0;
}

.idealab-project-single__content p {
    margin: 0 0 1.45em;
}

.idealab-project-single__content h2,
.idealab-project-single__content h3,
.idealab-project-single__content h4 {
    margin: 1.75em 0 0.7em;

    color: #ffffff;
    font-family: inherit;
    line-height: 1.18;
    letter-spacing: -0.025em;
}

.idealab-project-single__content h2 {
    font-size:
        clamp(30px, 3vw, 44px);
}

.idealab-project-single__content h3 {
    font-size:
        clamp(25px, 2.4vw, 34px);
}

.idealab-project-single__content a {
    color: #79afff;
}

.idealab-project-single__content ul,
.idealab-project-single__content ol {
    padding-left: 1.25em;
}

.idealab-project-single__content li {
    margin-bottom: 0.6em;
}

.idealab-project-single__content img {
    display: block;
    max-width: 100%;
    height: auto;
    border-radius: 22px;
}

.idealab-project-single__facts {
    display: grid;
    gap: 16px;
}

.idealab-project-single__fact {
    padding: 28px 28px 26px;

    background:
        linear-gradient(
            145deg,
            rgba(18, 49, 91, 0.88),
            rgba(7, 27, 57, 0.96)
        );

    border:
        1px solid
        rgba(108, 165, 255, 0.18);
    border-radius: 22px;
    box-shadow:
        0 22px 60px
        rgba(0, 0, 0, 0.18);
}

.idealab-project-single__fact-value {
    color:
        rgba(244, 248, 255, 0.92);
    font-size: 18px;
    line-height: 1.58;
}

.idealab-project-single__fact-value p {
    margin: 0 0 0.75em;
}

.idealab-project-single__fact-value p:last-child {
    margin-bottom: 0;
}

.idealab-project-single__bottom {
    margin-top: 84px;
    padding-top: 34px;

    border-top:
        1px solid
        rgba(111, 168, 255, 0.16);
}

/*
 * Native project pages need the parent NAV to become visible
 * while the V18 fullscreen mobile menu is open.
 */

@media (max-width: 960px) {
    body.idealab-native-project-page
    .idealab-native-site-header.idealab-header--menu-open
    .idealab-nav {
        grid-column: 1 / -1 !important;
        grid-row: 2 !important;

        position: static !important;
        inset: auto !important;
        z-index: auto !important;

        display: block !important;

        width: 100% !important;
        min-width: 0 !important;
        min-height: 0 !important;
        max-height: none !important;

        margin: 0 !important;
        padding: 0 !important;

        overflow-x: hidden !important;
        overflow-y: auto !important;
        overscroll-behavior: contain;

        background: transparent !important;
        border: 0 !important;
        border-radius: 0 !important;
        box-shadow: none !important;
        transform: none !important;
    }

    body.idealab-native-project-page
    .idealab-native-site-header.idealab-header--menu-open
    .idealab-nav
    .idealab-native-menu {
        position: static !important;
        inset: auto !important;

        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;
        justify-content: flex-start !important;
        gap: 0 !important;

        width: 100% !important;
        min-width: 0 !important;
        max-width: none !important;
        min-height: auto !important;
        max-height: none !important;

        margin: 0 !important;
        padding: 18px 0 32px !important;

        overflow: visible !important;

        background: transparent !important;
        border: 0 !important;
        border-radius: 0 !important;
        box-shadow: none !important;
        transform: none !important;
    }

    .idealab-project-single__hero {
        min-height: auto;
        padding: 148px 0 76px;
    }

    .idealab-project-single__hero-grid {
        grid-template-columns:
            minmax(0, 1fr);
        gap: 48px;
    }

    .idealab-project-single__visual {
        min-height: 480px;
    }

    .idealab-project-single__content-grid,
    .idealab-project-single__content-grid--without-facts {
        grid-template-columns:
            minmax(0, 1fr);
        gap: 54px;
    }

    .idealab-project-single__facts {
        grid-template-columns:
            repeat(
                2,
                minmax(0, 1fr)
            );
    }
}

@media (max-width: 680px) {
    .idealab-project-single__container {
        width: min(
            calc(100% - 28px),
            620px
        );
    }

    .idealab-project-single__hero {
        padding: 116px 0 52px;
    }

    .idealab-project-single__hero-grid {
        gap: 30px;
    }

    .idealab-project-single__top-links {
        margin-bottom: 28px;
    }

    .idealab-project-single__back-link {
        max-width: calc(100% - 74px);
        font-size: 14px;
    }

    .idealab-project-single__language-link {
        min-width: 48px;
        min-height: 38px;
        padding: 7px 12px;
    }

    .idealab-project-single__eyebrow {
        margin-bottom: 14px;
        font-size: 12px;
    }

    .idealab-project-single__logo {
        max-width: 210px;
        min-height: 62px;
        margin-bottom: 20px;
        padding: 10px 14px;
        border-radius: 14px;
    }

    .idealab-project-single__logo-image {
        max-height: 52px;
    }

    .idealab-project-single__title {
        font-size:
            clamp(42px, 14vw, 62px);
        line-height: 1;
    }

    .idealab-project-single__lead {
        margin-top: 20px;
        font-size: 17px;
        line-height: 1.55;
    }

    .idealab-project-single__visual {
        min-height: 270px;
        border-radius: 22px;
    }

    .idealab-project-single__body {
        padding: 68px 0 78px;
    }

    .idealab-project-single__content-grid {
        gap: 42px;
    }

    .idealab-project-single__content {
        font-size: 17px;
        line-height: 1.7;
    }

    .idealab-project-single__facts {
        grid-template-columns:
            minmax(0, 1fr);
    }

    .idealab-project-single__fact {
        padding: 23px 22px;
        border-radius: 18px;
    }

    .idealab-project-single__bottom {
        margin-top: 54px;
        padding-top: 26px;
    }
}

@media (max-width: 380px) {
    .idealab-project-single__container {
        width: min(
            calc(100% - 22px),
            360px
        );
    }

    .idealab-project-single__hero {
        padding-top: 108px;
    }

    .idealab-project-single__title {
        font-size:
            clamp(38px, 13vw, 50px);
    }

    .idealab-project-single__visual {
        min-height: 235px;
    }
}

/* IDEALAB NATIVE PROJECT SINGLE CSS V20 R2 END */

/* IDEALAB PROJECT EXTERNAL LINK V27 R5 START */

.idealab-project-single__external-action {
    margin:
        clamp(28px, 4vw, 42px)
        0
        0;
}

.idealab-project-single__external-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;

    min-height: 52px;
    padding: 13px 22px;

    font-weight: 700;
    line-height: 1.2;
    text-decoration: none;

    color: #ffffff;
    background: #1463d6;
    border: 1px solid #1463d6;
    border-radius: 12px;

    transition:
        transform 180ms ease,
        background-color 180ms ease,
        border-color 180ms ease;
}

.idealab-project-single__external-link:hover,
.idealab-project-single__external-link:focus-visible {
    color: #ffffff;
    background: #0d4fae;
    border-color: #0d4fae;
    transform: translateY(-2px);
}

.idealab-project-single__external-link:focus-visible {
    outline: 3px solid rgba(20, 99, 214, 0.28);
    outline-offset: 3px;
}

@media (max-width: 680px) {
    .idealab-project-single__external-link {
        width: 100%;
    }
}

/* IDEALAB PROJECT EXTERNAL LINK V27 R5 END */


/* IDEALAB PROJECT CONTENT FULL WIDTH V28 R1 START */

/*
 * The complete project description occupies the full width
 * of the same main container as the project hero section.
 */
.idealab-project-single__content {
    width: 100%;
    max-width: none;
}

/*
 * Remove width restrictions inherited by common Gutenberg
 * content blocks and by direct children of the article.
 */
.idealab-project-single__content > *,
.idealab-project-single__content > .wp-block-group,
.idealab-project-single__content > .wp-block-columns,
.idealab-project-single__content > .wp-block-cover,
.idealab-project-single__content > .wp-block-media-text {
    width: 100%;
    max-width: none;
}

/*
 * Text, headings and lists may use the whole content column.
 */
.idealab-project-single__content p,
.idealab-project-single__content ul,
.idealab-project-single__content ol,
.idealab-project-single__content h2,
.idealab-project-single__content h3,
.idealab-project-single__content h4,
.idealab-project-single__content blockquote,
.idealab-project-single__content .wp-block-table {
    max-width: none;
}

/*
 * Keep long text comfortable while still using the wider layout.
 */
.idealab-project-single__content p,
.idealab-project-single__content li {
    line-height: 1.75;
}

/* IDEALAB PROJECT CONTENT FULL WIDTH V28 R1 END */

/* IDEALAB PROJECT HERO HEADER POLISH V30 R2 START */

/*
 * Помітне посилання повернення.
 */
.idealab-project-single__back-link,
.idealab-project-single__back-link:visited {
    color: #b9d8ff;
    font-size: 16px;
    font-weight: 700;
    opacity: 1;
}

.idealab-project-single__back-link:hover,
.idealab-project-single__back-link:focus {
    color: #ffffff;
    text-decoration: underline;
    text-underline-offset: 4px;
}

/*
 * Після видалення дубльованого language-link back-link
 * розташовується зліва без штучного розтягування рядка.
 */
.idealab-project-single__top-links {
    justify-content: flex-start;
}

/*
 * Реальний логотип сайту у header сторінки проєкту.
 */
.idealab-native-project-page .idealab-brand {
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
}

.idealab-native-project-page .idealab-brand__site-logo {
    display: block;
    width: auto;
    height: 74px;
    max-width: 245px;
    object-fit: contain;
    object-position: left center;
}

/*
 * Повне відображення головного зображення проєкту.
 * contain не обрізає краї, на відміну від cover.
 */
.idealab-project-single__visual {
    background:
        linear-gradient(
            145deg,
            #0b2a50,
            #06182f
        );
}

.idealab-project-single__featured-image {
    object-fit: contain;
    object-position: center center;
}

@media (max-width: 960px) {
    .idealab-native-project-page .idealab-brand__site-logo {
        height: 58px;
        max-width: 190px;
    }

    .idealab-project-single__back-link,
    .idealab-project-single__back-link:visited {
        font-size: 14px;
    }
}

/* IDEALAB PROJECT HERO HEADER POLISH V30 R2 END */

/* IDEALAB PROJECT LINK COLORS V30 R3 START */

/*
 * Нижнє посилання повернення.
 * Окремий клас, тому правило V30 R2 для верхнього
 * посилання на нього не впливало.
 */
.idealab-native-project-page
.idealab-project-single__bottom-link,
.idealab-native-project-page
.idealab-project-single__bottom-link:link,
.idealab-native-project-page
.idealab-project-single__bottom-link:visited {
    color: #b9d8ff !important;
    font-size: 16px;
    font-weight: 700;
    text-decoration: none !important;
    opacity: 1;
}

.idealab-native-project-page
.idealab-project-single__bottom-link:hover,
.idealab-native-project-page
.idealab-project-single__bottom-link:focus,
.idealab-native-project-page
.idealab-project-single__bottom-link:focus-visible {
    color: #ffffff !important;
    text-decoration: underline !important;
    text-underline-offset: 4px;
}

/*
 * Захист кольору синьої зовнішньої кнопки
 * від глобальних link / visited правил теми та Bootstrap.
 */
.idealab-native-project-page
.idealab-project-single__external-link,
.idealab-native-project-page
.idealab-project-single__external-link:link,
.idealab-native-project-page
.idealab-project-single__external-link:visited {
    color: #ffffff !important;
    text-decoration: none !important;
}

.idealab-native-project-page
.idealab-project-single__external-link:hover,
.idealab-native-project-page
.idealab-project-single__external-link:focus,
.idealab-native-project-page
.idealab-project-single__external-link:focus-visible {
    color: #ffffff !important;
    text-decoration: none !important;
}

@media (max-width: 960px) {
    .idealab-native-project-page
    .idealab-project-single__bottom-link,
    .idealab-native-project-page
    .idealab-project-single__bottom-link:link,
    .idealab-native-project-page
    .idealab-project-single__bottom-link:visited {
        font-size: 14px;
    }
}

/* IDEALAB PROJECT LINK COLORS V30 R3 END */
