/* The bio link page (views/biolink.templ, biolink.js), as the old site had it (biolink.css), on Daybook's tokens: Pep
   Pilates Club's profile and its link-in-bio page in a phone, to try, and the dock menus' own parts (Seen on, Share);
   the phone, the dock and the held stage are the feature pages' kit (feature.css). Then every link's own address: a
   story, a QR poster, each link's numbers. The studio's colour is a Daybook field on the phone (vermilion, as on the
   homepage card, until the dock picks another); its themes are drawn from Daybook's surfaces (the dark one on
   Daybook's dark page), its type is Inter Tight in three weights and cases. Type in the phone keeps a 15px floor. */

/* ---------------------------------------------------------------- the profile, as the homepage card draws it */
.bl-prof {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 6px 14px 0;
  overflow: hidden;
  font: 400 15px/1.3 var(--font-db);
}
.bl-prof__handle {
  margin: 0 0 4px;
  font-weight: 600;
  text-align: center;
}
.bl-prof__row {
  display: flex;
  align-items: center;
  gap: 14px;
}
.bl-prof__av {
  flex: none;
  width: 72px;
  height: 72px;
  overflow: hidden;
  border-radius: 50%;
}
.bl-prof__stats {
  display: flex;
  flex: 1;
  min-width: 0;
  justify-content: space-around;
  text-align: center;
}
.bl-prof__stats span {
  display: flex;
  flex-direction: column;
  min-width: 0;
  color: var(--db-fg-3);
  font-size: 13px;
  letter-spacing: -0.02em;
}
.bl-prof__stats b {
  color: var(--db-fg);
  font-size: 15px;
  font-weight: 600;
}
.bl-prof__name,
.bl-prof__bio {
  margin: 0;
}
.bl-prof__name {
  margin-top: 2px;
  font-weight: 600;
}
.bl-prof__bio {
  margin-top: -6px;
  color: var(--db-fg-2);
}
.bl-prof__link {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: 6px;
  margin: -4px 0 0;
  padding: 2px 0;
  border: 0;
  background: none;
  color: var(--db-link);
  cursor: pointer;
  font: 500 15px/1.3 var(--font-db);
}
.bl-prof__link .bl-icon {
  width: 16px;
  height: 16px;
}
.bl-prof__btns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin: 2px 0 6px;
}
.bl-prof__btns span {
  padding: 8px 0;
  border-radius: 8px;
  background: var(--db-card);
  font-weight: 500;
  text-align: center;
}
/* a narrow phone: the profile's picture smaller, and its counts the posts and followers alone */
@container (max-width: 300px) {
  .bl-prof__av {
    width: 56px;
    height: 56px;
  }
  .bl-prof__stats span:last-child {
    display: none;
  }
}
.bl-prof__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  margin-inline: -14px;
}
.bl-prof__grid img {
  aspect-ratio: 1;
}
.bl-ph img,
.bl-mini img,
.bl-addr img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* the app's browser over the profile: it rises when the link is opened; close, the address, more */
.bl-brw {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  background: var(--db-raised);
  transform: translateY(101%);
  transition: transform 0.55s var(--ease-db);
}
.is-page .bl-brw {
  transform: none;
}
.bl-ph__bar {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) 28px;
  align-items: center;
  gap: 6px;
  flex: none;
  height: 44px;
  margin: 0;
  padding: 0 10px;
  border-bottom: 1px solid var(--db-edge);
  font: 500 15px/1 var(--font-db);
}
.bl-ph__x {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: none;
  color: var(--db-fg);
  cursor: pointer;
}
.bl-ph__x:focus-visible {
  outline: 2px solid var(--db-focus);
}
.bl-ph__bar > span {
  overflow: hidden;
  color: var(--db-fg-3);
  text-align: center;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.bl-ph__more {
  display: grid;
  place-items: center;
}
.bl-web {
  position: relative;
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: none;
  container-type: inline-size;
}
.bl-web::-webkit-scrollbar {
  display: none;
}

/* ---------------------------------------------------------------- the studio's page, and its themes
   Each theme sets the page's ground, its links, its ink and its corners; the studio's colour (the phone's field) is
   on its buttons and drawings. Named after the website page's themes */
.bl-lp {
  --bg: var(--db-card);
  --card: var(--db-raised);
  --ink: var(--db-fg);
  --ink-2: var(--db-fg-3);
  --line: var(--db-edge);
  --acc: var(--db-field);
  --acc-ink: var(--db-field-ink);
  --tile: var(--db-field-soft);
  --tile-ink: var(--db-field-text);
  --r-row: 18px;
  --r-cover: 10px;
  --r-hero: 22px;
  --name: 500 22px/1.15 var(--font-db);
  --name-case: none;
  --name-ls: -0.03em;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-sizing: border-box;
  min-height: 100%;
  padding: 18px 14px 20px;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-db);
  transition: background-color 0.4s var(--ease-db), color 0.4s var(--ease-db), opacity 0.16s var(--ease-db);
}
.bl-lp.is-switching {
  opacity: 0;
}
.bl-lp[data-theme="editorial"] {
  --bg: var(--db-bg);
  --card: transparent;
  --ink-2: var(--db-fg-2);
  --line: var(--db-edge-3);
  --tile: var(--db-card);
  --tile-ink: var(--db-fg);
}
.bl-lp[data-theme="bold"] {
  --bg: var(--db-field);
  --card: color-mix(in srgb, var(--db-field-ink) 12%, transparent);
  --ink: var(--db-field-ink);
  --ink-2: color-mix(in srgb, var(--db-field-ink) 76%, transparent);
  --line: color-mix(in srgb, var(--db-field-ink) 22%, transparent);
  --acc: var(--db-field-ink);
  --acc-ink: var(--db-field);
  --tile: color-mix(in srgb, var(--db-field-ink) 16%, transparent);
  --tile-ink: var(--db-field-ink);
}
.bl-lp[data-theme="pastel"] {
  --bg: var(--db-bg);
  --card: var(--db-raised);
}
.bl-lp[data-theme="dark"] {
  --bg: var(--db-bg);
  --card: var(--db-card);
}
/* the dock's corners and type, over the theme's own (a theme brings its own when picked) */
.bl-lp[data-corners="square"] {
  --r-row: 4px;
  --r-cover: 3px;
  --r-hero: 6px;
}
.bl-lp[data-corners="soft"] {
  --r-row: 18px;
  --r-cover: 10px;
  --r-hero: 22px;
}
.bl-lp[data-corners="round"] {
  --r-row: 999px;
  --r-cover: 999px;
  --r-hero: 30px;
}
.bl-lp[data-theme="bold"][data-corners="soft"] {
  --r-hero: 50% 50% 18px 18px / 42% 42% 18px 18px;
}
.bl-lp[data-type="light"] {
  --name: 300 31px/1.02 var(--font-db);
  --name-ls: -0.045em;
}
.bl-lp[data-type="poster"] {
  --name: 600 25px/1 var(--font-db);
  --name-case: uppercase;
  --name-ls: -0.015em;
}
/* the details the page shows (hours, address with directions, phone) */
.bl-lp:not([data-details~="hours"]) [data-detail="hours"],
.bl-lp:not([data-details~="address"]) [data-detail="address"],
.bl-lp:not([data-details~="phone"]) [data-detail="phone"],
.bl-lp [hidden] {
  display: none;
}

