/* Cívica · Meu Histórico. Camada exclusiva, sem fontes ou CDN externos. */
:root { --mh-ink:#18283b; --mh-muted:#526277; --mh-brand:#1a3a7c; --mh-brand-dark:#102b63; --mh-line:#cbd5e1; --mh-focus:#135fba; --mh-paper:#fff; --mh-soft:#f4f7fb; --mh-danger:#9c3d2b; }
html[data-tema="escuro"] { --mh-ink:#f4f7fb; --mh-muted:#bfccda; --mh-brand:#8fbdf5; --mh-brand-dark:#102b63; --mh-line:#3b526f; --mh-paper:#101c30; --mh-soft:#17263b; --mh-focus:#9dccff; }
html[data-tema="escuro"] .mh-topo { background:#102b63; }
html[data-tema="escuro"] .mh-chip[aria-pressed="true"] { background:#102b63;border-color:#102b63;color:#fff; }
html[data-tema="escuro"] .mh-chip:hover,html[data-tema="escuro"] .mh-chip:active,html[data-tema="escuro"] .mh-comp:hover:not(:disabled),html[data-tema="escuro"] .mh-comp:active:not(:disabled) { background:#102b63;border-color:#102b63;color:#fff; }
html[data-tema="escuro"] .marca-nome small { color:#d7e2f2; }
body { font-family:"Segoe UI",Arial,sans-serif; }
.sr-only { position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0; }
.topo-in,.faixa-in,#mh-pagina { max-width:1280px; }
#mh-pagina { border-radius:8px; border-color:var(--mh-line); box-shadow:0 2px 4px rgba(24,40,59,.05); }
.mh-topo { background:var(--mh-brand); padding:30px 4%; }
.mh-topo h1,.mh-ano { font-family:"Segoe UI",Arial,sans-serif; font-weight:700; letter-spacing:-.4px; }
.mh-topo p { color:#fff; max-width:64ch; }
.mh-corpo { max-width:1000px; margin:auto; }
.mh-chip,.mh-comp,.hdr-acao,#btn-tema,#hdr-conta,.menu-item,.toast .t-x { min-width:44px;min-height:44px; }
a[href] { min-width:44px;min-height:44px;display:inline-flex;align-items:center; }
.marca,.nav-link,.faixa-in a { min-height:44px; }
.mh-chip { border-color:var(--mh-line); border-radius:8px; background:var(--mh-paper); color:var(--mh-brand); }
.mh-chip:hover,.mh-chip:active { color:#fff; background:var(--mh-brand-dark); border-color:var(--mh-brand-dark); }
.mh-chip[aria-pressed="true"] { background:var(--mh-brand);border-color:var(--mh-brand);color:#fff; }
.mh-comp { border-color:var(--mh-brand); border-radius:8px; background:var(--mh-paper); color:var(--mh-brand); }
.mh-comp:hover:not(:disabled),.mh-comp:active:not(:disabled) { background:var(--mh-brand-dark);border-color:var(--mh-brand-dark);color:#fff; }
.mh-comp:disabled { opacity:1;background:#536c9c;border-color:#536c9c;color:#fff;cursor:wait; }
.mh-item { padding:0 0 24px; }
.mh-item::before { border-color:var(--mh-muted); }
.mh-item[data-autor="voce"]::before { border-color:var(--mh-brand); }
.mh-item[data-autor="secretaria"]::before { border-color:#1a6b3c; }
.mh-item .tt,.mh-ano,.mh-vazio b,#mh-fora h2 { color:var(--mh-ink); }
.mh-item .dt,.mh-item .qd,#mh-fora>p,#mh-fora li span { color:var(--mh-muted); }
.mh-quem { border-radius:6px; }
.mh-ref { color:var(--mh-muted);background:var(--mh-soft);border-color:var(--mh-line); }
#mh-fora { border-color:var(--mh-line);background:var(--mh-soft);border-radius:8px; }
.hdr-acao:hover,#btn-tema:hover,#hdr-conta:hover,.menu-item:hover { border-color:var(--mh-brand);background:var(--chipm-bg);color:var(--mh-brand); }
button:focus-visible,a:focus-visible,[role="menuitem"]:focus-visible { outline:3px solid var(--mh-focus)!important;outline-offset:3px;position:relative;z-index:500; }
@media(max-width:640px){#mh-pagina{margin:0;border-radius:0;border-left:0;border-right:0}.mh-topo{padding:24px 4%}.mh-corpo{padding-inline:4%}.mh-filtros{gap:8px}.mh-chip{flex:1 1 calc(50% - 8px);justify-content:center}.mh-comp{width:100%;justify-content:center}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
