/* Arch papíru na řezací podložce.
   Rám (podložka s mřížkou, arch, záložky navigace) je jediný výrazný prvek;
   uvnitř archu tichý pracovní nástroj. Barvy jsou tiskové a mají význam:
   azurová = akce, purpurová = pravidla a varování, žlutá = vybráno. */

/* Archivo (SIL OFL 1.1), variabilní šířka 62–125 % a tloušťka 100–900; uloženo lokálně, bez Google Fonts */
@font-face {
  font-family: "Archivo"; font-style: normal; font-weight: 100 900; font-stretch: 62% 125%; font-display: swap;
  src: url(fonts/archivo-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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Archivo"; font-style: normal; font-weight: 100 900; font-stretch: 62% 125%; font-display: swap;
  src: url(fonts/archivo-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;
}

:root {
  --mat: #2c5a4b;
  --mat-line: rgba(255, 255, 255, .055);
  --mat-line-major: rgba(255, 255, 255, .11);
  --on-mat: #eef4f1;
  --on-mat-muted: #a9c3b9;

  --paper: #fcfcfa;
  --paper-2: #f2f3f0;
  --ink: #1c2230;
  --muted: #5b6270;
  --line: #dadde2;
  --line-strong: #1c2230;
  --field: #ffffff;
  --field-line: #b5bac3;

  --cyan: #0a6aa1;
  --cyan-ink: #ffffff;
  --cyan-tint: #e3f0f8;
  --magenta: #b8175a;
  --magenta-tint: #fbe8f0;
  --yellow: #f6d44a;
  --yellow-tint: #fdf4c9;
  --green: #2b7a4b;
  --green-tint: #e2f2e8;

  --gold: #e2b33a;
  --silver: #b9c0c9;
  --bronze: #c98a5b;

  --shadow: 0 1px 0 rgba(0, 0, 0, .25), 0 12px 32px rgba(0, 0, 0, .28);
  --radius: 8px;
  --flap-h: 2.6rem;
  --gutter: clamp(.5rem, 3vw, 2rem);
  --pad: clamp(1rem, 3.2vw, 2.75rem);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --mat: #183a2f;
    --mat-line: rgba(255, 255, 255, .04);
    --mat-line-major: rgba(255, 255, 255, .08);
    --on-mat: #e3ece8;
    --on-mat-muted: #8fab9f;

    --paper: #1d2128;
    --paper-2: #252a32;
    --ink: #e7e9ee;
    --muted: #9aa1ad;
    --line: #343a44;
    --line-strong: #c9ced6;
    --field: #161a20;
    --field-line: #4a515d;

    --cyan: #5cb6e6;
    --cyan-ink: #0d1f2b;
    --cyan-tint: #173041;
    --magenta: #f07aa6;
    --magenta-tint: #3a1d2a;
    --yellow: #e9c63b;
    --yellow-tint: #3a3418;
    --green: #6cc890;
    --green-tint: #183527;

    --shadow: 0 1px 0 rgba(0, 0, 0, .5), 0 12px 32px rgba(0, 0, 0, .45);
    color-scheme: dark;
  }
}

/* ---------------------------------------------------------------- základ */

*, *::before, *::after { box-sizing: border-box }
html { -webkit-text-size-adjust: 100% }
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  color: var(--ink);
  font: 400 1rem/1.5 "Archivo", system-ui, sans-serif;
  font-stretch: 100%;
  background-color: var(--mat);
  background-image:
    linear-gradient(var(--mat-line-major) 1px, transparent 1px),
    linear-gradient(90deg, var(--mat-line-major) 1px, transparent 1px),
    linear-gradient(var(--mat-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--mat-line) 1px, transparent 1px);
  background-size: 100px 100px, 100px 100px, 20px 20px, 20px 20px;
  background-attachment: fixed;
}

a { color: var(--cyan); text-underline-offset: .18em; text-decoration-thickness: 1px }
a:hover { text-decoration-thickness: 2px }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; border-radius: 2px }
[hidden] { display: none !important }
img, svg { display: block }

