:root {
  --nav-hide-ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

.app {
  position: relative;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(0, 142, 244, 0.16), rgba(255, 255, 255, 0) 28%), var(--bg);
  isolation: isolate;
}

.app-main {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  overflow: hidden;
}

.profile-app--main-header.app {
  min-height: 100vh;
  height: auto;
  overflow-x: clip;
}

.profile-app--main-header .app-main {
  position: relative;
  inset: auto;
  display: block;
  overflow: visible;
}

.sidebar {
  display: none;
}

.top-nav {
  position: sticky;
  top: 0;
  z-index: 55;
  min-height: calc(62px + env(safe-area-inset-top));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: calc(10px + env(safe-area-inset-top)) 16px 10px;
  background: rgba(255, 255, 255, 0.78);
  border-bottom: 1px solid rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.brand-lockup,
.sidebar-brand {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  text-align: left;
  text-decoration: none;
  border: 0;
  background: transparent;
  font-family: inherit;
  cursor: pointer;
}

.brand-lockup strong,
.sidebar-brand strong {
  display: block;
  color: var(--ink);
  font-size: 17px;
  font-weight: 850;
  line-height: 1.08;
  letter-spacing: 0;
}

.brand-lockup small,
.sidebar-brand small,
.sidebar-card span,
.sidebar-card a {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 720;
  line-height: 1.2;
  letter-spacing: 0;
}

.brand-orb {
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: radial-gradient(circle at 32% 24%, #fff 0 18%, var(--aqua) 28%, var(--blue) 66%, var(--deep) 100%);
  box-shadow: 0 12px 26px rgba(0, 142, 244, 0.24);
}

.icon-button {
  width: 46px;
  height: 46px;
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: #17233a;
  font-family: inherit;
  box-shadow: inset 0 0 0 1px var(--line), var(--soft-shadow);
  cursor: pointer;
  transition: transform 180ms var(--spring), opacity 180ms var(--spring), background 180ms var(--spring);
}

.icon-button svg,
.brand-lockup svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.top-nav-shortcuts {
  display: none;
}

.nav-shortcuts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.nav-item {
  position: relative;
  text-decoration: none;
  cursor: pointer;
  transition: color 180ms var(--spring), background 180ms var(--spring), box-shadow 180ms var(--spring), transform 180ms var(--spring);
}

.nav-item:hover,
.nav-item:focus-visible,
.nav-item.is-active {
  color: var(--blue);
  background: #f7fbff;
  box-shadow: inset 0 0 0 1px rgba(0, 142, 244, 0.28), 0 12px 24px rgba(0, 142, 244, 0.16);
}

.nav-item:focus-visible {
  outline: 2px solid rgba(0, 142, 244, 0.42);
  outline-offset: 3px;
}

.nav-shortcut {
  position: relative;
  min-width: 0;
  min-height: 48px;
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 4px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  text-decoration: none;
  box-shadow: inset 0 0 0 1px rgba(7, 16, 34, 0.08), 0 10px 22px rgba(7, 16, 34, 0.08);
}

.nav-shortcut svg {
  width: 21px;
  height: 21px;
  /* Outline (stroked) icons, matching the drawer-row icons + the homepage. Without this the
     shortcut SVGs fall back to the browser default (black fill) on surfaces that don't load the
     PWA styles.css global svg reset — e.g. venue pages — so Updates/Messages/Email rendered as
     solid black. Owning it here (shared nav CSS) gives every shared-nav surface the same icons.
     (2026-06-15) */
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
}

.nav-item__label,
.nav-shortcut__label {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 10px;
  font-weight: 820;
  line-height: 1;
}

.sidebar-nav .nav-item__label {
  font-size: inherit;
  font-weight: inherit;
  line-height: inherit;
}

.nav-shortcut__badge {
  position: absolute;
  top: 7px;
  right: 12px;
  min-width: 17px;
  height: 17px;
  padding: 0 5px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  background: #f60404;
  color: #fff;
  border: 2px solid #fff;
  font-size: 9px;
  font-weight: 900;
  line-height: 1;
}

/* Canonical site-wide mobile bottom nav = dark floating pill (Codex decision 2026-06-15).
   position:fixed so the pill stays at the viewport bottom on BOTH the non-scrolling PWA shell
   and scrolling venue/direct pages. The single owner of this design is this shared file. */
.tab-bar {
  position: fixed;
  left: 10px;
  right: 10px;
  bottom: calc(8px + env(safe-area-inset-bottom));
  z-index: 30;
  min-height: 62px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
  padding: 7px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: rgba(7, 16, 34, 0.68);
  box-shadow: 0 18px 38px rgba(7, 16, 34, 0.22);
  backdrop-filter: blur(22px) saturate(130%);
  -webkit-backdrop-filter: blur(22px) saturate(130%);
  opacity: 1;
  transform: none;
  will-change: transform, opacity;
  transition: opacity 300ms ease-out, transform 420ms var(--nav-hide-ease);
}

.tab-bar.is-hidden-on-scroll {
  opacity: 0 !important;
  pointer-events: none;
  transform: translate3d(0, calc(100% + 18px), 0) !important;
}

.tab-bar:not(.is-hidden-on-scroll) {
  opacity: 1 !important;
  transform: none !important;
}

.tab-bar button,
.sidebar-nav button,
.sidebar-nav a,
.tab-bar .nav-item,
.sidebar-nav .nav-item {
  min-width: 0;
  min-height: 52px;
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 3px;
  border: 0;
  border-radius: 16px;
  background: transparent;
  color: #7a8494;
  font-family: inherit;
  font-size: 10px;
  font-weight: 720;
  text-decoration: none;
  cursor: pointer;
  box-shadow: none;
}

.tab-bar button svg,
.sidebar-nav button svg,
.sidebar-nav a svg,
.tab-bar .nav-item svg,
.sidebar-nav .nav-item svg {
  width: 22px;
  height: 22px;
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.tab-bar button.is-active,
.sidebar-nav button.is-active,
.sidebar-nav a.is-active,
.tab-bar .nav-item.is-active,
.sidebar-nav .nav-item.is-active,
.tab-bar button:active,
.sidebar-nav button:active,
.sidebar-nav a:active,
.tab-bar .nav-item:active,
.sidebar-nav .nav-item:active {
  color: var(--blue);
  background: rgba(47, 115, 255, 0.08);
}

.tab-bar .nav-item:hover,
.tab-bar .nav-item:focus-visible,
.sidebar-nav .nav-item:hover,
.sidebar-nav .nav-item:focus-visible {
  color: var(--blue);
  background: #f7fbff;
  box-shadow: inset 0 0 0 1px rgba(0, 142, 244, 0.28);
}

.tab-bar button.is-saved,
.sidebar-nav button.is-saved,
.sidebar-nav a.is-saved,
.tab-bar .nav-item.is-saved,
.sidebar-nav .nav-item.is-saved {
  color: #fff;
  background: var(--blue);
  border: 1px solid rgba(0, 142, 244, 0.28);
  box-shadow: 0 10px 24px rgba(0, 142, 244, 0.24);
}

.tab-bar button.is-saved svg,
.sidebar-nav button.is-saved svg,
.sidebar-nav a.is-saved svg,
.tab-bar .nav-item.is-saved svg,
.sidebar-nav .nav-item.is-saved svg {
  stroke: #fff;
}

.tab-bar button.is-saved:hover,
.sidebar-nav button.is-saved:hover,
.sidebar-nav a.is-saved:hover,
.tab-bar .nav-item.is-saved:hover,
.sidebar-nav .nav-item.is-saved:hover,
.tab-bar button.is-saved:focus-visible,
.sidebar-nav button.is-saved:focus-visible,
.sidebar-nav a.is-saved:focus-visible,
.tab-bar .nav-item.is-saved:focus-visible,
.sidebar-nav .nav-item.is-saved:focus-visible {
  color: #fff;
  background: #0469b8;
}

/* ---- Dark floating pill: tab-specific overrides (the rules above style the desktop sidebar
   rows; these re-skin the bottom-nav tabs into icon-only circles with an expanding active pill).
   Canonical site-wide design, owned here. (2026-06-15) ---- */
.tab-bar button,
.tab-bar .nav-item {
  flex: 0 0 46px;
  min-height: 46px;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.72);
}

.tab-bar button svg,
.tab-bar .nav-item svg {
  width: 21px;
  height: 21px;
}

.tab-bar button span,
.tab-bar .nav-item__label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.tab-bar button.is-active,
.tab-bar .nav-item.is-active {
  flex: 1 1 118px;
  max-width: 132px;
  min-height: 48px;
  grid-template-columns: auto auto;
  grid-auto-flow: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 16px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 10px 24px rgba(0, 142, 244, 0.16), inset 0 0 0 1px rgba(0, 142, 244, 0.16);
}

.tab-bar button.is-active svg,
.tab-bar .nav-item.is-active svg {
  stroke: var(--deep);
}

.tab-bar button.is-active span,
.tab-bar .nav-item.is-active .nav-item__label {
  position: static;
  width: auto;
  height: auto;
  overflow: visible;
  clip: auto;
  white-space: nowrap;
  font-size: 14px;
  line-height: 1;
}

.tab-bar button:not(.is-active):not(.is-saved):hover,
.tab-bar button:not(.is-active):not(.is-saved):focus-visible,
.tab-bar .nav-item:not(.is-active):not(.is-saved):hover,
.tab-bar .nav-item:not(.is-active):not(.is-saved):focus-visible {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

.tab-bar button.is-saved:not(.is-active),
.tab-bar .nav-item.is-saved:not(.is-active) {
  flex-basis: 46px;
  color: #fff;
  background: rgba(0, 142, 244, 0.9);
  box-shadow: 0 10px 22px rgba(0, 142, 244, 0.26);
}

.tab-bar button.is-saved.is-active,
.tab-bar .nav-item.is-saved.is-active {
  color: #fff;
  background: linear-gradient(135deg, var(--blue), var(--deep));
  box-shadow: 0 12px 28px rgba(0, 142, 244, 0.34), inset 0 0 0 1px rgba(255, 255, 255, 0.22);
}

.tab-bar button.is-saved.is-active svg,
.tab-bar .nav-item.is-saved.is-active svg {
  stroke: #fff;
}

.tab-bar button:active,
.sidebar-nav button:active,
.sidebar-nav a:active,
.tab-bar .nav-item:active,
.sidebar-nav .nav-item:active,
.icon-button:active {
  transform: scale(0.975);
  opacity: 0.82;
}

/* Floating toast (e.g. shortcut feedback). Owned here so every shared-nav surface matches. */
.nav-shortcut-toast {
  position: fixed;
  left: max(16px, env(safe-area-inset-left));
  right: max(16px, env(safe-area-inset-right));
  bottom: calc(92px + env(safe-area-inset-bottom));
  z-index: 91;
  width: fit-content;
  max-width: min(420px, calc(100vw - 32px));
  margin: 0 auto;
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--ink);
  color: #fff;
  box-shadow: 0 18px 36px rgba(7, 16, 34, 0.28);
  font-size: 13px;
  font-weight: 780;
  line-height: 1.3;
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity 160ms ease, transform 160ms ease;
}

.nav-shortcut-toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.sidebar-nav__more {
  display: grid;
  gap: 8px;
  padding-top: 8px;
  border-top: 1px solid rgba(7, 16, 34, 0.08);
}

.sidebar-more-link {
  color: #344154;
}

.more-menu-sheet {
  position: fixed;
  inset: 0;
  z-index: 60;
  pointer-events: none;
  visibility: hidden;
}

.more-menu-sheet.is-open {
  pointer-events: auto;
  visibility: visible;
}

.sheet-backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  min-height: 100%;
  padding: 0;
  border: 0;
  background: rgba(7, 16, 34, 0.32);
  opacity: 0;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: opacity 260ms ease-out;
}

.more-menu-sheet.is-open .sheet-backdrop {
  opacity: 1;
}

.more-menu-panel {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  max-height: calc(92dvh - env(safe-area-inset-top));
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 14px;
  padding: 8px 16px calc(18px + env(safe-area-inset-bottom));
  border-radius: 28px 28px 0 0;
  background: radial-gradient(circle at 14% 0%, rgba(52, 226, 228, 0.2), transparent 18rem), rgba(255, 255, 255, 0.96);
  box-shadow: 0 -24px 70px rgba(7, 16, 34, 0.28);
  transform: translateY(104%) scale(0.98);
  transition: transform 330ms var(--spring);
}

.more-menu-panel [data-more-menu-content] {
  min-height: 0;
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
}

.more-menu-sheet.is-open .more-menu-panel {
  transform: translateY(0) scale(1);
}

.more-menu-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.more-menu-head h2 {
  margin: 2px 0 0;
  font-size: 26px;
  line-height: 1.05;
}

.more-menu-shortcuts,
.more-menu-list {
  display: grid;
  gap: 10px;
}

.more-menu-list {
  min-height: 0;
  overflow-y: auto;
  padding: 14px 0 4px;
  -webkit-overflow-scrolling: touch;
}

.more-menu-shortcuts {
  padding-bottom: 12px;
}

.more-menu-shortcuts .nav-shortcut {
  min-height: 56px;
  border-radius: 16px;
}

.more-menu-shortcuts .nav-shortcut svg {
  width: 22px;
  height: 22px;
}

.more-menu-shortcuts .nav-shortcut__label,
.more-menu-shortcuts .nav-item__label {
  font-size: 11px;
}

.grabber {
  width: 42px;
  height: 5px;
  margin: 2px auto 0;
  border-radius: 999px;
  background: rgba(7, 16, 34, 0.18);
}

.action-row {
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 16px;
  border-radius: 18px;
  background: #f6f9fd;
  color: var(--ink);
  text-align: left;
  text-decoration: none;
  box-shadow: inset 0 0 0 1px rgba(7, 16, 34, 0.06);
}

.nav-item--drawer-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  grid-template-areas:
    "icon group"
    "icon label";
  justify-content: start;
}

