/* 1.2.23 cross-device fixes (phones, tablets, iOS). Header bar look is unchanged. */

/* Phone menu: the theme gave the open menu a fixed 300px box (overflow:auto),
   so the 7th row (TR | EN) was hidden below the fold of the menu and could not
   be tapped. Let the box grow to its content, capped at the screen height. */
@media only screen and (max-width: 1036px) {
  html body header.monolit-header .nav-holder {
    height: auto !important;
    max-height: calc(100vh - 60px);
    max-height: calc(100dvh - 60px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
  }
}

/* Narrow phones (< 400px): the 240px logo ran under the hamburger
   (hamburger is fixed at right:80px), so taps on the hamburger hit the logo
   link. Shrink only the logo so it ends 12px before the hamburger. */
@media only screen and (max-width: 401px) {
  html body header.monolit-header .logo-holder {
    max-width: calc(100vw - 162px) !important;
  }
  html body header.monolit-header .logo-holder img {
    width: 100% !important;
    height: auto !important;
  }
}

/* < 375px: .container is 92% wide (4vw margins) but .row has -15px margins,
   so every row stuck out ~2px on each side and the page could be dragged
   sideways on iPhone SE / small Android. Pad the container by the missing part. */
@media only screen and (max-width: 374px) {
  html body .container {
    box-sizing: border-box;
    padding-left: calc(15px - 4vw);
    padding-right: calc(15px - 4vw);
  }
}

/* Page hero titles were a fixed 40px; long single words (REFERANSLAR,
   AYDINLATMA) ran past the screen edge on 320–360px phones. */
@media only screen and (max-width: 480px) {
  html body .main-page-title h2 {
    font-size: min(40px, 10vw) !important;
    overflow-wrap: break-word;
  }
}

/* iOS Safari zooms the page when a focused field is under 16px.
   KVKK başvuru form (15px) and blog comment form (13.33px) triggered it. */
@media only screen and (max-width: 1024px), (hover: none) and (pointer: coarse) {
  html body input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="button"]):not([type="hidden"]):not([type="image"]):not([type="range"]),
  html body select,
  html body textarea {
    font-size: 16px !important;
  }
}

/* Map chooser open: stop the page behind it from rubber-band scrolling. */
html.bm-nav-open,
html.bm-nav-open body {
  overscroll-behavior: none;
}
