/* Compact attribution, shared by the author directory and author detail. */
.author-portrait figcaption,
.author-portrait.large figcaption {
  margin-top: 3px;
  font: 10px/1.4 Arial, sans-serif;
  color: #536f86;
}
.portrait-credit { position: relative; }
.portrait-credit > summary {
  display: flex;
  align-items: center;
  gap: 4px;
  width: fit-content;
  min-height: 28px;
  padding: 2px 0;
  cursor: pointer;
  list-style: none;
  white-space: nowrap;
}
.portrait-credit > summary::-webkit-details-marker { display: none; }
.portrait-credit > summary:hover,
.portrait-credit[open] > summary { color: #203f59; text-decoration: underline; }
.portrait-credit > summary:focus-visible,
.portrait-credit-close:focus-visible {
  outline: 2px solid #446783;
  outline-offset: 3px;
  border-radius: 2px;
}
.portrait-credit-panel {
  position: fixed;
  z-index: 30;
  box-sizing: border-box;
  width: min(310px, calc(100vw - 24px));
  max-height: calc(100dvh - 24px);
  overflow: auto;
  overscroll-behavior: contain;
  padding: 13px 15px 15px;
  border: 1px solid #c3d4e1;
  border-radius: 5px;
  background: #f7fafe;
  color: #294b67;
  box-shadow: 0 6px 22px #1b35442b;
  font: 12px/1.55 Arial, sans-serif;
  overflow-wrap: anywhere;
  text-align: left;
}
.portrait-credit-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 7px;
}
.portrait-credit-heading strong { font-size: 12px; }
.portrait-credit-close {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  margin: -6px -8px -4px 0;
  padding: 0;
  border: 0;
  border-radius: 3px;
  background: transparent;
  color: inherit;
  cursor: pointer;
  font: 22px/1 Arial, sans-serif;
}
.portrait-credit-close:hover { background: #e2ebf3; }
.author-portrait .portrait-credit-panel p {
  margin: 10px 0 0;
  font: inherit;
}
.portrait-credit-label {
  display: block;
  margin-bottom: 2px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .03em;
}
.portrait-credit-panel a { color: inherit; text-decoration: underline; }
@media (pointer: coarse) {
  .portrait-credit > summary { min-height: 36px; }
  .portrait-credit-close { width: 40px; height: 40px; }
}
/* Keep portrait cards and their attribution reachable on narrow screens. */
@media(max-width:650px){
 .author-directory>.wrap,#detail-content.wrap{padding-left:20px;padding-right:20px}
 .author-cards{grid-template-columns:minmax(0,1fr)}
 .author-card{padding:20px}
 .author-card-top{flex-wrap:wrap}
 .author-card-top>div{min-width:0;flex:1 1 100px}
 .author-card h3{overflow-wrap:anywhere}
 .directory-search{min-width:0}
 .directory-search input{min-width:0;width:100%}
}
