/* =========================
   R99 BLOG
========================= */

.r99BlogArchive,
.r99SingleBlog {
  background:
    radial-gradient(circle at top left, rgba(42, 178, 255, .12), transparent 35%),
    radial-gradient(circle at top right, rgba(120, 80, 255, .16), transparent 35%),
    #070b12;
  color: #fff;
}

.r99BlogHero,
.r99SingleHero {
  padding-top: 90px;
  padding-bottom: 70px;
}

.r99BlogHero .wrap,
.r99SingleWrap {
  max-width: 1120px;
}

.r99BlogHero .h1,
.r99SingleTitle {
  max-width: 920px;
}

.r99BlogHero .lead,
.r99SingleLead {
  max-width: 760px;
}

/* Kategorie */

.r99BlogCats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 34px;
}

.r99BlogCat {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 8px 15px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 999px;
  color: rgba(255,255,255,.72);
  text-decoration: none;
  background: rgba(255,255,255,.04);
  transition: .2s ease;
}

.r99BlogCat:hover,
.r99BlogCat.is-active {
  color: #fff;
  border-color: rgba(80, 210, 255, .45);
  background: linear-gradient(135deg, rgba(42,178,255,.22), rgba(120,80,255,.22));
}

/* Lista wpisów */

.r99BlogGrid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.r99BlogCard {
  overflow: hidden;
  padding: 0;
}

.r99BlogThumb {
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: rgba(255,255,255,.04);
  text-decoration: none;
}

.r99BlogThumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .35s ease;
}

.r99BlogCard:hover .r99BlogThumb img {
  transform: scale(1.04);
}

.r99BlogThumbFallback {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 20% 20%, rgba(42,178,255,.25), transparent 35%),
    radial-gradient(circle at 80% 30%, rgba(120,80,255,.25), transparent 35%),
    rgba(255,255,255,.04);
}

.r99BlogThumbFallback span {
  font-weight: 800;
  letter-spacing: .08em;
  opacity: .78;
}

.r99BlogCardBody {
  padding: 22px;
}

.r99BlogMeta,
.r99SingleMeta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  color: rgba(255,255,255,.58);
  font-size: 14px;
}

.r99BlogMeta a,
.r99SingleMeta a {
  color: rgba(112, 221, 255, .9);
  text-decoration: none;
}

.r99BlogTitle {
  margin: 0 0 12px;
  font-size: 24px;
  line-height: 1.15;
}

.r99BlogTitle a {
  color: #fff;
  text-decoration: none;
}

.r99BlogTitle a:hover {
  color: #7ee7ff;
}

.r99ReadMore {
  display: inline-flex;
  margin-top: 14px;
  color: #7ee7ff;
  text-decoration: none;
  font-weight: 700;
}

.r99ReadMore:hover {
  text-decoration: underline;
}

/* Paginacja */

.r99Pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 42px;
}

.r99Pagination .page-numbers {
  min-width: 40px;
  min-height: 40px;
  display: inline-grid;
  place-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  color: rgba(255,255,255,.7);
  text-decoration: none;
  border: 1px solid rgba(255,255,255,.12);
}

.r99Pagination .page-numbers.current,
.r99Pagination .page-numbers:hover {
  color: #fff;
  background: linear-gradient(135deg, rgba(42,178,255,.25), rgba(120,80,255,.25));
}

/* Single */

.r99BackLink {
  display: inline-flex;
  margin-bottom: 22px;
  color: rgba(255,255,255,.72);
  text-decoration: none;
}

.r99BackLink:hover {
  color: #7ee7ff;
}

.r99SingleImageSection {
  margin-top: -35px;
}

.r99SingleImage {
  padding: 0;
  overflow: hidden;
}

.r99SingleImage img {
  display: block;
  width: 100%;
  height: auto;
}

