/* ===================================================================
   YOUR BREAK - MAIN STYLESHEET
   =================================================================== */

/* --- 0. Global Variables --- */
:root {
  /* YB-101: kolor akcji z panelu (#3e59d1, 5,9:1 na białym) jest kolorem całej strony.
     Dawny #6178de miał 4,0:1 i nie przechodził z białym tekstem. */
  --primary-color: #3e59d1;
  --primary-dark-color: #2f47b8;
  --secondary-color: #f1df96;
  --secondary-dark-color: #ecd267;
  --dark-color: #3b3b3b;
  --light-gray-color: #f5f5f5;
  --dark-gray-color: #6c6b6b;
  --border-color: #e0e0e0;
  --text-color: #3f3f3f;
  --white-color: #ffffff;
  --background-color: #f8f9f3;
  --grid-gutter-width: 30px;
  --font-primary: 'League Spartan', sans-serif;
  --font-secondary: 'Poppins', sans-serif;

  /* Panel organizatora i strony logowania (YB-024). W :root, bo .yb-btn żyje też poza panelem. */
  --yb-action: #3e59d1; /* 5,9:1 na białym */
  --yb-action-ink: #2f47b8; /* 7,7:1, tekst i hover */
  --yb-action-press: #263a99;
  --yb-action-soft: #eef1fc;
  --yb-action-soft-press: #dfe5fb;
  --yb-action-line: #b6c0ec;
  --yb-danger: #b42318; /* 6,6:1 */
  --yb-danger-hover: #912018;
  --yb-danger-press: #7a1a14;
  --yb-radius-chip: 6px;
  --yb-radius-control: 10px;
  --yb-radius-card: 14px;
  --yb-h-sm: 36px;
  --yb-h-md: 44px;
  --yb-h-lg: 52px;

  /* Nagłówek i stopka (YB-101) */
  --yb-header-h: 72px;
  --yb-sticky-top: calc(var(--yb-header-h) + var(--wp-admin--admin-bar--height, 0px) + 24px);
  --yb-footer-bg: #23263a;
  --yb-footer-ink: #e9ebf3;
  --yb-footer-muted: #b7bccf;
  --yb-footer-line: #3a3e56;

  /* Kolory globalne Astry (w bazie: #6178de / #045cb4) na tokenach motywu (YB-101). */
  --ast-global-color-0: var(--yb-action);
  --ast-global-color-1: var(--yb-action-ink);
}

@media (max-width: 1023px) {
  :root {
    --yb-header-h: 60px;
  }
}

/* --- 0a. Mobile global padding --- */
@media (max-width: 768px) {
  :root {
    --grid-gutter-width: 8px;
  }
  .ast-separate-container #content .ast-container {
    padding-left: 5px !important;
    padding-right: 5px !important;
  }
}

/* --- 1. Reset astra CSS --- */
.ast-container,
.ast-container-fluid {
  padding: 0;
  max-width: unset;
}
.ast-plain-container,
.ast-page-builder-template {
  background-color: var(--background-color);
}
button {
  border-radius: unset;
  box-shadow: unset;
}
button:hover,
button:focus {
  color: unset;
  background-color: unset;
  border-color: unset;
}
a:hover,
a:focus {
  color: inherit;
}
label,
legend {
  font-weight: 300;
}
.page .entry-header {
  margin-left: 0 !important;
  margin-right: 0;
  padding-left: 0;
  padding-right: 0;
}
.ast-narrow-container .site-content > .ast-container {
  max-width: 1440px;
}
/* --- 2. Base & Typography --- */
body {
  font-family: var(--font-secondary);
  font-optical-sizing: auto;
  color: var(--text-color);
  line-height: 1.6;
  background-color: var(--background-color);
}
main {
  width: 100%;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 700;
  color: var(--dark-color);
  padding: 0;
  line-height: 130%;
}

h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-secondary);
}

/* Jedna skala nagłówków (YB-101): H1 48 / H2 32 / H3 22, na telefonie 34 / 25 / 19. */
h1 {
  font-family: var(--font-primary);
  font-size: 48px;
  line-height: 1.15;
  margin-bottom: 20px;
}
h2 {
  font-size: 32px;
  line-height: 1.25;
  margin-bottom: 20px;
}
.archive h2 {
  font-size: 28px;
}
h3 {
  font-size: 22px;
  line-height: 1.3;
  margin-bottom: 20px;
}
p {
  margin-bottom: 1rem;
  line-height: 140%;
}

/* --- 3. Grid System (Mobile First) --- */
.container {
  width: 100%;
  max-width: 1440px;
  margin-left: auto;
  margin-right: auto;
  padding-left: calc(var(--grid-gutter-width) / 2);
  padding-right: calc(var(--grid-gutter-width) / 2);
}
header {
  background-color: var(--background-color);
}
header > div {
  max-width: 1440px;
  margin: 0 auto;
  background-color: var(--background-color);
  padding-left: calc(var(--grid-gutter-width) / 2);
  padding-right: calc(var(--grid-gutter-width) / 2);
}
.section-narrow {
  max-width: 1440px;
  margin: 0 auto;
  overflow: hidden;
  padding-left: calc(var(--grid-gutter-width) / 2);
  padding-right: calc(var(--grid-gutter-width) / 2);
}

.row {
  display: flex;
  flex-wrap: wrap;
  margin-left: calc(var(--grid-gutter-width) / -2);
  margin-right: calc(var(--grid-gutter-width) / -2);
}

[class*='col-'] {
  width: 100%;
  padding-left: calc(var(--grid-gutter-width) / 2);
  padding-right: calc(var(--grid-gutter-width) / 2);
  box-sizing: border-box;
  margin-bottom: 20px;
}
.col-12 {
  flex: 0 0 100%;
  max-width: 100%;
}
.col-11 {
  flex: 0 0 91.666667%;
  max-width: 91.666667%;
}
.col-10 {
  flex: 0 0 83.333333%;
  max-width: 83.333333%;
}
.col-9 {
  flex: 0 0 75%;
  max-width: 75%;
}
.col-8 {
  flex: 0 0 66.666667%;
  max-width: 66.666667%;
}
.col-7 {
  flex: 0 0 58.333333%;
  max-width: 58.333333%;
}
.col-6 {
  flex: 0 0 50%;
  max-width: 50%;
}
.col-5 {
  flex: 0 0 41.666667%;
  max-width: 41.666667%;
}
.col-4 {
  flex: 0 0 33.333333%;
  max-width: 33.333333%;
}
.col-3 {
  flex: 0 0 25%;
  max-width: 25%;
}
.col-2 {
  flex: 0 0 16.666667%;
  max-width: 16.666667%;
}
.col-1 {
  flex: 0 0 8.333333%;
  max-width: 8.333333%;
}

/* --- 4. Utility Classes --- */
.text-center {
  text-align: center;
}
.section-padding {
  padding-top: 60px;
  padding-bottom: 60px;
}
.section-bg-grey {
  background-color: var(--light-gray-color);
}

/* --- 5. Components --- */
.btn,
input[type='submit'] {
  display: inline-block;
  padding: 16px 24px;
  text-align: center;
  border-radius: 50px;
  color: #fff;
  line-height: 1.1;
  font-weight: 600;
  font-size: 20px;
  background-color: var(--primary-color);
  border: none;
  cursor: pointer;
  text-decoration: none;
  position: relative;
  top: 0;
  color: var(--white-color);
}
.btn:hover,
input[type='submit']:hover {
  color: var(--white-color);
  background-color: var(--primary-dark-color);
}

.btn:active,
.btn:focus,
input[type='submit']:active,
input[type='submit']:focus {
  background-color: var(--primary-dark-color);
}

.btn--small {
  padding: 12px 28px;
  font-size: 16px;
}

.btn--secondary {
  background-color: var(--secondary-color);
  color: var(--dark-color);
}

.btn--secondary:hover {
  color: var(--dark-color);
  background-color: var(--secondary-dark-color);
}

.btn--secondary:active,
.btn--secondary:focus {
  box-shadow: 0 0 0 var(--secondary-dark-color) inset 0 2px 5px
    rgba(0, 0, 0, 0.2);
}

.btn--menu a {
  color: #fff !important;
}
.btn--menu {
  padding: 12px 8px;
  margin: 20px 0 20px 16px;
  line-height: unset !important;
}

/* --- 6. Hero Section --- */
.hero {
  position: relative;
  padding: 120px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 600px;
}

.hero__background-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
}

.hero__content {
  position: relative;
  z-index: 1;
}

.hero__title,
.hero__subtitle {
  color: var(--secondary-color);
}

.hero__subtitle {
  font-size: 20px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 40px;
}

.search-form {
  display: flex;
  background: var(--white-color);
  border-radius: 12px;
  padding: 10px;
  max-width: 800px;
  margin: 0 auto;
}

.search-form__field-group {
  display: flex;
  flex-grow: 1;
}

.search-form__input {
  border: none;
  padding: 15px 20px;
  font-size: 16px;
  width: 100%;
  background: transparent;
}

.search-form__input:focus {
  outline: none;
}

.search-form__input:first-child {
  border-right: 1px solid var(--border-color);
}

.search-form__submit {
  min-width: 180px;
  font-size: 18px;
  padding: 15px 30px;
}
/* --- 7. Components: Featured Events --- */
.featured-events__title {
  margin-bottom: 40px;
}

.featured-events__grid {
  justify-content: center;
}

.featured-events__button-wrapper {
  margin-top: 40px;
}

/* --- Featured Events Carousel --- */
.featured-events__carousel {
  overflow: visible;
  padding: 20px 0;
  touch-action: pan-y;
  -webkit-user-select: none;
  user-select: none;
}

.featured-events__carousel .owl-stage-outer {
  overflow: hidden;
}

.featured-events__carousel .owl-stage {
  display: flex;
  align-items: stretch;
}

.featured-events__carousel .owl-item {
  display: flex;
  height: auto;
}

.featured-events__item {
  height: 100%;
  display: flex;
  width: 100%;
}

.featured-events__item .event-card {
  height: 100%;
  width: 100%;
  display: flex;
  flex-direction: column;
}

.featured-events__carousel .owl-nav {
  position: absolute;
  top: 50%;
  width: 100%;
  transform: translateY(-50%);
  pointer-events: none;
  display: flex;
  justify-content: space-between;
  left: 0;
}

.featured-events__carousel .owl-prev,
.featured-events__carousel .owl-next {
  width: 50px;
  height: 50px;
  background-color: var(--white-color) !important;
  border-radius: 50% !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  display: flex !important;
  align-items: center;
  justify-content: center;
  font-size: 30px !important;
  color: var(--dark-color) !important;
  transition: all 0.3s ease;
  pointer-events: auto;
  opacity: 1;
  margin: 0 -25px !important;
}

.featured-events:hover .owl-prev,
.featured-events:hover .owl-next {
  opacity: 1;
}

.featured-events__carousel .owl-prev:hover,
.featured-events__carousel .owl-next:hover {
  background-color: var(--primary-color) !important;
  color: var(--white-color) !important;
}

.featured-events__carousel .owl-dots {
  margin-top: 30px;
  text-align: center;
}

.featured-events__carousel .owl-dot {
  display: inline-block;
  zoom: 1;
}

.featured-events__carousel .owl-dot span {
  width: 10px;
  height: 10px;
  margin: 5px 7px;
  background: #d6d6d6;
  display: block;
  border-radius: 30px;
  transition: all 0.3s ease;
}

.featured-events__carousel .owl-dot.active span,
.featured-events__carousel .owl-dot:hover span {
  background: var(--primary-color);
  width: 25px;
}

/* Poprawki dla mobilnych (1.3 item) */
@media (max-width: 991px) {
  .featured-events__carousel {
    padding-right: 0;
    margin-right: -15px;
  }

  .featured-events__carousel .owl-stage-outer {
    padding-right: 15%;
  }
}

/* --- 10. Components: City Links --- */

.city-links__title {
  margin-bottom: 40px;
}

.city-links__list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
}

.city-links__item {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 50px;
  background-color: var(--secondary-color);
  color: var(--dark-color);
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  transition:
    transform 0.2s ease-in-out,
    background-color 0.2s;
}

.city-links__item:hover {
  background-color: var(--secondary-dark-color);
  color: var(--dark-color);
  transform: translateY(-2px); /* Delikatny efekt uniesienia */
}

.city-links__item--active {
  background-color: var(--secondary-color);
  color: var(--dark-color);
}

/* Warianty sekcji linków „kategoria + miasto” (archiwa taksonomii) */

.city-links--inline {
  margin-top: 40px;
}

.city-links__title--sm {
  margin-bottom: 20px;
  font-size: 22px;
}

.city-links__list--start {
  justify-content: flex-start;
}

.city-links__item--sm {
  padding: 8px 18px;
  font-size: 15px;
}

.city-links__count {
  opacity: 0.6;
  font-weight: 400;
}

/* --- 11. Components: CTA Banner --- */

.cta-banner {
  display: flex;
  align-items: center;
  position: relative;
  min-height: 400px;
  background-color: #333;
  text-decoration: none;
  color: var(--white-color);
  padding: 60px 0;
  overflow: hidden;
  border-radius: 12px;
}

.cta-banner__image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.cta-banner .container {
  position: relative;
  z-index: 3;
}

.cta-banner__text {
  font-family: var(--font-primary);
  font-size: 40px;
  max-width: 700px;
  color: var(--secondary-color);
}
.cta-banner__description {
  font-family: var(--font-secondary);
  color: var(--secondary-color);
  font-size: 20px;
  margin-bottom: 40px;
}
.cta-banner .col-12 {
  margin-bottom: 0;
}

/* --- 12. Components: Category Showcase --- */

.category-showcase__title {
  margin-bottom: 40px;
}

.category-showcase__button-wrapper {
  margin-top: 40px;
}

.showcase-card {
  display: block;
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  height: 400px;
  text-decoration: none;
  color: var(--white-color);
  box-shadow: 0 4px 16px rgba(42, 42, 42, 0.08);
}

.showcase-card__image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease-out;
}

.showcase-card__overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.7) 0%,
    rgba(0, 0, 0, 0) 50%
  );
  z-index: 1;
}

.showcase-card__content {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 25px;
  z-index: 2;
}

/* Magia przełączania stanów */
.showcase-card__default-state,
.showcase-card__hover-state {
  transition:
    opacity 0.3s ease-in-out,
    transform 0.3s ease-in-out;
  position: relative;
}

/* --- Owl Carousel Customization --- */

.category-showcase__carousel .owl-stage-outer {
  overflow: hidden; /* Ukrywamy nadmiar slajdów, bo kontener będzie visible */
}

/* Ukryj nadmiar tylko na kontenerze głównym, jeśli trzeba, ale overflow: visible na stage jest ok dla layoutu 1.3 */
.category-showcase__carousel {
  overflow: visible;
  padding: 20px 0; /* Miejsce na cienie góra/dół */
  touch-action: pan-y; /* Ważne: pozwala na scroll pionowy strony, ale przekazuje scroll poziomy do slidera */
  -webkit-user-select: none;
  user-select: none;
}

.category-showcase__carousel .owl-nav {
  position: absolute;
  top: 50%;
  width: 100%;
  transform: translateY(-50%);
  pointer-events: none; /* Żeby nie blokować kliknięć w slajdy */
  display: flex;
  justify-content: space-between;
  left: 0;
}

.category-showcase__carousel .owl-prev,
.category-showcase__carousel .owl-next {
  width: 50px;
  height: 50px;
  background-color: var(--white-color) !important;
  border-radius: 50% !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  display: flex !important;
  align-items: center;
  justify-content: center;
  font-size: 30px !important;
  color: var(--dark-color) !important;
  transition: all 0.3s ease;
  pointer-events: auto;
  opacity: 1; /* Zawsze widoczne */
  margin: 0 -25px !important; /* Wystaw poza kontener */
}

.category-showcase:hover .owl-prev,
.category-showcase:hover .owl-next {
  opacity: 1;
}

.category-showcase__carousel .owl-prev:hover,
.category-showcase__carousel .owl-next:hover {
  background-color: var(--primary-color) !important;
  color: var(--white-color) !important;
}

.category-showcase__carousel .owl-dots {
  margin-top: 30px;
  text-align: center;
}

.category-showcase__carousel .owl-dot {
  display: inline-block;
  zoom: 1;
}

.category-showcase__carousel .owl-dot span {
  width: 10px;
  height: 10px;
  margin: 5px 7px;
  background: #d6d6d6;
  display: block;
  -webkit-backface-visibility: visible;
  backface-visibility: visible;
  transition: all 0.3s ease;
  border-radius: 30px;
}

.category-showcase__carousel .owl-dot.active span,
.category-showcase__carousel .owl-dot:hover span {
  background: var(--primary-color);
  width: 25px; /* Aktywna kropka szersza */
}

/* Poprawki dla mobilnych (1.3 item) */
@media (max-width: 767px) {
  .category-showcase__carousel {
    padding-right: 0; /* Zresetuj padding kontenera */
    margin-right: -15px; /* Wystaw poza grid boostrapa z prawej, żeby ucięty element dochodził do krawędzi */
  }

  .category-showcase__carousel .owl-stage-outer {
    padding-right: 15%; /* Miejsce na ucięty element z prawej */
  }
}

.showcase-card__hover-state {
  position: absolute;
  bottom: 25px;
  left: 25px;
  right: 25px;
  opacity: 0;
  transform: translateY(10px);
  visibility: hidden;
}

.showcase-card:hover .showcase-card__default-state {
  opacity: 0;
  transform: translateY(-10px);
}

.showcase-card:hover .showcase-card__hover-state {
  opacity: 1;
  transform: translateY(0);
  visibility: visible;
}

.showcase-card:hover .showcase-card__image,
.showcase-card.showcase-card--active .showcase-card__image {
  transform: scale(1.05); /* Delikatne przybliżenie obrazka */
}

.showcase-card__title {
  font-size: 40px;
  font-weight: 700;
  color: var(--white-color);
  margin: 0;
  font-family: var(--font-primary);
}

.showcase-card__pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.showcase-card__pill {
  display: inline-block;
  padding: 6px 14px;
  background-color: rgba(255, 255, 255, 0.9);
  color: var(--dark-color);
  border-radius: 20px;
  font-size: 14px;
  font-weight: 500;
}
.showcase-card__pill:hover {
  background-color: var(--secondary-color);
  color: var(--dark-color);
}

/* --- 13. Components: Newsletter Section --- */

.newsletter-section {
  position: relative; /* Niezbędne do pozycjonowania obrazka w tle */
  min-height: 500px;
  display: flex;
  align-items: center;
  overflow: hidden; /* Zapobiega "wystawaniu" obrazka poza sekcję */
  border-radius: 12px;
}

.newsletter-section__background-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}
.newsletter-banner {
  display: flex;
  align-items: center;
  position: relative;
  width: 100%;
  padding: 60px 0;
  overflow: hidden;
  border-radius: 12px;
}
.newsletter-banner .col-12 {
  margin-bottom: 0;
}

.newsletter-box {
  background-color: var(--white-color);
  padding: 40px;
  border-radius: 8px;
  position: relative; /* Upewnia się, że treść jest nad obrazkiem tła */
  z-index: 2;
}

.newsletter-box__title {
  font-size: 32px;
  font-weight: 800;
  text-transform: uppercase;
  margin-bottom: 15px;
  line-height: 1.3;
}

.newsletter-box__text {
  font-size: 16px;
  color: #555;
  margin-bottom: 30px;
}

.newsletter-form__group {
  margin-bottom: 15px;
}

.newsletter-form__input {
  width: 100%;
  padding: 18px 20px;
  border: 1px solid var(--border-color);
  font-size: 16px;
  border-radius: 8px;
}

/* --- 13.1. Components: Modal (Reusable) --- */

.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.3s ease,
    visibility 0.3s ease;
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
}

.modal--active {
  opacity: 1;
  visibility: visible;
}

.modal__overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  cursor: pointer;
}

.modal__container {
  position: relative;
  background-color: var(--white-color);
  border-radius: 12px;
  max-width: 690px;
  width: 90%;
  max-height: 90vh;
  max-height: 90dvh;
  /* dvh tracks the visible area while iOS shows/hides the URL bar; vh does not. */
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  max-height: 90dvh;
  display: flex;
  flex-direction: column;
  z-index: 1;
  transform: scale(0.9);
  transition: transform 0.3s ease;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.modal--active .modal__container {
  transform: scale(1);
}

.modal__close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 32px;
  height: 32px;
  border: none;
  background: transparent;
  font-size: 32px;
  line-height: 1;
  color: var(--dark-gray-color);
  cursor: pointer;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s ease;
  padding: 0;
}

.modal__close:hover,
.modal__close:focus {
  color: var(--dark-color);
  outline: none;
}

.modal__content {
  padding: 40px;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.modal__title {
  font-size: 28px;
  font-weight: 800;
  text-transform: uppercase;
  margin-bottom: 15px;
  line-height: 1.3;
  color: var(--dark-color);
}

.modal__text {
  font-size: 16px;
  color: #555;
  margin-bottom: 30px;
}

.modal__form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.modal__form-group {
  display: flex;
  flex-direction: column;
}

.modal__label {
  font-size: 14px;
  font-weight: 600;
  color: var(--dark-color);
  margin-bottom: 8px;
}

.modal__input {
  width: 100%;
  padding: 14px 18px;
  border: 1px solid var(--border-color);
  font-size: 16px;
  border-radius: 8px;
  font-family: var(--font-secondary);
  transition: border-color 0.2s ease;
}

.modal__input:focus {
  outline: none;
  border-color: var(--primary-color);
}

.modal__input:invalid:not(:placeholder-shown) {
  border-color: #dc3545;
}

/* Newsletter form in modal - styled like contact forms */
.modal__content .tnp-subscription {
  margin-top: 20px;
}

.modal__content .tnp-subscription .tnp-field {
  margin-bottom: 15px;
}

.modal__content .tnp-subscription label {
  font-size: 14px;
  font-weight: 600;
  color: var(--dark-color);
  margin-bottom: 8px;
  display: block;
}

.modal__content .tnp-subscription input[type='text'],
.modal__content .tnp-subscription input[type='email'],
.modal__content .tnp-subscription input[type='tel'],
.modal__content .tnp-subscription select {
  background-color: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 50px;
  padding: 15px 25px;
  width: 100%;
  font-size: 16px;
  margin-bottom: 0;
  font-family: var(--font-secondary);
  transition: border-color 0.2s ease;
  box-sizing: border-box;
}

.modal__content .tnp-subscription input[type='text']:focus,
.modal__content .tnp-subscription input[type='email']:focus,
.modal__content .tnp-subscription input[type='tel']:focus,
.modal__content .tnp-subscription select:focus {
  outline: none;
  border-color: var(--primary-color);
}

.modal__content .tnp-subscription .tnp-field-checkbox {
  display: flex;
  align-items: center;
  margin-top: 15px;
}

.modal__content .tnp-subscription .tnp-field-checkbox label {
  display: inline-flex;
  align-items: center;
  font-weight: normal;
  font-size: 14px;
  margin-bottom: 0;
  margin-left: 8px;
}

.modal__content .tnp-subscription input[type='checkbox'] {
  width: auto;
  margin-right: 0;
  margin-bottom: 0;
}

.modal__content .tnp-subscription input[type='submit'],
.modal__content .tnp-subscription button[type='submit'],
.modal__content .tnp-subscription .tnp-submit {
  background-color: var(--primary-color);
  color: #fff;
  border: none;
  border-radius: 50px;
  padding: 15px 30px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  margin-top: 20px;
  width: auto;
  transition: background-color 0.2s ease;
  font-family: var(--font-secondary);
}

.modal__content .tnp-subscription input[type='submit']:hover,
.modal__content .tnp-subscription button[type='submit']:hover,
.modal__content .tnp-subscription .tnp-submit:hover {
  background-color: var(--primary-color-dark, #0056b3);
}

/* Responsive styles for modal */
@media (max-width: 768px) {
  .modal__container {
    width: 95%;
    max-height: 95vh;
  }

  .modal__content {
    padding: 30px 20px;
  }

  .modal__title {
    font-size: 24px;
  }

  .modal__close {
    top: 15px;
    right: 15px;
    width: 28px;
    height: 28px;
    font-size: 28px;
  }
}

/* --- 14. Components: FAQ Section --- */

.faq-section__title {
  margin-bottom: 40px;
}

.faq-accordion__item {
  border-bottom: 1px solid var(--border-color);
}

.faq-accordion__question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 25px 0;
  background: none;
  border: none;
  text-align: left;
  font-size: 20px;
  line-height: 1.3;
  font-weight: 600;
  cursor: pointer;
  color: var(--dark-color);
  gap: 20px;
}

.faq-accordion__arrow {
  display: inline-block;
  width: 14px;
  height: 14px;
  border-top: 2px solid var(--dark-color);
  border-right: 2px solid var(--dark-color);
  transform: rotate(135deg);
  transition: transform 0.3s ease-in-out;
  position: relative;
  left: -20px;
}

.faq-accordion__answer {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.4s ease-in-out;
}

.faq-accordion__answer-content {
  padding-bottom: 15px;
  max-width: calc(100% - 40px);
}

.faq-accordion__item.active .faq-accordion__question {
  color: var(--primary-color);
}

.faq-accordion__item.active .faq-accordion__arrow {
  transform: rotate(-45deg);
}

/* --- 16. Components: Page Hero --- */

.page-hero {
  padding: 80px 0;
  background-color: var(--secondary-color);
  overflow: hidden;
}

.page-hero__text-content {
  padding-right: 30px;
}

.page-hero__pre-title {
  display: block;
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--dark-color);
}

.page-hero__title {
  color: var(--dark-color);
}

.page-hero__text {
  font-size: 18px;
  line-height: 1.6;
  margin-bottom: 30px;
}

.page-hero__image {
  width: 100%;
  height: auto;
  border-radius: 12px;
}
.page-hero__buttons {
  display: flex;
  gap: 10px;
}
/* Ustawienie elementów w jednej linii dla flexboxa */
.align-items-center {
  align-items: center;
}

/* --- 18. Components: Contact Section --- */
.contact-section__image {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px; /* Zaokrąglenie samego obrazka */
}

.contact-section__form-wrapper {
  padding-left: 30px;
}
.wpcf7 form.invalid .wpcf7-response-output,
.wpcf7 form.unaccepted .wpcf7-response-output,
.wpcf7 form.payment-required .wpcf7-response-output {
  border-color: #dc2626;
}
input.wpcf7-form-control:not([type='submit']),
select.wpcf7-form-control {
  background-color: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 50px; /* Całkowicie zaokrąglone rogi */
  padding: 15px 25px;
  width: 100%;
  font-size: 16px;
  margin-bottom: 15px;
}
.wpcf7 .wpcf7-form-control-wrap {
  margin-bottom: 20px;
}
.wpcf7-select {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23333' d='M6 8L0 2l1.4-1.4L6 5.2 10.6.6 12 2z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 15px center;
  padding-right: 35px;
}

select.wpcf7-select:valid {
  color: var(--dark-gray-color);
}

select.wpcf7-select option,
select.wpcf7-select {
  color: var(--dark-color);
}
.wpcf7 .wpcf7-not-valid-tip {
  margin: 0 0 0 20px;
  position: absolute;
}

.contact-section__form-wrapper .wpcf7-acceptance {
  display: flex;
  align-items: center;
}

.contact-section__form-wrapper .wpcf7-acceptance .wpcf7-form-control {
  width: auto;
  margin-right: 10px;
}
.wpcf7-list-item {
  margin: 0 10px 10px 0;
}
.has-tooltip {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 13px;
}
.tooltip-trigger {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background-color: #0073aa;
  color: white;
  font-weight: bold;
  font-style: italic;
  cursor: pointer;
  margin-left: 8px;
  font-size: 12px;
}
.tooltip-text {
  visibility: hidden;
  width: 220px;
  background-color: #333;
  color: #fff;
  text-align: center;
  border-radius: 6px;
  padding: 8px;
  position: absolute;
  z-index: 1;
  bottom: 125%;
  left: 50%;
  margin-left: -110px;
  opacity: 0;
  transition: opacity 0.3s;
  font-size: 13px;
}
.tooltip-text::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  margin-left: -5px;
  border-width: 5px;
  border-style: solid;
  border-color: #333 transparent transparent transparent;
}
.has-tooltip:hover .tooltip-text {
  visibility: visible;
  opacity: 1;
}
.wpcf7-submit {
  margin-top: 20px;
}
/* --- 19. Components: CF7 forms --- */

.form-row {
  display: flex;
  gap: 15px;
}

.form-row > span {
  flex: 1;
  margin-bottom: 0 !important;
}

.form-label {
  font-weight: 600;
  color: var(--dark-color);
  margin: 40px 0 25px;
}
.form-label span {
  font-weight: normal;
  font-size: 0.9em;
  color: var(--dark-gray-color);
}
form h3 {
  font-size: 30px;
}
input[type='radio'] + span {
  font-size: 16px !important;
}

.justify-content-center {
  justify-content: center;
}

/* --- 21. Components: Team Section --- */
.team-member {
  margin-bottom: 80px;
}

.team-member:last-child {
  margin-bottom: 0;
}

.team-member__name {
  font-size: 32px;
  font-weight: 600;
  margin-bottom: 5px;
}

.team-member__position {
  font-size: 18px;
  color: #555;
  margin-bottom: 20px;
}

.team-member__photo {
  width: 90%;
  border-radius: 12px;
}

/* Logika naprzemiennego układu */
.team-member .team-member__photo-wrapper {
  display: flex;
  justify-content: flex-end;
}

.team-member--reverse .team-member__photo-wrapper {
  order: -1; /* Przesuwa kolumnę ze zdjęciem na początek */
  justify-content: flex-start;
}

/* --- 22. Archive Events Page --- */

.archive-events-page {
  background-color: var(--background-color);
}

.archive-events-page__title {
  font-family: var(--font-primary);
  font-size: 48px;
  margin-bottom: 40px;
  font-weight: 700;
  line-height: 130%;
}
.row.archive-events-page__term-description-row {
  margin-top: 40px;
}

/* Opis archiwum spod listy wydarzeń - treść z edytora WYSIWYG (ACF `yb_term_description`)
   albo z wpisu nakładkowego strony „kategoria + miasto”. Typografia jak w treści wpisu. */

.archive-events-page__term-description {
  color: var(--text-color);
  line-height: 1.7;
}

.archive-events-page__term-description > *:first-child {
  margin-top: 0;
}

.archive-events-page__term-description > *:last-child {
  margin-bottom: 0;
}

.archive-events-page__term-description h2 {
  margin: 32px 0 12px;
  font-size: 28px;
  line-height: 1.3;
  color: var(--dark-color);
}

.archive-events-page__term-description h3 {
  margin: 24px 0 10px;
  font-size: 22px;
  line-height: 1.35;
  color: var(--dark-color);
}

.archive-events-page__term-description h4 {
  margin: 20px 0 8px;
  font-size: 18px;
  color: var(--dark-color);
}

.archive-events-page__term-description p {
  margin: 0 0 16px;
}

.archive-events-page__term-description ul,
.archive-events-page__term-description ol {
  margin: 0 0 16px;
  padding-left: 22px;
}

.archive-events-page__term-description li {
  margin-bottom: 6px;
}

.archive-events-page__term-description a {
  color: var(--primary-dark-color);
  text-decoration: underline;
}

.archive-events-page__term-description a:hover {
  color: var(--primary-color);
}

.archive-events-page__term-description img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}

.archive-events-page__term-description blockquote {
  margin: 20px 0;
  padding: 4px 0 4px 18px;
  border-left: 4px solid var(--secondary-color);
  color: var(--dark-gray-color);
}

@media (max-width: 767px) {
  .archive-events-page__term-description h2 {
    font-size: 24px;
  }

  .archive-events-page__term-description h3 {
    font-size: 20px;
  }
}

@media (max-width: 767px) {
  .archive-events-page__title {
    font-size: 36px;
    margin-bottom: 16px;
  }
}

.results-wrapper {
  position: relative; /* Potrzebne dla przyszłego wskaźnika ładowania */
}

.results-grid {
  display: flex;
  flex-direction: column;
  gap: 25px; /* Odstęp między kartami wydarzeń */
}

/* Profil organizatora: termy spoza bieżącego zakresu (nadchodzące/archiwum) chowamy. */
.yb-scope-hidden {
  display: none !important;
}

.results-wrapper.loading {
  opacity: 0.5;
  transition: opacity 0.3s;
}

/* Podstawowa stylizacja dla paginacji WordPressa */
.navigation.pagination {
  margin-top: 40px;
}

.nav-links {
  display: flex;
  gap: 10px;
  justify-content: center;
}

.nav-links .page-numbers {
  padding: 10px 15px;
  border: 1px solid var(--border-color);
  text-decoration: none;
  color: var(--dark-color);
  border-radius: 4px;
}

.nav-links .page-numbers.current,
.nav-links .page-numbers:hover {
  background-color: var(--primary-color);
  color: #fff;
  border-color: var(--primary-color);
}

/* --- 23. Filters Sidebar --- */

.filters-panel {
  background-color: #fff;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(42, 42, 42, 0.08);
}

.filter-group {
  margin-bottom: 10px;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 10px;
}

.filter-group:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.filter-label {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 20px;
}

/* Custom Checkbox Styles */
.filter-item {
  padding-bottom: 12px;
}

.filter-item label {
  display: flex;
  align-items: center;
  cursor: pointer;
  font-size: 16px;
}

.filter-item input[type='checkbox'] {
  opacity: 0; /* Ukrywamy domyślny checkbox */
  position: absolute;
}

.date-input-label {
  display: block;
  margin-bottom: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--dark-color);
}

.date-filter-input {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  font-size: 16px;
  font-family: inherit; /* Dziedziczy czcionkę motywu */
}

.checkbox-label {
  position: relative;
  padding-left: 30px;
  color: var(--dark-color);
  font-weight: 500;
}

.checkbox-label::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  border: 1px solid var(--border-color);
  background-color: #fff;
  border-radius: 4px;
}

.checkbox-label::after {
  content: '✔';
  position: absolute;
  left: 4px;
  top: 50%;
  transform: translateY(-50%) scale(0);
  font-size: 14px;
  color: var(--primary-color);
  transition: transform 0.2s;
}

.filter-item input[type='checkbox']:checked + .checkbox-label::before {
  border-color: var(--primary-color);
}

.filter-item input[type='checkbox']:checked + .checkbox-label::after {
  transform: translateY(-50%) scale(1);
}

/* Styles for Sliders */
.slider-values {
  margin-top: 15px;
  font-weight: 500;
  color: #555;
}

/* Favourites: past events section divider */
.favorites-past-section {
  margin-top: 40px;
}

.favorites-past-section__divider {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 28px;
  color: #999;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.favorites-past-section__divider::before,
.favorites-past-section__divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background-color: #e4e4e4;
}

/* --- 25. Hero Search Form --- */

.hero-search-form {
  display: flex;
  flex-wrap: wrap; /* Pozwoli na łamanie na mobile */
  align-items: flex-end; /* Wyrównuje przycisk do dołu */
  background-color: rgba(255, 255, 255, 0.95);
  padding: 35px;
  border-radius: 16px;
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.12);
  gap: 24px;
  backdrop-filter: blur(10px);
}

.date-range-input-wrapper {
  position: relative;
}

.date-range-input-wrapper input[type='text'] {
  width: 100%;
  font-size: 18px;
}

.date-range-input-wrapper input[type='hidden'] {
  display: none;
}

.date-range-input-wrapper input::placeholder {
  color: var(--dark-color);
  opacity: 1;
}

.hero-search-field {
  flex: 1; /* Każde pole zajmuje równą przestrzeń */
  min-width: 160px; /* Minimalna szerokość przed złamaniem */
  display: flex;
  flex-direction: column;
}

.hero-search-field label {
  display: block;
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 12px;
  margin-left: 24px;
  color: var(--dark-color);
  text-align: left;
  letter-spacing: 0.3px;
}

/* Wspólne style dla pól select i input */
.hero-search-form select,
.hero-search-form input[type='text'],
.hero-search-form input[type='date'] {
  width: 100%;
  padding: 12px 45px 12px 24px; /* Miejsce na ikonę po prawej */
  font-size: 18px;
  border: 2px solid var(--dark-color);
  border-radius: 50px;
  background-color: transparent;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-repeat: no-repeat;
  background-position: right 18px center;
  background-size: 16px 16px;
  height: 56px;
  line-height: 1.6;
  transition: all 0.3s ease;
  color: var(--dark-color);
}

.hero-search-form select:hover,
.hero-search-form input[type='text']:hover,
.hero-search-form input[type='date']:hover {
  border-color: var(--primary-color);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.hero-search-form select:focus,
.hero-search-form input[type='text']:focus,
.hero-search-form input[type='date']:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(var(--primary-color-rgb, 0, 0, 0), 0.1);
}
.hero-search-form input[type='date'] {
  padding-right: 24px;
}

