/*
Theme Name: Dáme čaj
Theme URI: https://damecaj.cz
Author: Radek
Description: Šablona webu Dáme čaj (a kávu) — průvodce světem sypaného čaje, kávy, vína a domácích destilátů. Rubriky Čaj, Káva, Víno a Destiláty, partnerský box a reklamní pozice pro Advanced Ads / AdSense (max. 3 na stránku). Chuť, která spojuje.
Version: 1.1.0
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: damecaj
Tags: blog, food-and-drink, two-columns, custom-menu, featured-images, translation-ready
*/

/* =========================================================
   1. ZÁKLAD
   Barvy vychází z loga: olivová (čaj), kávová, zlatá linka, krémové pozadí.
   ========================================================= */
:root {
  --coffee: #3A2618;
  --coffee-light: #533826;
  --olive: #66753A;
  --olive-dark: #525F2C;
  --gold: #B08B4F;
  --gold-light: #D2B37E;
  --cream: #F7F2E8;
  --paper: #FFFDF8;
  --ink: #2B2218;
  --muted: #7A6D5C;
  --line: #E3D8C4;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: 'Public Sans', sans-serif;
  background: var(--cream);
  color: var(--ink);
  line-height: 1.55;
}

h1, h2, h3, .serif { font-family: 'Fraunces', serif; font-optical-sizing: auto; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; display: block; }

.wrap { max-width: 1180px; margin: 0 auto; padding: 0 32px; }
.article-wrap { max-width: 760px; margin: 0 auto; padding: 0 32px; }

.screen-reader-text {
  border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%);
  height: 1px; width: 1px; margin: -1px; overflow: hidden; padding: 0;
  position: absolute !important; word-wrap: normal !important;
}
.skip-link:focus {
  clip: auto; clip-path: none; height: auto; width: auto;
  background: var(--coffee); color: var(--cream); padding: 10px 16px;
  top: 8px; left: 8px; z-index: 100;
}


/* =========================================================
   2. HLAVIČKA, LOGO, MENU, HLEDÁNÍ
   ========================================================= */
.site-header {
  background: var(--cream);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 50;
}
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px 32px;
  max-width: 1244px;
  margin: 0 auto;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--olive);
}
.logo-mark { width: 52px; height: 52px; flex-shrink: 0; }
.logo-text { display: flex; flex-direction: column; line-height: 1; }
.logo-name {
  font-family: 'Fraunces', serif;
  font-weight: 600;
  font-size: 23px;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  white-space: nowrap;
}
.logo-name .and { font-size: 0.72em; color: var(--gold); font-weight: 500; text-transform: lowercase; margin: 0 2px; }
.logo-name .kava { color: var(--coffee); }
.logo-claim {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 2.6px;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 6px;
}
.custom-logo-link img { max-height: 56px; width: auto; }

.main-nav ul { display: flex; gap: 30px; list-style: none; font-weight: 500; font-size: 15px; }
.main-nav a { color: var(--ink); position: relative; padding-bottom: 4px; white-space: nowrap; }
.main-nav a:hover,
.main-nav .current-menu-item > a,
.main-nav .current-category-ancestor > a,
.main-nav .current-post-ancestor > a { color: var(--olive); }
.main-nav .current-menu-item > a::after,
.main-nav .current-category-ancestor > a::after,
.main-nav .current-post-ancestor > a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px;
  height: 1.5px; background: var(--gold);
}

.header-icons { display: flex; gap: 12px; align-items: center; }
.search-btn,
.menu-toggle {
  width: 38px; height: 38px;
  border: 1px solid var(--line);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--coffee);
  background: transparent;
  cursor: pointer;
  font-family: inherit;
}
.search-btn svg { width: 16px; height: 16px; }
.search-btn:hover, .menu-toggle:hover { border-color: var(--gold); color: var(--olive); }
.menu-toggle { display: none; }
.menu-toggle .bars,
.menu-toggle .bars::before,
.menu-toggle .bars::after {
  display: block; width: 14px; height: 1.5px; background: currentColor; position: relative;
}
.menu-toggle .bars::before, .menu-toggle .bars::after { content: ""; position: absolute; left: 0; }
.menu-toggle .bars::before { top: -5px; }
.menu-toggle .bars::after { top: 5px; }

