/*
 * Kosmetika4u – Magazín 4u
 * Verze: 1.0.0 | 25. 11. 2026
 * Soubor: k4u-magazin.css
 * Načíst za ostatními vlastními CSS.
 * Ověřeno proti HTML /magazin-4u/: body.id-923.type-posts-listing.
 * Jeden článek na řádek, obrázek vlevo, text vpravo; na mobilu pod sebou.
 */

/* 1. Kompaktní úvod rubriky */
body.id-923.type-posts-listing #content .sectionDescription {
  margin: 0 0 22px;
  padding: 0;
}
body.id-923.type-posts-listing #content .sectionDescription h1 {
  margin: 0 0 10px;
  color: #127c72;
  font-size: clamp(28px, 2.4vw, 34px);
  font-weight: 700;
  line-height: 1.2;
}
body.id-923.type-posts-listing #content .sectionDescription h3 {
  margin: 0;
  color: #414b48;
  font-family: inherit;
  font-size: 18px;
  font-weight: 400;
  line-height: 1.5;
}

/* 2. Výpis: vždy jeden článek na řádek */
body.id-923.type-posts-listing #content #newsWrapper {
  display: block;
  margin: 0;
  padding: 0;
}
body.id-923.type-posts-listing #content #newsWrapper > .news-item {
  box-sizing: border-box;
  display: grid;
  grid-template-columns: minmax(0, 32%) minmax(0, 1fr);
  align-items: start;
  gap: 26px;
  float: none;
  clear: both;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 26px 0;
  border: 0;
  border-bottom: 1px solid #dce5e2;
  background: transparent;
  box-shadow: none;
}
body.id-923.type-posts-listing #content #newsWrapper > .news-item:first-child {
  padding-top: 0;
}
body.id-923.type-posts-listing #content #newsWrapper > .news-item::before,
body.id-923.type-posts-listing #content #newsWrapper > .news-item::after {
  content: none;
}

/* 3. Stejný rozměr všech náhledů; ořez bez deformace obrázku */
body.id-923.type-posts-listing #content #newsWrapper .news-item > .image {
  float: none;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
}
body.id-923.type-posts-listing #content #newsWrapper .news-item > .image > a {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: 7px;
  background: #f3f5f4;
}
body.id-923.type-posts-listing #content #newsWrapper .news-item > .image img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: 100%;
  max-height: none;
  margin: 0;
  object-fit: cover;
  object-position: center;
}

/* 4. Datum, titulek, perex, odkaz */
body.id-923.type-posts-listing #content #newsWrapper .news-item > .text {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  float: none;
  box-sizing: border-box;
  min-width: 0;
  width: 100%;
  margin: 0;
  padding: 0 0 42px;
  text-align: left;
}
body.id-923.type-posts-listing #content #newsWrapper .text > time {
  order: -1;
  display: block;
  margin: 0 0 7px;
  color: #64716c;
  font-size: 14px;
  line-height: 1.4;
}
body.id-923.type-posts-listing #content #newsWrapper .text > a.title {
  position: static;
  display: block;
  margin: 0 0 10px;
  padding: 0;
  color: #127c72;
  font-family: inherit;
  font-size: clamp(22px, 1.8vw, 27px);
  font-weight: 700;
  line-height: 1.23;
  text-decoration: none;
  overflow-wrap: anywhere;
}
body.id-923.type-posts-listing #content #newsWrapper .text > .description {
  display: block;
  width: 100%;
  height: auto;
  max-height: none;
  margin: 0;
  overflow: visible;
  color: #36413d;
  font-size: 17px;
  font-weight: 400;
  line-height: 1.55;
}
body.id-923.type-posts-listing #content #newsWrapper .description p {
  margin: 0 0 8px;
  font-size: inherit;
  line-height: inherit;
}
body.id-923.type-posts-listing #content #newsWrapper .description p:last-child {
  margin-bottom: 0;
}
body.id-923.type-posts-listing #content #newsWrapper .description strong {
  font-weight: 600;
}
/* CTA je součást skutečného odkazu titulku, nikoli neaktivní dekorace.
   Pro jeho umístění je dole v .text vyhrazeno 42 px. */
body.id-923.type-posts-listing #content #newsWrapper .text > a.title::after {
  content: "Přečíst článek →";
  position: absolute;
  bottom: 0;
  left: 0;
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  color: #127c72;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.4;
}
body.id-923.type-posts-listing #content #newsWrapper .text > a.title:hover,
body.id-923.type-posts-listing #content #newsWrapper .text > a.title:hover::after {
  color: #0c5e56;
  text-decoration: underline;
  text-underline-offset: 3px;
}
body.id-923.type-posts-listing #content #newsWrapper a:focus-visible {
  outline: 2px solid #127c72;
  outline-offset: 4px;
}
body.id-923.type-posts-listing #content #newsWrapper .news-item:not(:has(> .image)) {
  grid-template-columns: minmax(0, 1fr);
}

/* 5. Mobil – obrázek nad textem */
@media (max-width: 767px) {
  body.id-923.type-posts-listing #content .sectionDescription {
    margin-bottom: 20px;
  }
  body.id-923.type-posts-listing #content .sectionDescription h3 {
    font-size: 17px;
  }
  body.id-923.type-posts-listing #content #newsWrapper > .news-item {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
    padding: 22px 0;
  }
  body.id-923.type-posts-listing #content #newsWrapper .news-item > .image > a {
    aspect-ratio: 16 / 10;
  }
  body.id-923.type-posts-listing #content #newsWrapper .text > a.title {
    font-size: 23px;
  }
  body.id-923.type-posts-listing #content #newsWrapper .text > .description {
    font-size: 17px;
  }
}

/* 6. Obsah jednotlivých článků – prostor pro budoucí rozšíření.
   Záměrně zatím bez pravidel. Styly detailu omezit na ověřený
   obal článku / vlastní třídu k4u-magazin-article.
   Nepřidávat globální selektory h2, p, img nebo .content.
 */

