/**
 * Strony z dziedziczonym inline CSS (przewodniki Bolesławiec, TOP 10/15 itd.)
 * ustawiają globalnie .container, body, a, ul, h1–h6 — co psuje nagłówek/stopkę Stories.
 * Ten plik ładuje się na końcu <body> (fragment storiesBodyEnd), więc wygrywa kaskadą.
 */

/* ——— Kontenery Bootstrap / Stories (responsive.css: 1140px) — nie main ——— */
body.theme-mode .main-header .container,
body.theme-mode .header-sticky > .container,
body.theme-mode .header-top .container,
body.theme-mode .main-search-form .container,
body.theme-mode footer.bg-grey > .container,
body.theme-mode footer.pt-50 > .container {
  max-width: 1140px !important;
  width: 100% !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: 12px !important;
  padding-right: 12px !important;
}

/* ——— Linki w chrome (inline często: a { color: #000; text-decoration: underline }) ——— */
body.theme-mode .main-header a,
body.theme-mode #sidebar-wrapper a,
body.theme-mode .main-search-form a {
  text-decoration: none !important;
}
body.theme-mode .main-header .header-top a.btn,
body.theme-mode .main-header .header-top-right a {
  text-decoration: none !important;
}

/* ——— Listy poza <main> (inline ul { background, padding }) ——— */
body.theme-mode .main-header ul {
  background: transparent !important;
  background-color: transparent !important;
  padding: 0 !important;
  margin: 0 !important;
}

body.theme-mode #sidebar-wrapper ul {
  background: transparent !important;
  background-color: transparent !important;
  padding: 0 !important;
  margin: 0 !important;
}

body.theme-mode footer ul {
  background: transparent !important;
  background-color: transparent !important;
  padding-left: 0 !important;
}

body.theme-mode .mds-stories-drawer-body ul {
  background: transparent !important;
  padding: 0 !important;
  margin: 0 !important;
}

body.theme-mode .cookie-consent-bar ul {
  background: transparent !important;
  padding: 0 !important;
  margin: 0 !important;
}

body.theme-mode .newsletter-popup-overlay ul.newsletter-popup-features {
  background: transparent !important;
  background-color: transparent !important;
  padding-left: 1.25rem !important;
  margin: 0.75rem 0 !important;
}

/* ——— Nagłówki w panelu bocznym / stopce (inline h1–h6 { margin: 0; font-size: … }) ——— */
body.theme-mode #sidebar-wrapper h1,
body.theme-mode #sidebar-wrapper h2,
body.theme-mode #sidebar-wrapper h3,
body.theme-mode #sidebar-wrapper h4,
body.theme-mode #sidebar-wrapper h5,
body.theme-mode #sidebar-wrapper h6,
body.theme-mode footer h1,
body.theme-mode footer h2,
body.theme-mode footer h3,
body.theme-mode footer h4,
body.theme-mode footer h5,
body.theme-mode footer h6 {
  margin: revert !important;
  font-size: revert !important;
  font-weight: revert !important;
  line-height: revert !important;
  color: revert !important;
}

/* ——— Tekst w pasku cookies i wyszukiwarce ——— */
body.theme-mode .cookie-consent-bar p,
body.theme-mode .cookie-consent-bar a,
body.theme-mode .cookie-modal-content p,
body.theme-mode .cookie-modal-content a,
body.theme-mode .main-search-form p,
body.theme-mode .main-search-form .search-text-bg {
  font-size: revert !important;
  line-height: revert !important;
  color: revert !important;
}

body.theme-mode .cookie-consent-bar a {
  text-decoration: underline !important;
}

/* Elementy listy w chrome (inline ul li { font-size, padding }) */
body.theme-mode footer li,
body.theme-mode #sidebar-wrapper li,
body.theme-mode .main-header li {
  font-size: revert !important;
  line-height: revert !important;
  padding-left: revert !important;
  margin-bottom: revert !important;
}

/* Newsletter — nagłówki poza main */
body.theme-mode .newsletter-popup-overlay h2.newsletter-popup-title {
  font-size: 1.5rem !important;
  line-height: 1.3 !important;
  margin: 0 0 0.75rem !important;
  font-weight: 700 !important;
}

/* ——— Drawer mobilny Stories ——— */
body.theme-mode .mds-stories-drawer-panel a {
  text-decoration: none !important;
  color: #1a1a1a !important;
  font-size: 1rem !important;
}
