.lp-public {
    color: #1d2327;
    font-family: inherit;
    --lp-primary: #0b79bf;
    --lp-accent: #f37021;
}

.lp-search {
    background: #f3f4f5;
    border: 1px solid #dcdcde;
    border-radius: 6px;
    padding: 22px;
    margin-bottom: 26px;
}

.lp-search h2 {
    margin: 0 0 18px;
    text-align: center;
    font-size: 22px;
    text-transform: uppercase;
}

.lp-search-tabs {
    display: flex;
    gap: 8px;
    margin: 0 0 16px;
    border-bottom: 1px solid #dcdcde;
}

.lp-search-tabs button {
    display: inline-flex;
    align-items: center;
    min-height: 42px;
    padding: 0 18px;
    border: 1px solid #dcdcde;
    border-bottom: 0;
    border-radius: 6px 6px 0 0;
    background: #e9ecef;
    color: #50575e;
    font-weight: 800;
    cursor: pointer;
}

.lp-search-tabs button.is-active {
    background: #fff;
    color: #1d2327;
}

.lp-search[data-lp-mode="simple"] .lp-field-advanced {
    display: none;
}

.lp-search-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(150px, 1fr));
    gap: 16px;
}

.lp-search label {
    display: flex;
    flex-direction: column;
    gap: 7px;
    font-weight: 700;
}

.lp-search input,
.lp-search select {
    width: 100%;
    min-height: 42px;
    border: 1px solid #d6d9dc;
    border-radius: 4px;
    padding: 8px 10px;
    background: #fff;
}

.lp-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 260px;
    border: 0;
    border-radius: 4px;
    background: #596169;
    color: #fff;
    font-weight: 700;
    padding: 13px 20px;
    cursor: pointer;
    text-transform: uppercase;
    text-decoration: none;
}

.lp-form-actions {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 22px;
}

.lp-button-light {
    background: #fff;
    color: #1d2327;
    border: 1px solid #c3c4c7;
}

.lp-count {
    margin: 0 0 16px;
}

.lp-count strong {
    display: inline-block;
    border-radius: 16px;
    background: #f37021;
    background: var(--lp-accent);
    color: #fff;
    padding: 4px 8px;
}

.lp-results {
    display: grid;
    gap: 18px;
}

.lp-card {
    border: 1px solid #e0e3e6;
    border-radius: 6px;
    background: #f7f8f9;
    padding: 16px;
    box-shadow: 0 2px 0 rgba(0, 0, 0, .12);
}

.lp-card header {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 14px;
    align-items: center;
    background: #fff;
    border-radius: 4px;
    padding: 0 10px 0 0;
}

.lp-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 110px;
    min-height: 54px;
    border-radius: 4px 28px 28px 4px;
    background: #0b79bf;
    background: var(--lp-primary);
    color: #fff;
    font-size: 21px;
    font-weight: 800;
}

.lp-card h3 {
    margin: 0;
    font-size: 22px;
}

.lp-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.lp-actions a {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    border-radius: 18px;
    background: #e9ecef;
    color: #1d2327;
    padding: 0 12px;
    text-decoration: none;
    font-weight: 700;
}

.lp-actions a:last-child {
    background: #0e4c92;
    color: #fff;
}

.lp-status {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    min-height: 26px;
    border-radius: 4px;
    background: #24a148;
    color: #fff;
    padding: 0 10px;
    font-style: normal;
    font-weight: 800;
    font-size: 13px;
}

.lp-status-revogada-parcialmente,
.lp-status-revogada-totalmente,
.lp-status-anulada,
.lp-status-declarada-sem-efeito {
    background: #b32d2e;
}

.lp-status-alterada,
.lp-status-suspensa,
.lp-status-parcialmente-suspensa,
.lp-status-vigencia-esgotada {
    background: #996800;
}

.lp-card-meta {
    display: grid;
    grid-template-columns: repeat(3, minmax(180px, 1fr));
    gap: 12px;
    margin: 22px 0 14px;
}

.lp-card p {
    margin: 0;
    line-height: 1.55;
    text-transform: uppercase;
}

.lp-card-extra {
    display: grid;
    gap: 6px;
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid #e0e3e6;
    color: #50575e;
}

.lp-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 10px;
    margin: 0 0 18px;
}

.lp-stats div {
    border: 1px solid #dcdcde;
    border-radius: 6px;
    background: #fff;
    padding: 14px;
}

.lp-stats strong {
    display: block;
    color: var(--lp-primary);
    font-size: 26px;
    line-height: 1;
}

.lp-stats span {
    display: block;
    margin-top: 6px;
    color: #50575e;
    font-weight: 700;
}

.lp-open-data {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin: -8px 0 16px;
}

.lp-open-data a,
.lp-pagination a,
.lp-pagination span {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    border: 1px solid #dcdcde;
    border-radius: 4px;
    background: #fff;
    padding: 0 10px;
    text-decoration: none;
    font-weight: 700;
}

.lp-pagination {
    display: flex;
    justify-content: center;
    gap: 6px;
    flex-wrap: wrap;
    margin: 24px 0 0;
}

.lp-pagination .current {
    background: var(--lp-primary);
    color: #fff;
    border-color: var(--lp-primary);
}

.lp-single-header {
    border-bottom: 1px solid #dcdcde;
    padding-bottom: 20px;
    margin-bottom: 20px;
}

.lp-single-header h1 {
    margin: 12px 0;
    font-size: 30px;
}

.lp-single-header p {
    max-width: 980px;
    font-size: 18px;
    line-height: 1.5;
    text-transform: none;
}

.lp-single-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 16px;
}

.lp-single-meta {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 12px;
    margin: 0 0 24px;
}

.lp-single-meta div {
    border: 1px solid #dcdcde;
    border-radius: 6px;
    background: #fff;
    padding: 12px;
}

.lp-single-meta dt {
    color: #50575e;
    font-weight: 800;
}

.lp-single-meta dd {
    margin: 4px 0 0;
}

.lp-single-body {
    border-top: 1px solid #dcdcde;
    padding-top: 18px;
}

.lp-single-body h2 {
    font-size: 22px;
}

.lp-single-body p {
    text-transform: none;
}

@media (max-width: 900px) {
    .lp-search-grid,
    .lp-card-meta {
        grid-template-columns: 1fr 1fr;
    }

    .lp-card header {
        grid-template-columns: 1fr;
        padding: 0 0 12px;
    }
}

@media (max-width: 560px) {
    .lp-search-grid,
    .lp-card-meta {
        grid-template-columns: 1fr;
    }

    .lp-button {
        min-width: 0;
        width: 100%;
    }

    .lp-open-data {
        justify-content: stretch;
        flex-direction: column;
    }

    .lp-number {
        width: 100%;
        border-radius: 4px;
    }
}
