/* News portal presentation layer — loads after the base stylesheets and only
   adds/overrides visual rules. No markup, classes or scripts are touched. */

:root {
  --news-accent: #c1272d;
  --news-accent-dark: #8f1c21;
  --news-ink: #111111;
  --news-muted: #6b6b6b;
  --news-hairline: #e2e2e2;
  --news-paper: #fbfaf7;
}

/* ---------- Category badge (breadcrumbs) ---------- */
#sitePath .breadcrumbs {
  height: auto;
  overflow: visible;
}

#sitePath .breadcrumbs__item {
  display: inline-block;
}

#sitePath .breadcrumbs__link {
  display: inline-block;
  background: var(--news-accent);
  color: #fff !important;
  font: 700 12px/1 robotocondensed, robotocondensed_, sans-serif;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 2px;
}

/* ---------- Article headline ---------- */
#article_title {
  font-family: oswald, oswald_, sans-serif;
  letter-spacing: 0.01em;
  padding-bottom: 18px;
  position: relative;
}

#article_title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 64px;
  height: 4px;
  background: var(--news-accent);
}

/* ---------- Byline / date ---------- */
.author_section .article_author {
  font-weight: 700;
  letter-spacing: 0.02em;
}

.author_section .author_prefix {
  color: var(--news-muted);
  font-style: italic;
  margin-right: 4px;
}

.author_section .article_date {
  color: var(--news-muted);
}

.author_section .date_section::before {
  content: "\2022";
  display: inline-block;
  margin: 0 8px;
  color: var(--news-muted);
}

.author_section {
  border-top: 1px solid var(--news-hairline);
  border-bottom: 1px solid var(--news-hairline);
  padding-top: 12px !important;
  padding-bottom: 12px !important;
}

/* ---------- Section subheadings ---------- */
.art_sub_title {
  font-family: oswald, oswald_, sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  border-left: 4px solid var(--news-accent);
  padding-left: 14px !important;
  margin-top: 44px;
}

/* ---------- Article photos ---------- */
.article-gallery-picture {
  position: relative;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
}

.article-gallery-picture::after {
  content: "Zdjęcie";
  position: absolute;
  right: 0;
  bottom: 0;
  background: rgba(17, 17, 17, 0.72);
  color: #fff;
  font: 700 10px/1 robotocondensed, robotocondensed_, sans-serif;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 5px 10px;
}

/* ---------- Cards: process steps / plans / gallery avatar / testimonial ---------- */
.feedback {
  background: var(--news-paper);
  border: 1px solid var(--news-hairline);
  border-top: 3px solid var(--news-accent);
  border-radius: 4px;
  padding: 24px !important;
  margin-bottom: 24px !important;
}

.feedback__photo {
  box-shadow: 0 0 0 3px #fff, 0 0 0 4px var(--news-hairline);
}

.feedback__name {
  font-family: oswald, oswald_, sans-serif;
}

.feedback__body {
  border-bottom: none !important;
  position: relative;
}

.feedback__body p {
  font-style: italic;
  color: #2b2b2b;
  padding-left: 28px;
  position: relative;
}

.feedback__body p::before {
  content: "\201E";
  position: absolute;
  left: -4px;
  top: -10px;
  font: 700 42px/1 georgia, "times new roman", serif;
  color: var(--news-accent);
}

/* ---------- Sidebar: "popular" / "gallery" tiles ---------- */
.news-box__tab[aria-selected="true"] {
  color: var(--news-ink);
  border-bottom-color: var(--news-accent) !important;
}

.news-box-popular {
  counter-reset: news-box-counter;
}

.news-box-popular__item {
  counter-increment: news-box-counter;
}

.news-box-article-tile {
  position: relative;
  padding-left: 38px !important;
}

.news-box-article-tile::before {
  content: counter(news-box-counter);
  position: absolute;
  left: 0;
  top: 0;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--news-ink);
  color: #fff;
  font: 700 12px/24px robotocondensed, robotocondensed_, sans-serif;
  text-align: center;
}

.news-box-article-tile__photo {
  border-radius: 3px;
}

.news-box-article-tile__title {
  transition: color 0.2s ease-out;
}

.news-box-article-tile:hover .news-box-article-tile__title {
  color: var(--news-accent);
}

/* ---------- Consultation CTA ---------- */
.reg {
  background: var(--news-paper);
  border: 1px solid var(--news-hairline);
  border-left: 4px solid var(--news-accent);
  border-radius: 4px;
  padding: 24px;
}

.reg__title {
  border-left: none !important;
  padding-left: 0 !important;
  margin-top: 0 !important;
}

.reg__title::before {
  content: "Zapisz się na konsultację";
  display: block;
  color: var(--news-accent);
  font: 700 11px/1 robotocondensed, robotocondensed_, sans-serif;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.reg__item {
  border-bottom: 1px solid var(--news-hairline);
}

.reg__item:last-child {
  border-bottom: none;
}

.input-xya .offer-btn {
  background: var(--news-accent) !important;
}

.input-xya .offer-btn:hover {
  background: var(--news-accent-dark) !important;
}

/* ---------- Comments ---------- */
.commentsApp__comment {
  background: var(--news-paper);
  border: 1px solid var(--news-hairline) !important;
  border-radius: 4px;
  padding: 16px !important;
  margin-bottom: 12px;
}

.commentsApp__commentAuthor {
  font-family: oswald, oswald_, sans-serif;
  font-weight: 700;
}
