/* Žirafa – nový výpis blogu (varianta A „Magazín“). Verze 1. Šablona Shoptak Carbon.
   Platí jen na stránkách se seznamem článků (body.type-posts-listing): Blog, Nákupní rádce,
   Porovnání kočárků, Autosedačky a automobil, Tipy na výlety, Checklisty, průvodci TFK a BeSafe…
     0) barvy a tóny rubrik
     1) rozvržení stránky (bez bočního panelu)
     2) úvod blogu (popis sekce Blog, blog-popis-sekce.html)
     3) lišta rubrik
     4) kompletní průvodci
     5) karty článků
     6) karta Radilky ve výpisu
     7) okolní města
     8) stránkování
     9) tablet a mobil
   Úvod, průvodce a města píšeme do popisu sekce Blog. Štítky rubrik, barevné dlaždice
   u článků bez fotky, lištu rubrik a Radilku doplňuje zirafa-blog.js. Když skript
   neproběhne, výpis zůstane čitelný (karty bez štítků, podkategorie šablony).
   Třídy mají předponu zbl-. */

/* ---------- 0) Barvy a tóny rubrik ---------- */
body.type-posts-listing {
  --zbl-green: #074d43;
  --zbl-green-h: #0b5f52;
  --zbl-lime: #d7f1aa;
  --zbl-pink: #f3d0cc;
  --zbl-yellow: #f2ecb2;
  --zbl-mint: #a2cdb9;
  --zbl-ink: #182826;
  --zbl-text: #1f2d2a;
  --zbl-muted: #4a5750;
  --zbl-soft: #5b6b66;
  --zbl-line: #dceae5;
  --zbl-surface: #f4f9f7;
  --zbl-sun-ink: #4e4208;
  --zbl-arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E");
  --zbl-pin: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 21s7-6.1 7-11a7 7 0 1 0-14 0c0 4.9 7 11 7 11z'/%3E%3Ccircle cx='12' cy='10' r='2.5'/%3E%3C/svg%3E");
}
/* Tón = barva rubriky z manuálu. Text na barvě podle manuálu str. 18. */
.zbl-tone-lime   { --tone-bg: #d7f1aa; --tone-fg: #074d43; --tone-title: #074d43; --tone-dot: #b9e07a; --tone-rule: rgba(7,77,67,.18);  --tone-cover: url("/user/documents/upload/zbl-cover-lime.svg"); }
.zbl-tone-mint   { --tone-bg: #a2cdb9; --tone-fg: #182826; --tone-title: #074d43; --tone-dot: #a2cdb9; --tone-rule: rgba(24,40,38,.2);  --tone-cover: url("/user/documents/upload/zbl-cover-mint.svg"); }
.zbl-tone-pink   { --tone-bg: #f3d0cc; --tone-fg: #182826; --tone-title: #074d43; --tone-dot: #eeb9b3; --tone-rule: rgba(24,40,38,.2);  --tone-cover: url("/user/documents/upload/zbl-cover-pink.svg"); }
.zbl-tone-yellow { --tone-bg: #f2ecb2; --tone-fg: #4e4208; --tone-title: #074d43; --tone-dot: #e6dc8e; --tone-rule: rgba(78,66,8,.2);   --tone-cover: url("/user/documents/upload/zbl-cover-yellow.svg"); }
.zbl-tone-green  { --tone-bg: #074d43; --tone-fg: #d7f1aa; --tone-title: #ffffff; --tone-dot: #074d43; --tone-rule: rgba(215,241,170,.28); --tone-cover: url("/user/documents/upload/zbl-cover-green.svg"); }

/* ---------- 1) Rozvržení stránky ---------- */
/* Boční panel s kategoriemi e-shopu a Top 10 produkty na blogu jen odvádí pozornost */
html body.type-posts-listing aside.sidebar-left { display: none !important; }
/* Šablona dává obsahu šířku „100 % mínus boční panel“ (do 1 200 px bez roztažení), bez panelu je to zbytečně úzké */
html body.type-posts-listing #content.content { width: 100% !important; flex-grow: 1 !important; }
html body.type-posts-listing #content .content-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px 24px !important;
  color: var(--zbl-text);
  font-family: Raleway, Arial, sans-serif;
}
/* Nadpis rubriky (ne na Blogu, tam je v úvodu) */
html body.type-posts-listing #content .sectionDescription > h1 {
  margin: 8px 0 8px !important;
  padding: 0 !important;
  color: var(--zbl-green) !important;
  font-family: Raleway, Arial, sans-serif !important;
  font-size: 44px !important;
  font-weight: 400 !important;
  line-height: 1.1 !important;
  letter-spacing: 0 !important;
  text-align: left !important;
  text-transform: none !important;
}
html body.type-posts-listing #content .sectionDescription > h1::before,
html body.type-posts-listing #content .sectionDescription > h1::after { display: none !important; }
/* Lištu rubrik staví skript. Do té doby (nebo bez skriptu) zůstanou podkategorie šablony. */
html body.type-posts-listing.zbl-js #content ul.subcategories { display: none !important; }

/* Společný základ pro bloky z popisu sekce: šablona jinak nadpisy centruje a seznamům dává odrážky */
.zbl, .zbl * { box-sizing: border-box; }
.zbl { font-family: Raleway, Arial, sans-serif; color: var(--zbl-text); text-align: left; }
.zbl :is(h2, h3, p, ul, li) { margin: 0 !important; padding: 0 !important; text-align: left !important; text-transform: none !important; letter-spacing: 0 !important; }
.zbl :is(h2, h3)::before, .zbl :is(h2, h3)::after { display: none !important; }
.zbl ul { list-style: none !important; }
.zbl li { list-style: none !important; }
.zbl li::before, .zbl li::marker { content: none !important; display: none !important; }
.zbl a { text-decoration: none !important; }
.zbl a:focus-visible, .zbl-pills a:focus-visible, #newsWrapper a:focus-visible { outline: 2px solid var(--zbl-green); outline-offset: 3px; }

.zbl-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 22px;
  border: 1.5px solid var(--zbl-green);
  border-radius: 999px;
  background: var(--zbl-green);
  color: #fff !important;
  font-family: Raleway, Arial, sans-serif;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none !important;
  transition: background-color .2s, border-color .2s, color .2s;
}
.zbl-btn:hover { background: var(--zbl-green-h); border-color: var(--zbl-green-h); }
.zbl-btn--light { background: var(--zbl-lime); border-color: var(--zbl-lime); color: var(--zbl-green) !important; }
.zbl-btn--light:hover { background: #fff; border-color: #fff; }
.zbl-btn--outline { background: #fff; color: var(--zbl-green) !important; }
.zbl-btn--outline:hover { background: var(--zbl-lime); border-color: var(--zbl-green); }
.zbl-btn--ghost { background: transparent; color: var(--zbl-green) !important; }
.zbl-btn--ghost:hover { background: #fff; border-color: var(--zbl-green); }

.zbl-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 24px; margin: 0 0 20px !important; }
.zbl-h2,
html body.type-posts-listing #content h2.zbl-h2 {
  margin: 0 !important;
  padding: 0 !important;
  color: var(--zbl-green) !important;
  font-family: Raleway, Arial, sans-serif !important;
  font-size: 30px !important;
  font-weight: 700 !important;
  line-height: 1.2 !important;
  text-align: left !important;
  text-transform: none !important;
}
.zbl-head p { color: var(--zbl-muted); font-size: 15px; line-height: 1.45; }

/* ---------- 2) Úvod blogu ---------- */
.zbl-hero {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 32px 40px;
  margin: 8px 0 0;
  padding: 52px 52px 56px;
  border-radius: 24px;
  background: var(--zbl-green) url("/user/documents/upload/zbl-hero-fleky.svg") no-repeat right -150px top -40px / 700px auto;
  color: var(--zbl-lime);
}
.zbl-hero__text { flex: 1 1 480px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
/* Nadpis H1 „Blog“ šablony přesune skript sem a zmenší ho na štítek nad hlavní větou */
html body.type-posts-listing #content .zbl-hero h1.zbl-h1 {
  margin: 0 !important;
  color: var(--zbl-lime) !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  line-height: 1.3 !important;
  letter-spacing: .06em !important;
  text-align: left !important;
  text-transform: uppercase !important;
}
html body.type-posts-listing:not(.zbl-paged) #content .zbl-hero h1.zbl-h1::after { display: inline !important; content: " Dětského obchůdku Žirafa"; }
.zbl .zbl-hero__claim { color: var(--zbl-lime); font-size: 60px; font-weight: 400; line-height: 1.08; }
.zbl .zbl-hero__lead { max-width: 520px; color: #f4f9f7; font-size: 18px; line-height: 1.55; }
.zbl-start {
  position: relative;
  flex: 0 1 400px;
  min-width: 0;
  padding: 24px 28px 14px;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 18px 40px rgba(0, 0, 0, .18);
  color: var(--zbl-text);
}
.zbl .zbl-start__title { padding-bottom: 8px !important; color: var(--zbl-soft); font-size: 13px; font-weight: 700; letter-spacing: .06em !important; text-transform: uppercase !important; }
.zbl-start li { border-top: 1px solid var(--zbl-line); }
.zbl-start a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 50px;
  padding: 10px 0;
  color: var(--zbl-green) !important;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.35;
}
.zbl-start a::after { content: ""; flex: none; width: 18px; height: 18px; background: currentColor; -webkit-mask: var(--zbl-arrow) center / contain no-repeat; mask: var(--zbl-arrow) center / contain no-repeat; transition: transform .2s; }
.zbl-start a:hover { text-decoration: underline !important; text-underline-offset: 3px; }
.zbl-start a:hover::after { transform: translateX(3px); }

/* Další strany výpisu (/strana-2/…): úvod jen jako krátký pruh */
body.zbl-paged .zbl-hero { padding: 28px 36px; }
body.zbl-paged :is(.zbl-hero__lead, .zbl-start, .zbl-guides) { display: none !important; }
body.zbl-paged .zbl .zbl-hero__claim { font-size: 34px; }

/* ---------- 3) Lišta rubrik ---------- */
.zbl-pills { display: flex; flex-wrap: wrap; gap: 10px; margin: 24px 0 0; padding: 0; }
.zbl-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 18px;
  border: 1px solid var(--zbl-line);
  border-radius: 999px;
  background: #fff;
  color: var(--zbl-text) !important;
  font-family: Raleway, Arial, sans-serif;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none !important;
  white-space: nowrap;
  transition: border-color .15s, background-color .15s;
}
.zbl-pill:hover { border-color: var(--zbl-green); background: var(--zbl-surface); }
.zbl-pill[aria-current="page"] { border-color: var(--zbl-green); background: var(--zbl-green); color: #fff !important; font-weight: 700; }
.zbl-pill__dot { flex: none; width: 12px; height: 12px; border-radius: 50%; background: var(--tone-dot); }
.zbl-pill[aria-current="page"] .zbl-pill__dot { box-shadow: 0 0 0 2px #fff; }

/* ---------- 4) Kompletní průvodci ---------- */
.zbl-guides { margin: 48px 0 0 !important; }
.zbl-guides__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.zbl-guide {
  display: flex;
  flex-direction: column;
  gap: 14px;
  overflow: hidden;
  padding: 0 28px 28px;
  border-radius: 20px;
  background: var(--tone-bg);
  color: var(--tone-fg);
}
/* Pruh s fleky nahoře */
.zbl-guide::before { content: ""; display: block; height: 96px; margin: 0 -28px 4px; background: var(--tone-bg) var(--tone-cover) center / cover no-repeat; }
.zbl .zbl-guide__kicker { font-size: 13px; font-weight: 700; letter-spacing: .06em !important; text-transform: uppercase !important; }
.zbl .zbl-guide h3 { color: var(--tone-title) !important; font-family: Raleway, Arial, sans-serif !important; font-size: 24px !important; font-weight: 700 !important; line-height: 1.25 !important; }
.zbl .zbl-guide h3 a { color: inherit !important; }
.zbl .zbl-guide p { font-size: 15px; line-height: 1.5; }
.zbl-guide li { border-top: 1px solid var(--tone-rule); }
.zbl-guide li a { display: block; padding: 11px 0; color: inherit !important; font-size: 15px; line-height: 1.4; }
.zbl-guide li a:hover { text-decoration: underline !important; text-underline-offset: 3px; }
.zbl-guide .zbl-btn { margin-top: auto; align-self: flex-start; }

/* ---------- 5) Karty článků ---------- */
html body.type-posts-listing #content h2.zbl-h2.zbl-feed-h { margin: 56px 0 0 !important; }
html body.type-posts-listing #content #newsWrapper {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-auto-flow: row dense; /* díry před kartou Radilky doplní další článek */
  gap: 24px;
  margin: 24px 0 0 !important;
  padding: 0 !important;
  border: 0 !important;
}
html body.type-posts-listing #content #newsWrapper .news-item {
  position: relative;
  display: flex !important;
  flex-direction: column !important;
  width: auto !important;
  max-width: none !important;
  min-width: 0;
  margin: 0 !important;
  padding: 0 !important;
  border: 1px solid var(--zbl-line) !important;
  border-radius: 20px;
  overflow: hidden;
  background: #fff !important;
  transition: box-shadow .2s, transform .2s;
}
html body.type-posts-listing #content #newsWrapper .news-item:hover { box-shadow: 0 12px 30px rgba(7, 77, 67, .13); transform: translateY(-3px); }
html body.type-posts-listing #content #newsWrapper .news-item:has(a.title:focus-visible) { outline: 2px solid var(--zbl-green); outline-offset: 3px; }
html body.type-posts-listing #content #newsWrapper .news-item.zbl-hidden { display: none !important; }

/* Fotka článku i barevná dlaždice mají stejný poměr stran, aby řady seděly */
html body.type-posts-listing #content #newsWrapper .news-item :is(.image, .zbl-cover) {
  position: relative;
  display: block !important;
  flex: none;
  width: 100% !important;
  height: auto !important;
  min-height: 0 !important;
  aspect-ratio: 16 / 10;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden;
  background: #e9f0ec;
}
html body.type-posts-listing #content #newsWrapper .news-item .image a { position: absolute; inset: 0; display: block; }
html body.type-posts-listing #content #newsWrapper .news-item .image a::before,
html body.type-posts-listing #content #newsWrapper .news-item .image a::after { display: none !important; }
html body.type-posts-listing #content #newsWrapper .news-item .image img {
  position: absolute !important;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  object-fit: cover !important;
  transform: none;
  transition: transform .4s;
}
html body.type-posts-listing #content #newsWrapper .news-item:hover .image img { transform: scale(1.03); }
html body.type-posts-listing #content #newsWrapper .news-item .zbl-cover { background: var(--tone-bg) var(--tone-cover) center / cover no-repeat; }
.zbl-cover__icon {
  position: absolute;
  left: 20px;
  bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #fff;
  color: var(--zbl-green);
}
.zbl-tone-green .zbl-cover__icon { background: var(--zbl-lime); }
.zbl-cover__icon svg { width: 24px; height: 24px; }

