/* ========== Floating buttons: po prawej, w środku ekranu ========== */

/* jeśli masz konkretne klasy, podstaw je zamiast poniższych */
.float-sub, .float-ankieta {
  position: fixed !important;
  right: max(12px, env(safe-area-inset-right)); /* iPhone notch-safe */
  z-index: 1000;           /* poniżej menu (często 1001–9999), ale nad treścią */
  width: 54px; height: 54px;
  border-radius: 50%;
  display: grid; place-items: center;
  box-shadow: 0 10px 20px rgba(0,0,0,.15);
  text-decoration: none;
  line-height: 1;
}

/* kolory – jak dotychczas */
.float-sub  { background: #d4a017; color: #000; }
.float-ankieta { background: #000; color: #fff; }

/* Ustawienie w pionie (środek ekranu) */
.float-ankieta { 
  top: 50%; 
  transform: translateY(-50%); 
}
.float-sub { 
  top: calc(50% + 68px);      /* drugi przycisk 68px niżej od środka */
  transform: translateY(-50%);
}

/* Ikony/emoji w środku */
.float-sub span, .float-ankieta span { 
  font-size: 22px; 
}

/* Hover (desktop) */
@media (hover:hover) {
  .float-sub:hover  { filter: brightness(1.05); transform: translateY(-50%) scale(1.04); }
  .float-ankieta:hover { filter: brightness(1.05); transform: translateY(-50%) scale(1.04); }
}

/* Mobile: trochę mniejsze i odsunięte nieco niżej od nawigacji */
@media (max-width: 768px) {
  .float-sub, .float-ankieta { 
    width: 48px; height: 48px;
    right: max(10px, env(safe-area-inset-right));
  }
  .float-ankieta { top: 55%; }    /* środek + ciut niżej, by nie kolidować z paskiem adresu */
  .float-sub     { top: calc(55% + 62px); }
}

/* bardzo małe ekrany/wysokość – dosuń jeszcze niżej */
@media (max-height: 560px) {
  .float-ankieta { top: 58%; }
  .float-sub     { top: calc(58% + 62px); }
}
/* Naprawa kolorów w bannerach na stronie */
.paper.ig-feature,
.paper.naffy-feature { color:#000; }

.paper.ig-feature *:not(a),
.paper.naffy-feature *:not(a) { color:#000; }

.paper.ig-feature .lead,
.paper.naffy-feature .lead { color:#d4a017 !important; }

.paper.ig-feature a,
.paper.naffy-feature a { color:#d4a017; text-decoration: underline; }

.paper.ig-feature .btn,
.paper.naffy-feature .btn {
  background:#d4a017; color:#000; text-decoration:none;
}
.paper.ig-feature .btn:hover,
.paper.naffy-feature .btn:hover { background:#b88a12; }

.paper.ig-feature .btn.outline,
.paper.naffy-feature .btn.outline {
  background:transparent; border:1px solid #d4a017; color:#000;
}
.paper.ig-feature blockquote.ig-quote,
.paper.naffy-feature blockquote.ig-quote {
  border-left:4px solid #d4a017; color:#000;
}
/* === W Y D A R Z E N I A  —  P A T C H  === */

/* 1) KALENDARZ – nie rozciągać komórek, tylko kolor dnia */
#wydApp .cal { 
  max-width: 560px;            /* bezpieczna szerokość desktop */
  width: 100%;
  margin: 0 auto 16px; 
}
#wydApp .cal-grid { gap: 4px; }
#wydApp .cal-day {
  min-height: 58px;            /* stała, niska wysokość */
  padding: 4px 4px 20px;       /* numer dnia się mieści */
  overflow: hidden;
}
/* ukryj pigułki i kreski w komórkach – zostają same kolory pól */
#wydApp .cal-day .cal-evt,
#wydApp .cal-day .cal-empty { 
  display: none !important; 
}
/* Kolory pól z Twojej palety (zostają) */
#wydApp .cal-day.day-news  { background:#fff9e0; border-color:#e8cf7a; }
#wydApp .cal-day.day-wb    { background:#f7f2ea; border-color:#e2d6c1; }
#wydApp .cal-day.day-both  { 
  background:linear-gradient(135deg,#fff9e0 0 50%,#f7f2ea 50% 100%);
  border-color:#e1d8c1;
}

/* 2) TYPO – mniejsze, lżejsze karty (webinary + aktualności) */
#wydApp .card .title { 
  font-size: 16px; 
  line-height: 1.25;
  margin-bottom: 4px;
}
#wydApp .card .meta  { 
  font-size: 12px; 
  line-height: 1.3; 
  color:#5e6776;
}
#wydApp .card .desc  { 
  font-size: 13px;        /* mniejszy długi tekst */
  line-height: 1.45; 
}
#wydApp .more, 
#wydApp .link { 
  font-size: 13px; 
}