h1, h2, h3 { margin: 0; line-height: 1.15; text-wrap: balance }
h1 {
  font-size: clamp(1.75rem, 1.2rem + 2.2vw, 2.6rem);
  font-weight: 800;
  font-stretch: 125%;
  letter-spacing: -.01em;
}
h2 {
  font-size: 1.3rem;
  font-weight: 750;
  font-stretch: 115%;
  margin: 3rem 0 1rem;
}
h3 { font-size: 1.05rem; font-weight: 700; font-stretch: 105%; margin: 1.5rem 0 .5rem }
p { margin: .6rem 0; max-width: 72ch }
small, .small { font-size: .85rem }
.muted { color: var(--muted) }
.num { text-align: right; font-variant-numeric: tabular-nums }
.nowrap { white-space: nowrap }
.error, .bad { color: var(--magenta) }
.good { color: var(--green) }
.lead { font-size: 1.1rem; color: var(--muted); max-width: 62ch }

/* ---------------------------------------------------------------- podložka: hlavička */

.top {
  display: flex;
  align-items: center;
  gap: 1rem 1.5rem;
  flex-wrap: wrap;
  max-width: 1240px;
  width: 100%;
  margin: 0 auto;
  padding: 1rem calc(var(--gutter) + 1.5rem) .9rem;
  color: var(--on-mat);
}
.brand { display: flex; align-items: center; gap: .65rem; color: var(--on-mat); text-decoration: none }
.brand svg { width: 30px; height: 30px; flex: none }
.brand b { font-weight: 800; font-stretch: 125%; font-size: 1.15rem; letter-spacing: -.005em; line-height: 1.05 }
.brand span { display: block; font-size: .78rem; color: var(--on-mat-muted); font-weight: 400; font-stretch: 100% }
.top .search { flex: 1 1 260px; max-width: 420px; display: flex; margin-left: auto }
.top .search input {
  width: 100%;
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 255, 255, .25);
  color: var(--on-mat);
  border-radius: var(--radius);
  padding: .5rem .75rem;
}
.top .search input::placeholder { color: var(--on-mat-muted) }
.top .search input:focus { background: rgba(255, 255, 255, .16); outline: 2px solid var(--yellow); outline-offset: 1px }
.who { display: flex; align-items: center; gap: .75rem; font-size: .9rem; color: var(--on-mat-muted) }
.who a, .who button.link { color: var(--on-mat); font-weight: 600 }
.who form { display: contents }

/* ---------------------------------------------------------------- arch */

.trim {
  flex: 1;
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 calc(var(--gutter) + 1.5rem) 2rem;
}

