/**
 * @file
 * Styles for DocPro Sub-section pages (/2026/doclab & /2026/hun-docs-cookin).
 */

/* Hide default Drupal page title block on DocPro sub-section pages */
body:has(.docpro-section-page) #block-verzio26-page-title {
  display: none;
}

.docpro-section-page {
  background-color: var(--color-white);
  width: 100%;
  box-sizing: border-box;
  border-bottom: none !important;
}

.docpro-section-page .section-hero-block {
  border-right: none;
}

.docpro-section-page .section-hero-media {
  min-height: 280px;
}

.docpro-section-page .section-hero-desc ul,
.docpro-section-page .section-hero-desc ol {
  margin: 0 0 16px 0;
  padding-left: 1.25rem;
}

.docpro-section-page .section-hero-desc ul:last-child,
.docpro-section-page .section-hero-desc ol:last-child {
  margin-bottom: 0;
}

.docpro-section-empty {
  padding: 40px var(--main-padding);
  box-sizing: border-box;
}

.docpro-section-empty p {
  margin: 0;
}

/* ==========================================================================
   Mentors Section (Matching DocPro Program 3-Column Accordion Grid)
   ========================================================================== */
.docpro-mentors-section,
.docpro-films-section {
  width: 100%;
  box-sizing: border-box;
  border-bottom: 1px solid var(--color-border);
}

.docpro-mentors-header,
.docpro-films-header {
  padding: 20px var(--main-padding);
  border-bottom: 1px solid var(--color-border);
  box-sizing: border-box;
}

.docpro-mentors-title,
.docpro-films-title {
  text-transform: uppercase;
  margin: 0;
}

.docpro-mentors-grid .pro-participant-card {
  min-width: 0;
}

.docpro-mentors-grid .pro-participant-bio a {
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Tablet (641px - 1024px): clean 2-column grid borders */
@media (max-width: 1024px) and (min-width: 641px) {
  .docpro-mentors-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .docpro-mentors-grid .pro-participant-card,
  .docpro-mentors-grid .pro-participant-card:nth-child(3n),
  .docpro-mentors-grid .pro-participant-card:nth-child(3n + 1),
  .docpro-mentors-grid
    .pro-participant-card:nth-last-child(3):nth-child(3n + 1),
  .docpro-mentors-grid
    .pro-participant-card:nth-last-child(2):not(:nth-child(3n)) {
    border-left: none;
    border-right: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
  }

  .docpro-mentors-grid .pro-participant-card:nth-child(2n + 1) {
    border-left: 1px solid var(--color-border);
  }

  .docpro-mentors-grid .pro-participant-card:nth-child(2n) {
    border-right: 1px solid var(--color-border);
  }

  .docpro-mentors-grid .pro-participant-card:last-child,
  .docpro-mentors-grid
    .pro-participant-card:nth-last-child(2):nth-child(2n + 1) {
    border-bottom: none;
  }
}

/* Flush transition into Sponsors block on smaller screens */
@media (max-width: 768px) {
  .docpro-section-page .section-sponsors-section {
    margin-top: 0;
  }
}

/* Mobile (<= 640px): clean 1-column grid borders */
@media (max-width: 640px) {
  .docpro-section-header {
    padding: 16px;
  }

  .docpro-section-header .catalog-title {
    font-size: 1.8rem;
  }

  .docpro-section-empty {
    padding: 32px;
  }

  .docpro-mentors-header {
    padding: 16px;
    text-align: center;
  }

  .docpro-mentors-title {
    font-size: 1.8rem;
  }

  .docpro-mentors-grid {
    grid-template-columns: 1fr;
    padding-inline: 16px;
  }

  .docpro-mentors-grid .pro-participant-card,
  .docpro-mentors-grid .pro-participant-card:nth-child(3n),
  .docpro-mentors-grid .pro-participant-card:nth-child(3n + 1),
  .docpro-mentors-grid
    .pro-participant-card:nth-last-child(3):nth-child(3n + 1),
  .docpro-mentors-grid
    .pro-participant-card:nth-last-child(2):not(:nth-child(3n)) {
    border-left: 1px solid var(--color-border);
    border-right: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
  }

  .docpro-mentors-grid .pro-participant-card:last-child {
    border-bottom: none;
  }
}
