/* Various */
.blocknopadding {
  padding: 0px !important;
}

/* ==========================================================================
   FAQ SECTION
   ========================================================================== */

#faq-section {
  max-width: 48rem;
  margin: 2rem auto 25px;
  padding: 0 1rem;
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, sans-serif;
}

.wp-block-uagb-container.about-platform>.uagb-container-inner-blocks-wrap {
  row-gap: 0px !important;
}

/* Section title */
.faq-title {
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(1.5rem, 2.5vw + 0.25rem, 2.25rem);
  font-weight: 600;
  color: #1A1A1A;
  text-align: left;
  margin-bottom: 1.5rem;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

/* Individual FAQ item */
.faq-item {
  border-bottom: 1px solid #F3F4F6;
}

.faq-item:first-of-type {
  border-top: 1px solid #F3F4F6;
}

/* Question (h3) - clickable */
.faq-question {
  position: relative;
  display: block;
  width: 100%;
  padding: 1.25rem 2.5rem 1.25rem 0;
  margin: 0;
  cursor: pointer;
  text-align: left;
  font-family: "Fraunces", Georgia, serif;
  font-size: 1rem;
  font-weight: 500;
  color: #2D2D2D;
  line-height: 1.5;
  transition: color 0.2s ease;
}

.faq-question:hover {
  color: #34495E;
}

/* Plus icon (via ::after) */
.faq-question::after {
  content: "";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 1.25rem;
  height: 1.25rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%239CA3AF' stroke-width='2'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M12 4.5v15m7.5-7.5h-15'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  transition: transform 0.3s ease;
}

/* Rotate icon when open */
.faq-item.is-open .faq-question::after {
  transform: translateY(-50%) rotate(45deg);
}

/* Answer panel - hidden by default */
.faq-answer {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  padding: 0 2.5rem 0 0;
  font-size: 1rem;
  line-height: 1.65;
  color: #6B7280;
  transition: max-height 0.3s ease, opacity 0.3s ease, padding-bottom 0.3s ease;
}

/* Answer visible when open */
.faq-item.is-open .faq-answer {
  max-height: 500px;
  opacity: 1;
  padding-bottom: 1.25rem;
}

/* Links inside answers */
.faq-answer a {
  color: #C47D0E;
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 0.2s ease;
}

.faq-answer a:hover {
  color: #E89418;
}

/* FAQ responsive: UAGB FAQ block padding on mobile */
@media (max-width: 768px) {
  .wp-block-uagb-faq.uagb-faq__outer-wrap {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }

  .faq-question {
    font-size: 1rem;
  }

  .faq-answer {
    font-size: 1rem;
  }
}

/* FAQ responsive: larger text on desktop */
@media (min-width: 1024px) {
  .faq-question {
    padding: 1.5rem 3rem 1.5rem 0;
    font-size: 1.125rem;
  }

  .faq-item.is-open .faq-answer {
    padding-bottom: 1.5rem;
  }
}

/* ==========================================================================
   IMPORTANT INFO BOX
   ========================================================================== */

.important-info {
  position: relative;
  max-width: 42rem !important;
  margin: 1.75rem auto;
  padding: 1.25rem 1.5rem 1.25rem 3.5rem;
  background: linear-gradient(135deg, rgba(44, 62, 80, 0.06) 0%, rgba(78, 109, 135, 0.04) 100%);
  border: 1px solid rgba(44, 62, 80, 0.2);
  border-left: 4px solid #2C3E50;
  border-radius: 0 0.875rem 0.875rem 0;
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, sans-serif;
  font-size: 1rem;
  line-height: 1.65;
  color: #2D2D2D;
}

/* Book icon indicator */
.important-info::before {
  content: "";
  position: absolute;
  left: 1rem;
  top: 1.25rem;
  width: 1.5rem;
  height: 1.5rem;
  background-color: rgba(44, 62, 80, 0.12);
  border-radius: 0.375rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%232C3E50' stroke-width='2'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M12 6.253v13m0-13C10.832 5.477 9.246 5 7.5 5S4.168 5.477 3 6.253v13C4.168 18.477 5.754 18 7.5 18s3.332.477 4.5 1.253m0-13C13.168 5.477 14.754 5 16.5 5c1.747 0 3.332.477 4.5 1.253v13C19.832 18.477 18.247 18 16.5 18c-1.746 0-3.332.477-4.5 1.253'/%3E%3C/svg%3E");
  background-size: 1rem 1rem;
  background-repeat: no-repeat;
  background-position: center;
}

/* Strong/bold text styling */
.important-info strong {
  font-weight: 600;
  color: #1A1A1A;
}

/* Links inside the box */
.important-info a {
  color: #34495E;
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 0.2s ease;
}

.important-info a:hover {
  color: #2C3E50;
  text-decoration-thickness: 2px;
}

/* Important info responsive */
@media (max-width: 640px) {
  .important-info {
    margin: 1.25rem 1rem;
    padding: 1rem 1.25rem 1rem 3rem;
    border-radius: 0 0.75rem 0.75rem 0;
    font-size: 1rem;
  }

  .important-info::before {
    left: 0.75rem;
    top: 1rem;
    width: 1.375rem;
    height: 1.375rem;
    background-size: 0.875rem 0.875rem;
  }
}

/* -- Fit / Not-Fit Grid -- */
.wp-block-group:has(.fit-grid) {
  margin-bottom: 1.6em;
}

.fit-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: start;
  gap: 24px;
  margin: 24px 0;
}

