/* ==========================================================================
   robertprosecky.site — generováno build-css.py z design-kit/.
   NEEDITUJ tenhle soubor: změny patří do design-kit/ a přegenerují se.
   ========================================================================== */

/* ==========================================================================
   Prosecký Design System — Foundations
   Cardiology / peer-physician audience. Dark base, champagne gold accent,
   editorial-serif voice with high-contrast type, 80% liquid-glass intensity.
   ========================================================================== */

/* --- Webfonty: viz css/fonts.css (lokální woff2, žádné CDN) ----------------- */

:root {
  /* ==========================================================================
     COLOR — Dark base + champagne gold + editorial neutrals
     Base: cool charcoal (#0F1418).  Accent: champagne (#E8C77A).
     ========================================================================== */

  /* Surface scale — cool charcoal, ramps from near-black to elevated panels */
  --surface-0: #0A0D10;        /* deepest — page background, gutters */
  --surface-1: #0F1418;        /* primary background */
  --surface-2: #141A20;        /* elevated panel */
  --surface-3: #1B232A;        /* card hover, inset wells */
  --surface-4: #232C35;        /* highest panel, popovers */
  --surface-line: #2A3540;     /* hairline divider */

  /* Foreground (cool, slightly warm-tinted to pair with gold) */
  --fg-1: #F4EFE3;             /* primary text — warm ivory */
  --fg-2: #C8C2B5;             /* secondary text */
  --fg-3: #8C8779;             /* tertiary / meta */
  --fg-4: #5A564D;             /* placeholder, disabled */
  --fg-on-gold: #0A0D10;       /* text on gold surfaces */

  /* Champagne gold scale — the brand accent */
  --gold-50:  #F8EFD3;
  --gold-100: #F1E2B0;
  --gold-200: #ECD693;
  --gold-300: #E8C77A;         /* PRIMARY ACCENT */
  --gold-400: #D9B25C;
  --gold-500: #B8923F;
  --gold-600: #8E6F2E;
  --gold-700: #5E4A1F;
  --gold-800: #3A2E13;
  --gold-900: #1F1809;

  /* Semantic */
  --accent: var(--gold-300);
  --accent-soft: rgba(232, 199, 122, 0.16);
  --accent-line: rgba(232, 199, 122, 0.32);
  --accent-glow: rgba(232, 199, 122, 0.45);

  --signal-pulse: #C53B3B;     /* cardiac red — used sparingly, e.g. heart-rate marks */
  --signal-vital: #6B9E8F;     /* muted teal — secondary data accent */

  /* ==========================================================================
     LIQUID GLASS — for the 80% liquid intensity setting.
     Use these on top of darker surfaces. Always pair with backdrop-filter.
     ========================================================================== */
  --glass-bg:        rgba(20, 26, 32, 0.55);
  --glass-bg-strong: rgba(27, 35, 42, 0.72);
  --glass-bg-gold:   rgba(232, 199, 122, 0.08);
  --glass-border:    rgba(244, 239, 227, 0.08);
  --glass-border-gold: rgba(232, 199, 122, 0.22);
  --glass-highlight: rgba(255, 255, 255, 0.06);   /* top inner-stroke */
  --glass-shadow:    0 24px 60px -20px rgba(0, 0, 0, 0.7),
                     0 1px 0 rgba(255, 255, 255, 0.04) inset,
                     0 -1px 0 rgba(0, 0, 0, 0.3) inset;
  --glass-blur:      24px;
  --glass-saturate:  140%;

  /* Subtle gold film for highlighted glass panels */
  --glass-gold-sheen: linear-gradient(
    135deg,
    rgba(232, 199, 122, 0.12) 0%,
    rgba(232, 199, 122, 0.02) 38%,
    rgba(232, 199, 122, 0.00) 60%,
    rgba(232, 199, 122, 0.06) 100%
  );

  /* Soft radial bloom used behind hero text and key panels */
  --bloom-gold: radial-gradient(
    60% 60% at 50% 40%,
    rgba(232, 199, 122, 0.18) 0%,
    rgba(232, 199, 122, 0.06) 38%,
    rgba(232, 199, 122, 0.00) 70%
  );

  /* ==========================================================================
     TYPOGRAPHY
     Editorial pairing: Cormorant Garamond (display) + Inter (UI/body).
     Cormorant subs in for a custom didone-leaning serif until a bespoke
     face is provided.
     ========================================================================== */
  --font-display: "Cormorant Garamond", "Cormorant", "EB Garamond", Georgia, serif;
  --font-body:    "Inter", "Helvetica Neue", system-ui, -apple-system, sans-serif;
  --font-mono:    "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

  /* Type scale (modular, 1.25 ratio at the body end, looser at display) */
  --fs-display-1: clamp(64px, 8.5vw, 132px);
  --fs-display-2: clamp(48px, 6vw, 96px);
  --fs-h1:        clamp(40px, 4.5vw, 64px);
  --fs-h2:        clamp(30px, 3vw, 44px);
  --fs-h3:        24px;
  --fs-h4:        19px;
  --fs-body:      16px;
  --fs-body-lg:   18px;
  --fs-small:     14px;
  --fs-meta:      12px;
  --fs-eyebrow:   11px;     /* ALL-CAPS label */

  --lh-display:   1.02;
  --lh-heading:   1.15;
  --lh-body:      1.55;
  --lh-tight:     1.25;

  --tracking-display: -0.02em;
  --tracking-heading: -0.01em;
  --tracking-body:    0;
  --tracking-eyebrow: 0.22em;
  --tracking-mono:    0;

  /* ==========================================================================
     SPACING / RADIUS / SHADOW
     ========================================================================== */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;
  --space-9: 96px;
  --space-10: 144px;

  --radius-xs: 2px;
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-pill: 999px;

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 8px 20px -8px rgba(0, 0, 0, 0.55);
  --shadow-lg: 0 24px 60px -20px rgba(0, 0, 0, 0.7);
  --shadow-glow-gold: 0 0 0 1px rgba(232, 199, 122, 0.25),
                     0 12px 40px -12px rgba(232, 199, 122, 0.35);

  /* Hairline separator (recurring motif) */
  --hairline: 1px solid var(--surface-line);
  --hairline-gold: 1px solid var(--accent-line);

  /* Motion */
  --ease-liquid: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-quiet:  cubic-bezier(0.4, 0, 0.2, 1);
  --dur-fast:    180ms;
  --dur-base:    320ms;
  --dur-slow:    560ms;
}

