/* ======================================================================
   [01] VIZUÁLNÍ SYSTÉM A PROMĚNNÉ
   ====================================================================== */

:root {
  --mh-ink: #08233e;
  --mh-ink-soft: #183a57;
  --mh-blue: #076a9f;
  --mh-blue-dark: #04527d;
  --mh-text: #3d5d75;
  --mh-muted: #52697d;
  --mh-background: #edf5fa;
  --mh-surface: #f7fbfd;
  --mh-white: #ffffff;
  --mh-warm: #f2ece3;
  --mh-warm-light: #faf7f1;
  --mh-border: rgba(8, 35, 62, 0.14);
  --mh-border-strong: rgba(8, 35, 62, 0.23);
  --mh-shadow: 0 16px 40px rgba(16, 50, 77, 0.065);
  --mh-shadow-strong: 0 22px 54px rgba(16, 50, 77, 0.11);
  --mh-radius: 20px;
  --mh-radius-small: 15px;
  --mh-shell: 1160px;
  --mh-article-width: 940px;
  --mh-reading-width: 780px;
  --mh-section-space: 52px;
  --mh-serif: Georgia, "Times New Roman", Times, serif;
  --mh-sans:
    Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}

/* ======================================================================
   [02] WORDPRESS A KADENCE – ZÁKLADNÍ RESET
   Kompatibilní i se starším Firefoxem; kritický layout nepoužívá :has().
   ====================================================================== */

/*
 * Všechny statické stránky webu používají vlastní layout uvnitř WordPressu.
 * Kadence proto nesmí přidávat vlastní page-hero, šířku, horní odsazení,
 * bílé pozadí ani box-shadow. Selektory jsou záměrně postavené na body.page,
 * aby fungovaly i ve Firefoxu 115, který :has() standardně nepodporuje.
 */
body.page {
  margin: 0;
  color: var(--mh-ink);
  background: var(--mh-background);
}

body.page .entry-hero {
  display: none !important;
}

body.page .content-area {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}

body.page #primary,
body.page #main,
body.page .content-area,
body.page #primary > .content-container,
body.page .content-container,
body.page .content-wrap,
body.page .site-main,
body.page .single-entry,
body.page .single-entry > .entry-content-wrap,
body.page .single-entry > .entry-content-wrap > .entry-content,
body.page
  .single-entry
  > .entry-content-wrap
  > .entry-content
  > .wp-block-post-content {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

body.page .content-container,
body.page .content-wrap {
  display: block !important;
}

/* Detail článku zůstává samostatně omezen na příspěvky Zápisníku. */
body:has(.mh-article-page) .single-entry > .entry-content-wrap > .entry-header {
  display: none !important;
}

/* ======================================================================
   [03] GLOBÁLNÍ HLAVIČKA A MENU
   ====================================================================== */

body .site-header {
  border-bottom: 1px solid rgba(8, 35, 62, 0.08);
  background: rgba(255, 255, 255, 0.97);
}

body .site-header-row-container-inner .site-container {
  width: 100% !important;
  max-width: 1224px !important;
  margin-right: auto !important;
  margin-left: auto !important;
  padding-right: 32px !important;
  padding-left: 32px !important;
}

body .site-branding .site-title,
body .site-title-wrap .site-title {
  color: var(--mh-ink);
  font-family: var(--mh-sans);
  font-size: 23px;
  font-weight: 730;
  letter-spacing: -0.025em;
}

/* --- Desktopové menu a přepínač jazyka --- */

@media (min-width: 1025px) {
  body .main-navigation .primary-menu-container > ul {
    gap: 2px;
  }

  body .main-navigation .primary-menu-container > ul > li > a {
    min-height: 42px;
    padding: 9px 13px !important;
    border: 1px solid transparent;
    border-radius: 999px;
    color: #405469;
    font-size: 17px;
    font-weight: 610;
    transition:
      color 160ms ease,
      background 160ms ease,
      border-color 160ms ease;
  }

  body .main-navigation .primary-menu-container > ul > li > a:hover {
    color: var(--mh-ink);
    background: rgba(7, 106, 159, 0.055);
  }

  body .main-navigation .primary-menu-container > ul > li.current-menu-item > a,
  body .main-navigation .primary-menu-container > ul > li.current_page_item > a,
  body
    .main-navigation
    .primary-menu-container
    > ul
    > li.current-menu-ancestor
    > a {
    color: var(--mh-ink);
    border-color: rgba(7, 106, 159, 0.2);
    background: rgba(7, 106, 159, 0.085);
  }

  /* V94 – minimalistický jazykový přepínač oddělený od hlavního menu. */
  body .main-navigation .primary-menu-container > ul > li.lang-item {
    position: relative;
    display: flex;
    align-items: center;
    margin-left: 17px;
    padding-left: 14px;
  }

  body .main-navigation .primary-menu-container > ul > li.lang-item::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    width: 1px;
    height: 18px;
    background: rgba(8, 35, 62, 0.16);
    transform: translateY(-50%);
  }

  body .main-navigation .primary-menu-container > ul > li.lang-item > a {
    display: inline-flex !important;
    width: auto;
    min-width: 0;
    min-height: 42px;
    height: 42px;
    align-items: center;
    justify-content: center;
    padding: 1px 1px 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    color: #405a70 !important;
    background: transparent !important;
    box-shadow: none !important;
    font-size: 0 !important;
    line-height: 1;
    transition: color 160ms ease;
  }

  body .main-navigation .primary-menu-container > ul > li.lang-item > a::before {
    display: block;
    font-family: var(--mh-sans);
    font-size: 12px;
    font-weight: 780;
    line-height: 1;
    letter-spacing: 0.10em;
    text-transform: uppercase;
  }

  html[lang="cs-CZ"] body .main-navigation .primary-menu-container > ul > li.lang-item > a::before,
  html[lang^="cs"] body .main-navigation .primary-menu-container > ul > li.lang-item > a::before {
    content: "EN";
  }

  html[lang^="en"] body .main-navigation .primary-menu-container > ul > li.lang-item > a::before {
    content: "CZ";
  }

  body .main-navigation .primary-menu-container > ul > li.lang-item > a:hover,
  body .main-navigation .primary-menu-container > ul > li.lang-item > a:focus-visible {
    transform: none;
    color: var(--mh-blue) !important;
    background: transparent !important;
    box-shadow: none !important;
  }

  body .main-navigation .primary-menu-container > ul > li.lang-item > a {
    text-transform: uppercase;
  }

  body .main-navigation .primary-menu-container > ul > li.lang-item > a:focus-visible {
    outline: 2px solid rgba(7, 106, 159, 0.28);
    outline-offset: 4px;
    border-radius: 3px !important;
  }

  body .main-navigation .primary-menu-container > ul > li.lang-item img {
    display: none !important;
  }
}

/* --- Mobilní menu – základní jazyková položka --- */

@media (max-width: 1024px) {
  body .mobile-navigation .lang-item > a,
  body .drawer-navigation .lang-item > a {
    display: flex !important;
    align-items: center;
    gap: 10px;
    font-size: 0 !important;
  }

  body .mobile-navigation .lang-item > a::before,
  body .drawer-navigation .lang-item > a::before {
    font-size: 12px;
    font-weight: 760;
    line-height: 1;
    letter-spacing: 0.09em;
    text-transform: uppercase;
  }

  html[lang="cs-CZ"] body .mobile-navigation .lang-item > a::before,
  html[lang="cs-CZ"] body .drawer-navigation .lang-item > a::before,
  html[lang^="cs"] body .mobile-navigation .lang-item > a::before,
  html[lang^="cs"] body .drawer-navigation .lang-item > a::before {
    content: "EN";
  }

  html[lang^="en"] body .mobile-navigation .lang-item > a::before,
  html[lang^="en"] body .drawer-navigation .lang-item > a::before {
    content: "CZ";
  }

  body .mobile-navigation .lang-item img,
  body .drawer-navigation .lang-item img {
    display: none !important;
  }
}

/* ======================================================================
   [04] SPOLEČNÝ ZÁKLAD VLASTNÍCH STRÁNEK
   ====================================================================== */

.mh-page,
.mh-page * {
  box-sizing: border-box;
}

.mh-page {
  width: 100%;
  overflow-x: clip;
  color: var(--mh-ink);
  background: var(--mh-background);
  font-family: var(--mh-sans);
  font-size: 19px;
  line-height: 1.7;
}

.mh-page img {
  display: block;
  max-width: 100%;
}

.mh-page a {
  color: inherit;
}

.mh-page p,
.mh-page h1,
.mh-page h2,
.mh-page h3,
.mh-page figure,
.mh-page address,
.mh-page ul,
.mh-page dl {
  margin-top: 0;
}

.mh-page h1,
.mh-page h2,
.mh-page h3 {
  text-wrap: balance;
}

.mh-page section[id] {
  scroll-margin-top: 92px;
}

.mh-shell {
  width: min(var(--mh-shell), calc(100% - 64px));
  margin-right: auto;
  margin-left: auto;
}

.mh-section {
  padding: var(--mh-section-space) 0;
}

.mh-section--white {
  background: var(--mh-white);
}

.mh-section--soft {
  background: var(--mh-surface);
}

.mh-eyebrow {
  margin-bottom: 16px !important;
  color: var(--mh-blue);
  font-size: 14px;
  font-weight: 720;
  letter-spacing: 0.145em;
  line-height: 1.45;
  text-transform: uppercase;
}

.mh-page h2 {
  margin-bottom: 22px;
  color: var(--mh-ink);
  font-family: var(--mh-serif);
  font-size: clamp(2.65rem, 4vw, 3.75rem);
  font-weight: 400;
  letter-spacing: -0.042em;
  line-height: 1.02;
}

.mh-page h2::after {
  display: block;
  width: 38px;
  height: 2px;
  margin-top: 17px;
  background: var(--mh-blue);
  content: "";
}

.mh-page h3 {
  color: var(--mh-ink);
  font-family: var(--mh-sans);
  font-weight: 650;
  letter-spacing: -0.017em;
  line-height: 1.38;
}

/* --- Nadpisy a úvodní texty --- */

.mh-home h1 {
  max-width: none;
  margin-bottom: 21px;
  color: var(--mh-ink);
  font-family: var(--mh-sans);
  font-size: clamp(2.75rem, 3.25vw, 3.15rem);
  font-weight: 720;
  letter-spacing: -0.037em;
  line-height: 1.065;
}

.mh-title-line {
  display: block;
  white-space: nowrap;
}

.mh-section-heading {
  max-width: 900px;
  margin-bottom: 32px;
}

.mh-section-heading > p:last-child {
  max-width: 820px;
  margin-bottom: 0;
  color: var(--mh-text);
  font-size: 19px;
  line-height: 1.75;
}

.mh-section-intro {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.65fr);
  gap: 56px;
  align-items: end;
  margin-bottom: 31px;
}

.mh-section-intro > p {
  max-width: 420px;
  margin-bottom: 7px;
  color: var(--mh-text);
  font-size: 19px;
  line-height: 1.72;
}

/* ======================================================================
   [05] TLAČÍTKA, ODKAZY A PŘÍSTUPNOST
   ====================================================================== */

.mh-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 22px;
  margin-top: 28px;
}

.mh-button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 21px;
  border: 1px solid var(--mh-border);
  border-radius: 999px;
  font-size: 17px;
  font-weight: 650;
  line-height: 1.15;
  text-decoration: none !important;
  transition:
    transform 160ms ease,
    color 160ms ease,
    background 160ms ease,
    border-color 160ms ease,
    box-shadow 160ms ease;
}

.mh-button:hover {
  transform: translateY(-1px);
}

.mh-button-primary {
  border-color: var(--mh-blue);
  color: #fff !important;
  background: var(--mh-blue);
  box-shadow: 0 13px 28px rgba(7, 106, 159, 0.17);
}

.mh-button-primary:hover {
  border-color: var(--mh-blue-dark);
  background: var(--mh-blue-dark);
}

.mh-button-light {
  border-color: rgba(255, 255, 255, 0.24);
  color: var(--mh-white) !important;
}

.mh-button-light:hover {
  border-color: rgba(255, 255, 255, 0.52);
  background: rgba(255, 255, 255, 0.08);
}

.mh-action-link,
.mh-text-link {
  display: inline-flex;
  width: fit-content;
  max-width: 100%;
  align-items: center;
  gap: 8px;
  padding-bottom: 4px;
  color: var(--mh-ink) !important;
  border-bottom: 1px solid rgba(8, 35, 62, 0.28);
  font-size: 17px;
  font-weight: 650;
  line-height: 1.3;
  text-decoration: none !important;
}

.mh-action-link {
  padding-top: 9px;
  padding-bottom: 7px;
}

.mh-text-link {
  margin-top: 22px;
}

.mh-action-link span,
.mh-text-link b {
  color: var(--mh-blue);
  font-size: 1.05rem;
  font-weight: 650;
}

.mh-action-link:hover,
.mh-text-link:hover {
  color: var(--mh-blue) !important;
  border-color: var(--mh-blue);
}

.mh-page a:focus-visible,
.mh-button:focus-visible,
.mh-action-link:focus-visible,
.mh-text-link:focus-visible,
.mh-note-card:focus-visible,
.mh-publication a:focus-visible,
.mh-insight-card a:focus-visible {
  outline: 3px solid var(--mh-blue);
  outline-offset: 4px;
}

/* ======================================================================
   [06] DOMOVSKÁ STRÁNKA – HERO A STATISTIKY
   ====================================================================== */

.mh-hero {
  padding: 48px 0 42px;
  border-bottom: 1px solid rgba(8, 35, 62, 0.07);
  background:
    radial-gradient(
      circle at 78% 17%,
      rgba(139, 190, 221, 0.16),
      transparent 29%
    ),
    linear-gradient(180deg, var(--mh-surface) 0%, var(--mh-background) 100%);
}

.mh-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: clamp(46px, 5.3vw, 64px);
  align-items: center;
}

.mh-hero-content {
  min-width: 0;
}

.mh-hero-name {
  margin-bottom: 14px !important;
  color: var(--mh-ink);
  font-size: clamp(1.6rem, 2.35vw, 2rem);
  font-weight: 720;
  letter-spacing: -0.025em;
  line-height: 1.2;
}

.mh-hero-text {
  max-width: 760px;
  margin-bottom: 0 !important;
  color: var(--mh-text);
  font-size: 19px;
  line-height: 1.78;
}

.mh-portrait {
  width: 300px;
  justify-self: end;
  overflow: hidden;
  margin-bottom: 0 !important;
  border: 1px solid rgba(8, 35, 62, 0.1);
  border-radius: 18px;
  background: var(--mh-warm);
  box-shadow: 0 18px 42px rgba(16, 50, 77, 0.1);
}

.mh-portrait img {
  width: 100%;
  aspect-ratio: 6 / 7;
  object-fit: cover;
  object-position: center top;
}

/* --- Statistiky --- */

.mh-stats {
  display: grid;
  grid-template-columns: 1.16fr 0.92fr 0.92fr;
  max-width: 760px;
  margin-top: 27px;
  padding-top: 20px;
  border-top: 1px solid var(--mh-border);
}

.mh-stat {
  min-width: 0;
  padding: 0 20px;
  text-align: center;
}

.mh-stat:first-child {
  padding-left: 0;
}

.mh-stat:last-child {
  padding-right: 0;
}

.mh-stat + .mh-stat {
  border-left: 1px solid var(--mh-border);
}

.mh-stat strong {
  display: block;
  margin-bottom: 7px;
  color: var(--mh-ink);
  font-family: var(--mh-serif);
  font-size: clamp(1.55rem, 2.2vw, 1.88rem);
  font-weight: 400;
  line-height: 1.05;
}

.mh-stat span {
  display: block;
  color: var(--mh-muted);
  font-size: 12px !important;
  line-height: 1.45;
}

.mh-stat:first-child span,
.mh-stat:last-child span {
  white-space: nowrap;
}

/* ======================================================================
   [07] DOMOVSKÁ STRÁNKA – VÝZKUMNÉ LINIE
   ====================================================================== */

.mh-research-section {
  background: var(--mh-surface);
}

.mh-research-list {
  border-top: 1px solid var(--mh-border);
}

.mh-research-row {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 36px;
  align-items: start;
  padding: 23px 0 25px;
  border-bottom: 1px solid var(--mh-border);
}

.mh-research-label {
  padding-top: 4px;
  color: var(--mh-blue);
  font-size: 14px;
  font-weight: 720;
  letter-spacing: 0.125em;
  line-height: 1.5;
}

.mh-research-content {
  min-width: 0;
}

.mh-research-content h3 {
  max-width: 780px;
  margin-bottom: 9px;
  font-size: 20px;
}

.mh-research-content > p {
  max-width: 820px;
  margin-bottom: 15px;
  color: var(--mh-text);
  font-size: 18px;
  line-height: 1.7;
}

.mh-current-work {
  display: flex;
  max-width: 840px;
  align-items: baseline;
  gap: 15px;
  padding-top: 12px;
  border-top: 1px dashed rgba(8, 35, 62, 0.17);
}

.mh-current-work strong {
  flex: 0 0 auto;
  color: var(--mh-muted);
  font-size: 14px;
  font-weight: 720;
  letter-spacing: 0.105em;
  text-transform: uppercase;
}

.mh-current-work span {
  color: var(--mh-text);
  font-size: 17px;
  line-height: 1.62;
}

.mh-research-link {
  margin-top: 18px;
}

/* ======================================================================
   [08] PUBLIKACE – SEZNAM, DOI A VYHLEDÁVÁNÍ
   ====================================================================== */

.mh-publications-section {
  border-top: 1px solid rgba(8, 35, 62, 0.06);
  border-bottom: 1px solid rgba(8, 35, 62, 0.07);
  background: var(--mh-white);
}

.mh-publications {
  border-top: 1px solid var(--mh-border-strong);
}

.mh-publication {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 18px;
  padding: 21px 0 22px;
  border-bottom: 1px solid var(--mh-border);
}

.mh-publication-number {
  padding-top: 4px;
  color: #52697d;
  font-size: 14px;
  font-weight: 650;
}

.mh-publication-content {
  min-width: 0;
}

.mh-publication h3 {
  max-width: 980px;
  margin-bottom: 7px;
  font-size: 19px;
  font-weight: 650;
  line-height: 1.42;
}

.mh-publication-meta,
.mh-publication-excerpt {
  max-width: 980px;
  margin-bottom: 0;
  color: var(--mh-text);
  font-size: 18px;
  line-height: 1.65;
  overflow-wrap: anywhere;
}

.mh-publication-excerpt p {
  margin-bottom: 0;
}

.mh-publication-meta em,
.mh-publication-excerpt em {
  color: var(--mh-ink-soft);
}

.mh-publication-title-link {
  color: var(--mh-ink) !important;
  text-decoration: none !important;
  transition: color 160ms ease;
}

.mh-publication-title-link:hover {
  color: var(--mh-blue) !important;
}

/* --- DOI a metadata publikací --- */

.mh-doi-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.38em;
  margin-top: 5px;
  line-height: 1.5;
}

.mh-doi-label {
  color: var(--mh-muted);
  font-size: 0.88em;
  font-weight: 650;
  letter-spacing: 0.035em;
}

.mh-publication-meta .mh-doi-link,
.mh-publication-excerpt .mh-doi-link {
  display: inline;
  margin-left: 0;
  padding: 0;
  border: 0;
  color: #356f8e !important;
  background: transparent;
  font-size: 0.94em;
  font-weight: 520;
  line-height: inherit;
  text-decoration-line: underline !important;
  text-decoration-color: rgba(7, 106, 159, 0.32) !important;
  text-decoration-thickness: 1px !important;
  text-underline-offset: 3px;
  overflow-wrap: anywhere;
  transition:
    color 160ms ease,
    text-decoration-color 160ms ease;
}

.mh-publication-meta .mh-doi-link:hover,
.mh-publication-excerpt .mh-doi-link:hover {
  color: var(--mh-blue) !important;
  text-decoration-color: currentColor !important;
}

.mh-publication-excerpt .more-link {
  display: none !important;
}

.mh-publication-status {
  margin: 0;
  padding: 22px 0;
  border-top: 1px solid var(--mh-border-strong);
  border-bottom: 1px solid var(--mh-border);
  color: var(--mh-text);
  font-size: 17px;
}

/* --- Vyhledávání publikací --- */

.mh-publication-tools {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 18px 30px;
  margin-bottom: 25px;
  padding: 20px 22px;
  border: 1px solid var(--mh-border);
  border-radius: var(--mh-radius-small);
  background: rgba(255, 255, 255, 0.72);
}

.mh-publication-search {
  display: grid;
  flex: 1 1 320px;
  max-width: 520px;
  gap: 7px;
}

.mh-publication-search span {
  color: var(--mh-muted);
  font-size: 13px;
  font-weight: 720;
  letter-spacing: 0.085em;
  line-height: 1.3;
  text-transform: uppercase;
}

.mh-publication-search input {
  width: 100%;
  min-height: 48px;
  padding: 10px 15px;
  border: 1px solid var(--mh-border-strong);
  border-radius: 11px;
  color: var(--mh-ink);
  background: var(--mh-white);
  font: inherit;
  font-size: 16px;
  line-height: 1.35;
  outline: none;
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease;
}

.mh-publication-search input:focus {
  border-color: var(--mh-blue);
  box-shadow: 0 0 0 3px rgba(7, 106, 159, 0.12);
}

.mh-publication-count {
  margin: 0;
  color: var(--mh-text);
  font-size: 16px;
  font-weight: 620;
  line-height: 1.45;
}

/* ======================================================================
   [09] KARTY, SLUŽBY A SPOLUPRÁCE
   ====================================================================== */

.mh-collaboration {
  background: var(--mh-background);
}

.mh-collaboration-head {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(330px, 0.7fr);
  gap: clamp(58px, 8vw, 108px);
  align-items: start;
  margin-bottom: 32px;
}

.mh-collaboration-head h2 {
  max-width: 700px;
}

.mh-collaboration-action {
  margin-top: 2px;
}

.mh-collaboration-lead {
  padding-top: 34px;
}

.mh-collaboration-lead p {
  margin-bottom: 21px;
  color: var(--mh-ink-soft);
  font-size: clamp(19px, 1.25vw, 21px);
  font-weight: 500;
  line-height: 1.68;
}

/* --- Společný systém karet --- */

.mh-card-grid {
  display: grid;
  gap: 18px;
}

.mh-card-grid--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.mh-card {
  padding: 25px 24px;
  border: 1px solid var(--mh-border);
  border-radius: var(--mh-radius);
  background: rgba(255, 255, 255, 0.8);
  box-shadow: 0 11px 30px rgba(13, 48, 76, 0.04);
}

.mh-service {
  min-height: 188px;
}

.mh-service > span {
  display: block;
  margin-bottom: 14px;
  color: var(--mh-blue);
  font-size: 14px;
  font-weight: 720;
  letter-spacing: 0.115em;
}

.mh-service h3 {
  margin-bottom: 12px;
  font-size: 19px;
}

.mh-service p {
  margin-bottom: 0;
  color: var(--mh-text);
  font-size: 18px;
  line-height: 1.68;
}

/* ======================================================================
   [10] IMPACT – STRUKTUROVANÉ BLOKY
   ====================================================================== */

.mh-impact {
  padding: 52px 0;
  border-top: 1px solid rgba(8, 35, 62, 0.07);
  border-bottom: 1px solid rgba(8, 35, 62, 0.08);
  background: linear-gradient(
    135deg,
    var(--mh-warm-light) 0%,
    var(--mh-warm) 100%
  );
}

.mh-impact-intro {
  align-items: center;
}

.mh-impact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--mh-border);
  border-bottom: 1px solid var(--mh-border);
}

.mh-impact-item {
  min-width: 0;
  padding: 24px 22px 26px;
}

.mh-impact-item + .mh-impact-item {
  border-left: 1px solid var(--mh-border);
}

.mh-impact-item:nth-child(3) {
  border-top: 1px solid var(--mh-border);
  border-left: 0;
}

.mh-impact-item:nth-child(4) {
  border-top: 1px solid var(--mh-border);
}

.mh-impact-item > span {
  display: block;
  margin-bottom: 12px;
  color: var(--mh-blue);
  font-size: 14px;
  font-weight: 720;
  letter-spacing: 0.12em;
  line-height: 1.45;
}

.mh-impact-item h3 {
  margin-bottom: 11px;
  font-size: 19px;
}

.mh-impact-item p {
  margin-bottom: 0;
  color: var(--mh-text);
  font-size: 18px;
  line-height: 1.67;
}

/* ======================================================================
   [11] VÝUKA A DOKTORSKÉ VEDENÍ
   ====================================================================== */

.mh-teaching {
  background: var(--mh-surface);
}

.mh-teaching-grid {
  display: grid;
  grid-template-columns: minmax(310px, 0.78fr) minmax(0, 1.22fr);
  gap: clamp(54px, 8vw, 106px);
  padding-top: 46px;
  padding-bottom: 46px;
  border-top: 1px solid var(--mh-border);
  border-bottom: 1px solid var(--mh-border);
}

.mh-teaching-heading h2 {
  margin-bottom: 0;
  font-size: clamp(2.55rem, 3.35vw, 3.3rem);
}

.mh-teaching-content {
  align-self: center;
}

.mh-teaching-lead {
  margin-bottom: 20px;
  color: var(--mh-text);
  font-size: 19px;
  line-height: 1.76;
}

.mh-teaching-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.mh-teaching-list li {
  position: relative;
  padding-left: 17px;
  color: var(--mh-text);
  font-size: 18px;
  line-height: 1.56;
}

.mh-teaching-list li::before {
  position: absolute;
  top: 0.69em;
  left: 0;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--mh-blue);
  content: "";
}

.mh-topic-line {
  display: flex;
  flex-wrap: wrap;
  margin-top: 23px;
  padding-top: 17px;
  border-top: 1px solid var(--mh-border);
}

.mh-topic-line span {
  color: var(--mh-ink);
  font-size: 15px;
  font-weight: 620;
}

.mh-topic-line span:not(:last-child)::after {
  margin: 0 11px;
  color: #9aabb9;
  content: "/";
}

/* ======================================================================
   [12] KARTY ZÁPISNÍKU NA DOMOVSKÉ STRÁNCE
   ====================================================================== */

.mh-notes-section {
  background: var(--mh-background);
}

.mh-notes-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.mh-note-card {
  display: flex;
  min-height: 290px;
  flex-direction: column;
  padding: 25px 23px 22px;
  border: 1px solid var(--mh-border);
  border-radius: var(--mh-radius);
  color: inherit !important;
  background: rgba(255, 255, 255, 0.8);
  text-decoration: none !important;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background 180ms ease,
    box-shadow 180ms ease;
}

.mh-note-card:hover {
  transform: translateY(-3px);
  border-color: rgba(7, 106, 159, 0.25);
  background: #fff;
  box-shadow: var(--mh-shadow);
}

.mh-note-meta {
  display: block;
  margin-bottom: 14px;
  color: var(--mh-muted);
  font-size: 13px;
  font-weight: 650;
  letter-spacing: 0.08em;
  line-height: 1.45;
  text-transform: uppercase;
}

.mh-note-card h3 {
  margin-bottom: 13px;
  font-size: 19px;
}

.mh-note-excerpt {
  display: -webkit-box;
  overflow: hidden;
  margin-bottom: 20px;
  color: var(--mh-text);
  font-size: 18px;
  line-height: 1.68;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
}

.mh-note-card strong {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  color: var(--mh-blue);
  font-size: 16px;
  font-weight: 650;
}

/* ======================================================================
   [13] KONTAKT A ODBORNÉ PROFILY
   ====================================================================== */

.mh-contact-section {
  padding-bottom: 52px;
  background: var(--mh-surface);
}

.mh-contact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  align-items: stretch;
}

.mh-contact-card,
.mh-profiles-card {
  padding: clamp(32px, 4vw, 45px);
  border: 1px solid var(--mh-border);
  border-radius: var(--mh-radius);
  box-shadow: var(--mh-shadow);
}

.mh-contact-card {
  background: rgba(255, 255, 255, 0.86);
}

.mh-profiles-card {
  background: linear-gradient(
    135deg,
    rgba(250, 247, 241, 0.98),
    rgba(241, 234, 224, 0.98)
  );
}

.mh-contact-card h2,
.mh-profiles-card h2 {
  font-size: clamp(2.4rem, 3.45vw, 3.15rem);
}

.mh-contact-card > p:not(.mh-eyebrow),
.mh-profiles-card > p:not(.mh-eyebrow) {
  color: var(--mh-text);
  font-size: 18px;
  line-height: 1.72;
}

.mh-contact-card address {
  margin: 22px 0;
  color: var(--mh-text);
  font-size: 18px;
  font-style: normal;
  line-height: 1.66;
}

.mh-contact-card address strong {
  color: var(--mh-ink-soft);
  font-weight: 650;
}

.mh-contact-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
}

.mh-email-link {
  color: var(--mh-ink-soft) !important;
  font-size: 16px;
  font-weight: 650;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.mh-email-link .mh-email-label {
  color: var(--mh-muted) !important;
}

.mh-email-link .mh-email-address {
  color: var(--mh-ink-soft) !important;
  font-weight: 650;
}

.mh-email-link span {
  color: var(--mh-muted);
  font-weight: 520;
  text-decoration: none;
}

/* --- QR kontakt --- */

.mh-contact-qr {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  align-items: center;
  gap: 22px;
  margin-top: 28px;
  padding-top: 26px;
  border-top: 1px solid var(--mh-border);
}

.mh-contact-qr img {
  width: 132px;
  height: 132px;
  padding: 8px;
  border: 1px solid var(--mh-border);
  border-radius: 12px;
  background: #fff;
}

.mh-contact-qr strong {
  display: block;
  margin-bottom: 7px;
  color: var(--mh-ink-soft);
  font-size: 18px;
  font-weight: 680;
  line-height: 1.35;
}

.mh-contact-qr p {
  margin: 0;
  color: var(--mh-muted);
  font-size: 15px;
  line-height: 1.6;
}

/* --- Odborné profily --- */

.mh-profile-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 24px;
  border-top: 1px solid var(--mh-border);
}

.mh-profile-list a {
  display: flex;
  min-height: 96px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 13px;
  color: var(--mh-ink) !important;
  border-bottom: 1px solid var(--mh-border);
  text-decoration: none !important;
}

.mh-profile-list a:nth-child(odd) {
  padding-right: 20px;
  padding-left: 0;
  border-right: 1px solid var(--mh-border);
}

.mh-profile-list a:nth-child(even) {
  padding-right: 0;
  padding-left: 20px;
}

.mh-profile-list a:hover strong,
.mh-profile-list a:hover b {
  color: var(--mh-blue);
}

.mh-profile-list small {
  display: block;
  margin-bottom: 7px;
  color: var(--mh-blue);
  font-size: 14px;
  font-weight: 720;
  letter-spacing: 0.095em;
}

.mh-profile-list strong {
  display: block;
  color: var(--mh-ink);
  font-size: 17px;
  font-weight: 620;
  line-height: 1.42;
  white-space: nowrap;
  transition: color 160ms ease;
}

.mh-profile-list b {
  flex: 0 0 auto;
  color: var(--mh-ink);
  font-size: 17px;
  font-weight: 650;
  transition: color 160ms ease;
}

/* ======================================================================
   [14] VNITŘNÍ STRÁNKY – HERO A KOMPONENTY
   ====================================================================== */

.mh-page-hero {
  position: relative;
  padding: 82px 0 48px;
  background:
    radial-gradient(
      circle at 88% 18%,
      rgba(7, 106, 159, 0.11),
      transparent 28%
    ),
    linear-gradient(180deg, #f8fcfe 0%, var(--mh-background) 100%);
}

.mh-page-hero::before {
  position: absolute;
  top: 0;
  left: max(32px, calc((100% - var(--mh-shell)) / 2));
  width: 72px;
  height: 3px;
  background: var(--mh-blue);
  content: "";
}

.mh-page-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(300px, 0.62fr);
  gap: 72px;
  align-items: end;
}

.mh-page-title {
  max-width: 880px;
  margin-bottom: 24px;
  color: var(--mh-ink);
  font-family: var(--mh-serif);
  font-size: clamp(2.85rem, 5vw, 4.65rem);
  font-weight: 400;
  letter-spacing: -0.05em;
  line-height: 1.01;
}

.mh-page-lead {
  max-width: 770px;
  margin-bottom: 0;
  color: var(--mh-text);
  font-size: clamp(1.1rem, 1.5vw, 1.3rem);
  line-height: 1.68;
}

/* --- Faktografický box --- */

.mh-facts {
  margin: 0;
  padding: 25px 27px;
  border: 1px solid var(--mh-border);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 14px 34px rgba(16, 50, 77, 0.05);
}

.mh-fact {
  padding: 0 0 14px;
  border-bottom: 1px solid var(--mh-border);
}

.mh-fact + .mh-fact {
  padding-top: 14px;
}

.mh-fact:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.mh-fact dt {
  margin-bottom: 5px;
  color: var(--mh-muted);
  font-size: 12px;
  font-weight: 730;
  letter-spacing: 0.1em;
  line-height: 1.4;
  text-transform: uppercase;
}

.mh-fact dd {
  margin: 0;
  color: var(--mh-ink);
  font-size: 16px;
  font-weight: 650;
  line-height: 1.45;
}

/* --- Rozdělený obsah a zvýrazněná tvrzení --- */

.mh-feature-split {
  display: grid;
  grid-template-columns: minmax(230px, 0.45fr) minmax(0, 1fr);
  gap: 70px;
  align-items: start;
}

.mh-statement {
  margin: 0;
  padding-left: 22px;
  border-left: 3px solid var(--mh-blue);
  color: var(--mh-ink-soft);
  font-family: var(--mh-serif);
  font-size: clamp(1.35rem, 2vw, 1.7rem);
  line-height: 1.4;
}

.mh-columns--2 {
  columns: 2;
  column-gap: 42px;
}

.mh-columns--2 > * {
  break-inside: avoid;
}

.mh-copy p {
  margin-bottom: 18px;
  color: var(--mh-text);
}

.mh-copy p:last-child {
  margin-bottom: 0;
}

/* --- Číslované karty --- */

.mh-numbered-card {
  position: relative;
  min-height: 315px;
  overflow: hidden;
  padding: 31px 29px 28px;
}

.mh-numbered-card::after {
  position: absolute;
  right: 16px;
  bottom: -15px;
  color: rgba(7, 106, 159, 0.10);
  font-family: var(--mh-serif);
  font-size: 6.6rem;
  font-weight: 400;
  line-height: 1;
  content: attr(data-number);
  pointer-events: none;
}

.mh-numbered-card > * {
  position: relative;
  z-index: 1;
}

.mh-card-label {
  display: block;
  margin-bottom: 25px;
  color: var(--mh-blue);
  font-size: 12px;
  font-weight: 750;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.mh-numbered-card h3 {
  margin-bottom: 14px;
  font-size: 1.3rem;
  font-weight: 700;
  line-height: 1.3;
}

.mh-numbered-card p {
  margin-bottom: 0;
  color: var(--mh-text);
  font-size: 16.5px;
  line-height: 1.68;
}

/* --- Dvousloupcové bloky a seznamy --- */

.mh-split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 76px;
}

.mh-split > * + * {
  padding-left: 76px;
  border-left: 1px solid var(--mh-border);
}

.mh-split p {
  color: var(--mh-text);
}

