:root {
  /* Colours of the Faculty of Science, Charles University (natur.cuni.cz):
     navy = the faculty website's text and icon colour, red = faculty colour,
     used here only as a small accent (logo, focus outline). */
  --ink: #003450;
  --muted: #4d6577;
  --line: #dde4ea;
  --bg: #ffffff;
  --soft: #eef3f6;
  --accent: #003450;   /* faculty navy */
  --accent-2: #ff4b5f; /* faculty light red, as in the JF logo */
  --red: #d32e3f;      /* faculty main red */
  --radius: 10px;
}

* { box-sizing: border-box; }

/* Show only the chosen language. */
body[data-lang="cs"] [data-lang="en"],
body[data-lang="en"] [data-lang="cs"] { display: none !important; }

body {
  margin: 0;
  font: 17px/1.65 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--ink);
  background: var(--bg);
}

a { color: var(--accent); }

.wrap { max-width: 760px; margin: 0 auto; padding: 0 20px; }

.hero {
  background: var(--accent);
  border-top: 5px solid var(--red);
  color: #fff;
  padding: 28px 0 44px;
}
.hero a { color: #fff; }

.topbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 22px; }
.brand { display: flex; align-items: center; gap: 12px; color: #fff; text-decoration: none; font-size: 14px; line-height: 1.3; }
.brand img { width: 64px; height: 64px; flex: none; }
.brand strong { display: block; font-size: 16px; }
.lang-switch { display: flex; gap: 6px; }
.lang-switch button {
  font: inherit; font-size: 14px;
  background: transparent; color: #fff;
  border: 1px solid rgba(255,255,255,.5); border-radius: 999px;
  padding: 3px 12px; cursor: pointer;
}
.lang-switch button[aria-pressed="true"] { background: #fff; color: var(--accent); }

/* Small red square before the kicker and section heading, like the squares in the JF logo. */
.kicker::before, .signatories h2::before {
  content: ""; display: inline-block; width: .55em; height: .55em;
  background: var(--accent-2); margin-right: .5em; vertical-align: .08em;
}
.signatories h2::before { background: var(--red); width: .45em; height: .45em; margin-right: -2px; }
.count-link strong { color: var(--accent-2); }
.letter strong { color: var(--accent); box-shadow: inset 0 -.32em 0 rgba(255, 75, 95, .22); }
.kicker { text-transform: uppercase; letter-spacing: .08em; font-size: 13px; opacity: .85; margin: 0; }
h1 { font-size: clamp(30px, 6vw, 46px); line-height: 1.15; margin: 6px 0 12px; }
.lead { font-size: 19px; opacity: .95; margin: 0 0 24px; }

.cta { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.button {
  display: inline-block;
  background: #fff; color: var(--accent) !important;
  font-weight: 700; text-decoration: none;
  padding: 12px 26px; border-radius: 999px;
  box-shadow: 0 2px 8px rgba(0,0,0,.15);
}
.button:hover { background: var(--soft); }
.signatories .button { background: var(--accent); color: #fff !important; }
.signatories .button:hover { background: #0a4a6e; }
.count-link { text-decoration: none; font-size: 18px; }
.count-link strong { font-size: 26px; margin-right: 4px; }

.letter { padding: 36px 0 8px; }
.letter p { margin: 0 0 1em; }
.letter ul { margin: 0 0 1em; padding-left: 1.4em; }
.letter li { margin: 0 0 .6em; }

.signatories { border-top: 1px solid var(--line); padding: 28px 0 40px; }
.signatories h2 { display: flex; align-items: center; gap: 10px; margin: 0 0 4px; }
.badge {
  background: var(--red); color: #fff;
  font-size: 15px; border-radius: 999px; padding: 1px 11px;
}
.breakdown { color: var(--muted); font-size: 15px; margin: 0 0 14px; }

.search {
  width: 100%; font: inherit;
  padding: 10px 14px; margin-bottom: 14px;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: #f8f9fa;
}
.search:focus { outline: 2px solid var(--accent-2); outline-offset: 1px; }

.list { list-style: none; padding: 0; margin: 0 0 18px; columns: 2 300px; column-gap: 28px; }
.list li { break-inside: avoid; padding: 6px 0; border-bottom: 1px solid var(--line); }
.list .name { display: block; font-weight: 600; }
.list .meta { display: block; color: var(--muted); font-size: 14px; line-height: 1.35; }

.empty { color: var(--muted); font-style: italic; }
.note { color: var(--muted); font-size: 14px; margin: -8px 0 14px; }
.updated { color: var(--muted); font-size: 13px; }

.site-footer { background: var(--soft); border-top: 1px solid var(--line); padding: 24px 0; font-size: 15px; }
.site-footer .small { color: var(--muted); font-size: 13px; }

/* Print / Save as PDF: the letter and the full list, nothing else. */
@media print {
  .no-print { display: none !important; }
  body { font-size: 11pt; }
  .hero { background: none; color: var(--ink); padding: 0; border: 0; }
  .letter strong { box-shadow: none; }
  .brand { color: var(--ink); }
  .brand img { display: none; }
  .hero .lead { display: none; }
  .letter { padding-top: 12px; }
  .list { columns: 2; font-size: 9.5pt; }
  .list li { padding: 2px 0; }
  .site-footer { background: none; border: 0; }
  a { color: inherit; text-decoration: none; }
}
