/* ============================================================
   TWIKO · twiko-blog-5.css · v5 · 08. 11. 2026
   v5: nativní lišta drobečků pryč i z detailu článku a ze seznamu značek.
   Dominik 08. 11.: „na detailu blogového článku je nahoře zase ta shoptet
   native lišta." Je to ten samý prvek jako na výpisu, tak ho řeší jedno
   pravidlo pro všechny tři stránky blogové části.
   TWIKO · twiko-blog-4.css · v4 · 08. 11. 2026
   v4: drobečky se v3 neschovaly. Celou dobu jsem je cílil přes
   `#content-wrapper .breadcrumbs-wrapper`, jenže .breadcrumbs-wrapper
   visí na .overall-wrapper, tedy O ÚROVEŇ VÝŠ než #content-wrapper.
   Selektor nikdy nematchoval — ani `margin-bottom: 6px` z v1.
   TWIKO · twiko-blog-3.css · v3 · 08. 11. 2026
   v3: tlačítko „Přečíst článek", kratší perex a pryč s nativní lištou
   drobečků. Dominik 08. 11.: „chybí tam tlačítko přečíst, ten excerpt dej
   kratší o 40 % a nahoře tu native shoptet lištu taky schovej."
   Tlačítko vkládá twiko-blog-1.js, tady je jen vzhled.
   TWIKO · twiko-blog-2.css · v2 · 08. 11. 2026
   v2: fotky ve výpisu článků. Dominik 08. 11.: „fotky opravit, aby byly
   full width, jsou všechny nějak useknuté". Dvě příčiny:
     a) .image má ze šablony pevných 370 px, takže ve 431px kartě zbyl
        vpravo bílý pruh. Stretch z flexu to nepřebil, pevná šířka vyhrává.
     b) poměr 16/10 proti fotkám 1200x900 (4:3) — object-fit: cover ukrojil
        17 % výšky. Všech sedm článků má 4:3, takže poměr srovnáváme s nimi
        a neořezává se nic.
   TWIKO · twiko-blog-1.css · v1 · 25. 09. 2026
   Výpis značek, výpis článků a detail článku.

   Nativní DOM Shoptetu (template-11, ověřeno na bioby a na jiném
   e-shopu se stejnou šablonou, kde blog má obsah):
     značky   body.in-znacka.type-manufacturers-listing
              → main#content > h1.category-title + ul.manufacturers
                > li (skupina písmene) > h2 + ul > li > a
     výpis    body.type-posts-listing (i rubrika, např. in-rady-a-tipy)
              → .content-inner > .sectionDescription > h1
                + .news-wrapper > .news-item > .image > a > img
                + .text > a.title + time + .description
                + .listingControls > .itemsTotal
     detail   body.type-post → .news-item-detail > h1 + time + .text

   Obě stránky mají od šablony postranní panel se stromem kategorií.
   Na seznamu značek ani v článcích nedává smysl, proto ho skrýváme
   a obsah dostane celou šířku webu.

   Tokeny: twiko-base-6.css.
   ============================================================ */

/* ---------- 1) Společná plocha ---------- */
body.in-znacka,
body.type-posts-listing,
body.type-post { background: var(--tw-ground); }
body.in-znacka #content-wrapper,
body.type-posts-listing #content-wrapper,
body.type-post #content-wrapper { background: transparent; }
body.in-znacka #content-wrapper aside.sidebar,
body.type-posts-listing #content-wrapper aside.sidebar,
body.type-post #content-wrapper aside.sidebar { display: none; }
body.in-znacka #content-wrapper main#content,
body.type-posts-listing #content-wrapper main#content,
body.type-post #content-wrapper main#content {
  width: 100%;
  max-width: none;
  padding: 0;
  background: transparent;
}
/* obal obsahu má od šablony strop 820 px, což je na mřížku karet málo */
body.type-posts-listing #content-wrapper .content-inner,
body.type-post #content-wrapper .content-inner {
  max-width: none;
  padding: 0;
}


