
/* ==========================================================================
   BioEM, FBMI ČVUT — styl webu (varianta „Technical“ s barvami EM)
   Přísná mřížka, kondenzované titulky, číslované sekce. Barvy vycházejí
   z loga (tyrkys #18a4b9, modrá #191971) a ze škály map SAR / teploty,
   která prochází celým webem: linka nad hlavičkou, čísla sekcí, karty témat.
   ========================================================================== */
:root {
  --bg: #ffffff; --surface: #ffffff; --surface-2: #f2f5f9;
  --ink: #0b0f18; --ink-2: #4f5a6c; --ink-3: #7c8697;
  --line: #0b0f18; --soft: #e2e6ec;
  --navy: #191971; --blue: #0065bd; --cyan: #18a4b9; --heat: #ff7a1a; --red: #c8102e;
  --deep: #0a1730; --deep-2: #101f3d; --deep-ink: #eef2f9; --deep-ink-2: #aebbd1; --deep-accent: #5cc8ff;
  --sar: linear-gradient(90deg, #191971 0%, #0065bd 18%, #18a4b9 36%, #7ee081 54%, #ffd23f 72%, #ff7a1a 86%, #c8102e 100%);
  --focus: #18a4b9;
  --cta-bg: #0b0f18; --cta-ink: #ffffff; --cta-muted: #c9d2e2; --logo-filter: none;
  --wrap: 1280px; --gutter: clamp(16px, 3vw, 32px);
  --font-display: "Barlow Condensed", "Arial Narrow", "Segoe UI", sans-serif;
  --font-body: "Source Sans 3", "Segoe UI", Arial, sans-serif;
  --font-mono: "IBM Plex Mono", Consolas, "Courier New", monospace;
  color-scheme: light;
}
/* tmavý režim: zapíná ho přepínač v hlavičce (uloží se do prohlížeče) */
:root[data-theme="dark"] {
  --bg: #0c1322; --surface: #111a2b; --surface-2: #182339;
  --ink: #e9eef6; --ink-2: #b3bdcc; --ink-3: #8590a3;
  --line: #e9eef6; --soft: #26324a;
  --navy: #9fb3ff; --blue: #5aa9ff; --cyan: #2fc1d8; --heat: #ff8c47; --red: #ff5a6a;
  --focus: #2fc1d8;
  --cta-bg: #18233a; --cta-ink: #e9eef6; --cta-muted: #b3bdcc; --logo-filter: brightness(0) invert(1);
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .live::before { animation: none; } }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font-body); font-size: 17px; line-height: 1.55; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; text-decoration-color: var(--cyan); }
a:hover { color: var(--cyan); }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; line-height: .98; margin: 0 0 .45em; text-transform: uppercase; letter-spacing: .005em; text-wrap: balance; color: var(--ink); }
h1 { font-size: clamp(2.4rem, 5.2vw, 4.4rem); }
h2 { font-size: clamp(1.8rem, 3vw, 2.5rem); }
h3 { font-size: 1.35rem; }
h4 { font-size: 1.05rem; }
h1 em { font-style: normal; color: var(--cyan); }
p { margin: 0 0 1em; } p:last-child { margin-bottom: 0; }
ul, ol { margin: 0 0 1em; padding-left: 1.3em; }
.wrap { width: min(var(--wrap), 100%); margin-inline: auto; padding-inline: var(--gutter); }
.narrow { max-width: 900px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--surface); padding: 8px 12px; z-index: 100; }
.skip:focus { left: 8px; }
.topline { height: 5px; background: var(--sar); }
.mono, .eyebrow, .tag, .kv dt, .code, .yrs, .pwhere, .scale, .scale-labels, .instrument-head, .group-title, .pills a, .links a, .ico, .sub, .more, .tbl .k {
  font-family: var(--font-mono); font-size: .74rem; letter-spacing: .08em; text-transform: uppercase; }
