/* HAVA Complaint Center - styled to match the Hand Count Road Show Arsenal
   (palette and type from arsenal.handcountroadshow.org/style.css; navy and gold lead). */
:root{--navy:#0b1f3a;--navy2:#13294b;--red:#b22234;--gold:#c9a227;--gold-ink:#7a5c00;--ink:#1b2430;--muted:#5b6b80;--bg:#f4f6f9;--card:#fff;--line:#e2e7ee;--ease:cubic-bezier(.2,.8,.2,1);
  --sans:Inter,system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif;--serif:"Source Serif 4",Georgia,"Times New Roman",serif}
*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{margin:0;font-family:var(--sans);font-size:16px;line-height:1.6;color:var(--ink);background:var(--bg);overflow-wrap:anywhere}
a{color:var(--navy);text-decoration:underline;text-underline-offset:2px;text-decoration-color:var(--gold)}
a:hover{color:var(--red)}
:focus-visible{outline:3px solid var(--gold);outline-offset:2px}
.wrap{max-width:1100px;margin:0 auto;padding:0 20px}
.skip{position:absolute;left:-9999px;top:0;background:#fff;padding:8px 12px;z-index:10}
.skip:focus{left:8px;top:8px}
[hidden]{display:none!important}

/* Preview banner */
.preview-banner{background:var(--gold);color:var(--navy);text-align:center;font-weight:700;padding:6px 12px;font-size:13px;letter-spacing:.3px}

/* Header: Arsenal brand block on a navy band with a gold rule */
.site-header{background:linear-gradient(180deg,var(--navy2),var(--navy));color:#fff;padding:22px 0 26px;border-bottom:3px solid var(--gold)}
.brand{display:flex;align-items:center;gap:10px;margin-bottom:18px}
.seal{flex:none;width:34px;height:34px;border-radius:50%;display:grid;place-items:center;background:var(--red);border:2px solid var(--gold);color:#fff;font-size:15px}
.brand-title{font-family:var(--serif);font-weight:700;font-size:18px;letter-spacing:.3px;color:#fff}
.brand-sub{font-size:11px;letter-spacing:2px;text-transform:uppercase;color:#c3cede}
.group-label{font-size:11px;letter-spacing:1.6px;text-transform:uppercase;color:var(--gold);margin:0 0 4px;font-weight:700}
h1{font-family:var(--serif);font-weight:700;margin:0 0 6px;font-size:2.4rem;line-height:1.15;color:#fff}
.subtitle{margin:0 0 10px;font-size:1.1rem;font-weight:600;color:var(--gold)}
.lede{margin:0;max-width:60em;color:#e3e9f3}

/* Intro callout + table of contents */
.intro{padding-top:22px}
.callout{background:var(--card);border:1px solid var(--line);border-left:5px solid var(--gold);border-radius:12px;padding:16px 20px;margin:0 0 16px;box-shadow:0 1px 3px rgba(11,31,58,.05)}
.callout p{margin:0 0 8px}.callout p:last-child{margin-bottom:0}
.callout-title{font-family:var(--serif);margin:0 0 6px;font-size:1.2rem;color:var(--navy)}
.callout.neutral{border-left-color:var(--navy)}
.callout.neutral h3{margin-top:0}
.toc ul{list-style:none;padding:0;margin:0;display:flex;flex-wrap:wrap;gap:8px}
.toc a{display:inline-block;padding:7px 12px;border:1px solid var(--line);border-radius:8px;background:#fff;text-decoration:none;color:var(--navy);font-size:14px;font-weight:600;transition:border-color .2s,box-shadow .2s,transform .2s var(--ease)}
.toc a:hover{border-color:#b9c6d8;box-shadow:0 6px 18px rgba(11,31,58,.08);transform:translateY(-1px);color:var(--navy)}

/* Sections */
main section{padding:30px 0 10px;border-bottom:1px solid var(--line)}
main section:last-child{border-bottom:0}
h2{font-family:var(--serif);font-size:1.75rem;margin:0 0 12px;color:var(--navy);line-height:1.25}
h3{font-size:1.05rem;margin:18px 0 8px;color:var(--navy);line-height:1.35}
.note{background:#fffaf0;border:1px solid #ecd9a0;border-left:5px solid var(--gold);padding:10px 14px;border-radius:12px}
.cards{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,320px),1fr));gap:14px;margin:16px 0}
.card{border:1px solid var(--line);border-radius:12px;padding:14px 16px;background:var(--card);transition:border-color .2s,box-shadow .2s}
.card:hover{border-color:#b9c6d8;box-shadow:0 6px 18px rgba(11,31,58,.08)}
.card h3{margin-top:0}
.card p{margin:0 0 8px}.card p:last-child{margin-bottom:0}
.card ul{margin:0;padding-left:20px}
.card.check{box-shadow:inset 4px 0 0 var(--gold)}
.cite{display:block;font-size:.8rem;font-weight:600;color:var(--muted);letter-spacing:.2px}
.rights li,.evidence li,.steps li{margin-bottom:8px}
.disclaimer{background:#fff8e6;border:1px solid #f0d58c;border-left:5px solid var(--gold);padding:10px 14px;border-radius:12px}

/* Directory legend + search */
.legend{background:var(--card);border:1px solid var(--line);border-radius:12px;padding:12px 16px;margin:14px 0}
.legend-title{margin:0 0 6px;font-size:11px;letter-spacing:1.6px;text-transform:uppercase;color:var(--gold-ink);font-weight:700}
.legend ul{list-style:none;margin:0;padding:0}
.legend li{display:flex;align-items:flex-start;gap:10px;margin-bottom:6px;font-size:.95rem}
.legend li:last-child{margin-bottom:0}
.lg{flex:none;width:18px;height:18px;border-radius:5px;margin-top:3px}
.lg-gap{background:#fffaf0;border:1px solid #ecd9a0;box-shadow:inset 3px 0 0 var(--gold)}
.lg-conflict{background:#fff5f5;border:2px solid var(--red);box-shadow:0 0 6px 1px rgba(178,34,52,.55)}
.red{color:var(--red)}
.search{margin:16px 0}
.search label{display:block;font-weight:700;margin-bottom:4px;color:var(--navy)}
.search input{width:100%;max-width:480px;font:inherit;padding:10px 12px;border:1px solid #b9c6d8;border-radius:8px;background:#fff}
.search input:focus-visible{border-color:var(--navy)}
.count{margin:6px 0 0;color:var(--muted);font-size:.9rem}

/* State rows (Arsenal tool-card look) */
.state-list{list-style:none;padding:0;margin:0 0 16px}
.state-list>li{border:1px solid var(--line);border-radius:12px;margin-bottom:10px;background:var(--card);overflow:hidden;transition:border-color .2s,box-shadow .2s}
.state-list>li:hover{border-color:#b9c6d8;box-shadow:0 6px 18px rgba(11,31,58,.08)}
.state-list>li.open{border-color:var(--navy);box-shadow:inset 4px 0 0 var(--gold)}
.state-toggle{width:100%;display:flex;flex-wrap:wrap;align-items:center;gap:8px 12px;padding:12px 16px;background:none;border:0;font:inherit;font-size:1rem;font-weight:700;color:var(--navy);text-align:left;cursor:pointer}
.state-toggle .chev{flex:none;transition:transform .15s;color:var(--gold-ink)}
.state-toggle[aria-expanded="true"] .chev{transform:rotate(90deg)}
.state-toggle .sname{flex:1 1 auto}
.badges{display:flex;flex-wrap:wrap;gap:6px;margin-left:auto}
.badge{flex:none;font-size:.75rem;font-weight:700;padding:2px 10px;border-radius:999px;letter-spacing:.3px}
.badge.done{background:var(--navy);color:#fff;border:1.5px solid var(--gold)}
.badge.pending{background:#eef1f5;color:#3b4a60}
.count-badge{flex:none;display:inline-block;font-size:.75rem;font-weight:700;padding:2px 10px;border-radius:999px;background:var(--red);color:#fff;border:1.5px solid #fff;box-shadow:0 0 0 1px var(--red);white-space:nowrap}
.state-body{padding:4px 16px 16px;border-top:1px solid var(--line)}
.state-body h4{margin:16px 0 6px;font-size:11px;letter-spacing:1.6px;text-transform:uppercase;color:var(--gold-ink)}
.state-body ul{margin:0;padding-left:20px}
.state-body li{margin-bottom:6px}
.gaps{padding-left:0!important}
.gaps li{background:#fffaf0;border:1px solid #ecd9a0;box-shadow:inset 4px 0 0 var(--gold);border-radius:8px;padding:8px 12px;list-style:none;margin-bottom:8px}
.gaps .src,.conflict .src{display:block;font-size:.85rem;color:var(--muted)}
.verified{font-size:.88rem;color:var(--muted)}

/* Potential conflict with HAVA */
.conflicts{list-style:none;padding:0!important;margin:0}
.conflict{list-style:none;border:2px solid var(--red);border-radius:12px;background:#fff;padding:12px 14px 14px;margin:6px 0 16px!important;animation:conflictGlow 2s ease-in-out infinite}
@keyframes conflictGlow{0%,100%{box-shadow:0 0 0 0 rgba(178,34,52,.25),0 0 6px 1px rgba(178,34,52,.35)}50%{box-shadow:0 0 0 4px rgba(178,34,52,.18),0 0 18px 4px rgba(178,34,52,.55)}}
.conflict-label{display:inline-block;background:var(--red);color:#fff;font-size:.75rem;font-weight:700;letter-spacing:.8px;text-transform:uppercase;padding:3px 10px;border-radius:999px;margin:0 8px 6px 0}
.conflict-topic{font-weight:700;color:var(--navy)}
.cmp{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-top:8px}
.cmp>div{border:1px solid var(--line);border-radius:8px;padding:8px 10px;background:#fbfcfe}
.cmp h5{margin:0 0 4px;font-size:11px;letter-spacing:1.4px;text-transform:uppercase;color:var(--navy)}
.cmp .c-state h5,.cmp .c-ruling h5{color:var(--red)}
.cmp blockquote{margin:0;font-size:.95rem}
.conflict-note{margin:10px 0 0;font-weight:600;color:var(--red);font-size:.92rem}
@media (prefers-reduced-motion:reduce){.conflict{animation:none;box-shadow:0 0 0 3px rgba(178,34,52,.2),0 0 14px 3px rgba(178,34,52,.45)}.toc a,.card,.state-list>li,.state-toggle .chev{transition:none}}

/* Sources */
.sources li{margin-bottom:6px}

/* Footer: Arsenal panel-bottom pattern */
.site-footer{background:var(--card);border-top:2px solid var(--gold);box-shadow:0 -8px 18px rgba(11,31,58,.06);padding:18px 0 6px;margin-top:28px}
.home-link{display:flex;align-items:center;justify-content:center;gap:10px;max-width:420px;margin:0 auto;padding:14px 16px;border-radius:12px;background:linear-gradient(180deg,var(--navy2),var(--navy));color:#fff;border:2px solid var(--gold);text-decoration:none;font-weight:700;font-size:14px;line-height:1.25;text-align:center;transition:background .2s,color .2s,transform .2s var(--ease),box-shadow .2s}
.home-link svg{flex:none;width:20px;height:20px;stroke:var(--gold);fill:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;transition:transform .2s var(--ease)}
.home-link:hover{background:var(--gold);color:var(--navy);transform:translateY(-1px);box-shadow:0 6px 16px rgba(201,162,39,.4)}
.home-link:hover svg{stroke:var(--navy);transform:translateX(-3px)}
.home-link:focus-visible{outline:3px solid var(--red);outline-offset:2px}
.foot-note{margin:12px 0 0;text-align:center;font-size:13px;color:var(--muted)}
.panel-foot{padding:6px 8px 12px;margin:0;font-size:12px;color:var(--muted);text-align:center}
.panel-foot a{color:var(--navy)}

@media (max-width:720px){
  body{font-size:15.5px}
  h1{font-size:1.85rem}
  h2{font-size:1.4rem}
  .wrap{padding:0 14px}
  .toc a{font-size:13px;padding:6px 9px}
  .cmp{grid-template-columns:1fr}
  .badges{margin-left:24px}
  .home-link{padding:13px 12px;font-size:13px}
}

/* Link status notes (generated data) */
.lnote{display:inline-block;margin-left:6px;font-size:.78rem;font-weight:700;padding:1px 8px;border-radius:999px;vertical-align:middle}
.lnote.unverified{background:#fff4e0;color:#7a4b00;border:1px solid #f0c98a}
.lnote.broken{background:#eef1f5;color:#3b4a60;border:1px solid #c7cfdc}
.rev{color:var(--muted);font-size:.9rem}
.alt{display:block;font-size:.9rem;margin-top:2px}
.lk code{font-size:.85rem;word-break:break-all}
.conflict-topic{margin:0 0 4px;font-weight:700;color:var(--navy)}
.r-status{margin:0;font-weight:700}
.r-part{margin:6px 0 0;font-size:.92rem}

/* Case history timeline (section 2) */
.case-history h4{font-size:1.05rem;margin:4px 0 8px;color:var(--navy)}
.timeline{margin:0 0 10px;padding-left:22px}
.timeline li{margin-bottom:8px}
.timeline li::marker{color:var(--gold-ink);font-weight:700}
.case-history{margin:0 0 14px;padding-bottom:12px;border-bottom:1px solid var(--line)}

/* National picture (section 5) */
.nat-stats{display:grid;grid-template-columns:repeat(auto-fit,minmax(190px,1fr));gap:12px;margin:14px 0 22px}
.nat-stat{background:#fff;border:1px solid var(--line);border-top:4px solid var(--gold);border-radius:10px;padding:12px 14px}
.nat-stat:first-child{border-top-color:var(--red)}
.nat-stat p{margin:0}
.nat-stat .num{font-family:"Source Serif 4",Georgia,serif;font-size:1.9rem;font-weight:700;color:var(--navy);line-height:1.1}
.nat-stat:first-child .num{color:var(--red)}
.nat-stat .lbl{font-weight:600;margin-top:2px}
.nat-stat .sub{font-size:.85rem;color:#4a5568;margin-top:4px;overflow-wrap:anywhere}
.nat-types{padding-left:26px;margin:0 0 22px}
.nat-types li{margin-bottom:12px}
.nat-types li::marker{color:var(--navy);font-weight:700}
.type-head{display:flex;flex-wrap:wrap;justify-content:space-between;gap:4px 12px}
.type-name{font-weight:600}
.type-count{font-weight:700;color:var(--red);white-space:nowrap}
.bar{height:8px;background:#e8ecf3;border-radius:999px;margin:4px 0;overflow:hidden}
.bar span{display:block;height:100%;background:var(--red);border-radius:999px}
.type-codes{margin:0;font-size:.85rem;color:#4a5568;overflow-wrap:anywhere}
.nat-controls{margin:8px 0 10px}
.nat-controls label{display:block;font-weight:600;margin-bottom:4px}
.nat-controls input{width:100%;max-width:420px;font:inherit;padding:9px 11px;border:2px solid var(--navy);border-radius:8px}
.table-wrap{max-width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch;border:1px solid var(--line);border-radius:10px;background:#fff;max-height:640px;overflow-y:auto}
.table-wrap:focus{outline:3px solid var(--gold);outline-offset:2px}
.nat-table{border-collapse:collapse;width:100%;min-width:900px;font-size:.88rem}
.nat-table th,.nat-table td{padding:7px 9px;border-bottom:1px solid var(--line);text-align:left;vertical-align:top}
.nat-table thead th{position:sticky;top:0;background:var(--navy);color:#fff;z-index:1;padding:0}
.nat-table thead th button{all:unset;box-sizing:border-box;display:block;width:100%;padding:8px 9px;cursor:pointer;font-weight:700;color:#fff}
.nat-table thead th button:focus-visible{outline:3px solid var(--gold);outline-offset:-3px}
.nat-table thead th button::after{content:" \2195";color:#9fb0cc;font-weight:400}
.nat-table thead th[aria-sort=ascending] button::after{content:" \25B2";color:var(--gold)}
.nat-table thead th[aria-sort=descending] button::after{content:" \25BC";color:var(--gold)}
.nat-table tbody th{font-weight:600;white-space:nowrap;position:sticky;left:0;background:#fff}
.nat-table tbody tr:nth-child(even) td,.nat-table tbody tr:nth-child(even) th{background:#f6f8fb}
.nat-table td.n{text-align:center;font-weight:700}
.nat-table td.hot{color:var(--red)}
/* Directory filters */
.dir-filters{border:1px solid var(--line);border-radius:10px;padding:8px 14px 10px;margin:0 0 14px;display:flex;flex-wrap:wrap;gap:6px 22px;background:#fff}
.dir-filters legend{font-weight:700;padding:0 6px;color:var(--navy)}
.dir-filters label{display:inline-flex;align-items:center;gap:8px;cursor:pointer;min-height:32px}
.dir-filters input{width:18px;height:18px;accent-color:var(--navy)}
@media (max-width:600px){.nat-stat .num{font-size:1.6rem}.nat-stats{grid-template-columns:1fr 1fr}}
@media (min-width:900px){.nat-stats{grid-template-columns:repeat(3,1fr)}}
.nat-table th,.nat-table td{overflow-wrap:normal;word-break:normal;hyphens:none}
.nat-table thead th button{white-space:normal;min-width:84px}

/* Plain-language summary (top of page) */
.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}
.plain{background:linear-gradient(180deg,var(--navy2),var(--navy));color:#fff;border:3px solid var(--gold);border-radius:14px;padding:20px 24px 18px;margin:0 0 18px;box-shadow:0 10px 26px rgba(11,31,58,.18)}
.plain-kicker{margin:0 0 2px;font-size:11px;letter-spacing:1.8px;text-transform:uppercase;color:var(--gold);font-weight:700}
.plain-title{font-family:var(--serif);color:#fff;font-size:1.7rem;margin:0 0 10px}
.plain-lead{font-size:1.12rem;line-height:1.6;margin:0 0 14px;color:#fff;max-width:62em}
.plain-list{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.plain-list>li{background:rgba(255,255,255,.06);border:1px solid rgba(201,162,39,.45);border-left:5px solid var(--gold);border-radius:10px;padding:12px 14px;color:#eef2f8;line-height:1.55}
.plain-q{display:block;font-weight:700;color:var(--gold);font-size:1.05rem;margin-bottom:4px}
.plain-list ul{margin:6px 0 0;padding-left:20px}
.plain-list ul li{margin-bottom:3px}
.plain-list ul li::marker{color:var(--gold)}
.plain a{color:#fff;text-decoration-color:var(--gold)}
.plain a:hover{color:var(--gold)}
.plain-jump{margin:14px 0 0;display:flex;flex-wrap:wrap;gap:10px}
.plain-btn{display:inline-flex;align-items:center;justify-content:center;min-height:42px;padding:9px 18px;border-radius:10px;background:var(--gold);color:var(--navy)!important;font:inherit;font-weight:700;text-decoration:none;border:2px solid var(--gold);cursor:pointer;transition:background .2s,color .2s,transform .2s var(--ease)}
.plain-btn:hover{background:#fff;color:var(--navy)!important;transform:translateY(-1px)}
.plain-btn.alt{background:transparent;color:#fff!important}
.plain-btn.alt:hover{background:var(--gold);color:var(--navy)!important}
@media (max-width:720px){.plain{padding:16px 14px 14px}.plain-title{font-size:1.4rem}.plain-lead{font-size:1.04rem}.plain-list{grid-template-columns:1fr}.plain-btn{flex:1 1 140px}}

/* Conflict types: display-mode toggle */
.types-head{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:8px 16px;margin:18px 0 4px}
.types-head h3{margin:0}
.seg{display:inline-flex;border:2px solid var(--navy);border-radius:10px;overflow:hidden;background:#fff}
.seg button{font:inherit;font-size:.9rem;font-weight:700;padding:7px 14px;border:0;background:#fff;color:var(--navy);cursor:pointer;min-height:38px}
.seg button+button{border-left:2px solid var(--navy)}
.seg button[aria-pressed="true"]{background:var(--navy);color:#fff;box-shadow:inset 0 -3px 0 var(--gold)}
.seg button:focus-visible{outline:3px solid var(--gold);outline-offset:-3px}

/* Matrix view */
.mx-key{display:inline-grid;place-items:center;width:18px;height:18px;border-radius:4px;background:#fde8ea;color:var(--red);font-weight:800;border:1px solid #f3b6bd;line-height:1}
.matrix-wrap{max-width:100%;overflow:auto;-webkit-overflow-scrolling:touch;border:1px solid var(--line);border-radius:10px;background:#fff;max-height:75vh;margin:0 0 22px}
.matrix-wrap:focus{outline:3px solid var(--gold);outline-offset:2px}
.matrix{border-collapse:separate;border-spacing:0;table-layout:fixed;width:100%;min-width:1030px;font-size:.8rem}
.matrix col.c-type{width:184px}
.matrix th,.matrix td{border-bottom:1px solid var(--line);border-right:1px solid #eef1f5;padding:0;text-align:center;vertical-align:middle}
.matrix thead th{position:sticky;top:0;z-index:2;background:var(--navy);color:#fff;height:34px}
.matrix thead th.corner{left:0;z-index:3;text-align:left;padding:6px 8px;font-weight:700}
.matrix thead th button{all:unset;box-sizing:border-box;display:block;width:100%;height:100%;padding:8px 0;cursor:pointer;font-weight:700;font-size:.72rem;letter-spacing:.2px;color:#fff}
.matrix thead th button:hover{color:var(--gold)}
.matrix thead th button:focus-visible{outline:3px solid var(--gold);outline-offset:-3px}
.matrix tbody th{position:sticky;left:0;z-index:1;background:#fff;text-align:left;padding:6px 8px;font-weight:600;line-height:1.3;font-size:.78rem;border-right:2px solid var(--line);overflow-wrap:normal;word-break:normal;hyphens:auto}
.matrix tbody th .mx-count{display:inline-block;margin-left:4px;font-weight:700;color:var(--red);white-space:nowrap}
.matrix tbody tr:nth-child(even) th,.matrix tbody tr:nth-child(even) td{background:#f6f8fb}
.matrix tbody tr:hover th,.matrix tbody tr:hover td{background:#fff8e1}
.matrix td.hit{background:#fde8ea!important}
.matrix td.hit button{all:unset;box-sizing:border-box;display:grid;place-items:center;width:100%;height:100%;min-height:30px;color:var(--red);font-weight:800;font-size:1rem;cursor:pointer}
.matrix td.hit button:hover{background:var(--red);color:#fff}
.matrix td.hit button:focus-visible{outline:3px solid var(--gold);outline-offset:-3px;background:var(--red);color:#fff}
.matrix tfoot th,.matrix tfoot td{position:sticky;bottom:0;background:#eef1f5;font-weight:700;color:var(--navy);padding:4px 0;border-top:2px solid var(--line);font-size:.72rem}
.matrix tfoot th{left:0;z-index:2;text-align:left;padding:4px 8px}
.matrix tfoot td.pos{color:var(--red)}
@media (max-width:720px){.matrix{min-width:1662px}.matrix col.c-type{width:132px}.matrix col.c-st{width:30px}.matrix tbody th{font-size:.72rem;padding:5px 6px}.matrix td.hit button{min-height:34px}}

/* Matrix detail dialog */
.mx-dialog{border:3px solid var(--gold);border-radius:14px;padding:0;width:min(980px,calc(100% - 24px));max-height:calc(100% - 32px);background:var(--bg);color:var(--ink);box-shadow:0 20px 60px rgba(11,31,58,.45)}
.mx-dialog::backdrop{background:rgba(11,31,58,.62)}
.mx-inner{padding:0 18px 16px}
.mx-head{position:sticky;top:0;z-index:2;display:flex;align-items:flex-start;justify-content:space-between;gap:12px;background:linear-gradient(180deg,var(--navy2),var(--navy));color:#fff;margin:0 -18px 12px;padding:12px 18px;border-bottom:3px solid var(--gold)}
.mx-kicker{margin:0;font-size:11px;letter-spacing:1.6px;text-transform:uppercase;color:var(--gold);font-weight:700}
.mx-title{margin:2px 0 0;font-family:var(--serif);font-size:1.3rem;color:#fff;line-height:1.3}
.mx-close{flex:none;width:40px;height:40px;border-radius:10px;border:2px solid var(--gold);background:transparent;color:#fff;font-size:1.6rem;line-height:1;cursor:pointer}
.mx-close:hover{background:var(--gold);color:var(--navy)}
.mx-body-note{margin:0 0 8px;color:var(--muted);font-size:.9rem}
.mx-foot{margin:6px 0 0}
.mx-foot .plain-btn{background:var(--navy);color:#fff!important;border-color:var(--navy)}
.mx-foot .plain-btn:hover{background:var(--gold);color:var(--navy)!important;border-color:var(--gold)}
.mx-dialog .conflicts{margin-top:8px}
.mx-dialog .conflict .src{display:block;font-size:.85rem;color:var(--muted)}
@media (max-width:720px){.mx-inner{padding:0 12px 12px}.mx-head{margin:0 -12px 10px;padding:10px 12px}.mx-title{font-size:1.1rem}}
/* Matrix header: rotated state codes so columns stay narrow */
.matrix thead th{height:44px;vertical-align:bottom}
.matrix thead th button{writing-mode:vertical-rl;transform:rotate(180deg);white-space:nowrap;padding:6px 0;text-align:left;display:flex;align-items:center;justify-content:center;font-size:.74rem;letter-spacing:.6px}
.matrix thead th.corner{vertical-align:bottom}
.matrix-wrap{max-height:85vh}
.matrix tfoot td{font-size:.7rem}

/* ===== HCRS shared theme (PROTOCOL v1): selector + dark mode ===== */
html{color-scheme:light}
/* Light / Dark / System selector (standalone only) */
.brand{flex-wrap:wrap}
.theme-switch{margin-left:auto;display:inline-flex;border:1.5px solid var(--gold);border-radius:9px;overflow:hidden}
.theme-switch button{font:inherit;font-size:12px;font-weight:700;letter-spacing:.3px;padding:5px 11px;min-height:30px;border:0;background:transparent;color:#fff;cursor:pointer}
.theme-switch button+button{border-left:1.5px solid var(--gold)}
.theme-switch button:hover{background:rgba(201,162,39,.18)}
.theme-switch button:focus-visible{outline:3px solid #fff;outline-offset:-3px}
html[data-theme-pref="light"] .theme-switch [data-theme-choice="light"],
html[data-theme-pref="dark"] .theme-switch [data-theme-choice="dark"],
html[data-theme-pref="system"] .theme-switch [data-theme-choice="system"]{background:var(--gold);color:var(--navy)}
.hcrs-embedded .theme-switch{display:none!important}
@media print{.theme-switch{display:none}}

/* Dark theme: navy and gold identity on a deep navy page */
html[data-theme="dark"]{color-scheme:dark;
  --bg:#08111f;--card:#101c30;--card2:#142339;--line:#2a3b57;--line2:#3a4f72;--ink:#e6ebf3;--muted:#a9b6ca;
  --head:#dce7f8;--link:#a8c8ff;--link-hover:#ffa3ad;--red-ink:#ff8d99;--gold-ink:#e3bf4a;
  --note-bg:#1e1a0e;--note-line:#5c4a17;--hit-bg:#3d1621;--hit-line:#7a2b39}
html[data-theme="dark"] body{background:var(--bg);color:var(--ink)}
:where(html[data-theme="dark"]) a{color:var(--link)}
:where(html[data-theme="dark"]) a:hover{color:var(--link-hover)}
html[data-theme="dark"] .skip{background:var(--card);color:var(--link)}
html[data-theme="dark"] .site-header{background:linear-gradient(180deg,#152d55,#0b1f3a)}
:where(html[data-theme="dark"]) h2,:where(html[data-theme="dark"]) h3,html[data-theme="dark"] .callout-title,html[data-theme="dark"] .case-history h4,html[data-theme="dark"] .conflict-topic,html[data-theme="dark"] .cmp h5{color:var(--head)}
html[data-theme="dark"] .plain-title{color:#fff}
html[data-theme="dark"] .callout,html[data-theme="dark"] .card,html[data-theme="dark"] .legend,html[data-theme="dark"] .state-list>li,html[data-theme="dark"] .nat-stat,html[data-theme="dark"] .table-wrap,html[data-theme="dark"] .dir-filters,html[data-theme="dark"] .matrix-wrap{background:var(--card);border-color:var(--line);box-shadow:none}
html[data-theme="dark"] .nat-stat{border-top-color:var(--gold)}
html[data-theme="dark"] .nat-stat:first-child{border-top-color:var(--red)}
html[data-theme="dark"] .callout{border-left-color:var(--gold)}
html[data-theme="dark"] .callout.neutral{border-left-color:var(--line2)}
html[data-theme="dark"] .card.check{box-shadow:inset 4px 0 0 var(--gold)}
html[data-theme="dark"] .card:hover,html[data-theme="dark"] .state-list>li:hover{border-color:var(--line2);box-shadow:0 6px 18px rgba(0,0,0,.35)}
html[data-theme="dark"] .state-list>li.open{border-color:var(--gold);box-shadow:inset 4px 0 0 var(--gold)}
html[data-theme="dark"] .plain{box-shadow:0 10px 26px rgba(0,0,0,.45)}
html[data-theme="dark"] .toc a{background:var(--card);border-color:var(--line);color:var(--head)}
html[data-theme="dark"] .toc a:hover{border-color:var(--gold);box-shadow:0 6px 18px rgba(0,0,0,.35);color:#fff}
html[data-theme="dark"] main section{border-bottom-color:var(--line)}
html[data-theme="dark"] .note,html[data-theme="dark"] .disclaimer,html[data-theme="dark"] .gaps li,html[data-theme="dark"] .lg-gap{background:var(--note-bg);border-color:var(--note-line)}
html[data-theme="dark"] .note,html[data-theme="dark"] .disclaimer{border-left-color:var(--gold)}
html[data-theme="dark"] .gaps li,html[data-theme="dark"] .lg-gap{box-shadow:inset 4px 0 0 var(--gold)}
html[data-theme="dark"] .lg-conflict{background:var(--hit-bg);border-color:#e0475a;box-shadow:0 0 7px 1px rgba(255,77,96,.65)}
html[data-theme="dark"] .red,html[data-theme="dark"] .type-count,html[data-theme="dark"] .nat-table td.hot,html[data-theme="dark"] .conflict-note,html[data-theme="dark"] .cmp .c-state h5,html[data-theme="dark"] .cmp .c-ruling h5,html[data-theme="dark"] .matrix tbody th .mx-count,html[data-theme="dark"] .matrix tfoot td.pos,html[data-theme="dark"] .nat-stat:first-child .num{color:var(--red-ink)}
html[data-theme="dark"] .search label,html[data-theme="dark"] .dir-filters legend,html[data-theme="dark"] .nat-controls label{color:var(--head)}
html[data-theme="dark"] .search input,html[data-theme="dark"] .nat-controls input{background:var(--card2);color:var(--ink);border-color:var(--line2)}
html[data-theme="dark"] .search input::placeholder,html[data-theme="dark"] .nat-controls input::placeholder{color:#8f9db3}
html[data-theme="dark"] .search input:focus-visible,html[data-theme="dark"] .nat-controls input:focus-visible{border-color:var(--gold)}
html[data-theme="dark"] .dir-filters input{accent-color:var(--gold)}
html[data-theme="dark"] .state-toggle{color:var(--head)}
html[data-theme="dark"] .state-body{border-top-color:var(--line)}
html[data-theme="dark"] .badge.pending{background:#243450;color:#d3dcea}
html[data-theme="dark"] .count-badge{border-color:var(--card)}
/* Potential conflicts keep the pulsing red glow, brightened for a dark page */
html[data-theme="dark"] .conflict{background:#180f19;border-color:#e0475a;animation-name:conflictGlowDark}
@keyframes conflictGlowDark{0%,100%{box-shadow:0 0 0 0 rgba(255,77,96,.3),0 0 7px 1px rgba(255,77,96,.45)}50%{box-shadow:0 0 0 4px rgba(255,77,96,.22),0 0 20px 5px rgba(255,77,96,.65)}}
@media (prefers-reduced-motion:reduce){html[data-theme="dark"] .conflict{animation:none;box-shadow:0 0 0 3px rgba(255,77,96,.25),0 0 14px 3px rgba(255,77,96,.55)}}
html[data-theme="dark"] .cmp>div{background:var(--card2);border-color:var(--line)}
html[data-theme="dark"] .lnote.unverified{background:#2d2108;color:#f3c977;border-color:#6b5017}
html[data-theme="dark"] .lnote.broken{background:#1f2a3d;color:#c5cfdf;border-color:#3a4a63}
/* National picture */
html[data-theme="dark"] .nat-stat .num{color:var(--head)}
html[data-theme="dark"] .nat-stat .sub,html[data-theme="dark"] .type-codes{color:var(--muted)}
html[data-theme="dark"] .nat-types li::marker{color:var(--gold-ink)}
html[data-theme="dark"] .bar{background:#22324d}
html[data-theme="dark"] .bar span{background:#e0475a}
html[data-theme="dark"] .nat-table th,html[data-theme="dark"] .nat-table td{border-bottom-color:var(--line)}
html[data-theme="dark"] .nat-table thead th{background:#0b1f3a;box-shadow:inset 0 -2px 0 var(--gold)}
html[data-theme="dark"] .nat-table tbody th{background:var(--card)}
html[data-theme="dark"] .nat-table tbody tr:nth-child(even) td,html[data-theme="dark"] .nat-table tbody tr:nth-child(even) th{background:var(--card2)}
/* Display-mode toggle */
html[data-theme="dark"] .seg{background:var(--card);border-color:var(--line2)}
html[data-theme="dark"] .seg button{background:var(--card);color:var(--head)}
html[data-theme="dark"] .seg button+button{border-left-color:var(--line2)}
html[data-theme="dark"] .seg button[aria-pressed="true"]{background:#1d3a66;color:#fff;box-shadow:inset 0 -3px 0 var(--gold)}
/* Matrix */
html[data-theme="dark"] .mx-key{background:var(--hit-bg);color:var(--red-ink);border-color:var(--hit-line)}
html[data-theme="dark"] .matrix th,html[data-theme="dark"] .matrix td{border-bottom-color:var(--line);border-right-color:#1c2a42}
html[data-theme="dark"] .matrix thead th{background:#0b1f3a}
html[data-theme="dark"] .matrix tbody th{background:var(--card);color:var(--ink);border-right-color:var(--line2)}
html[data-theme="dark"] .matrix tbody tr:nth-child(even) th,html[data-theme="dark"] .matrix tbody tr:nth-child(even) td{background:var(--card2)}
html[data-theme="dark"] .matrix tbody tr:hover th,html[data-theme="dark"] .matrix tbody tr:hover td{background:#2a2412}
html[data-theme="dark"] .matrix td.hit{background:var(--hit-bg)!important}
html[data-theme="dark"] .matrix td.hit button{color:var(--red-ink)}
html[data-theme="dark"] .matrix td.hit button:hover,html[data-theme="dark"] .matrix td.hit button:focus-visible{background:var(--red);color:#fff}
html[data-theme="dark"] .matrix tfoot th,html[data-theme="dark"] .matrix tfoot td{background:#1a2942;color:var(--head);border-top-color:var(--line2)}
/* Detail dialog */
html[data-theme="dark"] .mx-dialog{background:var(--bg);color:var(--ink);box-shadow:0 20px 60px rgba(0,0,0,.7)}
html[data-theme="dark"] .mx-dialog::backdrop{background:rgba(2,6,14,.75)}
html[data-theme="dark"] .mx-head{background:linear-gradient(180deg,#152d55,#0b1f3a)}
html[data-theme="dark"] .mx-foot .plain-btn{background:#1d3a66;border-color:var(--gold)}
/* Footer */
html[data-theme="dark"] .site-footer{background:var(--card);box-shadow:0 -8px 18px rgba(0,0,0,.35)}
html[data-theme="dark"] .panel-foot a{color:var(--link)}
/* Tool Selector tab (Arsenal-standard red tab): only its edge needs to show on a dark page */
html[data-theme="dark"] #hcrs-arsenal-tab{border-right-color:var(--gold)!important;box-shadow:3px 0 14px rgba(0,0,0,.55)!important}

/* ===== Complaint guidance components (Oct. 2026): Election Day card, route chooser, sample complaint, outcomes, tracker ===== */
.dl-row{display:flex;flex-wrap:wrap;gap:8px;margin:10px 0}
.dl-row .plain-btn.alt,.which-answer .plain-btn.alt{color:var(--navy)!important;border-color:var(--navy);background:transparent}
.dl-row .plain-btn.alt:hover{background:var(--gold);border-color:var(--gold)}
/* Election Day card (on page) */
.edc-onpage{margin:22px 0 8px}
.edc-intro h3{margin-top:0}
.edc{background:var(--card);border:3px solid var(--navy);border-radius:14px;overflow:hidden}
.edc-head{background:linear-gradient(180deg,var(--navy2),var(--navy));color:#fff;padding:12px 16px;border-bottom:4px solid var(--gold)}
.edc-head p{margin:2px 0 0;color:#e3e9f3}
.edc-head .edc-h{margin:0;font-family:var(--serif);font-weight:700;font-size:1.45rem;line-height:1.2;color:#fff}
.edc-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px;padding:12px}
.edc-col{display:flex;flex-direction:column;gap:10px;min-width:0}
.edc-box{border:1px solid var(--line);border-radius:10px;padding:8px 12px;background:var(--card)}
.edc-box h4{margin:0 0 4px;font-size:1.05rem;color:var(--navy);text-transform:none;letter-spacing:0}
.edc-box ol,.edc-box ul{margin:0;padding-left:20px}.edc-box li{margin:2px 0}
.edc-tip{margin:6px 0 0;font-weight:700;color:var(--red)}
.edc-small{font-size:.86rem;color:var(--muted);margin:4px 0}
.edc-dl table{width:100%;border-collapse:collapse;font-size:.93rem}
.edc-dl th{text-align:left;font-size:.75rem;text-transform:uppercase;letter-spacing:.5px;color:var(--muted);border-bottom:2px solid var(--gold);padding:2px 4px}
.edc-dl td{border-bottom:1px solid var(--line);padding:3px 4px;vertical-align:top}
.dl-days{font-weight:800;white-space:nowrap}.dl-st{font-weight:700}
.edc-help p{margin:0 0 6px}.edc-help .big{font-size:1.3rem;font-weight:800;color:var(--navy)}
.edc-qr{display:flex;gap:10px;align-items:flex-start}.edc-qr p{margin:0;min-width:0}
.edc-qr .qr{flex:none;width:96px;height:96px;background:#fff;border-radius:4px}
.edc .sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}
.edc-foot{margin:0;padding:6px 16px 10px;font-size:.84rem;color:var(--muted);border-top:1px solid var(--line)}
@media (max-width:720px){.edc-grid{grid-template-columns:1fr;padding:10px}.edc-head .edc-h{font-size:1.2rem}.edc-qr .qr{width:84px;height:84px}}
/* Route chooser */
.which-q{border:1px solid var(--line);border-radius:12px;background:var(--card);padding:10px 14px 12px;margin:14px 0}
.which-q legend{font-weight:700;color:var(--navy);padding:0 6px}
.which-q label{display:flex;gap:10px;align-items:flex-start;padding:8px 6px;border-radius:8px;cursor:pointer}
.which-q label+label{border-top:1px solid var(--line)}
.which-q label:hover{background:#f3f6fa}
.which-q input{flex:none;margin-top:5px;width:18px;height:18px;accent-color:var(--navy)}
.which-answer{background:var(--card);border:2px solid var(--navy);border-left:6px solid var(--gold);border-radius:12px;padding:12px 16px;margin:0 0 16px}
.which-answer h3{margin:0 0 6px}
.which-answer ol,.which-answer ul{margin:4px 0 6px;padding-left:22px}.which-answer li{margin-bottom:5px}
.which-answer p{margin:6px 0}
.which-wrap{max-height:none}
.which-table{width:100%;border-collapse:collapse;font-size:.92rem;min-width:820px}
.which-table th,.which-table td{text-align:left;vertical-align:top;padding:8px 10px;border-bottom:1px solid var(--line)}
.which-table thead th{background:var(--navy);color:#fff;font-size:.8rem;letter-spacing:.4px;text-transform:uppercase;box-shadow:inset 0 -2px 0 var(--gold)}
.which-table tbody th{color:var(--navy);width:16%}
.which-table tbody tr:nth-child(even) td,.which-table tbody tr:nth-child(even) th{background:#f7f9fc}
/* Sample complaint + checklist */
.sample-block{margin-top:22px}
.sample-cols{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.25fr);gap:14px;align-items:start}
@media (max-width:900px){.sample-cols{grid-template-columns:1fr}}
.checklist-box{background:var(--card);border:1px solid var(--line);border-top:4px solid var(--gold);border-radius:12px;padding:12px 16px}
.cl-title{margin:0 0 4px;font-size:1.1rem;color:var(--navy)}
.checklist-box h5{margin:12px 0 4px;font-size:.78rem;letter-spacing:1.4px;text-transform:uppercase;color:var(--gold-ink)}
ul.checklist{list-style:none;margin:0;padding:0}
ul.checklist li{position:relative;padding-left:28px;margin:5px 0}
ul.checklist li::before{content:"";position:absolute;left:2px;top:4px;width:15px;height:15px;border:2px solid var(--navy);border-radius:3px;background:var(--card)}
.sample-view{background:var(--card);border:1px solid var(--line);border-radius:12px}
.sample-view summary{cursor:pointer;padding:12px 16px;font-weight:700;color:var(--navy)}
.sample-view summary:focus-visible{outline:3px solid var(--gold);outline-offset:-3px}
.sample-doc{padding:4px 18px 16px;border-top:1px solid var(--line);font-family:var(--serif);font-size:1rem}
.sample-doc h4{font-family:var(--sans);font-size:.98rem;color:var(--navy);margin:14px 0 4px}
.sample-doc p{margin:0 0 8px}
.sc-caption{text-align:center;font-weight:700;margin:10px 0}.sc-caption p{margin:2px 0}
.sc-note{font-family:var(--sans);font-size:.88rem;background:#fffaf0;border:1px dashed #b89a3e;border-radius:8px;padding:6px 10px}
/* Outcomes */
.outcome-cards{grid-template-columns:repeat(auto-fill,minmax(min(100%,460px),1fr))}
.outcome-cards .card ul{margin-top:4px}.outcome-cards .card li{margin-bottom:6px}
.card.dismiss{box-shadow:inset 4px 0 0 var(--muted)}
.card.win{box-shadow:inset 4px 0 0 var(--navy)}
/* Tracker */
.tr-filters{display:flex;flex-wrap:wrap;gap:12px 18px;align-items:flex-end;margin:14px 0}
.tr-filters label{display:block;font-weight:700;color:var(--navy);margin-bottom:4px}
.tr-filters select{font:inherit;min-height:42px;padding:8px 10px;border:1px solid #b9c6d8;border-radius:8px;background:#fff;color:var(--ink);min-width:220px;max-width:100%}
.tr-filters select:focus-visible{border-color:var(--navy)}
.tr-filters .count{margin:0 0 10px}
.tr-list{list-style:none;padding:0;margin:0 0 16px;display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,480px),1fr));gap:12px}
.tr-item{background:var(--card);border:1px solid var(--line);border-radius:12px;padding:12px 16px}
.tr-top{display:flex;flex-wrap:wrap;gap:6px 10px;align-items:center;margin-bottom:4px}
.tr-st{font-weight:800;font-size:.8rem;letter-spacing:.6px;background:var(--navy);color:#fff;border-radius:6px;padding:2px 8px}
.tr-no{font-weight:600;color:var(--muted);font-size:.88rem}
.tr-cat{margin-left:auto;font-size:.76rem;font-weight:700;letter-spacing:.3px;padding:2px 10px;border-radius:999px;border:1.5px solid var(--navy);color:var(--navy);background:var(--card)}
.tr-cat.pending{border-color:var(--gold-ink);color:var(--gold-ink);background:#fff8e6}
.tr-item h3{margin:2px 0 6px;font-size:1rem}
.tr-item dl{display:grid;grid-template-columns:max-content minmax(0,1fr);gap:3px 12px;margin:0 0 8px;font-size:.93rem}
.tr-item dt{font-weight:700;color:var(--muted)}
.tr-item dd{margin:0}
.tr-src{font-size:.88rem;margin:0}
.tr-src .chk{display:block;color:var(--muted);font-size:.84rem}
.tr-note{font-size:.88rem;background:#fffaf0;border:1px solid #ecd9a0;border-radius:8px;padding:6px 10px;margin:6px 0 0}
@media (max-width:520px){.tr-item dl{grid-template-columns:1fr}.tr-item dt{margin-top:4px}.tr-cat{margin-left:0}.tr-filters select{min-width:0;width:100%}.tr-filters>div{flex:1 1 100%}}
/* Dark theme for the components above */
html[data-theme="dark"] .dl-row .plain-btn.alt,html[data-theme="dark"] .which-answer .plain-btn.alt{color:var(--head)!important;border-color:var(--line2)}
html[data-theme="dark"] .dl-row .plain-btn.alt:hover{color:var(--navy)!important;border-color:var(--gold)}
html[data-theme="dark"] .edc{border-color:var(--gold);background:var(--card)}
html[data-theme="dark"] .edc-head{background:linear-gradient(180deg,#152d55,#0b1f3a)}
html[data-theme="dark"] .edc-box{background:var(--card2);border-color:var(--line)}
html[data-theme="dark"] .edc-box h4,html[data-theme="dark"] .edc-help .big,html[data-theme="dark"] .cl-title,html[data-theme="dark"] .sample-view summary,html[data-theme="dark"] .sample-doc h4,html[data-theme="dark"] .which-q legend,html[data-theme="dark"] .which-table tbody th,html[data-theme="dark"] .tr-filters label{color:var(--head)}
html[data-theme="dark"] .edc-tip{color:var(--red-ink)}
html[data-theme="dark"] .edc-dl td,html[data-theme="dark"] .edc-foot{border-color:var(--line)}
html[data-theme="dark"] .which-q,html[data-theme="dark"] .checklist-box,html[data-theme="dark"] .sample-view,html[data-theme="dark"] .tr-item,html[data-theme="dark"] .which-wrap{background:var(--card);border-color:var(--line)}
html[data-theme="dark"] .checklist-box{border-top-color:var(--gold)}
html[data-theme="dark"] .which-q label+label,html[data-theme="dark"] .sample-doc,html[data-theme="dark"] .which-table th,html[data-theme="dark"] .which-table td{border-color:var(--line)}
html[data-theme="dark"] .which-q label:hover{background:var(--card2)}
html[data-theme="dark"] .which-q input{accent-color:var(--gold)}
html[data-theme="dark"] .which-answer{background:var(--card);border-color:var(--line2);border-left-color:var(--gold)}
html[data-theme="dark"] .which-table thead th{background:#0b1f3a}
html[data-theme="dark"] .which-table tbody td,html[data-theme="dark"] .which-table tbody th{background:var(--card)}
html[data-theme="dark"] .which-table tbody tr:nth-child(even) td,html[data-theme="dark"] .which-table tbody tr:nth-child(even) th{background:var(--card2)}
html[data-theme="dark"] ul.checklist li::before{border-color:var(--gold);background:transparent}
html[data-theme="dark"] .sc-note,html[data-theme="dark"] .tr-note{background:var(--note-bg);border-color:var(--note-line)}
html[data-theme="dark"] .card.dismiss{box-shadow:inset 4px 0 0 var(--muted)}
html[data-theme="dark"] .card.win{box-shadow:inset 4px 0 0 var(--link)}
html[data-theme="dark"] .tr-st{background:#1d3a66;color:#fff}
html[data-theme="dark"] .tr-cat{border-color:var(--line2);color:var(--head);background:var(--card2)}
html[data-theme="dark"] .tr-cat.pending{border-color:var(--gold-ink);color:var(--gold-ink);background:var(--note-bg)}
html[data-theme="dark"] .tr-filters select{background:var(--card2);color:var(--ink);border-color:var(--line2)}
html[data-theme="dark"] .tr-filters select:focus-visible{border-color:var(--gold)}
/* Print: "Print the card" prints only the Election Day card; a plain page print hides interactive controls */
@media print{
  .tr-filters,.which-q,.which-answer,.dl-row,.theme-switch{display:none!important}
  html.print-card body>*:not(main){display:none!important}
  html.print-card main>section:not(#watch),html.print-card #watch>*:not(#election-day-card),html.print-card .edc-intro{display:none!important}
  html.print-card main section{border:0;padding:0}
  html.print-card main,html.print-card body:has(#hcrs-arsenal-tab) main{padding:0!important;margin:0!important;max-width:none!important}
  html.print-card .edc-onpage{margin:0}
  html.print-card,html.print-card body{background:#fff!important;color-scheme:light}
  html.print-card .edc{border:2px solid #0b1f3a;background:#fff;color:#000;font-size:10.5pt;line-height:1.32}
  html.print-card .edc *{color:#000!important;background:#fff!important;border-color:#999!important}
  html.print-card .edc-head,html.print-card .edc-head *{background:#0b1f3a!important;color:#fff!important;-webkit-print-color-adjust:exact;print-color-adjust:exact}
  html.print-card .edc-grid{display:block;padding:8px}
  html.print-card .edc-grid::after{content:"";display:block;clear:both}
  html.print-card .edc-col{display:block;float:left;width:calc(50% - 3px)}
  html.print-card .edc-col+.edc-col{margin-left:6px}
  html.print-card .edc-box{margin-bottom:6px;padding:5px 9px}
  html.print-card .edc-qr .qr{width:80px;height:80px}
  @page{size:letter;margin:0.4in}
}

/* Most common potential-conflict types, "By state" grid: no inner vertical scroller (Oct. 21, 2026).
   All 14 rows and the totals row render at full height in the page flow. At 1100px and wider the
   51 columns fit, so the wrapper is not a scroll container and the column headers stick to the page
   while the grid is in view. Narrower screens keep horizontal scrolling only. */
.matrix-wrap{max-height:none!important;overflow-x:auto;overflow-y:hidden}
@media (min-width:1100px){
  .matrix-wrap{overflow:visible}
  .mx-scroll-hint{display:none}
  .matrix thead th.corner{border-top-left-radius:9px}
  .matrix thead th:last-child{border-top-right-radius:9px}
  .matrix tfoot th{border-bottom-left-radius:9px}
  .matrix tfoot td:last-child{border-bottom-right-radius:9px}
  .matrix tfoot th,.matrix tfoot td{position:static}
}
