/* Veřejné stránky komisari.akpcr.cz – barvy podle motivu aplikace (.streamlit/config.toml). */
:root {
  --primary: #1F3B63;
  --text: #1B2430;
  --muted: #5A6472;
  --bg: #FFFFFF;
  --bg-2: #F4F6F9;
  --border: #D9DEE5;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: "Source Sans 3", "Source Sans Pro", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
}

a { color: var(--primary); text-underline-offset: 2px; }
a:hover { text-decoration-thickness: 2px; }

header {
  background: var(--bg-2);
  border-bottom: 1px solid var(--border);
}

.wrap { max-width: 46rem; margin: 0 auto; padding: 0 1.25rem; }

header .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: .25rem 1.5rem;
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.brand { font-weight: 650; font-size: 1.1rem; color: var(--primary); text-decoration: none; }
.brand small { display: block; font-weight: 400; font-size: .85rem; color: var(--muted); }

nav a { margin-left: 1rem; font-size: .95rem; white-space: nowrap; }
nav a:first-child { margin-left: 0; }
nav a[aria-current="page"] { font-weight: 600; text-decoration: none; color: var(--text); }

main.wrap { padding-top: 2rem; padding-bottom: 3rem; }

h1 { font-size: 1.9rem; font-weight: 650; line-height: 1.25; margin: 0 0 .5rem; }
h2 { font-size: 1.3rem; font-weight: 600; margin: 2.25rem 0 .5rem; }
h3 { font-size: 1.05rem; font-weight: 600; margin: 1.5rem 0 .25rem; }

.lead { font-size: 1.1rem; color: var(--muted); margin-top: 0; }
.meta { color: var(--muted); font-size: .95rem; }

ul, ol { padding-left: 1.4rem; }
li { margin: .2rem 0; }

dl.contact { display: grid; grid-template-columns: max-content 1fr; gap: .15rem 1rem; margin: .5rem 0; }
dl.contact dt { color: var(--muted); }
dl.contact dd { margin: 0; }

table { width: 100%; border-collapse: collapse; margin: .75rem 0; font-size: .95rem; }
th, td { text-align: left; vertical-align: top; padding: .5rem .6rem; border-bottom: 1px solid var(--border); }
th { background: var(--bg-2); font-weight: 600; }

.button {
  display: inline-block;
  margin: 1rem 0 .5rem;
  padding: .6rem 1.2rem;
  background: var(--primary);
  color: #fff;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 600;
}
.button:hover { background: #172d4c; }

.note {
  background: var(--bg-2);
  border-left: 3px solid var(--primary);
  padding: .75rem 1rem;
  margin: 1.25rem 0;
}

footer {
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: .9rem;
  padding: 1.25rem 0 2rem;
}
footer a { margin-right: 1rem; }

@media (max-width: 34rem) {
  table, thead, tbody, tr, th, td { display: block; }
  thead { display: none; }
  td { border: 0; padding: .1rem 0; }
  tr { border-bottom: 1px solid var(--border); padding: .5rem 0; }
  td:first-child { font-weight: 600; }
}