.mh-arrow-list {
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.mh-arrow-list li {
  position: relative;
  padding: 10px 0 10px 28px;
  border-top: 1px solid var(--mh-border);
  color: var(--mh-ink-soft);
}

.mh-arrow-list li::before {
  position: absolute;
  top: 10px;
  left: 2px;
  color: var(--mh-blue);
  font-weight: 800;
  content: "→";
}

.mh-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 25px;
}

.mh-tag {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  padding: 0 14px 1px;
  border: 1px solid rgba(7, 106, 159, 0.18);
  border-radius: 999px;
  color: var(--mh-ink-soft);
  background: rgba(7, 106, 159, 0.055);
  font-size: 14px;
  font-weight: 650;
  line-height: 1.05;
  text-align: center;
}

/*
 * Optické centrování pill prvků je řešeno přímo v jejich základních
 * pravidlech. Symetrické horizontální odsazení + justify-content:center
 * zajišťuje skutečný střed; spodní 1 px kompenzuje optiku použitého fontu.
 */

/* --- Výzvový blok --- */

.mh-callout-wrap {
  padding: 58px 0 66px;
  border-top: 1px solid var(--mh-border);
  background: var(--mh-surface);
}

.mh-callout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: clamp(38px, 6vw, 78px);
  align-items: end;
  padding: 0;
  color: var(--mh-ink);
}

.mh-callout .mh-eyebrow {
  color: var(--mh-blue);
}

.mh-callout h2 {
  max-width: 760px;
  margin-bottom: 14px;
  color: var(--mh-ink);
  font-size: clamp(2.3rem, 3.45vw, 3.2rem);
  line-height: 1.06;
}

.mh-callout h2::after {
  display: block;
}

.mh-callout p:not(.mh-eyebrow) {
  max-width: 720px;
  margin-bottom: 0;
  color: var(--mh-text);
  font-size: 17px;
  line-height: 1.65;
}

.mh-callout .mh-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
  margin-top: 0;
}

/*
 * Závěrečné odkazy na vnitřních stránkách mají jednotnou podobu
 * kompaktních tlačítek. Primární akce je plná, ostatní jsou obrysové.
 */
.mh-callout .mh-button,
.mh-callout .mh-action-link {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 18px;
  border: 1px solid var(--mh-border-strong);
  border-radius: 999px;
  color: var(--mh-ink) !important;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: none;
  font-size: 16px;
  font-weight: 650;
  line-height: 1.1;
  text-decoration: none !important;
  transform: none;
}

.mh-callout .mh-button-primary {
  border-color: var(--mh-blue);
  color: #fff !important;
  background: var(--mh-blue);
  box-shadow: 0 10px 22px rgba(7, 106, 159, 0.14);
}

.mh-callout .mh-button-light,
.mh-callout .mh-action-link {
  border-color: rgba(8, 35, 62, 0.18);
  color: var(--mh-ink) !important;
  background: rgba(255, 255, 255, 0.68);
}

.mh-callout .mh-button-primary:hover {
  border-color: var(--mh-blue-dark);
  color: #fff !important;
  background: var(--mh-blue-dark);
  transform: translateY(-1px);
}

.mh-callout .mh-button-light:hover,
.mh-callout .mh-action-link:hover {
  border-color: rgba(7, 106, 159, 0.34);
  color: var(--mh-blue-dark) !important;
  background: rgba(7, 106, 159, 0.06);
  transform: translateY(-1px);
}

.mh-callout .mh-button:focus-visible,
.mh-callout .mh-action-link:focus-visible {
  outline: 3px solid rgba(7, 106, 159, 0.28);
  outline-offset: 4px;
}

.mh-callout .mh-action-link span {
  color: var(--mh-blue);
}

/* ======================================================================
   [15] KONTAKTNÍ FORMULÁŘ – FLUENT FORMS
   ====================================================================== */

#formular {
  background:
    radial-gradient(
      circle at 90% 10%,
      rgba(7, 106, 159, 0.055),
      transparent 27%
    ),
    var(--mh-surface);
}

#formular .mh-form-section-heading {
  max-width: 780px;
  margin-bottom: 30px;
}

#formular .mh-form-section-heading > p:last-child {
  max-width: 680px;
}

/* --- Rozložení formuláře --- */

.mh-form-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(320px, 0.78fr);
  gap: 24px;
  align-items: start;
}

.mh-form-panel,
.mh-form-guide-card {
  min-width: 0;
  border: 1px solid var(--mh-border);
  border-radius: var(--mh-radius);
  box-shadow: var(--mh-shadow);
}

.mh-form-panel {
  padding: 36px 38px 38px;
  background: var(--mh-white);
}

.mh-form-guide-card {
  padding: 36px 34px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.28), rgba(255, 255, 255, 0)),
    var(--mh-warm-light);
}

.mh-form-panel-head {
  max-width: 640px;
  margin-bottom: 26px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--mh-border);
}

.mh-form-panel h3,
.mh-form-guide-card h3 {
  margin-bottom: 10px;
  color: var(--mh-ink);
  font-size: 24px;
  font-weight: 680;
  line-height: 1.28;
}

.mh-form-panel-head > p:last-child,
.mh-form-guide-card > p:not(.mh-eyebrow):not(.mh-form-guide-note) {
  margin-bottom: 0;
  color: var(--mh-text);
  font-size: 17px;
  line-height: 1.72;
}

.mh-form-guide {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 24px;
  border-top: 1px solid var(--mh-border);
}

.mh-form-guide-item {
  min-width: 0;
  padding: 18px 0 19px;
  border-bottom: 1px solid var(--mh-border);
}

.mh-form-guide-item:nth-child(odd) {
  padding-right: 19px;
  border-right: 1px solid var(--mh-border);
}

.mh-form-guide-item:nth-child(even) {
  padding-left: 19px;
}

.mh-form-guide-item small {
  display: block;
  margin-bottom: 6px;
  color: var(--mh-blue);
  font-size: 13px;
  font-weight: 760;
  letter-spacing: 0.105em;
  line-height: 1.4;
}

.mh-form-guide-item strong {
  display: block;
  color: var(--mh-ink);
  font-size: 16px;
  font-weight: 650;
  line-height: 1.45;
}

.mh-form-guide-note {
  margin: 22px 0 0;
  padding: 17px 18px;
  border: 1px solid rgba(7, 106, 159, 0.13);
  border-radius: 13px;
  color: var(--mh-text);
  background: rgba(255, 255, 255, 0.46);
  font-size: 15px;
  line-height: 1.62;
}

.mh-form-guide-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
  padding-bottom: 4px;
  color: var(--mh-ink) !important;
  border-bottom: 1px solid rgba(8, 35, 62, 0.25);
  font-size: 16px;
  font-weight: 650;
  line-height: 1.35;
  text-decoration: none !important;
}

.mh-form-guide-link span {
  color: var(--mh-blue);
}

.mh-form-guide-link:hover {
  color: var(--mh-blue) !important;
  border-color: var(--mh-blue);
}

/* V96 – větší odstup poznámky pod čtyřmi body pouze na desktopu. */
@media (min-width: 981px) {
  .mh-contact-page .mh-form-guide-note {
    margin-top: 30px !important;
  }
}

/* --- Vlastní vzhled Fluent Forms --- */

#formular .mh-fluent-form,
#formular .mh-fluent-form .fluentform,
#formular .mh-fluent-form form {
  width: 100%;
  max-width: none;
}

#formular .mh-fluent-form .ff-el-group {
  margin-bottom: 20px;
}

#formular .mh-fluent-form .ff-el-group:last-child {
  margin-bottom: 0;
}

#formular .mh-fluent-form .ff-el-input--label {
  margin-bottom: 8px;
}

#formular .mh-fluent-form .ff-el-input--label label,
#formular .mh-fluent-form label {
  color: var(--mh-ink);
  font-family: var(--mh-sans);
  font-size: 16px;
  font-weight: 670;
  line-height: 1.4;
}

#formular .mh-fluent-form .ff-el-input--label.ff-el-is-required label::after,
#formular .mh-fluent-form .ff-el-input--label label .ff-el-required,
#formular .mh-fluent-form .ff-el-required {
  color: #c94d55 !important;
}

#formular .mh-fluent-form .ff-el-help-message {
  margin-top: 7px;
  color: var(--mh-muted);
  font-size: 14px;
  line-height: 1.55;
}

#formular .mh-fluent-form input[type="text"],
#formular .mh-fluent-form input[type="email"],
#formular .mh-fluent-form input[type="tel"],
#formular .mh-fluent-form input[type="url"],
#formular .mh-fluent-form input[type="number"],
#formular .mh-fluent-form select,
#formular .mh-fluent-form textarea,
#formular .mh-fluent-form .ff-el-form-control {
  width: 100%;
  max-width: none;
  min-height: 54px;
  padding: 13px 15px;
  border: 1px solid rgba(8, 35, 62, 0.18) !important;
  border-radius: 12px !important;
  color: var(--mh-ink) !important;
  background-color: #fff !important;
  box-shadow: 0 1px 2px rgba(8, 35, 62, 0.025) !important;
  font-family: var(--mh-sans);
  font-size: 16px;
  line-height: 1.45;
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease,
    background-color 160ms ease;
}

#formular .mh-fluent-form textarea,
#formular .mh-fluent-form textarea.ff-el-form-control {
  min-height: 156px;
  padding-top: 14px;
  resize: vertical;
}

#formular .mh-fluent-form select,
#formular .mh-fluent-form select.ff-el-form-control {
  appearance: none;
  padding-right: 46px;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--mh-muted) 50%),
    linear-gradient(135deg, var(--mh-muted) 50%, transparent 50%);
  background-position:
    calc(100% - 22px) calc(50% - 3px),
    calc(100% - 16px) calc(50% - 3px);
  background-repeat: no-repeat;
  background-size:
    6px 6px,
    6px 6px;
}

#formular .mh-fluent-form input:hover,
#formular .mh-fluent-form select:hover,
#formular .mh-fluent-form textarea:hover,
#formular .mh-fluent-form .ff-el-form-control:hover {
  border-color: rgba(7, 106, 159, 0.38) !important;
}

#formular .mh-fluent-form input:focus,
#formular .mh-fluent-form select:focus,
#formular .mh-fluent-form textarea:focus,
#formular .mh-fluent-form .ff-el-form-control:focus {
  border-color: var(--mh-blue) !important;
  outline: none !important;
  box-shadow: 0 0 0 4px rgba(7, 106, 159, 0.12) !important;
}

#formular .mh-fluent-form input::placeholder,
#formular .mh-fluent-form textarea::placeholder {
  color: #8192a1;
  opacity: 1;
}

#formular .mh-fluent-form input:-webkit-autofill,
#formular .mh-fluent-form input:-webkit-autofill:hover,
#formular .mh-fluent-form input:-webkit-autofill:focus {
  -webkit-text-fill-color: var(--mh-ink);
  box-shadow: 0 0 0 1000px #fff inset !important;
  transition: background-color 9999s ease-out 0s;
}

#formular .mh-fluent-form .mh-form-privacy {
  margin: 3px 0 0;
  padding: 15px 17px;
  border-left: 3px solid rgba(7, 106, 159, 0.5);
  border-radius: 0 10px 10px 0;
  color: var(--mh-text);
  background: rgba(7, 106, 159, 0.055);
  font-size: 14px;
  line-height: 1.62;
}

#formular .mh-fluent-form .ff-btn-submit,
#formular .mh-fluent-form button[type="submit"],
#formular .mh-fluent-form input[type="submit"] {
  display: inline-flex !important;
  width: auto !important;
  min-width: 176px;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
  padding: 13px 23px !important;
  border: 1px solid var(--mh-blue) !important;
  border-radius: 999px !important;
  color: #fff !important;
  background: var(--mh-blue) !important;
  box-shadow: 0 13px 28px rgba(7, 106, 159, 0.17) !important;
  font-family: var(--mh-sans);
  font-size: 16px !important;
  font-weight: 680 !important;
  line-height: 1.2 !important;
  text-transform: none !important;
  cursor: pointer;
  transition:
    transform 160ms ease,
    background 160ms ease,
    border-color 160ms ease,
    box-shadow 160ms ease;
}

#formular .mh-fluent-form .ff-btn-submit:hover,
#formular .mh-fluent-form button[type="submit"]:hover,
#formular .mh-fluent-form input[type="submit"]:hover {
  border-color: var(--mh-blue-dark) !important;
  background: var(--mh-blue-dark) !important;
  box-shadow: 0 16px 32px rgba(7, 106, 159, 0.22) !important;
  transform: translateY(-1px);
}

#formular .mh-fluent-form .ff-btn-submit:focus-visible,
#formular .mh-fluent-form button[type="submit"]:focus-visible,
#formular .mh-fluent-form input[type="submit"]:focus-visible {
  outline: 3px solid rgba(7, 106, 159, 0.28) !important;
  outline-offset: 4px;
}

#formular .mh-fluent-form .ff-btn-submit:disabled,
#formular .mh-fluent-form button[type="submit"]:disabled,
#formular .mh-fluent-form input[type="submit"]:disabled {
  cursor: wait;
  opacity: 0.68;
  transform: none;
}

#formular .mh-fluent-form .text-danger,
#formular .mh-fluent-form .error,
#formular .mh-fluent-form .ff-el-is-error .text-danger {
  display: block;
  margin-top: 7px;
  color: #a9363e !important;
  font-size: 14px;
  line-height: 1.5;
}

#formular .mh-fluent-form .ff-el-is-error .ff-el-form-control {
  border-color: rgba(169, 54, 62, 0.72) !important;
  box-shadow: 0 0 0 3px rgba(169, 54, 62, 0.09) !important;
}

#formular .mh-fluent-form .ff-message-success {
  margin: 0;
  padding: 18px 20px;
  border: 1px solid rgba(42, 111, 72, 0.2);
  border-radius: 13px;
  color: #245e3c;
  background: #edf7f1;
  font-size: 16px;
  line-height: 1.62;
}

#formular .mh-fluent-form .ff-message-success p:last-child {
  margin-bottom: 0;
}

/* ======================================================================
   [16] ZÁPISNÍK – VÝPIS, VYHLEDÁVÁNÍ A STRÁNKOVÁNÍ
   ====================================================================== */

.mh-insights-page {
  background: var(--mh-background);
}

body .mh-insights-page .mh-insights-hero {
  position: relative;
  padding: 56px 0 48px;
  border-bottom: 1px solid rgba(8, 35, 62, 0.09);
  background:
    radial-gradient(
      circle at 86% 12%,
      rgba(7, 106, 159, 0.08),
      transparent 26%
    ),
    linear-gradient(180deg, #fbfdfe 0%, #f2f8fb 100%);
}

body .mh-insights-page .mh-insights-hero::before {
  position: absolute;
  top: 0;
  left: max(32px, calc((100% - var(--mh-shell)) / 2));
  width: 72px;
  height: 3px;
  background: var(--mh-blue);
  content: "";
}

body .mh-insights-page .mh-insights-hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(270px, 340px);
  gap: clamp(38px, 6vw, 72px);
  align-items: end;
}

body .mh-insights-page .mh-insights-intro {
  max-width: 760px;
}

body .mh-insights-page .mh-insights-hero .mh-page-title {
  margin-bottom: 13px;
}

body .mh-insights-page .mh-insights-hero .mh-page-lead {
  margin-bottom: 0;
}

/* Facebook je doplňkový odkaz, nikoli druhá dominantní karta. */
body .mh-insights-page .mh-facebook-card {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 13px;
  align-items: start;
  padding: 3px 0 3px 22px;
  border: 0;
  border-left: 1px solid rgba(7, 106, 159, 0.22);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

body .mh-insights-page .mh-facebook-icon {
  display: inline-flex;
  width: 38px;
  height: 38px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #fff;
  background: #1877f2;
  box-shadow: none;
}

body .mh-insights-page .mh-facebook-icon svg {
  width: 20px;
  height: 20px;
}

body .mh-insights-page .mh-facebook-kicker {
  margin: 0 0 2px;
  color: var(--mh-blue);
  font-size: 11px;
  font-weight: 730;
  letter-spacing: 0.1em;
  line-height: 1.35;
  text-transform: uppercase;
}

body .mh-insights-page .mh-facebook-title {
  margin: 0 0 4px;
  color: var(--mh-ink);
  font-size: 16px;
  font-weight: 690;
  line-height: 1.35;
}

body .mh-insights-page .mh-facebook-text {
  margin: 0 0 8px;
  color: var(--mh-text);
  font-size: 14px;
  line-height: 1.45;
}

body .mh-insights-page .mh-facebook-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 0 2px;
  border: 0;
  border-bottom: 1px solid rgba(7, 106, 159, 0.3);
  border-radius: 0;
  color: var(--mh-blue-dark) !important;
  background: transparent;
  font-size: 14px;
  font-weight: 660;
  line-height: 1.3;
  text-decoration: none !important;
}

body .mh-insights-page .mh-facebook-link:hover {
  border-bottom-color: var(--mh-blue);
  color: var(--mh-blue) !important;
  background: transparent;
}

body .mh-insights-page .mh-facebook-link:focus-visible {
  outline: 3px solid rgba(7, 106, 159, 0.28);
  outline-offset: 4px;
}

body .mh-insights-page .mh-insights-section {
  padding-top: 50px;
  background: var(--mh-background);
}

body .mh-insights-page .mh-insights-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 420px);
  gap: 56px;
  align-items: end;
  margin-bottom: 24px;
}

.mh-insights-heading h2 {
  margin-bottom: 0;
  font-size: clamp(2.55rem, 3.5vw, 3.3rem);
}

.mh-insights-heading > p {
  margin: 0 0 5px;
  color: var(--mh-text);
  font-size: 18px;
  line-height: 1.68;
}


/* --- Filtry rubrik a štítky článků --- */

.mh-insights-page .mh-insights-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
  margin: 0 0 16px;
}

.mh-insights-page .mh-insights-filters[hidden] {
  display: none !important;
}

.mh-insights-page .mh-insights-filters-label {
  flex: 0 0 auto;
  color: var(--mh-muted);
  font-size: 12px;
  font-weight: 730;
  letter-spacing: 0.08em;
  line-height: 1.3;
  text-transform: uppercase;
}

.mh-insights-page .mh-insights-filter-list {
  display: flex;
  flex: 1 1 520px;
  flex-wrap: wrap;
  gap: 7px;
}

.mh-insights-page .mh-insights-filter {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  justify-content: center;
  padding: 0 12px 1px;
  border: 1px solid rgba(7, 106, 159, 0.18);
  border-radius: 999px;
  color: var(--mh-blue-dark) !important;
  background: rgba(255, 255, 255, 0.76);
  font-size: 14px;
  font-weight: 680;
  line-height: 1.05;
  text-align: center;
  text-decoration: none !important;
  transition:
    color 160ms ease,
    border-color 160ms ease,
    background-color 160ms ease,
    box-shadow 160ms ease;
}

.mh-insights-page .mh-insights-filter:hover {
  border-color: rgba(7, 106, 159, 0.42);
  background: rgba(7, 106, 159, 0.08);
}

.mh-insights-page .mh-insights-filter[aria-current="true"] {
  border-color: var(--mh-blue);
  color: #ffffff !important;
  background: var(--mh-blue);
  box-shadow: 0 5px 14px rgba(7, 106, 159, 0.16);
}

.mh-insights-page .mh-insights-filter:focus-visible {
  outline: 3px solid rgba(7, 106, 159, 0.28);
  outline-offset: 3px;
}

.mh-insights-page .mh-insight-categories {
  display: flex;
  min-width: 0;
  flex-wrap: wrap;
  gap: 6px;
}

.mh-insights-page .mh-insight-categories .mh-insight-category {
  display: inline-flex;
  min-height: 29px;
  align-items: center;
  justify-content: center;
  padding: 0 10px 1px;
  border-radius: 999px;
  color: var(--mh-blue-dark) !important;
  background: rgba(7, 106, 159, 0.085);
  font-size: 12px;
  font-weight: 730;
  letter-spacing: 0.035em;
  line-height: 1.05;
  text-align: center;
  text-decoration: none !important;
  text-transform: uppercase;
  transition:
    color 160ms ease,
    background-color 160ms ease,
    box-shadow 160ms ease;
}

.mh-insights-page .mh-insight-categories .mh-insight-category:hover,
.mh-insights-page .mh-insight-categories .mh-insight-category.is-active {
  color: var(--mh-ink) !important;
  background: rgba(7, 106, 159, 0.15);
}

.mh-insights-page .mh-insight-categories .mh-insight-category:focus-visible {
  outline: 2px solid var(--mh-blue);
  outline-offset: 3px;
}

/* --- Vyhledávání a počitadlo --- */

.mh-insights-toolbar {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-bottom: 18px;
  padding: 12px 14px;
  border: 1px solid var(--mh-border);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.72);
}

.mh-insights-search {
  flex: 1 1 auto;
  margin: 0;
}

.mh-insights-search input {
  width: 100%;
  min-height: 48px;
  margin: 0;
  padding: 10px 15px;
  border: 1px solid var(--mh-border-strong);
  border-radius: 11px;
  color: var(--mh-ink);
  background: var(--mh-white);
  font: inherit;
  font-size: 17px;
  line-height: 1.35;
  outline: none;
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease;
}

.mh-insights-search input:focus {
  border-color: var(--mh-blue);
  box-shadow: 0 0 0 3px rgba(7, 106, 159, 0.12);
}

.mh-insights-count {
  flex: 0 0 auto;
  min-width: 95px;
  margin: 0;
  color: var(--mh-ink-soft);
  font-size: 16px;
  font-weight: 680;
  line-height: 1.4;
  text-align: right;
}

/* --- Karty článků --- */

.mh-insights-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.mh-insight-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(205px, 230px) minmax(0, 1fr) max-content;
  grid-template-areas:
    "meta title link"
    "meta excerpt link";
  column-gap: 28px;
  row-gap: 7px;
  align-items: start;
  min-height: 0;
  padding: 24px 26px;
  overflow: hidden;
  border: 1px solid var(--mh-border);
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.78);
  transition:
    border-color 180ms ease,
    background-color 180ms ease,
    box-shadow 180ms ease;
}

.mh-insight-card::before {
  position: absolute;
  top: 20px;
  bottom: 20px;
  left: 0;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: var(--mh-blue);
  content: "";
}

.mh-insight-card:hover {
  border-color: rgba(7, 106, 159, 0.28);
  background: #fff;
  box-shadow: 0 12px 30px rgba(16, 50, 77, 0.065);
}

.mh-insight-card[hidden] {
  display: none !important;
}

.mh-insight-meta {
  grid-area: meta;
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: flex-start;
  gap: 9px;
  align-self: stretch;
  margin: 0;
  padding-right: 22px;
  border-right: 1px solid var(--mh-border);
}

.mh-insight-meta > span,
.mh-insight-meta > a.mh-insight-category {
  display: inline-flex;
  min-height: 29px;
  align-items: center;
  justify-content: center;
  padding: 0 10px 1px;
  border-radius: 999px;
  color: var(--mh-blue-dark);
  background: rgba(7, 106, 159, 0.085);
  font-size: 12px;
  font-weight: 730;
  letter-spacing: 0.035em;
  line-height: 1.05;
  text-align: center;
  text-transform: uppercase;
}

.mh-insight-meta > a.mh-insight-category {
  text-decoration: none !important;
  transition:
    color 160ms ease,
    background-color 160ms ease,
    box-shadow 160ms ease;
}

.mh-insight-meta > a.mh-insight-category:hover {
  color: var(--mh-ink) !important;
  background: rgba(7, 106, 159, 0.14);
}

.mh-insight-meta > a.mh-insight-category:focus-visible {
  outline: 2px solid var(--mh-blue);
  outline-offset: 3px;
  color: var(--mh-ink) !important;
  background: rgba(7, 106, 159, 0.14);
}

.mh-insight-meta time {
  color: var(--mh-muted);
  font-size: 14px;
  font-weight: 560;
  line-height: 1.35;
}

.mh-insight-card h3 {
  grid-area: title;
  margin: 0;
  font-size: clamp(1.2rem, 1.65vw, 1.42rem);
  line-height: 1.3;
}

.mh-insight-card h3 a {
  color: var(--mh-ink) !important;
  text-decoration: none !important;
  transition: color 160ms ease;
}

.mh-insight-card h3 a:hover {
  color: var(--mh-blue) !important;
}

.mh-insight-card > p {
  grid-area: excerpt;
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  color: var(--mh-text);
  font-size: 16px;
  line-height: 1.55;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.mh-insight-link {
  grid-area: link;
  display: inline-flex;
  align-items: center;
  align-self: center;
  gap: 7px;
  min-height: 42px;
  margin: 0;
  padding: 8px 0 6px;
  border-bottom: 1px solid rgba(7, 106, 159, 0.28);
  color: var(--mh-blue-dark) !important;
  font-size: 14px;
  font-weight: 680;
  line-height: 1.3;
  text-decoration: none !important;
}

.mh-insight-link span {
  font-size: 20px;
  line-height: 1;
  transition: transform 160ms ease;
}

.mh-insight-link:hover span {
  transform: translateX(3px);
}

.mh-insight-link:hover {
  border-bottom-color: var(--mh-blue);
  color: var(--mh-blue) !important;
}

.mh-insights-empty {
  margin: 18px 0 0;
  padding: 20px 22px;
  border: 1px solid var(--mh-border);
  border-radius: 14px;
  color: var(--mh-text);
  background: rgba(255, 255, 255, 0.75);
  font-size: 16px;
}

.mh-insights-empty[hidden] {
  display: none !important;
}

/* --- Stránkování --- */

.mh-insights-pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 30px;
}

.mh-insights-pagination[hidden] {
  display: none !important;
}

.mh-insights-pagination button,
.mh-pagination-gap {
  display: inline-flex;
  min-width: 42px;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  border: 1px solid var(--mh-border-strong);
  border-radius: 10px;
  color: var(--mh-ink-soft);
  background: var(--mh-white);
  font: inherit;
  font-size: 15px;
  font-weight: 680;
  line-height: 1;
}

.mh-insights-pagination button {
  cursor: pointer;
  transition:
    color 160ms ease,
    border-color 160ms ease,
    background-color 160ms ease;
}

.mh-insights-pagination button:hover,
.mh-insights-pagination button:focus-visible {
  border-color: var(--mh-blue);
  color: var(--mh-blue-dark);
  outline: none;
}

.mh-insights-pagination button[aria-current="page"] {
  border-color: var(--mh-blue);
  color: var(--mh-white);
  background: var(--mh-blue);
}

.mh-insights-pagination button:disabled {
  border-color: var(--mh-border);
  color: var(--mh-muted);
  background: rgba(255, 255, 255, 0.55);
  cursor: default;
  opacity: 0.62;
}

.mh-pagination-gap {
  border-color: transparent;
  background: transparent;
}

/* ======================================================================
   [17] DETAIL ČLÁNKU – TYPOGRAFIE A OBSAH
   ====================================================================== */

body.single-post {
  --mh-article-media-width: 780px;
  --mh-article-left-edge: max(32px, calc((100% - var(--mh-article-width)) / 2));
  overflow-x: clip;
  color: var(--mh-ink);
  background: var(--mh-background);
  font-family: var(--mh-sans);
}

body.single-post .content-container,
body.single-post .content-wrap,
body.single-post .site-main,
body.single-post #primary,
body.single-post #main,
body.single-post .content-area {
  width: 100% !important;
  max-width: none !important;
  min-width: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
}

body.single-post .content-container,
body.single-post .content-wrap {
  display: block !important;
  grid-template-columns: none !important;
}

