/* Varianta A – Redakční magazín */
@font-face {
  font-family: 'Newsreader';
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url('/fonts/newsreader-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: 'Newsreader';
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url('/fonts/newsreader-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;
}
@font-face {
  font-family: 'Newsreader';
  font-style: italic;
  font-weight: 200 800;
  font-display: swap;
  src: url('/fonts/newsreader-latin-wght-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('/fonts/newsreader-latin-ext-wght-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('/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('/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;
}

:root {
  --sun: #d9a75b;
  --paper: #f6f3ec;
  --ink: #17171a;
  --muted: #57534e;
  --rule: #d6d0c4;
  --accent: #1e5b43;
  --placeholder: #e4ded2;
  --serif: 'Newsreader', Georgia, 'Times New Roman', serif;
  --sans: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); line-height: 1.5; }
a { color: var(--ink); text-decoration: none; }
a:hover, a:focus-visible { color: var(--accent); text-decoration: underline; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
img { max-width: 100%; height: auto; display: block; }

.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--ink); color: var(--paper); padding: 8px 12px; z-index: 10; }
.skip:focus { left: 8px; }

.wrap { max-width: 1180px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 24px; } }

.topline { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; padding: 14px 0; font-size: 13px; color: var(--muted); border-bottom: 1px solid var(--rule); }

.masthead { text-align: center; padding: 32px 0 20px; }
.brand { font-family: var(--serif); font-size: clamp(44px, 9vw, 76px); font-weight: 700; letter-spacing: -0.02em; line-height: 1; }
.brand:hover { text-decoration: none; color: var(--ink); }
.masthead nav { position: relative; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 28px; margin-top: 44px; padding: 12px 0; border-top: 3px double var(--ink); border-bottom: 1px solid var(--ink); font-size: 14px; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; }
.masthead nav a { padding: 6px 0; }
/* Vycházející slunce nad dvojitou linkou (motiv ikony webu) */
.masthead nav::before { --sun-w: clamp(32px, 3.6vw, 46px); content: ''; position: absolute; left: 50%; bottom: calc(100% + 6px); width: var(--sun-w); height: calc(var(--sun-w) / 2); transform: translateX(-50%); border-radius: var(--sun-w) var(--sun-w) 0 0; background: var(--sun); }

.partner { margin: 8px 0 32px; border: 1px dashed #a8a29e; padding: 10px 12px 12px; }
.partner-label { display: flex; justify-content: space-between; font-size: 11px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.partner img { margin: 0 auto; max-height: 250px; width: auto; }

.kicker { display: inline-block; font-size: 12px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); }
.meta { margin: 0; font-size: 13px; color: var(--muted); }
.muted { color: var(--muted); }

.lead { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 32px 40px; padding: 8px 0 40px; border-bottom: 1px solid var(--ink); }
.lead-noimg { display: block; max-width: 860px; }
.lead-noimg .lead-title { font-size: clamp(34px, 5vw, 56px); }
.lead-img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: var(--placeholder); }
.lead-text { display: flex; flex-direction: column; justify-content: center; gap: 16px; }
.lead-title { margin: 0; font-family: var(--serif); font-size: clamp(32px, 4.4vw, 48px); line-height: 1.08; font-weight: 600; letter-spacing: -0.01em; }
.lead-perex { margin: 0; font-family: var(--serif); font-size: 20px; line-height: 1.5; color: #3f3b37; }

.columns { display: flex; flex-wrap: wrap; gap: 40px 48px; padding: 40px 0; }
.col-main { flex: 999 1 560px; min-width: 0; }
.col-side { flex: 1 1 280px; min-width: 0; }
.section-title { margin: 0 0 24px; font-family: var(--sans); font-size: 13px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; border-bottom: 1px solid var(--ink); padding-bottom: 10px; }
.more { display: inline-block; margin-top: 20px; font-size: 14px; font-weight: 600; text-decoration: underline; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); gap: 32px; }
.card { display: flex; flex-direction: column; gap: 8px; }
.card img { aspect-ratio: 3 / 2; object-fit: cover; width: 100%; background: var(--placeholder); margin-bottom: 4px; }
.card-title { margin: 0; font-family: var(--serif); font-size: 23px; line-height: 1.2; font-weight: 600; }
.card-perex { margin: 0; font-size: 15px; color: #3f3b37; }

.news-list { list-style: none; margin: 0; padding: 0; }
.news-list li { padding: 16px 0; border-bottom: 1px solid var(--rule); }
.news-list li:first-child { padding-top: 0; }
.news-title { margin: 4px 0 0; font-family: var(--serif); font-size: 19px; line-height: 1.3; font-weight: 600; }

.listing { padding: 8px 0 48px; }
.page-title { font-family: var(--serif); font-size: clamp(34px, 5vw, 48px); margin: 8px 0 32px; font-weight: 600; }
.crumbs { font-size: 13px; color: var(--muted); }
.crumbs a { text-decoration: underline; color: var(--muted); }
.pager { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 40px; padding-top: 16px; border-top: 1px solid var(--rule); font-size: 14px; }
.pager a { font-weight: 600; text-decoration: underline; padding: 10px 0; }

.post { max-width: 720px; margin: 0 auto; padding: 8px 0 48px; }
.post-head { margin: 12px 0 28px; display: flex; flex-direction: column; gap: 14px; }
.post-title { margin: 0; font-family: var(--serif); font-size: clamp(34px, 5.5vw, 52px); line-height: 1.08; font-weight: 600; letter-spacing: -0.01em; }
.post-perex { margin: 0; font-family: var(--serif); font-size: 22px; line-height: 1.5; color: #3f3b37; }
.post-figure { margin: 0 0 32px; }
.post-figure img { width: 100%; }
.author { font-weight: 600; color: var(--ink); }

.prose { font-family: var(--serif); font-size: 19px; line-height: 1.7; }
.prose h2 { font-size: 30px; line-height: 1.2; margin: 1.6em 0 0.5em; font-weight: 600; }
.prose h3 { font-size: 24px; line-height: 1.25; margin: 1.4em 0 0.4em; font-weight: 600; }
.prose h4, .prose h5, .prose h6 { font-size: 20px; margin: 1.2em 0 0.4em; font-weight: 600; }
.prose p { margin: 0 0 1em; }
.prose ul, .prose ol { margin: 0 0 1.1em; padding-left: 1.4em; }
.prose li { margin: 0.25em 0; }
.prose a { text-decoration: underline; color: var(--accent); }
.prose img { margin: 1.4em auto; }
.prose blockquote { margin: 1.4em 0; padding-left: 1em; border-left: 3px solid var(--ink); font-style: italic; }
.prose code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.85em; background: #ebe6db; padding: 0.1em 0.3em; }
.prose pre { overflow-x: auto; background: #ebe6db; padding: 12px; }
.prose table { border-collapse: collapse; display: block; overflow-x: auto; }
.prose th, .prose td { border: 1px solid var(--rule); padding: 6px 10px; }
.prose hr { border: 0; border-top: 1px solid var(--rule); margin: 2em 0; }

.sources { margin-top: 40px; padding-top: 16px; border-top: 1px solid var(--ink); font-size: 15px; }
.sources h2 { font-size: 13px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; margin: 0 0 8px; }
.sources ol { margin: 0; padding-left: 1.4em; }
.sources a { text-decoration: underline; word-break: break-word; }
.related { margin-top: 56px; }

.empty { padding: 64px 0; text-align: center; }
.empty h1 { font-family: var(--serif); font-size: 40px; margin: 0 0 12px; }

.site-footer { border-top: 3px double var(--ink); margin-top: 24px; padding: 28px 0 40px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; font-size: 13px; color: var(--muted); }
.footer-links { display: flex; flex-wrap: wrap; gap: 20px; }
.footer-links a { color: var(--muted); }
.linklike { background: none; border: 0; padding: 0; font: inherit; color: inherit; text-decoration: underline; cursor: pointer; }
.footer-links { align-items: baseline; }
.site-footer .linklike { color: var(--muted); line-height: inherit; }

.consent { position: sticky; bottom: 0; z-index: 20; background: var(--ink); color: var(--paper); padding: 18px 16px; }
.consent[hidden] { display: none; }
.consent-inner { max-width: 1180px; margin: 0 auto; display: flex; flex-wrap: wrap; align-items: center; gap: 16px 32px; }
.consent p { margin: 0; flex: 1 1 420px; font-size: 14px; line-height: 1.5; }
.consent a { color: var(--paper); text-decoration: underline; }
.consent-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.consent button { min-height: 44px; padding: 0 22px; font: 600 14px var(--sans); cursor: pointer; border: 1px solid var(--paper); }
/* Obě volby jsou záměrně stejně výrazné. */
.btn-outline { background: var(--paper); color: var(--ink); }
.btn-solid { background: var(--paper); color: var(--ink); }

.preview-bar { background: #b45309; color: #fff; padding: 10px 16px; font-size: 14px; text-align: center; }
.preview-bar a { color: #fff; text-decoration: underline; }
.footer-main { display: flex; flex-direction: column; gap: 6px; max-width: 640px; }
.footer-text p { margin: 0 0 4px; }
.footer-text a { color: var(--muted); }

/* Odběr nových článků e-mailem */
.subscribe { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 40px; margin: 40px 0 0; padding: 28px 0; border-top: 3px double var(--ink); }
.subscribe h2 { margin: 0 0 4px; font-family: var(--serif); font-size: 26px; font-weight: 600; }
.subscribe > div > p { margin: 0; color: var(--muted); font-size: 15px; max-width: 460px; }
.subscribe-form { flex: 1 1 min(420px, 100%); min-width: 0; max-width: 560px; }
.subscribe-row { display: flex; gap: 8px; }
.subscribe-row input[type='email'] { flex: 1; min-width: 0; min-height: 44px; padding: 0 12px; border: 1px solid var(--ink); background: #fff; font: 16px var(--sans); color: var(--ink); }
.subscribe-row button, .button { min-height: 44px; padding: 0 20px; border: 1px solid var(--ink); background: var(--ink); color: var(--paper); font: 600 15px var(--sans); cursor: pointer; }
.subscribe-row button:hover, .button:hover { background: var(--accent); border-color: var(--accent); }
.subscribe-consent { margin: 8px 0 0; font-size: 12px; line-height: 1.5; color: var(--muted); }
.subscribe-consent a { color: var(--muted); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-error { padding: 10px 14px; border-left: 3px solid #a61b1b; background: #f8e7e7; font-family: var(--sans); font-size: 15px; }
.narrow-page { max-width: 640px; }

/* Přehrávač zvukové verze článku */
.player { margin: -12px 0 28px; }
.player audio { width: 100%; }
.player-ui { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border: 1px solid var(--rule); background: #fff; font-family: var(--sans); }
.player.playing { position: sticky; top: 0; z-index: 15; box-shadow: 0 6px 18px rgba(23, 23, 26, 0.08); }
.player-play { flex: none; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; border: 0; background: var(--accent); color: #fff; cursor: pointer; }
.player-play svg { width: 20px; height: 20px; fill: currentColor; }
.player-play:hover { background: var(--ink); }
.player .i-pause, .player.playing .i-play { display: none; }
.player.playing .i-pause { display: block; }
.player-label { flex: none; font-size: 14px; font-weight: 600; white-space: nowrap; }
.player-bars { flex: none; display: flex; align-items: flex-end; gap: 2px; height: 18px; }
.player-bars i { display: block; width: 3px; height: 4px; background: var(--sun, #d9a75b); border-radius: 1px; }
.player.playing .player-bars i { animation: bar 0.9s ease-in-out infinite; }
.player.playing .player-bars i:nth-child(2) { animation-delay: -0.3s; animation-duration: 0.7s; }
.player.playing .player-bars i:nth-child(3) { animation-delay: -0.5s; animation-duration: 1.1s; }
.player.playing .player-bars i:nth-child(4) { animation-delay: -0.2s; animation-duration: 0.8s; }
.player.playing .player-bars i:nth-child(5) { animation-delay: -0.6s; animation-duration: 1s; }
@keyframes bar { 0%, 100% { height: 4px; } 50% { height: 18px; } }
@media (prefers-reduced-motion: reduce) { .player.playing .player-bars i { animation: none; height: 10px; } }
.player-track { position: relative; flex: 1 1 auto; min-width: 60px; height: 24px; cursor: pointer; touch-action: none; }
.player-track::before { content: ''; position: absolute; left: 0; right: 0; top: 50%; height: 4px; margin-top: -2px; background: var(--rule); border-radius: 2px; }
.player-fill { position: absolute; left: 0; top: 50%; height: 4px; margin-top: -2px; width: 0; background: var(--accent); border-radius: 2px; }
.player-knob { position: absolute; top: 50%; left: 0; width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 3px #fff; opacity: 0; transition: opacity 0.15s; }
.player-track:hover .player-knob, .player-track:focus-visible .player-knob, .player.playing .player-knob { opacity: 1; }
.player-track:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.player-time { flex: none; font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.player-rate { flex: none; min-width: 40px; height: 28px; border: 1px solid var(--rule); background: transparent; font: 600 12px var(--sans); color: var(--ink); cursor: pointer; }
.player-rate:hover { border-color: var(--ink); }
.ai-badge { position: relative; flex: none; display: grid; place-items: center; width: 22px; height: 22px; color: var(--sun, #d9a75b); cursor: help; }
.ai-badge svg { width: 18px; height: 18px; fill: currentColor; }
.ai-badge::after { content: attr(data-tip); position: absolute; right: -6px; bottom: calc(100% + 8px); width: max-content; max-width: 220px; padding: 6px 10px; background: var(--ink); color: var(--paper); font-size: 12px; line-height: 1.4; white-space: normal; opacity: 0; pointer-events: none; transform: translateY(4px); transition: opacity 0.15s, transform 0.15s; z-index: 2; }
.ai-badge:hover::after, .ai-badge:focus::after, .ai-badge.show-tip::after { opacity: 1; transform: none; }
.ai-badge:focus:not(:focus-visible) { outline: none; }
.ai-badge:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
/* Právě čtený odstavec */
.prose > .reading, .post-title.reading { background: linear-gradient(transparent 0, rgba(217, 167, 91, 0.16) 0); box-shadow: -10px 0 0 rgba(217, 167, 91, 0.16), 10px 0 0 rgba(217, 167, 91, 0.16); transition: background 0.3s; }
@media (max-width: 560px) {
  .player-ui { flex-wrap: wrap; gap: 8px 10px; }
  .player-label { order: 1; }
  .player-bars { order: 2; }
  .player-time { order: 3; margin-left: auto; }
  .player-track { order: 4; flex: 1 1 calc(100% - 96px); }
  .player-rate { order: 5; }
  .ai-badge { order: 6; }
  .player-play { order: 0; }
}

/* Ikona AI pod hlavním obrázkem článku (jen v detailu článku) */
.figure-ai { display: flex; justify-content: flex-end; margin-top: 6px; }
.footer-operator { font-size: 12px; line-height: 1.5; }
.footer-operator a { color: var(--muted); }

/* Zpětná vazba čtenářů */
.feedback { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 20px; margin: 36px 0 8px; padding: 18px 0; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.feedback[hidden] { display: none; }
.feedback h2 { margin: 0; font-family: var(--serif); font-size: 21px; font-weight: 600; }
.feedback-buttons { display: flex; align-items: center; gap: 10px; }
.feedback-btn { display: grid; place-items: center; width: 46px; height: 46px; border: 1px solid var(--rule); border-radius: 50%; background: #fff; color: var(--ink); cursor: pointer; transition: border-color 0.15s, background 0.15s, color 0.15s; }
.feedback-btn:hover { border-color: var(--ink); }
.feedback-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.feedback-btn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.feedback-btn .thumb-down { transform: scaleY(-1); }
.feedback-btn.on { border-color: var(--accent); color: var(--accent); }
.feedback-btn.on svg { fill: currentColor; }
.feedback-btn.on svg path:first-child { stroke: #fff; }
.feedback-status { font-size: 13px; color: var(--muted); font-family: var(--sans); }
