/* Candidate identity is expressed through soft surfaces, always with names. */
[data-person=flavio],[data-person=gaspar]{--person-surface:#edf3f7;--person-edge:#cad7e0}
[data-person=lula],[data-person=alckmin]{--person-surface:#f8eee9;--person-edge:#e5d0c5}
.proposal[data-person],.analysis-card[data-person],.comparison-differences [data-person],.proximity-result[data-person],.faq-plan-pair [data-person],.download-plan[data-person]{background:var(--person-surface);border:1px solid var(--person-edge)}
.proposal[data-person] .proposal-header,.proposal[data-person] .proposal-body{background:transparent}
.proposal[data-person] .monogram{background:var(--person-accent);color:#fff}
.history-view-controls{display:grid;grid-template-columns:minmax(180px,280px) 1fr;gap:24px;align-items:center;margin:20px 0}
.history-view-controls label{display:flex;flex-direction:column;gap:8px;font-weight:700;font-size:14px}
.history-view-controls select{min-height:48px;padding:10px 32px 10px 12px;border:1px solid #a5b2a9;border-radius:8px;background:white;color:var(--ink);font:inherit}
#history-view-note{font-size:13px;line-height:1.7;color:var(--muted);margin:0}
.history-profiles{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:24px;margin:24px 0}
.history-profile{display:flex;align-items:center;gap:14px;padding:16px;background:var(--person-surface);border-radius:10px;min-width:0}
.profile-initials{display:grid;place-items:center;flex:0 0 40px;width:40px;height:40px;border-radius:50%;background:var(--person-accent);color:white;font-size:13px;font-weight:700}
.history-profile strong{display:block;font-size:15px;line-height:1.5}.history-profile span:not(.profile-initials){display:block;font-size:13px;line-height:1.6;margin:4px 0}
.history-profile a{display:inline-block;font-size:12px;line-height:1.5;min-height:28px;text-underline-offset:3px}
.history-year{border:0;border-top:1px solid var(--line);padding:0;margin:0}.history-year>summary{padding:18px 0;min-height:70px}
.history-year-heading>strong{font-size:21px;background:none;padding:0;color:var(--ink)}
.history-year-heading>span{font-size:12px}.history-year[open]>.history-row{padding:8px 0 30px;gap:24px}
.history-lane{position:relative;min-width:0;padding-left:20px;border-left:2px solid var(--person-edge)}
.history-lane-name{font-size:13px;font-weight:700;margin:0 0 14px;color:var(--person-accent)}
.history-event{position:relative;background:transparent;border:0;border-radius:0;padding:0;margin:0 0 4px;overflow:visible}
.history-event:before{content:'';position:absolute;width:10px;height:10px;border-radius:50%;background:var(--person-accent);border:3px solid white;left:-29px;top:22px;box-sizing:content-box}
.history-record{border:0!important;margin:0!important}.history-record>summary{display:flex;align-items:flex-start;gap:12px;min-height:64px;list-style:none;padding:14px 8px 16px 0;border-bottom:1px solid var(--line)}
.history-record>summary::-webkit-details-marker{display:none}.history-record>summary:hover .record-heading h4{text-decoration:underline;text-underline-offset:3px}
.record-heading{flex:1;min-width:0}.record-heading .history-person{display:none}.record-heading .history-date{display:block;font-size:12px;line-height:1.6;margin:0 0 5px;color:var(--muted)}
.record-heading h4{font-size:16px;line-height:1.5;margin:0 0 5px;color:var(--ink)}.record-type{font-size:11px;line-height:1.5;color:var(--muted)}
.history-record .event-symbol{width:28px;height:28px;flex:0 0 28px;background:var(--person-surface);border-radius:6px;color:var(--person-accent);display:flex;align-items:center;justify-content:center}
.history-record .event-symbol .ui-icon{width:17px;height:17px;flex-basis:17px}.history-record>summary>.expand-icon{margin-top:4px;font-size:20px;flex:0 0 24px}
.history-record[open]>summary>.expand-icon{transform:rotate(45deg)}
.history-record>.history-detail{padding:10px 12px 20px 40px;font-size:14px;line-height:1.75}.history-detail>p{margin:10px 0 18px}.history-detail dt{color:var(--ink)}
.history-gap{border:0;padding:18px 0;font-size:12px;margin:0;color:var(--muted)}.history-gap strong{color:var(--person-accent)}
.history-record>summary:focus-visible,.history-view-controls select:focus-visible{outline:3px solid #638726;outline-offset:4px;border-radius:4px}
.large-text .record-heading h4{font-size:21px}.large-text .record-heading .history-date,.large-text .record-type,.large-text .history-profile a{font-size:16px}
.large-text .history-record>.history-detail{font-size:18px}
@media(max-width:760px){
 .history-view-controls{grid-template-columns:1fr;gap:12px;margin:18px 0}.history-view-controls select{font-size:16px}
 .history-profiles{gap:10px;margin:18px 0}.history-profile{display:block;padding:12px}.profile-initials{margin-bottom:8px;width:32px;height:32px;font-size:11px}.history-profile strong{font-size:13px}.history-profile a{font-size:11px;min-height:44px;padding-top:6px}.history-profile span:not(.profile-initials){font-size:12px}
 .history-year>summary{padding:16px 0;min-height:72px}.history-year-heading>strong{font-size:21px;margin:0 0 4px}.history-year-heading>span{font-size:12px}
 .history-year[open]>.history-row{grid-template-columns:1fr;padding:4px 0 26px;gap:22px}
 .history-lane{padding-left:18px;margin-left:6px}.history-event:before{left:-27px}
 .history-lane-name{font-size:14px;margin-bottom:6px}.history-record>summary{padding:14px 0;gap:10px}.record-heading h4{font-size:16px!important;line-height:1.5}.record-heading .history-date{font-size:12px}.history-record>.history-detail{padding:8px 0 18px;font-size:15px}
 .large-text .record-heading h4{font-size:20px!important}.large-text .history-profiles{grid-template-columns:1fr}.large-text .history-profile{display:flex}.large-text .history-profile strong{font-size:17px}
}
@media print{.history-view-controls,.history-actions{display:none}.history-record>.history-detail{display:block}.history-event{break-inside:avoid}}