.eyebrow { color: var(--cyan); margin: 0 0 14px; font-weight: 500; }
.lead { font-size: 1.15rem; color: var(--ink-2); max-width: 60ch; }
.tag { display: inline-block; color: var(--ink-2); border: 1px solid var(--soft); padding: 3px 8px; letter-spacing: .04em; text-transform: none; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 1.4em; }
.btn { display: inline-block; font-family: var(--font-display); font-weight: 600; font-size: 1rem; text-transform: uppercase; letter-spacing: .08em; padding: 13px 22px; text-decoration: none; border: 1.5px solid var(--ink); transition: background .15s, color .15s, border-color .15s; }
.btn-primary { background: var(--ink); color: var(--bg); }
.btn-primary:hover { background: var(--navy); border-color: var(--navy); color: #fff; }
.btn-ghost { background: var(--surface); color: var(--ink); }
.btn-ghost:hover { border-color: var(--cyan); color: var(--cyan); }
.ticon { width: 24px; height: 24px; flex: 0 0 24px; color: var(--cyan); }
.scale { display: flex; align-items: center; gap: 12px; color: var(--ink-3); padding: 0 var(--gutter) 14px; }
.scale-bar { display: block; flex: 1; height: 4px; background: var(--sar); }
.more { margin-top: 18px; } .more a { text-decoration: none; font-weight: 500; color: var(--navy); } .more a:hover { color: var(--cyan); }

/* --- hlavička ---------------------------------------------------------- */
.site-head { background: var(--surface); border-bottom: 2px solid var(--line); position: sticky; top: 0; z-index: 50; }
.head-row { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 80px; }
.brand img { height: 54px; width: auto; filter: var(--logo-filter); }
.nav { display: flex; align-items: center; gap: 8px; }
.head-tools { display: flex; align-items: center; gap: 8px; order: 3; }
.theme-btn svg { width: 20px; height: 20px; }
/* ikona ukazuje cílový režim (stejně jako jazyk ukazuje EN/CS): ve světlém měsíc, v tmavém slunce */
.theme-btn .i-sun { display: none; }
:root[data-theme="dark"] .theme-btn .i-moon { display: none; }
:root[data-theme="dark"] .theme-btn .i-sun { display: block; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 2px; flex-wrap: wrap; }
.nav a { display: block; padding: 10px 11px; color: var(--ink); text-decoration: none; font-family: var(--font-display); font-weight: 600; font-size: 1rem; text-transform: uppercase; letter-spacing: .07em; border-bottom: 2px solid transparent; }
.nav a:hover { color: var(--cyan); }
.nav a[aria-current="page"] { border-bottom-color: var(--cyan); }
.nav .lang, .lang-m, .theme-btn { display: inline-flex; align-items: center; justify-content: center; height: 40px; width: 40px; padding: 0; border: 1px solid var(--soft); background: none; color: var(--ink); font-family: var(--font-mono); font-size: .78rem; font-weight: 500; letter-spacing: .06em; text-decoration: none; line-height: 1; cursor: pointer; transition: border-color .2s, color .2s; }
.nav .lang:hover, .lang-m:hover, .theme-btn:hover { border-color: var(--cyan); color: var(--cyan); }
.menu-btn { display: none; background: none; border: 1px solid var(--soft); width: 40px; height: 40px; padding: 9px 10px; cursor: pointer; flex-direction: column; justify-content: space-between; }
.menu-btn span:not(.sr) { display: block; height: 2px; background: var(--ink); }
@media (max-width: 1000px) {
  .menu-btn { display: flex; }
  .head-tools { order: 2; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--surface); border-bottom: 2px solid var(--line); padding: 8px var(--gutter) 16px; flex-direction: column; align-items: stretch; }
  .nav.open { display: flex; }
  .nav ul { flex-direction: column; gap: 0; }
  .nav a { padding: 12px 6px; border-bottom: 1px solid var(--soft); }
  .nav a[aria-current="page"] { color: var(--cyan); }
  .nav .lang { align-self: flex-start; margin-top: 12px; }
}