body.single-post .entry.single-entry,
body.single-post article.single-entry {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

body.single-post .entry-content-wrap {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
  background: transparent;
}

/* --- Hlavička příspěvku --- */

body.single-post .single-entry > .entry-content-wrap > .entry-header {
  position: relative;
  z-index: 0;
  isolation: isolate;
  width: min(var(--mh-article-width), calc(100% - 64px)) !important;
  max-width: var(--mh-article-width) !important;
  margin: 0 auto !important;
  padding: clamp(52px, 6vw, 76px) 0 38px !important;
}

body.single-post .single-entry > .entry-content-wrap > .entry-header::before {
  position: absolute;
  z-index: -1;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 100vw;
  transform: translateX(-50%);
  border-bottom: 1px solid rgba(8, 35, 62, 0.065);
  background:
    radial-gradient(
      circle at 86% 15%,
      rgba(7, 106, 159, 0.105),
      transparent 28%
    ),
    linear-gradient(180deg, #f8fcfe 0%, var(--mh-background) 100%);
  content: "";
}

body.single-post .single-entry > .entry-content-wrap > .entry-header::after {
  position: absolute;
  top: 0;
  left: 0;
  width: 66px;
  height: 3px;
  background: var(--mh-blue);
  content: "";
}

/* --- Rubrika, autor a datum --- */

body.single-post .entry-header .entry-taxonomies,
body.single-post .entry-header .entry-meta {
  display: inline-flex !important;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px 11px;
  margin: 0 0 16px !important;
  color: var(--mh-muted);
  font-size: 14px;
  line-height: 1.4;
  vertical-align: middle;
}

body.single-post .entry-header .entry-taxonomies {
  margin-right: 12px !important;
}

body.single-post .entry-header .entry-taxonomies::after {
  display: inline-block;
  margin-left: 11px;
  color: #8ca0b0;
  content: "•";
}

body.single-post .entry-header .entry-taxonomies + .entry-meta {
  margin-left: 0 !important;
}

body.single-post .entry-header .entry-taxonomies a,
body.single-post .entry-header .category-links a,
body.single-post .entry-header .term-links a {
  color: var(--mh-blue-dark);
  font-size: 14px;
  font-weight: 650;
  line-height: 1.4;
  text-decoration: none;
}

body.single-post .entry-header .entry-taxonomies a:hover,
body.single-post .entry-header .category-links a:hover,
body.single-post .entry-header .term-links a:hover {
  color: var(--mh-blue);
  text-decoration: underline;
  text-underline-offset: 3px;
}

body.single-post .entry-header .entry-meta > span,
body.single-post .entry-header .entry-meta .posted-on,
body.single-post .entry-header .entry-meta .entry-date {
  display: inline-flex;
  align-items: center;
}

body.single-post
  .entry-header
  .entry-meta.entry-meta-divider-dot
  > span
  + span::before {
  margin: 0 10px 0 2px;
  color: #8ca0b0;
  content: "•";
}

body.single-post .entry-header .entry-meta a {
  color: var(--mh-muted);
  text-decoration: none;
}

/* --- Název a perex --- */

body.single-post
  .single-entry
  > .entry-content-wrap
  > .entry-header
  .entry-title,
body.single-post
  .single-entry
  > .entry-content-wrap
  > .entry-header
  h1.entry-title {
  display: block;
  width: 100%;
  max-width: 900px;
  margin: 0 0 24px;
  padding: 0;
  color: var(--mh-ink);
  font-family: var(--mh-serif);
  font-size: clamp(2.9rem, 4.6vw, 4.25rem);
  font-weight: 400;
  letter-spacing: -0.048em;
  line-height: 1.035;
  text-wrap: balance;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
}

body.single-post .entry-header .entry-summary,
body.single-post .entry-header .post-excerpt {
  max-width: 760px;
  margin: 0;
  color: var(--mh-text);
  font-size: clamp(1.08rem, 1.45vw, 1.24rem);
  line-height: 1.72;
  text-wrap: pretty;
}

/* --- Starší vlastní šablona článku --- */

body.single-post .mh-article-page {
  width: 100%;
  color: var(--mh-ink);
  background: var(--mh-background);
}

body.single-post .mh-article-page .mh-insights-hero {
  position: relative;
  padding: clamp(48px, 5.5vw, 68px) 0 36px;
  border-bottom: 1px solid rgba(8, 35, 62, 0.07);
  background:
    radial-gradient(
      circle at 86% 16%,
      rgba(7, 106, 159, 0.09),
      transparent 29%
    ),
    linear-gradient(180deg, #f9fcfe 0%, var(--mh-background) 100%);
}

body.single-post .mh-article-page .mh-insights-hero::before {
  position: absolute;
  top: 0;
  left: max(32px, calc((100vw - var(--mh-shell)) / 2));
  width: 58px;
  height: 3px;
  border-radius: 0 0 2px 2px;
  background: var(--mh-blue);
  content: "";
}

body.single-post .mh-article-page .mh-insights-hero > .mh-shell {
  width: min(var(--mh-article-width), calc(100% - 64px));
}

body.single-post .mh-article-meta {
  display: flex !important;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px 14px !important;
  margin: 0 0 15px !important;
  padding: 0 !important;
}

body.single-post .mh-article-category {
  display: inline-flex !important;
  min-height: 28px;
  align-items: center;
  justify-content: center;
  padding: 0 10px 1px;
  border: 1px solid rgba(7, 106, 159, 0.1);
  border-radius: 999px;
  color: var(--mh-blue-dark);
  background: rgba(7, 106, 159, 0.085);
  font-family: var(--mh-sans);
  font-size: 11px;
  font-weight: 740;
  letter-spacing: 0.055em;
  line-height: 1.05;
  text-align: center;
  text-decoration: none !important;
  text-transform: uppercase;
  transition:
    color 160ms ease,
    background-color 160ms ease,
    border-color 160ms ease;
}

body.single-post a.mh-article-category:hover {
  border-color: rgba(7, 106, 159, 0.2);
  color: var(--mh-ink) !important;
  background: rgba(7, 106, 159, 0.14);
}

body.single-post a.mh-article-category:focus-visible {
  outline: 2px solid var(--mh-blue);
  outline-offset: 3px;
  border-color: rgba(7, 106, 159, 0.2);
  color: var(--mh-ink) !important;
  background: rgba(7, 106, 159, 0.14);
}

body.single-post .mh-article-date {
  display: inline-flex !important;
  min-height: 28px;
  align-items: center;
  padding-left: 14px;
  border-left: 1px solid rgba(8, 35, 62, 0.17);
  color: var(--mh-muted);
  font-family: var(--mh-sans);
  font-size: 14px;
  font-weight: 560;
  line-height: 1.3;
  white-space: nowrap;
}

body.single-post .mh-article-page .mh-page-title {
  max-width: 900px;
  margin: 0 0 20px !important;
  color: var(--mh-ink);
  font-family: var(--mh-serif);
  font-size: clamp(3rem, 5.25vw, 4.55rem);
  font-weight: 400;
  letter-spacing: -0.052em;
  line-height: 1;
  text-wrap: balance;
}

body.single-post .mh-article-page .mh-page-lead {
  max-width: 760px;
  margin: 0 !important;
  color: var(--mh-text);
  font-family: var(--mh-sans);
  font-size: clamp(1.08rem, 1.45vw, 1.24rem);
  line-height: 1.72;
  text-wrap: pretty;
}

/* --- Obsahový kontejner --- */

body.single-post .mh-article-section {
  width: 100%;
  padding: 34px 0 52px;
  background: var(--mh-background);
}

body.single-post .mh-article-section > .mh-shell {
  width: min(var(--mh-article-width), calc(100% - 64px));
}

body.single-post .mh-article-content > .mh-article-content {
  width: 100%;
  margin: 0;
  padding: 0;
}

body.single-post .entry-content {
  width: min(940px, calc(100% - 64px));
  max-width: none;
  margin: 0 auto;
  padding: 34px 0 52px;
  color: var(--mh-ink-soft);
  font-family: var(--mh-sans);
  font-size: 18px;
  line-height: 1.82;
}

body.single-post .entry-content,
body.single-post .entry-content *,
.mh-article-content,
.mh-article-content * {
  box-sizing: border-box;
}

.mh-article-content {
  width: 100%;
}

body.single-post .entry-content > :first-child,
.mh-article-content > :first-child {
  margin-top: 0;
}

body.single-post .entry-content > :last-child,
.mh-article-content > :last-child {
  margin-bottom: 0;
}

body.single-post .entry-content p,
.mh-article-content p {
  max-width: 780px;
  margin: 0 0 21px;
  color: var(--mh-ink-soft);
  text-wrap: pretty;
}

body.single-post .entry-content > p:first-child,
body.single-post .entry-content > .mh-article-content > p:first-child,
.mh-article-content > p:first-child {
  color: var(--mh-text);
  font-size: 19px;
  line-height: 1.78;
}

/* --- Mezititulky a odkazy --- */

body.single-post .entry-content h2,
.mh-article-content h2 {
  max-width: 27ch;
  margin: 47px 0 19px;
  color: var(--mh-ink);
  font-family: var(--mh-serif);
  font-size: clamp(2.05rem, 3.2vw, 2.75rem);
  font-weight: 400;
  letter-spacing: -0.038em;
  line-height: 1.07;
  text-wrap: balance;
}

body.single-post .entry-content h2::after,
.mh-article-content h2::after {
  display: block;
  width: 34px;
  height: 2px;
  margin-top: 13px;
  border-radius: 999px;
  background: var(--mh-blue);
  content: "";
}

body.single-post .entry-content h3,
.mh-article-content h3 {
  max-width: 36ch;
  margin: 34px 0 11px;
  color: var(--mh-ink);
  font-family: var(--mh-sans);
  font-size: clamp(1.25rem, 1.9vw, 1.5rem);
  font-weight: 700;
  letter-spacing: -0.018em;
  line-height: 1.32;
  text-wrap: balance;
}

body.single-post .entry-content strong,
.mh-article-content strong {
  color: var(--mh-ink);
  font-weight: 700;
}

body.single-post .entry-content em,
.mh-article-content em {
  font-style: italic;
}

body.single-post .entry-content a,
.mh-article-content a {
  color: var(--mh-blue-dark);
  text-decoration-color: rgba(7, 106, 159, 0.35);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

body.single-post .entry-content a:hover,
.mh-article-content a:hover {
  color: var(--mh-blue);
  text-decoration-color: currentColor;
}

/* --- Seznamy a číslované kroky --- */

body.single-post .entry-content ul,
body.single-post .entry-content ol,
.mh-article-content ul,
.mh-article-content ol {
  max-width: 780px;
  margin: 17px 0 25px;
  padding-left: 1.35rem;
}

body.single-post .entry-content li,
.mh-article-content li {
  margin: 7px 0;
  padding-left: 4px;
}

.mh-article-checklist {
  padding-left: 0 !important;
  list-style: none;
}

.mh-article-checklist li {
  position: relative;
  padding-left: 25px !important;
}

.mh-article-checklist li::before {
  position: absolute;
  top: 0.82em;
  left: 2px;
  width: 7px;
  height: 7px;
  transform: translateY(-50%);
  border-radius: 50%;
  background: var(--mh-blue);
  content: "";
}

.mh-article-steps {
  padding-left: 0 !important;
  counter-reset: mh-article-step;
  list-style: none;
}

.mh-article-steps > li {
  position: relative;
  max-width: 780px;
  margin: 14px 0;
  padding: 21px 22px 21px 72px !important;
  border: 1px solid var(--mh-border);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 8px 22px rgba(16, 50, 77, 0.03);
  counter-increment: mh-article-step;
}

.mh-article-steps > li::before {
  position: absolute;
  top: 21px;
  left: 21px;
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--mh-ink);
  font-size: 15px;
  font-weight: 720;
  line-height: 1;
  content: counter(mh-article-step);
}

.mh-article-steps > li > strong {
  display: block;
  margin-bottom: 4px;
}

.mh-article-steps > li p {
  margin: 0;
}

/* --- Poznámky a citace --- */

body.single-post .entry-content blockquote,
.mh-article-content blockquote,
.mh-article-note {
  max-width: 780px;
  margin: 27px 0;
  padding: 19px 22px;
  border: 1px solid rgba(7, 106, 159, 0.14);
  border-left: 4px solid var(--mh-blue);
  border-radius: 0 14px 14px 0;
  color: var(--mh-ink-soft);
  background: rgba(255, 255, 255, 0.7);
  box-shadow: 0 9px 24px rgba(16, 50, 77, 0.035);
}

body.single-post .entry-content blockquote p,
.mh-article-content blockquote p,
.mh-article-note p {
  margin-bottom: 0;
}

.mh-article-note > strong {
  display: block;
  margin-bottom: 7px;
  color: var(--mh-ink);
  font-size: 16px;
  font-weight: 720;
  line-height: 1.4;
}

.mh-article-note--ethics {
  border-color: rgba(176, 126, 38, 0.2);
  border-left-color: #b47d27;
  background: rgba(250, 247, 241, 0.92);
}

/* --- Závěrečný blok --- */

.mh-article-conclusion {
  max-width: 820px;
  margin: 49px 0 6px;
  padding: 28px 30px 30px;
  overflow: hidden;
  border: 1px solid rgba(7, 106, 159, 0.16);
  border-radius: 18px;
  background:
    radial-gradient(
      circle at 92% 12%,
      rgba(7, 106, 159, 0.09),
      transparent 33%
    ),
    linear-gradient(145deg, #f8fcfe 0%, #edf5fa 100%);
  box-shadow: 0 16px 38px rgba(16, 50, 77, 0.065);
}

.mh-article-conclusion .mh-eyebrow {
  margin-bottom: 11px !important;
  font-size: 12px;
}

body.single-post .entry-content .mh-article-conclusion h2,
.mh-article-conclusion h2 {
  max-width: 23ch;
  margin-top: 0;
  margin-bottom: 16px;
  font-size: clamp(1.9rem, 2.9vw, 2.5rem);
}

body.single-post .entry-content .mh-article-conclusion h2::after,
.mh-article-conclusion h2::after {
  display: none;
}

.mh-article-conclusion p:last-child {
  margin-bottom: 0;
}

/* --- Obrázky a tabulky --- */

body.single-post .entry-content figure,
.mh-article-content figure {
  max-width: 900px;
  margin: 34px 0;
}

body.single-post .entry-content img,
.mh-article-content img {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: 15px;
}

body.single-post .entry-content figcaption,
.mh-article-content figcaption {
  max-width: 780px;
  margin-top: 10px;
  color: var(--mh-muted);
  font-size: 14px;
  line-height: 1.55;
}

body.single-post .entry-content .wp-block-table,
.mh-article-content .wp-block-table {
  max-width: 900px;
  overflow-x: auto;
}

body.single-post .entry-content table,
.mh-article-content table {
  width: 100%;
  max-width: 900px;
  margin: 28px 0;
  border-collapse: collapse;
  background: rgba(255, 255, 255, 0.74);
  font-size: 16px;
  line-height: 1.55;
}

body.single-post .entry-content th,
body.single-post .entry-content td,
.mh-article-content th,
.mh-article-content td {
  padding: 13px 15px;
  border: 1px solid var(--mh-border);
  vertical-align: top;
}

/* --- Štítky a navigace článku --- */

body.single-post .entry-content th,
.mh-article-content th {
  color: var(--mh-ink);
  background: rgba(7, 106, 159, 0.07);
  font-weight: 700;
  text-align: left;
}

body.single-post .single-entry > .entry-content-wrap > .entry-footer {
  width: min(var(--mh-article-width), calc(100% - 64px));
  margin-right: auto;
  margin-left: auto;
  padding: 0;
  border: 0;
  background: transparent;
}

body.single-post
  .single-entry
  > .entry-content-wrap
  > .entry-footer
  .entry-tags,
body.single-post
  .single-entry
  > .entry-content-wrap
  > .entry-footer
  .tags-links,
body.single-post
  .single-entry
  > .entry-content-wrap
  > .entry-footer
  .post-tags {
  display: flex;
  width: 100%;
  flex-wrap: wrap;
  justify-content: flex-start !important;
  gap: 8px;
  margin: 0 0 32px;
  padding: 0;
}

body.single-post
  .single-entry
  > .entry-content-wrap
  > .entry-footer
  .entry-tags
  a,
body.single-post
  .single-entry
  > .entry-content-wrap
  > .entry-footer
  .tags-links
  a,
body.single-post
  .single-entry
  > .entry-content-wrap
  > .entry-footer
  .post-tags
  a {
  display: inline-flex;
  min-height: 33px;
  align-items: center;
  padding: 7px 12px;
  border: 1px solid var(--mh-border-strong);
  border-radius: 999px;
  color: var(--mh-ink-soft);
  background: rgba(255, 255, 255, 0.72);
  font-size: 13px;
  font-weight: 590;
  line-height: 1.2;
  text-decoration: none;
  transition:
    transform 160ms ease,
    color 160ms ease,
    border-color 160ms ease,
    background 160ms ease;
}

body.single-post
  .single-entry
  > .entry-content-wrap
  > .entry-footer
  .entry-tags
  a:hover,
body.single-post
  .single-entry
  > .entry-content-wrap
  > .entry-footer
  .tags-links
  a:hover,
body.single-post
  .single-entry
  > .entry-content-wrap
  > .entry-footer
  .post-tags
  a:hover {
  transform: translateY(-1px);
  border-color: rgba(7, 106, 159, 0.35);
  color: var(--mh-blue-dark);
  background: rgba(7, 106, 159, 0.07);
}

body.single-post .post-navigation-wrap,
body.single-post nav.post-navigation {
  width: min(var(--mh-article-width), calc(100% - 64px));
  margin-right: auto;
  margin-left: auto;
  padding: 0 0 46px;
}

body.single-post .post-navigation .nav-links,
body.single-post nav.post-navigation .nav-links {
  display: grid;
  width: 100%;
  max-width: none;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin: 0;
  padding: 0;
}

body.single-post .post-navigation .nav-previous,
body.single-post .post-navigation .nav-next {
  min-width: 0;
}

body.single-post .post-navigation .nav-previous:only-child,
body.single-post .post-navigation .nav-next:only-child {
  width: min(100%, 462px);
}

body.single-post .post-navigation .nav-next:only-child {
  justify-self: end;
}

body.single-post .post-navigation a {
  display: flex;
  min-height: 108px;
  height: 100%;
  flex-direction: column;
  justify-content: center;
  padding: 18px 20px;
  border: 1px solid var(--mh-border);
  border-radius: 15px;
  color: var(--mh-ink);
  background: rgba(255, 255, 255, 0.78);
  font-size: 15px;
  font-weight: 620;
  line-height: 1.48;
  text-decoration: none;
  box-shadow: 0 8px 22px rgba(16, 50, 77, 0.035);
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    box-shadow 160ms ease,
    background 160ms ease;
}

body.single-post .post-navigation a:hover {
  transform: translateY(-2px);
  border-color: rgba(7, 106, 159, 0.3);
  background: #fff;
  box-shadow: var(--mh-shadow);
}

body.single-post .post-navigation .nav-next a {
  text-align: right;
}

body.single-post .post-navigation .meta-nav,
body.single-post .post-navigation .post-navigation-sub {
  display: block;
  margin-bottom: 7px;
  color: var(--mh-blue);
  font-size: 11px;
  font-weight: 740;
  letter-spacing: 0.1em;
  line-height: 1.35;
  text-transform: uppercase;
}

body.single-post .post-navigation .post-navigation-sub small {
  color: inherit;
  font: inherit;
}

body.single-post .post-navigation .post-navigation-sub svg {
  width: 16px;
  height: 16px;
}

/* --- Podobné příspěvky --- */

body.single-post .entry-related {
  position: relative;
  width: 100%;
  margin: 0;
  padding: 50px 0 58px;
  overflow: visible;
  border-top: 1px solid rgba(8, 35, 62, 0.08);
  background:
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.34) 0%,
      rgba(255, 255, 255, 0) 100%
    ),
    var(--mh-surface);
}

body.single-post .entry-related-inner {
  width: min(var(--mh-article-width), calc(100% - 64px)) !important;
  max-width: none !important;
  margin: 0 auto !important;
  padding: 0 !important;
}

body.single-post .entry-related-inner-content,
body.single-post .entry-related .splide {
  position: relative;
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
  visibility: visible !important;
}

body.single-post .entry-related-title {
  width: 100%;
  max-width: none;
  margin: 0 0 31px !important;
  padding: 0 !important;
  color: var(--mh-ink);
  font-family: var(--mh-serif);
  font-size: clamp(2rem, 3vw, 2.65rem);
  font-weight: 400;
  letter-spacing: -0.035em;
  line-height: 1.08;
}

body.single-post .entry-related-title::after {
  display: block;
  width: 34px;
  height: 2px;
  margin-top: 12px;
  border-radius: 999px;
  background: var(--mh-blue);
  content: "";
}

body.single-post .entry-related .splide__track {
  width: 100% !important;
  overflow: visible !important;
  margin: 0 !important;
  padding: 0 !important;
}

body.single-post .entry-related .splide__list {
  position: static !important;
  display: grid !important;
  width: 100% !important;
  height: auto !important;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
  column-gap: 26px;
  row-gap: 26px;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
  transform: none !important;
}

body.single-post .entry-related .splide__slide {
  position: static !important;
  display: flex !important;
  width: auto !important;
  min-width: 0 !important;
  height: auto !important;
  margin: 0 !important;
  opacity: 1 !important;
  visibility: visible !important;
  transform: none !important;
}

body.single-post .entry-related .splide__slide.is-clone,
body.single-post .entry-related .splide__slide--clone,
body.single-post .entry-related .splide__slide[data-clone="true"] {
  display: none !important;
}

body.single-post .entry-related .splide__slide > * {
  display: flex !important;
  width: 100% !important;
  opacity: 1 !important;
  visibility: visible !important;
}

body.single-post .entry-related .splide__arrows,
body.single-post .entry-related .splide__arrow,
body.single-post .entry-related .splide__pagination {
  display: none !important;
}

body.single-post .entry-related .entry,
body.single-post .entry-related article,
body.single-post .entry-related .loop-entry {
  display: flex !important;
  min-height: 286px;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--mh-border) !important;
  border-radius: 17px;
  background: rgba(255, 255, 255, 0.96) !important;
  box-shadow: 0 10px 28px rgba(16, 50, 77, 0.055) !important;
  transition:
    transform 170ms ease,
    border-color 170ms ease,
    box-shadow 170ms ease;
}

body.single-post .entry-related .entry:hover,
body.single-post .entry-related article:hover {
  transform: translateY(-3px);
  border-color: rgba(7, 106, 159, 0.25);
  box-shadow: 0 16px 34px rgba(16, 50, 77, 0.09);
}

body.single-post .entry-related .entry-content-wrap {
  display: flex !important;
  width: 100% !important;
  min-height: 100%;
  flex: 1 1 auto;
  flex-direction: column;
  padding: 21px 21px 19px !important;
  background: transparent !important;
}

body.single-post .entry-related .entry-header {
  position: static !important;
  z-index: auto !important;
  isolation: auto !important;
  display: block !important;
  width: auto !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
}

body.single-post .entry-related .entry-header::before,
body.single-post .entry-related .entry-header::after {
  display: none !important;
  content: none !important;
}

body.single-post .entry-related .entry-taxonomies {
  display: flex !important;
  width: auto !important;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 11px !important;
  padding: 0 !important;
}

body.single-post .entry-related .entry-taxonomies a {
  display: inline-flex;
  min-height: 25px;
  align-items: center;
  padding: 4px 8px;
  border-radius: 999px;
  color: var(--mh-blue-dark) !important;
  background: rgba(7, 106, 159, 0.08);
  font-size: 11px !important;
  font-weight: 700 !important;
  letter-spacing: 0.035em;
  line-height: 1.2 !important;
  text-decoration: none !important;
  text-transform: uppercase;
}

body.single-post .entry-related .entry-title {
  display: block !important;
  width: auto !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
  color: var(--mh-ink) !important;
  font-family: var(--mh-sans) !important;
  font-size: 17px !important;
  font-weight: 690 !important;
  letter-spacing: -0.015em !important;
  line-height: 1.4 !important;
  text-wrap: pretty;
}

body.single-post .entry-related .entry-title a {
  color: inherit !important;
  text-decoration: none !important;
}

body.single-post .entry-related .entry-title a:hover {
  color: var(--mh-blue) !important;
}

body.single-post .entry-related .entry-header,
body.single-post .entry-related .entry-title,
body.single-post .entry-related .entry-title a,
body.single-post .entry-related .entry-meta,
body.single-post .entry-related .entry-summary,
body.single-post .entry-related .entry-summary p,
body.single-post .entry-related .entry-footer,
body.single-post .entry-related .entry-actions,
body.single-post .entry-related .more-link-wrap,
body.single-post .entry-related .post-more-link {
  opacity: 1 !important;
  visibility: visible !important;
}

body.single-post .entry-related .entry-footer,
body.single-post .entry-related .entry-actions,
body.single-post .entry-related .more-link-wrap {
  display: block !important;
}

body.single-post .entry-related .entry-meta {
  display: flex !important;
  margin: 11px 0 0 !important;
  color: var(--mh-muted) !important;
  font-size: 12px !important;
  line-height: 1.4 !important;
}

body.single-post .entry-related .entry-meta .posted-by,
body.single-post .entry-related .entry-meta time.updated,
body.single-post .entry-related .entry-meta-divider-dot > span + span::before {
  display: none !important;
  content: none !important;
}

body.single-post .entry-related .entry-summary {
  display: block !important;
  margin: 14px 0 0 !important;
  color: var(--mh-text);
  font-size: 14px;
  line-height: 1.62;
}

body.single-post .entry-related .entry-summary p {
  display: -webkit-box !important;
  margin: 0;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
}

body.single-post .entry-related .entry-footer {
  width: auto !important;
  margin: auto 0 0 !important;
  padding: 17px 0 0 !important;
  border: 0 !important;
  background: transparent !important;
}

body.single-post .entry-related .more-link-wrap {
  margin: 0 !important;
}

body.single-post .entry-related .post-more-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--mh-blue-dark) !important;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none !important;
}

body.single-post .entry-related .post-more-link:hover {
  color: var(--mh-blue) !important;
}

body.single-post .entry-related .post-more-link svg {
  width: 15px;
  height: 15px;
}

body.single-post .entry-related:not(:has(.splide__slide)) {
  display: none !important;
}

body.single-post .entry-related .splide__slide:empty {
  display: none !important;
}

body.single-post:has(.mh-article-page)
  .single-entry
  > .entry-content-wrap
  > .entry-footer,
body.single-post:has(.mh-article-page) .post-navigation-wrap,
body.single-post:has(.mh-article-page) nav.post-navigation,
body.single-post:has(.mh-article-page) .entry-related-inner {
  width: min(var(--mh-article-width), calc(100% - 64px)) !important;
  max-width: none !important;
  margin-right: auto !important;
  margin-left: auto !important;
}

body.single-post:has(.mh-article-page) .entry-related-inner-content.alignwide,
body.single-post:has(.mh-article-page) .entry-related-inner-content,
body.single-post:has(.mh-article-page) .entry-related .splide {
  width: 100% !important;
  max-width: none !important;
  margin-right: 0 !important;
  margin-left: 0 !important;
  transform: none !important;
}

/* --- Focus stavy --- */

body.single-post .entry-header a:focus-visible,
body.single-post .entry-content a:focus-visible,
body.single-post .entry-tags a:focus-visible,
body.single-post .post-navigation a:focus-visible,
body.single-post .entry-related a:focus-visible {
  outline: 3px solid rgba(7, 106, 159, 0.3);
  outline-offset: 4px;
}

@media (max-width: 980px) {
  body.single-post .entry-header,
  body.single-post .entry-content,
  body.single-post .single-entry > .entry-content-wrap > .entry-footer,
  body.single-post .post-navigation-wrap,
  body.single-post nav.post-navigation,
  body.single-post .entry-related-inner {
    width: min(100% - 44px, 880px) !important;
  }

  body.single-post
    .single-entry
    > .entry-content-wrap
    > .entry-header
    .entry-title,
  body.single-post
    .single-entry
    > .entry-content-wrap
    > .entry-header
    h1.entry-title {
    max-width: 820px;
  }

  body.single-post .entry-tags,
  body.single-post .tags-links,
  body.single-post .post-tags {
    width: min(100% - 44px, 880px);
  }

  body.single-post .entry-related .splide__list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 22px;
    row-gap: 22px;
  }
}

@media (max-width: 700px) {
  body.single-post .entry-header {
    width: calc(100% - 32px);
    padding-top: 45px;
    padding-bottom: 29px;
  }

  body.single-post .entry-header::after {
    width: 48px;
  }

  body.single-post .entry-header .entry-taxonomies,
  body.single-post .entry-header .entry-meta {
    margin-bottom: 13px !important;
    font-size: 13px;
  }

  body.single-post
    .single-entry
    > .entry-content-wrap
    > .entry-header
    .entry-title,
  body.single-post
    .single-entry
    > .entry-content-wrap
    > .entry-header
    h1.entry-title {
    max-width: none;
    margin-bottom: 18px;
    font-size: clamp(2.25rem, 10.6vw, 3.1rem);
    line-height: 1.03;
    text-wrap: pretty;
  }

  body.single-post .entry-content {
    width: calc(100% - 32px);
    padding-top: 27px;
    padding-bottom: 42px;
    font-size: 17px;
    line-height: 1.78;
  }

  body.single-post .entry-content > p:first-child,
  body.single-post .entry-content > .mh-article-content > p:first-child,
  .mh-article-content > p:first-child {
    font-size: 18px;
    line-height: 1.72;
  }

  body.single-post .entry-content h2,
  .mh-article-content h2 {
    max-width: none;
    margin-top: 39px;
    font-size: clamp(1.85rem, 8.7vw, 2.4rem);
  }

  body.single-post .entry-content h3,
  .mh-article-content h3 {
    margin-top: 29px;
    font-size: 1.27rem;
  }

  .mh-article-note,
  body.single-post .entry-content blockquote {
    padding: 17px 18px;
  }

  .mh-article-steps > li {
    padding: 18px 17px 18px 61px !important;
  }

  .mh-article-steps > li::before {
    top: 18px;
    left: 17px;
    width: 31px;
    height: 31px;
  }

  .mh-article-conclusion {
    margin-top: 40px;
    padding: 23px 20px 24px;
    border-radius: 16px;
  }

  body.single-post .single-entry > .entry-content-wrap > .entry-footer,
  body.single-post .post-navigation-wrap,
  body.single-post nav.post-navigation,
  body.single-post .entry-related-inner {
    width: calc(100% - 32px) !important;
  }

  body.single-post
    .single-entry
    > .entry-content-wrap
    > .entry-footer
    .entry-tags,
  body.single-post
    .single-entry
    > .entry-content-wrap
    > .entry-footer
    .tags-links,
  body.single-post
    .single-entry
    > .entry-content-wrap
    > .entry-footer
    .post-tags {
    width: 100%;
  }

  body.single-post .post-navigation .nav-next:only-child {
    justify-self: stretch;
  }

  body.single-post .post-navigation a {
    min-height: 0;
  }

  body.single-post .post-navigation .nav-next a {
    text-align: left;
  }

  body.single-post .entry-related {
    padding-top: 39px;
    padding-bottom: 47px;
  }

  body.single-post .entry-related .splide__list {
    grid-template-columns: 1fr;
    row-gap: 18px;
  }
}

/* ======================================================================
   [18] PATIČKA
   ====================================================================== */

body .site-footer,
body #colophon,
body .site-footer-row-container-inner {
  color: #e8f1f6 !important;
  background: linear-gradient(135deg, #071f36 0%, #0a2944 100%) !important;
}

body .site-footer,
body #colophon {
  border-top: 2px solid rgba(91, 181, 219, 0.72) !important;
  box-shadow: none !important;
}

body .site-footer-row-container-inner > .site-container {
  width: 100% !important;
  max-width: 1224px !important;
  padding: 0 32px !important;
}

body .site-footer .site-footer-row,
body .site-footer .site-footer-section {
  display: block !important;
  width: 100% !important;
  max-width: none !important;
}

body .site-footer .footer-widget-area,
body .site-footer .widget {
  min-height: 0 !important;
  margin: 0 !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

body .site-footer .site-footer-row-container-inner,
body .site-footer .site-footer-row,
body .site-footer .site-footer-section {
  min-height: 0 !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

body
  .site-footer:has(.mh-footer)
  .site-footer-row-container-inner:not(:has(.mh-footer)),
body .site-footer:has(.mh-footer) .site-footer-section:not(:has(.mh-footer)) {
  display: none !important;
}

.mh-footer,
.mh-footer * {
  box-sizing: border-box;
}

body .site-footer .mh-footer {
  width: 100%;
  color: #e8f1f6 !important;
  font-family: var(--mh-sans);
}

body .site-footer .mh-footer-inner {
  width: 100%;
  max-width: var(--mh-shell);
  margin: 0 auto;
  padding: 21px 0 31px;
}

body .site-footer .mh-footer-main {
  display: grid;
  grid-template-columns: minmax(260px, 0.78fr) minmax(0, 1.22fr);
  gap: 26px;
  align-items: center;
}

body .site-footer .mh-footer-brand {
  display: grid;
  justify-self: start;
  justify-items: start;
  gap: 4px;
  color: #f5fafc !important;
  text-align: left;
  text-decoration: none !important;
}

body .site-footer .mh-footer-brand strong {
  color: #fff;
  font-size: 22px;
  font-weight: 720;
  letter-spacing: -0.025em;
  line-height: 1.2;
}

body .site-footer .mh-footer-brand span {
  display: block;
  max-width: 390px;
  color: #bfd0dc;
  font-size: 13px;
  line-height: 1.45;
}

body .site-footer .mh-footer-nav {
  display: grid;
  grid-template-columns: repeat(8, max-content);
  justify-content: end;
  gap: 15px;
  margin: 0;
  padding: 0;
  border: 0;
}

body .site-footer .mh-footer-nav a {
  color: #f5fafc !important;
  font-size: 14px;
  font-weight: 610;
  line-height: 1.45;
  text-decoration: none !important;
  text-underline-offset: 4px;
  transition: color 160ms ease;
}

body .site-footer .mh-footer-nav a:hover,
body .site-footer .mh-footer-nav a:focus-visible,
body .site-footer .mh-footer-email:hover,
body .site-footer .mh-footer-email:focus-visible {
  color: #91d8f4 !important;
  text-decoration: underline !important;
}

body .site-footer .mh-footer-brand:focus-visible,
body .site-footer .mh-footer-nav a:focus-visible,
body .site-footer .mh-footer-email:focus-visible {
  outline: 2px solid #91d8f4;
  outline-offset: 4px;
  border-radius: 2px;
}

body .site-footer .mh-footer-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px 32px;
  margin-top: 13px;
  padding-top: 9px;
  border-top: 1px solid rgba(232, 241, 246, 0.17);
  color: #9fb5c4 !important;
  font-size: 13px;
  line-height: 1.4;
}

body .site-footer .mh-footer-email {
  color: #c4d3dd !important;
  font-weight: 520;
  text-decoration: none !important;
  text-underline-offset: 4px;
}

/* --- Technické odkazy ve spodním řádku: API + správa souhlasu --- */

body .site-footer .mh-footer-meta-right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  white-space: nowrap;
}

body .site-footer .mh-footer-api-link {
  display: inline-block;
  margin: 0 !important;
  padding: 3px 7px !important;
  border: 0 !important;
  border-radius: 4px !important;
  background: transparent !important;
  color: #bfd0dc !important;
  box-shadow: none !important;
  font-family: var(--mh-sans) !important;
  font-size: 12px !important;
  font-weight: 540 !important;
  line-height: 1.35 !important;
  letter-spacing: 0 !important;
  text-decoration: underline !important;
  text-decoration-color: rgba(191, 208, 220, 0.55) !important;
  text-underline-offset: 3px;
  opacity: 1 !important;
  transition:
    color 160ms ease,
    text-decoration-color 160ms ease !important;
}

body .site-footer .mh-footer-api-link:hover,
body .site-footer .mh-footer-api-link:focus-visible,
body .site-footer .mh-footer-api-link[aria-current="page"] {
  background: transparent !important;
  color: #91d8f4 !important;
  font-weight: 540 !important;
  text-decoration: underline !important;
  text-decoration-color: #91d8f4 !important;
  opacity: 1 !important;
}

body .site-footer .mh-footer-api-link:focus-visible {
  outline: 2px solid #91d8f4 !important;
  outline-offset: 2px !important;
}

body .site-footer .mh-footer-meta-separator {
  color: #9fb5c4 !important;
  opacity: 0.58;
  user-select: none;
}

/* ======================================================================
   [19] RESPONZIVNÍ ROZLOŽENÍ STRÁNEK
   ====================================================================== */

@media (min-width: 981px) and (max-width: 1120px) {
  .mh-home h1 {
    font-size: clamp(2.62rem, 4.3vw, 2.8rem);
  }

  .mh-hero-grid {
    grid-template-columns: minmax(0, 1fr) 280px;
    gap: 44px;
  }

  .mh-portrait {
    width: 280px;
  }
}

@media (max-width: 1080px) {
  body .site-footer .mh-footer-main {
    grid-template-columns: 1fr;
    gap: 19px;
  }

  body .site-footer .mh-footer-nav {
    justify-content: start;
  }
}

