:root {
    --min-h-full: clamp(14.375rem, 13.5625rem + 3.3333vw, 17.5625rem);
    --min-h-small: clamp(8.125rem, 7.4559rem + 2.7451vw, 10.75rem);

}

.wp-block-eqao-2025-child-document-card {
    display: flex;
    flex-direction: column;
    margin-top: var(--box-m-top);
    margin-bottom: var(--box-m-bottom);
}

.eqao-document-card__inner {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-sizing: border-box;
    /* max-width: 37.125rem; */
    padding: var(--box-p);
    border: 1px solid var(--wp--preset--color--custom-black);
    color: var(--wp--preset--color--custom-black);
    background-color: #fff;
    text-decoration: none;
    /* min-height: 10.75rem; */
    min-height: var(--min-h-small);
    width: 100%;
    height: 100%;
    flex: 1 1 auto;
}
.eqao-document-card__inner.is-size-full {
    /* min-height: 12.5rem; */
    min-height: var(--min-h-full);
    width: 100%;
}

.eqao-document-card__inner:hover {
    text-decoration: none;
}

.eqao-carousel .wp-block-eqao-2025-child-document-card,
.eqao-carousel .wp-block-eqao-2025-child-document-card .eqao-document-card__inner {
    height: 100%;
}

.eqao-carousel .eqao-carousel__cell:has(.wp-block-eqao-2025-child-document-card),
.eqao-carousel .carousel-cell:has(.wp-block-eqao-2025-child-document-card),
.eqao-carousel .wp-block-post:has(.wp-block-eqao-2025-child-document-card) {
    display: flex;
    flex-direction: column;
}

.eqao-carousel .eqao-carousel__cell:has(.wp-block-eqao-2025-child-document-card) > .wp-block-eqao-2025-child-document-card,
.eqao-carousel .carousel-cell:has(.wp-block-eqao-2025-child-document-card) > .wp-block-eqao-2025-child-document-card,
.eqao-carousel .wp-block-post:has(.wp-block-eqao-2025-child-document-card) > .wp-block-eqao-2025-child-document-card {
    flex: 1 1 auto;
}

.eqao-document-card__body {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.eqao-document-card__title {
    margin-top: 0;
    margin-bottom: 0;
    font-family: var(--wp--preset--font-family--lexend);
    font-size: var(--wp--preset--font-size--custom-4);
    font-weight: 400;
    line-height: 1.2;
}

p.eqao-document-card__description {
    margin-top: 0;
    margin-bottom: 0px !important;
}

.eqao-document-card__description--hidden,
.eqao-document-card__revision-date--hidden,
.eqao-document-card__link-label--hidden {
    opacity: 0.45;
}

.eqao-document-card__tags-row {
    display: flex;
    flex-wrap: wrap;
    gap: var(--wp--preset--spacing--30);
    padding-top: 0;
    padding-bottom: 0;
}

.eqao-document-card__tag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: var(--wp--preset--color--custom-light-grey-2);
}

.eqao-document-card__tag.tag-grade-3, .eqao-document-card__tag.tag-grade-3-fr {
    background-color: var(--grades-3-light-yellow, var(--wp--preset--color--custom-light-yellow));
}

.eqao-document-card__tag.tag-grade-6, .eqao-document-card__tag.tag-grade-6-fr {
    background-color: var(--grades-6-lime-green, var(--wp--preset--color--custom-light-green));
}

.eqao-document-card__tag.tag-grade-9, .eqao-document-card__tag.tag-grade-9-fr {
    background-color: var(--grades-9-light-purple, var(--wp--preset--color--custom-light-purple));
}

.eqao-document-card__tag.tag-osslt, .eqao-document-card__tag.tag-osslt-fr {
    background-color: var(--grades-10-light-blue, var(--wp--preset--color--custom-light-blue));
}

.eqao-document-card__tag.tag-mpt, .eqao-document-card__tag.tag-mpt-fr {
    background-color: var(--wp--preset--color--custom-light-teal);
}


.eqao-document-card__tag-text {
    margin: 0;
    padding: 0.3125rem 0.625rem;
    font-family: var(--wp--preset--font-family--lexend);
    font-size: var(--wp--preset--font-size--custom-21);
    line-height: 1.3;
    letter-spacing: 0.002rem;
}

.eqao-document-card__meta {
    width: 100%;
}

