/* Kitaplarimiz + Pi Dakika Post: approved 1920px site frame.
   Isolated page rules. Header, Page Title, mobile views remain unchanged. */
body.books-page .books-catalog-page,
body.pi-post-page .pi-post-shell {
  width: 100%;
  max-width: var(--coop-site-max, 1920px);
  margin-inline: auto;
}

/* Header's 1840px outer rail and its variable inner gutter are reused.
   1451px is where the old 1396px/1440px limits prevented further growth. */
@media (min-width: 1451px) {
  body.books-page .books-catalog-section > .container {
    width: 100%;
    max-width: var(--coop-chrome-max, 1840px);
    padding-inline: var(--coop-chrome-gutter, clamp(40px, 2.75vw, 56px));
    margin-inline: auto;
  }

  body.pi-post-page .pi-post-shell .pi-post-content {
    width: calc(100% - 80px);
    max-width: var(--coop-chrome-max, 1840px);
    padding-inline: var(--coop-chrome-gutter, clamp(40px, 2.75vw, 56px));
    margin-inline: auto;
    margin-top: 32px;
    margin-bottom: 80px;
  }
}

/* Preserve the five-post two-panel composition at Full HD rather than
   leaving a small 412px viewer in a very wide otherwise empty panel. */
@media (min-width: 1600px) {
  body.pi-post-page .pi-post-shell .pi-post-main-grid {
    grid-template-columns: minmax(445px, 35%) minmax(0, 1fr);
    min-height: 570px;
  }
  body.pi-post-page .pi-post-shell .posts-list {
    grid-auto-rows: 92px;
    height: 500px;
    max-height: 500px;
  }
  body.pi-post-page .pi-post-shell .post-row { min-height: 92px; }
  body.pi-post-page .pi-post-shell .viewer-shell {
    grid-template-columns: 44px minmax(0, 500px) 44px;
  }
  body.pi-post-page .pi-post-shell .viewer-stage {
    width: 500px;
    height: 500px;
  }
}

/* Kitaplarımız: başlık ve açıklamanın tamamı kartın sağ metin sütununu
   kullanır. Eski books.css / shop.css 920px ve 980px tavanlarını kaldır. */
body.books-page .books-catalog-card__content {
  min-width: 0;
  max-width: none;
}
body.books-page .books-catalog-card__content .books-catalog-card__title,
body.books-page .books-catalog-card__content .books-catalog-card__description {
  display: block;
  box-sizing: border-box;
  width: 100%;
  max-width: none;
}
