/**
 * The Poznote mark.
 *
 * It used to be <img src="favicon.ico">, a raster: its colour is baked into the
 * file, so no stylesheet could touch it. Discussion #1261 lists that as one of
 * the things a theme cannot change, and the only workaround the theme author
 * found was to hide it.
 *
 * The same drawing, as a CSS mask painted with a token, exactly like the Lucide
 * icons. The shape comes from images/poznote.svg; its own fill is dropped,
 * a mask only carries the silhouette.
 */

.poznote-logo {
    display: inline-block;
    background-color: var(--pz-accent);
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 512 512%22%3E%3Cpath d=%22M162 491.5H97A50 50 0 0 1 47 441.5V70A50 50 0 0 1 97 20H362.5A50 50 0 0 1 412.5 70V220H127M127 140H332M127 300H251M295.3 405.6L267.0 490.5L351.9 462.2L453.3 360.8A40 40 0 0 0 396.7 304.2ZM379.2 321.7L435.8 378.3%22 fill=%22none%22 stroke=%22black%22 stroke-width=%2240%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 512 512%22%3E%3Cpath d=%22M162 491.5H97A50 50 0 0 1 47 441.5V70A50 50 0 0 1 97 20H362.5A50 50 0 0 1 412.5 70V220H127M127 140H332M127 300H251M295.3 405.6L267.0 490.5L351.9 462.2L453.3 360.8A40 40 0 0 0 396.7 304.2ZM379.2 321.7L435.8 378.3%22 fill=%22none%22 stroke=%22black%22 stroke-width=%2240%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22/%3E%3C/svg%3E");
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
    -webkit-mask-size: contain;
    mask-size: contain;
}

/* A logo an admin uploaded (lib/branding.php) keeps its own colours: the
   element carries the image, set inline, and the mask is dropped. */
.poznote-logo.poznote-logo-custom {
    background-color: transparent;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    -webkit-mask-image: none;
    mask-image: none;
}
