/* ==========================================================
   GENERATEPRESS SINGLE POST RESET
========================================================== */

body.single-post #page,
body.single-post #page.grid-container,
body.single-post .site.grid-container {
  width: 100% !important;
  max-width: none !important;

  margin: 0 !important;
  padding: 0 !important;
}

body.single-post #content,
body.single-post .site-content {
  display: block !important;

  width: 100% !important;
  max-width: none !important;

  margin: 0 !important;
  padding: 0 !important;
}

body.single-post #primary,
body.single-post .content-area {
  float: none !important;

  width: 100% !important;
  max-width: none !important;

  margin: 0 !important;
  padding: 0 !important;
}

body.single-post #main,
body.single-post .site-main {
  width: 100% !important;
  max-width: none !important;

  margin: 0 !important;
  padding: 0 !important;
}

body.single-post #right-sidebar,
body.single-post #left-sidebar,
body.single-post .widget-area {
  display: none !important;
}

/* ==========================================================
   SINGLE POST
========================================================== */

.skbt-single-post {
  width: 100%;
  max-width: none;

  margin: 0;

}

/* ==========================================================
   HERO
========================================================== */

.skbt-single-post__hero {
  width: 100%;
}

.skbt-single-post__hero .skbt-hero__content {
  width: min(calc(100% - var(--content-gutter)), var(--content-width));
  max-width: var(--content-width);

  margin-inline: auto;

  transform: none !important;
}

/*
 * Dlouhé titulky článků držíme
 * v užším bloku kvůli přirozenému zalomení.
 */
.skbt-single-post__hero .skbt-hero__title {
  width: 100%;
  max-width: 760px;

  margin: 0 0 20px;

  color: #fff;

  font-size: clamp(30px, 2.25vw, 40px);
  font-weight: 800;
  line-height: 1.12;

  text-wrap: balance;

  overflow-wrap: normal;
  word-break: normal;

  hyphens: none;
}

.skbt-single-post__hero .skbt-hero__breadcrumb {
  max-width: 760px;
}

/* ==========================================================
   ARTICLE SECTION
========================================================== */

.skbt-single-post__article-section {
  width: 100%;

  /*
   * Menší horní mezera:
   * autor je blíž k partners panelu.
   *
   * Menší spodní mezera:
   * footer je blíž k tlačítku.
   */
  padding: 18px 0 28px;

}

.skbt-single-post__inner {
  width: min(calc(100% - 48px), 1120px);

  margin-inline: auto;
}

/* ==========================================================
   ARTICLE
========================================================== */

.skbt-article {
  width: 100%;

  margin: 0;
}

/* ==========================================================
   ARTICLE HEADER
========================================================== */

.skbt-article__header {
  width: min(100%, 820px);

  margin: 0 auto 22px;
}

/*
 * Samotného autora lehce posuneme doprava,
 * ale 820px sloupec zůstává vycentrovaný.
 *
 * Tím se neposune text článku.
 */
.skbt-article__author {
  display: flex;

  align-items: center;

  gap: 13px;

  padding-left: 48px;
}

/* ==========================================================
   AVATAR
========================================================== */

.skbt-article__avatar {
  display: flex;

  width: 52px;
  height: 52px;

  flex: 0 0 52px;

  align-items: center;
  justify-content: center;

  overflow: hidden;

  background: #f5f6f7;

  border: 1px solid #e0e3e7;
  border-radius: 50%;
}

.skbt-article__avatar-image {
  display: block;

  width: 100%;
  height: 100%;

  margin: 0;

  object-fit: cover;
}

/* ==========================================================
   AUTHOR INFO
========================================================== */

.skbt-article__author-info {
  min-width: 0;
}

.skbt-article__author-name {
  color: var(--color-dark);

  font-size: 14px;
  font-weight: 800;
  line-height: 1.3;
}

.skbt-article__meta {
  display: flex;

  flex-wrap: wrap;

  align-items: center;

  gap: 6px;

  margin-top: 4px;

  color: #707781;

  font-size: 11.5px;
  font-weight: 600;
  line-height: 1.4;
}

.skbt-article__meta span[aria-hidden="true"] {
  color: var(--color-primary);
}

/* ==========================================================
   ARTICLE CONTENT
========================================================== */

.skbt-article__content {
  width: min(100%, 820px);

  margin-inline: auto;

  color: #343a42;

  font-size: 16px;
  line-height: 1.8;
}

.skbt-article__content > *:first-child {
  margin-top: 0;
}

.skbt-article__content > *:last-child {
  margin-bottom: 0;
}

.skbt-article__content p {
  margin: 0 0 22px;
}

/* ==========================================================
   CONTENT HEADINGS
========================================================== */

.skbt-article__content h2,
.skbt-article__content h3,
.skbt-article__content h4 {
  color: var(--color-dark);

  font-weight: 800;
  line-height: 1.25;
}

.skbt-article__content h2 {
  margin: 42px 0 18px;

  font-size: 25px;
}

