/* MB Maniax – veřejný vzhled
   Střídmý design s odkazem na ZX Spectrum: černé tělo počítače, duhový pruh,
   gumové klávesy. Barvy pruhu jsou ztlumené, žádné neony. */

/* ------------------------------------------------------------------
   Písma (IBM Plex, licence SIL OFL 1.1 – viz fonts/OFL-IBM-Plex.txt)
   ------------------------------------------------------------------ */
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 400; font-display: swap;
  src: url(../fonts/ibm-plex-sans-latin-ext-400-normal.woff2) format("woff2");
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 400; font-display: swap;
  src: url(../fonts/ibm-plex-sans-latin-400-normal.woff2) format("woff2");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "IBM Plex Sans"; font-style: italic; font-weight: 400; font-display: swap;
  src: url(../fonts/ibm-plex-sans-latin-ext-400-italic.woff2) format("woff2");
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "IBM Plex Sans"; font-style: italic; font-weight: 400; font-display: swap;
  src: url(../fonts/ibm-plex-sans-latin-400-italic.woff2) format("woff2");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 600; font-display: swap;
  src: url(../fonts/ibm-plex-sans-latin-ext-600-normal.woff2) format("woff2");
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 600; font-display: swap;
  src: url(../fonts/ibm-plex-sans-latin-600-normal.woff2) format("woff2");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 700; font-display: swap;
  src: url(../fonts/ibm-plex-sans-latin-ext-700-normal.woff2) format("woff2");
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 700; font-display: swap;
  src: url(../fonts/ibm-plex-sans-latin-700-normal.woff2) format("woff2");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 400; font-display: swap;
  src: url(../fonts/ibm-plex-mono-latin-ext-400-normal.woff2) format("woff2");
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 400; font-display: swap;
  src: url(../fonts/ibm-plex-mono-latin-400-normal.woff2) format("woff2");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 600; font-display: swap;
  src: url(../fonts/ibm-plex-mono-latin-ext-600-normal.woff2) format("woff2");
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 600; font-display: swap;
  src: url(../fonts/ibm-plex-mono-latin-600-normal.woff2) format("woff2");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }

/* ------------------------------------------------------------------
   Barvy a proměnné
   ------------------------------------------------------------------ */
:root {
  color-scheme: light;
  --bg: #f5f4ef;
  --surface: #ffffff;
  --surface-2: #eeede7;
  --text: #1c1d1f;
  --text-2: #3e4045;
  --muted: #686b71;
  --border: #dddbd2;
  --border-strong: #c7c4b8;
  --link: #0a5d8c;
  --link-hover: #06456a;
  --focus: #1789b8;

  --header-bg: #121315;
  --header-text: #ecebe6;
  --header-muted: #a3a5aa;

  /* Duhový pruh ZX Spectra – ztlumené odstíny */
  --zx-red: #c8312e;
  --zx-yellow: #e3aa00;
  --zx-green: #2f8f46;
  --zx-cyan: #1789b8;

  --key-top: #3a3b40;
  --key-bottom: #27282c;
  --key-text: #f3f2ed;

  --code-bg: #ecebe4;
  --code-text: #8a2b28;
  --pre-bg: #17191c;
  --pre-text: #e4e2da;

  --ok-bg: #e5f2e8; --ok-text: #1f5d2f;
  --info-bg: #e3f0f7; --info-text: #0c4a6a;
  --error-bg: #f8e4e3; --error-text: #8c1f1c;

  --radius: 6px;
  --font: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "Cascadia Code", Consolas, monospace;
  --wrap: 1200px;
  --text-width: 860px;
  --gutter: clamp(16px, 4vw, 32px);
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #131416;
  --surface: #1b1c1f;
  --surface-2: #24262a;
  --text: #e9e8e3;
  --text-2: #c9c8c2;
  --muted: #9c9fa5;
  --border: #2e3035;
  --border-strong: #42454c;
  --link: #74bbe6;
  --link-hover: #a1d2f0;
  --header-bg: #0b0c0d;
  --code-bg: #26282c;
  --code-text: #f0a29e;
  --pre-bg: #0e0f11;
  --ok-bg: #18301f; --ok-text: #9fd8ae;
  --info-bg: #142a37; --info-text: #9fd0ec;
  --error-bg: #3a1b1a; --error-text: #f2aaa6;
}

/* ------------------------------------------------------------------
   Základ
   ------------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 1rem/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.site-main { flex: 1 0 auto; }
img, video, iframe { max-width: 100%; }
a { color: var(--link); text-underline-offset: .15em; text-decoration-thickness: 1px; }
a:hover { color: var(--link-hover); }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 2px; }
h1, h2, h3, h4 { line-height: 1.2; letter-spacing: -0.01em; text-wrap: balance; }
.card-title, .post-nav strong { text-wrap: pretty; }
button, input, textarea, select { font: inherit; color: inherit; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.wrap-text { width: 100%; max-width: calc(var(--text-width) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(32px, 5vw, 56px); }

.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link { position: absolute; left: -9999px; top: 0; z-index: 100; background: var(--surface); color: var(--text); padding: .6rem 1rem; }
.skip-link:focus { left: 1rem; top: 1rem; }

.eyebrow {
  margin: 0 0 .75rem;
  font: 600 .78rem/1.3 var(--mono);
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
}
.eyebrow a { color: inherit; text-decoration: none; }
.eyebrow a:hover { color: var(--link); }
.eyebrow .sep { margin-inline: .45rem; opacity: .6; }

.lead { font-size: 1.12rem; color: var(--text-2); margin: .5rem 0 0; max-width: 60ch; }
.empty { color: var(--muted); }
.hint { color: var(--muted); font-size: .88rem; }

/* Mini duhový pruh – čtyři šikmé proužky */
.brand-stripe, .footer-stripe { display: inline-flex; gap: 0; }
.brand-stripe i, .footer-stripe i { display: block; transform: skewX(-24deg); }
.brand-stripe i:nth-child(1), .footer-stripe i:nth-child(1) { background: var(--zx-red); }
.brand-stripe i:nth-child(2), .footer-stripe i:nth-child(2) { background: var(--zx-yellow); }
.brand-stripe i:nth-child(3), .footer-stripe i:nth-child(3) { background: var(--zx-green); }
.brand-stripe i:nth-child(4), .footer-stripe i:nth-child(4) { background: var(--zx-cyan); }