/* Ikony dla pól */
.hero-search-field--location select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 10c0 7-9 13-9 13s-9-6-9-13a9 9 0 0 1 18 0z'%3E%3C/path%3E%3Ccircle cx='12' cy='10' r='3'%3E%3C/circle%3E%3C/svg%3E");
}
.hero-search-field--date .date-range-input-wrapper input[type='text'] {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='18' rx='2' ry='2'%3E%3C/rect%3E%3Cline x1='16' y1='2' x2='16' y2='6'%3E%3C/line%3E%3Cline x1='8' y1='2' x2='8' y2='6'%3E%3C/line%3E%3Cline x1='3' y1='10' x2='21' y2='10'%3E%3C/line%3E%3C/svg%3E");
}
.hero-search-field--group select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='3' width='7' height='7'%3E%3C/rect%3E%3Crect x='14' y='3' width='7' height='7'%3E%3C/rect%3E%3Crect x='14' y='14' width='7' height='7'%3E%3C/rect%3E%3Crect x='3' y='14' width='7' height='7'%3E%3C/svg%3E");
}
.hero-search-field--type select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='18' rx='2' ry='2'%3E%3C/rect%3E%3Cline x1='16' y1='2' x2='16' y2='6'%3E%3C/line%3E%3Cline x1='8' y1='2' x2='8' y2='6'%3E%3C/line%3E%3Cline x1='3' y1='10' x2='21' y2='10'%3E%3C/line%3E%3Ccircle cx='8' cy='14' r='1'%3E%3C/circle%3E%3Ccircle cx='12' cy='14' r='1'%3E%3C/circle%3E%3Ccircle cx='16' cy='14' r='1'%3E%3C/circle%3E%3Ccircle cx='8' cy='18' r='1'%3E%3C/circle%3E%3Ccircle cx='12' cy='18' r='1'%3E%3C/circle%3E%3Ccircle cx='16' cy='18' r='1'%3E%3C/circle%3E%3C/svg%3E");
}

.hero-search-field.hero-search-field--date {
  min-width: 250px;
}

/* Fraza tekstowa (YB-031): osobny pełny wiersz nad polami wyboru. */
.hero-search-field.hero-search-field--query {
  flex-basis: 100%;
}
.hero-search-field--query input[type='text'] {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='7'%3E%3C/circle%3E%3Cline x1='21' y1='21' x2='16.65' y2='16.65'%3E%3C/line%3E%3C/svg%3E");
}
.hero-search-field--query input::placeholder {
  color: var(--dark-gray-color);
  opacity: 1;
}
.hero-search-field.hero-search-field--group {
  min-width: 230px;
}

.hero-search-form button.btn {
  padding-left: 45px;
  padding-right: 45px;
  height: 56px;
  font-size: 18px;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.hero-search-form button.btn:hover {
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.hero-search-form button.btn:active {
  transform: translateY(0);
}

/* Multi-select component styles */
.hero-multi-select-wrapper {
  position: relative;
  width: 100%;
}

.hero-multi-select-display {
  width: 100%;
  padding: 12px 45px 12px 24px;
  font-size: 17px;
  border: 2px solid var(--dark-color);
  border-radius: 50px;
  background-color: transparent;
  background-repeat: no-repeat;
  background-position: right 18px center;
  background-size: 16px 16px;
  min-height: 56px;
  line-height: 1.6;
  transition: all 0.3s ease;
  color: var(--dark-color);
  cursor: pointer;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  overflow-x: hidden;
}

.hero-multi-select-display:hover {
  border-color: var(--primary-color);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.hero-multi-select-display.active {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(var(--primary-color-rgb, 0, 0, 0), 0.1);
}

.hero-multi-select-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  flex-wrap: nowrap;
  overflow-x: hidden;
}

.hero-multi-select-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background-color: var(--primary-color);
  color: white;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 500;
}

.hero-multi-select-chip-remove {
  background: none;
  border: none;
  color: white;
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
  padding: 0;
  margin-left: 4px;
  width: 16px;
  height: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.2s;
}

.hero-multi-select-chip-remove:hover {
  opacity: 0.7;
}

.hero-multi-select-placeholder {
  color: var(--dark-color);
  opacity: 0.6;
}

.hero-multi-select-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: white;
  border-radius: 16px 0 0 16px;
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.12);
  z-index: 1000;
  max-height: 300px;
  overflow-y: auto;
  padding: 12px;
}

.hero-multi-select-option {
  display: flex !important;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.2s;
  margin-bottom: 0 !important;
  margin-left: 0 !important;
}

.hero-multi-select-option:hover {
  background-color: rgba(var(--primary-color-rgb, 0, 0, 0), 0.05);
}

.hero-multi-select-option input[type='checkbox'] {
  width: 18px;
  height: 18px;
  cursor: pointer;
  accent-color: var(--primary-color);
}

.hero-multi-select-option span {
  font-size: 16px;
  color: var(--dark-color);
  flex: 1;
}

/* Icons for multi-select fields */
.hero-search-field--location .hero-multi-select-display {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 10c0 7-9 13-9 13s-9-6-9-13a9 9 0 0 1 18 0z'%3E%3C/path%3E%3Ccircle cx='12' cy='10' r='3'%3E%3C/circle%3E%3C/svg%3E");
}

.hero-search-field--group .hero-multi-select-display {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='3' width='7' height='7'%3E%3C/rect%3E%3Crect x='14' y='3' width='7' height='7'%3E%3C/rect%3E%3Crect x='14' y='14' width='7' height='7'%3E%3C/rect%3E%3Crect x='3' y='14' width='7' height='7'%3E%3C/svg%3E");
}

/* Responsive styles for multi-select */
@media (max-width: 991px) {
  .hero-multi-select-display {
    font-size: 16px;
    min-height: 52px;
    padding: 10px 40px 10px 20px;
  }

  .hero-multi-select-chip {
    font-size: 13px;
    padding: 3px 10px;
  }

  .hero-multi-select-dropdown {
    max-height: 250px;
    padding: 10px;
  }

  .hero-multi-select-option {
    padding: 10px;
  }

  .hero-multi-select-option span {
    font-size: 15px;
  }
}

/* --- 27. Single Event Page --- */
.breadcrumbs {
  margin-bottom: 25px;
  font-size: 14px;
  color: #555;
}
.breadcrumbs a:hover {
  color: var(--primary-color);
  text-decoration: underline;
}

.event-featured-image {
  width: 100%;
  margin-bottom: 20px;
}

.event-featured-image img {
  width: 100%;
  height: auto;
  border-radius: 8px;
}

.event-description {
  margin-top: 25px;
}

.event-description h2 {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 15px;
}

.event-description--with-line {
  padding-top: 20px;
  margin-top: 0px;
}

.event-description p {
  line-height: 1.7;
}

/* Sidebar Box */
.event-detail-row {
  --event-layout-gap: 20px;
  row-gap: var(--event-layout-gap);
}

/* Sticky trzyma cały sidebar (boks zapisów + karta organizatora), a nie sam boks -
   inaczej przyklejony boks zostawałby w miejscu, a karta pod nim odjeżdżała. */
.event-sidebar-sticky {
  position: sticky;
  top: var(--yb-sticky-top);
}

.event-sidebar-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 20px;
}

.event-title {
  font-size: 24px;
  line-height: 1.3;
}

@keyframes heart-pop {
  0% {
    transform: scale(1);
  }
  40% {
    transform: scale(1.35);
  }
  70% {
    transform: scale(0.92);
  }
  100% {
    transform: scale(1);
  }
}

.event-like-btn.is-animating svg,
.favorite-btn.is-animating svg {
  animation: heart-pop 0.35s ease forwards;
}

/* Single H1: page title block (visible on mobile + desktop) */
.event-page-title {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 15px;
  margin: 0;
}

.event-page-title__heading {
  margin: 0;
  flex: 1;
  min-width: 0;
  font-size: 30px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--dark-color);
}

/* Sidebar: title as <p>, same visual as former h1 */
.event-sidebar-box .event-title {
  margin: 0;
  font-weight: 700;
}

@media (max-width: 991px) {
  .nav-links .prev.page-numbers,
  .nav-links .next.page-numbers {
    width: 100%;
    text-align: center;
    margin: 0;
  }
  .nav-links {
    flex-wrap: wrap;
  }
}

/* --- 28. Similar Events Section --- */
.similar-events__title {
  font-size: 36px;
  margin-bottom: 40px;
}

/* Responsywność formularza */
@media (max-width: 991px) {
  .hero-search-form {
    flex-direction: column;
    align-items: stretch;
    padding: 25px 20px;
    gap: 20px;
  }

  .hero-search-field {
    min-width: 100%;
  }

  .hero-search-field label {
    font-size: 16px;
    margin-bottom: 10px;
    margin-left: 20px;
  }

  .hero-search-form select,
  .hero-search-form input[type='text'],
  .hero-search-form input[type='date'] {
    font-size: 16px;
    height: 52px;
    padding: 10px 40px 10px 20px;
  }

  .hero-search-form button.btn {
    width: 100%;
    height: 52px;
    font-size: 17px;
    margin-top: 8px;
  }

  .date-range-input-wrapper {
    flex-direction: column;
    gap: 12px;
  }
}

/* Media Queries dla responsywności */
@media (max-width: 767px) {
  .team-member,
  .team-member--reverse {
    text-align: center;
  }

  .team-member__photo-wrapper {
    order: -1; /* Na mobile zdjęcie zawsze na górze */
    margin-bottom: 30px;
    justify-content: center !important;
  }

  .team-member--reverse .team-member__content-wrapper {
    order: 2;
  }
}

/* Media Queries */
@media (max-width: 767px) {
  .form-row p {
    flex-direction: column;
    gap: 0;
  }
}

/* Media Queries */
@media (max-width: 767px) {
  .contact-section__image-wrapper {
    margin-bottom: 40px;
  }
  .contact-section__form-wrapper {
    padding-left: 0;
    text-align: center;
  }
}

/* Media Queries dla responsywności */
@media (max-width: 767px) {
  .page-hero {
    padding: 40px 0;
    text-align: center;
  }
  .page-hero__image-content {
    margin-top: 40px;
  }
  .page-hero__title {
    font-size: 42px;
  }
  .page-hero__text-content {
    padding-right: 0;
  }
}

/* --- Media Queries --- */
/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) {
  .col-md-12 {
    flex: 0 0 100%;
    max-width: 100%;
  }
  .col-md-11 {
    flex: 0 0 91.666667%;
    max-width: 91.666667%;
  }
  .col-md-10 {
    flex: 0 0 83.333333%;
    max-width: 83.333333%;
  }
  .col-md-9 {
    flex: 0 0 75%;
    max-width: 75%;
  }
  .col-md-8 {
    flex: 0 0 66.666667%;
    max-width: 66.666667%;
  }
  .col-md-7 {
    flex: 0 0 58.333333%;
    max-width: 58.333333%;
  }
  .col-md-6 {
    flex: 0 0 50%;
    max-width: 50%;
  }
  .col-md-5 {
    flex: 0 0 41.666667%;
    max-width: 41.666667%;
  }
  .col-md-4 {
    flex: 0 0 33.333333%;
    max-width: 33.333333%;
  }
  .col-md-3 {
    flex: 0 0 25%;
    max-width: 25%;
  }
  .col-md-2 {
    flex: 0 0 16.666667%;
    max-width: 16.666667%;
  }
  .col-md-1 {
    flex: 0 0 8.333333%;
    max-width: 8.333333%;
  }
}

@media (max-width: 768px) {
  h1 {
    font-size: 34px;
  }
  h2 {
    font-size: 25px;
  }
  h3 {
    font-size: 19px;
  }
  .featured-events__grid > [class*='col-'] {
    margin-bottom: 30px;
  }
  .section-padding {
    padding-top: 40px;
    padding-bottom: 40px;
  }
  .featured-events__button-wrapper {
    margin-top: 10px;
  }
  .hero {
    padding: 80px 0;
    min-height: 400px;
  }
  .hero__title {
    font-size: 36px;
  }
  .search-form {
    flex-direction: column;
  }
  .blog-sidebar-search .search-form {
    flex-direction: row;
  }
  .search-form__input:first-child {
    border-right: none;
    border-bottom: 1px solid var(--border-color);
  }
  .btn,
  .search-form__submit {
    min-width: unset;
  }
  .cta-banner {
    min-height: 250px;
    padding: 40px 0;
    text-align: center;
  }

  .cta-banner__text {
    font-size: 38px;
    margin: 0 auto;
  }

  .showcase-card {
    height: 350px;
  }

  .newsletter-section {
    min-height: auto;
    text-align: center;
  }

  .newsletter-box {
    padding: 30px;
  }

  .newsletter-box__title {
    font-size: 26px;
  }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) {
  .col-lg-12 {
    flex: 0 0 100%;
    max-width: 100%;
  }
  .col-lg-11 {
    flex: 0 0 91.666667%;
    max-width: 91.666667%;
  }
  .col-lg-10 {
    flex: 0 0 83.333333%;
    max-width: 83.333333%;
  }
  .col-lg-9 {
    flex: 0 0 75%;
    max-width: 75%;
  }
  .col-lg-8 {
    flex: 0 0 66.666667%;
    max-width: 66.666667%;
  }
  .col-lg-7 {
    flex: 0 0 58.333333%;
    max-width: 58.333333%;
  }
  .col-lg-6 {
    flex: 0 0 50%;
    max-width: 50%;
  }
  .col-lg-5 {
    flex: 0 0 41.666667%;
    max-width: 41.666667%;
  }
  .col-lg-4 {
    flex: 0 0 33.333333%;
    max-width: 33.333333%;
  }
  .col-lg-3 {
    flex: 0 0 25%;
    max-width: 25%;
  }
  .col-lg-2 {
    flex: 0 0 16.666667%;
    max-width: 16.666667%;
  }
  .col-lg-1 {
    flex: 0 0 8.333333%;
    max-width: 8.333333%;
  }
  .d-lg-none {
    display: none;
  }
  .d-lg-block {
    display: block;
  }
}

/* --- Favorites Menu Link Icon --- */
.menu-link--favorites {
  position: relative;
  font-size: 0 !important;
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: 20px;
}

.menu-link--favorites::before {
  content: '';
  display: block;
  width: 24px;
  height: 24px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20.84 4.61a5.5 5.5 0 0 0-7.78 0L12 5.67l-1.06-1.06a5.5 5.5 0 0 0-7.78 7.78l1.06 1.06L12 21.23l7.78-7.78 1.06-1.06a5.5 5.5 0 0 0 0-7.78z'%3E%3C/path%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

.menu-link--favorites:hover::before,
.menu-link--favorites:focus::before {
  opacity: 0.8;
}

/* --- Favorites Counter (New System) --- */
.menu-link--favorites {
  position: relative;
  display: inline-flex;
  align-items: center;
  text-decoration: none; /* Reset dla linków */
}

.favorites-counter {
  position: absolute;
  top: -5px; /* Wyżej dla custom icon */
  right: -5px; /* Bardziej w prawo */
  background-color: var(--primary-color);
  color: #fff;
  font-size: 11px;
  font-weight: bold;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: none; /* Default hidden */
  align-items: center;
  justify-content: center;
  line-height: 1;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  z-index: 10;
}

/* Show instantly if cookie detected */
html.has-favorites .favorites-counter {
  display: inline-flex;
}

/* Specyficzne dostosowanie dla menu link */

.menu-link--favorites .favorites-counter {
  top: 5px;
  right: 5px;
  transform: translate(50%, -50%);
}

/* --- Event Redirect Page --- */
.redirect-page {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 20px;
  text-align: center;
  background-color: var(--background-color);
}

.redirect-page__logo {
  max-width: 200px;
  height: auto;
  margin-bottom: 30px;
}

.redirect-page__title {
  font-family: var(--font-primary);
  font-size: 32px;
  font-weight: 700;
  color: var(--dark-color);
  margin-bottom: 20px;
  line-height: 1.3;
}

.redirect-page__text {
  font-family: var(--font-secondary);
  font-size: 18px;
  color: var(--text-color);
  line-height: 1.6;
  max-width: 600px;
  margin: 0 auto;
}

@media (max-width: 768px) {
  .redirect-page__title {
    font-size: 24px;
  }

  .redirect-page__text {
    font-size: 16px;
  }

  .redirect-page__logo {
    max-width: 150px;
  }
}

/* --- 31. Improved UX Filters (Sticky + Drawer) --- */

/* Sticky Sidebar on Desktop */
@media (min-width: 992px) {
  .filters-panel {
    position: sticky;
    top: var(--yb-sticky-top);
    max-height: calc(100vh - var(--yb-sticky-top));
    overflow-y: auto;
    /* Custom Scrollbar for better look */
    scrollbar-width: thin;
    scrollbar-color: #ccc #f1f1f1;
  }

  .filters-panel::-webkit-scrollbar {
    width: 6px;
  }
  .filters-panel::-webkit-scrollbar-track {
    background: #f1f1f1;
  }
  .filters-panel::-webkit-scrollbar-thumb {
    background-color: var(--primary-color);
    border-radius: 6px;
  }
}

/* Mobile Off-Canvas Drawer Styles */
@media (max-width: 991px) {
  .filters-panel {
    position: fixed;
    top: 0;
    left: -100%; /* Hidden by default */
    width: 100%;
    max-width: 300px;
    height: 100vh;
    z-index: 9999;
    background-color: #fff;
    transition: left 0.3s ease-in-out;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
    padding: 0; /* Reset padding, will be handled by inner containers */
    display: flex;
    flex-direction: column;
  }

  .filters-panel.open {
    left: 0;
  }

  /* Overlay */
  .filters-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
  }

  .filters-overlay.open {
    opacity: 1;
    visibility: visible;
  }
}

/* Mobile Header in Sidebar */
.filters-mobile-header {
  display: none;
  padding: 20px;
  border-bottom: 1px solid var(--border-color);
  justify-content: space-between;
  align-items: center;
  background-color: #fff;
}

.filters-mobile-header h3 {
  margin: 0;
  font-size: 20px;
}

.close-filters-btn {
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: var(--dark-color);
}

@media (max-width: 991px) {
  .filters-mobile-header {
    display: flex;
  }

  .filters-scroll-container {
    padding: 20px;
    overflow-y: auto;
    flex: 1;
  }
}

/* Mobile Toggle Button */
.mobile-filter-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.mobile-filter-toggle svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

/* Accordion Styles for Filters */
.filter-group-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  padding: 10px 0;
}
.filter-group--favorites {
  padding-top: 10px;
}

.filter-group-header h4 {
  margin-bottom: 0;
  font-size: 18px;
}

.filter-toggle-icon {
  width: 12px;
  height: 12px;
  right: 10px;
  position: relative;
  border-left: 2px solid var(--dark-color);
  border-bottom: 2px solid var(--dark-color);
  transform: rotate(135deg);
  transition: transform 0.3s ease;
}

.filter-group.collapsed .filter-toggle-icon {
  transform: rotate(-45deg);
  border-color: var(--primary-color);
}

.filter-options {
  transition:
    max-height 0.3s ease-in-out,
    opacity 0.3s ease-in-out,
    visibility 0.3s;
  max-height: unset;
  opacity: 1;
  padding-top: 10px;
  visibility: visible;
  overflow: visible;
}

.filter-group.collapsed .filter-options,
.filter-group.collapsed #price-slider,
.filter-group.collapsed #price-slider-values,
.filter-group.collapsed #duration-slider,
.filter-group.collapsed #duration-slider-values,
.filter-group.collapsed .date-range-input-wrapper {
  display: none !important;
}

/* Term event count */
.term-count {
  color: var(--text-muted, #aaa);
  font-size: 0.82em;
  font-weight: 400;
}

/* Hidden extra items beyond the show-more limit */
.filter-item--hidden {
  display: none;
}

/* Show More button */
.filter-show-more {
  background: none;
  border: none;
  color: var(--dark-gray-color);
  font-size: 0.85rem;
  cursor: pointer;
  padding: 6px 2px 6px;
  display: block;
  font-weight: 400;
}

/* Wyszukiwanie tekstowe w sidebarze (YB-031) */
.filter-search {
  position: relative;
  margin-bottom: 20px;
}

.filter-search__icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--dark-gray-color);
  pointer-events: none;
}

/* Dwie klasy: wygrywa z regułami input[type="search"] motywu nadrzędnego. */
.filter-search .filter-search__input {
  width: 100%;
  padding: 12px 15px 12px 42px;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  font-size: 16px; /* 16px: iOS nie przybliża strony przy fokusie */
  font-family: inherit;
  background-color: #fff;
}

.filter-search .filter-search__input:focus {
  outline: none;
  border-color: var(--dark-color);
}

.no-results .yb-clear-search {
  display: inline-block;
  margin-top: 10px;
}

/* --- AirDatepicker z-index fix for mobile filters --- */
.air-datepicker,
.air-datepicker-global-container {
  z-index: 10000 !important; /* Must be > 9999 (sidebar z-index) */
}

/* Copy to Clipboard Styles */
.js-copy-text {
  cursor: pointer;
  transition:
    opacity 0.2s ease,
    color 0.2s ease;
  user-select: none;
}

.js-copy-text:hover {
  opacity: 0.8;
}

.js-copy-text:active {
  opacity: 0.6;
}