.header-search {
  display: none;
  border-top: 1px solid var(--line);
  padding: 16px 32px;
}
.header-search.is-open { display: block; }
.search-form { display: flex; gap: 8px; max-width: 560px; margin: 0 auto; }
.search-form input[type="search"] {
  flex: 1;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 11px 18px;
  font-size: 14px;
  font-family: inherit;
  background: var(--paper);
}
.search-form button {
  background: var(--olive);
  color: var(--cream);
  border: none;
  border-radius: 999px;
  padding: 0 22px;
  font-weight: 700;
  font-size: 13px;
  font-family: inherit;
  cursor: pointer;
}
.search-form button:hover { background: var(--olive-dark); }


/* =========================================================
   3. REKLAMNÍ POZICE A PARTNERSKÝ BOX
   Prázdné pozice vidí jen přihlášený administrátor (čárkovaný box).
   Vyplněné pozice (.ad-live) mají malý štítek „Reklama".
   ========================================================= */
.ad-slot {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  background: #EFE6D5;
  border: 1px dashed #CDBE9F;
  border-radius: 6px;
  color: #9A8A6C;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  text-align: center;
  padding: 10px;
}
.ad-slot .ad-size { font-size: 10px; font-weight: 500; letter-spacing: 0.4px; color: #B3A385; }
.ad-slot .ad-hint { font-size: 10px; font-weight: 500; letter-spacing: 0; text-transform: none; color: #B3A385; }

.ad-slot.ad-live {
  background: transparent;
  border: 0;
  height: auto;
  min-height: 0;
  gap: 6px;
  padding: 0;
}
.ad-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: #9A8A6C;
}
.ad-live .ad-widget { width: 100%; display: flex; justify-content: center; }

.ad-leaderboard { width: 100%; height: 120px; margin: 30px 0 40px; }
.ad-in-feed { width: 100%; height: 120px; margin: 22px 0; }
.ad-in-article { width: 100%; height: 250px; margin: 40px 0; }
.ad-sticky { width: 300px; height: 600px; margin-bottom: 20px; }
.ad-sticky-wrap { position: sticky; top: 110px; }

/* Partnerský box (affiliate tip) – není to reklamní banner, ale doporučení se štítkem */
.partner-box {
  display: flex;
  align-items: center;
  gap: 20px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-left: 3px solid var(--gold);
  border-radius: 6px;
  padding: 22px 24px;
  margin: 30px 0 8px;
}
.partner-box.is-empty { background: #EFE6D5; border-style: dashed; border-left-style: dashed; }
.partner-box .partner-icon { width: 56px; height: 56px; flex-shrink: 0; opacity: 0.9; }
.partner-label {
  font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.8px;
  color: var(--gold); margin-bottom: 6px;
}
.partner-box h4 { font-family: 'Fraunces', serif; font-size: 18px; font-weight: 600; color: var(--coffee); margin-bottom: 4px; }
.partner-box p { font-size: 14px; color: var(--muted); }
.partner-box a { color: var(--olive); font-weight: 700; }
.partner-box .partner-content { flex: 1; min-width: 0; }


/* =========================================================
   4. NÁHLEDY, RUBRIKY, SPOLEČNÉ PRVKY
   ========================================================= */
.thumb {
  display: block;
  border-radius: 6px;
  overflow: hidden;
  aspect-ratio: 4/3;
}
.thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
a:hover .thumb img, .thumb:hover img { transform: scale(1.03); }

/* Zástupné přechody, když článek nemá úvodní obrázek */
.t-caj       { background: linear-gradient(135deg, #9AA668 0%, #55622D 100%); } /* Čaj */
.t-kava      { background: linear-gradient(135deg, #8A6446 0%, #3A2618 100%); } /* Káva */
.t-vino      { background: linear-gradient(135deg, #9A6656 0%, #5A2E28 100%); } /* Víno */
.t-destilaty { background: linear-gradient(135deg, #D2B37E 0%, #96703A 100%); } /* Destiláty */

.dot { display: inline-block; border-radius: 50%; flex-shrink: 0; }
.c-olive  { background: var(--olive); }
.c-coffee { background: var(--coffee); }
.c-wine   { background: #7A3E33; }
.c-gold   { background: var(--gold); }

.article-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  color: var(--olive);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
}
.article-meta .dot { width: 7px; height: 7px; background: currentColor; }

.section-title {
  font-family: 'Public Sans', sans-serif;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.4px;
  color: var(--muted);
  margin-bottom: 24px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.avatar, .avatar-placeholder {
  width: 42px; height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, #9AA668, #55622D);
  flex-shrink: 0;
}

.btn-primary {
  display: inline-block;
  background: var(--olive);
  color: var(--cream);
  font-weight: 700;
  font-size: 14px;
  padding: 13px 28px;
  border-radius: 999px;
}
.btn-primary:hover { background: var(--olive-dark); }

/* Karty (sekce rubrik, archivy, podobné články) */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.card .thumb { margin-bottom: 14px; aspect-ratio: 3/2; }
.card h3 { font-size: 19px; font-weight: 600; margin-bottom: 6px; line-height: 1.3; }
.card h3 a:hover { color: var(--olive); }
.card p { font-size: 14px; color: var(--muted); }


/* =========================================================
   5. HOMEPAGE
   ========================================================= */
.hero {
  background: var(--coffee);
  color: var(--cream);
  padding: 64px 0 90px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  right: -160px; top: -160px;
  width: 520px; height: 520px;
  border: 1.5px solid rgba(176, 139, 79, 0.28);
  border-radius: 50%;
  pointer-events: none;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 56px;
  align-items: center;
  position: relative;
}
.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  color: var(--gold-light);
  margin-bottom: 18px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}
.hero-tag .dot { width: 8px; height: 8px; background: var(--gold); }
.hero h1 {
  font-size: 48px;
  font-weight: 600;
  line-height: 1.12;
  margin-bottom: 18px;
  max-width: 540px;
}
.hero h1 a:hover { color: var(--gold-light); }
.hero p {
  font-size: 17px;
  color: #E2D6C4;
  max-width: 460px;
  margin-bottom: 28px;
}
.hero-visual {
  aspect-ratio: 4/3;
  border-radius: 8px;
  background: linear-gradient(135deg, #5A3D27 0%, #2A1B10 100%);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow: 0 0 0 1px rgba(176, 139, 79, 0.35);
}
.hero-visual img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-visual .hero-mark { width: 42%; opacity: 0.9; }
.hero-visual-label {
  position: absolute;
  bottom: 16px; left: 18px;
  font-size: 13px;
  color: #C9B89E;
  font-weight: 500;
  text-transform: lowercase;
}

/* Zlatá „pára" pod hero */
.horizon {
  max-width: 1180px;
  margin: -46px auto 0;
  padding: 0 32px;
  position: relative;
  z-index: 2;
}
.horizon svg { width: 100%; display: block; }

.cat-strip {
  display: flex;
  justify-content: center;
  gap: 44px;
  padding: 28px 0 48px;
  flex-wrap: wrap;
}
.cat-strip a {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 14px;
  color: var(--coffee);
}
.cat-strip a:hover { color: var(--olive); }
.cat-strip .dot { width: 9px; height: 9px; }

.home .ad-leaderboard { margin: 6px 0 44px; }

.article-row {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 24px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}
.article-row:first-of-type { padding-top: 0; }
.article-row h3 { font-size: 23px; font-weight: 600; line-height: 1.28; margin-bottom: 8px; }
.article-row h3 a:hover { color: var(--olive); }
.article-row p { font-size: 14.5px; color: var(--muted); max-width: 480px; }
.article-row .row-meta { font-size: 12.5px; color: var(--muted); margin-top: 10px; }

.sidebar-box { margin-bottom: 44px; }
.rank-item {
  display: flex;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  align-items: baseline;
}
.rank-num {
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-size: 24px;
  color: var(--gold);
  width: 28px;
  flex-shrink: 0;
}
.rank-item h4 { font-size: 15.5px; font-weight: 600; line-height: 1.35; }
.rank-item a:hover { color: var(--olive); }

.newsletter-box {
  background: var(--olive);
  color: var(--cream);
  padding: 32px 28px;
  border-radius: 8px;
  position: relative;
  overflow: hidden;
}
.newsletter-box::after {
  content: "";
  position: absolute;
  right: -60px; bottom: -60px;
  width: 180px; height: 180px;
  border: 1.5px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
}
.newsletter-box h3 { font-size: 22px; font-weight: 600; margin-bottom: 10px; }
.newsletter-box p { font-size: 14px; color: #E7EAD6; margin-bottom: 18px; }
.newsletter-box input[type="email"],
.newsletter-box input[type="text"] {
  width: 100%;
  border: none;
  border-radius: 999px;
  padding: 11px 16px;
  font-size: 13px;
  font-family: inherit;
  margin-bottom: 8px;
}
.newsletter-box button,
.newsletter-box input[type="submit"] {
  background: var(--coffee);
  color: var(--cream);
  border: none;
  border-radius: 999px;
  padding: 11px 22px;
  font-weight: 700;
  font-size: 13px;
  font-family: inherit;
  cursor: pointer;
}
.newsletter-hint { font-size: 12px; color: #D9DEC2; font-style: italic; }

.cat-section { padding: 50px 0; border-top: 1px solid var(--line); }
.cat-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 28px;
  gap: 16px;
}
.cat-header h2 { font-size: 30px; font-weight: 600; display: flex; align-items: center; gap: 12px; }
.cat-header .dot { width: 11px; height: 11px; }
.cat-header .cat-kicker {
  display: block;
  line-height: 1;
  font-family: 'Public Sans', sans-serif;
  font-size: 12px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase;
  color: var(--gold); margin-bottom: 6px;
}
.cat-header .view-all { font-size: 13px; font-weight: 700; color: var(--olive); white-space: nowrap; }
.cat-header .view-all:hover { color: var(--coffee); }


/* =========================================================
   6. ARCHIV RUBRIKY, VYHLEDÁVÁNÍ, 404
   ========================================================= */
.archive-header { padding: 48px 0 32px; border-bottom: 1px solid var(--line); margin-bottom: 36px; }
.archive-header h1 { font-size: 42px; font-weight: 600; display: flex; align-items: center; gap: 14px; }
.archive-header h1 .dot { width: 13px; height: 13px; }
.archive-header .archive-description { font-size: 17px; color: var(--muted); max-width: 640px; margin-top: 12px; }
.archive-body { padding-bottom: 70px; }
.archive-body .card-grid { row-gap: 40px; }

.pagination { margin-top: 48px; }
.pagination .nav-links { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.pagination .page-numbers {
  min-width: 40px; height: 40px; padding: 0 12px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--line); border-radius: 20px;
  font-weight: 700; font-size: 14px; color: var(--coffee);
}
.pagination .page-numbers.current { background: var(--coffee); border-color: var(--coffee); color: var(--cream); }
.pagination a.page-numbers:hover { border-color: var(--gold); color: var(--olive); }

.empty-state { padding: 60px 0 90px; text-align: center; }
.empty-state .empty-mark { width: 120px; margin: 0 auto 20px; opacity: 0.85; }
.empty-state h1 { font-size: 40px; font-weight: 600; margin-bottom: 14px; }
.empty-state p { color: var(--muted); margin-bottom: 26px; }
.empty-state .search-form { margin-bottom: 26px; }


/* =========================================================
   7. DETAIL ČLÁNKU A STRÁNKA
   ========================================================= */
.breadcrumb {
  padding: 24px 0 0;
  font-size: 13px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.breadcrumb a { color: var(--olive); font-weight: 700; }
.breadcrumb .sep { color: var(--gold); }

.article-header { padding: 22px 0 34px; }
.article-header h1 {
  font-size: 44px;
  line-height: 1.16;
  font-weight: 600;
  margin-bottom: 18px;
  max-width: 680px;
  color: var(--coffee);
}
.article-lede {
  font-size: 19.5px;
  color: #4E4436;
  max-width: 640px;
  margin-bottom: 26px;
  line-height: 1.55;
}

.byline {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.byline img.avatar { object-fit: cover; }
.byline-text { font-size: 13.5px; }
.byline-text .name { font-weight: 700; color: var(--ink); }
.byline-text .meta { color: var(--muted); }

.share { margin-left: auto; display: flex; gap: 10px; }
.share a {
  width: 36px; height: 36px;
  border: 1px solid var(--line);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--coffee);
}
.share a svg { width: 15px; height: 15px; }
.share a:hover { border-color: var(--gold); color: var(--olive); }

.hero-image {
  aspect-ratio: 16/9;
  max-height: 640px;
  width: 100%;
  background: linear-gradient(135deg, #8A6446 0%, #3A2618 100%);
  margin: 0 0 10px;
  position: relative;
  overflow: hidden;
}
.hero-image img { width: 100%; height: 100%; object-fit: cover; }
.hero-image-caption {
  font-size: 12.5px;
  color: var(--muted);
  padding-bottom: 36px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 36px;
}
.hero-image-caption:empty { padding-bottom: 0; }

.article-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 52px;
  align-items: start;
  padding-top: 8px;
}

/* Text článku — včetně bloků z editoru Gutenberg */
.article-body { font-size: 18px; color: #2F281F; line-height: 1.7; }
.article-body p { margin-bottom: 24px; }
.article-body > p:first-of-type::first-letter {
  font-family: 'Fraunces', serif;
  font-size: 66px;
  font-weight: 600;
  float: left;
  line-height: 0.8;
  padding: 8px 10px 0 0;
  color: var(--olive);
}
.article-body a { color: var(--olive); text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 3px; }
.article-body a:hover { color: var(--coffee); }
.article-body h2 { font-size: 28px; font-weight: 600; margin: 46px 0 18px; color: var(--coffee); line-height: 1.25; scroll-margin-top: 110px; }
.article-body h3 { font-size: 22px; font-weight: 600; margin: 34px 0 14px; color: var(--coffee); scroll-margin-top: 110px; }
.article-body ul, .article-body ol { margin: 0 0 24px 24px; }
.article-body li { margin-bottom: 8px; }
.article-body li::marker { color: var(--gold); }
.article-body table { width: 100%; border-collapse: collapse; margin: 0 0 28px; font-size: 15.5px; }
.article-body th, .article-body td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; }
.article-body th { color: var(--coffee); font-weight: 700; background: #EFE6D5; }

.pull-quote,
.article-body blockquote,
.article-body .wp-block-pullquote {
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-size: 26px;
  line-height: 1.4;
  color: var(--coffee);
  padding: 8px 0 8px 26px;
  border: 0;
  border-left: 3px solid var(--gold);
  margin: 40px 0;
  text-align: left;
}
.article-body blockquote p,
.article-body .wp-block-pullquote p { margin-bottom: 0; font-size: inherit; }
.article-body blockquote cite,
.article-body .wp-block-pullquote cite {
  display: block; margin-top: 10px;
  font-family: 'Public Sans', sans-serif; font-style: normal;
  font-size: 13px; color: var(--muted);
}
.article-body .wp-block-pullquote blockquote { border: 0; padding: 0; margin: 0; }

.article-body figure,
.article-body .wp-block-image { margin: 36px 0 30px; }
.article-body figure img { width: 100%; border-radius: 6px; }
.article-body figcaption,
.article-body .wp-element-caption {
  font-size: 12.5px;
  color: var(--muted);
  margin-top: 10px;
  text-align: left;
}
.article-body .wp-block-embed iframe { max-width: 100%; }
.article-body .wp-block-button__link { background: var(--olive); color: var(--cream); border-radius: 999px; text-decoration: none; font-weight: 700; font-size: 15px; padding: 12px 26px; }
.article-body .wp-block-button__link:hover { background: var(--olive-dark); color: var(--cream); }

.tags {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 44px 0 36px;
  padding-top: 30px;
  border-top: 1px solid var(--line);
}
.tag {
  font-size: 12.5px;
  font-weight: 700;
  padding: 7px 14px;
  border: 1px solid var(--line);
  border-radius: 20px;
  color: var(--coffee);
  background: var(--paper);
}
.tag:hover { border-color: var(--gold); color: var(--olive); }

.author-box {
  display: flex;
  gap: 18px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 26px;
  margin: 36px 0 60px;
}
.author-box .avatar, .author-box .avatar-placeholder { width: 56px; height: 56px; }
.author-box h4 { font-family: 'Fraunces', serif; font-size: 17px; font-weight: 600; margin-bottom: 6px; color: var(--coffee); }
.author-box p { font-size: 14px; color: var(--muted); }

.related-section { background: var(--paper); padding: 56px 0 64px; border-top: 1px solid var(--line); }
.related-section .partner-box { margin-top: 0; margin-bottom: 0; }
.related-section .section-title { border-bottom: 0; padding-bottom: 0; margin-bottom: 28px; margin-top: 36px; }
.related-section .card .article-meta { gap: 7px; letter-spacing: 0.3px; }
.related-section .card h3 { font-size: 18px; line-height: 1.35; }

/* Statická stránka (Kontakt a info, Plantážní káva…) */
.page-content { padding-bottom: 70px; }
.page-content .article-body > p:first-of-type::first-letter {
  font: inherit; float: none; padding: 0; color: inherit; line-height: inherit;
}

/* Komentáře */
.comments-area { margin: 0 0 60px; }
.comments-area .comment-list { list-style: none; margin: 0 0 30px; }
.comments-area .comment-body { padding: 18px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.comments-area .comment-meta { font-size: 13px; color: var(--muted); margin-bottom: 8px; }
.comments-area .comment-author { display: flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 700; }
.comments-area .comment-author .avatar { width: 32px; height: 32px; }
.comments-area .children { list-style: none; margin-left: 30px; }
.comments-area textarea, .comments-area input[type="text"], .comments-area input[type="email"], .comments-area input[type="url"] {
  width: 100%; border: 1px solid var(--line); border-radius: 6px; padding: 10px 12px;
  font-family: inherit; font-size: 14px; background: var(--paper); margin-top: 4px;
}
.comments-area p { margin-bottom: 14px; font-size: 14px; }
.comments-area .submit {
  background: var(--olive); color: var(--cream); border: none; border-radius: 999px;
  padding: 12px 24px; font-weight: 700; font-family: inherit; cursor: pointer;
}


/* =========================================================
   8. PATIČKA
   ========================================================= */
.site-footer {
  background: var(--coffee);
  color: var(--cream);
  padding: 56px 0 30px;
  margin-top: 40px;
}
.single .site-footer { margin-top: 0; }
.site-footer .logo { margin-bottom: 16px; color: var(--cream); }
.site-footer .logo-mark { background: var(--cream); border-radius: 50%; padding: 4px; }
.site-footer .logo-name .kava { color: var(--gold-light); }
.site-footer .logo-claim { color: #BFAE94; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.footer-grid p { font-size: 14px; color: #CDBFA9; max-width: 280px; }
.footer-col h4 {
  font-family: 'Public Sans', sans-serif;
  font-size: 12.5px;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  margin-bottom: 16px;
  color: var(--gold);
}
.footer-col ul { list-style: none; }
.footer-col a { display: block; font-size: 14px; margin-bottom: 10px; color: #EFE6D8; }
.footer-col a:hover { color: var(--gold-light); }
.footer-disclosure { font-size: 12.5px; color: #A8977E; padding-top: 22px; max-width: 760px; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-top: 18px;
  font-size: 12.5px;
  color: #A8977E;
}
.footer-bottom .claim { font-family: 'Fraunces', serif; font-style: italic; color: var(--gold-light); font-size: 14px; }


/* =========================================================
   9. HOMEPAGE – NEJNOVĚJŠÍ + NEJČTENĚJŠÍ/NEWSLETTER
   ========================================================= */
.home-latest { padding-bottom: 70px; }
.home-latest .article-row p { max-width: 640px; }
.home-extras {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
  margin-top: 56px;
}
.home-extras .sidebar-box { margin-bottom: 0; }


/* =========================================================
   10. RESPONZIVITA
   ========================================================= */
@media (max-width: 1040px) {
  .main-nav ul { gap: 20px; font-size: 14px; }
  .logo-claim { display: none; }
}

@media (max-width: 900px) {
  .menu-toggle { display: flex; }
  .main-nav {
    display: none;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--cream);
    border-bottom: 1px solid var(--line);
    padding: 8px 32px 20px;
  }
  .main-nav.is-open { display: block; }
  .main-nav ul { flex-direction: column; gap: 0; font-size: 16px; }
  .main-nav a { display: block; padding: 12px 0; border-bottom: 1px solid var(--line); }
  .main-nav .current-menu-item > a::after { display: none; }

  .hero-inner { grid-template-columns: 1fr; gap: 32px; }
  .hero h1 { font-size: 36px; }
  .home-extras { grid-template-columns: 1fr; gap: 40px; }
  .article-row { grid-template-columns: 140px 1fr; }
  .article-row h3 { font-size: 19px; }
  .card-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .cat-strip { gap: 14px 28px; }
}

@media (max-width: 800px) {
  .article-grid { grid-template-columns: 1fr; }
  .single .ad-sticky-wrap { position: static; display: flex; flex-direction: column; align-items: center; }
  .single .ad-sticky { height: 250px; }
  .article-header h1 { font-size: 32px; }
  .article-lede { font-size: 17px; }
  .share { display: none; }
  .archive-header h1 { font-size: 32px; }
}

@media (max-width: 560px) {
  .wrap, .article-wrap { padding: 0 18px; }
  .header-inner { padding: 12px 18px; }
  .logo-mark { width: 42px; height: 42px; }
  .logo-name { font-size: 18px; }
  .hero { padding: 44px 0 70px; }
  .hero h1 { font-size: 30px; }
  .card-grid { grid-template-columns: 1fr; }
  .article-row { grid-template-columns: 100px 1fr; gap: 14px; }
  .article-row p { display: none; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; }
  .cat-header { flex-direction: column; align-items: flex-start; }
  .cat-header h2 { font-size: 24px; }
  .partner-box { flex-direction: column; align-items: flex-start; }
  .ad-sticky { max-width: 100%; }
}


/* =========================================================
   11. OBSAH ČLÁNKU (kotvy) A AFFILIATE BOX
   Platí pro automatický obsah, ruční .dc-toc i boxy .dc-box z vloženého HTML.
   ========================================================= */
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
.article-body [id] { scroll-margin-top: 110px; }

.article-body .dc-toc {
  background: var(--paper);
  border: 1px solid var(--line);
  border-left: 4px solid var(--olive);
  border-radius: 8px;
  padding: 20px 24px 18px;
  margin: 32px 0 36px;
}
.article-body .dc-toc-title,
.article-body .dc-toc > p {
  font-family: 'Fraunces', serif;
  font-size: 18px;
  font-weight: 600;
  color: var(--coffee);
  margin: 0 0 10px;
}
.article-body .dc-toc ol {
  margin: 0;
  padding-left: 22px;
  font-size: 16px;
  line-height: 1.5;
}
.article-body .dc-toc li { margin: 7px 0; }
.article-body .dc-toc li::marker { color: var(--gold); font-weight: 700; }
.article-body .dc-toc a {
  color: var(--coffee);
  text-decoration: none;
  border-bottom: 1px solid var(--gold-light);
}
.article-body .dc-toc a:hover { color: var(--olive); border-bottom-color: var(--olive); }

.article-body .dc-box {
  position: relative;
  background: #F3EBDC;
  border: 1px solid var(--gold);
  border-radius: 12px;
  padding: 30px 26px 26px;
  margin: 38px 0;
}
.article-body .dc-box::before {
  content: "Partnerský tip";
  position: absolute;
  top: -10px; left: 22px;
  background: var(--gold);
  color: #fff;
  font-family: 'Public Sans', sans-serif;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.9px;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 999px;
}
.article-body .dc-box.has-image { display: flex; gap: 22px; align-items: center; }
.article-body .dc-box-img { width: 120px; height: 120px; object-fit: cover; border-radius: 8px; flex-shrink: 0; }
.article-body .dc-box-body { flex: 1; min-width: 0; }
.article-body .dc-box h3 {
  font-size: 21px;
  margin: 0 0 8px;
  color: var(--coffee);
}
.article-body .dc-box p { font-size: 16.5px; color: #4A3B2C; margin: 0 0 16px; }
.article-body .dc-box > *:last-child,
.article-body .dc-box-body > *:last-child { margin-bottom: 0; }
.article-body .dc-btn,
.article-body .dc-box .wp-block-button__link {
  display: inline-block;
  background: var(--olive);
  color: #fff;
  text-decoration: none;
  padding: 12px 24px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 15px;
  line-height: 1.3;
}
.article-body .dc-btn:hover,
.article-body .dc-box .wp-block-button__link:hover { background: var(--coffee); color: #fff; }
.article-body .dc-box .wp-block-buttons { margin: 0; }

@media (max-width: 560px) {
  .article-body .dc-box { padding: 28px 20px 22px; }
  .article-body .dc-box.has-image { flex-direction: column; align-items: flex-start; }
}

/* Obrázky vložené rovnou jako <img> (z HTML pipeline) */
.article-body > img,
.article-body > p > img:only-child { width: 100%; border-radius: 6px; margin: 34px 0; }