/* lepicí chlopně = hlavní navigace, aktivní je přilepená k archu */
.flaps {
  display: flex;
  gap: 2px;
  height: var(--flap-h);
  padding: 0 1.25rem;
  overflow-x: auto;
  scrollbar-width: none;
}
.flaps::-webkit-scrollbar { display: none }
.flaps a {
  flex: none;
  display: flex;
  align-items: center;
  padding: .55rem 1.35rem .45rem;
  margin-top: .35rem;
  color: var(--on-mat);
  text-decoration: none;
  font-weight: 600;
  font-size: .95rem;
  border-radius: 10px 10px 0 0;
  color: rgba(255, 255, 255, .82);
}
.flaps a:hover { background: rgba(255, 255, 255, .12); color: #fff }
.flaps a[aria-current="page"] { background: var(--paper); color: var(--ink); margin-top: 0 }
.flaps a.sep { margin-left: auto }
.flaps a:focus-visible { outline: none; background: var(--yellow); color: #1c2230 }

.sheet {
  background: var(--paper);
  box-shadow: var(--shadow);
  padding: var(--pad);
  min-height: 60vh;
}

.foot {
  max-width: 1240px;
  width: 100%;
  margin: 0 auto;
  padding: 0 calc(var(--gutter) + 1.5rem) 2rem;
  font-size: .85rem;
  color: var(--on-mat-muted);
}
.foot a { color: var(--on-mat) }

/* ---------------------------------------------------------------- hlavička stránky */

.head { margin-bottom: 1.75rem }
.head .crumbs { font-size: .9rem; margin: 0 0 .5rem }
.head .crumbs a { color: var(--muted) }
.facts { display: flex; flex-wrap: wrap; gap: .4rem 1.75rem; margin: .9rem 0 0; padding: 0 }
.facts div { display: flex; flex-direction: column }
.facts dt { font-size: .8rem; color: var(--muted) }
.facts dd { margin: 0; font-weight: 600 }
.actions { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1.1rem 0 0; align-items: center }

/* ---------------------------------------------------------------- tlačítka a formuláře */

input, select, textarea, button { font: inherit; color: inherit }
input:not([type=checkbox]):not([type=radio]), select, textarea {
  min-height: 2.5rem;
  padding: .45rem .7rem;
  border: 1px solid var(--field-line);
  border-radius: var(--radius);
  background: var(--field);
  color: var(--ink);
  max-width: 100%;
}
input:focus, select:focus, textarea:focus { outline: 2px solid var(--cyan); outline-offset: 0; border-color: var(--cyan) }
input[type=checkbox] { width: 1.15rem; height: 1.15rem; accent-color: var(--cyan); margin: 0; vertical-align: middle }

.btn, button {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  min-height: 2.5rem;
  padding: .45rem 1rem;
  border: 1px solid var(--field-line);
  border-radius: var(--radius);
  background: var(--field);
  color: var(--ink);
  font-weight: 600;
  font-size: .95rem;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
}
.btn:hover, button:hover { background: var(--paper-2); text-decoration: none }
.btn.primary, button.primary { background: var(--cyan); border-color: var(--cyan); color: var(--cyan-ink) }
.btn.primary:hover, button.primary:hover { filter: brightness(1.08); background: var(--cyan) }
.btn.small, button.small { min-height: 2rem; padding: .25rem .7rem; font-size: .85rem }
button.link {
  border: 0; background: none; padding: 0; min-height: 0;
  color: var(--cyan); font-weight: 500; text-decoration: underline; text-underline-offset: .18em;
}
button.link:hover { background: none; text-decoration-thickness: 2px }
button:disabled { opacity: .55; cursor: progress }

label { display: flex; flex-direction: column; gap: .3rem; font-size: .9rem; font-weight: 600 }
label .hint, .hint { font-weight: 400; color: var(--muted); font-size: .82rem; line-height: 1.4 }
form.inline { display: inline }

.form-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 15rem), 1fr)); gap: 1rem 1.25rem; max-width: 52rem }
.form-grid .wide { grid-column: 1 / -1 }
.form-grid .end { align-self: end }
.stack { display: flex; flex-direction: column; gap: 1rem; max-width: 26rem }

.toolbar { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; margin: 0 0 1.25rem }
.toolbar input[type=search], .toolbar input[name=q], .toolbar input#filter { flex: 1 1 18rem; max-width: 30rem }
.count { color: var(--muted); font-size: .9rem; margin-left: auto }

details.add { margin: 1.25rem 0 }
details.add > summary { list-style: none; display: inline-flex }
details.add > summary::-webkit-details-marker { display: none }
details.add[open] > summary { margin-bottom: 1rem }
details.add .form-grid { padding: 1.25rem; background: var(--paper-2); border-radius: var(--radius) }

/* ---------------------------------------------------------------- tabulky */

.scroll { overflow-x: auto; margin: .25rem 0 1.5rem; -webkit-overflow-scrolling: touch }
.scroll > table { margin: 0 }
table { width: 100%; border-collapse: collapse; font-stretch: 94%; margin: .25rem 0 1.5rem }
th, td { padding: .55rem .7rem; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line) }
th:first-child, td:first-child { padding-left: 0 }
th:last-child, td:last-child { padding-right: 0 }
th { font-size: .82rem; font-weight: 600; color: var(--muted); border-bottom: 1px solid var(--field-line); white-space: nowrap; vertical-align: bottom }
td { font-variant-numeric: tabular-nums }
tbody tr:hover > td { background: var(--paper-2) }
td.name a, td .strong { font-weight: 600 }
.sub { display: block; font-size: .82rem; color: var(--muted); font-weight: 400 }

