/*
 * goZanzibar.pl - article layout
 * Scope: single article only. Sticky TOC and reader keep their existing DOM/JS contracts.
 */

.article-page-section {
  padding-top: 22px;
  padding-bottom: 34px;
}

.article-page-section .post-creative {
  color: #3e4b55;
}

.article-category-link {
  display: inline-flex;
  align-items: center;
  margin-bottom: 9px;
  color: #d86f0b;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: .01em;
  text-decoration: none;
}

.article-category-link:hover {
  color: #a85000;
}

.article-page-section .post-creative-title {
  max-width: none;
  margin: 0;
  color: #122e44;
  font-size: 36px;
  font-weight: 500;
  line-height: 1.18;
  letter-spacing: -.02em;
}

.article-page-section .article-top-box {
  margin: 14px 0 16px;
  padding: 9px 12px;
  border: 1px solid #edf0f2;
  border-radius: 9px;
  background: #fafbfc;
  box-shadow: none;
}

.article-page-section .article-top-box__meta .article-meta-item {
  color: #687681;
  font-size: 12.5px;
  font-weight: 300;
}

.article-page-section .article-meta-item a {
  color: #34434f;
  font-weight: 500;
}

.article-page-section .article-reader-mini__title {
  font-weight: 600;
}

/* Odtwarzacz jest realnie uzywany - celowo mocniej wyrozniony od zwyklych metadanych. */
.article-page-section .article-top-box {
  display: block;
}

.article-page-section .article-top-box__meta {
  margin-bottom: 10px;
}

.article-page-section .article-reader-mini {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #f1c48f;
  border-radius: 8px;
  background: #fff7ed;
  box-shadow: 0 2px 8px rgba(216, 111, 11, .08);
}

.article-page-section .article-reader-mini__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #ff830a;
  color: #fff;
  border-radius: 50%;
}

.article-page-section .article-reader-mini__status {
  color: #815123;
}

.article-page-section .article-reader-mini__btn {
  border: 1px solid #e3b984;
  background: #fff;
  color: #384b58;
  transition: border-color .15s ease, background-color .15s ease, color .15s ease;
}

.article-page-section .article-reader-mini__btn:hover,
.article-page-section .article-reader-mini__btn:focus {
  border-color: #d08b43;
  background: #fffaf4;
  color: #1f3545;
}

.article-page-section .article-reader-mini__btn--main {
  border-color: #d86f0b;
  background: #ff830a;
  color: #fff;
}

.article-page-section .article-reader-mini__btn--main:hover,
.article-page-section .article-reader-mini__btn--main:focus {
  border-color: #b95b05;
  background: #d86f0b;
  color: #fff;
}

.article-page-section .article-reader-mini__btn:disabled {
  opacity: .55;
  cursor: default;
}

.article-page-section .article-reader-mini__progress {
  overflow: hidden;
  background: #f5d9bc;
}

.article-page-section .article-reader-mini__progress-bar {
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: #ff830a;
  transition: width .2s linear;
}

.article-page-section #streszczenie {
  margin: 0 0 20px;
  color: #33434f;
  font-size: 18px;
  font-weight: 300;
  line-height: 1.62;
  letter-spacing: 0;
}

.article-page-section #streszczenie > :first-child {
  margin-top: 0;
}

.article-page-section #streszczenie > :last-child {
  margin-bottom: 0;
}

.article-page-section #streszczenie p + p {
  margin-top: 10px;
}

.article-page-section .article-hero-image {
  display: block;
  width: 100%;
  height: auto;
  margin: 0 0 24px;
  border-radius: 10px;
}

.article-page-section #tresc {
  color: #3c4a54;
  font-size: 17px;
  font-weight: 300;
  line-height: 1.72;
  letter-spacing: 0;
}

.article-page-section #tresc p {
  margin-top: 0;
}

.article-page-section #tresc p + p {
  margin-top: 13px;
}

.article-page-section #tresc h2 {
  margin: 30px 0 12px;
  padding-top: 5px;
  color: #122e44;
  font-size: 27px;
  font-weight: 500;
  line-height: 1.28;
  letter-spacing: -.01em;
}

.article-page-section #tresc h3 {
  margin: 24px 0 9px;
  color: #18384f;
  font-size: 21px;
  font-weight: 500;
  line-height: 1.35;
}

.article-page-section #tresc h4,
.article-page-section #tresc .heading-4 {
  margin: 20px 0 8px;
  padding-top: 0;
  color: #234459;
  font-size: 18px;
  font-weight: 500;
  line-height: 1.4;
}

.article-page-section #tresc h2 + p,
.article-page-section #tresc h3 + p,
.article-page-section #tresc h4 + p {
  margin-top: 0;
}

.article-page-section #tresc ul,
.article-page-section #tresc ol {
  margin: 13px 0 18px;
  padding-left: 27px;
}

.article-page-section #tresc ul li,
.article-page-section #tresc ol li {
  margin: 0;
  padding-left: 3px;
  line-height: 1.62;
}

.article-page-section #tresc li + li {
  margin-top: 6px;
}

.article-page-section #tresc a {
  font-weight: 500;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

.article-page-section #tresc strong,
.article-page-section #tresc b {
  color: #2a3944;
  font-weight: 500;
}

