
/* AIIO2 / TECHNICAL INSIGHT OVERLAY */

.are-technical.technical-source-hidden {
    display: none !important;
}

/* Insight button */

.technical-insight-button {
    display: flex;
    align-items: center;
    gap: 15px;

    width: 100%;
    max-width: 430px;

    margin-top: 25px;
    padding: 17px 19px;

    text-align: left;
    background: #db873b08;
    border: 1px solid #795536;
    border-radius: 4px;

    color: #db873b;
    cursor: pointer;

    transition:
        background .2s,
        border-color .2s;
}

.technical-insight-button:hover {
    background: #db873b14;
    border-color: #db873b;
}

.technical-insight-button > svg {
    flex-shrink: 0;
}

.technical-button-copy {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 7px;
}

.technical-button-copy strong {
    font-family: var(--mono);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 1px;
}

.technical-button-copy small {
    color: #92999e;
    font-size: 11px;
    line-height: 1.4;
}

.technical-button-arrow {
    font-size: 23px;
    line-height: 1;
}

/* Modal window */

.technical-overlay {
    width: min(1050px, 88vw);
    max-width: none;
    max-height: 82vh;

    margin: auto;
    padding: 0;

    overflow: hidden;

    color: #d7d9dc;
    background: #121416;

    border: 1px solid #50565b;
    border-radius: 6px;

    box-shadow: 0 30px 120px #000d;
}

.technical-overlay::backdrop {
    background: rgba(3, 4, 5, .84);
    backdrop-filter: blur(7px);
}

.technical-overlay[open] {
    animation: technical-overlay-in .25s ease-out;
}

@keyframes technical-overlay-in {
    from {
        opacity: 0;
        transform: scale(.96);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.technical-overlay-shell {
    display: flex;
    flex-direction: column;
    max-height: 82vh;
    overflow: hidden;
}

/* Permanently visible header */

.technical-overlay-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;

    flex-shrink: 0;

    padding: 25px 32px;

    background: #181b1e;
    border-bottom: 1px solid #393e42;
}

.technical-overlay-kicker {
    font-family: var(--mono);
    font-size: 10px;
    letter-spacing: 1.5px;
    color: #db873b;
}

.technical-overlay-header h2 {
    margin: 10px 0 0;
    font-size: clamp(24px, 3vw, 36px);
    font-weight: 500;
    line-height: 1.2;
    letter-spacing: -.025em;
}

.technical-overlay-close {
    width: 36px;
    height: 36px;
    flex-shrink: 0;

    background: #222629;
    border: 1px solid #484e53;
    border-radius: 4px;

    font-size: 25px;
    color: #d3d6d9;
    cursor: pointer;
}

.technical-overlay-close:hover {
    color: #db873b;
    border-color: #db873b;
}

/* Scrollable engineering documentation */

.technical-overlay-body {
    flex: 1;
    min-height: 0;

    overflow-y: auto;
    overscroll-behavior: contain;

    padding: 12px 32px 32px;

    background: #121416;

    scrollbar-width: thin;
    scrollbar-color: #515960 #151719;
}

.technical-overlay-body .technical-content {
    width: auto;
    max-width: none;

    padding: 0;
    border: 0;
}

.technical-overlay-body .technical-content p {
    font-size: 15px;
    line-height: 1.8;
    color: #adb4ba;
}

.technical-overlay-body .technical-content h4 {
    color: #e0e3e5;
    font-size: 21px;
    margin-top: 30px;
}

.technical-overlay-body .engineering-figure {
    margin-inline: auto;
}

/* Permanently visible footer */

.technical-overlay-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;

    flex-shrink: 0;

    padding: 15px 32px;

    border-top: 1px solid #393e42;
    background: #181b1e;
}

.technical-overlay-footer > span {
    font-family: var(--mono);
    font-size: 9px;
    letter-spacing: 1px;
    color: #818a91;
}

.technical-overlay-dismiss {
    padding: 10px 15px;
    border: 1px solid #795536;
    border-radius: 3px;
    background: transparent;

    font-family: var(--mono);
    font-size: 10px;
    letter-spacing: .8px;
    color: #db873b;

    cursor: pointer;
}

.technical-overlay-dismiss:hover {
    background: #db873b14;
}

@media (max-width: 600px) {

    .technical-overlay {
        width: 94vw;
        max-height: 88vh;
    }

    .technical-overlay-shell {
        max-height: 88vh;
    }

    .technical-overlay-header {
        padding: 20px;
        gap: 15px;
    }

    .technical-overlay-body {
        padding: 10px 18px 22px;
    }

    .technical-overlay-footer {
        padding: 12px 18px;
    }

    .technical-overlay-footer > span {
        font-size: 8px;
    }

}

@media (prefers-reduced-motion: reduce) {

    .technical-overlay[open] {
        animation: none;
    }

}

