/* Author page (author.php). Everything else on the page uses pin.css as it is:
   phero, artbar, blay / sbx / topics, pcard, pager, stepc. The empty state is in blog-archive.css. */

/* Hero: the copy on the left, the author's portrait on the right. */
.phero__panel--author {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: var(--s-4);
}

/* Portrait with the brand's hand-drawn arc around it; it draws in with the heading (tt-run). */
.phero__who {
  position: relative;
  margin: 0;
  width: clamp(168px, 17vw, 240px);
  aspect-ratio: 1;
  flex: none;
}

.phero__who img {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 999px;
  border: 1px solid var(--on-navy-fnt);
  background: var(--on-navy-fnt);
  object-fit: cover;
  object-position: top;
}

.phero__ring {
  position: absolute;
  inset: -14px;
  width: calc(100% + 28px);
  height: calc(100% + 28px);
  overflow: visible;
  fill: none;
  stroke: var(--sky-deep);
  stroke-width: 3;
  stroke-linecap: round;
}

.phero__ring path {
  vector-effect: non-scaling-stroke;
  stroke-dasharray: 1;
  stroke-dashoffset: calc(1 - var(--tt-run, 1));
  transition: stroke-dashoffset 900ms cubic-bezier(.22, .61, .36, 1) 340ms;
}

/* Topic filters are buttons here (they filter the grid, they don't go anywhere). */
.topics button.hub {
  font-family: inherit;
  line-height: inherit;
}

.topics button.hub:focus-visible {
  outline: 2px solid var(--navy);
  outline-offset: 2px;
}

@media (max-width: 760px) {
  .phero__panel--author {
    grid-template-columns: minmax(0, 1fr);
  }
  .phero__who {
    order: -1;
    width: 128px;
  }
  .phero__ring {
    inset: -10px;
    width: calc(100% + 20px);
    height: calc(100% + 20px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .phero__ring path {
    transition: none;
  }
}

/* Expertise list in the sidebar box. */
.sbx .adom__chips {
  padding-top: 0;
}
