﻿/* === BLOG - ČLÁNKY === */




/* === 2 bloky text + obrázek === */






.sp-split {
  display: flex;
  align-items: center;
  gap: 32px;
  width: 100%;
}






/* Text */
.sp-split__text {
  flex: 1 1 55%;
  min-width: 0;
}








/* Nadpis pro tyto bloky */
.sp-split__title {
  margin: 0 0 18px;
  line-height: 1.05;
}








/* Editovatelný obsah – rozumné mezery */
.sp-split__text p,
.sp-split__text ul,
.sp-split__text ol {
  margin: 0 0 12px;
}
















.sp-split__text ul,
.sp-split__text ol {
  padding-left: 20px;
}
















/* Média */
.sp-split__media {
  flex: 1 1 45%;
  min-width: 0;
  margin: 0;
}
















/* Společný wrapper pro obrázek + popisek */
.sp-split__box,
.sp-split__figure {
  margin: 0;
  border: 1px solid rgba(0, 0, 0, 0.04);
  border-radius: 7px;
  background: #fff;
  overflow: hidden;
  box-shadow:
    0 1px 2px rgba(0, 0, 0, 0.02),
    0 8px 18px rgba(0, 0, 0, 0.03);
}
















/* Obrázek */
.sp-split__img {
  display: block;
  width: 100%;
  height: auto;
}
















/* Popisek pod obrázkem – propojený s blokem */
.sp-split__caption {
  padding: 10px 14px 12px;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  font-size: 12px;
  line-height: 1.5;
  color: rgba(17, 17, 17, 0.58);
  text-align: left;
}
















.sp-split__caption strong,
.sp-split__caption b {
  font-weight: 600;
  color: rgba(47, 95, 121, 0.92);
}
















.sp-split__caption a {
  color: inherit;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}
















