/* 4. kolo · 1 Mozaika – mobile first. Inspirace esmedia: mozaika dlaždic, grotesk s čísly, #štítky, bento, pravítko. Vlastní barvy: soumrak (břidlice, švestka, písek) + měsíčková žlutá. */
:root {
  --pozadi: #fff; --plocha: #fff; --plocha-2: #f2f0f5; --text: #17141f; --tlumeny: #5c5868; --linka: #e3e0ea;
  --akcent: #f4b400; --akcent-text: #17141f; --odkaz: #4b3b8f; --vyrazny: #17141f;
  --m1: #5b5f7d; --m2: #6e5a78; --m3: #8a7f8f; --m4: #a59a86; --m5: #46506b;
  --pismo-nadpis: "Familjen Grotesk", system-ui, sans-serif; --pismo: "Familjen Grotesk", system-ui, sans-serif; --pismo-cteni: "Newsreader", Georgia, serif;
  --zaobleni: 0; --zaobleni-tl: 0;
}
html[data-theme="dark"] { --pozadi: #000; --plocha: #0e0d12; --plocha-2: #18161f; --text: #efedf4; --tlumeny: #aaa6b8; --linka: #2a2733; --odkaz: #b6a8ff; --vyrazny: #efedf4;
  --m1: #2b2e45; --m2: #3a2e42; --m3: #45404c; --m4: #4f4a40; --m5: #232a3c; }
h1, h2 { font-family: var(--pismo-nadpis); font-weight: 700; letter-spacing: -.02em; }
/* hlavička */
.mz-hlava, .rs-hlava, .rj-hlava { position: sticky; top: 0; z-index: 30; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem;
  padding: .7rem 1rem; background: var(--pozadi); border-bottom: 1px solid var(--linka); }
.mz-logo, .rs-logo, .rj-logo { display: inline-flex; align-items: center; gap: .5rem; color: var(--text); text-decoration: none; font: 700 1.25rem var(--pismo-nadpis); letter-spacing: -.02em; }
.mz-logo svg, .rs-logo svg, .rj-logo svg { width: 1.9rem; height: 1.9rem; }
.mz-menu-tl, .rs-menu-tl, .rj-menu-tl { padding: .45rem .9rem; border: 1px solid var(--text); background: none; color: var(--text); font: 600 .95rem var(--pismo); cursor: pointer; }
.mz-menu, .rs-menu, .rj-menu { display: none; flex-basis: 100%; flex-direction: column; padding: .5rem 0; }
.mz-menu.otevreno, .rs-menu.otevreno, .rj-menu.otevreno { display: flex; }
.mz-menu a, .rs-menu a, .rj-menu a { padding: .7rem 0; border-bottom: 1px solid var(--linka); color: var(--text); text-decoration: none; font: 600 1.15rem var(--pismo); }
.mz-menu a[aria-current="page"], .rs-menu a[aria-current="page"], .rj-menu a[aria-current="page"] { color: var(--odkaz); }
.mz-menu .odkaz-tl, .rs-menu .odkaz-tl, .rj-menu .odkaz-tl { align-self: flex-start; margin-top: .6rem; color: var(--tlumeny); font: 600 1rem var(--pismo); }
/* pravítko vpravo (na mobilu jen rysky) */
.pravitko { position: fixed; right: 4px; top: 50%; z-index: 25; transform: translateY(-50%); display: grid; gap: 10px; pointer-events: none; }
.pravitko span { display: flex; align-items: center; justify-content: flex-end; gap: .4rem; }
.pravitko i { display: block; width: 8px; height: 2px; background: var(--tlumeny); opacity: .5; transition: width .2s; }
.pravitko b { display: none; font: 600 .7rem var(--pismo); color: var(--text); }
.pravitko .ted i { width: 16px; opacity: 1; background: var(--akcent); }
/* mozaika */
.mz-mozaika { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(6, 1fr); grid-auto-rows: 1fr; overflow: hidden; }
.mz-dl { background: var(--b) center / 600% no-repeat; background-blend-mode: multiply; transition: background-color 1.2s; background-color: var(--b); }
.mz-dl[style*="url"] { filter: grayscale(1) contrast(1.2); }
.mz-uvod { position: relative; min-height: 88svh; display: grid; align-content: end; color: #fff; isolation: isolate; }
.mz-uvod .mz-mozaika { grid-template-rows: repeat(8, 1fr); z-index: -1; }
.mz-uvod .mz-dl:nth-child(n+49), .mz-detail__hlava .mz-dl:nth-child(n+25), .mz-prani .mz-dl:nth-child(n+19) { display: none; }  /* mobil: 6 sloupců */
.mz-uvod__text { padding: 2rem 1.2rem 4.5rem; background: linear-gradient(transparent, rgb(23 20 31 / .55) 30%); }
.mz-uvod h1 { margin: 0 0 1.4rem; font-size: clamp(3.2rem, 16vw, 7.5rem); line-height: .92; }
.cisla { display: grid; gap: .9rem; margin: 0; }
.cisla div { display: grid; grid-template-columns: minmax(5.2rem, auto) 1fr; align-items: center; gap: .8rem; }
.cisla dt { font: 700 2.6rem/1 var(--pismo-nadpis); letter-spacing: -.03em; text-align: right; white-space: nowrap; }
.cisla dd { margin: 0; font: 600 .95rem/1.25 var(--pismo); }
.mz-dolu { position: absolute; left: 50%; bottom: 1rem; transform: translateX(-50%); display: grid; place-items: center; width: 2.6rem; height: 2.6rem; border: 2px solid #fff; border-radius: 50%; color: #fff; text-decoration: none; }
/* sekce a štítky */
.mz-sekce { position: relative; padding: 3rem 1.2rem 0; isolation: isolate; }
.mz-stitek { margin: 0 0 1rem; font: 700 1.6rem var(--pismo-nadpis); color: var(--odkaz); letter-spacing: -.02em; }
.mz-nadpis { margin: 0 0 1.2rem; font-size: clamp(2rem, 9vw, 3.4rem); line-height: 1; }
.mz-dnes { display: grid; color: var(--text); text-decoration: none; }
.mz-dnes__obr { display: block; aspect-ratio: 4 / 3; overflow: hidden; background: #fff; }
.mz-dnes__obr img { width: 100%; height: 100%; object-fit: cover; }
.mz-dnes__text { display: grid; gap: .5rem; padding: 1.1rem 1.2rem 1.3rem; background: var(--vyrazny); color: var(--pozadi); }
.mz-dnes__text strong { font: 700 2.2rem/1 var(--pismo-nadpis); letter-spacing: -.02em; }
.mz-dnes__text em { font-style: normal; font-weight: 700; color: var(--akcent); }
.mz-sekce--tmava { margin-top: 3rem; padding-bottom: 3rem; background: var(--m5); color: #fff; }
.mz-sekce--tmava .mz-stitek { color: var(--akcent); }
.mz-cislovane { list-style: none; margin: 0; padding: 0; display: grid; }
.mz-cislovane a { display: grid; grid-template-columns: 2.2rem 1fr auto; grid-template-areas: "c n ik" "c d ik"; gap: .1rem .8rem; padding: 1.1rem 0; border-top: 1px solid rgb(255 255 255 / .25); color: inherit; text-decoration: none; }
.mz-c { grid-area: c; font: 600 .8rem var(--pismo); opacity: .7; padding-top: .3rem; }
.mz-cislovane strong { grid-area: n; font: 700 1.5rem var(--pismo-nadpis); }
.mz-cislovane span:last-child { grid-area: d; opacity: .8; font-size: .92rem; }
.mz-cislovane .ik { grid-area: ik; align-self: center; }
.mz-cislovane a:hover strong { color: var(--akcent); }
.ik { width: 2.4rem; height: 2.4rem; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.ik .a { stroke: var(--akcent); }
.mz-obory { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem .5rem; text-align: center; }
.mz-obory a { display: grid; justify-items: center; gap: .4rem; color: var(--text); text-decoration: none; font-weight: 700; }
.mz-obory .ik { width: 3.4rem; height: 3.4rem; }
.mz-obory small { color: var(--tlumeny); font-weight: 500; }
.mz-obory a:hover span { color: var(--odkaz); }
/* bento */
.bento { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5rem; grid-auto-flow: dense; }
.bento__dlazdice { position: relative; display: block; aspect-ratio: 1; overflow: hidden; background: var(--plocha-2); color: #fff; text-decoration: none; }
.bento__dlazdice--velka { grid-column: span 2; aspect-ratio: 4 / 3; }
.bento__obr { position: absolute; inset: 0; }
.bento__obr img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.bento__obr .bez-obr { background: var(--m3); color: #fff; font-size: 3rem; }
.bento__dlazdice:hover img { transform: scale(1.04); }
.bento__popis { position: absolute; left: .5rem; right: .5rem; bottom: .5rem; display: grid; justify-items: start; gap: .2rem; }
.bento__popis > * { padding: .15rem .45rem; background: rgb(23 20 31 / .88); }
.bento__popis .karta__nazev { font: 700 1rem/1.15 var(--pismo-nadpis); }
.bento__dlazdice--velka .karta__nazev { font-size: 1.5rem; }
.bento__popis .karta__perex { font-size: .85rem; -webkit-line-clamp: 2; color: #e5e2ee; }
.bento__popis .karta__meta { font-size: .72rem; color: var(--akcent); }
.bento__dlazdice[hidden] { display: none; }
.roh { position: absolute; top: 0; right: 0; width: 2.2rem; height: 2.2rem; background: var(--akcent); }
.mz-vse { margin: 1.5rem 0 0; }
.tl { font-family: var(--pismo); }
.mz-prani { margin-top: 3rem; padding-bottom: 3rem; color: #fff; }
.mz-prani .mz-mozaika { z-index: -1; grid-template-columns: repeat(6, 1fr); }
.mz-prani > div:last-child { position: relative; padding: 1.4rem; background: rgb(23 20 31 / .82); }
.mz-prani h2 { font-size: 2rem; line-height: 1.05; margin: 0 0 .6rem; }
.mz-prani .mz-stitek { color: var(--akcent); }
.mz-prani .tl--obrys { color: #fff; }
.reklama { padding: 0 1.2rem; }
/* detail */
.mz-detail__hlava { position: relative; min-height: 60svh; display: grid; align-content: end; color: #fff; isolation: isolate; }
.mz-detail__hlava .mz-mozaika { z-index: -1; grid-template-rows: repeat(4, 1fr); }
.mz-detail__hlava .mz-dl[style*="url"] { background-size: 600%; }
.mz-detail__text { padding: 2rem 1.2rem 1.6rem; background: linear-gradient(transparent, rgb(23 20 31 / .75) 25%); }
.mz-detail__text .mz-stitek { color: var(--akcent); }
.mz-detail__titulek { margin: 0 0 1.2rem; font-size: clamp(2.8rem, 13vw, 6rem); line-height: .95; }
.mz-cteni { padding-top: 1.5rem; }
.mz-cteni .pohadka__text { font-size: 1.25rem; }
.mz-cteni .pohadka__obr img { border-radius: 0; }
.mz-filtry button { border-radius: 0 !important; }
.mz-filtry button[data-filtr]::before { content: "#"; opacity: .5; }
.mz-filtry .filtry__nadpis { font-family: var(--pismo-nadpis); }
.mz-pata, .rs-pata, .rj-pata { margin-top: 4rem; padding: 2rem 1.2rem 2.5rem; background: var(--vyrazny); color: var(--pozadi); }
.mz-pata__velke, .rs-pata__velke, .rj-pata__velke { margin: 0 0 1rem; font: 700 clamp(3rem, 16vw, 8rem)/.9 var(--pismo-nadpis); letter-spacing: -.04em; }
.mz-pata a, .mz-pata .odkaz-tl, .rs-pata a, .rs-pata .odkaz-tl, .rj-pata a, .rj-pata .odkaz-tl { color: inherit; }
.nahoru { right: 30px; }
@media (min-width: 760px) {
  .mz-hlava, .rs-hlava, .rj-hlava { padding: 1rem 2.5rem; flex-wrap: nowrap; }
  .mz-menu-tl, .rs-menu-tl, .rj-menu-tl { display: none; }
  .mz-menu, .rs-menu, .rj-menu { display: flex; flex-direction: row; flex-basis: auto; gap: 1.6rem; padding: 0; align-items: center; }
  .mz-menu a, .rs-menu a, .rj-menu a { padding: .2rem 0; border: 0; font-size: 1rem; }
  .mz-menu .odkaz-tl, .rs-menu .odkaz-tl, .rj-menu .odkaz-tl { margin: 0; }
  .pravitko { right: 14px; }
  .pravitko b { display: inline; opacity: 0; transition: opacity .2s; }
  .pravitko .ted b { opacity: 1; }
  .mz-mozaika { grid-template-columns: repeat(12, 1fr); }
  .mz-uvod .mz-mozaika { grid-template-rows: repeat(6, 1fr); }
  .mz-uvod .mz-dl:nth-child(n+49), .mz-prani .mz-dl:nth-child(n+19) { display: block; }
  .mz-detail__hlava .mz-dl:nth-child(n+25) { display: none; }
  .mz-detail__hlava .mz-mozaika { grid-template-rows: repeat(2, 1fr); }
  .mz-prani .mz-mozaika { grid-template-rows: repeat(2, 1fr); }
  .mz-uvod { min-height: calc(100vh - 4rem); align-content: center; }
  .mz-uvod__text { display: grid; grid-template-columns: 1.3fr 1fr; align-items: center; gap: 2rem; max-width: 1200px; margin: 0 auto; width: 100%; padding: 2rem 2.5rem; background: none; }
  .mz-uvod h1 { margin: 0; }
  .mz-uvod__text, .mz-detail__text { text-shadow: 0 2px 30px rgb(0 0 0 / .4); }
  .mz-sekce { max-width: 1200px; margin-left: auto; margin-right: auto; padding: 5rem 2.5rem 0; }
  .mz-sekce--tmava, .mz-prani { max-width: none; padding-left: max(2.5rem, calc(50% - 560px)); padding-right: max(2.5rem, calc(50% - 560px)); }
  .mz-dnes { grid-template-columns: 1.2fr 1fr; }
  .mz-dnes__text { align-content: end; padding: 2rem; }
  .mz-dnes__text strong { font-size: 3.4rem; }
  .mz-cislovane { grid-template-columns: repeat(3, 1fr); column-gap: 2rem; }
  .mz-obory { grid-template-columns: repeat(6, 1fr); }
  .bento { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
  .bento__dlazdice--velka { grid-row: span 2; aspect-ratio: auto; }
  .mz-prani > div:last-child { max-width: 34rem; padding: 2.5rem; }
  .mz-detail__text { max-width: 1200px; margin: 0 auto; width: 100%; padding: 3rem 2.5rem; background: none; }
  .mz-detail__text .cisla { grid-template-columns: repeat(3, auto); justify-content: start; gap: 2.5rem; }
  .mz-pata, .rs-pata, .rj-pata { padding: 3rem max(2.5rem, calc(50% - 560px)); }
  .reklama { max-width: 1200px; margin-left: auto; margin-right: auto; padding: 0 2.5rem; }
}

/* Nízká hlavička (uživatel 13. 10.: „moc přeplácaná, 6 řad → 2“): mozaika jen jako pás 2 řad čtvercových dlaždic
   (mobil 6 × 2, počítač 12 × 2), nadpis a čísla pod ní na bílé. Stejně u pohádky; pohádka na přání 1 řada. */
.mz-mozaika { position: static; grid-template-rows: none !important; grid-auto-rows: auto; }
.mz-dl { aspect-ratio: 1; }
.mz-uvod .mz-dl:nth-child(n+13), .mz-detail__hlava .mz-dl:nth-child(n+13), .mz-prani .mz-dl:nth-child(n+7) { display: none; }
.mz-uvod, .mz-detail__hlava { min-height: 0; display: block; color: var(--text); }
.mz-uvod__text, .mz-detail__text { padding: 1.8rem 1.2rem 0; background: none; text-shadow: none; }
.mz-uvod h1 { font-size: clamp(2.6rem, 12vw, 5.2rem); }
.mz-dolu { display: none; }
.mz-detail__text .mz-stitek, .mz-prani .mz-stitek { color: var(--odkaz); }
.mz-detail__titulek { font-size: clamp(2.6rem, 12vw, 5rem); }
.mz-prani { color: var(--text); padding-bottom: 0; }
.mz-prani > div:last-child { padding: 1.4rem 0 0; background: none; }
.mz-prani .tl--obrys { color: var(--vyrazny); }
@media (min-width: 760px) {
  .mz-uvod .mz-dl:nth-child(n+13), .mz-detail__hlava .mz-dl:nth-child(n+13) { display: block; }
  .mz-uvod .mz-dl:nth-child(n+25), .mz-detail__hlava .mz-dl:nth-child(n+25) { display: none; }
  .mz-prani .mz-dl:nth-child(n+7) { display: block; }
  .mz-prani .mz-dl:nth-child(n+13) { display: none; }
  .mz-uvod__text { padding: 3rem 2.5rem 0; }
  .mz-detail__text { padding: 2.5rem 2.5rem 0; }
  .mz-uvod__text, .mz-detail__text { text-shadow: none; }
  .mz-prani > div:last-child { max-width: none; padding: 2rem 0 0; }
}

/* Nápis a čísla zpět v mozaice (uživatel 13. 10.), pás zůstává nízký: 2 řady. Mobil: dlaždice 3 : 4, ať se nápis vejde. */
.mz-uvod { position: relative; }
.mz-uvod .mz-dl { aspect-ratio: 3 / 4; }
.mz-uvod__text { position: absolute; inset: 0; display: grid; align-content: center; gap: .5rem; padding: 1rem 1.2rem;
  background: linear-gradient(90deg, rgb(23 20 31 / .78), rgb(23 20 31 / .45)); color: #fff; }
.mz-uvod h1 { margin: 0; font-size: clamp(1.9rem, 8.5vw, 4.4rem); line-height: 1; }
.mz-uvod .cisla { display: flex; flex-wrap: wrap; gap: .2rem 1.1rem; }
.mz-uvod .cisla div { display: flex; align-items: baseline; gap: .35rem; }
.mz-uvod .cisla dt { font-size: 1.35rem; color: var(--akcent); }
.mz-uvod .cisla dd { font-size: .85rem; font-weight: 600; }
/* #štítky u pohádek (ne v nadpisech) */
.tagy { display: flex; flex-wrap: wrap; gap: .4rem; margin: .2rem 0 1rem; }
.tagy a { padding: .25rem .65rem; background: var(--plocha-2); color: var(--odkaz); font: 600 .88rem var(--pismo); text-decoration: none; }
.tagy a:hover { background: var(--odkaz); color: var(--pozadi); }
.rs-nadpis { margin: 0 0 1rem; font: 800 clamp(1.6rem, 6vw, 2.2rem) var(--pismo-nadpis); }
@media (min-width: 760px) {
  .mz-uvod .mz-dl { aspect-ratio: 1; }
  .mz-uvod__text { padding: 2rem max(2.5rem, calc(50% - 560px)); grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 1rem 3.5rem;
    background: linear-gradient(90deg, rgb(23 20 31 / .82) 30%, rgb(23 20 31 / .35)); }
  .mz-uvod h1 { font-size: clamp(2.6rem, 4.2vw, 4.4rem); max-width: 12em; }
  .mz-uvod .cisla { flex-direction: column; gap: .4rem; }
  .mz-uvod .cisla dt { font-size: 2.4rem; min-width: 3.6rem; text-align: right; }
  .mz-uvod .cisla dd { font-size: 1rem; }
}
/* detail: čísla v jednom řádku i na mobilu */
.mz-detail__text .cisla { display: flex; flex-wrap: wrap; gap: .3rem 1.4rem; margin-bottom: .5rem; }
.mz-detail__text .cisla div { display: flex; align-items: baseline; gap: .35rem; }
.mz-detail__text .cisla dt { font-size: 1.8rem; }

/* Pohádka na přání v mozaice (uživatel 13. 10.): na úvodu pás 2 řad s nápisem uvnitř, na podstránce stejná hlavička jako úvod. */
.mz-prani { position: relative; padding: 0; margin-top: 3rem; }
.mz-prani .mz-dl:nth-child(n+7) { display: block; }
.mz-prani .mz-dl:nth-child(n+13) { display: none; }
.mz-prani .mz-dl { aspect-ratio: 3 / 4; }
.mz-v-mozaice { position: absolute; inset: 0; display: grid; align-content: center; gap: .4rem; padding: 1rem 1.2rem !important;
  background: linear-gradient(90deg, rgb(23 20 31 / .82), rgb(23 20 31 / .5)) !important; color: #fff; }
.mz-v-mozaice h2 { margin: 0; font-size: clamp(1.7rem, 7vw, 3.2rem); line-height: 1; }
.mz-v-mozaice p { margin: 0; font-size: .92rem; line-height: 1.35; max-width: 36rem; }
.mz-v-mozaice .tl { justify-self: start; margin-top: .3rem; min-height: 2.4rem; padding: .35rem 1rem; }
.mz-uvod__perex { margin: 0; font-size: .95rem; line-height: 1.4; max-width: 40rem; }
.mz-uvod--podstrana h1 { font-size: clamp(1.9rem, 8vw, 4rem); }
/* obrázky budou jiné než dnešní perokresby: dlaždice převedou jakýkoli obrázek (i barevnou malbu) do tónu mozaiky */
.mz-dl[style*="url"] { filter: grayscale(1) contrast(1.15) brightness(1.05); }
/* menší logo v patičce (uživatel 13. 10.) */
.mz-pata__velke, .rs-pata__velke, .rj-pata__velke { font-size: clamp(1.8rem, 7vw, 2.6rem); letter-spacing: -.02em; margin-bottom: .6rem; }
@media (min-width: 760px) {
  .mz-prani { max-width: none; padding: 0; }
  .mz-prani .mz-dl { aspect-ratio: 1; }
  .mz-prani .mz-dl:nth-child(n+13) { display: block; }
  .mz-prani .mz-dl:nth-child(n+25) { display: none; }
  .mz-v-mozaice { padding: 2rem max(2.5rem, calc(50% - 560px)) !important; grid-template-columns: minmax(0, 1fr) auto; align-items: center; column-gap: 3rem; }
  .mz-v-mozaice h2, .mz-v-mozaice p { grid-column: 1; }
  .mz-v-mozaice .tl { grid-column: 2; grid-row: 1 / span 2; align-self: center; }
  .mz-v-mozaice p { font-size: 1.05rem; }
  .mz-uvod--podstrana .mz-uvod__text { grid-template-columns: 1fr; }
}
.mz-prani > div.mz-v-mozaice:last-child { position: absolute; inset: 0; max-width: none; }
.mz-prani .mz-mozaika { z-index: auto; }
@media (min-width: 760px) { .mz-prani .mz-mozaika { grid-template-columns: repeat(12, 1fr); } }

/* ---------- jen v šabloně (WordPress) ---------- */
.mz-stranka { padding-top: 2.5rem; }
.mz-stranka .pohadka__titulek { font-size: clamp(2.2rem, 9vw, 3.4rem); }
.mz-sekce .hledani { margin-top: 0; }
.mz-sekce .velke-cislo { margin-bottom: .5rem; }
.mz-kroky { margin: 0; padding-left: 1.4rem; display: grid; gap: 1rem; max-width: 42rem; font-size: 1.1rem; }
.mz-kroky strong { display: block; font: 700 1.25rem var(--pismo-nadpis); }
.mz-komentare .komentare-obal { max-width: 40rem; }
.mz-komentare .mz-nadpis small { font-size: .6em; color: var(--tlumeny); }
.zapisy { list-style: none; }
.zapis .children { list-style: none; margin: 1rem 0 0; padding-left: 1rem; border-left: 3px solid var(--linka); }
.komentare__nadpis { font: 700 1.3rem var(--pismo-nadpis); margin: 2rem 0 .8rem; }
.comment-form p { margin: 0; display: grid; gap: .35rem; }
.comment-form label { font-weight: 600; }
.comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"], .comment-form textarea {
  width: 100%; padding: .7rem .85rem; border: 1px solid var(--linka); background: var(--plocha); color: var(--text); font: inherit; }
.comment-form .comment-form-url { display: none; }
.comment-form .comment-form-cookies-consent { display: flex; gap: .5rem; align-items: flex-start; font-size: .9rem; }
.comment-form .form-submit { margin-top: .5rem; }
.pohadka__text img { height: auto; }
.pohadka__text .wp-block-image { margin: 1.5rem 0; }
.bez-obr { background: var(--m3); color: #fff; }
/* detail: nadpis, štítky a čísla ve stejném sloupci jako text pohádky */
@media (min-width: 760px) { .mz-detail__text { max-width: calc(var(--cteni) + 2rem); padding-left: 1rem; padding-right: 1rem; } }
/* oprava: pás přes celou šířku (starší max-width 1200px + okraje počítané z šířky stránky = na monitoru 2560 px nulový sloupec) */
@media (min-width: 760px) { .mz-uvod__text { max-width: none; margin: 0; width: auto; } }

/* Patička jako rozcestí (uživatel 13. 10.: „využij chytřeji patičku“) */
.mz-pata { padding: 2.5rem 1.2rem 1.5rem; }
.mz-pata__mrizka { display: grid; gap: 2rem 1.5rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.mz-pata__o { grid-column: 1 / -1; display: grid; gap: .9rem; justify-items: start; }
.mz-logo--pata { color: inherit; }
.mz-pata__o p { margin: 0; max-width: 30rem; opacity: .85; }
.mz-pata__dnes { display: grid; gap: .1rem; padding: .8rem 1rem; border-left: 4px solid var(--akcent); background: rgb(255 255 255 / .06); color: inherit; text-decoration: none; }
.mz-pata__dnes span { font-size: .85rem; opacity: .75; }
.mz-pata__dnes strong { font: 700 1.3rem var(--pismo-nadpis); }
.mz-pata__dnes:hover strong { color: var(--akcent); }
.mz-pata__nahodna { color: inherit; border-color: currentColor; }
/* tmavá patička: světlé pozadí z .tl--obrys:hover by text zneviditelnilo (uživatel 15. 10.) */
.mz-pata__nahodna:hover { background: rgb(255 255 255 / .14); color: inherit; }
.mz-pata__nadpis { margin: 0 0 .6rem; font: 700 .85rem var(--pismo); text-transform: uppercase; letter-spacing: .08em; color: var(--akcent); }
.mz-pata__sloupec ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .45rem; }
.mz-pata__sloupec a, .mz-pata__sloupec .odkaz-tl { color: inherit; text-decoration: none; font: inherit; }
.mz-pata__sloupec a:hover, .mz-pata__sloupec .odkaz-tl:hover { color: var(--akcent); text-decoration: underline; }
.mz-pata__sloupec span { opacity: .55; font-size: .85em; }
.mz-pata__spodek { margin: 2rem 0 0; padding-top: 1rem; border-top: 1px solid rgb(255 255 255 / .15); font-size: .85rem; opacity: .7; }
@media (min-width: 760px) {
  .mz-pata { padding: 3.5rem max(2.5rem, calc(50% - 560px)) 1.5rem; }
  .mz-pata__mrizka { grid-template-columns: 1.6fr repeat(4, minmax(0, 1fr)); gap: 2rem; }
  .mz-pata__o { grid-column: auto; }
}

/* Nástroje čtení v hlavičce (uživatel 13. 10.): A−, A+, den/noc, tisk – na každé stránce, ne nad textem */
.mz-nastroje { display: flex; align-items: center; gap: .1rem; margin-left: auto; }
.mz-nastroje button { display: inline-grid; place-items: center; min-width: 2.5rem; height: 2.5rem; padding: 0 .35rem; border: 0; background: none; color: var(--text);
  font: 700 .95rem var(--pismo); cursor: pointer; }
.mz-nastroje button:hover { background: var(--plocha-2); }
.mz-nastroje svg { width: 1.2rem; height: 1.2rem; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; }
.mz-nastroje [data-rezim] svg { fill: currentColor; stroke: none; }
.mz-hlava { gap: .3rem .5rem; }
@media (max-width: 759px) { .mz-nastroje { order: 2; } .mz-menu-tl { order: 3; } .mz-menu { order: 4; } }
@media (min-width: 760px) { .mz-nastroje { order: 3; margin-left: .8rem; padding-left: .8rem; border-left: 1px solid var(--linka); } .mz-menu { margin-left: auto; } }
@media (max-width: 759px) {
  .mz-nastroje [data-tisk] { display: none; }  /* z telefonu se netiskne; hlavička se vejde do jednoho řádku */
  .mz-nastroje button { min-width: 2.15rem; padding: 0 .2rem; }
  .mz-logo { font-size: 1.15rem; }
}
/* Kolik máme času: stejná mezera nahoře i dole (desktopové pravidlo .mz-sekce dávalo dole 0) */
.mz-sekce--tmava { padding-top: 2.5rem; padding-bottom: 2.5rem; }
.mz-sekce--tmava .mz-nadpis { margin-bottom: .8rem; }
.mz-sekce--tmava .mz-cislovane li:last-child a { padding-bottom: 0; }
@media (min-width: 760px) { .mz-sekce--tmava { padding-top: 3.5rem; padding-bottom: 3.5rem; } }
/* Pohádka na přání jako poslední blok stránky: bez spodní mezery z main > :last-child (jinak tmavý překryv sahá pod mozaiku) */
main > .mz-prani:last-child, .mz-prani { padding-bottom: 0 !important; margin-bottom: 0; }
.mz-prani .mz-mozaika { display: grid; }

/* Hlavička (uživatel 13. 10.): hledání jako ikona, tisk v horním menu i na mobilu; na mobilu A−/A+ v rozbaleném menu */
.mz-nastroje a { display: inline-grid; place-items: center; min-width: 2.5rem; height: 2.5rem; color: var(--text); }
.mz-nastroje a:hover, .mz-nastroje a[aria-current="page"] { background: var(--plocha-2); }
.mz-nastroje__hledat svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.mz-menu__pismo { display: none; }
@media (max-width: 759px) {
  .mz-nastroje [data-tisk] { display: inline-grid; }
  .mz-nastroje [data-pismo-zmen] { display: none; }
  .mz-nastroje button, .mz-nastroje a { min-width: 2.3rem; padding: 0 .15rem; }
  .mz-menu.otevreno .mz-menu__pismo { display: flex; align-items: center; gap: .4rem; padding: .7rem 0; }
  .mz-menu__pismo span { font-weight: 600; margin-right: .4rem; }
  .mz-menu__pismo button { min-width: 2.8rem; height: 2.5rem; border: 1px solid var(--linka); background: var(--plocha); color: var(--text); font: 700 1rem var(--pismo); cursor: pointer; }
}

/* Detail pohádky (uživatel 13. 10.): název, drobečky, štítky a čísla v mozaice; bez zdvojeného „min čtení“ */
.mz-detail__hlava { position: relative; }
.mz-detail__hlava .mz-dl { aspect-ratio: 3 / 5; }
.mz-detail__hlava .mz-detail__text { position: absolute; inset: 0; display: grid; align-content: center; gap: .45rem; max-width: none !important; margin: 0;
  padding: .8rem 1.2rem; background: linear-gradient(90deg, rgb(23 20 31 / .85), rgb(23 20 31 / .55)); color: #fff; }
.mz-detail__text .drobky, .mz-detail__text .drobky a { color: #e3e0ea; font-size: .82rem; }
.mz-detail__text .mz-detail__titulek { margin: 0; font-size: clamp(1.9rem, 8vw, 4.2rem); line-height: 1; color: #fff; }
.mz-detail__text .tagy { margin: 0; }
.mz-detail__text .tagy a { background: rgb(255 255 255 / .14); color: #fff; }
.mz-detail__text .tagy a:hover { background: var(--akcent); color: #17141f; }
.mz-detail__text .cisla dt { color: var(--akcent); }
.mz-detail__text .cisla dd { color: #fff; }
.mz-cteni { padding-top: 2rem; }
@media (min-width: 760px) {
  .mz-detail__hlava .mz-dl { aspect-ratio: 1; }
  .mz-detail__hlava .mz-detail__text { padding: 1.5rem max(2.5rem, calc(50% - var(--cteni) / 2 - 1rem)); }
}

/* Detail pohádky (uživatel 13. 10.): obrázek na desktopu větší – přes celou šířku textu, na širokých obrazovkách přesah do stran */
.mz-cteni .pohadka__obr img, .pohadka__obr img { width: 100%; max-width: none; height: auto; border-radius: 0; }
@media (min-width: 1100px) {
  .mz-cteni .pohadka__obr { width: min(64rem, calc(100vw - 6rem)); margin-left: 50%; transform: translateX(-50%); }
}

.mz-pata__ai { margin: 2rem 0 0; font-size: .85rem; opacity: .7; }
.mz-pata__ai + .mz-pata__spodek { margin-top: .8rem; }

/* Uživatel 14. 10.: dlaždice mozaiky (pod nadpisy v detailu, úvod, podstránky, na přání) tmavší; drobečky víc roztažené */
.mz-mozaika { filter: brightness(.55) saturate(.85); }
.drobky span { margin: 0 .7em; opacity: .7; }
.mz-detail__text .drobky, .mz-detail__text .drobky a { font-size: .9rem; letter-spacing: .03em; }
.mz-detail__text .drobky { margin-bottom: .4rem; }

/* Velká dlaždice na desktopu (2 × 2): výška nesmí záviset na sousedech – sama ve výsledku filtru se jinak sesypala na proužek (uživatel 14. 10.) */
@media (min-width: 760px) { .bento__dlazdice--velka { aspect-ratio: 1; } }
