/* === SECTION: PRESENTATION === */
.presentation-section {
  padding: 80px 0;
  background: #fff;
}

.presentation-section:nth-child(even) {
  background: #f7fafc;
}

.presentation-content {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.presentation-text {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.presentation-text h2 {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 1rem;
}

.presentation-text p {
  font-size: 1.125rem;
  color: var(--color-muted);
  line-height: 1.7;
}

.presentation-image {
  width: 100%;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
}

.presentation-image img {
  width: 100%;
  height: auto;
  display: block;
}

.presentation-section.alternate .presentation-content {
  grid-template-columns: 1fr 1fr;
}

.presentation-section.alternate .presentation-image {
  order: -1;
}

.presentation-section.full-width .presentation-content {
  grid-template-columns: 1fr;
  max-width: 1600px;
}

.presentation-section.full-width .presentation-text {
  text-align: center;
}

.presentation-section.full-width .tables-container {
  text-align: left;
}

.presentation-section.full-width .presentation-image {
  max-width: 800px;
  margin: 0 auto;
}

/* Tables side-by-side layout */
.tables-container {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 2rem;
  width: 100%;
  margin-top: 2rem;
}

.table-wrapper {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.table-wrapper h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-text);
  margin: 0;
}

/* TOC styles */
.toc {
  position: sticky;
  top: 1.5rem;
  align-self: start;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 0.75rem;
  background: #fff;
}

.toc h3 {
  font-size: 0.95rem;
  margin: 0.25rem 0.5rem 0.5rem;
  opacity: 0.8;
  color: var(--color-text);
}

.toc a {
  display: block;
  padding: 0.4rem 0.6rem;
  border-radius: 8px;
  color: var(--color-text);
  text-decoration: none;
  transition: all 0.2s ease;
}

.toc a:hover,
.toc a[aria-current="true"] {
  background: #f3f4f6;
  color: var(--color-accent);
}

/* Page grid layout */
.page-grid {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 2rem;
  padding: 2rem 0;
}

/* Top progress bar */
.top-progress {
  position: fixed;
  inset: 0 0 auto 0;
  height: 3px;
  background: linear-gradient(90deg, var(--color-accent) var(--p, 0%), transparent 0);
  z-index: 50;
  pointer-events: none;
}

@media (max-width: 960px) {
  .presentation-content {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  
  .presentation-section.alternate .presentation-image {
    order: 0;
  }
  
  .presentation-text h2 {
    font-size: 2rem;
  }
  
  .presentation-text p {
    font-size: 1rem;
  }
  
  .page-grid {
    grid-template-columns: 1fr;
  }
  
  .toc {
    position: relative;
    top: auto;
  }
  
  .tables-container {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
}

@media print {
  header.header,
  .top-progress,
  .toc {
    display: none !important;
  }
  
  .page-grid {
    display: block;
  }
  
  .presentation-section {
    page-break-after: always;
  }
}

