/* ============================================================
   DOWNLOADS CONTAINER
   ============================================================ */

.downloads-container {
    background: #fff;
    border: 1.5px solid var(--line);
    border-radius: 16px;

    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.05);

    overflow: hidden;

    padding: 12px;
}


/* ============================================================
   DOWNLOADS LIST
   ============================================================ */

.downloads-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}


/* ============================================================
   DOWNLOAD ITEM
   ============================================================ */

.download-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;

    padding: 18px 20px;

    background: #fff;

    border: 1.5px solid transparent;
    border-radius: 12px;

    transition:
        border-color .2s ease,
        box-shadow .2s ease,
        transform .2s ease,
        background .2s ease;
}


/* Hover */

.download-item:hover {
    background: #fbfdfc;

    border-color: var(--teal);

    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.07);

    transform: translateY(-1px);
}


/* ============================================================
   DOCUMENT NUMBER
   ============================================================ */

.download-number {
    width: 48px;
    height: 48px;

    flex-shrink: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 9px;

    background: var(--teal-tint);
    color: var(--teal);

    font-family: var(--font-mono);
    font-size: .72rem;
    font-weight: 700;
}


/* ============================================================
   DOCUMENT INFORMATION
   ============================================================ */

.download-info {
    flex: 1;
    min-width: 0;
}

.download-info h3 {
    margin: 0 0 5px;

    font-family: var(--font-display);
    font-size: 1.12rem;
    line-height: 1.3;
    font-weight: 600;

    color: var(--ink);
}

.download-info span {
    display: block;

    font-family: var(--font-mono);
    font-size: .68rem;

    color: var(--ink-soft);
}


/* ============================================================
   ACTIONS
   ============================================================ */

.download-actions {
    display: flex;
    align-items: center;
    gap: 8px;

    flex-shrink: 0;
}


/* ============================================================
   VIEW BUTTON
   ============================================================ */

.download-view-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;

    min-width: 76px;

    padding: 9px 13px;

    border: 1.5px solid var(--teal);
    border-radius: 8px;

    background: #fff;

    color: var(--teal);

    font-size: .8rem;
    font-weight: 700;

    text-decoration: none;

    transition:
        background .2s ease,
        color .2s ease;
}

.download-view-btn i {
    font-size: 13px;
}

.download-view-btn:hover {
    background: var(--teal);
    color: #fff;
}


/* ============================================================
   DOWNLOAD BUTTON
   ============================================================ */

.download-file-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;

    min-width: 88px;

    padding: 9px 13px;

    border: 1.5px solid var(--teal);
    border-radius: 8px;

    background: #fff;

    color: var(--teal);

    font-size: .8rem;
    font-weight: 700;

    text-decoration: none;

    transition:
        background .2s ease,
        color .2s ease;
}

.download-file-btn i {
    font-size: 13px;
}

.download-file-btn:hover {
    background: var(--teal);
    color: #fff;
}


/* ============================================================
   SECTION HEADINGS
   ============================================================ */

.download-section-title {
    display: flex;
    align-items: center;
    gap: 12px;

    margin: 12px 8px 4px;

    padding: 14px 8px 8px;

    border-top: 1px solid var(--line);
}
.download-section-titleChild {
    display: flex;
    align-items: center;
    gap: 12px;

    margin: 12px 8px 4px;

    padding: 14px 30px 8px;

    border-top: 1px solid var(--line);
}
.download-section-title span {
    width: 34px;
    height: 34px;

    flex-shrink: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 8px;

    background: var(--teal);
    color: #fff;

    font-family: var(--font-mono);
    font-size: .68rem;
    font-weight: 700;
}
.download-section-titleChild span {
    width: 34px;
    height: 34px;

    flex-shrink: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 8px;

    background: var(--teal);
    color: #fff;

    font-family: var(--font-mono);
    font-size: .68rem;
    font-weight: 700;
}
.download-section-title h3 {
    margin: 0;

    font-family: var(--font-display);
    font-size: 1.18rem;
    font-weight: 600;

    color: var(--teal-dark);
}


/* ============================================================
   SUB ITEMS
   ============================================================ */

.download-subitem {
    margin-left: 24px;
}


/* ============================================================
   MOBILE
   ============================================================ */

@media (max-width: 640px) {

    .downloads-container {
        padding: 8px;

        border-radius: 12px;
    }

    .downloads-list {
        gap: 6px;
    }

    .download-item {
        align-items: flex-start;

        flex-wrap: wrap;

        gap: 14px;

        padding: 16px;
    }

    .download-number {
        width: 42px;
        height: 42px;
    }

    .download-info {
        width: calc(100% - 56px);
    }

    .download-info h3 {
        font-size: 1rem;
    }

    .download-info span {
        font-size: .64rem;
    }

    .download-actions {
        width: 100%;

        display: grid;
        grid-template-columns: 1fr 1fr;

        gap: 8px;
    }

    .download-view-btn,
    .download-file-btn {
        width: 100%;
    }

    .download-section-title {
        margin-left: 4px;
        margin-right: 4px;
    }

    .download-section-title h3 {
        font-size: 1rem;
    }

    .download-subitem {
        margin-left: 0;
    }
}