/* =====================================================
   ITEM-INDIVIDUAL — metadata details block
   Add after the existing dl.individual-details-list
   rules in layout.css
   ===================================================== */

/* Wrapper: treat the collection of dl rows as a single table */
.view-article .item-individual {
    display: table;
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 18px;
    font-size: 14px;
    border: 1px solid #e0e4e8;
    border-radius: 4px;
    overflow: hidden;       /* clips the radius onto the children */
    background: #fff;
}

/* Each dl is one row */
dl.individual-details-list {
    display: table-row;
    margin: 0;
}

/* Alternating row backgrounds */
dl.individual-details-list:nth-child(even) {
    background: #f7f9fb;
}
dl.individual-details-list:nth-child(odd) {
    background: #fff;
}

/* Hover highlight */
dl.individual-details-list:hover {
    background: #eef4fb;
}

/* dt — label column */
dl.individual-details-list dt {
    display: table-cell;
    width: 9em;             /* fixed label column width */
    min-width: 9em;
    padding: 8px 14px 8px 12px;
    font-size: 12px;
    font-weight: 600;
    color: #555;
    text-align: right;
    vertical-align: top;
    line-height: 1.4;
    white-space: nowrap;
    border-right: 2px solid #d0dae5;
    border-bottom: 1px solid #eaeef2;
    box-sizing: border-box;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

/* dd — value column */
dl.individual-details-list dd {
    display: table-cell;
    padding: 8px 14px;
    font-size: 14px;
    color: #222;
    vertical-align: top;
    line-height: 1.5;
    border-bottom: 1px solid #eaeef2;
    box-sizing: border-box;
}

/* Remove bottom border on last row */
dl.individual-details-list:last-child dt,
dl.individual-details-list:last-child dd {
    border-bottom: none;
}

/* Links inside dd */
dl.individual-details-list dd a {
    color: #2489d5;
    text-decoration: none;
}
dl.individual-details-list dd a:hover {
    text-decoration: underline;
}

/* Inline spans inside dd (like "test aqui") */
dl.individual-details-list dd span {
    color: #666;
    font-size: 13px;
    margin-left: 4px;
}

/* First row (Sumário) — slightly more prominent */
dl.individual-details-list:first-child dt {
    color: #2489d5;
    border-right-color: #2489d5;
}
dl.individual-details-list:first-child dd {
    font-weight: 500;
}

/* ── Responsive: stack at narrow viewports ── */
@media (max-width: 625px) {
    .item-individual {
        display: block;
        border-radius: 4px;
    }
    dl.individual-details-list {
        display: block;
        border-bottom: 1px solid #eaeef2;
        padding: 8px 12px;
    }
    dl.individual-details-list:last-child {
        border-bottom: none;
    }
    dl.individual-details-list dt {
        display: block;
        width: auto;
        text-align: left;
        padding: 0 0 3px 0;
        border-right: none;
        border-bottom: none;
        white-space: normal;
    }
    dl.individual-details-list dd {
        display: block;
        padding: 0;
        border-bottom: none;
    }
}