/* --- hero a hlavičky stránek ------------------------------------------- */
.hero { padding-top: clamp(32px, 5vw, 56px); border-bottom: 2px solid var(--line); padding-bottom: 28px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(28px, 4vw, 56px); align-items: center; padding-bottom: 28px; }
.hero-text h1 { max-width: 18ch; }
.meta { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px 24px; border-top: 1px solid var(--soft); padding-top: 22px; }
.meta > div { border-left: 2px solid var(--line); padding-left: 16px; }
.meta b { display: block; font-family: var(--font-display); font-weight: 600; font-size: 2.6rem; line-height: 1; font-variant-numeric: tabular-nums; background: var(--sar); -webkit-background-clip: text; background-clip: text; color: transparent; }
.meta .mono { color: var(--ink-3); }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .meta { grid-template-columns: 1fr 1fr; } }
.page-head { padding-top: clamp(32px, 5vw, 56px); border-bottom: 2px solid var(--line); }
.page-head .wrap { padding-bottom: clamp(24px, 4vw, 40px); }
.page-head h1 { max-width: 22ch; }
.ph-grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(24px, 4vw, 56px); align-items: center; }
.ph-fig { margin: 0; } .ph-fig img { width: 100%; border: 1px solid var(--soft); }
@media (max-width: 860px) { .ph-grid { grid-template-columns: 1fr; } .ph-fig { max-width: 560px; } }
.page-head .lead { margin-top: .3em; }

/* přístrojový panel s mapou pole (široký pás) */
.instrument { margin: 0; background: var(--deep); color: var(--deep-ink); padding: 10px 12px 8px; }
.instrument-head { display: flex; justify-content: space-between; gap: 12px; color: var(--deep-ink-2); padding: 2px 4px 8px; font-size: .68rem; }
.live { color: var(--deep-accent); white-space: nowrap; }
.live::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--deep-accent); margin-right: 6px; vertical-align: 1px; animation: blink 1.6s infinite; }
@keyframes blink { 50% { opacity: .25; } }
#fieldmap { display: block; width: 100%; height: auto; background: var(--deep); }
.instrument-foot { display: flex; flex-direction: column; gap: 4px; padding: 8px 4px 2px; }
.scale-labels { display: flex; justify-content: space-between; color: var(--deep-ink-2); font-size: .66rem; }
.instrument figcaption { font-size: .85rem; color: var(--deep-ink-2); padding: 8px 4px 4px; line-height: 1.4; font-family: var(--font-body); }

/* --- číslované sekce --------------------------------------------------- */
.row { border-bottom: 1px solid var(--soft); scroll-margin-top: 90px; }
.row-grid { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 32px; padding-block: clamp(32px, 5vw, 56px); }
.row-head { position: sticky; top: 100px; align-self: start; }
.row-head .num { display: block; font-family: var(--font-mono); font-weight: 500; font-size: 1rem; letter-spacing: .12em; margin-bottom: 6px; }
.row-head h2 { margin-bottom: 4px; }
.row-head .sub { color: var(--ink-3); margin: 8px 0 0; text-transform: none; letter-spacing: .04em; }
@media (max-width: 900px) { .row-grid { grid-template-columns: 1fr; gap: 16px; } .row-head { position: static; } }
.section { padding-block: clamp(32px, 5vw, 56px); border-bottom: 1px solid var(--soft); }
.section-alt { background: var(--surface-2); }
.section-head { max-width: 62ch; margin-bottom: 28px; }

/* tabulky (aktuality, publikace, projekty) */
.tbl { width: 100%; border-collapse: collapse; }
.tbl td { padding: 14px 12px 14px 0; border-top: 1px solid var(--soft); vertical-align: top; }
.tbl tr:first-child td { border-top: 0; padding-top: 0; }
.tbl .k { width: 120px; color: var(--ink-3); padding-top: 18px; white-space: nowrap; }
.tbl tr:first-child .k { padding-top: 4px; }
.tbl b { font-weight: 600; } .tbl a { text-decoration: none; } .tbl a:hover b { color: var(--cyan); }
.tbl p { margin: 2px 0 0; color: var(--ink-2); font-size: .95rem; }
@media (max-width: 600px) { .tbl td.k { display: block; width: auto; padding-bottom: 0; border-top: 1px solid var(--soft); } .tbl td:not(.k) { display: block; border-top: 0; padding-top: 4px; } }

