/* ==========================================================================
   GRID SYSTEM & CONTAINERS
   ========================================================================== */

.datochai-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.site-main {
  padding: 40px 0;
}

/* Post grid (global) */
.post-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 30px;
}

/* 3‑column grid */
.grid-3-col {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

/* Layout wrapper for pages/posts */
.layout-wrapper {
  margin-bottom: 60px;
  width: 100%;
}

/* Sidebar sticky */
.single-sidebar {
  position: sticky;
  top: 100px;
  align-self: start;
}

/* Layout variants */
.layout-full { display: block; }
.layout-full .main-post-column { max-width: 100%; }

.layout-compact {
  display: flex;
  justify-content: center;
}
.layout-compact .main-post-column {
  max-width: 800px;
  width: 100%;
}

.layout-left-toc {
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: 30px;
  align-items: start;
  width: 100%;
}
.layout-left-toc .main-post-column {
  max-width: 100%;
  min-width: 0;
}

.layout-dual-sidebar {
  display: grid;
  grid-template-columns: 220px 1fr 220px;
  gap: 30px;
  align-items: start;
  width: 100%;
}
.layout-dual-sidebar .main-post-column {
  max-width: 100%;
  min-width: 0;
}

/* Category section heading */
.section-global-heading {
  font-size: 28px;
  font-weight: 800;
  margin: 60px 0 30px;
  text-transform: capitalize;
  border-bottom: 2px solid var(--color-border-secondary);
  padding-bottom: 10px;
}

/* Responsive */
@media (max-width: 1024px) {
  .layout-left-toc,
  .layout-dual-sidebar {
    grid-template-columns: 1fr;
  }
  .single-sidebar { display: none; }
  .grid-3-col { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .grid-3-col { grid-template-columns: 1fr; }
  .layout-compact .main-post-column {
    max-width: 100%;
    padding: 0 15px;
  }
}