/* ===== Série D: první sada 10 odlišných řešení ===== */

/* d1 – procenta ve vlastním sloupci vpravo */
.d1 .rows { top: 178px; gap: 14px; }
.d1 .row { grid-template-columns: 74px 1fr 340px; grid-template-rows: 56px 68px auto; grid-template-areas: "no name pct" "bar bar pct" "bar bar votes"; column-gap: 20px; height: 156px; align-items: center; }
.d1 .no { grid-area: no; width: 74px; height: 56px; border-radius: 10px; background: var(--c); color: var(--on); display: grid; place-items: center; font-size: 36px; font-weight: 700; }
.d1 .name { grid-area: name; font-size: 50px; }
.d1 .bar { grid-area: bar; height: 68px; align-self: start; margin-top: 6px; border-radius: 0; background: #fff; } .d1 .bar i { border-radius: 0; }
.d1 .pct { grid-area: pct; font-size: 88px; justify-self: end; align-self: end; margin-bottom: -6px; }
.d1 .votes { grid-area: votes; font-size: 32px; justify-self: end; align-self: start; margin-top: 6px; }

/* d4 – obří procenta vlevo */
.d4 .rows { top: 176px; gap: 12px; }
.d4 .row { height: 156px; grid-template-columns: 500px 44px 1fr; grid-template-rows: 60px 34px 52px; grid-template-areas: "pct . name" "pct . bar" "pct . votes"; align-items: center; border-bottom: 2px solid var(--line); }
.d4 .row::before { content: ""; position: absolute; left: 512px; top: 10px; height: 116px; width: 14px; background: var(--c); }
.d4 .pct { grid-area: pct; font-size: 112px; justify-self: end; }
.d4 .name { grid-area: name; font-size: 52px; } .d4 .no { display: none; }
.d4 .bar { grid-area: bar; height: 30px; background: #fff; border-radius: 0; } .d4 .bar i { border-radius: 0; }
.d4 .votes { grid-area: votes; font-size: 34px; }

/* d5 – vítěz nahoře, ostatní v mřížce */
.d5 .rows { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 40px; top: 172px; }
.d5 .row { background: #fff; border-radius: 20px; box-shadow: 0 6px 20px rgba(0,0,0,.12); height: 250px; padding: 34px 30px 0; grid-template-columns: auto 1fr auto; grid-template-rows: 56px 118px 40px; grid-template-areas: "no name votes" "pct pct pct" "bar bar bar"; }
.d5 .row::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 14px; background: var(--c); border-radius: 20px 20px 0 0; }
.d5 .no { grid-area: no; font-size: 40px; margin-right: 14px; } .d5 .name { grid-area: name; font-size: 40px; } .d5 .votes { grid-area: votes; font-size: 34px; }
.d5 .pct { grid-area: pct; font-size: 96px; justify-self: start; } .d5 .pct .i { width: auto; }
.d5 .bar { grid-area: bar; height: 34px; border-radius: 4px; } .d5 .bar i { border-radius: 4px; }
.d5 .row:first-child { grid-column: 1 / -1; height: 300px; background: var(--c); color: var(--on); grid-template-columns: auto 1fr auto; grid-template-rows: 100px 70px 1fr; grid-template-areas: "no name pct" "votes votes pct" "bar bar bar"; padding: 40px 48px 0; }
.d5 .row:first-child::before { display: none; }
.d5 .row:first-child .no, .d5 .row:first-child .name, .d5 .row:first-child .votes, .d5 .row:first-child .votes b, .d5 .row:first-child .pct .s { color: var(--on); }
.d5 .row:first-child .no { font-size: 76px; margin-right: 24px; } .d5 .row:first-child .name { font-size: 76px; } .d5 .row:first-child .votes { font-size: 44px; justify-self: start; }
.d5 .row:first-child .pct { font-size: 150px; justify-self: end; align-self: center; }
.d5 .row:first-child .bar { height: 44px; background: rgba(255,255,255,.55); } .d5 .row:first-child .bar i { background: rgba(255,255,255,.92); width: 100%; }

/* d6 – prstenec a legenda */
.d6 .donut { display: grid; position: absolute; left: 120px; top: 260px; width: 680px; height: 680px; border-radius: 50%; place-items: center; text-align: center;
  background: conic-gradient(var(--c1) 0 23.71%, var(--c2) 0 41.79%, var(--c3) 0 54.24%, var(--c4) 0 65.42%, #6E6E6E 0 71.31%, #DAD7D4 0 100%);
  -webkit-mask: radial-gradient(circle, transparent 0 60%, #000 60.4%); mask: radial-gradient(circle, transparent 0 60%, #000 60.4%); }
.d6 .donut-c { position: absolute; left: 120px; top: 260px; width: 680px; height: 680px; display: grid; place-content: center; text-align: center; }
.d6 .donut-c b { font-size: 84px; } .d6 .donut-c span { font-size: 30px; color: var(--mute); }
.d6 .rows { left: 900px; top: 195px; gap: 12px; }
.d6 .row { height: 150px; grid-template-columns: 40px 1fr auto; grid-template-rows: 60px 50px; grid-template-areas: "no name pct" "no votes pct"; column-gap: 26px; border-bottom: 2px solid var(--line); align-content: center; }
.d6 .row:last-child { border-bottom: 0; }
.d6 .row:nth-child(5) { --c: #6E6E6E; }
.d6 .no { grid-area: no; width: 40px; height: 40px; border-radius: 8px; background: var(--c); font-size: 0; align-self: start; margin-top: 10px; }
.d6 .name { grid-area: name; font-size: 44px; } .d6 .votes { grid-area: votes; font-size: 32px; }
.d6 .pct { grid-area: pct; font-size: 76px; justify-self: end; }

/* d7 – svislé sloupce */
.d7 .rows { flex-direction: row; left: 120px; right: 120px; top: 330px; gap: 120px; justify-content: space-between; }
.d7 .row { width: 240px; display: grid; grid-template-rows: 520px auto auto; grid-template-areas: "bar" "name" "votes"; align-items: start; justify-items: center; text-align: center; }
.d7 .bar { grid-area: bar; width: 240px; height: 520px; background: transparent; border-radius: 0; border-bottom: 3px solid #B8B4B0; position: relative; overflow: visible; }
.d7 .bar i { position: absolute; left: 0; bottom: 0; width: 100%; height: calc(520px * var(--wn)); border-radius: 0; }
.d7 .pct { position: absolute; left: 0; width: 240px; justify-content: center; top: calc(520px * (1 - var(--wn)) - 76px); font-size: 60px; } .d7 .pct .i { width: auto; }
.d7 .name { grid-area: name; white-space: normal; text-align: center; font-size: 30px; width: 300px; margin-top: 18px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; line-height: 1.25; }
.d7 .no { display: none; } .d7 .votes { grid-area: votes; font-size: 28px; margin-top: 6px; }

/* d8 – tabulka s pořadím */
.d8 .thead { display: grid; position: absolute; left: 48px; right: 48px; top: 172px; height: 40px; grid-template-columns: 76px 1fr 260px 250px 390px; column-gap: 20px; font-size: 24px; font-weight: 600; letter-spacing: .02em; color: var(--mute); text-transform: uppercase; align-items: center; padding: 0 24px; }
.d8 .thead span:nth-child(3), .d8 .thead span:nth-child(4) { text-align: right; }
.d8 .rows { top: 216px; gap: 12px; }
.d8 .row { height: 148px; grid-template-columns: 76px 1fr 260px 250px 390px; column-gap: 20px; padding: 0 24px; grid-template-areas: "rank name votes pct bar"; border-radius: 14px; }
.d8 .row:nth-child(odd) { background: #fff; }
.d8 .rank { grid-area: rank; display: grid; place-items: center; width: 74px; height: 74px; border-radius: 50%; background: var(--c); color: var(--on); font-size: 40px; font-weight: 700; }
.d8 .no { display: none; } .d8 .name { grid-area: name; font-size: 46px; }
.d8 .votes { grid-area: votes; font-size: 40px; justify-self: end; } .d8 .votes b { color: var(--vot); } .d8 .votes { color: transparent; } .d8 .votes b { color: var(--vot); font-weight: 400; }
.d8 .pct { grid-area: pct; font-size: 60px; justify-self: end; }
.d8 .bar { grid-area: bar; height: 44px; background: #E4E1DE; border-radius: 4px; } .d8 .bar i { border-radius: 4px; }

/* d9 – jeden skládaný pruh a legenda */
.d9 .stack { display: flex; position: absolute; left: 48px; right: 48px; top: 184px; height: 130px; gap: 4px; }
.d9 .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: 40px; white-space: nowrap; overflow: hidden; }
.d9 .rows { top: 344px; gap: 0; }
.d9 .row { height: 108px; grid-template-columns: 44px 1fr auto 380px; grid-template-areas: "no name votes pct"; column-gap: 26px; border-bottom: 2px solid var(--line); }
.d9 .no { grid-area: no; width: 44px; height: 44px; border-radius: 8px; background: var(--c); font-size: 0; }
.d9 .name { grid-area: name; font-size: 48px; } .d9 .votes { grid-area: votes; font-size: 38px; margin-right: 30px; }
.d9 .pct { grid-area: pct; font-size: 68px; justify-self: end; } .d9 .bar { display: none; }
.d9 .restcard { display: flex; align-items: center; justify-content: space-between; height: 108px; padding: 0 0 0 70px; color: var(--mute); font-size: 40px; }
.d9 .restcard b { font-size: 68px; font-weight: 700; }

/* d10 – levý panel + pravé řádky */
.d10 { background: var(--bg); }
.d10::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 560px; background: #1A1919; }
.d10 header { border: 0; }
.d10 h1 { left: 0; top: 50px; color: #fff; }
.d10 header::after { content: ""; position: absolute; left: 0; top: 170px; width: 464px; height: 3px; background: #3A3D48; }
.d10 .stats { flex-direction: column; left: 0; right: auto; top: 240px; gap: 56px; }
.d10 .stat { color: #fff; } .d10 .stat .l { color: #D8D5D2; }
.d10 .rows { left: 620px; top: 56px; gap: 14px; }
.d10 .row { height: 178px; grid-template-columns: auto 1fr auto; grid-template-rows: 60px 1fr; grid-template-areas: "no name votes" "bar bar bar"; }
.d10 .no { grid-area: no; font-size: 34px; margin-right: 14px; } .d10 .name { grid-area: name; font-size: 46px; } .d10 .votes { grid-area: votes; font-size: 38px; }
.d10 .bar { grid-area: bar; height: 104px; background: #fff; border-radius: 0; } .d10 .bar i { border-radius: 0; --minw: 300px; }
.d10 .pct { grid-area: bar; z-index: 2; justify-self: start; margin-left: 24px; font-size: 60px; color: var(--on); } .d10 .pct .s { color: var(--on); } .d10 .pct .i { width: auto; }
