/* ===== Acessibilidade: painel e modos (classes a11y-* no <html>) ===== */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link {
  position: fixed; left: 12px; top: -80px; z-index: 100; padding: 12px 18px; border-radius: 10px;
  background: var(--green); color: #0b1018; font-weight: 800; text-decoration: none; transition: top 0.15s;
}
.skip-link:focus { top: 12px; }
main:focus { outline: none; }

.a11y-button {
  display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--border); background: transparent; color: var(--text); font: 600 13px 'Plus Jakarta Sans', sans-serif;
}
.a11y-button:hover { border-color: var(--green); }
.a11y-button.is-on { border-color: var(--green); box-shadow: inset 0 0 0 1px var(--green); }
.a11y-backdrop { position: fixed; inset: 0; z-index: 70; background: #0007; }
.a11y-panel {
  position: fixed; z-index: 71; top: 0; right: 0; bottom: 0; width: min(380px, 100%); overflow-y: auto;
  padding: calc(18px + env(safe-area-inset-top, 0px)) 20px calc(24px + env(safe-area-inset-bottom, 0px));
  background: var(--panel); color: var(--text); border-left: 1px solid var(--border); box-shadow: -30px 0 60px -30px #000c;
  display: grid; gap: 18px; align-content: start;
}
.a11y-head { display: flex; justify-content: space-between; align-items: center; }
.a11y-head h2 { margin: 0; font-size: 22px; }
.a11y-close { width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--border); background: transparent; color: var(--text); font-size: 16px; cursor: pointer; }
.a11y-group { border: 0; margin: 0; padding: 0; display: grid; gap: 10px; }
.a11y-group legend { font-size: 12px; font-weight: 800; letter-spacing: 1.2px; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.a11y-group small { color: var(--muted); font-size: 12.5px; line-height: 1.45; }
.a11y-sizes { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.a11y-sizes button { height: 46px; border-radius: 10px; border: 1px solid var(--border); background: transparent; color: var(--text); font-weight: 800; cursor: pointer; }
.a11y-sizes button.active { background: var(--green); border-color: var(--green); color: #0b1018; }
.a11y-toggle { position: relative; display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: center; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--border); cursor: pointer; }
.a11y-toggle span { display: grid; gap: 2px; }
.a11y-toggle strong { font-size: 14.5px; }
.a11y-toggle input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.a11y-toggle i { width: 44px; height: 26px; border-radius: 13px; background: var(--border); position: relative; transition: background 0.2s; }
.a11y-toggle i::after { content: ''; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: transform 0.2s; }
.a11y-toggle input:checked + i { background: var(--green); }
.a11y-toggle input:checked + i::after { transform: translateX(18px); }
.a11y-toggle:has(input:focus-visible) { outline: 2px solid var(--green); outline-offset: 2px; }
.a11y-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.a11y-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 13.5px; }
.a11y-foot a { color: var(--green); }
.a11y-shortcut { color: var(--muted); font-size: 12px; }
kbd { font: 700 12px 'IBM Plex Mono', ui-monospace, monospace; padding: 2px 6px; border-radius: 6px; border: 1px solid var(--border); background: #ffffff0d; }
@media (max-width: 760px) { .a11y-button span { display: none; } .a11y-button { padding: 9px; } }

/* Texto maior: amplia o conteúdo principal inteiro (textos, gráficos e botões) */
html.a11y-text-1 main { zoom: 1.12; }
html.a11y-text-2 main { zoom: 1.25; }
html.a11y-text-3 main { zoom: 1.4; }
html.a11y-text-1 .nav span, html.a11y-text-2 .nav span, html.a11y-text-3 .nav span { font-size: 16px; }

/* Fonte de leitura fácil */
html.a11y-readable body, html.a11y-readable button, html.a11y-readable input, html.a11y-readable select,
html.a11y-readable :is(h1, h2, h3, h4, p, li, span, strong, small, a, td, th, label, dd, dt) {
  font-family: 'Atkinson Hyperlegible', 'Verdana', sans-serif !important;
}

/* Espaçamento */
html.a11y-spacing :is(p, li, dd, td, .lead, small, label) { letter-spacing: 0.05em !important; word-spacing: 0.14em !important; line-height: 1.9 !important; }
html.a11y-spacing :is(h1, h2, h3) { letter-spacing: 0.01em !important; line-height: 1.25 !important; }

/* Destacar links */
html.a11y-links a { text-decoration: underline !important; text-decoration-thickness: 2px !important; text-underline-offset: 3px; }
html.a11y-links :is(a, button):hover { outline: 2px dashed var(--green); outline-offset: 2px; }

/* Pausar animações */
html.a11y-motion *, html.a11y-motion *::before, html.a11y-motion *::after {
  animation: none !important; transition: none !important; scroll-behavior: auto !important;
}
html.a11y-motion .reveal { opacity: 1 !important; transform: none !important; }
html.a11y-motion .hx-ticker-track { overflow-x: auto; }

/* Cursor grande */
html.a11y-cursor, html.a11y-cursor * {
  cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='44' height='44' viewBox='0 0 44 44'%3E%3Cpath d='M6 4l30 16-13 3-6 13z' fill='black' stroke='white' stroke-width='3' stroke-linejoin='round'/%3E%3C/svg%3E") 6 4, auto !important;
}

/* Alto contraste: preto, branco e amarelo, sem transparências nem degradês */
html.a11y-contrast {
  --bg: #000; --panel: #000; --panel-2: #000; --border: #fff; --text: #fff; --muted: #fff; --green: #ffe14d;
  color-scheme: dark;
}
html.a11y-contrast body { background: #000 !important; color: #fff !important; }
html.a11y-contrast body::before, html.a11y-contrast .page-hero::before, html.a11y-contrast .hx::after, html.a11y-contrast .hx-inner::before { display: none !important; }
html.a11y-contrast :is(aside, main > header, .panel, .chart-card, .poll-card, .cert-card, .tv-event, .video-card, .person-card, .governor-card,
  .sitemap-item, .shortcut, .hx-stat, .hx-action, .cmp-list li, .metrics article, .indicator, .disclaimer-bar, .consent, .a11y-panel,
  .a11y-toggle, .sc-option, .cmp-theme-col, .poll-warning, .college, .cf-suppliers li, .home-hero, .hx, .countdown div) {
  background: #000 !important; border: 2px solid #fff !important; box-shadow: none !important; backdrop-filter: none !important;
}
html.a11y-contrast :is(p, li, span, small, dd, dt, td, th, label, legend, figcaption, strong, b, em, h1, h2, h3, h4, .muted, .page-note, .lead, .eyebrow) {
  color: #fff !important; text-shadow: none !important;
}
html.a11y-contrast :is(h1 em, .hx-title em) { background: none !important; -webkit-text-fill-color: #ffe14d !important; color: #ffe14d !important; }
html.a11y-contrast a, html.a11y-contrast a :is(span, strong, small, b) { color: #ffe14d !important; }
html.a11y-contrast a { text-decoration: underline !important; }
html.a11y-contrast :is(.button, button) { border: 2px solid #fff !important; background: #000 !important; color: #fff !important; }
html.a11y-contrast :is(.button.primary, .a11y-sizes button.active, .header-cta) { background: #ffe14d !important; color: #000 !important; border-color: #ffe14d !important; }
html.a11y-contrast :is(.button.primary, .header-cta) * { color: #000 !important; }
html.a11y-contrast .nav.active { background: #ffe14d !important; }
html.a11y-contrast .nav.active :is(span, i) { color: #000 !important; }
html.a11y-contrast .hx-ticker { background: #000 !important; border-bottom: 2px solid #fff; }
html.a11y-contrast :focus-visible { outline: 3px solid #ffe14d !important; outline-offset: 3px; }
html.a11y-contrast .hx-photo { opacity: 0.35 !important; }
.a11y-panel[hidden] { display: none !important; }
