/* Shared section metrics, profile image, and colour-contrast fixes. */

.section-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1.2rem;
  margin: 1.6rem 0 2.2rem;
  padding: 1.1rem 0;
  border-top: 1px solid #e3e7e9;
  border-bottom: 1px solid #e3e7e9;
}

.section-stat {
  min-width: 0;
  text-align: left;
}

.section-stat__value {
  display: block;
  margin-bottom: 0.25rem;
  color: #26343d !important;
  font-size: clamp(1.75rem, 3vw, 2.35rem);
  font-weight: 700;
  line-height: 1;
}

.section-stat__label {
  display: block;
  color: #59656c !important;
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.3;
}

/* Remove the black, low-contrast conference counters left by older styles. */
.conference-summary {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)) !important;
  gap: 1.2rem !important;
  margin: 1.6rem 0 2.2rem !important;
  padding: 1.1rem 0 !important;
  border-top: 1px solid #e3e7e9 !important;
  border-bottom: 1px solid #e3e7e9 !important;
}

.conference-summary > div {
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  text-align: left !important;
}

.conference-summary strong {
  display: block !important;
  margin-bottom: 0.25rem !important;
  color: #26343d !important;
  background: transparent !important;
  font-size: clamp(1.75rem, 3vw, 2.35rem) !important;
  font-weight: 700 !important;
  line-height: 1 !important;
}

.conference-summary span {
  display: block !important;
  margin: 0 !important;
  color: #59656c !important;
  background: transparent !important;
  font-size: 0.88rem !important;
  font-weight: 600 !important;
  line-height: 1.3 !important;
}

/* Larger, clean profile photograph: circular crop, no frame or visual effect. */
.author__avatar img,
.sidebar .author__avatar img,
.sidebar.sticky .author__avatar img {
  width: 205px !important;
  height: 205px !important;
  max-width: 205px !important;
  object-fit: cover !important;
  border: 0 !important;
  border-radius: 50% !important;
  outline: 0 !important;
  box-shadow: none !important;
  filter: none !important;
  transform: none !important;
}

/* Ensure active navigation and selected text remain readable. */
::selection {
  background: #cfe8f2;
  color: #17242c;
}

::-moz-selection {
  background: #cfe8f2;
  color: #17242c;
}

.greedy-nav .masthead__menu-item.selected,
.greedy-nav .masthead__menu-item.selected > a,
.greedy-nav .visible-links > li > a:active,
.greedy-nav .visible-links > li > a:focus {
  background: transparent !important;
  color: #176f97 !important;
}

.page__content a:focus,
.archive a:focus,
.author__urls a:focus,
button:focus,
input:focus,
select:focus,
textarea:focus {
  outline: 3px solid rgba(23, 111, 151, 0.24) !important;
  outline-offset: 2px;
}

@media (max-width: 1023px) {
  .author__avatar img,
  .sidebar .author__avatar img,
  .sidebar.sticky .author__avatar img,
  .homepage-main .author__avatar img {
    width: 96px !important;
    height: 96px !important;
    max-width: 96px !important;
  }
}

@media (max-width: 600px) {
  .section-stats,
  .conference-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 1rem !important;
  }

  .author__avatar img,
  .sidebar .author__avatar img,
  .sidebar.sticky .author__avatar img,
  .homepage-main .author__avatar img {
    width: 82px !important;
    height: 82px !important;
    max-width: 82px !important;
  }
}