/* pořadí 1.–3. */
.rank { display: inline-grid; place-items: center; min-width: 1.75rem; height: 1.75rem; font-weight: 700; font-size: .9rem }
.rank.r1, .rank.r2, .rank.r3 { border-radius: 50%; color: #1c2230 }
.rank.r1 { background: var(--gold) }
.rank.r2 { background: var(--silver) }
.rank.r3 { background: var(--bronze) }

/* ---------------------------------------------------------------- štítky */

.chip {
  display: inline-flex; align-items: center; gap: .3rem;
  padding: .1rem .55rem; border-radius: 999px;
  font-size: .8rem; font-weight: 600; line-height: 1.5; white-space: nowrap;
  background: var(--paper-2); color: var(--muted);
}
.chip.open { background: var(--cyan-tint); color: var(--cyan) }
.chip.draft { background: var(--yellow-tint); color: var(--ink) }
.chip.done { background: var(--green-tint); color: var(--green) }
.chip.warn { background: var(--magenta-tint); color: var(--magenta) }
.chip.tone-good { background: var(--green-tint); color: var(--green) }
.chip.tone-note { background: var(--yellow-tint); color: var(--ink) }
.chip.tone-warn { background: var(--yellow-tint); color: var(--ink) }
.chip.tone-bad { background: var(--magenta-tint); color: var(--magenta) }
.chip.check { white-space: normal }
td.num, th.num { text-align: right; white-space: nowrap }
.code { font-weight: 700; font-stretch: 110%; letter-spacing: .01em }

/* ---------------------------------------------------------------- bloky */

.notice {
  position: relative;
  margin: 1rem 0 1.5rem;
  padding: 1rem 1.25rem 1rem 1.5rem;
  background: var(--magenta-tint);
  border-radius: var(--radius);
  max-width: 72ch;
}
.notice::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 5px; background: var(--magenta); border-radius: var(--radius) 0 0 var(--radius) }
.notice p { margin: .35rem 0 }
.notice.info { background: var(--cyan-tint) }
.notice.info::before { background: var(--cyan) }
/* právě vytvořený odkaz (pozvánka / nové heslo) */
.new-link .copy { display: flex; gap: .5rem; margin: .75rem 0 }
.new-link .copy input { flex: 1; min-width: 0 }
.new-link label { display: block; margin-top: .5rem }
.new-link textarea { width: 100%; resize: vertical }
tr.withdrawn > td { color: var(--muted); text-decoration: line-through; text-decoration-color: var(--magenta) }
tr.withdrawn .chip { text-decoration: none }
ul.plain { list-style: none; margin: 1rem 0; padding: 0 }
ul.plain > li { padding: .35rem 0 }

.empty {
  padding: 1.5rem;
  background: var(--paper-2);
  border-radius: var(--radius);
  color: var(--muted);
  max-width: 44rem;
}
.empty p { margin: 0 0 .75rem }
.empty p:last-child { margin: 0 }

/* seznam položek (soutěže, přihlášky) */
.list { list-style: none; margin: 0; padding: 0 }
.list > li { display: grid; grid-template-columns: 7.5rem 1fr auto; gap: .25rem 1rem; align-items: baseline; padding: .7rem 0; border-bottom: 1px solid var(--line) }
.list .when { font-variant-numeric: tabular-nums; font-weight: 600; font-size: .92rem }
.list .what a { font-weight: 600 }
.list .aside { text-align: right; font-size: .9rem; color: var(--muted) }

.cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr)); gap: 0 3rem }
.cols > section > h2:first-child { margin-top: 1rem }

/* úvod: hlavní úkol */
.task {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: .5rem 1.5rem;
  align-items: center;
  padding: 1.1rem 1.25rem;
  margin: 0 0 .75rem;
  background: var(--cyan-tint);
  border-radius: var(--radius);
}
.task h3 { margin: 0; font-size: 1.15rem; font-stretch: 112% }
.task p { margin: .2rem 0 0; color: var(--muted) }

