/* Mobile navigation and comparison controls shared by all pages. */
.find-slots-submit { display:none }
@media (max-width:740px) {
  html { scroll-padding-top:4.8rem }
  .utility-row { min-height:28px; font-size:.73rem }
  .site-header {
    position:sticky;
    top:0;
    z-index:15;
    background:var(--paper);
    box-shadow:0 2px 10px #24152008;
  }
  .header-row { min-height:56px; gap:8px }
  .header-row .brand { min-height:44px; font-size:clamp(1.2rem,5.1vw,1.5rem) }
  .header-row .brand-mark { height:28px; width:28px }
  .header-actions { gap:6px }
  .header-actions .search-trigger,.header-actions .mobile-nav summary {
    width:44px; height:44px; min-height:44px; padding:0; border-radius:50%;
  }
  .header-actions .search-trigger { background:transparent; border-color:transparent }
  .header-actions .search-trigger>span,.mobile-nav summary>span {
    position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); white-space:nowrap;
  }
  .header-actions .mobile-nav summary {
    background:var(--plum);
    color:#fff;
    border:0;
    flex-direction:column;
    gap:5px;
    cursor:pointer;
  }
  .mobile-nav summary::before,.mobile-nav summary::after {
    content:""; display:block; width:16px; height:2px; background:currentColor; border-radius:2px;
  }
  .mobile-nav[open] summary::before { transform:translateY(3.5px) rotate(45deg) }
  .mobile-nav[open] summary::after { transform:translateY(-3.5px) rotate(-45deg) }
  .mobile-nav nav {
    top:calc(100% + 8px);
    width:min(19rem,calc(100vw - 32px));
    max-height:calc(100dvh - 7rem);
    overflow-y:auto;
    border-radius:16px;
    padding:7px;
    box-shadow:0 14px 40px #24152026;
  }
  .mobile-nav nav a {
    display:flex; align-items:center; padding:9px 14px; min-height:44px; font-size:1rem;
  }
  .mobile-nav nav .nav-finder { background:#f7ebe6; color:var(--rust); border-radius:10px; margin-bottom:4px }
  dialog[open]:is(.search-dialog,.compare-dialog) {
    position:fixed; inset:auto 0 0; margin:0 auto; width:min(100%,40rem); max-width:100%;
    max-height:88vh; max-height:88dvh; display:flex; flex-direction:column;
    padding:18px 16px max(16px,env(safe-area-inset-bottom));
    border-radius:20px 20px 0 0; border-bottom:0;
    overscroll-behavior:contain;
  }
  dialog .search-heading { flex:none; align-items:center; margin-bottom:12px }
  .search-heading h2 { font-size:1.45rem }
  dialog .close { min-width:44px; height:44px; border-radius:50%; flex:none }
  .site-search-form { display:flex; gap:7px; align-items:stretch }
  .site-search-form input { min-width:0; min-height:46px; font-size:16px; flex:1 }
  .find-slots-submit { display:inline-flex; min-height:46px; white-space:nowrap; padding:8px 13px; border-radius:8px }
  .search-dialog .search-message { flex:none; margin:.75rem 0 .25rem }
  .search-results { min-height:0; overflow:auto; overscroll-behavior:contain }
  .search-results a { padding:10px 6px; min-height:44px }
  .compare-choice { min-height:44px; gap:.5rem }
  .compare-choice input { width:19px; height:19px }
  .compare-toolbar .button,.operator-bottom .button { min-height:44px }
  .compare-dialog .table-wrap { overflow:auto; overscroll-behavior:contain }
  .compare-dialog table,.compare-dialog tbody,.compare-dialog thead { display:block }
  .compare-dialog thead tr { display:flex; flex-wrap:wrap; gap:.35rem; margin:0 0 12px }
  .compare-dialog thead th:first-child { display:none }
  .compare-dialog thead th { min-width:0; border:0; border-radius:7px; padding:0; background:#f5eeeb }
  .compare-dialog thead a { display:inline-flex; align-items:center; min-height:44px; padding:6px 12px }
  .compare-dialog tbody tr { display:block; margin-bottom:12px; border:1px solid var(--line); border-radius:10px; overflow:hidden }
  .compare-dialog tbody th { display:block; border:0; padding:8px 12px; background:#f4eced; font-size:.94rem }
  .compare-dialog td {
    display:grid; grid-template-columns:minmax(72px, .85fr) minmax(0,1.4fr); align-items:baseline;
    gap:10px; border:0; border-top:1px solid var(--line); min-width:0; padding:9px 12px;
    font-size:.9rem; line-height:1.4; overflow-wrap:anywhere;
  }
  .compare-dialog td::before { content:attr(data-casino-name); font-weight:700; color:var(--muted) }
  .site-footer nav a { display:inline-flex; align-items:center; min-height:40px }
  .footer-bottom { flex-wrap:wrap; row-gap:3px }
}
