/* ===== Série M: 20 dalších v duchu toho, co zůstalo =====
   Kruh s pořadím, karty (k1/k2/k3/k5/k8) ve studiovém měřítku, osa 0–25 %, kreslicí mřížka,
   černý štítek s procentem, hlasy jako hlavní údaj, tenké linky. Text min. 44 px. */
.m { --mute: #2B2B2B; --vot: #000; }
.m .rows { top: 226px; gap: 12px; }
.m .row { height: 156px; align-content: start; }
.m .no { color: #000; font-weight: 700; }
.mrank { display: none; }
/* společný kruh s pořadím */
.m .rank { display: none; place-items: center; border-radius: 50%; background: var(--c); color: var(--on); border: 4px solid #000; font-weight: 700; }
/* pct uvnitř pruhu */
.mi .pct { grid-area: bar; z-index: 2; justify-self: start; align-self: center; margin-left: 24px; color: var(--on); }
.mi .pct .i { width: auto; } .mi .pct .s { color: var(--on); font-size: .68em; }
.mi .bar { grid-area: bar; }

/* M01 – kruh s pořadím + černý štítek na konci pruhu */
.m1 .row { grid-template-columns: 112px 1fr auto; grid-template-rows: 66px 84px; grid-template-areas: "rank name votes" "rank bar bar"; column-gap: 22px; }
.m1 .rank { grid-area: rank; width: 104px; height: 104px; font-size: 60px; } .m1 .no { display: none; }
.m1 .name { grid-area: name; font-size: 60px; } .m1 .votes { grid-area: votes; font-size: 48px; } .m1 .bar { grid-area: bar; height: 76px; align-self: end; }
.m1 .pct { grid-area: bar; z-index: 2; justify-self: start; align-self: center; margin-left: var(--w); transform: translateX(calc(-100% - 12px)); background: #000; color: #fff; font-size: 52px; padding: 2px 20px 6px; border-radius: 12px; } .m1 .pct .i { width: auto; } .m1 .pct .s { color: #fff; }

/* M02 – osa 0–25 % + kruh s pořadím */
.m2 .axis { display: block; position: absolute; left: 48px; right: 48px; top: 208px; height: 44px; font-size: 36px; font-weight: 700; white-space: nowrap; }
.m2 .axis span { position: absolute; transform: translateX(-50%); } .m2 .axis span:nth-child(1) { left: 0; transform: none; } .m2 .axis span:nth-child(2) { left: 20%; } .m2 .axis span:nth-child(3) { left: 40%; } .m2 .axis span:nth-child(4) { left: 60%; } .m2 .axis span:nth-child(5) { left: 80%; } .m2 .axis span:nth-child(6) { left: 100%; transform: translateX(-100%); }
.m2 .rows { top: 258px; gap: 6px; }
.m2 .row { height: 152px; grid-template-columns: 96px 1fr auto; grid-template-rows: 60px 88px; grid-template-areas: "rank name votes" "rank bar bar"; column-gap: 20px; }
.m2 .rank { grid-area: rank; width: 88px; height: 88px; font-size: 52px; align-self: end; } .m2 .no { display: none; } .m2 .name { grid-area: name; font-size: 56px; } .m2 .votes { grid-area: votes; font-size: 48px; }
.m2 .bar { grid-area: bar; height: 88px; background: repeating-linear-gradient(90deg, transparent 0 calc(20% - 3px), rgba(0,0,0,.35) calc(20% - 3px) 20%), var(--track); }
.m2 .bar i { width: calc(var(--sh) / 25 * 100%); }
.m2 .pct { grid-area: bar; z-index: 2; justify-self: start; align-self: center; margin-left: calc(var(--sh) / 25 * 100% + 22px); font-size: 76px; } .m2 .pct .i { width: auto; }
.m2 .row:first-child .pct { margin-left: 0; margin-right: 24px; justify-self: end; color: var(--on); } .m2 .row:first-child .pct .s { color: var(--on); }

/* M03 – kreslicí pruh s mřížkou, procento uvnitř, hlasy vpravo */
.m3 .rows { gap: 8px; }
.m3 .row { height: 154px; grid-template-columns: 1fr auto; grid-template-rows: 54px 100px; grid-template-areas: "name votes" "bar bar"; column-gap: 24px; }
.m3 .no { display: none; } .m3 .name { grid-area: name; font-size: 56px; } .m3 .votes { grid-area: votes; font-size: 48px; }
.m3 .bar { height: 100px; background: repeating-linear-gradient(90deg, transparent 0 calc(25% - 4px), rgba(0,0,0,.4) calc(25% - 4px) 25%), var(--track); border: 4px solid #000; }
.m3 .bar i { --minw: 400px; } .m3 .pct { font-size: 82px; }

/* M04 – hlasy jako hlavní údaj + kruh s pořadím */
.m4 .row { grid-template-columns: 96px 1fr auto; grid-template-rows: 78px 78px; grid-template-areas: "rank name votes" "rank bar bar"; column-gap: 20px; }
.m4 .rank { grid-area: rank; width: 88px; height: 88px; font-size: 50px; align-self: start; margin-top: 8px; } .m4 .no { display: none; }
.m4 .name { grid-area: name; font-size: 58px; } .m4 .votes { grid-area: votes; font-size: 44px; color: #2B2B2B; } .m4 .votes b { font-size: 80px; color: #000; }
.m4 .bar { height: 78px; } .m4 .pct { font-size: 56px; } .m4 .bar i { --minw: 340px; }

/* M05 – karta k1 ve studiovém měřítku */
.m5 .row { background: var(--card); border: 4px solid #000; border-radius: 16px; grid-template-columns: 470px auto 1fr auto; grid-template-rows: 84px 1fr; grid-template-areas: "pct no name votes" "pct bar bar bar"; padding-right: 30px; overflow: hidden; }
.m5 .row::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 22px; background: var(--c); }
.m5 .pct { grid-area: pct; justify-self: end; margin-right: 34px; font-size: 112px; } .m5 .no { grid-area: no; font-size: 46px; margin-right: 16px; }
.m5 .name { grid-area: name; font-size: 58px; } .m5 .votes { grid-area: votes; font-size: 46px; margin-left: 20px; }
.m5 .bar { grid-area: bar; height: 44px; align-self: start; margin-left: 0; }

/* M06 – blok s číslem, obří procento vpravo */
.m6 .row { background: var(--card); border: 4px solid #000; border-radius: 16px; overflow: hidden; grid-template-columns: 160px 1fr auto 470px; grid-template-rows: 84px 1fr; grid-template-areas: "no name votes pct" "no bar bar pct"; column-gap: 22px; }
.m6 .no { grid-area: no; height: 100%; display: grid; place-items: center; background: var(--c); color: var(--on); font-size: 76px; border-right: 4px solid #000; }
.m6 .name { grid-area: name; font-size: 60px; } .m6 .votes { grid-area: votes; font-size: 48px; } .m6 .bar { grid-area: bar; height: 44px; align-self: start; }
.m6 .pct { grid-area: pct; justify-self: end; margin-right: 26px; font-size: 112px; }

/* M07 – procento v pilulce */
.m7 .row { background: var(--card); border: 4px solid #000; border-radius: 16px; grid-template-columns: 420px 1fr 480px; grid-template-rows: 1fr 1fr; grid-template-areas: "pct name bar" "pct votes bar"; column-gap: 26px; padding: 0 28px 0 18px; }
.m7 .pct { grid-area: pct; height: 118px; align-self: center; background: var(--c); color: var(--on); border: 4px solid #000; border-radius: 60px; justify-content: center; align-items: center; font-size: 82px; } .m7 .pct .i { width: auto; } .m7 .pct .s { color: var(--on); }
.m7 .no { display: none; } .m7 .name { grid-area: name; font-size: 60px; align-self: end; } .m7 .votes { grid-area: votes; font-size: 48px; align-self: start; } .m7 .bar { grid-area: bar; height: 56px; align-self: center; }

/* M08 – kruh s pořadím, mini pruh, procento vpravo */
.m8 .row { background: var(--card); border: 4px solid #000; border-radius: 16px; grid-template-columns: 120px 1fr 460px 400px; grid-template-rows: 1fr 1fr; grid-template-areas: "rank name bar pct" "rank votes bar pct"; column-gap: 22px; padding: 0 26px 0 20px; }
.m8 .rank { grid-area: rank; width: 104px; height: 104px; font-size: 60px; } .m8 .no { display: none; }
.m8 .name { grid-area: name; font-size: 58px; align-self: end; } .m8 .votes { grid-area: votes; font-size: 46px; align-self: start; justify-self: start; }
.m8 .bar { grid-area: bar; height: 46px; align-self: center; } .m8 .pct { grid-area: pct; justify-self: end; font-size: 104px; }

/* M09 – tabulka s pořadím a pruhem */
.m9 .rows { gap: 10px; }
.m9 .row { height: 152px; border: 4px solid #000; padding: 0 22px; grid-template-columns: 104px 1fr 330px 330px 340px; column-gap: 18px; grid-template-areas: "rank name votes pct bar"; }
.m9 .row:nth-child(odd) { background: rgba(0,0,0,.06); }
.m9 .rank { grid-area: rank; width: 92px; height: 92px; font-size: 56px; } .m9 .no { display: none; } .m9 .name { grid-area: name; font-size: 58px; }
.m9 .votes { grid-area: votes; font-size: 48px; justify-self: end; } .m9 .pct { grid-area: pct; font-size: 88px; justify-self: end; } .m9 .bar { grid-area: bar; height: 60px; }

/* M10 – pruhování, číslo v kruhu, procento za pruhem */
.m10 .row { grid-template-columns: 76px 1fr auto; grid-template-rows: 66px 84px; grid-template-areas: "rank name votes" "bar bar bar"; column-gap: 18px; }
.m10 .row:nth-child(odd)::before { content: ""; position: absolute; left: -48px; right: -48px; top: -6px; bottom: -6px; background: rgba(0,0,0,.06); z-index: -1; }
.m10 .rank { grid-area: rank; width: 62px; height: 62px; font-size: 38px; align-self: center; } .m10 .no { display: none; }
.m10 .name { grid-area: name; font-size: 60px; } .m10 .votes { grid-area: votes; font-size: 48px; } .m10 .bar { grid-area: bar; height: 76px; align-self: end; } .m10 .bar i { --minw: 60px; }
.m10 .pct { grid-area: bar; z-index: 2; justify-self: start; align-self: center; margin-left: calc(var(--w) + 22px); font-size: 76px; }
.m10 .row:first-child .pct { margin-left: 0; margin-right: 24px; justify-self: end; color: var(--on); } .m10 .row:first-child .pct .s { color: var(--on); }

/* M11 – tenké linky, bez ikon, procento ve sloupci vpravo */
.m11 .rows { gap: 0; }
.m11 .row { height: 166px; border-bottom: 3px solid #000; grid-template-columns: 1fr auto 440px; grid-template-rows: 70px 80px; grid-template-areas: "name votes pct" "bar bar pct"; column-gap: 24px; }
.m11 .no { display: none; } .m11 .name { grid-area: name; font-size: 62px; align-self: end; } .m11 .votes { grid-area: votes; font-size: 50px; align-self: end; }
.m11 .bar { grid-area: bar; height: 70px; align-self: center; margin-right: 6px; } .m11 .pct { grid-area: pct; justify-self: end; font-size: 116px; }

/* M12 – barevný štítek, zaoblený pruh, procento i hlasy uvnitř */
.m12 .row { grid-template-columns: auto 1fr; grid-template-rows: 64px 92px; grid-template-areas: "no name" "bar bar"; column-gap: 18px; }
.m12 .no { grid-area: no; min-width: 76px; height: 60px; padding: 0 12px; display: grid; place-items: center; align-self: center; background: var(--c); color: var(--on); border: 4px solid #000; border-radius: 14px; font-size: 40px; }
.m12 .name { grid-area: name; font-size: 62px; } .m12 .bar, .m12 .bar i { border-radius: 999px; } .m12 .bar { height: 92px; border: 4px solid #000; background: #fff; } .m12 .bar i { --minw: 380px; }
.m12 .pct { font-size: 66px; margin-left: 34px; }
.m12 .votes { grid-area: bar; z-index: 2; justify-self: end; align-self: center; margin-right: 34px; font-size: 46px; color: #000; } .m12 .votes b { color: #000; font-weight: 700; }

/* M13 – dotyková osa, procento vpravo, hlasy v pruhu */
.m13 .rows { gap: 6px; }
.m13 .row { height: 156px; grid-template-columns: 1fr 450px; grid-template-rows: 62px 94px; grid-template-areas: "name pct" "bar pct"; column-gap: 24px; }
.m13 .no { display: none; } .m13 .name { grid-area: name; font-size: 60px; }
.m13 .bar { grid-area: bar; height: 94px; background: repeating-linear-gradient(90deg, transparent 0 calc(25% - 4px), rgba(0,0,0,.4) calc(25% - 4px) 25%), var(--track); }
.m13 .pct { grid-area: pct; justify-self: end; align-self: center; font-size: 124px; }
.m13 .votes { grid-area: bar; z-index: 2; justify-self: end; align-self: center; margin-right: 22px; font-size: 46px; color: #000; } .m13 .votes b { color: #000; }

/* M14 – kruh s pořadím, matné plochy, hlasy v pruhu */
.m14 .row { padding: 0 22px 0 0; grid-template-columns: 112px 1fr; grid-template-rows: 66px 84px; grid-template-areas: "rank name" "rank bar"; column-gap: 18px; }
.m14 .row:nth-child(odd) { background: rgba(255,255,255,.82); border-radius: 18px; }
.m14 .rank { grid-area: rank; width: 92px; height: 92px; font-size: 54px; justify-self: center; } .m14 .no { display: none; }
.m14 .name { grid-area: name; font-size: 62px; } .m14 .bar { height: 84px; background: #fff; } .m14 .pct { font-size: 64px; } .m14 .bar i { --minw: 360px; }
.m14 .votes { grid-area: bar; z-index: 2; justify-self: end; align-self: center; margin-right: 24px; font-size: 46px; color: #000; } .m14 .votes b { color: #000; }

/* M15 – matné plochy + černý štítek */
.m15 .row { background: rgba(255,255,255,.84); border-radius: 18px; padding: 0 26px; grid-template-columns: 1fr auto; grid-template-rows: 62px 36px 44px; grid-template-areas: "name votes" "pct pct" "bar bar"; height: 156px; }
.m15 .no { display: none; } .m15 .name { grid-area: name; font-size: 58px; } .m15 .votes { grid-area: votes; font-size: 48px; }
.m15 .bar { grid-area: bar; height: 40px; align-self: start; margin-top: 4px; } .m15 .rows { gap: 10px; }
.m15 .pct { grid-area: pct; justify-self: start; align-self: end; margin-left: var(--w); transform: translateX(-100%); background: #000; color: #fff; font-size: 44px; padding: 0 16px 3px; border-radius: 10px; position: relative; z-index: 2; margin-bottom: 4px; } .m15 .pct .i { width: auto; } .m15 .pct .s { color: #fff; }
.m15 .row:first-child .pct { margin-left: 100%; }

/* M16 – vlevo pořadí + jméno + hlasy, vpravo pruhy v jedné ose */
.m16 .rows { gap: 0; }
.m16 .row { height: 166px; border-bottom: 3px solid #000; grid-template-columns: 96px 610px 1fr; grid-template-rows: 82px 84px; grid-template-areas: "rank name bar" "rank votes bar"; column-gap: 24px; }
.m16 .rank { grid-area: rank; width: 88px; height: 88px; font-size: 50px; align-self: center; } .m16 .no { display: none; }
.m16 .name { grid-area: name; font-size: 60px; align-self: end; } .m16 .votes { grid-area: votes; font-size: 50px; align-self: start; }
.m16 .bar { height: 118px; align-self: center; } .m16 .bar i { --minw: 400px; } .m16 .pct { font-size: 88px; }

/* M17 – vítěz velký, ostatní menší, všude kruh s pořadím */
.m17 .rows { gap: 10px; }
.m17 .row { height: 128px; grid-template-columns: 96px 1fr auto 400px; grid-template-rows: 1fr 40px; grid-template-areas: "rank name votes pct" "rank bar bar pct"; column-gap: 20px; padding: 6px 0 12px; }
.m17 .rank { grid-area: rank; width: 84px; height: 84px; font-size: 48px; align-self: center; } .m17 .no { display: none; }
.m17 .name { grid-area: name; font-size: 54px; align-self: end; } .m17 .votes { grid-area: votes; font-size: 46px; align-self: end; } .m17 .bar { grid-area: bar; height: 36px; } .m17 .pct { grid-area: pct; justify-self: end; font-size: 92px; }
.m17 .row:first-child { height: 240px; background: color-mix(in srgb, var(--c) 35%, white); border: 4px solid #000; padding: 10px 20px 22px 20px; grid-template-rows: 1fr 60px; }
.m17 .row:first-child .rank { width: 120px; height: 120px; font-size: 70px; } .m17 .row:first-child .name { font-size: 90px; } .m17 .row:first-child .votes { font-size: 56px; } .m17 .row:first-child .bar { height: 60px; } .m17 .row:first-child .pct { font-size: 150px; }

/* M18 – rámečková karta (t-frame) – využívá .m5 */

/* M19 – plochá karta: procento vpravo velké, pruh přes celou kartu */
.m19 .row { background: var(--card); border-radius: var(--cr); grid-template-columns: 1fr auto 480px; grid-template-rows: 76px 62px; grid-template-areas: "name votes pct" "bar bar pct"; padding: 8px 30px 0; column-gap: 26px; height: 156px; }
.m19 .no { display: none; } .m19 .name { grid-area: name; font-size: 62px; } .m19 .votes { grid-area: votes; font-size: 48px; } .m19 .bar { grid-area: bar; height: 52px; align-self: start; } .m19 .pct { grid-area: pct; justify-self: end; font-size: 120px; }

/* M20 – kruh s pořadím, hlasy v pruhu, procento ve sloupci */
.m20 .row { grid-template-columns: 104px 1fr 420px; grid-template-rows: 66px 88px; grid-template-areas: "rank name pct" "rank bar pct"; column-gap: 22px; }
.m20 .rank { grid-area: rank; width: 96px; height: 96px; font-size: 56px; align-self: center; } .m20 .no { display: none; } .m20 .name { grid-area: name; font-size: 62px; }
.m20 .bar { grid-area: bar; height: 88px; } .m20 .pct { grid-area: pct; justify-self: end; align-self: center; font-size: 112px; }
.m20 .votes { grid-area: bar; z-index: 2; justify-self: end; align-self: center; margin-right: 24px; font-size: 48px; color: #000; } .m20 .votes b { color: #000; }

/* kruh s pořadím zapnutý jen v rozloženích, která ho používají */
.m1 .rank, .m2 .rank, .m4 .rank, .m8 .rank, .m9 .rank, .m10 .rank, .m14 .rank, .m16 .rank, .m17 .rank, .m20 .rank { display: grid; }

/* ---- opravy po kontrole ---- */
.m17 .row:first-child { grid-template-columns: 140px 1fr auto 640px; }
.m17 .row:first-child .pct { font-size: 140px; }
.m15 .row { grid-template-columns: 1fr auto; grid-template-rows: 62px 58px; grid-template-areas: "name votes" "bar bar"; align-content: center; }
.m15 .bar { height: 58px; margin-top: 0; align-self: start; }
.m15 .pct { grid-area: bar; align-self: center; margin: 0 0 0 var(--w); transform: translateX(calc(-100% - 10px)); font-size: 44px; padding: 2px 16px 5px; }
.m15 .row:first-child .pct { margin-left: 100%; }