html body.type-posts-listing #content #newsWrapper .news-item .text {
  display: flex !important;
  flex: 1 1 auto;
  flex-direction: column !important;
  justify-content: flex-start !important;
  gap: 10px;
  width: auto !important;
  margin: 0 !important;
  padding: 20px 24px 24px !important;
}
.zbl-badge {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--tone-bg);
  color: var(--tone-fg);
  font-family: Raleway, Arial, sans-serif;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
}
.zbl-badges { display: flex; flex-wrap: wrap; gap: 8px; }
.zbl-badge--new { background: var(--zbl-green); color: var(--zbl-lime); }
html body.type-posts-listing #content #newsWrapper .news-item .text a.title {
  display: -webkit-box !important;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  color: var(--zbl-green) !important;
  font-family: Raleway, Arial, sans-serif !important;
  font-size: 21px !important;
  font-weight: 700 !important;
  line-height: 1.28 !important;
  letter-spacing: 0 !important;
  text-align: left !important;
  text-decoration: none !important;
}
/* Celá karta je odkaz na článek (přes nadpis), ostatní odkazy v kartě jsou jen pro myš */
html body.type-posts-listing #content #newsWrapper .news-item .text a.title::after { content: ""; position: absolute; inset: 0; z-index: 1; }
html body.type-posts-listing #content #newsWrapper .news-item .text .description {
  display: -webkit-box !important;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
  margin: 0 !important;
  padding: 0 !important;
  color: var(--zbl-muted) !important;
  font-size: 15px !important;
  line-height: 1.5 !important;
  letter-spacing: 0 !important;
}
html body.type-posts-listing #content #newsWrapper .news-item .text .description p { margin: 0 !important; padding: 0 !important; font-size: inherit !important; line-height: inherit !important; color: inherit !important; }
html body.type-posts-listing #content #newsWrapper .news-item.zbl-nodesc .description { display: none !important; }
html body.type-posts-listing #content #newsWrapper .news-item .text a.read-more {
  display: inline-flex !important;
  align-self: flex-start;
  align-items: center;
  gap: 8px;
  width: auto !important;
  height: auto !important;
  min-height: 0 !important;
  margin: auto 0 0 !important;
  padding: 6px 0 0 !important;
  border: 0 !important;
  background: none !important;
  box-shadow: none !important;
  color: var(--zbl-green) !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  line-height: 1.3 !important;
}
html body.type-posts-listing #content #newsWrapper .news-item .text a.read-more::before { display: none !important; }
html body.type-posts-listing #content #newsWrapper .news-item .text a.read-more::after {
  content: "";
  position: static !important;
  display: block;
  width: 18px;
  height: 18px;
  background: currentColor;
  -webkit-mask: var(--zbl-arrow) center / contain no-repeat;
  mask: var(--zbl-arrow) center / contain no-repeat;
  transition: transform .2s;
}
html body.type-posts-listing #content #newsWrapper .news-item:hover a.read-more::after { transform: translateX(3px); }

