/* ==========================================
   GLOBAL FLEET & TRADE - DOWNLOADS
========================================== */

.download-page {
    background:
        linear-gradient(rgba(4, 12, 21, .34), rgba(4, 12, 21, .50)),
        url("/assets/backgrounds/downloadBG.webp") center / cover fixed;
}

.download-frame {
    max-width: 1180px;
}

.download-notice {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 16px;
    align-items: center;
    margin: 0 0 24px;
    padding: 16px 18px;
    border: 1px solid rgba(216, 164, 63, .28);
    background: #0a1b2a;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .04);
}

.download-notice-mark {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border: 1px solid rgba(216, 164, 63, .62);
    border-radius: 50%;
    color: #f2c968;
    font-family: Georgia, serif;
    font-size: 21px;
    font-weight: 700;
}

.download-notice strong {
    display: block;
    margin-bottom: 3px;
    color: #f1d58d;
    font-size: 14px;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.download-notice p {
    margin: 0;
    color: rgba(226, 233, 238, .76);
    line-height: 1.55;
}

.download-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.download-card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    min-height: 390px;
    padding: 24px;
    overflow: hidden;
    border: 1px solid rgba(216, 164, 63, .42);
    background: #0a1b2a;
    box-shadow:
        0 18px 45px rgba(0, 0, 0, .24),
        inset 0 1px 0 rgba(255, 255, 255, .04);
}

.download-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 3px;
    background: linear-gradient(90deg, transparent, #d8a43f, transparent);
    opacity: .8;
}

.download-card.is-unavailable {
    opacity: .78;
}

.download-card-top {
    display: grid;
    grid-template-columns: 64px minmax(0, 1fr);
    gap: 17px;
    align-items: center;
}

.download-type-icon {
    display: grid;
    place-items: center;
    width: 64px;
    height: 64px;
    border: 1px solid rgba(216, 164, 63, .48);
    background: #071522;
    color: #efc96f;
    box-shadow: inset 0 0 22px rgba(216, 164, 63, .07);
}

.download-type-client {
    font-size: 28px;
}

.download-type-document {
    font-size: 14px;
    font-weight: 800;
    letter-spacing: .08em;
}

.download-kicker {
    display: block;
    margin-bottom: 5px;
    color: #d5a845;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .16em;
    text-transform: uppercase;
}

.download-card h2 {
    margin: 0;
    color: #f1eee7;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(20px, 2vw, 26px);
    font-weight: 500;
    line-height: 1.15;
}

.download-description {
    margin: 22px 0;
    color: rgba(226, 233, 238, .78);
    line-height: 1.65;
}

.download-meta {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin: auto 0 20px;
    border-top: 1px solid rgba(216, 164, 63, .18);
    border-bottom: 1px solid rgba(216, 164, 63, .18);
}

.download-meta > div {
    min-width: 0;
    padding: 13px 9px;
    text-align: center;
}

.download-meta > div + div {
    border-left: 1px solid rgba(216, 164, 63, .16);
}

.download-meta dt {
    margin-bottom: 4px;
    color: rgba(226, 233, 238, .52);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.download-meta dd {
    margin: 0;
    color: #e7dbc0;
    font-size: 13px;
    font-weight: 700;
}

.download-card-footer {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.download-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 48px;
    padding: 0 18px;
    border: 1px solid #e0ba61;
    border-radius: 3px;
    background: linear-gradient(180deg, #e5c069, #c99135);
    color: #181109;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .12em;
    text-transform: uppercase;
    transition: transform .16s ease, filter .16s ease, box-shadow .16s ease;
}

.download-button:hover,
.download-button:focus-visible {
    transform: translateY(-1px);
    filter: brightness(1.08);
    box-shadow: 0 8px 22px rgba(216, 164, 63, .22);
}

.download-button.is-disabled {
    border-color: rgba(170, 180, 190, .25);
    background: #132536;
    color: rgba(226, 233, 238, .48);
    cursor: not-allowed;
}

.download-button.is-disabled:hover {
    transform: none;
    filter: none;
    box-shadow: none;
}

.download-filename {
    overflow: hidden;
    color: rgba(226, 233, 238, .42);
    font-family: Consolas, monospace;
    font-size: 10px;
    text-align: center;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.download-security {
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr);
    gap: 18px;
    align-items: center;
    margin-top: 24px;
    padding: 22px 24px;
    border: 1px solid rgba(216, 164, 63, .25);
    background: #081826;
}

.download-security-icon {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border: 1px solid rgba(216, 164, 63, .54);
    border-radius: 50%;
    color: #efc96f;
    font-size: 22px;
}

.download-security h2 {
    margin: 0 0 5px;
    color: #f1d58d;
    font-size: 15px;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.download-security p {
    margin: 0;
    color: rgba(226, 233, 238, .72);
    line-height: 1.55;
}

@media (max-width: 1020px) {
    .download-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 680px) {
    .download-grid {
        grid-template-columns: 1fr;
    }

    .download-card {
        min-height: 0;
        padding: 20px;
    }

    .download-notice,
    .download-security {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .download-notice-mark,
    .download-security-icon {
        margin: 0 auto;
    }
}