/* ==========================================================================
   SEMANTIC TYPE CLASSES — apply as utility classes
   ========================================================================== */
.eyebrow {
  font-family: var(--font-body);
  font-size: var(--fs-eyebrow);
  font-weight: 500;
  letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase;
  color: var(--gold-300);
}

.display-1 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: var(--fs-display-1);
  line-height: var(--lh-display);
  letter-spacing: var(--tracking-display);
  color: var(--fg-1);
}
.display-1 em { font-style: italic; color: var(--gold-300); font-weight: 400; }

.display-2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: var(--fs-display-2);
  line-height: var(--lh-display);
  letter-spacing: var(--tracking-display);
  color: var(--fg-1);
}

.h1 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: var(--fs-h1);
  line-height: var(--lh-heading);
  letter-spacing: var(--tracking-heading);
  color: var(--fg-1);
}
.h2 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: var(--fs-h2);
  line-height: var(--lh-heading);
  color: var(--fg-1);
}
.h3 {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: var(--fs-h3);
  line-height: var(--lh-tight);
  color: var(--fg-1);
}
.h4 {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: var(--fs-h4);
  line-height: var(--lh-tight);
  color: var(--fg-1);
}

.lede {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: 22px;
  line-height: 1.45;
  color: var(--fg-2);
}

.body {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--fg-2);
}
.body-lg {
  font-family: var(--font-body);
  font-size: var(--fs-body-lg);
  line-height: var(--lh-body);
  color: var(--fg-2);
}
.small  { font-family: var(--font-body); font-size: var(--fs-small); color: var(--fg-3); }
.meta   { font-family: var(--font-body); font-size: var(--fs-meta);  color: var(--fg-3); letter-spacing: 0.04em; }
.mono   { font-family: var(--font-mono); font-size: 13px; color: var(--fg-2); }

/* Gold rule — recurring motif */
.gold-rule {
  display: inline-block;
  width: 48px;
  height: 1px;
  background: var(--gold-300);
  vertical-align: middle;
}

/* ==========================================================================
   BASE — reset-ish, dark-mode by default
   ========================================================================== */
