/* Okruháři – redakční vzhled článků (přehled /blog/ a všechny rubriky), verze 3 (21. 11. 2026, NV-016; v2: tlačítko „Zobrazit celý článek“ jako odkaz na konci karty; v3: mobil – rubriky jako vodorovný pás, články jako kompaktní řádky)
   Platí jen na výpisech článků (body.type-posts-listing) a pro box Kategorie v levém sloupci (banner27).
   Brand: Rajdhani (nadpisy, štítky), Ubuntu (text), #ED1D23, černá a šedé, hranaté tvary, trojitá šipka.
   Fotky se neořezávají (object-fit: contain na tmavém podkladu), žádná svislá barevná linka na hraně bloku. */

/* Trojitá šipka (stejná jako v okruhari-eventy.css, tam platí jen uvnitř .okr) */
.banner27{--okr-sipky:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1134 724'%3E%3Cg fill='%23ED1D23'%3E%3Cpath d='M0 0 L238 0 L506 369 L250 724 L0 724 L258 368 Z'/%3E%3Cpath d='M317 0 L555 0 L824 370 L567 724 L318 724 L576 368 Z'/%3E%3Cpath d='M627 0 L865 0 L1134 370 L877 724 L628 724 L885 368 Z'/%3E%3C/g%3E%3C/svg%3E")}

/* Nadpis rubriky */
body.type-posts-listing .sectionDescription h1{font-family:Rajdhani,sans-serif;font-weight:700;font-size:44px;line-height:1;text-transform:uppercase;letter-spacing:.01em;margin:0 0 14px}

/* Mřížka článků: první článek přes celou šířku, ostatní po třech */
body.type-posts-listing .news-wrapper{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px;margin:8px 0 0}
body.type-posts-listing .news-wrapper .news-item{width:auto;max-width:none;flex:none;margin:0;padding:0;display:flex;flex-direction:column;background:#fff;border:0;border-radius:0;box-shadow:none;transition:background .15s}
body.type-posts-listing .news-item .image{margin:0;background:#0f0f0f;aspect-ratio:3/2;height:auto;overflow:hidden;border-radius:0}
body.type-posts-listing .news-item .image a{display:block;height:100%}
body.type-posts-listing .news-item .image img{display:block;width:100%;height:100%;object-fit:contain;transition:opacity .15s}
body.type-posts-listing .news-wrapper .news-item .text{display:flex;flex-direction:column;height:auto;min-height:0;max-height:none;padding:16px 18px 20px;flex:1}
body.type-posts-listing .news-item time{order:-1;display:block;margin:0 0 8px;font-family:Rajdhani,sans-serif;font-weight:700;font-size:13px;letter-spacing:.08em;text-transform:uppercase;color:#7b7d83}
body.type-posts-listing .news-wrapper .news-item .title{display:block;height:auto;max-height:none;overflow:visible;-webkit-line-clamp:unset;margin:0;font-family:Rajdhani,sans-serif;font-weight:700;font-size:21px;line-height:1.1;text-transform:uppercase;color:#0f0f0f;text-decoration:none}
body.type-posts-listing .news-item .description{margin:10px 0 0}
body.type-posts-listing .news-item .description p{margin:0;font-size:14px;line-height:1.5;color:#45474d;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
body.type-posts-listing .news-item:hover .title{color:#ED1D23}
body.type-posts-listing .news-item:hover .image img{opacity:.85}

/* Hlavní (první) článek */
body.type-posts-listing .news-wrapper .news-item:first-child{grid-column:1/-1;display:grid;grid-template-columns:minmax(0,3fr) minmax(0,2fr);background:#0f0f0f}
body.type-posts-listing .news-item:first-child .text{justify-content:center;padding:28px 32px}
body.type-posts-listing .news-item:first-child time{color:#ED1D23}
body.type-posts-listing .news-item:first-child .title{font-size:34px;color:#fff}
body.type-posts-listing .news-item:first-child .description p{color:#c4c6cb;font-size:15px;-webkit-line-clamp:4}
body.type-posts-listing .news-item:first-child:hover .title{color:#fff}

/* Tlačítko šablony „Zobrazit celý článek“: místo absolutně umístěného tlačítka odkaz na konci karty */
body.type-posts-listing .news-wrapper .news-item .text-center{position:static;left:auto;right:auto;bottom:auto;transform:none;width:auto;margin-top:auto;padding-top:14px;text-align:left}
body.type-posts-listing .news-wrapper .news-item .text-center .btn{display:inline-flex;align-items:center;gap:8px;min-height:0;padding:0;border:0;border-radius:0;background:none;box-shadow:none;color:#ED1D23;font-family:Rajdhani,sans-serif;font-weight:700;font-size:15px;letter-spacing:.06em;text-transform:uppercase}
body.type-posts-listing .news-wrapper .news-item .text-center .btn:hover{background:none;color:#0f0f0f;text-decoration:none}
body.type-posts-listing .news-wrapper .news-item:first-child .text-center .btn:hover{color:#fff}

/* Stránkování */
body.type-posts-listing .pagination{margin-top:28px}
body.type-posts-listing .pagination a,body.type-posts-listing .pagination strong,body.type-posts-listing .pagination span{font-family:Rajdhani,sans-serif;font-weight:700;border-radius:0}

/* Box Kategorie v levém sloupci */
.banner27{border-radius:0}
.banner27 h4{font-family:Rajdhani,sans-serif!important;font-weight:700;font-size:22px!important;letter-spacing:.08em!important;text-transform:uppercase;color:#0f0f0f!important;margin:0 0 8px}
.banner27 .catclanek{display:flex;align-items:center;justify-content:space-between;padding:10px 0;border-bottom:1px solid #e3e4e6;font-family:Rajdhani,sans-serif;font-weight:700;font-size:18px;text-transform:uppercase;letter-spacing:.03em;color:#0f0f0f;text-decoration:none}
.banner27 .catclanek::after{content:"";height:.6em;width:calc(.6em * 1134 / 724)/*sipky*/;background:var(--okr-sipky) no-repeat center/contain}
.banner27 .catclanek:hover{color:#ED1D23}
.banner27 br{display:none}
.banner27 .btn{margin-top:18px!important;border-radius:0;font-family:Rajdhani,sans-serif;font-weight:700;text-transform:uppercase}

/* Tablet a mobil */
@media (max-width:991px){
  body.type-posts-listing .news-wrapper{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
  body.type-posts-listing .news-item:first-child .title{font-size:28px}
}
@media (max-width:600px){
  body.type-posts-listing .sectionDescription h1{font-size:34px}
  body.type-posts-listing .news-wrapper{grid-template-columns:minmax(0,1fr)}
  body.type-posts-listing .news-wrapper .news-item:first-child{grid-template-columns:minmax(0,1fr)}
  body.type-posts-listing .news-item:first-child .text{padding:20px}
  body.type-posts-listing .news-item:first-child .title{font-size:26px}
}

/* v3 – mobil: přehledně a kompaktně */
@media (max-width:600px){
  /* Dlaždice rubrik (/blog/) a skupiny v rozcestníku Jak jezdit: vodorovný pás, posouvá se prstem */
  body.type-posts-listing .sectionDescription .okr-team{display:flex;gap:10px;overflow-x:auto;scroll-snap-type:x mandatory;margin-left:0;margin-right:0;padding:0 0 6px;scrollbar-width:none}
  body.type-posts-listing .sectionDescription .okr-team::-webkit-scrollbar{display:none}
  body.type-posts-listing .sectionDescription .okr-team li{flex:0 0 68%;scroll-snap-align:start}
  body.type-posts-listing .sectionDescription .okr-team li:last-child:nth-child(odd){grid-column:auto}
  body.type-posts-listing .sectionDescription .okr-team b{font-size:18px;padding:10px 12px 0}
  body.type-posts-listing .sectionDescription .okr-team b{padding-bottom:12px}
  body.type-posts-listing .sectionDescription .okr-team span{display:none}

  /* Články kromě hlavního: řádek s malou fotkou vlevo, datum a nadpis vpravo */
  body.type-posts-listing .news-wrapper{gap:10px}
  body.type-posts-listing .news-wrapper .news-item:not(:first-child){display:grid;grid-template-columns:128px minmax(0,1fr);align-items:center;background:#fff}
  body.type-posts-listing .news-wrapper .news-item:not(:first-child) .image{aspect-ratio:3/2;height:auto}
  body.type-posts-listing .news-wrapper .news-item:not(:first-child) .text{padding:10px 14px}
  body.type-posts-listing .news-wrapper .news-item:not(:first-child) time{margin-bottom:4px;font-size:12px}
  body.type-posts-listing .news-wrapper .news-item:not(:first-child) .title{font-size:17px;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
  body.type-posts-listing .news-wrapper .news-item:not(:first-child) .description,
  body.type-posts-listing .news-wrapper .news-item:not(:first-child) .text-center{display:none}
}
