/* The desktop footer belongs only after Tutorials and My Account content.
   The fail-closed selectors also cover the currently running client bundle. */
.studio-site-footer { display: none !important; }
@media (min-width: 761px) {
  .canvas:has(.studio-support, .as-account-grid) > .studio-site-footer:not(.studio-site-footer-editor) {
    display: grid !important;
  }
}

/* Only these pages inherit a footer; do not reserve the generator composer below it. */
@media (min-width: 761px) {
  .canvas:has(.studio-support, .as-account-grid) { padding-bottom: 24px !important; }
  .studio-site-footer:has([data-studio-footer-brand]) { gap: 12px; padding-top: 20px; padding-bottom: 0; }
  .studio-footer-brand-row, .studio-footer-wordmark, .studio-footer-socials { display: flex; align-items: center; }
  .studio-footer-brand-row { gap: 16px; }
  .studio-footer-wordmark { gap: 10px; color: var(--n-ink); }
  .studio-footer-wordmark img { width: 32px; height: 32px; object-fit: contain; border-radius: 9px; }
  .studio-footer-wordmark strong { font-size: 19px; line-height: 1.2; font-weight: 700; }
  .studio-footer-socials { gap: 8px; margin-inline-start: auto; }
  .studio-site-footer .studio-footer-social-link { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; min-height: 34px; border: 1px solid var(--n-line); border-radius: 50%; color: var(--n-secondary); transition: color 160ms ease, background-color 160ms ease, transform 160ms ease; }
  .studio-footer-social-link svg { display: block; width: 19px; height: 19px; }
  .studio-site-footer a.studio-footer-social-link:hover { color: var(--n-selected-ink); background: var(--n-selected); transform: translateY(-1px); text-decoration: none; }
  .studio-footer-social-pending { opacity: .5; cursor: default; }
  .studio-site-footer:has([data-studio-footer-brand]) .studio-site-footer-meta > a[href="https://t.me/tunera_official"] { display: none; }
}