.skbt-article__content h3 {
  margin: 34px 0 15px;

  font-size: 20px;
}

.skbt-article__content h4 {
  margin: 28px 0 12px;

  font-size: 17px;
}

/* ==========================================================
   CONTENT LINKS
========================================================== */

.skbt-article__content a {
  color: var(--color-primary);

  font-weight: 700;

  text-decoration: underline;

  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.skbt-article__content a:hover,
.skbt-article__content a:focus-visible {
  color: var(--color-primary-hover);
}

/* ==========================================================
   CONTENT LISTS
========================================================== */

.skbt-article__content ul,
.skbt-article__content ol {
  margin: 0 0 24px;
  padding-left: 24px;
}

.skbt-article__content li + li {
  margin-top: 7px;
}

/* ==========================================================
   BLOCKQUOTE
========================================================== */

.skbt-article__content blockquote {
  margin: 32px 0;
  padding: 5px 0 5px 20px;

  color: #545c66;

  border-left: 4px solid var(--color-primary);

  font-size: 17px;
  font-style: italic;
  line-height: 1.7;
}

.skbt-article__content blockquote p:last-child {
  margin-bottom: 0;
}

/* ==========================================================
   CONTENT MEDIA
========================================================== */

.skbt-article__content img {
  max-width: 100%;
  height: auto;

  border-radius: var(--radius-md);
}

.skbt-article__content figure {
  margin-top: 30px;
  margin-bottom: 30px;
}

.skbt-article__content figcaption {
  margin-top: 8px;

  color: #777f88;

  font-size: 11px;
  line-height: 1.5;

  text-align: center;
}

.skbt-article__content hr {
  margin: 38px 0;

  border: 0;
  border-top: 1px solid #e2e5e9;
}

/* ==========================================================
   RELATED ARTICLES
========================================================== */

.skbt-related-posts {
  margin-top: 64px;
  padding-top: 34px;

  border-top: 1px solid #e1e5e9;
}

.skbt-related-posts__title {
  position: relative;

  margin: 0 0 30px;

  color: var(--color-dark);

  font-size: 24px;
  font-weight: 800;
  line-height: 1.2;

  
}

.skbt-related-posts__title::after {
  content: "";

  position: absolute;

  left: 0;
  bottom: -10px;

  width: 44px;
  height: 3px;

  background: var(--color-primary);

  border-radius: 999px;
}

/* ==========================================================
   RELATED GRID
========================================================== */

.skbt-related-posts__grid {
  display: grid;

  grid-template-columns: repeat(3, minmax(0, 1fr));

  gap: 20px;
}

/* ==========================================================
   RELATED CARD
========================================================== */

.skbt-related-card {
  display: flex;

  min-width: 0;

  flex-direction: column;

  overflow: hidden;

  background: #fff;

  border: 1px solid #dfe3e8;
  border-radius: var(--radius-md);

  box-shadow: 0 4px 16px rgba(14, 20, 32, 0.035);
}

/*
 * Žádný pohyb ani změna shadow celé karty.
 */
.skbt-related-card:hover,
.skbt-related-card:focus-within {
  border-color: var(--color-primary);
  box-shadow: var(--shadow-card-hover);
  transform: none;
}

/* ==========================================================
   RELATED IMAGE
========================================================== */

.skbt-related-card__image-link {
  display: block;

  aspect-ratio: 16 / 9;

  overflow: hidden;

  background: #eef0f2;
}

.skbt-related-card__image {
  display: block;

  width: 100%;
  height: 100%;

  margin: 0;

  object-fit: cover;

  transform: none;
}

.skbt-related-card:hover .skbt-related-card__image {
  transform: none;
}

.skbt-related-card__placeholder {
  display: block;

  width: 100%;
  height: 100%;

  background: linear-gradient(135deg, #f1f2f4, #e5e8eb);
}

/* ==========================================================
   RELATED BODY
========================================================== */

.skbt-related-card__body {
  display: flex;

  flex: 1 1 auto;

  flex-direction: column;

  padding: 18px 18px 19px;
}

.skbt-related-card__date {
  margin-bottom: 8px;

  color: var(--color-primary);

  font-size: 10px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: 0.06em;
}

.skbt-related-card__title {
  margin: 0;

  font-size: 16px;
  font-weight: 800;
  line-height: 1.35;
}

.skbt-related-card__title a {
  color: var(--color-dark);

  text-decoration: none;

  transition: color 0.2s ease;
}

/*
 * Stejné chování jako aktuality na homepage:
 * pouze title zčervená.
 */
.skbt-related-card:hover .skbt-related-card__title a,
.skbt-related-card__title a:hover,
.skbt-related-card__title a:focus-visible {
  color: var(--color-primary);

  text-decoration: none;
}

/* ==========================================================
   RELATED EXCERPT
========================================================== */

.skbt-related-card__excerpt {
  display: -webkit-box;

  margin: 10px 0 0;

  overflow: hidden;

  color: #626a74;

  font-size: 12px;
  line-height: 1.55;

  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;

  line-clamp: 3;
}

/* ==========================================================
   RELATED LINK
========================================================== */

.skbt-related-card__link {
  display: inline-flex;

  align-self: flex-start;

  margin-top: auto;
  padding-top: 17px;

  color: var(--color-primary);

  font-size: 10px;
  font-weight: 800;

  text-decoration: none;

  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.skbt-related-card__link:hover,
.skbt-related-card__link:focus-visible {
  color: var(--color-primary-hover);
}

/* ==========================================================
   ALL ARTICLES
========================================================== */

.skbt-related-posts__all {
  display: flex;

  justify-content: center;

  margin-top: 26px;
}

.skbt-related-posts__all-link {
  display: inline-flex;

  min-height: 44px;

  align-items: center;
  justify-content: center;

  padding: 0 18px;

  color: var(--color-primary);

  background: #fff;

  border: 1px solid var(--color-primary);
  border-radius: 6px;

  font-size: 10px;
  font-weight: 800;

  text-decoration: none;

  text-transform: uppercase;
  letter-spacing: 0.06em;

  transition:
    color 0.2s ease,
    background 0.2s ease;
}

.skbt-related-posts__all-link:hover,
.skbt-related-posts__all-link:focus-visible {
  color: #fff;

  background: var(--color-primary);

  text-decoration: none;

  outline: none;
}

/* ==========================================================
   TABLET
========================================================== */

@media (max-width: 900px) {
  .skbt-single-post__hero .skbt-hero__content {
    width: min(calc(100% - var(--content-gutter-tablet)), var(--content-width));
  }

  .skbt-single-post__hero .skbt-hero__title {
    max-width: 700px;

    font-size: 32px;
    line-height: 1.14;
  }

  .skbt-single-post__hero .skbt-hero__breadcrumb {
    max-width: 700px;
  }

  .skbt-single-post__article-section {
    padding: 16px 0 26px;
  }

  /*
   * Na tabletu už autora neposouváme tolik.
   */
  .skbt-article__author {
    padding-left: 24px;
  }

  .skbt-related-posts {
    margin-top: 56px;
  }

  .skbt-related-posts__grid {
    gap: 15px;
  }

  .skbt-related-card__body {
    padding: 16px;
  }
}

/* ==========================================================
   MOBILE
========================================================== */

@media (max-width: 600px) {
  .skbt-single-post__hero .skbt-hero__content {
    width: min(calc(100% - var(--content-gutter-mobile)), var(--content-width));
  }

  .skbt-single-post__hero .skbt-hero__title {
    max-width: 100%;

    margin-bottom: 16px;

    font-size: 24px;
    line-height: 1.16;

    text-wrap: balance;
  }

  .skbt-single-post__hero .skbt-hero__breadcrumb {
    max-width: 100%;
  }

  /* ARTICLE */

  .skbt-single-post__article-section {
    padding: 14px 0 22px;
  }

  .skbt-single-post__inner {
    width: min(calc(100% - var(--content-gutter-mobile)), var(--content-width));
  }

  /* AUTHOR */

  .skbt-article__header {
    width: 100%;

    margin: 0 0 18px;
  }

  .skbt-article__author {
    gap: 11px;

    padding-left: 0;
  }

  .skbt-article__avatar {
    width: 46px;
    height: 46px;

    flex-basis: 46px;
  }

  .skbt-article__author-name {
    font-size: 13px;
  }

  .skbt-article__meta {
    font-size: 10.5px;
  }

  /* CONTENT */

  .skbt-article__content {
    width: 100%;

    margin-inline: 0;

    font-size: 14.5px;
    line-height: 1.75;
  }

  .skbt-article__content p {
    margin-bottom: 19px;
  }

  .skbt-article__content h2 {
    margin-top: 34px;

    font-size: 21px;
  }

  .skbt-article__content h3 {
    margin-top: 28px;

    font-size: 18px;
  }

  .skbt-article__content blockquote {
    margin: 26px 0;
    padding-left: 16px;

    font-size: 15px;
  }

  /* RELATED */

  .skbt-related-posts {
    margin-top: 44px;
    padding-top: 28px;
  }

  .skbt-related-posts__title {
    margin-bottom: 27px;

    font-size: 20px;
  }

  .skbt-related-posts__grid {
    grid-template-columns: 1fr;

    gap: 14px;
  }

  .skbt-related-card {
    display: grid;

    grid-template-columns:
      118px
      minmax(0, 1fr);
  }

  .skbt-related-card__image-link {
    height: 100%;
    min-height: 140px;

    aspect-ratio: auto;
  }

  .skbt-related-card__body {
    padding: 14px;
  }

  .skbt-related-card__title {
    font-size: 14px;
  }

  .skbt-related-card__excerpt {
    display: none;
  }

  .skbt-related-card__link {
    padding-top: 13px;

    font-size: 9px;
  }

  .skbt-related-posts__all {
    margin-top: 22px;
  }

  .skbt-related-posts__all-link {
    min-height: 42px;

    font-size: 9px;
  }
}
