/* V798o — Public phone layout only.
   Public portrait and Public landscape are deliberately independent from the
   Admin and Exhibitor layouts. No selector in this file targets those pages. */

/* -------------------------------------------------------------------------
   PUBLIC PORTRAIT
   Header: help left, Expo Planit right, both centred to the complete header.
   The Public tabs card remains the full plan-card width.
   ------------------------------------------------------------------------- */
@media (max-width:720px) and (orientation:portrait){
  body.responsiveWorkspaceV798o.publicDirectoryMode.publicHeaderControlsMode:not(.touchscreenMode) #planCard .cardHead{
    --v795fa-plan-head-h:64px!important;
    position:relative!important;
    display:block!important;
    box-sizing:border-box!important;
    width:100%!important;
    height:64px!important;
    min-height:64px!important;
    max-height:64px!important;
    padding:0!important;
    overflow:hidden!important;
  }
  body.responsiveWorkspaceV798o.publicDirectoryMode.publicHeaderControlsMode:not(.touchscreenMode) #planCard .publicPlanTitleBlock,
  body.responsiveWorkspaceV798o.publicDirectoryMode.publicHeaderControlsMode:not(.touchscreenMode) #planCard .publicPlanActions{
    display:none!important;
  }
  body.responsiveWorkspaceV798o.publicDirectoryMode.publicHeaderControlsMode:not(.touchscreenMode) #planCard .cardHead > .expoPlanitMobileHelpBtnV795ge{
    position:absolute!important;
    left:14px!important;
    top:50%!important;
    right:auto!important;
    bottom:auto!important;
    display:inline-flex!important;
    align-items:center!important;
    justify-content:center!important;
    box-sizing:border-box!important;
    width:38px!important;
    min-width:38px!important;
    max-width:38px!important;
    height:38px!important;
    min-height:38px!important;
    max-height:38px!important;
    margin:0!important;
    padding:0!important;
    transform:translateY(-50%)!important;
    border-radius:50%!important;
    font:900 20px/1 system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif!important;
    z-index:2!important;
  }
  body.responsiveWorkspaceV798o.publicDirectoryMode.publicHeaderControlsMode:not(.touchscreenMode) #planCard .cardHead > .expoPlanitPublicHeaderBrand{
    position:absolute!important;
    left:auto!important;
    right:14px!important;
    top:50%!important;
    bottom:auto!important;
    display:flex!important;
    align-items:center!important;
    justify-content:flex-end!important;
    box-sizing:border-box!important;
    width:104px!important;
    min-width:104px!important;
    max-width:104px!important;
    height:40px!important;
    min-height:40px!important;
    max-height:40px!important;
    margin:0!important;
    padding:0!important;
    transform:translateY(-50%)!important;
    border:0!important;
    overflow:visible!important;
    z-index:2!important;
  }
  body.responsiveWorkspaceV798o.publicDirectoryMode.publicHeaderControlsMode:not(.touchscreenMode) #planCard .cardHead > .expoPlanitPublicHeaderBrand::before{
    display:none!important;
  }
  body.responsiveWorkspaceV798o.publicDirectoryMode.publicHeaderControlsMode:not(.touchscreenMode) #planCard .cardHead > .expoPlanitPublicHeaderBrand .expoPlanitLogoMark{
    display:block!important;
    width:100px!important;
    min-width:100px!important;
    max-width:100px!important;
    height:29px!important;
    min-height:29px!important;
    max-height:29px!important;
    margin:0!important;
  }

  body.responsiveWorkspaceV798o.publicDirectoryMode:not(.touchscreenMode) #publicDirectoryShell{
    box-sizing:border-box!important;
    width:100%!important;
    min-width:0!important;
    max-width:none!important;
    margin-left:0!important;
    margin-right:0!important;
    padding-left:0!important;
    padding-right:0!important;
  }
  body.responsiveWorkspaceV798o.publicDirectoryMode:not(.touchscreenMode) #publicDirectoryTabs,
  body.responsiveWorkspaceV798o.publicDirectoryMode:not(.touchscreenMode) #publicDirectoryShell > .publicDirectoryPanelActive{
    box-sizing:border-box!important;
    width:100%!important;
    min-width:0!important;
    max-width:none!important;
  }
}