.statline { margin-top: 3rem; padding-top: 1rem; border-top: 1px solid var(--line); color: var(--muted); font-size: .9rem }
.statline b { color: var(--ink); font-variant-numeric: tabular-nums }

/* segmentový přepínač (liga, slučování) */
.seg { display: inline-flex; flex-wrap: wrap; gap: 2px; padding: 3px; background: var(--paper-2); border-radius: var(--radius) }
.seg a { padding: .45rem .9rem; color: var(--ink); text-decoration: none; font-weight: 600; font-size: .9rem; border-left: 1px solid var(--line-strong) }
.seg a:first-child { border-left: 0 }
.seg a:hover { background: var(--paper-2) }
.seg a[aria-current="page"] { background: var(--ink); color: var(--paper) }

/* skok na kategorie ve výsledcích */
.catnav {
  position: sticky; top: 0; z-index: 2;
  display: flex; flex-wrap: wrap; gap: .35rem;
  margin: 0 calc(var(--pad) * -1) 1rem; padding: .6rem var(--pad);
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}
.catnav a { padding: .2rem .6rem; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; font-weight: 700; font-size: .85rem; font-stretch: 110%; color: var(--ink) }
.catnav a:hover { border-color: var(--ink) }
.cat { scroll-margin-top: 4rem }
.cat > h2 { display: flex; align-items: baseline; gap: .75rem; flex-wrap: wrap }
.cat > h2 .code { font-size: 1.6rem; font-stretch: 125% }
.cat > h2 .name { font-weight: 500; font-stretch: 100%; font-size: 1.05rem; color: var(--muted) }
.agehead { display: flex; gap: .6rem; align-items: baseline; margin: 1.25rem 0 .25rem; font-size: 1rem }

.agegrid { display: flex; flex-wrap: wrap; gap: .4rem 1.5rem; margin: .9rem 0 0; font-size: .88rem; color: var(--muted) }
.agegrid b { color: var(--ink) }

/* ---------------------------------------------------------------- přihláška */

.person-block { margin: 0 0 1.25rem }
.person-block h3 { display: flex; gap: .6rem; align-items: baseline; margin: 1.5rem 0 .25rem }
.reg td:first-child { width: 2.25rem }
.reg tr:has(input[name=model]:checked) > td { background: var(--yellow-tint) }
.reg tr:has(input[name=model]:checked) > td:first-child { box-shadow: inset 4px 0 0 var(--yellow) }
.reg td:first-child { padding-left: .5rem }
.reg select { min-height: 2.1rem; padding: .2rem .5rem }
.reg label.pick { display: block; font-weight: 600; font-size: 1rem; cursor: pointer }

.actionbar {
  position: sticky; bottom: 0; z-index: 3;
  display: flex; flex-wrap: wrap; gap: .75rem 1rem; align-items: center;
  margin: 2rem calc(var(--pad) * -1) calc(var(--pad) * -1);
  padding: .9rem var(--pad);
  background: var(--paper);
  border-top: 1px solid var(--line);
  box-shadow: 0 -10px 24px rgba(0, 0, 0, .07);
}
.actionbar .total { font-weight: 700; font-size: 1.05rem; margin-right: auto }
.actionbar .total b { font-size: 1.4rem; font-stretch: 115% }
.actionbar label { flex-direction: row; align-items: center; gap: .5rem; font-weight: 500 }

/* ---------------------------------------------------------------- dokumenty */

