/* ==========================================================================
   Layout: the page grid.
   Sections are full-bleed; their content sits on a 12-column grid inside
   --width-page with --gutter on both sides. Logical properties throughout so
   an Arabic (RTL) version mirrors without extra CSS.
   ========================================================================== */

.sk-grid {
  display: grid;
  grid-template-columns: repeat(var(--grid-columns), minmax(0, 1fr));
  column-gap: var(--grid-gap);
  width: 100%;
  max-width: var(--width-page);
  margin-inline: auto;
  padding-inline: var(--gutter);
  box-sizing: border-box;
}

/* Designed pages: Astra's content wrappers step aside. */
.sk-designed .site-content > .ast-container,
.sk-designed #primary,
.sk-designed .site-main,
.sk-designed article.page,
.sk-designed .entry-content {
  max-width: none;
  width: 100%;
  margin: 0;
  padding: 0;
}
.sk-designed .entry-content > * {
  margin-block: 0;
}
.sk-designed .site-content {
  overflow-x: clip; /* full-bleed art never causes horizontal scroll */
}