.article-page-section #tresc img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}

.article-page-section #tresc blockquote {
  margin: 22px 0;
  padding: 15px 18px;
  border-left: 3px solid #e0b04f;
  background: #faf8f3;
  color: #34434f;
}

.article-page-section .article-author-box {
  margin: 26px 0 20px;
  padding: 18px 20px;
  border-left-width: 3px;
  border-radius: 8px;
  background: #f8f9fa;
}

.article-page-section .article-author-box__name {
  margin-bottom: 5px;
  font-size: 16px;
  font-weight: 500;
}

.article-page-section .article-author-box__name strong {
  font-weight: 500;
}

.article-page-section .article-author-box__bio {
  color: #53616b;
  font-size: 14px;
  font-weight: 300;
  line-height: 1.55;
}

.article-page-section .article-author-box__link {
  margin-top: 7px;
  font-size: 13px;
  font-weight: 500;
}

.article-page-section .post-creative-footer {
  margin-top: 18px;
  margin-bottom: 0;
  transform: none;
  color: #697680;
  font-size: 13px;
}

.article-page-section .post-creative-footer > * {
  margin-top: 0;
}

.article-related {
  margin-top: 30px;
  padding-top: 24px;
  border-top: 1px solid #e8edf1;
}

.article-related__title {
  margin-bottom: 18px;
  color: #122e44;
  font-size: 24px;
  font-weight: 500;
  line-height: 1.3;
  text-align: left;
}

.article-related .row {
  margin-top: 0;
}

.article-related .post-modern-title {
  padding-top: 10px;
  font-size: 17px;
  font-weight: 500;
  line-height: 1.4;
  text-align: left;
}

.article-related .post-modern-media img {
  border-radius: 8px;
}

.article-related__more {
  margin-top: 18px;
  padding: 14px 16px;
  border: 1px solid #e8edf1;
  border-radius: 8px;
  background: #fafbfc;
}

.article-related__more-label {
  margin-bottom: 7px;
  color: #697680;
  font-size: 13px;
  font-weight: 500;
}

.article-related__more ul {
  margin: 0;
  padding-left: 20px;
}

.article-related__more li + li {
  margin-top: 5px;
}

.article-related__more a {
  color: #18384f;
  font-size: 15px;
  font-weight: 500;
}

.article-page-section .article-copy-link {
  appearance: none;
  -webkit-appearance: none;
  border: 0;
  cursor: pointer;
  font-family: inherit;
}

/* TOC: only visual weight; positioning/scroll logic remains in article-navigation.* */
.article-page-section .article-toc-nav__title {
  font-weight: 500;
}

.article-page-section .article-toc-nav__link.is-active {
  font-weight: 500;
}

@media (max-width: 991.98px) {
  .article-page-section {
    padding-top: 18px;
    padding-bottom: 28px;
  }

  .article-page-section .post-creative-title {
    font-size: 32px;
  }

  .article-page-section #tresc {
    font-size: 16.5px;
  }

  .article-related {
    margin-top: 26px;
  }
}

@media (max-width: 575.98px) {
  .article-page-section {
    padding-top: 14px;
    padding-bottom: 22px;
  }

  .article-category-link {
    margin-bottom: 7px;
    font-size: 12px;
  }

  .article-page-section .post-creative-title {
    font-size: 28px;
    line-height: 1.2;
  }

  .article-page-section .article-top-box {
    margin: 11px 0 14px;
    padding: 9px 10px;
  }

  .article-page-section .article-reader-mini {
    display: block;
    padding: 10px;
    border-top: 1px solid #f1c48f;
  }

  .article-page-section .article-reader-mini__head {
    margin-bottom: 8px;
  }

  .article-page-section .article-reader-mini__controls {
    display: flex;
  }

  .article-page-section .article-reader-mini__progress {
    width: 100%;
    min-width: 0;
    margin-top: 8px;
  }

  .article-page-section #streszczenie {
    margin-bottom: 17px;
    font-size: 16.5px;
    line-height: 1.6;
  }

  .article-page-section .article-hero-image {
    margin-bottom: 20px;
    border-radius: 8px;
  }

  .article-page-section #tresc {
    font-size: 16px;
    line-height: 1.68;
  }

  .article-page-section #tresc h2 {
    margin-top: 25px;
    margin-bottom: 9px;
    padding-top: 4px;
    font-size: 23px;
    line-height: 1.3;
  }

  .article-page-section #tresc h3 {
    margin-top: 20px;
    margin-bottom: 7px;
    font-size: 19px;
  }

  .article-page-section #tresc h4,
  .article-page-section #tresc .heading-4 {
    margin-top: 18px;
    margin-bottom: 6px;
    font-size: 17px;
  }

  .article-page-section #tresc ul,
  .article-page-section #tresc ol {
    margin: 11px 0 16px;
    padding-left: 23px;
  }

  .article-page-section #tresc li + li {
    margin-top: 5px;
  }

  .article-page-section .article-author-box {
    margin: 22px 0 17px;
    padding: 16px;
  }

  .article-related {
    margin-top: 22px;
    padding-top: 20px;
  }

  .article-related__title {
    margin-bottom: 14px;
    font-size: 21px;
  }

  .article-related .post-modern-title {
    font-size: 16px;
  }
}