.fit-card.wp-block-group {
  padding: 28px 24px 24px 32px !important;
  border-radius: 16px;
  border: 1px solid var(--color-ink-200);
  background: #fff;
}

.fit-card h4 {
  margin: 0 0 16px;
  font-size: 1rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--color-ink-900);
}

.fit-yes {
  border-left: 4px solid #16a34a;
}

.fit-no {
  border-left: 4px solid var(--color-accent-600);
}

.fit-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.fit-card li {
  padding: 8px 0;
  font-size: .9rem;
  display: flex;
  align-items: start;
  gap: 10px;
  color: var(--color-ink-600);
  border-bottom: 1px solid var(--color-ink-100);
}

.fit-card li:last-child {
  border-bottom: none;
}

.fit-card li::before {
  flex-shrink: 0;
  font-size: 1rem;
  line-height: 1.4;
}

.fit-yes li::before {
  content: "\2705";
}

.fit-no li::before {
  content: "\274C";
}

@media (max-width: 600px) {
  .fit-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   CHECKLIST ZADANIOWY (INTERAKTYWNY)
   ========================================================================== */

.fl-task-checklist.wp-block-group {
  max-width: 48rem;
  margin: 2.5rem auto;
  padding: 2.5rem !important;
  background: #FFFFFF;
  border: 1px solid var(--color-ink-200, #E5E7EB);
  border-radius: var(--radius-lg, 1rem);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.fl-task-checklist__header.wp-block-group {
  margin-bottom: 2rem;
  text-align: center;
}

.fl-task-checklist__title {
  font-family: var(--font-display, 'Fraunces', serif);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--color-ink-900, #1A1A1A);
  margin: 0 0 0.5rem 0;
}

.fl-task-checklist__list {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

.fl-task-checklist__item {
  padding: 10px 0;
  border-bottom: 1px solid var(--color-ink-100, #F3F4F6);
  transition: all 0.2s ease;
  text-align: left;
}

.fl-task-checklist__item:last-child {
  border-bottom: none;
}

/* Custom Checkbox Style */
.fl-task-checklist__checkbox-wrap {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
}

.fl-task-checklist__checkbox {
  appearance: none;
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  border: 2px solid var(--color-ink-300, #D1D5DB);
  border-radius: 6px;
  background: #FFFFFF;
  cursor: pointer;
  transition: all 0.2s ease;
  margin: 0 !important;
  flex-shrink: 0;
  position: relative;
  outline: none;
}

.fl-task-checklist__checkbox:hover {
  border-color: var(--color-brand-500);
}

.fl-task-checklist__checkbox:checked {
  background-color: var(--color-brand-600);
  border-color: var(--color-brand-600);
}

.fl-task-checklist__checkbox:checked::after {
  content: '';
  position: absolute;
  left: 5px;
  top: 1px;
  width: 6px;
  height: 11px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.fl-task-checklist__text {
  font-family: var(--font-body, 'Plus Jakarta Sans', sans-serif);
  font-size: 1rem;
  color: var(--color-ink-700, #373737);
  line-height: 1.5;
  cursor: pointer;
  transition: all 0.2s ease;
}

.fl-task-checklist__checkbox:checked~.fl-task-checklist__text {
  color: var(--color-ink-400, #9CA3AF);
  text-decoration: line-through;
}

/* Hide SVG icon — checkmark rendered via ::after */
.fl-task-checklist__icon {
  display: none;
}

@media (max-width: 640px) {
  .fl-task-checklist.wp-block-group {
    padding: 1.5rem !important;
    margin: 1.5rem 1rem;
  }

  .fl-task-checklist__title {
    font-size: 1.25rem;
  }
}

/* ==========================================================================
   TABLE OF CONTENTS
   ========================================================================== */

.fl-toc {
  max-width: 42rem;
  margin: 0 auto 2.5rem;
  padding: 1.5rem 2rem;
  background: linear-gradient(135deg, rgba(44, 62, 80, 0.04) 0%, rgba(78, 109, 135, 0.02) 100%);
  border: 1px solid rgba(44, 62, 80, 0.12);
  border-left: 4px solid var(--fl-brand-800, #2C3E50);
  border-radius: 0 1rem 1rem 0;
  font-family: var(--fl-font-body, 'Plus Jakarta Sans', system-ui, sans-serif);
}

.fl-toc__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.fl-toc__title {
  font-family: var(--fl-font-display, 'Fraunces', Georgia, serif);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--fl-ink-900, #1A1A1A);
  margin: 0;
  letter-spacing: -0.01em;
}

.fl-toc__toggle {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.375rem 0.75rem;
  background: transparent;
  border: 1px solid var(--fl-ink-200, #E5E7EB);
  border-radius: 0.5rem;
  font-family: inherit;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--fl-ink-500, #6B7280);
  cursor: pointer;
  transition: all 0.2s ease;
}

.fl-toc__toggle:hover,
.fl-toc__toggle:focus {
  border-color: var(--fl-ink-400, #9CA3AF);
  color: var(--fl-ink-700, #373737);
  box-shadow: none;
  outline: none;
  background: transparent;
}

.fl-toc__toggle-icon {
  transition: transform 0.3s ease;
}

.fl-toc__toggle[aria-expanded="false"] .fl-toc__toggle-icon {
  transform: rotate(180deg);
}

.fl-toc__list {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: toc-counter;
  max-height: none;
  overflow: visible;
}

.fl-toc__list.is-collapsed {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.4s ease, opacity 0.3s ease;
}

.fl-toc__item {
  counter-increment: toc-counter;
  margin: 0;
  padding: 0;
}

.fl-toc__link {
  display: block;
  padding: 5px 0;
  font-size: 0.9375rem;
  line-height: 1.4;
  color: var(--fl-ink-600, #525252);
  text-decoration: none !important;
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
  transition: all 0.2s ease;
}

.fl-toc__link::before {
  content: counter(toc-counter) ". ";
  font-weight: 600;
  color: var(--fl-ink-500, #6B7280);
  margin-right: 0.25rem;
}

.fl-toc__link:hover {
  color: var(--fl-brand-700, #34495E);
  padding-left: 0.5rem;
  text-decoration: none !important;
}

.fl-toc__item:last-child .fl-toc__link {
  border-bottom: none;
}

/* Indentation for nested headings (H3+) - no numbering, don't increment counter */
.fl-toc__item--level-1,
.fl-toc__item--level-2,
.fl-toc__item--level-3,
.fl-toc__item--level-4 {
  counter-increment: none;
}

.fl-toc__item--level-1 .fl-toc__link::before,
.fl-toc__item--level-2 .fl-toc__link::before,
.fl-toc__item--level-3 .fl-toc__link::before,
.fl-toc__item--level-4 .fl-toc__link::before {
  content: "\2013\00a0";
  color: var(--fl-ink-400, #9CA3AF);
}

.fl-toc__item--level-1 .fl-toc__link {
  padding-left: 1.25rem;
  font-size: 0.875rem;
}

.fl-toc__item--level-2 .fl-toc__link {
  padding-left: 2.5rem;
  font-size: 0.8125rem;
}

.fl-toc__item--level-3 .fl-toc__link {
  padding-left: 3.75rem;
  font-size: 0.8125rem;
}

.fl-toc__item--level-4 .fl-toc__link {
  padding-left: 5rem;
  font-size: 0.8125rem;
}

/* Smooth scroll for anchor links */
html {
  scroll-behavior: smooth;
}

/* Offset for fixed header */
[id] {
  scroll-margin-top: 100px;
}

/* TOC responsive */
@media (max-width: 640px) {
  .fl-toc {
    margin: 0 1rem 2rem;
    padding: 1.25rem 1.5rem;
    border-radius: 0 0.75rem 0.75rem 0;
  }

  .fl-toc__title {
    font-size: 1.125rem;
  }

  .fl-toc__link {
    font-size: 0.875rem;
    padding: 0.5rem 0;
  }
}

/* Hover effect for nested TOC items */
.fl-toc__item--level-1 .fl-toc__link:hover,
.fl-toc__item--level-2 .fl-toc__link:hover,
.fl-toc__item--level-3 .fl-toc__link:hover,
.fl-toc__item--level-4 .fl-toc__link:hover {
  color: var(--fl-brand-700, #34495E);
  padding-left: 1.75rem;
}

.fl-toc__item--level-2 .fl-toc__link:hover {
  padding-left: 3rem;
}

.fl-toc__item--level-3 .fl-toc__link:hover {
  padding-left: 4.25rem;
}

.fl-toc__item--level-4 .fl-toc__link:hover {
  padding-left: 5.5rem;
}

/* ==========================================================================
   EXECUTIVE SUMMARY
   ========================================================================== */

/* Create a stacking context so the pseudo-element goes behind this block */
*:has(> .executive-summary) {
  isolation: isolate;
}

.executive-summary {
  position: relative;
  max-width: 42rem;
  margin: 3.5rem auto 3.5rem;
  padding: 1.5rem;
  background-color: #FFFFFF;
  border: 1px solid var(--fl-ink-900, #1A1A1A);
  font-family: var(--fl-font-body, 'Plus Jakarta Sans', system-ui, sans-serif);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--fl-ink-700, #373737);
  text-align: left;
}

.executive-summary::after {
  content: "";
  display: block;
  position: absolute;
  z-index: -2;
  top: 0.75rem;
  left: 0.75rem;
  width: 100%;
  height: 100%;
  background-image: linear-gradient(45deg, #FFFFFF 33.33%, var(--fl-ink-900, #1A1A1A) 33.33%, var(--fl-ink-900, #1A1A1A) 50%, #FFFFFF 50%, #FFFFFF 83.33%, var(--fl-ink-900, #1A1A1A) 83.33%, var(--fl-ink-900, #1A1A1A) 100%);
  background-size: 0.28rem 0.28rem;
}

.executive-summary::before,
.executive-summary__heading {
  display: inline-block;
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%, -50%);
  padding: 0 0.5rem;
  background: #FFFFFF;
  font-family: var(--fl-font-display, 'Fraunces', Georgia, serif);
  font-size: 1.25rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1875rem;
  color: var(--fl-ink-900, #1A1A1A);
  white-space: nowrap;
  margin: 0;
  z-index: 1;
}

.executive-summary::before {
  content: "Podsumowanie";
}

.executive-summary strong {
  font-weight: 600;
  color: var(--fl-ink-900, #1A1A1A);
}

.executive-summary a {
  color: var(--fl-brand-700, #34495E);
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 0.2s ease;
}

.executive-summary a:hover {
  color: var(--fl-accent-600, #C41E1A);
}

/* Executive summary responsive */
@media (max-width: 640px) {
  .executive-summary {
    margin: 2rem 1rem 3rem;
    padding: 1.25rem;
    font-size: 1rem;
  }
}

/* ==========================================================================
   RESPONSIVE VIDEO CONTAINER
   ========================================================================== */

.vidLessContainer {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  /* 16:9 Aspect Ratio */
  height: 0;
  margin: 2.5rem auto;
  background-color: #000;
  border-radius: var(--fl-radius-lg, 1rem);
  overflow: hidden;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
}

.vidLessContainer iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* ==========================================================================
   POST AUTHOR DESCRIPTION WIDTH (Desktop only)
   ========================================================================== */

.post-author-desc {
  width: 100%;
}

@media (min-width: 992px) {
  .post-author-desc {
    width: 50%;
  }
}

/* ==========================================================================
   POST TAGS ABOVE AUTHOR
   ========================================================================== */

.fl-tags-above-author {
  margin-bottom: 1.5rem;
  padding: 0.75rem 0;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.fl-tags-label {
  font-weight: 600;
  color: var(--fl-ink-500, #6B7280);
  margin-right: 0.5rem;
}

.fl-post-tag {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  margin: 0.25rem 0.25rem 0.25rem 0;
  background-color: var(--fl-surface-100, #F3F4F6);
  border-radius: var(--fl-radius-md, 0.5rem);
  font-size: 0.875rem;
  color: var(--fl-ink-600, #525252);
  text-decoration: none;
  transition: all 0.2s ease;
}

.fl-post-tag:hover {
  background-color: var(--fl-brand-100, #E8EEF2);
  color: var(--fl-brand-700, #34495E);
  text-decoration: none;
}

/* ==========================================================================
   GUTENBERG TABLE BLOCK
   ========================================================================== */

figure.wp-block-table {
  margin: 2.5rem 0;
  overflow-x: auto;
  background: #ffffff;
  border: 1px solid var(--color-ink-200, #E5E7EB);
  border-radius: var(--radius-lg, 1rem);
  box-shadow: 0 20px 25px -5px rgba(26, 26, 26, 0.05);
}

figure.wp-block-table table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-family: var(--font-body, 'Plus Jakarta Sans', system-ui, sans-serif);
  font-size: 0.9375rem;
  line-height: 1.5;
  border: none;
}

figure.wp-block-table thead {
  background: var(--color-brand-900, #1E2D3D);
}

figure.wp-block-table thead th {
  color: #FFFFFF;
  font-weight: 600;
  padding: 1.25rem 1.5rem;
  text-align: center;
  border: none;
  font-size: 0.875rem;
  letter-spacing: 0.02em;
}

figure.wp-block-table tbody tr {
  border-bottom: 1px solid var(--color-ink-200, #E5E7EB);
  transition: background 0.2s ease;
}

figure.wp-block-table tbody tr:last-child {
  border-bottom: none;
}

figure.wp-block-table tbody tr:hover {
  background: var(--color-brand-50, #EDF2F6);
}

figure.wp-block-table tbody td {
  padding: 1rem 1.5rem;
  color: var(--color-ink-600, #525252);
  border: none;
  vertical-align: top;
}

figure.wp-block-table figcaption {
  text-align: center;
  font-size: 0.8125rem;
  color: var(--color-ink-500, #6B7280);
  margin-top: 0.75rem;
  font-style: italic;
  line-height: 1.5;
}

/* Striped rows for readability */
figure.wp-block-table tbody tr:nth-child(even) {
  background: rgba(243, 244, 246, 0.4);
}

figure.wp-block-table tbody tr:nth-child(even):hover {
  background: var(--color-brand-50, #EDF2F6);
}

figure.wp-block-table tbody td:first-child {
  font-weight: 600;
  color: var(--color-ink-800, #2D2D2D);
}

figure.wp-block-table tbody td:last-child {
  text-align: right;
  font-weight: 600;
  color: var(--color-accent-600, #C41E1A);
}

/* Table responsive */
@media (max-width: 640px) {
  figure.wp-block-table {
    margin: 2rem 0;
  }

  figure.wp-block-table table {
    font-size: 0.8125rem;
  }

  figure.wp-block-table thead th,
  figure.wp-block-table tbody td {
    padding: 0.75rem 1rem;
  }
}