/* 2 obrázky pod sebou */
.sp-split__mediaStack {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
















/* Varianta: prohození stran */
.sp-split--reverse {
  flex-direction: row-reverse;
}
















/* Mobil */
@media (max-width: 860px) {
  .sp-split,
  .sp-split--reverse {
    flex-direction: column;
    gap: 16px;
  }
















  .sp-split__caption {
    padding: 11px 16px 13px;
  }
}




/* === PEREX === */




.article-perex {
    margin: 0 0 36px;
    padding: 10px 0 2px;
    border-top: 3px solid #cfe0ec;
    max-width: 920px;
    color: #2f5f79;
}




.article-perex p,
.article-perex span,
.article-perex li,
.article-perex em {
    font-weight: 400 !important;
    text-shadow: 0 0 0 currentColor;
}




.article-perex p {
    margin: 0;
    font-size: inherit;
    line-height: 1.8;
    color: inherit;
}




.article-perex p + p {
    margin-top: 12px;
}




/* upravený tučný text */
.article-perex strong,
.article-perex strong *,
.article-perex b,
.article-perex b * {
    font-weight: 700 !important;
    color: inherit !important;
    text-shadow: none !important;
    font-synthesis: none;
}




.article-perex a {
    color: inherit;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 2px;
}




/* ===   RESET pro přehled článků / miniatury === */




.news-item .article-perex,
.news-list .article-perex,
.blog-homepage .article-perex,
.news-wrapper .article-perex {
    margin: 0;
    padding: 0;
    border: 0;
    max-width: none;
    color: inherit !important;
}




.news-item .article-perex,
.news-item .article-perex p,
.news-item .article-perex span,
.news-list .article-perex,
.news-list .article-perex p,
.news-list .article-perex span,
.blog-homepage .article-perex,
.blog-homepage .article-perex p,
.blog-homepage .article-perex span,
.news-wrapper .article-perex,
.news-wrapper .article-perex p,
.news-wrapper .article-perex span {
    font-weight: inherit !important;
    color: inherit !important;
    line-height: inherit;
    font-size: inherit;
    margin: 0;
}




.news-item .article-perex strong,
.news-list .article-perex strong,
.blog-homepage .article-perex strong,
.news-wrapper .article-perex strong,
.news-item .article-perex b,
.news-list .article-perex b,
.blog-homepage .article-perex b,
.news-wrapper .article-perex b,
.news-item .article-perex a,
.news-list .article-perex a,
.blog-homepage .article-perex a,
.news-wrapper .article-perex a {
    color: inherit;
}




/* ===  Mobile === */




@media (max-width: 767px) {
    .article-perex {
        margin-bottom: 28px;
        padding-top: 14px;
    }




    .article-perex p {
        line-height: 1.7;
    }
}




/* === Zdroje === */




.pk-sources{
  margin-top:40px;
  padding:20px 24px;
  background:#f8fbff;
  border:1px solid rgba(35, 156, 235, 0.16);
  border-radius:6px;
}




.pk-sources__title{
  margin:0 0 14px;
  color:#0f405d;
  font-size:clamp(28px, 3vw, 36px);
  line-height:1.2;
  font-weight:700;
}




.pk-sources__list{
  --pk:#239ceb;
  --lh:1.7;
  --dot:8px;
  --dot-gap:10px;
  --dot-offset:0px;




  list-style:none;
  margin:0;
  padding:0;
}




.pk-sources__list li{
  position:relative;
  margin:0;
  padding-top:12px;
  padding-bottom:12px;
  padding-left:calc(var(--dot) + var(--dot-gap));
  border:0;
  line-height:var(--lh);
}




.pk-sources__list li::before{
  content:"";
  position:absolute;
  left:0;
  top:calc(12px + (1em * var(--lh) - var(--dot)) / 2 + var(--dot-offset));
  width:var(--dot);
  height:var(--dot);
  border-radius:50%;
  background:var(--pk);
}




.pk-sources__list li + li{
  border-top:1px solid rgba(15, 64, 93, 0.10);
}




.pk-sources__text{
  color:#0f405d;
  font-size:15px;
  line-height:1.7;
  min-width:0;
}




.pk-sources__text a{
  color:#239ceb;
  text-decoration:underline;
  text-underline-offset:2px;
  word-break:break-word;
  overflow-wrap:anywhere;
}




.pk-sources__text a:hover,
.pk-sources__text a:focus-visible{
  color:#0f405d;
  outline:none;
}




.pk-sources__text em{
  font-style:italic;
  color:#0f405d;
}




@media (max-width: 767px){
  .pk-sources{
    padding:16px;
    background:#fbfdff;
  }




  .pk-sources__title{
    font-size:30px;
  }




  .pk-sources__text{
    font-size:14px;
  }




  .pk-sources__list li{
    padding-top:10px;
    padding-bottom:10px;
    padding-left:calc(var(--dot) + var(--dot-gap));
  }




  .pk-sources__list li::before{
    top:calc(10px + (1em * var(--lh) - var(--dot)) / 2 + var(--dot-offset));
  }
}






/* === Samostatný obrázek === */
/* Ochranná zóna kolem celého bloku */
.sp-img-wrap {
  margin: 16px 24px;
}




/* Společný wrapper pro obrázek + popisek */
.sp-img-box {
  margin: 0;
  border: 1px solid rgba(0, 0, 0, 0.04);
  border-radius: 7px;
  background: #fff;
  overflow: hidden;
  box-shadow:
    0 1px 2px rgba(0, 0, 0, 0.02),
    0 8px 18px rgba(0, 0, 0, 0.03);
}




/* Obrázek */
.sp-img {
  display: block;
  width: 100%;
  height: auto;
}




/* Popisek pod obrázkem */
.sp-img-caption {
  padding: 10px 14px 12px;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  font-size: 12px;
  line-height: 1.5;
  color: rgba(17, 17, 17, 0.58);
  text-align: left;
}




.sp-img-caption strong,
.sp-img-caption b {
  font-weight: 600;
  color: rgba(47, 95, 121, 0.92);
}




.sp-img-caption a {
  color: inherit;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}




/* Mobil – ochranná zóna se vypne */
@media (max-width: 860px) {
  .sp-img-wrap {
    margin-left: 0;
    margin-right: 0;
  }




  .sp-img-caption {
    padding: 11px 16px 13px;
  }
}




/* === Citace === */




.pk-quote {
  margin: 32px 0;
  padding: 4px 0 4px 18px;
  border-left: 3px solid #c8dbe7;
}




.pk-quote p {
  margin: 0;
  font-size: inherit;
  line-height: 1.8;
  font-style: italic;
  color: #5f6f82;
}




.pk-quote footer {
  margin-top: 10px;
  font-size: 14px;
  line-height: 1.45;
  color: #8a95a3;
}




.pk-quote strong,
.pk-quote b {
  font-weight: 600;
  color: inherit;
}




.pk-quote a {
  color: inherit;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}




@media (max-width: 767px) {
  .pk-quote {
    margin: 24px 0;
    padding-left: 14px;
  }




  .pk-quote footer {
    font-size: 13px;
  }
}






/* === Medailonek autora === */




:root{
  --bd:#dbe9f3;
  --t:#0f405d;
  --m:#5f7a8c;




  --strip:10px;
  --left:230px;
  --gap:26px;




  --authorMax: 840px;
  --quoteMax: 640px;




  --stripeColor:#239ceb;
  --dividerColor:#dbe9f3;
  --quoteMarkColor:#239ceb;
}




.author-card{
  position:relative;
  overflow:hidden;
  padding:22px 14px 16px 18px;
  background:#f3f8fd;
  border:1px solid var(--bd);
  border-radius:6px;
  box-shadow:none;




  width:100%;
  max-width:var(--authorMax);
  margin-inline:auto;
}




.author-card:before{
  content:"";
  position:absolute;
  left:0;
  top:0;
  bottom:0;
  width:var(--strip);
  pointer-events:none;
  background:linear-gradient(
    90deg,
    rgba(35,156,235,.85),
    rgba(35,156,235,.55) 45%,
    rgba(35,156,235,.20) 70%,
    rgba(35,156,235,0) 100%
  );
  z-index:0;
}




.author-card__stripe{display:none}




.author-card__inner{
  position:relative;
  z-index:1;
  padding:0 24px 0 20px;
  display:grid;
  grid-template-columns:max-content 1fr;
  gap:var(--gap);
  align-items:start;
}




.author-card__inner:before{
  content:"";
  position:absolute;
  top:14px;
  bottom:14px;
  left:calc(var(--left) + var(--gap));
  width:2px;
  border-radius:0;
  background:rgba(15, 64, 93, 0.14);
}




.author-card__left{
  display:flex;
  flex-direction:column;
  gap:10px;
  align-items:center;
  text-align:center;
  max-width:var(--left);
}




.author-card__meta{
  width:100%;
  overflow-wrap:anywhere;
}




.author-card__avatar{
  width:116px;
  height:116px;
  border-radius:999px;
  overflow:hidden;
  background:#fff;
  border:0;
  box-shadow:none;
}




/* ✅ neprůstřelný kruh + žádná deformace */
.author-card__avatar img{
  width:100% !important;
  height:100% !important;
  max-width:none !important;
  display:block !important;
  object-fit:cover !important;
  object-position:center !important;
  border-radius:999px !important;
}




.author-card__quote{
  position:relative;
  padding:34px 0 4px 22px;
  line-height:1.6;
  max-width:var(--quoteMax);
}




.author-card__quote:before{
  content:"“";
  position:absolute;
  left:22px;
  top:6px;
  font-family:Georgia,"Times New Roman",serif;
  font-size:54px;
  line-height:1;
  color:var(--quoteMarkColor);
  opacity:.3;
}




.author-card__quote p{
  margin:0;
  font-style:italic;
  font-size:13.5px;
  color:#2f556d;
}




.author-card__name{
  font-weight:700;
  color:var(--t);
  font-size:16px;
  white-space:normal;
  overflow-wrap:anywhere;
}




.author-card__role{
  margin-top:0;
  color:var(--m);
  font-size:13px;
  line-height:1.35;
  white-space:normal;
  overflow-wrap:anywhere;
}




/* === MOBIL: přeskládání na sloupec (avatar -> jméno -> role -> citace) === */
@media (max-width:520px){
  :root{
    --gap:14px;
    --quoteMax: 100%;
  }




  .author-card{
    padding:14px;
    max-width:100%;
  }




  .author-card:before{width:6px}




  .author-card__inner{
    display:flex;
    flex-direction:column;
    align-items:center;
    padding:0 12px;
    gap:10px;
  }




  .author-card__inner:before{display:none}




  .author-card__left{
    max-width:100%;
    width:100%;
    align-items:center;
    text-align:center;
    gap:8px;
  }




  .author-card__avatar{
    width:78px;
    height:78px;
  }




  .author-card__meta{
    width:100%;
  }




  .author-card__name{
    white-space:normal;
  }




  .author-card__quote{
    width:100%;
    max-width:100%;
    padding:22px 0 0 0;
    text-align:left;
  }




  .author-card__quote:before{
    left:0;
    top:0;
    font-size:46px;
  }
}






/* === 3–4 bloky s obrázky vedle sebe === */




:root {
  --ei-text: #1f1f1c;
  --ei-muted: #5f5f5f;
  --ei-max-width: 1440px;
  --ei-gap: 32px;
}




.ei-section {
  width: 100%;
  max-width: var(--ei-max-width);
  margin: 0 auto;
  padding: 40px 20px;
  box-sizing: border-box;
  color: var(--ei-text);
}




.ei-grid {
  display: grid;
  gap: var(--ei-gap);
  align-items: start;
}




.ei-grid.is-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}




