/* ===== Série H: studio – čitelné z dálky na dotykové obrazovce =====
   Pravidla: text min. 44 px, tmavý text na světlém, žádná fotka pod grafem (odlesky),
   silné pruhy (fix se na ně dobře píše), procenta co nejvýš, zvětšená hlavička.        */
.t-st, .t-cream { --card:#FFFFFF; --ink:#000000; --mute:#2B2B2B; --vot:#000000; --track:#DEDEDE; --line:#000000; --lh:6px; --gt:#E4E4E4; --gf:#6E6E6E;
  --shadow:none; --cr:16px; --br:0px; --pill:0px; --bd:4px; --tint:45%;
  --c1:#EC8526; --c2:#A0A0A0; --c3:#5837B7; --c4:#41A0E4; --c5:#A0A0A0; --on1:#000; --on2:#000; --on3:#FFFFFF; --on4:#000; --on5:#000; }
.t-st { --bg:#FFFFFF; }
.t-cream { --bg:#FFF4E2; }
.st header { height: 198px; }
.st h1 { font-size: 124px; top: 20px; }
.st .stats { top: 26px; right: 8px; gap: 56px; }
.st .gauge { width: 184px; height: 100px; }
.st .stat .v { font-size: 84px; } .st .stat .v small { font-size: 56px; } .st .stat .l { font-size: 46px; }
.st .rows { top: 222px; gap: 16px; }
.st .votes b { font-weight: 700; }
.st .no { color: #000; font-weight: 700; }

/* pct uvnitř pruhu (společné) */
.hin .bar { grid-area: bar; }
.hin .pct { grid-area: bar; z-index: 2; justify-self: start; align-self: center; margin-left: 24px; color: var(--on); }
.hin .pct .i { width: auto; } .hin .pct .s { color: var(--on); font-size: .68em; }

/* h1 – jméno, hlasy, tlustý pruh s obřím procentem */
.h1 .row { height: 150px; grid-template-columns: auto 1fr auto; grid-template-rows: 62px 88px; grid-template-areas: "no name votes" "bar bar bar"; column-gap: 18px; }
.h1 .no { grid-area: no; font-size: 60px; } .h1 .name { grid-area: name; font-size: 60px; } .h1 .votes { grid-area: votes; font-size: 50px; }
.h1 .bar { height: 88px; } .h1 .bar i { --minw: 400px; } .h1 .pct { font-size: 76px; }

/* h2 – obří procento vlevo, pruh dole */
.h2 .row { height: 150px; grid-template-columns: 540px 1fr auto; grid-template-rows: 82px 1fr; grid-template-areas: "pct name votes" "pct bar bar"; }
.h2 .row::before { content: ""; position: absolute; left: 0; top: 8px; bottom: 8px; width: 16px; background: var(--c); }
.h2 .pct { grid-area: pct; font-size: 128px; margin-left: 48px; } .h2 .no { display: none; }
.h2 .name { grid-area: name; font-size: 62px; } .h2 .votes { grid-area: votes; font-size: 50px; }
.h2 .bar { grid-area: bar; height: 56px; align-self: start; }

/* h3 – karty s tlustým obrysem */
.h3 .row { height: 150px; border: 4px solid #000; border-radius: 16px; padding: 0 28px; grid-template-columns: 1fr auto 440px; grid-template-rows: 82px 1fr; grid-template-areas: "name votes pct" "bar bar pct"; column-gap: 24px; }
.h3 .no { display: none; } .h3 .name { grid-area: name; font-size: 62px; } .h3 .votes { grid-area: votes; font-size: 50px; }
.h3 .pct { grid-area: pct; font-size: 104px; justify-self: end; } .h3 .bar { grid-area: bar; height: 44px; align-self: start; }

/* h4 – řádek je pruh (výplň pod textem) */
.h4 .row { height: 150px; border: 4px solid #000; border-radius: 16px; overflow: hidden; background: #fff; grid-template-columns: 110px 1fr auto 400px; grid-template-areas: "no name votes pct"; }
.h4 .row::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: var(--w); min-width: 140px; background: color-mix(in srgb, var(--c) 60%, white); }
.h4 .row::after { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 22px; background: var(--c); }
.h4 .row > * { position: relative; z-index: 1; }
.h4 .no { grid-area: no; justify-self: center; font-size: 60px; margin-left: 14px; } .h4 .name { grid-area: name; font-size: 64px; } .h4 .votes { grid-area: votes; font-size: 50px; margin-right: 24px; }
.h4 .pct { grid-area: pct; font-size: 96px; justify-self: end; margin-right: 30px; } .h4 .bar { display: none; }

/* h5 – svislé sloupce */
.h5 .rows { flex-direction: row; left: 60px; right: 60px; top: 340px; gap: 60px; justify-content: space-between; }
.h5 .row { width: 300px; grid-template-rows: 430px auto auto; grid-template-areas: "bar" "name" "votes"; justify-items: center; text-align: center; align-items: start; }
.h5 .bar { grid-area: bar; width: 300px; height: 430px; background: transparent; border-bottom: 6px solid #000; overflow: visible; }
.h5 .bar i { position: absolute; left: 0; bottom: 0; width: 100%; height: calc(430px * var(--wn)); }
.h5 .pct { position: absolute; left: 0; width: 300px; justify-content: center; top: calc(430px * (1 - var(--wn)) - 96px); font-size: 84px; } .h5 .pct .i { width: auto; }
.h5 .name { grid-area: name; white-space: normal; text-align: center; font-size: 44px; width: 340px; margin-top: 14px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; line-height: 1.2; }
.h5 .no { display: none; } .h5 .votes { grid-area: votes; font-size: 44px; margin-top: 8px; }

/* h6 – tabulka XL */
.h6 .rows { gap: 10px; }
.h6 .row { height: 152px; border: 4px solid #000; padding: 0 20px; column-gap: 18px; grid-template-columns: 104px 1fr 330px 340px 300px; grid-template-areas: "rank name votes pct bar"; }
.h6 .row:nth-child(odd) { background: #EDEDED; }
.h6 .rank { grid-area: rank; display: grid; place-items: center; width: 92px; height: 92px; border-radius: 50%; background: var(--c); color: var(--on); font-size: 56px; font-weight: 700; }
.h6 .no { display: none; } .h6 .name { grid-area: name; font-size: 58px; } .h6 .votes { grid-area: votes; font-size: 46px; justify-self: end; }
.h6 .pct { grid-area: pct; font-size: 84px; justify-self: end; } .h6 .bar { grid-area: bar; height: 56px; }

/* h7 – dlaždice 3 + 2 */
.h7 .rows { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; top: 222px; }
.h7 .row { height: 400px; background: var(--c); color: var(--on); border: 4px solid #000; border-radius: 16px; padding: 28px 34px; align-content: start; align-items: start; grid-template-rows: 54px 180px auto auto; grid-template-areas: "no" "pct" "name" "votes"; }
.h7 .no, .h7 .votes, .h7 .votes b, .h7 .pct .s { color: var(--on); } .h7 .no { grid-area: no; font-size: 46px; }
.h7 .pct { grid-area: pct; font-size: 150px; align-self: center; } .h7 .pct .i { width: auto; }
.h7 .name { grid-area: name; font-size: 52px; white-space: normal; height: 2.4em; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; line-height: 1.15; }
.h7 .votes { grid-area: votes; font-size: 46px; margin-top: 10px; } .h7 .bar { display: none; }
.h7 .restcard { display: grid; place-content: center; height: 400px; text-align: center; border: 4px dashed #000; border-radius: 16px; color: #2B2B2B; font-size: 44px; } .h7 .restcard b { font-size: 96px; color: #000; }

/* h8 – vítěz velký, ostatní pod ním */
.h8 .row { height: 134px; border: 4px solid #000; border-radius: 14px; padding: 0 26px; grid-template-columns: 1fr auto 400px; grid-template-rows: 78px 1fr; grid-template-areas: "name votes pct" "bar bar pct"; column-gap: 24px; }
.h8 .no { display: none; } .h8 .name { grid-area: name; font-size: 58px; } .h8 .votes { grid-area: votes; font-size: 46px; } .h8 .pct { grid-area: pct; font-size: 96px; justify-self: end; }
.h8 .bar { grid-area: bar; height: 36px; align-self: start; }
.h8 .row:first-child { height: 224px; background: var(--c); grid-template-rows: 110px 1fr; }
.h8 .row:first-child .name { font-size: 100px; } .h8 .row:first-child .votes, .h8 .row:first-child .votes b, .h8 .row:first-child .pct .s { color: var(--on); } .h8 .row:first-child .votes { font-size: 60px; }
.h8 .row:first-child .pct { font-size: 170px; } .h8 .row:first-child .bar { height: 56px; background: rgba(0,0,0,.25); } .h8 .row:first-child .bar i { background: #fff; }

/* h9 – půlkruhy */
.h9 .rows { flex-direction: row; left: 48px; right: 48px; top: 310px; gap: 30px; }
.h9 .row { width: 340px; grid-template-rows: 200px auto auto; grid-template-areas: "pct" "name" "votes"; justify-items: center; text-align: center; align-content: start; }
.h9 .pct { grid-area: pct; position: relative; width: 340px; height: 200px; overflow: hidden; font-size: 62px; display: flex; align-items: flex-end; justify-content: center; padding-bottom: 6px; }
.h9 .pct::before { content: ""; position: absolute; left: 0; top: 0; width: 340px; height: 340px; border-radius: 50%; background: conic-gradient(from 270deg, var(--c) calc(var(--w) * .5), var(--track) 0 50%, transparent 0); -webkit-mask: radial-gradient(circle, transparent 0 60%, #000 60.5%); mask: radial-gradient(circle, transparent 0 60%, #000 60.5%); }
.h9 .pct > * { position: relative; z-index: 1; } .h9 .pct .i { width: auto; }
.h9 .no { display: none; } .h9 .name { grid-area: name; font-size: 46px; white-space: normal; text-align: center; margin-top: 20px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; line-height: 1.2; }
.h9 .votes { grid-area: votes; font-size: 44px; margin-top: 8px; } .h9 .bar { display: none; }

/* h10 – bubliny */
.h10 .rows { flex-direction: row; left: 48px; right: 48px; top: 250px; gap: 20px; align-items: flex-start; justify-content: center; }
.h10 .row { --d: calc(sqrt(var(--sh)) * 92px); width: var(--d); grid-template-rows: var(--d) auto auto; grid-template-areas: "pct" "name" "votes"; justify-items: center; text-align: center; align-content: start; }
.h10 .pct { grid-area: pct; width: var(--d); height: var(--d); border-radius: 50%; background: var(--c); color: var(--on); border: 4px solid #000; display: flex; align-items: center; justify-content: center; font-size: max(46px, calc(var(--d) * .2)); } .h10 .pct .i { width: auto; } .h10 .pct .s { color: inherit; }
.h10 .no { display: none; } .h10 .name { grid-area: name; font-size: 44px; white-space: normal; text-align: center; margin-top: 14px; line-height: 1.15; } .h10 .votes { grid-area: votes; font-size: 44px; margin-top: 6px; } .h10 .bar { display: none; }

/* h11 – vítěz vlevo přes celou výšku */
.h11 .rows { display: grid; grid-template-columns: 700px 1fr; grid-template-rows: repeat(4, 1fr); gap: 16px 24px; top: 222px; bottom: 30px; }
.h11 .row { border: 4px solid #000; border-radius: 14px; padding: 0 28px 0 0; grid-template-columns: 340px 1fr; grid-template-rows: 1fr auto auto 1fr; grid-template-areas: "pct ." "pct name" "pct votes" "pct bar"; row-gap: 0; }
.h11 .no { display: none; } .h11 .pct { grid-area: pct; font-size: 84px; justify-self: end; margin-right: 34px; } .h11 .name { grid-area: name; font-size: 54px; } .h11 .votes { grid-area: votes; font-size: 44px; }
.h11 .bar { grid-area: bar; height: 32px; align-self: start; margin-top: 10px; }
.h11 .row:first-child { grid-row: 1 / 5; background: var(--c); padding: 48px; align-content: start; grid-template-columns: 1fr; grid-template-rows: auto auto 1fr auto auto; grid-template-areas: "name" "votes" "pct" "bar" "."; }
.h11 .row:first-child .votes, .h11 .row:first-child .votes b, .h11 .row:first-child .pct .s { color: var(--on); }
.h11 .row:first-child .name { font-size: 130px; } .h11 .row:first-child .votes { font-size: 60px; }
.h11 .row:first-child .pct { font-size: 156px; justify-self: start; align-self: center; margin: 0; } .h11 .row:first-child .pct .i { width: auto; }
.h11 .row:first-child .bar { height: 60px; background: rgba(0,0,0,.25); margin: 0; } .h11 .row:first-child .bar i { background: #fff; }

/* h12 – jeden skládaný pruh + obří legenda */
.h12 .stack { display: flex; position: absolute; left: 48px; right: 48px; top: 226px; height: 150px; gap: 6px; border: 4px solid #000; }
.h12 .stack i { display: grid; place-items: center; flex: var(--s) 0 0; min-width: 0; background: var(--c); color: var(--on); font-style: normal; font-weight: 700; font-size: 52px; white-space: nowrap; overflow: hidden; }
.h12 .rows { top: 398px; gap: 0; }
.h12 .row { height: 108px; border-bottom: 3px solid #000; grid-template-columns: 56px 1fr auto 420px; grid-template-areas: "no name votes pct"; column-gap: 26px; }
.h12 .no { grid-area: no; width: 56px; height: 56px; background: var(--c); border: 3px solid #000; font-size: 0; } .h12 .name { grid-area: name; font-size: 58px; } .h12 .votes { grid-area: votes; font-size: 46px; }
.h12 .pct { grid-area: pct; font-size: 76px; justify-self: end; } .h12 .bar { display: none; }
.h12 .restcard { display: flex; align-items: center; justify-content: space-between; height: 100px; padding: 0 0 0 82px; color: #2B2B2B; font-size: 46px; } .h12 .restcard b { font-size: 76px; color: #000; }

/* h13 – skutečná osa 0–25 % */
.h13 .axis { display: block; position: absolute; left: 48px; right: 48px; top: 214px; height: 44px; font-size: 36px; font-weight: 700; color: #000; white-space: nowrap; }
.h13 .axis span { position: absolute; transform: translateX(-50%); } .h13 .axis span:nth-child(1) { left: 0; transform: none; }
.h13 .axis span:nth-child(2) { left: 20%; } .h13 .axis span:nth-child(3) { left: 40%; } .h13 .axis span:nth-child(4) { left: 60%; } .h13 .axis span:nth-child(5) { left: 80%; } .h13 .axis span:nth-child(6) { left: 100%; transform: translateX(-100%); }
.h13 .rows { top: 264px; gap: 8px; }
.h13 .row { height: 150px; grid-template-columns: auto 1fr auto; grid-template-rows: 60px 90px; grid-template-areas: "no name votes" "bar bar bar"; column-gap: 16px; }
.h13 .no { grid-area: no; font-size: 52px; } .h13 .name { grid-area: name; font-size: 56px; } .h13 .votes { grid-area: votes; font-size: 48px; }
.h13 .bar { grid-area: bar; height: 90px; background: repeating-linear-gradient(90deg, transparent 0 calc(20% - 3px), rgba(0,0,0,.35) calc(20% - 3px) 20%), var(--track); }
.h13 .bar i { width: calc(var(--sh) / 25 * 100%); }
.h13 .pct { grid-area: bar; z-index: 2; justify-self: start; align-self: center; margin-left: calc(var(--sh) / 25 * 100% + 22px); font-size: 78px; } .h13 .pct .i { width: auto; }
.h13 .row:first-child .pct { margin-left: 0; margin-right: 24px; justify-self: end; color: var(--on); } .h13 .row:first-child .pct .s { color: var(--on); }

/* h14 – plakát */
.h14 .rows { gap: 0; }
.h14 .row { height: 166px; border-bottom: 4px solid #000; grid-template-columns: 660px 1fr auto; grid-template-rows: 1fr 1fr; grid-template-areas: "pct name votes" "pct no votes"; }
.h14 .row::before { content: ""; position: absolute; left: 0; top: 14px; bottom: 14px; width: 24px; background: var(--c); }
.h14 .pct { grid-area: pct; font-size: 138px; margin-left: 60px; } .h14 .name { grid-area: name; font-size: 68px; align-self: end; }
.h14 .no { grid-area: no; font-size: 46px; align-self: start; } .h14 .votes { grid-area: votes; font-size: 56px; } .h14 .bar { display: none; }

/* h15 – zaoblený pruh a kruhový štítek */
.h15 .row { height: 150px; grid-template-columns: 76px 1fr auto; grid-template-rows: 68px 82px; grid-template-areas: "no name votes" "bar bar bar"; column-gap: 20px; }
.h15 .no { grid-area: no; width: 68px; height: 68px; border-radius: 50%; background: var(--c); color: var(--on); border: 4px solid #000; display: grid; place-items: center; font-size: 40px; }
.h15 .name { grid-area: name; font-size: 60px; } .h15 .votes { grid-area: votes; font-size: 50px; }
.h15 .bar, .h15 .bar i { border-radius: 999px; } .h15 .bar { height: 82px; border: 4px solid #000; } .h15 .bar i { --minw: 400px; } .h15 .pct { font-size: 62px; margin-left: 36px; }

/* h16 – kruh s pořadím + pruh */
.h16 .row { height: 150px; grid-template-columns: 112px 1fr auto; grid-template-rows: 66px 84px; grid-template-areas: "rank name votes" "rank bar bar"; column-gap: 24px; }
.h16 .rank { grid-area: rank; display: grid; place-items: center; width: 108px; height: 108px; border-radius: 50%; background: var(--c); color: var(--on); border: 4px solid #000; font-size: 64px; font-weight: 700; }
.h16 .no { display: none; } .h16 .name { grid-area: name; font-size: 60px; } .h16 .votes { grid-area: votes; font-size: 50px; }
.h16 .bar { height: 76px; align-self: end; } .h16 .bar i { --minw: 380px; } .h16 .pct { font-size: 66px; }

/* h17 – jeden řádek: vlevo jméno a hlasy, vpravo pruh */
.h17 .row { height: 150px; grid-template-columns: 660px 1fr; grid-template-rows: 78px 72px; grid-template-areas: "name bar" "votes bar"; column-gap: 26px; border-bottom: 3px solid #000; }
.h17 .no { display: none; } .h17 .name { grid-area: name; font-size: 62px; align-self: end; } .h17 .votes { grid-area: votes; font-size: 50px; align-self: start; }
.h17 .bar { height: 122px; align-self: center; } .h17 .pct { font-size: 88px; } .h17 .bar i { --minw: 400px; }

/* h18 – lízátka */
.h18 .rows { gap: 0; }
.h18 .row { height: 166px; border-bottom: 3px solid #000; grid-template-columns: 500px auto 1fr auto; grid-template-rows: 92px 1fr; grid-template-areas: "pct no name votes" "pct bar bar bar"; padding-right: 60px; }
.h18 .pct { grid-area: pct; font-size: 112px; justify-self: end; margin-right: 44px; } .h18 .no { grid-area: no; font-size: 46px; margin-right: 18px; } .h18 .name { grid-area: name; font-size: 60px; } .h18 .votes { grid-area: votes; font-size: 50px; margin-left: 24px; }
.h18 .bar { grid-area: bar; height: 16px; overflow: visible; margin-top: 16px; align-self: start; } .h18 .bar i { }
.h18 .bar::after { content: ""; position: absolute; left: var(--w); top: 8px; width: 84px; height: 84px; transform: translate(-50%, -50%); border-radius: 50%; background: var(--c); border: 6px solid #000; }

/* h19 – pilulka s procentem vlevo */
.h19 .row { height: 150px; grid-template-columns: 410px 1fr auto; grid-template-rows: 78px 72px; grid-template-areas: "pct name votes" "pct bar bar"; column-gap: 28px; }
.h19 .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: 76px; } .h19 .pct .i { width: auto; } .h19 .pct .s { color: var(--on); }
.h19 .no { display: none; } .h19 .name { grid-area: name; font-size: 62px; } .h19 .votes { grid-area: votes; font-size: 50px; } .h19 .bar { grid-area: bar; height: 48px; align-self: start; margin-top: 6px; }

/* h20 – kreslicí pruhy s pomocnou mřížkou */
.h20 .row { height: 150px; grid-template-columns: auto 1fr auto 440px; grid-template-rows: 60px 90px; grid-template-areas: "no name votes pct" "bar bar bar pct"; column-gap: 20px; }
.h20 .no { grid-area: no; font-size: 52px; } .h20 .name { grid-area: name; font-size: 58px; } .h20 .votes { grid-area: votes; font-size: 48px; }
.h20 .bar { grid-area: bar; height: 90px; background: repeating-linear-gradient(90deg, transparent 0 calc(25% - 4px), rgba(0,0,0,.4) calc(25% - 4px) 25%), var(--track); }
.h20 .pct { grid-area: pct; font-size: 122px; justify-self: end; align-self: center; }

/* ---- opravy po kontrole ---- */
.h7 .no { display: none; }
.h7 .row { grid-template-rows: 172px auto auto; grid-template-areas: "pct" "name" "votes"; padding: 20px 32px; }
.h7 .pct { font-size: 148px; } .h7 .name { font-size: 50px; height: 2.35em; } .h7 .votes { font-size: 46px; margin-top: 6px; }
.h8 .row:first-child { grid-template-columns: 1fr auto 620px; grid-template-rows: 112px 1fr; }
.h8 .row:first-child .pct { font-size: 156px; } .h8 .row:first-child .name { font-size: 92px; } .h8 .row:first-child .votes { font-size: 56px; }
.h9 .rows { top: 380px; } .h10 .rows { top: 330px; }
.h11 .rows { grid-template-rows: repeat(4, minmax(0, 1fr)); } .h11 .row { overflow: hidden; }
.h11 .name { font-size: 50px; } .h11 .votes { font-size: 44px; } .h11 .bar { height: 28px; margin-top: 6px; }
.h12 .stack i:nth-child(5) { font-size: 40px; }
