/* Shows or hides parts of a public page depending on whether the visitor is logged in.
   js/session.js adds the class "is-auth" to <html> before the page is drawn.
     data-auth="in"   visible only when logged in
     data-auth="out"  visible only when NOT logged in (this is also what a visitor without
                      JavaScript sees)
   Needs css/styles.css for the colour variables. */

html:not(.is-auth) [data-auth="in"] { display: none !important; }
html.is-auth [data-auth="out"] { display: none !important; }

/* A button that looks like a link (used for "Log out" in the header and footer). */
.link-like { padding: 0; border: 0; background: none; cursor: pointer; text-align: left; }
.nl.link-like { font-family: var(--font); }
.foot-links .link-like { color: var(--muted); font: 500 15px var(--font); }
.foot-links .link-like:hover { color: var(--text); }

/* The "Welcome back" box that replaces the sign-up form in the hero. */
.welcome-back {
  max-width: 560px; margin-top: clamp(16px, 3.2vh, 32px); padding: clamp(16px, 2.6vh, 24px) 24px;
  border: 1px solid var(--line); border-radius: 22px; background: var(--surface); box-shadow: var(--shadow);
}
.welcome-back strong { display: block; font-size: 22px; line-height: 1.2; letter-spacing: -.015em; overflow-wrap: anywhere; }
.welcome-back p { margin: 8px 0 clamp(12px, 2vh, 18px); color: var(--muted); font-size: 16px; line-height: 1.5; }
.welcome-back .btn { min-height: 48px; }
