/* /assets/css/article-footer.css */
#newsContactForm .news-contact-actions{display:flex;justify-content:center;width:100%;margin:22px 0 10px}
#newsContactForm .news-contact-actions button[type=submit]{display:block;float:none;margin:0 auto;min-width:190px;padding:14px 34px;border:0;border-radius:5px;background:#ce251d;color:#fff;font-weight:700;text-align:center;cursor:pointer}
#newsContactForm .news-contact-actions button[type=submit]:hover{background:#ae1d17}
#newsContactForm .news-contact-actions button[type=submit]:disabled{opacity:.6;cursor:wait}
#newsArticleFooter{margin-top:28px;padding:22px 0 0;border-top:1px solid #ddd;color:#252525}
#newsArticleFooter .news-footer-author{margin:0 0 18px;font-size:15px}
#newsArticleFooter .news-footer-rating-row{display:flex;align-items:center;flex-wrap:wrap;gap:12px;margin:0 0 20px;font-size:14px}
#newsArticleFooter #newsDetailRating{margin:0}
#newsArticleFooter .news-stars{display:flex;align-items:center;flex-wrap:wrap;gap:8px}
#newsArticleFooter .news-star-buttons{display:inline-flex;gap:2px}
#newsArticleFooter .news-star-buttons button{font-size:32px;line-height:1;background:none;border:0;padding:2px;color:#252525;cursor:pointer}
#newsArticleFooter .news-star-buttons button.is-on,#newsArticleFooter .news-star-buttons button:hover{color:#ce251d}
#newsArticleFooter .news-footer-share{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 8px}
#newsArticleFooter .news-footer-share a,#newsArticleFooter .news-footer-share button{display:inline-flex;justify-content:center;align-items:center;gap:7px;min-height:40px;padding:9px 15px;border:0;border-radius:4px;color:#fff;text-decoration:none;font:600 13px/1.3 Arial,sans-serif;cursor:pointer;box-sizing:border-box}
#newsArticleFooter .share-facebook{background:#1877f2}#newsArticleFooter .share-linkedin{background:#087dad}#newsArticleFooter .share-instagram{background:#a82f88}#newsArticleFooter .share-native{background:#202020}#newsArticleFooter .share-email{background:#737373}#newsArticleFooter .share-copy{background:#628e28}
#newsArticleFooter .news-footer-status{font-size:13px;min-height:18px;margin:4px 0 16px}
#newsArticleFooter .news-related-title{font-size:19px;font-weight:800;text-transform:uppercase;margin:20px 0 14px;color:#222}
#newsArticleFooter .news-related-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}
#newsArticleFooter .news-related-card{display:block;min-width:0;color:#202020;text-decoration:none}
#newsArticleFooter .news-related-card img{display:block;width:100%;height:auto;aspect-ratio:16/9;object-fit:cover;border-radius:9px;margin:0 0 10px}
#newsArticleFooter .news-related-card h3{font-size:16px;line-height:1.35;margin:0;font-weight:700;overflow-wrap:anywhere}
#newsArticleFooter .news-related-card:hover h3{color:#ce251d}
#newsArticleFooter a:focus-visible,#newsArticleFooter button:focus-visible{outline:3px solid #b87c25;outline-offset:3px}
@media(max-width:640px){#newsArticleFooter .news-related-grid{grid-template-columns:1fr;gap:22px}#newsArticleFooter .news-footer-share a,#newsArticleFooter .news-footer-share button{flex:1 1 calc(50% - 8px)}#newsArticleFooter .news-footer-rating-row{align-items:flex-start}#newsArticleFooter .news-stars{gap:10px}}

#newsArticleFooter [hidden]{display:none!important}

/* /assets/css/contact-heading.css */
/* Nagłówek formularza artykułu — styl przycisku „Sprawdź cenę”. */
#newsContactForm .news-contact-cta{box-sizing:border-box;position:relative;isolation:isolate;display:block;width:max-content;max-width:100%;min-height:60px;margin:0 auto 34px;padding:17px 72px 17px 20px;border:1px solid #c9c9c9;border-radius:5px;background:linear-gradient(180deg,#fff 0%,#f2f2f2 48%,#e4e4e4 100%);box-shadow:inset 0 1px 0 #fff,0 9px 13px -8px rgba(0,0,0,.45);color:#c82129;font-family:inherit;font-size:20px;font-weight:900;line-height:1.25;text-align:center;text-transform:uppercase;text-shadow:0 1px 0 #fff;overflow:visible;overflow-wrap:anywhere}
#newsContactForm .news-contact-cta::before{content:"";position:absolute;z-index:0;right:12px;top:-5px;bottom:2px;width:45px;background:linear-gradient(90deg,#d9212b,#b80d19);clip-path:polygon(0 0,94% 0,100% 5%,100% 100%,84% 94%,68% 100%,51% 94%,34% 100%,17% 94%,0 100%);border-radius:3px 3px 0 0}
#newsContactForm .news-contact-cta::after{content:"";position:absolute;z-index:1;right:23px;top:50%;bottom:auto;transform:translateY(-50%);display:block;width:23px;height:25px;background:center/23px 25px no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 26'%3E%3Cpath d='m4 5 8 8 8-8M4 14l8 8 8-8' fill='none' stroke='white' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");color:transparent;font-size:0;line-height:0}
@media(max-width:480px){#newsContactForm .news-contact-cta{font-size:17px;min-height:56px;padding:16px 65px 16px 15px}#newsContactForm .news-contact-cta::before{right:9px;width:42px}#newsContactForm .news-contact-cta::after{right:19px}}

/* /assets/css/expert-layout.css */
/* Legacy "Ekspert wyjaśnia" blocks inside D11 news only. */
#newsDetailBody .kb-news-expert {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: start;
  gap: 14px 30px;
  clear: both;
  width: 100%;
  max-width: 100%;
  margin: 30px 0 18px;
  padding: 0;
  box-sizing: border-box;
}
#newsDetailBody .kb-news-expert > .kb-news-expert__heading {
  grid-column: 1 / -1;
  margin: 0;
  padding: 0;
}
#newsDetailBody .kb-news-expert > .kb-news-expert__photo,
#newsDetailBody .kb-news-expert > .kb-news-expert__quote {
  display: block !important;
  float: none !important;
  width: auto !important;
  min-width: 0;
  max-width: 100%;
  margin: 0 !important;
  padding: 0 !important;
  box-sizing: border-box;
}
#newsDetailBody .kb-news-expert__photo > a { display: block; }
#newsDetailBody .kb-news-expert__photo img {
  display: block !important;
  width: 100% !important;
  max-width: 450px !important;
  height: auto !important;
  max-height: none !important;
  object-fit: contain;
  margin: 0 auto !important;
  border-radius: 0;
}
#newsDetailBody .kb-news-expert__quote > :first-child { margin-top: 0; }
#newsDetailBody .kb-news-expert__quote > :last-child { margin-bottom: 0; }
@media (max-width: 640px) {
  #newsDetailBody .kb-news-expert {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
    margin-top: 24px;
  }
  #newsDetailBody .kb-news-expert__photo img { max-width: 380px !important; }
}

