/* Data components (lots 8 and 9): loaded only by the templates that use them; budget 10 KB, uncompressed.
   Measures in the blue of the site (decision 2026-10-24), references in greys, never colour alone (filled, hollow,
   line). Text 12 px at least. */
td.nu{color:#5d6580;font-size:.875rem}
@media (max-width:639px){td.nu,th.nu{display:none}th[data-nu]:not([data-nu=""])::after{content:attr(data-nu);display:block;color:#5d6580;font-size:.875rem;font-weight:400}}
.chart .mk{position:absolute;top:0;transform:translateX(-50%);font:12px var(--mono);color:#5d6580;background:#fff;padding:0 3px;white-space:nowrap}
/* Result table (C.2, C.6): bar inside the % cell, common scale, 50 % mark in a 2nd round. */
table.rt{width:100%;border-collapse:collapse}
table.rt th,table.rt td{padding:7px 8px 7px 0;border-bottom:1px solid #eceef4;text-align:left;vertical-align:middle}
table.rt thead th{font-size:.8125rem;font-weight:500;color:#5d6580}
table.rt td.n{text-align:right;font-variant-numeric:tabular-nums;white-space:nowrap}
td.rp{width:42%;min-width:150px;font-weight:600;font-variant-numeric:tabular-nums;white-space:nowrap}
.rb{position:relative;display:inline-block;vertical-align:middle;width:calc(100% - 64px);height:12px;margin-right:8px;background:#eceef4;border-radius:3px}
.rb i{display:block;height:100%;background:var(--blue);border-radius:3px}
.rb b{position:absolute;top:-4px;bottom:-4px;width:2px;margin-left:-1px;background:#121a33}
@media (max-width:639px){table.rt{table-layout:fixed;min-width:0}table.rt thead th:first-child{width:50%}td.rp{width:auto;min-width:0}table.rt th.n,table.rt td.n{width:64px}.rb{display:block;width:100%;margin:0 0 4px}}
/* Who voted (C.3): fixed 0-100 bar, filled commune, hollow similar communes, grey line France. */
.tv-figure{display:flex;flex-wrap:wrap;align-items:baseline;gap:6px 24px;margin:0}
.tv-figure b{font-size:2.5rem;color:var(--blue);font-variant-numeric:tabular-nums}
.tv-figure span{color:#3a4260}
.tv{margin:12px 0 0}
.tvbar{position:relative;height:28px}
.tvbar::before{content:"";position:absolute;left:0;right:0;top:11px;height:6px;background:#eceef4;border-radius:3px}
.tvbar i{position:absolute;top:50%;transform:translate(-50%,-50%);border-radius:50%}
.tvbar .c{width:20px;height:20px;background:var(--blue);border:2px solid #fff}
.tvbar .g{width:16px;height:16px;background:#fff;border:2px solid #3a4260}
.tvbar .f{width:3px;height:24px;border-radius:0;background:#5d6580}
.tvaxis{display:flex;justify-content:space-between;font-size:.8125rem;color:#5d6580}
.keys{display:flex;flex-wrap:wrap;gap:6px 20px;margin:8px 0;font-size:.875rem;color:#3a4260}
.keys span{display:inline-flex;align-items:center;gap:8px}
.keys i{display:inline-block;border-radius:50%}
.kc{width:12px;height:12px;background:var(--blue)}
.kg{width:10px;height:10px;background:#fff;border:2px solid #3a4260}
.kf{width:3px;height:16px;border-radius:0!important;background:#5d6580}
/* Small multiples (C.4): one panel per type of election, fixed 0-100 axis, real years, HTML dots and labels. */
.sm-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(250px,1fr));gap:16px}
.sm{margin:0;padding:12px 12px 40px 36px;border:1px solid #e3e6ef;border-radius:8px}
.sm figcaption{margin:0 0 14px -24px;font-weight:600}
.smp{position:relative;height:110px}
.smp svg{position:absolute;inset:0;width:100%;height:100%;overflow:visible}
.smp line{stroke:#eceef4;stroke-width:1}
.smp polyline{fill:none;stroke-width:2.5}
.smp polyline.c{stroke:var(--blue)}
.smp polyline.g{stroke:#3a4260;stroke-width:1.5;stroke-dasharray:4 3}
.smp i{position:absolute;transform:translate(-50%,-50%);border-radius:50%}
.smp i.c{width:9px;height:9px;background:var(--blue)}
.smp i.g{width:8px;height:8px;background:#fff;border:1.5px solid #3a4260}
.smp .yl,.smp .xl,.smp .nm{position:absolute;font:12px var(--mono);color:#5d6580;white-space:nowrap}
.smp .yl{right:100%;margin-right:6px;transform:translateY(-50%)}
.smp .xl{top:100%;margin-top:4px}
.smp .xl.z{transform:translateX(-100%)}
.smp .nm{top:100%;margin-top:22px;transform:translateX(-50%);color:var(--blue)}
/* Identity card (C.5): national percentile bar, median mark at 50. */
.idc{border-top:1px solid #e3e6ef}
.idr{display:flex;flex-wrap:wrap;align-items:center;gap:6px 16px;padding:10px 0;border-bottom:1px solid #eceef4}
.idr p{flex:1 1 220px;margin:0;display:flex;flex-direction:column}
.idr small{font-size:.875rem;color:#5d6580}
.idb{position:relative;flex:2 1 200px;height:10px;background:#eceef4;border-radius:5px}
.idb i{position:absolute;top:50%;transform:translate(-50%,-50%)}
.idb .m{left:50%;width:2px;height:18px;background:#5d6580}
.idb .c{width:14px;height:14px;border-radius:50%;background:var(--blue);border:2px solid #fff}
.idt{flex:0 0 96px;text-align:right;font-size:.875rem;color:#3a4260;font-variant-numeric:tabular-nums}
.sim{margin-top:16px}
.sim-links{display:flex;flex-wrap:wrap;gap:8px;margin:8px 0}
.sim-links a{padding:6px 10px;border:1px solid #d2d2ec;border-radius:6px;text-decoration:none}
/* Party grid (C.8): 7 parties × the latest presidential, legislative and European round 1. */
.pg{border-top:1px solid #e3e6ef}
.pgr{display:flex;flex-wrap:wrap;gap:8px 20px;padding:12px 0;border-bottom:1px solid #eceef4;align-items:center}
.pgr>a{flex:1 1 200px;font-weight:600}
.pgc{flex:1 1 150px;display:flex;flex-direction:column;gap:4px}
.pgc small{font-size:.8125rem;color:#5d6580;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.pgc small a{color:inherit}
.pgb{display:flex;align-items:center;gap:8px}
.pgb .rb{flex:1 1 auto;width:auto;margin:0;height:10px}
.rb.u i{background:repeating-linear-gradient(135deg,var(--blue) 0 3px,transparent 3px 6px);border:1px solid var(--blue);box-sizing:border-box}.pgb b{flex:0 0 56px;text-align:right;font-variant-numeric:tabular-nums}
/* v1.2 lot 6 (B-05): commune table of contents and back-to-top link */
.toc{display:flex;flex-wrap:wrap;gap:4px 16px;font-size:14px;margin-top:8px}.to-top{font-size:14px;text-align:right;margin-top:16px}.to-top a{display:inline-block;padding:4px 0}
/* Round tabs of the featured election (pure CSS, :target): the shown round is highlighted, full-width tabs. */
#vedette .tabs a{flex:1;text-align:center}#vedette .round{scroll-margin-top:52px}#vedette .tabs a:first-child,#vedette:has(.round+.round:target) .tabs a:last-child{background:var(--blue);color:#fff}#vedette:has(.round+.round:target) .tabs a:first-child{background:none;color:var(--ink)}
.tips{position:absolute;top:0;bottom:0;display:grid}.tips p{margin:0;position:relative;outline:0;cursor:default;-webkit-tap-highlight-color:transparent}.tips p:hover,.tips p:focus{background:linear-gradient(#5d6580,#5d6580) 50%/1px 100% no-repeat}.tips span{display:none;position:absolute;bottom:100%;left:50%;transform:translateX(-50%);z-index:2;padding:6px 8px;background:#fff;border:1px solid var(--rule);border-radius:6px;box-shadow:0 2px 6px #0002;font-size:13px;font-weight:600;white-space:nowrap}.tips .l span{left:0;transform:none}.tips .r span{left:auto;right:0;transform:none}.tips p:hover span,.tips p:focus span{display:block}
/* « Candidat en tête » tabs (presidential per-ballot pages, alone or with the turnout readings): fill by national rank, PO 2026-11-26 */
.lmap .ra:checked~svg path,.lmap .rb:checked~svg path{fill:#fff;stroke:#c9ccd6;stroke-width:.3}.lmap .legend i{border:1px solid #c9ccd6}
.lmap .ra:checked~.la,.lmap .rb:checked~.lb{display:flex}
.lmap .ra:checked~svg path[data-a="1"],.lmap .rb:checked~svg path[data-b="1"]{fill:#000091}
.lmap .ra:checked~svg path[data-a="2"],.lmap .rb:checked~svg path[data-b="2"]{fill:url(#lr2)}
.lmap .ra:checked~svg path[data-a="3"],.lmap .rb:checked~svg path[data-b="3"]{fill:url(#lr3)}
.lmap .ra:checked~svg path[data-a="4"],.lmap .rb:checked~svg path[data-b="4"]{fill:url(#lr4)}
.lmap .ra:checked~svg path[data-a="o"],.lmap .rb:checked~svg path[data-b="o"]{fill:#eceef4}
.lmap .ra:checked~svg path[data-a="t"],.lmap .rb:checked~svg path[data-b="t"],.lmap .ra:checked~svg path[data-a="x"],.lmap .rb:checked~svg path[data-b="x"]{fill:#b9bdc9}
.lmap .ra:checked~svg path[data-a="f"],.lmap .rb:checked~svg path[data-b="f"]{fill:url(#lrf)}
.k1{background:#000091}.k2{background:repeating-linear-gradient(45deg,#6f6fc1 0 4px,#b4b4de 4px 6px)}
.k3{background-color:#c2c2e5;background-image:radial-gradient(#000091 1.2px,transparent 1.4px);background-size:5px 5px}
.k4{background:repeating-linear-gradient(0deg,#5d6580 0 1.5px,#d9dbe4 1.5px 4px)}.ko{background:#eceef4}
.kt,.kx{background:#b9bdc9}.kf{background:repeating-linear-gradient(-45deg,#9ea3b5 0 1.5px,#f4f4fa 1.5px 5px)}
.lmap .sa,.lmap .sb,.lmap .ra:checked~.st,.lmap .rb:checked~.st{display:none}.lmap .ra:checked~.sa,.lmap .rb:checked~.sb{display:block}
@media (max-width:639px){.rs{overflow:visible}.rs table{min-width:0}.rs .x{display:none}.rs thead th{position:sticky;top:0;z-index:1;background:#fff}}