/* the page's own language switch, at its top corner: one button naming the other language */
.bl-lp__lang {
  position: absolute;
  top: 12px;
  right: 12px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 30px;
  padding: 0 10px 0 8px;
  border: 0;
  border-radius: var(--radius-db-full);
  background: var(--card);
  box-shadow: 0 0 0 1px var(--line);
  color: var(--ink);
  cursor: pointer;
  font: 500 15px/1 var(--font-db);
}
.bl-lp__lang .bl-icon {
  width: 15px;
  height: 15px;
  color: var(--ink-2);
}
/* the head: the picture, the name, the bio, round buttons (site, directions, call, email) */
.bl-lp__head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 2px 0 4px;
  text-align: center;
}
.bl-lp__av {
  width: 68px;
  height: 68px;
  margin-bottom: 8px;
  overflow: hidden;
  border-radius: 50%;
}
.bl-lp__name {
  font: var(--name);
  letter-spacing: var(--name-ls);
  text-transform: var(--name-case);
  text-wrap: balance;
}
.bl-lp__bio {
  color: var(--ink-2);
  font: 400 15px/1.35 var(--font-db);
  text-wrap: balance;
}
.bl-lp__social {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}
.bl-lp__soc {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--card);
  box-shadow: 0 0 0 1px var(--line);
  color: var(--tile-ink);
  cursor: pointer;
}
.bl-lp__soc .bl-icon {
  width: 18px;
  height: 18px;
}
/* the class from the post: its photograph, the words over a scrim, Book in the studio's colour */
.bl-lp__hero {
  position: relative;
  flex: none;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: var(--r-hero);
  background: var(--db-card-2);
}
.bl-lp__hero > img {
  position: absolute;
  inset: 0;
}
.bl-lp__over {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 10px;
  padding: 40px 14px 13px;
  background: linear-gradient(to top, color-mix(in srgb, var(--color-black) 78%, transparent), color-mix(in srgb, var(--color-black) 45%, transparent) 55%, transparent);
  color: var(--color-white);
}
.bl-lp__over .bl-t {
  font: 500 18px/1.2 var(--font-db);
  letter-spacing: -0.02em;
}
.bl-lp__over .bl-m {
  color: color-mix(in srgb, var(--color-white) 86%, transparent);
}
.bl-lp__book {
  height: 36px;
  padding: 0 16px;
  border: 0;
  border-radius: var(--radius-db-full);
  background: var(--acc);
  color: var(--acc-ink);
  cursor: pointer;
  font: 500 15px/36px var(--font-db);
  white-space: nowrap;
}
.bl-lp__book[data-full] {
  background: transparent;
  box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--color-white) 85%, transparent);
  color: var(--color-white);
}
/* a narrow screen puts Book under the class's words (French's longer words, a little sooner) */
@container (max-width: 319px) {
  .bl-lp__over {
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
  }
  .bl-lp__book {
    justify-self: start;
  }
}
@container (max-width: 339px) {
  :lang(fr) .bl-lp__over {
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
  }
  :lang(fr) .bl-lp__book {
    justify-self: start;
  }
}
/* the links: a cover, a title over a line, a chevron or an arrow out; corners nest (cover + padding = row) */
.bl-lp__rows {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.bl-lp__row {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  width: 100%;
  box-sizing: border-box;
  padding: 8px 14px 8px 8px;
  border: 0;
  border-radius: var(--r-row);
  background: var(--card);
  box-shadow: 0 1px 2px var(--db-edge);
  color: inherit;
  cursor: pointer;
  font: inherit;
  letter-spacing: inherit;
  text-align: left;
}
.bl-lp__row > :not(.bl-lp__tint) {
  position: relative;
}
.bl-lp__tint {
  display: none;
}
.bl-lp__cover {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  overflow: hidden;
  border-radius: var(--r-cover);
  background: var(--line);
}
.bl-tile {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  background: var(--tile);
  color: var(--tile-ink);
}
.bl-tile .bl-icon {
  width: 22px;
  height: 22px;
}
.bl-txt {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.bl-t,
.bl-m {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.bl-t {
  font: 500 15px/1.3 var(--font-db);
}
.bl-m {
  color: var(--ink-2);
  font: 400 15px/1.3 var(--font-db);
}
.bl-lp__end {
  display: grid;
  place-items: center;
  color: var(--ink-2);
}
.bl-lp__end .bl-icon {
  width: 18px;
  height: 18px;
}
.bl-lp__foot {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  margin: 6px 0 0;
  color: var(--ink-2);
  font: 400 15px/1.35 var(--font-db);
}
/* editorial links are lines, not cards; pastel ones are tinted in a run of Daybook's soft fields; bold and dark lie flat */
.bl-lp[data-theme="editorial"] .bl-lp__rows {
  gap: 0;
  border-top: 1px solid var(--line);
}
.bl-lp[data-theme="editorial"] .bl-lp__row {
  padding: 10px 2px;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  box-shadow: none;
}
.bl-lp[data-theme="pastel"] .bl-lp__row {
  padding-left: 6px;
  box-shadow: none;
}
.bl-lp[data-theme="pastel"] .bl-lp__tint {
  position: absolute;
  inset: 0;
  display: block;
  border-radius: inherit;
  background: var(--db-field-soft);
}
.bl-lp[data-theme="bold"] .bl-lp__row,
.bl-lp[data-theme="dark"] .bl-lp__row {
  box-shadow: none;
}
.bl-lp[data-theme="pastel"] .bl-tile {
  background: var(--db-raised);
}

/* the grid: the links two by two, each its cover over its words */
.bl-lp[data-layout="grid"] .bl-lp__rows {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.bl-lp[data-layout="grid"] .bl-lp__row {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
  padding: 8px 8px 10px;
  border-radius: min(var(--r-row), 20px);
}
.bl-lp[data-layout="grid"] .bl-lp__cover {
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  border-radius: min(var(--r-cover), 12px);
}
.bl-lp[data-layout="grid"] .bl-tile .bl-icon {
  width: 30px;
  height: 30px;
}
.bl-lp[data-layout="grid"] .bl-lp__end {
  display: none;
}
.bl-lp[data-layout="grid"] .bl-txt {
  padding: 0 4px;
}
.bl-lp[data-layout="grid"][data-theme="editorial"] .bl-lp__rows {
  border-top: 0;
}
.bl-lp[data-layout="grid"][data-theme="editorial"] .bl-lp__row {
  padding: 0 0 10px;
}

/* ---------------------------------------------------------------- the booking
   the page dims and the sheet rises with the class and the intro offer chosen; Continue slides on to the details,
   where the phone's autofill offers the client's name and email, then the saved card; Pay fills while it waits, and
   the booking is confirmed */
.bl-bk {
  position: absolute;
  z-index: 2;
  inset: 44px 0 0;
  background: transparent;
  transition: background-color 0.4s var(--ease-db);
  pointer-events: none;
}
.bl-bk.is-up {
  background: var(--db-scrim);
  pointer-events: auto;
}
.bl-bk__panel {
  position: absolute;
  inset: 18px 0 0;
  overflow: hidden;
  border-radius: 22px 22px 0 0;
  background: var(--db-raised);
  color: var(--db-fg);
  transform: translateY(102%);
  transition: transform 0.5s var(--ease-db);
}
.bl-bk.is-up .bl-bk__panel {
  transform: none;
}
.bl-bk__panel::before {
  content: "";
  position: absolute;
  top: 7px;
  left: 50%;
  width: 36px;
  height: 5px;
  margin-left: -18px;
  border-radius: 3px;
  background: var(--db-card-3);
}
.bl-bk__step {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 24px 16px 16px;
  font: 400 15px/1.3 var(--font-db);
  transition: transform 0.45s var(--ease-db), opacity var(--duration-db) var(--ease-db);
}
.bl-bk__step > * {
  flex: none;
}
.bl-bk__step[data-n="pay"] {
  gap: 10px;
  transform: translateX(100%);
}
.bl-bk__step[data-n="done"] {
  align-items: center;
  gap: 6px;
  padding-top: 34px;
  text-align: center;
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
}
.bl-bk:is(.is-pay, .is-done) .bl-bk__step[data-n="class"] {
  opacity: 0;
  transform: translateX(-35%);
  pointer-events: none;
}
.bl-bk.is-pay .bl-bk__step[data-n="pay"] {
  transform: none;
}
.bl-bk.is-done .bl-bk__step[data-n="pay"] {
  opacity: 0;
  transform: none;
  pointer-events: none;
}
.bl-bk.is-done .bl-bk__step[data-n="done"] {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}
.bl-bk__cls {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  --ink-2: var(--db-fg-3);
  --line: var(--db-edge);
  --r-cover: 10px;
}
.bl-bk__cls .bl-t {
  font-size: 17px;
}
.bl-bk__opts {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.bl-bk__opt {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  height: 50px;
  padding: 0 14px;
  border: 1px solid var(--db-edge-2);
  border-radius: 14px;
  background: var(--db-raised);
  color: inherit;
  cursor: pointer;
  font: inherit;
  text-align: left;
  --ink-2: var(--db-fg-3);
}
.bl-bk__opt[aria-pressed="true"] {
  border-color: var(--db-field);
  box-shadow: inset 0 0 0 1px var(--db-field);
}
.bl-bk__opt > i {
  width: 18px;
  height: 18px;
  box-sizing: border-box;
  border: 1.5px solid var(--db-edge-3);
  border-radius: 50%;
}
.bl-bk__opt[aria-pressed="true"] > i {
  border: 6px solid var(--db-field);
}
.bl-bk__opt .bl-txt {
  flex-direction: row;
  align-items: baseline;
  gap: 6px;
}
.bl-bk__opt .bl-t {
  flex: none;
}
.bl-bk__opt > b {
  font-weight: 500;
}
.bl-bk__btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 48px;
  overflow: hidden;
  border: 0;
  border-radius: var(--radius-db-full);
  background: var(--db-field);
  color: var(--db-field-ink);
  cursor: pointer;
  font: 500 15px/1 var(--font-db);
  white-space: nowrap;
  transition: opacity 0.2s var(--ease-db);
}
.bl-bk__btn[aria-disabled="true"] {
  opacity: 0.4;
  cursor: default;
}
/* Pay, waiting: the button fills from its start, a lighter wash, while the payment goes through */
.bl-bk__btn::after {
  content: "";
  position: absolute;
  inset: 0;
  background: color-mix(in srgb, var(--db-field-ink) 22%, transparent);
  transform: scaleX(0);
  transform-origin: 0 50%;
}
.bl-bk__btn.is-busy::after {
  transform: scaleX(1);
  transition: transform 0.9s linear;
}
.bl-bk__btn--soft {
  align-self: stretch;
  margin-top: 12px;
  background: var(--db-field-soft);
  color: var(--db-field-text);
}
.bl-bk__btn .bl-icon {
  width: 18px;
  height: 18px;
}
.bl-bk__close {
  align-self: center;
  margin-top: 4px;
  padding: 10px;
  border: 0;
  background: none;
  color: var(--db-fg-3);
  cursor: pointer;
  font: 400 15px/1 var(--font-db);
}
.bl-bk__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin: 0 0 2px;
}
.bl-bk__head b {
  font-weight: 500;
  white-space: nowrap;
}
.bl-bk__head span {
  overflow: hidden;
  color: var(--db-fg-3);
  white-space: nowrap;
  text-overflow: ellipsis;
}
.bl-bk__fw {
  position: relative;
}
.bl-bk__f {
  display: flex;
  align-items: center;
  width: 100%;
  height: 46px;
  padding: 0 14px;
  border: 1px solid var(--db-edge-2);
  border-radius: 12px;
  background: var(--db-raised);
  color: inherit;
  cursor: text;
  font: 400 15px/1 var(--font-db);
  text-align: left;
  transition: border-color 0.2s var(--ease-db), box-shadow 0.2s var(--ease-db), background-color var(--duration-db) var(--ease-db);
}
.bl-bk__f > * {
  overflow: hidden;
  font-style: normal;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.bl-bk__f i {
  color: var(--db-fg-3);
}
.bl-bk__f b {
  display: none;
  font-weight: 400;
}
.bl-bk__f.is-filled {
  background: color-mix(in srgb, var(--db-signal) 8%, var(--db-raised));
}
.bl-bk__f.is-filled i {
  display: none;
}
.bl-bk__f.is-filled b {
  display: block;
}
.bl-bk__f.is-focus {
  border-color: var(--db-field);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--db-field) 18%, transparent);
}
.bl-bk__auto {
  position: absolute;
  z-index: 1;
  top: calc(100% + 4px);
  right: 0;
  left: 0;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 8px 12px;
  border: 0;
  border-radius: 14px;
  background: var(--db-raised);
  box-shadow: var(--shadow-db-float), 0 0 0 1px var(--db-edge);
  color: inherit;
  cursor: pointer;
  font: inherit;
  text-align: left;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: opacity 0.2s var(--ease-db), transform 0.25s var(--ease-db), visibility 0s 0.25s;
  --ink-2: var(--db-fg-3);
}
.bl-bk__auto.is-on {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition-delay: 0s;
}
.bl-bk__g {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--db-field-soft);
  color: var(--db-field-text);
}
.bl-bk__g .bl-icon {
  width: 18px;
  height: 18px;
}
.bl-bk__ok {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin-bottom: 8px;
  border-radius: 50%;
  background: var(--db-field);
  color: var(--db-field-ink);
}
.bl-bk__ok .bl-icon {
  width: 24px;
  height: 24px;
}
.bl-bk__big {
  font: 500 20px/1.2 var(--font-db);
  letter-spacing: -0.03em;
}
.bl-bk__line {
  color: var(--db-fg-2);
  text-wrap: balance;
}

/* ---------------------------------------------------------------- the dock's own menus
   Seen on: the days as tiles, each with its class's spots that day as the page shows them; Share: the link to copy,
   the poster, a note */
.bl-opt--seen {
  min-width: 124px;
  padding-top: 14px;
}
.bl-spots {
  padding: 7px 12px;
  border-radius: var(--radius-db-full);
  background: var(--db-field-soft);
  color: var(--db-field-text);
  font: 500 0.9375rem/1 var(--font-db);
  white-space: nowrap;
}
.bl-spots--full {
  background: var(--db-field);
  color: var(--db-field-ink);
}
.bl-share {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  grid-template-rows: auto 1fr;
  grid-template-areas: "poster link" "poster note";
  align-items: start;
  gap: 4px 18px;
  width: 520px;
  max-width: 100%;
}
.bl-share__link {
  grid-area: link;
}
.bl-share__poster {
  grid-area: poster;
  width: 180px;
}
.bl-share .bl-menu__note {
  grid-area: note;
  margin-top: 8px;
}
.bl-share .bl-po {
  font-size: 15px;
}
.bl-share .bl-po__qr {
  width: 56%;
}
.bl-share .bl-po__u {
  display: none;
}
@media (max-width: 767px) {
  .bl-share {
    grid-template-columns: 1fr;
    grid-template-rows: none;
    grid-template-areas: "link" "poster" "note";
    width: auto;
    gap: 14px;
  }
  .bl-share__poster {
    justify-self: center;
  }
}

/* ---------------------------------------------------------------- every link's own address
   three cards: a story whose sticker opens one offer (it loops between the story and where it lands), the QR poster,
   each link's week in numbers (bars growing in once). In the studio's name and colour, as the phone has them */
.bl-addr {
  padding-top: 24px;
}
.bl-addr__head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: end;
  gap: 32px;
}
.bl-addr__head h2,
.bl-addr__head p {
  margin: 0;
}
.bl-addr__head p {
  max-width: 32em;
}
.bl-addr__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-top: 48px;
}
.bl-addr__card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 0;
}
.bl-addr__art {
  display: grid;
  place-items: center;
  height: 420px;
  overflow: hidden;
  border-radius: var(--radius-db-card);
  background: var(--db-card);
}
.bl-addr__card figcaption {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font: 400 1rem/1.45 var(--font-db);
  letter-spacing: -0.015em;
}
.bl-addr__card figcaption b {
  font: 500 1.25rem/1.25 var(--font-db);
  letter-spacing: -0.025em;
}
.bl-addr__card figcaption span {
  max-width: 36ch;
  color: var(--db-fg-3);
}
@media (max-width: 1023px) {
  .bl-addr__head {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .bl-addr__grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .bl-addr__art {
    height: 400px;
  }
}

/* the story: a 9:16 frame in a black phone's corners, the story and where its sticker lands crossfading */
.bl-st {
  position: relative;
  width: 216px;
  aspect-ratio: 9 / 16;
  overflow: hidden;
  border: 5px solid var(--db-fg);
  border-radius: 26px;
  background: var(--db-fg);
  box-shadow: var(--shadow-db-float);
  color: var(--color-white);
}
.bl-st__story,
.bl-st__land {
  position: absolute;
  inset: 0;
  transition: opacity 0.5s var(--ease-db), transform 0.6s var(--ease-db);
}
.bl-st__story > img {
  position: absolute;
  inset: 0;
}
.bl-st__story::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(color-mix(in srgb, var(--color-black) 40%, transparent), transparent 26%, transparent 55%, color-mix(in srgb, var(--color-black) 55%, transparent));
}
.bl-st__bars {
  position: absolute;
  z-index: 1;
  top: 8px;
  right: 8px;
  left: 8px;
  display: flex;
  gap: 3px;
  margin: 0;
}
.bl-st__bars i {
  flex: 1;
  height: 2px;
  border-radius: 1px;
  background: color-mix(in srgb, var(--color-white) 40%, transparent);
}
.bl-st__bars i.is-done {
  background: var(--color-white);
}
.bl-st__who {
  position: absolute;
  z-index: 1;
  top: 18px;
  right: 10px;
  left: 10px;
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 0;
  font: 500 15px/1.2 var(--font-db);
}
.bl-st__who > span:last-child {
  color: color-mix(in srgb, var(--color-white) 75%, transparent);
  font-weight: 400;
}
.bl-st__av {
  flex: none;
  width: 26px;
  height: 26px;
  overflow: hidden;
  border-radius: 50%;
}
.bl-st__who b {
  overflow: hidden;
  font-weight: 500;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.bl-st__words {
  position: absolute;
  z-index: 1;
  right: 14px;
  bottom: 74px;
  left: 14px;
  margin: 0;
  font: 500 20px/1.15 var(--font-db);
  letter-spacing: -0.03em;
  text-wrap: balance;
}
.bl-st__sticker {
  position: absolute;
  z-index: 1;
  bottom: 22px;
  left: 50%;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-sizing: border-box;
  max-width: calc(100% - 24px);
  padding: 8px 12px;
  border-radius: 10px;
  background: var(--color-white);
  box-shadow: var(--shadow-db-float);
  color: var(--db-field-text);
  font: 500 15px/1 var(--font-db);
  translate: -50% 0;
}
.bl-st__sticker span {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.bl-st__sticker .bl-icon {
  flex: none;
  width: 16px;
  height: 16px;
}
.bl-st__land {
  display: flex;
  flex-direction: column;
  background: var(--db-card);
  color: var(--db-fg);
  opacity: 0;
  transform: translateY(12%);
}
.bl-st.is-land .bl-st__land {
  opacity: 1;
  transform: none;
}
.bl-st.is-land .bl-st__story {
  opacity: 0;
}
.bl-st__bar {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 28px 10px 10px;
  border-bottom: 1px solid var(--db-edge);
  background: var(--db-raised);
  color: var(--db-fg-3);
  font: 400 13px/1.2 var(--font-db);
}
.bl-st__bar span {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.bl-st__bar .bl-icon {
  flex: none;
  width: 16px;
  height: 16px;
  color: var(--db-fg);
}
.bl-st__offer {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 12px;
  padding: 8px 8px 12px;
  border-radius: 16px;
  background: var(--db-raised);
  font: 400 15px/1.3 var(--font-db);
}
.bl-st__pic {
  height: 130px;
  overflow: hidden;
  border-radius: 10px;
}
.bl-st__offer b {
  margin-top: 4px;
  font: 500 17px/1.2 var(--font-db);
  letter-spacing: -0.02em;
}
.bl-st__offer > span:not(.bl-st__pic, .bl-st__buy) {
  color: var(--db-fg-3);
}
.bl-st__buy {
  align-self: flex-start;
  margin-top: 6px;
  padding: 9px 16px;
  border-radius: var(--radius-db-full);
  background: var(--db-field);
  color: var(--db-field-ink);
  font: 500 15px/1 var(--font-db);
}
/* the QR poster: a printed sheet, a little askew on the wall */
.bl-po {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.55em;
  box-sizing: border-box;
  width: 100%;
  max-width: 15em;
  aspect-ratio: 1 / 1.414;
  padding: 1.6em 1.3em 1.3em;
  border-radius: 4px;
  background: var(--color-white);
  box-shadow: 0 1px 2px var(--db-edge), var(--shadow-db-float);
  color: var(--db-fg);
  font-size: 17px;
  text-align: center;
}
.bl-addr__art .bl-po {
  max-width: 250px;
  rotate: -2deg;
}
.bl-po__name {
  font: 600 1em/1.2 var(--font-db);
  letter-spacing: -0.02em;
}
.bl-po__h {
  color: var(--db-field-text);
  font: 500 1.45em/1.08 var(--font-db);
  letter-spacing: -0.035em;
  text-wrap: balance;
}
.bl-po__p {
  color: var(--db-fg-2);
  font: 400 1em/1.3 var(--font-db);
}
.bl-po__qr {
  display: block;
  width: 62%;
  margin-top: auto;
}
.bl-qr {
  display: block;
  width: 100%;
  height: auto;
}
.bl-qr__bg {
  fill: var(--color-white);
}
.bl-qr__ink {
  fill: var(--color-black);
}
.bl-po__u {
  max-width: 100%;
  overflow: hidden;
  color: var(--db-fg-2);
  font: 500 0.9em/1.2 var(--font-db);
  white-space: nowrap;
  text-overflow: ellipsis;
}
/* each link's week: the page's address, then each link's name, a bar for its taps (growing in once), the taps, its
   bookings; the bar's own box steps aside so its parts sit in the row's columns */
.bl-nb {
  box-sizing: border-box;
  width: calc(100% - 40px);
  max-width: 380px;
  padding: 16px 18px 10px;
  border-radius: 18px;
  background: var(--db-raised);
  box-shadow: var(--shadow-db-float);
  color: var(--db-fg);
}
.bl-nb__site {
  margin: 0 0 12px;
  color: var(--db-fg-3);
  font: 400 15px/1.2 var(--font-db);
}
.bl-nb__row {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 10px 18px;
  margin: 0;
  padding: 11px 0;
  border-top: 1px solid var(--db-edge);
  font: 400 15px/1.25 var(--font-db);
  letter-spacing: -0.01em;
}
.bl-nb__row--head {
  padding-top: 0;
  border-top: 0;
  color: var(--db-fg-3);
}
.bl-nb__row--head b {
  grid-column: span 2;
  color: var(--db-fg);
  font-weight: 500;
}
.bl-nb__row > span:not(.bl-nb__n, .bl-nb__bar),
.bl-nb__bar b,
.bl-nb__b {
  text-align: right;
}
.bl-nb__n {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.bl-nb__bar {
  display: contents;
}
.bl-nb__bar i {
  justify-self: start;
  width: calc(var(--f) * 100%);
  height: 8px;
  border-radius: 4px;
  background: var(--db-field);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.9s var(--ease-db) calc(0.15s + var(--i) * 0.08s);
}
.bl-addr.is-in .bl-nb__bar i {
  transform: none;
}
.bl-nb__bar b,
.bl-nb__b {
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}

@media (prefers-reduced-motion: reduce) {
  .bl-brw,
  .bl-lp,
  .bl-bk,
  .bl-bk__panel,
  .bl-bk__step,
  .bl-bk__auto,
  .bl-bk__btn::after,
  .bl-st__story,
  .bl-st__land,
  .bl-nb__bar i {
    transition: none !important;
  }
}
