/* SPDX-License-Identifier: GPL-3.0-only
 * Publisher Pro 0.1.0.85: coordinated author-demographics presentation.
 * Only scoped theme styles; independent plugin settings/data stay intact.
 */

/* Compact paired symbols replace the typographic dot between gender values. */
.epp-journal .epp-home .epp-recent-issues .epp-issue-card .epp-issue-gender {
  gap:12px;
  flex-wrap:nowrap;
  min-width:0;
}
.epp-journal .epp-home .epp-recent-issues .epp-issue-card .epp-issue-gender-item {
  display:inline-flex;
  align-items:center;
  flex:0 0 auto;
  min-width:0;
  gap:3px;
  white-space:nowrap;
  line-height:1.25;
  font-variant-numeric:tabular-nums;
}
.epp-journal .epp-home .epp-recent-issues .epp-issue-card .epp-issue-gender-item > .epp-icon {
  display:block;
  flex:0 0 15px;
  width:15px;
  height:15px;
  color:var(--epp-icon-neutral,#526276);
}
.epp-journal .epp-home .epp-recent-issues .epp-issue-card .epp-issue-gender-label {
  max-width:70px;
  overflow:hidden;
  text-overflow:ellipsis;
}
.epp-journal .epp-home .epp-recent-issues .epp-issue-card .epp-issue-gender-value {
  font-size:12px;
  font-weight:600;
  color:var(--epp-ink,#203349);
}

/* The independent Author Demographics sidebar retains its public values,
 * but inherits the Publisher Pro compact grid treatment for gender counts.
 * Country bars and metadata totals are intentionally unchanged. */
.epp-journal :is(.epp-home-native-sidebar,.epp-article-native-sidebar)
  > .pkp_block.block_elkuator_author_demographics
  .ead-stat-section:has(> h3) > .ead-stat-list:not(:has(.ead-country-row)) {
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:6px;
  padding:0;
  margin:8px 0 12px;
  list-style:none;
}
.epp-journal :is(.epp-home-native-sidebar,.epp-article-native-sidebar)
  > .pkp_block.block_elkuator_author_demographics
  .ead-stat-section:has(> h3) > .ead-stat-list:not(:has(.ead-country-row)) li {
  display:flex;
  align-items:center;
  gap:4px;
  min-width:0;
  margin:0;
  padding:7px 6px;
  box-sizing:border-box;
  border:1px solid var(--epp-neutral-border,#dce0e3);
  background:#f9fbfc;
  font-size:11px;
  line-height:1.35;
}
.epp-journal :is(.epp-home-native-sidebar,.epp-article-native-sidebar)
  > .pkp_block.block_elkuator_author_demographics
  .ead-stat-section:has(> h3) > .ead-stat-list:not(:has(.ead-country-row)) li > span {
  display:inline-flex;
  align-items:center;
  min-width:0;
  gap:3px;
}
.epp-journal :is(.epp-home-native-sidebar,.epp-article-native-sidebar)
  > .pkp_block.block_elkuator_author_demographics
  .ead-stat-section:has(> h3) > .ead-stat-list:not(:has(.ead-country-row)) li > strong {
  margin-left:auto;
  padding-left:2px;
  font-variant-numeric:tabular-nums;
  color:var(--epp-ink,#203349);
}
.epp-journal :is(.epp-home-native-sidebar,.epp-article-native-sidebar)
  > .pkp_block.block_elkuator_author_demographics
  .ead-stat-section:has(> h3) > .ead-stat-list:not(:has(.ead-country-row)) li > span::before {
  display:inline-block;
  content:"";
  flex:0 0 14px;
  width:14px;
  height:14px;
  background:var(--epp-icon-neutral,#526276);
}
.epp-journal :is(.epp-home-native-sidebar,.epp-article-native-sidebar)
  > .pkp_block.block_elkuator_author_demographics
  .ead-stat-section:has(> h3) > .ead-stat-list:not(:has(.ead-country-row)) li:first-child > span::before {
  -webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Ccircle cx='9.5' cy='14.5' r='6'/%3E%3Cpath d='M14 10 21 3m-6 0h6v6'/%3E%3C/svg%3E") center/contain no-repeat;
  mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Ccircle cx='9.5' cy='14.5' r='6'/%3E%3Cpath d='M14 10 21 3m-6 0h6v6'/%3E%3C/svg%3E") center/contain no-repeat;
}
.epp-journal :is(.epp-home-native-sidebar,.epp-article-native-sidebar)
  > .pkp_block.block_elkuator_author_demographics
  .ead-stat-section:has(> h3) > .ead-stat-list:not(:has(.ead-country-row)) li:nth-child(2) > span::before {
  -webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Ccircle cx='12' cy='8.5' r='6'/%3E%3Cpath d='M12 14.5V22m-4-4h8'/%3E%3C/svg%3E") center/contain no-repeat;
  mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Ccircle cx='12' cy='8.5' r='6'/%3E%3Cpath d='M12 14.5V22m-4-4h8'/%3E%3C/svg%3E") center/contain no-repeat;
}
@media (max-width:440px) {
  .epp-journal .epp-home .epp-recent-issues .epp-issue-card .epp-issue-gender {
    gap:8px;
  }
}
