/* Bio page looks beyond colour: backgrounds, textures and the profile photo.
   Loaded by the editor (/app/page, $META['styles']) and folded into bio.bundle.css for
   public pages by fourway/tools/build_static.php; no other page loads it. Reads the
   --bio-* variables of fourway_site.css section 19. Paths are relative to /cdn/css/. */
/* Backgrounds (FW_BIO_FILLS; EX-30: gradients on bio pages only). From the background to
   background 2; text is checked for contrast on both. A photo sits under a veil of the
   background colour so the name and bio stay readable; its address comes from the page's
   own stylesheet (--bio-photo). */
.bio.bio-fill-linear, .join-bio.bio-fill-linear, .bio-preset.bio-fill-linear { background-image: linear-gradient(160deg, var(--bio-bg) 10%, var(--bio-bg2) 90%); background-attachment: fixed; }
.bio.bio-fill-radial, .join-bio.bio-fill-radial, .bio-preset.bio-fill-radial { background-image: radial-gradient(120% 70% at 50% 0%, var(--bio-bg2) 0%, var(--bio-bg) 75%); background-attachment: fixed; }
.bio.bio-fill-aurora, .join-bio.bio-fill-aurora, .bio-preset.bio-fill-aurora { background-image: radial-gradient(55% 45% at 12% 8%, var(--bio-bg2) 0%, transparent 70%), radial-gradient(50% 40% at 92% 28%, color-mix(in srgb, var(--bio-ink) 12%, transparent) 0%, transparent 70%), radial-gradient(70% 55% at 50% 105%, var(--bio-bg2) 0%, transparent 70%); background-attachment: fixed; }
.bio.bio-fill-photo, .join-bio.bio-fill-photo, .bio-preset.bio-fill-photo { background-image: linear-gradient(color-mix(in srgb, var(--bio-bg) 80%, transparent), color-mix(in srgb, var(--bio-bg) 80%, transparent)), var(--bio-photo, none); background-size: cover; background-position: center; background-attachment: fixed; }
.join-bio[class*="bio-fill-"], .bio-preset[class*="bio-fill-"] { background-attachment: scroll; }
@media (max-width: 47.99rem) { .bio[class*="bio-fill-"] { background-attachment: scroll; } }
/* Textures (FW_BIO_TEXTURES): an SVG mask over the page, filled with the accent colour, faint. */
.bio[class*="bio-tx-"]:not(.bio-tx-none)::before, .join-bio[class*="bio-tx-"]:not(.bio-tx-none)::before, .bio-preset[class*="bio-tx-"]:not(.bio-tx-none)::before { content: ""; position: fixed; inset: 0; z-index: 0; pointer-events: none; background: var(--bio-ink); opacity: .09; -webkit-mask-repeat: repeat; mask-repeat: repeat; }
.join-bio[class*="bio-tx-"]:not(.bio-tx-none)::before, .bio-preset[class*="bio-tx-"]:not(.bio-tx-none)::before { position: absolute; }
.join-bio, .bio-preset { position: relative; overflow: hidden; }
.join-bio > *, .bio-preset > *, .bio > .bio-main, .bio > .bio-foot { position: relative; z-index: 1; }
.bio-tx-dots::before  { -webkit-mask-image: url("../img/textures/dots.svg");  mask-image: url("../img/textures/dots.svg");  -webkit-mask-size: 16px;  mask-size: 16px; }
.bio-tx-grid::before  { -webkit-mask-image: url("../img/textures/grid.svg");  mask-image: url("../img/textures/grid.svg");  -webkit-mask-size: 28px;  mask-size: 28px; }
.bio-tx-lines::before { -webkit-mask-image: url("../img/textures/lines.svg"); mask-image: url("../img/textures/lines.svg"); -webkit-mask-size: 14px;  mask-size: 14px; }
.bio-tx-waves::before { -webkit-mask-image: url("../img/textures/waves.svg"); mask-image: url("../img/textures/waves.svg"); -webkit-mask-size: 64px 24px; mask-size: 64px 24px; }
.bio-tx-topo::before  { -webkit-mask-image: url("../img/textures/topo.svg");  mask-image: url("../img/textures/topo.svg");  -webkit-mask-size: 360px; mask-size: 360px; }
.bio-tx-grain::before { -webkit-mask-image: url("../img/textures/grain.svg"); mask-image: url("../img/textures/grain.svg"); -webkit-mask-size: 200px; mask-size: 200px; opacity: .16; }
/* The frame (FW_BIO_AVATAR_SHAPES) and the fit (FW_BIO_AVATAR_FITS): a logo shows whole on the button colour. */
.bio-av-rounded .bio-avatar { border-radius: var(--r-lg); }
.bio-av-square .bio-avatar { border-radius: var(--r-sm); }
.bio-av-contain .bio-avatar--photo { object-fit: contain; padding: var(--s-2); }  /* not %: padding % follows the parent width */
/* A profile photo replaces the monogram. */
.bio-avatar--photo { display: block; object-fit: cover; padding: 0; background: var(--bio-card); }
/* Editor: the list of posts (Deals & posts) and a post's photo. */
.bio-post-list { display: grid; gap: var(--s-3); margin: 0; padding: 0; list-style: none; }
.bio-post-row { display: grid; gap: var(--s-2); padding-top: var(--s-3); border-top: 1px solid var(--fw-line); }
.bio-post-thumb { width: 10rem; height: auto; margin-top: var(--s-2); border-radius: var(--r); border: 1px solid var(--fw-line); }
/* Profile header: cover image (fades into the page), the share button in its corner, the Verified mark. Profiles are icons only. */
.bio-head, .join-bio { position: relative; }
.bio-cover { display: block; width: calc(100% + 2 * var(--s-4)); max-width: none; height: 11rem; margin: 0 calc(-1 * var(--s-4)); object-fit: cover; -webkit-mask-image: linear-gradient(to bottom, currentColor 55%, transparent); mask-image: linear-gradient(to bottom, currentColor 55%, transparent); }
.join-bio .bio-cover { width: 100%; height: 6rem; -webkit-mask-image: none; mask-image: none; margin: 0; border-radius: var(--r) var(--r) 0 0; }
.bio.bio-has-cover .bio-main { padding-top: 0; }
.bio-cover + .bio-avatar, .bio-cover + .bio-top + .bio-avatar { position: relative; margin-top: -3rem; box-shadow: 0 0 0 4px var(--bio-bg); }
.bio .bio-top { position: absolute; top: 0; right: 0; z-index: 1; width: 2.75rem; margin: 0; padding: 0; justify-content: center; }
.bio-has-cover .bio-top { top: var(--s-3); }
.bio-top.is-copied { width: auto; padding: 0 var(--s-4); }
.bio-top .bio-share-label:empty { display: none; }
.bio-verified { width: 1.1em; height: 1.1em; margin-left: 0.15em; vertical-align: -0.1em; color: var(--bio-ink); }
.bio-qr-addr { display: block; }
@media (min-width: 48rem) {
  .bio-has-cover .bio-top { top: calc(var(--s-5) + var(--s-3)); right: var(--s-3); }
  .bio-cover { width: 100%; height: 14rem; margin: var(--s-5) 0 0; border-radius: var(--r-lg); }
}
@media (min-width: 64rem) {
  .bio .bio-qr { position: fixed; right: var(--s-6); bottom: var(--s-6); z-index: 2; margin: 0; }
  .bio .bio-qr-code { width: 7.5rem; }
  .bio .bio-qr-addr { display: none; }
}
.join-bio .bio-social-dot { justify-content: center; width: 2.25rem; min-height: 2.25rem; padding: 0; }