/* /assets/css/article-layout.css */
/* Pełne aktualności D11. Wartości bazowe porównane z widokiem D7. */
@media (min-width: 901px) {
  #newsDetail.news-article-layout {
    /* Dotychczas: 2.25fr / .8fr, odstęp 34px, minimum prawej 285px.
       Przenosimy dokładnie 40px z prawej kolumny do lewej. */
    grid-template-columns: minmax(0, 1fr) max(245px, calc((100% - 34px) * .262295081967 - 40px));
    gap: 34px;
  }
  #newsDetail > .news-article-sidebar {
    margin-top: var(--kb-article-sidebar-offset, 0px);
  }
  #newsDetail .news-detail-head {
    /* Nagłówek biegnie od lewej do prawej krawędzi całego układu. */
    width: var(--kb-article-full-width, 100%);
    max-width: none;
  }
}

#newsDetail .news-detail-head h1 {
  width: 100%;
  max-width: none;
  margin: 0 0 28px;
  text-align: left;
  text-wrap: wrap;
  overflow-wrap: anywhere;
  font-size: 48.5px;
  line-height: 1.1;
}

#newsDetail #newsDetailBody {
  border-radius: 18px;
  font-size: 15px;
  line-height: 1.4285714286;
}
#newsDetailBody :where(p, li, td, th, blockquote) {
  font-size: 15px;
  line-height: 1.4285714286;
}
#newsDetailBody p { margin: 0 0 10.5px; }
#newsDetailBody :is(ul, ol) { margin-block: 0 10.5px; }
#newsDetailBody :is(h1, h2, h3) {
  margin: 21px 0 10.5px;
  line-height: 1.1;
  overflow-wrap: anywhere;
}
#newsDetailBody h1 { font-size: 48.5px; }
#newsDetailBody h2 { font-size: 32px; }
#newsDetailBody h3 { font-size: 23px; }

