/*
Theme Name: Mix24
Theme URI: https://www.mix24.cz/
Author: Mix24.cz
Description: Klidná editorial šablona pro Mix24.cz – velké fotky, patkové titulky, hodně vzduchu.
Version: 1.0.0
Requires at least: 6.4
Requires PHP: 7.4
Text Domain: mix24
*/

/* ---------- Fonty ---------- */
@font-face { font-family: 'Newsreader'; font-style: normal; font-weight: 200 800; font-display: swap;
  src: url(assets/fonts/newsreader-latin-opsz-normal.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Newsreader'; font-style: normal; font-weight: 200 800; font-display: swap;
  src: url(assets/fonts/newsreader-latin-ext-opsz-normal.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Newsreader'; font-style: italic; font-weight: 200 800; font-display: swap;
  src: url(assets/fonts/newsreader-latin-opsz-italic.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Newsreader'; font-style: italic; font-weight: 200 800; font-display: swap;
  src: url(assets/fonts/newsreader-latin-ext-opsz-italic.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url(assets/fonts/inter-latin-wght-normal.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url(assets/fonts/inter-latin-ext-wght-normal.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

/* ---------- Tokeny ---------- */
:root {
  --paper: #FBFAF7;
  --paper-2: #F3EFE7;
  --white: #FFFFFF;
  --ink: #141414;
  --ink-2: #2F2D2A;
  --muted: #6B665F;
  --rule: #E3DDD2;
  --rule-strong: #141414;
  --red: #B3121F;
  --red-dark: #8E0E18;
  --serif: 'Newsreader', 'Iowan Old Style', Georgia, 'Times New Roman', serif;
  --sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --wrap: 1240px;
  --gut: clamp(16px, 3vw, 32px);
  --gap: clamp(20px, 2.4vw, 32px);
  --radius: 2px;
}

/* ---------- Základ ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 64px; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 16px/1.55 var(--sans);
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  font-feature-settings: 'kern', 'liga';
}
body.no-scroll { overflow: hidden; }
img, svg, video, iframe { max-width: 100%; }
img { height: auto; display: block; }
a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }
h1, h2, h3, h4, h5, h6 { margin: 0; font-family: var(--serif); font-weight: 600; line-height: 1.15; letter-spacing: -0.01em; }
p { margin: 0; }
button { font: inherit; color: inherit; }
.sr, .screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--paper); padding: 10px 16px; z-index: 100; }
.skip-link:focus { left: 8px; }
.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gut)); margin-inline: auto; padding-inline: var(--gut); }
.dot { margin: 0 .4em; color: var(--rule); }

.icon-btn { display: inline-grid; place-items: center; width: 40px; height: 40px; border: 0; background: none; cursor: pointer; border-radius: 50%; color: var(--ink); }
.icon-btn:hover { background: var(--paper-2); }

/* ---------- Hlavička ---------- */
.topbar { border-bottom: 1px solid var(--rule); font-size: 12.5px; color: var(--muted); }
.topbar__inner { display: flex; justify-content: space-between; align-items: center; min-height: 36px; gap: 16px; }
.topbar__links { display: flex; gap: 20px; }
.topbar__links a:hover { color: var(--ink); }

.masthead { padding: clamp(18px, 3vw, 34px) 0 clamp(14px, 2vw, 22px); text-align: center; }
.masthead__inner { display: grid; grid-template-columns: 48px 1fr 48px; align-items: center; }
.masthead__logo { justify-self: center; display: block; }
.masthead__logo img { height: clamp(40px, 6.2vw, 72px); width: auto; }
.masthead__menu { visibility: hidden; }
.masthead__tagline { margin-top: 8px; font: italic 400 clamp(15px, 1.5vw, 17px)/1.3 var(--serif); color: var(--muted); }

.search-panel { border-top: 1px solid var(--rule); padding: 16px 0; background: var(--paper-2); }
.search-form { display: flex; gap: 8px; max-width: 640px; margin-inline: auto; }
.search-form__input { flex: 1; min-width: 0; padding: 12px 14px; font: 400 16px var(--sans); border: 1px solid var(--rule); background: var(--white); border-radius: var(--radius); color: var(--ink); }
.search-form__btn, .btn, .comment-form .submit {
  display: inline-block; padding: 12px 20px; border: 1px solid var(--ink); background: var(--ink); color: var(--paper);
  font: 600 14px var(--sans); letter-spacing: .01em; border-radius: var(--radius); cursor: pointer; transition: background .15s, color .15s;
}
.search-form__btn:hover, .btn:hover, .comment-form .submit:hover { background: var(--red); border-color: var(--red); }

/* Rubriková lišta */
.nav { position: sticky; top: 0; z-index: 40; background: var(--paper); border-top: 1px solid var(--rule-strong); border-bottom: 1px solid var(--rule); box-shadow: inset 0 3px 0 -2px var(--paper), inset 0 4px 0 -2px var(--rule-strong); }
.admin-bar .nav { top: 32px; }
@media (max-width: 782px) { .admin-bar .nav { top: 0; } }
.nav__inner { display: flex; align-items: center; gap: 12px; min-height: 52px; }
.nav__mini-logo { flex: none; width: 0; opacity: 0; overflow: hidden; transition: width .25s, opacity .25s; }
.nav__mini-logo img { height: 22px; width: auto; max-width: none; }
.nav.is-stuck .nav__mini-logo { width: 112px; opacity: 1; }
.nav.is-stuck { box-shadow: 0 1px 0 var(--rule), 0 6px 18px -12px rgba(20,20,20,.25); }
.nav__scroll { flex: 1; min-width: 0; overflow-x: auto; scrollbar-width: none; -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 12px, #000 calc(100% - 24px), transparent); mask-image: linear-gradient(90deg, transparent 0, #000 12px, #000 calc(100% - 24px), transparent); }
.nav__scroll::-webkit-scrollbar { display: none; }
.nav__list { list-style: none; margin: 0; padding: 0 12px; display: flex; gap: clamp(12px, 1.25vw, 20px); justify-content: safe center; white-space: nowrap; }
.nav__list a { display: block; padding: 15px 0 13px; font: 500 14px var(--sans); letter-spacing: -0.005em; color: var(--ink-2); border-bottom: 2px solid transparent; }
.nav__list a:hover { color: var(--ink); border-bottom-color: var(--rule-strong); }
.nav__list a[aria-current], .nav__list .current-menu-item > a, .nav__list .current-category-ancestor > a { color: var(--red); border-bottom-color: var(--red); }
.nav__search { flex: none; opacity: 0; pointer-events: none; transition: opacity .2s; }
.nav.is-stuck .nav__search { opacity: 1; pointer-events: auto; }

/* Mobilní menu */
.drawer { position: fixed; inset: 0; z-index: 90; }
.drawer[hidden] { display: none; }
.drawer__backdrop { position: absolute; inset: 0; background: rgba(20,20,20,.45); }
.drawer__panel { position: absolute; inset: 0 auto 0 0; width: min(86vw, 360px); background: var(--paper); overflow-y: auto; padding: 16px 20px 40px; z-index: 1; animation: slidein .22s ease-out; }
@keyframes slidein { from { transform: translateX(-100%); } }
.drawer__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.drawer__head img { height: 26px; width: auto; }
.drawer__label { margin: 26px 0 6px; font: 600 11.5px var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.drawer__list { list-style: none; margin: 0; padding: 0; }
.drawer__list a { display: block; padding: 11px 0; border-bottom: 1px solid var(--rule); font: 600 20px/1.2 var(--serif); }
.drawer__list--small a { font: 500 15px var(--sans); }

/* ---------- Karty ---------- */
.kicker { display: inline-block; margin-bottom: 8px; font: 600 11.5px/1.2 var(--sans); letter-spacing: .09em; text-transform: uppercase; color: var(--red); }
a.kicker:hover { color: var(--red-dark); }
.kicker--pr { color: var(--muted); }

.card { position: relative; display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.card__media { display: block; overflow: hidden; background: var(--paper-2); aspect-ratio: 3 / 2; }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.card:hover .card__media img { transform: scale(1.025); }
.card__media .ph { display: grid; place-items: center; height: 100%; }
.card__media .ph img { width: 44px; height: 44px; opacity: .25; transform: none !important; }
.card__title { font-size: 20px; line-height: 1.22; font-weight: 600; text-wrap: pretty; }
.card__title a { background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .3s; }
.card__title a:hover { background-size: 100% 1px; }
.card__excerpt { margin-top: 8px; font: 400 16.5px/1.5 var(--serif); color: var(--ink-2); }
.card__meta { margin-top: 10px; font: 400 13px var(--sans); color: var(--muted); }
.card--pr .card__title { font-style: italic; }

.card--lead { gap: 20px; }
.card--lead .card__media { aspect-ratio: 16 / 10; }
.card--lead .card__title { font-size: clamp(30px, 3.5vw, 46px); line-height: 1.06; letter-spacing: -0.02em; font-weight: 600; }
.card--lead .card__excerpt { font-size: clamp(17px, 1.4vw, 19.5px); line-height: 1.5; margin-top: 14px; max-width: 60ch; }

.card--feature .card__media { aspect-ratio: 16 / 10; }
.card--feature .card__title { font-size: clamp(24px, 2.4vw, 32px); line-height: 1.1; letter-spacing: -0.015em; }
.card--feature .card__excerpt { font-size: 17.5px; }

.card--compact { flex-direction: row; gap: 14px; align-items: flex-start; }
.card--compact .card__media { flex: none; width: 104px; aspect-ratio: 1; }
.card--compact .card__title { font-size: 17px; }
.card--compact .kicker { margin-bottom: 4px; }
.card--compact .card__meta { margin-top: 6px; }

.card--text .card__title { font-size: 19px; }
.card--text .card__excerpt { font-size: 15.5px; }

.card--list .card__title { font-size: 17px; line-height: 1.28; }
.card--list .card__meta { margin-top: 4px; font-size: 12.5px; }

.card--opinion { padding: 4px 0 0; }
.card--opinion .card__author { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; font: 600 13.5px var(--sans); }
.card--opinion .avatar { width: 36px; height: 36px; border-radius: 50%; filter: grayscale(1); }
.card--opinion .card__title { font-size: 21px; font-style: italic; font-weight: 500; line-height: 1.25; }
.card--opinion .card__title::before { content: '„'; color: var(--red); }
.card--opinion .card__title::after { content: '“'; color: var(--red); }

.card--row { display: grid; grid-template-columns: minmax(0, 300px) 1fr; gap: 24px; padding-block: 26px; border-top: 1px solid var(--rule); }
.card--row .card__title { font-size: clamp(20px, 1.9vw, 25px); line-height: 1.18; }
.card--row .card__excerpt { font-size: 16.5px; }

/* ---------- Titulka ---------- */
.hero {
  display: grid; gap: var(--gap); padding-top: clamp(24px, 3.2vw, 40px); padding-bottom: clamp(32px, 4vw, 56px);
  grid-template-columns: minmax(0, 1fr) minmax(0, 2.05fr) minmax(0, .95fr);
  grid-template-areas: 'side lead latest';
}
.hero__lead { grid-area: lead; }
.hero__side { grid-area: side; display: flex; flex-direction: column; gap: 26px; padding-right: var(--gap); border-right: 1px solid var(--rule); }
.hero__side .card + .card { padding-top: 24px; border-top: 1px solid var(--rule); }
.hero__latest { grid-area: latest; padding-left: var(--gap); border-left: 1px solid var(--rule); }
.latest__title { display: flex; align-items: center; gap: 8px; padding-bottom: 10px; margin-bottom: 4px; border-bottom: 2px solid var(--ink); font: 700 12px var(--sans); letter-spacing: .1em; text-transform: uppercase; }
.latest__list { list-style: none; margin: 0; padding: 0; }
.latest__list li { padding: 14px 0; border-bottom: 1px solid var(--rule); }
.latest__list li:last-child { border-bottom: 0; }
.latest__time { display: block; margin-bottom: 3px; font: 600 12px var(--sans); color: var(--red); font-variant-numeric: tabular-nums; }
.latest__list a { font: 600 16.5px/1.28 var(--serif); }
.latest__list a:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }

/* Pásy a sekce */
.band { padding: clamp(36px, 4.5vw, 60px) 0; }
.band--opinion { background: var(--paper-2); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.band--opinion .grid--4 > .card + .card { border-left: 1px solid var(--rule); padding-left: var(--gap); }
.band--opinion .grid--4 { gap: var(--gap); }

.section { padding-top: clamp(36px, 4.5vw, 60px); }
.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding-top: 12px; margin-bottom: clamp(20px, 2.4vw, 28px); border-top: 2px solid var(--ink); }
.section-head__title { font-size: clamp(24px, 2.4vw, 30px); letter-spacing: -0.015em; }
.section-head__title a:hover { color: var(--red); }
.section-head__more { font: 500 13.5px var(--sans); color: var(--muted); white-space: nowrap; }
.section-head__more:hover { color: var(--red); }

.grid { display: grid; gap: var(--gap); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.layout-a { display: grid; gap: var(--gap); grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr) minmax(0, 1fr); }
.layout-a__mid, .layout-a__list, .layout-b__list { display: flex; flex-direction: column; gap: 24px; }
.layout-a__list { padding-left: var(--gap); border-left: 1px solid var(--rule); }
.layout-a__list .card + .card, .layout-b__list .card--compact + .card--compact { padding-top: 22px; border-top: 1px solid var(--rule); }
.layout-b { display: grid; gap: var(--gap); grid-template-columns: minmax(0, 1fr) minmax(0, 1.7fr) minmax(0, 1fr); }

.ad-slot { padding-top: clamp(28px, 3vw, 40px); text-align: center; }
.ad-slot .widget { margin: 0 auto; }
.more-link { margin-top: clamp(28px, 3vw, 40px); text-align: center; }
.btn--ghost, .more-link .btn { background: transparent; color: var(--ink); }
.more-link .btn:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }

/* ---------- Článek ---------- */
.article__head { padding-top: clamp(28px, 4.5vw, 64px); padding-bottom: clamp(22px, 3vw, 36px); }
.article__head-inner { max-width: 860px; margin-inline: auto; text-align: center; }
.article__head .kicker { font-size: 12.5px; margin-bottom: 16px; }
.article__title { font-size: clamp(32px, 5vw, 58px); line-height: 1.05; letter-spacing: -0.022em; font-weight: 600; text-wrap: balance; }
.article__lead { margin: 20px auto 0; max-width: 700px; font: 400 clamp(19px, 1.8vw, 22px)/1.45 var(--serif); color: var(--ink-2); }
.byline { display: inline-flex; align-items: center; gap: 12px; margin-top: 26px; text-align: left; }
.byline__avatar img { width: 44px; height: 44px; border-radius: 50%; }
.byline__text { display: flex; flex-direction: column; }
.byline__name { font: 600 15px var(--sans); }
.byline__name:hover { color: var(--red); }
.byline__meta { font: 400 13.5px var(--sans); color: var(--muted); }

.article__hero { margin: 0 auto clamp(28px, 4vw, 52px); max-width: calc(1040px + 2 * var(--gut)); }
.article__hero img { width: 100%; max-height: 680px; object-fit: cover; }
.article__hero figcaption, .prose figcaption { margin-top: 10px; font: 400 13px/1.45 var(--sans); color: var(--muted); }

.article__layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: clamp(32px, 5vw, 72px); justify-content: center; }
.article__layout--single { grid-template-columns: minmax(0, 720px); }
.article__main { max-width: 700px; width: 100%; justify-self: end; }
.article__layout--single .article__main { justify-self: center; }

.pr-note { margin-bottom: 24px; padding: 10px 14px; background: var(--paper-2); font: 500 13.5px var(--sans); color: var(--muted); }

/* Typografie textu */
.prose { font: 400 clamp(18px, 1.35vw, 20px)/1.7 var(--serif); color: #1c1b19; font-optical-sizing: auto; }
.prose > * + * { margin-top: 1.15em; }
.prose > p:first-of-type::first-letter {
  float: left; font-size: 3.55em; line-height: .8; font-weight: 600; margin: .07em .09em 0 0; color: var(--ink);
}
.is-pr .prose > p:first-of-type::first-letter { float: none; font-size: inherit; margin: 0; font-weight: inherit; }
.prose a { color: inherit; text-decoration: underline; text-decoration-color: var(--red); text-decoration-thickness: 1px; text-underline-offset: 3px; }
.prose a:hover { color: var(--red); }
.prose h2, .prose h3, .prose h4 { margin-top: 1.9em; line-height: 1.2; }
.prose h2 { font-size: 1.5em; }
.prose h3 { font-size: 1.28em; }
.prose h4 { font-size: 1.1em; }
.prose h2 + *, .prose h3 + *, .prose h4 + * { margin-top: .6em; }
.prose strong, .prose b { font-weight: 650; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: .4em; }
.prose li::marker { color: var(--red); }
.prose blockquote:not(.twitter-tweet):not(.instagram-media):not(.tiktok-embed) {
  margin: 1.8em 0; padding: 0 0 0 1.1em; border-left: 3px solid var(--red);
  font-size: 1.16em; font-style: italic; line-height: 1.5; color: var(--ink-2);
}
.prose blockquote p + p { margin-top: .6em; }
.prose blockquote cite { display: block; margin-top: .6em; font: normal 500 14px var(--sans); color: var(--muted); }
.prose .wp-block-pullquote { border: 0; border-top: 2px solid var(--ink); border-bottom: 1px solid var(--rule); padding: 1.2em 0; text-align: left; }
.prose .wp-block-pullquote blockquote { border: 0; padding: 0; margin: 0; font-size: 1.4em; }
.prose figure { margin-inline: 0; }
.prose img { height: auto; }
.prose .wp-block-image, .prose .wp-block-embed, .prose .wp-block-gallery, .prose iframe { margin-block: 1.8em; }
.prose .alignleft { float: left; margin: .3em 1.4em 1em 0; max-width: 50%; }
.prose .alignright { float: right; margin: .3em 0 1em 1.4em; max-width: 50%; }
.prose .aligncenter { margin-inline: auto; }
.prose .alignwide, .prose .alignfull { margin-inline: 0; }
.prose hr { border: 0; height: auto; margin: 2.2em 0; text-align: center; }
.prose hr::after { content: '···'; letter-spacing: .6em; color: var(--muted); }
.prose table { width: 100%; border-collapse: collapse; font: 400 15px/1.45 var(--sans); }
.prose th, .prose td { padding: 10px 12px; border-bottom: 1px solid var(--rule); text-align: left; vertical-align: top; }
.prose th { font-weight: 600; border-bottom: 2px solid var(--ink); }
.prose .wp-block-table { overflow-x: auto; }
.prose .wp-block-table figcaption { text-align: left; }
.prose code { font-size: .85em; background: var(--paper-2); padding: .1em .3em; }
.prose .wp-block-embed__wrapper > * { margin-inline: auto !important; }
.prose .advads-with-notice, .prose [class*="advads"], .prose [id^="ssp-zone"], .prose [id^="PX_"] { font-family: var(--sans); }
.prose > div:not([class]) { clear: both; }

.page-links { margin-top: 24px; font: 500 14px var(--sans); }

.tags { list-style: none; margin: 36px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.tags a { display: inline-block; padding: 6px 12px; border: 1px solid var(--rule); border-radius: 999px; font: 500 13px var(--sans); color: var(--ink-2); }
.tags a:hover { border-color: var(--ink); color: var(--ink); }

.share { display: flex; align-items: center; gap: 8px; margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--rule); }
.share__label { margin-right: 6px; font: 600 12px var(--sans); letter-spacing: .09em; text-transform: uppercase; color: var(--muted); }
.share__btn { position: relative; display: inline-grid; place-items: center; width: 40px; height: 40px; border: 1px solid var(--rule); border-radius: 50%; background: none; cursor: pointer; color: var(--ink-2); transition: border-color .15s, color .15s; }
.share__btn:hover { border-color: var(--ink); color: var(--ink); }
.share__copied { position: absolute; bottom: calc(100% + 8px); left: 50%; transform: translateX(-50%); padding: 4px 8px; background: var(--ink); color: var(--paper); font: 500 12px var(--sans); white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity .2s; }
.share__btn.is-copied .share__copied { opacity: 1; }

.author-box { display: flex; gap: 18px; align-items: flex-start; margin-top: 32px; padding: 24px; background: var(--paper-2); }
.author-box img { width: 64px; height: 64px; border-radius: 50%; flex: none; }
.author-box__label { font: 600 11px var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.author-box__name { display: inline-block; margin-top: 2px; font: 600 21px var(--serif); }
.author-box__name:hover { color: var(--red); }
.author-box__bio { margin-top: 6px; font: 400 15px/1.55 var(--sans); color: var(--ink-2); }

.related { margin-top: clamp(40px, 5vw, 72px); padding: clamp(36px, 4.5vw, 56px) 0 8px; background: var(--paper-2); border-top: 1px solid var(--rule); }

/* Postranní panel */
.sidebar { display: flex; flex-direction: column; gap: 36px; min-width: 0; }
.sidebar .widget { min-width: 0; }
.widget-title { padding-bottom: 10px; margin-bottom: 4px; border-bottom: 2px solid var(--ink); font: 700 12px var(--sans); letter-spacing: .1em; text-transform: uppercase; }
.ranked { list-style: none; margin: 0; padding: 0; }
.ranked li { padding: 14px 0; border-bottom: 1px solid var(--rule); }
.ranked li:last-child { border-bottom: 0; }
.ranked .card { flex-direction: row; gap: 14px; }
.card__num { flex: none; width: 26px; font: 500 30px/1 var(--serif); color: var(--red); font-variant-numeric: lining-nums; }

/* ---------- Komentáře ---------- */
.comments { margin-top: 48px; }
.comments__title { display: flex; align-items: baseline; gap: 10px; padding-top: 12px; border-top: 2px solid var(--ink); font-size: 28px; }
.comments__title span { font: 500 15px var(--sans); color: var(--muted); }
.comment-list, .comment-list .children { list-style: none; margin: 0; padding: 0; }
.comment-list { margin-top: 16px; }
.comment-list .children { margin-left: clamp(16px, 4vw, 44px); border-left: 1px solid var(--rule); padding-left: clamp(12px, 2vw, 20px); }
.comment-body { padding: 18px 0; border-bottom: 1px solid var(--rule); font-size: 15.5px; }
.comment-author { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.comment-author .avatar { width: 32px; height: 32px; border-radius: 50%; }
.comment-author .says { display: none; }
.comment-metadata { margin: 2px 0 0 42px; font-size: 12.5px; color: var(--muted); }
.comment-metadata a:hover { color: var(--ink); }
.comment-content { margin: 8px 0 0 42px; line-height: 1.6; }
.comment-content p + p { margin-top: .6em; }
.reply { margin: 6px 0 0 42px; }
.reply a { font-size: 13px; font-weight: 600; color: var(--red); }
.comment-awaiting-moderation { display: block; margin: 6px 0 0 42px; font-size: 13px; color: var(--muted); }
.comment-respond { margin-top: 32px; padding: 24px; background: var(--paper-2); }
.comment-reply-title { font-size: 22px; }
.comment-reply-title small { margin-left: 8px; font: 500 13px var(--sans); }
.comment-form { display: grid; gap: 14px; margin-top: 14px; font-size: 14.5px; }
.comment-form label { display: block; margin-bottom: 4px; font-weight: 600; font-size: 13px; }
.comment-form input[type=text], .comment-form input[type=email], .comment-form input[type=url], .comment-form textarea {
  width: 100%; padding: 11px 12px; font: 400 16px var(--sans); border: 1px solid var(--rule); background: var(--white); border-radius: var(--radius); color: var(--ink);
}
.comment-form textarea { min-height: 130px; resize: vertical; }
.comment-form-cookies-consent { display: flex; gap: 8px; align-items: flex-start; }
.comment-form-cookies-consent label { font-weight: 400; }
.comment-notes, .logged-in-as { font-size: 13px; color: var(--muted); }
.comments-pagination, .comment-navigation { margin-top: 20px; font: 500 14px var(--sans); }
.comments-pagination .nav-links { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- Výpisy ---------- */
.archive-head { padding-top: clamp(32px, 5vw, 64px); padding-bottom: clamp(20px, 3vw, 32px); }
.archive-head__eyebrow { font: 600 12px var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--red); }
.archive-head__title { margin-top: 8px; font-size: clamp(38px, 6vw, 72px); line-height: 1; letter-spacing: -0.03em; }
.archive-head__desc { margin-top: 14px; max-width: 680px; font: 400 19px/1.5 var(--serif); color: var(--ink-2); }
.archive-head__count { margin-top: 10px; font: 400 14px var(--sans); color: var(--muted); }
.archive-head__search { margin-top: 20px; max-width: 640px; }
.archive-head__search .search-form { margin: 0; }
.archive-head__author { display: flex; gap: 24px; align-items: center; }
.archive-head__author img { width: 96px; height: 96px; border-radius: 50%; }
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 20px 0 0; padding: 0; }
.chips a { display: inline-block; padding: 7px 14px; border: 1px solid var(--rule); border-radius: 999px; font: 500 14px var(--sans); }
.chips a:hover { border-color: var(--ink); }

.archive-head::after { content: ''; display: block; height: 2px; margin-top: clamp(20px, 3vw, 32px); background: var(--ink); }
.archive-head { padding-bottom: 0; }
.archive-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: clamp(32px, 5vw, 72px); padding-top: 28px; }
.archive-lead { padding-bottom: 28px; }
.archive-lead .card--feature .card__title { font-size: clamp(28px, 3.2vw, 42px); }
.empty { padding: 40px 0; }
.empty h2 { font-size: 28px; }
.empty p { margin-top: 8px; color: var(--ink-2); }
.empty a { text-decoration: underline; }

.pagination { margin-top: 36px; padding-top: 24px; border-top: 1px solid var(--rule); }
.pagination ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.pagination a, .pagination span { display: inline-grid; place-items: center; min-width: 42px; height: 42px; padding: 0 12px; border: 1px solid var(--rule); font: 500 14.5px var(--sans); border-radius: var(--radius); }
.pagination a:hover { border-color: var(--ink); }
.pagination .current { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.pagination .dots { border: 0; }

.notfound { padding-top: clamp(40px, 6vw, 88px); }
.notfound > p:not(.archive-head__eyebrow) { margin-top: 14px; font: 400 19px var(--serif); color: var(--ink-2); }
.notfound__latest { margin-top: 56px; }

/* ---------- Patička ---------- */
.site-footer { margin-top: clamp(56px, 7vw, 96px); padding: clamp(44px, 5vw, 64px) 0 28px; background: #141414; color: #CFCAC1; font-size: 14.5px; }
.related + .site-footer, .site-main:has(> article > .related:last-child) + .site-footer { margin-top: 0; }
.footer__top { display: grid; grid-template-columns: 1.2fr 2fr 1fr; gap: clamp(28px, 4vw, 56px); padding-bottom: 36px; border-bottom: 1px solid #2E2C29; }
.footer__brand img { height: 38px; width: auto; }
.footer__brand p { margin-top: 14px; max-width: 34ch; font: italic 400 17px/1.45 var(--serif); color: #A9A398; }
.footer__title { margin-bottom: 12px; font: 600 11.5px var(--sans); letter-spacing: .1em; text-transform: uppercase; color: #8C877E; }
.footer__list { list-style: none; margin: 0; padding: 0; }
.footer__list li { padding: 4px 0; }
.footer__list--cols { columns: 3; column-gap: 24px; }
.footer__list a:hover { color: #FFFFFF; }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding-top: 22px; font-size: 12.5px; color: #8C877E; }

/* ---------- Reklama (inc/ads.php + assets/js/ads.js) ---------- */
.m24ad { display: block; width: 100%; min-width: 0; margin-inline: auto; text-align: center; clear: both; }
.m24ad:empty:not([style*="--m24-reserve"]) { display: none; }
.m24ad--mobile { display: none; }
@media (max-width: 767px) {
  .m24ad--mobile { display: block; }
  .m24ad--desktop { display: none !important; }
}
@media (min-width: 768px) {
  /* Rezervované místo proti posunu stránky (CLS) – JS ho upraví / uvolní */
  .m24ad--desktop[style*="--m24-reserve"] { min-height: var(--m24-reserve); }
}
.m24ad.is-seznam, .m24ad.is-google { margin-block: 28px; }
.m24ad.is-empty { margin-block: 0; }
.m24ad__zone--banner { display: flex; justify-content: center; margin-inline: auto; }
.m24ad--inline { margin-block: 1.6em; }
.ad-top { padding-top: 14px; }
.ad-top .m24ad.is-seznam, .ad-top .m24ad.is-google { margin-block: 0 4px; }
.ad-top .m24ad:not(.is-seznam):not(.is-google) { margin: 0; }
.ad-bottom { margin-top: clamp(36px, 4vw, 56px); }
.ad-bottom .m24ad.is-seznam, .ad-bottom .m24ad.is-google { margin-block: 0; }
.m24ad--rectangle, .m24ad--leaderboard { max-width: 970px; }
.m24ad--smr, .m24ad--skyscraper { max-width: 300px; }
.sidebar__sticky { position: sticky; top: 72px; }
.admin-bar .sidebar__sticky { top: 104px; }
.m24ad--listing { margin-inline: auto; }
.szn-recass:empty { display: none; }
.szn-recass { margin-top: 32px; }

.m24-gpop { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; background: rgba(251,250,247,.97); border-top: 1px solid var(--rule); box-shadow: 0 -4px 16px rgba(0,0,0,.12); transform: translateY(100%); transition: transform .3s; }
.m24-gpop.is-open { transform: none; }
.m24-gpop__bar { position: absolute; right: 8px; top: -24px; display: flex; gap: 4px; }
.m24-gpop__bar span, .m24-gpop__bar button { background: rgba(251,250,247,.97); border: 0; border-radius: 4px 4px 0 0; padding: 3px 7px; font: 500 10px/1.2 var(--sans); text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.m24-gpop__bar button { font-size: 16px; line-height: 1; padding: 2px 8px; cursor: pointer; }
.m24-gpop__box { display: flex; justify-content: center; overflow: hidden; padding: 4px 0; }

/* ---------- Bloky WP ---------- */
.wp-caption { max-width: 100%; }
.wp-caption-text { font: 400 13px var(--sans); color: var(--muted); margin-top: 8px; }
.gallery { display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
.sticky, .bypostauthor { }

/* ---------- Responzivita ---------- */
@media (max-width: 1100px) {
  .hero { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); grid-template-areas: 'lead latest' 'side side'; }
  .hero__side { flex-direction: row; padding-right: 0; border-right: 0; padding-top: var(--gap); border-top: 1px solid var(--rule); }
  .hero__side .card { flex: 1; }
  .hero__side .card + .card { padding-top: 0; border-top: 0; padding-left: var(--gap); border-left: 1px solid var(--rule); }
  .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .band--opinion .grid--4 > .card:nth-child(odd) { border-left: 0; padding-left: 0; }
  .layout-a { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); }
  .layout-a__list { grid-column: 1 / -1; padding-left: 0; border-left: 0; flex-direction: row; }
  .layout-a__list .card { flex: 1; }
  .layout-a__list .card + .card { padding-top: 0; border-top: 0; padding-left: var(--gap); border-left: 1px solid var(--rule); }
  .layout-b { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); }
  .layout-b__main { grid-column: 1; grid-row: 1; }
  .layout-b__list:first-child { grid-column: 2; grid-row: 1; }
  .layout-b__list:last-child { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; }
  .layout-b__list:last-child .card--compact + .card--compact { padding-top: 0; border-top: 0; }
  .article__layout, .archive-layout { grid-template-columns: minmax(0, 1fr) 280px; gap: 40px; }
  .footer__top { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 860px) {
  .topbar__links { display: none; }
  .masthead__menu { visibility: visible; }
  .masthead__tagline { display: none; }
  .nav__mini-logo { display: none; }
  .nav { box-shadow: none; border-top: 1px solid var(--rule); }
  .nav__inner { min-height: 46px; }
  .nav__list { justify-content: flex-start; }
  .nav__list a { padding: 12px 0 10px; font-size: 14px; }
  .nav__search { opacity: 1; pointer-events: auto; }
  .masthead__search { visibility: hidden; }
  .hero { grid-template-columns: minmax(0, 1fr); grid-template-areas: 'lead' 'side' 'latest'; }
  .hero__latest { padding-left: 0; border-left: 0; }
  .article__layout, .archive-layout { grid-template-columns: minmax(0, 1fr); }
  .article__main { justify-self: stretch; max-width: none; }
  .sidebar { border-top: 2px solid var(--ink); padding-top: 24px; }
  .footer__list--cols { columns: 2; }
}

@media (max-width: 640px) {
  body { font-size: 15.5px; }
  .topbar { display: none; }
  .masthead { padding: 12px 0; }
  .masthead__logo img { height: 34px; }
  .hero { padding-top: 0; }
  .hero__lead { margin-inline: calc(-1 * var(--gut)); }
  .hero__lead .card__body { padding-inline: var(--gut); }
  .card--lead .card__title { font-size: 30px; }
  .hero__side { flex-direction: column; }
  .hero__side .card + .card { padding-left: 0; border-left: 0; padding-top: 22px; border-top: 1px solid var(--rule); }
  .hero__side .card, .grid--4 > .card, .layout-a__mid .card, .layout-b__list .card--standard { display: grid; grid-template-columns: 1fr 112px; grid-template-areas: 'body media'; gap: 14px; align-items: start; }
  .hero__side .card .card__media, .grid--4 > .card .card__media, .layout-a__mid .card__media, .layout-b__list .card--standard .card__media { grid-area: media; aspect-ratio: 1; }
  .hero__side .card .card__body, .grid--4 > .card .card__body, .layout-a__mid .card__body, .layout-b__list .card--standard .card__body { grid-area: body; }
  .hero__side .card__excerpt, .grid--4 .card__excerpt { display: none; }
  .card__title, .card--text .card__title { font-size: 18px; }
  .grid--4, .grid--3 { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .grid--4 > .card { padding: 18px 0; border-top: 1px solid var(--rule); }
  .grid--4 > .card:first-child { border-top: 0; padding-top: 0; }
  .band--opinion .grid--4 > .card, .band--opinion .grid--4 > .card + .card { display: block; border-left: 0; padding-left: 0; }
  .layout-a, .layout-b { grid-template-columns: minmax(0, 1fr); }
  .layout-b__main, .layout-b__list:first-child { grid-column: auto; grid-row: auto; }
  .layout-a__list, .layout-b__list:last-child { flex-direction: column; display: flex; }
  .layout-a__list .card + .card, .layout-b__list:last-child .card--compact + .card--compact { padding-left: 0; border-left: 0; padding-top: 22px; border-top: 1px solid var(--rule); }
  .layout-a__mid .card + .card, .layout-b__list .card--standard + .card--standard { padding-top: 22px; border-top: 1px solid var(--rule); }
  .card--row { grid-template-columns: minmax(0, 1fr) 112px; padding-block: 20px; }
  .card--row .card__media { order: 2; aspect-ratio: 1; }
  .card--row .card__excerpt { display: none; }
  .card--row .card__title { font-size: 19px; }
  .article__head-inner { text-align: left; }
  .article__hero { padding-inline: 0; }
  .article__hero figcaption { padding-inline: var(--gut); }
  .prose .alignleft, .prose .alignright { float: none; margin: 1.5em 0; max-width: 100%; }
  .author-box { flex-direction: column; }
  .comment-respond { padding: 18px; margin-inline: calc(-1 * var(--gut)); }
  .footer__top { grid-template-columns: minmax(0, 1fr); }
  .footer__bottom { flex-direction: column; }
  .archive-head__author { flex-direction: column; align-items: flex-start; }
}

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