/* BosyTeX: hides what this instance does not use. Loaded after Aldine's own styles.
   Selectors rely on Aldine's data-testid hooks (kept stable for its own tests):
   if one changes in an update, the element simply shows again. */

/* Account settings: git hosts, commit email, personal templates, Zotero, ORCID */
[data-testid="account-git-hosts"],
[data-testid="account-commit-email-row"],
[data-testid="account-commit-email-form"],
[data-testid="account-templates"],
[data-testid="account-zotero"],
.settings__row:has(> [data-testid="account-orcid"]) { display: none !important; }

/* Project list footer ("Aldine x.y · AGPL-3.0 · Source code"): the source stays in About */
[data-testid="colophon"] { display: none !important; }

/* Aldine's wordmark is replaced by the BosyTeX text (bosytex.js) */
[data-testid="wordmark"] { display: none !important; }
.bosytex-wordmark {
  text-decoration: none;
  font-weight: 650;
  letter-spacing: -0.035em;
  line-height: 1;
  color: currentColor;
  white-space: nowrap;
}
.bosytex-wordmark b { color: var(--accent); font-weight: inherit; }

/* The wordmark sits in links (back to projects): no underline */
a:has(> .bosytex-wordmark), a:has(> .bosytex-wordmark):hover { text-decoration: none !important; }

/* Sign-in page: no tagline (its room is kept), more air above the form */
.login__tagline { visibility: hidden; }
.login__title { margin-bottom: 22px !important; }

/* Templates: only the blank project. The publisher classes of the LaTeX image
   ("venue" templates) cannot be turned off on the server, so they are hidden here */
[data-testid="start-more"],
[data-testid^="template-venue"],
[data-testid^="template-kit"],
.tpl-group:not(:has([data-testid="template-blank"])),
[data-testid="template-rail"],
[data-testid="template-refresh"],
:has(> [data-testid="template-search"]) { display: none !important; }