/* karty výzkumu (barva z SAR škály) */
.rgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 22px 20px; }
.rcard { display: flex; flex-direction: column; text-decoration: none; color: inherit; border-top: 3px solid var(--c, var(--cyan)); padding-top: 12px; }
.rcard-img { aspect-ratio: 4 / 3; overflow: hidden; border: 1px solid var(--soft); background: #fff; }
.rcard-img img { width: 100%; height: 100%; object-fit: cover; object-position: left center; transition: transform .25s; }
.rcard:hover .rcard-img img { transform: scale(1.03); }
.rcard-body { padding-top: 12px; display: flex; flex-direction: column; gap: 6px; }
.rcard-top { display: flex; align-items: center; gap: 10px; } .rcard-top .ticon { color: var(--c, var(--cyan)); }
.rcard-body h3 { font-size: 1.3rem; margin: 2px 0 0; }
.rcard-body p { color: var(--ink-2); font-size: .95rem; margin: 0; }
.rcard:hover h3 { color: var(--c, var(--cyan)); }

/* lidé na úvodu */
.pgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 18px 14px; }
.pcard { text-decoration: none; color: inherit; }
.pcard img, .pcard .ini { aspect-ratio: 1; width: 100%; object-fit: cover; border: 1px solid var(--soft); display: grid; place-items: center; font-family: var(--font-display); font-weight: 600; font-size: 1.6rem; color: var(--cyan); background: var(--surface-2); }
.pcard b { display: block; font-weight: 600; font-size: .92rem; margin-top: 8px; line-height: 1.2; }

/* dvousloupcové bloky */
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(24px, 4vw, 48px); align-items: start; }
.split-rev { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); }
.split-img img { width: 100%; border: 1px solid var(--soft); }
@media (max-width: 820px) { .split, .split-rev { grid-template-columns: 1fr; } }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: 8px 20px; margin: 1em 0; }
.kv dt { color: var(--ink-3); padding-top: 4px; } .kv dd { margin: 0; }
@media (max-width: 480px) { .kv { grid-template-columns: 1fr; gap: 2px; } .kv dd { margin-bottom: 10px; } }