html, body {
  background: var(--surface-1);
  color: var(--fg-1);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
::selection { background: var(--accent-soft); color: var(--gold-100); }

/* Osobní web — Robert Prosecký. Staví na tokenech design systému. */

* { box-sizing: border-box; }
html, body, #root { margin: 0; padding: 0; min-height: 100vh; background: var(--surface-1); }
html { scroll-behavior: smooth; }

/* Page background — two off-axis gold blooms + faint ECG wash */
.page-bg {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(40% 50% at 78% 14%, rgba(232,199,122,0.18) 0%, rgba(232,199,122,0) 65%),
    radial-gradient(36% 46% at 8% 78%, rgba(232,199,122,0.10) 0%, rgba(232,199,122,0) 60%),
    radial-gradient(28% 36% at 50% 110%, rgba(107,158,143,0.08) 0%, rgba(107,158,143,0) 60%);
}
/* EKG běží jako na monitoru. Dlaždice je 1128 px = 6 cyklů, posun o celou
   dlaždici za 10 s → 112,8 px/s a tep 36/min. Loop je bezešvý, protože
   dlaždice začíná i končí na izoelektrické linii.

   Tři čísla drží pohromadě a mění se JEN SPOLEČNĚ: dlaždice (background-size
   i @keyframes), délka animace a geometrie v build-ecg.py. Skript po každém
   běhu vypíše, jakou šířku sem patří dosadit.

   Dotaz ?v=3 obchází hodinovou cache na /img/* po změně tvaru křivky. */
.page-bg::after {
  content: ""; position: absolute; inset: 0;
  background-image: url("/img/ecg-trace.svg?v=3");
  background-repeat: repeat-x;
  background-position-x: 0;
  background-position-y: 18%;
  background-size: 1128px auto;
  opacity: 0.055;
  animation: ecg-run 10s linear infinite;
  will-change: background-position;
}
@keyframes ecg-run {
  from { background-position-x: 0; }
  to   { background-position-x: -1128px; }
}

main { position: relative; z-index: 1; max-width: 1240px; margin: 0 auto; padding: 0 56px; }

/* ---------- TopNav ---------- */
.topnav {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px 56px;
  background: linear-gradient(180deg, rgba(15,20,24,0.92) 0%, rgba(15,20,24,0.55) 70%, rgba(15,20,24,0) 100%);
  backdrop-filter: blur(8px);
}
.topnav .links { display: flex; gap: 28px; }
.topnav .links a { font: 400 13px var(--font-body); color: var(--fg-2); text-decoration: none; letter-spacing: 0.04em; transition: color 180ms; }
.topnav .links a:hover { color: var(--gold-200); }
.topnav .wordmark { display: flex; align-items: baseline; gap: 14px; font-family: var(--font-display); font-style: italic; font-size: 26px; color: var(--fg-1); text-decoration: none; }
.topnav .wordmark .accent { color: var(--gold-300); }
.topnav .wordmark .credential { font-family: var(--font-body); font-size: 10px; letter-spacing: 0.22em; color: var(--fg-3); text-transform: uppercase; }
.topnav .cta { font-family: var(--font-display); font-style: italic; font-size: 17px; color: var(--gold-200); border-bottom: 1px solid var(--gold-300); padding: 2px 0; text-decoration: none; transition: all 180ms; white-space: nowrap; }
.topnav .cta:hover { color: var(--gold-100); border-bottom-width: 2px; }

/* ---------- Hero ---------- */
.hero { display: grid; grid-template-columns: 1.4fr 1fr; gap: 56px; align-items: center; padding: 96px 0 144px; position: relative; }
.hero .bloom { position: absolute; left: -10%; top: -10%; width: 70%; height: 80%; background: var(--bloom-gold); pointer-events: none; }
.hero h1 { font-family: var(--font-display); font-weight: 400; font-size: clamp(56px, 7vw, 104px); line-height: 1.02; letter-spacing: -0.02em; margin: 18px 0 22px; color: var(--fg-1); }
.hero h1 em { font-style: italic; color: var(--gold-300); font-weight: 400; }
.hero .lede { font-family: var(--font-display); font-style: italic; font-size: 22px; line-height: 1.45; color: var(--fg-2); margin: 0 0 20px; max-width: 56ch; }
.hero .affil { font-family: var(--font-body); font-size: 14px; line-height: 1.7; color: var(--fg-3); margin: 0 0 36px; max-width: 54ch; }
.hero .affil strong { color: var(--fg-2); font-weight: 500; }
.hero .ctas { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.hero .anatomy { position: relative; }
.hero .anatomy img { width: 100%; max-width: 460px; opacity: 0.85; filter: drop-shadow(0 30px 60px rgba(232,199,122,0.18)); }
.hero .anatomy .frame {
  position: absolute; inset: -8% -6% -8% -6%; border: 1px solid var(--accent-line); border-radius: var(--radius-xl);
  background: var(--glass-bg); backdrop-filter: blur(14px) saturate(140%); box-shadow: var(--glass-shadow);
  z-index: -1;
}
.hero .anatomy .frame::before { content:""; position:absolute; inset:0; border-radius: inherit; background: var(--glass-gold-sheen); pointer-events:none; }
.hero .anatomy .caption { position: absolute; bottom: -8px; left: 24px; font-family: var(--font-mono); font-size: 11px; color: var(--fg-3); }

/* ---------- shared atoms ---------- */
.btn { font-family: var(--font-body); font-size: 13.5px; font-weight: 500; letter-spacing: 0.04em; padding: 13px 24px; border-radius: 999px; border: 1px solid transparent; cursor: pointer; transition: all 200ms var(--ease-quiet); display: inline-flex; align-items: center; gap: 8px; text-decoration: none; }
.btn-primary { background: linear-gradient(180deg, var(--gold-200), var(--gold-400)); color: #1A130C; box-shadow: var(--shadow-glow-gold); }
.btn-primary:hover { transform: translateY(-1px); }
.btn-primary:active { transform: scale(0.985); }
.btn-ghost { background: transparent; color: var(--gold-200); border-color: var(--accent-line); }
.btn-ghost:hover { background: var(--accent-soft); border-color: var(--gold-300); }

.eyebrow { font-family: var(--font-body); font-size: 11px; font-weight: 500; letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold-300); display: inline-flex; align-items: center; gap: 12px; }
.eyebrow::before { content:""; width: 28px; height: 1px; background: var(--gold-300); }
.gold-rule { display: block; width: 48px; height: 1px; background: var(--gold-300); margin: 14px 0; }

/* Placeholder chip — vše, co je nutné doplnit před ostrým nasazením. */
.todo {
  display: inline-block; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.06em;
  color: var(--gold-200); background: rgba(232,199,122,0.07);
  border: 1px dashed var(--accent-line); border-radius: var(--radius-sm);
  padding: 3px 9px; vertical-align: middle;
}

/* ---------- Section frame ---------- */
.section { padding: 96px 0; position: relative; }
.section + .section { border-top: var(--hairline); }
.section .head { display: grid; grid-template-columns: 1fr 2fr; gap: 56px; margin-bottom: 56px; align-items: baseline; }
.section .head h2 { font-family: var(--font-display); font-weight: 500; font-size: 44px; line-height: 1.1; margin: 8px 0 0; color: var(--fg-1); }
.section .head h2 em { font-style: italic; color: var(--gold-300); }
.section .head .intro { font-family: var(--font-display); font-style: italic; font-size: 19px; line-height: 1.5; color: var(--fg-2); margin: 0; max-width: 56ch; }

/* ---------- Bio Tabs ---------- */
.bio { background: var(--glass-bg); border: 1px solid var(--glass-border); border-radius: var(--radius-xl); backdrop-filter: blur(var(--glass-blur)) saturate(140%); box-shadow: var(--glass-shadow); padding: 36px 40px; position: relative; overflow: hidden; }
.bio::before { content:""; position:absolute; inset:0; background: var(--glass-gold-sheen); pointer-events: none; }
.bio .tabrow { display: flex; gap: 18px; margin-bottom: 28px; position: relative; flex-wrap: wrap; align-items: center; justify-content: space-between; }
.bio .tabs { display: flex; gap: 6px; }
.bio .tab { font-family: var(--font-body); font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; padding: 8px 14px; border-radius: 999px; border: 1px solid transparent; background: transparent; color: var(--fg-3); cursor: pointer; transition: all 200ms; }
.bio .tab.active { background: var(--accent-soft); color: var(--gold-200); border-color: var(--accent-line); }
.bio .text { font-family: var(--font-body); font-size: 16px; line-height: 1.7; color: var(--fg-2); max-width: 64ch; position: relative; }
.bio .text p { margin: 0 0 14px; }
.bio .text p:last-child { margin-bottom: 0; }
.bio .text em { font-style: italic; color: var(--gold-200); }
.bio .copyhint { font-family: var(--font-mono); font-size: 11px; color: var(--fg-3); margin-top: 20px; position: relative; }
/* Tři dlaždice, ne čtyři: všechna čísla pocházejí z jedné báze (Scopus).
   Doplňovat čtvrté z jiné databáze by čísla zase smíchalo. */
.bio .credentials { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 36px; padding-top: 28px; border-top: var(--hairline); position: relative; }
.bio .credentials .item .num { font-family: var(--font-display); font-size: 36px; color: var(--gold-300); line-height: 1; }
.bio .credentials .item .lab { font-family: var(--font-mono); font-size: 11px; color: var(--fg-3); margin-top: 8px; line-height: 1.5; }
.bio .credentials .item .lab .sub { color: var(--fg-4); font-size: 10px; }

/* ---------- Vzdělání + členství (dva panely vedle sebe) ---------- */
.background { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 18px; }
.listpanel { padding: 30px 32px; border-radius: var(--radius-xl); background: var(--glass-bg); border: 1px solid var(--glass-border); backdrop-filter: blur(18px) saturate(140%); box-shadow: var(--glass-shadow); position: relative; overflow: hidden; }
.listpanel::before { content:""; position:absolute; inset:0; background: var(--glass-gold-sheen); pointer-events:none; }
.listpanel h4 { font: 500 10px var(--font-body); letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold-300); margin: 0 0 18px; position: relative; }
.listpanel .row { display: grid; grid-template-columns: 62px 1fr; gap: 16px; padding: 11px 0; border-bottom: var(--hairline); align-items: baseline; position: relative; }
.listpanel .row:last-child { border-bottom: 0; padding-bottom: 0; }
.listpanel .row .k { font-family: var(--font-mono); font-size: 12px; color: var(--gold-300); }
.listpanel .row .v { font-family: var(--font-body); font-size: 14.5px; line-height: 1.5; color: var(--fg-2); }

/* ---------- Projektová činnost ---------- */
.projects { margin-top: 18px; border-top: var(--hairline); }
.project { display: grid; grid-template-columns: 1fr auto; gap: 28px; padding: 16px 0; border-bottom: var(--hairline); align-items: baseline; }
.project .name { font-family: var(--font-body); font-size: 15px; color: var(--fg-1); line-height: 1.45; }
.project .prog { font-family: var(--font-mono); font-size: 11px; color: var(--fg-3); text-align: right; }
.projects-note { font-family: var(--font-body); font-size: 13px; color: var(--fg-3); margin: 18px 0 0; line-height: 1.6; }

/* ---------- Působiště / role ---------- */
.roles { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.role { padding: 28px 30px; border-radius: var(--radius-xl); background: var(--glass-bg); border: 1px solid var(--glass-border); backdrop-filter: blur(18px) saturate(140%); box-shadow: var(--glass-shadow); position: relative; overflow: hidden; transition: all 280ms var(--ease-liquid); }
.role::before { content:""; position:absolute; inset:0; background: var(--glass-gold-sheen); pointer-events:none; }
.role:hover { border-color: var(--glass-border-gold); transform: translateY(-2px); }
.role .kicker { font-family: var(--font-mono); font-size: 11px; color: var(--gold-300); letter-spacing: 0.12em; text-transform: uppercase; position: relative; }
.role h3 { font-family: var(--font-display); font-weight: 500; font-size: 27px; line-height: 1.18; margin: 12px 0 12px; color: var(--fg-1); position: relative; }
.role p { font-family: var(--font-body); font-size: 14.5px; line-height: 1.65; color: var(--fg-2); margin: 0; position: relative; }
.role .tags { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 18px; position: relative; }
.role .tag { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.04em; color: var(--fg-3); border: var(--hairline); border-radius: 999px; padding: 4px 10px; }

/* ---------- Konference (highlight blok) ---------- */
.conf {
  display: grid; grid-template-columns: 1.35fr 1fr; gap: 48px; align-items: center;
  padding: 44px 48px; border-radius: var(--radius-xl);
  background: var(--glass-bg-strong); border: 1px solid var(--glass-border-gold);
  backdrop-filter: blur(22px) saturate(150%); box-shadow: var(--glass-shadow), var(--shadow-glow-gold);
  position: relative; overflow: hidden;
}
.conf::before { content:""; position:absolute; inset:0; background: var(--glass-gold-sheen); pointer-events:none; }
.conf .body { position: relative; }
.conf h3 { font-family: var(--font-display); font-weight: 500; font-size: 36px; line-height: 1.14; margin: 14px 0 10px; color: var(--fg-1); }
.conf h3 em { font-style: italic; color: var(--gold-300); }
.conf .sub { font-family: var(--font-body); font-size: 15px; line-height: 1.65; color: var(--fg-2); margin: 0 0 26px; max-width: 52ch; }
.conf .ctas { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.conf .host { font-family: var(--font-mono); font-size: 11px; color: var(--fg-3); }
.conf .facts { position: relative; display: flex; flex-direction: column; gap: 0; }
.conf .fact { display: grid; grid-template-columns: 92px 1fr; gap: 16px; padding: 13px 0; border-bottom: var(--hairline); align-items: baseline; }
.conf .fact:last-child { border-bottom: 0; }
.conf .fact dt { font: 500 10px var(--font-body); letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold-300); }
.conf .fact dd { margin: 0; font-family: var(--font-body); font-size: 14.5px; color: var(--fg-1); line-height: 1.45; }
.conf .fact dd small { display: block; font-family: var(--font-mono); font-size: 11px; color: var(--fg-3); margin-top: 3px; }

/* ---------- Přednášková témata ---------- */
.topics { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.topic { padding: 26px 28px; border-radius: var(--radius-xl); background: var(--glass-bg); border: 1px solid var(--glass-border); backdrop-filter: blur(18px) saturate(140%); box-shadow: var(--glass-shadow); cursor: pointer; transition: all 280ms var(--ease-liquid); position: relative; overflow: hidden; }
.topic::before { content:""; position:absolute; inset:0; background: var(--glass-gold-sheen); pointer-events:none; }
.topic:hover { border-color: var(--glass-border-gold); transform: translateY(-2px); }
.topic.open { border-color: var(--glass-border-gold); box-shadow: var(--shadow-glow-gold); }
.topic .num { font-family: var(--font-mono); font-size: 11px; color: var(--gold-300); letter-spacing: 0.12em; position: relative; }
.topic h3 { font-family: var(--font-display); font-weight: 500; font-size: 26px; line-height: 1.18; margin: 12px 0 14px; color: var(--fg-1); position: relative; }
.topic .meta { font-family: var(--font-mono); font-size: 11px; color: var(--fg-3); position: relative; }
.topic .abstract { font-family: var(--font-body); font-size: 14px; line-height: 1.65; color: var(--fg-2); margin-top: 16px; padding-top: 16px; border-top: var(--hairline); display: none; position: relative; }
.topic.open .abstract { display: block; }

/* ---------- Publikace ---------- */
.papers { border-top: var(--hairline); }
.paper { display: grid; grid-template-columns: 80px 1fr auto; gap: 28px; padding: 22px 0; border-bottom: var(--hairline); align-items: baseline; transition: all 200ms; }
.paper:hover { background: rgba(232,199,122,0.03); padding-left: 12px; padding-right: 12px; }
.paper .year { font-family: var(--font-mono); font-size: 13px; color: var(--gold-300); }
.paper .title { font-family: var(--font-display); font-weight: 500; font-size: 21px; line-height: 1.3; color: var(--fg-1); }
.paper .title em { font-style: italic; color: var(--gold-200); font-weight: 400; }
.paper .meta { font-family: var(--font-mono); font-size: 11px; color: var(--fg-3); margin-top: 6px; }
.paper .role-flag { display: inline-block; font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gold-200); background: var(--accent-soft); border: 1px solid var(--accent-line); border-radius: 999px; padding: 2px 8px; margin-left: 10px; vertical-align: 2px; }
.paper .open { font-family: var(--font-display); font-style: italic; font-size: 15px; color: var(--gold-200); border-bottom: 1px solid var(--gold-300); padding-bottom: 1px; text-decoration: none; white-space: nowrap; }
.papers-foot { display: flex; justify-content: space-between; align-items: baseline; gap: 24px; margin-top: 28px; flex-wrap: wrap; }
.papers-foot .note { font-family: var(--font-body); font-size: 13.5px; color: var(--fg-3); max-width: 62ch; line-height: 1.6; margin: 0; }

/* ---------- Kontakt ---------- */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.contact .panel { padding: 34px 36px; border-radius: var(--radius-xl); background: var(--glass-bg); border: 1px solid var(--glass-border); backdrop-filter: blur(18px) saturate(140%); box-shadow: var(--glass-shadow); position: relative; overflow: hidden; }
.contact .panel::before { content:""; position:absolute; inset:0; background: var(--glass-gold-sheen); pointer-events:none; }
/* Portrét v kontaktním panelu. position:relative ho zvedne nad zlatý přeliv,
   který panel překrývá pseudo-elementem ::before. */
.contact .portrait {
  position: relative; display: block; width: 180px; max-width: 48%; height: auto;
  border-radius: 14px; margin: 0 0 26px;
  border: 1px solid var(--glass-border);
  box-shadow: 0 18px 40px -20px rgba(0,0,0,0.75);
}
.contact .filemeta {
  display: block; margin-top: 4px;
  font-family: var(--font-mono); font-size: 11px; color: var(--fg-4);
}
.contact dl { margin: 0; position: relative; }
.contact dt { font: 500 10px var(--font-body); letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold-300); margin-top: 24px; }
.contact dt:first-child { margin-top: 0; }
.contact dd { margin: 7px 0 0; font-family: var(--font-body); font-size: 15px; color: var(--fg-1); line-height: 1.55; }
.contact dd a { color: var(--gold-200); text-decoration: none; border-bottom: 1px solid var(--accent-line); }
.contact dd a:hover { border-bottom-color: var(--gold-300); }
.contact dd em { font-family: var(--font-display); font-style: italic; color: var(--gold-200); }
.contact .note { font-family: var(--font-body); font-size: 13.5px; line-height: 1.7; color: var(--fg-3); position: relative; margin: 0 0 16px; }
.contact .note strong { color: var(--fg-2); font-weight: 500; }

/* ---------- Footer ---------- */
.footer { padding: 56px 0 40px; border-top: var(--hairline); margin-top: 56px; }
.footer .top { display: flex; justify-content: space-between; align-items: baseline; gap: 32px; flex-wrap: wrap; }
.footer .mark { font-family: var(--font-display); font-style: italic; font-size: 22px; color: var(--fg-2); }
.footer .mark .accent { color: var(--gold-300); }
.footer .links { display: flex; gap: 22px; flex-wrap: wrap; }
.footer .links a { font-family: var(--font-body); font-size: 13px; color: var(--fg-2); text-decoration: none; border-bottom: 1px solid transparent; }
.footer .links a:hover { color: var(--gold-200); border-bottom-color: var(--accent-line); }
.footer .disclaimer { font-family: var(--font-body); font-size: 12.5px; line-height: 1.7; color: var(--fg-3); margin: 28px 0 0; max-width: 76ch; }
.footer .meta { font-family: var(--font-mono); font-size: 11px; color: var(--fg-3); display: flex; gap: 18px; margin-top: 18px; flex-wrap: wrap; }

@media (max-width: 920px) {
  main, .topnav { padding-left: 24px; padding-right: 24px; }
  .topnav { flex-wrap: wrap; gap: 12px; }
  .hero { grid-template-columns: 1fr; gap: 32px; padding: 56px 0 80px; }
  .section { padding: 64px 0; }
  .section .head { grid-template-columns: 1fr; gap: 18px; }
  .topics, .roles, .contact, .conf, .background { grid-template-columns: 1fr; }
  .listpanel { padding: 24px 22px; }
  .project { grid-template-columns: 1fr; gap: 4px; }
  .project .prog { text-align: left; }
  .conf { padding: 32px 26px; gap: 32px; }
  .bio { padding: 28px 24px; }
  /* Tři dlaždice ve dvou sloupcích nechávají jednu osamocenou → na mobilu pod sebe. */
  .bio .credentials { grid-template-columns: 1fr; gap: 18px; }
  .paper { grid-template-columns: 56px 1fr; }
  .paper .open { grid-column: 2; }
  .topnav .links { display: none; }
}


/* ---------- Karta tématu je <button>: srovnat nativní styly prohlížeče ---------- */
.topic {
  display: block; width: 100%; text-align: left;
  font: inherit; color: inherit; appearance: none; -webkit-appearance: none;
}
.topic:focus-visible,
.tab:focus-visible,
a:focus-visible {
  outline: 2px solid var(--gold-300);
  outline-offset: 3px;
}

/* Uživatelé s omezením pohybu: žádné posuny, žádné rolování, stojící EKG.
   Hvězdička nezabírá pseudo-elementy, proto je .page-bg::after uvedený zvlášť. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
  .page-bg::after { animation: none !important; }
  .topic:hover, .role:hover, .btn-primary:hover { transform: none; }
}