/* ---------- 2) Výpis značek ---------- */
body.in-znacka #content-wrapper h1.category-title {
  margin: 26px 0 6px;
  font-family: var(--tw-serif);
  font-size: clamp(28px, 2.8vw, 36px);
  font-weight: 600;
  line-height: 1.2;
  color: var(--tw-ink);
}
body.in-znacka #content-wrapper ul.manufacturers {
  margin: 22px 0 64px;
  padding: 10px 6px 6px;
  border-radius: var(--tw-r-lg);
  background: #FFFFFF;
  box-shadow: var(--tw-shadow-card);
  list-style: none;
}
body.in-znacka #content-wrapper ul.manufacturers > li {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  align-items: start;
  margin: 0;
  padding: 18px 20px;
  border-bottom: 1px solid var(--tw-line);
}
body.in-znacka #content-wrapper ul.manufacturers > li:last-child { border-bottom: 0; }
body.in-znacka #content-wrapper ul.manufacturers > li::before { content: none; }
body.in-znacka #content-wrapper ul.manufacturers > li > h2 {
  margin: 0;
  padding: 0;
  font-family: var(--tw-serif);
  font-size: 30px;
  font-weight: 600;
  line-height: 1.1;
  color: var(--tw-acc);
}
body.in-znacka #content-wrapper ul.manufacturers > li > ul {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 2px 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}
body.in-znacka #content-wrapper ul.manufacturers > li > ul > li { margin: 0; padding: 0; }
body.in-znacka #content-wrapper ul.manufacturers > li > ul > li::before { content: none; }
body.in-znacka #content-wrapper ul.manufacturers a {
  display: block;
  padding: 7px 10px;
  border-radius: 10px;
  font: 500 15px/1.4 var(--tw-sans);
  color: var(--tw-ink);
  text-decoration: none;
  text-transform: none;
  transition: background .16s cubic-bezier(.4, 0, .2, 1), color .16s cubic-bezier(.4, 0, .2, 1);
}
body.in-znacka #content-wrapper ul.manufacturers a:hover,
body.in-znacka #content-wrapper ul.manufacturers a:focus-visible {
  background: var(--tw-ground);
  color: var(--tw-act);
}

