:root {
    --dce-red: #ed1c24;
    --dce-ink: #171717;
    --dce-muted: #676767;
    --dce-line: #e5e5e5;
    --dce-soft: #f6f6f6;
    --dce-white: #fff;
    --dce-hero-text: #fff;
    --dce-columns: 3;
}

.dce-central,
.dce-profile-wrap {
    width: min(1180px, calc(100% - 32px));
    margin: 36px auto 60px;
    color: var(--dce-ink);
    font-family: inherit;
}

/* Faz o modelo de página do Newspaper usar a largura completa, sem depender
   da resolução ou de uma coluna lateral vazia. */
.dce-election-page .td-main-content-wrap .td-pb-row > .td-pb-span8,
.dce-election-page .td-main-page-wrap .td-pb-row > .td-pb-span8 {
    float: none !important;
    width: 100% !important;
    margin-right: auto !important;
    margin-left: auto !important;
}

.dce-election-page .td-main-content-wrap .td-pb-row > .td-pb-span4,
.dce-election-page .td-main-page-wrap .td-pb-row > .td-pb-span4 {
    display: none !important;
}

.dce-central {
    position: static;
    left: auto;
    transform: none;
    max-width: 1180px;
    margin-right: auto;
    margin-left: auto;
}

.dce-hero {
    padding: clamp(28px, 5vw, 58px);
    color: var(--dce-hero-text) !important;
    background: var(--dce-ink);
    border-top: 7px solid var(--dce-red);
    border-radius: 0;
}

.dce-kicker {
    display: inline-block;
    margin-bottom: 10px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .12em;
}

.dce-hero h1,
.dce-profile-intro h1 {
    margin: 0;
    line-height: 1.04;
    font-size: clamp(34px, 6vw, 64px);
}

.dce-central .dce-hero h1,
.dce-profile .dce-profile-intro h1 {
    color: var(--dce-hero-text) !important;
    font-family: inherit !important;
    font-weight: 800 !important;
    letter-spacing: -.02em !important;
    text-transform: none !important;
}

.dce-hero p {
    max-width: 720px;
    margin: 16px 0 0;
    font-size: clamp(16px, 2vw, 20px);
}

.dce-central .dce-hero p,
.dce-central .dce-hero .dce-kicker {
    color: var(--dce-hero-text) !important;
}

.dce-central .dce-filters {
    display: grid;
    grid-template-columns: minmax(260px, 1.6fr) minmax(130px, .55fr) minmax(170px, .7fr) auto;
    gap: 14px;
    align-items: end;
    margin: 24px 0;
    padding: 20px;
    border: 1px solid var(--dce-line);
    background: #fff;
    box-shadow: 0 8px 28px rgba(0,0,0,.05);
}

.dce-central .dce-filters label span {
    display: block;
    margin-bottom: 6px;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}

.dce-central .dce-filters input,
.dce-central .dce-filters select,
.dce-central .dce-filters button {
    width: 100%;
    max-width: 100% !important;
    min-height: 46px;
    box-sizing: border-box;
    border: 1px solid #cfcfcf;
    border-radius: 3px;
    padding: 10px 12px;
    font: inherit;
}

.dce-central .dce-filters > label {
    display: block;
    width: 100%;
    min-width: 0;
    margin: 0;
}

.dce-central .dce-filters button {
    width: auto;
    padding-inline: 22px;
    border-color: var(--dce-red);
    color: #fff;
    background: var(--dce-red);
    font-weight: 800;
    cursor: pointer;
    text-transform: none;
    white-space: nowrap;
}

.dce-results-head,
.dce-section-title-row {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: center;
    margin: 24px 0 14px;
}

.dce-results-head span {
    color: var(--dce-muted);
    font-size: 13px;
}

.dce-results-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    align-items: center;
    gap: 10px 16px;
}

.dce-reset-results,
.dce-results-return a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 9px 14px;
    border: 1px solid var(--dce-red);
    color: var(--dce-red) !important;
    background: #fff;
    font-weight: 800;
    line-height: 1.25;
    text-decoration: none !important;
}

.dce-reset-results:hover,
.dce-results-return a:hover {
    color: #fff !important;
    background: var(--dce-red);
}

.dce-results-return {
    display: flex;
    justify-content: center;
    margin: 28px 0 4px;
}

.dce-grid {
    display: grid;
    grid-template-columns: repeat(var(--dce-columns), minmax(0, 1fr));
    gap: 18px;
}

.dce-card {
    margin: 0;
    border: 1px solid var(--dce-line);
    background: #fff;
    transition: transform .18s ease, box-shadow .18s ease;
}

.dce-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(0,0,0,.1);
}

.dce-card-link {
    display: block;
    height: 100%;
    color: inherit;
    text-decoration: none !important;
}

.dce-avatar,
.dce-profile-photo {
    display: grid;
    place-items: center;
    overflow: hidden;
    color: #fff;
    background: #2b2b2b;
    font-weight: 900;
}

.dce-avatar {
    aspect-ratio: 4 / 5;
    font-size: 42px;
    background: #f2f2f2;
}

.dce-avatar img,
.dce-profile-photo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center top;
}

.dce-card-body {
    padding: 16px;
}

.dce-office {
    color: var(--dce-red);
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
}

.dce-card h2 {
    margin: 7px 0 4px;
    font-size: 20px;
    line-height: 1.15;
}

.dce-central .dce-card h2,
.dce-profile .dce-section h2 {
    color: var(--dce-ink) !important;
    font-family: inherit !important;
    text-transform: none !important;
}

.dce-central .dce-card h2::before,
.dce-central .dce-card h2::after,
.dce-profile .dce-section h2::before,
.dce-profile .dce-section h2::after {
    display: none !important;
    content: none !important;
}

