/* mobile.css - mobile optimisation for the public site (loaded after style.css). Created 2026-11-17.
   Everything is inside media queries, so the desktop layout does not change. */
@media (max-width: 860px) {
  /* grid tracks "1fr" grow to the content width and push the page sideways: make them shrinkable */
  .kb-layout, .mon-detail, .rl-layout, .cab, .home-hero, .dl-work { grid-template-columns: minmax(0, 1fr); }
  .kb-layout > *, .mon-detail > *, .rl-layout > *, .cab > *, .dl-work > * { min-width: 0; }
  .rl-text, .drop-table td, .kb-side, .mon-card, article, .news-body { overflow-wrap: anywhere; }
  img, video, canvas, svg { max-width: 100%; }
  img { height: auto; }
}
@media (max-width: 640px) {
  html, body { overflow-x: hidden; }
  .wrap { padding-left: 14px; padding-right: 14px; }
  /* header: logo and buttons in one row, menu scrolls sideways in one line; socials are in the footer */
  .site-header .wrap { flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 10px; padding-top: 8px; padding-bottom: 8px; }
  .logo .brand-logo { height: 46px; }
  .nav-social { display: none; }
  .nav-actions { width: auto; flex: 1 1 auto; justify-content: flex-end; flex-wrap: wrap; white-space: normal; gap: 8px; }
  .nav-actions .btn { padding: 0 14px; }
  .btn-dl-top { padding: 0 14px; font-size: .88rem; }
  .nav-links { order: 3; width: 100%; flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; margin: 0 -14px; padding: 0 14px 2px; }
  .nav-links::-webkit-scrollbar { display: none; }
  .nav-links a { white-space: nowrap; padding: 10px 14px; }
  /* finger-sized buttons and fields */
  .btn, .btn-dl-top { min-height: 44px; }
  input:not([type=checkbox]):not([type=radio]), select, textarea { min-height: 44px; font-size: 16px; }  /* 16px: iPhone does not zoom in on focus */
  .kb-tab { padding-top: 11px; padding-bottom: 11px; }
  /* wide tables scroll inside their own block */
  .drop-table, .table-wrap, table.rating, .tbl-scroll { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; max-width: 100%; }
  /* text no smaller than 12px */
  .tag, .cnt, .kq-place, .rl-sanc-t, .rl-sanc-h, .rl-toc-h, .lbl, .k, th, small { font-size: max(12px, 1em); }
  .drop-table td { padding-top: 10px; padding-bottom: 10px; }
}