/* Nejnovější článek přes celou šířku */
html body.type-posts-listing #content #newsWrapper .news-item.zbl-featured { grid-column: 1 / -1; flex-direction: row !important; flex-wrap: wrap; }
html body.type-posts-listing #content #newsWrapper .news-item.zbl-featured :is(.image, .zbl-cover) { flex: 1 1 560px; width: auto !important; min-height: 340px !important; aspect-ratio: auto; }
html body.type-posts-listing #content #newsWrapper .news-item.zbl-featured .text { flex: 1 1 420px; justify-content: center !important; gap: 16px; padding: 40px 44px !important; }
html body.type-posts-listing #content #newsWrapper .news-item.zbl-featured .text a.title { font-size: 34px !important; line-height: 1.18 !important; }
html body.type-posts-listing #content #newsWrapper .news-item.zbl-featured .text .description { font-size: 17px !important; line-height: 1.55 !important; }
html body.type-posts-listing #content #newsWrapper .news-item.zbl-featured a.read-more { margin-top: 4px !important; font-size: 16px !important; }
html body.type-posts-listing #content #newsWrapper .news-item.zbl-featured .zbl-cover__icon { left: 24px; bottom: 24px; width: 56px; height: 56px; }
html body.type-posts-listing #content #newsWrapper .news-item.zbl-featured .zbl-cover__icon svg { width: 28px; height: 28px; }

