/* Masaüstünde araç sayfalarında sayfa kaymaz. Sol (girdiler) ve sağ (sonuçlar) paneller
   kendi kaydırma alanlarında bağımsız kayar. Fare hangi panelin üzerindeyse yalnızca o kayar.
   Bu düzen, index.html'de "split" sınıfı taşıyan tüm araç bölümlerinde geçerlidir. */

@media (min-width: 1001px) {
  html, body { height: 100%; }
  body { display: flex; flex-direction: column; overflow: hidden; }
  .site-header, .site-footer { flex: none; }
  .site-main { flex: 1 1 0; min-height: 0; overflow-y: auto; }

  body:has(.view.split:not([hidden])) .site-main {
    overflow: hidden;
    display: flex;
    flex-direction: column;
    padding-bottom: 16px;
  }
  body:has(.view.split:not([hidden])) .site-footer { display: none; }

  body:has(.view.split:not([hidden])) .view {
    flex: 1 1 0;
    min-height: 0;
    display: flex;
    flex-direction: column;
  }
  body:has(.view.split:not([hidden])) .view > .top { flex: none; }

  body:has(.view.split:not([hidden])) .view > .grid {
    flex: 1 1 0;
    min-height: 0;
    grid-template-rows: minmax(0, 1fr);
    align-items: stretch;
  }

  body:has(.view.split:not([hidden])) .view > .grid > .side,
  body:has(.view.split:not([hidden])) .view > .grid > .main {
    position: relative;
    top: auto;
    min-height: 0;
    height: 100%;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: none;
  }
  body:has(.view.split:not([hidden])) .view > .grid > .side::-webkit-scrollbar,
  body:has(.view.split:not([hidden])) .view > .grid > .main::-webkit-scrollbar {
    display: none;
    width: 0;
    height: 0;
  }
}

/* Dar ekranlarda (telefon, tablet) normal sayfa kaydırması kullanılır. */
@media (max-width: 1000px) {
  body { overflow: visible; }
  .site-main { overflow: visible; }
}
