/*
 * social.conradkramer.com as a personal site for logged-out visitors.
 *
 * Managed by mastodon-kramer-la-personal-site.service (hosts/tower); edits
 * made in the admin UI are overwritten on the next switch.
 *
 * Mastodon 4.7 only emits <meta name="initialPath"> in the web app's <head>
 * when someone is signed in (app/views/shared/_web_app.html.haml), so
 * `:root:not(:has(meta[name="initialPath"])) .app-body` matches logged-out
 * web app pages from first paint. Signed-in pages, /settings (body.admin),
 * and /auth (no .app-body) never match, so Conrad keeps the full UI.
 * Browsers without :has() drop these rules and show the stock UI.
 *
 * Kept: profile header, Follow button and its remote-follow modal, posts,
 * post threads, and the profile's Activity/Media/Featured tabs. Sign in
 * directly at /auth/sign_in.
 */

/*
 * Both side panes: search, server banner with hero, ADMINISTERED BY and
 * SERVER STATS, the Mastodon logo, About/Trending/Live feeds links, the
 * "Mastodon is the best way to keep up..." sign-in banner, and the footer.
 * On phones the navigational pane is the slide-out menu.
 */
:root:not(:has(meta[name="initialPath"])) .app-body .columns-area__panels__pane--compositional,
:root:not(:has(meta[name="initialPath"])) .app-body .columns-area__panels__pane--navigational,
/* The same pieces by name, wherever else the app renders them. */
:root:not(:has(meta[name="initialPath"])) .app-body .server-banner,
:root:not(:has(meta[name="initialPath"])) .app-body .sign-in-banner,
:root:not(:has(meta[name="initialPath"])) .app-body form.search,
:root:not(:has(meta[name="initialPath"])) .app-body footer[data-context],
/* Phone bottom bar: "Login or Register" plus the menu button. */
:root:not(:has(meta[name="initialPath"])) .app-body .ui__navigation-bar,
/* Remote-follow modal: keep the server picker, drop "Don't have an account yet? Create account". */
:root:not(:has(meta[name="initialPath"])) .app-body .interaction-modal > p {
  display: none;
}

/* Without the bottom bar, sticky profile buttons and toasts sit at the edge. */
:root:not(:has(meta[name="initialPath"])) .app-body .ui {
  --mobile-bottom-nav-height: 0px;
}

/* Center the profile column once the side panes are gone. */
:root:not(:has(meta[name="initialPath"])) .app-body .columns-area__panels__main {
  width: 100%;
  max-width: 600px;
}


