/* Dispuo – vzhled: terakotová lišta, teplé světlé pozadí, obsah v bílých kartách s tenkým rámečkem a skoro
   hranatými rohy (bez zesíleného okraje). Písmo IBM Plex Sans z vlastního serveru (fonts/, licence OFL – žádné
   Google Fonts), výrazné tučné nadpisy; Georgia jen na logo a citáty. */
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 100 700; font-display: swap;
  src: url(fonts/plex-sans-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 100 700; font-display: swap;
  src: url(fonts/plex-sans-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
:root { --brand: #b4532a; --brand-dark: #8e3d1c; --brand-soft: #f6e7dc; --bg: #f7f3ee; --card: #fff; --line: #e8e0d5;
        --text: #2b2521; --muted: #7b7068; --link: #9a4421; --ok: #2f7a45; --ok-soft: #e6f2e9; --bad: #b0352b;
        --radius: 3px; --serif: Georgia, "Times New Roman", serif; --sans: "IBM Plex Sans", system-ui, "Segoe UI", Roboto, sans-serif; }

* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; color: var(--text); font: 16px/1.55 var(--sans); background: var(--bg); }
button, input, textarea, select { font-family: inherit; }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible, summary:focus-visible {
  outline: 2px solid var(--brand); outline-offset: 2px; }
.site-header .in, .site-footer .in, main { max-width: 880px; margin: 0 auto; padding-inline: 20px; }

/* lišta a patička */
.site-header { background: var(--brand); box-shadow: 0 1px 0 var(--brand-dark); }
.site-header .in { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 26px; padding-block: 12px; }
.site-header .logo { font: 26px/1 var(--serif); color: #fff8f1; letter-spacing: .01em; }
.site-header .logo:hover { text-decoration: none; }
.site-header nav { display: flex; flex-wrap: wrap; gap: 4px 18px; font-size: 15px; }
.site-header nav a { color: #fff8f1; opacity: .88; }
.site-header nav a:hover { opacity: 1; }
main { padding-block: 4px 48px; }
.site-footer { border-top: 1px solid var(--line); }
.site-footer .in { display: flex; flex-wrap: wrap; gap: 4px 20px; padding-block: 16px; font-size: 13px; color: var(--muted); }
.site-footer span { margin-left: auto; }

/* typografie */
h1 { font-size: 36px; font-weight: 600; line-height: 1.15; letter-spacing: -.01em; margin: 22px 0 10px; }
h1 small { font-size: 14px; font-weight: 400; letter-spacing: 0; }
h2 { font-size: 20px; font-weight: 600; line-height: 1.3; margin: 0 0 12px; }
h3 { font-size: 17px; font-weight: 600; margin: 0 0 6px; }
h4 { font-size: 12.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 0 0 8px; }
.lead { font-size: 16px; color: var(--muted); margin: 0 0 6px; }
.note { color: var(--muted); font-size: 13.5px; }
.crumbs { font-size: 13px; color: var(--muted); margin: 18px 0 0; }
.crumbs + h1 { margin-top: 10px; }
.body-text { margin: 6px 0 0; font-size: 17px; color: #4a423c; }
.body-text p { margin: 0 0 8px; }
p.ok { background: var(--ok-soft); color: var(--ok); padding: 8px 14px; border-radius: var(--radius); margin: 16px 0 0; font-size: 15px; }
p.error, .form-error { color: var(--bad); font-size: 14px; }
p.disclaimer { font-size: 13.5px; color: var(--muted); background: #f0ebe5; padding: 8px 14px; border-radius: var(--radius); }

/* karty: každý oddíl stránky je samostatný blok s tenkým rámečkem */
main > section, main > form.form-box, .card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; margin: 20px 0; }
main > section > :last-child { margin-bottom: 0; }

/* rozcestník jazykových verzí (www.dispuo.com) */
ul.langs { list-style: none; padding: 0; margin: 24px 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
ul.langs a { display: grid; gap: 4px; height: 100%; padding: 22px 24px; background: var(--card); border: 1px solid var(--line);
             border-radius: var(--radius); color: var(--text); }
ul.langs a:hover { border-color: var(--brand); text-decoration: none; }
ul.langs b { font-size: 22px; font-weight: 600; }
ul.langs span { color: var(--muted); }

/* výpis otázek */
ul.qlist { list-style: none; padding: 0; margin: 0; }
ul.qlist li { padding: 10px 0; border-top: 1px solid var(--line); }
ul.qlist li:first-child { border-top: 0; padding-top: 0; }
ul.qlist li:last-child { padding-bottom: 0; }
ul.qlist a { color: var(--text); font-weight: 500; }
ul.qlist a:hover { color: var(--link); }
ul.qlist .status { display: block; font-size: 13px; color: var(--muted); margin-top: 1px; }
ul.qlist .tdesc { display: block; font-size: 14px; color: var(--muted); }
.more { margin: 12px 0 0; font-size: 14px; }

/* hlavička otázky: souhrnný řádek a rozbalovací pravidla */
p.meta { font-size: 14px; color: var(--muted); margin: 10px 0 0; }
details.rules { margin: 8px 0 0; font-size: 15px; }
details.rules summary { cursor: pointer; color: var(--link); font-weight: 500; width: max-content; }
details.rules[open] { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 20px 14px; color: #4a423c; }
details.rules p { margin: 8px 0 0; }

/* hlasování: řádky možností, po hlasu tytéž řádky s výsledkem */
#voting .head, .opt-panel .head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 12px; }
#voting .head h2 { margin: 0; }
#voting .head > :not(h2) { font-size: 14px; }
form.vote, ul.results { display: grid; gap: 10px; margin: 16px 0 0; padding: 0; list-style: none; }
.opt { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 12px; min-height: 54px; padding: 10px 16px;
       border: 1px solid var(--line); border-radius: var(--radius); background: #fff; color: var(--text); font-size: 16px; text-align: left; }
button.opt { width: 100%; cursor: pointer; }
button.opt:hover { border-color: var(--brand); background: #fdf6f1; }
button.opt.chosen { border-color: var(--brand); }
.opt .go { font-size: 14px; font-weight: 500; color: var(--link); }
.opt.out { border-style: dashed; background: #faf7f3; color: var(--muted); }
.opt .why, ul.results .why { font-size: 13px; color: var(--muted); }
.mine, .won { font-size: 12.5px; font-weight: 600; padding: 1px 8px; border-radius: var(--radius); white-space: nowrap; }
.mine { background: var(--brand); color: #fff; }
.won { background: var(--ok); color: #fff; }
ul.results li { position: relative; overflow: hidden; display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 54px;
                padding: 8px 16px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
ul.results li > i { position: absolute; inset: 0 auto 0 0; background: #f1eae3; }
ul.results li > span { position: relative; }
ul.results .t { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
ul.results .n { display: flex; flex-direction: column; align-items: flex-end; white-space: nowrap; font-variant-numeric: tabular-nums; line-height: 1.3; }
ul.results .n b { font-size: 17px; font-weight: 600; }
ul.results .n small { font-size: 12px; color: var(--muted); }
ul.results li.chosen { border-color: var(--brand); }
ul.results li.chosen > i { background: #f6dccd; }
ul.results li.winner { border-color: #b9d8c2; }
ul.results li.winner > i { background: var(--ok-soft); }
ul.results li.out .x { text-decoration: line-through; }
ul.results li.out { color: var(--muted); }
ul.results li.out > i { background: #f4f0eb; }
form.why { display: grid; gap: 6px; margin: 18px 0 0; padding-top: 16px; border-top: 1px solid var(--line); }
form.why > label { font-weight: 600; font-size: 17px; color: var(--text); }
form.why p { margin: 0; }
form.why .row { display: grid; grid-template-columns: 2fr 1fr; gap: 8px 12px; }
form.why .row label { display: grid; gap: 2px; font-size: 13px; color: var(--muted); }
form.why .buttons { display: flex; align-items: center; gap: 8px; margin-top: 4px; }
form.why .skip { font-size: 15px; padding: 0 8px; }
section.decision { background: var(--ok-soft); border-color: #cfe3d5; }
section.decision h2 { color: var(--ok); }
section.decision .win-text { font-size: 22px; font-weight: 600; margin: 0 0 6px; }
section.decision p { margin: 4px 0 0; }
section.summary p { margin: 0 0 8px; }

/* Proč? – nadpis a výběr možnosti mimo kartu, každá možnost ve vlastní kartě; bez JS jsou karty pod sebou, s JS
   je vidět jen vybraná */
main > section.why-tabs { background: none; border: 0; padding: 0; margin: 32px 0 20px; }
.why-tabs > h2 { font-size: 24px; margin: 0 0 4px; }
.why-tabs .lead { font-size: 15px; margin: 0 0 14px; }
.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 6px; }
.tabs button { display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 0 14px; border: 1px solid #d8cfc4;
               border-radius: var(--radius); background: #fff; color: var(--text); font-size: 15px; font-weight: 500; }
.tabs button:hover { border-color: var(--brand); background: #fff; }
.tabs button span { font-size: 13px; font-weight: 400; color: var(--muted); }
.tabs button.out { color: var(--muted); font-weight: 400; }
.tabs button[aria-pressed=true], .tabs button[aria-pressed=true]:hover { background: var(--brand); border-color: var(--brand); color: #fff; }
.tabs button[aria-pressed=true] span { color: #f6dccd; }
.opt-panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; margin: 0 0 16px; }
.opt-panel > h3 { font-size: 20px; margin: 0 0 16px; }
.opt-panel > h4, .opt-panel > .head { margin-top: 24px; }
.opt-panel > h3 + h4 { margin-top: 0; }
.opt-panel > h3 + .head { margin-top: 0; }
.opt-panel .head h4 { margin: 0 0 8px; }
.opt-panel .head + .note, .opt-panel .head + p.note { margin: -4px 0 8px; }

/* výroky */
ul.stmts { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
li.stmt { padding: 16px 20px; border: 1px solid #eadbb9; border-radius: var(--radius); background: #fbf5ea; }
li.stmt blockquote { font: 18px/1.5 var(--serif); margin: 0; color: #2a2418; }
li.stmt p { margin: 8px 0 0; }
li.stmt .transl { font-size: 15px; margin-top: 4px; }
li.stmt .who { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 10px; font-size: 14px; color: #6b5420; }
li.stmt .who b { color: var(--text); font-weight: 600; }
li.stmt .expl { font-size: 14px; }
li.stmt p.note { font-size: 13px; color: #6b5420; }
.verdict { font-size: 13px; font-weight: 600; padding: 1px 9px; border-radius: var(--radius); white-space: nowrap; }
.verdict.yes { background: var(--ok-soft); color: var(--ok); }
.verdict.no { background: #f8e3e0; color: var(--bad); }
.verdict.wait { background: #fff; color: var(--muted); border: 1px solid #eadbb9; }
.stake { font-size: 12.5px; font-weight: 600; padding: 1px 8px; border-radius: var(--radius); background: #ffe9cc; color: #7a4300; white-space: nowrap; }
p.pub { font-size: 13px; color: var(--muted); }
.record { font-size: 17px; margin: 4px 0 0; }

/* argumenty: text, pod ním autor a „Přesvědčivé“ */
ul.args { list-style: none; padding: 0; margin: 0; }
ul.args li { padding: 12px 0; border-top: 1px solid var(--line); }
ul.args li:first-child { border-top: 0; padding-top: 4px; }
ul.args li p { margin: 0; }
ul.args li:target { background: #fff4d6; border-radius: var(--radius); padding-inline: 10px; }
ul.args .meta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 12px; margin-top: 6px; }
ul.args .pl { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; }
span.plus, form.plus button { display: inline-block; padding: 3px 12px; border-radius: var(--radius); font-size: 14px; line-height: 1.6; white-space: nowrap; }
span.plus { color: var(--muted); border: 1px solid var(--line); }
form.plus { margin: 0; }
form.plus button { border: 1px solid #d8cfc4; background: #fff; color: var(--text); }
form.plus button:hover { background: #fff; }
form.plus button:hover:not(:disabled) { border-color: var(--brand); }
form.plus button.given, form.plus button.given:hover { background: #fbe9df; border-color: var(--brand); color: var(--brand-dark); }
form.plus button:disabled { color: var(--muted); cursor: not-allowed; }
a.edit { font: normal 13px var(--sans); color: var(--muted); opacity: .45; text-decoration: none; filter: grayscale(1); }   /* ✎ v režimu úprav – co nejméně nápadná */
a.edit:hover { opacity: 1; filter: none; text-decoration: none; }
section.item:target { outline: 2px solid var(--brand); }
p.pending { font-size: 13px; color: var(--brand-dark); margin-top: 2px !important; }

/* formuláře */
details.add { margin-top: 16px; padding-top: 12px; border-top: 1px solid var(--line); }
details.add summary { cursor: pointer; color: var(--link); font-weight: 500; }
.form-box form, form.form-box { display: grid; gap: 4px; margin-top: 8px; }
.form-box form { max-width: 540px; }
main > form.form-box { max-width: none; }
main > form.form-box > * { max-width: 540px; }
.form-box label, form.form-box label { font-size: 13px; color: var(--muted); margin-top: 8px; }
input, textarea, select { font: inherit; font-size: 15px; padding: 7px 10px; border: 1px solid #d8cfc4; border-radius: var(--radius); width: 100%; background: #fff; }
input[type=checkbox] { width: auto; }
input:focus, textarea:focus, select:focus { border-color: var(--brand); }
button { font: inherit; font-size: 15px; padding: 7px 18px; border: 0; background: var(--brand); color: #fff; border-radius: var(--radius); cursor: pointer; }
button:hover { background: var(--brand-dark); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }   /* pole pro roboty */

/* administrace */
nav.admin { font-size: 14px; margin: 16px 0 0; padding: 8px 14px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
.admin-form { max-width: 720px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 8px 22px 16px; }
.admin-form fieldset { border: 1px solid var(--line); border-radius: var(--radius); margin: 14px 0; }
.form-row { margin: 10px 0; }
.form-row label { display: block; font-size: 13px; color: var(--muted); }
.form-row label.checkbox-field { color: var(--text); font-size: 15px; }
.form-help { font-size: 12.5px; color: var(--muted); margin: 2px 0 0; }
.opt-row { padding: 6px 0; border-bottom: 1px dotted var(--line); }
.opt-row > div { display: grid; grid-template-columns: 5em 1fr 9em; gap: 6px; }
.opt-row > div + div { grid-template-columns: 5em 9em 1fr 1fr; margin-top: 4px; }
.opt-row input { font-size: 14px; padding: 4px 8px; }
.opt-row .note { align-self: center; font-size: 12px; }
.tab { overflow-x: auto; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
.tab table { border-collapse: collapse; font-size: 14px; width: 100%; }
.tab th, .tab td { text-align: left; vertical-align: top; padding: 6px 12px; border-top: 1px solid var(--line); }
.tab thead th { border-top: 0; color: var(--muted); font-weight: 600; font-size: 13px; }
section.item { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 16px; margin: 8px 0; }
section.item p { margin: 2px 0; }
section.item.done { opacity: .55; }
form.actions { margin: 6px 0 0; }
form.actions button { font-size: 13px; padding: 3px 12px; }
body.wide .site-header .in, body.wide main { max-width: none; }
body.wide main { font-size: 14px; }

@media (max-width: 560px) {
  h1 { font-size: 28px; }
  main > section, .card, .opt-panel { padding: 16px; }
  form.why .row { grid-template-columns: 1fr; }
}
