/* /people/{slug}/ — practitioner profile.
 *
 * Deliberately thin and theme-agnostic. It sets LAYOUT ONLY (column width,
 * rhythm, rows, chips) and inherits every colour, font and heading style from
 * the active theme. No palette, no font-family, no reset beyond box-sizing.
 *
 * A theme that wants a different look should either override these classes or
 * ship `dp-people/profile.php` and style its own markup.
 */

.dp-people-profile *,
.dp-people-profile *::before,
.dp-people-profile *::after {
  box-sizing: border-box;
}

.dpp-shell {
  width: 100%;
  margin-inline: auto;
  padding: 2.5rem 1rem 4rem;
}

/* Header */
.dpp-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.5rem;
}

.dpp-avatar {
  display: block;
  width: 5.5rem;
  height: 5.5rem;
  border-radius: 999px;
  object-fit: cover;
  margin-bottom: 0.5rem;
  background: rgba(127, 127, 127, 0.12);
}

.dpp-name {
  margin: 0;
  line-height: 1.15;
}

.dpp-role,
.dpp-about {
  margin: 0;
  opacity: 0.7;
}

.dpp-about {
  max-width: 54ch;
  opacity: 0.85;
}

.dpp-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.dpp-link {
  display: inline-flex;
  align-items: center;
  padding: 0.35em 0.85em;
  border: 1px solid rgba(127, 127, 127, 0.35);
  border-radius: 999px;
  font-size: 0.9em;
  line-height: 1.4;
  color: inherit;
  text-decoration: none;
  transition: border-color 0.15s ease, opacity 0.15s ease;
}

.dpp-link:hover {
  border-color: currentColor;
}

/* Sections */
.dpp-section {
  padding-top: 2rem;
}

.dpp-section-title {
  margin: 0 0 1.25rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid rgba(127, 127, 127, 0.2);
  font-size: 0.8em;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.85;
}

/* Skills */
.dpp-chips {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.dpp-chip {
  padding: 0.35em 0.85em;
  border: 1px solid rgba(127, 127, 127, 0.35);
  border-radius: 999px;
  background: rgba(127, 127, 127, 0.05);
  font-size: 0.9em;
  line-height: 1.4;
}

/* Experience / Projects / Education rows */
.dpp-rows {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.dpp-row {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  line-height: 1.6;
}

.dpp-row-period {
  flex: none;
  opacity: 0.6;
}

.dpp-row-body {
  min-width: 0;
}

.dpp-row-title {
  margin: 0;
  font-size: 1em;
  font-weight: 600;
}

.dpp-row-meta {
  display: block;
  margin-top: 0.15em;
  opacity: 0.55;
}

.dpp-row-desc {
  margin: 0.25rem 0 0;
  opacity: 0.8;
}

.dpp-sep {
  font-weight: 400;
  opacity: 0.5;
}

/* Office */
.dpp-office {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.dpp-office-city {
  margin: 0;
  font-weight: 600;
}

.dpp-office-address {
  margin: 0;
  opacity: 0.8;
}

.dpp-hours {
  margin: 0.5rem 0 0;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  font-size: 0.95em;
}

.dpp-hours-row {
  display: flex;
  gap: 1.25rem;
  opacity: 0.8;
}

.dpp-hours-row dt {
  flex: none;
  min-width: 7em;
}

.dpp-hours-row dd {
  margin: 0;
  font-variant-numeric: tabular-nums;
}

.dpp-map {
  margin-top: 0.5rem;
  border: 1px solid rgba(127, 127, 127, 0.25);
  border-radius: 0.75rem;
  overflow: hidden;
}

.dpp-map iframe {
  display: block;
}

.dpp-branches {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.dpp-branch {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.dpp-branch-name {
  font-weight: 600;
}

.dpp-branch-line {
  opacity: 0.8;
}

/* Articles */
.dpp-articles {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}

.dpp-article {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 1rem 0;
  border-top: 1px solid rgba(127, 127, 127, 0.16);
}

.dpp-article:first-child {
  border-top: 0;
  padding-top: 0;
}

.dpp-article-title {
  font-size: 1.05em;
  line-height: 1.5;
  color: inherit;
  text-decoration: none;
}

.dpp-article-title:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.dpp-article-date {
  font-size: 0.85em;
  opacity: 0.55;
  font-variant-numeric: tabular-nums;
}

.dpp-pagination {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(127, 127, 127, 0.16);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.dpp-page-count {
  font-size: 0.85em;
  opacity: 0.55;
}

.dpp-page-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.dpp-page-link {
  display: inline-flex;
  align-items: center;
  padding: 0.5em 1em;
  border: 1px solid rgba(127, 127, 127, 0.4);
  border-radius: 999px;
  font-size: 0.9em;
  color: inherit;
  text-decoration: none;
  transition: border-color 0.15s ease;
}

.dpp-page-link:hover {
  border-color: currentColor;
}

.dpp-empty {
  opacity: 0.6;
}

/* Two-column rows from the medium breakpoint up. */
@media (min-width: 600px) {
  .dpp-row {
    flex-direction: row;
    gap: 2rem;
  }

  .dpp-row-period {
    width: 8.5em;
  }
}
