/* Aktualności */

/* =========================================
   ANMET TECH | STYL ARTYKUŁÓW
   Joomla / Helix Ultimate
   ========================================= */

/* 1. KOLORY I UKŁAD */

body.view-article #sp-component {
  --an-ink: #17283a;
  --an-text: #465465;
  --an-accent: #247eaa;
  --an-line: #e4eaf0;
  --an-soft: #f3f7fa;
}

body.view-article #sp-main-body {
  padding-top: 45px;
  padding-bottom: 75px;
}

body.view-article #sp-component .article-details {
  max-width: 1000px;
  margin: 0 auto;
  color: var(--an-text);
}

/* 2. TYTUŁ ARTYKUŁU */

body.view-article #sp-component
.article-details h1 {
  font-size: clamp(30px, 3.5vw, 46px);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.035em;
  color: var(--an-ink);
  margin: 0 0 24px;
  text-wrap: balance;
}

body.view-article #sp-component
.article-details .article-header {
  margin-bottom: 22px;
}

/* 3. DATA, AUTOR, KATEGORIA */

body.view-article #sp-component
.article-details .article-info {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 18px;
  margin: 0 0 30px;
  padding: 12px 0 18px;
  border-bottom: 1px solid var(--an-line);
  color: #778494;
  font-size: 13px;
  line-height: 1.6;
}

body.view-article #sp-component
.article-details .article-info a {
  color: var(--an-accent);
  font-weight: 600;
  text-decoration: none;
}

/* 4. ZDJĘCIA */

body.view-article #sp-component
.article-details .article-full-image,
body.view-article #sp-component
.article-details .full-image {
  margin-bottom: 35px;
}

body.view-article #sp-component
.article-details img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
}

body.view-article #sp-component
.article-details .article-full-image img,
body.view-article #sp-component
.article-details .full-image img {
  display: block;
  width: 100%;
  border-radius: 18px;
  box-shadow: 0 12px 35px rgba(20,40,60,.09);
}

/* 5. AKAPITY */

body.view-article #sp-component
.article-details p {
  font-size: 17px;
  font-weight: 400;
  line-height: 1.85;
  color: var(--an-text);
  margin: 0 0 22px;
  overflow-wrap: break-word;
}

body.view-article #sp-component
.article-details strong {
  color: var(--an-ink);
  font-weight: 700;
}

/* 6. NAGŁÓWKI H2 */

body.view-article #sp-component
.article-details h2 {
  font-size: clamp(24px, 2.5vw, 30px);
  font-weight: 750;
  line-height: 1.3;
  letter-spacing: -0.025em;
  color: var(--an-ink);
  margin: 48px 0 22px;
  padding: 0 0 0 18px;
  border-left: 4px solid var(--an-accent);
  text-wrap: balance;
}

/* 7. NAGŁÓWKI H3 */

body.view-article #sp-component
.article-details h3 {
  font-size: clamp(20px, 2vw, 23px);
  font-weight: 700;
  line-height: 1.35;
  color: var(--an-ink);
  margin: 32px 0 15px;
  letter-spacing: -0.015em;
}

body.view-article #sp-component
.article-details h4 {
  font-size: 19px;
  font-weight: 700;
  color: var(--an-ink);
  margin: 26px 0 12px;
}

/* 8. LISTY PUNKTOWANE I NUMEROWANE */

body.view-article #sp-component
.article-details :is(ul, ol) {
  margin: 15px 0 28px;
  padding-left: 28px;
}

body.view-article #sp-component
.article-details li {
  font-size: 16.5px;
  line-height: 1.8;
  color: var(--an-text);
  margin-bottom: 12px;
  padding-left: 5px;
}

body.view-article #sp-component
.article-details li::marker {
  color: var(--an-accent);
  font-weight: 700;
}

/* 9. LINKI WEWNĄTRZ ARTYKUŁU */

