/*
 * Luxoria v18.74.6 — Mobile Header & Navigation Refinement
 * - Removes the duplicate mobile header logo.
 * - Restores clear dark header actions on the Luxury Light surface.
 * - Compacts the mobile drawer so every navigation item remains reachable.
 * - Removes the Home/Logout footer rail and the lower drawer curvature.
 */

html[data-theme="light"]{
  --lux746-ink:#202126;
  --lux746-ink-soft:#5f6169;
  --lux746-gold:#d5a03e;
  --lux746-gold-dark:#9b6a18;
  --lux746-ivory:#fffdfa;
  --lux746-ivory-soft:#faf7f1;
  --lux746-border:rgba(173,126,60,.18);
}

/* The removed sidebar footer must never leave a reserved dark/faded rail. */
html[data-theme="light"] body .community-sidebar .sidebar-bottom-v1861,
html[data-theme="light"] body .community-sidebar .sidebar-bottom-v1862,
html[data-theme="light"] body .community-sidebar .sidebar-footer-v1862{
  display:none!important;
  min-height:0!important;
  height:0!important;
  padding:0!important;
  margin:0!important;
  border:0!important;
  background:transparent!important;
  box-shadow:none!important;
}

@media(max-width:760px){
  /* Header: one clear row, no repeated logo/brand on mobile. */
  html[data-theme="light"] body:not(.chat-window-mode-v1860) .community-topbar.luxoria-unified-topbar-v1863{
    min-height:66px!important;
    height:66px!important;
    padding:
      max(7px,env(safe-area-inset-top))
      max(9px,env(safe-area-inset-right))
      7px
      max(9px,env(safe-area-inset-left))!important;
    display:grid!important;
    grid-template-columns:46px minmax(0,1fr)!important;
    align-items:center!important;
    gap:7px!important;
    background:rgba(255,253,249,.985)!important;
    border-bottom:1px solid rgba(190,137,39,.20)!important;
    box-shadow:0 3px 12px rgba(70,49,24,.045)!important;
  }

  html[data-theme="light"] body:not(.chat-window-mode-v1860) .community-topbar .top-brand{
    display:none!important;
    width:0!important;
    min-width:0!important;
    max-width:0!important;
    height:0!important;
    overflow:hidden!important;
    opacity:0!important;
    pointer-events:none!important;
  }

  html[data-theme="light"] body:not(.chat-window-mode-v1860) .community-topbar .mobile-menu-v1861{
    grid-column:1!important;
    width:44px!important;
    min-width:44px!important;
    height:44px!important;
    margin:0!important;
    color:var(--lux746-ink)!important;
    background:var(--lux746-ivory)!important;
    border:1px solid var(--lux746-border)!important;
    border-radius:14px!important;
    box-shadow:0 4px 12px rgba(70,49,24,.06),inset 0 1px 0 rgba(255,255,255,.96)!important;
  }
  html[data-theme="light"] body .mobile-menu-v1861 :where(svg,.mobile-menu-icon-v1861){
    width:22px!important;
    height:22px!important;
    color:var(--lux746-ink)!important;
    stroke:currentColor!important;
    opacity:1!important;
    filter:none!important;
  }

  html[data-theme="light"] body:not(.chat-window-mode-v1860) .community-topbar .top-links{
    grid-column:2!important;
    min-width:0!important;
    width:100%!important;
    height:100%!important;
    display:flex!important;
    align-items:center!important;
    justify-content:flex-end!important;
    gap:1px!important;
    overflow:visible!important;
  }

  html[data-theme="light"] body .community-topbar .top-links > a.topbar-action-v1832,
  html[data-theme="light"] body .community-topbar .top-links .notification-header-menu,
  html[data-theme="light"] body .community-topbar .top-links .member-header-menu{
    flex:0 0 44px!important;
    width:44px!important;
    min-width:44px!important;
    max-width:44px!important;
    margin:0!important;
  }

  html[data-theme="light"] body .community-topbar .top-links .topbar-action-v1832,
  html[data-theme="light"] body .community-topbar .top-links .notification-header-button,
  html[data-theme="light"] body .community-topbar .top-links .settings-header-button-v1826{
    width:44px!important;
    min-width:44px!important;
    height:50px!important;
    min-height:50px!important;
    padding:3px 1px 2px!important;
    display:flex!important;
    flex-direction:column!important;
    align-items:center!important;
    justify-content:center!important;
    gap:2px!important;
    color:var(--lux746-ink)!important;
    background:transparent!important;
    background-image:none!important;
    border:0!important;
    border-radius:12px!important;
    box-shadow:none!important;
    filter:none!important;
    opacity:1!important;
  }

  html[data-theme="light"] body .community-topbar .top-links .topbar-action-v1832:is(:hover,:focus-visible,[aria-expanded="true"]),
  html[data-theme="light"] body .community-topbar .top-links .notification-header-button:is(:hover,:focus-visible,[aria-expanded="true"]),
  html[data-theme="light"] body .community-topbar .top-links .settings-header-button-v1826:is(:hover,:focus-visible,[aria-expanded="true"]){
    color:var(--lux746-gold-dark)!important;
    background:rgba(216,167,67,.075)!important;
    box-shadow:none!important;
    transform:none!important;
  }

  html[data-theme="light"] body .community-topbar .top-links .top-modern-icon,
  html[data-theme="light"] body .community-topbar .top-links .top-lucide-icon-v1837,
  html[data-theme="light"] body .community-topbar .top-links .topbar-action-v1832 > svg,
  html[data-theme="light"] body .community-topbar .top-links button > svg{
    flex:0 0 auto!important;
    width:21px!important;
    height:21px!important;
    color:var(--lux746-ink)!important;
    stroke:currentColor!important;
    opacity:1!important;
    visibility:visible!important;
    filter:none!important;
  }

  html[data-theme="light"] body .community-topbar .top-links .topbar-action-v1832 > span:not(.top-modern-icon):not(.top-lucide-icon-v1837),
  html[data-theme="light"] body .community-topbar .top-links .notification-header-button > span:not(.top-modern-icon):not(.top-lucide-icon-v1837),
  html[data-theme="light"] body .community-topbar .top-links .settings-header-button-v1826 > span:not(.top-modern-icon):not(.top-lucide-icon-v1837){
    display:block!important;
    width:100%!important;
    overflow:hidden!important;
    color:#313238!important;
    font-size:7px!important;
    font-weight:600!important;
    line-height:1!important;
    letter-spacing:-.015em!important;
    text-align:center!important;
    text-overflow:ellipsis!important;
    white-space:nowrap!important;
    opacity:1!important;
  }

  html[data-theme="light"] body .community-topbar .top-links .member-header-avatar.member-header-profile-link-v1826{
    flex:0 0 42px!important;
    width:42px!important;
    min-width:42px!important;
    height:42px!important;
    margin-left:3px!important;
    border:2px solid rgba(205,151,50,.62)!important;
    border-radius:50%!important;
    background:var(--lux746-ivory)!important;
    box-shadow:0 4px 12px rgba(70,49,24,.11)!important;
  }

  /* Drawer: compact, fully readable and without a curved lower edge. */
  html[data-theme="light"] body .community-sidebar.luxoria-sidebar-v1861,
  html[data-theme="light"] body .community-sidebar.luxoria-sidebar-v1862,
  html[data-theme="light"] body.sidebar-collapsed-v1862 .community-sidebar.luxoria-sidebar-v1862{
    top:0!important;
    bottom:auto!important;
    width:min(330px,88vw)!important;
    max-width:88vw!important;
    height:100vh!important;
    height:100dvh!important;
    min-height:0!important;
    max-height:100dvh!important;
    border-left:0!important;
    border-radius:0 18px 0 0!important;
    background:#fffdfa!important;
    box-shadow:18px 0 52px rgba(57,42,25,.19)!important;
  }

  html[data-theme="light"] body .community-sidebar .sidebar-brand-v1861,
  html[data-theme="light"] body .community-sidebar .sidebar-brand-v1862{
    flex:0 0 auto!important;
    min-height:88px!important;
    height:auto!important;
    padding:
      max(9px,env(safe-area-inset-top))
      12px
      9px
      13px!important;
    gap:9px!important;
    background:#fffdfa!important;
    border-bottom:1px solid rgba(173,126,60,.14)!important;
  }

  html[data-theme="light"] body .community-sidebar .sidebar-brand-mark-v1861,
  html[data-theme="light"] body .community-sidebar .sidebar-brand-mark-v1862{
    flex-basis:50px!important;
    width:50px!important;
    min-width:50px!important;
    height:50px!important;
    color:var(--lux746-gold-dark)!important;
    background:#fffdfa!important;
    border-color:rgba(205,151,50,.52)!important;
    box-shadow:0 4px 12px rgba(70,49,24,.08)!important;
    text-shadow:none!important;
  }

  html[data-theme="light"] body .community-sidebar .sidebar-brand-copy-v1861,
  html[data-theme="light"] body .community-sidebar .sidebar-brand-copy-v1862{
    gap:3px!important;
  }
  html[data-theme="light"] body .community-sidebar .sidebar-brand-copy-v1861 strong,
  html[data-theme="light"] body .community-sidebar .sidebar-brand-copy-v1862 strong{
    display:block!important;
    color:#2b211a!important;
    font-size:18px!important;
    font-weight:500!important;
    line-height:1.12!important;
    letter-spacing:.11em!important;
    text-shadow:none!important;
    opacity:1!important;
  }
  html[data-theme="light"] body .community-sidebar .sidebar-brand-copy-v1861 small,
  html[data-theme="light"] body .community-sidebar .sidebar-brand-copy-v1862 small{
    color:#9b6a18!important;
    font-size:7px!important;
    font-weight:700!important;
    letter-spacing:.18em!important;
    opacity:1!important;
  }

  html[data-theme="light"] body .community-sidebar .sidebar-close-v1861,
  html[data-theme="light"] body .community-sidebar .sidebar-close-v1862{
    width:42px!important;
    min-width:42px!important;
    height:42px!important;
    color:#6b625b!important;
    background:#fffdfa!important;
    border-color:rgba(173,126,60,.19)!important;
    box-shadow:0 4px 12px rgba(70,49,24,.06)!important;
  }

  html[data-theme="light"] body .community-sidebar nav.sidebar-nav-v1861,
  html[data-theme="light"] body .community-sidebar nav.sidebar-nav-v1862{
    flex:1 1 auto!important;
    min-height:0!important;
    display:flex!important;
    flex-direction:column!important;
    align-content:stretch!important;
    gap:2px!important;
    padding:7px 9px max(10px,env(safe-area-inset-bottom))!important;
    overflow-x:hidden!important;
    overflow-y:auto!important;
    background:#fffdfa!important;
    scrollbar-width:thin!important;
  }

  html[data-theme="light"] body .community-sidebar nav.sidebar-nav-v1861 > a,
  html[data-theme="light"] body .community-sidebar nav.sidebar-nav-v1862 > a{
    flex:0 0 auto!important;
    min-height:43px!important;
    height:43px!important;
    grid-template-columns:36px minmax(0,1fr) auto!important;
    gap:8px!important;
    padding:2px 10px 2px 4px!important;
    border-radius:11px!important;
  }

  html[data-theme="light"] body .community-sidebar nav.sidebar-nav-v1862 > a > span:not(.modern-nav-icon),
  html[data-theme="light"] body .community-sidebar nav.sidebar-nav-v1861 > a > span:not(.modern-nav-icon){
    color:#34353a!important;
    font-size:15px!important;
    font-weight:600!important;
    line-height:1.1!important;
  }

  html[data-theme="light"] body .community-sidebar .modern-nav-icon{
    width:36px!important;
    min-width:36px!important;
    height:36px!important;
    border-radius:10px!important;
    box-shadow:none!important;
  }
  html[data-theme="light"] body .community-sidebar .modern-nav-icon :where(svg,img){
    width:18px!important;
    height:18px!important;
    filter:none!important;
  }

  html[data-theme="light"] body .community-sidebar .sidebar-section-label-v1862{
    flex:0 0 auto!important;
    min-height:18px!important;
    margin:3px 6px 1px!important;
    padding:0!important;
    color:#9b6a18!important;
    font-size:8px!important;
    line-height:18px!important;
    letter-spacing:.18em!important;
  }
  html[data-theme="light"] body .community-sidebar .sidebar-section-divider-v1862{
    flex:0 0 14px!important;
    min-height:14px!important;
    height:14px!important;
    margin:0 6px!important;
  }

  html[data-theme="light"] body .sidebar-backdrop-v1861{
    background:rgba(47,42,36,.34)!important;
    -webkit-backdrop-filter:blur(2px)!important;
    backdrop-filter:blur(2px)!important;
  }
}

@media(max-width:380px){
  html[data-theme="light"] body .community-topbar .top-links > a.topbar-action-v1832,
  html[data-theme="light"] body .community-topbar .top-links .notification-header-menu,
  html[data-theme="light"] body .community-topbar .top-links .member-header-menu{
    flex-basis:41px!important;
    width:41px!important;
    min-width:41px!important;
    max-width:41px!important;
  }
  html[data-theme="light"] body .community-topbar .top-links .topbar-action-v1832,
  html[data-theme="light"] body .community-topbar .top-links .notification-header-button,
  html[data-theme="light"] body .community-topbar .top-links .settings-header-button-v1826{
    width:41px!important;
    min-width:41px!important;
  }
  html[data-theme="light"] body .community-topbar .top-links .member-header-avatar.member-header-profile-link-v1826{
    flex-basis:38px!important;
    width:38px!important;
    min-width:38px!important;
    height:38px!important;
    margin-left:1px!important;
  }
  html[data-theme="light"] body .community-sidebar.luxoria-sidebar-v1862{
    width:min(314px,89vw)!important;
    max-width:89vw!important;
  }
}