@media (max-width: 980px) {
  .mh-hero-grid {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .mh-portrait {
    width: min(100%, 300px);
    justify-self: center;
  }

  .mh-form-layout {
    grid-template-columns: 1fr;
  }

  .mh-form-guide-card {
    width: 100%;
  }

  .mh-form-guide {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .mh-form-guide-item,
  .mh-form-guide-item:nth-child(odd),
  .mh-form-guide-item:nth-child(even) {
    padding: 17px 16px;
    border-right: 1px solid var(--mh-border);
  }

  .mh-form-guide-item:first-child {
    padding-left: 0;
  }

  .mh-form-guide-item:last-child {
    padding-right: 0;
    border-right: 0;
  }
}

/* --- Tablet --- */

@media (max-width: 1024px) {
  .mh-shell {
    width: min(var(--mh-shell), calc(100% - 44px));
  }

  .mh-section,
  .mh-impact {
    padding: 48px 0;
  }

  .mh-section-intro,
  .mh-collaboration-head {
    grid-template-columns: 1fr;
    gap: 12px;
    align-items: start;
  }

  .mh-section-intro > p,
  .mh-collaboration-lead {
    max-width: 760px;
  }

  .mh-collaboration-lead {
    padding-top: 0;
  }

  .mh-notes-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .mh-note-card:last-child {
    grid-column: 1 / -1;
    min-height: 230px;
  }

  .mh-page-hero-grid,
  .mh-feature-split,
  .mh-callout {
    grid-template-columns: 1fr;
  }

  .mh-page-hero-grid,
  .mh-feature-split {
    gap: 35px;
  }

  .mh-facts {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .mh-fact,
  .mh-fact + .mh-fact {
    padding: 0 18px;
    border-right: 1px solid var(--mh-border);
    border-bottom: 0;
  }

  .mh-fact:first-child {
    padding-left: 0;
  }

  .mh-fact:last-child {
    padding-right: 0;
    border-right: 0;
  }

  .mh-split {
    gap: 44px;
  }

  .mh-split > * + * {
    padding-left: 44px;
  }

  .mh-callout {
    gap: 28px;
  }

  .mh-callout .mh-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 900px) {
  body .mh-insights-page .mh-insights-hero-grid {
    grid-template-columns: 1fr;
    gap: 26px;
  }

  body .mh-insights-page .mh-facebook-card {
    max-width: 520px;
  }

  body .mh-insights-page .mh-insights-heading {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  body .mh-insights-page .mh-insights-heading > p {
    max-width: 720px;
  }

  .mh-insight-card {
    grid-template-columns: minmax(0, 1fr) max-content;
    grid-template-areas:
      "meta meta"
      "title link"
      "excerpt excerpt";
    column-gap: 24px;
  }

  .mh-insight-meta {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 8px 16px;
    margin-bottom: 4px;
    padding: 0 0 13px;
    border-right: 0;
    border-bottom: 1px solid var(--mh-border);
  }
}

@media (max-width: 860px) {
  .mh-hero {
    padding: 54px 0 52px;
  }

  .mh-teaching-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .mh-contact-grid {
    grid-template-columns: 1fr;
  }
}

/* --- Mobil --- */

@media (max-width: 760px) {
  body .site-header-row-container-inner .site-container,
  body .site-footer-row-container-inner > .site-container {
    padding-right: 18px !important;
    padding-left: 18px !important;
  }

  .mh-shell {
    width: min(100% - 36px, var(--mh-shell));
  }

  .mh-section,
  .mh-impact {
    padding: 42px 0;
  }

  .mh-home h1 {
    max-width: 19ch;
    font-size: clamp(2.35rem, 9.5vw, 3.1rem);
    line-height: 1.03;
  }

  .mh-title-line {
    display: inline;
    white-space: normal;
  }

  .mh-title-line:not(:last-child)::after {
    content: " ";
  }

  .mh-page h2 {
    font-size: clamp(2.35rem, 11vw, 3.25rem);
    line-height: 1.02;
  }

  .mh-hero-name {
    font-size: 1.55rem;
  }

  .mh-hero-text {
    font-size: 18px;
  }

  .mh-actions {
    align-items: flex-start;
  }

  .mh-button-primary {
    width: 100%;
  }

  .mh-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0;
    margin-top: 26px;
    padding-top: 0;
    border-top: 1px solid var(--mh-border);
  }

  .mh-stat,
  .mh-stat:first-child,
  .mh-stat:last-child {
    min-width: 0;
    padding: 14px 8px;
  }

  .mh-stat + .mh-stat {
    border-top: 0;
    border-left: 1px solid var(--mh-border);
  }

  .mh-stat strong {
    margin-bottom: 5px;
    font-size: 20px !important;
    line-height: 1.15;
  }

  .mh-stat span {
    margin-top: 5px;
    font-size: 12px !important;
    line-height: 1.35;
    white-space: normal !important;
  }

  .mh-portrait {
    max-width: 260px;
  }

  .mh-research-row {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 23px 0;
  }

  .mh-current-work {
    display: grid;
    gap: 5px;
  }

  .mh-publication {
    grid-template-columns: 1fr;
    gap: 7px;
    padding: 19px 0;
  }

  .mh-publication-number {
    padding-top: 0;
  }

  .mh-card-grid--3,
  .mh-impact-grid,
  .mh-notes-grid {
    grid-template-columns: 1fr;
  }

  .mh-service,
  .mh-numbered-card {
    min-height: 0;
  }

  /* V97 – dekorativní čísla jsou na mobilu menší a méně dominantní. */
  .mh-numbered-card::after {
    right: 14px;
    bottom: -15px;
    color: rgba(7, 106, 159, 0.10);
    font-size: 6rem;
  }

  .mh-impact-item {
    padding: 22px 4px;
  }

  .mh-impact-item + .mh-impact-item,
  .mh-impact-item:nth-child(3),
  .mh-impact-item:nth-child(4) {
    border-top: 1px solid var(--mh-border);
    border-left: 0;
  }

  .mh-teaching-grid {
    padding-top: 38px;
    padding-bottom: 38px;
  }

  /* V101 – mobil: kompaktnější seznam ve „Výuka a doktorské vedení“.
     Menší mezera za úvodním textem a odstranění zbytečného levého odsazení. */
  .mh-teaching-lead {
    margin-bottom: 10px;
  }

  body .mh-page .mh-teaching-list {
    grid-template-columns: 1fr;
    gap: 6px;
    margin: 0 !important;
    padding: 0 !important;
    padding-inline-start: 0 !important;
  }

  body .mh-page .mh-teaching-list li {
    padding-left: 14px !important;
  }

  body .mh-page .mh-teaching-list li::before {
    top: 0.72em;
    left: 1px;
    width: 4px;
    height: 4px;
  }

  .mh-note-card,
  .mh-note-card:last-child {
    grid-column: auto;
    min-height: 0;
  }

  .mh-contact-card,
  .mh-profiles-card {
    padding: 30px 23px;
  }

  .mh-profile-list {
    grid-template-columns: 1fr;
  }

  .mh-profile-list a,
  .mh-profile-list a:nth-child(odd),
  .mh-profile-list a:nth-child(even) {
    min-height: 82px;
    padding: 17px 0 !important;
    border-right: 0 !important;
  }

  .mh-profile-list strong {
    white-space: normal;
  }

  .mh-contact-actions {
    display: grid;
  }

  .mh-email-link {
    text-align: center;
  }

  .mh-contact-qr {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

  .mh-contact-qr img {
    width: 168px;
    height: 168px;
  }

  .mh-page-hero {
    padding: 57px 0 37px;
  }

  .mh-page-hero::before,
  .mh-insights-hero::before {
    left: 18px;
    width: 54px;
  }

  .mh-page-title {
    font-size: clamp(2.45rem, 12vw, 3.45rem);
  }

  .mh-facts,
  .mh-split {
    grid-template-columns: 1fr;
  }

  .mh-facts {
    padding: 21px 22px;
  }

  .mh-fact,
  .mh-fact + .mh-fact {
    padding: 0 0 13px;
    border-right: 0;
    border-bottom: 1px solid var(--mh-border);
  }

  .mh-fact + .mh-fact {
    padding-top: 13px;
  }

  .mh-fact:last-child {
    padding-bottom: 0;
    border-bottom: 0;
  }

  .mh-columns--2 {
    columns: 1;
  }

  .mh-split {
    gap: 45px;
  }

  .mh-split > * + * {
    padding-top: 45px;
    padding-left: 0;
    border-top: 1px solid var(--mh-border);
    border-left: 0;
  }

  .mh-callout-wrap {
    padding: 46px 0 54px;
  }

  .mh-callout {
    padding: 0;
  }

  .mh-callout .mh-actions {
    justify-content: flex-start;
    gap: 9px;
    width: 100%;
  }

  .mh-callout .mh-button,
  .mh-callout .mh-action-link {
    width: fit-content;
    min-height: 44px;
    padding: 10px 16px;
  }

  .mh-doi-row {
    display: block;
  }

  .mh-doi-label {
    margin-right: 0.3em;
  }

  .mh-form-panel,
  .mh-form-guide-card {
    padding: 28px 23px;
    border-radius: 17px;
  }

  .mh-form-panel-head {
    margin-bottom: 23px;
    padding-bottom: 21px;
  }

  .mh-form-panel h3,
  .mh-form-guide-card h3 {
    font-size: 22px;
  }

  .mh-form-guide {
    grid-template-columns: 1fr;
  }

  .mh-form-guide-item,
  .mh-form-guide-item:nth-child(odd),
  .mh-form-guide-item:nth-child(even) {
    padding: 15px 0 16px;
    border-right: 0;
  }

  #formular .mh-fluent-form .ff-el-group {
    margin-bottom: 18px;
  }

  #formular .mh-fluent-form input[type="text"],
  #formular .mh-fluent-form input[type="email"],
  #formular .mh-fluent-form input[type="tel"],
  #formular .mh-fluent-form input[type="url"],
  #formular .mh-fluent-form input[type="number"],
  #formular .mh-fluent-form select,
  #formular .mh-fluent-form textarea,
  #formular .mh-fluent-form .ff-el-form-control {
    min-height: 52px;
    padding: 12px 14px;
    border-radius: 11px !important;
    font-size: 16px;
  }

  #formular .mh-fluent-form textarea,
  #formular .mh-fluent-form textarea.ff-el-form-control {
    min-height: 145px;
  }

  #formular .mh-fluent-form .ff-btn-submit,
  #formular .mh-fluent-form button[type="submit"],
  #formular .mh-fluent-form input[type="submit"] {
    width: 100% !important;
  }

  body .site-footer .mh-footer-inner {
    padding: 27px 0 64px;
  }

  body .site-footer .mh-footer-main {
    gap: 20px;
  }

  body .site-footer .mh-footer-brand {
    justify-self: center;
    justify-items: center;
    width: min(100%, 420px);
    text-align: center;
  }

  body .site-footer .mh-footer-brand strong {
    font-size: 27px;
  }

  body .site-footer .mh-footer-brand span {
    max-width: 330px;
    font-size: 14px;
    line-height: 1.45;
  }

  body .site-footer .mh-footer-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    justify-content: stretch;
    width: 100%;
    gap: 8px;
  }

  body .site-footer .mh-footer-nav a {
    position: relative;
    display: flex;
    min-height: 45px;
    align-items: center;
    justify-content: space-between;
    padding: 10px 13px;
    border: 1px solid rgba(232, 241, 246, 0.13);
    border-radius: 9px;
    background: rgba(255, 255, 255, 0.035);
    font-size: 15px;
    font-weight: 580;
    line-height: 1.3;
  }

  body .site-footer .mh-footer-nav a::after {
    margin-left: 8px;
    color: #75c5e7;
    font-size: 19px;
    font-weight: 400;
    line-height: 1;
    content: "›";
  }

  body .site-footer .mh-footer-nav a:hover,
  body .site-footer .mh-footer-nav a:focus-visible {
    border-color: rgba(145, 216, 244, 0.4);
    background: rgba(255, 255, 255, 0.075);
    text-decoration: none !important;
  }

  body .site-footer .mh-footer-meta {
    display: grid;
    justify-content: center;
    gap: 8px;
    margin-top: 17px;
    padding-top: 10px;
    text-align: center;
  }

  body .site-footer .mh-footer-meta-right {
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
  }

  body .site-footer .mh-footer-api-link {
    opacity: 1 !important;
  }

  /* V100 – AI asistent na mobilu: menší, ale stále dostatečně velký
     dotykový cíl; patička má níže rezervovaný prostor, takže ji nepřekrývá. */
  html body #mh-ai-button {
    right: 12px !important;
    bottom: calc(12px + env(safe-area-inset-bottom, 0px)) !important;
    min-height: 44px !important;
    padding: 9px 14px !important;
    border-radius: 999px !important;
    font-size: 13px !important;
    font-weight: 650 !important;
    line-height: 1.15 !important;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.17) !important;
  }

  /* V100 – mobilní šipkové seznamy: šipka má vlastní prostor,
     takže zalomené řádky začínají přesně pod textem, ne pod šipkou. */
  body .mh-page .mh-arrow-list li {
    padding-left: 32px !important;
  }

  body .mh-page .mh-arrow-list li::before {
    top: 10px;
    left: 2px !important;
    width: 20px;
    text-align: center;
  }

  /* V84 – Výzkum / Research: úspornější štítky na mobilu */
  body .mh-page.mh-research .mh-tags {
    gap: 8px;
  }

  body .mh-page.mh-research .mh-tag {
    min-height: 34px;
    padding: 0 11px 1px;
    font-size: 13px;
    line-height: 1.05;
  }
}

@media (max-width: 720px) {
  body .mh-insights-page .mh-insights-hero {
    padding: 42px 0 36px;
  }

  body .mh-insights-page .mh-insights-hero-grid {
    gap: 22px;
  }

  body .mh-insights-page .mh-insights-section {
    padding-top: 40px;
  }

  body .mh-insights-page .mh-facebook-card {
    padding-left: 18px;
  }

  .mh-insights-page .mh-insights-filters {
    align-items: flex-start;
    gap: 8px;
  }

  .mh-insights-page .mh-insights-filters-label,
  .mh-insights-page .mh-insights-filter-list {
    flex-basis: 100%;
  }

  .mh-insights-grid {
    grid-template-columns: 1fr;
  }

  .mh-insight-card {
    min-height: 0;
  }
}

@media (max-width: 520px) {
  body .mh-insights-page .mh-facebook-card {
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 10px;
    padding: 0 0 0 14px;
  }

  body .mh-insights-page .mh-facebook-icon {
    width: 34px;
    height: 34px;
  }

  body .mh-insights-page .mh-facebook-icon svg {
    width: 18px;
    height: 18px;
  }

  body .mh-insights-page .mh-facebook-title {
    margin-bottom: 3px;
    font-size: 15px;
  }

  body .mh-insights-page .mh-facebook-text {
    margin-bottom: 5px;
    font-size: 13px;
    line-height: 1.4;
  }

  body .mh-insights-page .mh-facebook-link {
    font-size: 13px;
  }

  .mh-insights-toolbar {
    display: grid;
    gap: 10px;
    padding: 12px;
  }

  .mh-insights-count {
    min-width: 0;
    padding-right: 2px;
    text-align: left;
  }

  .mh-insight-card {
    grid-template-columns: 1fr;
    grid-template-areas:
      "meta"
      "title"
      "excerpt"
      "link";
    row-gap: 11px;
    padding: 21px 19px 19px;
  }

  .mh-insight-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 8px;
    margin-bottom: 0;
    padding-bottom: 12px;
  }

  .mh-insight-categories {
    width: 100%;
  }

  .mh-insight-card > p {
    -webkit-line-clamp: 3;
  }

  .mh-insight-link {
    justify-self: start;
  }

  .mh-insights-pagination {
    gap: 6px;
    margin-top: 24px;
  }

  .mh-insights-pagination button,
  .mh-pagination-gap {
    min-width: 38px;
    min-height: 38px;
    padding: 7px 9px;
    font-size: 14px;
  }
}

/* --- Malé mobily --- */

@media (max-width: 420px) {
  .mh-shell {
    width: min(100% - 28px, var(--mh-shell));
  }

  .mh-home h1,
  .mh-page h2 {
    font-size: 2.3rem;
  }

  .mh-portrait,
  .mh-contact-card,
  .mh-profiles-card,
  .mh-note-card,
  .mh-service,
  .mh-form-panel,
  .mh-form-guide-card {
    border-radius: 18px;
  }

  .mh-numbered-card::after {
    right: 10px;
    bottom: -11px;
    color: rgba(7, 106, 159, 0.09);
    font-size: 5.45rem;
  }

  .mh-topic-line {
    display: grid;
    gap: 7px;
  }

  .mh-topic-line span:not(:last-child)::after {
    display: none;
  }

  .mh-text-link {
    white-space: normal;
  }

  body .site-footer .mh-footer-inner {
    padding-top: 24px;
    padding-bottom: 64px;
  }

  body .site-footer .mh-footer-brand strong {
    font-size: 25px;
  }

  body .site-footer .mh-footer-brand span {
    max-width: 300px;
  }

  body .site-footer .mh-footer-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
  }

  body .site-footer .mh-footer-nav a {
    min-height: 43px;
    padding: 9px 11px;
    font-size: 14px;
  }

  body .site-footer .mh-footer-email {
    font-size: 14px;
  }
}

@media (max-width: 700px) {
  body.single-post .mh-article-page .mh-insights-hero {
    padding: 42px 0 28px;
  }

  body.single-post .mh-article-page .mh-insights-hero::before {
    left: 16px;
    width: 48px;
  }

  body.single-post .mh-article-page .mh-insights-hero > .mh-shell,
  body.single-post .mh-article-section > .mh-shell {
    width: calc(100% - 32px);
  }

  body.single-post .mh-article-meta {
    gap: 8px 10px !important;
  }

  body.single-post .mh-article-date {
    padding-left: 10px;
    font-size: 13px;
  }

  body.single-post .mh-article-page .mh-page-title {
    font-size: clamp(2.35rem, 11vw, 3.35rem);
    line-height: 1.01;
  }

  body.single-post .mh-article-page .mh-page-lead {
    font-size: 1.03rem;
    line-height: 1.66;
  }
}

/* --- Omezení animací --- */

@media (prefers-reduced-motion: reduce) {
  .mh-page *,
  .mh-page *::before,
  .mh-page *::after,
  .mh-footer *,
  .mh-footer *::before,
  .mh-footer *::after,
  body.single-post .entry-header *,
  body.single-post .entry-content *,
  body.single-post .entry-tags *,
  body.single-post .post-navigation *,
  body.single-post .entry-related * {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}

/* ======================================================================
   [20] PODOBNÉ PŘÍSPĚVKY – MEZERY KARET
   ====================================================================== */

body.single-post .entry-related .splide__list.kadence-posts-list,
body.single-post .entry-related ul.splide__list.grid-cols {
  width: calc(100% + 26px) !important;
  max-width: none !important;
  margin: -13px !important;
  column-gap: 0 !important;
  row-gap: 0 !important;
  gap: 0 !important;
}

body.single-post .entry-related .splide__slide,
body.single-post .entry-related .entry-list-item.carousel-item {
  box-sizing: border-box !important;
  padding: 13px !important;
}

body.single-post .entry-related .splide__slide > article,
body.single-post .entry-related .entry-list-item > article {
  width: 100% !important;
  margin: 0 !important;
}

@media (max-width: 1050px) {
  body.single-post .entry-related .splide__list.kadence-posts-list,
  body.single-post .entry-related ul.splide__list.grid-cols {
    width: calc(100% + 22px) !important;
    margin: -11px !important;
  }

  body.single-post .entry-related .splide__slide,
  body.single-post .entry-related .entry-list-item.carousel-item {
    padding: 11px !important;
  }
}

@media (max-width: 700px) {
  body.single-post .entry-related .splide__list.kadence-posts-list,
  body.single-post .entry-related ul.splide__list.grid-cols {
    width: calc(100% + 18px) !important;
    margin: -9px !important;
  }

  body.single-post .entry-related .splide__slide,
  body.single-post .entry-related .entry-list-item.carousel-item {
    padding: 9px !important;
  }
}

/* ======================================================================
   [21] NEWSLETTER – ODSAZENÍ A STAVOVÉ STRÁNKY
   ====================================================================== */


/* --- Odběr Zápisníku / Insights --- */

.mh-newsletter-box {
  box-sizing: border-box;
  width: min(1120px, calc(100% - 40px));
  margin: 48px auto;
  padding: 38px 42px;
  border: 1px solid rgba(12, 55, 92, 0.14);
  border-radius: 22px;
  background: linear-gradient(
    135deg,
    rgba(238, 247, 253, 0.98),
    rgba(255, 255, 255, 0.98)
  );
  box-shadow: 0 18px 45px rgba(11, 48, 79, 0.08);
  text-align: center;
}

.mh-newsletter-box__intro {
  max-width: 760px;
  margin: 0 auto;
}

.mh-newsletter-box h2 {
  margin: 4px 0 12px;
}

.mh-newsletter-box__lead {
  max-width: 680px;
  margin-right: auto;
  margin-left: auto;
  line-height: 1.7;
}

.mh-newsletter-box__privacy {
  max-width: 680px;
  margin: 14px auto 0;
  color: var(--mh-muted);
  font-size: 0.84rem;
  line-height: 1.5;
}

.mh-newsletter-box .mailpoet_form {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto !important;
  gap: 12px !important;
  align-items: stretch !important;
  max-width: 640px !important;
  margin: 0 auto !important;
  padding: 0 !important;
}

.mh-newsletter-box .mailpoet_paragraph {
  margin: 0 !important;
}

.mh-newsletter-box .mailpoet_text,
.mh-newsletter-box input[type="email"] {
  box-sizing: border-box !important;
  width: 100% !important;
  min-height: 50px !important;
  padding: 12px 16px !important;
  border: 1px solid rgba(12, 55, 92, 0.24) !important;
  border-radius: 10px !important;
  color: #102f4d !important;
  background: #fff !important;
  font: inherit !important;
}

.mh-newsletter-box .mailpoet_text:focus,
.mh-newsletter-box input[type="email"]:focus {
  border-color: #176b9d !important;
  outline: 3px solid rgba(23, 107, 157, 0.14) !important;
}

.mh-newsletter-box .mailpoet_submit,
.mh-newsletter-box input[type="submit"] {
  min-height: 50px !important;
  padding: 12px 24px !important;
  border: 0 !important;
  border-radius: 10px !important;
  color: #fff !important;
  background: #075f91 !important;
  font: inherit !important;
  font-weight: 700 !important;
  white-space: nowrap !important;
  cursor: pointer !important;
}

.mh-newsletter-box .mailpoet_submit:hover,
.mh-newsletter-box input[type="submit"]:hover {
  background: #064d76 !important;
}

.mh-newsletter-box .mailpoet_message,
.mh-newsletter-box .mailpoet_validate_success,
.mh-newsletter-box .mailpoet_validate_error {
  grid-column: 1 / -1 !important;
  text-align: left !important;
}

.mh-page .mh-newsletter-box__lead {
  margin-bottom: 34px !important;
}

@media (max-width: 640px) {
  .mh-newsletter-box {
    width: min(100% - 28px, 1120px);
    margin: 36px auto;
    padding: 30px 20px;
    border-radius: 18px;
  }

  .mh-page .mh-newsletter-box__lead {
    margin-bottom: 26px !important;
  }

  .mh-newsletter-box .mailpoet_form {
    grid-template-columns: 1fr !important;
  }

  .mh-newsletter-box .mailpoet_submit,
  .mh-newsletter-box input[type="submit"] {
    width: 100% !important;
  }
}

/* --- Stavové stránky newsletteru --- */

.mh-newsletter-status-page {
  min-height: 0;
  background:
    radial-gradient(circle at 86% 12%, rgba(7, 106, 159, 0.1), transparent 29%),
    linear-gradient(180deg, #f8fcfe 0%, var(--mh-background) 100%);
}

.mh-newsletter-status-page .mh-section {
  width: min(900px, calc(100% - 64px));
  margin-right: auto;
  margin-left: auto;
  padding: clamp(64px, 7vw, 92px) 0 clamp(76px, 8vw, 108px);
}

.mh-newsletter-status-box {
  position: relative;
  overflow: hidden;
  padding: clamp(38px, 5vw, 58px);
  border: 1px solid var(--mh-border);
  border-radius: 24px;
  background:
    radial-gradient(
      circle at 95% 4%,
      rgba(7, 106, 159, 0.075),
      transparent 31%
    ),
    rgba(255, 255, 255, 0.94);
  box-shadow: var(--mh-shadow-strong);
}

.mh-newsletter-status-box::before {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 4px;
  background: linear-gradient(
    90deg,
    var(--mh-blue) 0 34%,
    rgba(7, 106, 159, 0.14) 34% 100%
  );
  content: "";
}

.mh-newsletter-status-box::after {
  position: absolute;
  z-index: 0;
  top: -86px;
  right: -92px;
  width: 220px;
  height: 220px;
  border: 1px solid rgba(7, 106, 159, 0.08);
  border-radius: 50%;
  content: "";
}

.mh-newsletter-status-box .mh-newsletter-box__intro {
  position: relative;
  z-index: 1;
  max-width: 720px;
}

.mh-newsletter-status-box .mh-eyebrow {
  margin-bottom: 15px !important;
}

.mh-newsletter-status-box h1 {
  max-width: 13ch;
  margin: 0 0 22px;
  color: var(--mh-ink);
  font-family: var(--mh-serif);
  font-size: clamp(2.65rem, 5vw, 4.15rem);
  font-weight: 400;
  letter-spacing: -0.048em;
  line-height: 1.02;
  text-wrap: balance;
}

.mh-newsletter-status-box .mh-newsletter-box__lead {
  max-width: 680px;
  margin-bottom: 30px !important;
  color: var(--mh-text);
  font-size: clamp(1.04rem, 1.4vw, 1.18rem);
  line-height: 1.72;
  text-wrap: pretty;
}

.mh-newsletter-status-box .mh-article-note {
  max-width: 680px;
  margin: 0;
  padding: 20px 22px 21px;
  border: 1px solid rgba(7, 106, 159, 0.15);
  border-left: 4px solid var(--mh-blue);
  border-radius: 0 14px 14px 0;
  background: linear-gradient(
    135deg,
    rgba(237, 245, 250, 0.95),
    rgba(247, 251, 253, 0.96)
  );
  box-shadow: none;
}

.mh-newsletter-status-box .mh-article-note > strong {
  margin-bottom: 6px;
  color: var(--mh-ink);
  font-size: 16px;
  font-weight: 720;
}

.mh-newsletter-status-box .mh-article-note p {
  max-width: none;
  margin: 0;
  color: var(--mh-text);
  font-size: 16px;
  line-height: 1.65;
}

.mh-newsletter-status-box .mh-actions {
  gap: 12px 24px;
  margin-top: 31px;
}

.mh-newsletter-status-box .mh-button {
  min-height: 50px;
  padding-right: 23px;
  padding-left: 23px;
}

.mh-newsletter-status-box .mh-action-link {
  min-height: 44px;
  align-items: center;
}

.mh-newsletter-status-box--success::before {
  background: linear-gradient(
    90deg,
    #2f7d55 0 34%,
    rgba(47, 125, 85, 0.15) 34% 100%
  );
}

.mh-newsletter-status-box--success .mh-eyebrow {
  color: #2f7d55;
}

.mh-newsletter-status-box--success .mh-article-note {
  border-color: rgba(47, 125, 85, 0.18);
  border-left-color: #2f7d55;
  background: linear-gradient(135deg, #edf7f1, #f7fbf8);
}

@media (max-width: 760px) {
  .mh-newsletter-status-page .mh-section {
    width: calc(100% - 36px);
    padding: 44px 0 58px;
  }

  .mh-newsletter-status-box {
    padding: 31px 24px 30px;
    border-radius: 19px;
  }

  .mh-newsletter-status-box h1 {
    max-width: none;
    margin-bottom: 18px;
    font-size: clamp(2.3rem, 11.5vw, 3.15rem);
  }

  .mh-newsletter-status-box .mh-newsletter-box__lead {
    margin-bottom: 24px !important;
    font-size: 17px;
    line-height: 1.68;
  }

  .mh-newsletter-status-box .mh-article-note {
    padding: 17px 17px 18px;
  }

  .mh-newsletter-status-box .mh-actions {
    display: grid;
    gap: 12px;
    margin-top: 25px;
  }

  .mh-newsletter-status-box .mh-button,
  .mh-newsletter-status-box .mh-action-link {
    width: 100%;
    justify-content: center;
    text-align: center;
  }
}

@media (max-width: 420px) {
  .mh-newsletter-status-page .mh-section {
    width: calc(100% - 28px);
  }

  .mh-newsletter-status-box {
    padding: 28px 20px 27px;
    border-radius: 17px;
  }
}

/* ======================================================================
   [22] MOBILNÍ MENU KADENCE
   ====================================================================== */

@media (max-width: 1024px) {
  body #mobile-drawer.popup-drawer {
    --mh-mobile-drawer-width: min(88vw, 390px);
  }

  body #mobile-drawer.popup-drawer .drawer-overlay {
    background: rgba(3, 14, 25, 0.64) !important;
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
  }

  body #mobile-drawer.popup-drawer .drawer-inner {
    width: var(--mh-mobile-drawer-width) !important;
    max-width: var(--mh-mobile-drawer-width) !important;
    padding: 0 !important;
    color: #f5f9fc;
    background:
      radial-gradient(
        circle at 100% 0%,
        rgba(31, 126, 180, 0.22),
        transparent 34%
      ),
      linear-gradient(180deg, #061421 0%, #081b2c 100%) !important;
    border-left: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: -24px 0 60px rgba(0, 0, 0, 0.28);
  }

  body #mobile-drawer.popup-drawer .drawer-header {
    min-height: 76px !important;
    align-items: center;
    padding: 15px 20px 11px !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  body #mobile-drawer.popup-drawer .drawer-content {
    padding: 14px 18px 24px !important;
    overflow-x: hidden;
    overscroll-behavior: contain;
  }

  body #mobile-drawer.popup-drawer .drawer-toggle,
  body #mobile-drawer.popup-drawer .menu-toggle-close {
    display: inline-flex !important;
    width: 46px;
    height: 46px;
    min-width: 46px;
    align-items: center;
    justify-content: center;
    padding: 0 !important;
    border: 1px solid rgba(255, 255, 255, 0.16) !important;
    border-radius: 50% !important;
    color: #ffffff !important;
    background: rgba(255, 255, 255, 0.07) !important;
    box-shadow: none !important;
    transition:
      transform 160ms ease,
      border-color 160ms ease,
      background 160ms ease;
  }

  body #mobile-drawer.popup-drawer .drawer-toggle:hover,
  body #mobile-drawer.popup-drawer .drawer-toggle:focus-visible,
  body #mobile-drawer.popup-drawer .menu-toggle-close:hover,
  body #mobile-drawer.popup-drawer .menu-toggle-close:focus-visible {
    transform: rotate(4deg);
    border-color: rgba(108, 196, 237, 0.5) !important;
    background: rgba(7, 106, 159, 0.24) !important;
  }

  body #mobile-drawer .drawer-navigation,
  body #mobile-drawer .mobile-navigation {
    width: 100%;
  }

  body #mobile-drawer .drawer-navigation .drawer-menu-container,
  body #mobile-drawer .mobile-navigation .mobile-menu-container {
    width: 100%;
  }

  body #mobile-drawer .drawer-navigation ul,
  body #mobile-drawer .mobile-navigation ul {
    display: grid;
    width: 100%;
    gap: 6px !important;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none;
  }

  body #mobile-drawer .drawer-navigation ul li,
  body #mobile-drawer .mobile-navigation ul li {
    width: 100%;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
  }

  body #mobile-drawer .drawer-navigation ul li > a,
  body #mobile-drawer .mobile-navigation ul li > a,
  body #mobile-drawer .drawer-navigation ul li > .drawer-nav-drop-wrap,
  body #mobile-drawer .mobile-navigation ul li > .drawer-nav-drop-wrap {
    box-sizing: border-box;
    display: flex !important;
    width: 100%;
    min-height: 44px !important;
    align-items: center;
    justify-content: space-between;
    gap: 12px !important;
    padding: 9px 13px !important;
    border: 1px solid rgba(255, 255, 255, 0.09) !important;
    border-radius: 12px !important;
    color: rgba(255, 255, 255, 0.92) !important;
    background: rgba(255, 255, 255, 0.035) !important;
    font-size: 16px !important;
    font-weight: 520 !important;
    line-height: 1.3 !important;
    text-decoration: none !important;
    box-shadow: none !important;
    transition:
      transform 160ms ease,
      color 160ms ease,
      border-color 160ms ease,
      background 160ms ease;
  }

  body #mobile-drawer .drawer-navigation ul li > a::after,
  body #mobile-drawer .mobile-navigation ul li > a::after {
    flex: 0 0 auto;
    color: rgba(112, 193, 232, 0.86);
    content: "›";
    font-size: 21px !important;
    font-weight: 400;
    line-height: 1;
  }

  body #mobile-drawer .drawer-navigation ul li > a:hover,
  body #mobile-drawer .drawer-navigation ul li > a:focus-visible,
  body #mobile-drawer .mobile-navigation ul li > a:hover,
  body #mobile-drawer .mobile-navigation ul li > a:focus-visible {
    transform: translateX(3px);
    border-color: rgba(112, 193, 232, 0.38) !important;
    color: #ffffff !important;
    background: rgba(7, 106, 159, 0.16) !important;
  }

  body #mobile-drawer .drawer-navigation ul li.current-menu-item > a,
  body #mobile-drawer .drawer-navigation ul li.current_page_item > a,
  body #mobile-drawer .drawer-navigation ul li.current-menu-ancestor > a,
  body #mobile-drawer .mobile-navigation ul li.current-menu-item > a,
  body #mobile-drawer .mobile-navigation ul li.current_page_item > a,
  body #mobile-drawer .mobile-navigation ul li.current-menu-ancestor > a {
    border-color: rgba(112, 193, 232, 0.48) !important;
    color: #ffffff !important;
    background: linear-gradient(
      90deg,
      rgba(7, 106, 159, 0.28),
      rgba(7, 106, 159, 0.11)
    ) !important;
    box-shadow: inset 3px 0 0 #70c1e8 !important;
  }

  /* V94 – jazyk v mobilním draweru bez kapsle, čistě jako samostatný řádek. */
  body #mobile-drawer .drawer-navigation ul li.lang-item,
  body #mobile-drawer .mobile-navigation ul li.lang-item {
    margin-top: 10px !important;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.09);
  }

  body #mobile-drawer .drawer-navigation ul li.lang-item > a,
  body #mobile-drawer .mobile-navigation ul li.lang-item > a {
    justify-content: flex-start;
    gap: 10px;
    color: rgba(255, 255, 255, 0.82) !important;
    background: transparent !important;
    font-size: 0 !important;
  }

  body #mobile-drawer .drawer-navigation ul li.lang-item > a::before,
  body #mobile-drawer .mobile-navigation ul li.lang-item > a::before {
    display: inline;
    min-width: 0;
    height: auto;
    border: 0;
    border-radius: 0;
    color: rgba(255, 255, 255, 0.88);
    background: transparent;
    font-size: 13px;
    font-weight: 680;
    line-height: 1.2;
    letter-spacing: 0.025em;
    text-transform: none;
  }

  html[lang="cs-CZ"] body #mobile-drawer .lang-item > a::before,
  html[lang^="cs"] body #mobile-drawer .lang-item > a::before {
    content: "English";
  }

  html[lang^="en"] body #mobile-drawer .lang-item > a::before {
    content: "Čeština";
  }

  body #mobile-drawer .drawer-navigation ul li.lang-item > a::after,
  body #mobile-drawer .mobile-navigation ul li.lang-item > a::after {
    margin-left: auto;
    color: rgba(112, 193, 232, 0.76);
    font-size: 11px;
    font-weight: 760;
    line-height: 1;
    letter-spacing: 0.10em;
    text-transform: uppercase;
  }

  html[lang="cs-CZ"] body #mobile-drawer .lang-item > a::after,
  html[lang^="cs"] body #mobile-drawer .lang-item > a::after {
    content: "EN";
  }

  html[lang^="en"] body #mobile-drawer .lang-item > a::after {
    content: "CZ";
  }

  body #mobile-drawer .drawer-navigation ul li.lang-item > a:hover,
  body #mobile-drawer .drawer-navigation ul li.lang-item > a:focus-visible,
  body #mobile-drawer .mobile-navigation ul li.lang-item > a:hover,
  body #mobile-drawer .mobile-navigation ul li.lang-item > a:focus-visible {
    transform: none;
    border-color: transparent !important;
    background: rgba(112, 193, 232, 0.06) !important;
  }

  body #mobile-drawer .drawer-navigation ul li.lang-item img,
  body #mobile-drawer .mobile-navigation ul li.lang-item img {
    display: none !important;
  }
}

@media (max-width: 700px) {
  body.single-post .post-navigation-wrap,
  body.single-post nav.post-navigation {
    width: calc(100% - 32px) !important;
    max-width: none !important;
    margin-right: auto !important;
    margin-left: auto !important;
    padding: 0 0 42px !important;
    overflow: visible !important;
  }

  body.single-post .post-navigation .nav-links,
  body.single-post nav.post-navigation .nav-links {
    box-sizing: border-box;
    display: grid !important;
    width: 100% !important;
    max-width: none !important;
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 14px !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: visible !important;
  }

  body.single-post .post-navigation .nav-links > .nav-previous,
  body.single-post .post-navigation .nav-links > .nav-next,
  body.single-post nav.post-navigation .nav-links > .nav-previous,
  body.single-post nav.post-navigation .nav-links > .nav-next {
    position: static !important;
    inset: auto !important;
    display: block !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: visible !important;
    float: none !important;
    transform: none !important;
    writing-mode: horizontal-tb !important;
    justify-self: stretch !important;
  }

  body.single-post .post-navigation .nav-previous:only-child,
  body.single-post .post-navigation .nav-next:only-child {
    width: 100% !important;
    max-width: none !important;
    justify-self: stretch !important;
  }

  body.single-post .post-navigation .nav-previous > a,
  body.single-post .post-navigation .nav-next > a,
  body.single-post nav.post-navigation .nav-previous > a,
  body.single-post nav.post-navigation .nav-next > a {
    box-sizing: border-box;
    position: relative !important;
    inset: auto !important;
    display: flex !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    min-height: 0 !important;
    height: auto !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    justify-content: center !important;
    gap: 0 !important;
    margin: 0 !important;
    padding: 18px 19px 19px !important;
    overflow: hidden !important;
    border: 1px solid var(--mh-border) !important;
    border-radius: 18px !important;
    color: var(--mh-ink) !important;
    background:
      radial-gradient(
        circle at 100% 0%,
        rgba(7, 106, 159, 0.07),
        transparent 34%
      ),
      rgba(255, 255, 255, 0.88) !important;
    text-align: left !important;
    text-decoration: none !important;
    box-shadow: 0 12px 28px rgba(16, 50, 77, 0.07) !important;
    transform: none !important;
    writing-mode: horizontal-tb !important;
  }

  body.single-post .post-navigation .nav-previous > a:hover,
  body.single-post .post-navigation .nav-next > a:hover,
  body.single-post .post-navigation .nav-previous > a:focus-visible,
  body.single-post .post-navigation .nav-next > a:focus-visible {
    transform: translateY(-1px) !important;
    border-color: rgba(7, 106, 159, 0.34) !important;
    background-color: #ffffff !important;
    box-shadow: 0 15px 34px rgba(16, 50, 77, 0.11) !important;
  }

  body.single-post .post-navigation .post-navigation-sub,
  body.single-post .post-navigation .meta-nav,
  body.single-post nav.post-navigation .post-navigation-sub,
  body.single-post nav.post-navigation .meta-nav {
    position: static !important;
    inset: auto !important;
    display: flex !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: 100% !important;
    height: auto !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 7px !important;
    margin: 0 0 9px !important;
    padding: 0 !important;
    overflow: visible !important;
    border: 0 !important;
    border-radius: 0 !important;
    color: var(--mh-blue) !important;
    background: transparent !important;
    font-size: 11px !important;
    font-weight: 760 !important;
    letter-spacing: 0.105em !important;
    line-height: 1.3 !important;
    text-align: left !important;
    text-transform: uppercase !important;
    white-space: normal !important;
    box-shadow: none !important;
    transform: none !important;
    rotate: 0deg !important;
    writing-mode: horizontal-tb !important;
    text-orientation: mixed !important;
  }

  body.single-post .post-navigation .post-navigation-sub small,
  body.single-post nav.post-navigation .post-navigation-sub small {
    position: static !important;
    display: inline !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: 100% !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    color: inherit !important;
    background: transparent !important;
    font: inherit !important;
    line-height: inherit !important;
    white-space: normal !important;
    transform: none !important;
    writing-mode: horizontal-tb !important;
  }

  body.single-post .post-navigation .post-navigation-sub svg,
  body.single-post nav.post-navigation .post-navigation-sub svg,
  body.single-post .post-navigation .post-navigation-sub .kadence-svg-iconset,
  body.single-post
    nav.post-navigation
    .post-navigation-sub
    .kadence-svg-iconset {
    position: static !important;
    display: inline-block !important;
    width: 17px !important;
    min-width: 17px !important;
    height: 17px !important;
    margin: 0 !important;
    transform: none !important;
  }

  body.single-post .post-navigation .post-navigation-title,
  body.single-post nav.post-navigation .post-navigation-title {
    position: static !important;
    display: block !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: visible !important;
    color: var(--mh-ink) !important;
    font-size: 17px !important;
    font-weight: 670 !important;
    letter-spacing: -0.012em !important;
    line-height: 1.43 !important;
    text-align: left !important;
    white-space: normal !important;
    overflow-wrap: anywhere !important;
    word-break: normal !important;
    transform: none !important;
    writing-mode: horizontal-tb !important;
  }

  body.single-post .post-navigation .nav-next .post-navigation-sub {
    flex-direction: row-reverse !important;
    align-self: flex-end !important;
  }

  body.single-post .post-navigation .nav-next > a {
    align-items: flex-end !important;
  }

  body.single-post .post-navigation .nav-next .post-navigation-title {
    text-align: right !important;
  }
}