body.view-article #sp-component
.article-details [itemprop="articleBody"] a,
body.view-article #sp-component
.article-details .article-body a {
  color: var(--an-accent);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: rgba(36,126,170,.3);
  text-underline-offset: 4px;
  transition: color .2s, text-decoration-color .2s;
}

body.view-article #sp-component
.article-details [itemprop="articleBody"] a:hover,
body.view-article #sp-component
.article-details .article-body a:hover {
  color: #155778;
  text-decoration-color: currentColor;
}

/* 10. CYTATY */

body.view-article #sp-component
.article-details blockquote {
  margin: 32px 0;
  padding: 25px 30px;
  background: var(--an-soft);
  border-left: 4px solid var(--an-accent);
  border-radius: 0 12px 12px 0;
  color: var(--an-ink);
  font-size: 18px;
  line-height: 1.75;
}

/* 11. TABELE */

body.view-article #sp-component
.article-details table {
  width: 100%;
  border-collapse: collapse;
  margin: 28px 0;
  font-size: 15px;
}

body.view-article #sp-component
.article-details th {
  background: var(--an-ink);
  color: #fff;
  font-weight: 650;
  text-align: left;
  padding: 15px;
}

body.view-article #sp-component
.article-details td {
  padding: 14px 15px;
  border-bottom: 1px solid var(--an-line);
}

body.view-article #sp-component
.article-details tr:nth-child(even) td {
  background: var(--an-soft);
}

/* 12. LINIE ODDZIELAJĄCE */

body.view-article #sp-component
.article-details hr {
  border: 0;
  border-top: 1px solid var(--an-line);
  margin: 42px 0;
}

/* 13. NAWIGACJA MIĘDZY ARTYKUŁAMI */

body.view-article #sp-component
.pagenavigation {
  max-width: 1000px;
  margin: 45px auto 0;
  padding-top: 25px;
  border-top: 1px solid var(--an-line);
}

body.view-article #sp-component
.pagenavigation a {
  color: var(--an-ink);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.5;
  text-decoration: none;
}

body.view-article #sp-component
.pagenavigation a:hover {
  color: var(--an-accent);
}

/* 14. TABLETY */

@media (max-width: 991px) {
  body.view-article #sp-main-body {
    padding-top: 30px;
    padding-bottom: 55px;
  }
}

/* 15. TELEFONY */

@media (max-width: 767px) {
  body.view-article #sp-component
  .article-details h1 {
    font-size: 30px;
    line-height: 1.22;
  }

  body.view-article #sp-component
  .article-details h2 {
    font-size: 24px;
    margin-top: 35px;
    padding-left: 13px;
    border-left-width: 3px;
  }

  body.view-article #sp-component
  .article-details h3 {
    font-size: 20px;
    margin-top: 27px;
  }

  body.view-article #sp-component
  .article-details p {
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 18px;
  }

  body.view-article #sp-component
  .article-details li {
    font-size: 15.5px;
  }

  body.view-article #sp-component
  .article-details .article-info {
    font-size: 12px;
    gap: 6px 12px;
  }

  body.view-article #sp-component
  .article-details blockquote {
    padding: 20px;
    font-size: 16px;
  }

  body.view-article #sp-component
  .article-details table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.view-article #sp-component
  .article-details a {
    transition: none;
  }
}




/* ANMET - TYTUŁ ARTYKUŁU */

body.view-article #sp-component h1,
body.view-article #sp-component .article-header .article-title {
  font-size: clamp(20px, 1.7vw, 30px) !important;
  line-height: 1.3 !important;
  font-weight: 700 !important;
  letter-spacing: -0.025em !important;
  white-space: nowrap !important;
  text-wrap: nowrap !important;
  margin-bottom: 25px !important;
}

/* TABLETY I TELEFONY */

@media (max-width: 1199px) {
  body.view-article #sp-component h1,
  body.view-article #sp-component .article-header .article-title {
    font-size: clamp(22px, 3vw, 28px) !important;
    white-space: normal !important;
    text-wrap: balance !important;
  }
}




/* ANMET - SZEROKOŚĆ ARTYKUŁÓW 1200 PX */