.ei-grid.is-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}




.ei-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  height: 100%;
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
  border-radius: 0;
}




.ei-image-wrap {
  width: 120px;
  height: 120px;
  margin: 0 auto 22px;
  border-radius: 50%;
  overflow: hidden;
  background: #fff;
  border: 1px solid #d9e1e7;
  flex-shrink: 0;
}




.ei-image-wrap img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}




.ei-content {
  max-width: 300px;
  margin: 0 auto;
}




.ei-title {
  margin: 0 0 10px;
  font-size: 18px;
  line-height: 1.2;
  font-weight: 700;
  text-transform: none;
  color: #0f405d;
}




.ei-text {
  margin: 0;
  font-size: 15px;
  line-height: 1.55;
  color: var(--ei-text);
}




.ei-text strong {
  font-weight: 700;
}




.ei-section .ei-title a,
.ei-section .ei-text a,
.ei-section .ei-title a:link,
.ei-section .ei-text a:link,
.ei-section .ei-title a:visited,
.ei-section .ei-text a:visited {
  color: inherit;
  text-decoration: underline;
}




.ei-section .ei-title a:hover,
.ei-section .ei-text a:hover,
.ei-section .ei-title a:active,
.ei-section .ei-text a:active,
.ei-section .ei-title a:focus,
.ei-section .ei-text a:focus {
  color: inherit;
  text-decoration: underline;
}




/* TABLET */
@media (max-width: 991px) {
  .ei-grid.is-3,
  .ei-grid.is-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}




/* MOBILE */
@media (max-width: 640px) {
  .ei-section {
    padding: 28px 16px;
  }




  .ei-grid.is-3,
  .ei-grid.is-4 {
    grid-template-columns: 1fr;
    gap: 28px;
  }




  .ei-title {
    font-size: 17px;
  }




  .ei-text {
    font-size: 14px;
  }




  .ei-image-wrap {
    width: 104px;
    height: 104px;
    margin-bottom: 18px;
  }
}