/* --- Blog Card Styles --- */
.blog-card {
  display: flex;
  background-color: var(--white-color, #fff);
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(42, 42, 42, 0.08);
  overflow: hidden;
  position: relative;
  margin-bottom: 30px;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.blog-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 24px rgba(42, 42, 42, 0.12);
}

.blog-card__thumbnail-wrapper {
  flex: 0 0 250px;
  position: relative;
}

.blog-card__thumbnail {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.blog-card__content {
  flex: 1;
  padding: 30px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.blog-card__title {
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 12px;
  line-height: 1.3;
}

.blog-card__title a {
  color: var(--dark-color, #222);
  text-decoration: none;
  transition: color 0.3s ease;
}

.blog-card__title a::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
}

.blog-card__title a:hover {
  color: var(--primary-color, #007bff);
}

.blog-card__meta {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 14px;
  color: var(--dark-gray-color, #777);
  margin-bottom: 16px;
}

.blog-card__date {
  font-weight: 500;
}

.blog-card__reading-time {
  display: flex;
  align-items: center;
  gap: 6px;
}

.blog-card__reading-time-icon {
  width: 16px;
  height: 16px;
  color: var(--primary-color, #007bff);
}

.blog-card__excerpt {
  color: var(--text-color, #555);
  font-size: 16px;
  line-height: 1.6;
}

/* Responsywność */
@media (max-width: 767px) {
  .blog-card {
    flex-direction: column;
  }

  .blog-card__thumbnail-wrapper {
    flex: 0 0 200px;
    width: 100%;
  }

  .blog-card__content {
    padding: 20px;
  }

  .blog-card__thumbnail {
    max-height: 200px;
  }
}

/* --- Blog Sidebar Styles --- */

.blog-sidebar .filter-group {
  margin-bottom: 30px;
}

.blog-sidebar .filter-label {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 0;
  color: var(--dark-color, #222);
}

/* WordPress Search Form Styling */
.blog-sidebar-search .search-form {
  display: flex;
  gap: 10px;
  padding: 0 0 20px 0;
}

.blog-sidebar-search .search-field {
  flex-grow: 1;
  border: 1px solid var(--border-color, #e0e0e0);
  border-radius: 4px;
  padding: 10px 15px;
  font-size: 14px;
  outline: none;
  transition: border-color 0.3s ease;
  min-width: 0;
  border-radius: 50px;
}

.blog-sidebar-search .search-field:focus {
  border-color: var(--primary-color, #007bff);
}

.blog-sidebar-search .search-submit {
  background-color: var(--primary-color, #007bff);
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 40px; /* Fixed width for square icon */
  height: 40px; /* Fixed height for square icon */
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 0.3s ease;
  flex-shrink: 0;
}

.blog-sidebar-search .search-submit svg {
  width: 20px;
  height: 20px;
}

.blog-sidebar-search .search-submit:hover {
  background-color: var(--dark-color, #222);
}

/* Category Links Styling */
.checkbox-label-link {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  color: var(--text-color, #555);
  text-decoration: none;
  transition: color 0.3s ease;
  font-size: 15px;
}

.checkbox-label-link:hover,
.checkbox-label-link.active {
  color: var(--primary-color, #007bff);
}

.checkbox-label-link .count {
  font-size: 13px;
  color: var(--dark-gray-color, #999);
  background-color: #f5f5f5;
  padding: 2px 8px;
  border-radius: 12px;
}

/* Latest Posts Styling */
.recent-posts-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.recent-post-item {
  margin-bottom: 5px;
}

.recent-post-item:last-child {
  margin-bottom: 0;
  border-bottom: none;
  padding-bottom: 0;
}

.recent-post-item a {
  display: block;
  font-size: 15px;
  font-weight: 500;
  color: var(--dark-color, #222);
  text-decoration: none;
  line-height: 1.4;
  margin-bottom: 5px;
  transition: color 0.3s ease;
}

.recent-post-item a:hover {
  color: var(--primary-color, #007bff);
}

.recent-post-item .post-date {
  font-size: 13px;
  color: var(--dark-gray-color, #888);
  display: block;
}

/* --- Search Page Styles --- */
.search-results-info {
  margin-bottom: 30px;
  padding: 20px;
  background-color: var(--white-color, #fff);
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(42, 42, 42, 0.05);
}

.search-results-info .results-count {
  font-size: 18px;
  font-weight: 600;
  color: var(--dark-color, #222);
  margin-bottom: 15px;
}

.search-message {
  font-size: 16px;
  color: var(--text-color, #3f3f3f);
  line-height: 1.6;
}

.search-message p:last-child {
  margin-bottom: 0;
}

/* ============================================================================
   SINGLE BLOG STYLES
   ============================================================================ */

/* --- Single Blog Hero --- */
.single-blog-page {
  padding-top: 60px;
}
.single-blog-hero {
  margin: 0 calc(var(--grid-gutter-width) / 2);
  padding: 0;
}

.single-blog-hero .container {
  background-color: var(--white-color, #fff);
  border-radius: 12px;
  padding: 40px;
}

@media (max-width: 991px) {
  .single-blog-hero .container {
    padding: 30px;
  }
}

@media (max-width: 767px) {
  .single-blog-hero .container {
    padding: 25px 20px;
  }
}

.single-blog-hero__title {
  font-size: clamp(28px, 5vw, 42px);
  font-weight: 700;
  color: var(--dark-color, #222);
  margin-bottom: 30px;
  line-height: 1.2;
}

.single-blog-hero__thumbnail-wrapper {
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 20px;
}

.single-blog-hero__thumbnail {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 16/9;
  object-fit: cover;
}

/* --- Single Blog Meta --- */
.single-blog-hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: center;
  font-size: 14px;
  color: var(--text-color, #3f3f3f);
}

.single-blog-hero__meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.single-blog-hero__meta svg {
  color: var(--dark-gray-color, #888);
}

.single-blog-hero__author-img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
}

/* --- Single Blog Intro --- */
.single-blog-hero__intro {
  font-size: 18px;
  line-height: 1.7;
  color: var(--text-color, #3f3f3f);
}

.single-blog-hero__intro p:last-child {
  margin-bottom: 0;
}

@media (max-width: 991px) {
  .single-blog-hero__intro {
    margin-top: 30px;
  }
}

/* --- Single Blog Content Area --- */
.single-blog-content-area {
  padding-top: 40px;
}

/* --- Blog Summary Section --- */
.blog-summary {
  background-color: var(--white-color, #fff);
  border-radius: 12px;
  padding: 30px;
  margin-bottom: 30px;
  box-shadow: 0 4px 16px rgba(42, 42, 42, 0.05);
  border-left: 4px solid var(--primary-color, #007bff);
}

.blog-summary__title {
  font-size: 20px;
  font-weight: 600;
  color: var(--dark-color, #222);
  margin-bottom: 20px;
}

.blog-summary__list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.blog-summary__item {
  position: relative;
  padding-left: 24px;
  margin-bottom: 12px;
  font-size: 16px;
  line-height: 1.5;
  color: var(--text-color, #3f3f3f);
}

.blog-summary__item:last-child {
  margin-bottom: 0;
}

.blog-summary__item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 8px;
  height: 8px;
  background-color: var(--primary-color, #007bff);
  border-radius: 50%;
}

/* --- Table of Contents --- */
.blog-toc {
  background-color: var(--white-color, #fff);
  border-radius: 12px;
  padding: 30px;
  margin-bottom: 30px;
  box-shadow: 0 4px 16px rgba(42, 42, 42, 0.05);
}

.blog-toc__title {
  font-size: 18px;
  font-weight: 600;
  color: var(--dark-color, #222);
  margin-bottom: 20px;
}

.blog-toc__list {
  list-style: none;
  padding: 0;
  margin: 0;
  counter-reset: toc-counter;
}

.blog-toc__item {
  counter-increment: toc-counter;
  margin-bottom: 12px;
}

.blog-toc__item:last-child {
  margin-bottom: 0;
}

.blog-toc__link {
  display: flex;
  align-items: flex-start;
  gap: 0px;
  font-size: 15px;
  color: var(--text-color, #3f3f3f);
  text-decoration: none;
  transition: color 0.3s ease;
  line-height: 1.4;
}

.blog-toc__link::before {
  content: counter(toc-counter) '.';
  font-weight: 600;
  color: var(--primary-color, #007bff);
  min-width: 24px;
}

.blog-toc__link:hover,
.blog-toc__link.active,
.blog-toc__link:focus {
  color: var(--primary-color, #007bff);
}

/* --- Blog Content --- */
.blog-content {
  background-color: var(--white-color, #fff);
  border-radius: 12px;
  padding: 40px;
  margin-bottom: 30px;
  box-shadow: 0 4px 16px rgba(42, 42, 42, 0.05);
}

.blog-content h2 {
  font-size: 26px;
  font-weight: 600;
  color: var(--dark-color, #222);
  margin-top: 40px;
  margin-bottom: 20px;
  scroll-margin-top: 100px;
}

.blog-content h2:first-child {
  margin-top: 0;
}

.blog-content h3 {
  font-size: 22px;
  font-weight: 600;
  color: var(--dark-color, #222);
  margin-top: 30px;
  margin-bottom: 15px;
}

.blog-content h4 {
  font-size: 18px;
  font-weight: 600;
  color: var(--dark-color, #222);
  margin-top: 25px;
  margin-bottom: 12px;
}

.blog-content p {
  font-size: 17px;
  line-height: 1.8;
  color: var(--text-color, #3f3f3f);
  margin-bottom: 20px;
}

.blog-content ul,
.blog-content ol {
  margin-bottom: 20px;
  padding-left: 24px;
}

.blog-content li {
  font-size: 17px;
  line-height: 1.7;
  color: var(--text-color, #3f3f3f);
  margin-bottom: 8px;
}

.blog-content img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 20px 0;
}

.blog-content blockquote {
  border-left: 4px solid var(--primary-color, #007bff);
  padding-left: 20px;
  margin: 30px 0;
  font-style: italic;
  color: var(--dark-gray-color, #555);
}

.blog-content a {
  color: var(--primary-color, #007bff);
  text-decoration: underline;
}

.blog-content a:hover {
  text-decoration: none;
}

@media (max-width: 767px) {
  .blog-content {
    padding: 25px;
  }

  .blog-content h2 {
    font-size: 22px;
  }

  .blog-content h3 {
    font-size: 19px;
  }

  .blog-content p,
  .blog-content li {
    font-size: 16px;
  }
}

/* --- Author Section --- */
.blog-author-section {
  background-color: var(--white-color, #fff);
  border-radius: 12px;
  padding: 30px;
  margin-bottom: 30px;
  box-shadow: 0 4px 16px rgba(42, 42, 42, 0.05);
}

.blog-author-section__inner {
  display: flex;
  gap: 25px;
  align-items: flex-start;
}

.blog-author-section__photo {
  flex-shrink: 0;
}

.blog-author-section__img {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
}

.blog-author-section__info {
  flex: 1;
}

.blog-author-section__label {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--dark-gray-color, #888);
  margin-bottom: 5px;
  display: block;
}

.blog-author-section__name {
  font-size: 22px;
  font-weight: 600;
  color: var(--dark-color, #222);
  margin-bottom: 12px;
}

.blog-author-section__bio {
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-color, #3f3f3f);
  margin: 0;
}

@media (max-width: 575px) {
  .blog-author-section__inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .blog-author-section__img {
    width: 80px;
    height: 80px;
  }
}

/* --- Related Posts Section --- */
.related-posts-section {
  margin: 0 calc(var(--grid-gutter-width) / 2) 30px;
  padding: 0;
}

.related-posts-section__title {
  font-size: 28px;
  font-weight: 600;
  color: var(--dark-color, #222);
  margin-bottom: 30px;
}

/* Karty pionowe dla sekcji related posts */
.related-posts-section .blog-card {
  flex-direction: column;
  height: 100%;
  margin-bottom: 0;
}

.related-posts-section .blog-card__thumbnail-wrapper {
  flex: 0 0 auto;
  width: 100%;
  height: 200px;
}

.related-posts-section .blog-card__thumbnail {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.related-posts-section .blog-card__content {
  flex: 1;
  padding: 25px;
  display: flex;
  flex-direction: column;
}

.related-posts-section .blog-card__title {
  font-size: 20px;
  margin-bottom: 12px;
}

.related-posts-section .blog-card__excerpt {
  flex: 1;
}

@media (max-width: 991px) {
  .related-posts-section .container {
    padding: 30px;
  }

  .related-posts-section .col-12.col-md-6.col-lg-3 {
    margin-bottom: 20px;
  }

  .related-posts-section .col-12.col-md-6.col-lg-3:last-child {
    margin-bottom: 0;
  }
}

@media (max-width: 767px) {
  .related-posts-section .container {
    padding: 25px 20px;
  }
}

/* =====================================================================
   Organizatorzy: badge, profil, katalog, karta na single-event, filtry
   ===================================================================== */

/* --- Profil organizatora (single-organizer.php) ---
   YB-027: wygląd z panelu organizatora (YB-024). Białe karty z promieniem 14 px, tokeny
   `--yb-*`, przyciski `.yb-btn`, plakietka `.yb-pill--ver`, zakładki jak `.yb-ftab`. */
.organizer-profile__hero {
  margin-bottom: 24px;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: var(--yb-radius-card);
}

.organizer-profile__cover {
  width: 100%;
  /* Baner 3:1 w kontenerze 1440 px ma ok. 462 px - te same proporcje co zdjęcie w tle
     na Facebooku, więc organizator wgrywa ten sam plik bez przycinania. */
  max-height: 462px;
  overflow: hidden;
}

.organizer-profile__cover-img {
  width: 100%;
  height: 100%;
  max-height: 462px;
  object-fit: cover;
  display: block;
}

.organizer-profile__header {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 24px;
  /* nadpisuje ogólną regułę `header { background: var(--background-color) }` */
  background: transparent;
}

/* Ogólna reguła `header > div` (max-width, margin: 0 auto, boczny padding, tło) jest dla
   nagłówka strony. Tu ją zerujemy, żeby elementy karty stały od lewej krawędzi. */
.organizer-profile__header > div {
  max-width: none;
  margin: 0;
  padding-left: 0;
  padding-right: 0;
  background: transparent;
}

/* Logo nie wchodzi na baner na desktopie - stoi pod zdjęciem, w jednej linii z nazwą. */
.organizer-profile__logo {
  flex: 0 0 auto;
  width: 144px;
  height: 144px;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: var(--yb-radius-card);
}

.organizer-profile__logo-img {
  width: 100%;
  height: 100%;
  /* Kwadrat wypełniony w całości, kadr zawsze od środka - kwadratowe logo to sugestia
     w formularzu, a nie wymóg, więc dowolne proporcje muszą wyglądać przewidywalnie. */
  object-fit: cover;
  object-position: center;
  display: block;
}

.organizer-profile__identity {
  flex: 1 1 auto;
  min-width: 0;
}

/* Nazwa i plakietka płyną jak tekst: plakietka stoi zaraz za ostatnim słowem, a gdy się
   nie mieści, schodzi pod nazwę od lewej. */
.organizer-profile__title {
  margin: 0;
  font-size: clamp(28px, 3vw, 38px);
  line-height: 1.15;
}

.organizer-profile__verified {
  margin-left: 6px;
  font-family: var(--font-secondary);
  vertical-align: middle;
}

/* Kategorie profilu: główna + do 4 dodatkowych, jako chipsy w jednym rzędzie. */
.organizer-profile__categories {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0 0;
}

.organizer-profile__category,
a.organizer-profile__category:focus {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 12px;
  border-radius: 999px;
  background: var(--yb-action-soft);
  color: var(--yb-action-ink);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
  text-decoration: none;
  transition: background-color 0.15s ease;
}

a.organizer-profile__category:hover {
  background: var(--yb-action-soft-press);
  color: var(--yb-action-ink);
}

a.organizer-profile__category:focus-visible {
  outline: 2px solid var(--yb-action);
  outline-offset: 2px;
}

/* Pierwszy chip to główna kategoria - wyróżniamy ją wypełnieniem. */
.organizer-profile__categories .organizer-profile__category:first-child,
.organizer-profile__categories a.organizer-profile__category:first-child:focus {
  background: var(--yb-action);
  color: #fff;
}

.organizer-profile__categories a.organizer-profile__category:first-child:hover {
  background: var(--yb-action-ink);
  color: #fff;
}

/* Akcje karty: „Zobacz wydarzenia (N)” (YB-021) i linki WWW / Facebook / Instagram jako ikony. */
.organizer-profile__actions {
  display: flex;
  flex: 0 0 auto;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
}

.organizer-profile__links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

/* --- Opis i wyróżniki: dwie karty obok siebie, jedna pod drugą na węższych ekranach --- */
.organizer-profile__about {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 24px;
  align-items: start;
  margin-bottom: 24px;
}

.organizer-profile__card {
  padding: 24px;
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: var(--yb-radius-card);
}

.organizer-profile__card-title {
  margin: 0 0 12px;
  font-size: 18px;
  line-height: 1.3;
}

.organizer-profile__bio {
  line-height: 1.7;
}

.organizer-profile__bio > :first-child {
  margin-top: 0;
}

.organizer-profile__bio > :last-child {
  margin-bottom: 0;
}

/* Przycisk zwijanego opisu - widoczny tylko na mobile, gdy opis się nie mieści
   (modules/organizer-profile.js zdejmuje `hidden`). */
.organizer-profile__bio-toggle {
  margin: 8px 0 0 -12px;
}

.organizer-profile__bio-toggle[hidden] {
  display: none;
}

@media (max-width: 767px) {
  /* Opis zwinięty do ok. 5 linii. `is-collapsed` dodaje JS, więc bez JS opis jest cały. */
  .organizer-profile__bio.is-collapsed {
    max-height: calc(1.7em * 5);
    overflow: hidden;
  }

  /* Wygaszenie dołu tylko wtedy, gdy coś jest ukryte - krótki opis zostaje ostry. */
  .organizer-profile__bio.is-collapsed.has-more {
    -webkit-mask-image: linear-gradient(to bottom, #000 55%, transparent);
    mask-image: linear-gradient(to bottom, #000 55%, transparent);
  }
}

.organizer-profile__highlights {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.organizer-profile__highlight {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.45;
}

.organizer-profile__highlight-icon {
  display: inline-flex;
  flex: 0 0 22px;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--yb-action-soft);
  color: var(--yb-action-ink);
}

.organizer-profile__events {
  margin-top: 32px;
  /* Cel przycisku „Zobacz wydarzenia” - nagłówek sekcji nie chowa się pod sticky headerem. */
  scroll-margin-top: 100px;
}

/* Nagłówek sekcji wydarzeń profilu: tytuł + zakładki zakresu */
.organizer-profile__events-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 16px;
  margin-bottom: 20px;
}

.organizer-profile__section-title {
  margin: 0;
  font-size: 28px;
}

/* Zakładki zakresu: wygląd `.yb-ftab` z panelu (wybrana = niebieski obrys i jasne wypełnienie,
   pozostałe to sam tekst). Klasy zostają, bo czyta je event-filters.js. */
.yb-scope-tabs {
  display: inline-flex;
  gap: 6px;
}

.yb-scope-tab,
.yb-scope-tab:focus {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  margin: 0;
  padding: 0 14px;
  background: transparent;
  border: 1.5px solid transparent;
  border-radius: var(--yb-radius-control);
  box-shadow: none;
  color: #4a4a4a;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
  cursor: pointer;
  transition:
    background-color 0.15s ease,
    color 0.15s ease;
}

.yb-scope-tab:hover {
  background: var(--yb-action-soft);
  color: var(--yb-action-ink);
}

.yb-scope-tab:focus-visible {
  outline: 2px solid var(--yb-action);
  outline-offset: 1px;
}

.yb-scope-tab.is-active,
.yb-scope-tab.is-active:focus,
.yb-scope-tab.is-active:hover {
  background: var(--yb-action-soft);
  border-color: var(--yb-action);
  color: var(--yb-action-ink);
}

/* Układ sekcji wydarzeń profilu współdzieli style sidebara/wyników z /events/ */
.organizer-profile__events-layout {
  margin-top: 0;
}

@media (min-width: 992px) {
  .organizer-profile__about--split {
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  }
}

@media (max-width: 900px) {
  /* Akcje schodzą pod logo i nazwę, na całą szerokość karty. */
  .organizer-profile__header {
    flex-wrap: wrap;
    gap: 16px 20px;
    padding: 20px;
  }

  .organizer-profile__logo {
    width: 112px;
    height: 112px;
  }

  .organizer-profile__identity {
    flex-basis: 0;
  }

  .organizer-profile__actions {
    flex: 1 1 100%;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .yb-scope-tab,
  .yb-scope-tab:focus {
    min-height: var(--yb-h-md);
  }

  /* Dwie klasy: `.yb-btn` stoi niżej w pliku i wygrałby z jedną. */
  .organizer-profile .organizer-profile__bio-toggle {
    min-height: var(--yb-h-md);
  }

  /* Chips zostaje 28 px, pole dotyku rośnie do 44 px. */
  a.organizer-profile__category {
    position: relative;
  }

  a.organizer-profile__category::after {
    content: '';
    position: absolute;
    inset: -8px 0;
  }
}

@media (max-width: 600px) {
  .organizer-profile__hero,
  .organizer-profile__about {
    margin-bottom: 16px;
  }

  .organizer-profile__about {
    gap: 16px;
  }

  /* YB-021: pierwszy ekran telefonu = niski cover, avatar, nazwa, kategorie i przycisk
     do wydarzeń. */
  .organizer-profile__cover {
    aspect-ratio: 3 / 1;
    max-height: none;
  }

  .organizer-profile__cover-img {
    max-height: none;
  }

  .organizer-profile__header {
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: stretch;
    gap: 12px;
    padding: 16px;
  }

  /* Logo zostaje kwadratowe także na telefonie (Konrad 2026-10-06), tylko mniejsze. */
  .organizer-profile__logo {
    align-self: flex-start;
    width: 96px;
    height: 96px;
    border: 3px solid #fff;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.08);
  }

  /* Z coverem logo wchodzi na jego dolną krawędź. */
  .organizer-profile__header--avatar .organizer-profile__logo {
    position: relative;
    margin-top: -64px;
  }

  .organizer-profile__title {
    font-size: 26px;
  }

  .organizer-profile__actions {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .organizer-profile__events-cta {
    width: 100%;
  }

  .organizer-profile__card {
    padding: 16px;
  }

  .organizer-profile__section-title {
    font-size: 24px;
  }
}

/* --- Katalog organizatorów (archive-organizer.php) --- */
.archive-organizers-page__title {
  margin-bottom: 8px;
}

.archive-organizers-page__intro {
  margin-bottom: 28px;
  color: var(--dark-gray-color, #666);
}

.organizers-filter,
.organizer-events-filter {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 16px;
  margin-bottom: 32px;
}

.organizers-filter__field,
.organizer-events-filter__field {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.organizers-filter__label,
.organizer-events-filter__label {
  font-size: 0.85rem;
  font-weight: 600;
}

.organizers-filter__reset,
.organizer-events-filter__reset {
  align-self: center;
  color: var(--text-color);
  text-decoration: underline;
}

.organizers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

/* --- Karta organizatora (card-organizer.php, YB-020) ---
   Cover 16:9 + logo jako okrągły avatar na krawędzi, jak na profilu. Bez coveru:
   logo w całości (contain) na tle marki albo inicjał. Cała karta klikalna przez
   ::after linku tytułu; link najbliższego wydarzenia leży nad nim (z-index). */
.organizer-card {
  position: relative;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border-color);
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
  transition:
    box-shadow 0.2s ease,
    transform 0.2s ease;
}

.organizer-card:hover,
.organizer-card:focus-within {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}

.organizer-card__media {
  position: relative;
  aspect-ratio: 16 / 9;
  background-color: var(--secondary-color);
  overflow: hidden;
}

.organizer-card__cover {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.organizer-card__media--logo,
.organizer-card__media--initial {
  display: flex;
  align-items: center;
  justify-content: center;
}

.organizer-card__logo-full {
  width: auto;
  height: auto;
  max-width: 70%;
  max-height: 70%;
  object-fit: contain;
}

.organizer-card__initial,
.organizer-card__avatar-initial {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--primary-color);
  color: #fff;
  font-weight: 700;
  text-transform: uppercase;
}

.organizer-card__initial {
  width: 96px;
  height: 96px;
  font-size: 2.2rem;
}

.organizer-card__content {
  /* Bez position: ::after linku tytułu ma się rozciągać na całą kartę, z coverem. */
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 18px;
}

/* Avatar wchodzi na dolną krawędź coveru (position: nad coverem, który też jest
   pozycjonowany; z-index auto, więc klik dalej łapie link karty). */
.organizer-card__avatar {
  position: relative;
  display: block;
  width: 72px;
  height: 72px;
  margin: -54px 0 10px;
  border: 3px solid #fff;
  border-radius: 50%;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

.organizer-card__avatar-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.organizer-card__avatar-initial {
  width: 100%;
  height: 100%;
  font-size: 1.6rem;
}

/* Dwie klasy: `.archive h2` (28px) ma wyższą specyficzność niż sama klasa. */
.organizer-card .organizer-card__title {
  font-size: 1.15rem;
  line-height: 1.3;
  margin: 0 0 6px;
}

.organizer-card__link {
  color: var(--text-color);
  text-decoration: none;
}

/* Stretched link: cała karta prowadzi do profilu. */
.organizer-card__link::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
}

.organizer-card__link:focus-visible {
  outline: none;
}

.organizer-card:has(.organizer-card__link:focus-visible) {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

/* Ostatnie słowo nazwy + ikona weryfikacji łamią się razem. */
.organizer-card__title-tail {
  white-space: nowrap;
}

.organizer-card__category {
  display: inline-block;
  color: var(--primary-color);
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 10px;
}

.organizer-card__highlights {
  list-style: none;
  margin: 0 0 12px;
  padding: 0;
  font-size: 0.9rem;
}

.organizer-card__highlights li {
  position: relative;
  padding-left: 18px;
  margin-bottom: 4px;
}

.organizer-card__highlights li::before {
  content: '•';
  position: absolute;
  left: 4px;
  color: var(--primary-color);
}

.organizer-card__footer {
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--border-color);
}

.organizer-card__next {
  margin: 0 0 6px;
  font-size: 0.9rem;
  line-height: 1.4;
}

.organizer-card__next-label {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--dark-gray-color);
}

/* Nad stretched linkiem karty - prowadzi do wydarzenia, nie do profilu. */
.organizer-card__next-link {
  position: relative;
  z-index: 2;
  display: block;
  color: var(--text-color);
  text-decoration: none;
}

.organizer-card__next-link:hover .organizer-card__next-title,
.organizer-card__next-link:focus-visible .organizer-card__next-title {
  text-decoration: underline;
}

.organizer-card__next-date {
  font-weight: 600;
  color: var(--primary-color);
  white-space: nowrap;
}

.organizer-card__next-date::after {
  content: ' · ';
  color: var(--dark-gray-color);
}

.organizer-card__count {
  margin: 0;
  font-size: 0.85rem;
  color: var(--dark-gray-color, #666);
}

/* Lupka w filtrach katalogu: ten sam wygląd co w sidebarze wydarzeń. */
.organizers-filter__field--search {
  flex: 1 1 260px;
}

.organizers-filter .filter-search {
  display: block;
  margin-bottom: 0;
}

/* =====================================================================
   Panel organizatora (dashboard + własne formularze)
   ===================================================================== */

.yb-dashboard__title {
  margin-bottom: 12px;
}

.yb-dashboard__layout {
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: 32px;
  align-items: start;
}

/* --- Sidebar / menu --- */
.yb-dashboard__sidebar {
  position: sticky;
  top: var(--yb-sticky-top);
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 20px 16px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
}

.yb-dashboard__brand {
  display: grid;
  gap: 8px;
  justify-items: start;
  padding: 0 8px 16px;
  margin-bottom: 12px;
  border-bottom: 1px solid var(--border-color);
}

.yb-dashboard__brand-name {
  display: block;
  font-weight: 700;
  font-size: 1.05rem;
  line-height: 1.3;
}

.yb-dashboard__nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.yb-dashboard__nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 12px;
  border-radius: 10px;
  color: var(--text-color);
  text-decoration: none;
  font-weight: 500;
  transition:
    background-color 0.15s ease,
    color 0.15s ease;
}

.yb-dashboard__nav-item svg {
  flex: 0 0 auto;
  color: var(--dark-gray-color, #888);
  transition: color 0.15s ease;
}

.yb-dashboard__nav-item:hover {
  background: var(--yb-action-soft);
  color: var(--text-color);
}

.yb-dashboard__nav-item:focus-visible {
  outline: 2px solid var(--yb-action);
  outline-offset: 2px;
}

.yb-dashboard__nav-item.is-active,
.yb-dashboard__nav-item.is-active:hover,
.yb-dashboard__nav-item.is-active:focus {
  background: var(--yb-action);
  color: #fff;
  font-weight: 600;
}

.yb-dashboard__nav-item.is-active svg {
  color: #fff;
}

.yb-dashboard__nav-item--logout {
  margin-top: 8px;
  border-top: 1px solid var(--border-color);
  border-radius: 0 0 10px 10px;
  padding-top: 16px;
}

/* --- Nagłówek widoku panelu (YB-009) ---
   Profil i wydarzenia mają różny kolor ikony i ramki grup formularza, żeby po samym
   wyglądzie było widać, czy edytujesz wizytówkę, czy konkretne wydarzenie. */
.yb-dashboard__intro {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 20px;
}

.yb-dashboard__intro-body {
  flex: 1 1 auto;
  min-width: 0;
}

.yb-dashboard__intro .yb-dashboard__heading {
  margin: 0 0 4px;
  font-size: 30px;
  line-height: 1.2;
}

.yb-dashboard__intro-text {
  margin: 0;
  font-size: 0.92rem;
  color: var(--dark-gray-color, #666);
}

.yb-dashboard__intro-action {
  flex: 0 0 auto;
  align-self: center;
}

/* --- Okno podglądu dla właściciela na profilu / wydarzeniu (YB-007, wygląd z YB-027) ---
   template-parts/owner-bar.php. Pływające okno w rogu ekranu, wzór `.yb-toast`: ciemne tło,
   jasny tekst. Zwijane do przycisku „Podgląd” (modules/owner-bar.js). */
.yb-owner-bar {
  position: fixed;
  left: 24px;
  bottom: 24px;
  z-index: 1000;
  width: 360px;
  max-width: calc(100vw - 24px);
  font-size: 14px;
  line-height: 1.4;
}

.yb-owner-bar__panel {
  padding: 14px 16px 16px;
  border-radius: var(--yb-radius-card);
  background: #1f2440;
  box-shadow: 0 12px 30px rgba(15, 20, 45, 0.3);
  color: #fff;
  animation: yb-toast-in 0.18s ease-out;
}

.yb-owner-bar.is-collapsed .yb-owner-bar__panel {
  display: none;
}

.yb-owner-bar__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
  /* Miejsce na przycisk zwijania w prawym górnym rogu. */
  padding-right: 36px;
  position: relative;
}

.yb-owner-bar__title {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 700;
}

.yb-owner-bar__close,
.yb-owner-bar__close:hover,
.yb-owner-bar__close:focus {
  position: absolute;
  top: -4px;
  right: -6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  margin: 0;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: var(--yb-radius-chip);
  box-shadow: none;
  color: #b9c6ff;
  cursor: pointer;
}

/* Pole dotyku 44 px bez powiększania ikony. */
.yb-owner-bar__close::after {
  content: '';
  position: absolute;
  inset: -6px;
}

.yb-owner-bar__close:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.yb-owner-bar__text {
  margin: 8px 0 0;
  color: #d9ddf0;
}

/* Wiersz dopinany akcją `your_break_owner_bar_actions` (YB-051: termin serii). */
.yb-owner-bar__extra {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0 14px;
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.yb-owner-bar__series {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  font-weight: 700;
}

.yb-owner-bar__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 16px;
  margin-top: 12px;
}

.yb-owner-bar__link,
.yb-owner-bar__link:focus {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 36px;
  border-radius: var(--yb-radius-chip);
  color: #b9c6ff;
  font-weight: 600;
  text-decoration: none;
}

.yb-owner-bar__link:hover {
  color: #fff;
  text-decoration: none;
}

.yb-owner-bar__link:focus-visible,
.yb-owner-bar__close:focus-visible,
.yb-owner-bar__chip:focus-visible,
.yb-owner-bar .yb-btn:focus-visible {
  outline: 2px solid #b9c6ff;
  outline-offset: 2px;
}

.yb-owner-bar__chip,
.yb-owner-bar__chip:hover,
.yb-owner-bar__chip:focus {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: var(--yb-h-md);
  margin: 0;
  padding: 0 16px;
  background: #1f2440;
  border: 0;
  border-radius: 999px;
  box-shadow: 0 8px 22px rgba(15, 20, 45, 0.3);
  color: #fff;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.yb-owner-bar__chip:hover {
  background: #2b3156;
}

.yb-owner-bar__chip[hidden],
.yb-owner-bar__close[hidden] {
  display: none;
}

@media (max-width: 768px) {
  .yb-owner-bar {
    right: 12px;
    bottom: calc(12px + env(safe-area-inset-bottom, 0px));
    left: 12px;
    width: auto;
    max-width: none;
  }

  /* Strona wydarzenia ma na telefonie przyklejony pasek „Zapisz się” - okno stoi nad nim.
     Wysokość paska ustawia modules/owner-bar.js; 104 px to wartość bez JS. */
  .yb-owner-bar--event {
    bottom: calc(var(--yb-owner-offset, 104px) + 12px);
  }

  .yb-owner-bar__link,
  .yb-owner-bar__link:focus,
  .yb-owner-bar__series {
    min-height: var(--yb-h-md);
  }

  .yb-owner-bar .yb-btn--sm {
    --yb-btn-h: var(--yb-h-md);
  }
}

@media (prefers-reduced-motion: reduce) {
  .yb-owner-bar__panel {
    animation: none;
  }
}

@media print {
  .yb-owner-bar {
    display: none;
  }
}

/* --- Content --- */
.yb-dashboard__content {
  min-width: 0;
}

.yb-dashboard__heading {
  margin: 0 0 16px;
}

/* Komunikaty (YB-024): cztery tony, każdy z ikoną. Ikona to maska na ::before, więc treść
   komunikatu (tekst, linki, akapity) zostaje zwykłym blokiem. Sukces jest tonem domyślnym. */
.yb-dashboard__notice {
  --yb-notice-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M8 12.5l2.8 2.8L16 9.5'/%3E%3C/svg%3E");
  position: relative;
  margin: 0 0 20px;
  padding: 12px 14px 12px 44px;
  border: 1px solid #bfe3cc;
  border-radius: var(--yb-radius-card);
  background: #e7f6ec;
  color: #1c6b3a;
  font-size: 0.92rem;
  line-height: 1.45;
}

.yb-dashboard__notice::before {
  content: '';
  position: absolute;
  top: 12px;
  left: 14px;
  width: 20px;
  height: 20px;
  background: currentColor;
  -webkit-mask: var(--yb-notice-icon) center / contain no-repeat;
  mask: var(--yb-notice-icon) center / contain no-repeat;
}

.yb-dashboard__notice > :first-child {
  margin-top: 0;
}

.yb-dashboard__notice > :last-child {
  margin-bottom: 0;
}

/* Przycisk w komunikacie (np. „Odnów”) zostaje przyciskiem. */
.yb-dashboard__notice a:not(.yb-btn) {
  color: inherit;
  font-weight: 600;
  text-decoration: underline;
}

.yb-dashboard__notice--error {
  --yb-notice-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 7.5v5.5M12 16.5v.1'/%3E%3C/svg%3E");
  border-color: #f3c3c3;
  background: #fdeaea;
  color: #a12525;
}

.yb-dashboard__notice--warning {
  --yb-notice-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3.5L2.5 20h19L12 3.5Z'/%3E%3Cpath d='M12 10v4.5M12 17.2v.1'/%3E%3C/svg%3E");
  border-color: #e8c76a;
  background: #fffaf0;
  color: #6b4a06;
}

.yb-dashboard__notice--info {
  --yb-notice-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 11v5.5M12 7.5v.1'/%3E%3C/svg%3E");
  border-color: #d5dcf7;
  background: var(--yb-action-soft);
  color: #2f3f86;
}

/* Pusty stan: neutralny, bez koloru marki. */
.yb-dashboard__empty {
  padding: 32px 24px;
  text-align: center;
  color: var(--dark-gray-color, #666);
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: var(--yb-radius-card);
}

/* Sekcja „Powtarzanie” w formularzu nowego wydarzenia (YB-051, wygląd z YB-024). */
.yb-repeat {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--border-color);
}

/* Przełącznik segmentowy: pola radio pod etykietami. */
.yb-seg {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.yb-seg__item {
  position: relative;
  display: inline-flex;
  cursor: pointer;
}

.yb-seg__item input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.yb-seg__item span {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 14px;
  background: #fff;
  border: 1.5px solid var(--border-color);
  border-radius: var(--yb-radius-control);
  font-size: 14px;
  font-weight: 500;
  transition:
    background-color 0.15s ease,
    border-color 0.15s ease;
}

.yb-seg__item:hover span {
  border-color: var(--yb-action-line);
}

.yb-seg__item input:checked + span {
  background: var(--yb-action-soft);
  border-color: var(--yb-action);
  color: var(--yb-action-ink);
  font-weight: 600;
}

.yb-seg__item input:focus-visible + span {
  outline: 2px solid var(--yb-action);
  outline-offset: 2px;
}

.yb-repeat__panel {
  display: grid;
  gap: 14px;
  margin-top: 14px;
  padding: 14px;
  background: #f8f9ff;
  border: 1px solid #d5dcf7;
  border-radius: 12px;
}

.yb-repeat__panel[hidden] {
  display: none;
}

.yb-repeat__panel > p {
  margin: 0;
}

.yb-repeat__summary {
  color: #2f3f86;
  font-size: 14px;
  font-weight: 500;
}

.yb-repeat__count {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
}

.yb-repeat__count[hidden] {
  display: none;
}

.yb-repeat__count .yb-form__label {
  margin: 0;
}

.yb-repeat__max {
  flex: 1 1 150px;
  color: #555;
  font-size: 13px;
}

/* Stepper: wąski, szeroki tylko na − i +. */
.yb-stepper {
  display: inline-flex;
  align-items: center;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: var(--yb-radius-control);
}

.yb-stepper__btn,
.yb-stepper__btn:focus {
  width: 44px;
  height: 44px;
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
  color: var(--yb-action-ink);
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
}

.yb-stepper__btn:hover,
.yb-stepper__btn:focus-visible {
  background: var(--yb-action-soft);
  color: var(--yb-action-ink);
}

.yb-stepper__btn:focus-visible {
  outline: 2px solid var(--yb-action);
  outline-offset: -2px;
}

.yb-stepper__value {
  min-width: 2.2em;
  font-weight: 700;
  text-align: center;
}

.yb-repeat__heading {
  color: #2b2b2b;
  font-size: 14px;
  font-weight: 600;
}

.yb-repeat__list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

/* Wiersz terminu: dzień tygodnia, data, godzina, usuń. */
.yb-repeat__item {
  display: grid;
  grid-template-columns: 52px minmax(0, 220px) 110px 44px;
  align-items: center;
  gap: 4px 8px;
}

.yb-repeat__weekday {
  color: #555;
  font-size: 13px;
  font-weight: 600;
}

.yb-repeat__item .yb-form__input {
  width: 100%;
  min-width: 0;
  min-height: 44px;
  margin: 0;
  background: #fff;
}

.yb-repeat__item .yb-form__input[hidden] {
  display: none;
}

/* Pierwszy termin pochodzi z pól „Termin” i w liście jest zablokowany. */
.yb-repeat__item.is-first {
  grid-template-columns: 52px minmax(0, 1fr);
  min-height: 44px;
}

.yb-repeat__date {
  color: #2b2b2b;
  font-size: 14.5px;
}

.yb-repeat__note {
  grid-column: 2;
  color: #7a7a7a;
  font-size: 12.5px;
}

.yb-repeat__remove,
.yb-repeat__remove:focus {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: var(--yb-radius-control);
  box-shadow: none;
  color: var(--dark-gray-color);
  cursor: pointer;
}

.yb-repeat__remove:hover,
.yb-repeat__remove:focus-visible {
  background: #fdecec;
  color: var(--yb-danger);
}

.yb-repeat__remove:focus-visible {
  outline: 2px solid var(--yb-danger);
  outline-offset: -2px;
}

/* Termin ponad limit konta: wyszarzony, przycisk „Dalej” zablokowany. */
.yb-repeat__item.is-over {
  opacity: 0.45;
}

/* Błąd pod wierszem: termin w przeszłości albo powtórzony. */
.yb-repeat__item.is-error .yb-repeat__day {
  border-color: #e2a3a3;
}

.yb-repeat__error {
  grid-column: 1 / -1;
  padding: 6px 10px;
  border-radius: 8px;
  background: #fdeadb;
  color: #8a3b06;
  font-size: 13px;
}

.yb-repeat__add {
  justify-self: start;
}

.yb-repeat__add[hidden],
.yb-repeat__limit[hidden] {
  display: none;
}

@media (max-width: 900px) {
  /* Dzień tygodnia nad wierszem; data, godzina i usuń po 44 px. */
  .yb-repeat__item {
    grid-template-columns: minmax(0, 1fr) 96px 44px;
  }

  .yb-repeat__item .yb-repeat__weekday {
    grid-column: 1 / -1;
  }

  .yb-repeat__item.is-first {
    grid-template-columns: minmax(0, 1fr);
  }

  .yb-repeat__note {
    grid-column: 1;
  }

  .yb-seg__item {
    flex: 1 1 auto;
  }

  .yb-seg__item span {
    justify-content: center;
    width: 100%;
    min-height: var(--yb-h-md);
  }
}

/* --- Formularze --- */
.yb-form {
  max-width: 760px;
}

.yb-form__group {
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 24px;
  margin-bottom: 20px;
}

.yb-form__legend {
  margin: 0 0 16px;
  font-size: 1.05rem;
  font-weight: 700;
}

.yb-form__row {
  margin-bottom: 18px;
}

.yb-form__row:last-child {
  margin-bottom: 0;
}

.yb-form__cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 18px;
}

.yb-form__label {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
  font-size: 0.92rem;
}

/* Pola obok siebie, np. tryb godziny + godzina (YB-017). Etykieta pod polem daty
   potrzebuje odstępu, bo .yb-form__row ma margines tylko na dole. */
.yb-form__inline {
  display: flex;
  align-items: stretch;
  gap: 8px;
}

.yb-form__inline > .yb-form__input {
  margin: 0;
  min-width: 0;
}

.yb-form__inline > select.yb-form__input {
  flex: 1 1 auto;
  height: auto;
  line-height: 1.4;
}

.yb-form__inline > .yb-form__input[type="time"] {
  flex: 0 0 8.5em;
}

.yb-form__row > .yb-form__input + .yb-form__label,
.yb-form__row > .yb-form__input + .yb-form__head,
.yb-form__row > .yb-form__input + [data-time-only] {
  margin-top: 12px;
}

.yb-form__inline > [hidden],
[data-time-only][hidden] {
  display: none;
}

.yb-form__req {
  color: var(--primary-color);
}

.yb-form__input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border-color);
  border-radius: 10px;
  font-size: 0.95rem;
  background: #fff;
  transition:
    border-color 0.15s ease,
    box-shadow 0.15s ease;
}

.yb-form__input:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.04);
}

.yb-form__input--narrow {
  max-width: 200px;
}

.yb-form__input--highlight {
  margin-bottom: 8px;
}

/* Pole hasla z przyciskiem "oko" (przelacznik widocznosci). */
.yb-form__password {
  position: relative;
}

.yb-form__input--password {
  padding-right: 44px;
}

.yb-form__password-toggle {
  position: absolute;
  top: 50%;
  right: 6px;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--dark-gray-color, #777);
  cursor: pointer;
  transition: color 0.15s ease;
}

.yb-form__password-toggle:hover {
  color: var(--primary-color);
}

.yb-form__password-toggle:focus-visible {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

.yb-form__password-icon {
  display: block;
}

/* Atrybut hidden na <svg> nie jest respektowany wszedzie - wymuszamy. */
.yb-form__password-icon[hidden] {
  display: none;
}

.yb-form__textarea {
  resize: vertical;
  min-height: 90px;
}

.yb-form__help {
  margin: 6px 0 0;
  font-size: 0.82rem;
  color: var(--dark-gray-color, #777);
  line-height: 1.5;
}

/* Dopisek/rekomendacja pod głównym opisem pola. */
.yb-form__help--note {
  font-style: italic;
}

.yb-form__check {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 500;
  cursor: pointer;
}

.yb-form__check input {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

/* Zgoda przy rejestracji: tekst z linkami bywa dwuwierszowy, więc checkbox trzyma się góry. */
.yb-form__check--consent {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-weight: 400;
  font-size: 0.92rem;
  line-height: 1.5;
}

.yb-form__check--consent input {
  margin-top: 2px;
}

.yb-form__check--consent a {
  color: var(--primary-color);
  text-decoration: underline;
}

.yb-form__file {
  display: block;
  font-size: 0.9rem;
}

/* --- Zdjęcia w formularzach panelu (YB-024, komponent .yb-media) ---
   Duży podgląd z ikonami bez podpisów: ołówek = <label> pola pliku, kosz = checkbox usuwania
   (your_break_media_remove_toggle()). Zaznaczony kosz = „do usunięcia”: zdjęcie zostaje
   wyszarzone, z ikoną cofnięcia; z bazy znika dopiero po „Zapisz” (YB-006). */
.yb-media {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  background: #ecebe4;
}

.yb-media--main {
  width: 100%;
  max-width: 520px;
  aspect-ratio: 4 / 3;
}

.yb-media--logo {
  width: 140px;
  aspect-ratio: 1;
}

.yb-media--wide {
  width: 100%;
  aspect-ratio: 3 / 1;
}

.yb-media--tile {
  aspect-ratio: 1;
}

.yb-media__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition:
    opacity 0.15s ease,
    filter 0.15s ease;
}

.yb-media__img[hidden] {
  display: none;
}

/* Bez zdjęcia: cały podgląd jest przyciskiem wyboru pliku. */
.yb-media__empty {
  display: none;
}

.yb-media.is-empty {
  background: #fbfcff;
  border: 1.5px dashed #b9c1e6;
}

.yb-media.is-empty .yb-media__empty {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 4px;
  color: var(--yb-action-ink);
  font-size: 13px;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
}

.yb-media.is-empty .yb-media__actions {
  display: none;
}

.yb-media__actions {
  position: absolute;
  top: 8px;
  right: 8px;
  display: flex;
  gap: 6px;
}

.yb-media__btn,
.yb-media__btn:hover,
.yb-media__btn:focus {
  display: grid;
  place-items: center;
  box-sizing: border-box;
  width: 36px;
  height: 36px;
  margin: 0;
  padding: 0;
  background: #fff;
  border: 0;
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
  color: #2b2b2b;
  cursor: pointer;
}

.yb-media__btn[hidden] {
  display: none;
}

.yb-media__btn .yb-icon {
  width: 17px;
  height: 17px;
}

.yb-media__btn--remove,
.yb-media__btn--remove:hover,
.yb-media__btn--remove:focus {
  color: var(--yb-danger);
}

.yb-media__btn input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

/* Fokus z klawiatury siedzi na ukrytym checkboksie albo polu pliku - pierścień rysujemy na ikonie. */
.yb-media__btn:focus-visible,
.yb-media__btn:focus-within {
  outline: 2px solid var(--yb-action);
  outline-offset: 2px;
}

.yb-media__icon-on,
.yb-media__icon-off {
  display: grid;
}

.yb-media__icon-off {
  display: none;
}

/* Oznaczone do usunięcia: wyszarzone, na środku sama ikona cofnięcia. */
.yb-media:has([data-media-remove] :checked) .yb-media__img {
  opacity: 0.45;
  filter: grayscale(1);
}

.yb-media:has([data-media-remove] :checked) .yb-media__actions {
  inset: 0;
  align-items: center;
  justify-content: center;
}

.yb-media:has([data-media-remove] :checked) [data-media-change] {
  display: none;
}

.yb-media:has([data-media-remove] :checked) .yb-media__btn--remove {
  color: #2b2b2b;
}

.yb-media:has([data-media-remove] :checked) .yb-media__icon-on {
  display: none;
}

.yb-media:has([data-media-remove] :checked) .yb-media__icon-off {
  display: grid;
}

/* Mysz: ikony na przyciemnionym zdjęciu po najechaniu i przy fokusie. Dotyk: stale w rogu. */
@media (hover: hover) {
  .yb-media__actions {
    inset: 0;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: rgba(20, 22, 35, 0.42);
    opacity: 0;
    transition: opacity 0.15s ease;
  }

  .yb-media:hover .yb-media__actions,
  .yb-media:focus-within .yb-media__actions,
  .yb-media:has(+ .yb-media__file:focus-visible) .yb-media__actions {
    opacity: 1;
  }

  .yb-media:has([data-media-remove] :checked) .yb-media__actions {
    background: transparent;
    opacity: 1;
  }

  .yb-media__btn,
  .yb-media__btn:hover,
  .yb-media__btn:focus {
    width: 44px;
    height: 44px;
  }

  .yb-media__btn .yb-icon {
    width: 20px;
    height: 20px;
  }

  .yb-media--tile .yb-media__btn,
  .yb-media--logo .yb-media__btn {
    width: 40px;
    height: 40px;
  }
}

/* Pole pliku: bez JS widoczne pod podglądem. Z JS (klasa na formularzu) schowane -
   wybór idzie przez ołówek albo kafel „Dodaj”, a podgląd pokazuje wybrany plik. */
.yb-media__file {
  margin-top: 8px;
}

.yb-form.is-enhanced .yb-media__file {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* Fokus na schowanym polu pliku widać na podglądzie. */
.yb-media:has(+ .yb-media__file:focus-visible) {
  outline: 2px solid var(--yb-action);
  outline-offset: 2px;
}

/* Logo wąskie, baner szeroki. */
/* Baner jest ostatnim wierszem siatki (:last-child = bez marginesu), więc odstęp
   od następnego pola („Dodatkowe zdjęcia”) daje sama siatka. */
.yb-form__cols--media {
  grid-template-columns: 140px minmax(0, 1fr);
  align-items: start;
  margin-bottom: 18px;
}

/* Galeria w panelu: kafelki zapisanych zdjęć, nowych plików i kafel „Dodaj”.
   Osobna nazwa niż .yb-gallery - tamta to karuzela na stronie wydarzenia i profilu (YB-026). */
.yb-photo-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  max-width: 640px;
  margin-bottom: 8px;
}

/* Nowe pliki wstawia JS do wspólnej siatki z zapisanymi zdjęciami. */
.yb-photo-grid__new:not([hidden]) {
  display: contents;
}

.yb-photo-grid__note {
  grid-column: 1 / -1;
  margin: 0;
}

.yb-photo-grid__add {
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 4px;
  aspect-ratio: 1;
  background: #fbfcff;
  border: 1.5px dashed #b9c1e6;
  border-radius: 12px;
  color: var(--yb-action-ink);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.yb-photo-grid__add:hover {
  background: var(--yb-action-soft);
  border-color: var(--yb-action);
}

.yb-photo-grid__add[hidden] {
  display: none;
}

@media (max-width: 900px) {
  .yb-photo-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .yb-form__cols--media {
    grid-template-columns: 1fr;
  }
}

.yb-form__help--warning {
  flex: 1 0 100%;
  color: #b45309;
}

/* „Przygotowujemy zdjęcie…" pod polem pliku na czas zmniejszania (image-resize.js). */
.yb-form__help--progress {
  color: var(--primary-color);
  font-weight: 500;
}

/* --- Checkboxy taksonomii (YB-024) ---
   Sześć grup w trzech kolumnach. Długie listy („Kategoria”, „Miasto”) przewijają się
   wewnątrz ramki, zaznaczone pozycje są na górze, a licznik przy nazwie mówi, ile ich jest.
   Wiersz 28 px na desktopie i 34 px na telefonie. */
.yb-tax-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px 24px;
}

.yb-tax-group {
  display: grid;
  align-content: start;
  gap: 6px;
  min-width: 0;
}

.yb-tax-group__label {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #3b3b3b;
  font-size: 14px;
  font-weight: 600;
}

.yb-tax-group__count {
  padding: 0 7px;
  border-radius: 999px;
  background: var(--yb-action-soft);
  color: var(--yb-action-ink);
  font-size: 12px;
  font-style: normal;
  font-weight: 600;
}

.yb-tax-group__count[hidden] {
  display: none;
}

.yb-tax-group__box {
  position: relative;
}

.yb-tax-group__box--scroll {
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: var(--yb-radius-control);
}

.yb-tax-group__box--scroll .yb-tax-group__options {
  max-height: 262px;
  overflow-y: auto;
  padding: 4px 12px 22px;
}

/* Rozmycie na dole ramki: lista ma dalszy ciąg. */
.yb-tax-group__box--scroll::after {
  content: '';
  position: absolute;
  right: 12px;
  bottom: 0;
  left: 0;
  height: 28px;
  background: linear-gradient(rgba(255, 255, 255, 0), #fff);
  pointer-events: none;
}

.yb-tax-group__options {
  display: flex;
  flex-direction: column;
}

.yb-tax-check {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 28px;
  color: var(--text-color);
  font-size: 14.5px;
  cursor: pointer;
}

.yb-tax-check input {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  accent-color: var(--yb-action);
}

.yb-tax-check:has(:checked) {
  color: #2b2b2b;
  font-weight: 500;
}

/* --- Miasto (YB-063): miasto główne (radio) i zwijana lista miast w pobliżu --- */
.yb-tax-group > .yb-form__head {
  margin-bottom: 0;
}

.yb-tax-more > summary {
  padding: 4px 0;
  color: var(--yb-action-ink);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
}

.yb-tax-more > .yb-form__help {
  margin: 2px 0 8px;
}

/* Druga lista jest niższa: grupa „Miasto” nie rozpycha wtedy całego wiersza grup. */
.yb-tax-more .yb-tax-group__box--scroll .yb-tax-group__options {
  max-height: 150px;
}

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

  .yb-tax-check {
    min-height: 34px;
  }

  .yb-tax-more > summary {
    padding: 12px 0;
  }
}

/* --- Edytor tekstu sformatowanego (yb-richtext.js) --- */
.yb-richtext {
  position: relative;
  border: 1px solid var(--border-color);
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
}

/* Źródłowa textarea edytora. Nie chowamy jej ani `display:none`, ani `opacity:0` w rogu:
   dymek walidacji przeglądarki celuje w prostokąt pola, więc pole musi być normalnie
   wyrenderowane i mieć realny rozmiar - inaczej przeglądarka tylko przewija do pola
   i nie pokazuje nic. Leży więc dokładnie na edytorze (`inset: 0`), a niewidoczna jest
   przez przezroczysty tekst i tło. Kliknięcia przechodzą do edytora (`pointer-events`). */
/* Pole po nieudanej walidacji. */
.yb-richtext.is-invalid {
  border-color: #b42318;
}

.yb-richtext .yb-richtext__source {
  position: absolute;
  inset: 0;
  box-sizing: border-box;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 14px;
  border: 0;
  background: transparent;
  color: transparent;
  caret-color: transparent;
  resize: none;
  overflow: hidden;
  pointer-events: none;
}

.yb-richtext__toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 8px;
  border-bottom: 1px solid var(--border-color);
  background: #f7f8f9;
}

.yb-richtext__btn {
  padding: 5px 10px;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  background: #fff;
  font-size: 0.82rem;
  line-height: 1.2;
  color: var(--text-color);
  cursor: pointer;
}

.yb-richtext__btn:hover {
  border-color: var(--primary-color);
  color: var(--primary-color);
}

.yb-richtext__btn.is-bold {
  font-weight: 700;
}

.yb-richtext__btn.is-italic {
  font-style: italic;
}

.yb-richtext__area {
  min-height: 200px;
  padding: 14px;
  font-size: 0.95rem;
  line-height: 1.6;
  outline: none;
  overflow-y: auto;
}

.yb-richtext__area:focus {
  box-shadow: inset 0 0 0 2px rgba(0, 115, 170, 0.15);
}

.yb-richtext__area h3 {
  margin: 14px 0 8px;
  font-size: 1.05rem;
}

.yb-richtext__area ul,
.yb-richtext__area ol {
  margin: 8px 0 8px 20px;
  padding-left: 8px;
}

.yb-richtext__area > *:first-child {
  margin-top: 0;
}

/* Płaska lista checkboxów bez podziału na grupy (dodatkowe kategorie profilu). */
.yb-tax-flat {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0 18px;
}

/* Po osiągnięciu limitu reszta jest wyszarzana - widać, że to świadoma blokada. */
.yb-tax-check.is-disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.yb-form__counter {
  float: right;
  font-variant-numeric: tabular-nums;
  color: var(--dark-gray-color, #666);
}

/* Przekroczony limit znaków opisu - licznik sygnalizuje to zanim organizator kliknie „Zapisz". */
.yb-form__counter.is-over {
  color: #b42318;
  font-weight: 600;
}

/* Sam licznik pod polem (opis przeniesiony do dymka „i”, YB-023). */
.yb-form__help--counter {
  text-align: right;
}

.yb-form__help--counter .yb-form__counter {
  float: none;
}

/* --- Dymki pomocy „i” przy etykietach (YB-023) ---
   Etykieta + ikonka w jednym wierszu. Dymek pozycjonujemy względem całego wiersza,
   nie ikonki, więc nie wychodzi poza ekran nawet na 360 px. Strzałkę ustawia JS
   (--yb-tip-arrow) pod środkiem ikonki. */
.yb-form__head {
  position: relative;
  display: flex;
  align-items: center;
  gap: 2px;
  margin-bottom: 6px;
}

.yb-form__head > .yb-form__label {
  margin-bottom: 0;
}

.yb-tip {
  display: inline-flex;
}

/* Obszar dotyku 32 px, widoczne kółko 20 px. */
.yb-tip__button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  margin: -6px 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--primary-color);
  cursor: pointer;
}

.yb-tip__button::before {
  content: "";
  position: absolute;
  inset: 6px;
  border: 1.5px solid currentColor;
  border-radius: 50%;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.yb-tip__button svg {
  position: relative;
}

.yb-tip__button:hover,
.yb-tip__button:focus,
.yb-tip__button[aria-expanded="true"] {
  background: transparent;
  color: var(--primary-dark-color);
}

.yb-tip__button[aria-expanded="true"]::before {
  background: rgba(97, 120, 222, 0.12);
}

.yb-tip__button:focus {
  outline: none;
}

.yb-tip__button:focus-visible::before {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

.yb-tip__bubble {
  --yb-tip-arrow: 16px;
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  z-index: 20;
  display: none;
  width: max-content;
  max-width: min(320px, 100%);
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--dark-color);
  color: var(--white-color);
  font-size: 0.82rem;
  font-weight: 400;
  line-height: 1.5;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.18);
}

.yb-tip__bubble::before {
  content: "";
  position: absolute;
  top: -6px;
  left: calc(min(var(--yb-tip-arrow), 305px) - 6px);
  border: 6px solid transparent;
  border-top: 0;
  border-bottom-color: var(--dark-color);
}

/* Z JS stan trzyma help-tip.js (klasa is-open). Bez JS: hover i fokus z klawiatury. */
.yb-tip.is-open .yb-tip__bubble,
html:not(.yb-tips-js) .yb-tip:focus-within .yb-tip__bubble {
  display: block;
}

@media (hover: hover) {
  html:not(.yb-tips-js) .yb-tip:hover .yb-tip__bubble {
    display: block;
  }
}

/* --- Przyciski --- */
.yb-form__actions {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

/* System przycisków (YB-024): 4 warianty, 3 rozmiary, 6 stanów. Używają go panel organizatora
   oraz strony logowania, rejestracji i hasła.
   Każdy wariant powtarza kolory dla :focus, bo Astra koloruje `button:focus` i `a:focus`
   selektorem o wyższej specyficzności niż sama klasa. */
.yb-btn {
  --yb-btn-h: var(--yb-h-md);
  --yb-btn-px: 20px;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-sizing: border-box;
  min-height: var(--yb-btn-h);
  padding: 4px var(--yb-btn-px);
  /* Bez tego <a> i <button> mają różną wysokość: link dziedziczy line-height strony,
     przycisk swój własny. */
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  border: 1.5px solid transparent;
  border-radius: var(--yb-radius-control);
  box-shadow: none;
  touch-action: manipulation;
  transition:
    background-color 0.15s ease,
    border-color 0.15s ease,
    color 0.15s ease,
    box-shadow 0.15s ease;
}

.yb-btn:hover,
.yb-btn:focus {
  text-decoration: none;
}

.yb-btn .yb-icon {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
}

/* Rozmiary. `--sm` tylko w wierszach i paskach na desktopie. */
.yb-btn--sm {
  --yb-btn-h: var(--yb-h-sm);
  --yb-btn-px: 14px;
  gap: 6px;
  font-size: 14px;
}

.yb-btn--sm .yb-icon {
  width: 16px;
  height: 16px;
}

.yb-btn--lg {
  --yb-btn-h: var(--yb-h-lg);
  --yb-btn-px: 24px;
  font-size: 16px;
}

/* Kwadrat z samą ikoną - zawsze z `aria-label`. */
.yb-btn--icon {
  --yb-btn-px: 0;
  width: var(--yb-btn-h);
  flex: 0 0 auto;
  padding: 0;
}

.yb-btn--block {
  display: flex;
  width: 100%;
}

/* Dotyk: mały przycisk zachowuje wygląd, ale łapie palec na 44 px. */
@media (pointer: coarse) {
  .yb-btn--sm::after {
    content: '';
    position: absolute;
    inset: -4px 0;
  }
}

/* Primary: przesuwa wydarzenie do następnego statusu albo zapisuje formularz. Jeden na region. */
.yb-btn--primary,
.yb-btn--primary:focus {
  background: var(--yb-action);
  border-color: var(--yb-action);
  color: #fff;
}

.yb-btn--primary:hover {
  background: var(--yb-action-ink);
  border-color: var(--yb-action-ink);
  color: #fff;
}

.yb-btn--primary:active {
  background: var(--yb-action-press);
  border-color: var(--yb-action-press);
  color: #fff;
  box-shadow: inset 0 2px 0 rgba(0, 0, 0, 0.18);
}

/* Secondary: bezpieczna alternatywa obok primary albo główna akcja wiersza. */
.yb-btn--secondary,
.yb-btn--secondary:focus {
  background: #fff;
  border-color: var(--yb-action-line);
  color: var(--yb-action-ink);
}

.yb-btn--secondary:hover {
  background: var(--yb-action-soft);
  border-color: var(--yb-action);
  color: var(--yb-action-ink);
}

.yb-btn--secondary:active {
  background: var(--yb-action-soft-press);
  border-color: var(--yb-action-ink);
  color: var(--yb-action-ink);
}

/* Tertiary: nawigacja i drobne akcje. Zawsze z ikoną albo czasownikiem. */
.yb-btn--tertiary,
.yb-btn--tertiary:focus {
  background: transparent;
  border-color: transparent;
  color: var(--yb-action-ink);
}

.yb-btn--tertiary:hover {
  background: var(--yb-action-soft);
  color: var(--yb-action-ink);
}

.yb-btn--tertiary:active {
  background: var(--yb-action-soft-press);
  color: var(--yb-action-ink);
}

.yb-btn--tertiary {
  --yb-btn-px: 12px;
}

/* Destructive: pełny czerwony tylko jako potwierdzenie w oknie. */
.yb-btn--danger,
.yb-btn--danger:focus {
  background: var(--yb-danger);
  border-color: var(--yb-danger);
  color: #fff;
}

.yb-btn--danger:hover {
  background: var(--yb-danger-hover);
  border-color: var(--yb-danger-hover);
  color: #fff;
}

.yb-btn--danger:active {
  background: var(--yb-danger-press);
  border-color: var(--yb-danger-press);
  color: #fff;
  box-shadow: inset 0 2px 0 rgba(0, 0, 0, 0.2);
}

/* Fokus tylko z klawiatury: kliknięcie myszą nie zostawia pierścienia. */
.yb-btn:focus {
  outline: 0;
}

.yb-btn:focus-visible {
  outline: 2px solid var(--yb-action);
  outline-offset: 2px;
}

.yb-btn--danger:focus-visible {
  outline-color: var(--yb-danger);
}

/* Wyłączony: `disabled` na przycisku, `aria-disabled="true"` na linku. */
.yb-btn:disabled,
.yb-btn[aria-disabled='true'] {
  opacity: 0.42;
  cursor: not-allowed;
  box-shadow: none;
}

.yb-btn:disabled,
.yb-btn[aria-disabled='true']:not(.is-busy) {
  pointer-events: none;
}

/* Ładowanie (organizer-dashboard.js i moduły panelu). Nie `disabled` - wyłączony
   przycisk wypadłby z danych formularza, a handler PHP rozpoznaje zapis po nim. */
.yb-btn.is-busy,
.yb-btn[aria-busy='true'] {
  opacity: 1;
  cursor: progress;
  pointer-events: none;
}

.yb-btn.is-busy::before,
.yb-btn[aria-busy='true']::before {
  content: '';
  flex: 0 0 auto;
  box-sizing: border-box;
  width: 16px;
  height: 16px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: yb-spin 0.7s linear infinite;
}

.yb-btn.is-busy > .yb-icon,
.yb-btn[aria-busy='true'] > .yb-icon {
  display: none;
}

@keyframes yb-spin {
  to {
    transform: rotate(360deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .yb-btn.is-busy::before,
  .yb-btn[aria-busy='true']::before {
    animation-duration: 2.4s;
  }
}

/* --- Plakietki panelu (YB-024): status wydarzenia, seria, stan konta --- */
.yb-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: 999px;
  background: #f1f1f1;
  color: #555;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.4;
  white-space: nowrap;
  text-decoration: none;
}

.yb-pill .yb-icon {
  flex: 0 0 auto;
}

.yb-pill--pub {
  background: #e7f6ec;
  color: #1c6b3a;
}

.yb-pill--pen {
  background: #fdf1d6;
  color: #7a5207;
}

.yb-pill--fix {
  background: #fdeadb;
  color: #8a3b06;
}

.yb-pill--drf {
  background: #eee;
  color: #555;
}

.yb-pill--can {
  background: #fdecec;
  color: #a12525;
}

.yb-pill--ser {
  background: var(--yb-action-soft);
  color: #2f3f86;
}

.yb-pill--mod {
  background: #fdf1d6;
  color: #92600a;
  font-size: 11.5px;
}

.yb-pill--ver {
  background: #e8eefc;
  color: #2443a8;
}

a.yb-pill:hover,
a.yb-pill:focus {
  text-decoration: underline;
}

/* --- „Do zrobienia” nad listą wydarzeń (YB-024) ---
   Jedno miejsce na stan moderacji, braki profilu i niewysłane szkice serii. */
.yb-todo {
  margin: 0 0 18px;
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: var(--yb-radius-card);
}

.yb-todo__head {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 14px;
  border-radius: var(--yb-radius-card);
  color: #2b2b2b;
  font-size: 15px;
  font-weight: 600;
  list-style: none;
  cursor: pointer;
}

.yb-todo__head::-webkit-details-marker {
  display: none;
}

.yb-todo__head:focus-visible {
  outline: 2px solid var(--yb-action);
  outline-offset: 2px;
}

.yb-todo__ico {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: #fdf1d6;
  color: #7a5207;
}

.yb-todo__title {
  flex: 1 1 auto;
}

.yb-todo__count {
  display: inline-grid;
  place-items: center;
  min-width: 22px;
  height: 22px;
  padding: 0 7px;
  border-radius: 999px;
  background: #fdf1d6;
  color: #7a5207;
  font-size: 12px;
  font-weight: 700;
}

.yb-todo__chevron {
  display: inline-flex;
  color: var(--dark-gray-color);
  transition: transform 0.15s ease;
}

.yb-todo[open] .yb-todo__chevron {
  transform: rotate(180deg);
}

.yb-todo__list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0 14px 12px 54px;
  list-style: none;
}

.yb-todo__item {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 16px;
  padding-top: 10px;
  border-top: 1px solid #efefef;
  color: #4a4a4a;
  font-size: 14px;
  line-height: 1.45;
}

.yb-todo__text {
  flex: 1 1 260px;
}

.yb-todo__link,
.yb-todo__link:focus {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  color: var(--yb-action-ink);
  font-weight: 600;
  white-space: nowrap;
  text-decoration: none;
}

.yb-todo__link:hover {
  color: var(--yb-action-ink);
  text-decoration: underline;
}

@media (max-width: 900px) {
  .yb-todo__link,
  .yb-todo__link:focus {
    min-height: var(--yb-h-md);
  }
}

/* --- Dolne menu panelu na telefonie (YB-024) --- */
.yb-bnav {
  display: none;
}

@media (max-width: 900px) {
  .yb-panel-page {
    --yb-bnav-h: calc(62px + env(safe-area-inset-bottom, 0px));
    padding-bottom: var(--yb-bnav-h);
  }

  .yb-bnav {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 900;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    box-sizing: border-box;
    height: var(--yb-bnav-h);
    padding: 6px 8px calc(6px + env(safe-area-inset-bottom, 0px));
    background: #fff;
    border-top: 1px solid var(--border-color);
  }

  .yb-bnav__item,
  .yb-bnav__item:focus,
  .yb-bnav__item:hover {
    display: grid;
    align-content: center;
    justify-items: center;
    gap: 2px;
    min-height: 48px;
    color: var(--dark-gray-color);
    font-size: 11.5px;
    font-weight: 600;
    line-height: 1.2;
    text-decoration: none;
    cursor: pointer;
  }

  .yb-bnav__item:focus-visible {
    outline: 2px solid var(--yb-action);
    outline-offset: -2px;
    border-radius: var(--yb-radius-control);
  }

  .yb-bnav__icon {
    display: grid;
    place-items: center;
    width: 52px;
    height: 28px;
    border-radius: 999px;
  }

  .yb-bnav__item.is-active,
  .yb-bnav__menu[open] > .yb-bnav__item {
    color: var(--yb-action-ink);
  }

  .yb-bnav__item.is-active .yb-bnav__icon,
  .yb-bnav__menu[open] > .yb-bnav__item .yb-bnav__icon {
    background: var(--yb-action-soft);
  }

  /* Panel „Konto” wysuwa się nad dolne menu, które zostaje widoczne. */
  .yb-bnav .yb-bnav__menu[open] > summary::before {
    bottom: var(--yb-bnav-h);
  }

  .yb-bnav .yb-bnav__menu .yb-menu__panel {
    bottom: var(--yb-bnav-h);
    padding-bottom: 12px;
  }

  .yb-bnav .yb-menu__head-thumb--initials {
    display: grid;
    place-items: center;
    background: var(--yb-action-soft);
    color: var(--yb-action-ink);
    font-weight: 700;
  }

  .yb-menu__head-body .yb-pill {
    justify-self: start;
    margin-top: 2px;
  }
}

/* --- Lista „Moje wydarzenia” (YB-024, panel-list.js) --- */

/* Nagłówek listy: sam tytuł i jedna akcja. */
.yb-dashboard__intro--list {
  align-items: center;
}

.yb-dashboard__intro--list .yb-dashboard__heading {
  flex: 1 1 auto;
  margin: 0;
}

/* Pasek nad listą: zakładki po lewej, sortowanie po prawej. */
.yb-listbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  margin: 0 0 14px;
}

/* Pasek zakładek przewijany w poziomie, gdy zakładki się nie mieszczą. Ten sam komponent
   obsługuje zakładki listy i zakładki wydarzenia. Gradient na krawędzi (klasy z JS)
   pokazuje, że dalej coś jest. */
.yb-strip {
  position: relative;
  display: flex;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.yb-strip::-webkit-scrollbar {
  display: none;
}

.yb-strip.is-fade-end {
  -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 34px), transparent);
  mask-image: linear-gradient(90deg, #000 calc(100% - 34px), transparent);
}

.yb-strip.is-fade-start {
  -webkit-mask-image: linear-gradient(270deg, #000 calc(100% - 34px), transparent);
  mask-image: linear-gradient(270deg, #000 calc(100% - 34px), transparent);
}

.yb-strip.is-fade-start.is-fade-end {
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 34px, #000 calc(100% - 34px), transparent);
  mask-image: linear-gradient(90deg, transparent, #000 34px, #000 calc(100% - 34px), transparent);
}

.yb-ftabs {
  flex: 1 1 auto;
  gap: 6px;
  /* Miejsce na pierścień fokusu, którego nie może uciąć overflow. */
  padding: 3px;
  margin: -3px;
}

.yb-ftab,
.yb-ftab:focus {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 14px;
  border: 1.5px solid transparent;
  border-radius: var(--yb-radius-control);
  color: #4a4a4a;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  text-decoration: none;
}

.yb-ftab:hover {
  background: var(--yb-action-soft);
  color: var(--yb-action-ink);
  text-decoration: none;
}

.yb-ftab:focus-visible {
  outline: 2px solid var(--yb-action);
  outline-offset: 1px;
}

.yb-ftab__count {
  min-width: 22px;
  padding: 1px 7px;
  border-radius: 999px;
  background: #efefef;
  color: #555;
  font-size: 12px;
  font-style: normal;
  font-variant-numeric: tabular-nums;
  text-align: center;
}

.yb-ftab.is-active,
.yb-ftab.is-active:focus,
.yb-ftab.is-active:hover {
  background: var(--yb-action-soft);
  border-color: var(--yb-action);
  color: var(--yb-action-ink);
}

.yb-ftab.is-active .yb-ftab__count {
  background: var(--yb-action);
  color: #fff;
}

.yb-sort {
  flex: 0 0 auto;
  margin-left: auto;
}

.yb-sort__btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 40px;
  padding: 0 10px;
  border-radius: var(--yb-radius-control);
  color: var(--yb-action-ink);
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
}

.yb-sort__btn:hover {
  background: var(--yb-action-soft);
}

.yb-sort__btn:focus-visible {
  outline: 2px solid var(--yb-action);
  outline-offset: 2px;
}

.yb-sort__label {
  color: var(--dark-gray-color);
  font-weight: 500;
}

/* Wiersze: na desktopie jedna karta z wierszami, do 900 px osobne karty. */
.yb-evwrap {
  transition: min-height 0s;
}

.yb-evwrap[aria-busy='true'] .yb-evlist,
.yb-evwrap[aria-busy='true'] .yb-dashboard__empty {
  opacity: 0.5;
  transition: opacity 0.15s ease;
}

.yb-evwrap .yb-dashboard__empty p {
  margin: 0;
}

.yb-evwrap .yb-dashboard__empty .yb-btn {
  margin-top: 16px;
}

.yb-evwrap__hint {
  margin: 10px 0 0;
  color: #7a7a7a;
  font-size: 12.5px;
}

.yb-evlist {
  margin: 0;
  padding: 0;
  list-style: none;
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: var(--yb-radius-card);
}

.yb-ev {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) 190px 84px 150px;
  align-items: center;
  gap: 18px;
  padding: 14px 18px;
  border-bottom: 1px solid #efefef;
}

.yb-ev:last-child {
  border-bottom: 0;
}

.yb-ev__thumb {
  display: block;
  width: 64px;
  height: 64px;
  overflow: hidden;
  border-radius: var(--yb-radius-control);
  background: #e9e6dc;
}

.yb-ev__thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.yb-ev__main {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.yb-ev__title,
.yb-ev__title:focus {
  overflow: hidden;
  color: #2b2b2b;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.3;
  white-space: nowrap;
  text-overflow: ellipsis;
  text-decoration: none;
}

.yb-ev__title:hover {
  color: var(--yb-action-ink);
  text-decoration: underline;
}

.yb-ev__title:focus-visible {
  outline: 2px solid var(--yb-action);
  outline-offset: 2px;
  border-radius: 4px;
}

.yb-ev__line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2px 14px;
  color: var(--dark-gray-color);
  font-size: 13.5px;
}

.yb-ev__cat {
  color: var(--yb-action);
}

.yb-ev__note {
  margin: 2px 0 0;
  color: #8a3b06;
  font-size: 13px;
  line-height: 1.4;
}

.yb-ev__pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.yb-ev__series {
  display: inline-flex;
}

.yb-ev__series--pills {
  display: none;
}

/* Na desktopie licznik i akcje to osobne kolumny siatki wiersza. */
.yb-ev__end,
.yb-ev__form {
  display: contents;
}

.yb-ev__form {
  margin: 0;
}

.yb-ev__actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

/* Licznik zapisanych „7/12”: link do zakładki Zapisani. Zielony, gdy brak miejsc. */
.yb-sig,
.yb-sig:focus {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: var(--yb-h-sm);
  padding: 0 12px;
  border-radius: var(--yb-radius-control);
  background: var(--yb-action-soft);
  color: var(--yb-action-ink);
  font-size: 14px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  text-decoration: none;
}

.yb-sig:hover {
  background: var(--yb-action-soft-press);
  color: var(--yb-action-ink);
  text-decoration: none;
}

.yb-sig:focus-visible {
  outline: 2px solid var(--yb-action);
  outline-offset: 2px;
}

.yb-sig--full,
.yb-sig--full:focus {
  background: #e7f6ec;
  color: #1c6b3a;
}

.yb-sig--full:hover {
  background: #d3eedc;
  color: #1c6b3a;
}

.yb-sig--lg {
  min-height: var(--yb-h-md);
}

@media (max-width: 900px) {
  .yb-dashboard__intro--list .yb-dashboard__intro-action {
    display: none; /* „Dodaj” jest w dolnym menu. */
  }

  /* Zakładki w pierwszym rzędzie, sortowanie pod nimi po prawej. */
  .yb-ftabs {
    flex: 1 1 100%;
  }

  .yb-ftab,
  .yb-ftab:focus {
    flex: 1 0 auto;
    min-height: var(--yb-h-md);
    padding: 0 12px;
  }

  .yb-sort__btn {
    min-height: var(--yb-h-md);
  }

  .yb-evlist {
    display: grid;
    gap: 12px;
    background: transparent;
    border: 0;
    border-radius: 0;
  }

  .yb-ev,
  .yb-ev:last-child {
    grid-template-columns: 64px minmax(0, 1fr);
    align-items: start;
    gap: 6px 12px;
    padding: 14px;
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: var(--yb-radius-card);
  }

  .yb-ev__thumb {
    grid-row: 1 / span 2;
  }

  .yb-ev__main {
    gap: 3px;
  }

  /* Ujemny margines oddaje to, co dodał padding: wygląd bez zmian, cel dotyku 44 px. */
  .yb-ev__title,
  .yb-ev__title:focus {
    display: block;
    margin-block: -12px;
    padding-block: 12px;
    font-size: 15.5px;
    white-space: normal;
  }

  .yb-ev__series .yb-pill {
    position: relative;
  }

  .yb-ev__series .yb-pill::after {
    content: '';
    position: absolute;
    inset: -11px -4px;
  }

  .yb-ev__cat,
  .yb-ev__series--line {
    display: none;
  }

  .yb-ev__series--pills {
    display: inline-flex;
  }

  .yb-ev__pills {
    grid-column: 2;
  }

  .yb-ev__end {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 6px;
  }

  .yb-ev__sig:empty {
    display: none;
  }

  .yb-ev__sig .yb-sig {
    min-height: var(--yb-h-md);
  }

  .yb-ev__actions {
    flex: 1 1 auto;
    justify-content: flex-start;
  }

  .yb-ev__actions .yb-btn {
    --yb-btn-h: var(--yb-h-md);
    font-size: 15px;
  }

  .yb-ev__action {
    flex: 1 1 auto;
  }
}

/* --- Wydarzenie: wspólny nagłówek i zakładki (YB-024, your_break_render_event_hub()) --- */

/* Powrót na listę. Zastępuje „Anuluj” w formularzach. */
.yb-back,
.yb-back:focus {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  min-height: 32px;
  margin: 0 0 10px;
  color: var(--yb-action-ink);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

.yb-back:hover {
  color: var(--yb-action-ink);
  text-decoration: underline;
}

.yb-back:focus-visible {
  outline: 2px solid var(--yb-action);
  outline-offset: 2px;
  border-radius: 4px;
}

/* Nowe wydarzenie: powrót po lewej, na telefonie „Podgląd” po prawej. */
.yb-toprow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 10px;
}

.yb-toprow .yb-back {
  margin: 0;
}

.yb-toprow__preview {
  display: none;
}

.yb-hub {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 0 0 14px;
}

.yb-hub__thumb {
  flex: 0 0 auto;
  width: 72px;
  height: 72px;
  overflow: hidden;
  border-radius: var(--yb-radius-control);
  background: #e9e6dc;
}

.yb-hub__thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.yb-hub__body {
  display: grid;
  flex: 1 1 auto;
  gap: 6px;
  min-width: 0;
}

.yb-hub__title {
  margin: 0;
  color: #2b2b2b;
  font-size: 28px;
  font-weight: 700;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.yb-hub__line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 16px;
  color: #555;
  font-size: 13.5px;
}

.yb-hub__meta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.yb-hub__meta .yb-icon {
  flex: 0 0 auto;
  color: #8a8a8a;
}

.yb-hub__actions {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 8px;
}

/* Zakładki wydarzenia na wspólnym pasku .yb-strip. */
.yb-utabs {
  gap: 28px;
  margin: 0 0 20px;
  box-shadow: inset 0 -1px 0 var(--border-color);
}

.yb-utab,
.yb-utab:focus {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 46px;
  padding: 0 4px;
  border-bottom: 3px solid transparent;
  color: var(--dark-gray-color);
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  text-decoration: none;
}

.yb-utab:hover {
  color: var(--yb-action-ink);
  text-decoration: none;
}

.yb-utab:focus-visible {
  outline: 2px solid var(--yb-action);
  outline-offset: -2px;
  border-radius: 4px;
}

.yb-utab__count {
  padding: 0 7px;
  border-radius: 999px;
  background: #f0f0f0;
  color: #555;
  font-size: 12px;
  font-style: normal;
  font-variant-numeric: tabular-nums;
}

.yb-utab__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--yb-action);
}

.yb-utab.is-active,
.yb-utab.is-active:focus,
.yb-utab.is-active:hover {
  border-bottom-color: var(--yb-action);
  color: var(--yb-action-ink);
}

.yb-utab.is-active .yb-utab__count {
  background: var(--yb-action-soft);
  color: var(--yb-action-ink);
}

/* Formularze panelu zajmują całą kolumnę treści, jak nagłówek wydarzenia nad nimi. */
.yb-dashboard__content .yb-form {
  max-width: none;
}

/* --- Pasek zapisu (YB-024, panel-savebar.js) ---
   Ostatni element formularza. Desktop: przyklejony do dołu okna. Telefon: z JS przyklejony
   do dołu ekranu w miejsce dolnego menu, bez JS stoi na końcu formularza. */
.yb-savebar {
  position: sticky;
  bottom: 12px;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 4px;
  padding: 14px 20px;
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: var(--yb-radius-card);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.yb-savebar__state {
  display: inline-flex;
  flex: 1 1 auto;
  align-items: center;
  gap: 7px;
  min-width: 0;
  color: var(--dark-gray-color);
  font-size: 13px;
}

/* Kropka stanu: zielona = zapisane, bursztynowa = niezapisane zmiany. */
.yb-savebar__state::before {
  content: '';
  flex: 0 0 auto;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #2e8b57;
}

.yb-savebar.is-dirty .yb-savebar__state::before {
  background: #d29a1e;
}

.yb-savebar__state:empty::before {
  display: none;
}

/* Główny przycisk jest pierwszy w kodzie (Enter), a po prawej na ekranie. */
.yb-savebar__actions {
  display: flex;
  flex: 0 0 auto;
  flex-direction: row-reverse;
  align-items: center;
  gap: 10px;
}

.yb-savebar [hidden] {
  display: none;
}

@media (max-width: 900px) {
  .yb-toprow__preview {
    display: inline-flex;
  }

  .yb-toprow__preview[hidden] {
    display: none;
  }

  .yb-hub {
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 10px;
  }

  .yb-hub__thumb {
    width: 56px;
    height: 56px;
  }

  .yb-hub__title {
    font-size: 21px;
  }

  /* „Podgląd” jest na telefonie w menu „⋯”. */
  .yb-hub__preview {
    display: none;
  }

  .yb-utabs {
    gap: 22px;
    margin-bottom: 16px;
  }

  .yb-utab,
  .yb-utab:focus {
    flex: 1 0 auto;
  }

  .yb-savebar {
    position: static;
    display: grid;
    gap: 8px;
    padding: 12px 14px;
    box-shadow: none;
  }

  /* Dwa przyciski obok siebie muszą zmieścić się w 360 px bez łamania etykiety. */
  .yb-savebar__actions .yb-btn {
    --yb-btn-h: var(--yb-h-lg);
    --yb-btn-px: 10px;
    flex: 1 1 auto;
    font-size: 15px;
  }

  .yb-savebar__actions .yb-btn--secondary {
    flex: 0 0 36%;
  }

  /* Na telefonie „Podgląd” nowego wydarzenia jest nad formularzem. */
  .yb-savebar__preview {
    display: none;
  }

  /* Pasek przyklejony w miejsce dolnego menu (klasa z panel-savebar.js). */
  .yb-savebar-on .yb-savebar {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 910;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px));
    border-width: 1px 0 0;
    border-radius: 0;
    box-shadow: 0 -6px 18px rgba(0, 0, 0, 0.05);
  }

  /* Przeglądarka przewija do błędnie wypełnionego pola: ma stanąć nad paskiem zapisu
     i pod nagłówkiem strony, inaczej dymek z błędem wskazuje pole, którego nie widać (YB-061). */
  html.yb-savebar-on {
    scroll-padding: 90px 0 140px;
  }

  .yb-savebar-on .yb-bnav {
    display: none;
  }

  .yb-savebar-on .yb-panel-page {
    padding-bottom: var(--yb-savebar-h, 120px);
  }

  .yb-savebar-on .yb-toast-region {
    bottom: calc(var(--yb-savebar-h, 120px) + 12px);
  }
}

/* --- Nakładki panelu (YB-024, panel-overlays.js) ---
   Menu „⋯”, „Sortuj” i „Konto” to <details>: działa bez JS. Na desktopie rozwijane pod
   przyciskiem, do 900 px panel przyklejony do dołu ekranu. */
.yb-menu {
  position: relative;
  display: inline-block;
}

.yb-menu > summary {
  list-style: none;
}

.yb-menu > summary::-webkit-details-marker {
  display: none;
}

/* Niewidoczna warstwa pod otwartym menu: kliknięcie obok trafia w <summary> i zamyka menu,
   także bez JS. Na telefonie ta sama warstwa jest przyciemnieniem tła. */
.yb-menu[open] > summary::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 1000;
  cursor: default;
}

.yb-menu__panel {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  z-index: 1001;
  display: grid;
  gap: 1px;
  width: 260px;
  max-width: calc(100vw - 32px);
  padding: 6px;
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  box-shadow: 0 14px 36px rgba(20, 25, 50, 0.16);
  text-align: left;
}

.yb-menu--start .yb-menu__panel {
  right: auto;
  left: 0;
}

.yb-menu--up .yb-menu__panel {
  top: auto;
  bottom: calc(100% + 6px);
}

/* Nagłówek panelu z dołu (miniatura, tytuł, data) - na desktopie zbędny. */
.yb-menu__head {
  display: none;
}

.yb-menu__panel form {
  display: contents;
  margin: 0;
}

.yb-menu__item,
.yb-menu__item:focus {
  display: flex;
  align-items: center;
  gap: 12px;
  box-sizing: border-box;
  width: 100%;
  min-height: 40px;
  margin: 0;
  padding: 6px 8px;
  background: transparent;
  border: 0;
  border-radius: var(--yb-radius-control);
  box-shadow: none;
  color: #2b2b2b;
  font-family: inherit;
  font-size: 14.5px;
  font-weight: 500;
  line-height: 1.3;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}

.yb-menu__item:hover {
  background: #f4f5f9;
  color: #2b2b2b;
  text-decoration: none;
}

.yb-menu__item:focus {
  outline: 0;
}

.yb-menu__item:focus-visible {
  outline: 2px solid var(--yb-action);
  outline-offset: -2px;
}

.yb-menu__item .yb-icon {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  color: var(--dark-gray-color);
}

.yb-menu__item-body {
  display: grid;
  gap: 1px;
  min-width: 0;
}

.yb-menu__item-hint {
  color: var(--dark-gray-color);
  font-size: 12.5px;
  font-weight: 400;
}

.yb-menu__item--danger,
.yb-menu__item--danger:focus,
.yb-menu__item--danger:hover,
.yb-menu__item--danger .yb-icon {
  color: var(--yb-danger);
}

.yb-menu__item--danger:hover {
  background: #fdecec;
}

.yb-menu__item.is-selected,
.yb-menu__item.is-selected:focus,
.yb-menu__item.is-selected:hover {
  color: var(--yb-action-ink);
  font-weight: 600;
}

.yb-menu__item-end {
  display: inline-flex;
  margin-left: auto;
}

.yb-menu__item-end .yb-icon {
  color: var(--yb-action);
}

.yb-menu__sep {
  height: 1px;
  margin: 4px 8px;
  border: 0;
  background: #efefef;
}

@media (max-width: 900px) {
  .yb-menu {
    position: static;
  }

  .yb-menu[open] > summary::before {
    background: rgba(17, 20, 35, 0.48);
  }

  .yb-menu__panel,
  .yb-menu--start .yb-menu__panel,
  .yb-menu--up .yb-menu__panel {
    position: fixed;
    top: auto;
    right: 0;
    bottom: 0;
    left: 0;
    gap: 2px;
    width: auto;
    max-width: none;
    max-height: calc(100vh - 80px);
    max-height: calc(100dvh - 80px);
    overflow-y: auto;
    padding: 8px 12px calc(22px + env(safe-area-inset-bottom, 0px));
    border: 0;
    border-radius: 22px 22px 0 0;
    box-shadow: 0 -10px 40px rgba(15, 20, 45, 0.2);
  }

  /* Uchwyt panelu. */
  .yb-menu__panel::before {
    content: '';
    width: 40px;
    height: 5px;
    margin: 0 auto 8px;
    border-radius: 3px;
    background: #d9d9d9;
  }

  .yb-menu__head {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 4px;
    padding: 2px 6px 10px;
    border-bottom: 1px solid #efefef;
  }

  .yb-menu__head-thumb {
    flex: 0 0 auto;
    width: 44px;
    height: 44px;
    border-radius: var(--yb-radius-control);
    object-fit: cover;
    background: #e9e6dc;
  }

  .yb-menu__head-body {
    display: grid;
    min-width: 0;
  }

  .yb-menu__head-body b {
    color: #2b2b2b;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.3;
  }

  .yb-menu__head-body span {
    color: var(--dark-gray-color);
    font-size: 13px;
  }

  .yb-menu__item,
  .yb-menu__item:focus {
    gap: 14px;
    min-height: 50px;
    font-size: 15.5px;
  }

  .yb-menu__item .yb-icon {
    width: 20px;
    height: 20px;
  }

  /* Otwarty panel z dołu: strona pod spodem się nie przewija. */
  html.yb-sheet-open {
    overflow: hidden;
  }
}

/* Okna: natywny <dialog> otwierany przez showModal() - pułapka fokusu i Esc są wbudowane.
   Do 900 px okno wygląda jak panel z dołu. */
.yb-dialog {
  width: min(500px, calc(100vw - 32px));
  max-height: calc(100vh - 48px);
  margin: auto;
  padding: 0;
  overflow-y: auto;
  background: #fff;
  border: 0;
  border-radius: 18px;
  box-shadow: 0 24px 60px rgba(15, 20, 45, 0.28);
  color: var(--text-color);
}

.yb-dialog::backdrop {
  background: rgba(17, 20, 35, 0.48);
}

.yb-dialog__box {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 26px;
}

.yb-dialog__ring {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--yb-action-soft);
  color: var(--yb-action-ink);
}

.yb-dialog--danger .yb-dialog__ring {
  background: #fdecec;
  color: var(--yb-danger);
}

.yb-dialog__ring:empty {
  display: none;
}

.yb-dialog__title {
  margin: 0;
  color: #2b2b2b;
  font-family: var(--font-secondary);
  font-size: 20px;
  font-weight: 700;
  line-height: 1.25;
}

.yb-dialog__text {
  margin: 0;
  color: #4a4a4a;
  font-size: 14.5px;
  line-height: 1.5;
}

.yb-dialog__ref {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px;
  border-radius: 12px;
  background: #f7f7f5;
}

.yb-dialog__ref[hidden],
.yb-dialog__extra[hidden],
.yb-dialog__ref-thumb[hidden] {
  display: none;
}

.yb-dialog__ref-thumb {
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  border-radius: var(--yb-radius-control);
  object-fit: cover;
}

.yb-dialog__ref-body {
  display: grid;
  min-width: 0;
}

.yb-dialog__ref-body b {
  color: #2b2b2b;
  font-size: 14.5px;
  font-weight: 600;
  line-height: 1.3;
}

.yb-dialog__ref-body span {
  color: var(--dark-gray-color);
  font-size: 13px;
}

.yb-dialog__foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 6px;
}

/* Ramka ostrzeżenia w oknie (np. „7 osób jest zapisanych”). */
.yb-warnbox {
  display: grid;
  gap: 6px;
  padding: 12px 14px;
  border: 1px solid #e8c76a;
  border-radius: 12px;
  background: #fffaf0;
  color: #6b4a06;
  font-size: 14px;
  line-height: 1.45;
}

.yb-warnbox b {
  color: #5a3d04;
}

.yb-warnbox a {
  color: var(--yb-action-ink);
  font-weight: 600;
  text-decoration: none;
}

.yb-warnbox a:hover {
  text-decoration: underline;
}

@media (max-width: 900px) {
  .yb-dialog {
    width: 100%;
    max-width: 100%;
    max-height: calc(100vh - 40px);
    max-height: calc(100dvh - 40px);
    margin: auto 0 0;
    border-radius: 22px 22px 0 0;
  }

  .yb-dialog__box {
    padding: 8px 18px calc(26px + env(safe-area-inset-bottom, 0px));
  }

  .yb-dialog__box::before {
    content: '';
    width: 40px;
    height: 5px;
    margin: 0 auto 2px;
    border-radius: 3px;
    background: #d9d9d9;
  }

  /* Akcja na górze, bezpieczny wybór pod nią; oba na całą szerokość. */
  .yb-dialog__foot {
    flex-direction: column-reverse;
    flex-wrap: nowrap;
  }

  .yb-dialog__foot .yb-btn {
    --yb-btn-h: var(--yb-h-lg);
    width: 100%;
    font-size: 16px;
  }
}

/* Komunikat „toast”: wynik akcji bez przeładowania, z opcjonalnym „Cofnij”. */
.yb-toast-region {
  position: fixed;
  /* 76 px od prawej: obok przycisku „do góry” motywu, nie na nim. */
  right: 76px;
  bottom: 28px;
  z-index: 1100;
  width: 440px;
  max-width: calc(100vw - 24px);
  pointer-events: none;
}

.yb-toast {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  border-radius: 12px;
  background: #1f2440;
  box-shadow: 0 12px 30px rgba(15, 20, 45, 0.3);
  color: #fff;
  font-size: 14px;
  line-height: 1.35;
  pointer-events: auto;
  animation: yb-toast-in 0.18s ease-out;
}

.yb-toast--error {
  background: #7a1a14;
}

.yb-toast__text {
  flex: 1 1 auto;
  min-width: 0;
}

.yb-toast__action,
.yb-toast__action:hover,
.yb-toast__action:focus {
  flex: 0 0 auto;
  min-height: 32px;
  margin: 0;
  padding: 0 4px;
  background: transparent;
  border: 0;
  border-radius: var(--yb-radius-chip);
  box-shadow: none;
  color: #b9c6ff;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
}

.yb-toast__action:hover {
  color: #fff;
}

.yb-toast__action:focus-visible {
  outline: 2px solid #b9c6ff;
  outline-offset: 2px;
}

@keyframes yb-toast-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
}

@media (max-width: 900px) {
  /* Nad dolnym menu panelu. */
  .yb-toast-region {
    right: 12px;
    bottom: calc(84px + env(safe-area-inset-bottom, 0px));
    left: 12px;
    width: auto;
    max-width: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .yb-toast {
    animation: none;
  }
}

/* --- Responsywność --- */
@media (max-width: 900px) {
  .yb-dashboard__layout {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  /* Menu boczne zastępuje dolne menu (YB-024). */
  .yb-dashboard__sidebar {
    display: none;
  }

  .yb-dashboard__intro {
    flex-wrap: wrap;
  }

  .yb-dashboard__intro-body {
    flex: 1 1 0;
  }

  .yb-dashboard__intro .yb-dashboard__heading {
    font-size: 1.5rem;
    line-height: 1.2;
  }

}

@media (max-width: 600px) {

  .yb-form__group {
    padding: 18px;
  }
}

/* --- Galeria dodatkowych zdjęć (template-parts/gallery-carousel.php) --- */
.yb-gallery {
  position: relative;
  margin-bottom: 24px;
}

.yb-gallery__heading {
  font-size: 1.25rem;
  margin-bottom: 16px;
}

.yb-gallery__carousel {
  touch-action: pan-y;
  -webkit-user-select: none;
  user-select: none;
}

.yb-gallery__item {
  margin: 0;
}

.yb-gallery__img {
  display: block;
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 8px;
}

.yb-gallery__carousel .owl-nav {
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  transform: translateY(-50%);
  display: flex;
  justify-content: space-between;
  pointer-events: none;
  margin: 0;
}

.yb-gallery__carousel .owl-prev,
.yb-gallery__carousel .owl-next {
  width: 40px;
  height: 40px;
  margin: 0 8px !important;
  background-color: var(--white-color) !important;
  border-radius: 50% !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  display: flex !important;
  align-items: center;
  justify-content: center;
  font-size: 26px !important;
  line-height: 1;
  color: var(--dark-color) !important;
  transition: all 0.3s ease;
  pointer-events: auto;
}

.yb-gallery__carousel .owl-prev:hover,
.yb-gallery__carousel .owl-next:hover {
  background-color: var(--primary-color) !important;
  color: var(--white-color) !important;
}

.yb-gallery__carousel .owl-prev.disabled,
.yb-gallery__carousel .owl-next.disabled {
  opacity: 0.35;
  pointer-events: none;
}

.yb-gallery__carousel .owl-dots {
  margin-top: 14px;
  text-align: center;
}

.yb-gallery__carousel .owl-dot {
  display: inline-block;
}

.yb-gallery__carousel .owl-dot span {
  width: 8px;
  height: 8px;
  margin: 5px 5px;
  background: #d6d6d6;
  display: block;
  border-radius: 30px;
  transition: all 0.3s ease;
}

.yb-gallery__carousel .owl-dot.active span,
.yb-gallery__carousel .owl-dot:hover span {
  background: var(--primary-color);
  width: 20px;
}

/* Tryb natywny na urządzeniach dotykowych (YB-008, gallery-carousel.js): przewija
   przeglądarka (scroll-snap), więc swipe działa na iOS i nie blokuje pionowego scrolla.
   --yb-gallery-items = ile kafelków widać naraz (np. 1.2 → widać brzeg następnego). */
.yb-gallery__carousel.is-native {
  --yb-gallery-gap: 12px;
  display: flex;
  gap: var(--yb-gallery-gap);
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  touch-action: auto;
}

.yb-gallery__carousel.is-native::-webkit-scrollbar {
  display: none;
}

.yb-gallery__carousel.is-native > .yb-gallery__item {
  flex: 0 0 calc((100% - (var(--yb-gallery-items, 1.2) - 1) * var(--yb-gallery-gap)) / var(--yb-gallery-items, 1.2));
  scroll-snap-align: start;
}

.yb-gallery__dots {
  display: flex;
  justify-content: center;
  gap: 2px;
  margin-top: 10px;
}

/* Kropka to 8 px, ale cel dotyku ma 32 px. */
.yb-gallery__dot {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.yb-gallery__dot::before {
  content: '';
  display: block;
  width: 8px;
  height: 8px;
  border-radius: 30px;
  background: #d6d6d6;
  transition: all 0.3s ease;
}

.yb-gallery__dot.is-active::before {
  width: 20px;
  background: var(--primary-color);
}

/* Na profilu organizatora karuzela jest szersza - zdjęcia mogą być wyższe. */
.yb-gallery--organizer {
  margin: 8px 0 40px;
}

.yb-gallery--organizer .yb-gallery__img {
  height: 260px;
}

@media (max-width: 767px) {
  .yb-gallery__img,
  .yb-gallery--organizer .yb-gallery__img {
    height: 180px;
  }

  .yb-gallery__carousel .owl-nav {
    display: none;
  }
}

/* ===================================================================
   Zapis na wydarzenie (YB-033): formularz w modalu + „Zapisani” w panelu
   =================================================================== */

/* Bez JS modal otwiera link #event-signup-modal (:target). Z JS otwiera go modal.js klasą. */
.modal:target {
  opacity: 1;
  visibility: visible;
}

.modal:target .modal__container {
  transform: scale(1);
}

.yb-signup-form .yb-form__row {
  margin-bottom: 16px;
}

.yb-signup-form .yb-form__cols {
  gap: 0 16px;
}

/* 16 px: mniejsza czcionka w polu = iOS przybliża stronę przy fokusie. */
.yb-signup-form .yb-form__input {
  font-size: 16px;
}

.yb-form__optional {
  font-weight: 400;
  color: var(--dark-gray-color);
}

/* Honeypot: poza ekranem, nie display:none (część botów pomija ukryte pola). */
.yb-signup-form__hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.yb-signup-form .yb-form__input[aria-invalid='true'],
.yb-signup-form input[type='checkbox'][aria-invalid='true'] {
  border-color: #dc3545;
  outline-color: #dc3545;
}

.yb-signup-form__error {
  margin: 6px 0 0;
  font-size: 0.85rem;
  color: #a12525;
}

.yb-signup-form__error[hidden],
.yb-signup-form__status[hidden] {
  display: none;
}

.yb-signup-form__status {
  margin: 0 0 18px;
  padding: 12px 16px;
  border-radius: 10px;
  background: #fdeaea;
  color: #a12525;
  font-weight: 500;
}

.yb-signup-form__actions {
  margin-top: 8px;
}

.yb-signup-form__submit:disabled {
  opacity: 0.7;
  cursor: progress;
}

.yb-signup-form__success,
.yb-signup-form__unavailable {
  padding: 18px 20px;
  border-radius: 12px;
  font-size: 1rem;
  line-height: 1.6;
}

.yb-signup-form__success {
  background: #e7f6ec;
  color: #1c6b3a;
}

.yb-signup-form__success p {
  margin: 0;
}

.yb-signup-form__success:focus {
  outline: none;
}

.yb-signup-form__unavailable {
  background: var(--light-gray-color);
  color: var(--text-color);
}

/* --- Panel: zakładka „Zapisani” (YB-033, wygląd z YB-024) --- */
.yb-signups[aria-busy='true'] .yb-people,
.yb-signups[aria-busy='true'] .yb-sp {
  opacity: 0.5;
  transition: opacity 0.15s ease;
}

.yb-signups:focus {
  outline: 0;
}

/* Karta podsumowania: pierścień, legenda, przełącznik zapisów. */
.yb-sp {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) 300px;
  margin: 0 0 18px;
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: var(--yb-radius-card);
}

/* Dwa segmenty: przez YourBreak i dopisani. Reszta pierścienia to wolne miejsca. */
.yb-sp__ring {
  display: grid;
  place-items: center;
  width: 84px;
  height: 84px;
  margin: 20px 24px;
  border-radius: 50%;
  background: conic-gradient(
    var(--yb-action) 0 var(--yb-sp-a, 0deg),
    #9eaef0 var(--yb-sp-a, 0deg) var(--yb-sp-b, 0deg),
    #eceef6 var(--yb-sp-b, 0deg) 360deg
  );
}

.yb-sp__ring b {
  display: grid;
  place-items: center;
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: #fff;
  color: #2b2b2b;
  font-size: 19px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.yb-sp__legend {
  display: grid;
  align-content: center;
  gap: 6px;
  min-width: 0;
  padding: 20px 24px 20px 0;
}

.yb-sp__title {
  color: #2b2b2b;
  font-size: 15px;
  font-weight: 600;
}

.yb-sp__lg {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #555;
  font-size: 13.5px;
}

.yb-sp__lg b {
  margin-left: auto;
  color: #2b2b2b;
  font-variant-numeric: tabular-nums;
}

.yb-sp__dot {
  flex: 0 0 auto;
  width: 10px;
  height: 10px;
  border-radius: 3px;
}

.yb-sp__dot--yb {
  background: var(--yb-action);
}

.yb-sp__dot--manual {
  background: #9eaef0;
}

.yb-sp__dot--free {
  background: #eceef6;
  border: 1px solid #d9dcea;
}

.yb-sp__open {
  display: flex;
  align-items: center;
  padding: 20px 24px;
  background: #fafbff;
  border-left: 1px solid #efefef;
  border-radius: 0 var(--yb-radius-card) var(--yb-radius-card) 0;
}

.yb-sp__form {
  display: flex;
  flex: 1 1 auto;
  align-items: center;
  gap: 12px;
  margin: 0;
}

.yb-sp__open-text {
  display: grid;
  flex: 1 1 auto;
  min-width: 0;
}

.yb-sp__open-text b {
  color: #2b2b2b;
  font-size: 14.5px;
  font-weight: 600;
}

.yb-sp__open-text span {
  color: #7a7a7a;
  font-size: 12.5px;
}

/* Przełącznik: przycisk `role="switch"`, który wysyła formularz. */
.yb-switch,
.yb-switch:hover,
.yb-switch:focus {
  position: relative;
  flex: 0 0 auto;
  width: 46px;
  height: 28px;
  margin: 8px 0;
  padding: 0;
  background: #c9ccd8;
  border: 0;
  border-radius: 999px;
  box-shadow: none;
  cursor: pointer;
  transition: background-color 0.15s ease;
}

.yb-switch[aria-checked='true'],
.yb-switch[aria-checked='true']:hover,
.yb-switch[aria-checked='true']:focus {
  background: var(--yb-action);
}

.yb-switch:focus-visible {
  outline: 2px solid var(--yb-action);
  outline-offset: 2px;
}

/* Cel dotyku 44 px przy wyglądzie 28 px. */
.yb-switch::after {
  content: '';
  position: absolute;
  inset: -8px 0;
}

.yb-switch__knob {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #fff;
  transition: transform 0.15s ease;
}

.yb-switch[aria-checked='true'] .yb-switch__knob {
  transform: translateX(18px);
}

.yb-signups__bar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 12px;
}

.yb-signups__count {
  flex: 1 1 auto;
  color: #2b2b2b;
  font-size: 17px;
  font-weight: 600;
}

.yb-signups .yb-dashboard__empty p {
  margin: 0;
}

.yb-signups .yb-dashboard__empty .yb-btn {
  margin-top: 16px;
}

/* Lista osób: na desktopie wygląda jak tabela, do 900 px to karty. */
.yb-people {
  margin: 0;
  padding: 0;
  list-style: none;
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: var(--yb-radius-card);
}

.yb-person {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1.35fr) 52px minmax(0, 1.9fr) 104px 108px 40px;
  align-items: start;
  gap: 14px;
  padding: 12px 16px;
  border-bottom: 1px solid #efefef;
  color: var(--text-color);
  font-size: 14px;
}

.yb-person:last-child {
  border-bottom: 0;
}

.yb-person > span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.yb-person--head {
  align-items: center;
  background: #fafaf7;
  border-radius: var(--yb-radius-card) var(--yb-radius-card) 0 0;
  color: #7a7a7a;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.yb-person--anonymized {
  grid-template-columns: 1fr;
  color: #9a9a9a;
  font-style: italic;
}

.yb-person__name {
  display: grid;
  justify-items: start;
  gap: 4px;
}

.yb-person__name b {
  color: #2b2b2b;
  font-weight: 600;
}

.yb-person__contact {
  color: var(--dark-gray-color);
}

.yb-person__contact a {
  color: var(--yb-action-ink);
  text-decoration: none;
}

.yb-person__contact a:hover {
  text-decoration: underline;
}

.yb-person__party-pill {
  display: none;
}

.yb-person__texts {
  display: grid;
  gap: 6px;
}

.yb-person__q {
  color: #555;
  font-size: 13px;
}

/* Na desktopie kolumna ma nagłówek „Pytanie i Twoja notatka”, etykieta jest dla telefonu. */
.yb-person__q i {
  display: none;
  margin-right: 6px;
  color: #7a7a7a;
  font-style: normal;
  font-weight: 600;
}

/* Notatka organizatora: kłódka = widzisz ją tylko Ty. */
.yb-person__note {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 8px;
  background: var(--yb-action-soft);
  color: #2f3f86;
  font-size: 13px;
}

.yb-person__note .yb-icon {
  flex: 0 0 auto;
  margin-top: 2px;
}

.yb-person__date {
  color: var(--dark-gray-color);
  font-size: 13px;
}

.yb-person__menu {
  justify-self: end;
}

.yb-person.is-off .yb-person__name b,
.yb-person.is-off .yb-person__contact,
.yb-person.is-off .yb-person__contact a,
.yb-person.is-off .yb-person__date,
.yb-person.is-off .yb-person__party {
  color: #9a9a9a;
}

.yb-menu__panel--wide {
  width: 300px;
}

/* --- Zakładka „Notatki”: jedna prywatna notatka do wydarzenia (YB-024) --- */
.yb-notes {
  display: grid;
  gap: 12px;
  max-width: 660px;
  margin: 0;
  padding: 16px;
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: var(--yb-radius-card);
}

.yb-notes__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 10px;
}

.yb-notes__title {
  flex: 1 1 auto;
  margin: 0;
  color: #2b2b2b;
  font-size: 16px;
  font-weight: 600;
}

.yb-notes__private {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #2f3f86;
  font-size: 13px;
}

.yb-notes__field {
  min-height: 140px;
  margin: 0;
}

.yb-notes__all {
  min-height: var(--yb-h-md);
}

.yb-notes__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
}

.yb-notes__saved {
  display: inline-flex;
  flex: 1 1 auto;
  align-items: center;
  gap: 7px;
  color: var(--dark-gray-color);
  font-size: 13px;
}

.yb-notes__saved:not(:empty)::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #2e8b57;
}

/* --- Okno z formularzem (np. „Dodaj uczestnika”) --- */
.yb-dialog--form {
  width: min(560px, calc(100vw - 32px));
}

.yb-dialog__head {
  display: flex;
  align-items: center;
  gap: 12px;
}

.yb-dialog__head .yb-dialog__title {
  flex: 1 1 auto;
}

.yb-dialog__fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.yb-dialog__box .yb-form__row {
  margin: 0;
}

.yb-dialog__box .yb-dashboard__notice {
  margin: 0;
}

/* Bez JS link „Dodaj uczestnika” prowadzi do okna pokazanego w treści strony. */
dialog.yb-dialog:target:not([open]) {
  position: static;
  display: block;
  margin: 0 0 20px;
  border: 1px solid var(--border-color);
  box-shadow: none;
}

/* Stepper z polem liczbowym („Liczba osób”). Bez JS zostaje samo wąskie pole. */
.yb-stepper--input {
  width: fit-content;
}

.yb-stepper__input,
.yb-stepper__input:focus {
  width: 64px;
  height: 44px;
  margin: 0;
  padding: 0 8px;
  background: #fff;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  font-weight: 700;
  text-align: center;
}

.yb-stepper--input.is-ready .yb-stepper__input {
  width: 48px;
  -moz-appearance: textfield;
  appearance: textfield;
}

.yb-stepper--input.is-ready .yb-stepper__input::-webkit-outer-spin-button,
.yb-stepper--input.is-ready .yb-stepper__input::-webkit-inner-spin-button {
  margin: 0;
  -webkit-appearance: none;
}

.yb-stepper__input:focus-visible {
  outline: 2px solid var(--yb-action);
  outline-offset: -2px;
}

.yb-stepper__btn[hidden] {
  display: none;
}

@media (max-width: 900px) {
  .yb-sp {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .yb-sp__ring {
    margin: 16px;
  }

  .yb-sp__legend {
    padding: 16px 16px 16px 0;
  }

  .yb-sp__open {
    grid-column: 1 / -1;
    padding: 12px 16px;
    border-top: 1px solid #efefef;
    border-left: 0;
    border-radius: 0 0 var(--yb-radius-card) var(--yb-radius-card);
  }

  .yb-signups__bar {
    flex-wrap: wrap;
  }

  .yb-signups__bar .yb-btn {
    --yb-btn-h: var(--yb-h-md);
    font-size: 15px;
  }

  .yb-people {
    display: grid;
    gap: 12px;
    background: transparent;
    border: 0;
    border-radius: 0;
  }

  .yb-person--head {
    display: none;
  }

  .yb-person,
  .yb-person:last-child {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 4px 6px;
    padding: 12px 8px 12px 14px;
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: var(--yb-radius-card);
  }

  .yb-person > span {
    grid-column: 1;
  }

  .yb-person__name b {
    font-size: 15px;
  }

  .yb-person > .yb-person__menu {
    grid-row: 1 / span 2;
    grid-column: 2;
  }

  .yb-person__menu .yb-btn {
    --yb-btn-h: var(--yb-h-md);
  }

  .yb-person__contact,
  .yb-person__date {
    font-size: 13px;
  }

  /* Liczba osób jako plakietka obok statusu; „1 osoba” nic nie wnosi. */
  .yb-person__party {
    order: 5;
  }

  .yb-person__party-num {
    display: none;
  }

  .yb-person__party-pill {
    display: inline-flex;
  }

  .yb-person__party--single {
    display: none;
  }

  .yb-person__status {
    order: 4;
    margin-top: 4px;
  }

  .yb-person > .yb-person__texts {
    order: 6;
    grid-column: 1 / -1;
  }

  .yb-person__texts:empty {
    display: none;
  }

  .yb-person__q {
    padding: 6px 10px;
    border-radius: 8px;
    background: #f7f7f5;
  }

  .yb-person__q i {
    display: inline;
  }

  .yb-dialog__fields {
    grid-template-columns: 1fr;
  }

  /* Panel z dołu na całą szerokość ekranu: szerokość okna z formularzem (desktop) jest
     zapisana niżej w pliku niż reguła telefonu dla .yb-dialog i ją nadpisywała. */
  .yb-dialog--form {
    width: 100%;
  }

  .yb-dialog--form .yb-dialog__box::before {
    display: none;
  }

  .yb-dialog--form .yb-dialog__box {
    padding-top: 18px;
  }
}

/* --- Zakładka „Terminy” (YB-051 i YB-037, wygląd z YB-024) --- */
.yb-terms[aria-busy='true'] .yb-termlist {
  opacity: 0.5;
  transition: opacity 0.15s ease;
}

.yb-terms:focus {
  outline: 0;
}

/* Niewysłane szkice: jedna ramka z jedynym przyciskiem primary tej zakładki. */
.yb-terms__send {
  display: flex;
  align-items: center;
  gap: 12px 16px;
  margin: 0 0 18px;
  padding: 14px;
  background: var(--yb-action-soft);
  border: 1px solid #d5dcf7;
  border-radius: var(--yb-radius-card);
  color: #2f3f86;
  font-size: 14px;
}

.yb-terms__send > span {
  flex: 1 1 auto;
}

.yb-terms__send b {
  color: #22306e;
}

.yb-terms__send form {
  flex: 0 0 auto;
  margin: 0;
}

.yb-terms__bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 16px;
  margin: 0 0 12px;
}

.yb-terms__count {
  color: #2b2b2b;
  font-size: 17px;
  font-weight: 600;
}

.yb-terms__hint {
  flex: 1 1 auto;
  color: var(--dark-gray-color);
  font-size: 13px;
}

/* Powód, dla którego nie ma „Dodaj termin” (limit, 12 terminów, czas trwania). */
.yb-terms__blocked {
  flex: 1 1 100%;
  margin: 0;
  color: #5b6170;
  font-size: 13.5px;
}

.yb-termlist {
  margin: 0;
  padding: 0;
  list-style: none;
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: var(--yb-radius-card);
}

.yb-term {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, auto) 84px auto;
  align-items: center;
  gap: 8px 16px;
  padding: 14px 18px;
  border-bottom: 1px solid #efefef;
}

.yb-term:first-child {
  border-radius: var(--yb-radius-card) var(--yb-radius-card) 0 0;
}

.yb-term:last-child {
  border-bottom: 0;
  border-radius: 0 0 var(--yb-radius-card) var(--yb-radius-card);
}

/* Termin, którego nagłówek jest na górze strony. */
.yb-term.is-current {
  background: #f6f8fe;
}

.yb-term__date {
  color: #2b2b2b;
  font-size: 15px;
  font-weight: 600;
}

.yb-term__pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.yb-term__actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

/* Czego brakuje terminowi, który nie przeszedł wysyłki. */
.yb-term__errors {
  grid-column: 1 / -1;
  margin: 0;
  padding: 6px 10px 6px 26px;
  border-radius: 8px;
  background: #fdeadb;
  color: #8a3b06;
  font-size: 13px;
}

/* Błąd pod polem w oknie (np. data terminu). */
.yb-form__error {
  display: block;
  margin-top: 6px;
  padding: 6px 10px;
  border-radius: 8px;
  background: #fdeadb;
  color: #8a3b06;
  font-size: 13px;
}

.yb-dialog__fields--single {
  grid-template-columns: 1fr;
}

/* Pole z błędem z serwera w oknie (np. „Edytuj dane” uczestnika, YB-064). */
.yb-dialog .yb-form__input[aria-invalid='true'],
.yb-dialog .yb-stepper__input[aria-invalid='true'] {
  border-color: #b42318;
}

@media (max-width: 900px) {
  .yb-terms__send {
    display: grid;
    gap: 10px;
  }

  .yb-terms__send .yb-btn {
    width: 100%;
  }

  .yb-terms__bar .yb-btn {
    --yb-btn-h: var(--yb-h-md);
    font-size: 15px;
  }

  .yb-terms__hint {
    order: 3;
    flex-basis: 100%;
  }

  .yb-terms__count {
    flex: 1 1 auto;
  }

  .yb-termlist {
    display: grid;
    gap: 12px;
    background: transparent;
    border: 0;
    border-radius: 0;
  }

  /* Karta: data i „⋯” u góry, plakietki, błędy, na dole licznik, „Podgląd” i „Edytuj”. */
  .yb-term,
  .yb-term:first-child,
  .yb-term:last-child {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 8px;
    padding: 12px 8px 12px 14px;
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: var(--yb-radius-card);
  }

  .yb-term.is-current {
    background: #f6f8fe;
  }

  .yb-term__date {
    order: 1;
    flex: 1 1 0;
    min-width: 0;
  }

  .yb-term__actions {
    display: contents;
  }

  .yb-term__actions .yb-evmenu {
    order: 2;
  }

  .yb-term__pills {
    order: 3;
    flex: 1 1 100%;
  }

  .yb-term__errors {
    order: 4;
    flex: 1 1 100%;
  }

  .yb-term__sig {
    order: 5;
  }

  .yb-term__sig:empty {
    display: none;
  }

  .yb-term__sig .yb-sig {
    min-height: var(--yb-h-md);
  }

  .yb-term__actions > .yb-btn {
    --yb-btn-h: var(--yb-h-md);
    order: 6;
    font-size: 15px;
  }

  .yb-term__actions > .yb-term__open {
    order: 7;
    flex: 1 1 auto;
  }

  .yb-term__actions .yb-evmenu > summary {
    --yb-btn-h: var(--yb-h-md);
    background: transparent;
    border-color: transparent;
  }
}

/* --- Okno „Gdzie zapisać zmiany?” w terminie serii (YB-024) --- */
.yb-series-apply__changed {
  margin: 0;
  padding: 8px 12px;
  border-radius: 8px;
  background: #f7f7f5;
  color: #4a4a4a;
  font-size: 14px;
}

.yb-series-apply__changed b {
  color: #2b2b2b;
  font-weight: 600;
}

/* Lista opcji z drugą linią wyjaśnienia. */
.yb-optlist {
  display: grid;
  gap: 4px;
}

.yb-opt {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  min-height: var(--yb-h-md);
  padding: 8px 10px;
  border-radius: var(--yb-radius-control);
  cursor: pointer;
}

.yb-opt:hover {
  background: #f4f5f9;
}

.yb-opt:has(:checked) {
  background: var(--yb-action-soft);
}

.yb-opt input {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  margin: 2px 0 0;
  accent-color: var(--yb-action);
}

.yb-opt__body {
  display: grid;
  color: #2b2b2b;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.3;
}

.yb-opt__body small {
  color: #7a7a7a;
  font-size: 12.5px;
  font-weight: 400;
}

.yb-dialog__box > .yb-form__help {
  margin: 0;
}

/* --- Strona profilu: nagłówek i karta „Status konta” (YB-024, reguły z YB-025) --- */
.yb-profhead {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 6px 12px;
  margin: 0 0 20px;
}

.yb-profhead__title {
  margin: 0;
  font-size: 30px;
  line-height: 1.2;
}

.yb-profhead__badge:empty {
  display: none;
}

.yb-profhead__preview {
  grid-column: 3;
  grid-row: 1 / span 2;
}

.yb-profhead__text {
  grid-column: 1 / span 2;
  grid-row: 2;
}

.yb-acct {
  display: grid;
  gap: 10px;
  margin: 0 0 20px;
  padding: 16px;
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: var(--yb-radius-card);
}

.yb-acct__title {
  margin: 0;
  color: #2b2b2b;
  font-size: 16px;
  font-weight: 600;
}

.yb-acct__rows {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.yb-acct__row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.yb-acct__dot {
  flex: 0 0 auto;
  width: 10px;
  height: 10px;
  margin-top: 6px;
  border-radius: 50%;
  background: #c9ccd8;
}

.yb-acct__dot--ok {
  background: #2e8b57;
}

.yb-acct__dot--ver {
  background: var(--yb-action);
}

.yb-acct__dot--wait {
  background: #d29a1e;
}

.yb-acct__dot--bad {
  background: var(--yb-danger);
}

.yb-acct__body {
  display: grid;
  min-width: 0;
  font-size: 14px;
  line-height: 1.45;
}

.yb-acct__body b {
  color: #2b2b2b;
  font-weight: 600;
}

.yb-acct__body span {
  color: var(--dark-gray-color);
  font-size: 13.5px;
}

@media (max-width: 900px) {
  /* Tytuł i „Podgląd profilu” w jednym wierszu, pod nimi plakietka i zdanie. */
  .yb-profhead {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 6px 8px;
  }

  .yb-profhead__title {
    font-size: 24px;
  }

  .yb-profhead__preview,
  .yb-profhead__preview:focus {
    --yb-btn-px: 6px;
    grid-column: 2;
    grid-row: 1;
    background: transparent;
    border-color: transparent;
    font-size: 14px;
  }

  .yb-profhead__badge {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .yb-profhead__text {
    grid-column: 1 / -1;
    grid-row: 3;
  }
}

/* --- Telefon: cele dotyku min. 44 px w panelu (YB-024) ---
   Wygląd zostaje, rośnie tylko pole dotyku. Linki w zdaniach pomocy zostają zwykłymi linkami. */
@media (max-width: 900px) {
  .yb-back,
  .yb-back:focus {
    min-height: var(--yb-h-md);
    margin-bottom: 4px;
  }

  .yb-hub__line a.yb-pill {
    position: relative;
  }

  .yb-hub__line a.yb-pill::after {
    content: '';
    position: absolute;
    inset: -11px -4px;
  }

  /* ::before to widoczne kółko ikony, pole dotyku idzie na ::after. */
  .yb-dashboard .yb-tip__button::after {
    content: '';
    position: absolute;
    inset: -6px;
  }

  .yb-dashboard .yb-richtext__btn {
    min-height: var(--yb-h-md);
    padding-inline: 12px;
  }

  .yb-person__contact {
    display: grid;
  }

  .yb-person__contact br {
    display: none;
  }

  .yb-person__contact a {
    display: flex;
    align-items: center;
    min-height: var(--yb-h-md);
  }
}

/* --- Strona „Dla organizatorów” (YB-069) --- */
.for-org-hero__note {
  margin: 16px 0 0;
  font-size: 15px;
  color: var(--dark-color);
}

/* Żółte tło hero: drugi przycisk na białym, inaczej znika. */
.for-org-hero__login,
.for-org-hero__login:focus {
  background-color: var(--white-color);
}

.for-org-section-title {
  text-align: center;
  margin-bottom: 40px;
}

.for-org-offer__card {
  max-width: 860px;
  margin: 0 auto;
  padding: 48px 40px;
  border: 1px solid var(--border-color);
  border-radius: var(--yb-radius-card);
  background-color: var(--white-color);
  text-align: center;
}

.for-org-offer__lead {
  max-width: 640px;
  margin: 0 auto 32px;
  font-size: 18px;
  line-height: 1.6;
}

.for-org-offer__prices {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 28px;
}

.for-org-price {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 24px 16px;
  border: 1px solid var(--border-color);
  border-radius: var(--yb-radius-card);
  background-color: var(--light-gray-color);
}

.for-org-price--now {
  border-color: var(--primary-color);
  background-color: var(--white-color);
}

.for-org-price__label {
  font-size: 15px;
  font-weight: 600;
  color: var(--dark-gray-color);
}

.for-org-price__value {
  font-family: var(--font-secondary);
  font-size: 34px;
  line-height: 1.15;
  color: var(--dark-color);
}

.for-org-price--now .for-org-price__value {
  color: var(--primary-color);
}

.for-org-price__note {
  font-size: 15px;
  color: var(--dark-color);
}

.for-org-offer__note {
  max-width: 640px;
  margin: 0 auto 28px;
}

.for-org-steps__list,
.for-org-features__list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.for-org-step,
.for-org-feature {
  padding: 28px 24px;
  border-radius: var(--yb-radius-card);
  background-color: var(--white-color);
}

.for-org-feature {
  border: 1px solid var(--border-color);
}

.for-org-step__number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-bottom: 16px;
  border-radius: 50%;
  background-color: var(--secondary-color);
  font-weight: 700;
  font-size: 18px;
  color: var(--dark-color);
}

.for-org-step__title,
.for-org-feature__title {
  margin-bottom: 10px;
  font-size: 20px;
}

.for-org-step__text,
.for-org-feature__text {
  margin: 0;
  line-height: 1.55;
}

.for-org-cta__box {
  padding: 48px 24px;
  border-radius: var(--yb-radius-card);
  background-color: var(--secondary-color);
  text-align: center;
}

.for-org-cta__text {
  max-width: 640px;
  margin: 0 auto 28px;
  font-size: 18px;
  line-height: 1.6;
}

.for-org-cta__contact {
  margin: 24px 0 0;
  font-size: 15px;
}

.for-org-cta__contact a {
  color: var(--dark-color);
  text-decoration: underline;
}

@media (max-width: 991px) {
  .for-org-steps__list,
  .for-org-features__list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .for-org-hero .page-hero__buttons {
    flex-direction: column;
  }
  .for-org-offer__card {
    padding: 32px 20px;
  }
  .for-org-offer__prices,
  .for-org-steps__list,
  .for-org-features__list {
    grid-template-columns: minmax(0, 1fr);
  }
  .for-org-section-title {
    margin-bottom: 28px;
  }
  .for-org-price__value {
    font-size: 30px;
  }
}

/* Dwa akapity wstępu w boksie oferty po starcie płatności (YB-097). */
.for-org-offer__lead--first {
  margin-bottom: 12px;
}

/* Dopisek o okresie bezpłatnym na stronie rejestracji organizatora (YB-069) */
.yb-register__offer {
  margin: 0 0 24px;
  padding: 14px 16px;
  border-radius: var(--yb-radius-control);
  background-color: var(--light-gray-color);
  font-size: 15px;
  line-height: 1.5;
}

.yb-register__offer a {
  white-space: nowrap;
  text-decoration: underline;
}

/* =====================================================================
   Karty wydarzeń, lista z filtrami i strona wydarzenia (YB-028)
   Wygląd panelu organizatora poza panelem: tokeny --yb-*, białe karty z promieniem
   14 px, przyciski .yb-btn, plakietki .yb-pill. Makieta i decyzje:
   docs/context/…/YB-028-wydarzenie-karty-filtry-redesign/.
   Sekcja stoi na końcu pliku celowo: przy równej specyficzności wygrywa z .yb-btn.
   ===================================================================== */

/* Atrybut hidden przegrywa z `display` klasy - tu ma wygrać. */
.yb-btn[hidden],
.events-chips[hidden],
.events-toolbar__badge[hidden] {
  display: none;
}

/* --- Chip kategorii: 1:1 z .organizer-profile__category (YB-027) --- */
.event-chip,
a.event-chip:focus {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 12px;
  border-radius: 999px;
  background: var(--yb-action-soft);
  color: var(--yb-action-ink);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
  text-decoration: none;
  transition: background-color 0.15s ease;
}

a.event-chip:hover {
  background: var(--yb-action-soft-press);
  color: var(--yb-action-ink);
}

a.event-chip:focus-visible {
  outline: 2px solid var(--yb-action);
  outline-offset: 2px;
}

/* --- Serce „ulubione”: .yb-btn--icon, pole 44 px (52 px w pasku na telefonie) --- */
.favorite-btn,
.favorite-btn:focus {
  color: #3b3b3b;
}

.favorite-btn:hover {
  color: var(--yb-action-ink);
}

.favorite-btn.is-favorite,
.favorite-btn.is-favorite:focus,
.favorite-btn.is-favorite:hover {
  color: var(--yb-action);
}

.favorite-btn .yb-icon {
  width: 22px;
  height: 22px;
}

.favorite-btn.is-favorite .yb-icon path {
  fill: currentColor;
}

/* --- Znak weryfikacji YourBreak: pieczęć z ptaszkiem, poza profilem sam znak --- */
.yb-verified {
  display: inline-flex;
  margin-left: 2px;
  color: var(--yb-action);
  vertical-align: -4px;
}

.yb-verified .yb-icon {
  display: block;
}

/* --- Karta wydarzenia na liście (card-event-list.php) --- */
.results-grid {
  gap: 14px;
}

.event-card-list {
  position: relative;
  display: grid;
  grid-template-columns: 166px minmax(0, 1fr);
  gap: 20px;
  padding: 14px;
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: var(--yb-radius-card);
  transition: border-color 0.15s ease;
}

.event-card-list:hover,
.event-card:hover {
  border-color: var(--yb-action-line);
}

.event-card-list__media {
  position: relative;
  width: 166px;
  height: 166px;
  overflow: hidden;
  border-radius: var(--yb-radius-control);
  background: #ecebe4;
}

.event-card-list__thumbnail {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Stan zapisów: pasek na zdjęciu. Inny kształt i inne miejsce niż chip kategorii. */
.event-card-state {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  padding: 5px 6px;
  background: rgba(31, 36, 64, 0.9);
  color: #fff;
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.25;
  text-align: center;
}

.event-card-state--full {
  background: rgba(180, 35, 24, 0.94);
}

.event-card-list--off .event-card-list__thumbnail,
.event-card--off .event-card__thumbnail {
  filter: grayscale(1);
  opacity: 0.6;
}

.event-card-list__body,
.event-card__body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  min-width: 0;
}

.event-card-list__title,
.event-card__title {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  color: var(--dark-color);
  font-family: var(--font-secondary);
  font-weight: 700;
  line-height: 1.3;
  -webkit-box-orient: vertical;
}

.event-card-list__title {
  padding-right: 44px;
  font-size: 18px;
  -webkit-line-clamp: 3;
  line-clamp: 3;
}

.event-card-list__link,
.event-card-list__link:focus,
.event-card__link,
.event-card__link:focus {
  color: inherit;
  text-decoration: none;
}

/* Cała karta klikalna: link tytułu rozciągnięty na kartę. */
.event-card-list__link::after,
.event-card__link::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
}

.event-card-list:hover .event-card-list__link,
.event-card:hover .event-card__link {
  color: var(--yb-action-ink);
}

.event-card-list--off .event-card-list__link,
.event-card--off .event-card__link {
  color: #6c6b6b;
}

.event-card-list:has(.event-card-list__link:focus-visible),
.event-card:has(.event-card__link:focus-visible) {
  outline: 2px solid var(--yb-action);
  outline-offset: 2px;
}

@supports selector(:has(*)) {
  .event-card-list__link:focus-visible,
  .event-card__link:focus-visible {
    outline: 0;
  }
}

/* Własne cele nad rozciągniętym linkiem: kategoria, miasto, serce. */
.event-card-list .event-chip,
.event-card .event-chip,
a.event-card-meta__item,
.event-card-list__fav,
.event-card__fav {
  position: relative;
  z-index: 2;
}

.event-card-meta {
  display: flex;
  flex-direction: column;
  gap: 3px;
  color: #555;
  font-size: 14.5px;
  line-height: 1.4;
}

.event-card-meta__item,
a.event-card-meta__item:focus {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #555;
  text-decoration: none;
}

.event-card-meta__item .yb-icon {
  flex: 0 0 auto;
  color: #8a8a8a;
}

a.event-card-meta__item:hover {
  color: var(--yb-action-ink);
  text-decoration: underline;
}

a.event-card-meta__item:focus-visible {
  outline: 2px solid var(--yb-action);
  outline-offset: 2px;
}

.event-card-price {
  display: flex;
  align-items: center;
  min-height: 26px;
  color: #2b2b2b;
  font-size: 18px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

/* „Brak informacji o cenie” albo dopisek organizatora: mniejszy, szary. */
.event-card-price--note {
  color: var(--dark-gray-color);
  font-size: 13.5px;
  font-weight: 500;
  white-space: normal;
}

.event-card-price--free {
  color: #1c6b3a;
}

.event-card-list__fav,
.event-card-list__fav:focus {
  position: absolute;
  top: 6px;
  right: 6px;
}

/* --- Karta w siatce (card-event.php: „Podobne wydarzenia”, strona główna) --- */
.event-card {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: var(--yb-radius-card);
  transition: border-color 0.15s ease;
}

/* Stała wysokość zdjęcia (kadr od środka): karty w rzędzie są równe. */
.event-card__media {
  position: relative;
  flex: 0 0 auto;
  height: 200px;
  overflow: hidden;
  background: #ecebe4;
}

.event-card__thumbnail {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.event-card__body {
  flex: 1 1 auto;
  padding: 14px 16px 16px;
}

.event-card__title {
  font-size: 16.5px;
  -webkit-line-clamp: 2;
  line-clamp: 2;
}

.event-card .event-card-meta {
  flex-flow: row wrap;
  gap: 2px 14px;
  font-size: 14px;
}

.event-card .event-card-meta__item--place {
  flex-basis: 100%;
}

.event-card .event-card-price {
  margin-top: auto;
  padding-top: 4px;
  font-size: 17px;
}

.event-card .event-card-price--note {
  font-size: 13.5px;
}

.event-card__fav,
.event-card__fav:focus,
.event-card__fav:hover {
  position: absolute;
  top: 10px;
  right: 10px;
  background: #fff;
  border-color: transparent;
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.16);
}

@media (max-width: 768px) {
  .event-card-list {
    grid-template-columns: 96px minmax(0, 1fr);
    gap: 12px;
    padding: 12px;
  }

  .event-card-list__media {
    width: 96px;
    height: 96px;
  }

  /* Chip kategorii nie wchodzi pod serce; tytuł ma całą szerokość. */
  .event-card-list__category {
    max-width: calc(100% - 36px);
  }

  .event-card-list__title {
    padding-right: 0;
    font-size: 16px;
  }

  /* Data i godzina w jednym wierszu, miasto pod spodem: krótsza karta. */
  .event-card-list .event-card-meta {
    flex-flow: row wrap;
    gap: 2px 14px;
    font-size: 14px;
  }

  .event-card-list .event-card-meta__item--place {
    flex-basis: 100%;
  }

  /* Na telefonie miasto nie jest osobnym celem: za mały obok tytułu, dotyk idzie w kartę. */
  a.event-card-meta__item {
    pointer-events: none;
  }

  .event-card-state {
    padding: 4px 3px;
    font-size: 11px;
  }

  .event-card-list__fav,
  .event-card-list__fav:focus {
    top: 2px;
    right: 2px;
  }

  .event-card-price {
    font-size: 17px;
  }

  .event-card-price--note {
    font-size: 13.5px;
  }

  /* Chip zostaje 28 px, pole dotyku rośnie do 44 px. */
  .event-card-list a.event-chip::after,
  .event-card a.event-chip::after,
  .event-summary__category a.event-chip::after {
    content: '';
    position: absolute;
    inset: -8px 0;
  }

  .event-summary__category a.event-chip {
    position: relative;
  }
}

/* --- Pasek nad listą: „Filtry”, „Sortuj”, licznik, chipsy aktywnych filtrów --- */
.events-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 0 12px;
  margin-bottom: 16px;
}

/* „Filtry” otwiera panel z dołu - tylko tam, gdzie panel boczny jest schowany. */
.events-toolbar__filters {
  display: none;
}

.events-toolbar__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--yb-action);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.events-toolbar__count {
  grid-column: 1;
  grid-row: 1;
  margin: 0;
  padding: 11px 0;
  color: #2b2b2b;
  font-size: 15px;
  font-weight: 600;
  line-height: 22px;
}

#events-count-number {
  font-weight: 700;
}

.events-toolbar__sorted {
  display: none;
}

.events-sort {
  grid-column: 2;
  grid-row: 1;
  justify-self: end;
}

.events-sort__label {
  color: var(--dark-gray-color);
  font-weight: 500;
}

.events-sort__current b {
  color: var(--yb-action-ink);
  font-weight: 600;
}

.events-chips {
  display: flex;
  flex-wrap: wrap;
  grid-column: 1 / -1;
  align-items: center;
  gap: 8px;
  margin-top: 2px;
}

.active-chips {
  display: contents;
}

.filter-chip {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 2px;
  min-height: 32px;
  padding: 0 4px 0 12px;
  border-radius: 999px;
  background: var(--yb-action-soft);
  color: var(--yb-action-ink);
  font-size: 13.5px;
  font-weight: 600;
  white-space: nowrap;
}

.filter-chip__remove,
.filter-chip__remove:focus {
  position: relative;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  margin: 0;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 50%;
  box-shadow: none;
  color: inherit;
  cursor: pointer;
}

.filter-chip__remove:hover {
  background: var(--yb-action-soft-press);
  color: var(--yb-action-ink);
}

.filter-chip__remove:focus-visible {
  outline: 2px solid var(--yb-action);
  outline-offset: 1px;
}

.events-chips__clear {
  flex: 0 0 auto;
}

/* Paginacja listy wydarzeń w kolorze akcji. */
.results-wrapper .nav-links .page-numbers {
  border-radius: var(--yb-radius-control);
}

.results-wrapper .nav-links .page-numbers.current,
.results-wrapper .nav-links .page-numbers:hover {
  background-color: var(--yb-action);
  border-color: var(--yb-action);
  color: #fff;
}

@media (max-width: 991px) {
  /* „Filtry” i „Sortuj” w jednym wierszu, 44 px. */
  .events-toolbar {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 0 8px;
    margin-bottom: 10px;
  }

  .events-toolbar__filters {
    display: inline-flex;
    grid-column: 1;
    grid-row: 1;
  }

  .events-toolbar--no-sort .events-toolbar__filters {
    grid-column: 1 / -1;
  }

  .events-sort {
    display: block;
    justify-self: stretch;
  }

  .events-sort > .events-sort__button,
  .events-sort > .events-sort__button:focus {
    display: flex;
    width: 100%;
    min-height: var(--yb-h-md);
    background: #fff;
    border-color: var(--yb-action-line);
    font-size: 15px;
  }

  .events-sort__label {
    color: inherit;
    font-weight: 600;
  }

  .events-sort__current,
  .events-sort__button .yb-icon:last-child {
    display: none;
  }

  /* Chipsy w jednym przewijanym rzędzie. */
  .events-chips {
    flex-wrap: nowrap;
    grid-row: 2;
    margin: 12px calc(var(--grid-gutter-width) / -2) 0;
    padding: 0 calc(var(--grid-gutter-width) / 2);
    overflow-x: auto;
    overflow-y: hidden;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
  }

  .events-chips::-webkit-scrollbar {
    display: none;
  }

  .filter-chip {
    min-height: 36px;
    padding-right: 2px;
  }

  .filter-chip__remove,
  .filter-chip__remove:focus {
    width: 36px;
    height: 36px;
  }

  .filter-chip__remove::after {
    content: '';
    position: absolute;
    inset: -4px;
  }

  .events-toolbar__count {
    grid-column: 1 / -1;
    grid-row: 3;
    padding: 10px 0 0;
    font-size: 14px;
  }

  .events-toolbar__sorted {
    display: inline;
  }
}

/* --- Panel filtrów (filters-sidebar.php, organizer-filters-sidebar.php) ---
   Reguły pod `.filters-panel--sheet`: sidebar bloga używa tych samych klas bazowych. */
.filters-panel--sheet {
  padding: 20px 24px 8px;
  border: 1px solid var(--border-color);
  border-radius: var(--yb-radius-card);
  box-shadow: none;
}

.filters-panel--sheet .filter-search {
  margin-bottom: 8px;
}

.filters-panel--sheet .filter-search .filter-search__input {
  min-height: var(--yb-h-md);
  padding-top: 0;
  padding-bottom: 0;
  border-radius: var(--yb-radius-control);
}

.filters-panel--sheet .filter-search .filter-search__input:focus {
  border-color: var(--yb-action);
}

.filters-panel--sheet .filter-group {
  margin: 0;
  padding: 6px 0 14px;
  border-top: 1px solid #efefef;
  border-bottom: 0;
}

/* Pierwsza grupa bez linii nad sobą. */
.filters-panel--sheet .filter-group:not(.filter-group ~ .filter-group) {
  border-top: 0;
}

.filters-panel--sheet .filter-group.collapsed,
.filters-panel--sheet .filter-group--favorites {
  padding-bottom: 6px;
}

.filters-panel--sheet .filter-group-header {
  min-height: var(--yb-h-md);
  padding: 0;
}

.filters-panel--sheet .filter-group-header h4 {
  margin: 0;
  color: #2b2b2b;
  font-family: var(--font-secondary);
  font-size: 15.5px;
  font-weight: 600;
}

.filters-panel--sheet .filter-toggle-icon {
  right: 6px;
  width: 9px;
  height: 9px;
  border-color: #6c6b6b;
}

.filters-panel--sheet .filter-group.collapsed .filter-toggle-icon {
  border-color: #6c6b6b;
}

.filters-panel--sheet .filter-options {
  padding-top: 0;
}

.filters-panel--sheet .filter-item {
  padding-bottom: 0;
}

.filters-panel--sheet .filter-item label {
  min-height: 28px;
  margin: 0;
  font-size: 14.5px;
}

.filters-panel--sheet .filter-group--favorites .filter-item label {
  min-height: var(--yb-h-md);
}

.filters-panel--sheet .filter-item--free {
  margin-top: 6px;
}

.filters-panel--sheet .checkbox-label {
  color: var(--text-color);
  font-weight: 400;
}

.filters-panel--sheet .checkbox-label::before {
  box-sizing: border-box;
  border: 1.5px solid #b5b5b5;
  border-radius: var(--yb-radius-chip);
}

.filters-panel--sheet .checkbox-label::after {
  content: '';
  left: 0;
  width: 20px;
  height: 20px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E")
    center / 14px 14px no-repeat;
}

.filters-panel--sheet .filter-item input[type='checkbox']:checked + .checkbox-label {
  color: #2b2b2b;
  font-weight: 500;
}

.filters-panel--sheet .filter-item input[type='checkbox']:checked + .checkbox-label::before {
  background-color: var(--yb-action);
  border-color: var(--yb-action);
}

.filters-panel--sheet .filter-item input[type='checkbox']:focus-visible + .checkbox-label::before {
  outline: 2px solid var(--yb-action);
  outline-offset: 2px;
}

/* Liczba wydarzeń przy pozycji: w nawiasie, zaraz za nazwą. */
.filters-panel--sheet .term-count {
  color: var(--dark-gray-color);
  font-size: 13.5px;
  font-variant-numeric: tabular-nums;
}

.filters-panel--sheet .filter-show-more,
.filters-panel--sheet .filter-show-more:focus,
.filters-panel--sheet .filter-show-more:hover {
  min-height: 32px;
  margin-top: 2px;
  padding: 0;
  background: none;
  color: var(--yb-action-ink);
  font-size: 13.5px;
  font-weight: 600;
}

.filters-panel--sheet .filter-show-more:hover {
  text-decoration: underline;
}

.filters-panel--sheet .slider-values {
  margin: 0 0 6px;
  color: #555;
  font-size: 13.5px;
  font-weight: 400;
  font-variant-numeric: tabular-nums;
}

/* Suwaki (noUiSlider) w kolorze akcji: cienka szyna, okrągły uchwyt 22 px. */
.filters-panel--sheet .noUi-target {
  height: 4px;
  margin: 16px 11px 14px;
  background: #e3e5ee;
  border: 0;
  border-radius: 2px;
  box-shadow: none;
}

.filters-panel--sheet .noUi-connects {
  border-radius: 2px;
}

.filters-panel--sheet .noUi-connect {
  background: var(--yb-action);
}

.filters-panel--sheet .noUi-horizontal .noUi-handle {
  top: -9px;
  right: -11px;
  width: 22px;
  height: 22px;
  background: #fff;
  border: 2px solid var(--yb-action);
  border-radius: 50%;
  box-shadow: 0 1px 4px rgba(20, 25, 50, 0.18);
  cursor: grab;
}

.filters-panel--sheet .noUi-handle::before,
.filters-panel--sheet .noUi-handle::after {
  display: none;
}

/* Uchwyt 22 px, pole dotyku 44 px. */
.filters-panel--sheet .noUi-touch-area {
  position: absolute;
  inset: -11px;
  width: auto;
  height: auto;
}

.filters-panel--sheet .noUi-handle:focus-visible {
  outline: 2px solid var(--yb-action);
  outline-offset: 2px;
}

.filters-panel--sheet .date-range-input-wrapper .date-filter-input {
  min-height: var(--yb-h-md);
  padding: 0 40px 0 12px;
  background: #fff
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236c6b6b' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='17' rx='2'/%3E%3Cpath d='M16 2v4M8 2v4M3 10h18'/%3E%3C/svg%3E")
    right 12px center / 18px 18px no-repeat;
  border-radius: var(--yb-radius-control);
  font-size: 15px;
  cursor: pointer;
}

.filters-panel--sheet .date-range-input-wrapper .date-filter-input::placeholder {
  color: var(--dark-gray-color);
}

.filters-panel--sheet .date-range-input-wrapper .date-filter-input:focus {
  border-color: var(--yb-action);
  outline: 0;
}

.filters-panel--sheet .filters-submit {
  margin: 12px 0;
}

/* Stopka z „Pokaż N wydarzeń” jest częścią panelu z dołu. */
.filters-sheet-foot {
  display: none;
}

/* Telefon i tablet: panel z dołu jak menu „⋯” w panelu organizatora. */
@media (max-width: 991px) {
  .filters-panel--sheet {
    top: 64px;
    right: 0;
    bottom: 0;
    left: 0;
    width: auto;
    max-width: none;
    height: auto;
    padding: 0;
    border: 0;
    border-radius: 22px 22px 0 0;
    box-shadow: 0 -10px 40px rgba(15, 20, 45, 0.2);
    transform: translateY(105%);
    visibility: hidden;
    transition:
      transform 0.28s ease,
      visibility 0s linear 0.28s;
  }

  .filters-panel--sheet.open {
    left: 0;
    transform: none;
    visibility: visible;
    transition: transform 0.28s ease;
  }

  /* Uchwyt panelu. */
  .filters-panel--sheet::before {
    content: '';
    flex: 0 0 auto;
    width: 40px;
    height: 5px;
    margin: 8px auto 2px;
    border-radius: 3px;
    background: #d9d9d9;
  }

  .filters-panel--sheet .filters-mobile-header {
    flex: 0 0 auto;
    gap: 4px;
    padding: 2px 8px 6px 20px;
    border-bottom: 1px solid #efefef;
  }

  .filters-panel--sheet .filters-mobile-header h3 {
    margin: 0 auto 0 0;
    color: #2b2b2b;
    font-family: var(--font-secondary);
    font-size: 19px;
    font-weight: 700;
  }

  .filters-panel--sheet .close-filters-btn,
  .filters-panel--sheet .close-filters-btn:focus {
    color: #3b3b3b;
  }

  .filters-panel--sheet .filters-scroll-container {
    min-height: 0;
    padding: 12px 20px 0;
    overscroll-behavior: contain;
  }

  .filters-sheet-foot {
    display: block;
    flex: 0 0 auto;
    padding: 10px 16px calc(12px + env(safe-area-inset-bottom, 0px));
    background: #fff;
    border-top: 1px solid #efefef;
    box-shadow: 0 -6px 18px rgba(0, 0, 0, 0.05);
  }

  /* Wiersz checkboxa 34 px (wyjątek z YB-024), nagłówki grup i przyciski 44 px. */
  .filters-panel--sheet .filter-item label {
    min-height: 34px;
    font-size: 15px;
  }

  .filters-panel--sheet + .filters-overlay.open,
  .filters-overlay.open {
    background-color: rgba(17, 20, 35, 0.48);
  }
}

@media (max-width: 991px) and (prefers-reduced-motion: reduce) {
  .filters-panel--sheet,
  .filters-panel--sheet.open {
    transition: none;
  }
}

/* --- Strona wydarzenia (single-event.php) --- */
.event-main-content,
.event-sidebar-box {
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: var(--yb-radius-card);
}

.event-main-content {
  padding: 18px;
}

.event-featured-image img {
  border-radius: var(--yb-radius-control);
}

.event-summary__category {
  margin-top: 10px;
}

/* Dane i cena w treści strony: tylko tam, gdzie nie ma boksu zapisu (telefon, tablet). */
.event-summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid #efefef;
}

.event-summary .event-buy__price {
  padding-top: 14px;
  border-top: 1px solid #efefef;
}

.event-description--with-line {
  margin-top: 22px;
  padding-top: 22px;
  border-top: 1px solid #efefef;
}

/* Jedna lista z ikonami zamiast trzech kolorowych ramek. */
.event-facts {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.event-facts__item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: #555;
  font-size: 15px;
  line-height: 1.45;
}

.event-facts__item > .yb-icon {
  flex: 0 0 auto;
  margin-top: 1px;
  color: #8a8a8a;
}

.event-facts__text {
  min-width: 0;
}

.event-facts__text b {
  display: block;
  color: #2b2b2b;
  font-weight: 600;
}

/* Miasto: link w kolorze akcji, bez podkreślenia. */
.event-facts__text a,
.event-facts__text a:focus {
  color: var(--yb-action-ink);
  font-weight: 600;
  text-decoration: none;
}

.event-facts__text a:hover {
  color: var(--yb-action-press);
}

.event-facts__text a:focus-visible {
  outline: 2px solid var(--yb-action);
  outline-offset: 2px;
}

.event-facts__text small {
  display: block;
  margin-top: 2px;
  color: var(--dark-gray-color);
  font-size: 13px;
}

/* Boks zapisu (desktop). */
.event-sidebar-box {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
  padding: 24px;
}

.event-sidebar-header {
  gap: 8px;
  margin-bottom: 0;
}

.event-sidebar-box .event-title {
  margin: 0 auto 0 0;
  color: var(--dark-color);
  font-size: 22px;
  font-weight: 700;
  line-height: 1.3;
}

.event-sidebar-header__fav {
  margin: -6px -8px 0 0;
}

.event-buy {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid #efefef;
}

.event-buy__price {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 12px;
}

.event-price {
  color: #2b2b2b;
  font-size: 28px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
}

.event-price__currency {
  color: #555;
  font-size: 16px;
  font-weight: 600;
}

.event-price--note {
  color: var(--dark-gray-color);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.4;
}

.event-price--free {
  color: #1c6b3a;
  font-size: 22px;
  line-height: 1.4;
}

/* Zamknięte zapisy: plakietka przy cenie, jedno zdanie, wyjście do innych wydarzeń. */
.event-buy__note {
  margin: 0;
  color: #555;
  font-size: 14px;
}

/* „YourBreak nie jest organizatorem.” z dymkiem „i”. */
.event-disclaimer {
  gap: 6px;
  color: var(--dark-gray-color);
  font-size: 12.5px;
  line-height: 1.3;
}

.event-disclaimer .tooltip-trigger {
  position: relative;
  width: 16px;
  height: 16px;
  margin: 0;
  background: transparent;
  border: 1.5px solid #9aa3d6;
  color: var(--yb-action);
  font-size: 10px;
  font-style: normal;
  font-weight: 700;
  line-height: 1;
  cursor: help;
}

/* Kółko 16 px, pole dotyku 44 px. */
.event-disclaimer .tooltip-trigger::after {
  content: '';
  position: absolute;
  inset: -14px;
}

.event-disclaimer .tooltip-trigger:focus-visible {
  outline: 2px solid var(--yb-action);
  outline-offset: 2px;
}

.event-disclaimer .tooltip-text {
  width: min(260px, calc(100vw - 32px));
  margin-left: calc(min(260px, 100vw - 32px) / -2);
  line-height: 1.45;
}

.event-disclaimer:focus-within .tooltip-text {
  visibility: visible;
  opacity: 1;
}

/* Dodatkowe informacje: ton „informacja” z panelu. */
.event-additional-info {
  display: flex;
  gap: 12px;
  margin-top: 24px;
  padding: 14px 16px;
  border-radius: var(--yb-radius-card);
  background: var(--yb-action-soft);
  color: #2f3f86;
  font-size: 14px;
  line-height: 1.55;
}

.event-additional-info > .yb-icon {
  flex: 0 0 auto;
  margin-top: 1px;
}

.event-additional-info__body {
  min-width: 0;
}

.event-additional-info__title {
  margin: 0 0 2px;
  color: inherit;
  font-family: var(--font-secondary);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.55;
}

.event-additional-info__body p {
  margin: 0 0 8px;
}

.event-additional-info__body a,
.event-additional-info__body a:focus,
.event-additional-info__body a:hover {
  color: inherit;
  text-decoration: underline;
}

/* Baner odwołania (YB-030): ton „błąd” z panelu, bez kolorowej krawędzi. */
.yb-event-cancelled {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 0 0 20px;
  padding: 14px 16px;
  border-radius: var(--yb-radius-card);
  background: #fdecec;
  color: #7a1a14;
  font-size: 14.5px;
  line-height: 1.5;
}

.yb-event-cancelled > .yb-icon {
  flex: 0 0 auto;
  margin-top: 1px;
  color: var(--yb-danger);
}

.yb-event-cancelled__title {
  display: block;
  font-size: 15.5px;
  font-weight: 600;
}

.yb-event-cancelled__link,
.yb-event-cancelled__link:focus,
.yb-event-cancelled__link:hover {
  color: #7a1a14;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Karta organizatora: logo kwadratowe obok nazwy, sam znak weryfikacji, „Zobacz profil”. */
.event-organizer-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
  margin: 20px 0 0;
  padding: 20px 24px;
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: var(--yb-radius-card);
}

.event-organizer-card__top {
  display: flex;
  align-items: center;
  gap: 14px;
}

.event-organizer-card__logo {
  flex: 0 0 auto;
  width: 64px;
  height: 64px;
  border: 1px solid var(--border-color);
  border-radius: var(--yb-radius-control);
  object-fit: cover;
}

.event-organizer-card__who {
  min-width: 0;
}

.event-organizer-card__label {
  display: block;
  color: var(--dark-gray-color);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.event-organizer-card__name {
  margin: 0;
  color: #2b2b2b;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.3;
}

.event-organizer-card__name a,
.event-organizer-card__name a:focus {
  color: inherit;
  text-decoration: none;
}

.event-organizer-card__name a:hover {
  color: var(--yb-action-ink);
}

.event-organizer-card__desc {
  margin: 0;
  color: #555;
  font-size: 14.5px;
  line-height: 1.6;
}

.event-organizer-card__link {
  justify-self: start;
  margin-left: -12px;
}

/* Przyklejony pasek zapisu: tam, gdzie nie ma boksu zapisu. */
.event-sticky-cta {
  display: none;
}

@media (min-width: 769px) {
  .event-main-content {
    padding: 24px;
  }
}

@media (min-width: 992px) {
  .event-detail-row {
    --event-layout-gap: 28px;
  }

  .event-main-content {
    padding: 30px;
  }

  .event-summary {
    display: none;
  }
}

@media (max-width: 991px) {
  /* Boks zapisu zastępuje pasek na dole. Kolumna zostaje: karta organizatora zjeżdża
     pod treść wydarzenia bez duplikowania markupu w szablonie. */
  .event-sidebar-box--desktop {
    display: none;
  }

  .event-sidebar-sticky {
    position: static;
  }

  .event-organizer-card {
    margin-top: 0;
  }

  .event-sticky-cta {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 999;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
    padding: 10px 12px max(12px, env(safe-area-inset-bottom));
    background: #fff;
    border-top: 1px solid var(--border-color);
    box-shadow: 0 -6px 18px rgba(0, 0, 0, 0.06);
  }

  .event-sticky-cta__actions {
    display: flex;
    gap: 10px;
  }

  .event-sticky-cta__main {
    flex: 1 1 auto;
    min-width: 0;
  }

  /* Zapisy zamknięte: w miejscu przycisku stan (1. linia) i wyjście do innych wydarzeń (2. linia). */
  .event-sticky-cta__state,
  a.event-sticky-cta__state:focus,
  a.event-sticky-cta__state:hover {
    display: grid;
    flex: 1 1 auto;
    align-content: center;
    gap: 2px;
    min-width: 0;
    min-height: var(--yb-h-lg);
    padding: 0 4px;
    text-decoration: none;
  }

  .event-sticky-cta__state b {
    color: #2b2b2b;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.25;
  }

  .event-sticky-cta__state--alert b {
    color: #a12525;
  }

  .event-sticky-cta__state span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--yb-action-ink);
    font-size: 14px;
    font-weight: 600;
    line-height: 1.25;
  }

  a.event-sticky-cta__state:focus-visible {
    border-radius: var(--yb-radius-control);
    outline: 2px solid var(--yb-action);
    outline-offset: 2px;
  }

  /* Miejsce na przyklejony pasek jest na końcu strony (pod stopką), nie pod treścią
     wydarzenia: inaczej przed „Podobnymi wydarzeniami” robiła się pusta przerwa. */
  body.single-event {
    padding-bottom: 100px;
  }

  /* Odstęp przed „Podobnymi wydarzeniami” daje sama sekcja (jej górny padding). */
  .single-event-page.section-padding:has(+ .similar-events-section) {
    padding-bottom: 0;
  }
}

@media (max-width: 768px) {
  .single-event-page.section-padding {
    padding-top: 22px;
  }

  .single-event-page .container {
    padding-right: 10px;
    padding-left: 10px;
  }

  .event-detail-row {
    --bs-gutter-x: 10px;
    row-gap: 14px;
  }

  .event-main-content {
    padding: 12px;
  }

  .event-featured-image {
    margin-bottom: 12px;
  }

  .event-page-title__heading {
    font-size: 24px;
  }

  .event-description h2 {
    font-size: 20px;
  }

  .event-description--with-line {
    margin-top: 16px;
    padding-top: 16px;
  }

  .event-additional-info {
    margin-top: 16px;
  }

  .event-organizer-card {
    padding: 16px;
  }

  /* Jak tytuł sekcji „Wydarzenia” na profilu organizatora na telefonie. */
  .similar-events__title {
    margin-bottom: 20px;
    font-size: 24px;
  }

  /* Podobne wydarzenia na telefonie: karty w jednym przewijanym rzędzie. */
  .similar-events__list {
    flex-wrap: nowrap;
    row-gap: 0;
    overflow-x: auto;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .similar-events__list::-webkit-scrollbar {
    display: none;
  }

  .similar-events__list > [class*='col-'] {
    flex: 0 0 274px;
    width: 274px;
    max-width: 82%;
    scroll-snap-align: start;
  }

  .similar-events__list .event-card__media {
    height: 170px;
  }
}

/* =========================================================================
 * Panel: Subskrypcja (YB-077, wygląd YB-090, kierunek A z makiety)
 * Karta stanu, ekran zakupu (wybory + podsumowanie), pasek z kwotą na telefonie, historia płatności.
 * Treść zależna od wyboru (tryb, firma / osoba prywatna, faktura) przełącza się przez :has().
 * ====================================================================== */

/* Tekst pomocniczy na ekranie powitalnym (YB-081, YB-083) używa tej klasy. */
.yb-buy__note {
  margin: 0;
  color: #5f6270;
  font-size: 14px;
}

.yb-pill--dot::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
}

.yb-subcard,
.yb-co__card {
  margin: 0 0 20px;
  padding: 24px;
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: var(--yb-radius-card);
}

/* --- Karta stanu --- */
.yb-subcard {
  display: grid;
  gap: 28px;
  align-items: center;
}

.yb-subcard--perks {
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
}

.yb-subcard__main {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.yb-subcard__top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
  margin: 0;
}

.yb-subcard__eyebrow {
  color: var(--dark-gray-color);
  font-size: 13px;
  font-weight: 600;
}

.yb-subcard__title {
  margin: 0;
  color: #2b2b2b;
  font-family: 'League Spartan', 'Trebuchet MS', sans-serif;
  font-size: 30px;
  font-weight: 700;
  line-height: 1.1;
}

.yb-subcard__text {
  max-width: 60ch;
  margin: 0;
  color: #4b4e5c;
  font-size: 15px;
  line-height: 1.5;
}

.yb-subcard__facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  margin: 8px 0 0;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  overflow: hidden;
}

.yb-subcard__facts > div {
  padding: 12px 16px;
  border-left: 1px solid var(--border-color);
}

.yb-subcard__facts > div:first-child {
  border-left: 0;
}

.yb-subcard__facts dt {
  color: var(--dark-gray-color);
  font-size: 12.5px;
}

.yb-subcard__facts dd {
  margin: 2px 0 0;
  color: #2b2b2b;
  font-size: 15px;
  font-weight: 600;
}

.yb-subcard__actions {
  margin: 8px 0 0;
}

.yb-subcard__actions .yb-btn--tertiary {
  margin-left: -12px;
}

.yb-meter {
  display: grid;
  gap: 6px;
  margin-top: 6px;
}

.yb-meter__bar {
  display: block;
  height: 8px;
  border-radius: 99px;
  background: #eceef4;
  overflow: hidden;
}

.yb-meter__bar > span {
  display: block;
  height: 100%;
  border-radius: 99px;
  background: var(--yb-action);
}

.yb-meter--ok .yb-meter__bar > span {
  background: #2e8b57;
}

.yb-meter--wait .yb-meter__bar > span {
  background: #d29a1e;
}

.yb-meter__label {
  color: var(--dark-gray-color);
  font-size: 12.5px;
}

.yb-subcard__perks {
  display: grid;
  gap: 10px;
  padding: 18px 20px;
  border-radius: 12px;
  background: var(--yb-action-soft);
}

.yb-subcard__perks-title {
  margin: 0;
  color: #2f3f86;
  font-size: 13px;
  font-weight: 600;
}

.yb-subcard__perks ul {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.yb-subcard__perks li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  color: #2b2b2b;
  font-size: 14px;
  line-height: 1.35;
}

.yb-subcard__perks li svg {
  flex: 0 0 auto;
  margin-top: 1px;
  color: var(--yb-action);
}

/* --- Ekran zakupu --- */
.yb-co {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 0 24px;
  align-items: start;
}

.yb-co__main {
  display: grid;
  min-width: 0;
}

.yb-co__title {
  margin: 0 0 14px;
  padding: 0;
  color: #2b2b2b;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.3;
}

fieldset.yb-co__card {
  min-width: 0;
}

/* <legend> nie słucha marginesu w siatce: odstęp daje float + clear. */
fieldset.yb-co__card > legend.yb-co__title {
  float: left;
  width: 100%;
}

.yb-co__opts {
  clear: both;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.yb-opt {
  position: relative;
  display: grid;
  align-content: start;
  gap: 6px;
  padding: 16px 16px 16px 48px;
  border: 1.5px solid var(--border-color);
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
}

.yb-opt input {
  position: absolute;
  top: 18px;
  left: 16px;
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: var(--yb-action);
}

.yb-opt:has(input:checked) {
  border-color: var(--yb-action);
  background: #fafbff;
  box-shadow: 0 0 0 3px var(--yb-action-soft);
}

.yb-opt:has(input:focus-visible) {
  outline: 2px solid var(--yb-action);
  outline-offset: 2px;
}

.yb-opt.is-disabled {
  cursor: not-allowed;
  background: #fafafa;
}

.yb-opt.is-disabled .yb-opt__title,
.yb-opt.is-disabled .yb-opt__methods {
  opacity: .55;
}

.yb-opt__title {
  color: #2b2b2b;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.3;
}

.yb-opt__text {
  color: #5f6270;
  font-weight: 400;
  font-size: 13.5px;
  line-height: 1.45;
}

.yb-co .yb-opt__tag {
  position: absolute;
  line-height: 1.4;
  top: -10px;
  right: 12px;
  padding: 2px 9px;
  border-radius: 999px;
  background: var(--yb-action);
  color: #fff;
  font-size: 11.5px;
  font-weight: 600;
}

.yb-opt__methods {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
}

.yb-opt__methods > span {
  padding: 1px 7px;
  border: 1px solid var(--border-color);
  border-radius: var(--yb-radius-chip);
  background: #fff;
  color: #4b4e5c;
  font-size: 12px;
  font-weight: 600;
}

.yb-co__buyer {
  display: grid;
  gap: 16px;
}

.yb-co__buyer > .yb-co__title {
  margin: 0;
}

/* Przełącznik segmentowy w zakupie: dwa radia w jednym pasku. Tylko w `.yb-co`, bo `.yb-seg` ma też „Powtarzanie” (YB-051). */
.yb-co .yb-seg {
  display: inline-grid;
  grid-auto-columns: 1fr;
  grid-auto-flow: column;
  justify-self: start;
  gap: 4px;
  margin: 0;
  padding: 4px;
  border: 0;
  border-radius: 12px;
  background: #f0f1f5;
}

.yb-co .yb-seg label {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 18px;
  border-radius: 9px;
  color: #4b4e5c;
  font-size: 15px;
  font-weight: 500;
  white-space: nowrap;
  cursor: pointer;
}

.yb-co .yb-seg input {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}

.yb-co .yb-seg label:has(input:checked) {
  background: #fff;
  color: #2b2b2b;
  font-weight: 600;
  box-shadow: 0 1px 3px rgba(20, 25, 60, .12);
}

.yb-co .yb-seg label:has(input:focus-visible) {
  outline: 2px solid var(--yb-action);
  outline-offset: 1px;
}

.yb-co .yb-form__row {
  margin: 0;
}

.yb-co__nip {
  max-width: 240px;
}

/* Pola firmy i osoby prywatnej: widać tylko te, które pasują do wyboru. Serwer i tak sprawdza dane.
   YB-109: imię i nazwisko zawsze, adres dla firmy i dla osoby prywatnej z fakturą. */
.yb-co__company,
.yb-co__person {
  display: grid;
  gap: 12px;
}

.yb-co:has(#yb_buyer_private:checked) .yb-co__company,
.yb-co:has(#yb_buyer_company:checked) .yb-co__private {
  display: none;
}

.yb-co__address {
  display: none;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 12px;
}

.yb-co:has(#yb_buyer_company:checked) .yb-co__address,
.yb-co:has(#yb_buyer_private:checked):has(#yb_wants_invoice:checked) .yb-co__address {
  display: grid;
}

.yb-co:has(#yb_wants_invoice:checked) .yb-co__noinvoice {
  display: none;
}

.yb-co__wide {
  grid-column: 1 / -1;
}

.yb-co .yb-co__noinvoice {
  margin: 0;
}

/* Podsumowanie i oś czasu: wersja dla wybranego trybu. */
.yb-co .yb-co__if-one {
  display: none;
}

.yb-co:has(input[name="yb_mode"][value="one_off"]:checked) .yb-tl.yb-co__if-one {
  display: grid;
}

.yb-co:has(input[name="yb_mode"][value="one_off"]:checked) .yb-co__if-auto {
  display: none;
}

.yb-co:has(input[name="yb_mode"][value="one_off"]:checked) .yb-paybar .yb-co__if-one {
  display: inline;
}

.yb-sum {
  position: sticky;
  top: var(--yb-sticky-top);
  display: grid;
  gap: 16px;
}

.yb-sum > .yb-co__title {
  margin: 0;
}

.yb-sum__price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px;
  margin: 0;
}

.yb-sum__price b {
  color: #2b2b2b;
  font-family: 'League Spartan', 'Trebuchet MS', sans-serif;
  font-size: 36px;
  line-height: 1;
}

.yb-sum__price span {
  color: var(--dark-gray-color);
  font-size: 14px;
}

.yb-sum__rows {
  display: grid;
  gap: 8px;
  margin: 0;
  font-size: 14.5px;
}

.yb-sum__rows > div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.yb-sum__rows dt {
  color: #4b4e5c;
  font-weight: 400;
}

.yb-sum__rows dd {
  margin: 0;
  color: #2b2b2b;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.yb-sum__rows .yb-sum__total {
  align-items: baseline;
  margin-top: 4px;
  padding-top: 12px;
  border-top: 1px solid var(--border-color);
}

.yb-sum__total dt {
  color: #2b2b2b;
  font-weight: 600;
}

.yb-sum__total dd {
  font-family: 'League Spartan', 'Trebuchet MS', sans-serif;
  font-size: 24px;
}

.yb-tl {
  display: grid;
  margin: 0;
  padding: 0;
  list-style: none;
}

.yb-tl li {
  position: relative;
  display: grid;
  padding: 0 0 14px 28px;
  font-size: 14px;
  line-height: 1.4;
}

.yb-tl li:last-child {
  padding-bottom: 0;
}

.yb-tl li::before {
  content: '';
  position: absolute;
  top: 4px;
  left: 4px;
  width: 12px;
  height: 12px;
  border: 2px solid var(--yb-action);
  border-radius: 50%;
  background: #fff;
  box-sizing: border-box;
}

.yb-tl li.is-now::before {
  background: var(--yb-action);
}

.yb-tl li::after {
  content: '';
  position: absolute;
  top: 18px;
  bottom: 0;
  left: 9px;
  width: 2px;
  background: var(--yb-action-line);
}

.yb-tl li:last-child::after {
  display: none;
}

.yb-tl b {
  color: #2b2b2b;
  font-weight: 600;
}

.yb-tl span {
  color: #5f6270;
  font-size: 13.5px;
}

.yb-sum__consent {
  display: flex;
  align-items: flex-start;
  font-weight: 400;
  font-size: 14px;
  line-height: 1.45;
}

.yb-sum__consent input {
  margin-top: 1px;
  accent-color: var(--yb-action);
}

.yb-sum__consent a {
  color: var(--yb-action-ink);
  text-decoration: underline;
}

.yb-sum__trust {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 0;
  color: var(--dark-gray-color);
  font-size: 12.5px;
  text-align: center;
}

.yb-paybar {
  display: none;
}

/* --- Przed akceptacją profilu: kroki --- */
.yb-sublock__steps {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.yb-sublock__steps li {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #3b3b3b;
  font-size: 14.5px;
}

.yb-sublock__steps a {
  color: var(--yb-action-ink);
  font-weight: 600;
  text-decoration: underline;
}

.yb-sublock__dot {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #eceef4;
  color: #6f7389;
  font-size: 12px;
  font-weight: 700;
}

.yb-sublock__steps .is-done .yb-sublock__dot {
  background: #e7f6ec;
  color: #1c6b3a;
}

.yb-sublock__steps .is-current .yb-sublock__dot {
  background: #fdf1d6;
  color: #7a5207;
}

/* --- Historia płatności --- */
.yb-paylog__table {
  width: 100%;
  margin: 0;
  border: 0;
  border-collapse: collapse;
  font-size: 14.5px;
}

.yb-paylog__table th {
  padding: 0 12px 10px;
  border: 0;
  border-bottom: 1px solid var(--border-color);
  background: none;
  color: var(--dark-gray-color);
  font-size: 12.5px;
  font-weight: 600;
  text-align: left;
}

.yb-paylog__table td {
  padding: 14px 12px;
  border: 0;
  border-bottom: 1px solid #eef0f4;
  color: #2b2b2b;
  vertical-align: top;
}

.yb-paylog__table tr:last-child td {
  border-bottom: 0;
}

.yb-paylog__table th:first-child,
.yb-paylog__table td:first-child {
  padding-left: 0;
}

.yb-paylog__table th:last-child,
.yb-paylog__table td:last-child {
  padding-right: 0;
}

.yb-paylog__table small {
  display: block;
  color: var(--dark-gray-color);
  font-size: 13px;
}

.yb-paylog__table small a {
  color: inherit;
  text-decoration: underline;
}

.yb-paylog__table .yb-paylog__num {
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  text-align: right;
  white-space: nowrap;
}

@media (max-width: 1100px) {
  .yb-subcard--perks,
  .yb-co {
    grid-template-columns: 1fr;
  }

  .yb-sum {
    position: static;
  }
}

@media (max-width: 900px) {
  .yb-subcard,
  .yb-co__card {
    margin-bottom: 16px;
    padding: 18px;
  }

  .yb-subcard {
    gap: 16px;
  }

  .yb-subcard__title {
    font-size: 26px;
  }

  .yb-subcard__perks ul,
  .yb-co__opts {
    grid-template-columns: 1fr;
  }

  .yb-subcard__facts {
    grid-template-columns: 1fr;
  }

  .yb-subcard__facts > div {
    border-top: 1px solid var(--border-color);
    border-left: 0;
  }

  .yb-subcard__facts > div:first-child {
    border-top: 0;
  }

  .yb-co .yb-seg {
    display: grid;
    justify-self: stretch;
  }

  .yb-co .yb-seg label {
    min-height: 44px;
    padding: 0 10px;
  }

  .yb-co__address {
    grid-template-columns: 120px minmax(0, 1fr);
  }

  /* Przycisk jest w pasku na dole ekranu; w podsumowaniu zostaje zgoda. */
  .yb-sum__submit {
    display: none;
  }

  .yb-paybar {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 910;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 12px;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px));
    border-top: 1px solid var(--border-color);
    background: #fff;
    box-shadow: 0 -6px 18px rgba(0, 0, 0, .06);
  }

  .yb-paybar__sum {
    display: grid;
    margin: 0;
    line-height: 1.2;
  }

  .yb-paybar__sum b {
    color: #2b2b2b;
    font-size: 17px;
  }

  .yb-paybar__sum span {
    color: var(--dark-gray-color);
    font-size: 12px;
  }

  .yb-paybar .yb-btn {
    --yb-btn-px: 12px;
    width: 100%;
  }

  /* Pasek z kwotą zastępuje dolne menu panelu. */
  .yb-panel-page:has(.yb-paybar) .yb-bnav {
    display: none;
  }

  .yb-panel-page:has(.yb-paybar) {
    padding-bottom: 84px;
  }

  html:has(.yb-paybar) {
    scroll-padding: 90px 0 120px;
  }

  .yb-panel-page:has(.yb-paybar) .yb-toast-region {
    bottom: 96px;
  }

  /* Historia: każdy wiersz to kafelek z kwotą i stanem po prawej. */
  .yb-paylog__table thead {
    display: none;
  }

  .yb-paylog__table,
  .yb-paylog__table tbody {
    display: block;
  }

  .yb-paylog__table tr {
    display: grid;
    grid-template-areas:
      'date num'
      'period state'
      'invoice state';
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 2px 12px;
    padding: 12px 0;
    border-bottom: 1px solid #eef0f4;
  }

  .yb-paylog__table tr:first-child {
    padding-top: 0;
  }

  .yb-paylog__table tr:last-child {
    border-bottom: 0;
  }

  .yb-paylog__table td {
    padding: 0 !important;
    border: 0;
    font-size: 14px;
  }

  .yb-paylog__date {
    grid-area: date;
    font-weight: 600;
  }

  .yb-paylog__date small {
    display: inline;
    margin-left: 6px;
    font-weight: 400;
  }

  .yb-paylog__table .yb-paylog__num {
    grid-area: num;
  }

  .yb-paylog__period {
    grid-area: period;
    color: var(--dark-gray-color);
  }

  .yb-paylog__state {
    grid-area: state;
    align-self: center;
    text-align: right;
  }

  .yb-paylog__invoice {
    grid-area: invoice;
    color: var(--dark-gray-color);
  }

  .yb-paylog__invoice small {
    display: inline;
    margin-left: 6px;
  }
}

/* Panel: ekran powitalny i karta „Wyślij do weryfikacji” (YB-081, YB-083) */
.yb-welcome__steps,
.yb-review__list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 20px;
}

.yb-welcome__steps li {
  display: grid;
  gap: 2px;
}

.yb-welcome__steps span {
  color: #5f6270;
  font-size: 14px;
}

.yb-access-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 16px;
}

.yb-access-bar form {
  margin: 0;
}

/* ===================================================================
   YB-101: belka nad menu, nagłówek i stopka (inc/site-header.php, footer.php)
   Makieta: docs/context/changes/YB-101-nowy-wyglad-calej-strony/makieta.html
   Nagłówek: telefon i tablet do 1023 px. Stopka: zwijane listy do 899 px.
   =================================================================== */

/* --- Belka nad menu --- */
.yb-topbar {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 8px 16px;
  background: var(--secondary-color);
  color: var(--dark-color);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.35;
  text-align: center;
}

.yb-topbar__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.yb-topbar__link:hover,
.yb-topbar__link:focus {
  color: inherit;
  text-decoration-thickness: 2px;
}

.yb-topbar .yb-icon {
  width: 16px;
  height: 16px;
}

/* --- Nagłówek --- */
.yb-header {
  position: sticky;
  top: var(--wp-admin--admin-bar--height, 0px);
  z-index: 800;
  background: #fff;
  border-bottom: 1px solid var(--border-color);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

/* Poniżej 600 px pasek admina WordPressa przewija się razem ze stroną. */
@media (max-width: 600px) {
  .yb-header {
    top: 0;
  }
}

.yb-header.is-scrolled {
  border-bottom-color: transparent;
  box-shadow: 0 4px 16px rgba(31, 36, 64, 0.08);
}

/* Otwarte menu (strony albo konta) nad paskiem zapisu i oknem właściciela, pod oknami dialogowymi. */
.yb-header:has(details[open]) {
  z-index: 1050;
}

/* `header > div` ze starego CSS daje kremowe tło i odstępy: tu białe i własne. */
.yb-header .yb-header__in {
  display: flex;
  align-items: center;
  gap: 24px;
  max-width: 1440px;
  height: var(--yb-header-h);
  margin: 0 auto;
  padding: 0 32px;
  background: #fff;
}

.yb-header__logo {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  min-height: 44px;
  border-radius: var(--yb-radius-control);
}

.yb-header__logo-img {
  display: block;
  width: 140px;
  height: 50px;
  object-fit: contain;
}

.yb-nav {
  margin-left: auto;
}

.yb-nav__list {
  display: flex;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.yb-nav__link {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 14px;
  border-radius: var(--yb-radius-control);
  color: var(--dark-color);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
}

.yb-nav__link:hover,
.yb-nav__link:focus-visible {
  background: var(--yb-action-soft);
  color: var(--yb-action-ink);
}

.yb-nav__link[aria-current] {
  color: var(--yb-action-ink);
  font-weight: 600;
}

.yb-nav__link[aria-current]::after {
  content: '';
  position: absolute;
  right: 14px;
  bottom: 6px;
  left: 14px;
  height: 2px;
  border-radius: 2px;
  background: var(--yb-action);
}

.yb-header__actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Bez menu (np. wersja EN bez przypisanych menu) przyciski idą do prawej. */
.yb-header__logo + .yb-header__actions {
  margin-left: auto;
}

.yb-header__fav {
  position: relative;
  color: var(--dark-color);
}

/* Serce trochę większe niż inne ikony: cieńszy kształt wygląda przy 18 px na mniejszy (Konrad, 2026-10-30). */
.yb-header__fav .yb-icon {
  width: 24px;
  height: 24px;
}

.yb-header__fav .favorites-counter {
  top: 4px;
  right: 3px;
  width: auto;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--yb-action);
  box-shadow: none;
  font-size: 11px;
  font-weight: 700;
  line-height: 18px;
}

.yb-header__fav .favorites-counter:empty {
  display: none;
}

.yb-header__cta .yb-icon {
  width: 18px;
  height: 18px;
}

/* --- Konto w nagłówku (YB-108) ---
   Gość: ikona osoby (link do logowania). Zalogowany: kółko z literą albo zdjęciem i menu `.yb-menu`. */
.yb-header .yb-header__login.is-active,
.yb-header .yb-header__account.is-active > summary,
.yb-header .yb-header__account[open] > summary {
  background: var(--yb-action-soft);
  color: var(--yb-action-ink);
}

.yb-header__login,
.yb-header__account > summary {
  color: var(--dark-color);
  cursor: pointer;
}

.yb-header__login .yb-icon {
  width: 24px;
  height: 24px;
  stroke-width: 2;
}

.yb-header__login .yb-icon * {
  stroke-width: 2;
}

.yb-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: var(--yb-action);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
}

img.yb-avatar--photo {
  object-fit: cover;
  background: #e9e6dc;
}

.yb-header__account[open] > summary .yb-avatar {
  box-shadow: 0 0 0 3px var(--yb-action-line);
}

@media (min-width: 901px) {
  .yb-header__account .yb-menu__panel {
    width: 280px;
  }
}

/* Na desktopie menu konta też ma nagłówek z nazwą (w panelu jest tylko w panelu z dołu). */
.yb-header__account .yb-menu__head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 4px;
  padding: 6px 8px 10px;
  border-bottom: 1px solid #efefef;
}

.yb-header__account .yb-menu__head-body {
  display: grid;
  min-width: 0;
  line-height: 1.35;
}

.yb-header__account .yb-menu__head-body b {
  overflow: hidden;
  color: #2b2b2b;
  font-size: 15px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.yb-header__account .yb-menu__head-body span {
  overflow: hidden;
  color: var(--dark-gray-color);
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.yb-header__account .yb-avatar--lg {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  font-size: 16px;
}

.yb-sheet__lead {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

/* Menu na telefonie: <details>, działa bez JS. */
.yb-header__menu {
  display: none;
}

.yb-header__menu > summary {
  list-style: none;
}

.yb-header__menu > summary::-webkit-details-marker {
  display: none;
}

.yb-header__ico-open,
.yb-header__ico-close {
  display: inline-flex;
}

.yb-header__ico-close,
.yb-header__menu[open] .yb-header__ico-open {
  display: none;
}

.yb-header__menu[open] .yb-header__ico-close {
  display: inline-flex;
}

.yb-header__menu[open] > summary {
  background: var(--yb-action-soft);
  color: var(--yb-action-ink);
}

/* Przyciemnienie pod menu. Kliknięcie w nie trafia w <summary>, więc zamyka menu także bez JS.
   z-index -1 w kontekście nagłówka: leży nad stroną, ale pod białym paskiem nagłówka. */
.yb-header__menu[open] > summary::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  background: rgba(31, 36, 64, 0.35);
  cursor: default;
}

.yb-sheet {
  position: absolute;
  top: 100%;
  right: 0;
  left: 0;
  max-height: calc(100vh - var(--yb-header-h));
  max-height: calc(100dvh - var(--yb-header-h));
  overflow-y: auto;
  padding: 8px 16px 20px;
  background: #fff;
  border-bottom: 1px solid var(--border-color);
  box-shadow: 0 16px 24px -8px rgba(31, 36, 64, 0.16);
}

.yb-sheet__list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.yb-sheet__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 52px;
  padding: 0 4px;
  border-bottom: 1px solid #eee;
  color: var(--dark-color);
  font-size: 17px;
  font-weight: 500;
  text-decoration: none;
}

.yb-sheet__link:hover,
.yb-sheet__link:focus-visible {
  color: var(--yb-action-ink);
}

.yb-sheet__link[aria-current] {
  color: var(--yb-action-ink);
  font-weight: 600;
}

.yb-sheet__link .yb-icon {
  color: var(--dark-gray-color);
}

.yb-sheet .yb-header__cta {
  margin-top: 20px;
}

@media (max-width: 1023px) {
  .yb-header .yb-header__in {
    gap: 4px;
    padding: 0 8px 0 16px;
  }

  .yb-header__logo-img {
    width: 106px;
    height: 38px;
  }

  .yb-nav,
  .yb-header__actions > .yb-header__cta {
    display: none;
  }

  .yb-header__actions {
    margin-left: auto;
    gap: 0;
  }

  .yb-header__menu {
    display: block;
  }

  /* Chowanie przy przewijaniu w dół (site-header.js). */
  .yb-header.is-hidden {
    transform: translateY(-100%);
    box-shadow: none;
  }

  /* Otwarte menu: nagłówek zawsze widoczny i bez transform (inaczej panel konta z position: fixed
     liczyłby się od przesuniętego nagłówka i uciekał poza ekran). */
  .yb-header.is-hidden:has(details[open]) {
    transform: none;
  }

  html:has(.yb-header__menu[open]) {
    overflow: hidden;
  }

  /* Blokada przewijania przy otwartym menu (strony albo konta). `body` ma `overflow-x: hidden`,
     a gdy `html` dostaje `overflow: hidden`, body staje się osobnym kontenerem przewijania
     i przyklejony nagłówek ucieka za górną krawędź. Na czas blokady body bez overflow. */
  html:has(.yb-header__menu[open]) body,
  html.yb-sheet-open body {
    overflow: visible;
  }
}

@media (prefers-reduced-motion: reduce) {
  .yb-header {
    transition: none;
  }
}

/* --- Stopka --- */
.yb-footer {
  background: var(--yb-footer-bg);
  color: var(--yb-footer-ink);
  font-size: 15px;
}

.yb-footer__in {
  max-width: 1440px;
  margin: 0 auto;
  padding: 56px 32px 0;
}

.yb-footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 40px;
}

.yb-footer__logo {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

.yb-footer__logo-img {
  display: block;
  width: 140px;
  height: 50px;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

.yb-footer__claim {
  max-width: 260px;
  margin: 14px 0 0;
  color: var(--yb-footer-muted);
  font-size: 14.5px;
  line-height: 1.55;
}

.yb-social {
  display: flex;
  gap: 8px;
  margin-top: 20px;
}

.yb-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1.5px solid var(--yb-footer-line);
  border-radius: var(--yb-radius-control);
  color: var(--yb-footer-ink);
}

.yb-social a:hover,
.yb-social a:focus-visible {
  background: #2f3350;
  color: #fff;
}

/* Tytuł kolumny. Na desktopie kolumna jest zawsze rozwinięta, więc <summary> nie reaguje. */
.yb-footer__title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  color: var(--yb-footer-muted);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  list-style: none;
  pointer-events: none;
}

.yb-footer__title::-webkit-details-marker {
  display: none;
}

.yb-footer__title .yb-icon {
  display: none;
  transition: transform 0.15s;
}

.yb-footer__list,
.yb-footer__legal {
  margin: 0;
  padding: 0;
  list-style: none;
}

.yb-footer__list a {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  color: var(--yb-footer-ink);
  font-size: 15px;
  text-decoration: none;
}

.yb-footer__list a:hover,
.yb-footer__list a:focus-visible {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.yb-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 24px;
  padding: 18px 0 22px;
  border-top: 1px solid var(--yb-footer-line);
  color: var(--yb-footer-muted);
  font-size: 13.5px;
}

.yb-footer__copy {
  margin-right: auto;
}

.yb-footer__legal {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
}

.yb-footer__bottom a {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  color: var(--yb-footer-muted);
  text-decoration: none;
}

.yb-footer__bottom a:hover,
.yb-footer__bottom a:focus-visible {
  color: #fff;
  text-decoration: underline;
}

.yb-footer a:focus-visible,
.yb-footer summary:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

@media (max-width: 1100px) and (min-width: 900px) {
  .yb-footer__grid {
    grid-template-columns: 1.2fr 1fr 1fr 1fr;
    gap: 24px;
  }
}

@media (max-width: 899px) {
  .yb-footer__in {
    padding: 36px 16px 0;
  }

  .yb-footer__grid {
    display: block;
    padding-bottom: 8px;
  }

  .yb-footer__brand {
    padding-bottom: 20px;
  }

  .yb-footer__logo-img {
    width: 112px;
    height: 40px;
  }

  .yb-footer__col {
    border-bottom: 1px solid var(--yb-footer-line);
  }

  .yb-footer__title {
    min-height: 52px;
    margin: 0;
    color: var(--yb-footer-ink);
    font-size: 15px;
    letter-spacing: 0;
    text-transform: none;
    cursor: pointer;
    pointer-events: auto;
  }

  .yb-footer__title .yb-icon {
    display: block;
  }

  .yb-footer__col[open] .yb-footer__title .yb-icon {
    transform: rotate(180deg);
  }

  .yb-footer__list {
    padding-bottom: 10px;
  }

  .yb-footer__list a {
    min-height: 44px;
  }

  .yb-footer__bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    border-top: 0;
  }

  .yb-footer__legal {
    flex-direction: column;
    gap: 0;
  }

  .yb-footer__bottom a {
    min-height: 44px;
  }

  .yb-footer__copy {
    order: 9;
    margin: 10px 0 0;
  }
}

/* ===================================================================
   YB-102 / YB-104: strona główna i strony treści w wyglądzie panelu
   Makieta: docs/context/changes/YB-102-strona-glowna-redesign/makieta.html
   Jeden breakpoint telefonu: 899 px (jak panel, 900).
   =================================================================== */

:root {
  /* Ta sama szerokość co reszta strony (.container: 1440 px, margines 15 px), Konrad 2026-10-30. */
  --yb-container: 1440px;
  --yb-gutter: calc(var(--grid-gutter-width) / 2);
  --yb-section-y: 72px;
  --yb-shadow-card: 0 10px 30px rgba(31, 36, 64, 0.1);
  --yb-shadow-pop: 0 16px 40px rgba(31, 36, 64, 0.18);
  --yb-grey-bg: #f3f3ef;
}

@media (max-width: 899px) {
  :root {
    --yb-section-y: 48px;
  }
}

.yb-container {
  box-sizing: border-box;
  width: 100%;
  max-width: var(--yb-container);
  margin: 0 auto;
  padding: 0 var(--yb-gutter);
}

@media (max-width: 899px) {
  .yb-container {
    padding: 0 16px;
  }
}

.yb-section {
  padding: var(--yb-section-y) 0;
}

.yb-section--white {
  background: #fff;
}

.yb-eyebrow {
  display: block;
  margin-bottom: 6px;
  color: var(--yb-action-ink);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  line-height: 1.4;
  text-transform: uppercase;
}

.yb-empty {
  margin: 0;
  color: var(--dark-gray-color);
}

/* Przyciski dodane w YB-102 */
.yb-btn--round,
.yb-btn--round:focus {
  --yb-btn-px: 0;
  width: 44px;
  flex: 0 0 auto;
  padding: 0;
  background: #fff;
  border-color: var(--border-color);
  border-radius: 999px;
  color: var(--dark-color);
}

.yb-btn--round:hover:not(:disabled) {
  background: #fff;
  border-color: var(--yb-action-line);
  color: var(--yb-action-ink);
}

.yb-btn--round:disabled {
  opacity: 0.35;
  cursor: default;
}

.yb-btn--on-dark,
.yb-btn--on-dark:focus {
  background: #fff;
  border-color: #fff;
  color: var(--yb-action-ink);
}

.yb-btn--on-dark:hover {
  background: var(--yb-action-soft);
  border-color: var(--yb-action-soft);
  color: var(--yb-action-ink);
}

/* --- Nagłówek sekcji --- */
.yb-shead {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px 16px;
  margin-bottom: 28px;
}

.yb-shead__title {
  margin: 0;
  color: var(--dark-color);
  font-family: var(--font-secondary);
  font-size: 32px;
  font-weight: 700;
  line-height: 1.2;
}

.yb-shead__nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.yb-shead--center {
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.yb-rail-arrows {
  display: inline-flex;
  gap: 8px;
}

/* „Zobacz wszystkie” pod paskiem: tylko na telefonie, w nagłówku sekcji link znika. */
.yb-section-more {
  display: none;
  margin-top: 20px;
}

@media (max-width: 899px) {
  .yb-section-more {
    display: flex;
  }
  .yb-shead--has-more .yb-shead__nav {
    display: none;
  }
}

.yb-rail-arrows[hidden] {
  display: none;
}

@media (max-width: 899px) {
  .yb-shead {
    margin-bottom: 18px;
  }
  .yb-shead__title {
    font-size: 25px;
  }
  .yb-rail-arrows {
    display: none;
  }
}

/* --- Pasek przewijany (zamiast Owl) --- */
.yb-rail {
  display: grid;
  grid-auto-columns: calc((100% - 3 * 20px) / 4);
  grid-auto-flow: column;
  gap: 20px;
  margin: 0;
  padding: 0 0 4px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  list-style: none;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.yb-rail::-webkit-scrollbar {
  display: none;
}

.yb-rail__item {
  margin: 0;
  scroll-snap-align: start;
}

.yb-rail__item > .event-card {
  height: 100%;
}

@media (max-width: 1099px) {
  .yb-rail {
    grid-auto-columns: calc((100% - 2 * 20px) / 3);
  }
}

@media (max-width: 899px) {
  .yb-rail {
    grid-auto-columns: 80%;
    gap: 12px;
    margin: 0 -16px;
    padding: 0 16px 4px;
    scroll-padding: 0 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .yb-rail {
    scroll-behavior: auto;
  }
}

/* --- Hero strony głównej --- */
.yb-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: #2a2e45;
  color: #fff;
}

.yb-hero__img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.yb-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(20, 24, 48, 0.3) 0%, rgba(20, 24, 48, 0.55) 55%, rgba(20, 24, 48, 0.72) 100%);
}

.yb-hero__in {
  box-sizing: border-box;
  max-width: 900px;
  margin: 0 auto;
  padding: 96px 32px 132px;
  text-align: center;
}

/* Duże ekrany: więcej zdjęcia nad i pod tekstem, żeby było widać osobę (Konrad, 2026-10-30). */
@media (min-width: 1200px) {
  .yb-hero__in {
    padding-top: clamp(120px, 11vw, 220px);
    padding-bottom: clamp(170px, 14vw, 280px);
  }
}

.yb-hero__title {
  margin: 0;
  color: #fff;
  font-family: var(--font-primary);
  font-size: 60px;
  line-height: 1.05;
}

.yb-hero__lead {
  max-width: 640px;
  margin: 16px auto 0;
  color: #eef0f7;
  font-size: 18px;
  line-height: 1.6;
}

.yb-hero__search {
  position: relative;
  z-index: 5;
  margin-top: -80px;
}

@media (max-width: 899px) {
  .yb-hero__in {
    padding: 44px 16px 92px;
  }
  .yb-hero__title {
    font-size: 38px;
  }
  .yb-hero__lead {
    font-size: 16px;
  }
  .yb-hero__search {
    margin-top: -64px;
  }
}

/* --- Wyszukiwarka --- */
.yb-hs {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr)) auto;
  align-items: end;
  gap: 12px;
  max-width: 1280px; /* 89% szerokości treści, jak 1100 przy 1240 w makiecie */
  margin: 0 auto;
  padding: 20px;
  background: #fff;
  border-radius: 18px;
  box-shadow: var(--yb-shadow-card);
}

.yb-hs__fld {
  position: relative;
  display: grid;
  gap: 6px;
  min-width: 0;
}

.yb-hs__label {
  color: var(--dark-color);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
}

.yb-hs__ctl {
  display: flex;
  align-items: center;
  gap: 8px;
  box-sizing: border-box;
  width: 100%;
  height: 48px;
  margin: 0;
  padding: 0 14px;
  color: var(--dark-color);
  background: #fff;
  border: 1.5px solid var(--border-color);
  border-radius: var(--yb-radius-control);
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  list-style: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.yb-hs__ctl::-webkit-details-marker {
  display: none;
}

.yb-hs__ctl:hover {
  border-color: #c9ccd6;
}

.yb-hs__ctl:focus-visible,
.yb-hs__ctl--input:focus-within,
.yb-hs__pick[open] > .yb-hs__ctl {
  border-color: var(--yb-action);
  box-shadow: 0 0 0 3px var(--yb-action-soft-press);
  outline: none;
}

.yb-hs__ctl .yb-icon {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  color: #8a8a8a;
}

.yb-hs__ctl--input {
  cursor: text;
}

.yb-hs .yb-hs__ctl--input input[type="text"] {
  flex: 1 1 auto;
  min-width: 0;
  height: 100%;
  margin: 0;
  padding: 0;
  color: inherit;
  background: none;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  font: inherit;
  outline: 0;
}

.yb-hs .yb-hs__ctl--input input::placeholder {
  color: #8a8a8a;
  font-weight: 400;
  opacity: 1;
}

.yb-hs__val {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.yb-hs__val.is-empty {
  color: #8a8a8a;
  font-weight: 400;
}

.yb-hs__chev {
  display: inline-flex;
  color: #8a8a8a;
  transition: transform 0.15s ease;
}

.yb-hs__pick[open] .yb-hs__chev {
  transform: rotate(180deg);
}

.yb-hs__go.yb-btn {
  height: 48px;
  min-height: 48px;
  padding: 0 28px;
}

.yb-hs__more {
  display: none;
}

.yb-hs__extra {
  display: contents;
}

/* Rodzaj tylko na telefonie, w „Więcej filtrów” (Konrad, 2026-10-29). */
.yb-hs__fld--type {
  display: none;
}

/* Okno wyboru: na komputerze pod polem, na telefonie od dołu ekranu. */
.yb-hs__pick {
  position: relative;
  min-width: 0;
}

.yb-hs__pick > .yb-hs__ctl {
  min-width: 0;
}

.yb-hs__pop {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  z-index: 40;
  box-sizing: border-box;
  min-width: 100%;
  padding: 12px;
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: 14px;
  box-shadow: var(--yb-shadow-pop);
}

.yb-hs__pop--cal {
  left: 50%;
  width: 640px;
  transform: translateX(-50%);
}

.yb-hs__fld--group .yb-hs__pop {
  right: 0;
  left: auto;
}

.yb-hs__sheet-head {
  display: none;
}

.yb-hs__list {
  min-width: 250px;
  max-height: 340px;
  overflow: auto;
}

.yb-hs__opt {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  margin: 0;
  padding: 0 10px;
  color: var(--dark-color);
  border-radius: 8px;
  font-size: 15px;
  font-weight: 400;
  cursor: pointer;
  user-select: none;
}

.yb-hs__opt:hover {
  background: var(--yb-grey-bg);
}

.yb-hs__opt input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.yb-hs__box {
  display: flex;
  flex: 0 0 22px;
  align-items: center;
  justify-content: center;
  height: 22px;
  color: transparent;
  background: #fff;
  border: 1.5px solid #9aa0b4;
  border-radius: 6px;
}

.yb-hs__opt input[type="radio"] + .yb-hs__box {
  border-radius: 50%;
}

.yb-hs__opt input:checked + .yb-hs__box {
  color: #fff;
  background: var(--yb-action);
  border-color: var(--yb-action);
}

.yb-hs__opt input:focus-visible + .yb-hs__box {
  outline: 2px solid var(--yb-action);
  outline-offset: 2px;
}

.yb-hs__opt-n {
  margin-left: auto;
  color: var(--dark-gray-color);
  font-size: 13px;
}

.yb-hs__sep {
  height: 1px;
  margin: 6px 4px;
  background: #eee;
}

.yb-hs__foot {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin: 10px -12px -12px;
  padding: 10px 12px;
  border-top: 1px solid #eee;
}

.yb-hs__foot[hidden],
.yb-hs [data-yb-hs-js][hidden] {
  display: none;
}

/* Elementy tylko z JS widać od pierwszej klatki (klasa yb-js z <head>), bez czekania na skrypt. */
.yb-js .yb-hs .yb-hs__foot[data-yb-hs-js][hidden] {
  display: flex;
}

.yb-js .yb-hs .yb-hs__hint[data-yb-hs-js][hidden] {
  display: block;
}

.yb-js .yb-hs .yb-btn[data-yb-hs-js][hidden] {
  display: inline-flex;
}

.yb-hs__hint {
  margin: 8px 4px 0;
  color: var(--dark-gray-color);
  font-size: 13px;
  line-height: 1.4;
}

/* Bez JS: natywne pola daty. Z JS: kalendarz. */
.yb-hs__dates {
  display: grid;
  gap: 10px;
  min-width: 240px;
}

.yb-hs__dates label {
  display: grid;
  gap: 4px;
  margin: 0;
  font-size: 13px;
  font-weight: 600;
}

.yb-js .yb-hs .yb-hs__dates {
  display: none;
}

.yb-hs__cal {
  display: none;
}

.yb-js .yb-hs .yb-hs__cal {
  display: block;
}

.yb-hs__cal-nav {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  margin-bottom: -40px;
}

.yb-hs__cal-months {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.yb-hs__cal-title {
  margin: 0 0 8px;
  color: var(--dark-color);
  font-size: 15px;
  font-weight: 600;
  line-height: 44px;
  text-align: center;
}

.yb-hs__cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px 0;
}

.yb-hs__cal-grid span {
  padding: 4px 0;
  color: #8a8a8a;
  font-size: 12px;
  font-weight: 600;
  text-align: center;
}

.yb-hs .yb-hs__cal-grid button {
  height: 40px;
  margin: 0;
  padding: 0;
  color: var(--dark-color);
  background: none;
  border: 0;
  border-radius: 0;
  font-family: inherit;
  font-size: 14px;
  font-weight: 400;
  cursor: pointer;
}

.yb-hs .yb-hs__cal-grid button:hover:not(:disabled) {
  background: var(--yb-grey-bg);
  border-radius: 8px;
}

.yb-hs .yb-hs__cal-grid button:disabled {
  color: #c4c4c4;
  cursor: default;
}

.yb-hs .yb-hs__cal-grid button.is-today {
  color: var(--yb-action-ink);
  font-weight: 700;
}

.yb-hs .yb-hs__cal-grid button.in-range {
  background: var(--yb-action-soft);
  border-radius: 0;
}

.yb-hs .yb-hs__cal-grid button.is-start,
.yb-hs .yb-hs__cal-grid button.is-end {
  color: #fff;
  background: var(--yb-action);
  font-weight: 600;
}

.yb-hs .yb-hs__cal-grid button.is-start {
  border-radius: 8px 0 0 8px;
}

.yb-hs .yb-hs__cal-grid button.is-end {
  border-radius: 0 8px 8px 0;
}

.yb-hs .yb-hs__cal-grid button.is-start.is-end {
  border-radius: 8px;
}

/* Szybkie linki */
.yb-hs__quick {
  display: flex;
  flex-wrap: wrap;
  grid-column: 1 / -1;
  align-items: center;
  gap: 8px;
  padding-top: 4px;
  color: var(--dark-gray-color);
  font-size: 13.5px;
}

.yb-hs__quick a {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  color: var(--dark-color);
  background: var(--yb-grey-bg);
  border-radius: 999px;
  font-weight: 500;
  text-decoration: none;
}

.yb-hs__quick a:hover,
.yb-hs__quick a:focus-visible {
  color: var(--yb-action-ink);
  background: var(--yb-action-soft);
}

@media (max-width: 1099px) and (min-width: 900px) {
  .yb-hs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .yb-hs__fld--q {
    grid-column: 1 / -1;
  }
}

@media (max-width: 899px) {
  .yb-hs {
    grid-template-columns: minmax(0, 1fr);
    padding: 16px;
  }
  .yb-hs__go.yb-btn {
    width: 100%;
    height: 52px;
  }
  .yb-hs__more {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    min-height: 44px;
    margin: 0;
    padding: 0 2px;
    color: var(--yb-action-ink);
    background: none;
    border: 0;
    border-top: 1px solid #eee;
    border-radius: 0;
    font-family: inherit;
    font-size: 14.5px;
    font-weight: 600;
    cursor: pointer;
  }
  .yb-hs__more:hover,
  .yb-hs__more:focus {
    color: var(--yb-action-ink);
    background: none;
  }
  .yb-hs__more[hidden] {
    display: none;
  }
  .yb-js .yb-hs .yb-hs__more[hidden] {
    display: flex;
  }
  .yb-hs__more .yb-icon {
    transition: transform 0.15s ease;
  }
  .yb-hs__more[aria-expanded="true"] .yb-icon {
    transform: rotate(180deg);
  }
  .yb-hs__extra {
    display: grid;
    gap: 12px;
  }
  .yb-js .yb-hs .yb-hs__extra:not(.is-open) {
    display: none;
  }
  .yb-hs__fld--type {
    display: grid;
  }
  .yb-hs__quick {
    flex-wrap: nowrap;
    margin: 0 -16px;
    padding: 0 16px 2px;
    overflow-x: auto;
    scrollbar-width: none;
  }
  .yb-hs__quick::-webkit-scrollbar {
    display: none;
  }
  .yb-hs__quick > * {
    flex: 0 0 auto;
  }
  .yb-hs__quick a {
    min-height: 36px;
  }

  /* Otwarte okno: wyszukiwarka nad nagłówkiem strony (z-index 800), żeby przyciemnienie go przykryło. */
  .yb-hero__search:has(.yb-hs__pick[open]) {
    z-index: 1100;
  }

  /* Okno od dołu ekranu. Klik w przyciemnienie trafia w <summary> i zamyka okno, także bez JS. */
  .yb-hs__pick[open] > .yb-hs__ctl::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: 1000;
    background: rgba(31, 36, 64, 0.45);
    cursor: default;
  }
  .yb-hs__pop,
  .yb-hs__pop--cal {
    position: fixed;
    top: auto;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 1001;
    display: flex;
    flex-direction: column;
    width: auto;
    max-height: 86vh;
    max-height: 86dvh;
    padding: 0 12px calc(12px + env(safe-area-inset-bottom, 0px));
    border: 0;
    border-radius: 20px 20px 0 0;
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.15);
    transform: none;
    overscroll-behavior: contain;
  }
  .yb-hs__sheet-head {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: space-between;
    min-height: 56px;
    padding: 0 0 0 8px;
  }
  .yb-hs__sheet-title {
    color: var(--dark-color);
    font-size: 18px;
    font-weight: 600;
  }
  .yb-hs__list {
    flex: 1 1 auto;
    min-width: 0;
    max-height: none;
  }
  .yb-hs__cal {
    overflow: auto;
  }
  .yb-hs__cal-months {
    grid-template-columns: 1fr;
  }
  .yb-hs__cal-month + .yb-hs__cal-month {
    display: none;
  }
  .yb-hs__foot {
    flex: 0 0 auto;
    margin: 10px -12px 0;
    padding: 12px 16px 0;
  }
  .yb-hs__foot .yb-btn {
    flex: 1 1 0;
  }
  .yb-hs__foot .yb-btn--tertiary {
    border-color: var(--yb-action-line);
  }
}

/* --- Miasta --- */
.yb-cities,
.yb-cities-more {
  margin: 0;
  padding: 0;
  list-style: none;
}

.yb-cities {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 12px;
}

.yb-cities > li,
.yb-cities-more > li {
  margin: 0;
}

.yb-city {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
  box-sizing: border-box;
  height: 100%;
  min-height: 76px;
  padding: 12px 18px;
  color: var(--dark-color);
  background: var(--background-color);
  border: 1.5px solid var(--border-color);
  border-radius: var(--yb-radius-card);
  text-decoration: none;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

.yb-city:hover,
.yb-city:focus-visible {
  color: var(--dark-color);
  background: var(--yb-action-soft);
  border-color: var(--yb-action-line);
}

.yb-city__name {
  font-size: 17px;
  font-weight: 600;
  line-height: 1.25;
}

.yb-city:hover .yb-city__name {
  color: var(--yb-action-ink);
}

.yb-city__count {
  color: var(--dark-gray-color);
  font-size: 13.5px;
  line-height: 1.35;
}

.yb-cities-more {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 12px;
  margin-top: 28px;
}

.yb-city--wide {
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  gap: 16px;
  background: #fff;
}

.yb-city__ic {
  display: flex;
  flex: 0 0 44px;
  align-items: center;
  justify-content: center;
  height: 44px;
  color: var(--yb-action-ink);
  background: var(--yb-action-soft);
  border-radius: 12px;
}

.yb-city__text {
  display: grid;
  gap: 2px;
}

.yb-city__go {
  display: inline-flex;
  margin-left: auto;
  color: var(--yb-action-ink);
}

@media (max-width: 899px) {
  .yb-cities {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .yb-city {
    min-height: 68px;
    padding: 10px 14px;
  }
  .yb-city__name {
    font-size: 16px;
  }
  .yb-cities-more {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
  }
}

/* --- Kategorie --- */
.yb-groups {
  display: grid;
  grid-auto-columns: calc((100% - 3 * 16px) / 4);
  grid-auto-flow: column;
  gap: 16px;
  margin: 0;
  padding: 0 0 4px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  list-style: none;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.yb-groups::-webkit-scrollbar {
  display: none;
}

.yb-group {
  scroll-snap-align: start;
}

@media (max-width: 1099px) {
  .yb-groups {
    grid-auto-columns: calc((100% - 2 * 16px) / 3);
  }
}

.yb-group {
  display: flex;
  flex-direction: column;
  margin: 0;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: var(--yb-radius-card);
}

.yb-group__media {
  position: relative;
  height: 170px;
  background: #ecebe4;
}

@media (min-width: 900px) {
  .yb-group__media {
    height: 330px;
  }
}

.yb-group__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.yb-group__media::after {
  content: '';
  position: absolute;
  inset: 40% 0 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.55));
}

.yb-group__title {
  position: absolute;
  right: 14px;
  bottom: 12px;
  left: 14px;
  z-index: 1;
  margin: 0;
  color: #fff;
  font-family: var(--font-primary);
  font-size: 24px;
  line-height: 1.1;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.45);
}

.yb-group__pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 12px;
}

.yb-group__pill {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  color: var(--dark-color);
  background: var(--yb-grey-bg);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
}

.yb-group__pill:hover,
.yb-group__pill:focus-visible {
  color: var(--yb-action-ink);
  background: var(--yb-action-soft);
}

@media (max-width: 899px) {
  .yb-groups {
    grid-auto-columns: 72%;
    gap: 12px;
    margin: 0 -16px;
    padding: 0 16px 4px;
    scroll-padding: 0 16px;
  }
  .yb-group__pill {
    min-height: 36px;
  }
}

/* --- Dwie karty: firmy i newsletter --- */
.yb-duo {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.yb-promo {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: flex-end;
  min-height: 340px;
  overflow: hidden;
  color: #fff;
  background: #2a2e45;
  border-radius: 18px;
}

.yb-promo > .yb-promo__img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.yb-promo::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(20, 24, 48, 0) 20%, rgba(20, 24, 48, 0.8) 100%);
}

.yb-promo__body {
  display: grid;
  align-content: end;
  justify-items: start;
  gap: 10px;
  padding: 28px;
}

.yb-promo__eyebrow {
  color: var(--secondary-color);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.yb-promo__title {
  margin: 0;
  color: #fff;
  font-family: var(--font-primary);
  font-size: 30px;
  line-height: 1.15;
}

.yb-promo__text {
  max-width: 440px;
  margin: 0;
  color: #eef0f7;
  line-height: 1.55;
}

.yb-promo--yellow {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  align-items: stretch;
  color: var(--dark-color);
  background: var(--secondary-color);
}

.yb-promo--yellow::before {
  display: none;
}

.yb-promo--yellow .yb-promo__body {
  align-content: center;
}

.yb-promo--yellow .yb-promo__eyebrow {
  color: var(--yb-action-ink);
}

.yb-promo--yellow .yb-promo__title {
  color: var(--dark-color);
}

.yb-promo--yellow .yb-promo__text {
  color: var(--text-color);
}

.yb-promo__pic {
  position: relative;
  min-height: 200px;
}

.yb-promo__pic .yb-promo__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 899px) {
  .yb-duo {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
  }
  .yb-promo {
    min-height: 300px;
  }
  .yb-promo__body {
    padding: 20px;
  }
  .yb-promo__title {
    font-size: 25px;
  }
  .yb-promo--yellow {
    grid-template-columns: minmax(0, 1fr);
  }
  .yb-promo--yellow .yb-promo__pic {
    order: -1;
    min-height: 160px;
  }
}

/* --- FAQ --- */
.yb-faq {
  display: grid;
  grid-template-columns: 360px minmax(0, 1fr);
  align-items: start;
  gap: 48px;
}

.yb-faq__title {
  margin: 0;
  color: var(--dark-color);
  font-size: 32px;
  line-height: 1.2;
}

.yb-faq__text {
  margin: 10px 0 0;
  color: var(--dark-gray-color);
  line-height: 1.55;
}

.yb-faq__text a {
  color: var(--yb-action-ink);
  text-decoration: underline;
  text-underline-offset: 3px;
  overflow-wrap: anywhere;
}

.yb-faq__aside .yb-btn {
  margin-top: 18px;
}

.yb-faq__list {
  display: grid;
  gap: 10px;
}

/* Po 4 pytaniach przycisk „Pokaż więcej pytań” (yb-faq.js). Bez JS widać wszystkie. */
.yb-js .yb-faq__list:not(.is-all) .yb-qa--extra {
  display: none;
}

.yb-faq__more {
  justify-self: start;
  margin-top: 6px;
}

.yb-faq__more[hidden] {
  display: none;
}

.yb-js .yb-faq__list:not(.is-all) .yb-faq__more[hidden] {
  display: inline-flex;
}

.yb-qa {
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: var(--yb-radius-card);
  transition: border-color 0.15s ease;
}

.yb-qa[open] {
  border-color: var(--yb-action-line);
}

.yb-qa__q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: unset;
  padding: 10px 16px;
  color: var(--dark-color);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.4;
  cursor: pointer;
  list-style: none;
}

.yb-qa__q::-webkit-details-marker {
  display: none;
}

.yb-qa__q:focus-visible {
  border-radius: var(--yb-radius-card);
  outline: 2px solid var(--yb-action);
  outline-offset: 2px;
}

.yb-qa__ic {
  display: flex;
  flex: 0 0 28px;
  align-items: center;
  justify-content: center;
  height: 28px;
  color: var(--yb-action-ink);
  background: var(--yb-action-soft);
  border-radius: 50%;
  transition: transform 0.15s ease;
}

.yb-qa[open] .yb-qa__ic {
  transform: rotate(45deg);
}

.yb-qa__a {
  max-width: 720px;
  padding: 0 16px 16px;
  color: var(--text-color);
  font-size: 15px;
  line-height: 1.65;
}

.yb-qa__a p {
  margin: 0 0 10px;
  line-height: inherit;
}

.yb-qa__a p:last-child {
  margin-bottom: 0;
}

.yb-qa__a a {
  color: var(--yb-action-ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (max-width: 899px) {
  .yb-faq {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
  }
  .yb-faq__title {
    font-size: 25px;
  }
  .yb-qa__q {
    padding: 10px 14px;
    font-size: 15px;
  }
  .yb-qa__a {
    padding: 0 14px 14px;
  }
}

/* --- Hero podstrony (żółty pas) --- */
.yb-phero {
  position: relative;
  overflow: hidden;
  background: var(--secondary-color);
}

.yb-phero__in {
  box-sizing: border-box;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  align-items: center;
  gap: 48px;
  max-width: var(--yb-container);
  margin: 0 auto;
  padding: 72px var(--yb-gutter);
}

.yb-phero__in--solo {
  grid-template-columns: minmax(0, 760px);
}

.yb-phero__pre {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 12px;
  color: var(--dark-color);
  background: rgba(255, 255, 255, 0.65);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
}

.yb-phero__title {
  margin: 14px 0 0;
  color: var(--dark-color);
  font-family: var(--font-primary);
  font-size: 52px;
  line-height: 1.08;
}

.yb-phero__lead {
  max-width: 580px;
  margin-top: 16px;
  color: var(--text-color);
  font-size: 17px;
  line-height: 1.6;
}

.yb-phero__lead p {
  margin: 0 0 12px;
  line-height: inherit;
}

.yb-phero__lead p:last-child {
  margin-bottom: 0;
}

.yb-phero__btns {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.yb-phero__note {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 14px 0 0;
  color: var(--text-color);
  font-size: 14px;
  line-height: 1.45;
}

.yb-phero__note .yb-icon {
  flex: 0 0 auto;
  margin-top: 2px;
  color: #1c6b3a;
}

.yb-phero__media {
  position: relative;
}

.yb-phero__img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 18px;
  box-shadow: var(--yb-shadow-card);
}

@media (max-width: 899px) {
  .yb-phero__in {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
    padding: 40px 16px 44px;
  }
  .yb-phero__title {
    font-size: 36px;
  }
  .yb-phero__lead {
    font-size: 16px;
  }
  .yb-phero__btns .yb-btn {
    flex: 1 1 100%;
  }
}

/* --- Dla organizatorów: oferta, kroki, korzyści, CTA na końcu --- */
.yb-offer {
  position: relative;
  box-sizing: border-box;
  max-width: 860px;
  margin: 0 auto;
  padding: 40px;
  text-align: center;
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: 18px;
  box-shadow: var(--yb-shadow-card);
}

.yb-offer__title {
  margin: 0;
  color: var(--dark-color);
  font-size: 30px;
  line-height: 1.2;
}

.yb-offer__lead {
  max-width: 620px;
  margin: 12px auto 0;
  color: var(--text-color);
  line-height: 1.6;
}

.yb-prices {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 26px 0 18px;
  text-align: left;
}

.yb-price {
  display: grid;
  align-content: start;
  gap: 2px;
  padding: 18px 20px;
  border: 1.5px solid var(--border-color);
  border-radius: var(--yb-radius-card);
}

.yb-price--now {
  background: var(--yb-action-soft);
  border-color: var(--yb-action);
}

.yb-price__label {
  color: var(--dark-gray-color);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.yb-price--now .yb-price__label {
  color: var(--yb-action-ink);
}

.yb-price__value {
  color: var(--dark-color);
  font-family: var(--font-primary);
  font-size: 34px;
  font-weight: 700;
  line-height: 1.15;
}

.yb-price__note {
  color: var(--dark-gray-color);
  font-size: 14px;
  line-height: 1.45;
}

.yb-price__note a {
  color: var(--yb-action-ink);
  overflow-wrap: anywhere;
}

.yb-offer__note {
  max-width: 560px;
  margin: 0 auto 20px;
  color: var(--dark-gray-color);
  font-size: 14px;
  line-height: 1.5;
}

@media (max-width: 899px) {
  .yb-offer {
    padding: 26px 18px;
  }
  .yb-offer__title {
    font-size: 23px;
  }
  .yb-prices {
    grid-template-columns: minmax(0, 1fr);
  }
  .yb-offer__cta {
    display: flex;
    width: 100%;
  }
}

.yb-steps,
.yb-feats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.yb-step,
.yb-feat {
  display: grid;
  align-content: start;
  gap: 8px;
  margin: 0;
  padding: 24px;
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: var(--yb-radius-card);
}

.yb-section--white .yb-step {
  background: var(--background-color);
}

.yb-step__n {
  width: 40px;
  height: 40px;
  color: #fff;
  background: var(--yb-action);
  border-radius: 50%;
  font-family: var(--font-primary);
  font-size: 18px;
  font-weight: 700;
  line-height: 42px;
  text-align: center;
}

.yb-step__title,
.yb-feat__title {
  margin: 6px 0 0;
  color: var(--dark-color);
  font-size: 19px;
  font-weight: 600;
  line-height: 1.3;
}

.yb-feat__title {
  font-size: 18px;
}

.yb-step__text,
.yb-feat__text {
  margin: 0;
  color: var(--dark-gray-color);
  font-size: 15px;
  line-height: 1.55;
}

.yb-feat__ic {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  color: var(--yb-action-ink);
  background: var(--yb-action-soft);
  border-radius: 12px;
}

@media (max-width: 1099px) {
  .yb-feats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 899px) {
  .yb-steps,
  .yb-feats {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }
  .yb-step,
  .yb-feat {
    padding: 20px;
  }
}

.yb-endcta {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px 40px;
  padding: 48px;
  color: var(--yb-footer-ink);
  background: var(--yb-footer-bg);
  border-radius: 22px;
}

.yb-endcta__title {
  margin: 0;
  color: #fff;
  font-family: var(--font-primary);
  font-size: 34px;
  line-height: 1.15;
}

.yb-endcta__text p {
  max-width: 640px;
  margin: 8px 0 0;
  color: var(--yb-footer-muted);
  line-height: 1.55;
}

.yb-endcta__text a {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (max-width: 899px) {
  .yb-endcta {
    grid-template-columns: minmax(0, 1fr);
    padding: 28px 20px;
    border-radius: 18px;
  }
  .yb-endcta__title {
    font-size: 26px;
  }
  .yb-endcta .yb-btn {
    width: 100%;
  }
}

/* --- O nas: zespół --- */
.yb-team {
  display: grid;
  gap: 28px;
}

.yb-member {
  display: grid;
  grid-template-columns: 380px minmax(0, 1fr);
  align-items: center;
  gap: 48px;
  padding: 28px;
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: 18px;
}

.yb-member--rev {
  grid-template-columns: minmax(0, 1fr) 380px;
}

.yb-member--rev .yb-member__photo {
  order: 2;
}

.yb-member--nophoto {
  grid-template-columns: minmax(0, 1fr);
}

.yb-member__img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--yb-radius-card);
}

.yb-member__name {
  margin: 0;
  color: var(--dark-color);
  font-family: var(--font-primary);
  font-size: 30px;
  line-height: 1.15;
}

.yb-member__role {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  margin-top: 8px;
  padding: 0 12px;
  color: var(--yb-action-ink);
  background: var(--yb-action-soft);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
}

.yb-member__text {
  max-width: 62ch;
  margin-top: 16px;
  color: var(--text-color);
  font-size: 15.5px;
  line-height: 1.65;
}

.yb-member__text p {
  margin: 0 0 10px;
  line-height: inherit;
}

@media (max-width: 899px) {
  .yb-member,
  .yb-member--rev {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
    padding: 16px;
  }
  .yb-member--rev .yb-member__photo {
    order: 0;
  }
  .yb-member__img {
    aspect-ratio: 4 / 3;
    object-position: 50% 25%;
  }
  .yb-member__name {
    font-size: 26px;
  }
}

/* --- Dla firm: formularz CF7 (stary szablon z placeholderami i nowy .yb-cf7) --- */
.yb-contact {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  align-items: stretch;
  gap: 40px;
}

.yb-contact--solo {
  grid-template-columns: minmax(0, 760px);
  justify-content: center;
}

.yb-contact__img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 520px;
  object-fit: cover;
  border-radius: 18px;
}

.yb-contact__form {
  box-sizing: border-box;
  padding: 32px;
  background: var(--background-color);
  border: 1px solid var(--border-color);
  border-radius: 18px;
}

.yb-contact__form h2 {
  margin: 0 0 6px;
  color: var(--dark-color);
  font-size: 30px;
  line-height: 1.2;
}

.yb-contact__form h3 {
  margin: 22px 0 10px;
  color: var(--dark-gray-color);
  font-family: var(--font-secondary);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.yb-contact__form p {
  margin: 0 0 10px;
  line-height: 1.5;
}

.yb-contact__form .form-row,
.yb-cf7__row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 14px;
}

.yb-contact__form .form-label {
  margin: 14px 0 6px;
  color: var(--dark-color);
  font-size: 14px;
  font-weight: 600;
}

.yb-contact__form .wpcf7-form-control-wrap {
  display: block;
}

.yb-contact__form input[type="text"],
.yb-contact__form input[type="email"],
.yb-contact__form input[type="tel"],
.yb-contact__form select,
.yb-contact__form textarea {
  box-sizing: border-box;
  width: 100%;
  min-height: 48px;
  margin: 0;
  padding: 10px 14px;
  color: var(--dark-color);
  background: #fff;
  border: 1.5px solid var(--border-color);
  border-radius: var(--yb-radius-control);
  box-shadow: none;
  font-family: inherit;
  font-size: 15px;
}

.yb-contact__form textarea {
  height: 150px;
  min-height: 110px;
  resize: vertical;
}

.yb-contact__form input:focus,
.yb-contact__form select:focus,
.yb-contact__form textarea:focus {
  border-color: var(--yb-action);
  box-shadow: 0 0 0 3px var(--yb-action-soft-press);
  outline: none;
}

.yb-contact__form input[type="submit"],
.yb-contact__form .wpcf7-submit {
  min-height: 52px;
  padding: 4px 26px;
  color: #fff;
  background: var(--yb-action);
  border: 1.5px solid var(--yb-action);
  border-radius: var(--yb-radius-control);
  font-family: inherit;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
}

.yb-contact__form input[type="submit"]:hover,
.yb-contact__form .wpcf7-submit:hover {
  background: var(--yb-action-ink);
  border-color: var(--yb-action-ink);
  color: #fff;
}

.yb-contact__form .wpcf7-acceptance .wpcf7-list-item {
  margin: 0;
}

.yb-contact__form .wpcf7-acceptance label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.45;
}

.yb-contact__form .wpcf7-acceptance input {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  margin-top: 1px;
  accent-color: var(--yb-action);
}

.yb-contact__form .wpcf7-not-valid-tip {
  margin-top: 4px;
  color: var(--yb-danger);
  font-size: 13px;
}

.yb-contact__form .wpcf7-response-output {
  margin: 16px 0 0;
  padding: 12px 14px;
  border-radius: var(--yb-radius-control);
  font-size: 14px;
}

/* Nowy szablon CF7 (cf7-kontakt-od-firmy.txt) */
.yb-cf7 {
  display: grid;
  gap: 14px;
}

.yb-cf7 .yb-cf7__row {
  margin: 0;
}

.yb-cf7__lead {
  margin: -6px 0 0;
  color: var(--dark-gray-color);
}

.yb-cf7__group {
  margin: 6px 0 0;
  color: var(--dark-gray-color);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.yb-cf7__field {
  display: grid;
  gap: 6px;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.yb-cf7__label {
  padding: 0;
  color: var(--dark-color);
  font-size: 14px;
  font-weight: 600;
}

.yb-cf7__req {
  color: var(--yb-danger);
}

.yb-cf7__opt {
  color: var(--dark-gray-color);
  font-weight: 400;
}

.yb-cf7__choice .wpcf7-radio {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.yb-cf7__choice .wpcf7-list-item {
  margin: 0;
}

.yb-cf7__choice .wpcf7-list-item label {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin: 0;
  padding: 0 18px;
  color: var(--dark-color);
  background: #fff;
  border: 1.5px solid var(--border-color);
  border-radius: 999px;
  font-size: 14.5px;
  font-weight: 500;
  cursor: pointer;
}

.yb-cf7__choice .wpcf7-list-item input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.yb-cf7__choice .wpcf7-list-item label:has(input:checked) {
  color: var(--yb-action-ink);
  background: var(--yb-action-soft);
  border-color: var(--yb-action);
  font-weight: 600;
}

.yb-cf7__choice .wpcf7-list-item label:has(input:focus-visible) {
  outline: 2px solid var(--yb-action);
  outline-offset: 2px;
}

.yb-cf7__footer {
  display: grid;
  gap: 14px;
  margin-top: 4px;
}

.yb-cf7__consent a {
  color: var(--yb-action-ink);
  text-decoration: underline;
}

@media (max-width: 899px) {
  .yb-contact {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }
  .yb-contact__img {
    height: 220px;
    min-height: 0;
    object-position: 50% 30%;
  }
  .yb-contact__form {
    padding: 20px 16px;
  }
  .yb-contact__form h2 {
    font-size: 25px;
  }
  .yb-contact__form .form-row,
  .yb-cf7__row {
    grid-template-columns: minmax(0, 1fr);
  }
  .yb-contact__form input[type="submit"],
  .yb-contact__form .wpcf7-submit {
    width: 100%;
  }
}

/* --- Strony tekstowe (regulamin, polityka, newsletter): treść jak wklejona --- */
.yb-doc {
  box-sizing: border-box;
  max-width: 824px;
  padding: 56px 32px 80px;
}

.yb-doc .entry-header {
  margin: 0 0 28px;
  padding: 0;
}

.yb-doc .entry-title {
  margin: 0;
  color: var(--dark-color);
  font-family: var(--font-primary);
  font-size: 48px;
  line-height: 1.1;
}

.yb-doc .entry-content {
  margin: 0;
  padding: 0;
  color: var(--text-color);
  font-size: 16.5px;
  line-height: 1.75;
}

.yb-doc .entry-content > * {
  max-width: none;
  margin-right: 0;
  margin-left: 0;
}

.yb-doc .entry-content h2 {
  margin: 36px 0 12px;
  color: var(--dark-color);
  font-size: 24px;
  line-height: 1.3;
}

.yb-doc .entry-content h3 {
  margin: 28px 0 10px;
  font-size: 19px;
}

.yb-doc .entry-content p,
.yb-doc .entry-content li {
  line-height: 1.75;
}

.yb-doc .entry-content p {
  margin: 0 0 14px;
}

.yb-doc .entry-content ul,
.yb-doc .entry-content ol {
  margin: 0 0 14px 1.2em;
}

.yb-doc .entry-content a {
  color: var(--yb-action-ink);
  text-underline-offset: 3px;
  overflow-wrap: anywhere;
}

@media (max-width: 899px) {
  .yb-doc {
    padding: 32px 16px 56px;
  }
  .yb-doc .entry-title {
    font-size: 34px;
  }
  .yb-doc .entry-content {
    font-size: 16px;
  }
}

/* --- Katalog organizatorów: pasek filtrów w wyglądzie wyszukiwarki ze strony głównej (YB-102) --- */
.organizers-filter.yb-ofilter {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) repeat(2, minmax(0, 1fr)) auto;
  align-items: end;
  gap: 12px;
  margin: 8px 0 32px;
  padding: 20px;
  background: #fff;
  border: 0;
  border-radius: 18px;
  box-shadow: var(--yb-shadow-card);
}

.yb-ofilter__fld {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.yb-ofilter__label {
  color: var(--dark-color);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
}

.yb-ofilter__ctl {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  box-sizing: border-box;
  height: 48px;
  min-width: 0;
  padding: 0 14px;
  background: #fff;
  border: 1.5px solid var(--border-color);
  border-radius: var(--yb-radius-control);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.yb-ofilter__ctl:hover {
  border-color: #c9ccd6;
}

.yb-ofilter__ctl:focus-within {
  border-color: var(--yb-action);
  box-shadow: 0 0 0 3px var(--yb-action-soft-press);
}

.yb-ofilter__ctl > .yb-icon {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  color: #8a8a8a;
}

.yb-ofilter .yb-ofilter__ctl input[type="search"],
.yb-ofilter .yb-ofilter__ctl select {
  flex: 1 1 auto;
  min-width: 0;
  height: 100%;
  margin: 0;
  padding: 0;
  color: var(--dark-color);
  background: none;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  font-family: inherit;
  font-size: 15px;
  font-weight: 500;
  outline: 0;
  appearance: none;
  -webkit-appearance: none;
}

.yb-ofilter .yb-ofilter__ctl input::placeholder {
  color: #8a8a8a;
  font-weight: 400;
  opacity: 1;
}

.yb-ofilter .yb-ofilter__ctl input::-webkit-search-cancel-button {
  cursor: pointer;
}

/* Select na całą ramkę (klik w ikonę też otwiera listę), strzałka nad nim. */
.yb-ofilter .yb-ofilter__ctl--select select {
  position: absolute;
  inset: 0;
  padding: 0 40px 0 40px;
  cursor: pointer;
  text-overflow: ellipsis;
}

.yb-ofilter__chev {
  display: inline-flex;
  margin-left: auto;
  color: #8a8a8a;
  pointer-events: none;
}

.yb-ofilter__actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.yb-ofilter__go.yb-btn {
  height: 48px;
  min-height: 48px;
  padding: 0 28px;
}

@media (max-width: 1099px) and (min-width: 900px) {
  .organizers-filter.yb-ofilter {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .yb-ofilter__fld--q {
    grid-column: 1 / -1;
  }
}

@media (max-width: 899px) {
  .organizers-filter.yb-ofilter {
    grid-template-columns: minmax(0, 1fr);
    margin-bottom: 24px;
    padding: 16px;
  }
  .yb-ofilter__actions {
    flex-direction: column;
    align-items: stretch;
  }
  .yb-ofilter__go.yb-btn {
    width: 100%;
    height: 52px;
  }
}

/* --- Miasta, wariant C (2026-10-30): trzy duże karty z kolażem i lista pozostałych --- */
.yb-cbig {
  margin: 0;
  padding: 0;
  list-style: none;
}

.yb-cbig {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.yb-cbig > li {
  margin: 0;
}

.yb-cbig__card {
  position: relative;
  display: block;
  height: 220px;
  overflow: hidden;
  isolation: isolate;
  color: #fff;
  background: linear-gradient(135deg, #2f47b8, var(--yb-footer-bg));
  border-radius: 18px;
  text-decoration: none;
}

.yb-cbig__pics {
  position: absolute;
  inset: 0;
  z-index: -2;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: 2px;
  overflow: hidden;
}

.yb-cbig__img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: cover;
}

/* Mniej niż 4 zdjęcia: 1 = całość, 2 = dwie połowy, 3 = duże z lewej i dwa z prawej. */
.yb-cbig__pics[data-count="1"] .yb-cbig__img {
  grid-column: 1 / -1;
  grid-row: 1 / -1;
}

.yb-cbig__pics[data-count="2"] .yb-cbig__img {
  grid-row: 1 / -1;
}

.yb-cbig__pics[data-count="3"] .yb-cbig__img:first-child {
  grid-row: 1 / -1;
}

.yb-cbig__card::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(20, 24, 48, 0.25) 0%, rgba(20, 24, 48, 0.62) 50%, rgba(20, 24, 48, 0.92) 100%);
}

.yb-cbig__card {
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

/* Hover: cała karta, bez ruchu pojedynczych zdjęć (Konrad, 2026-10-30). */
.yb-cbig__card:hover {
  box-shadow: 0 12px 28px rgba(31, 36, 64, 0.18);
  transform: translateY(-2px);
}

.yb-cbig__card:focus-visible {
  outline: 3px solid var(--yb-action);
  outline-offset: 3px;
}

.yb-cbig__txt {
  position: absolute;
  right: 20px;
  bottom: 16px;
  left: 20px;
  display: grid;
  gap: 4px;
}

.yb-cbig__name {
  overflow: hidden;
  color: #fff;
  font-family: var(--font-primary);
  font-size: 36px;
  line-height: 1;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.55);
}

.yb-cbig__count {
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.6);
  color: #eef0f7;
  font-size: 14px;
}

.yb-clist__label {
  margin: 28px 0 12px;
  color: var(--dark-gray-color);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}








@media (max-width: 899px) {
  .yb-cbig {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
  }
  .yb-cbig__card {
    height: 140px;
  }
  .yb-cbig__name {
    font-size: 30px;
  }

}

@media (prefers-reduced-motion: reduce) {
  .yb-cbig__card,
  .yb-cbig__card:hover {
    transform: none;
    transition: none;
  }
}

/* Pozostałe miasta: pigułki z liczbą wydarzeń. */
.yb-cchips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.yb-cchips > li {
  margin: 0;
}

.yb-cchip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 7px 0 18px;
  color: var(--dark-color);
  background: var(--background-color);
  border: 1.5px solid var(--border-color);
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

.yb-cchip__n {
  min-width: 30px;
  height: 30px;
  padding: 0 8px;
  color: var(--yb-action-ink);
  background: #fff;
  border: 1px solid var(--yb-action-line);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  line-height: 28px;
  text-align: center;
}

.yb-cchip:hover,
.yb-cchip:focus-visible {
  color: var(--yb-action-ink);
  background: var(--yb-action-soft);
  border-color: var(--yb-action-line);
}

.yb-cchip:hover .yb-cchip__n {
  color: #fff;
  background: var(--yb-action);
  border-color: var(--yb-action);
}
