/* WebXd Author Box. Colours and sizes are custom properties, which the
   widget's Style controls set. Selectors are two classes deep so they outrank
   the kit's and Hello Elementor's button and paragraph rules. */

.wxa {
  --wxa-avatar: 44px;
  --wxa-ink: #101318;
  --wxa-text: #2a2f37;
  --wxa-muted: #5b6270;
  --wxa-faint: #9aa1ac;
  --wxa-accent: #c21010;
  --wxa-focus: #0466c8;
  --wxa-card-width: 360px;
  display: flex;
  /* As wide as its content, so hovering beside the byline is not hovering it. */
  width: fit-content;
  max-width: 100%;
  align-items: center;
  gap: 12px;
  font-family: "Inter", sans-serif;
}

.wxa .wxa__avatar {
  flex: none;
  width: var(--wxa-avatar);
  height: var(--wxa-avatar);
  border-radius: 50%;
  object-fit: cover;
  background: #e5e7eb;
}

.wxa .wxa__avatar--initials,
.wxa .wxa-card__avatar--initials {
  display: grid;
  place-items: center;
  color: var(--wxa-ink);
  font-weight: 600;
  font-size: calc(var(--wxa-avatar) * 0.36);
  letter-spacing: 0.02em;
}

.wxa .wxa__text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.wxa .wxa__line {
  color: var(--wxa-muted);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.35;
}

.wxa .wxa__prefix {
  margin-right: 0.3em;
}

.wxa .wxa__name {
  color: var(--wxa-ink);
  font-weight: 600;
}

/* The name as a button: text that hints it does something. */
.wxa .wxa__trigger,
.wxa .wxa__trigger:is(:hover, :focus, :active) {
  display: inline;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 3px;
  background: none;
  box-shadow: none;
  color: var(--wxa-ink);
  font: inherit;
  font-weight: 600;
  letter-spacing: inherit;
  text-transform: none;
  white-space: inherit;
  user-select: auto;
  -webkit-user-select: auto;
  text-align: inherit;
  text-decoration: underline dotted;
  text-decoration-color: var(--wxa-faint);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 0.28em;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: text-decoration-color 0.15s ease-out;
}
.wxa .wxa__trigger:hover,
.wxa .wxa__trigger[aria-expanded="true"] {
  text-decoration-style: solid;
  text-decoration-color: currentColor;
}
.wxa .wxa__trigger:focus-visible {
  outline: 2px solid var(--wxa-focus);
  outline-offset: 2px;
}

/* Details: date · reading time · categories. Each item carries its dot in
   the gutter to its left, and the line clips that gutter, so a wrapped line
   never starts with a dot. */
.wxa .wxa__details {
  margin: 0;
  overflow: clip;
  overflow-clip-margin: 4px;
  color: var(--wxa-muted);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.45;
}
.wxa .wxa__items {
  display: flex;
  flex-wrap: wrap;
  margin-left: -1.4em;
}
.wxa .wxa__detail {
  margin-left: 1.4em;
  position: relative;
}
.wxa .wxa__detail::before {
  content: "\00B7";
  content: "\00B7" / "";
  position: absolute;
  left: -1.4em;
  width: 1.4em;
  text-align: center;
  color: var(--wxa-faint);
}
.wxa .wxa__details a {
  color: var(--wxa-accent);
  font-weight: 500;
  text-decoration: none;
}
.wxa .wxa__details a:hover,
.wxa .wxa__details a:focus-visible {
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

/* ---- The bio card. -------------------------------------------------- */

.wxa .wxa-card {
  box-sizing: border-box;
  width: min(var(--wxa-card-width), calc(100vw - 32px));
  max-height: calc(100vh - 32px);
  max-height: calc(100dvh - 32px);
  overflow: auto;
  padding: 20px;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 18px 40px -12px rgb(16 19 24 / 0.22), 0 2px 6px rgb(16 19 24 / 0.06);
  color: var(--wxa-text);
  text-align: left;
  opacity: 0;
  translate: 0 6px;
  transition: opacity 0.16s ease-out, translate 0.16s ease-out, display 0.16s allow-discrete, overlay 0.16s allow-discrete;
}
.wxa .wxa-card[data-side="top"] {
  translate: 0 -6px;
}
.wxa .wxa-card:popover-open {
  opacity: 1;
  translate: 0 0;
}
@starting-style {
  .wxa .wxa-card:popover-open {
    opacity: 0;
    translate: 0 6px;
  }
  .wxa .wxa-card[data-side="top"]:popover-open {
    translate: 0 -6px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .wxa .wxa-card,
  .wxa .wxa-card[data-side="top"] {
    translate: none;
  }
}
/* Browsers without popovers would show the card inline. */
@supports not selector(:popover-open) {
  .wxa .wxa-card {
    display: none;
  }
}

.wxa .wxa-card__head {
  display: flex;
  align-items: center;
  gap: 14px;
}
.wxa .wxa-card__avatar {
  --wxa-avatar: 56px;
  flex: none;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  background: #e5e7eb;
}
.wxa .wxa-card p {
  margin: 0;
}
.wxa .wxa-card .wxa-card__name {
  color: var(--wxa-ink);
  font: 600 18px/1.25 "Helvetica", "Inter", sans-serif;
  letter-spacing: -0.2px;
}
.wxa .wxa-card .wxa-card__role {
  margin-top: 3px;
  color: var(--wxa-muted);
  font: 500 14px/1.35 "Inter", sans-serif;
}
.wxa .wxa-card__bio {
  margin-top: 14px;
  font: 400 15px/1.6 "Roboto", sans-serif;
}
.wxa .wxa-card__bio p + p {
  margin-top: 0.7em;
}
.wxa .wxa-card__bio--hint {
  color: var(--wxa-muted);
  font-style: italic;
}
.wxa .wxa-card .wxa-card__links {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid #eef0f3;
}
.wxa .wxa-card__links a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #0a66c2;
  font: 500 14px/1.3 "Inter", sans-serif;
  text-decoration: none;
}
.wxa .wxa-card__links a:hover,
.wxa .wxa-card__links a:focus-visible {
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.wxa-empty {
  margin: 0;
  color: #5b6270;
  font-style: italic;
}
