/* Desktop continues to use the original Primary navigation. */
.ff-mobile-guest-actions {
  display: none !important;
}

@media (max-width: 820px) {
  #app .ff-topbar[data-mobile-guest-mode]:not([data-mobile-guest-mode=member]) .ff-mobile-top-tabs,
  #app .ff-topbar[data-mobile-guest-mode]:not([data-mobile-guest-mode=member]) + .ff-mobile-drawer {
    display: none !important;
  }

  html.ff-web-refresh #app .ff-topbar[data-mobile-guest-mode=guest] {
    align-items: center;
    flex-wrap: nowrap;
    gap: 6px;
  }

  html.ff-web-refresh #app .ff-topbar[data-mobile-guest-mode=guest] > .ff-brand {
    flex: 0 0 auto;
    gap: 5px !important;
    min-block-size: 44px;
  }

  html.ff-web-refresh #app .ff-topbar[data-mobile-guest-mode=guest] .ff-brand-logo,
  html.ff-web-refresh #app .ff-topbar[data-mobile-guest-mode=guest] .ff-brand-logo img {
    width: 28px !important;
    min-width: 0 !important;
    flex: 0 0 28px !important;
    height: 28px;
  }

  html.ff-web-refresh #app .ff-topbar[data-mobile-guest-mode=guest] .ff-brand strong {
    font-size: clamp(1.025rem, 5vw, 1.5rem) !important;
    line-height: 1;
    white-space: nowrap;
  }

  html.ff-web-refresh #app .ff-topbar[data-mobile-guest-mode=guest] > .ff-mobile-guest-actions {
    display: flex !important;
    align-items: center;
    justify-content: flex-end;
    flex: 0 0 auto;
    gap: clamp(4px, 1.4vw, 8px);
    margin-inline-start: auto;
    padding: 0;
  }

  html.ff-web-refresh #app .ff-topbar[data-mobile-guest-mode=guest] .ff-mobile-guest-actions > a {
    display: grid;
    place-items: center;
    box-sizing: border-box;
    min-block-size: 44px;
    min-inline-size: 44px;
    padding: 5px clamp(6px, 2vw, 12px) !important;
    border-radius: 9px;
    border: 1px solid #9aac9e;
    text-align: center;
    font: 700 clamp(.75rem, 3.35vw, .875rem)/1.15 Inter, system-ui, sans-serif !important;
    color: #124432;
    text-decoration: none;
  }

  html.ff-web-refresh #app .ff-topbar[data-mobile-guest-mode=guest] .ff-mobile-guest-actions > a:last-child {
    color: #fff;
    border-color: #124432;
    background: #124432;
  }

  #app .ff-mobile-guest-actions > a:focus-visible {
    outline: 2px solid #124432;
    outline-offset: 2px;
  }
}

.ff-guest-home-quick-links { display: none; }

@media (max-width: 820px) {
  #app:has(.ff-topbar[data-mobile-guest-mode=guest]) .ff-guest-home-quick-links {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-top: 8px;
    width: 100%;
  }
  #app .ff-guest-home-quick-links > a {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .35em;
    box-sizing: border-box;
    min-height: 44px;
    padding: 7px 8px;
    text-align: center;
    text-decoration: none;
    border: 1px solid #9aac9e;
    border-radius: 10px;
    background: #fff;
    color: #174b2f;
    font: 700 .875rem/1.2 Inter, system-ui, sans-serif;
  }
  #app .ff-guest-home-quick-links > a:focus-visible {
    outline: 2px solid #174b2f;
    outline-offset: 2px;
  }
  #app:has(.ff-topbar[data-mobile-guest-mode=guest]) .ff-home-app-store:has(+ .ff-guest-home-quick-links),
  body:has(#app .ff-topbar[data-mobile-guest-mode=guest]):has(#app .ff-guest-home-quick-links) .ff-learn-entry {
    display: none !important;
  }
}
@media (max-width: 315px) {
  html.ff-web-refresh #app .ff-topbar[data-mobile-guest-mode=guest] { flex-wrap: wrap; }
}
