/* ============================================================
   ARTYKUŁY — wspólne style listy i pojedynczego artykułu
   Ładowany po style.css; korzysta z jego zmiennych (:root).
   Przy każdej zmianie podbij ?v= we wszystkich plikach w /artykuly/.
   ============================================================ */

/* ---------- Nagłówek artykułu ---------- */
.article-header {
  background: var(--cream);
  padding: 132px 0 72px;
  position: relative;
  overflow: hidden;
}
.article-header::after {
  content: '';
  position: absolute;
  right: -160px;
  top: -120px;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  background: var(--green-light);
  opacity: 0.7;
  pointer-events: none;
}
.article-header-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 64px;
  align-items: center;
}
.breadcrumbs {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 28px;
}
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; }
.breadcrumbs li + li::before { content: '›'; margin-right: 6px; color: var(--beige-dark); }
.breadcrumbs a { color: var(--green); }
.breadcrumbs a:hover { color: var(--gold); }
.breadcrumbs [aria-current] { color: var(--text-muted); }

.article-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(36px, 4.6vw, 56px);
  line-height: 1.1;
  color: var(--green);
  margin-bottom: 24px;
}
.article-lead {
  font-size: 19px;
  line-height: 1.65;
  color: var(--text-muted);
  max-width: 600px;
  margin-bottom: 32px;
}
.article-byline {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 14px;
  color: var(--text-muted);
}
.article-byline img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center 20%;
}
.article-byline strong { color: var(--text); font-weight: 500; display: block; }
.article-figure img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  display: block;
}

/* ---------- Treść ---------- */
.article-body {
  max-width: 700px;
  margin: 0 auto;
  padding: 72px 24px 24px;
}
.article-body > p,
.article-body li {
  font-size: 18px;
  line-height: 1.8;
  color: #333d38;
}
.article-body > p { margin-bottom: 22px; }
.article-body h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(28px, 3vw, 34px);
  line-height: 1.2;
  color: var(--green);
  margin: 56px 0 18px;
}
.article-body h2:first-child { margin-top: 0; }
.article-body h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 25px;
  line-height: 1.25;
  color: var(--green);
  margin: 36px 0 14px;
}
.article-body ul,
.article-body ol {
  margin: 0 0 24px;
  padding-left: 0;
}
.article-body ul li,
.article-body ol li {
  position: relative;
  padding-left: 30px;
  margin-bottom: 10px;
}
.article-body ul li::before {
  content: '';
  position: absolute;
  left: 6px;
  top: 0.75em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold);
}
.article-body ol { counter-reset: item; list-style: none; }
.article-body ol li { counter-increment: item; }
.article-body ol li::before {
  content: counter(item) '.';
  position: absolute;
  left: 0;
  top: 0;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: inherit;
  line-height: inherit;
  color: var(--gold);
}
.article-body strong { color: var(--text); font-weight: 500; }
.article-body a { color: var(--green); border-bottom: 1px solid var(--gold); }
.article-body a:hover { color: var(--gold); }
.article-body .article-note {
  font-size: 15px;
  font-style: italic;
  color: var(--text-muted);
  border-left: 2px solid var(--beige-dark);
  padding-left: 16px;
}
.article-body .article-quote {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 23px;
  line-height: 1.5;
  color: var(--green);
  background: var(--green-light);
  border-radius: var(--radius-lg);
  padding: 22px 28px;
  margin: 8px 0 24px;
}

/* ---------- Ćwiczenie (ramka) ---------- */
.article-exercise {
  background: var(--cream);
  border: 1.5px solid var(--beige);
  border-left: 4px solid var(--gold);
  border-radius: var(--radius-lg);
  padding: 26px 28px 8px;
  margin: 8px 0 28px;
}
.article-exercise p,
.article-exercise li {
  font-size: 17px;
  line-height: 1.75;
  color: #333d38;
}
.article-exercise p { margin-bottom: 16px; }
.article-exercise ul { margin-bottom: 16px; }
.article-exercise strong {
  display: block;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--green);
  margin-bottom: 8px;
}