/* 3) Responsywność – kalendarz nie wylewa się, karty wygodniejsze na mobile */
@media (max-width: 880px){
  #wydApp { padding-left: 10px; padding-right: 10px; }
  #wydApp .cal { max-width: 520px; }
  #wydApp .cal-day { min-height: 54px; }
}
@media (max-width: 640px){
  #wydApp .cal { max-width: 480px; }
  #wydApp .cal-day { min-height: 48px; }
  #wydApp .card .title { font-size: 15px; }
  #wydApp .card .desc  { font-size: 13px; }
}
@media (max-width: 420px){
  #wydApp .cal { max-width: 360px; }
  #wydApp .cal-day { min-height: 44px; }
}
/* === PATCH: /wydarzenia/ — układ i mniejsze opisy (webinar + aktualność) === */
:where([id*="wydarzenia"], [class*="wydarzenia"], .events, .aw-events, .events-list) :is(article, .post, .card, .event, .webinar, .aktualnosc){
  display:flex; gap:12px; align-items:flex-start;
  background:#fff; border:1px solid rgba(0,0,0,.12); border-radius:12px; padding:12px; color:#000;
  /* uniknij rozjazdów gdy motyw coś nadpisuje */
  overflow:hidden;
}

/* Miniatura po lewej (widoczna i stabilna) */
:where([id*="wydarzenia"], [class*="wydarzenia"], .events, .aw-events, .events-list)
  :is(article, .post, .card, .event, .webinar, .aktualnosc)
  :is(.post-thumbnail img, .thumbnail img, img.wp-post-image, img[class*="thumb"]) {
  width:36%; min-width:36%;
  aspect-ratio:16/10; object-fit:cover;
  border-radius:10px; border:1px solid rgba(0,0,0,.12);
  display:block;
}

/* Prawy blok z tytułem + datą/godziną */
:where([id*="wydarzenia"], [class*="wydarzenia"], .events, .aw-events, .events-list)
  :is(article, .post, .card, .event, .webinar, .aktualnosc) > :is(.entry-wrapper, .entry-body, .content, .card-content, .event-body, .entry, .post-content, div){
  flex:1 1 auto; min-width:0; color:#000;
}

/* “Webinar” / “Aktualność” — mała plakietka (jeśli występuje) */
:where([id*="wydarzenia"], [class*="wydarzenia"], .events, .aw-events, .events-list)
  :is(.badge, .type, .label, .aw-type){
  display:inline-block; margin:0 0 6px;
  font-weight:800; font-size:10px; line-height:1;
  padding:2px 8px; border-radius:999px;
  background:#fff7d1; border:1px solid #d4a017; color:#000;
}

/* TYTUŁ — mniejszy, solidnie czarny */
:where([id*="wydarzenia"], [class*="wydarzenia"], .events, .aw-events, .events-list)
  :is(h1.entry-title, h2.entry-title, h3.entry-title, h2, h3, .title, .event-title){
  margin:0 0 4px; font-weight:800;
  /* ~o połowę mniejsze niż wcześniej, ale czytelne */
  font-size:clamp(10px, 1.6vw, 14px);
  line-height:1.25; color:#000 !important;
}

/* DATA + GODZINA — od razu pod tytułem */
:where([id*="wydarzenia"], [class*="wydarzenia"], .events, .aw-events, .events-list)
  :is(.entry-meta, .event-meta, .date, .event-date, time){
  font-size:12px; margin:0 0 6px; color:#000 !important; opacity:1 !important;
}

/* OPIS — POD całym rzędem (na całą szerokość), czcionka ~o połowę mniejsza */
:where([id*="wydarzenia"], [class*="wydarzenia"], .events, .aw-events, .events-list)
  :is(.entry-summary, .excerpt, .entry-content, .description, .event-desc, .post-excerpt, .post-content) {
  color:#000 !important;
  font-size:clamp(11px, 1.5vw, 13px); /* mniejsze ~1/2, ale wciąż czytelne */
  line-height:1.45;
}

/* Przyciski (jeśli są) – drobniejsze */
:where([id*="wydarzenia"], [class*="wydarzenia"], .events, .aw-events, .events-list)
  :is(a.button, .btn, .button){
  font-size:11px; padding:6px 10px; border-radius:10px;
  background:#fff; border:1px solid #d4a017; color:#000 !important;
}

/* Responsywność – na telefonie układ pionowy */
@media (max-width: 720px){
  :where([id*="wydarzenia"], [class*="wydarzenia"], .events, .aw-events, .events-list)
    :is(article, .post, .card, .event, .webinar, .aktualnosc){ flex-direction:column; }
  :where([id*="wydarzenia"], [class*="wydarzenia"], .events, .aw-events, .events-list)
    :is(.post-thumbnail img, .thumbnail img, img.wp-post-image, img[class*="thumb"]){
    width:100%; min-width:0; aspect-ratio:auto; max-height:44vw; object-fit:cover;
  }
}

/* Wymuś czarny tekst na wszelki wypadek (nadpisy motywu) */
:where([id*="wydarzenia"], [class*="wydarzenia"], .events, .aw-events, .events-list) * { color:#000 !important; }