/* ═══════════════════════════════════════════════════════════════════
   overrides.css — globalne stylistyczne poprawki (D469, 14.04.2026)
   ─────────────────────────────────────────────────────────────────
   Cel: zastąpić inline style per element czystym zewnętrznym CSS.
   Zmiana stylu = edycja 1 pliku → update na wszystkich artykułach.

   Upload per domena: /overrides.css
   Włączenie w szablonach: <link rel="stylesheet" href="/overrides.css">
   Musi być ładowany PO głównym CSS (inline <style> lub zew link).

   Obowiązuje od: D469 (incydent hardcoded CTA cleanup)
   ═══════════════════════════════════════════════════════════════════ */


/* ─── BLOCKQUOTE — cytaty w artykułach ──────────────────────────── */

blockquote {
  padding: 20px 28px;
  margin: 24px auto;
  max-width: 720px;
  border-left: 4px solid #b89450;
  background: rgba(255, 255, 255, 0.04);
  font-style: italic;
  font-size: 1.05rem;
  line-height: 1.7;
  border-radius: 0 6px 6px 0;
}

blockquote p {
  margin: 0 0 8px 0;
}

blockquote p:last-child {
  margin-bottom: 0;
}

blockquote footer,
blockquote cite {
  display: block;
  margin-top: 10px;
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.6);
  font-style: normal;
}

blockquote footer em,
blockquote cite em {
  color: #b89450;
  font-style: italic;
}

/* Wersja jasna (jeśli strona ma białe tło) */
body.theme-light blockquote,
.theme-light blockquote {
  background: rgba(184, 148, 80, 0.06);
  color: #102644;
}

body.theme-light blockquote footer,
.theme-light blockquote footer {
  color: rgba(16, 38, 68, 0.6);
}


/* ─── CTA LOADER — fallback/safety ──────────────────────────────── */

/* Gdy cta-loader.js nie załadował się z jakiegoś powodu, ukryj pusty cta-zone */
#cta-zone:empty {
  display: none;
}

/* Gdy są ślady starych hardcoded CTA które przeoczył pipeline — DON'T display */
.cta-section[style*="background:#f8f5f0"],
div[style*="background:#f9f9f9"][style*="border-left:4px solid #e74c3c"] {
  display: none !important;
}


/* ─── NAV CTA — konsystencja (D469) ─────────────────────────────── */

/* Zapewnij że nav__cta ma zawsze proper styling */
.nav__cta {
  color: #b89450 !important;
  font-weight: 600;
  transition: all 0.2s ease;
}

.nav__cta:hover {
  color: #d4b569 !important;
  transform: translateY(-1px);
}


/* ─── TYPOGRAPHY FIXES ─────────────────────────────────────────── */

/* Polski dywiz (półpauza) - automatyczne "—" zamiast "--" w treści */
article p, article li {
  /* hyphens: auto; /* disabled — polish word breaks are tricky */
  word-wrap: break-word;
}

/* Pierwszy paragraf po H2/H3 — odstęp */
article h2 + p,
article h3 + p {
  margin-top: 12px;
}


/* ─── RESPONSIVE (mobile blockquote fix) ──────────────────────── */

@media (max-width: 700px) {
  blockquote {
    padding: 16px 20px;
    margin: 18px 0;
    font-size: 0.98rem;
  }
}


/* ─── A11Y — focus states ──────────────────────────────────────── */

.nav__cta:focus-visible,
.cta-button:focus-visible,
#cta-zone a:focus-visible {
  outline: 2px solid #b89450;
  outline-offset: 3px;
}


/* ─── PRINT ─────────────────────────────────────────────────────── */

@media print {
  .nav__cta,
  #cta-zone,
  .cta-section {
    display: none !important;
  }
}


/* ═══════════════════════════════════════════════════════════════════
   HOW TO INCLUDE (w szablonie per domena)
   ─────────────────────────────────────────────────────────────────
   <head>
     ... existing <style> ...
     <link rel="stylesheet" href="/overrides.css">
   </head>
   ═══════════════════════════════════════════════════════════════════ */