/* ---------- 3) Výpis článků ---------- */
body.type-posts-listing #content-wrapper .sectionDescription {
  max-width: 720px;
  margin: 26px 0 0;
}
body.type-posts-listing #content-wrapper .sectionDescription h1 {
  margin: 0 0 8px;
  font-family: var(--tw-serif);
  font-size: clamp(28px, 2.8vw, 36px);
  font-weight: 600;
  line-height: 1.2;
  color: var(--tw-ink);
}
body.type-posts-listing #content-wrapper .sectionDescription p {
  margin: 0;
  font: 400 16.5px/1.65 var(--tw-sans);
  color: var(--tw-dim);
}
body.type-posts-listing #content-wrapper .news-wrapper {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin: 28px 0 40px;
}
body.type-posts-listing #content-wrapper .news-item {
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: var(--tw-r-lg);
  background: #FFFFFF;
  box-shadow: var(--tw-shadow-card);
  overflow: hidden;
  transition: transform .18s cubic-bezier(.4, 0, .2, 1), box-shadow .18s cubic-bezier(.4, 0, .2, 1);
}
body.type-posts-listing #content-wrapper .news-item:hover {
  transform: translateY(-2px);
  box-shadow: var(--tw-shadow-card-h, 0 2px 4px rgba(3, 52, 74, .08), 0 22px 40px -16px rgba(3, 52, 74, .3));
}
body.type-posts-listing #content-wrapper .news-item .image {
  display: block;
  width: 100%;          /* šablona tu má pevných 370 px */
  margin: 0;
  background: var(--tw-ground);
}
body.type-posts-listing #content-wrapper .news-item .image a {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;  /* stejně jako nahrané fotky 1200x900 */
  overflow: hidden;
}
body.type-posts-listing #content-wrapper .news-item .image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;    /* pojistka, kdyby přibyla fotka s jiným poměrem */
}
body.type-posts-listing #content-wrapper .news-item .text {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 8px;
  padding: 20px 22px 22px;
}
body.type-posts-listing #content-wrapper .news-item a.title {
  font-family: var(--tw-serif);
  font-size: 20px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--tw-ink);
  text-decoration: none;
}
body.type-posts-listing #content-wrapper .news-item a.title:hover { color: var(--tw-act); }
body.type-posts-listing #content-wrapper .news-item time {
  order: -1;
  font: 600 12.5px/1.2 var(--tw-sans);
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--tw-dim);
}
body.type-posts-listing #content-wrapper .news-item .description {
  font: 400 15px/1.65 var(--tw-sans);
  color: var(--tw-dim);
}
body.type-posts-listing #content-wrapper .news-item .description a {
  color: var(--tw-act);
  text-decoration: none;
}
body.type-posts-listing #content-wrapper .news-item .description a:hover { text-decoration: underline; }
body.type-posts-listing #content-wrapper .listingControls {
  margin: 0 0 56px;
  font: 400 14px/1.5 var(--tw-sans);
  color: var(--tw-dim);
}
/* prázdná rubrika: ať to není holá věta na prázdné ploše */
body.type-posts-listing #content-wrapper .news-wrapper:empty::before,
body.type-posts-listing #content-wrapper #content > p:only-of-type {
  display: block;
  padding: 44px 28px;
  border-radius: var(--tw-r-lg);
  background: #FFFFFF;
  box-shadow: var(--tw-shadow-card);
  font: 400 16px/1.6 var(--tw-sans);
  color: var(--tw-dim);
  text-align: center;
}

/* ---------- 4) Detail článku ---------- */
body.type-post #content-wrapper .news-item-detail {
  max-width: 820px;
  margin: 26px auto 72px;
  padding: 44px 52px 48px;
  border-radius: var(--tw-r-lg);
  background: #FFFFFF;
  box-shadow: var(--tw-shadow-card);
}
body.type-post #content-wrapper .news-item-detail h1 {
  margin: 0 0 10px;
  font-family: var(--tw-serif);
  font-size: clamp(28px, 2.8vw, 36px);
  font-weight: 600;
  line-height: 1.22;
  color: var(--tw-ink);
}
body.type-post #content-wrapper .news-item-detail > time {
  display: block;
  margin: 0 0 26px;
  font: 600 12.5px/1.2 var(--tw-sans);
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--tw-dim);
}
body.type-post #content-wrapper .news-item-detail .text {
  font: 400 17px/1.75 var(--tw-sans);
  color: var(--tw-ink);
}
body.type-post #content-wrapper .news-item-detail .text > * + * { margin-top: 18px; }
body.type-post #content-wrapper .news-item-detail .text h2 {
  margin-top: 34px;
  font-family: var(--tw-serif);
  font-size: 25px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--tw-ink);
}
body.type-post #content-wrapper .news-item-detail .text h3 {
  margin-top: 28px;
  font: 600 19px/1.35 var(--tw-sans);
  color: var(--tw-ink);
}
body.type-post #content-wrapper .news-item-detail .text a {
  color: var(--tw-act);
  text-decoration: underline;
  text-underline-offset: 2px;
}
body.type-post #content-wrapper .news-item-detail .text img {
  max-width: 100%;
  height: auto;
  border-radius: 14px;
}
body.type-post #content-wrapper .news-item-detail .text ul,
body.type-post #content-wrapper .news-item-detail .text ol { padding-left: 22px; }
body.type-post #content-wrapper .news-item-detail .text li + li { margin-top: 6px; }
body.type-post #content-wrapper .news-item-detail .text blockquote {
  margin: 26px 0;
  padding: 4px 0 4px 20px;
  border-left: 3px solid var(--tw-warm);
  font-style: normal;
  color: var(--tw-dim);
}