/* ------------------------------------------------------------------
   Hlavička
   ------------------------------------------------------------------ */
.site-header {
  background: var(--header-bg);
  color: var(--header-text);
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid #000;
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: 64px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: #fff;
  text-decoration: none;
  margin-right: auto;
  flex-shrink: 0;
}
.brand:hover { color: #fff; }
.brand-logo svg { display: block; height: 20px; width: auto; }
.brand-stripe { height: 20px; padding-left: 4px; }
.brand-stripe i { width: 7px; height: 100%; }

.main-nav { display: flex; align-items: center; gap: 1rem; }
.main-nav ul { display: flex; list-style: none; margin: 0; padding: 0; gap: .15rem; }
.main-nav a {
  display: block;
  padding: .5rem .7rem;
  color: var(--header-muted);
  text-decoration: none;
  font-size: .94rem;
  font-weight: 600;
  border-radius: 4px;
  white-space: nowrap;
}
.main-nav a:hover { color: #fff; background: rgba(255,255,255,.06); }
.main-nav a[aria-current="page"] { color: #fff; box-shadow: inset 0 -2px 0 var(--zx-yellow); border-radius: 0; }

.nav-search { display: flex; align-items: center; position: relative; }
.nav-search input {
  width: 150px;
  background: #1f2023;
  border: 1px solid #2f3135;
  color: var(--header-text);
  border-radius: 4px;
  padding: .42rem 2.1rem .42rem .65rem;
  font-size: .9rem;
  transition: width .2s, border-color .2s;
}
.nav-search input::placeholder { color: #85878c; }
.nav-search input:focus { width: 200px; border-color: #55585e; outline: none; }
.nav-search button {
  position: absolute; right: 2px; top: 50%; transform: translateY(-50%);
  background: none; border: 0; color: #9ea0a5; padding: .35rem .45rem; cursor: pointer; display: flex;
}
.nav-search button:hover { color: #fff; }

.theme-toggle, .nav-toggle {
  background: none;
  border: 1px solid #2f3135;
  color: var(--header-muted);
  border-radius: 4px;
  width: 38px; height: 38px;
  display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
}
.theme-toggle:hover, .nav-toggle:hover { color: #fff; border-color: #55585e; }
.theme-toggle .icon-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
:root[data-theme="dark"] .theme-toggle .icon-moon { display: none; }

.nav-toggle { display: none; }
.nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after {
  display: block; width: 18px; height: 2px; background: currentColor; position: relative; transition: transform .2s;
}
.nav-toggle-bars::before, .nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle-bars::before { top: -6px; }
.nav-toggle-bars::after { top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 1020px) {
  .header-inner { flex-wrap: wrap; gap: .6rem; }
  .nav-toggle { display: inline-flex; order: 3; }
  .theme-toggle { order: 2; }
  .main-nav {
    order: 4;
    flex-basis: 100%;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: .75rem;
    padding: .25rem 0 1rem;
  }
  .main-nav.is-open { display: flex; }
  .main-nav ul { flex-direction: column; }
  .main-nav a { padding: .7rem .4rem; font-size: 1rem; border-bottom: 1px solid #222428; border-radius: 0; }
  .main-nav a[aria-current="page"] { box-shadow: inset 3px 0 0 var(--zx-yellow); padding-left: .8rem; }
  .nav-search input, .nav-search input:focus { width: 100%; padding-block: .6rem; }
  .no-js .main-nav { display: flex; }
}
@media (max-width: 420px) {
  .brand-logo svg { height: 16px; }
  .brand-stripe { height: 16px; }
  .brand-stripe i { width: 6px; }
}

.preview-bar {
  background: var(--zx-yellow);
  color: #1c1d1f;
  text-align: center;
  font: 600 .85rem/1.4 var(--mono);
  padding: .5rem 1rem;
}

/* ------------------------------------------------------------------
   Tlačítka, klávesy, štítky
   ------------------------------------------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: var(--link);
  color: #fff;
  border: 1px solid transparent;
  border-radius: 5px;
  padding: .62rem 1.1rem;
  font-weight: 600;
  font-size: .95rem;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
}
.btn:hover { background: var(--link-hover); color: #fff; }
:root[data-theme="dark"] .btn { color: #0b1a24; }
.btn-secondary { background: transparent; color: var(--text); border-color: var(--border-strong); }
.btn-secondary:hover { background: var(--surface-2); color: var(--text); }
:root[data-theme="dark"] .btn-secondary, :root[data-theme="dark"] .btn-secondary:hover { color: var(--text); }
.btn-download::before {
  content: "";
  width: 1em; height: 1em;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 3v12m0 0-5-5m5 5 5-5M4 20h16' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 3v12m0 0-5-5m5 5 5-5M4 20h16' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}
.btn-block { display: flex; width: 100%; justify-content: center; }

/* Gumové klávesy ZX Spectra 48K */
.keys { list-style: none; display: flex; flex-wrap: wrap; gap: .7rem; margin: 1.75rem 0 0; padding: 0; }
.key {
  position: relative;
  display: inline-block;
  min-width: 3.2rem;
  padding: .72rem 1rem .8rem;
  border-radius: 6px;
  background: linear-gradient(var(--key-top), var(--key-bottom));
  color: var(--key-text);
  font: 600 .8rem/1 var(--mono);
  letter-spacing: .06em;
  text-transform: uppercase;
  text-decoration: none;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.14), 0 2px 0 #0d0e10, 0 4px 10px rgba(0,0,0,.14);
  transition: transform .08s, box-shadow .08s;
}
.key::after {
  content: "";
  position: absolute; left: 1rem; right: 1rem; bottom: .38rem;
  height: 2px; border-radius: 1px;
  background: var(--zx-red);
  opacity: .9;
}
.keys li:nth-child(4n+2) .key::after { background: var(--zx-yellow); }
.keys li:nth-child(4n+3) .key::after { background: var(--zx-green); }
.keys li:nth-child(4n+4) .key::after { background: var(--zx-cyan); }
.key:hover { color: #fff; transform: translateY(1px); box-shadow: inset 0 1px 0 rgba(255,255,255,.14), 0 1px 0 #0d0e10, 0 2px 6px rgba(0,0,0,.14); }
.key:active { transform: translateY(2px); box-shadow: inset 0 1px 0 rgba(255,255,255,.1), 0 0 0 #0d0e10; }

.tag-list { list-style: none; display: flex; flex-wrap: wrap; gap: .35rem; margin: 0; padding: 0; }
.tag {
  display: inline-block;
  font: 400 .76rem/1.4 var(--mono);
  padding: .14rem .5rem;
  border-radius: 3px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text-2);
  text-decoration: none;
}
.tag:hover { border-color: var(--border-strong); color: var(--text); }
.tag-list--small .tag { font-size: .7rem; }

.chip-list { list-style: none; display: flex; flex-wrap: wrap; gap: .4rem; margin: 0; padding: 0; }
.chip {
  display: inline-flex; align-items: baseline; gap: .35rem;
  padding: .3rem .7rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text-2);
  font-size: .88rem;
  text-decoration: none;
}
.chip small { color: var(--muted); font: .72rem var(--mono); }
.chip:hover { border-color: var(--border-strong); color: var(--text); }
.chip[aria-current="page"] { background: var(--text); color: var(--bg); border-color: var(--text); }
.chip[aria-current="page"] small { color: inherit; opacity: .7; }

/* ------------------------------------------------------------------
   Úvodní stránka
   ------------------------------------------------------------------ */
.hero {
  border-bottom: 1px solid var(--border);
  background:
    linear-gradient(to right, var(--bg) 0%, transparent 70%),
    repeating-linear-gradient(90deg, transparent 0 23px, color-mix(in srgb, var(--border) 45%, transparent) 23px 24px),
    repeating-linear-gradient(0deg, transparent 0 23px, color-mix(in srgb, var(--border) 45%, transparent) 23px 24px);
}
.hero-inner { padding-block: clamp(22px, 3vw, 36px) clamp(26px, 3.5vw, 40px); }
.hero-title {
  font-size: clamp(2rem, 4.6vw, 3.25rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.08;
  margin: 0;
  max-width: 19ch;
}
.hero-intro { margin-top: .4rem; font-size: 1.06rem; color: var(--text-2); }
.hero-intro p { margin: 0 0 .9rem; }
.hero-intro .intro-lead { font-size: 1.22rem; line-height: 1.5; color: var(--text); }
.intro-team { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 1rem 2.5rem; margin: 1.25rem 0 1.4rem; }
.intro-team > div { padding: .1rem 0 .1rem 1.1rem; border-left: 3px solid var(--zx-cyan); }
.intro-team > div:nth-child(2) { border-left-color: var(--zx-red); }
.intro-team > div:nth-child(3) { border-left-color: var(--zx-green); }
.intro-team > div:nth-child(4) { border-left-color: var(--zx-yellow); }
.hero-intro .intro-team h2 { font-size: 1.12rem; margin: 0 0 .4rem; color: var(--text); display: flex; flex-wrap: wrap; align-items: baseline; gap: .2rem .7rem; }
.intro-team h2 span { font: 600 .72rem var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.intro-team p { margin: 0; }
.hero-intro > :first-child { margin-top: 0; }
.hero-intro > :last-child { margin-bottom: 0; }
.hero-intro h1, .hero-intro h2 { font-size: 1.1rem; margin: 0 0 .5rem; }

.section-head {
  display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  margin-bottom: 1.25rem;
}
.section-head h2 { margin: 0; font-size: 1.45rem; display: flex; align-items: center; gap: .65rem; }
.section-head h2::before {
  content: ""; width: 26px; height: 12px; flex-shrink: 0;
  background: linear-gradient(90deg, var(--zx-red) 0 25%, var(--zx-yellow) 25% 50%, var(--zx-green) 50% 75%, var(--zx-cyan) 75%);
  transform: skewX(-24deg);
}
.section-more { font-weight: 600; text-decoration: none; }

.home-more { margin: 2rem 0 0; text-align: center; }
.more-list { margin-top: 2.5rem; }
.more-title { font: 600 .8rem/1.3 var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 0 0 .5rem; }
.post-list { list-style: none; margin: 0 0 1.5rem; padding: 0; border-top: 1px solid var(--border); }
.post-list li { display: flex; gap: 1.25rem; align-items: baseline; padding: .7rem 0; border-bottom: 1px solid var(--border); }
.post-list time { font: .82rem var(--mono); color: var(--muted); min-width: 6.8rem; flex-shrink: 0; }
.post-list a { color: var(--text); text-decoration: none; font-weight: 600; }
.post-list a:hover { color: var(--link); text-decoration: underline; }


/* ------------------------------------------------------------------
   Karty článků
   ------------------------------------------------------------------ */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 290px), 1fr));
  gap: 1.25rem;
  margin-top: 1.25rem;
}
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color .15s, box-shadow .15s;
}
.card:hover { border-color: var(--border-strong); box-shadow: 0 6px 22px rgba(0,0,0,.07); }
.card-media { aspect-ratio: 4 / 3; background: #0f1012; overflow: hidden; }
.card-media img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.card:hover .card-media img { transform: scale(1.025); }
.card-body { display: flex; flex-direction: column; gap: .5rem; padding: 1rem 1.1rem 1.15rem; flex: 1; }
.card .meta { display: flex; flex-wrap: wrap; gap: .3rem .9rem; margin: 0; font: .78rem/1.3 var(--mono); color: var(--muted); }
.card-title { margin: 0; font-size: 1.1rem; line-height: 1.3; font-weight: 700; }
.card-title a { color: var(--text); text-decoration: none; }
.card-title a::after { content: ""; position: absolute; inset: 0; z-index: 0; }
.card:hover .card-title a { color: var(--link); }
.card-excerpt {
  margin: 0; color: var(--text-2); font-size: .94rem; line-height: 1.55;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.card .tag-list { position: relative; z-index: 1; margin-top: auto; padding-top: .3rem; }
.card--text .card-body::before {
  content: ""; width: 34px; height: 10px; margin-bottom: .2rem;
  background: linear-gradient(90deg, var(--zx-red) 0 25%, var(--zx-yellow) 25% 50%, var(--zx-green) 50% 75%, var(--zx-cyan) 75%);
  transform: skewX(-24deg); transform-origin: bottom left;
}
.card--text .card-excerpt { -webkit-line-clamp: 6; }

@media (min-width: 760px) {
  .card--featured { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); }
  .card--featured .card-media { aspect-ratio: auto; min-height: 340px; }
  .card--featured .card-body { padding: 1.75rem 2rem; justify-content: center; gap: .75rem; }
  .card--featured .card-title { font-size: clamp(1.45rem, 2.3vw, 2rem); letter-spacing: -0.02em; }
  .card--featured .card-excerpt { -webkit-line-clamp: 6; font-size: 1.02rem; }
  .card--featured .tag-list { margin-top: .5rem; }
}

/* ------------------------------------------------------------------
   Výpisy, filtry, stránkování
   ------------------------------------------------------------------ */
.list-header { margin-bottom: 1.5rem; }
.list-header h1 { font-size: clamp(1.8rem, 3.8vw, 2.6rem); margin: 0; letter-spacing: -0.02em; }
.filters { display: grid; gap: .75rem; margin: 0 0 1.5rem; padding: 1rem 0; border-block: 1px solid var(--border); }
.filter-row { display: flex; gap: .75rem; align-items: baseline; }
.filter-label { font: 600 .74rem var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); min-width: 4.5rem; padding-top: .3rem; }
@media (max-width: 600px) { .filter-row { flex-direction: column; gap: .4rem; } }

.pagination { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .5rem 1rem; margin-top: 2.5rem; }
.pagination ol { list-style: none; display: flex; gap: .3rem; margin: 0; padding: 0; }
.pagination a, .pagination span {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 2.4rem; height: 2.4rem; padding: 0 .6rem;
  border: 1px solid var(--border); border-radius: 4px;
  background: var(--surface); color: var(--text); text-decoration: none; font: .9rem var(--mono);
}
.pagination a:hover { border-color: var(--border-strong); }
.pagination span[aria-current] { background: var(--text); color: var(--bg); border-color: var(--text); }
.pagination .gap { color: var(--muted); padding: 0 .2rem; align-self: center; }
.pagination .page-prev, .pagination .page-next { font-family: var(--font); font-weight: 600; }

.search-form { display: flex; gap: .5rem; margin-top: 1.25rem; max-width: 560px; }
.search-form input {
  flex: 1; min-width: 0; padding: .65rem .85rem;
  border: 1px solid var(--border-strong); border-radius: 5px; background: var(--surface);
}

/* ------------------------------------------------------------------
   Článek
   ------------------------------------------------------------------ */
.post { padding-bottom: 1rem; }
.post-header { padding-top: clamp(32px, 5vw, 56px); padding-bottom: 1.25rem; }
.post-title { font-size: clamp(1.9rem, 4.2vw, 2.85rem); letter-spacing: -0.025em; line-height: 1.12; margin: 0 0 1rem; }
.post-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1rem; font-size: .92rem; color: var(--muted); }
.post-meta > a { font-weight: 600; text-decoration: none; }
.edit-link { font: 600 .8rem var(--mono); border: 1px dashed var(--border-strong); padding: .15rem .5rem; border-radius: 3px; }

.post-content { width: 100%; max-width: calc(var(--text-width) + 2 * var(--gutter)); margin: 0 auto; padding: .5rem var(--gutter) 1rem; font-size: 1.0625rem; line-height: 1.72; overflow-wrap: break-word; }
.post-content::after { content: ""; display: table; clear: both; }

/* Výchozí vzhled je světlý; tmavý se zapne jen tlačítkem v hlavičce (data-theme="dark").
   Články s vlastními styly jsou psané pro světlé pozadí – v tmavém režimu
   je zobrazíme na světlém listu, aby zůstaly čitelné. */
.prose--sheet { color-scheme: light; }
:root[data-theme="dark"] .prose--sheet {
  --text: #1c1d1f; --text-2: #3e4045; --muted: #686b71; --border: #dddbd2; --link: #0a5d8c; --link-hover: #06456a;
  --code-bg: #ecebe4; --code-text: #8a2b28; --surface: #fff; --surface-2: #eeede7;
  background: #fbfaf6; color: var(--text); border-radius: 8px; padding-block: 1.5rem; margin-block: .5rem;
}

/* Typografie obsahu. :where() má nulovou specificitu, takže vlastní styly
   v článcích mají vždy přednost. */
:where(.prose) :where(p, ul, ol, dl, table, figure, pre, blockquote) { margin: 0 0 1.15em; }
:where(.prose) :where(h1, h2, h3, h4, h5, h6) { margin: 1.8em 0 .55em; line-height: 1.25; }
:where(.prose) h1 { font-size: 2em; margin-top: .4em; letter-spacing: -0.02em; }
:where(.prose) h2 { font-size: 1.5em; letter-spacing: -0.015em; }
:where(.prose) h3 { font-size: 1.22em; }
:where(.prose) h4 { font-size: 1.06em; }
:where(.prose) :where(h5, h6) { font-size: 1em; }
:where(.prose) > :first-child { margin-top: 0; }
:where(.prose) :where(ul, ol) { padding-left: 1.4em; }
:where(.prose) li + li { margin-top: .3em; }
:where(.prose) img { height: auto; }
:where(.prose) :where(img, video) { max-width: 100%; }
:where(.prose) a { word-break: break-word; }
:where(.prose) hr { border: 0; border-top: 1px solid var(--border); margin: 2em 0; }
:where(.prose) blockquote { margin-left: 0; padding: .2em 0 .2em 1.1em; border-left: 3px solid var(--zx-cyan); color: var(--text-2); }
:where(.prose) :not(pre) > code, :where(.prose) kbd {
  font-family: var(--mono); font-size: .88em; background: var(--code-bg); color: var(--code-text);
  padding: .08em .35em; border-radius: 3px;
}
:where(.prose) kbd { color: var(--text); border: 1px solid var(--border-strong); border-bottom-width: 2px; }
:where(.prose) pre {
  background: var(--pre-bg); color: var(--pre-text);
  font: .88rem/1.6 var(--mono);
  padding: 1rem 1.2rem; border-radius: 6px;
  overflow-x: auto; tab-size: 4;
}
:where(.prose) pre code { font: inherit; background: none; color: inherit; padding: 0; }
/* Články s vlastními styly počítaly se světlými bloky kódu (jako ve starém vzhledu). */
:where(.prose--sheet) pre { background: #f3f2ec; color: #1c1d1f; border: 1px solid #dddbd2; }
:where(.prose) table { border-collapse: collapse; width: 100%; font-size: .94em; }
:where(.prose) :where(th, td) { border: 1px solid var(--border); padding: .45em .65em; text-align: left; vertical-align: top; }
:where(.prose) th { background: var(--surface-2); font-weight: 600; }
:where(.prose) figure { margin-inline: 0; }
:where(.prose) figcaption { font-size: .88rem; color: var(--muted); margin-top: .45rem; }
.table-scroll { overflow-x: auto; margin: 0 0 1.15em; -webkit-overflow-scrolling: touch; }
.table-scroll > table { margin: 0; }
img.is-pixelated { image-rendering: pixelated; }

/* Bloky převedené ze starého page builderu (a vkládané z editoru) */
.b-row { --gap: 1.75rem; display: flex; flex-wrap: wrap; gap: var(--gap); align-items: flex-start; margin: 0 0 1.4em; }
.b-row > .b-col { flex: 0 0 100%; min-width: 0; }
.b-col > :last-child { margin-bottom: 0; }
.b-1-2 { --w: .5; } .b-1-3 { --w: .33333; } .b-2-3 { --w: .66667; } .b-1-4 { --w: .25; } .b-3-4 { --w: .75; }
.b-1-5 { --w: .2; } .b-2-5 { --w: .4; } .b-3-5 { --w: .6; } .b-4-5 { --w: .8; } .b-1-6 { --w: .16667; } .b-5-6 { --w: .83333; }
@media (min-width: 720px) {
  .b-row > .b-col { flex: 0 0 calc(var(--w, 1) * 100% - (1 - var(--w, 1)) * var(--gap)); }
}
.b-image { margin: 0 0 1.15em; }
.b-image img { display: block; border-radius: 4px; }
.b-image.align-center { text-align: center; }
.b-image.align-center img { margin-inline: auto; }
.b-image.align-right img { margin-left: auto; }
.b-gallery { --cols: 4; display: grid; grid-template-columns: repeat(var(--cols), minmax(0, 1fr)); gap: .5rem; margin: 0 0 1.15em; }
.b-gallery.cols-1 { --cols: 1; } .b-gallery.cols-2 { --cols: 2; } .b-gallery.cols-3 { --cols: 3; }
.b-gallery.cols-4 { --cols: 4; } .b-gallery.cols-5 { --cols: 5; } .b-gallery.cols-6 { --cols: 6; }
.b-gallery.cols-7 { --cols: 7; } .b-gallery.cols-8 { --cols: 8; } .b-gallery.cols-9 { --cols: 9; }
@media (max-width: 1000px) { .b-gallery.cols-7, .b-gallery.cols-8, .b-gallery.cols-9 { --cols: 5; } }
@media (max-width: 720px) { .b-gallery { --cols: 3 !important; } }
@media (max-width: 460px) { .b-gallery { --cols: 2 !important; } }
.b-gallery a { display: block; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 4px; background: #0f1012; }
.b-gallery img { display: block; width: 100%; height: 100%; object-fit: cover; transition: opacity .15s; }
.b-gallery a:hover img { opacity: .85; }
.b-buttons { display: flex; flex-wrap: wrap; gap: .6rem; }
.b-quote { font-size: 1.08em; font-style: italic; }
.b-code { white-space: pre; }
.b-divider { border: 0; border-top: 1px solid var(--border); margin: 2em 0; }
.b-list { display: flex; gap: 1rem; align-items: flex-start; margin: 0 0 1.15em; }
.b-list img { width: 120px; flex-shrink: 0; border-radius: 4px; }
.b-video { display: block; width: 100%; border-radius: 6px; background: #000; margin: 0 0 1.15em; }
.video-embed {
  position: relative; aspect-ratio: 16 / 9; background: #000; border-radius: 6px; overflow: hidden; margin: 0 0 1.15em;
}
.video-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-embed > a { position: absolute; inset: 0; display: block; }
.video-embed > a img { width: 100%; height: 100%; object-fit: cover; opacity: .85; transition: opacity .15s; }
.video-embed > a:hover img { opacity: 1; }
.video-embed > a::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 68px; height: 48px; margin: -24px 0 0 -34px;
  border-radius: 10px; background: rgba(18,19,21,.85);
  box-shadow: 0 2px 10px rgba(0,0,0,.3);
}
.video-embed > a::before {
  content: ""; position: absolute; left: 50%; top: 50%; z-index: 1; margin: -10px 0 0 -6px;
  border-style: solid; border-width: 10px 0 10px 17px; border-color: transparent transparent transparent #fff;
}
.video-embed > a:hover::after { background: var(--zx-red); }

/* Navigace mezi články */
.post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 2.5rem; }
.post-nav a {
  display: flex; flex-direction: column; gap: .25rem; padding: .9rem 1rem;
  border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface);
  text-decoration: none; color: var(--text);
}
.post-nav a:hover { border-color: var(--border-strong); }
.post-nav span { font: .76rem var(--mono); color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.post-nav strong { line-height: 1.35; }
.post-nav-newer { text-align: right; grid-column: 2; }
@media (max-width: 600px) { .post-nav { grid-template-columns: 1fr; } .post-nav-newer { grid-column: auto; text-align: left; } }

/* ------------------------------------------------------------------
   Ke stažení
   ------------------------------------------------------------------ */
.dl-nav { display: grid; gap: .85rem; margin: 0 0 2.25rem; }
.dl-keys { margin: 0; }
.dl-keys--level1, .dl-keys--level2 { position: relative; padding-left: 1.6rem; }
.dl-keys--level2 { margin-left: 1.6rem; }
.dl-keys--level1::before, .dl-keys--level2::before {
  content: ""; position: absolute; left: .45rem; top: -.75rem; height: 1.85rem; width: .8rem;
  border-left: 2px solid var(--border-strong); border-bottom: 2px solid var(--border-strong); border-bottom-left-radius: 5px;
}
.dl-keys--level1 .key, .dl-keys--level2 .key { font-size: .74rem; padding: .62rem .9rem .7rem; }
.key-count { margin-left: .6rem; font-weight: 400; opacity: .55; font-size: .9em; }
.key.is-active {
  color: #fff;
  background: linear-gradient(#4b4d53, #393a3f);
  transform: translateY(2px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.12), 0 0 0 #0d0e10, 0 1px 3px rgba(0,0,0,.2);
}
.key.is-active::after { height: 3px; left: .7rem; right: .7rem; }

.dl-intro { max-width: 72ch; margin: 0 0 1.5rem; color: var(--text-2); font-size: 1.05rem; }
.dl-intro > :last-child { margin-bottom: 0; }
.dl-categories { margin-top: 0; }
.dl-categories { grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.dl-category .card-media { aspect-ratio: 2 / 1; }
.dl-category .card-title { font-size: 1.3rem; }
.dl-category .tag-list { margin-top: auto; }

.dl-items { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 520px), 1fr)); gap: 1rem; }
.dl-item {
  display: flex; gap: 1rem; min-width: 0; padding: .9rem;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  scroll-margin-top: 90px;
}
.dl-item:target { border-color: var(--zx-yellow); box-shadow: 0 0 0 3px color-mix(in srgb, var(--zx-yellow) 35%, transparent); }
.dl-item-media {
  display: block; flex: 0 0 168px; height: 126px; align-self: flex-start;
  background: #0f1012; border-radius: 4px; overflow: hidden;
}
.dl-item-media img { display: block; width: 100%; height: 100%; object-fit: contain; transition: opacity .15s; }
.dl-item-media:hover img { opacity: .85; }
.dl-item-body { display: flex; flex-direction: column; gap: .45rem; min-width: 0; flex: 1; }
@media (max-width: 520px) {
  .dl-item-media { flex-basis: 104px; height: 78px; }
}
.dl-item-title { margin: 0; font-size: 1.08rem; line-height: 1.3; display: flex; flex-wrap: wrap; align-items: baseline; gap: .3rem .55rem; }
.dl-version { font: 400 .74rem var(--mono); color: var(--muted); border: 1px solid var(--border); border-radius: 3px; padding: .05rem .4rem; }
.dl-item-desc { color: var(--text-2); font-size: .92rem; line-height: 1.55; overflow-wrap: break-word; }
.dl-item-desc p { margin: 0 0 .6em; }
.dl-item-desc > :last-child { margin-bottom: 0; }
.dl-item-links { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .75rem; margin: auto 0 0; padding-top: .25rem; }
.dl-item-links .btn { padding: .42rem .8rem; font-size: .86rem; }
.dl-article { font-weight: 600; font-size: .9rem; text-decoration: none; }
.dl-article:hover { text-decoration: underline; }
.btn-external::after {
  content: ""; width: .8em; height: .8em; background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 5h10v10M19 5 5 19' fill='none' stroke='black' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 5h10v10M19 5 5 19' fill='none' stroke='black' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}
.search-programs { margin-bottom: 2rem; }
.search-cat { font: .78rem var(--mono); color: var(--muted); min-width: 9rem; flex-shrink: 0; }

/* ------------------------------------------------------------------
   Komentáře
   ------------------------------------------------------------------ */
.comments { padding-top: 2rem; padding-bottom: clamp(40px, 6vw, 72px); }
.comments > h2 { font-size: 1.5rem; margin: 0 0 1.25rem; padding-top: 2rem; border-top: 1px solid var(--border); display: flex; align-items: center; gap: .6rem; }
.comments > h2 .count { font: 600 .85rem var(--mono); background: var(--surface-2); border: 1px solid var(--border); border-radius: 999px; padding: .1rem .55rem; color: var(--muted); }
.comment-list, .comment-children { list-style: none; margin: 0; padding: 0; }
.comment-list { margin-bottom: 2rem; }
.comment-children { margin-left: clamp(.9rem, 4vw, 2.75rem); padding-left: clamp(.6rem, 2vw, 1rem); border-left: 2px solid var(--border); }
.comment-body { padding: 1rem 0 .75rem; }
.comment + .comment > .comment-body, .comment-children > .comment:first-child > .comment-body { border-top: 1px solid var(--border); }
.comment-children > .comment:first-child > .comment-body { border-top: 0; }
.comment-head { display: flex; align-items: center; flex-wrap: wrap; gap: .3rem .7rem; margin-bottom: .45rem; }
.avatar {
  width: 34px; height: 34px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font: 600 .78rem var(--mono); color: #fff; flex-shrink: 0;
}
.avatar.tone-0 { background: #a8322f; }
.avatar.tone-1 { background: #9a7400; }
.avatar.tone-2 { background: #2b7a3e; }
.avatar.tone-3 { background: #17729a; }
.comment-author { font-weight: 600; }
.comment-author a { color: inherit; }
.badge { font: 600 .68rem var(--mono); text-transform: uppercase; letter-spacing: .05em; background: var(--text); color: var(--bg); padding: .12rem .4rem; border-radius: 3px; margin-left: .25rem; vertical-align: 1px; }
.comment-date { font: .78rem var(--mono); color: var(--muted); text-decoration: none; }
.comment-date:hover { color: var(--link); }
.comment-text { padding-left: calc(34px + .7rem); overflow-wrap: anywhere; }
.comment-text p { margin: 0 0 .6em; }
.comment-text p:last-child { margin-bottom: 0; }
.comment-reply {
  margin: .4rem 0 0 calc(34px + .7rem); padding: 0; border: 0; background: none; cursor: pointer;
  color: var(--link); font: 600 .84rem var(--font);
}
.comment-reply:hover { text-decoration: underline; }
.no-js .comment-reply { display: none; }
.is-admin .comment-text { color: var(--text); }
.comment:target > .comment-body { background: linear-gradient(90deg, color-mix(in srgb, var(--zx-yellow) 14%, transparent), transparent 70%); }
@media (max-width: 520px) {
  .comment-text { padding-left: 0; }
  .comment-reply { margin-left: 0; }
}

.comment-form {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: clamp(1rem, 3vw, 1.6rem); margin-bottom: 2rem;
}
.comment-list .comment-form { margin: .5rem 0 1rem; }
.comment-form-title { margin: 0 0 1rem; font-size: 1.15rem; }
.replying-to { margin: -.5rem 0 1rem; color: var(--text-2); font-size: .92rem; }
.link-button { background: none; border: 0; padding: 0; color: var(--link); cursor: pointer; text-decoration: underline; font: inherit; }
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 0 1rem; }
.field { margin-bottom: 1rem; }
.field label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: .3rem; }
.field input, .field textarea {
  width: 100%; padding: .6rem .75rem;
  border: 1px solid var(--border-strong); border-radius: 5px; background: var(--bg);
}
.field textarea { resize: vertical; min-height: 8rem; line-height: 1.5; }
.field input:focus, .field textarea:focus, .search-form input:focus { outline: 2px solid var(--focus); outline-offset: 0; border-color: transparent; }
.field [aria-invalid="true"] { border-color: var(--zx-red); }
.field--antispam input { max-width: 10rem; }
.field-error { color: var(--error-text); font-size: .86rem; margin: .3rem 0 0; }
.req { color: var(--zx-red); }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1rem; }
.form-actions .hint { margin: 0; flex: 1; min-width: 14rem; }
.hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.notice { padding: .75rem 1rem; border-radius: 5px; margin: 0 0 1.25rem; font-weight: 600; }
.notice--ok { background: var(--ok-bg); color: var(--ok-text); }
.notice--info { background: var(--info-bg); color: var(--info-text); }
.notice--error { background: var(--error-bg); color: var(--error-text); }

/* ------------------------------------------------------------------
   Patička
   ------------------------------------------------------------------ */
.site-footer {
  position: relative;
  overflow: hidden;
  background: var(--header-bg);
  color: var(--header-muted);
  margin-top: auto;
  font-size: .94rem;
}
.footer-inner {
  display: grid;
  grid-template-columns: minmax(0, 2fr) repeat(2, minmax(0, 1fr));
  gap: 2rem;
  padding-block: 48px 32px;
}
.footer-logo { display: inline-block; color: #fff; }
.footer-logo svg { display: block; height: 18px; width: auto; }
.footer-about p { margin: 1rem 0 0; max-width: 40ch; color: var(--header-text); }
.footer-about .footer-sub { margin-top: .4rem; color: var(--header-muted); }
.footer-links h2 { font: 600 .74rem var(--mono); text-transform: uppercase; letter-spacing: .1em; color: #7d8085; margin: .2rem 0 .8rem; }
.footer-links ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .35rem; }
.footer-links a { color: var(--header-text); text-decoration: none; }
.footer-links a:hover { color: #fff; text-decoration: underline; }
.footer-bottom {
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  border-top: 1px solid #23252a; padding-block: 1rem 1.4rem; font-size: .84rem;
}
.footer-bottom p { margin: 0; }
.footer-ok { font-family: var(--mono); color: #6a6d72; padding-right: 150px; }
.footer-stripe { position: absolute; right: -10px; bottom: 0; height: 64px; pointer-events: none; }
.footer-stripe i { width: 22px; height: 100%; }
@media (max-width: 760px) {
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-about { grid-column: 1 / -1; }
  .footer-ok { padding-right: 110px; }
  .footer-stripe { height: 44px; }
  .footer-stripe i { width: 15px; }
}

/* ------------------------------------------------------------------
   Chybová stránka
   ------------------------------------------------------------------ */
.error-page { max-width: 760px; }
.error-page h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); margin: .5rem 0; }
.zx-report {
  display: inline-block;
  font: 400 1rem/1.4 var(--mono);
  background: var(--surface);
  border: 1px solid var(--border);
  padding: .35rem .7rem;
  margin: 0 0 1rem;
}

/* ------------------------------------------------------------------
   Lightbox
   ------------------------------------------------------------------ */
.lb-overlay {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(10, 10, 12, .92);
  display: flex; align-items: center; justify-content: center;
  padding: 3.5rem 4rem;
}
.lb-overlay[hidden] { display: none; }
.lb-overlay figure { margin: 0; max-width: 100%; max-height: 100%; display: flex; flex-direction: column; align-items: center; }
.lb-overlay img { max-width: 100%; max-height: calc(100vh - 8rem); object-fit: contain; box-shadow: 0 10px 40px rgba(0,0,0,.5); background: #000; }
.lb-overlay img.is-pixelated { image-rendering: pixelated; }
.lb-overlay figcaption { color: #cfd0d3; font-size: .9rem; margin-top: .75rem; text-align: center; }
.lb-overlay button {
  position: absolute; background: rgba(255,255,255,.08); color: #fff; border: 0; cursor: pointer;
  width: 44px; height: 44px; border-radius: 50%; font-size: 1.6rem; line-height: 1;
  display: flex; align-items: center; justify-content: center;
}
.lb-overlay button:hover { background: rgba(255,255,255,.18); }
.lb-close { top: 1rem; right: 1rem; }
.lb-prev { left: 1rem; top: 50%; transform: translateY(-50%); }
.lb-next { right: 1rem; top: 50%; transform: translateY(-50%); }
@media (max-width: 600px) {
  .lb-overlay { padding: 3.5rem .5rem; }
  .lb-prev, .lb-next { top: auto; bottom: 1rem; transform: none; }
}

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

@media print {
  .site-header, .site-footer, .comments, .post-nav, .lb-overlay { display: none !important; }
  body { background: #fff; color: #000; }
}