/* ---------- Czytaj także ---------- */
.article-related {
  margin: 56px 0 0;
}
.article-related h2 {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 14px;
}
.article-related a {
  display: block;
  font-family: var(--font-display);
  font-size: 24px;
  line-height: 1.3;
  color: var(--green);
  border: 1.5px solid var(--beige);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.article-related a + a { margin-top: 12px; }
.article-related a:hover { border-color: var(--gold); box-shadow: var(--shadow); }
.article-related a span {
  display: block;
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--text-muted);
  margin-top: 6px;
}

/* ---------- CTA na końcu ---------- */
.article-cta {
  background: var(--green);
  color: var(--cream);
  border-radius: var(--radius-lg);
  padding: 40px 40px 36px;
  margin: 56px 0 0;
}
.article-cta h2 {
  color: var(--cream);
  margin: 0 0 14px;
}
.article-cta p {
  font-size: 17px;
  line-height: 1.75;
  color: rgba(245, 240, 232, 0.85);
  margin-bottom: 26px;
}
.article-cta .btn--primary {
  background: var(--cream);
  color: var(--green);
}
.article-cta .btn--primary:hover { background: #fff; }
.article-cta-hint {
  display: block;
  margin-top: 14px;
  font-size: 13px;
  color: rgba(245, 240, 232, 0.7);
}

/* ---------- Autorka ---------- */
.article-author {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 24px;
  align-items: start;
  border-top: 1px solid var(--beige);
  border-bottom: 1px solid var(--beige);
  padding: 32px 0;
  margin: 56px 0 0;
}
.article-author img {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center 20%;
}
.article-author .article-author-label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 6px;
}
.article-author .article-author-name {
  font-family: var(--font-display);
  font-size: 26px;
  color: var(--green);
  margin-bottom: 8px;
}
.article-author-text {
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-muted);
}
.article-author a { color: var(--green); border-bottom: 1px solid var(--gold); }

/* ---------- Źródła ---------- */
.article-sources {
  margin: 40px 0 0;
  padding-bottom: 80px;
}
.article-sources h2 {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 0 0 12px;
}
.article-sources li {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-muted);
  margin-bottom: 8px;
}
.article-sources a { color: var(--green); border-bottom: 1px solid var(--beige-dark); word-break: break-word; }

/* ---------- Lista artykułów (/artykuly/) ---------- */
.articles-hero {
  background: var(--cream);
  padding: 140px 0 64px;
}
.articles-hero .section-title { margin-bottom: 16px; }
.articles-hero .articles-intro {
  font-size: 18px;
  line-height: 1.7;
  color: var(--text-muted);
  max-width: 640px;
}
.articles-list {
  padding-top: 64px;
  padding-bottom: 100px;
}
.articles-group + .articles-group { margin-top: 64px; }
.articles-group-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 28px;
  color: var(--green);
  margin-bottom: 28px;
}
/* ---------- Responsywność ---------- */
@media (max-width: 900px) {
  .article-header { padding: 112px 0 48px; }
  .article-header-inner { grid-template-columns: 1fr; gap: 40px; }
  .article-figure { max-width: 320px; }
}
@media (max-width: 600px) {
  .article-header::after { width: 320px; height: 320px; right: -140px; top: -80px; }
  .article-lead { font-size: 17px; }
  .article-body { padding-top: 48px; }
  .article-body > p, .article-body li { font-size: 17px; }
  .article-body h2 { margin-top: 44px; }
  .article-body .article-quote { font-size: 20px; padding: 18px 20px; }
  .article-cta { padding: 32px 24px 28px; }
  .article-exercise { padding: 22px 20px 6px; }
  .article-related a { font-size: 21px; padding: 18px 20px; }
  .article-cta .btn { width: 100%; }
  .article-author { grid-template-columns: 64px 1fr; gap: 16px; }
  .article-author img { width: 64px; height: 64px; }
  .articles-hero { padding: 112px 0 40px; }
}