/* Jedno istniejące łącze obejmuje zarówno fotografię, jak i tytuł. */
#newsDetail #newsArticleLatest {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 20px;
}
#newsDetail #newsArticleLatest > .news-side-item {
  display: block;
  position: relative;
  isolation: isolate;
  aspect-ratio: 290 / 190;
  min-width: 0;
  padding: 0;
  border: 0;
  border-radius: 10px 10px 0 0;
  overflow: hidden;
  background: #24211f;
  color: #fff;
  text-decoration: none;
}
#newsDetail #newsArticleLatest > .news-side-item::after {
  content: "";
  position: absolute;
  inset: 28% 0 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(transparent, rgba(0, 0, 0, .92));
}
#newsDetail #newsArticleLatest > .news-side-item img {
  display: block;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border-radius: 0;
  object-fit: cover;
  object-position: center;
  transform: scale(1);
  transition: transform 600ms ease-in-out;
}
#newsDetail #newsArticleLatest > .news-side-item > span {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 17px;
  z-index: 2;
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.1;
  text-transform: uppercase;
  text-shadow: 0 1px 5px rgba(0, 0, 0, .65);
}
#newsDetail #newsArticleLatest > .news-side-item:is(:hover, :focus-visible) img {
  transform: scale(1.05);
}
#newsDetail #newsArticleLatest > .news-side-item:focus-visible {
  outline: 3px solid #c42424;
  outline-offset: -3px;
}

@media (max-width: 900px) {
  #newsDetail > .news-article-sidebar { margin-top: 0; }
  #newsDetail > .news-article-sidebar > section:first-child { grid-column: 1 / -1; }
  #newsDetail #newsArticleLatest { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 620px) {
  #newsDetail .news-detail-head h1 { font-size: 32px; margin-bottom: 22px; }
  #newsDetailBody h1 { font-size: 32px; }
  #newsDetailBody h2 { font-size: 26px; }
  #newsDetailBody h3 { font-size: 22px; }
  #newsDetail #newsArticleLatest { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  #newsDetail #newsArticleLatest > .news-side-item img { transition: none; }
  #newsDetail #newsArticleLatest > .news-side-item:is(:hover, :focus-visible) img { transform: none; }
}