/* výzva pro studenty */
.cta { background: var(--cta-bg); color: var(--cta-ink); border-bottom: 5px solid transparent; border-image: var(--sar) 1; }
.cta-grid { display: flex; justify-content: space-between; align-items: center; gap: 28px; flex-wrap: wrap; padding-block: clamp(32px, 5vw, 56px); }
.cta h2 { color: var(--cta-ink); font-size: clamp(2rem, 4vw, 3.2rem); max-width: 22ch; } .cta p { color: var(--cta-muted); max-width: 60ch; }
.cta .eyebrow { color: var(--deep-accent); }
.cta .btn-primary { background: var(--cta-ink); color: var(--cta-bg); border-color: var(--cta-ink); } .cta .btn-primary:hover { background: var(--cyan); border-color: var(--cyan); color: #fff; }

/* --- stránka výzkum --------------------------------------------------- */
.toc { list-style: none; padding: 0; margin: 24px 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 8px; }
.toc a { display: flex; gap: 12px; align-items: center; padding: 10px 12px; border: 1px solid var(--soft); background: var(--surface); text-decoration: none; color: var(--ink); font-family: var(--font-display); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; font-size: 1rem; }
.toc a:hover { border-color: var(--cyan); color: var(--cyan); }
.topic { padding-block: clamp(32px, 5vw, 56px); border-bottom: 1px solid var(--soft); scroll-margin-top: 90px; }
.topic-head { display: flex; gap: 18px; align-items: flex-start; margin-bottom: 20px; }
.topic-head .tag { margin-bottom: .5em; }
.topic-icon { flex: 0 0 56px; width: 56px; height: 56px; border: 1.5px solid var(--ink); display: grid; place-items: center; }
.topic-icon .ticon { width: 30px; height: 30px; flex-basis: 30px; }
.topic-fig { margin: 0 0 28px; background: #fff; border: 1px solid var(--soft); padding: 12px; }
.topic-fig img { width: 100%; }
.topic-grid { display: grid; grid-template-columns: minmax(0, 1fr); }
.topic-text { max-width: 72ch; } .topic-text h3 { margin-top: 1.6em; }
.ticks { list-style: none; padding: 0; margin: .6em 0 1.2em; }
.ticks li { position: relative; padding-left: 22px; margin-bottom: .45em; }
.ticks li::before { content: ""; position: absolute; left: 0; top: .6em; width: 9px; height: 9px; background: var(--cyan); }

/* --- tým (vedoucí + mřížka) ------------------------------------------- */
.ph.ini { display: grid; place-items: center; font-family: var(--font-display); font-weight: 600; color: var(--cyan); background: var(--surface-2); }
.leadp { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: clamp(24px, 4vw, 56px); align-items: center; border: 1px solid var(--soft); background: var(--surface); padding: clamp(18px, 3vw, 36px); position: relative; scroll-margin-top: 100px; }
.leadp::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: var(--sar); }
.leadp .ph { width: 100%; aspect-ratio: 1; object-fit: cover; border: 1px solid var(--soft); font-size: 4rem; }
.leadp h2 { font-family: var(--font-body); font-weight: 600; text-transform: none; letter-spacing: 0; font-size: 1.7rem; margin: 6px 0 4px; }
.leadp .role { font-family: var(--font-mono); font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; color: var(--heat); }
.leadp p { color: var(--ink-2); }
@media (max-width: 720px) { .leadp { grid-template-columns: 1fr; } }
.staffg { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 18px; }
.staffc { display: grid; grid-template-columns: 110px 1fr; gap: 16px; border: 1px solid var(--soft); background: var(--surface); padding: 16px; scroll-margin-top: 100px; }
.staffc .ph { width: 110px; height: 110px; object-fit: cover; border: 1px solid var(--soft); font-size: 2rem; }
.staffc h3 { font-family: var(--font-body); font-weight: 600; text-transform: none; letter-spacing: 0; font-size: 1.05rem; margin: 0 0 6px; }
.staffc p { color: var(--ink-2); font-size: .92rem; margin: 0 0 8px; }
@media (max-width: 420px) { .staffc { grid-template-columns: 1fr; } }
.phd { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 22px 16px; }
.phd .p { text-align: center; scroll-margin-top: 100px; }
.phd .ph { width: 120px; height: 120px; border-radius: 50%; object-fit: cover; margin: 0 auto 10px; border: 3px solid var(--surface); box-shadow: 0 0 0 2px #2fb37a; font-size: 2rem; color: #2fb37a; }
.phd b { display: block; font-weight: 600; font-size: .95rem; line-height: 1.2; }
.phd .links { justify-content: center; margin-top: 8px; }
.links { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.links a, .ico { text-decoration: none; border: 1px solid var(--soft); padding: 4px 8px; color: var(--ink-2); font-size: .72rem; }
.links a:hover, .ico:hover { border-color: var(--cyan); color: var(--cyan); }
.ico-orcid { display: inline-flex; align-items: center; gap: 5px; } .ico-orcid svg { width: 13px; height: 13px; }
.note { margin-top: 32px; color: var(--ink-2); font-size: .95rem; }
/* starší třídy (šablony) */
.people { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.person { display: flex; gap: 16px; border: 1px solid var(--soft); background: var(--surface); padding: 18px; }
.avatar { flex: 0 0 84px; width: 84px; height: 84px; } .avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar span { display: grid; place-items: center; width: 100%; height: 100%; background: var(--surface-2); color: var(--cyan); font-family: var(--font-display); font-weight: 600; font-size: 1.6rem; }
.person h3 { font-family: var(--font-body); font-weight: 600; text-transform: none; letter-spacing: 0; font-size: 1.25rem; }
.person .role { color: var(--heat); font-family: var(--font-mono); font-size: .74rem; letter-spacing: .08em; text-transform: uppercase; }
.person p { color: var(--ink-2); font-size: .95rem; }

/* --- publikace --------------------------------------------------------- */
.pills { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 20px; }
.pills a { text-decoration: none; border: 1px solid var(--soft); padding: 5px 11px; color: var(--ink-2); font-size: .74rem; }
.pills a:hover { border-color: var(--cyan); color: var(--cyan); }
.pubyear { display: grid; grid-template-columns: 120px 1fr; gap: 20px; padding-block: 24px; border-bottom: 1px solid var(--soft); scroll-margin-top: 90px; }
.pubyear h2 { font-size: 2rem; color: var(--navy); margin: 0; line-height: 1; }
.publist { list-style: none; padding: 0; margin: 0; }
.publist li { padding: 10px 0; border-top: 1px solid var(--soft); font-size: .98rem; overflow-wrap: anywhere; }
.publist li:first-child { border-top: 0; padding-top: 0; }
.v3s { display: inline-block; font-family: var(--font-mono); font-size: .68rem; letter-spacing: .08em; border: 1px solid var(--soft); padding: 2px 7px; margin-left: 6px; text-decoration: none; color: var(--ink-2); vertical-align: 1px; }
.v3s:hover { border-color: var(--cyan); color: var(--cyan); }
.publist .pt { display: block; color: var(--ink); font-weight: 600; line-height: 1.35; }
.publist .pm { display: block; color: var(--ink-2); font-size: .9rem; margin-top: 3px; }
.publist .pl { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 0; margin-top: 6px; }
.publist .pl .v3s:first-of-type { margin-left: 0; }
.pk { font-family: var(--font-mono); font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; color: var(--cyan); margin-right: 10px; }
.publist li[data-kind="proc"] .pk { color: var(--green, #2fb37a); }
.publist li[data-kind="other"] .pk { color: var(--ink-2); }
.publist li[hidden], .pubyear[hidden] { display: none; }
.pubtools { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; margin-top: 22px; }
.pubfilter { display: flex; flex-wrap: wrap; gap: 6px; }
.pubfilter button { font: inherit; font-size: .84rem; cursor: pointer; background: transparent; border: 1px solid var(--soft); color: var(--ink-2); padding: 6px 12px; transition: border-color .2s, color .2s, background .2s; }
.pubfilter button .mono { font-size: .68rem; margin-left: 4px; opacity: .7; }
.pubfilter button:hover { border-color: var(--cyan); color: var(--cyan); }
.pubfilter button.on { background: var(--navy); border-color: var(--navy); color: #fff; }
.pubsearch input { font: inherit; font-size: .9rem; color: var(--ink); background: var(--bg, transparent); border: 1px solid var(--soft); padding: 6px 10px; min-width: 240px; }
.pubsearch input:focus { outline: none; border-color: var(--cyan); }
.pubcount { font-size: .72rem; color: var(--ink-2); margin: 0; }
.pubempty { padding: 24px 0; color: var(--ink-2); }
@media (max-width: 640px) { .pubyear { grid-template-columns: 1fr; gap: 8px; } .pubsearch, .pubsearch input { width: 100%; min-width: 0; } }

/* --- projekty ---------------------------------------------------------- */
.pgroup { padding-block: 20px 28px; border-bottom: 1px solid var(--soft); }
.pgroup h2 { font-size: 1.6rem; margin-bottom: 14px; }
.projlist { list-style: none; padding: 0; margin: 0; }
.projlist li { display: grid; grid-template-columns: 230px 1fr; gap: 6px 20px; padding: 10px 0; border-top: 1px solid var(--soft); }
.projlist li:first-child { border-top: 0; }
.projlist .meta { display: flex; flex-direction: column; gap: 2px; border: 0; padding: 0; }
.code { color: var(--navy); font-size: .78rem; text-transform: none; }
.yrs { color: var(--ink-3); font-size: .74rem; font-variant-numeric: tabular-nums; }
.projlist .role { display: block; color: var(--ink-3); font-size: .9rem; margin-top: 2px; }
@media (max-width: 640px) { .projlist li { grid-template-columns: 1fr; } }

/* --- partneři ---------------------------------------------------------- */
.partners { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 0 32px; }
.partners li { display: flex; flex-direction: column; gap: 2px; padding: 14px 0; border-bottom: 1px solid var(--soft); }
.pname { font-weight: 600; font-size: 1.02rem; }
.pwhere { color: var(--ink-3); text-transform: none; font-size: .76rem; }

/* --- REMMA ------------------------------------------------------------- */
.remma-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
.remma-facts { border: 1px solid var(--soft); background: var(--surface); padding: 24px; position: relative; }
.remma-facts::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: var(--sar); }
.remma-facts .kv { margin-top: 0; }
.remma-rules h2 { font-size: 1.6rem; } .remma-rules h2:not(:first-child) { margin-top: 1.4em; }
@media (max-width: 820px) { .remma-grid { grid-template-columns: 1fr; } }
.pasts { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; margin-top: 24px; }
.past { border: 1px solid var(--soft); overflow: hidden; background: var(--surface); }
.past-img { aspect-ratio: 3 / 2; background: var(--surface-2); } .past-img img { width: 100%; height: 100%; object-fit: cover; }
.past-body { padding: 16px 18px 18px; } .past-body h3 { margin-bottom: .2em; } .past-body p { color: var(--ink-2); font-size: .95rem; }

/* --- patička ----------------------------------------------------------- */
.site-foot { border-top: 2px solid var(--line); margin-top: 0; font-size: .95rem; color: var(--ink-2); }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; padding-block: 40px 28px; }
.foot-col h4 { font-family: var(--font-mono); font-weight: 500; font-size: .74rem; letter-spacing: .08em; text-transform: uppercase; color: var(--cyan); margin-bottom: .8em; }
.foot-col a { color: var(--ink); text-decoration: none; } .foot-col a:hover { color: var(--cyan); }
.foot-logo { height: 60px; width: auto; margin-bottom: 14px; filter: var(--logo-filter); }
.foot-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding-block: 16px 24px; border-top: 1px solid var(--soft); font-size: .85rem; color: var(--ink-3); }
.foot-bottom a { color: var(--ink-3); }
@media (max-width: 860px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .foot-grid { grid-template-columns: 1fr; } }

/* --- animace (krátké a jemné běží vždy; jen smyčka mapy pole respektuje „omezit pohyb“) --- */
.pulse { display: block; width: 160px; height: 28px; color: var(--cyan); margin: -4px 0 10px; }
  /* pulz z loga se po načtení nakreslí */
  .pulse path { stroke-dasharray: 100; stroke-dashoffset: 100; animation: draw 1.4s cubic-bezier(.4,0,.2,1) .2s forwards; }
  @keyframes draw { to { stroke-dashoffset: 0; } }
  /* náběh úvodu: postupně eyebrow, titulek, text, tlačítka, čísla */
  .hero .eyebrow, .hero h1, .hero .lead, .hero .actions, .hero .meta > div, .page-head .eyebrow, .page-head h1, .page-head .lead, .page-head .toc, .page-head .pills {
    animation: rise .7s cubic-bezier(.2,.7,.2,1) both; }
  .hero h1, .page-head h1 { animation-delay: .08s; }
  .hero .lead, .page-head .lead { animation-delay: .16s; }
  .hero .actions, .page-head .toc, .page-head .pills { animation-delay: .24s; }
  .hero .meta > div:nth-child(1) { animation-delay: .30s; } .hero .meta > div:nth-child(2) { animation-delay: .38s; }
  .hero .meta > div:nth-child(3) { animation-delay: .46s; } .hero .meta > div:nth-child(4) { animation-delay: .54s; }
  .hero .instrument { animation: rise .8s cubic-bezier(.2,.7,.2,1) .35s both; }
  @keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
  /* škála SAR pod úvodem se „naplní“ zleva */
  .hero .instrument-foot .scale-bar, .page-head .scale-bar { transform-origin: left; animation: grow 1.2s cubic-bezier(.2,.7,.2,1) .5s both; }
  @keyframes grow { from { transform: scaleX(0); } to { transform: scaleX(1); } }
  /* odhalování při scrollování (prohlížeče se scroll-driven animacemi; jinde je vše zobrazené hned) */
  @supports (animation-timeline: view()) {
    .rcard, .pcard, .tbl tr, .split, .topic, .person, .staffc, .phd .p, .leadp, .past, .pgroup, .pubyear, .partners li, .cta-grid > * {
      animation: reveal linear both; animation-timeline: view(); animation-range: entry 0% entry 28%; }
    @keyframes reveal { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
    .row-head .num { animation: reveal linear both; animation-timeline: view(); animation-range: entry 0% entry 20%; }
  }
  /* mikrointerakce */
  .rcard { transition: transform .25s cubic-bezier(.2,.7,.2,1); } .rcard:hover { transform: translateY(-4px); }
  .pcard img, .avatar img { transition: transform .35s; } .pcard:hover img { transform: scale(1.03); }
  .btn { transition: background .15s, color .15s, border-color .15s, transform .15s; } .btn:hover { transform: translateY(-1px); }
  .nav a { position: relative; border-bottom-color: transparent; }
  .nav a::after { content: ""; position: absolute; left: 11px; right: 11px; bottom: 6px; height: 2px; background: var(--cyan); transform: scaleX(0); transform-origin: left; transition: transform .25s cubic-bezier(.2,.7,.2,1); }
  .nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }
  .nav a[aria-current="page"] { border-bottom-color: transparent; }
  .toc a, .pills a, .links a, .ico { transition: border-color .2s, color .2s, transform .2s; } .toc a:hover { transform: translateX(3px); }
  .tbl a b { background: linear-gradient(var(--cyan), var(--cyan)) no-repeat 0 100% / 0 1px; transition: background-size .3s; }
  .tbl a:hover b { background-size: 100% 1px; }


/* --- vedené závěrečné práce (Pro studenty) ------------------------------ */
.theses { border-top: 2px solid var(--line); }
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; }
.step { border-top: 3px solid var(--c, var(--cyan)); padding-top: 12px; }
.step-n { color: var(--c, var(--cyan)); font-size: .8rem; letter-spacing: .12em; display: block; margin-bottom: 8px; }
.step h3 { font-size: 1.35rem; margin-bottom: .3em; }
.step p { color: var(--ink-2); font-size: .97rem; margin: 0; }
.th { border-bottom: 1px solid var(--soft); }
.th summary { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 14px 0; cursor: pointer; list-style: none; }
.th summary::-webkit-details-marker { display: none; }
.th summary::before { content: "+"; font-family: var(--font-mono); color: var(--cyan); width: 18px; flex: 0 0 18px; }
.th[open] summary::before { content: "–"; }
.th summary:hover .th-name { color: var(--cyan); }
.th-name { font-weight: 600; flex: 1; }
.th-count { color: var(--ink-3); font-size: .74rem; white-space: nowrap; }
.th-body { padding: 0 0 18px 18px; }
.th-body h4 { font-family: var(--font-mono); font-weight: 500; font-size: .74rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); margin: 14px 0 6px; }
.thlist { list-style: none; margin: 0; padding: 0; }
.thlist li { display: grid; grid-template-columns: 56px 1fr; gap: 12px; padding: 8px 0; border-top: 1px dashed var(--soft); font-size: .95rem; }
.thlist li:first-child { border-top: 0; }
.thlist .k { color: var(--ink-3); padding-top: 3px; }
.thlist a { color: var(--ink-2); text-decoration-color: var(--soft); } .thlist a:hover { color: var(--cyan); }
@media (max-width: 480px) { .th summary { flex-wrap: wrap; } .th-body { padding-left: 0; } }
/* --- mobil ------------------------------------------------------------- */
.nav .lang { display: none; }
@media (max-width: 640px) {
  body { font-size: 16px; }
  .head-row { min-height: 64px; }
  .brand img { height: 42px; }
  .hero { padding-top: 24px; }
  .hero-text h1 { font-size: 2.3rem; }
  .lead { font-size: 1.02rem; }
  .actions { flex-direction: column; }
  .actions .btn { text-align: center; }
  .meta { gap: 14px 12px; }
  .meta b { font-size: 2.1rem; }
  .row-grid { padding-block: 28px; }
  .row-head h2 { font-size: 1.7rem; }
  .instrument { padding: 8px 8px 6px; }
  .instrument figcaption { font-size: .8rem; }
  .cta-grid { padding-block: 32px; }
  .cta h2 { font-size: 1.8rem; }
  .page-head h1 { font-size: 2.2rem; }
  .topic-fig { padding: 6px; }
  .leadp .ph { max-width: 240px; }
  .foot-grid { padding-block: 32px 20px; gap: 22px; }
}
