/* Personnel dossier (js/dossier.js). */
.px-dz {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 22px;
  padding: 18px;
  border: 1px solid hsl(var(--th-bh) calc(24% * var(--th-bs)) 24%);
  background: hsl(var(--th-bh) calc(12% * var(--th-bs)) 8% / 0.7);
}
@media (max-width: 900px) {
  .px-dz {
    grid-template-columns: 1fr;
  }
}
.px-dz-photo {
  display: grid;
  gap: 8px;
  align-content: start;
}
.px-dz-photo small,
.px-dz-field small,
.px-dz-src {
  color: var(--muted, #9aa);
  font-size: 11px;
  line-height: 1.35;
}
.px-dz-frame {
  aspect-ratio: 3 / 4;
  border: 1px solid var(--accent, #fff);
  background: #00000055;
  overflow: hidden;
  display: grid;
  place-items: center;
}
.px-dz-frame .px-portrait {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.px-dz-noimg {
  display: grid;
  place-items: center;
  gap: 8px;
  color: var(--muted, #9aa);
  font: 700 11px var(--head, sans-serif);
  letter-spacing: 0.12em;
  opacity: 0.6;
}
.px-dz-noimg svg {
  width: 90px;
  height: auto;
}
.px-dz-photo .btn {
  text-align: center;
  cursor: pointer;
}
.px-dz-sub {
  margin: 14px 0 8px;
  padding-bottom: 4px;
  border-bottom: 1px solid #ffffff1a;
  font: 800 11px var(--head, sans-serif);
  letter-spacing: 0.16em;
  color: var(--accent, #fff);
}
.px-dz-sub:first-child {
  margin-top: 0;
}
.px-dz-sub small {
  margin-left: 8px;
  color: var(--muted, #9aa);
  font-weight: 600;
  letter-spacing: 0.06em;
}
.px-dz-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 10px 14px;
}
.px-dz-field,
.px-dz-cell {
  display: grid;
  gap: 4px;
  align-content: start;
}
.px-dz-field.wide,
.px-dz-cell.wide {
  grid-column: 1 / -1;
}
.px-dz-field > span {
  display: flex;
  align-items: center;
  gap: 6px;
  font: 700 10.5px var(--head, sans-serif);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted, #9aa);
}
.px-dz-roll {
  padding: 0 5px;
  border: 1px solid #ffffff33;
  background: transparent;
  color: var(--accent, #fff);
  font-size: 13px;
  line-height: 1.3;
  cursor: pointer;
}
.px-dz-roll:hover {
  border-color: var(--accent, #fff);
}
.px-dz textarea::placeholder {
  font-style: italic;
  opacity: 0.55;
}
.px-dz-samples summary {
  cursor: pointer;
  font-size: 11px;
  color: var(--accent, #fff);
}
.px-dz-samples button {
  display: block;
  width: 100%;
  margin-top: 4px;
  padding: 5px 8px;
  text-align: left;
  border: 1px solid #ffffff1f;
  background: #ffffff08;
  color: inherit;
  font-size: 12px;
  cursor: pointer;
}
.px-dz-samples button:hover {
  border-color: var(--accent, #fff);
}
.px-dz-lore {
  margin-top: 14px;
}
.px-dz-lede {
  font-size: 14px;
  line-height: 1.5;
}
.px-dz-facts {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 4px 12px;
  margin: 8px 0;
  font-size: 13px;
}
.px-dz-facts dt {
  font: 700 10.5px var(--head, sans-serif);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted, #9aa);
  padding-top: 2px;
}
.px-dz-facts dd {
  margin: 0;
}
.px-dz-facts.small {
  font-size: 12.5px;
}
.px-dz-article {
  max-height: 420px;
  overflow: auto;
  padding-right: 6px;
  font-size: 13px;
  line-height: 1.5;
}
.px-dz-article h5 {
  margin: 12px 0 4px;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent, #fff);
}

/* sheet card */
.px-dz-cardbody {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  align-items: start;
}
.px-dz-cardphoto .px-portrait {
  width: 96px;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border: 1px solid var(--accent, #fff);
  display: block;
}
.px-dz-line {
  margin: 6px 0 0;
  font-size: 12.5px;
}
.px-dz-story {
  margin: 10px 0;
}
.px-dz-story summary {
  cursor: pointer;
  font: 700 11px var(--head, sans-serif);
  letter-spacing: 0.12em;
  color: var(--accent, #fff);
}
.px-dz-story p {
  font-size: 13px;
  line-height: 1.5;
}

/* portrait in the sheet seal and roster cards */
.prox-seal.photo {
  position: relative;
  overflow: visible;
}
.prox-seal.photo .px-portrait {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.prox-seal.photo .prox-seal-emblem {
  position: absolute;
  right: -8px;
  bottom: -8px;
  width: 42%;
  height: auto;
  filter: drop-shadow(0 0 3px #000);
}
.px-select-avatar.photo {
  position: relative;
}
.px-select-avatar.photo .px-select-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.px-select-avatar.photo img:not(.px-select-photo) {
  position: absolute;
  right: -6px;
  bottom: -6px;
  width: 40%;
  height: auto;
}
.px-select-avatar.photo span {
  display: none;
}