.dce-number {
    font-size: 22px;
    font-weight: 900;
}

.dce-party {
    margin: 3px 0 12px;
    color: var(--dce-muted);
}

.dce-status {
    display: inline-flex;
    padding: 5px 9px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
}

.dce-status.is-positive { color: #075f32; background: #dbf5e7; }
.dce-status.is-negative { color: #861010; background: #fde0e0; }
.dce-status.is-pending { color: #725300; background: #fff1bd; }

.dce-view {
    display: block;
    margin-top: 16px;
    color: var(--dce-red);
    font-weight: 800;
}

.dce-card-link:hover .dce-view { text-decoration: underline; }

.dce-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-top: 30px;
}

.dce-pagination a {
    padding: 10px 15px;
    color: #fff;
    background: var(--dce-red);
    text-decoration: none;
}

.dce-empty {
    padding: 34px;
    border: 1px dashed #bbb;
    text-align: center;
    background: var(--dce-soft);
}

.dce-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
    color: var(--dce-muted);
    font-size: 13px;
}

.dce-profile {
    max-width: 980px;
    margin: 0 auto;
}

.dce-profile-header {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 34px;
    align-items: center;
    padding: clamp(22px, 4vw, 42px);
    color: #fff;
    background: var(--dce-ink);
}

.dce-profile-photo {
    aspect-ratio: 4 / 5;
    font-size: 54px;
    background: #fff;
}

.dce-full-name {
    margin: 10px 0 18px;
    color: #d0d0d0;
}

.dce-profile-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 14px;
}

.dce-profile-tags > * {
    padding: 7px 10px;
    background: rgba(255,255,255,.12);
}

.dce-status-detail {
    margin: 10px 0 0;
    color: #ddd;
}

.dce-source-note {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    padding: 14px 18px;
    color: #fff;
    background: var(--dce-red);
    font-size: 13px;
}

.dce-section {
    margin-top: 22px;
    padding: clamp(20px, 4vw, 34px);
    border: 1px solid var(--dce-line);
    background: #fff;
}

.dce-profile .dce-section p,
.dce-profile .dce-section dt,
.dce-profile .dce-section dd,
.dce-profile .dce-section td {
    font-family: inherit !important;
}

.dce-section h2 {
    margin: 0 0 20px;
    font-size: clamp(23px, 3vw, 32px);
}

.dce-section-title-row h2 { margin: 0; }
.dce-section-title-row strong { font-size: 22px; color: var(--dce-red); }

.dce-facts {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 30px;
    margin: 0;
}

.dce-facts div {
    display: grid;
    grid-template-columns: minmax(120px, .8fr) 1.2fr;
    gap: 14px;
    padding: 13px 0;
    border-bottom: 1px solid var(--dce-line);
}

.dce-facts dt { color: var(--dce-muted); font-weight: 700; }
.dce-facts dd { margin: 0; font-weight: 700; }

.dce-table-wrap { overflow-x: auto; }
.dce-table { width: 100%; border-collapse: collapse; }
.dce-table th, .dce-table td { padding: 12px; border-bottom: 1px solid var(--dce-line); text-align: left; vertical-align: top; }
.dce-table th { color: #fff; background: var(--dce-ink); }
.dce-table td:last-child { white-space: nowrap; font-weight: 800; }

.dce-disclaimer,
.dce-profile-footer {
    color: var(--dce-muted);
    font-size: 13px;
}

.dce-socials {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.dce-socials a {
    display: block;
    padding: 9px 12px;
    border: 1px solid var(--dce-line);
    color: var(--dce-red);
    text-decoration: none;
}

.dce-profile-footer {
    padding: 22px 0;
}

.dce-profile-footer a { color: var(--dce-red); font-weight: 800; }

@media (max-width: 960px) {
    .dce-central .dce-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .dce-central .dce-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .dce-central .dce-filters label:first-child { grid-column: 1 / -1; }
    .dce-central .dce-filters button { width: 100%; }
}

@media (max-width: 700px) {
    .dce-central,
    .dce-profile-wrap { width: min(calc(100% - 20px), 1180px); margin-top: 18px; }
    .dce-central .dce-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    .dce-central .dce-filters { display: grid; grid-template-columns: minmax(0, 1fr); padding: 14px; overflow: hidden; }
    .dce-central .dce-filters label:first-child { grid-column: auto; }
    .dce-central .dce-filters input,
    .dce-central .dce-filters select,
    .dce-central .dce-filters button { display: block; width: 100% !important; min-width: 0 !important; }
    .dce-profile-header { grid-template-columns: 110px minmax(0, 1fr); gap: 16px; align-items: start; }
    .dce-profile-photo { font-size: 28px; }
    .dce-profile-intro h1 { font-size: 30px; }
    .dce-source-note { flex-direction: column; }
    .dce-facts { grid-template-columns: 1fr; }
    .dce-results-head { align-items: flex-start; flex-direction: column; }
    .dce-results-actions { width: 100%; justify-content: flex-start; align-items: flex-start; flex-direction: column; }
    .dce-reset-results { width: 100%; box-sizing: border-box; }
}

@media (max-width: 430px) {
    .dce-central .dce-grid { grid-template-columns: minmax(0, 1fr); }
    .dce-central .dce-card-link { display: grid; grid-template-columns: minmax(112px, 36%) minmax(0, 1fr); }
    .dce-central .dce-avatar { aspect-ratio: auto; min-height: 100%; font-size: 26px; }
    .dce-central .dce-card h2 { font-size: 18px; overflow-wrap: anywhere; }
    .dce-profile-header { grid-template-columns: 1fr; }
    .dce-profile-photo { width: 150px; }
    .dce-section-title-row { align-items: flex-start; flex-direction: column; }
}