.r99ArticleLayout {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.r99ArticleAside {
  position: sticky;
  top: 110px;
}

.r99AsideBox {
  padding: 22px;
}

.r99AsideBox .btn {
  margin-top: 14px;
}

.r99ArticleContent {
  padding: 38px;
  font-size: 18px;
  line-height: 1.8;
}

.r99ArticleContent > *:first-child {
  margin-top: 0;
}

.r99ArticleContent h2,
.r99ArticleContent h3,
.r99ArticleContent h4 {
  line-height: 1.2;
  margin-top: 42px;
  margin-bottom: 14px;
  color: #fff;
}

.r99ArticleContent h2 {
  font-size: 34px;
}

.r99ArticleContent h3 {
  font-size: 26px;
}

.r99ArticleContent p,
.r99ArticleContent li {
  color: rgba(255,255,255,.78);
}

.r99ArticleContent a {
  color: #7ee7ff;
}

.r99ArticleContent ul,
.r99ArticleContent ol {
  padding-left: 24px;
}

.r99ArticleContent blockquote {
  margin: 30px 0;
  padding: 22px;
  border-left: 4px solid #7ee7ff;
  border-radius: 18px;
  background: rgba(255,255,255,.04);
}

.r99ArticleContent img {
  max-width: 100%;
  height: auto;
  border-radius: 22px;
}

.r99AfterArticle {
  padding-top: 20px;
}

.r99ArticleCta {
  padding: 34px;
}

/* Empty */

.r99Empty {
  padding: 34px;
}

/* Mobile */

@media (max-width: 980px) {
  .r99BlogGrid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .r99ArticleLayout {
    grid-template-columns: 1fr;
  }

  .r99ArticleAside {
    position: static;
  }
}

@media (max-width: 640px) {
  .r99BlogHero,
  .r99SingleHero {
    padding-top: 60px;
    padding-bottom: 45px;
  }

  .r99BlogGrid {
    grid-template-columns: 1fr;
  }

  .r99ArticleContent {
    padding: 24px;
    font-size: 16px;
  }

  .r99ArticleContent h2 {
    font-size: 26px;
  }

  .r99ArticleContent h3 {
    font-size: 22px;
  }

  .r99ArticleCta {
    padding: 24px;
  }
}

/* Spis treści */

.r99Toc {
  padding: 26px;
  margin-bottom: 24px;
}

.r99Toc strong {
  display: block;
  margin-bottom: 14px;
  color: #fff;
  font-size: 18px;
}

.r99Toc ol {
  margin: 0;
  padding-left: 20px;
}

.r99Toc li {
  margin: 8px 0;
  color: rgba(255,255,255,.45);
}

.r99Toc li.level-3 {
  margin-left: 16px;
  font-size: 14px;
}

.r99Toc a {
  color: rgba(255,255,255,.76);
  text-decoration: none;
}

.r99Toc a:hover {
  color: #7ee7ff;
}

.r99ArticleContent h2,
.r99ArticleContent h3 {
  scroll-margin-top: 120px;
}

/* Powiązane artykuły */

.r99RelatedSection {
  padding-top: 10px;
}

.r99RelatedGrid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.r99RelatedCard {
  overflow: hidden;
  padding: 0;
}

.r99RelatedThumb {
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: rgba(255,255,255,.04);
}

.r99RelatedThumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .35s ease;
}

.r99RelatedCard:hover .r99RelatedThumb img {
  transform: scale(1.04);
}

.r99RelatedBody {
  padding: 22px;
}

.r99RelatedBody .h3 {
  margin: 0 0 10px;
  font-size: 22px;
}

.r99RelatedBody .h3 a {
  color: #fff;
  text-decoration: none;
}

.r99RelatedBody .h3 a:hover {
  color: #7ee7ff;
}

@media (max-width: 900px) {
  .r99RelatedGrid {
    grid-template-columns: 1fr;
  }
}
/* Ramki w treści artykułu */

.r99InfoBox,
.r99TipBox,
.r99WarningBox {
  margin: 28px 0;
  padding: 22px 24px;
  border-radius: 22px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.045);
}

.r99InfoBox strong,
.r99TipBox strong,
.r99WarningBox strong {
  display: block;
  margin-bottom: 8px;
  color: #fff;
  font-size: 18px;
}

.r99InfoBox p,
.r99TipBox p,
.r99WarningBox p {
  margin: 0;
}

.r99InfoBox {
  border-color: rgba(126,231,255,.28);
  background: linear-gradient(135deg, rgba(126,231,255,.10), rgba(255,255,255,.035));
}

.r99TipBox {
  border-color: rgba(120,255,180,.24);
  background: linear-gradient(135deg, rgba(120,255,180,.09), rgba(255,255,255,.035));
}

.r99WarningBox {
  border-color: rgba(255,190,90,.28);
  background: linear-gradient(135deg, rgba(255,190,90,.10), rgba(255,255,255,.035));
}

/* Autor wpisu */

.r99AuthorSection {
  padding-top: 10px;
}

.r99AuthorBox {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 22px;
  align-items: center;
  padding: 28px;
}

.r99AuthorAvatar {
  width: 92px;
  height: 92px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  font-weight: 900;
  letter-spacing: .08em;
  background:
    radial-gradient(circle at 30% 20%, rgba(126,231,255,.45), transparent 42%),
    linear-gradient(135deg, rgba(42,178,255,.35), rgba(120,80,255,.35));
  border: 1px solid rgba(255,255,255,.16);
}

.r99AuthorContent .pill {
  margin-bottom: 8px;
}

.r99AuthorContent .h3 {
  margin: 0 0 8px;
}

.r99AuthorContent .muted {
  margin-bottom: 10px;
}

@media (max-width: 640px) {
  .r99AuthorBox {
    grid-template-columns: 1fr;
  }
}