/* qy-size-floor v1 */
/* =====================================================================
   Quyps guest look (qyg_v1) — public pages seen by visitors who aren't signed in
   (business pages, posts, blog, legal). Loaded only for guests, on top of qy-newlook + qy-inner.
   ===================================================================== */
/* the left menu is all member links (My Pages, Games...): guests get the full width instead */
html.qy-guest .tag_sidebar, html.qy-guest .tag_toggle_sidebar { display: none !important; }
html.qy-guest .tag_content { margin-left: 0 !important; }
html.qy-guest .tag_hdr_droptoggle { display: none !important; }

/* Log in / Join buttons in the top bar */
.qy-g-auth { display: inline-flex; align-items: center; gap: 8px; margin-left: 8px; }
.qy-g-auth a { display: inline-flex; align-items: center; justify-content: center; height: 38px; padding: 0 16px; border-radius: 10px;
  font: 700 14px/1 var(--body, 'Plus Jakarta Sans', system-ui, sans-serif); text-decoration: none !important; white-space: nowrap; }
.qy-g-auth .qy-g-login { color: var(--ink, #13232a) !important; border: 1px solid var(--line, #d9e1e3); background: var(--paper, #fff); }
.qy-g-auth .qy-g-join { color: #fff !important; background: var(--brand, #0C7C8A); border: 1px solid var(--brand, #0C7C8A); }
.qy-g-auth .qy-g-join:hover { background: var(--brand-d, #0a6a76); }

/* invitation bar */
.qy-g-bar { position: fixed; left: 50%; transform: translateX(-50%); bottom: max(12px, env(safe-area-inset-bottom)); z-index: 1000;
  width: min(720px, calc(100% - 24px)); display: flex; align-items: center; gap: 14px; padding: 12px 14px 12px 16px;
  background: #13232a; color: #e9f1f2; border-radius: 16px; box-shadow: 0 10px 30px rgba(0,0,0,.25);
  font: 500 14px/1.4 var(--body, 'Plus Jakarta Sans', system-ui, sans-serif); }
.qy-g-bar b { color: #fff; font-weight: 800; }
.qy-g-bar .qy-g-txt { flex: 1 1 auto; min-width: 0; }
.qy-g-bar .qy-g-btns { display: flex; gap: 8px; flex: 0 0 auto; }
.qy-g-bar a { display: inline-flex; align-items: center; height: 38px; padding: 0 14px; border-radius: 10px; font-weight: 700; text-decoration: none !important; }
.qy-g-bar .qy-g-join { background: #0C7C8A; color: #fff !important; }
.qy-g-bar .qy-g-login { color: #cfe7ea !important; border: 1px solid rgba(255,255,255,.22); }
.qy-g-bar .qy-g-x { flex: 0 0 auto; width: 30px; height: 30px; border: 0; border-radius: 8px; background: transparent; color: #9fb7bb; font-size: 20px; line-height: 1; cursor: pointer; }
.qy-g-bar .qy-g-x:hover { background: rgba(255,255,255,.08); color: #fff; }
html.qy-guest body { padding-bottom: 96px; }
@media (max-width: 560px) {
  .qy-g-auth .qy-g-login { display: none; }          /* phones: one button up top, both in the bar */
  .qy-g-bar { flex-wrap: wrap; gap: 10px; }
  .qy-g-bar .qy-g-txt { flex-basis: calc(100% - 40px); }
  .qy-g-bar .qy-g-btns { flex: 1 1 100%; }
  .qy-g-bar .qy-g-btns a { flex: 1 1 0; justify-content: center; }
  html.qy-guest body { padding-bottom: 150px; }
}

/* business page header: no blurred full-width backdrop behind the cover, no "Invite" tab (members only) */
html.qy-guest .tag_cover_sec_bg, html.qy-guest .tag_cover_bg_grad { display: none !important; }
html.qy-guest .tag_switch_noti li:has(a[href$="/invite"]) { display: none !important; }
/* the top bar is see-through for guests (members get a solid one from the sidebar layout): give it a solid background */
html.qy-guest header .navbar { background: var(--paper, #fff) !important; border-bottom: 1px solid var(--line, #e3e9ea) !important; left: 0 !important; right: 0 !important; min-height: 60px; }
/* phones: the theme moves the top-right area into a bottom bar (only a blank icon for guests) — hide it;
   the invitation bar carries Join free / Log in and stays on screen there */
@media (max-width: 991px) {
  html.qy-guest .tag_hdr_right { display: none !important; }
  .qy-g-bar .qy-g-x { display: none; }
}
/* member-only bottom toolbar + notification popup layer: not for guests (they also sat on top of the bar's buttons) */
html.qy-guest .tag_sec_toolbar, html.qy-guest #notification-popup { display: none !important; }

/* qyg_v2 (2026-10-08): full-width top bar for guests. The theme parks the search box in the members-only left
   sidebar (fixed, top:85px, left:0) and centres the bar in a 950px box, so for guests it looked broken on laptops. */
@media (min-width: 992px) {
  html.qy-guest header > .container, html.qy-guest header .navbar > .container { max-width: none !important; width: 100% !important; padding-left: 24px !important; padding-right: 24px !important; }
  html.qy-guest header .navbar { position: fixed !important; top: 0; z-index: 1030; width: 100% !important; }
  html.qy-guest header { height: 60px; }
  html.qy-guest .tag_header { width: 100% !important; height: 60px; align-items: center; }
  html.qy-guest .tag_header > .search-container { position: static !important; width: 340px !important; top: auto !important; left: auto !important; margin: 0 12px 0 auto !important; z-index: auto; }
  html.qy-guest .tag_header > .search-container form { width: 100%; }
}
@media (min-width: 992px) {
  /* the theme pins the right-hand area (our Log in / Join buttons) in its own fixed box: keep it above the bar */
  html.qy-guest .tag_hdr_right { z-index: 1040 !important; width: auto !important; left: auto !important; right: 24px !important; top: 11px !important; }
  html.qy-guest .tag_header > .search-container { margin-right: 230px !important; }
}
