/* =====================================================
   PRODUCT HEADER
===================================================== */

.product-header {
    margin-bottom: 48px;
    border-radius: 8px;
    overflow: hidden;
    background: #ffffff;
    color: unset !important;
    color: #0d2a4a !important;
}

/* =====================================================
   TOP ROW
===================================================== */

.product-header-top {
    display: flex;
    min-height: 90px;
}

.product-header-type {
    width: 220px;
    flex-shrink: 0;

    background: #c5a12a;
    color: #002b5c;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 20px;

    text-align: center;
    text-transform: uppercase;
    font-size: 1rem;
    font-weight: 700;
}

.product-header-reference {
    width: 180px;
    flex-shrink: 0;

    background: #dfe6ec;
    color: #506785;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 2rem;
    font-weight: 600;
}

.product-header-reference::after {
    content: "|";
    margin-left: 20px;
    color: #506785;
}

.product-header-title {
    flex: 1;

    background: #dfe6ec;
    color: #002b5c;

    display: flex;
    align-items: center;

    padding: 20px 32px;

    font-size: 2rem;
    font-weight: 700;
    text-transform: uppercase;
}

/* =====================================================
   METADATA GRID
===================================================== */

.product-header-metadata {
    display: flex;
    width: 100%;
}

.product-header-column {
    display: flex;
    flex-direction: column;
}

/* campo padrão */

.product-header-column {
    flex: 1;
}

/* DATE */

.product-header-column[data-field="date"] {
    flex: 0 0 220px;
}

/* LOCATION */

.product-header-column[data-field="location"] {
    flex: 0 0 260px;
}

/* EVENT */

.product-header-column[data-field="event"] {
    flex: 2;
}

/* SOURCE */

.product-header-column[data-field="source"] {
    flex: 1.5;
}

.product-header-column-label {
    background: #1f4a78;
    color: #ffffff !important;

    padding: 14px;

    text-align: center;

    font-size: 0.9rem;
    font-weight: 700;

    letter-spacing: 2px;
    text-transform: uppercase;

    border-right: 1px solid rgba(255,255,255,.2);
}

.product-header-column-value {
    background: #eef2f5;
    color: #000000;

    min-height: 78px;

    padding: 16px;

    display: flex;
    align-items: center;
    justify-content: center;

    text-align: center;
    font-weight: 500;

    border-right: 1px solid #d7dde5;
}

.product-header-column:last-child .product-header-column-label,
.product-header-column:last-child .product-header-column-value {
    border-right: none;
}

/* =====================================================
   BODY
===================================================== */

.field--name-field-product-body figure {
    width: 100%;
    margin: 32px 0;
}

.field--name-field-product-body img {
    display: block;

    width: 100%;
    height: auto;

    margin: auto;
    
    border-radius: 8px;
}

.field--name-field-product-body figcaption {
    margin-top: 16px;

    text-align: center;

    font-size: 0.9rem;
    font-style: italic;
    color: #666666;
}

.field--name-field-product-body h5 {
    margin-top: 48px;
    margin-bottom: 16px;

    color: #002b5c;

    font-size: 1.1rem;
    font-weight: 700;

    text-transform: uppercase;
}

.field--name-field-product-body p {
    text-align: justify;

    -webkit-hyphens: none;
    -ms-hyphens: none;
    hyphens: none;
}

/* =====================================================
   TAGLINE
===================================================== */

.field--name-field-product-tagline {
    margin-top: 128px;

    text-align: center;

    color: #002b5c;

    font-size: 1rem;
    font-weight: 600;
    line-height: 1.4;
}

/* =====================================================
   PRODUCT TYPES
===================================================== */

.product-type-analytical-reports .product-header-type {
    background: #c5a12a;
    color: #002b5c;
}

/* futuro

.product-type-alert .product-header-type {
    background: #b42318;
    color: white;
}

.product-type-advisory .product-header-type {
    background: #1f4a78;
    color: white;
}
*/

/* =====================================================
   MOBILE
===================================================== */

@media (max-width: 768px) {

    .product-header-top {
        flex-direction: column;
    }

    .product-header-type,
    .product-header-reference,
    .product-header-title {
        width: 100%;
    }

    .product-header-reference::after {
        display: none;
    }

    .product-header-title {
        font-size: 1.3rem;
    }

    .product-header-reference {
        font-size: 1.5rem;
    }

    .product-header-metadata {
        flex-direction: column;
    }

    .product-header-column[data-field="date"],
    .product-header-column[data-field="location"],
    .product-header-column[data-field="event"],
    .product-header-column[data-field="source"] {
        flex: auto;
    }
}