/* -------------------------------------------------------------------------
   PUBLIC LANDSCAPE PHONE
   Uses the same two-pane workspace geometry as the accepted Exhibitor
   landscape. The tabs remain a normal-width card and scroll horizontally.
   ------------------------------------------------------------------------- */
@media (max-width:980px) and (orientation:landscape) and (pointer:coarse){
  body.responsiveWorkspaceV798o.publicDirectoryMode.publicHeaderControlsMode:not(.touchscreenMode) #planCard .cardHead{
    --v795fa-plan-head-h:60px!important;
    position:relative!important;
    display:block!important;
    box-sizing:border-box!important;
    width:100%!important;
    height:60px!important;
    min-height:60px!important;
    max-height:60px!important;
    padding:0!important;
    overflow:hidden!important;
  }
  body.responsiveWorkspaceV798o.publicDirectoryMode.publicHeaderControlsMode:not(.touchscreenMode) #planCard .publicPlanTitleBlock,
  body.responsiveWorkspaceV798o.publicDirectoryMode.publicHeaderControlsMode:not(.touchscreenMode) #planCard .publicPlanActions{
    display:none!important;
  }
  body.responsiveWorkspaceV798o.publicDirectoryMode.publicHeaderControlsMode:not(.touchscreenMode) #planCard .cardHead > .expoPlanitMobileHelpBtnV795ge{
    position:absolute!important;
    left:12px!important;
    top:50%!important;
    right:auto!important;
    bottom:auto!important;
    display:inline-flex!important;
    align-items:center!important;
    justify-content:center!important;
    box-sizing:border-box!important;
    width:36px!important;
    min-width:36px!important;
    max-width:36px!important;
    height:36px!important;
    min-height:36px!important;
    max-height:36px!important;
    margin:0!important;
    padding:0!important;
    transform:translateY(-50%)!important;
    border-radius:50%!important;
    font:900 19px/1 system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif!important;
    z-index:2!important;
  }
  body.responsiveWorkspaceV798o.publicDirectoryMode.publicHeaderControlsMode:not(.touchscreenMode) #planCard .cardHead > .expoPlanitPublicHeaderBrand{
    position:absolute!important;
    left:auto!important;
    right:12px!important;
    top:50%!important;
    bottom:auto!important;
    display:flex!important;
    align-items:center!important;
    justify-content:flex-end!important;
    box-sizing:border-box!important;
    width:100px!important;
    min-width:100px!important;
    max-width:100px!important;
    height:38px!important;
    min-height:38px!important;
    max-height:38px!important;
    margin:0!important;
    padding:0!important;
    transform:translateY(-50%)!important;
    border:0!important;
    overflow:visible!important;
    z-index:2!important;
  }
  body.responsiveWorkspaceV798o.publicDirectoryMode.publicHeaderControlsMode:not(.touchscreenMode) #planCard .cardHead > .expoPlanitPublicHeaderBrand::before{
    display:none!important;
  }
  body.responsiveWorkspaceV798o.publicDirectoryMode.publicHeaderControlsMode:not(.touchscreenMode) #planCard .cardHead > .expoPlanitPublicHeaderBrand .expoPlanitLogoMark{
    display:block!important;
    width:96px!important;
    min-width:96px!important;
    max-width:96px!important;
    height:28px!important;
    min-height:28px!important;
    max-height:28px!important;
    margin:0!important;
  }

  /* Open landscape: exact two-pane plan + tabs structure. */
  body.responsiveWorkspaceV798o.publicDirectoryMode:not(.responsiveWorkspacePanelCollapsed):not(.touchscreenMode) main{
    grid-template-columns:minmax(0,1.62fr) minmax(300px,1fr)!important;
    grid-template-rows:minmax(0,1fr)!important;
    gap:8px!important;
  }
  body.responsiveWorkspaceV798o.publicDirectoryMode:not(.responsiveWorkspacePanelCollapsed):not(.touchscreenMode) #planCard{
    grid-column:1!important;
    grid-row:1!important;
    width:100%!important;
    min-width:0!important;
  }
  body.responsiveWorkspaceV798o.publicDirectoryMode:not(.responsiveWorkspacePanelCollapsed):not(.touchscreenMode) #publicDirectoryShell{
    grid-column:2!important;
    grid-row:1!important;
    display:flex!important;
    visibility:visible!important;
    opacity:1!important;
    pointer-events:auto!important;
    transform:none!important;
    box-sizing:border-box!important;
    width:100%!important;
    min-width:0!important;
    max-width:100%!important;
    height:100%!important;
    margin:0!important;
    padding:0!important;
    overflow:hidden!important;
  }

  /* Collapsed landscape: plan genuinely expands; no empty second/rail columns. */
  body.responsiveWorkspaceV798o.publicDirectoryMode.responsiveWorkspacePanelCollapsed:not(.touchscreenMode) main{
    grid-template-columns:minmax(0,1fr) 0!important;
    grid-template-rows:minmax(0,1fr)!important;
    gap:0!important;
  }
  body.responsiveWorkspaceV798o.publicDirectoryMode.responsiveWorkspacePanelCollapsed:not(.touchscreenMode) #planCard{
    grid-column:1!important;
    grid-row:1!important;
    width:100%!important;
    min-width:0!important;
  }
  body.responsiveWorkspaceV798o.publicDirectoryMode.responsiveWorkspacePanelCollapsed:not(.touchscreenMode) #publicDirectoryShell{
    grid-column:2!important;
    grid-row:1!important;
    visibility:hidden!important;
    opacity:0!important;
    pointer-events:none!important;
    transform:translateX(110%)!important;
    width:0!important;
    min-width:0!important;
    max-width:0!important;
    margin:0!important;
    padding:0!important;
    overflow:hidden!important;
  }

  /* Public tabs copy the accepted Exhibitor scrolling behaviour. */
  body.responsiveWorkspaceV798o.publicDirectoryMode:not(.touchscreenMode) #publicDirectoryTabs{
    display:flex!important;
    flex:0 0 52px!important;
    align-items:stretch!important;
    box-sizing:border-box!important;
    width:100%!important;
    min-width:0!important;
    max-width:100%!important;
    height:52px!important;
    min-height:52px!important;
    max-height:52px!important;
    margin:0!important;
    padding:0!important;
    overflow-x:auto!important;
    overflow-y:hidden!important;
    scroll-snap-type:x proximity!important;
    overscroll-behavior-x:contain!important;
    -webkit-overflow-scrolling:touch!important;
    scrollbar-width:none!important;
    touch-action:pan-x!important;
  }
  body.responsiveWorkspaceV798o.publicDirectoryMode:not(.touchscreenMode) #publicDirectoryTabs::-webkit-scrollbar{
    display:none!important;
  }
  body.responsiveWorkspaceV798o.publicDirectoryMode:not(.touchscreenMode) #publicDirectoryTabs > .publicDirectoryTab{
    flex:0 0 104px!important;
    box-sizing:border-box!important;
    width:104px!important;
    min-width:104px!important;
    max-width:104px!important;
    height:52px!important;
    min-height:52px!important;
    max-height:52px!important;
    padding:10px 7px!important;
    font-size:12px!important;
    line-height:1!important;
    white-space:nowrap!important;
    overflow:hidden!important;
    text-overflow:ellipsis!important;
    scroll-snap-align:start!important;
  }
  body.responsiveWorkspaceV798o.publicDirectoryMode:not(.touchscreenMode) #publicDirectoryTabs .publicDirectoryTabShort{
    display:inline!important;
  }
  body.responsiveWorkspaceV798o.publicDirectoryMode:not(.touchscreenMode) #publicDirectoryTabs .publicDirectoryTabLong{
    display:none!important;
  }

  body.responsiveWorkspaceV798o.publicDirectoryMode:not(.touchscreenMode) #publicDirectoryShell > .publicDirectoryPanelActive{
    box-sizing:border-box!important;
    width:100%!important;
    min-width:0!important;
    max-width:100%!important;
    overflow:hidden!important;
  }
  body.responsiveWorkspaceV798o.publicDirectoryMode:not(.touchscreenMode) #publicDirectoryShell .tableScroll,
  body.responsiveWorkspaceV798o.publicDirectoryMode:not(.touchscreenMode) #publicDirectoryShell #websiteLinksList,
  body.responsiveWorkspaceV798o.publicDirectoryMode:not(.touchscreenMode) #publicDirectoryShell #visitorListBody,
  body.responsiveWorkspaceV798o.publicDirectoryMode:not(.touchscreenMode) #publicDirectoryShell #visitorListItems{
    min-width:0!important;
    max-width:100%!important;
    overflow-x:auto!important;
    -webkit-overflow-scrolling:touch!important;
  }
}
