.documents-grid {
    max-width: var(--ip-content-max); /* Widened to content width (task 199). */
    margin: 0 auto 60px; /* Bottom margin ensures bottom-row card borders are visible before the next section (task 224). */
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.documents-grid__title {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 300;
    font-size: 36px;
    line-height: 1;
    letter-spacing: -0.396px;
    color: #1b1b1b;
    text-transform: uppercase;
    text-align: center;
    margin: 0;
    padding: 10px 0 36px;
}

.documents-grid__list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.documents-grid__card {
    background: #fff;
    border-top: 1px solid #cecece;
    border-bottom: 1px solid #cecece;
    padding: 28px 36px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.documents-grid__card-body {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-self: stretch;
    min-height: 172px;
    max-width: 404px;
    flex: 1 1 auto;
}

.documents-grid__card-title {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 700;
    font-size: 36px;
    line-height: 1;
    letter-spacing: -0.396px;
    color: #1b1b1b;
    margin: 0;
    word-break: break-word;
}

.documents-grid__card-cta {
    font-family: 'Golos Text', sans-serif;
    font-weight: 500;
    font-size: 14px;
    line-height: 1.05;
    color: #a33d25;
    text-decoration: none;
    white-space: nowrap;
    align-self: flex-start;
    padding: 10px 0;
}

.documents-grid__card-cta:hover {
    text-decoration: underline;
}

.documents-grid__card-icon {
    width: 172px;
    height: 172px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}

.documents-grid__card-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.documents-grid__card-icon--placeholder {
    background: #d9d9d9;
}

@media (max-width: 767.99px) {
    .documents-grid__list {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .documents-grid__card {
        padding: 20px 0;
        gap: 16px;
        align-items: center;
    }

    .documents-grid__card-icon {
        order: -1;
        width: 56px;
        height: 56px;
    }

    .documents-grid__card-body {
        min-height: 0;
        max-width: none;
        flex: 1 1 auto;
        gap: 8px;
    }

    .documents-grid__card-title {
        font-size: 24px;
        overflow-wrap: anywhere;
    }

    .documents-grid__card-cta {
        align-self: flex-start;
        padding: 12px 0;
        white-space: normal;
    }
}
