/* Publisher Blog — studnie-chłonne.pl */

publisher-blog {
  display: block;
}

.blog-page__main {
  min-height: 50vh;
}

.blog-page .publisher-blog__section {
  padding-top: 48px;
}

.publisher-blog__section {
  padding: 32px 0 56px;
  background: transparent;
  border: 0;
}

.publisher-blog__section.section--subtle {
  background: transparent;
}

.publisher-blog__container {
  width: min(var(--max, 1180px), calc(100% - 40px));
  margin-inline: auto;
}

.publisher-blog__head h2 {
  color: var(--navy, #071b34);
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.publisher-blog__head p,
.publisher-blog__card p,
.publisher-blog__loading,
.publisher-blog__empty {
  color: var(--muted, #475569);
}

publisher-blog a.publisher-blog__card,
publisher-blog a.publisher-blog__card h3,
publisher-blog a.publisher-blog__card p,
publisher-blog a.publisher-blog__card .publisher-blog__meta {
  text-decoration: none !important;
}

.publisher-blog__card {
  background: var(--surface, #fff);
  border: 1px solid var(--border, #e2e8f0);
  border-radius: var(--radius-sm, 16px);
  box-shadow: var(--shadow-sm, 0 6px 20px rgba(15, 23, 42, 0.06));
  text-decoration: none;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

publisher-blog a.publisher-blog__card:hover,
publisher-blog a.publisher-blog__card:focus-visible {
  border-color: var(--accent, #059669);
  box-shadow: 0 0 0 1px var(--accent, #059669), var(--shadow-sm, 0 6px 20px rgba(15, 23, 42, 0.06));
  transform: translateY(-2px);
  text-decoration: none !important;
}

.publisher-blog__card h3 {
  color: var(--text, #0f172a);
  font-weight: 700;
}

.publisher-blog__thumb-wrap {
  background: var(--surface-2, #f1f5f9);
}

.publisher-blog__thumb-wrap--empty {
  color: var(--muted-2, #64748b);
}

.publisher-blog__meta {
  color: var(--muted-2, #64748b);
}

publisher-blog a.publisher-blog__btn,
publisher-blog a.publisher-blog__btn:hover,
publisher-blog a.publisher-blog__btn:focus-visible {
  text-decoration: none !important;
}

.publisher-blog__btn {
  border-radius: var(--radius-xs, 12px);
  border: 1px solid var(--border, #e2e8f0);
  background: var(--surface, #fff);
  color: var(--text, #0f172a);
  font-weight: 650;
  text-decoration: none;
}

.publisher-blog__btn--primary {
  background: linear-gradient(135deg, var(--accent-light, #10b981), var(--accent, #059669));
  border-color: var(--accent, #059669);
  color: #fff;
}

.publisher-blog__btn--primary:hover {
  box-shadow: var(--accent-glow, 0 16px 28px rgba(16, 185, 129, 0.18));
  filter: none;
}

.publisher-blog__btn--back {
  background: var(--accent-bg, rgba(5, 150, 105, 0.08));
  color: var(--accent, #059669);
  border-color: rgba(5, 150, 105, 0.22);
}

.publisher-blog__btn--back:hover {
  background: rgba(5, 150, 105, 0.12);
  border-color: rgba(5, 150, 105, 0.28);
  box-shadow: var(--shadow-sm, 0 6px 20px rgba(15, 23, 42, 0.06));
}

.publisher-blog__article {
  background: var(--surface, #fff);
  border: 1px solid var(--border, #e2e8f0);
  border-radius: var(--radius, 24px);
  box-shadow: var(--shadow, 0 12px 40px rgba(15, 23, 42, 0.08));
}

.publisher-blog__article h1 {
  color: var(--navy, #071b34);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.publisher-blog__article th,
.publisher-blog__article td {
  border-color: var(--border, #e2e8f0);
}

.publisher-blog__content a {
  color: var(--accent-2, #0d9488);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.publisher-blog__content a:hover {
  color: var(--accent, #059669);
  text-decoration-thickness: 2px;
}

.publisher-blog__error {
  color: #b91c1c;
}

@media (max-width: 900px) {
  .publisher-blog__grid {
    grid-template-columns: 1fr;
  }
}