@media (max-width: 420px) {
  body #mobile-drawer.popup-drawer {
    --mh-mobile-drawer-width: min(92vw, 370px);
  }

  body #mobile-drawer.popup-drawer .drawer-content {
    padding-right: 14px !important;
    padding-left: 14px !important;
  }

  body #mobile-drawer .drawer-navigation ul li > a,
  body #mobile-drawer .mobile-navigation ul li > a {
    min-height: 50px;
    padding: 11px 14px !important;
    font-size: 16px !important;
  }

  body.single-post .post-navigation .nav-previous > a,
  body.single-post .post-navigation .nav-next > a {
    padding: 17px 17px 18px !important;
    border-radius: 16px !important;
  }

  body.single-post .post-navigation .post-navigation-title {
    font-size: 16px !important;
  }
}

/* ======================================================================
   [23] MOBILNÍ NAVIGACE PŘEDCHOZÍ / DALŠÍ
   ====================================================================== */

@media (max-width: 760px) {
  body.single-post nav.navigation.post-navigation {
    box-sizing: border-box !important;
    position: relative !important;
    inset: auto !important;
    display: block !important;
    clear: both !important;
    width: calc(100% - 32px) !important;
    max-width: 940px !important;
    height: auto !important;
    margin: 0 auto 38px !important;
    padding: 0 !important;
    overflow: visible !important;
    float: none !important;
    transform: none !important;
  }

  body.single-post nav.navigation.post-navigation > .nav-links {
    box-sizing: border-box !important;
    position: static !important;
    display: grid !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    height: auto !important;
    grid-template-columns: minmax(0, 1fr) !important;
    grid-auto-columns: minmax(0, 1fr) !important;
    grid-auto-flow: row !important;
    gap: 14px !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: visible !important;
    transform: none !important;
  }

  body.single-post nav.navigation.post-navigation > .nav-links > .nav-previous,
  body.single-post nav.navigation.post-navigation > .nav-links > .nav-next {
    box-sizing: border-box !important;
    position: static !important;
    inset: auto !important;
    display: block !important;
    grid-column: 1 / -1 !important;
    grid-row: auto !important;
    align-self: stretch !important;
    justify-self: stretch !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: visible !important;
    float: none !important;
    flex: none !important;
    transform: none !important;
    writing-mode: horizontal-tb !important;
  }

  body.single-post
    nav.navigation.post-navigation
    > .nav-links
    > .nav-previous
    > a,
  body.single-post nav.navigation.post-navigation > .nav-links > .nav-next > a {
    box-sizing: border-box !important;
    position: static !important;
    inset: auto !important;
    display: block !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    min-height: 0 !important;
    height: auto !important;
    margin: 0 !important;
    padding: 18px 19px 20px !important;
    overflow: hidden !important;
    border: 1px solid var(--mh-border) !important;
    border-radius: 18px !important;
    color: var(--mh-ink) !important;
    background:
      radial-gradient(
        circle at 100% 0%,
        rgba(7, 106, 159, 0.07),
        transparent 36%
      ),
      rgba(255, 255, 255, 0.9) !important;
    font-size: 17px !important;
    font-weight: 670 !important;
    letter-spacing: -0.012em !important;
    line-height: 1.43 !important;
    text-align: left !important;
    text-decoration: none !important;
    white-space: normal !important;
    overflow-wrap: anywhere !important;
    word-break: normal !important;
    box-shadow: 0 12px 28px rgba(16, 50, 77, 0.07) !important;
    transform: none !important;
    writing-mode: horizontal-tb !important;
  }

  body.single-post
    nav.navigation.post-navigation
    > .nav-links
    > .nav-previous
    > a:hover,
  body.single-post
    nav.navigation.post-navigation
    > .nav-links
    > .nav-next
    > a:hover,
  body.single-post
    nav.navigation.post-navigation
    > .nav-links
    > .nav-previous
    > a:focus-visible,
  body.single-post
    nav.navigation.post-navigation
    > .nav-links
    > .nav-next
    > a:focus-visible {
    transform: translateY(-1px) !important;
    border-color: rgba(7, 106, 159, 0.34) !important;
    background-color: #ffffff !important;
    box-shadow: 0 15px 34px rgba(16, 50, 77, 0.11) !important;
  }

  body.single-post nav.navigation.post-navigation .post-navigation-sub {
    box-sizing: border-box !important;
    position: static !important;
    inset: auto !important;
    display: block !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    height: auto !important;
    margin: 0 0 9px !important;
    padding: 0 !important;
    overflow: visible !important;
    border: 0 !important;
    color: var(--mh-blue) !important;
    background: transparent !important;
    font-size: 11px !important;
    font-weight: 760 !important;
    letter-spacing: 0.105em !important;
    line-height: 1.3 !important;
    text-align: left !important;
    text-transform: uppercase !important;
    white-space: normal !important;
    box-shadow: none !important;
    transform: none !important;
    writing-mode: horizontal-tb !important;
  }

  body.single-post nav.navigation.post-navigation .post-navigation-sub small {
    box-sizing: border-box !important;
    position: static !important;
    display: flex !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    height: auto !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 7px !important;
    margin: 0 !important;
    padding: 0 !important;
    color: inherit !important;
    background: transparent !important;
    font: inherit !important;
    line-height: inherit !important;
    text-align: left !important;
    white-space: normal !important;
    transform: none !important;
    writing-mode: horizontal-tb !important;
  }

  body.single-post
    nav.navigation.post-navigation
    .nav-next
    .post-navigation-sub
    small {
    flex-direction: row !important;
    justify-content: flex-start !important;
  }

  body.single-post
    nav.navigation.post-navigation
    .post-navigation-sub
    .kadence-svg-iconset {
    position: static !important;
    display: inline-flex !important;
    width: 17px !important;
    min-width: 17px !important;
    height: 17px !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 !important;
    padding: 0 !important;
    transform: none !important;
  }

  body.single-post nav.navigation.post-navigation .post-navigation-sub svg {
    display: block !important;
    width: 17px !important;
    min-width: 17px !important;
    height: 17px !important;
    margin: 0 !important;
    transform: none !important;
  }
}

@media (max-width: 420px) {
  body.single-post nav.navigation.post-navigation {
    width: calc(100% - 28px) !important;
  }

  body.single-post
    nav.navigation.post-navigation
    > .nav-links
    > .nav-previous
    > a,
  body.single-post nav.navigation.post-navigation > .nav-links > .nav-next > a {
    padding: 17px 17px 18px !important;
    border-radius: 16px !important;
    font-size: 16px !important;
  }
}

/* ======================================================================
   [24] DETAIL ČLÁNKU – FINÁLNÍ POŘADÍ A ZAROVNÁNÍ
   ====================================================================== */

/* --- Rozbalení hlavního článku do jednoho sloupce --- */

body.single-post:not(:has(.mh-article-page)) .content-wrap {
  position: relative !important;
  display: flex !important;
  width: 100% !important;
  max-width: none !important;
  flex-direction: column !important;
  align-items: stretch !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: visible !important;
  grid-template-columns: none !important;
}

body.single-post:not(:has(.mh-article-page))
  .content-wrap
  > article.single-entry,
body.single-post:not(:has(.mh-article-page))
  .content-wrap
  > article.single-entry
  > .entry-content-wrap {
  display: contents !important;
}

body.single-post:not(:has(.mh-article-page))
  .content-wrap
  > .post-thumbnail.article-post-thumbnail {
  order: 2 !important;
}

body.single-post:not(:has(.mh-article-page))
  .content-wrap
  > article.single-entry
  > .entry-content-wrap
  > .entry-footer {
  order: 4 !important;
}

body.single-post:not(:has(.mh-article-page))
  .content-wrap
  > nav.post-navigation {
  order: 5 !important;
}

body.single-post:not(:has(.mh-article-page)) .content-wrap > .entry-related {
  order: 6 !important;
}

/* --- Pevné pořadí prvků --- */

body.single-post:not(:has(.mh-article-page))
  .content-wrap
  > .post-thumbnail.article-post-thumbnail,
body.single-post:not(:has(.mh-article-page))
  .content-wrap
  > .post-thumbnail.article-post-thumbnail.alignwide,
body.single-post:not(:has(.mh-article-page))
  .content-wrap
  > .post-thumbnail.article-post-thumbnail.kadence-thumbnail-position-behind {
  position: relative !important;
  inset: auto !important;
  z-index: 0 !important;
  display: block !important;
  float: none !important;
  clear: both !important;
  width: min(var(--mh-article-media-width), calc(100% - 64px)) !important;
  max-width: var(--mh-article-media-width) !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  margin: clamp(32px, 3.5vw, 42px) auto 0 var(--mh-article-left-edge) !important;
  padding: 0 !important;
  overflow: hidden !important;
  border: 1px solid rgba(8, 35, 62, 0.1) !important;
  border-radius: 18px !important;
  background: var(--mh-white) !important;
  background-image: none !important;
  box-shadow:
    0 1px 2px rgba(8, 35, 62, 0.04),
    0 16px 38px rgba(16, 50, 77, 0.085) !important;
  opacity: 1 !important;
  transform: none !important;
  aspect-ratio: auto !important;
}

body.single-post:not(:has(.mh-article-page))
  .content-wrap
  > .post-thumbnail.article-post-thumbnail::before,
body.single-post:not(:has(.mh-article-page))
  .content-wrap
  > .post-thumbnail.article-post-thumbnail::after {
  display: none !important;
  content: none !important;
}

/* --- Hlavní náhledový obrázek --- */

body.single-post:not(:has(.mh-article-page))
  .content-wrap
  > .post-thumbnail.article-post-thumbnail
  > a,
body.single-post:not(:has(.mh-article-page))
  .content-wrap
  > .post-thumbnail.article-post-thumbnail
  > figure,
body.single-post:not(:has(.mh-article-page))
  .content-wrap
  > .post-thumbnail.article-post-thumbnail
  > .post-thumbnail-inner,
body.single-post:not(:has(.mh-article-page))
  .content-wrap
  > .post-thumbnail.article-post-thumbnail
  .post-thumbnail-inner {
  position: static !important;
  inset: auto !important;
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  margin: 0 !important;
  padding: 0 !important;
  padding-bottom: 0 !important;
  overflow: visible !important;
  transform: none !important;
  aspect-ratio: auto !important;
}

body.single-post:not(:has(.mh-article-page))
  .content-wrap
  > .post-thumbnail.article-post-thumbnail
  img,
body.single-post:not(:has(.mh-article-page))
  .content-wrap
  > .post-thumbnail.article-post-thumbnail
  img.wp-post-image {
  position: static !important;
  inset: auto !important;
  z-index: auto !important;
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  opacity: 1 !important;
  object-fit: contain !important;
  object-position: center !important;
  transform: none !important;
  aspect-ratio: auto !important;
}

/* --- Zrušení překryvné varianty obrázku --- */

body.single-post:not(:has(.mh-article-page))
  .content-wrap
  > .post-thumbnail.kadence-thumbnail-position-behind
  + article.single-entry {
  position: static !important;
  inset: auto !important;
  z-index: auto !important;
  margin: 0 !important;
  padding: 0 !important;
  transform: none !important;
}

/* --- Hlavička a text článku --- */

body.single-post:not(:has(.mh-article-page))
  .content-wrap
  > article.single-entry
  > .entry-content-wrap
  > .entry-header {
  order: 1 !important;
  position: relative !important;
  inset: auto !important;
  z-index: 1 !important;
  display: block !important;
  width: min(var(--mh-article-width), calc(100% - 64px)) !important;
  max-width: var(--mh-article-width) !important;
  margin: 0 auto !important;
  transform: none !important;
}

body.single-post:not(:has(.mh-article-page))
  .content-wrap
  > article.single-entry
  > .entry-content-wrap
  > .entry-content {
  order: 3 !important;
  position: relative !important;
  inset: auto !important;
  z-index: 1 !important;
  display: block !important;
  clear: both !important;
  width: min(var(--mh-article-width), calc(100% - 64px)) !important;
  max-width: var(--mh-article-width) !important;
  margin: 0 auto !important;
  padding: clamp(34px, 4vw, 44px) 0 clamp(50px, 6vw, 68px) !important;
  background: transparent !important;
  transform: none !important;
}

body.single-post:not(:has(.mh-article-page))
  .content-wrap
  > article.single-entry
  > .entry-content-wrap
  > .entry-content
  > :first-child,
body.single-post:not(:has(.mh-article-page))
  .content-wrap
  > article.single-entry
  > .entry-content-wrap
  > .entry-content
  > .mh-article-content
  > :first-child {
  margin-top: 0 !important;
  transform: none !important;
}

body.single-post
  .single-entry
  > .entry-content-wrap
  > .entry-header
  .entry-title,
body.single-post
  .single-entry
  > .entry-content-wrap
  > .entry-header
  h1.entry-title,
body.single-post .mh-article-page .mh-page-title {
  overflow: visible !important;
  overflow-wrap: normal !important;
  word-break: normal !important;
  hyphens: none !important;
}

body.single-post
  .single-entry
  > .entry-content-wrap
  > .entry-header
  .entry-title {
  max-width: 900px !important;
}

/* --- Kompatibilita se starší šablonou článků --- */

body.single-post:has(.mh-article-page)
  .content-wrap
  > .post-thumbnail.article-post-thumbnail,
body.single-post:has(.mh-article-page)
  .content-container
  > .post-thumbnail.article-post-thumbnail,
body.single-post:has(.mh-article-page)
  .site-main
  > .post-thumbnail.article-post-thumbnail {
  display: none !important;
}

body.single-post .mh-article-page .mh-article-section {
  padding-top: clamp(34px, 4vw, 46px);
  padding-bottom: clamp(54px, 6vw, 72px);
}

body.single-post .mh-article-page .mh-article-section .mh-article-featured {
  box-sizing: border-box;
  display: block;
  clear: both;
  width: min(var(--mh-article-media-width), calc(100vw - 64px));
  max-width: var(--mh-article-media-width);
  margin: 0 0 clamp(34px, 4vw, 42px);
  padding: 0;
  transform: none;
}

body.single-post
  .mh-article-page
  .mh-article-section
  .mh-article-featured__media {
  position: relative;
  box-sizing: border-box;
  width: 100%;
  height: auto;
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(8, 35, 62, 0.1);
  border-radius: 18px;
  background: var(--mh-white);
  box-shadow:
    0 1px 2px rgba(8, 35, 62, 0.04),
    0 16px 38px rgba(16, 50, 77, 0.085);
}

body.single-post
  .mh-article-page
  .mh-article-section
  .mh-article-featured__image {
  position: static !important;
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  object-fit: contain !important;
  object-position: center !important;
  transform: none !important;
  aspect-ratio: auto !important;
}

body.single-post
  .mh-article-page
  .mh-article-section
  .mh-article-featured__caption {
  box-sizing: border-box;
  width: 100%;
  margin: 0;
  padding: 11px 15px 13px;
  border-top: 1px solid rgba(8, 35, 62, 0.08);
  color: var(--mh-muted);
  background: rgba(255, 255, 255, 0.98);
  font-family: var(--mh-sans);
  font-size: 13px;
  line-height: 1.5;
  text-align: left;
}

/* --- Tablet --- */

@media (max-width: 980px) {
  body.single-post:not(:has(.mh-article-page))
    .content-wrap
    > .post-thumbnail.article-post-thumbnail {
    width: min(calc(100% - 44px), var(--mh-article-media-width)) !important;
    max-width: var(--mh-article-media-width) !important;
    margin-right: auto !important;
    margin-left: 22px !important;
  }

  body.single-post:not(:has(.mh-article-page))
    .content-wrap
    > article.single-entry
    > .entry-content-wrap
    > .entry-header,
  body.single-post:not(:has(.mh-article-page))
    .content-wrap
    > article.single-entry
    > .entry-content-wrap
    > .entry-content {
    width: min(calc(100% - 44px), var(--mh-article-width)) !important;
  }

  body.single-post .mh-article-page .mh-article-section .mh-article-featured {
    width: min(calc(100vw - 44px), var(--mh-article-media-width));
    max-width: var(--mh-article-media-width);
  }
}

/* --- Mobil --- */

@media (max-width: 700px) {
  body.single-post:not(:has(.mh-article-page))
    .content-wrap
    > .post-thumbnail.article-post-thumbnail,
  body.single-post:not(:has(.mh-article-page))
    .content-wrap
    > article.single-entry
    > .entry-content-wrap
    > .entry-header,
  body.single-post:not(:has(.mh-article-page))
    .content-wrap
    > article.single-entry
    > .entry-content-wrap
    > .entry-content {
    width: calc(100% - 32px) !important;
  }

  body.single-post:not(:has(.mh-article-page))
    .content-wrap
    > .post-thumbnail.article-post-thumbnail {
    max-width: none !important;
    margin-top: 24px !important;
    margin-right: auto !important;
    margin-left: 16px !important;
    border-radius: 13px !important;
  }

  body.single-post:not(:has(.mh-article-page))
    .content-wrap
    > article.single-entry
    > .entry-content-wrap
    > .entry-content {
    padding-top: 28px !important;
    padding-bottom: 48px !important;
  }

  body.single-post .mh-article-page .mh-article-section {
    padding-top: 26px;
    padding-bottom: 48px;
  }

  body.single-post .mh-article-page .mh-article-section .mh-article-featured {
    width: calc(100vw - 32px);
    max-width: none;
    margin-bottom: 28px;
  }

  body.single-post
    .mh-article-page
    .mh-article-section
    .mh-article-featured__media {
    border-radius: 13px;
    box-shadow:
      0 1px 2px rgba(8, 35, 62, 0.035),
      0 10px 25px rgba(16, 50, 77, 0.075);
  }

  body.single-post
    .mh-article-page
    .mh-article-section
    .mh-article-featured__caption {
    padding: 9px 12px 11px;
    font-size: 12px;
  }
}

/* --- Malé mobily --- */

@media (max-width: 420px) {
  body.single-post:not(:has(.mh-article-page))
    .content-wrap
    > .post-thumbnail.article-post-thumbnail,
  body.single-post:not(:has(.mh-article-page))
    .content-wrap
    > article.single-entry
    > .entry-content-wrap
    > .entry-header,
  body.single-post:not(:has(.mh-article-page))
    .content-wrap
    > article.single-entry
    > .entry-content-wrap
    > .entry-content {
    width: calc(100% - 24px) !important;
  }

  body.single-post:not(:has(.mh-article-page))
    .content-wrap
    > .post-thumbnail.article-post-thumbnail {
    margin-left: 12px !important;
    border-radius: 11px !important;
  }

  body.single-post .mh-article-page .mh-article-section .mh-article-featured {
    width: calc(100vw - 24px);
    max-width: calc(100vw - 24px);
  }
}

/* ======================================================================
   [25] PRÁVNÍ STRÁNKY
   Ochrana osobních údajů / Privacy Policy a dokument Complianz.
   Pravidla jsou záměrně omezena pouze na právní stránky.
   ====================================================================== */

body.privacy-policy,
body:has(.cmplz-document) {
  color: var(--mh-ink);
  background: var(--mh-background);
}

body.privacy-policy .content-area,
body:has(.cmplz-document) .content-area {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  padding-top: 0 !important;
}

body.privacy-policy #primary,
body:has(.cmplz-document) #primary {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: clamp(38px, 5vw, 62px) 0 clamp(56px, 7vw, 82px) !important;
}

body.privacy-policy .content-wrap,
body:has(.cmplz-document) .content-wrap {
  display: block !important;
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

body.privacy-policy .single-entry,
body:has(.cmplz-document) .single-entry {
  width: min(var(--mh-article-width), calc(100% - 64px)) !important;
  max-width: var(--mh-article-width) !important;
  margin: 0 auto !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

/*
 * Kadence ponechává u právních stránek prázdný obal titulku a samotné H1
 * do HTML nevypisuje. Viditelný název proto doplníme podle typu stránky
 * a jazyka přímo před obsah článku.
 */
body.privacy-policy .single-entry::before,
body:has(.cmplz-document) .single-entry::before {
  display: block;
  max-width: 18ch;
  margin: 0 0 clamp(30px, 4vw, 42px);
  color: var(--mh-ink);
  font-family: var(--mh-serif);
  font-size: clamp(2.6rem, 5vw, 4rem);
  font-weight: 400;
  letter-spacing: -0.042em;
  line-height: 1.04;
  text-wrap: balance;
}

html[lang^="cs"] body.privacy-policy .single-entry::before {
  content: "Ochrana osobních údajů";
}

html[lang^="en"] body.privacy-policy .single-entry::before {
  content: "Privacy Policy";
}

html[lang^="cs"] body:has(.cmplz-document) .single-entry::before {
  content: "Zásady cookies (EU)";
}

html[lang^="en"] body:has(.cmplz-document) .single-entry::before {
  content: "Cookie Policy";
}

body.privacy-policy .entry-content-wrap,
body:has(.cmplz-document) .entry-content-wrap,
body.privacy-policy .entry-content,
body:has(.cmplz-document) .entry-content {
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
}

body.privacy-policy .entry-hero,
body:has(.cmplz-document) .entry-hero {
  display: none !important;
}

body.privacy-policy .entry-header,
body:has(.cmplz-document) .entry-header {
  display: block !important;
  width: 100% !important;
  max-width: none !important;
  margin: 0 0 clamp(30px, 4vw, 42px) !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
}

body.privacy-policy .entry-header .entry-title,
body:has(.cmplz-document) .entry-header .entry-title {
  display: block !important;
  max-width: 18ch;
  margin: 0 !important;
  color: var(--mh-ink);
  font-family: var(--mh-serif);
  font-size: clamp(2.6rem, 5vw, 4rem);
  font-weight: 400;
  letter-spacing: -0.042em;
  line-height: 1.04;
  text-wrap: balance;
}

body.privacy-policy .entry-header .entry-meta,
body:has(.cmplz-document) .entry-header .entry-meta {
  display: none !important;
}

body.privacy-policy .entry-content,
body:has(.cmplz-document) .entry-content,
body:has(.cmplz-document) .cmplz-document {
  color: var(--mh-ink-soft);
  font-family: var(--mh-sans);
  font-size: 18px;
  font-weight: 400;
  line-height: 1.72;
}

body.privacy-policy .entry-content > h1:first-child,
body.privacy-policy .entry-content > h1.wp-block-heading:first-child,
body:has(.cmplz-document) .cmplz-document > h1:first-child {
  max-width: 18ch;
  margin: 0 0 clamp(30px, 4vw, 42px) !important;
  color: var(--mh-ink);
  font-family: var(--mh-serif);
  font-size: clamp(2.6rem, 5vw, 4rem);
  font-weight: 400;
  letter-spacing: -0.042em;
  line-height: 1.04;
  text-wrap: balance;
}

body.privacy-policy .entry-content h2,
body:has(.cmplz-document) .cmplz-document h2 {
  margin: clamp(38px, 5vw, 52px) 0 16px;
  color: var(--mh-ink);
  font-family: var(--mh-serif);
  font-size: clamp(1.85rem, 3.2vw, 2.35rem);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.12;
}

body.privacy-policy .entry-content h2::after,
body:has(.cmplz-document) .cmplz-document h2::after {
  display: block;
  width: 30px;
  height: 2px;
  margin-top: 11px;
  border-radius: 999px;
  background: var(--mh-blue);
  content: "";
}

body.privacy-policy .entry-content h3,
body #cmplz-document > h3 {
  margin: 30px 0 12px;
  color: var(--mh-ink);
  font-family: var(--mh-sans);
  font-size: 1.18rem !important;
  font-weight: 500 !important;
  letter-spacing: -0.01em;
  line-height: 1.4;
}

body.privacy-policy .entry-content p,
body:has(.cmplz-document) .cmplz-document p {
  max-width: var(--mh-reading-width);
  margin: 0 0 19px;
  color: var(--mh-ink-soft);
  text-wrap: pretty;
}

body.privacy-policy .entry-content ul,
body.privacy-policy .entry-content ol,
body:has(.cmplz-document) .cmplz-document ul,
body:has(.cmplz-document) .cmplz-document ol {
  max-width: var(--mh-reading-width);
  margin: 20px 0 28px;
  padding-left: 1.35em;
}

body.privacy-policy .entry-content li,
body:has(.cmplz-document) .cmplz-document li {
  margin-bottom: 9px;
  padding-left: 4px;
  color: var(--mh-ink-soft);
}

body.privacy-policy .entry-content a,
body:has(.cmplz-document) .cmplz-document a {
  color: var(--mh-blue-dark);
  text-decoration-color: rgba(7, 106, 159, 0.34);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

body.privacy-policy .entry-content a:hover,
body:has(.cmplz-document) .cmplz-document a:hover {
  color: var(--mh-blue);
  text-decoration-color: currentColor;
}

body:has(.cmplz-document) .cmplz-document {
  width: 100%;
  max-width: none;
}

/* --- Complianz: rozbalovací seznam služeb --- */

body #cmplz-document details.cmplz-dropdown {
  margin: 14px 0;
  overflow: hidden;
  border: 1px solid var(--mh-border);
  border-radius: 11px;
  background: var(--mh-white);
  box-shadow: 0 2px 5px rgba(8, 35, 62, 0.04);
}

body #cmplz-document details.cmplz-dropdown[open] {
  border-color: var(--mh-border-strong);
  box-shadow: 0 10px 28px rgba(16, 50, 77, 0.08);
}

body #cmplz-document .cmplz-service-header {
  position: relative;
  display: block;
  padding: 18px 54px 18px 21px;
  color: var(--mh-ink);
  background: rgba(247, 251, 253, 0.92);
  cursor: pointer;
  list-style: none;
  transition: background-color 160ms ease;
}

body #cmplz-document .cmplz-service-header::-webkit-details-marker {
  display: none;
}

body #cmplz-document .cmplz-service-header::marker {
  content: "";
}

body #cmplz-document .cmplz-service-header:hover {
  background: #edf5fa;
}

body #cmplz-document .cmplz-service-header:focus-visible {
  outline: 3px solid rgba(7, 106, 159, 0.22);
  outline-offset: -3px;
}

/*
 * Complianz vytváří vlastní šipku na vnitřním divu hlavičky.
 * Pseudo-prvek summary proto vypínáme, aby se nezobrazovaly dvě šipky.
 */
body #cmplz-document .cmplz-service-header::before,
body #cmplz-document .cmplz-service-header::after {
  display: none !important;
  content: none !important;
}

body #cmplz-document .cmplz-service-header > div {
  width: 100%;
}

body #cmplz-document .cmplz-service-header > div::before {
  display: none !important;
  content: none !important;
}

body #cmplz-document .cmplz-service-header > div::after {
  width: 9px !important;
  height: 9px !important;
  margin: 0 5px 0 0 !important;
  justify-self: end;
  border: 0 !important;
  border-right: 2px solid var(--mh-muted) !important;
  border-bottom: 2px solid var(--mh-muted) !important;
  background: none !important;
  content: "" !important;
  transform: translateY(-2px) rotate(45deg) !important;
  transition: transform 180ms ease !important;
}

body #cmplz-document details[open] > .cmplz-service-header > div::after {
  transform: translateY(2px) rotate(225deg) !important;
}

/*
 * Complianz používá ve výchozím stylu výrazné řezy.
 * Záměrně necháváme jen mírně zvýrazněný název služby.
 */
body #cmplz-document .cmplz-service-header,
body #cmplz-document .cmplz-service-header * {
  font-weight: 400 !important;
}

body #cmplz-document .cmplz-service-header > div > h3 {
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  color: var(--mh-ink);
  font-family: var(--mh-sans) !important;
  font-size: 0.95rem !important;
  font-weight: 400 !important;
  font-style: normal !important;
  letter-spacing: 0 !important;
  line-height: 1.4 !important;
  text-transform: none !important;
}

body #cmplz-document .cmplz-service-header > div > p {
  max-width: none;
  margin: 0 !important;
  padding: 0 !important;
  color: var(--mh-muted);
  font-family: var(--mh-sans) !important;
  font-size: 0.9rem !important;
  font-weight: 400 !important;
  line-height: 1.45 !important;
}

body #cmplz-document .cmplz-service-description,
body #cmplz-document .cmplz-sharing-data {
  padding-right: 21px;
  padding-left: 21px;
}

body #cmplz-document .cmplz-service-description {
  padding-top: 20px;
}

body #cmplz-document .cmplz-sharing-data {
  padding-bottom: 4px;
}

body #cmplz-document .cmplz-service-description h4,
body #cmplz-document .cmplz-sharing-data h4 {
  margin: 0 0 6px;
  color: var(--mh-ink);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.4;
}

body #cmplz-document .cmplz-service-description p,
body #cmplz-document .cmplz-sharing-data p {
  max-width: var(--mh-reading-width);
  margin-bottom: 18px;
  font-size: 1rem;
  line-height: 1.65;
}

/* --- Complianz: přehled jednotlivých cookies --- */

body #cmplz-document .cookies-per-purpose {
  display: grid;
  grid-template-columns:
    max-content minmax(130px, 1.1fr)
    max-content minmax(95px, 0.72fr)
    max-content minmax(170px, 1.45fr);
  margin-top: 8px;
  border-top: 1px solid var(--mh-border);
  background: var(--mh-white);
}

body #cmplz-document .cookies-per-purpose > div {
  min-width: 0;
  padding: 12px 13px;
  border-bottom: 1px solid var(--mh-border);
  overflow-wrap: anywhere;
}

body #cmplz-document .cookies-per-purpose .purpose {
  grid-column: 1 / -1;
  padding: 13px 21px;
  background: rgba(237, 245, 250, 0.9);
}

body #cmplz-document .cookies-per-purpose .purpose h4 {
  margin: 0;
  color: var(--mh-ink);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.4;
}

body #cmplz-document .name-header,
body #cmplz-document .retention-header,
body #cmplz-document .function-header {
  color: var(--mh-muted);
  background: rgba(247, 251, 253, 0.9);
}

body #cmplz-document .name-header h5,
body #cmplz-document .retention-header h5,
body #cmplz-document .function-header h5 {
  margin: 0;
  color: inherit;
  font-size: 0.79rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 1.4;
  text-transform: uppercase;
}

body #cmplz-document .name,
body #cmplz-document .retention,
body #cmplz-document .function {
  color: var(--mh-ink-soft);
  font-size: 0.95rem;
  line-height: 1.55;
}

/* --- Complianz: tlačítko a technicky skrytý text --- */

body #cmplz-document .cmplz-manage-consent-container {
  margin: 25px 0 34px;
}

body #cmplz-document button,
body #cmplz-document .cmplz-manage-consent {
  min-height: 46px;
  padding: 12px 21px;
  border: 0;
  border-radius: 8px;
  color: var(--mh-white);
  background: var(--mh-blue);
  font-family: var(--mh-sans);
  font-size: 1rem;
  font-weight: 650;
  line-height: 1.3;
  cursor: pointer;
  transition:
    background-color 160ms ease,
    box-shadow 160ms ease;
}

body #cmplz-document button:hover,
body #cmplz-document .cmplz-manage-consent:hover {
  background: var(--mh-blue-dark);
}

body #cmplz-document button:focus-visible,
body #cmplz-document .cmplz-manage-consent:focus-visible {
  outline: 3px solid rgba(7, 106, 159, 0.25);
  outline-offset: 3px;
}

body #cmplz-document .screen-reader-text {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

@media (max-width: 700px) {
  body.privacy-policy #primary,
  body:has(.cmplz-document) #primary {
    padding-top: 30px !important;
    padding-bottom: 52px !important;
  }

  body.privacy-policy .single-entry,
  body:has(.cmplz-document) .single-entry {
    width: calc(100% - 32px) !important;
    max-width: none !important;
  }

  body.privacy-policy .entry-content,
  body:has(.cmplz-document) .entry-content,
  body:has(.cmplz-document) .cmplz-document {
    font-size: 17px;
    line-height: 1.7;
  }

  body.privacy-policy .entry-content > h1:first-child,
  body.privacy-policy .entry-content > h1.wp-block-heading:first-child,
  body:has(.cmplz-document) .cmplz-document > h1:first-child {
    margin-bottom: 28px !important;
    font-size: clamp(2.25rem, 11vw, 3.15rem);
  }

  body.privacy-policy .entry-header,
  body:has(.cmplz-document) .entry-header {
    margin-bottom: 28px !important;
  }

  body.privacy-policy .entry-header .entry-title,
  body:has(.cmplz-document) .entry-header .entry-title {
    font-size: clamp(2.25rem, 11vw, 3.15rem);
  }

  body.privacy-policy .single-entry::before,
  body:has(.cmplz-document) .single-entry::before {
    margin-bottom: 28px;
    font-size: clamp(2.25rem, 11vw, 3.15rem);
  }

  body #cmplz-document .cmplz-service-header {
    padding: 16px 45px 16px 17px;
  }

  body #cmplz-document .cmplz-service-header > div > h3 {
    font-size: 0.97rem !important;
    font-weight: 400 !important;
  }

  body #cmplz-document .cmplz-service-header > div > p {
    font-size: 0.91rem !important;
  }

  body #cmplz-document .cmplz-service-description,
  body #cmplz-document .cmplz-sharing-data {
    padding-right: 17px;
    padding-left: 17px;
  }

  body #cmplz-document .cookies-per-purpose {
    grid-template-columns: minmax(90px, max-content) minmax(0, 1fr);
  }

  body #cmplz-document .cookies-per-purpose .purpose {
    grid-column: 1 / -1;
    padding: 13px 17px;
  }

  body #cmplz-document .name-header,
  body #cmplz-document .retention-header,
  body #cmplz-document .function-header,
  body #cmplz-document .name,
  body #cmplz-document .retention,
  body #cmplz-document .function {
    font-size: 1rem;
  }
}

@media (max-width: 420px) {
  body.privacy-policy .single-entry,
  body:has(.cmplz-document) .single-entry {
    width: calc(100% - 24px) !important;
  }

  body.privacy-policy .entry-content,
  body:has(.cmplz-document) .entry-content,
  body:has(.cmplz-document) .cmplz-document {
    font-size: 16.5px;
  }

  body #cmplz-document details.cmplz-dropdown {
    border-radius: 9px;
  }

  body #cmplz-document .cmplz-service-header {
    padding-right: 42px;
    padding-left: 15px;
  }

  body #cmplz-document .cmplz-service-description,
  body #cmplz-document .cmplz-sharing-data {
    padding-right: 15px;
    padding-left: 15px;
  }
}

/* ======================================================================
   [26] COMPLIANZ – TYPOGRAFICKÁ PRIORITA
   Umístěno na konci souboru, aby pravidla nepřebilo CSS pluginu.
   ====================================================================== */

