/* Juror profile — everything scoped under .block-juror-profile.
   The block IS a .billboard so it inherits the ADS section rhythm
   (padding, border-bottom); only the split + chips + links visuals
   are scoped here. */

.block-juror-profile .jp-split {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 64px;
  align-items: start;
}

.block-juror-profile .jp-portrait {
  aspect-ratio: 4 / 5;
  margin: 0;
  background: var(--bg);
  position: relative; overflow: hidden;
}
.block-juror-profile .jp-portrait img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.block-juror-profile .jp-portrait-empty {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  background:
    linear-gradient(135deg, rgba(0,0,0,0.06) 0 1px, transparent 1px 24px),
    var(--bg);
  background-size: 24px 24px, 100% 100%;
  cursor: pointer;
}

.block-juror-profile .jp-body { padding-top: 6px; }
.block-juror-profile .jp-label {
  font-size: 11px; font-weight: 900; text-transform: uppercase; letter-spacing: .14em;
  color: var(--muted); margin: 0 0 10px;
}
.block-juror-profile .jp-h3 {
  font-size: 20px; font-weight: 900; text-transform: uppercase; letter-spacing: -.02em;
  margin: 32px 0 12px;
}

/* Chip rows (Focus, Recognition). .chip vocab from shared/styles.css. */
.block-juror-profile .jp-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.block-juror-profile .jp-chips .chip { display: inline-flex; }
.block-juror-profile .jp-chips .cms-list-item-add {
  /* Editor + Add trigger — override full-width dashed cell to fit inline. */
  width: auto; min-height: 0;
  padding: 6px 10px;
  align-self: center;
}

/* External links */
.block-juror-profile .jp-links {
  display: flex; flex-wrap: wrap; gap: 12px 20px;
  margin: 28px 0 0;
  font-size: 12px; font-weight: 900; text-transform: uppercase; letter-spacing: .09em;
}
.block-juror-profile .jp-links .jp-link { display: inline-flex; }
.block-juror-profile .jp-links a {
  text-decoration: none;
  border-bottom: 1.5px solid var(--ink);
  padding-bottom: 2px;
  color: inherit;
}
.block-juror-profile .jp-links a:hover {
  color: var(--accent); border-bottom-color: var(--accent);
}
.block-juror-profile .jp-links .cms-list-item-add {
  width: auto; min-height: 0;
  padding: 6px 10px;
  align-self: center;
}

/* Edit-mode: give short chip / link items a taller hit box so the
   injected ▲▼× trio fits, and pin the trio visible without hover. */
body.cms-edit .block-juror-profile .jp-chips [data-list-item],
body.cms-edit .block-juror-profile .jp-links [data-list-item] {
  padding: 18px 62px 18px 10px;
  min-height: 44px;
  position: relative;
}
body.cms-edit .block-juror-profile .cms-list-item-remove,
body.cms-edit .block-juror-profile .cms-list-item-move {
  opacity: 1;
  transition-delay: 0s;
}

/* Responsive */
@media (max-width: 900px) {
  .block-juror-profile .jp-split { grid-template-columns: 1fr; gap: 34px; }
}

/* Public: hide Focus / Recognition / external-links containers when their
   list is empty — no dangling headings under populated bios. */
.block-juror-profile .jp-section.jp-empty,
.block-juror-profile .jp-links.jp-empty { display: none; }

/* Edit mode: keep them visible so the author can still add the first item
   via the + Add trigger. Dimmed to signal placeholder state. */
body.cms-edit .block-juror-profile .jp-section.jp-empty { display: block; opacity: .55; }
body.cms-edit .block-juror-profile .jp-links.jp-empty   { display: flex;  opacity: .55; }

/* Placeholder text for a freshly-added, empty chip / link. Shown only
   in edit mode via ::before so it never becomes stored data. The
   chip's contentEditable child stays :empty until the author types. */
body.cms-edit .block-juror-profile .jp-chips .chip [data-field]:empty::before {
  content: attr(data-placeholder);
  opacity: .55; font-style: italic;
}
body.cms-edit .block-juror-profile .jp-links .jp-link a[data-field]:empty::before {
  content: 'New link'; opacity: .55; font-style: italic;
}
/* Give chips + links a visible min-size in edit mode so a brand-new,
   empty one is still a clickable target rather than a grey speck. */
body.cms-edit .block-juror-profile .jp-chips .chip { min-width: 90px; min-height: 30px; }
body.cms-edit .block-juror-profile .jp-links .jp-link a { min-width: 90px; display: inline-block; }
