#leis_decretos .lista {
    margin-top: 30px;
}

#leis_decretos .lista > ul {
    position: relative;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
    gap: 10px 12px;
    box-sizing: border-box;
    width: 100%;
    margin: 0;
    padding: 0 0 0 32px;
}

#leis_decretos .lista > ul::before {
    content: "";
    position: absolute;
    top: 32px;
    bottom: 0;
    left: 32px;
    z-index: 0;
    width: 0;
    border-left: 1px solid var(--purple);
}

#leis_decretos .lista > ul > li {
    position: relative;
    z-index: 1;
}

#leis_decretos ul .ano {
    grid-column: 1 / -1;
    list-style: none;
    font-size: 1.125rem;
    font-weight: 700;
}

#leis_decretos ul .nome-categoria {
    grid-column: 1 / -1;
    margin-left: 0;
    padding-left: 45px;
    padding-top: 5px;
    padding-bottom: 5px;
    list-style: none;
    font-size: 1.25rem;
    font-weight: 700;
    border-left-style: solid;
    border-left-width: 1px;
}

#leis_decretos ul .ano div {
    position: relative;
    z-index: 2;
    width: 64px;
    margin-left: -32px;
    display: inline-block;
    padding: 2px 0;
    border-width: 1px;
    border-style: solid;
    background-color: #fff;
    text-align: center;
}

#leis_decretos ul .lei_decreto {
    display: flex;
    align-items: flex-start;
    gap: 7px;
    box-sizing: border-box;
    min-width: 0;
    margin: 0 0 0 45px;
    width: calc(100% - 45px);
    padding: 10px 11px;
    list-style: none;
    font-size: 0.8rem;
    font-weight: 500;
    border: 1px solid #dfe7ee;
    border-left: 3px solid var(--tertiary);
    border-radius: 6px;
    background-color: #fff;
    box-shadow: 0 1px 2px rgb(0 0 0 / 0.05);
    transition: background-color 0.2s ease, border-left-color 0.2s ease;
}

#leis_decretos ul .lei_decreto:hover {
    background-color: #eef4fa;
    border-left-color: var(--tertiary);
    cursor: pointer;
}

#leis_decretos .link-leis {
    display: inline-flex;
    align-items: flex-start;
    gap: 7px;
    font-size: 0.8rem;
    line-height: 1.35;
    text-decoration: none;
}

#leis_decretos .link-leis i {
    font-size: 0.9rem;
    flex: 0 0 auto;
    margin-top: 3px;
}

#leis_decretos .ato-normativo__conteudo {
    min-width: 0;
    flex: 1 1 auto;
}

#leis_decretos .ato-normativo__metadados {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: flex-start;
    gap: 3px 8px;
    margin-bottom: 2px;
    color: #6d7780;
    font-size: 0.63rem;
    font-weight: 400;
    line-height: 1.35;
    white-space: nowrap;
}

#leis_decretos .ato-normativo__metadados strong {
    color: inherit;
    font-weight: 600;
    flex: 0 0 auto;
}

#leis_decretos .ato-normativo__metadado {
    display: flex;
    flex-direction: row;
    align-items: baseline;
    flex: 0 0 auto;
    max-width: 100%;
    min-width: 0;
    gap: 3px;
}

#leis_decretos .ato-normativo__metadado-valor {
    min-width: 0;
    white-space: nowrap;
}

#leis_decretos .ato-normativo__numero-valor {
    display: inline-block;
    white-space: nowrap;
}

@media (max-width: 700px) {
    #leis_decretos .lista > ul {
        grid-template-columns: 1fr;
        padding-left: 12px;
    }

    #leis_decretos .lista > ul::before {
        left: 12px;
    }

    #leis_decretos ul .nome-categoria {
        margin-left: 0;
    }

    #leis_decretos ul .nome-categoria {
        padding-left: 28px;
    }

    #leis_decretos ul .ano div {
        margin-left: -12px;
    }

    #leis_decretos ul .lei_decreto {
        margin-left: 28px;
        width: calc(100% - 28px);
        padding: 12px;
    }

}

@media (max-width: 600px) {
    #leis_decretos .ato-normativo__metadados {
        font-size: 0.75rem;
    }
}
