@font-face {
  font-family: "MUNI";
  src:
    local("MUNI Light"),
    local("Muni Light"),
    url("./assets/fonts/Muni-Light.woff2") format("woff2"),
    url("./assets/fonts/Muni-Light.woff") format("woff"),
    url("./assets/fonts/Muni-Light.ttf") format("truetype"),
    url("./assets/fonts/Muni-Light.otf") format("opentype");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0100-024F, U+1E00-1EFF, U+20A0-20CF;
}

@font-face {
  font-family: "MUNI";
  src:
    local("MUNI Regular"),
    local("Muni Regular"),
    url("./assets/fonts/Muni-Regular.woff2") format("woff2"),
    url("./assets/fonts/Muni-Regular.woff") format("woff"),
    url("./assets/fonts/Muni-Regular.ttf") format("truetype"),
    url("./assets/fonts/Muni-Regular.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0100-024F, U+1E00-1EFF, U+20A0-20CF;
}

@font-face {
  font-family: "MUNI";
  src:
    local("MUNI Medium"),
    local("Muni Medium"),
    url("./assets/fonts/Muni-Medium.woff2") format("woff2"),
    url("./assets/fonts/Muni-Medium.woff") format("woff"),
    url("./assets/fonts/Muni-Medium.ttf") format("truetype"),
    url("./assets/fonts/Muni-Medium.otf") format("opentype");
  font-weight: 500 600;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0100-024F, U+1E00-1EFF, U+20A0-20CF;
}

@font-face {
  font-family: "MUNI";
  src:
    local("MUNI Bold"),
    local("Muni Bold"),
    url("./assets/fonts/Muni-Bold.woff2") format("woff2"),
    url("./assets/fonts/Muni-Bold.woff") format("woff"),
    url("./assets/fonts/Muni-Bold.ttf") format("truetype"),
    url("./assets/fonts/Muni-Bold.otf") format("opentype");
  font-weight: 700 950;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0100-024F, U+1E00-1EFF, U+20A0-20CF;
}

:root {
  --muni-font-stack: "MUNI", "Inter", "Segoe UI", Roboto, "Helvetica Neue", Arial, Helvetica, sans-serif;
}

html,
body,
button,
input,
select,
textarea,
#chapters,
#chapters *,
#tests,
#tests *,
#word-game,
#word-game *,
.chapter-card,
.chapter-card *,
.download-card,
.download-card *,
.theme-bg-card,
.theme-bg-card *,
.profile-level-item,
.profile-level-item * {
  font-family: var(--muni-font-stack) !important;
  font-synthesis: weight style !important;
}

.chapter-audio-box {
  margin: 0 0 18px;
  padding: 16px 18px;
  background: #fff;
  border: 1px solid var(--muni-line, #dcdcdc);
  border-left: 10px solid var(--muni-yellow, #007b69);
  color: #000;
}

.chapter-audio-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 12px;
}

.chapter-audio-head h4 {
  margin: 0 0 6px;
  color: #000;
  font-size: 18px;
  font-weight: 950;
  line-height: 1.15;
}

.chapter-audio-head p {
  margin: 0;
  color: #333;
  font-size: 13px;
  line-height: 1.45;
}

.chapter-audio-head code {
  color: var(--muni-blue, #0000dc);
  font-size: 12px;
  word-break: break-all;
}

.chapter-audio-box audio {
  display: block;
  width: 100%;
  min-height: 42px;
}

body.theme-dark .chapter-audio-box {
  background: rgba(12, 18, 27, .94);
  border-color: rgba(255, 255, 255, .14);
  color: #f3f7fc;
}

body.theme-dark .chapter-audio-head h4 {
  color: #f3f7fc;
}

body.theme-dark .chapter-audio-head p {
  color: #c8d0d8;
}

@media (max-width: 760px) {
  .chapter-audio-box {
    margin-bottom: 14px;
    padding: 14px;
  }

  .chapter-audio-head {
    display: block;
  }

  .chapter-audio-head h4 {
    font-size: 16px;
  }
}

/* ===== FONT FIX: MUNI pouze pro nadpisy ===== */
:root{
  --tommy-body-font: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, Helvetica, sans-serif;
  --tommy-heading-font: "MUNI", Arial, Helvetica, sans-serif;
}
html,
body,
body *,
#word-game,
#word-game * {
  font-family: var(--tommy-body-font) !important;
}
h1,
h2,
h3,
h4,
h5,
h6,
.brand h1,
.hero h2,
.section-head h2,
.reader-head h3,
.test-panel h3,
.question-panel-head h3,
.download-card h2,
.chapter-card h3,
.chapter-chat-head h4,
.word-game-head h2,
.word-game-leaderboard-head h3,
.footer strong {
  font-family: var(--tommy-heading-font) !important;
}