.doc-layout { display: grid; grid-template-columns: 15rem minmax(0, 1fr); gap: 2.5rem; align-items: start }
.doc-nav { position: sticky; top: 1rem; font-size: .92rem }
.doc-nav ul { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--line) }
.doc-nav li a { display: block; padding: .35rem .9rem; color: var(--muted); text-decoration: none; margin-left: -2px; border-left: 2px solid transparent }
.doc-nav li a:hover { color: var(--ink) }
.doc-nav li a[aria-current="page"] { color: var(--ink); font-weight: 600; border-left-color: var(--cyan) }
.doc { max-width: 72ch; line-height: 1.6 }
.doc h1, .doc h2, .doc h3 { border: 0; padding: 0; margin: 1.75rem 0 .5rem; font-size: 1.15rem; font-stretch: 105% }
.doc table { font-stretch: 100% }
.doc table td, .doc table th { border: 1px solid var(--line); padding: .4rem .6rem }
.doc li { margin: .3rem 0 }

/* ---------------------------------------------------------------- přihlášení */

.login { max-width: 24rem; margin: 2rem auto }
.login h1 { font-size: 2rem }

/* ---------------------------------------------------------------- import (admin) */

.runs { list-style: none; margin: 1rem 0 0; padding: 0 }
.runs > li { padding: 1rem 0; border-bottom: 1px solid var(--line) }
.runs .run-head { display: flex; flex-wrap: wrap; gap: .4rem .75rem; align-items: center }
.runs .run-head b { font-variant-numeric: tabular-nums }
.runs ul { margin: .5rem 0 0; padding-left: 1.2rem; font-size: .88rem }
.runs pre { white-space: pre-wrap; font-size: .82rem; margin: .5rem 0 0 }

/* ---------------------------------------------------------------- mobil */

@media (max-width: 720px) {
  .trim { padding: 0 .5rem 1rem }
  .top { padding: .8rem 1rem .7rem }
  .top .search { order: 3; flex-basis: 100%; max-width: none }
  .flaps { padding: 0 .25rem }
  .flaps a { padding: .5rem 1rem .4rem }
  .foot { padding: 0 1rem 1.5rem }
  th, td { padding: .45rem .5rem }
  .list > li { grid-template-columns: 1fr auto }
  .list .when { grid-column: 1 / -1; font-size: .85rem; color: var(--muted) }
  .task { grid-template-columns: 1fr }
  .doc-layout { grid-template-columns: 1fr; gap: 1rem }
  .doc-nav { position: static }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto }
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth }
}

.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap }
.rank.small { min-width: 1.35rem; height: 1.35rem; font-size: .72rem; margin-left: .15rem }
.mcr { font-weight: 600 }

/* v tabulkách odkazy bez podtržení; vedlejší sloupce (klub, soutěž) v barvě textu */
td a { text-decoration: none }
td a:hover { text-decoration: underline }
td:not(.name) a:not(.btn) { color: inherit }
td:not(.name) a:not(.btn):hover { color: var(--cyan) }
.catnav + .cat > h2 { border-top: 0; padding-top: 0; margin-top: 1.25rem }
@media (max-width: 720px) {
  .actionbar { margin-top: 1.25rem; padding: .6rem 1rem; gap: .5rem; display: grid; grid-template-columns: 1fr 1fr }
  .actionbar .total { grid-column: 1 / -1; font-size: .95rem }
  .actionbar .total b { font-size: 1.15rem }
  .actionbar button { white-space: normal; justify-content: center; text-align: center; line-height: 1.2 }
  .facts { gap: .5rem 1.25rem }
}
@media (max-width: 720px) {
  .catnav { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none }
  .catnav a { flex: none }
}
@media (max-width: 720px) { .hide-sm { display: none } }

/* ---------------------------------------------------------------- modernější detaily */
a { text-decoration: none }
a:hover { text-decoration: underline }
p a, .doc a, .notice a, .hint a { text-decoration: underline }   /* v souvislém textu zůstává podtržení */
.sheet { border-radius: 0 var(--radius) var(--radius) var(--radius) }
.seg a { border: 0; border-radius: 6px; color: var(--muted) }
.seg a:hover { background: var(--paper); color: var(--ink) }
.seg a[aria-current="page"] { background: var(--paper); color: var(--ink); box-shadow: 0 1px 3px rgba(0, 0, 0, .12) }
.list > li { border-bottom: 1px solid var(--line) }
.list > li:last-child { border-bottom: 0 }
.btn:hover, button:hover { border-color: var(--muted) }
input:not([type=checkbox]):not([type=radio]), select, textarea { border-radius: 6px }
.task { border-radius: var(--radius) }
.notice { border-radius: var(--radius) }
.notice::before { border-radius: var(--radius) 0 0 var(--radius) }
.chip { font-weight: 600 }
th { font-weight: 500 }
tbody tr:last-child > td { border-bottom: 0 }
.catnav a { background: var(--paper); }
.catnav a:hover { background: var(--paper-2); border-color: var(--line) }

