/* BienPrints — mode chooser modal (scroll vs pages)
   Namespaced to avoid affecting the rest of the site.
*/
.bpModeModal[hidden]{ display:none !important; }

.bpModeModal{
  position: fixed;
  inset: 0;
  z-index: 10050;
  display: grid;
  place-items: center;
  padding: 18px;
}
.bpModeModal__backdrop{
  position:absolute; inset:0;
  background: rgba(0,0,0,.55);
  backdrop-filter: blur(6px);
}
.bpModeModal__box{
  position: relative;
  width: min(720px, 92vw);
  border-radius: 18px;
  padding: 18px 18px 16px;
  background: rgba(17,24,39,.95);
  color: #fff;
  box-shadow: 0 18px 50px rgba(0,0,0,.45);
  border: 1px solid rgba(255,255,255,.10);
}
[data-theme="light"] .bpModeModal__box{
  background: rgba(255,255,255,.96);
  color: #0b1220;
  border: 1px solid rgba(15,23,42,.10);
}
.bpModeModal__box h2{
  margin: 0 0 8px;
  font-size: 20px;
  line-height: 1.15;
}
.bpModeModal__box p{
  margin: 0 0 14px;
  opacity: .9;
}
.bpModeModal__actions{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
@media (max-width: 560px){
  .bpModeModal__actions{ grid-template-columns: 1fr; }
}

/* Ensure buttons look like existing theme without overriding site-wide .btn */
.bpModeModal .btn{
  width: 100%;
  justify-content: center;
}


/* Language row + remember checkbox */
.bpModeModal__langs{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin: 0 0 14px;
}
.bpModeModal__langbtn{
  appearance:none;
  border:1px solid rgba(255,255,255,.22);
  background: transparent;
  color: inherit;
  border-radius: 999px;
  padding: 6px 10px;
  font: 600 12px/1 system-ui,Segoe UI,Roboto;
  letter-spacing: .02em;
  cursor: pointer;
  opacity: .9;
}
.bpModeModal__langbtn[aria-current="true"]{
  opacity: 1;
  border-color: rgba(212,175,55,.55);
  background: rgba(212,175,55,.18);
}
[data-theme="light"] .bpModeModal__langbtn{
  border-color: rgba(15,23,42,.18);
}
[data-theme="light"] .bpModeModal__langbtn[aria-current="true"]{
  border-color: rgba(212,175,55,.55);
  background: rgba(212,175,55,.14);
}
.bpModeModal__remember{
  display:flex;
  align-items:center;
  gap:10px;
  margin-top: 12px;
  font-size: 13px;
  opacity: .92;
  user-select:none;
}
.bpModeModal__remember input{
  width:16px;
  height:16px;
}

/* --- Mobile menu: allow scrolling inside the drawer (so all menu items are reachable) --- */
@media (max-width: 980px), (hover: none) and (pointer: coarse){
  .menuPanel{
    display: flex;
    flex-direction: column;
    max-height: calc(100vh - 28px);
    max-height: calc(100dvh - 28px);
  }
  .menuTop,
  .menuExtras{ flex: 0 0 auto; }
  .menuLinks{
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    padding-bottom: max(10px, env(safe-area-inset-bottom));
  }
}