/* Podnadpisy 5.1, 5.2 atd. musí být zřetelně podřízené nadpisu 5. */
html body #cmplz-document h3:not(.cmplz-service-header h3),
html body #cmplz-document > h3 {
  margin: 27px 0 11px !important;
  color: var(--mh-ink) !important;
  font-family: var(--mh-sans) !important;
  font-size: 17px !important;
  font-weight: 400 !important;
  font-style: normal !important;
  letter-spacing: 0 !important;
  line-height: 1.45 !important;
  text-transform: none !important;
}

/* Přesný selektor podle HTML stránky Zásady cookies. */
html body #cmplz-document.cmplz-document > h3 {
  font-size: 17px !important;
  font-weight: 400 !important;
}

/*
 * Complianz používá v různých verzích mírně odlišnou vnitřní strukturu.
 * Selektory proto pokrývají přímé i vnořené H3 a jejich vnitřní prvky.
 */
html
  body
  #cmplz-document
  details.cmplz-dropdown
  > summary.cmplz-service-header
  h3,
html
  body
  #cmplz-document
  details.cmplz-dropdown
  > summary.cmplz-service-header
  h3
  *,
html body #cmplz-document details.cmplz-dropdown .cmplz-service-header h3,
html body #cmplz-document details.cmplz-dropdown .cmplz-service-header h3 * {
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  color: var(--mh-ink) !important;
  font-family: var(--mh-sans) !important;
  font-size: 14px !important;
  font-weight: 400 !important;
  font-style: normal !important;
  letter-spacing: 0 !important;
  line-height: 1.4 !important;
  text-transform: none !important;
}

/* Přesná cesta k názvu služby v aktuálním Complianz 7.5.1. */
html
  body
  #cmplz-document
  #cmplz-cookies-overview
  > details.cmplz-dropdown
  > summary.cmplz-service-header
  > div
  > h3 {
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  font-family: var(--mh-sans) !important;
  font-size: 14px !important;
  font-weight: 400 !important;
  line-height: 1.35 !important;
}

html
  body
  #cmplz-document
  details.cmplz-dropdown
  > summary.cmplz-service-header
  p,
html
  body
  #cmplz-document
  details.cmplz-dropdown
  > summary.cmplz-service-header
  p
  *,
html body #cmplz-document details.cmplz-dropdown .cmplz-service-header p,
html body #cmplz-document details.cmplz-dropdown .cmplz-service-header p * {
  margin: 0 !important;
  padding: 0 !important;
  color: var(--mh-muted) !important;
  font-family: var(--mh-sans) !important;
  font-size: 14px !important;
  font-weight: 400 !important;
  font-style: normal !important;
  letter-spacing: 0 !important;
  line-height: 1.45 !important;
  text-transform: none !important;
}

@media (max-width: 767px) {
  html body #cmplz-document h3:not(.cmplz-service-header h3),
  html body #cmplz-document > h3 {
    font-size: 16px !important;
  }

  html
    body
    #cmplz-document
    details.cmplz-dropdown
    > summary.cmplz-service-header
    h3,
  html
    body
    #cmplz-document
    details.cmplz-dropdown
    > summary.cmplz-service-header
    h3
    *,
  html body #cmplz-document details.cmplz-dropdown .cmplz-service-header h3,
  html body #cmplz-document details.cmplz-dropdown .cmplz-service-header h3 * {
    font-size: 14px !important;
  }

  html
    body
    #cmplz-document
    details.cmplz-dropdown
    > summary.cmplz-service-header
    p,
  html
    body
    #cmplz-document
    details.cmplz-dropdown
    > summary.cmplz-service-header
    p
    *,
  html body #cmplz-document details.cmplz-dropdown .cmplz-service-header p,
  html body #cmplz-document details.cmplz-dropdown .cmplz-service-header p * {
    font-size: 14px !important;
  }
}

/* ======================================================================
   [27] COMPLIANZ – KOMPAKTNÍ COOKIE BANNER
   Přesné třídy aktuálního Complianz; vzhled nezasahuje do funkce souhlasu.
   ====================================================================== */

html body .cmplz-cookiebanner,
html body .cmplz-cookiebanner.cmplz-show {
  box-sizing: border-box !important;
  grid-template-columns: minmax(0, 1fr) !important;
  width: min(460px, calc(100vw - 32px)) !important;
  min-width: 0 !important;
  max-width: 460px !important;
  padding: 20px 22px !important;
  gap: 12px !important;
  border: 1px solid rgba(24, 62, 86, 0.14) !important;
  border-radius: 12px !important;
  box-shadow: 0 14px 42px rgba(10, 35, 52, 0.2) !important;
  font-family: var(--mh-sans) !important;
  overflow-x: hidden !important;
}

html body .cmplz-cookiebanner .cmplz-header {
  grid-template-columns: minmax(0, 1fr) auto !important;
  gap: 8px !important;
}

html body .cmplz-cookiebanner .cmplz-title {
  margin: 0 !important;
  font-family: var(--mh-sans) !important;
  font-size: 18px !important;
  font-weight: 650 !important;
  line-height: 1.3 !important;
  letter-spacing: 0 !important;
}

html body .cmplz-cookiebanner .cmplz-message {
  margin: 0 !important;
  font-family: var(--mh-sans) !important;
  font-size: 14px !important;
  font-weight: 400 !important;
  line-height: 1.55 !important;
}

html body .cmplz-cookiebanner .cmplz-buttons {
  grid-template-columns: minmax(0, 1fr) !important;
  gap: 8px !important;
}

html body .cmplz-cookiebanner .cmplz-btn {
  box-sizing: border-box !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  min-height: 42px !important;
  padding: 9px 14px !important;
  border-radius: 7px !important;
  font-family: var(--mh-sans) !important;
  font-size: 14px !important;
  font-weight: 650 !important;
  line-height: 1.25 !important;
  white-space: normal !important;
}

html body .cmplz-cookiebanner .cmplz-links {
  gap: 8px 16px !important;
}

html body .cmplz-cookiebanner .cmplz-links a,
html body .cmplz-cookiebanner .cmplz-link {
  font-size: 12px !important;
  line-height: 1.4 !important;
}

html body .cmplz-cookiebanner .cmplz-close {
  width: 30px !important;
  height: 30px !important;
  min-width: 30px !important;
  min-height: 30px !important;
}

@media (max-width: 520px) {
  html body .cmplz-cookiebanner,
  html body .cmplz-cookiebanner.cmplz-show {
    width: calc(100vw - 20px) !important;
    max-width: none !important;
    padding: 14px !important;
    gap: 8px !important;
    border-radius: 10px !important;
  }

  html body .cmplz-cookiebanner .cmplz-title {
    font-size: 17px !important;
  }

  html body .cmplz-cookiebanner .cmplz-message {
    font-size: 13px !important;
    line-height: 1.45 !important;
  }

  html body .cmplz-cookiebanner .cmplz-btn {
    min-height: 40px !important;
    padding: 7px 12px !important;
    font-size: 13.5px !important;
  }

  html body .cmplz-cookiebanner .cmplz-links a,
  html body .cmplz-cookiebanner .cmplz-link {
    font-size: 11.5px !important;
  }
}

/* ======================================================================
   [28] COMPLIANZ – VNITŘNÍ ŠÍŘKA A ZALAMOVÁNÍ BANNERU
   Vnitřní prvky respektují obsahovou šířku kompaktního banneru.
   ====================================================================== */

html body .cmplz-cookiebanner .cmplz-header,
html body .cmplz-cookiebanner .cmplz-body,
html body .cmplz-cookiebanner .cmplz-message,
html body .cmplz-cookiebanner .cmplz-categories,
html body .cmplz-cookiebanner .cmplz-links,
html body .cmplz-cookiebanner .cmplz-divider,
html body .cmplz-cookiebanner .cmplz-buttons,
html body .cmplz-cookiebanner .cmplz-documents {
  box-sizing: border-box !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
}

html body .cmplz-cookiebanner .cmplz-body {
  grid-template-columns: minmax(0, 1fr) !important;
}

html body .cmplz-cookiebanner .cmplz-message,
html body .cmplz-cookiebanner .cmplz-message * {
  white-space: normal !important;
  overflow: visible !important;
  overflow-wrap: break-word !important;
  word-break: normal !important;
  text-overflow: clip !important;
}

html body .cmplz-cookiebanner .cmplz-links ul,
html body .cmplz-cookiebanner .cmplz-documents ul {
  box-sizing: border-box !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  flex-wrap: wrap !important;
}

/* ======================================================================
   [29] MOBIL – ZÁSADY COOKIES, OCHRANA ÚDAJŮ A BANNER
   Oprava rozložení podle kontroly na telefonu; desktop zůstává beze změny.
   ====================================================================== */

@media (max-width: 520px) {
  /* Přiměřená hierarchie právních stránek na úzkém displeji. */
  body.privacy-policy .entry-content > h1:first-child,
  body.privacy-policy .entry-content > h1.wp-block-heading:first-child,
  body.privacy-policy .entry-header .entry-title,
  body.privacy-policy .single-entry::before,
  body:has(.cmplz-document) .cmplz-document > h1:first-child,
  body:has(.cmplz-document) .entry-header .entry-title,
  body:has(.cmplz-document) .single-entry::before {
    font-size: 38px !important;
    line-height: 1.08 !important;
    letter-spacing: -0.035em !important;
  }

  body.privacy-policy .entry-content h2,
  body:has(.cmplz-document) .cmplz-document h2 {
    margin-top: 34px !important;
    font-size: 30px !important;
    line-height: 1.16 !important;
    letter-spacing: -0.025em !important;
  }

  /*
   * Název služby a popis jsou pod sebou; šipka má vlastní pravý sloupec.
   * Tím nevzniká úzký sloupec, který lámal Wordfence po písmenech.
   */
  html
    body
    #cmplz-document
    details.cmplz-dropdown
    > summary.cmplz-service-header
    > div {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) 24px !important;
    grid-template-rows: auto auto !important;
    column-gap: 10px !important;
    row-gap: 2px !important;
    align-items: center !important;
    width: 100% !important;
    min-width: 0 !important;
  }

  html
    body
    #cmplz-document
    details.cmplz-dropdown
    > summary.cmplz-service-header
    > div
    > h3 {
    grid-column: 1 !important;
    grid-row: 1 !important;
    min-width: 0 !important;
    white-space: normal !important;
    overflow-wrap: normal !important;
    word-break: normal !important;
  }

  html
    body
    #cmplz-document
    details.cmplz-dropdown
    > summary.cmplz-service-header
    > div
    > p {
    grid-column: 1 !important;
    grid-row: 2 !important;
    min-width: 0 !important;
    white-space: normal !important;
    overflow-wrap: normal !important;
    word-break: normal !important;
  }

  html
    body
    #cmplz-document
    details.cmplz-dropdown
    > summary.cmplz-service-header
    > div::after {
    grid-column: 2 !important;
    grid-row: 1 / span 2 !important;
    align-self: center !important;
    justify-self: center !important;
    margin: 0 !important;
  }
}

/* ======================================================================
   [30] MOBIL – KOMPAKTNĚJŠÍ ÚVODNÍ NADPIS
   ====================================================================== */

@media (max-width: 760px) {
  body .mh-home h1 {
    max-width: 20ch !important;
    font-size: clamp(2.1rem, 8.2vw, 2.75rem) !important;
    line-height: 1.05 !important;
    letter-spacing: -0.035em !important;
  }
}

/* ======================================================================
   [31] MOBIL – VYVÁŽENĚJŠÍ NADPIS STRÁNKY PROFIL
   Selektor odpovídá skutečné struktuře HTML: .mh-page.mh-profile.
   Ostatní vnitřní stránky používají obecná responzivní pravidla ze sekce [19].
   ====================================================================== */

@media (max-width: 760px) {
  body .mh-page.mh-profile .mh-page-hero .mh-page-title {
    max-width: 100% !important;
    margin-bottom: 18px !important;
    font-size: clamp(2.2rem, 10vw, 2.9rem) !important;
    line-height: 1.035 !important;
    letter-spacing: -0.042em !important;
  }
}

/* ======================================================================
   [32] COMPLIANZ – SPRÁVA SOUHLASU V ŘÁDKU PATIČKY
   Na počítači je odkaz ve stejném řádku jako e-mail a copyright.
   Na mobilu zůstává níže v samostatném řádku, aby se patička nepřeplnila.
   Ovládání není trvale přilepené k viewportu a nic nepřekrývá.
   ====================================================================== */

html body #cmplz-manage-consent {
  position: relative !important;
  z-index: 2;
  display: block !important;
  width: 100% !important;
  height: 0 !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
}

html body #cmplz-manage-consent .cmplz-manage-consent {
  position: absolute !important;
  right: auto !important;
  bottom: 29px !important;
  left: 50% !important;
  display: inline-flex !important;
  width: auto !important;
  min-width: 0 !important;
  height: auto !important;
  min-height: 0 !important;
  align-items: center;
  justify-content: center;
  margin: 0 !important;
  padding: 3px 7px !important;
  border: 0 !important;
  border-radius: 4px !important;
  background: transparent !important;
  color: #bfd0dc !important;
  box-shadow: none !important;
  font-family: var(--mh-sans) !important;
  font-size: 12px !important;
  font-weight: 540 !important;
  line-height: 1.35 !important;
  letter-spacing: 0 !important;
  text-decoration: underline !important;
  text-decoration-color: rgba(191, 208, 220, 0.55) !important;
  text-underline-offset: 3px;
  animation: none !important;
  transform: translateX(-50%) !important;
  opacity: 1;
  transition:
    color 160ms ease,
    background-color 160ms ease,
    text-decoration-color 160ms ease !important;
}

html body #cmplz-manage-consent .cmplz-manage-consent:hover,
html body #cmplz-manage-consent .cmplz-manage-consent:focus-visible {
  bottom: 29px !important;
  background: transparent !important;
  color: #91d8f4 !important;
  text-decoration: underline !important;
  text-decoration-color: #91d8f4 !important;
  transform: translateX(-50%) !important;
  opacity: 1;
  animation: none !important;
}

html body #cmplz-manage-consent .cmplz-manage-consent:focus-visible {
  outline: 2px solid #91d8f4 !important;
  outline-offset: 2px !important;
}

@media (max-width: 760px) {
  html body #cmplz-manage-consent .cmplz-manage-consent,
  html body #cmplz-manage-consent .cmplz-manage-consent:hover,
  html body #cmplz-manage-consent .cmplz-manage-consent:focus-visible {
    bottom: 7px !important;
  }
}

/* ======================================================================
   [33] VÝUKA / TEACHING – FINÁLNÍ MOBILNÍ DOLADĚNÍ
   Cíleno pouze na stránky s třídou .mh-teaching.
   Na 390 px mírně zmenšuje dlouhý hero nadpis a zkracuje odsazení
   tematických seznamů. Desktop a ostatní stránky zůstávají beze změny.
   ====================================================================== */

@media (max-width: 760px) {
  body .mh-page.mh-teaching .mh-page-hero .mh-page-title {
    max-width: 100% !important;
    margin-bottom: 18px !important;
    font-size: clamp(2.35rem, 10.8vw, 2.95rem) !important;
    line-height: 1.035 !important;
    letter-spacing: -0.042em !important;
  }

}

/* ======================================================================
   [35] PUBLIKACE V86 – POSTUPNÉ ZOBRAZENÍ A MOBILNÍ DETAILY
   ====================================================================== */

/* Vyhledávání i stránkování používají stejnou explicitní třídu.
   !important je záměrně kvůli .mh-publication { display: grid; }. */
.mh-publication--hidden {
  display: none !important;
}

.mh-publication-more-wrap {
  display: flex;
  justify-content: center;
  padding-top: 28px;
}

.mh-publication-more[hidden] {
  display: none !important;
}

.mh-publication-more {
  min-width: 230px;
  justify-content: center;
}

/* DOI se zobrazuje krátkým popisem; skutečné DOI zůstává v href,
   aria-label a ve vyhledávacím indexu. */
.mh-publications-page .mh-doi-link {
  font-weight: 650;
  overflow-wrap: normal;
  word-break: normal;
}

@media (max-width: 480px) {
  .mh-publications-page .mh-publication-tools {
    padding: 18px;
  }

  .mh-publications-page .mh-publication-search {
    flex-basis: 100%;
    max-width: none;
  }

  .mh-publications-page .mh-publication-more-wrap {
    padding-top: 22px;
  }

  .mh-publications-page .mh-publication-more {
    width: 100%;
    min-width: 0;
  }
}

/* ======================================================================
   [36] PROJEKTY / PROJECTS – FINÁLNÍ MOBILNÍ DOLADĚNÍ V88
   Cíleno pouze na stránky s třídou .mh-projects.
   ====================================================================== */

@media (max-width: 760px) {
  body .mh-page.mh-projects .mh-page-hero .mh-page-title {
    max-width: 100% !important;
    margin-bottom: 18px !important;
    font-size: clamp(2.35rem, 10.8vw, 2.9rem) !important;
    line-height: 1.035 !important;
    letter-spacing: -0.042em !important;
  }

}
/* ======================================================================
   [37] KONTAKT / CONTACT – V92
   Zkrácená kontaktní stránka: přímý kontakt je součástí hero,
   formulář je hned druhý obsahový blok, duplicitní čtyřkroková sekce
   byla odstraněna z HTML. QR je na mobilu skrytý.
   ====================================================================== */

.mh-contact-page .mh-page-hero-grid {
  align-items: start;
}

.mh-contact-page .mh-contact-hero-side {
  display: grid;
  gap: 14px;
  min-width: 0;
}

.mh-contact-page .mh-contact-hero-side .mh-facts {
  width: 100%;
}

.mh-contact-page .mh-contact-hero-side .mh-fact dd a {
  color: var(--mh-ink) !important;
  text-decoration-color: rgba(7, 106, 159, 0.28);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.mh-contact-page .mh-contact-hero-side .mh-fact dd a:hover {
  color: var(--mh-blue-dark) !important;
  text-decoration-color: currentColor;
}

.mh-contact-page .mh-contact-hero-button {
  width: 100%;
}

.mh-contact-page .mh-anchor-target {
  display: block;
  height: 0;
  scroll-margin-top: 92px;
}

.mh-contact-page .mh-contact-reference {
  padding-top: 48px;
}

.mh-contact-page .mh-contact-reference .mh-contact-card,
.mh-contact-page .mh-contact-reference .mh-profiles-card {
  height: 100%;
}

.mh-contact-page .mh-contact-reference .mh-contact-card > p:last-of-type {
  margin-bottom: 0;
}

.mh-contact-page .mh-contact-qr--desktop {
  margin-top: 24px;
}

@media (max-width: 760px) {
  .mh-contact-page .mh-page-hero {
    padding-top: 48px;
    padding-bottom: 34px;
  }

  .mh-contact-page .mh-page-hero-grid {
    gap: 26px;
  }

  .mh-contact-page .mh-page-title {
    max-width: 100%;
    margin-bottom: 18px;
    font-size: clamp(2.25rem, 10.4vw, 2.95rem);
    line-height: 1.035;
    letter-spacing: -0.043em;
  }

  .mh-contact-page .mh-page-lead {
    font-size: 17px;
    line-height: 1.66;
  }

  .mh-contact-page .mh-contact-hero-side {
    gap: 12px;
  }

  .mh-contact-page .mh-contact-hero-side .mh-facts {
    padding: 18px 20px;
  }

  .mh-contact-page .mh-contact-hero-side .mh-fact,
  .mh-contact-page .mh-contact-hero-side .mh-fact + .mh-fact {
    padding-bottom: 11px;
  }

  .mh-contact-page .mh-contact-hero-side .mh-fact + .mh-fact {
    padding-top: 11px;
  }

  .mh-contact-page .mh-contact-hero-side .mh-fact:last-child {
    padding-bottom: 0;
  }

  .mh-contact-page .mh-contact-hero-button {
    min-height: 48px;
  }

  .mh-contact-page #formular {
    padding-top: 38px;
  }

  .mh-contact-page .mh-form-section-heading {
    margin-bottom: 24px !important;
  }

  .mh-contact-page .mh-form-layout {
    gap: 18px;
  }

  .mh-contact-page .mh-form-guide-card {
    box-shadow: none;
  }

  /* V92 – větší odstup poznámkové bubliny od posledního bodu průvodce. */
  .mh-contact-page .mh-form-guide-note {
    margin-top: 30px;
  }

  .mh-contact-page .mh-contact-reference {
    padding-top: 40px;
  }

  .mh-contact-page .mh-contact-qr--desktop {
    display: none;
  }
}

@media (max-width: 420px) {
  .mh-contact-page .mh-page-hero {
    padding-top: 44px;
  }

  .mh-contact-page .mh-page-title {
    font-size: 2.25rem;
  }

  .mh-contact-page .mh-contact-hero-side .mh-facts {
    padding: 17px 18px;
  }
}

/* ======================================================================
   [38] PŘEDNÁŠKY – DETAIL VEŘEJNÉ PŘEDNÁŠKY V98
   Custom post type: prednaska
   Metadata generuje PHP snippet do .mh-lecture-meta.
   Pravidla jsou izolována od běžných příspěvků a statických stránek.
   ====================================================================== */

body.single-prednaska {
  --mh-lecture-width: 940px;
  overflow-x: clip;
  color: var(--mh-ink);
  background: var(--mh-background);
  font-family: var(--mh-sans);
}

body.single-prednaska .content-area {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  padding: clamp(44px, 5vw, 68px) 0 clamp(54px, 6vw, 78px);
}

body.single-prednaska #primary,
body.single-prednaska #main,
body.single-prednaska .content-container,
body.single-prednaska .content-wrap,
body.single-prednaska .site-main {
  width: 100% !important;
  max-width: none !important;
  min-width: 0 !important;
  margin: 0 !important;
}

body.single-prednaska .content-container,
body.single-prednaska .content-wrap {
  display: block !important;
  grid-template-columns: none !important;
}

body.single-prednaska article.single-entry,
body.single-prednaska .entry.single-entry {
  position: relative;
  width: min(var(--mh-lecture-width), calc(100% - 64px)) !important;
  max-width: var(--mh-lecture-width) !important;
  margin: 0 auto !important;
  overflow: hidden;
  border: 1px solid rgba(8, 35, 62, 0.10);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow:
    0 1px 2px rgba(8, 35, 62, 0.025),
    0 18px 46px rgba(16, 50, 77, 0.075);
}

body.single-prednaska article.single-entry::before,
body.single-prednaska .entry.single-entry::before {
  position: absolute;
  top: 0;
  left: 0;
  width: 72px;
  height: 3px;
  background: var(--mh-blue);
  content: "";
}

body.single-prednaska .entry-content-wrap {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

/* --- Titulek přednášky --- */

body.single-prednaska .entry-header {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: clamp(36px, 4.5vw, 48px) clamp(30px, 4.5vw, 46px) 0 !important;
  border: 0 !important;
  background: transparent !important;
}

body.single-prednaska .entry-header .entry-taxonomies,
body.single-prednaska .entry-header .entry-meta {
  display: none !important;
}

body.single-prednaska .entry-title,
body.single-prednaska h1.entry-title {
  max-width: 840px;
  margin: 0 !important;
  padding: 0;
  color: var(--mh-ink);
  font-family: var(--mh-serif);
  font-size: clamp(2.65rem, 4.6vw, 4rem);
  font-weight: 400;
  letter-spacing: -0.045em;
  line-height: 1.035;
  text-wrap: balance;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
}

/* --- Obsah --- */

body.single-prednaska .entry-content {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 clamp(30px, 4.5vw, 46px) clamp(38px, 5vw, 52px) !important;
  color: var(--mh-ink-soft);
  font-family: var(--mh-sans);
  font-size: 18px;
  line-height: 1.8;
}

body.single-prednaska .entry-content > :last-child {
  margin-bottom: 0;
}

body.single-prednaska .entry-content p {
  max-width: var(--mh-reading-width);
  margin: 0 0 21px;
  color: var(--mh-ink-soft);
  text-wrap: pretty;
}


body.single-prednaska .entry-content h2 {
  max-width: 28ch;
  margin: 44px 0 18px;
  color: var(--mh-ink);
  font-family: var(--mh-serif);
  font-size: clamp(2rem, 3vw, 2.65rem);
  font-weight: 400;
  letter-spacing: -0.035em;
  line-height: 1.08;
  text-wrap: balance;
}

body.single-prednaska .entry-content h2::after {
  display: block;
  width: 34px;
  height: 2px;
  margin-top: 13px;
  border-radius: 999px;
  background: var(--mh-blue);
  content: "";
}

body.single-prednaska .entry-content h3 {
  max-width: 38ch;
  margin: 31px 0 11px;
  color: var(--mh-ink);
  font-size: clamp(1.22rem, 1.8vw, 1.45rem);
  font-weight: 700;
  letter-spacing: -0.016em;
  line-height: 1.34;
}

body.single-prednaska .entry-content a:not(.mh-lecture-topic):not(.mh-lecture-button) {
  color: var(--mh-blue-dark);
  text-decoration-color: rgba(7, 106, 159, 0.34);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

body.single-prednaska .entry-content a:not(.mh-lecture-topic):not(.mh-lecture-button):hover {
  color: var(--mh-blue);
  text-decoration-color: currentColor;
}

/* --- Metadata přednášky --- */

body.single-prednaska .mh-lecture-meta {
  max-width: 840px;
  margin: 23px 0 29px;
  padding: 17px 0 20px;
  border-top: 1px solid var(--mh-border);
  border-bottom: 1px solid var(--mh-border);
}

body.single-prednaska .mh-lecture-facts {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px 8px;
  margin: 0 0 12px;
  color: var(--mh-muted);
  font-size: 15px;
  font-weight: 540;
  line-height: 1.45;
}

body.single-prednaska .mh-lecture-fact {
  display: inline;
}

body.single-prednaska .mh-lecture-separator {
  color: #8ea2b1;
  font-size: 0.88em;
  line-height: 1;
}

body.single-prednaska .mh-lecture-types,
body.single-prednaska .mh-lecture-topics {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

body.single-prednaska .mh-lecture-types {
  margin: 0 0 9px;
}

body.single-prednaska .mh-lecture-topics {
  margin: 0;
}

body.single-prednaska .mh-lecture-type,
body.single-prednaska .mh-lecture-topic {
  display: inline-flex;
  min-height: 31px;
  align-items: center;
  justify-content: center;
  padding: 6px 11px 7px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.1;
  text-align: center;
}

body.single-prednaska .mh-lecture-type {
  border: 1px solid var(--mh-ink);
  color: #fff;
  background: var(--mh-ink);
  letter-spacing: 0.025em;
}

body.single-prednaska .mh-lecture-topic {
  border: 1px solid rgba(7, 106, 159, 0.19);
  color: var(--mh-blue-dark) !important;
  background: rgba(7, 106, 159, 0.06);
  text-decoration: none !important;
  transition:
    color 160ms ease,
    border-color 160ms ease,
    background-color 160ms ease,
    transform 160ms ease;
}

body.single-prednaska .mh-lecture-topic:hover {
  transform: translateY(-1px);
  border-color: rgba(7, 106, 159, 0.38);
  color: var(--mh-ink) !important;
  background: rgba(7, 106, 159, 0.105);
}

body.single-prednaska .mh-lecture-topic:focus-visible {
  outline: 3px solid rgba(7, 106, 159, 0.28);
  outline-offset: 3px;
}

/* --- Video a prezentace --- */

body.single-prednaska .mh-lecture-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 19px 0 0;
}

body.single-prednaska .mh-lecture-button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 11px 17px;
  border: 1px solid var(--mh-blue);
  border-radius: 999px;
  color: #fff !important;
  background: var(--mh-blue);
  box-shadow: 0 9px 20px rgba(7, 106, 159, 0.14);
  font-size: 14px;
  font-weight: 680;
  line-height: 1.2;
  text-decoration: none !important;
  transition:
    transform 160ms ease,
    color 160ms ease,
    border-color 160ms ease,
    background-color 160ms ease,
    box-shadow 160ms ease;
}

body.single-prednaska .mh-lecture-button:hover {
  transform: translateY(-1px);
  border-color: var(--mh-blue-dark);
  background: var(--mh-blue-dark);
  box-shadow: 0 12px 24px rgba(7, 106, 159, 0.19);
}

body.single-prednaska .mh-lecture-button--secondary {
  border-color: rgba(8, 35, 62, 0.22);
  color: var(--mh-ink) !important;
  background: rgba(255, 255, 255, 0.8);
  box-shadow: none;
}

body.single-prednaska .mh-lecture-button--secondary:hover {
  border-color: rgba(7, 106, 159, 0.38);
  color: var(--mh-blue-dark) !important;
  background: rgba(7, 106, 159, 0.055);
  box-shadow: none;
}

body.single-prednaska .mh-lecture-button:focus-visible {
  outline: 3px solid rgba(7, 106, 159, 0.28);
  outline-offset: 4px;
}

/* --- Běžné prvky budoucích delších přednášek --- */

body.single-prednaska .entry-content ul,
body.single-prednaska .entry-content ol {
  max-width: var(--mh-reading-width);
  margin: 17px 0 24px;
  padding-left: 1.35rem;
}

body.single-prednaska .entry-content li {
  margin: 7px 0;
  padding-left: 3px;
}

body.single-prednaska .entry-content blockquote {
  max-width: var(--mh-reading-width);
  margin: 27px 0;
  padding: 18px 21px;
  border: 1px solid rgba(7, 106, 159, 0.14);
  border-left: 4px solid var(--mh-blue);
  border-radius: 0 14px 14px 0;
  color: var(--mh-ink-soft);
  background: rgba(247, 251, 253, 0.88);
}

body.single-prednaska .entry-content blockquote p:last-child {
  margin-bottom: 0;
}

body.single-prednaska .entry-content img {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: 15px;
}

body.single-prednaska .entry-content figure {
  max-width: 840px;
  margin: 32px 0;
}

body.single-prednaska .entry-content figcaption {
  max-width: var(--mh-reading-width);
  margin-top: 9px;
  color: var(--mh-muted);
  font-size: 14px;
  line-height: 1.55;
}

/* --- Tablet --- */

@media (max-width: 980px) {
  body.single-prednaska article.single-entry,
  body.single-prednaska .entry.single-entry {
    width: min(100% - 44px, var(--mh-lecture-width)) !important;
  }
}

/* --- Mobil --- */

@media (max-width: 700px) {
  body.single-prednaska .content-area {
    padding: 28px 0 45px;
  }

  body.single-prednaska article.single-entry,
  body.single-prednaska .entry.single-entry {
    width: calc(100% - 32px) !important;
    border-radius: 18px;
  }

  body.single-prednaska article.single-entry::before,
  body.single-prednaska .entry.single-entry::before {
    width: 50px;
  }

  body.single-prednaska .entry-header {
    padding: 31px 20px 0 !important;
  }

  body.single-prednaska .entry-title,
  body.single-prednaska h1.entry-title {
    font-size: clamp(2.25rem, 10.5vw, 3.05rem);
    letter-spacing: -0.04em;
    line-height: 1.035;
    text-wrap: pretty;
  }

  body.single-prednaska .entry-content {
    padding: 0 20px 33px !important;
    font-size: 17px;
    line-height: 1.76;
  }


  body.single-prednaska .mh-lecture-meta {
    margin-top: 19px;
    margin-bottom: 24px;
    padding-top: 15px;
    padding-bottom: 17px;
  }

  body.single-prednaska .mh-lecture-facts {
    gap: 5px 7px;
    margin-bottom: 11px;
    font-size: 14px;
  }

  body.single-prednaska .mh-lecture-types,
  body.single-prednaska .mh-lecture-topics {
    gap: 7px;
  }

  body.single-prednaska .mh-lecture-type,
  body.single-prednaska .mh-lecture-topic {
    min-height: 30px;
    padding: 6px 10px;
    font-size: 12px;
  }

  body.single-prednaska .mh-lecture-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
  }

  body.single-prednaska .mh-lecture-button {
    width: 100%;
  }

  body.single-prednaska .entry-content h2 {
    max-width: none;
    margin-top: 37px;
    font-size: clamp(1.85rem, 8.5vw, 2.35rem);
  }

  body.single-prednaska .entry-content h3 {
    margin-top: 27px;
    font-size: 1.25rem;
  }
}

/* --- Malé mobily --- */

@media (max-width: 420px) {
  body.single-prednaska article.single-entry,
  body.single-prednaska .entry.single-entry {
    width: calc(100% - 24px) !important;
    border-radius: 16px;
  }

  body.single-prednaska .entry-header {
    padding-right: 17px !important;
    padding-left: 17px !important;
  }

  body.single-prednaska .entry-content {
    padding-right: 17px !important;
    padding-left: 17px !important;
  }

  body.single-prednaska .mh-lecture-facts {
    align-items: flex-start;
  }
}

/* --- Omezení animací --- */

@media (prefers-reduced-motion: reduce) {
  body.single-prednaska *,
  body.single-prednaska *::before,
  body.single-prednaska *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}

/* ======================================================================
   [39] PŘEDNÁŠKY – ARCHIV V99
   URL: /prednasky/
   Přesná struktura: body.post-type-archive-prednaska
   > .prednaska-archive-hero-section
   > #primary
   > #archive-container.prednaska-archive
   ====================================================================== */

body.post-type-archive-prednaska {
  --mh-lecture-archive-width: 1180px;
  overflow-x: clip;
  color: var(--mh-ink);
  background: var(--mh-background);
  font-family: var(--mh-sans);
}

/* --- Hero archivu --- */

body.post-type-archive-prednaska .prednaska-archive-hero-section {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid rgba(8, 35, 62, 0.07);
  background:
    radial-gradient(
      circle at 86% 18%,
      rgba(7, 106, 159, 0.095),
      transparent 29%
    ),
    linear-gradient(180deg, #f8fcfe 0%, var(--mh-background) 100%);
}

body.post-type-archive-prednaska
  .prednaska-archive-hero-section::before {
  position: absolute;
  top: 0;
  left: max(32px, calc((100vw - var(--mh-lecture-archive-width)) / 2));
  width: 64px;
  height: 3px;
  border-radius: 0 0 2px 2px;
  background: var(--mh-blue);
  content: "";
}

body.post-type-archive-prednaska
  .prednaska-archive-hero-section
  .entry-hero-container-inner {
  padding: clamp(58px, 6vw, 78px) 0 clamp(42px, 4.5vw, 58px);
  background: transparent !important;
}

body.post-type-archive-prednaska
  .prednaska-archive-hero-section
  .hero-section-overlay {
  display: none;
}

body.post-type-archive-prednaska
  .prednaska-archive-hero-section
  .hero-container.site-container {
  width: min(var(--mh-lecture-archive-width), calc(100% - 64px));
  max-width: var(--mh-lecture-archive-width);
  margin: 0 auto;
  padding: 0;
}

body.post-type-archive-prednaska .prednaska-archive-title {
  max-width: 820px;
  margin: 0 auto;
  padding: 0;
  text-align: center;
}

body.post-type-archive-prednaska
  .prednaska-archive-title
  .archive-title {
  margin: 0 0 14px;
  color: var(--mh-ink);
  font-family: var(--mh-serif);
  font-size: clamp(3rem, 5.4vw, 4.65rem);
  font-weight: 400;
  letter-spacing: -0.05em;
  line-height: 1;
  text-wrap: balance;
}

body.post-type-archive-prednaska
  .prednaska-archive-title
  .archive-description {
  max-width: 680px;
  margin: 0 auto;
  color: var(--mh-text);
  font-size: clamp(1.04rem, 1.45vw, 1.18rem);
  line-height: 1.68;
  text-wrap: pretty;
}

body.post-type-archive-prednaska
  .prednaska-archive-title
  .archive-description p {
  margin: 0;
}

/* --- Hlavní oblast archivu --- */

body.post-type-archive-prednaska #primary.content-area {
  margin: 0 !important;
  padding: clamp(42px, 5vw, 62px) 0 clamp(62px, 7vw, 86px);
  background: var(--mh-background);
}