/* ---------- 6) Karta Radilky ve výpisu ---------- */
.zbl-radilka {
  grid-column: 1 / -1;
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 124px minmax(0, 1fr) auto;
  grid-template-areas: "img title act" "img text act" "img store act";
  align-items: center;
  gap: 8px 36px;
  padding: 28px 40px;
  border-radius: 20px;
  background: var(--zbl-green) url("/user/documents/upload/zbl-band-fleky.svg") no-repeat right -60px bottom -40px / 640px auto;
  color: #f4f9f7;
  font-family: Raleway, Arial, sans-serif;
}
.zbl-radilka > * { position: relative; }
.zbl-radilka__img { grid-area: img; width: 124px !important; height: auto !important; }
.zbl-radilka__title { grid-area: title; align-self: end; margin: 0 !important; color: var(--zbl-lime); font-size: 26px; font-weight: 700; line-height: 1.25; }
.zbl-radilka__text { grid-area: text; margin: 0 !important; color: #f4f9f7; font-size: 16px; line-height: 1.55; }
.zbl-radilka__store { grid-area: store; align-self: start; margin: 0 !important; color: var(--zbl-lime); font-size: 14px; line-height: 1.45; }
.zbl-radilka__actions { grid-area: act; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; }
.zbl-radilka__more { color: var(--zbl-lime) !important; font-size: 15px; font-weight: 700; text-decoration: underline !important; text-underline-offset: 3px; }

/* ---------- 7) Okolní města ---------- */
.zbl-cities {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 24px 40px;
  margin: 56px 0 24px !important;
  padding: 36px 40px;
  border: 1px solid var(--zbl-line);
  border-radius: 20px;
  background: var(--zbl-surface);
}
.zbl-cities__head { flex: 1 1 280px; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.zbl .zbl-cities__head h2 { display: flex; align-items: center; gap: 10px; color: var(--zbl-green) !important; font-family: Raleway, Arial, sans-serif !important; font-size: 24px !important; font-weight: 700 !important; line-height: 1.25 !important; }
.zbl .zbl-cities__head h2::before { content: "" !important; display: block !important; flex: none; width: 28px; height: 28px; background: currentColor; -webkit-mask: var(--zbl-pin) center / contain no-repeat; mask: var(--zbl-pin) center / contain no-repeat; }
.zbl .zbl-cities__head p { font-size: 16px; line-height: 1.55; }
.zbl-cities__list { flex: 2 1 560px; min-width: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; }
.zbl-cities__list a {
  display: flex;
  flex-direction: column;
  gap: 2px;
  height: 100%;
  padding: 12px 16px;
  border: 1px solid var(--zbl-line);
  border-radius: 14px;
  background: #fff;
  color: var(--zbl-text) !important;
  transition: border-color .15s, box-shadow .15s;
}
.zbl-cities__list a:hover { border-color: var(--zbl-green); box-shadow: 0 6px 18px rgba(7, 77, 67, .10); }
.zbl-cities__list small { color: var(--zbl-soft); font-size: 12px; font-weight: 600; line-height: 1.3; }
.zbl-cities__list strong { color: var(--zbl-green); font-size: 16px; font-weight: 700; line-height: 1.3; }
.zbl-cities__list span { color: var(--zbl-muted); font-size: 13px; line-height: 1.3; }

/* ---------- 8) Stránkování ---------- */
html body.type-posts-listing #content .listingControls { display: flex !important; flex-direction: column; align-items: center; gap: 14px; padding: 40px 0 8px !important; }
html body.type-posts-listing #content .listingControls > * { margin-left: auto !important; margin-right: auto !important; }
html body.type-posts-listing #content .listingControls :is(.goToTop, .itemsTotal) { display: none !important; }
html body.type-posts-listing #content nav.pagination { display: flex !important; flex-direction: column-reverse; align-items: center; gap: 12px; font-family: Raleway, Arial, sans-serif; }
html body.type-posts-listing #content #paginationStatus { display: block !important; margin: 0 !important; max-width: none !important; color: var(--zbl-muted); font-size: 14px; line-height: 1.4; }
html body.type-posts-listing #content ul.pagination__list { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 0 !important; padding: 0 !important; }
html body.type-posts-listing #content ul.pagination__list li { margin: 0 !important; padding: 0 !important; }
html body.type-posts-listing #content :is(.pagination__currentPage, .pagination__link):not(#zbr) {
  display: flex !important;
  align-items: center;
  justify-content: center;
  width: 44px !important;
  height: 44px !important;
  min-height: 0 !important;
  padding: 0 !important;
  border: 1px solid var(--zbl-line) !important;
  border-radius: 999px !important;
  background: #fff !important;
  color: var(--zbl-green) !important;
  font-size: 15px !important;
  line-height: 1 !important;
  box-shadow: none !important;
}
html body.type-posts-listing #content .pagination__currentPage:not(#zbr) { border-color: var(--zbl-lime) !important; background: var(--zbl-lime) !important; }
html body.type-posts-listing #content .pagination__link:not(#zbr):hover { border-color: var(--zbl-green) !important; }
html body.type-posts-listing #content .pagination__link::before { color: var(--zbl-green) !important; }

/* ---------- 9) Tablet a mobil ---------- */
@media (max-width: 1199px) {
  .zbl .zbl-hero__claim { font-size: 48px; }
  .zbl-hero { background-position: right -110px top -30px; background-size: 520px auto; }
  .zbl-hero__text { flex-basis: 380px; }
  .zbl-start { flex-basis: 340px; }
  .zbl-guides__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .zbl-guides__grid > :last-child:nth-child(odd) { grid-column: 1 / -1; }
}
@media (max-width: 1023px) {
  /* Fleky dolů doprava za kartu „Začněte tady“, aby nebyly pod textem */
  .zbl-hero { background-position: right -130px bottom -150px; background-size: 460px auto; }
  .zbl-start { flex-basis: 100%; }
  .zbl-start ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 28px; }
  html body.type-posts-listing #content #newsWrapper { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  html body.type-posts-listing #content #newsWrapper .news-item.zbl-featured :is(.image, .zbl-cover) { min-height: 280px !important; }
  html body.type-posts-listing #content #newsWrapper .news-item.zbl-featured .text { padding: 28px 32px !important; }
  html body.type-posts-listing #content #newsWrapper .news-item.zbl-featured .text a.title { font-size: 28px !important; }
}
@media (max-width: 767px) {
  html body.type-posts-listing #content .content-inner { padding: 0 16px 16px !important; }
  html body.type-posts-listing #content .sectionDescription > h1 { font-size: 34px !important; }
  .zbl-hero { gap: 24px; margin-top: 4px; padding: 28px 20px 20px; border-radius: 20px; background-position: right -130px bottom -150px; background-size: 380px auto; }
  .zbl .zbl-hero__claim { font-size: 38px; line-height: 1.1; }
  .zbl .zbl-hero__lead { font-size: 16px; }
  html body.type-posts-listing #content .zbl-hero h1.zbl-h1 { font-size: 13px !important; }
  .zbl-start { flex-basis: 100%; padding: 18px 20px 8px; border-radius: 18px; }
  .zbl-start ul { display: block; }
  .zbl-start a { min-height: 48px; font-size: 15px; }
  body.zbl-paged .zbl-hero { padding: 22px 20px; }
  body.zbl-paged .zbl .zbl-hero__claim { font-size: 26px; }

  /* Rubriky a průvodci se posouvají do strany, stránka se tím neprodlouží */
  .zbl-pills { flex-wrap: nowrap; gap: 8px; margin: 16px -16px 0; padding: 0 16px 4px; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .zbl-pills::-webkit-scrollbar { display: none; }
  .zbl-pill { flex: none; padding: 10px 16px; font-size: 14px; }
  .zbl-pill__dot { width: 10px; height: 10px; }
  .zbl-guides { margin-top: 32px !important; }
  .zbl-h2, html body.type-posts-listing #content h2.zbl-h2 { font-size: 24px !important; }
  .zbl-head { margin-bottom: 14px !important; }
  .zbl-head p { display: none; }
  .zbl-guides__grid { display: flex; gap: 12px; margin: 0 -16px; padding: 0 16px 4px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0 16px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .zbl-guides__grid::-webkit-scrollbar { display: none; }
  .zbl-guide { flex: 0 0 86%; max-width: 320px; gap: 10px; padding: 0 20px 20px; border-radius: 18px; scroll-snap-align: start; }
  .zbl-guide::before { height: 72px; margin: 0 -20px 4px; }
  .zbl .zbl-guide h3 { font-size: 21px !important; }
  .zbl .zbl-guide > p:not(.zbl-guide__kicker) { display: none; }
  .zbl-guide li:nth-child(n+3) { display: none; }
  .zbl-guide li a { font-size: 14px; padding: 10px 0; }

  /* Výpis: nejnovější článek jako velká karta, ostatní jako řádky s malým náhledem */
  html body.type-posts-listing #content h2.zbl-h2.zbl-feed-h { margin-top: 36px !important; }
  html body.type-posts-listing #content #newsWrapper { grid-template-columns: minmax(0, 1fr); gap: 0; margin-top: 16px !important; }
  html body.type-posts-listing #content #newsWrapper .news-item.zbl-featured { flex-direction: column !important; margin-bottom: 8px !important; border-radius: 18px; }
  html body.type-posts-listing #content #newsWrapper .news-item.zbl-featured :is(.image, .zbl-cover) { flex: none; width: 100% !important; min-height: 0 !important; aspect-ratio: 16 / 10; }
  html body.type-posts-listing #content #newsWrapper .news-item.zbl-featured .text { flex: none; gap: 10px; padding: 18px 20px 20px !important; }
  html body.type-posts-listing #content #newsWrapper .news-item.zbl-featured .text a.title { font-size: 22px !important; line-height: 1.25 !important; }
  html body.type-posts-listing #content #newsWrapper .news-item.zbl-featured .text .description { font-size: 15px !important; }
  html body.type-posts-listing #content #newsWrapper .news-item.zbl-featured .zbl-cover__icon { left: 16px; bottom: 16px; width: 44px; height: 44px; }
  html body.type-posts-listing #content #newsWrapper .news-item.zbl-featured .zbl-cover__icon svg { width: 22px; height: 22px; }

  html body.type-posts-listing #content #newsWrapper .news-item:not(.zbl-featured) {
    flex-direction: row !important;
    align-items: center;
    gap: 14px;
    padding: 14px 0 !important;
    border: 0 !important;
    border-bottom: 1px solid var(--zbl-line) !important;
    border-radius: 0;
    overflow: visible;
    background: transparent !important;
  }
  html body.type-posts-listing #content #newsWrapper .news-item:not(.zbl-featured):hover { transform: none; box-shadow: none; }
  html body.type-posts-listing #content #newsWrapper .news-item:not(.zbl-featured) :is(.image, .zbl-cover) { flex: 0 0 104px; width: 104px !important; height: 104px !important; aspect-ratio: 1 / 1; border-radius: 14px; }
  html body.type-posts-listing #content #newsWrapper .news-item:not(.zbl-featured) .zbl-cover__icon { display: none; }
  html body.type-posts-listing #content #newsWrapper .news-item:not(.zbl-featured) .text { gap: 7px; padding: 0 !important; }
  html body.type-posts-listing #content #newsWrapper .news-item:not(.zbl-featured) .text a.title { font-size: 16px !important; line-height: 1.3 !important; }
  html body.type-posts-listing #content #newsWrapper .news-item:not(.zbl-featured) :is(.description, a.read-more) { display: none !important; }
  html body.type-posts-listing #content #newsWrapper .news-item:not(.zbl-featured) .zbl-badge { padding: 4px 10px; font-size: 11px; }

  .zbl-radilka {
    grid-template-columns: 72px minmax(0, 1fr);
    grid-template-areas: "img title" "text text" "store store" "act act";
    gap: 10px 14px;
    margin: 20px 0 !important;
    padding: 22px 20px;
    border-radius: 18px;
    background-position: right -220px bottom -70px;
    background-size: 420px auto;
  }
  .zbl-radilka__img { width: 72px !important; }
  .zbl-radilka__title { align-self: center; font-size: 20px; }
  .zbl-radilka__text { font-size: 15px; }
  .zbl-radilka__actions .zbl-btn { flex: 1 1 100%; min-height: 48px; }

  .zbl-cities { gap: 14px; margin: 36px 0 16px !important; padding: 22px 20px; border-radius: 18px; }
  .zbl .zbl-cities__head h2 { font-size: 20px !important; }
  .zbl .zbl-cities__head p { font-size: 15px; }
  .zbl-cities__list { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .zbl-cities__list a { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 0 12px; min-height: 56px; padding: 10px 14px; }
  .zbl-cities__list small { grid-column: 1 / -1; }
  .zbl-cities__list strong { font-size: 15px; }
  .zbl-cities__list span { white-space: nowrap; }
}
@media (prefers-reduced-motion: reduce) {
  .zbl *, #newsWrapper .news-item, #newsWrapper .news-item * { transition: none !important; }
  html body.type-posts-listing #content #newsWrapper .news-item:hover { transform: none; }
}