/* Małe zdjęcia list i tagów: stała ramka zapobiega nachodzeniu na tekst. */
.news-page :is(.news-latest, .news-side-item, .news-tag-item) > .kb-news-thumbnail {
  display: block;
  min-width: 0;
  max-height: none;
  margin: 0;
  padding: 0;
  overflow: hidden;
  border-radius: 8px;
  line-height: 0;
}
.news-page .news-latest > .kb-news-thumbnail { width: 95px; height: 58px; }
.news-page .news-side-item > .kb-news-thumbnail { width: 96px; height: 64px; }
.news-page #newsTags .news-tag-item > .kb-news-thumbnail { width: 96px; height: 56px; }
.news-page .kb-news-thumbnail > img,
.news-page #newsTags .kb-news-thumbnail > img {
  display: block;
  position: static;
  width: 100%;
  height: 100%;
  max-width: none;
  border-radius: 0;
  object-fit: contain;
  transform: scale(1);
  transition: transform 600ms ease-in-out;
}
@media (hover: hover) {
  .news-page :is(.news-latest, .news-side-item, .news-tag-item):hover .kb-news-thumbnail > img {
    transform: scale(1.05);
  }
}
.news-page :is(.news-latest, .news-side-item, .news-tag-item):focus-visible .kb-news-thumbnail > img {
  transform: scale(1.05);
}
@media (max-width: 620px) {
  .news-page .news-side-item > .kb-news-thumbnail { width: 82px; height: 58px; }
}
@media (prefers-reduced-motion: reduce) {
  .news-page .kb-news-thumbnail > img,
  .news-page #newsTags .kb-news-thumbnail > img { transition: none; transform: none !important; }
}

/* Szpaler: trzy pełne linie; JS dodaje ... na granicy słowa. */
.news-page #newsLatest .news-latest > span:not(.kb-news-thumbnail),
.news-page #newsArticleRelated .news-side-item > span:not(.kb-news-thumbnail) {
  display: block;
  min-width: 0;
  max-height: 4.05em;
  line-height: 1.35;
  overflow: hidden;
  overflow-wrap: anywhere;
}
@media (min-width: 901px) {
  #newsDetail > .news-article-sidebar > section { padding: 14px; }
  .news-page .news-sidebar > section { padding: 14px; }
  .news-page #newsLatest .news-latest,
  .news-page #newsArticleRelated .news-side-item { grid-template-columns: 108px minmax(0, 1fr); gap: 10px; }
  .news-page #newsLatest .kb-news-thumbnail,
  .news-page #newsArticleRelated .kb-news-thumbnail { width: 108px; height: 74px; }
  .news-page #newsTags .news-tag-item.has-image { grid-template-columns: 108px minmax(0, 1fr); }
  .news-page #newsTags .news-tag-item > .kb-news-thumbnail { width: 108px; height: 66px; }
}
#newsDetailBody .kb-inline-toc {
  width: fit-content;
  max-width: 100%;
  margin: 28px 0 32px;
  padding: 14px 16px;
  border: 1px solid #cbc6c0;
  border-radius: 10px;
  background: #fff;
  color: #211f1d;
}
#newsDetailBody .kb-inline-toc > strong { display: block; margin-bottom: 7px; font-size: 15px; }
#newsDetailBody .kb-inline-toc ul { list-style: none; margin: 0; padding: 0; }
#newsDetailBody .kb-inline-toc li { margin: 0; padding: 0; }
#newsDetailBody .kb-inline-toc a { display: block; padding: 3px 0; color: inherit; text-decoration: none; font-size: 15px; line-height: 1.45; overflow-wrap: anywhere; }
#newsDetailBody .kb-inline-toc a:is(:hover, :focus-visible) { color: #9b5e26; text-decoration: underline; }
#newsDetailBody :is([id], [name]) { scroll-margin-top: 100px; }
@media (max-width: 620px) {
  #newsDetailBody .kb-inline-toc { width: 100%; padding: 12px; }
}

/* /assets/css/news-speed.css */
/* Reserve the full-width article heading before the layout script measures it. */
@supports (width: 100cqw) {
  @media (min-width: 901px) {
    #newsDetail.news-article-layout { container-type: inline-size; }
    #newsDetail .news-detail-head { width: 100cqw; }
  }
}