/* přihláška: stejné sloupce u všech modelářů, varování MČR v barvě pravidel */
table.reg { table-layout: fixed; min-width: 40rem }
.reg .c-pick { width: 2.75rem }
.reg .c-cat { width: 9.5rem }
.reg .c-first { width: 22% }
.reg .c-last { width: 20% }
.reg td { overflow-wrap: break-word }
.mcr.bad { color: var(--magenta) }
.mcr.good { color: var(--green) }
.reg a.edit { color: var(--muted); text-decoration: underline; text-decoration-color: var(--field-line) }
.reg a.edit:hover { color: var(--cyan) }
.crumbs a { text-decoration: none }
.crumbs a:hover { text-decoration: underline }
@media (max-width: 720px) {
  table.reg { min-width: 0 }
  .reg .c-pick { width: 2.25rem }
  .reg .c-cat { width: 5.25rem }
  .reg .c-first { width: 6.5rem }
}
@media (max-width: 720px) {
  /* záložky jdou posouvat: náznak na pravém okraji */
  .flaps { -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent); mask-image: linear-gradient(90deg, #000 85%, transparent) }
}
.show-sm { display: none }
@media (max-width: 720px) {
  .show-sm { display: block }
  .reg .c-cat { width: 5.75rem }
  .reg .c-first { width: 6.25rem }
}
.catnav a.mcr-cat { border-color: var(--magenta); color: var(--magenta) }
.list .aside .chip { margin-left: .25rem }

table.reg tr.bad-row td { background: var(--magenta-tint) }

/* přihláška jednotlivce bez účtu */
.choose { display: grid; gap: 1rem; margin-top: 1.5rem }
.trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden }
label.check { flex-direction: row; align-items: flex-start; gap: .6rem; font-weight: 500 }
label.check input { margin-top: .3rem }
.inline-email { display: inline-flex; flex-direction: column; font-size: .85rem; gap: .15rem }

/* hodnocení */
.qrbox svg { width: 180px; height: 180px; background: #fff; padding: 6px; border-radius: 6px }
table.grid input.place { width: 3rem; text-align: center; font-size: 1.05rem; padding: .3rem }
table.grid th .sub { font-weight: 400 }
tr.done-row td { background: var(--paper-2) }
table.mcr input.pt { width: 3.4rem; text-align: center; font-size: 1rem; padding: .3rem }
table.mcr input.pt.bad { outline: 2px solid var(--magenta) }

/* přejímka */
.unit { border: 1px solid var(--line); border-radius: var(--radius); padding: .8rem 1rem; margin: .8rem 0; background: var(--paper) }
.unit.done { background: var(--green-tint) }
.unit-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .4rem 1rem; align-items: flex-start }
.unit-head h3 { margin: 0; font-size: 1.15rem }
.unit-actions { display: flex; flex-wrap: wrap; gap: .5rem; margin: .6rem 0 .3rem; align-items: center }
.unit details { margin-top: .3rem }

/* divácká soutěž */
.votebox { margin: 1.2rem 0; padding: 1rem 1.2rem; border: 2px solid var(--cyan); border-radius: var(--radius); background: var(--cyan-tint) }
.votebox h2 { margin-top: 0 }
button.votebtn { font-size: 1.3rem; padding: .9rem 1.4rem; width: 100%; max-width: 26rem }
.vote-list { list-style: none; padding: 0; display: flex; flex-direction: column; gap: .5rem }