/* ---------- 5) Zlomy ---------- */
@media (max-width: 991px) {
  body.type-posts-listing #content-wrapper .news-wrapper { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
  body.type-post #content-wrapper .news-item-detail { padding: 34px 28px 36px; }
}
@media (max-width: 767px) {
  body.in-znacka #content-wrapper ul.manufacturers > li { grid-template-columns: 52px minmax(0, 1fr); padding: 14px 12px; }
  body.in-znacka #content-wrapper ul.manufacturers > li > h2 { font-size: 24px; }
  body.in-znacka #content-wrapper ul.manufacturers > li > ul { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 0 8px; }
  body.in-znacka #content-wrapper ul.manufacturers a { padding: 7px 8px; font-size: 14.5px; }
  body.type-posts-listing #content-wrapper .news-wrapper { grid-template-columns: minmax(0, 1fr); }
  body.type-posts-listing #content-wrapper .news-item .text { padding: 16px 18px 18px; }
  body.type-post #content-wrapper .news-item-detail { margin: 18px auto 56px; padding: 26px 20px 30px; }
  body.type-post #content-wrapper .news-item-detail .text { font-size: 16.5px; }
}

/* ============================================================
   v3 · VÝPIS ČLÁNKŮ: TLAČÍTKO, PEREX, DROBEČKY
   ============================================================ */

/* ---------- drobečky ----------
   Bílý pruh přes celou šířku je nativní Shoptetí vzhled: na krémovém
   podkladu vypadá jako cizí lišta. Na informačních stránkách ho
   twiko-docs-10.css schovává už dřív, tady to jen sjednocujeme. */
body.type-posts-listing .breadcrumbs-wrapper,
body.type-post .breadcrumbs-wrapper,
body.in-znacka .breadcrumbs-wrapper { display: none; }
body.type-posts-listing #content-wrapper .sectionDescription { margin-top: 30px; }
body.type-post #content-wrapper .news-item-detail { margin-top: 30px; }
body.in-znacka #content-wrapper h1.category-title { margin-top: 30px; }

/* ---------- perex ----------
   Shoptet ořezává na ~220 znaků, tedy pět řádků v kartě. Tři řádky je
   o 40 % míň a zbytek si zákazník přečte v článku. Text zůstává v HTML,
   jen se nevykreslí, takže se nic neztrácí pro vyhledávače. */
body.type-posts-listing #content-wrapper .news-item .description {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
}
body.type-posts-listing #content-wrapper .news-item .description p { margin: 0; }

/* ---------- tlačítko ----------
   Obrysové, ne plné: sedm plných oranžových tlačítek pod sebou by
   přebilo fotky i nadpisy. margin-top: auto je srovná na spodní hranu,
   takže v řadě drží linku i při různě dlouhých nadpisech. */
body.type-posts-listing #content-wrapper .news-item .tw-blog-vice {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  margin-top: auto;
  padding: 9px 18px;
  border: 2px solid var(--tw-ink);
  border-radius: 11px;
  background: transparent;
  font: 600 14px/1.2 var(--tw-sans);
  color: var(--tw-ink);
  text-decoration: none;
  transition: background-color .18s var(--tw-ease), color .18s var(--tw-ease);
}
body.type-posts-listing #content-wrapper .news-item .tw-blog-vice:hover,
body.type-posts-listing #content-wrapper .news-item .tw-blog-vice:focus-visible {
  background: var(--tw-ink);
  color: #FFFFFF;
}
/* na kartu jde kliknout i mimo tlačítko, tak ať tlačítko reaguje s ní */
body.type-posts-listing #content-wrapper .news-item:hover .tw-blog-vice {
  background: var(--tw-ink);
  color: #FFFFFF;
}
body.type-posts-listing #content-wrapper .news-item .text { gap: 10px; }

@media (max-width: 767px) {
  body.type-posts-listing #content-wrapper .news-item .tw-blog-vice { padding: 10px 16px; }
}