body.post-type-archive-prednaska
  #primary
  > .content-container.site-container {
  display: block !important;
  width: min(var(--mh-lecture-archive-width), calc(100% - 64px));
  max-width: var(--mh-lecture-archive-width) !important;
  margin: 0 auto !important;
  padding: 0 !important;
}

body.post-type-archive-prednaska #main.site-main {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
}

/* Kadence vkládá UL jako grid; V99 ho sjednocuje na centrované 1–3 sloupce. */
body.post-type-archive-prednaska
  #archive-container.prednaska-archive {
  display: grid !important;
  grid-template-columns:
    repeat(auto-fit, minmax(min(100%, 320px), 360px)) !important;
  gap: 26px !important;
  justify-content: center;
  align-items: stretch;
  width: 100%;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
}

body.post-type-archive-prednaska
  #archive-container.prednaska-archive
  > .entry-list-item {
  display: flex;
  min-width: 0;
  margin: 0 !important;
  padding: 0 !important;
}

/* --- Karta --- */

body.post-type-archive-prednaska
  #archive-container
  article.loop-entry {
  position: relative;
  display: flex;
  width: 100%;
  min-width: 0;
  height: 100%;
  overflow: hidden;
  border: 1px solid rgba(8, 35, 62, 0.105);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.965);
  box-shadow:
    0 1px 2px rgba(8, 35, 62, 0.025),
    0 13px 32px rgba(16, 50, 77, 0.065);
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease;
}

body.post-type-archive-prednaska
  #archive-container
  article.loop-entry::before {
  position: absolute;
  top: 0;
  left: 0;
  width: 54px;
  height: 3px;
  border-radius: 0 0 2px 0;
  background: var(--mh-blue);
  content: "";
}

body.post-type-archive-prednaska
  #archive-container
  article.loop-entry:hover {
  transform: translateY(-3px);
  border-color: rgba(7, 106, 159, 0.18);
  box-shadow:
    0 2px 4px rgba(8, 35, 62, 0.035),
    0 20px 42px rgba(16, 50, 77, 0.095);
}

body.post-type-archive-prednaska
  #archive-container
  article.loop-entry:focus-within {
  border-color: rgba(7, 106, 159, 0.3);
  box-shadow:
    0 0 0 3px rgba(7, 106, 159, 0.09),
    0 18px 38px rgba(16, 50, 77, 0.085);
}

body.post-type-archive-prednaska
  #archive-container
  article.loop-entry
  > .entry-content-wrap {
  display: flex;
  width: 100%;
  min-width: 0;
  flex-direction: column;
  padding: 27px 26px 24px !important;
  background: transparent !important;
}

/* --- Název karty --- */

body.post-type-archive-prednaska
  #archive-container
  .entry-header {
  margin: 0 0 13px;
  padding: 0;
}

body.post-type-archive-prednaska
  #archive-container
  .entry-title {
  margin: 0 !important;
  padding: 0;
  font-family: var(--mh-serif);
  font-size: clamp(1.52rem, 2vw, 1.72rem);
  font-weight: 500;
  letter-spacing: -0.027em;
  line-height: 1.15;
  text-wrap: balance;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
}

body.post-type-archive-prednaska
  #archive-container
  .entry-title a {
  color: var(--mh-ink) !important;
  text-decoration: none !important;
}

body.post-type-archive-prednaska
  #archive-container
  .entry-title a:hover {
  color: var(--mh-blue-dark) !important;
}

body.post-type-archive-prednaska
  #archive-container
  .entry-title a:focus-visible {
  outline: 3px solid rgba(7, 106, 159, 0.24);
  outline-offset: 4px;
  border-radius: 4px;
}

/* --- Metadata v kartě --- */

body.post-type-archive-prednaska
  .mh-lecture-card-meta {
  margin: 0 0 17px;
  padding: 0 0 15px;
  border-bottom: 1px solid var(--mh-border);
}

body.post-type-archive-prednaska
  .mh-lecture-card-facts {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 7px;
  margin: 0 0 10px;
  color: var(--mh-muted);
  font-size: 13px;
  font-weight: 570;
  line-height: 1.45;
}

body.post-type-archive-prednaska
  .mh-lecture-card-facts > span {
  flex: 0 0 auto;
  color: #8da0ae;
  font-size: 0.88em;
  line-height: 1;
}

body.post-type-archive-prednaska
  .mh-lecture-card-types,
body.post-type-archive-prednaska
  .mh-lecture-card-topics {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

body.post-type-archive-prednaska
  .mh-lecture-card-types {
  margin: 0 0 7px;
}

body.post-type-archive-prednaska
  .mh-lecture-card-topics {
  margin: 0;
}

body.post-type-archive-prednaska
  .mh-lecture-card-type,
body.post-type-archive-prednaska
  .mh-lecture-card-topic {
  display: inline-flex;
  min-height: 27px;
  align-items: center;
  justify-content: center;
  padding: 5px 9px 6px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.05;
  text-align: center;
}

body.post-type-archive-prednaska
  .mh-lecture-card-type {
  border: 1px solid var(--mh-ink);
  color: #fff;
  background: var(--mh-ink);
  letter-spacing: 0.025em;
}

body.post-type-archive-prednaska
  .mh-lecture-card-topic {
  border: 1px solid rgba(7, 106, 159, 0.16);
  color: var(--mh-blue-dark);
  background: rgba(7, 106, 159, 0.055);
}

/* --- Výňatek --- */

body.post-type-archive-prednaska
  #archive-container
  .entry-summary {
  display: flex;
  min-width: 0;
  flex: 1 1 auto;
  flex-direction: column;
  margin: 0;
  color: var(--mh-text);
}

body.post-type-archive-prednaska
  #archive-container
  .entry-summary > p {
  display: -webkit-box;
  max-width: none;
  margin: 0;
  overflow: hidden;
  color: var(--mh-text);
  font-size: 15.5px;
  line-height: 1.66;
  text-wrap: pretty;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 6;
}

/* --- Patička karty / CTA --- */

body.post-type-archive-prednaska
  #archive-container
  .entry-footer {
  margin: auto 0 0;
  padding: 20px 0 0;
  border: 0;
}

body.post-type-archive-prednaska
  #archive-container
  .entry-actions,
body.post-type-archive-prednaska
  #archive-container
  .more-link-wrap {
  margin: 0 !important;
  padding: 0 !important;
}

body.post-type-archive-prednaska
  #archive-container
  .post-more-link {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  gap: 7px;
  padding: 0;
  color: var(--mh-blue-dark) !important;
  background: transparent !important;
  box-shadow: none !important;
  font-size: 12px;
  font-weight: 760;
  letter-spacing: 0.045em;
  line-height: 1.15;
  text-decoration: none !important;
  text-transform: uppercase;
}

body.post-type-archive-prednaska
  #archive-container
  .post-more-link
  .kadence-svg-iconset {
  display: inline-flex;
  align-items: center;
  transition: transform 160ms ease;
}

body.post-type-archive-prednaska
  #archive-container
  .post-more-link
  svg {
  width: 17px;
  height: 17px;
}

body.post-type-archive-prednaska
  #archive-container
  .post-more-link:hover {
  color: var(--mh-blue) !important;
}

body.post-type-archive-prednaska
  #archive-container
  .post-more-link:hover
  .kadence-svg-iconset {
  transform: translateX(3px);
}

body.post-type-archive-prednaska
  #archive-container
  .post-more-link:focus-visible {
  outline: 3px solid rgba(7, 106, 159, 0.24);
  outline-offset: 4px;
  border-radius: 4px;
}

/* --- Stránkování pro budoucí větší archiv --- */

body.post-type-archive-prednaska
  .navigation.pagination {
  width: 100%;
  margin: 38px auto 0;
}

body.post-type-archive-prednaska
  .navigation.pagination
  .nav-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 7px;
}

body.post-type-archive-prednaska
  .navigation.pagination
  .page-numbers {
  display: inline-flex;
  min-width: 39px;
  min-height: 39px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--mh-border);
  border-radius: 999px;
  color: var(--mh-ink-soft);
  background: rgba(255, 255, 255, 0.76);
  font-size: 14px;
  font-weight: 650;
  text-decoration: none;
}

body.post-type-archive-prednaska
  .navigation.pagination
  .page-numbers.current {
  border-color: var(--mh-ink);
  color: #fff;
  background: var(--mh-ink);
}

body.post-type-archive-prednaska
  .navigation.pagination
  a.page-numbers:hover {
  border-color: rgba(7, 106, 159, 0.28);
  color: var(--mh-blue-dark);
  background: rgba(7, 106, 159, 0.06);
}

/* --- Tablet --- */

@media (max-width: 1024px) {
  body.post-type-archive-prednaska
    .prednaska-archive-hero-section
    .hero-container.site-container,
  body.post-type-archive-prednaska
    #primary
    > .content-container.site-container {
    width: min(100% - 44px, var(--mh-lecture-archive-width));
  }

  body.post-type-archive-prednaska
    .prednaska-archive-hero-section::before {
    left: 22px;
  }

  body.post-type-archive-prednaska
    #archive-container.prednaska-archive {
    grid-template-columns:
      repeat(auto-fit, minmax(min(100%, 300px), 350px)) !important;
    gap: 22px !important;
  }
}

/* --- Mobil --- */

@media (max-width: 700px) {
  body.post-type-archive-prednaska
    .prednaska-archive-hero-section
    .entry-hero-container-inner {
    padding: 44px 0 34px;
  }

  body.post-type-archive-prednaska
    .prednaska-archive-hero-section::before {
    left: 16px;
    width: 48px;
  }

  body.post-type-archive-prednaska
    .prednaska-archive-hero-section
    .hero-container.site-container,
  body.post-type-archive-prednaska
    #primary
    > .content-container.site-container {
    width: calc(100% - 32px);
  }

  body.post-type-archive-prednaska
    .prednaska-archive-title
    .archive-title {
    margin-bottom: 11px;
    font-size: clamp(2.55rem, 12vw, 3.45rem);
  }

  body.post-type-archive-prednaska
    .prednaska-archive-title
    .archive-description {
    max-width: 34rem;
    font-size: 1rem;
    line-height: 1.62;
  }

  body.post-type-archive-prednaska #primary.content-area {
    padding: 32px 0 52px;
  }

  body.post-type-archive-prednaska
    #archive-container.prednaska-archive {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 16px !important;
  }

  body.post-type-archive-prednaska
    #archive-container
    article.loop-entry
    > .entry-content-wrap {
    padding: 24px 21px 21px !important;
  }

  body.post-type-archive-prednaska
    #archive-container
    .entry-title {
    font-size: 1.5rem;
  }

  body.post-type-archive-prednaska
    .mh-lecture-card-meta {
    margin-bottom: 15px;
    padding-bottom: 14px;
  }

  body.post-type-archive-prednaska
    .mh-lecture-card-facts {
    font-size: 12.5px;
  }

  body.post-type-archive-prednaska
    #archive-container
    .entry-summary
    > p {
    font-size: 15px;
    line-height: 1.64;
    -webkit-line-clamp: 7;
  }
}

/* --- Malé mobily --- */

@media (max-width: 420px) {
  body.post-type-archive-prednaska
    .prednaska-archive-hero-section
    .hero-container.site-container,
  body.post-type-archive-prednaska
    #primary
    > .content-container.site-container {
    width: calc(100% - 24px);
  }

  body.post-type-archive-prednaska
    #archive-container
    article.loop-entry {
    border-radius: 16px;
  }

  body.post-type-archive-prednaska
    #archive-container
    article.loop-entry
    > .entry-content-wrap {
    padding-right: 18px !important;
    padding-left: 18px !important;
  }
}

/* --- Omezení animací --- */

@media (prefers-reduced-motion: reduce) {
  body.post-type-archive-prednaska *,
  body.post-type-archive-prednaska *::before,
  body.post-type-archive-prednaska *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }

  body.post-type-archive-prednaska
    #archive-container
    article.loop-entry:hover,
  body.post-type-archive-prednaska
    #archive-container
    .post-more-link:hover
    .kadence-svg-iconset {
    transform: none !important;
  }
}

/* ======================================================================
   [40] PŘEDNÁŠKY – SESKUPOVANÝ ARCHIV V100
   Nadpisy skupin jsou plnošířkové a karty se v každé skupině centrují.
   Flex layout je zde vhodnější než grid, protože každá skupina může mít
   jiný počet položek.
   ====================================================================== */

body.post-type-archive-prednaska
  #archive-container.prednaska-archive {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: stretch !important;
  justify-content: center !important;
  gap: 26px !important;
}

/* Nadpis skupiny vždy vytvoří nový plný řádek. */
body.post-type-archive-prednaska
  #archive-container.prednaska-archive
  > .mh-lecture-section-heading {
  display: block;
  flex: 0 0 100%;
  width: 100%;
  max-width: none;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
}

/* Druhá sekce dostane větší odstup od předchozích karet. */
body.post-type-archive-prednaska
  #archive-container.prednaska-archive
  > .mh-lecture-section-heading:not(:first-child) {
  margin-top: 30px !important;
}

body.post-type-archive-prednaska
  .mh-lecture-section-heading-inner {
  width: min(100%, 860px);
  margin: 0 auto;
  padding: 0 0 2px;
  text-align: center;
}

body.post-type-archive-prednaska
  .mh-lecture-section-heading h2 {
  position: relative;
  margin: 0 0 10px;
  padding: 0 0 13px;
  color: var(--mh-ink);
  font-family: var(--mh-serif);
  font-size: clamp(2rem, 3.1vw, 2.7rem);
  font-weight: 400;
  letter-spacing: -0.035em;
  line-height: 1.08;
  text-wrap: balance;
}

body.post-type-archive-prednaska
  .mh-lecture-section-heading h2::after {
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 34px;
  height: 2px;
  border-radius: 999px;
  background: var(--mh-blue);
  content: "";
  transform: translateX(-50%);
}

body.post-type-archive-prednaska
  .mh-lecture-section-heading p {
  max-width: 620px;
  margin: 0 auto;
  color: var(--mh-muted);
  font-size: 15px;
  line-height: 1.6;
  text-wrap: pretty;
}

/* Každá karta má přirozenou šířku a celý soubor karet je centrovaný. */
body.post-type-archive-prednaska
  #archive-container.prednaska-archive
  > .entry-list-item {
  display: flex !important;
  flex: 0 1 360px !important;
  width: 360px !important;
  max-width: 100%;
  min-width: 0;
}

/*
 * Pokud je v konkrétní skupině právě jedna karta, rozšíříme ji.
 * První selektor řeší skupinu uprostřed archivu,
 * druhý poslední skupinu na stránce.
 */
body.post-type-archive-prednaska
  #archive-container.prednaska-archive
  > .mh-lecture-section-heading
  + .entry-list-item:has(+ .mh-lecture-section-heading),
body.post-type-archive-prednaska
  #archive-container.prednaska-archive
  > .mh-lecture-section-heading
  + .entry-list-item:last-child {
  flex-basis: 540px !important;
  width: 540px !important;
}

/* U širší samostatné karty dovolíme delší řádek a o něco více výňatku. */
body.post-type-archive-prednaska
  #archive-container.prednaska-archive
  > .mh-lecture-section-heading
  + .entry-list-item:has(+ .mh-lecture-section-heading)
  .entry-summary
  > p,
body.post-type-archive-prednaska
  #archive-container.prednaska-archive
  > .mh-lecture-section-heading
  + .entry-list-item:last-child
  .entry-summary
  > p {
  -webkit-line-clamp: 5;
}

/* Samostatná karta může mít o trochu vzdušnější vnitřní prostor. */
body.post-type-archive-prednaska
  #archive-container.prednaska-archive
  > .mh-lecture-section-heading
  + .entry-list-item:has(+ .mh-lecture-section-heading)
  article.loop-entry
  > .entry-content-wrap,
body.post-type-archive-prednaska
  #archive-container.prednaska-archive
  > .mh-lecture-section-heading
  + .entry-list-item:last-child
  article.loop-entry
  > .entry-content-wrap {
  padding: 30px 30px 26px !important;
}

/* Tablet */
@media (max-width: 900px) {
  body.post-type-archive-prednaska
    #archive-container.prednaska-archive {
    gap: 22px !important;
  }

  body.post-type-archive-prednaska
    #archive-container.prednaska-archive
    > .entry-list-item {
    flex-basis: min(360px, calc(50% - 11px)) !important;
    width: min(360px, calc(50% - 11px)) !important;
  }

  body.post-type-archive-prednaska
    #archive-container.prednaska-archive
    > .mh-lecture-section-heading
    + .entry-list-item:has(+ .mh-lecture-section-heading),
  body.post-type-archive-prednaska
    #archive-container.prednaska-archive
    > .mh-lecture-section-heading
    + .entry-list-item:last-child {
    flex-basis: min(540px, 100%) !important;
    width: min(540px, 100%) !important;
  }
}

/* Mobil */
@media (max-width: 700px) {
  body.post-type-archive-prednaska
    #archive-container.prednaska-archive {
    gap: 16px !important;
  }

  body.post-type-archive-prednaska
    #archive-container.prednaska-archive
    > .mh-lecture-section-heading {
    margin-bottom: 2px !important;
  }

  body.post-type-archive-prednaska
    #archive-container.prednaska-archive
    > .mh-lecture-section-heading:not(:first-child) {
    margin-top: 22px !important;
  }

  body.post-type-archive-prednaska
    .mh-lecture-section-heading-inner {
    width: 100%;
    padding: 0 5px;
  }

  body.post-type-archive-prednaska
    .mh-lecture-section-heading h2 {
    margin-bottom: 9px;
    padding-bottom: 12px;
    font-size: clamp(1.85rem, 8.5vw, 2.3rem);
  }

  body.post-type-archive-prednaska
    .mh-lecture-section-heading p {
    max-width: 34rem;
    font-size: 14px;
    line-height: 1.58;
  }

  body.post-type-archive-prednaska
    #archive-container.prednaska-archive
    > .entry-list-item,
  body.post-type-archive-prednaska
    #archive-container.prednaska-archive
    > .mh-lecture-section-heading
    + .entry-list-item:has(+ .mh-lecture-section-heading),
  body.post-type-archive-prednaska
    #archive-container.prednaska-archive
    > .mh-lecture-section-heading
    + .entry-list-item:last-child {
    flex: 0 0 100% !important;
    width: 100% !important;
  }

  body.post-type-archive-prednaska
    #archive-container.prednaska-archive
    > .mh-lecture-section-heading
    + .entry-list-item:has(+ .mh-lecture-section-heading)
    article.loop-entry
    > .entry-content-wrap,
  body.post-type-archive-prednaska
    #archive-container.prednaska-archive
    > .mh-lecture-section-heading
    + .entry-list-item:last-child
    article.loop-entry
    > .entry-content-wrap {
    padding: 24px 21px 21px !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.post-type-archive-prednaska
    .mh-lecture-section-heading h2::after {
    transform: translateX(-50%) !important;
  }
}

/* ======================================================================
   [41] PŘEDNÁŠKY – KOMPAKTNĚJŠÍ ARCHIV V101
   ====================================================================== */

/* Méně nevyužitého prostoru v hlavním hero archivu */
body.post-type-archive-prednaska
  .prednaska-archive-hero-section
  .entry-hero-container-inner {
  padding-top: 44px !important;
  padding-bottom: 34px !important;
}

/* První sekce začne blíže pod hero */
body.post-type-archive-prednaska
  #primary.content-area {
  padding-top: 34px !important;
}

/* Zřetelnější oddělení typu přednášky od tematických štítků */
body.post-type-archive-prednaska
  .mh-lecture-card-types {
  margin-bottom: 11px !important;
}

body.post-type-archive-prednaska
  .mh-lecture-card-topics {
  margin-top: 0 !important;
}

/* Mobil: zachováme kompaktnost bez příliš malých mezer */
@media (max-width: 700px) {
  body.post-type-archive-prednaska
    .prednaska-archive-hero-section
    .entry-hero-container-inner {
    padding-top: 36px !important;
    padding-bottom: 28px !important;
  }

  body.post-type-archive-prednaska
    #primary.content-area {
    padding-top: 28px !important;
  }

  body.post-type-archive-prednaska
    .mh-lecture-card-types {
    margin-bottom: 10px !important;
  }
}

/* ======================================================================
   [42] PŘEDNÁŠKY – GRAFICKÉ DOLADĚNÍ
   ====================================================================== */

/* Sekční nadpis má být jasně druhá úroveň pod hlavním H1 „Přednášky“. */
body.post-type-archive-prednaska
  .mh-lecture-section-heading h2 {
  font-size: clamp(1.78rem, 2.45vw, 2.28rem) !important;
  letter-spacing: -0.03em;
}

/* O něco subtilnější popis sekce. */
body.post-type-archive-prednaska
  .mh-lecture-section-heading p {
  max-width: 590px;
  color: var(--mh-muted);
  font-size: 14.5px;
  line-height: 1.58;
}

/* Klikací štítky: bez podtržení za všech stavů. */
body.post-type-archive-prednaska
  .mh-lecture-card-type,
body.post-type-archive-prednaska
  .mh-lecture-card-topic,
body.post-type-archive-prednaska
  .mh-lecture-card-type:visited,
body.post-type-archive-prednaska
  .mh-lecture-card-topic:visited,
body.post-type-archive-prednaska
  .mh-lecture-card-type:hover,
body.post-type-archive-prednaska
  .mh-lecture-card-topic:hover,
body.post-type-archive-prednaska
  .mh-lecture-card-type:focus,
body.post-type-archive-prednaska
  .mh-lecture-card-topic:focus {
  text-decoration: none !important;
}

/* Typ přednášky – tmavý pill s jemnou odezvou. */
body.post-type-archive-prednaska
  a.mh-lecture-card-type {
  cursor: pointer;
  transition:
    transform 150ms ease,
    background-color 150ms ease,
    border-color 150ms ease,
    box-shadow 150ms ease;
}

body.post-type-archive-prednaska
  a.mh-lecture-card-type:hover {
  transform: translateY(-1px);
  border-color: var(--mh-blue-dark);
  background: var(--mh-blue-dark);
  box-shadow: 0 3px 9px rgba(8, 35, 62, 0.12);
}

/* Tematické štítky – světlejší, ale zřetelně interaktivní. */
body.post-type-archive-prednaska
  a.mh-lecture-card-topic {
  cursor: pointer;
  transition:
    transform 150ms ease,
    color 150ms ease,
    background-color 150ms ease,
    border-color 150ms ease,
    box-shadow 150ms ease;
}

body.post-type-archive-prednaska
  a.mh-lecture-card-topic:hover {
  transform: translateY(-1px);
  border-color: rgba(7, 106, 159, 0.30);
  color: var(--mh-blue-dark);
  background: rgba(7, 106, 159, 0.105);
  box-shadow: 0 2px 7px rgba(7, 106, 159, 0.08);
}

/* Přístupnost klávesnicí – jasný, ale neagresivní focus. */
body.post-type-archive-prednaska
  a.mh-lecture-card-type:focus-visible,
body.post-type-archive-prednaska
  a.mh-lecture-card-topic:focus-visible {
  outline: 3px solid rgba(7, 106, 159, 0.22);
  outline-offset: 3px;
}

/* Typ a témata jsou dvě odlišné informační vrstvy. */
body.post-type-archive-prednaska
  .mh-lecture-card-types {
  margin-bottom: 12px !important;
}

/* Větší vzduch před anotací – oddělovací čára už nemusí být nalepená. */
body.post-type-archive-prednaska
  .mh-lecture-card-meta {
  margin-bottom: 20px !important;
  padding-bottom: 17px !important;
}

/* CTA zůstává textové, ale je o něco čitelnější a přesvědčivější. */
body.post-type-archive-prednaska
  #archive-container
  .post-more-link {
  min-height: 42px;
  gap: 8px;
  color: var(--mh-blue-dark) !important;
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: 0.05em;
}

body.post-type-archive-prednaska
  #archive-container
  .post-more-link:hover {
  color: var(--mh-blue) !important;
}

/* Méně nevyužitého prostoru před patičkou u kratšího archivu. */
body.post-type-archive-prednaska
  #primary.content-area {
  padding-bottom: 50px !important;
}

/* Taxonomické štítky na detailu přednášky – stejná zásada:
   pokud jsou vykresleny jako odkazy, nikdy se nepodtrhují. */
body.single-prednaska
  .mh-lecture-type a,
body.single-prednaska
  .mh-lecture-topics a,
body.single-prednaska
  .mh-lecture-meta a {
  text-decoration: none !important;
}

body.single-prednaska
  .mh-lecture-type a:hover,
body.single-prednaska
  .mh-lecture-topics a:hover,
body.single-prednaska
  .mh-lecture-meta a:hover {
  text-decoration: none !important;
}

/* Mobil – sekční H2 nesmí opět příliš vyrůst vůči kartě. */
@media (max-width: 700px) {
  body.post-type-archive-prednaska
    .mh-lecture-section-heading h2 {
    font-size: clamp(1.62rem, 7.4vw, 2rem) !important;
  }

  body.post-type-archive-prednaska
    .mh-lecture-section-heading p {
    font-size: 13.8px;
  }

  body.post-type-archive-prednaska
    .mh-lecture-card-meta {
    margin-bottom: 17px !important;
    padding-bottom: 15px !important;
  }

  body.post-type-archive-prednaska
    #primary.content-area {
    padding-bottom: 42px !important;
  }
}

/* Reduced motion – žádný posun štítků ani CTA. */
@media (prefers-reduced-motion: reduce) {
  body.post-type-archive-prednaska
    a.mh-lecture-card-type:hover,
  body.post-type-archive-prednaska
    a.mh-lecture-card-topic:hover,
  body.post-type-archive-prednaska
    #archive-container
    .post-more-link:hover
    .kadence-svg-iconset {
    transform: none !important;
  }
}

/* ======================================================================
   [43] PŘEDNÁŠKY – TAXONOMICKÉ ARCHIVY
   URL:
   /tema-prednasky/...
   /typ-prednasky/...
   ====================================================================== */

:is(body.tax-tema_prednasky, body.tax-typ_prednasky) {
  --mh-lecture-archive-width: 1180px;
  overflow-x: clip;
  color: var(--mh-ink);
  background: var(--mh-background);
  font-family: var(--mh-sans);
}

/* --- Hero taxonomického archivu --- */

:is(body.tax-tema_prednasky, body.tax-typ_prednasky)
  .entry-hero-container-inner {
  padding: 48px 0 38px !important;
  border-bottom: 1px solid rgba(8, 35, 62, 0.07);
  background:
    radial-gradient(
      circle at 86% 18%,
      rgba(7, 106, 159, 0.085),
      transparent 29%
    ),
    linear-gradient(180deg, #f8fcfe 0%, var(--mh-background) 100%) !important;
}

:is(body.tax-tema_prednasky, body.tax-typ_prednasky)
  .hero-section-overlay {
  display: none !important;
}

:is(body.tax-tema_prednasky, body.tax-typ_prednasky)
  .hero-container.site-container {
  width: min(var(--mh-lecture-archive-width), calc(100% - 64px));
  max-width: var(--mh-lecture-archive-width);
  margin: 0 auto;
  padding: 0;
}

:is(body.tax-tema_prednasky, body.tax-typ_prednasky)
  .entry-hero-container-inner
  .entry-header {
  max-width: 820px;
  margin: 0 auto !important;
  padding: 0 !important;
  text-align: center;
}

:is(body.tax-tema_prednasky, body.tax-typ_prednasky)
  .entry-hero-container-inner
  .entry-title,
:is(body.tax-tema_prednasky, body.tax-typ_prednasky)
  .entry-hero-container-inner
  .archive-title {
  margin: 0 !important;
  color: var(--mh-ink) !important;
  font-family: var(--mh-serif) !important;
  font-size: clamp(2.65rem, 4.6vw, 4.05rem) !important;
  font-weight: 400 !important;
  letter-spacing: -0.045em !important;
  line-height: 1.04 !important;
  text-align: center;
  text-wrap: balance;
}

/* --- Hlavní obsah --- */

:is(body.tax-tema_prednasky, body.tax-typ_prednasky)
  #primary.content-area {
  margin: 0 !important;
  padding: 34px 0 50px !important;
  background: var(--mh-background);
}

:is(body.tax-tema_prednasky, body.tax-typ_prednasky)
  #primary
  > .content-container.site-container {
  display: block !important;
  width: min(var(--mh-lecture-archive-width), calc(100% - 64px));
  max-width: var(--mh-lecture-archive-width) !important;
  margin: 0 auto !important;
  padding: 0 !important;
}

:is(body.tax-tema_prednasky, body.tax-typ_prednasky)
  #main.site-main {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
}

/* --- Mřížka: sekční nadpis přes celou šířku, karty pod ním --- */

:is(body.tax-tema_prednasky, body.tax-typ_prednasky)
  #archive-container {
  display: grid !important;
  grid-template-columns:
    repeat(auto-fit, minmax(min(100%, 320px), 360px)) !important;
  gap: 26px !important;
  justify-content: center;
  align-items: stretch;
  width: 100%;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
}

:is(body.tax-tema_prednasky, body.tax-typ_prednasky)
  #archive-container
  > .mh-lecture-section-heading {
  display: block !important;
  grid-column: 1 / -1;
  width: 100%;
  margin: 0 0 2px !important;
  padding: 0 !important;
  list-style: none !important;
  text-align: center;
}

:is(body.tax-tema_prednasky, body.tax-typ_prednasky)
  #archive-container
  > .mh-lecture-section-heading:not(:first-child) {
  margin-top: 26px !important;
}

:is(body.tax-tema_prednasky, body.tax-typ_prednasky)
  .mh-lecture-section-heading-inner {
  width: min(720px, 100%);
  margin: 0 auto;
  padding: 0 12px;
}

:is(body.tax-tema_prednasky, body.tax-typ_prednasky)
  .mh-lecture-section-heading h2 {
  position: relative;
  margin: 0 0 10px;
  padding: 0 0 14px;
  color: var(--mh-ink);
  font-family: var(--mh-serif);
  font-size: clamp(1.78rem, 2.45vw, 2.28rem) !important;
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.12;
  text-align: center;
  text-wrap: balance;
}

:is(body.tax-tema_prednasky, body.tax-typ_prednasky)
  .mh-lecture-section-heading h2::after {
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 28px;
  height: 2px;
  border-radius: 999px;
  background: var(--mh-blue);
  content: "";
  transform: translateX(-50%);
}

:is(body.tax-tema_prednasky, body.tax-typ_prednasky)
  .mh-lecture-section-heading p {
  max-width: 590px;
  margin: 0 auto;
  color: var(--mh-muted);
  font-size: 14.5px;
  line-height: 1.58;
  text-align: center;
}

/* --- Položka a karta --- */

:is(body.tax-tema_prednasky, body.tax-typ_prednasky)
  #archive-container
  > .entry-list-item {
  display: flex !important;
  min-width: 0;
  margin: 0 !important;
  padding: 0 !important;
}

/* Pokud je ve skupině právě jedna karta, zvětšíme ji jako na hlavním archivu. */
:is(body.tax-tema_prednasky, body.tax-typ_prednasky)
  #archive-container
  > .mh-lecture-section-heading
  + .entry-list-item:last-child {
  grid-column: 1 / -1;
  justify-self: center;
  width: min(540px, 100%) !important;
}

/* Jedna karta před přechodem do další skupiny. */
:is(body.tax-tema_prednasky, body.tax-typ_prednasky)
  #archive-container
  > .mh-lecture-section-heading
  + .entry-list-item:has(+ .mh-lecture-section-heading) {
  grid-column: 1 / -1;
  justify-self: center;
  width: min(540px, 100%) !important;
}

:is(body.tax-tema_prednasky, body.tax-typ_prednasky)
  #archive-container
  article.loop-entry {
  position: relative;
  display: flex;
  width: 100%;
  min-width: 0;
  height: 100%;
  overflow: hidden;
  border: 1px solid rgba(8, 35, 62, 0.105);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.965);
  box-shadow:
    0 1px 2px rgba(8, 35, 62, 0.025),
    0 13px 32px rgba(16, 50, 77, 0.065);
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease;
}

:is(body.tax-tema_prednasky, body.tax-typ_prednasky)
  #archive-container
  article.loop-entry::before {
  position: absolute;
  top: 0;
  left: 0;
  width: 54px;
  height: 3px;
  border-radius: 0 0 2px 0;
  background: var(--mh-blue);
  content: "";
}

:is(body.tax-tema_prednasky, body.tax-typ_prednasky)
  #archive-container
  article.loop-entry:hover {
  transform: translateY(-3px);
  border-color: rgba(7, 106, 159, 0.18);
  box-shadow:
    0 2px 4px rgba(8, 35, 62, 0.035),
    0 20px 42px rgba(16, 50, 77, 0.095);
}

:is(body.tax-tema_prednasky, body.tax-typ_prednasky)
  #archive-container
  article.loop-entry:focus-within {
  border-color: rgba(7, 106, 159, 0.30);
  box-shadow:
    0 0 0 3px rgba(7, 106, 159, 0.09),
    0 18px 38px rgba(16, 50, 77, 0.085);
}

:is(body.tax-tema_prednasky, body.tax-typ_prednasky)
  #archive-container
  article.loop-entry
  > .entry-content-wrap {
  display: flex;
  width: 100%;
  min-width: 0;
  flex-direction: column;
  padding: 30px 30px 26px !important;
  background: transparent !important;
}

/* --- Název přednášky --- */

:is(body.tax-tema_prednasky, body.tax-typ_prednasky)
  #archive-container
  .entry-header {
  margin: 0 0 13px;
  padding: 0;
}

:is(body.tax-tema_prednasky, body.tax-typ_prednasky)
  #archive-container
  .entry-title {
  margin: 0 !important;
  padding: 0;
  font-family: var(--mh-serif);
  font-size: clamp(1.52rem, 2vw, 1.72rem);
  font-weight: 500;
  letter-spacing: -0.027em;
  line-height: 1.15;
  text-wrap: balance;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
}

:is(body.tax-tema_prednasky, body.tax-typ_prednasky)
  #archive-container
  .entry-title a {
  color: var(--mh-ink) !important;
  text-decoration: none !important;
}

:is(body.tax-tema_prednasky, body.tax-typ_prednasky)
  #archive-container
  .entry-title a:hover {
  color: var(--mh-blue-dark) !important;
}

/* --- Metadata --- */

:is(body.tax-tema_prednasky, body.tax-typ_prednasky)
  .mh-lecture-card-meta {
  margin: 0 0 20px !important;
  padding: 0 0 17px !important;
  border-bottom: 1px solid var(--mh-border);
}

:is(body.tax-tema_prednasky, body.tax-typ_prednasky)
  .mh-lecture-card-facts {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 7px;
  margin: 0 0 10px;
  color: var(--mh-muted);
  font-size: 13px;
  font-weight: 570;
  line-height: 1.45;
}