.eqao-document-card__revision-date {
    margin-top: 0px !important;
    margin-bottom: 0;
    font-family: var(--wp--preset--font-family--lexend);
    font-size: var(--wp--preset--font-size--custom-23);
    line-height: 1.3;
    letter-spacing: 0.002rem;
 }
/*
.eqao-document-card__divider {
    border: 0;
    border-top: 1px solid var(--wp--preset--color--custom-light-grey-3);
    border-top: 1px solid var(--neutral-light-grey);
} 
*/

.eqao-document-card__file-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.eqao-document-card__file-link {
    display: flex;
    align-items: flex-end;
    gap: var(--wp--preset--spacing--40);
    width: 100%;
}

.eqao-document-card__file-copy {
    display: inline-flex;
    align-items: flex-end;
    gap: var(--wp--preset--spacing--40);
    min-width: 0;
}

.eqao-document-card__link-label {
    margin: 0;
    font-family: var(--wp--preset--font-family--lexend);
    font-size: 1.125rem;
    font-style: normal;
    font-weight: 400;
    line-height: 1.3;
}
.eqao-document-card__link-label.is-style-contextual-info-btn {
    transform: var(--icon-par-transform-y-sm);
}

.eqao-document-card__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 0;
    flex: 0 0 auto;
    color: currentColor;
    /* transform: var(--icon-transform); */
}

.eqao-document-card__icon svg {
    display: block;
    width: inherit !important;
    height: inherit !important;
    inline-size: inherit !important;
    block-size: inherit !important;
    min-width: 0 !important;
    min-height: 0 !important;
    overflow: visible;
    object-fit: contain;
}

img.eqao-document-card__icon {
    display: block;
    object-fit: contain;
}

.eqao-document-card__icon--pdf,
.eqao-document-card__icon--xls {
    /* width: 16px;
    height: 20px; */
    width: var(--icon-pdf-w);
    height: var(--icon-pdf-h);  
    /* transform: var(--icon-transform); */
}

.eqao-document-card__icon--zip {
    /* width: 20px;
    height: 24px; */
    width: var(--icon-pdf-w);
    height: var(--icon-pdf-h);  
}
/* 
.eqao-document-card__icon--download,
.eqao-document-card__icon--external {
    width: 22px;
    height: 22px;
}
.eqao-document-card__icon--arrow {
    width: 30px;
    height: 30px;
} 
*/
.eqao-document-card__icon--download {
    width: var(--icon-download-w);
    height: var(--icon-download-w);
}
.eqao-document-card__icon--external {
    width: var(--icon-external-w);
    height: var(--icon-external-w);
}
.eqao-document-card__icon--arrow {
    width: var(--icon-arrow-r-w);
    height: var(--icon-arrow-r-h);  
}

.eqao-document-card__file-row:has(.eqao-document-card__icon--arrow) {
    align-items: flex-end;
}

.eqao-document-card__file-row:not(:has(.eqao-document-card__file-link .eqao-document-card__icon)) .eqao-document-card__file-copy {
    gap: 0;
}

.eqao-document-card__file-row:not(:has(> .eqao-document-card__icon)) {
    justify-content: flex-start;
}

.editor-styles-wrapper .eqao-document-card__file-row:not(:has(> .eqao-document-card__icon)) .eqao-document-card__file-link {
    align-items: flex-start;
}

@supports not selector(:has(*)) {
    .eqao-document-card__file-row {
        justify-content: space-between;
    }
}

@media screen and (max-width: 782px) {
    .eqao-document-card__inner {
        padding: 20px;
        max-width: none;
    }
    /* 
    .eqao-document-card__icon--pdf,
    .eqao-document-card__icon--xls {       
        width: 14px;
        height: 18px; 
    }
    .eqao-document-card__icon--zip {     
        width: 18px;
        height: 22px; 
    }
    .eqao-document-card__icon--download {
        width: var(--icon-download-w);
        height: var(--icon-download-w);
    }
    .eqao-document-card__icon--external {
        width: var(--icon-external-w);
        height: var(--icon-external-w);
    }
    .eqao-document-card__icon--arrow {
        width: 30px;
        height: 30px; 
    }

    .eqao-document-card__file-row,
    .eqao-document-card__file-link {
        align-items: flex-start;
    } 
    */
}

.editor-styles-wrapper .eqao-document-card .block-editor-rich-text__editable {
    display: inline-block;
}

.editor-styles-wrapper .eqao-document-card__file-link {
    align-items: center;
}