.nav-item--drawer-row svg {
  grid-area: icon;
  width: 22px;
  height: 22px;
  color: currentColor;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.nav-item--drawer-row .nav-item__group {
  grid-area: group;
}

.nav-item--drawer-row .nav-item__label,
.action-row strong {
  grid-area: label;
  display: block;
  font-size: 15px;
  font-weight: 820;
  line-height: 1.18;
}

.nav-item--drawer-row .nav-item__group,
.action-row span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
}

/* More-drawer page row active/hover (moved from PWA styles.css so venue/direct drawers match). */
.page-row.is-active,
.page-row:not(.is-active):hover,
.page-row:not(.is-active):focus-visible {
  color: var(--blue);
  background: #f6f9fd;
  box-shadow: inset 0 0 0 1px var(--blue);
}

@media (min-width: 760px) {
  .app {
    display: grid;
    grid-template-columns: 256px minmax(0, 1fr);
    max-width: none;
    background:
      radial-gradient(circle at 18% 6%, rgba(201, 248, 255, 0.32), transparent 30rem),
      linear-gradient(135deg, #f7fbff 0%, #eef3f8 100%);
  }

  .app-main {
    grid-column: 2;
    position: relative;
    inset: auto;
    grid-template-rows: auto minmax(0, 1fr);
  }

  .sidebar {
    position: sticky;
    top: 0;
    height: 100vh;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto;
    gap: 18px;
    padding: 20px 16px;
    border-right: 1px solid rgba(7, 16, 34, 0.08);
    background: rgba(255, 255, 255, 0.72);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
  }

  .sidebar-brand {
    min-height: 58px;
    padding: 8px;
    border-radius: 20px;
  }

  .sidebar-nav {
    display: grid;
    align-content: start;
    gap: 8px;
    overflow-y: auto;
  }

  .sidebar-nav button,
  .sidebar-nav a,
  .sidebar-nav .nav-item {
    min-height: 48px;
    grid-template-columns: 26px 1fr;
    grid-auto-flow: column;
    justify-items: start;
    align-content: center;
    padding: 0 12px;
    font-size: 14px;
    text-align: left;
  }

  .sidebar-nav button svg,
  .sidebar-nav a svg,
  .sidebar-nav .nav-item svg {
    width: 21px;
    height: 21px;
  }

  .sidebar-card {
    display: grid;
    gap: 5px;
    padding: 16px;
    border-radius: 20px;
    background: #071022;
    color: #fff;
  }

  .sidebar-card strong {
    font-size: 17px;
    line-height: 1.1;
  }

  .sidebar-card span,
  .sidebar-card a {
    color: rgba(255, 255, 255, 0.72);
  }

  .top-nav {
    min-height: 72px;
    align-items: center;
    padding: 14px 28px;
  }

  .sidebar-card span,
  .sidebar-card a {
    font-size: 12px;
    font-weight: 720;
  }

  .sidebar-nav__more {
    margin-top: 2px;
  }

  /* Desktop top-bar notification shortcuts (Updates / Messages / Email) as round icon buttons.
     Default mobile state keeps .top-nav-shortcuts hidden (shortcuts live in the More drawer);
     this reveal lives in the SHARED file so venue/direct pages get the same desktop top bar as
     the homepage. (2026-06-15) */
  .top-nav-shortcuts {
    display: block;
    margin-left: auto;
  }

  .top-nav-shortcuts .nav-shortcuts {
    width: max-content;
    grid-template-columns: repeat(3, 46px);
    gap: 8px;
  }

  .top-nav-shortcuts .nav-shortcut {
    width: 46px;
    min-height: 46px;
    border-radius: 50%;
    gap: 0;
    background: rgba(255, 255, 255, 0.92);
  }

  .top-nav-shortcuts .nav-shortcut__label,
  .top-nav-shortcuts .nav-item__label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }

  .top-nav-shortcuts .nav-shortcut__badge,
  .top-nav-shortcuts .nav-item__badge {
    top: 2px;
    right: 0;
  }

  .grabber {
    display: none;
  }

  .brand-lockup .brand-orb,
  .tab-bar {
    display: none;
  }

  /* Desktop More menu = compact corner dropdown (matches the main app shell), NOT the mobile
     full-width bottom-sheet. This override previously lived ONLY in the full-content PWA styles.css,
     so concept-L / venue pages — which load this SHARED nav CSS but not styles.css — kept the
     bottom-sheet on desktop (full-width, left:0/right:0/bottom:0). Owning it in the shared nav CSS
     gives every shared-nav surface the same desktop More. Mobile (<760px) is unaffected. (2026-06-15) */
  .more-menu-panel {
    left: auto;
    right: 24px;
    bottom: 24px;
    width: min(420px, calc(100vw - 320px));
    max-height: min(600px, calc(100dvh - 88px));
    border-radius: 28px;
    padding: 14px;
    transform: translateY(22px) scale(0.96);
  }

  .more-menu-head h2 {
    font-size: 24px;
  }

  .more-menu-shortcuts,
  .more-menu-list {
    gap: 6px;
  }

  .more-menu-list {
    padding-top: 10px;
  }

  .more-menu-shortcuts {
    padding-bottom: 8px;
  }

  .more-menu-shortcuts .nav-shortcut {
    min-height: 42px;
    border-radius: 14px;
  }

  .more-menu-shortcuts .nav-shortcut svg,
  .nav-item--drawer-row svg {
    width: 18px;
    height: 18px;
  }

  .action-row {
    min-height: 42px;
    padding: 8px 14px;
    border-radius: 14px;
  }

  .nav-item--drawer-row .nav-item__label,
  .action-row strong {
    font-size: 14px;
  }

  .more-menu-sheet.is-open .more-menu-panel {
    transform: translateY(0) scale(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .tab-bar {
    transition: none;
  }
}

/* Mark removed the mobile bottom menu nav on 2026-06-16. Keep the DOM inert but invisible
   across homepage, direct venue/profile pages, guides and article/static routes. */
.tab-bar {
  display: none !important;
}