:is(body.tax-tema_prednasky, body.tax-typ_prednasky)
  .mh-lecture-card-facts > span {
  flex: 0 0 auto;
  color: #8da0ae;
  font-size: 0.88em;
  line-height: 1;
}

:is(body.tax-tema_prednasky, body.tax-typ_prednasky)
  .mh-lecture-card-types,
:is(body.tax-tema_prednasky, body.tax-typ_prednasky)
  .mh-lecture-card-topics {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

:is(body.tax-tema_prednasky, body.tax-typ_prednasky)
  .mh-lecture-card-types {
  margin: 0 0 12px !important;
}

:is(body.tax-tema_prednasky, body.tax-typ_prednasky)
  .mh-lecture-card-topics {
  margin: 0;
}

:is(body.tax-tema_prednasky, body.tax-typ_prednasky)
  .mh-lecture-card-type,
:is(body.tax-tema_prednasky, body.tax-typ_prednasky)
  .mh-lecture-card-topic {
  display: inline-flex;
  min-height: 27px;
  align-items: center;
  justify-content: center;
  padding: 5px 9px 6px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.05;
  text-align: center;
  text-decoration: none !important;
}

:is(body.tax-tema_prednasky, body.tax-typ_prednasky)
  .mh-lecture-card-type {
  border: 1px solid var(--mh-ink);
  color: #fff !important;
  background: var(--mh-ink);
  letter-spacing: 0.025em;
}

:is(body.tax-tema_prednasky, body.tax-typ_prednasky)
  .mh-lecture-card-topic {
  border: 1px solid rgba(7, 106, 159, 0.16);
  color: var(--mh-blue-dark) !important;
  background: rgba(7, 106, 159, 0.055);
}

:is(body.tax-tema_prednasky, body.tax-typ_prednasky)
  a.mh-lecture-card-type,
:is(body.tax-tema_prednasky, body.tax-typ_prednasky)
  a.mh-lecture-card-topic {
  cursor: pointer;
  text-decoration: none !important;
  transition:
    transform 150ms ease,
    color 150ms ease,
    background-color 150ms ease,
    border-color 150ms ease,
    box-shadow 150ms ease;
}

:is(body.tax-tema_prednasky, body.tax-typ_prednasky)
  a.mh-lecture-card-type:hover {
  transform: translateY(-1px);
  color: #fff !important;
  border-color: var(--mh-blue-dark);
  background: var(--mh-blue-dark);
  box-shadow: 0 3px 9px rgba(8, 35, 62, 0.12);
  text-decoration: none !important;
}

:is(body.tax-tema_prednasky, body.tax-typ_prednasky)
  a.mh-lecture-card-topic:hover {
  transform: translateY(-1px);
  border-color: rgba(7, 106, 159, 0.30);
  color: var(--mh-blue-dark) !important;
  background: rgba(7, 106, 159, 0.105);
  box-shadow: 0 2px 7px rgba(7, 106, 159, 0.08);
  text-decoration: none !important;
}

:is(body.tax-tema_prednasky, body.tax-typ_prednasky)
  a.mh-lecture-card-type:focus-visible,
:is(body.tax-tema_prednasky, body.tax-typ_prednasky)
  a.mh-lecture-card-topic:focus-visible {
  outline: 3px solid rgba(7, 106, 159, 0.22);
  outline-offset: 3px;
  text-decoration: none !important;
}

/* --- Výňatek --- */

:is(body.tax-tema_prednasky, body.tax-typ_prednasky)
  #archive-container
  .entry-summary {
  display: flex;
  min-width: 0;
  flex: 1 1 auto;
  flex-direction: column;
  margin: 0;
  color: var(--mh-text);
}

:is(body.tax-tema_prednasky, body.tax-typ_prednasky)
  #archive-container
  .entry-summary > p {
  display: -webkit-box;
  max-width: none;
  margin: 0;
  overflow: hidden;
  color: var(--mh-text);
  font-size: 15.5px;
  line-height: 1.66;
  text-wrap: pretty;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 5;
}

/* --- CTA --- */

:is(body.tax-tema_prednasky, body.tax-typ_prednasky)
  #archive-container
  .entry-footer {
  margin: auto 0 0;
  padding: 20px 0 0;
  border: 0;
}

:is(body.tax-tema_prednasky, body.tax-typ_prednasky)
  #archive-container
  .entry-actions,
:is(body.tax-tema_prednasky, body.tax-typ_prednasky)
  #archive-container
  .more-link-wrap {
  margin: 0 !important;
  padding: 0 !important;
}

:is(body.tax-tema_prednasky, body.tax-typ_prednasky)
  #archive-container
  .post-more-link {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  gap: 8px;
  padding: 0;
  color: var(--mh-blue-dark) !important;
  background: transparent !important;
  box-shadow: none !important;
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: 0.05em;
  line-height: 1.15;
  text-decoration: none !important;
  text-transform: uppercase;
}

:is(body.tax-tema_prednasky, body.tax-typ_prednasky)
  #archive-container
  .post-more-link:hover {
  color: var(--mh-blue) !important;
  text-decoration: none !important;
}

:is(body.tax-tema_prednasky, body.tax-typ_prednasky)
  #archive-container
  .post-more-link
  .kadence-svg-iconset {
  display: inline-flex;
  align-items: center;
  transition: transform 160ms ease;
}

:is(body.tax-tema_prednasky, body.tax-typ_prednasky)
  #archive-container
  .post-more-link:hover
  .kadence-svg-iconset {
  transform: translateX(3px);
}

/* --- Stránkování --- */

:is(body.tax-tema_prednasky, body.tax-typ_prednasky)
  .navigation.pagination {
  width: 100%;
  margin: 38px auto 0;
}

/* --- Tablet --- */

@media (max-width: 900px) {
  :is(body.tax-tema_prednasky, body.tax-typ_prednasky)
    #archive-container {
    gap: 22px !important;
  }
}

/* --- Mobil --- */

@media (max-width: 700px) {
  :is(body.tax-tema_prednasky, body.tax-typ_prednasky)
    .entry-hero-container-inner {
    padding: 36px 0 28px !important;
  }

  :is(body.tax-tema_prednasky, body.tax-typ_prednasky)
    .hero-container.site-container,
  :is(body.tax-tema_prednasky, body.tax-typ_prednasky)
    #primary
    > .content-container.site-container {
    width: min(100% - 34px, var(--mh-lecture-archive-width));
  }

  :is(body.tax-tema_prednasky, body.tax-typ_prednasky)
    .entry-hero-container-inner
    .entry-title,
  :is(body.tax-tema_prednasky, body.tax-typ_prednasky)
    .entry-hero-container-inner
    .archive-title {
    font-size: clamp(2.25rem, 11vw, 3.1rem) !important;
  }

  :is(body.tax-tema_prednasky, body.tax-typ_prednasky)
    #primary.content-area {
    padding: 28px 0 42px !important;
  }

  :is(body.tax-tema_prednasky, body.tax-typ_prednasky)
    #archive-container {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 16px !important;
  }

  :is(body.tax-tema_prednasky, body.tax-typ_prednasky)
    #archive-container
    > .mh-lecture-section-heading:not(:first-child) {
    margin-top: 22px !important;
  }

  :is(body.tax-tema_prednasky, body.tax-typ_prednasky)
    .mh-lecture-section-heading-inner {
    width: 100%;
    padding: 0 5px;
  }

  :is(body.tax-tema_prednasky, body.tax-typ_prednasky)
    .mh-lecture-section-heading h2 {
    font-size: clamp(1.62rem, 7.4vw, 2rem) !important;
  }

  :is(body.tax-tema_prednasky, body.tax-typ_prednasky)
    .mh-lecture-section-heading p {
    font-size: 13.8px;
  }

  :is(body.tax-tema_prednasky, body.tax-typ_prednasky)
    #archive-container
    > .entry-list-item,
  :is(body.tax-tema_prednasky, body.tax-typ_prednasky)
    #archive-container
    > .mh-lecture-section-heading
    + .entry-list-item:last-child,
  :is(body.tax-tema_prednasky, body.tax-typ_prednasky)
    #archive-container
    > .mh-lecture-section-heading
    + .entry-list-item:has(+ .mh-lecture-section-heading) {
    grid-column: auto;
    width: 100% !important;
  }

  :is(body.tax-tema_prednasky, body.tax-typ_prednasky)
    #archive-container
    article.loop-entry
    > .entry-content-wrap {
    padding: 24px 21px 21px !important;
  }

  :is(body.tax-tema_prednasky, body.tax-typ_prednasky)
    .mh-lecture-card-meta {
    margin-bottom: 17px !important;
    padding-bottom: 15px !important;
  }
}

/* --- Reduced motion --- */

@media (prefers-reduced-motion: reduce) {
  :is(body.tax-tema_prednasky, body.tax-typ_prednasky)
    #archive-container
    article.loop-entry:hover,
  :is(body.tax-tema_prednasky, body.tax-typ_prednasky)
    a.mh-lecture-card-type:hover,
  :is(body.tax-tema_prednasky, body.tax-typ_prednasky)
    a.mh-lecture-card-topic:hover,
  :is(body.tax-tema_prednasky, body.tax-typ_prednasky)
    #archive-container
    .post-more-link:hover
    .kadence-svg-iconset {
    transform: none !important;
  }
}

/* ======================================================================
   [44] PŘEDNÁŠKY – TAXONOMICKÉ ARCHIVY
   Kompaktnější hero, kontext a aktivní filtr.
   ====================================================================== */

/* Taxonomické hero je záměrně menší než hlavní /prednasky/. */
:is(body.tax-tema_prednasky, body.tax-typ_prednasky)
  .entry-hero-container-inner {
  padding-top: 34px !important;
  padding-bottom: 28px !important;
}

/* Kontext nad názvem aktuální taxonomie. */
body.tax-tema_prednasky
  .entry-hero-container-inner
  .entry-title::before,
body.tax-tema_prednasky
  .entry-hero-container-inner
  .archive-title::before {
  display: block;
  margin: 0 0 9px;
  color: var(--mh-blue-dark);
  content: "Přednášky na téma";
  font-family: var(--mh-sans);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.115em;
  line-height: 1.2;
  text-transform: uppercase;
}

body.tax-typ_prednasky
  .entry-hero-container-inner
  .entry-title::before,
body.tax-typ_prednasky
  .entry-hero-container-inner
  .archive-title::before {
  display: block;
  margin: 0 0 9px;
  color: var(--mh-blue-dark);
  content: "Typ přednášky";
  font-family: var(--mh-sans);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.115em;
  line-height: 1.2;
  text-transform: uppercase;
}

/* H1 taxonomie je menší než H1 hlavního katalogu. */
:is(body.tax-tema_prednasky, body.tax-typ_prednasky)
  .entry-hero-container-inner
  .entry-title,
:is(body.tax-tema_prednasky, body.tax-typ_prednasky)
  .entry-hero-container-inner
  .archive-title {
  font-size: clamp(2.35rem, 3.8vw, 3.35rem) !important;
}

/* Menší mezera mezi kompaktním hero a obsahem. */
:is(body.tax-tema_prednasky, body.tax-typ_prednasky)
  #primary.content-area {
  padding-top: 26px !important;
}

/* Navigace zpět na hlavní katalog. */
:is(body.tax-tema_prednasky, body.tax-typ_prednasky)
  #archive-container
  > .mh-lecture-taxonomy-nav {
  display: flex !important;
  grid-column: 1 / -1;
  width: 100%;
  justify-content: center;
  margin: 0 0 -2px !important;
  padding: 0 !important;
  list-style: none !important;
}

:is(body.tax-tema_prednasky, body.tax-typ_prednasky)
  .mh-lecture-taxonomy-back {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  gap: 7px;
  padding: 0 4px;
  color: var(--mh-blue-dark) !important;
  font-size: 12.5px;
  font-weight: 750;
  letter-spacing: 0.02em;
  line-height: 1.2;
  text-decoration: none !important;
  transition:
    color 150ms ease,
    transform 150ms ease;
}

:is(body.tax-tema_prednasky, body.tax-typ_prednasky)
  .mh-lecture-taxonomy-back:hover {
  color: var(--mh-blue) !important;
  text-decoration: none !important;
  transform: translateX(-2px);
}

:is(body.tax-tema_prednasky, body.tax-typ_prednasky)
  .mh-lecture-taxonomy-back:focus-visible {
  outline: 3px solid rgba(7, 106, 159, 0.20);
  outline-offset: 3px;
  border-radius: 6px;
}

/* Aktivní filtr je informační badge, nikoliv odkaz sám na sebe. */
:is(body.tax-tema_prednasky, body.tax-typ_prednasky)
  .mh-lecture-card-type.is-current,
:is(body.tax-tema_prednasky, body.tax-typ_prednasky)
  .mh-lecture-card-topic.is-current {
  cursor: default;
  box-shadow: inset 0 0 0 1px rgba(7, 106, 159, 0.08);
}

body.tax-tema_prednasky
  .mh-lecture-card-topic.is-current {
  border-color: rgba(7, 106, 159, 0.30);
  color: var(--mh-blue-dark) !important;
  background: rgba(7, 106, 159, 0.125);
}

body.tax-typ_prednasky
  .mh-lecture-card-type.is-current {
  border-color: var(--mh-blue-dark);
  color: #fff !important;
  background: var(--mh-blue-dark);
}

/* Mobil */
@media (max-width: 700px) {
  :is(body.tax-tema_prednasky, body.tax-typ_prednasky)
    .entry-hero-container-inner {
    padding-top: 29px !important;
    padding-bottom: 24px !important;
  }

  :is(body.tax-tema_prednasky, body.tax-typ_prednasky)
    .entry-hero-container-inner
    .entry-title,
  :is(body.tax-tema_prednasky, body.tax-typ_prednasky)
    .entry-hero-container-inner
    .archive-title {
    font-size: clamp(2.05rem, 9.5vw, 2.7rem) !important;
  }

  :is(body.tax-tema_prednasky, body.tax-typ_prednasky)
    #primary.content-area {
    padding-top: 22px !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  :is(body.tax-tema_prednasky, body.tax-typ_prednasky)
    .mh-lecture-taxonomy-back:hover {
    transform: none !important;
  }
}

/* ======================================================================
   [45] PŘEDNÁŠKY – DETAIL
   Navigace před H1, klikací typy, materiály a jemnější vertikální rytmus.
   ====================================================================== */

/* O něco kompaktnější vertikální rámec detailu. */
body.single-prednaska .content-area {
  padding-top: clamp(36px, 4.2vw, 54px) !important;
  padding-bottom: clamp(44px, 5vw, 64px) !important;
}

/* Hlavička: navigace → H1. */
body.single-prednaska .entry-header {
  display: flex !important;
  flex-direction: column !important;
  padding-top: clamp(31px, 4vw, 41px) !important;
}

/* Navigace zpět je skutečně v .entry-header před H1. */
body.single-prednaska .mh-lecture-detail-nav {
  display: block;
  order: -2;
  max-width: 840px;
  margin: 0 0 14px !important;
  padding: 0;
}

body.single-prednaska .mh-lecture-detail-back {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  gap: 7px;
  padding: 2px 1px;
  color: var(--mh-blue-dark) !important;
  font-size: 13px;
  font-weight: 680;
  letter-spacing: 0.01em;
  line-height: 1.25;
  text-decoration: none !important;
  transition:
    color 150ms ease,
    transform 150ms ease;
}

body.single-prednaska .mh-lecture-detail-back-arrow {
  display: inline-block;
  font-size: 1.05em;
  line-height: 1;
  transition: transform 150ms ease;
}

body.single-prednaska .mh-lecture-detail-back:hover {
  color: var(--mh-blue) !important;
  text-decoration: none !important;
}

body.single-prednaska
  .mh-lecture-detail-back:hover
  .mh-lecture-detail-back-arrow {
  transform: translateX(-2px);
}

body.single-prednaska .mh-lecture-detail-back:focus-visible {
  outline: 3px solid rgba(7, 106, 159, 0.24);
  outline-offset: 4px;
  border-radius: 6px;
}

/* H1 po vložení navigace nepotřebuje žádný záporný posun. */
body.single-prednaska .entry-title,
body.single-prednaska h1.entry-title {
  order: -1;
  margin-top: 0 !important;
}

/* Metadata mají čistší oddělení od nadpisu i hlavního textu. */
body.single-prednaska .mh-lecture-meta {
  margin-top: 21px;
  margin-bottom: 27px;
  padding-top: 16px;
  padding-bottom: 19px;
}

/* Typ přednášky je nyní také odkaz. */
body.single-prednaska .mh-lecture-type {
  color: #fff !important;
  text-decoration: none !important;
  transition:
    color 150ms ease,
    border-color 150ms ease,
    background-color 150ms ease,
    transform 150ms ease,
    box-shadow 150ms ease;
}

body.single-prednaska .mh-lecture-type:hover {
  transform: translateY(-1px);
  border-color: var(--mh-blue-dark);
  color: #fff !important;
  background: var(--mh-blue-dark);
  box-shadow: 0 5px 12px rgba(8, 35, 62, 0.12);
  text-decoration: none !important;
}

body.single-prednaska .mh-lecture-type:focus-visible,
body.single-prednaska .mh-lecture-topic:focus-visible {
  outline: 3px solid rgba(7, 106, 159, 0.24);
  outline-offset: 3px;
}

/* Obecný textový link nesmí přepisovat vzhled badge typu. */
body.single-prednaska
  .entry-content
  a.mh-lecture-type,
body.single-prednaska
  .entry-content
  a.mh-lecture-topic {
  text-decoration: none !important;
}

/* Materiály: samostatná závěrečná část pod obsahem přednášky. */
body.single-prednaska .mh-lecture-materials {
  max-width: 840px;
  margin: 39px 0 0;
  padding: 27px 0 0;
  border-top: 1px solid var(--mh-border);
}

body.single-prednaska .mh-lecture-materials-header {
  max-width: var(--mh-reading-width);
}

body.single-prednaska .mh-lecture-materials h2,
body.single-prednaska
  .entry-content
  .mh-lecture-materials h2 {
  margin: 0 0 8px;
  font-size: clamp(1.75rem, 2.6vw, 2.2rem);
}

body.single-prednaska .mh-lecture-materials h2::after,
body.single-prednaska
  .entry-content
  .mh-lecture-materials h2::after {
  width: 28px;
  margin-top: 10px;
}

body.single-prednaska .mh-lecture-materials-header p,
body.single-prednaska
  .entry-content
  .mh-lecture-materials-header p {
  margin: 0;
  color: var(--mh-muted);
  font-size: 15px;
  line-height: 1.55;
}

body.single-prednaska .mh-lecture-materials .mh-lecture-actions {
  margin-top: 18px;
}

/* Tlačítka s ikonou mají pravidelnější mezeru. */
body.single-prednaska .mh-lecture-button {
  gap: 8px;
}

/* Mobilní detail. */
@media (max-width: 700px) {
  body.single-prednaska .content-area {
    padding-top: 25px !important;
    padding-bottom: 40px !important;
  }

  body.single-prednaska .entry-header {
    padding-top: 27px !important;
  }

  body.single-prednaska .mh-lecture-detail-nav {
    margin-bottom: 12px;
  }

  body.single-prednaska .mh-lecture-detail-back {
    min-height: 28px;
    font-size: 12.5px;
  }

  body.single-prednaska .mh-lecture-meta {
    margin-top: 18px;
    margin-bottom: 23px;
    padding-top: 14px;
    padding-bottom: 16px;
  }

  body.single-prednaska .mh-lecture-materials {
    margin-top: 32px;
    padding-top: 23px;
  }

  body.single-prednaska .mh-lecture-materials h2,
  body.single-prednaska
    .entry-content
    .mh-lecture-materials h2 {
    font-size: clamp(1.65rem, 7.5vw, 2rem);
  }
}

@media (max-width: 420px) {
  body.single-prednaska .mh-lecture-detail-back {
    font-size: 12px;
  }
}

/* Redukce pohybu. */
@media (prefers-reduced-motion: reduce) {
  body.single-prednaska
    .mh-lecture-detail-back:hover
    .mh-lecture-detail-back-arrow,
  body.single-prednaska .mh-lecture-type:hover {
    transform: none !important;
  }
}

/* =========================================================
   [46] VEŘEJNÉ API – /api/
   ========================================================= */

.mh-api-page,
.mh-api-page * {
  box-sizing: border-box;
}

.mh-api-page {
  --mh-api-ink: #08233e;
  --mh-api-blue: #076a9f;
  --mh-api-blue-dark: #04527d;
  --mh-api-bg: #edf5fa;
  --mh-api-bg-soft: #f7fafc;
  --mh-api-border: rgba(8, 35, 62, 0.12);
  --mh-api-muted: #52677a;

  width: min(1120px, calc(100% - 40px));
  margin: clamp(36px, 5vw, 64px) auto;
  padding: 0;
  color: var(--mh-api-ink);
  font-family:
    var(
      --mh-sans,
      system-ui,
      -apple-system,
      BlinkMacSystemFont,
      "Segoe UI",
      sans-serif
    );
}


/* ---------------------------------------------------------
   HERO
   --------------------------------------------------------- */

.mh-api-hero {
  position: relative;
  margin: 0 0 34px;
  padding: clamp(36px, 5vw, 60px);
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--mh-api-border);
  border-radius: 20px;
  box-shadow: 0 12px 34px rgba(8, 35, 62, 0.06);
}

.mh-api-hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--mh-api-blue);
}

.mh-api-kicker {
  margin: 0 0 12px !important;
  color: var(--mh-api-blue);
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.mh-api-hero h1 {
  margin: 0 0 18px !important;
  color: var(--mh-api-ink);
  font-family: var(--mh-serif, Georgia, "Times New Roman", serif);
  font-size: clamp(2.2rem, 5vw, 4rem);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.025em;
}

.mh-api-lead {
  max-width: 780px;
  margin: 0 0 14px !important;
  color: var(--mh-api-ink);
  font-size: clamp(1.08rem, 1.8vw, 1.28rem);
  line-height: 1.65;
}

.mh-api-hero > p:last-child {
  max-width: 820px;
  margin-bottom: 0 !important;
  color: var(--mh-api-muted);
  line-height: 1.7;
}


/* ---------------------------------------------------------
   HLAVNÍ SEKCE
   --------------------------------------------------------- */

.mh-api-section {
  margin: 0 0 26px;
  padding: clamp(28px, 4vw, 42px);
  background: #fff;
  border: 1px solid var(--mh-api-border);
  border-radius: 18px;
  box-shadow: 0 8px 26px rgba(8, 35, 62, 0.045);
}

.mh-api-section h2 {
  position: relative;
  margin: 0 0 24px !important;
  padding-bottom: 12px;
  color: var(--mh-api-ink);
  font-family: var(--mh-serif, Georgia, "Times New Roman", serif);
  font-size: clamp(1.55rem, 2.8vw, 2.05rem);
  font-weight: 600;
  line-height: 1.2;
}

.mh-api-section h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 46px;
  height: 3px;
  border-radius: 999px;
  background: var(--mh-api-blue);
}

.mh-api-section h3 {
  margin: 0 0 14px !important;
  color: var(--mh-api-ink);
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.35;
}

.mh-api-section p {
  max-width: 900px;
  margin-top: 0;
  margin-bottom: 16px;
  color: #243c52;
  line-height: 1.7;
}

.mh-api-section p:last-child {
  margin-bottom: 0;
}


/* ---------------------------------------------------------
   ZÁKLADNÍ INFORMACE
   --------------------------------------------------------- */

.mh-api-facts {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
  margin: 0;
}

.mh-api-facts > div {
  display: flex;
  min-width: 0;
  min-height: 112px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 18px 14px;
  text-align: center;
  background: var(--mh-api-bg);
  border: 1px solid rgba(7, 106, 159, 0.1);
  border-radius: 12px;
}

.mh-api-facts dt {
  width: 100%;
  margin: 0 0 9px;
  color: var(--mh-api-muted);
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0.06em;
  text-align: center;
  text-transform: uppercase;
}

.mh-api-facts dd {
  display: flex;
  width: 100%;
  min-height: 30px;
  align-items: center;
  justify-content: center;
  margin: 0;
  color: var(--mh-api-ink);
  font-size: 0.98rem;
  font-weight: 650;
  line-height: 1.4;
  text-align: center;
  overflow-wrap: anywhere;
}


/* ---------------------------------------------------------
   ZÁKLADNÍ URL
   --------------------------------------------------------- */

.mh-api-url {
  font-size: 0.86rem !important;
}

.mh-api-url a {
  display: inline-flex;
  max-width: 100%;
  align-items: center;
  justify-content: center;
  color: var(--mh-api-blue) !important;
  text-align: center;
  text-decoration: none !important;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.mh-api-url a:hover,
.mh-api-url a:focus {
  color: var(--mh-api-blue-dark) !important;
  text-decoration: underline !important;
  text-underline-offset: 3px;
}

.mh-api-url code {
  display: inline;
  padding: 0 !important;
  color: inherit !important;
  background: transparent !important;
  border: 0 !important;
  font-size: inherit;
  line-height: 1.45;
  text-align: center;
}


/* ---------------------------------------------------------
   ENDPOINTY
   --------------------------------------------------------- */

.mh-api-endpoints {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.mh-api-endpoint {
  position: relative;
  min-width: 0;
  padding: 24px;
  background: #fbfdff;
  border: 1px solid var(--mh-api-border);
  border-radius: 14px;
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    border-color 160ms ease;
}

.mh-api-endpoint:hover {
  transform: translateY(-2px);
  border-color: rgba(7, 106, 159, 0.24);
  box-shadow: 0 9px 25px rgba(8, 35, 62, 0.07);
}

.mh-api-endpoint h3 {
  font-family: var(--mh-serif, Georgia, "Times New Roman", serif);
  font-size: 1.22rem;
  font-weight: 600;
}

.mh-api-endpoint p {
  margin-bottom: 13px;
  font-size: 0.95rem;
}

.mh-api-endpoint > p:last-child {
  margin-top: 17px;
  margin-bottom: 0;
}

.mh-api-endpoint a {
  color: var(--mh-api-blue-dark);
  font-weight: 700;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.mh-api-endpoint a:hover,
.mh-api-endpoint a:focus {
  color: var(--mh-api-ink);
}


/* ---------------------------------------------------------
   CODE
   --------------------------------------------------------- */

.mh-api-page code {
  font-family:
    ui-monospace,
    SFMono-Regular,
    Menlo,
    Monaco,
    Consolas,
    "Liberation Mono",
    monospace;
  font-size: 0.88em;
}

.mh-api-page :not(pre) > code {
  padding: 0.14em 0.4em;
  color: #034d73;
  background: #edf6fb;
  border: 1px solid rgba(7, 106, 159, 0.12);
  border-radius: 5px;
}

.mh-api-page pre {
  max-width: 100%;
  margin: 12px 0 18px;
  padding: 15px 17px;
  overflow-x: auto;
  color: #f2f7fb;
  background: #08233e;
  border-radius: 10px;
  line-height: 1.55;
  white-space: pre;
}

.mh-api-page pre code {
  padding: 0;
  color: inherit;
  background: transparent;
  border: 0;
}


/* ---------------------------------------------------------
   OPENAPI TLAČÍTKO
   --------------------------------------------------------- */

.mh-api-button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  color: #fff !important;
  background: var(--mh-api-blue);
  border: 1px solid var(--mh-api-blue);
  border-radius: 8px;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none !important;
  transition:
    background 160ms ease,
    border-color 160ms ease,
    transform 160ms ease;
}

.mh-api-button:hover,
.mh-api-button:focus {
  color: #fff !important;
  background: var(--mh-api-blue-dark);
  border-color: var(--mh-api-blue-dark);
  transform: translateY(-1px);
}

.mh-api-note {
  margin-top: 15px !important;
  color: var(--mh-api-muted) !important;
  font-size: 0.91rem;
}


/* ---------------------------------------------------------
   LICENCE – HLAVIČKA
   --------------------------------------------------------- */

.mh-api-license-section {
  scroll-margin-top: 100px;
}

.mh-api-license-head {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(280px, 0.65fr);
  gap: clamp(30px, 5vw, 70px);
  align-items: end;
  margin-bottom: 30px;
}

.mh-api-license-title {
  min-width: 0;
}

.mh-api-section-kicker {
  margin: 0 0 8px !important;
  color: var(--mh-api-blue) !important;
  font-size: 0.72rem !important;
  font-weight: 750;
  line-height: 1.3;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.mh-api-license-head h2 {
  margin-bottom: 0 !important;
}

.mh-api-license-intro {
  max-width: 480px !important;
  margin: 0 0 3px !important;
  color: var(--mh-api-muted) !important;
  font-size: 0.95rem;
  line-height: 1.65;
}


/* ---------------------------------------------------------
   LICENCE – DVĚ HLAVNÍ ČÁSTI
   --------------------------------------------------------- */

.mh-api-license-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 6px;
  overflow: hidden;
  background:
    linear-gradient(
      180deg,
      #fbfdff 0%,
      #f7fafc 100%
    );
  border: 1px solid var(--mh-api-border);
  border-radius: 14px;
}

.mh-api-license-card {
  position: relative;
  min-width: 0;
  padding: 30px;
}

.mh-api-license-card + .mh-api-license-card {
  border-left: 1px solid var(--mh-api-border);
}

.mh-api-license-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 25px;
}

.mh-api-license-number {
  color: rgba(7, 106, 159, 0.42);
  font-family: var(--mh-serif, Georgia, serif);
  font-size: 1.72rem;
  font-weight: 400;
  line-height: 1;
}

.mh-api-license-type {
  padding: 5px 9px;
  color: var(--mh-api-muted);
  background: #fff;
  border: 1px solid rgba(8, 35, 62, 0.09);
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 750;
  line-height: 1.2;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.mh-api-license-card h3 {
  max-width: 430px;
  margin: 0 0 10px !important;
  color: var(--mh-api-ink);
  font-family: var(--mh-serif, Georgia, serif);
  font-size: clamp(1.35rem, 2vw, 1.7rem);
  font-weight: 550;
  line-height: 1.2;
  letter-spacing: -0.018em;
}

.mh-api-license-code {
  display: inline-flex;
  min-height: 32px;
  align-items: center;
  margin: 0 0 20px !important;
  padding: 5px 10px;
  color: var(--mh-api-blue-dark) !important;
  background: rgba(7, 106, 159, 0.07);
  border: 1px solid rgba(7, 106, 159, 0.12);
  border-radius: 6px;
  font-family:
    ui-monospace,
    SFMono-Regular,
    Menlo,
    Monaco,
    Consolas,
    monospace;
  font-size: 0.78rem !important;
  font-weight: 650;
  line-height: 1.2;
}

.mh-api-license-card > p:not(.mh-api-license-code) {
  max-width: 470px;
  margin-bottom: 21px;
  color: #324b60;
  font-size: 0.94rem;
  line-height: 1.7;
}


/* ---------------------------------------------------------
   LICENČNÍ ODKAZY
   --------------------------------------------------------- */

.mh-api-license-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 4px;
  color: var(--mh-api-blue-dark) !important;
  border-bottom: 1px solid rgba(7, 106, 159, 0.28);
  font-size: 0.89rem;
  font-weight: 700;
  line-height: 1.35;
  text-decoration: none !important;
}

.mh-api-license-link span {
  color: var(--mh-api-blue);
  transition: transform 160ms ease;
}

.mh-api-license-link:hover,
.mh-api-license-link:focus {
  color: var(--mh-api-blue) !important;
  border-color: var(--mh-api-blue);
}

.mh-api-license-link:hover span,
.mh-api-license-link:focus span {
  transform: translateX(3px);
}


/* ---------------------------------------------------------
   AUTORSKÁ PRÁVA K OBSAHU
   --------------------------------------------------------- */

.mh-api-rights {
  display: grid;
  grid-template-columns: 145px minmax(0, 1fr);
  gap: 30px;
  margin-top: 20px;
  padding: 25px 27px;
  background:
    linear-gradient(
      135deg,
      rgba(237, 245, 250, 0.86),
      rgba(248, 251, 253, 0.92)
    );
  border: 1px solid rgba(7, 106, 159, 0.12);
  border-left: 4px solid var(--mh-api-blue);
  border-radius: 4px 12px 12px 4px;
}

.mh-api-rights-label {
  padding-top: 4px;
  color: var(--mh-api-blue);
  font-size: 0.72rem;
  font-weight: 750;
  line-height: 1.4;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.mh-api-rights-content {
  min-width: 0;
}

.mh-api-rights-content h3 {
  margin: 0 0 11px !important;
  font-family: var(--mh-serif, Georgia, serif);
  font-size: 1.13rem;
  font-weight: 600;
}

.mh-api-rights-content p {
  max-width: 780px;
  margin-bottom: 10px;
  color: #3d566a;
  font-size: 0.9rem;
  line-height: 1.68;
}

.mh-api-rights-content p:last-child {
  margin-bottom: 0;
}


/* ---------------------------------------------------------
   OBECNÉ ODKAZY
   --------------------------------------------------------- */

.mh-api-page a:not(.mh-api-button) {
  color: var(--mh-api-blue);
  text-underline-offset: 3px;
}

.mh-api-page a:not(.mh-api-button):hover,
.mh-api-page a:not(.mh-api-button):focus {
  color: var(--mh-api-blue-dark);
}


/* ---------------------------------------------------------
   FOCUS
   --------------------------------------------------------- */

.mh-api-page a:focus-visible {
  outline: 3px solid rgba(7, 106, 159, 0.26);
  outline-offset: 3px;
}


/* ---------------------------------------------------------
   TABLET
   --------------------------------------------------------- */

@media (max-width: 960px) {
  .mh-api-facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .mh-api-license-head {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .mh-api-license-intro {
    max-width: 680px !important;
  }
}


/* ---------------------------------------------------------
   MOBIL
   --------------------------------------------------------- */

@media (max-width: 760px) {
  .mh-api-page {
    width: min(100% - 24px, 1120px);
    margin-top: 24px;
    margin-bottom: 36px;
  }

  .mh-api-hero,
  .mh-api-section {
    padding: 24px 20px;
    border-radius: 14px;
  }

  .mh-api-endpoints {
    grid-template-columns: 1fr;
  }

  .mh-api-facts {
    grid-template-columns: 1fr;
  }

  .mh-api-facts > div {
    min-height: 94px;
  }

  .mh-api-endpoint {
    padding: 20px;
  }

  .mh-api-license-grid {
    grid-template-columns: 1fr;
  }

  .mh-api-license-card {
    padding: 25px 22px;
  }

  .mh-api-license-card + .mh-api-license-card {
    border-top: 1px solid var(--mh-api-border);
    border-left: 0;
  }

  .mh-api-rights {
    grid-template-columns: 1fr;
    gap: 9px;
    padding: 21px 19px;
  }

  .mh-api-page pre {
    font-size: 0.82rem;
  }
}


/* ---------------------------------------------------------
   MALÉ MOBILY
   --------------------------------------------------------- */

@media (max-width: 480px) {
  .mh-api-page {
    width: calc(100% - 20px);
  }

  .mh-api-hero h1 {
    font-size: 2.15rem;
  }

  .mh-api-section h2 {
    font-size: 1.55rem;
  }

  .mh-api-license-card-head {
    align-items: flex-start;
  }
}


/* ---------------------------------------------------------
   REDUKCE POHYBU
   --------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  .mh-api-page *,
  .mh-api-page *::before,
  .mh-api-page *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
