/* Společný vzhled: sladěno s brandingem horolezeckastenafm.cz —
   tmavě modrošedá jako lano, žlutá jako chyt. Čísla (kredit) jsou hlavní prvek,
   proto tabulární číslice. */
:root {
  --chalk: #F2F4F5;
  --paper: #FFFFFF;
  --slate: #2E4052;
  --muted: #5D6B77;
  --line: #D3DAE0;
  --rope: #2E4052;
  --rope-ink: #FFFFFF;
  --hold: #FFC81B;
  --ok: #1E8A4C;
  --stop: #C8322B;
  --font-heading: "Montserrat", "Bahnschrift", system-ui, sans-serif;
  --font: "Roboto", "Bahnschrift", system-ui, sans-serif;
  --r-sm: 6px;
  --r-lg: 14px;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.45;
  color: var(--slate);
  background: var(--chalk);
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { font-family: var(--font-heading); line-height: 1.15; margin: 0 0 .5em; font-weight: 600; }
h1 { font-size: 1.6rem; }
h2 { font-size: 1.25rem; }
h3 { font-size: 1.05rem; }
a { color: var(--rope); }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.hidden { display: none !important; }

button, .btn {
  font: inherit;
  font-weight: 600;
  border: 0;
  border-radius: var(--r-sm);
  padding: .65em 1.1em;
  background: var(--rope);
  color: var(--rope-ink);
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
}
button.secondary, .btn.secondary { background: var(--paper); color: var(--slate); box-shadow: inset 0 0 0 1.5px var(--line); }
button.danger { background: var(--stop); }
button:disabled { opacity: .5; cursor: not-allowed; }
button:focus-visible, input:focus-visible, select:focus-visible, a:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--hold);
  outline-offset: 2px;
}

input, select, textarea {
  font: inherit;
  width: 100%;
  padding: .55em .7em;
  border: 1.5px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--paper);
  color: var(--slate);
}
label { display: block; margin-bottom: .8em; }
label > span { display: block; font-size: .85rem; color: var(--muted); margin-bottom: .2em; }

.error { color: var(--stop); font-weight: 600; min-height: 1.4em; }

.login {
  max-width: 360px;
  margin: 12vh auto 0;
  padding: 1.5rem;
  background: var(--paper);
  border-radius: var(--r-lg);
  border-top: 6px solid var(--rope);
}

table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: .5em .6em; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-weight: 600; font-size: .85rem; color: var(--muted); }
td.num, th.num { text-align: right; }
.plus { color: var(--ok); }
.minus { color: var(--stop); }

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}
