/* =========================================================
   4RINGS — FINAL OVERRIDES FROM WORDPRESS ADDITIONAL CSS
   Przeniesione z: Dodatkowy CSS.txt / backup 08.06.2026.
   Cel: produkcja bez zależności od pola Dodatkowy CSS w WordPressie.
   ========================================================= */

/* =========================================================
   4RINGS.PL — DODATKOWY CSS FINAL CLEAN v3
   Zakres:
   1) E-E-A-T boxy
   2) tabela specyfikacji
   3) mobile logo
   4) strona autora: bez sidebara + kolory plakietek
   ========================================================= */


/* =========================================================
   1. 4rings.pl — E-E-A-T box: Okiem praktyka / Nasza opinia / Źródła
   ========================================================= */

.fr-eeat-box {
  margin: 28px 0;
  padding: 20px 22px;
  border: 1px solid #e5e5e5;
  border-left: 4px solid #E12626;
  background: #fff;
  box-sizing: border-box;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.fr-eeat-box-label {
  margin: 0 0 10px;
  color: #E12626;
  font-size: 13px;
  line-height: 1.2;
  font-weight: 850;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.fr-eeat-box p {
  margin: 0;
  color: #222;
  font-size: 17px;
  line-height: 1.6;
  font-weight: 500;
}

.fr-eeat-box ul {
  margin: 0;
  padding-left: 20px;
}

.fr-eeat-box li {
  margin: 0 0 8px;
  color: #222;
  font-size: 16px;
  line-height: 1.5;
  font-weight: 500;
}

.fr-eeat-box li:last-child {
  margin-bottom: 0;
}

.fr-eeat-box li::marker {
  color: #111;
}

.fr-eeat-box a {
  color: #222;
  font-weight: 650;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}

.fr-eeat-box a:hover {
  color: #E12626;
}

@media (max-width: 768px) {
  .fr-eeat-box {
    margin: 24px 0;
    padding: 18px;
  }

  .fr-eeat-box p {
    font-size: 16px;
    line-height: 1.55;
  }

  .fr-eeat-box li {
    font-size: 15px;
    line-height: 1.5;
  }
}


/* =========================================================
   2. 4rings.pl — tabela specyfikacji technicznej
   ========================================================= */

.fr-spec-box {
  margin: 28px 0;
  padding: 20px 22px;
  border: 1px solid #e5e5e5;
  border-left: 4px solid #E12626;
  background: #fff;
  box-sizing: border-box;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.fr-spec-table {
  width: 100%;
  border-collapse: collapse;
  margin: 0;
  font-size: 15px;
  line-height: 1.45;
}

.fr-spec-table th,
.fr-spec-table td {
  padding: 11px 12px;
  border-bottom: 1px solid #eeeeee;
  text-align: left;
  vertical-align: top;
}

.fr-spec-table th {
  width: 34%;
  color: #111;
  font-weight: 850;
  background: #fafafa;
}

.fr-spec-table td {
  color: #222;
  font-weight: 500;
}

.fr-spec-table tr:last-child th,
.fr-spec-table tr:last-child td {
  border-bottom: 0;
}

@media (max-width: 768px) {
  .fr-spec-box {
    margin: 24px 0;
    padding: 18px;
  }

  .fr-spec-table {
    font-size: 14px;
  }

  .fr-spec-table th,
  .fr-spec-table td {
    padding: 10px;
  }
}


/* =========================================================
   3. 4rings.pl — MOBILE HEADER LOGO SIZE FIX
   Powiększenie logo na mobile bez ruszania desktopu
   ========================================================= */

@media (max-width: 768px) {
  .fr-site-header,
  .fr-header,
  .site-header {
    overflow: visible;
  }

  .fr-header-inner,
  .fr-header-container,
  .inside-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
  }

  .fr-header-branding,
  .site-logo,
  .custom-logo-link {
    flex: 0 0 auto;
    max-width: none !important;
    min-width: 0;
  }

  .fr-header-branding img,
  .site-logo img,
  .custom-logo {
    width: 205px !important;
    max-width: 205px !important;
    height: auto !important;
    display: block;
  }

  .fr-header-actions,
  .fr-header-icons,
  .main-navigation,
  .menu-toggle {
    flex: 0 0 auto;
  }
}


/* =========================================================
   4. 4RINGS — AUTHOR ARCHIVE FINAL SAFE v3
   Tylko strony autorów.
   Nie rusza kategorii, tagów, homepage ani single.
   Zmiany:
   - usuwa sidebar / starą prawą kolumnę autora
   - dopasowuje kolory pasków plakietek do kategorii głównej
   ========================================================= */

body.author {
  background: #f3f3f3;
}

/* AUTHOR — usuń sidebar GeneratePress i starą prawą kolumnę z GenerateBlocks */
body.author .widget-area,
body.author #right-sidebar,
body.author #left-sidebar,
body.author .inside-right-sidebar,
body.author .inside-left-sidebar,
body.author .sidebar,
body.author aside.sidebar,
body.author aside.widget-area,
body.author .site-content > aside,
body.author .site-content > .widget-area,
body.author .gb-element-386a57ea,
body.author .gb-element-d08087d5,
body.author .gb-element-080807d5 {
  display: none !important;
  width: 0 !important;
  max-width: 0 !important;
  min-width: 0 !important;
  flex: 0 0 0 !important;
  overflow: hidden !important;
}

/* AUTHOR — pełna szerokość contentu po usunięciu sidebara */
body.author .site-content,
body.author .content-area,
body.author .site-main,
body.author .inside-article,
body.author .entry-content {
  width: 100% !important;
  max-width: none !important;
  min-width: 0 !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  float: none !important;
  box-sizing: border-box !important;
}

body.author .site-content {
  display: block !important;
}


/* =========================================================
   4.1 HERO AUTORA
   ========================================================= */

body.author .fr-archive-hero {
  width: min(1180px, calc(100vw - 56px)) !important;
  max-width: 1180px !important;
  margin: 44px auto 58px auto !important;
  padding: 54px 56px !important;
  background: #ffffff !important;
  border-left: 4px solid #E12626 !important;
  border-top: 1px solid #ececec !important;
  border-bottom: 1px solid #ececec !important;
  box-shadow: none !important;
  text-align: left !important;
  box-sizing: border-box !important;
}

body.author .fr-archive-hero .gb-element-ad17d75f {
  max-width: 980px !important;
  margin: 0 !important;
  text-align: left !important;
}

body.author .fr-archive-hero .gb-shape {
  display: none !important;
}

body.author .fr-archive-hero h1,
body.author .fr-archive-hero .gb-text-5a3a0ec1 {
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  justify-content: flex-start !important;
  gap: 16px !important;
  margin: 0 0 22px 0 !important;
  color: #111111 !important;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
  font-size: clamp(46px, 5vw, 72px) !important;
  line-height: 0.98 !important;
  font-weight: 900 !important;
  letter-spacing: -0.035em !important;
  text-rendering: geometricPrecision !important;
  -webkit-font-smoothing: antialiased !important;
}

body.author .fr-archive-hero h1::before,
body.author .fr-archive-hero .gb-text-5a3a0ec1::before {
  content: "AUTOR" !important;
  display: inline-flex !important;
  align-items: center !important;
  width: auto !important;
  height: 24px !important;
  padding: 0 9px !important;
  background: #f3f4f6 !important;
  border-left: 3px solid #E12626 !important;
  color: #111111 !important;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
  font-size: 10px !important;
  font-weight: 900 !important;
  letter-spacing: 0.08em !important;
  line-height: 1 !important;
  text-transform: uppercase !important;
}

body.author .fr-archive-hero .gb-text-0d97588e {
  max-width: 980px !important;
  margin: 0 !important;
  color: #374151 !important;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
  font-size: 17px !important;
  line-height: 1.72 !important;
  font-weight: 400 !important;
  letter-spacing: 0 !important;
}


/* =========================================================
   4.2 OBSZAR WPISÓW AUTORA
   ========================================================= */

/* Biały panel wpisów */
body.author .gb-element-5e54ba54 {
  width: min(1180px, calc(100vw - 56px)) !important;
  max-width: 1180px !important;
  min-width: 0 !important;
  margin: 0 auto !important;
  padding: 86px 48px 72px 48px !important;
  background: #ffffff !important;
  box-sizing: border-box !important;
}

/* Wrappery nad pętlą — bez ruszania wnętrza kart */
body.author .gb-element-9333bc15,
body.author .gb-element-5e54ba54:has(.gb-looper-e8a19db8),
body.author div[class*="gb-element-"]:has(> .gb-looper-e8a19db8) {
  width: 100% !important;
  max-width: 1040px !important;
  min-width: 0 !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  box-sizing: border-box !important;
}

/* Siatka desktop */
body.author .gb-looper-e8a19db8 {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 34px !important;
  width: 100% !important;
  max-width: 1040px !important;
  min-width: 0 !important;
  margin-left: auto !important;
  margin-right: auto !important;
  box-sizing: border-box !important;
}

/* Karty */
body.author .gb-loop-item-bfca2c91 {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  margin: 0 !important;
  background: #ffffff !important;
  border: 1px solid #ececec !important;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.05) !important;
  overflow: hidden !important;
  box-sizing: border-box !important;
}

/* Górna część karty: zdjęcie + plakietki */
body.author .gb-loop-item-bfca2c91 .gb-element-7efc952d {
  position: relative !important;
  display: block !important;
  width: 100% !important;
  overflow: hidden !important;
  background: #f5f5f5 !important;
}

/* Obrazki */
body.author .gb-loop-item-bfca2c91 img,
body.author .gb-media-a80a97dd {
  width: 100% !important;
  height: auto !important;
  aspect-ratio: 16 / 9 !important;
  object-fit: cover !important;
  display: block !important;
}

/* Dolna część karty: tytuł + data */
body.author .gb-loop-item-bfca2c91 .gb-element-aa1e1150 {
  display: block !important;
  padding: 24px 24px 24px 24px !important;
  box-sizing: border-box !important;
}

/* Typografia kart */
body.author .gb-loop-item-bfca2c91,
body.author .gb-loop-item-bfca2c91 * {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
}

/* Tytuły */
body.author .gb-loop-item-bfca2c91 h2,
body.author .gb-loop-item-bfca2c91 h3,
body.author .gb-loop-item-bfca2c91 .gb-text-8b8c54c7,
body.author .gb-loop-item-bfca2c91 .gb-text-8b8c54c7 a {
  margin: 0 !important;
  color: #111111 !important;
  font-size: 21px !important;
  line-height: 1.2 !important;
  font-weight: 740 !important;
  letter-spacing: -0.012em !important;
  text-decoration: none !important;
  -webkit-font-smoothing: antialiased !important;
  text-rendering: optimizeLegibility !important;
}

body.author .gb-loop-item-bfca2c91 .gb-text-8b8c54c7 a:hover {
  color: #E12626 !important;
}

/* Daty */
body.author .gb-loop-item-bfca2c91 time,
body.author .gb-loop-item-bfca2c91 .gb-text time,
body.author .gb-loop-item-bfca2c91 .gb-text-4483d13d,
body.author .gb-loop-item-bfca2c91 .gb-text-4a8a6e9f {
  display: block !important;
  margin-top: 14px !important;
  color: #111111 !important;
  font-size: 11px !important;
  font-weight: 750 !important;
  letter-spacing: 0.11em !important;
  text-transform: uppercase !important;
}


/* =========================================================
   4.3 PLAKIETKI NA MINIATURACH AUTORA
   Realna struktura:
   .gb-element-7efc952d > img + .gb-element-12b5617a > .gb-text-0c87f259 > a
   ========================================================= */

/* Kontener plakietek w lewym górnym narożniku zdjęcia */
body.author .gb-loop-item-bfca2c91 .gb-element-7efc952d > .gb-element-12b5617a,
body.author .gb-loop-item-bfca2c91 .gb-element-12b5617a {
  position: absolute !important;
  top: 10px !important;
  left: 10px !important;
  right: auto !important;
  bottom: auto !important;
  z-index: 5 !important;
  display: block !important;
  width: auto !important;
  max-width: calc(100% - 20px) !important;
  height: auto !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  pointer-events: auto !important;
  box-sizing: border-box !important;
  transform: none !important;
}

/* Wrapper linków plakietek */
body.author .gb-loop-item-bfca2c91 .gb-element-12b5617a > .gb-text-0c87f259,
body.author .gb-loop-item-bfca2c91 .gb-text-0c87f259 {
  position: static !important;
  display: flex !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 4px !important;
  width: auto !important;
  max-width: 100% !important;
  height: auto !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  box-sizing: border-box !important;
  transform: none !important;
}

/* Pojedyncza plakietka — czerwony zostaje fallbackiem dla Aktualności */
body.author .gb-loop-item-bfca2c91 .gb-text-0c87f259 a,
body.author .gb-loop-item-bfca2c91 a[rel="category tag"],
body.author .gb-loop-item-bfca2c91 a[rel="tag"] {
  position: static !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex: 0 1 auto !important;
  max-width: 145px !important;
  min-height: 20px !important;
  padding: 0 7px !important;
  margin: 0 !important;
  background: #ffffff !important;
  border-left: 3px solid #E12626 !important;
  color: #111111 !important;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
  font-size: 9px !important;
  font-weight: 700 !important;
  line-height: 1 !important;
  letter-spacing: 0 !important;
  text-transform: uppercase !important;
  text-decoration: none !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: clip !important;
  -webkit-font-smoothing: antialiased !important;
  box-sizing: border-box !important;
  transform: none !important;
}

/* Kolory pasków plakietek autora według głównej kategorii 4rings.pl */
body.author .gb-loop-item-bfca2c91 .gb-text-0c87f259 a[href*="/aktualnosci-motoryzacyjne/"],
body.author .gb-loop-item-bfca2c91 a[rel="tag"][href*="/aktualnosci-motoryzacyjne/"] {
  border-left-color: #E12626 !important;
}

body.author .gb-loop-item-bfca2c91 .gb-text-0c87f259 a[href*="/testy-samochodow/"],
body.author .gb-loop-item-bfca2c91 a[rel="tag"][href*="/testy-samochodow/"] {
  border-left-color: #1565C0 !important;
}

body.author .gb-loop-item-bfca2c91 .gb-text-0c87f259 a[href*="/rankingi-samochodow/"],
body.author .gb-loop-item-bfca2c91 a[rel="tag"][href*="/rankingi-samochodow/"] {
  border-left-color: #1E8E3E !important;
}

body.author .gb-loop-item-bfca2c91 .gb-text-0c87f259 a[href*="/poradniki-motoryzacyjne/"],
body.author .gb-loop-item-bfca2c91 a[rel="tag"][href*="/poradniki-motoryzacyjne/"] {
  border-left-color: #5B3CC4 !important;
}

body.author .gb-loop-item-bfca2c91 .gb-text-0c87f259 a[href*="/napedy-samochodowe/"],
body.author .gb-loop-item-bfca2c91 a[rel="tag"][href*="/napedy-samochodowe/"] {
  border-left-color: #FFC400 !important;
}

body.author .gb-loop-item-bfca2c91 .gb-text-0c87f259 a[href*="/rynek-motoryzacyjny/"],
body.author .gb-loop-item-bfca2c91 a[rel="tag"][href*="/rynek-motoryzacyjny/"] {
  border-left-color: #F57C00 !important;
}

body.author .gb-loop-item-bfca2c91 .gb-text-0c87f259 a[href*="/chinskie-marki-samochodow/"],
body.author .gb-loop-item-bfca2c91 a[rel="tag"][href*="/chinskie-marki-samochodow/"] {
  border-left-color: #8B1E3F !important;
}

/* Ukrycie 3. i kolejnych plakietek — linki są w jednym .gb-text-0c87f259 */
body.author .gb-loop-item-bfca2c91 .gb-text-0c87f259 a:nth-of-type(n+3) {
  display: none !important;
}


/* =========================================================
   4.4 PAGINACJA
   ========================================================= */

body.author .page-numbers {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-width: 34px !important;
  height: 34px !important;
  padding: 0 12px !important;
  background: #ffffff !important;
  color: #111111 !important;
  border: 1px solid #d9d9d9 !important;
  border-radius: 0 !important;
  text-decoration: none !important;
  font-size: 13px !important;
  font-weight: 800 !important;
}

body.author .page-numbers.current {
  background: #111111 !important;
  color: #ffffff !important;
  border-color: #111111 !important;
}

body.author a.page-numbers:hover {
  background: #111111 !important;
  color: #ffffff !important;
  border-color: #111111 !important;
}


/* =========================================================
   4.5 TABLET
   ========================================================= */

@media (min-width: 769px) and (max-width: 1100px) {
  body.author .fr-archive-hero,
  body.author .gb-element-5e54ba54 {
    width: min(980px, calc(100vw - 44px)) !important;
    max-width: 980px !important;
  }

  body.author .gb-element-9333bc15 {
    max-width: 760px !important;
  }

  body.author .gb-looper-e8a19db8 {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    max-width: 760px !important;
    gap: 28px !important;
  }
}


/* =========================================================
   4.6 MOBILE — jedna normalna kolumna
   ========================================================= */

@media (max-width: 768px) {
  body.author .fr-archive-hero {
    width: calc(100vw - 28px) !important;
    max-width: calc(100vw - 28px) !important;
    margin: 24px auto 34px auto !important;
    padding: 30px 20px !important;
  }

  body.author .fr-archive-hero h1,
  body.author .fr-archive-hero .gb-text-5a3a0ec1 {
    font-size: 34px !important;
    line-height: 1.05 !important;
    letter-spacing: -0.025em !important;
    gap: 12px !important;
  }

  body.author .fr-archive-hero .gb-text-0d97588e {
    font-size: 15px !important;
    line-height: 1.65 !important;
  }

  body.author .gb-element-5e54ba54 {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 48px 18px 56px 18px !important;
  }

  body.author .gb-element-9333bc15,
  body.author div[class*="gb-element-"]:has(> .gb-looper-e8a19db8) {
    width: 100% !important;
    max-width: 430px !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  body.author .gb-looper-e8a19db8 {
    grid-template-columns: 1fr !important;
    gap: 24px !important;
    width: 100% !important;
    max-width: 430px !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  body.author .gb-loop-item-bfca2c91 {
    width: 100% !important;
    max-width: 100% !important;
  }

  body.author .gb-loop-item-bfca2c91 .gb-element-aa1e1150 {
    padding: 22px 22px 24px 22px !important;
  }

  body.author .gb-loop-item-bfca2c91 h2,
  body.author .gb-loop-item-bfca2c91 h3,
  body.author .gb-loop-item-bfca2c91 .gb-text-8b8c54c7,
  body.author .gb-loop-item-bfca2c91 .gb-text-8b8c54c7 a {
    font-size: 21px !important;
    line-height: 1.2 !important;
    font-weight: 740 !important;
  }

  body.author .gb-loop-item-bfca2c91 .gb-element-12b5617a {
    top: 10px !important;
    left: 10px !important;
    right: auto !important;
    max-width: calc(100% - 20px) !important;
  }

  body.author .gb-loop-item-bfca2c91 .gb-text-0c87f259 a,
  body.author .gb-loop-item-bfca2c91 a[rel="category tag"],
  body.author .gb-loop-item-bfca2c91 a[rel="tag"] {
    max-width: 136px !important;
    min-height: 20px !important;
    padding: 0 6px !important;
    font-size: 9px !important;
  }
}

/* =========================================================
   5. AUTHOR ARCHIVE — FINAL HARD LOCK v4
   Naprawa "sidebara" / pustej prawej kolumny i wymuszenie pełnej siatki.
   Ten blok ma zostać NA SAMYM KOŃCU dodatkowego CSS.
   ========================================================= */

/* Na stronie autora nie może zostać żaden sidebar ani kolumna pomocnicza */
body.author #right-sidebar,
body.author #left-sidebar,
body.author .widget-area,
body.author .sidebar,
body.author .inside-right-sidebar,
body.author .inside-left-sidebar,
body.author aside,
body.author [id*="sidebar"],
body.author [class*="sidebar"],
body.author .gb-element-d08087d5,
body.author .gb-element-080807d5,
body.author .gb-element-386a57ea,
body.author .gb-element-4f73a380,
body.author .gb-element-6aabecbe,
body.author .wp-block-categories,
body.author .wp-block-categories-list {
  display: none !important;
  visibility: hidden !important;
  width: 0 !important;
  max-width: 0 !important;
  min-width: 0 !important;
  height: 0 !important;
  max-height: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  flex: 0 0 0 !important;
  overflow: hidden !important;
}

/* Content autora ma zajmować pełną dostępną szerokość po usunięciu sidebara */
body.author .site-content,
body.author .content-area,
body.author .site-main,
body.author article,
body.author .inside-article,
body.author .entry-content {
  display: block !important;
  width: 100% !important;
  max-width: none !important;
  min-width: 0 !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  float: none !important;
  clear: both !important;
  box-sizing: border-box !important;
}

/* Biały panel wpisów — bez wrażenia prawego sidebara */
body.author .gb-element-5e54ba54 {
  width: min(1180px, calc(100vw - 56px)) !important;
  max-width: 1180px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding: 86px 64px 72px 64px !important;
  background: #ffffff !important;
  box-sizing: border-box !important;
}

/* Wrapper pętli ma być szeroki, a nie jak stara kolumna z sidebarem */
body.author .gb-element-9333bc15,
body.author .gb-element-5e54ba54 > .gb-element-9333bc15 {
  display: block !important;
  width: 100% !important;
  max-width: 1040px !important;
  min-width: 0 !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding: 0 !important;
  box-sizing: border-box !important;
}

/* Siatka autora — 3 pełne kolumny na desktopie */
body.author .gb-looper-e8a19db8 {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 34px !important;
  width: 100% !important;
  max-width: 1040px !important;
  min-width: 0 !important;
  margin: 0 auto !important;
  padding: 0 !important;
  box-sizing: border-box !important;
}

/* Każda karta ma wypełniać swoją kolumnę, bez starych max-widthów */
body.author .gb-looper-e8a19db8 > *,
body.author .gb-loop-item-bfca2c91 {
  display: block !important;
  width: 100% !important;
  max-width: none !important;
  min-width: 0 !important;
  margin: 0 !important;
  flex: none !important;
  box-sizing: border-box !important;
}

/* Obrazek i plakietki nadal zostają normalnie na górze karty */
body.author .gb-loop-item-bfca2c91 .gb-element-7efc952d {
  position: relative !important;
  display: block !important;
  width: 100% !important;
  overflow: hidden !important;
}

body.author .gb-loop-item-bfca2c91 .gb-element-7efc952d > .gb-element-12b5617a,
body.author .gb-loop-item-bfca2c91 .gb-element-12b5617a {
  position: absolute !important;
  top: 10px !important;
  left: 10px !important;
  right: auto !important;
  bottom: auto !important;
  z-index: 5 !important;
  width: auto !important;
  max-width: calc(100% - 20px) !important;
  transform: none !important;
}

/* Tablet */
@media (min-width: 769px) and (max-width: 1100px) {
  body.author .gb-element-5e54ba54 {
    width: min(980px, calc(100vw - 44px)) !important;
    max-width: 980px !important;
    padding: 72px 44px 64px 44px !important;
  }

  body.author .gb-element-9333bc15,
  body.author .gb-looper-e8a19db8 {
    max-width: 760px !important;
  }

  body.author .gb-looper-e8a19db8 {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 28px !important;
  }
}

/* Mobile */
@media (max-width: 768px) {
  body.author .gb-element-5e54ba54 {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 48px 18px 56px 18px !important;
  }

  body.author .gb-element-9333bc15,
  body.author .gb-looper-e8a19db8 {
    width: 100% !important;
    max-width: 430px !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  body.author .gb-looper-e8a19db8 {
    grid-template-columns: 1fr !important;
    gap: 24px !important;
  }

  body.author .gb-loop-item-bfca2c91,
  body.author .gb-looper-e8a19db8 > * {
    width: 100% !important;
    max-width: 100% !important;
  }
}

/* =========================================================
   6. AUTHOR ARCHIVE — PLACEHOLDER + NO-SIDEBAR LOCK v5
   Ten blok ma zostać NA SAMYM KOŃCU dodatkowego CSS.
   Dodaje pusty placeholder 970x300 nad artykułami autora
   i jeszcze raz blokuje sidebar / pustą prawą kolumnę.
   ========================================================= */

/* Autor — żadnego sidebara ani starej kolumny bocznej */
body.author #right-sidebar,
body.author #left-sidebar,
body.author .widget-area,
body.author .sidebar,
body.author .inside-right-sidebar,
body.author .inside-left-sidebar,
body.author aside,
body.author [id*="sidebar"],
body.author [class*="sidebar"],
body.author .gb-element-d08087d5,
body.author .gb-element-080807d5,
body.author .gb-element-386a57ea,
body.author .gb-element-4f73a380,
body.author .gb-element-6aabecbe,
body.author .wp-block-categories,
body.author .wp-block-categories-list {
  display: none !important;
  visibility: hidden !important;
  width: 0 !important;
  max-width: 0 !important;
  min-width: 0 !important;
  height: 0 !important;
  max-height: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  flex: 0 0 0 !important;
  overflow: hidden !important;
}

/* Autor — content po usunięciu sidebara ma być pełnoszerokościowy */
body.author .site-content,
body.author .content-area,
body.author .site-main,
body.author article,
body.author .inside-article,
body.author .entry-content {
  display: block !important;
  width: 100% !important;
  max-width: none !important;
  min-width: 0 !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  float: none !important;
  clear: both !important;
  box-sizing: border-box !important;
}

/* Autor — biały panel wpisów */
body.author .gb-element-5e54ba54 {
  width: min(1180px, calc(100vw - 56px)) !important;
  max-width: 1180px !important;
  min-width: 0 !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding: 72px 64px 72px 64px !important;
  background: #ffffff !important;
  box-sizing: border-box !important;
}

/* Autor — pusty placeholder reklamowy nad artykułami, jak w archiwach kategorii/tagów */
body.author .gb-element-5e54ba54::before {
  content: "" !important;
  display: block !important;
  width: min(970px, 100%) !important;
  height: 300px !important;
  margin: 0 auto 76px auto !important;
  background: #f5f5f5 !important;
  border: 0 !important;
  box-shadow: none !important;
  box-sizing: border-box !important;
}

/* Autor — wrapper pętli i siatka wpisów bez miejsca na sidebar */
body.author .gb-element-9333bc15,
body.author .gb-element-5e54ba54 > .gb-element-9333bc15 {
  display: block !important;
  width: 100% !important;
  max-width: 1040px !important;
  min-width: 0 !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding: 0 !important;
  box-sizing: border-box !important;
}

body.author .gb-looper-e8a19db8 {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 34px !important;
  width: 100% !important;
  max-width: 1040px !important;
  min-width: 0 !important;
  margin: 0 auto !important;
  padding: 0 !important;
  box-sizing: border-box !important;
}

body.author .gb-looper-e8a19db8 > *,
body.author .gb-loop-item-bfca2c91 {
  display: block !important;
  width: 100% !important;
  max-width: none !important;
  min-width: 0 !important;
  margin: 0 !important;
  flex: none !important;
  box-sizing: border-box !important;
}

/* Autor — plakietki zostają w lewym górnym narożniku obrazka */
body.author .gb-loop-item-bfca2c91 .gb-element-7efc952d {
  position: relative !important;
  display: block !important;
  width: 100% !important;
  overflow: hidden !important;
}

body.author .gb-loop-item-bfca2c91 .gb-element-7efc952d > .gb-element-12b5617a,
body.author .gb-loop-item-bfca2c91 .gb-element-12b5617a {
  position: absolute !important;
  top: 10px !important;
  left: 10px !important;
  right: auto !important;
  bottom: auto !important;
  z-index: 5 !important;
  width: auto !important;
  max-width: calc(100% - 20px) !important;
  transform: none !important;
}

/* Tablet */
@media (min-width: 769px) and (max-width: 1100px) {
  body.author .gb-element-5e54ba54 {
    width: min(980px, calc(100vw - 44px)) !important;
    max-width: 980px !important;
    padding: 64px 44px 64px 44px !important;
  }

  body.author .gb-element-5e54ba54::before {
    width: 100% !important;
    height: 300px !important;
    margin-bottom: 64px !important;
  }

  body.author .gb-element-9333bc15,
  body.author .gb-looper-e8a19db8 {
    max-width: 760px !important;
  }

  body.author .gb-looper-e8a19db8 {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 28px !important;
  }
}

/* Mobile */
@media (max-width: 768px) {
  body.author .gb-element-5e54ba54 {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 42px 18px 56px 18px !important;
  }

  body.author .gb-element-5e54ba54::before {
    width: 100% !important;
    height: 280px !important;
    margin: 0 auto 48px auto !important;
  }

  body.author .gb-element-9333bc15,
  body.author .gb-looper-e8a19db8 {
    width: 100% !important;
    max-width: 430px !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  body.author .gb-looper-e8a19db8 {
    grid-template-columns: 1fr !important;
    gap: 24px !important;
  }

  body.author .gb-loop-item-bfca2c91,
  body.author .gb-looper-e8a19db8 > * {
    width: 100% !important;
    max-width: 100% !important;
  }
}

/* =========================================================
   7. AUTHOR ARCHIVE — FLEX KILL + FINAL LAYOUT LOCK v6
   Ten blok MUSI zostać na samym końcu dodatkowego CSS.
   Naprawia sytuację, w której placeholder i lista wpisów układają się obok siebie,
   przez co karty robią się ekstremalnie wąskie po prawej stronie.
   ========================================================= */

/* Panel autora musi być zwykłym pionowym blokiem, nie flexem/gridem */
body.author .gb-element-5e54ba54 {
  display: block !important;
  flex-direction: initial !important;
  align-items: initial !important;
  justify-content: initial !important;
  gap: 0 !important;

  width: min(1180px, calc(100vw - 56px)) !important;
  max-width: 1180px !important;
  min-width: 0 !important;
  margin: 0 auto !important;
  padding: 72px 64px 72px 64px !important;
  background: #ffffff !important;
  box-sizing: border-box !important;
  overflow: visible !important;
}

/* Placeholder reklamowy ma być osobnym blokiem NAD wpisami, nie kolumną obok */
body.author .gb-element-5e54ba54::before {
  content: "" !important;
  display: block !important;
  width: min(970px, 100%) !important;
  max-width: 970px !important;
  height: 300px !important;
  margin: 0 auto 76px auto !important;
  padding: 0 !important;
  background: #f5f5f5 !important;
  border: 0 !important;
  box-shadow: none !important;
  float: none !important;
  clear: both !important;
  box-sizing: border-box !important;
}

/* Wszystkie bezpośrednie wrappery wewnątrz panelu autora muszą iść pod placeholderem */
body.author .gb-element-5e54ba54 > *,
body.author .gb-element-9333bc15 {
  display: block !important;
  float: none !important;
  clear: both !important;
  width: 100% !important;
  max-width: 1040px !important;
  min-width: 0 !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  box-sizing: border-box !important;
}

/* Dodatkowy wrapper bez klasy czasem pojawia się między .gb-element-9333bc15 a looperem */
body.author .gb-element-9333bc15 > div {
  display: block !important;
  width: 100% !important;
  max-width: 1040px !important;
  min-width: 0 !important;
  margin: 0 auto !important;
  padding: 0 !important;
  box-sizing: border-box !important;
}

/* Siatka wpisów autora — normalne 3 kolumny */
body.author .gb-looper-e8a19db8 {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 34px !important;

  width: 100% !important;
  max-width: 1040px !important;
  min-width: 0 !important;
  margin: 0 auto !important;
  padding: 0 !important;

  float: none !important;
  clear: both !important;
  box-sizing: border-box !important;
}

/* Karty nie mogą dziedziczyć żadnych wąskich szerokości */
body.author .gb-looper-e8a19db8 > .gb-loop-item,
body.author .gb-looper-e8a19db8 > *,
body.author .gb-loop-item-bfca2c91 {
  display: block !important;
  width: 100% !important;
  max-width: none !important;
  min-width: 0 !important;
  margin: 0 !important;
  float: none !important;
  clear: none !important;
  flex: none !important;
  box-sizing: border-box !important;
}

/* Obrazki ponownie 16:9 i na pełną szerokość karty */
body.author .gb-loop-item-bfca2c91 .gb-element-7efc952d {
  position: relative !important;
  display: block !important;
  width: 100% !important;
  overflow: hidden !important;
  background: #f5f5f5 !important;
}

body.author .gb-loop-item-bfca2c91 img,
body.author .gb-loop-item-bfca2c91 .gb-media-a80a97dd {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
  aspect-ratio: 16 / 9 !important;
  object-fit: cover !important;
}

/* Plakietki — lewy górny narożnik zdjęcia */
body.author .gb-loop-item-bfca2c91 .gb-element-7efc952d > .gb-element-12b5617a,
body.author .gb-loop-item-bfca2c91 .gb-element-12b5617a {
  position: absolute !important;
  top: 10px !important;
  left: 10px !important;
  right: auto !important;
  bottom: auto !important;
  z-index: 5 !important;
  display: block !important;
  width: auto !important;
  max-width: calc(100% - 20px) !important;
  height: auto !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  transform: none !important;
}

/* Mobile */
@media (max-width: 768px) {
  body.author .gb-element-5e54ba54 {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 42px 18px 56px 18px !important;
  }

  body.author .gb-element-5e54ba54::before {
    width: 100% !important;
    max-width: 100% !important;
    height: 280px !important;
    margin: 0 auto 48px auto !important;
  }

  body.author .gb-element-5e54ba54 > *,
  body.author .gb-element-9333bc15,
  body.author .gb-element-9333bc15 > div,
  body.author .gb-looper-e8a19db8 {
    width: 100% !important;
    max-width: 430px !important;
    min-width: 0 !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  body.author .gb-looper-e8a19db8 {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 24px !important;
  }
}

/* Tablet */
@media (min-width: 769px) and (max-width: 1100px) {
  body.author .gb-element-5e54ba54 {
    display: block !important;
    width: min(980px, calc(100vw - 44px)) !important;
    max-width: 980px !important;
    padding: 64px 44px 64px 44px !important;
  }

  body.author .gb-element-5e54ba54::before {
    width: 100% !important;
    max-width: 970px !important;
    height: 300px !important;
    margin-bottom: 64px !important;
  }

  body.author .gb-element-5e54ba54 > *,
  body.author .gb-element-9333bc15,
  body.author .gb-element-9333bc15 > div,
  body.author .gb-looper-e8a19db8 {
    max-width: 760px !important;
  }

  body.author .gb-looper-e8a19db8 {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 28px !important;
  }
}

/* =========================================================
   8. AUTHOR ARCHIVE — PLACEHOLDER TOP SPACING FIX v7
   Ten blok MUSI zostać na samym końcu dodatkowego CSS.
   Usuwa nadmiar wolnego miejsca nad placeholderem na stronie autora.
   ========================================================= */

/* Panel autora: zmniejszamy górny padding nad placeholderem */
body.author .gb-element-5e54ba54 {
  padding-top: 36px !important;
}

/* Placeholder bliżej górnej krawędzi panelu */
body.author .gb-element-5e54ba54::before {
  margin-top: 0 !important;
  margin-bottom: 64px !important;
}

/* Tablet */
@media (min-width: 769px) and (max-width: 1100px) {
  body.author .gb-element-5e54ba54 {
    padding-top: 34px !important;
  }

  body.author .gb-element-5e54ba54::before {
    margin-top: 0 !important;
    margin-bottom: 56px !important;
  }
}

/* Mobile */
@media (max-width: 768px) {
  body.author .gb-element-5e54ba54 {
    padding-top: 26px !important;
  }

  body.author .gb-element-5e54ba54::before {
    margin-top: 0 !important;
    margin-bottom: 42px !important;
  }
}

/* =========================================================
   9. AUTHOR ARCHIVE — UNIFIED BACKGROUND LIKE CATEGORY v8
   Ten blok MUSI zostać na samym końcu dodatkowego CSS.
   Usuwa biały panel pod listą wpisów autora, żeby tło było jednolite
   jak na stronach kategorii / tagów.
   ========================================================= */

/* Strona autora — tło jednolite, bez białego panelu pod wpisami */
body.author {
  background: #f3f3f3 !important;
}

body.author .gb-element-5e54ba54 {
  background: transparent !important;
  box-shadow: none !important;
  border: 0 !important;
  padding-top: 36px !important;
}

/* Placeholder zostaje pusty i jasnoszary, jak w archiwach */
body.author .gb-element-5e54ba54::before {
  background: #f5f5f5 !important;
  margin-top: 0 !important;
  margin-bottom: 64px !important;
}

/* Karty nadal białe, ale bez białej płachty za nimi */
body.author .gb-loop-item-bfca2c91 {
  background: #ffffff !important;
}

/* Mobile */
@media (max-width: 768px) {
  body.author .gb-element-5e54ba54 {
    background: transparent !important;
    padding-top: 26px !important;
  }

  body.author .gb-element-5e54ba54::before {
    background: #f5f5f5 !important;
    margin-top: 0 !important;
    margin-bottom: 42px !important;
  }
}

/* Tablet */
@media (min-width: 769px) and (max-width: 1100px) {
  body.author .gb-element-5e54ba54 {
    background: transparent !important;
    padding-top: 34px !important;
  }

  body.author .gb-element-5e54ba54::before {
    background: #f5f5f5 !important;
    margin-top: 0 !important;
    margin-bottom: 56px !important;
  }
}

/* =========================================================
   10. AUTHOR ARCHIVE — WHITE PAGE BACKGROUND LIKE CATEGORY v9
   Ten blok MUSI zostać na samym końcu dodatkowego CSS.
   Strona autora ma mieć białe/jednolite tło jak archiwa kategorii:
   bez szarego pasa pod boksem autora i bez białego panelu za wpisami.
   ========================================================= */

/* Autor — tło strony jak w kategoriach, czyli czyste białe */
body.author,
body.author .site,
body.author .site-content,
body.author .content-area,
body.author .site-main,
body.author .inside-article,
body.author .entry-content {
  background: #ffffff !important;
}

/* Autor — hero zostaje białym boksem z czerwoną kreską, bez szarego pasa wokół */
body.author .fr-archive-hero {
  background: #ffffff !important;
  box-shadow: none !important;
}

/* Autor — sekcja wpisów bez osobnego białego panelu i bez szarego tła */
body.author .gb-element-5e54ba54 {
  background: transparent !important;
  box-shadow: none !important;
  border: 0 !important;
}

/* Placeholder zostaje jasnoszary, dokładnie jako pusty blok reklamowy */
body.author .gb-element-5e54ba54::before {
  background: #f5f5f5 !important;
}

/* Karty wpisów zostają białe */
body.author .gb-loop-item-bfca2c91 {
  background: #ffffff !important;
}

/* =========================================================
   11. AUTHOR ARCHIVE — PLACEHOLDER FINAL TOP POSITION v10
   Ten blok MUSI zostać na samym końcu dodatkowego CSS.
   Wniosek z DevTools:
   .gb-element-5e54ba54::before nie ma już margin-top.
   Odstęp tworzy rodzic/sekcja: margin-bottom hero + padding-top panelu wpisów.
   ========================================================= */

/* Zmniejszamy odstęp po boksie autora */
body.author .fr-archive-hero {
  margin-bottom: 28px !important;
}

/* Panel wpisów nie może dodawać pustego miejsca nad placeholderem */
body.author .gb-element-5e54ba54 {
  padding-top: 0 !important;
}

/* Placeholder ma zaczynać się od razu na górze panelu */
body.author .gb-element-5e54ba54::before {
  margin-top: 0 !important;
  margin-bottom: 56px !important;
}

/* Tablet */
@media (min-width: 769px) and (max-width: 1100px) {
  body.author .fr-archive-hero {
    margin-bottom: 26px !important;
  }

  body.author .gb-element-5e54ba54 {
    padding-top: 0 !important;
  }

  body.author .gb-element-5e54ba54::before {
    margin-top: 0 !important;
    margin-bottom: 52px !important;
  }
}

/* Mobile */
@media (max-width: 768px) {
  body.author .fr-archive-hero {
    margin-bottom: 24px !important;
  }

  body.author .gb-element-5e54ba54 {
    padding-top: 0 !important;
  }

  body.author .gb-element-5e54ba54::before {
    margin-top: 0 !important;
    margin-bottom: 38px !important;
  }
}

/* =========================================================
   12. AUTHOR ARCHIVE — FINAL GAP FIX v11
   Ten blok MUSI zostać na samym końcu dodatkowego CSS.
   Cel: układ jak archiwa kategorii — hero, krótki odstęp, placeholder, wpisy.
   ========================================================= */

/* Hero autora: mniejszy odstęp pod boksem */
body.author .fr-archive-hero {
  margin-top: 44px !important;
  margin-bottom: 34px !important;
}

/* Panel wpisów: żadnego górnego marginesu/paddingu przed placeholderem */
body.author .gb-element-5e54ba54 {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

/* Placeholder: od razu na początku sekcji, bez dodatkowej przerwy */
body.author .gb-element-5e54ba54::before {
  margin-top: 0 !important;
  margin-bottom: 56px !important;
}

/* Desktop: jeśli GenerateBlocks/GP nadal trzyma ukryty odstęp, cofamy tylko sekcję z placeholderem */
@media (min-width: 1025px) {
  body.author .gb-element-5e54ba54 {
    transform: translateY(-70px) !important;
    margin-bottom: -70px !important;
  }
}

/* Tablet */
@media (min-width: 769px) and (max-width: 1024px) {
  body.author .fr-archive-hero {
    margin-top: 36px !important;
    margin-bottom: 28px !important;
  }

  body.author .gb-element-5e54ba54 {
    margin-top: 0 !important;
    padding-top: 0 !important;
    transform: translateY(-50px) !important;
    margin-bottom: -50px !important;
  }

  body.author .gb-element-5e54ba54::before {
    margin-top: 0 !important;
    margin-bottom: 50px !important;
  }
}

/* Mobile: placeholder bliżej boksu autora, bez dużej dziury */
@media (max-width: 768px) {
  body.author .fr-archive-hero {
    margin-top: 24px !important;
    margin-bottom: 22px !important;
  }

  body.author .gb-element-5e54ba54 {
    margin-top: 0 !important;
    padding-top: 0 !important;
    transform: translateY(-34px) !important;
    margin-bottom: -34px !important;
  }

  body.author .gb-element-5e54ba54::before {
    margin-top: 0 !important;
    margin-bottom: 34px !important;
  }
}

/* =========================================================
   13. AUTHOR ARCHIVE — STRONGER PLACEHOLDER LIFT v12
   Ten blok MUSI zostać na samym końcu dodatkowego CSS.
   Po teście v11: placeholder nadal siedzi za nisko, więc mocniej podnosimy
   całą sekcję wpisów z placeholderem, bez ruszania siatki kart.
   ========================================================= */

/* Desktop — mocniejsze podniesienie sekcji z placeholderem i wpisami */
@media (min-width: 1025px) {
  body.author .fr-archive-hero {
    margin-bottom: 18px !important;
  }

  body.author .gb-element-5e54ba54 {
    padding-top: 0 !important;
    transform: translateY(-150px) !important;
    margin-bottom: -150px !important;
  }

  body.author .gb-element-5e54ba54::before {
    margin-top: 0 !important;
    margin-bottom: 56px !important;
  }
}

/* Tablet */
@media (min-width: 769px) and (max-width: 1024px) {
  body.author .fr-archive-hero {
    margin-bottom: 18px !important;
  }

  body.author .gb-element-5e54ba54 {
    padding-top: 0 !important;
    transform: translateY(-120px) !important;
    margin-bottom: -120px !important;
  }

  body.author .gb-element-5e54ba54::before {
    margin-top: 0 !important;
    margin-bottom: 50px !important;
  }
}

/* Mobile */
@media (max-width: 768px) {
  body.author .fr-archive-hero {
    margin-bottom: 16px !important;
  }

  body.author .gb-element-5e54ba54 {
    padding-top: 0 !important;
    transform: translateY(-86px) !important;
    margin-bottom: -86px !important;
  }

  body.author .gb-element-5e54ba54::before {
    margin-top: 0 !important;
    margin-bottom: 34px !important;
  }
}

/* =========================================================
   14. AUTHOR ARCHIVE — FINAL MICRO LIFT v13
   Ten blok MUSI zostać na samym końcu dodatkowego CSS.
   Po teście v12: layout jest poprawny, ale sekcja autora może iść jeszcze trochę wyżej,
   żeby odstęp nad placeholderem był bliższy archiwum Aktualności.
   ========================================================= */

/* Desktop — delikatnie mocniejsze podniesienie niż v12 */
@media (min-width: 1025px) {
  body.author .fr-archive-hero {
    margin-bottom: 12px !important;
  }

  body.author .gb-element-5e54ba54 {
    padding-top: 0 !important;
    transform: translateY(-185px) !important;
    margin-bottom: -185px !important;
  }

  body.author .gb-element-5e54ba54::before {
    margin-top: 0 !important;
    margin-bottom: 52px !important;
  }
}

/* Tablet */
@media (min-width: 769px) and (max-width: 1024px) {
  body.author .fr-archive-hero {
    margin-bottom: 12px !important;
  }

  body.author .gb-element-5e54ba54 {
    padding-top: 0 !important;
    transform: translateY(-145px) !important;
    margin-bottom: -145px !important;
  }

  body.author .gb-element-5e54ba54::before {
    margin-top: 0 !important;
    margin-bottom: 46px !important;
  }
}

/* Mobile — też trochę wyżej, ale bez wchodzenia placeholdera w hero */
@media (max-width: 768px) {
  body.author .fr-archive-hero {
    margin-bottom: 12px !important;
  }

  body.author .gb-element-5e54ba54 {
    padding-top: 0 !important;
    transform: translateY(-106px) !important;
    margin-bottom: -106px !important;
  }

  body.author .gb-element-5e54ba54::before {
    margin-top: 0 !important;
    margin-bottom: 30px !important;
  }
}

/* =========================================================
   15. OPTAD360 — AD SLOT BACKGROUND FIX v1
   Cel:
   - zachować stabilne wymiary slotów reklamowych / placeholderów
   - usunąć szare tło, gdy kreacja reklamowa jest mniejsza niż slot
   - wycentrować kreację w zarezerwowanym miejscu
   - nie ukrywać slotów i nie zmieniać ich wysokości, żeby nie powodować CLS
   ========================================================= */

html body :is(
  .fr-ad,
  .fr-ad-top,
  .fr-ad-before-latest,
  .fr-ad-before-chinese,
  .fr-ad-after-tests,
  .fr-ad-before-rankings,
  .fr-ad-sidebar,
  .fr-ad-placeholder,
  .fr-home-ad,
  .fr-homepage-ad,
  .fr-content-ad,
  .fr-article-ad,
  .fr-mobile-ad,
  .fr-desktop-ad,
  [class*="fr-ad-"],
  [class*="fr_ad_"]
) {
  background: transparent !important;
  background-color: transparent !important;
  background-image: none !important;
  border: 0 !important;
  box-shadow: none !important;
  outline: 0 !important;
}

/* Slot ma dalej rezerwować miejsce, ale kreacja ma siedzieć centralnie */
html body :is(
  .fr-ad,
  .fr-ad-top,
  .fr-ad-before-latest,
  .fr-ad-before-chinese,
  .fr-ad-after-tests,
  .fr-ad-before-rankings,
  .fr-ad-sidebar,
  .fr-ad-placeholder,
  .fr-home-ad,
  .fr-homepage-ad,
  .fr-content-ad,
  .fr-article-ad,
  .fr-mobile-ad,
  .fr-desktop-ad,
  [class*="fr-ad-"],
  [class*="fr_ad_"]
) {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  overflow: hidden !important;
}

/* Usuwa wizualne tło/podpis z własnych pseudo-placeholderów 4rings, bez kasowania slotu */
html body :is(
  .fr-ad,
  .fr-ad-top,
  .fr-ad-before-latest,
  .fr-ad-before-chinese,
  .fr-ad-after-tests,
  .fr-ad-before-rankings,
  .fr-ad-sidebar,
  .fr-ad-placeholder,
  .fr-home-ad,
  .fr-homepage-ad,
  .fr-content-ad,
  .fr-article-ad,
  .fr-mobile-ad,
  .fr-desktop-ad,
  [class*="fr-ad-"],
  [class*="fr_ad_"]
)::before,
html body :is(
  .fr-ad,
  .fr-ad-top,
  .fr-ad-before-latest,
  .fr-ad-before-chinese,
  .fr-ad-after-tests,
  .fr-ad-before-rankings,
  .fr-ad-sidebar,
  .fr-ad-placeholder,
  .fr-home-ad,
  .fr-homepage-ad,
  .fr-content-ad,
  .fr-article-ad,
  .fr-mobile-ad,
  .fr-desktop-ad,
  [class*="fr-ad-"],
  [class*="fr_ad_"]
)::after {
  background: transparent !important;
  background-color: transparent !important;
  background-image: none !important;
  border: 0 !important;
  box-shadow: none !important;
  color: transparent !important;
}

/* Obiekty reklamowe w slocie nie powinny być rozciągane na siłę */
html body :is(
  .fr-ad,
  .fr-ad-top,
  .fr-ad-before-latest,
  .fr-ad-before-chinese,
  .fr-ad-after-tests,
  .fr-ad-before-rankings,
  .fr-ad-sidebar,
  .fr-ad-placeholder,
  .fr-home-ad,
  .fr-homepage-ad,
  .fr-content-ad,
  .fr-article-ad,
  .fr-mobile-ad,
  .fr-desktop-ad,
  [class*="fr-ad-"],
  [class*="fr_ad_"]
) :is(iframe, img, ins, div) {
  max-width: 100% !important;
}

/* Author archive ma własny pseudo-placeholder GenerateBlocks. Po podpięciu reklam też nie może świecić szarym tłem. */
body.author .gb-element-5e54ba54::before {
  background: transparent !important;
  background-color: transparent !important;
  background-image: none !important;
}