body.view-article #sp-component .article-details,
body.view-article #sp-component .pagenavigation {
  max-width: 1200px !important;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
}




/* ANMET - POMARAŃCZOWE PASKI PRZY H2 */

body.view-article #sp-component
.article-details h2 {
  border-left-color: #f39200 !important;
}




/* ANMET - POPRZEDNI / NASTĘPNY ARTYKUŁ */

body.view-article #sp-component
.pagenavigation a {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #f39200 !important;
  color: #fff !important;
  border: 1px solid #f39200 !important;
  border-radius: 7px !important;
  padding: 13px 24px !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  line-height: 1.4;
  text-decoration: none !important;
  box-shadow: 0 4px 12px rgba(243,146,0,.16);
  transition: background .2s ease,
              box-shadow .2s ease,
              transform .2s ease;
}

body.view-article #sp-component
.pagenavigation a:hover {
  background: #d67d00 !important;
  border-color: #d67d00 !important;
  color: #fff !important;
  box-shadow: 0 6px 18px rgba(243,146,0,.25);
  transform: translateY(-2px);
}

body.view-article #sp-component
.pagenavigation a:focus-visible {
  outline: 3px solid #17283a;
  outline-offset: 3px;
}



/* ANMET - PAGINACJA AKTUALNOŚCI */

body.view-category #sp-component .pagination {
  display: flex !important;
  justify-content: center !important;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  width: 100%;
  margin: 45px auto 30px !important;
  padding: 0;
  list-style: none;
}

body.view-category #sp-component .pagination li {
  margin: 0 !important;
  padding: 0 !important;
}

body.view-category #sp-component .pagination li a,
body.view-category #sp-component .pagination li span {
  display: flex !important;
  align-items: center;
  justify-content: center;
  min-width: 46px;
  height: 46px;
  padding: 0 12px;
  border: 1px solid #e2e7eb !important;
  border-radius: 8px !important;
  background: #fff !important;
  color: #243448 !important;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none !important;
  box-shadow: none !important;
  transition: all .2s ease;
}

/* AKTYWNA STRONA */

body.view-category #sp-component
.pagination li.active a,
body.view-category #sp-component
.pagination li.active span {
  background: #f39200 !important;
  border-color: #f39200 !important;
  color: #fff !important;
  box-shadow: 0 4px 12px rgba(243,146,0,.2) !important;
}

/* EFEKT PO NAJECHANIU */

body.view-category #sp-component
.pagination li:not(.active):not(.disabled) a:hover {
  background: #fff5e8 !important;
  border-color: #f39200 !important;
  color: #d67d00 !important;
  transform: translateY(-2px);
}

/* NIEAKTYWNE STRZAŁKI */

body.view-category #sp-component
.pagination li.disabled a,
body.view-category #sp-component
.pagination li.disabled span {
  color: #aeb7c0 !important;
  background: #f7f8fa !important;
  cursor: default;
}

/* TELEFONY */

@media (max-width: 767px) {
  body.view-category #sp-component .pagination {
    gap: 5px;
    margin: 30px auto !important;
  }

  body.view-category #sp-component .pagination li a,
  body.view-category #sp-component .pagination li span {
    min-width: 38px;
    height: 40px;
    padding: 0 8px;
    font-size: 14px;
  }
}





/* ANMET - POPRAWKA PAGINACJI */

/* Usunięcie podwójnych ramek strzałek */
body.view-category #sp-component
.pagination li a span,
body.view-category #sp-component
.pagination li span span {
  display: inline !important;
  min-width: 0 !important;
  width: auto !important;
  height: auto !important;
  padding: 0 !important;
  margin: 0 !important;
  background: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  color: inherit !important;
  font-size: inherit !important;
  line-height: inherit !important;
  transform: none !important;
}

/* Wyśrodkowanie całej paginacji */
body.view-category #sp-component
ul.pagination {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  flex-wrap: wrap !important;
  width: 100% !important;
  gap: 8px !important;
}

