
/* ═══════════════════════════════════════════════════════════
   CWP Experts — teaser cards + hybrid detail (panel / inline)
   ═══════════════════════════════════════════════════════════ */

/* Jenny cutout branded portraits (square, dark card) */
.expert-photo.expert-photo--cutout {
  aspect-ratio: 1 / 1;
  background: linear-gradient(160deg, #12060c 0%, #1e0810 45%, #2a1020 100%);
}
.expert-photo.expert-photo--cutout img {
  object-fit: contain;
  object-position: center bottom;
}
.expert-photo.expert-photo--cutout .expert-pillar-tag {
  display: none;
}

.expert-detail-photo.expert-detail-photo--cutout {
  background: linear-gradient(160deg, #12060c 0%, #1e0810 45%, #2a1020 100%);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  aspect-ratio: 1 / 1;
  max-height: 260px;
  overflow: hidden;
}
.expert-detail-photo.expert-detail-photo--cutout img {
  object-fit: contain;
  object-position: center bottom;
  width: 100%;
  height: 100%;
  max-height: 100%;
}

.expert-card--teaser .expert-body {
  padding: 1rem 1.15rem 1.15rem;
}
.expert-card--teaser .expert-body h3 {
  margin-bottom: 0.35rem;
  font-size: 1.05rem;
  line-height: 1.25;
}
.expert-positioning {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 0.35rem;
  line-height: 1.35;
}
.expert-tagline {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 500;
  font-style: italic;
  line-height: 1.45;
  color: var(--text-on-light);
  margin: 0 0 0.5rem;
}
.expert-city-line {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--accent-mid);
  margin: 0 0 0.5rem;
}
.expert-pillar-row,
.expert-coaching-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: 0 0 0.45rem;
}
.expert-pillar-pill {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
  background: var(--bg2);
  border: 1px solid var(--light1);
}
.expert-pillar-pill.nu { border-color: var(--gold); color: #8a6a12; }
.expert-pillar-pill.mo { border-color: var(--accent-mid); color: var(--accent); }
.expert-pillar-pill.me { border-color: var(--sage); color: #3d6b52; }
.expert-pillar-pill--more { opacity: 0.7; }
.expert-coaching-pill {
  font-size: 9px;
  font-weight: 600;
  padding: 0.2rem 0.45rem;
  border-radius: 999px;
  background: rgba(30, 8, 15, 0.06);
  color: var(--text-on-light);
}
.expert-cred-line {
  font-size: 11px;
  line-height: 1.4;
  color: var(--text-on-light-muted);
  margin: 0 0 0.35rem;
}
.expert-deploy-line {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 0.35rem;
}
.network-compact {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin: 0 0 1.25rem;
  padding: 0.85rem 1rem;
  background: var(--bg2);
  border-radius: var(--rl);
  border: 1px solid var(--light1);
}
.network-compact-stack {
  display: flex;
  align-items: center;
}
.network-compact-stack .nc-av {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid #fff;
  margin-left: -10px;
  box-shadow: var(--sh);
  background: var(--light1);
}
.network-compact-stack .nc-av:first-child { margin-left: 0; }
.network-compact-stack .nc-av img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.network-compact-stack .nc-av--more {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 700;
  color: var(--accent);
  background: #fff;
}
.network-compact-copy {
  font-size: 13px;
  line-height: 1.45;
  color: var(--text-on-light);
  margin: 0;
  flex: 1;
  min-width: 200px;
}
.live-roster-count span:first-child {
  display: inline-block;
  min-width: 1.5ch;
  transition: transform 0.2s ease;
}
.expert-grid.is-filtering .live-roster-count span:first-child {
  transform: scale(1.08);
}
.expert-card--teaser .expert-meta,
.expert-card--teaser .expert-spec,
.expert-card--teaser .expert-bio,
.expert-card--teaser .expert-footer,
.expert-card--teaser .expert-fit {
  display: none;
}

.expert-highlight {
  display: none;
}

.expert-detail-positioning {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 0.35rem;
}
.expert-detail-tagline {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 500;
  font-style: italic;
  line-height: 1.4;
  color: var(--text-on-light);
  margin: 0 0 0.75rem;
  max-width: 36em;
}
.expert-detail-quote {
  margin: 0 0 1.15rem;
  padding: 1rem 1.1rem 1rem 1.15rem;
  border: none;
  border-left: 3px solid var(--accent);
  border-radius: 0 10px 10px 0;
  background: linear-gradient(90deg, rgba(203, 65, 107, 0.07) 0%, rgba(203, 65, 107, 0.02) 100%);
}
.expert-detail-quote p {
  margin: 0;
  font-family: var(--font-display);
  font-size: 15px;
  font-style: italic;
  line-height: 1.55;
  color: var(--text-on-light);
}
.expert-detail-prose .expert-detail-bio {
  margin: 0 0 0.85rem;
  line-height: 1.65;
}
.expert-detail-prose .expert-detail-bio:last-child {
  margin-bottom: 0;
}
.expert-detail-intro {
  font-size: 14px;
  line-height: 1.65;
  color: var(--text-on-light);
  margin: 0 0 1rem;
  max-width: 44em;
}
.expert-detail-meta {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-on-light-soft);
  margin: 0 0 1rem;
  line-height: 1.45;
}
.expert-detail-meta .expert-detail-meta-city {
  color: var(--accent-mid);
}
.expert-method-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.65rem;
}
.expert-method-card {
  position: relative;
  padding: 0.85rem 0.95rem 0.9rem 2.75rem;
  border-radius: 10px;
  background: linear-gradient(135deg, #fdf8fa 0%, #fff 100%);
  border: 1px solid rgba(203, 65, 107, 0.12);
}
.expert-method-card h4 {
  margin: 0 0 0.35rem;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--text-on-light);
}
.expert-method-card p {
  margin: 0;
  font-size: 12px;
  line-height: 1.6;
  color: var(--text-on-light-soft);
}
.expert-method-num {
  position: absolute;
  top: 0.75rem;
  left: 0.85rem;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--accent);
  opacity: 0.85;
}
.expert-ref-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.expert-ref-list li {
  font-size: 11px;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: 100px;
  background: var(--bg2);
  color: var(--text-on-light-soft);
  border: 1px solid var(--light1);
}
.expert-detail-cta {
  margin-top: 1.35rem;
  padding: 1rem 1.1rem;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(30, 8, 15, 0.04) 0%, rgba(203, 65, 107, 0.06) 100%);
  border: 1px solid rgba(203, 65, 107, 0.15);
}
.expert-detail-cta p {
  margin: 0 0 0.5rem;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-on-light-muted);
}
.expert-detail-cta-btn {
  display: inline-flex;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid rgba(203, 65, 107, 0.35);
}
.expert-detail-cta-btn:hover {
  color: var(--accent-mid);
  border-bottom-color: var(--accent-mid);
}
.expert-detail-head-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}
.expert-detail-brand {
  flex: 1;
  min-width: 0;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.expert-detail-pillar--head {
  position: static;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 100px;
  background: var(--bg2);
  color: var(--text-on-light-soft);
  border: 1px solid var(--light1);
  white-space: nowrap;
}
.expert-detail-pillar--head.expert-detail-pillar--nu {
  border-left: 3px solid var(--gold);
}
.expert-detail-pillar--head.expert-detail-pillar--mo {
  border-left: 3px solid var(--accent-mid);
}
.expert-detail-pillar--head.expert-detail-pillar--me {
  border-left: 3px solid var(--sage);
}

.expert-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 0.85rem;
}
.expert-chip {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.03em;
  padding: 4px 9px;
  border-radius: 100px;
  background: var(--bg2);
  color: var(--text-on-light);
  border: 1px solid var(--light1);
}

.expert-detail-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  width: 100%;
  justify-content: center;
  margin-top: 0.15rem;
  padding: 0.55rem 1rem;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--accent);
  background: transparent;
  border: 1px solid rgba(203, 65, 107, 0.35);
  border-radius: 100px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.expert-detail-btn:hover {
  background: rgba(203, 65, 107, 0.08);
  border-color: var(--accent);
}

.expert-card.is-expanded {
  box-shadow: var(--sh-lg);
}
.expert-card.is-active:not(.is-expanded) {
  outline: 2px solid rgba(203, 65, 107, 0.35);
  outline-offset: 2px;
}

.expert-detail-inline {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--bg2);
  animation: panelIn 0.25s var(--ease-cwp, ease) both;
}
.expert-detail-inline .expert-detail-bio {
  font-size: 13px;
  line-height: 1.65;
  color: var(--text-on-light);
  margin: 0;
}
.expert-detail-block {
  margin-bottom: 1rem;
}
.expert-detail-block:last-of-type {
  margin-bottom: 0.75rem;
}
.expert-detail-label {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-on-light-muted);
  margin: 0 0 0.45rem;
}
.expert-chip-row--detail {
  margin-bottom: 0;
}
.expert-detail-creds {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-on-light-soft);
  margin: 0 0 0.5rem;
}
.expert-detail-deploy {
  font-size: 12px;
  color: var(--text-on-light-soft);
  margin: 0.5rem 0 0;
}
.expert-detail-deploy strong {
  color: var(--accent);
  font-weight: 600;
}

@media (min-width: 768px) {
  .expert-detail-inline {
    display: none !important;
  }
  .expert-card--teaser .expert-detail-btn {
    width: auto;
  }
}

/* Desktop overlay panel */
.expert-detail-panel {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
}
.expert-detail-panel[hidden] {
  display: none;
}
.expert-detail-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(30, 8, 15, 0.55);
  backdrop-filter: blur(4px);
}
.expert-detail-sheet {
  position: relative;
  width: min(960px, 100%);
  max-height: min(90vh, 820px);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  animation: panelIn 0.3s var(--ease-cwp, ease) both;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 24px 80px rgba(30, 8, 15, 0.22);
}
.expert-detail-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 1.25rem;
  border-bottom: 1px solid var(--bg2);
  background: linear-gradient(180deg, #fff 0%, #fdf8fa 100%);
  position: sticky;
  top: 0;
  z-index: 2;
}
.expert-detail-close {
  border: none;
  background: transparent;
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
  color: var(--text-on-light-soft);
  padding: 0.25rem 0.5rem;
  border-radius: 6px;
}
.expert-detail-close:hover {
  background: rgba(0, 0, 0, 0.06);
  color: var(--accent);
}
.expert-detail-layout {
  display: grid;
  grid-template-columns: minmax(200px, 280px) 1fr;
  gap: 0;
  flex: 1;
  min-height: 0;
  align-items: stretch;
}
.expert-detail-aside {
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  align-self: start;
  max-height: calc(min(90vh, 820px) - 3.25rem);
  background: linear-gradient(180deg, #1e0810 0%, #2a1020 14%, #fdf8fa 48%, #fff 100%);
  border-right: 1px solid var(--bg2);
}
.expert-detail-aside .expert-detail-photo {
  flex-shrink: 0;
  align-self: stretch;
}
.expert-detail-rail {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 0.85rem 1rem 1.1rem;
  gap: 0.75rem;
  min-height: 0;
}
.expert-rail-stats {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.45rem;
}
.expert-rail-stat {
  padding: 0.55rem 0.65rem;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(203, 65, 107, 0.1);
  border-left: 3px solid var(--accent-mid);
  box-shadow: 0 2px 8px rgba(30, 8, 15, 0.04);
}
.expert-detail-aside--nu .expert-rail-stat {
  border-left-color: var(--gold);
}
.expert-detail-aside--me .expert-rail-stat {
  border-left-color: var(--sage);
}
.expert-rail-stat--metric .expert-rail-stat-value {
  display: block;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  line-height: 1.2;
  color: var(--accent);
  margin-bottom: 0.15rem;
}
.expert-rail-stat-label {
  display: block;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.03em;
  line-height: 1.35;
  color: var(--text-on-light-soft);
}
.expert-rail-stat:not(.expert-rail-stat--metric) .expert-rail-stat-label {
  font-size: 11px;
  color: var(--text-on-light);
}
.expert-rail-deploy {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  padding: 0.7rem 0.75rem;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(203, 65, 107, 0.1) 0%, rgba(203, 65, 107, 0.04) 100%);
  border: 1px solid rgba(203, 65, 107, 0.18);
}
.expert-rail-deploy-icon {
  font-size: 1.35rem;
  line-height: 1;
  flex-shrink: 0;
}
.expert-rail-deploy-text {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
}
.expert-rail-deploy-label {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
}
.expert-rail-deploy-value {
  font-size: 12px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--text-on-light);
}
.expert-rail-langs {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.expert-rail-langs-label {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-on-light-muted);
}
.expert-rail-lang-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}
.expert-rail-lang {
  font-size: 10px;
  font-weight: 700;
  font-family: ui-monospace, monospace;
  letter-spacing: 0.06em;
  padding: 3px 8px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--light1);
  color: var(--text-on-light-soft);
}
.expert-rail-timeline-wrap {
  margin-top: 0.15rem;
}
.expert-rail-timeline-label {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-on-light-muted);
  margin: 0 0 0.5rem;
}
.expert-rail-timeline {
  margin: 0;
  padding: 0 0 0 0.85rem;
  list-style: none;
  border-left: 2px solid rgba(203, 65, 107, 0.22);
}
.expert-detail-aside--nu .expert-rail-timeline {
  border-left-color: rgba(184, 115, 51, 0.35);
}
.expert-detail-aside--me .expert-rail-timeline {
  border-left-color: rgba(90, 130, 100, 0.35);
}
.expert-rail-timeline-item {
  position: relative;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--text-on-light-soft);
  padding: 0 0 0.65rem 0.65rem;
}
.expert-rail-timeline-item:last-child {
  padding-bottom: 0;
}
.expert-rail-timeline-item::before {
  content: '';
  position: absolute;
  left: -1.15rem;
  top: 0.35rem;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 2px rgba(203, 65, 107, 0.15);
}
.expert-detail-aside--nu .expert-rail-timeline-item::before {
  background: var(--gold);
  box-shadow: 0 0 0 2px rgba(184, 115, 51, 0.15);
}
.expert-detail-aside--me .expert-rail-timeline-item::before {
  background: var(--sage);
  box-shadow: 0 0 0 2px rgba(90, 130, 100, 0.15);
}
.expert-rail-foot {
  margin-top: auto;
  padding-top: 0.75rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  text-align: center;
}
.expert-rail-foot-icon {
  font-size: 2rem;
  line-height: 1;
  opacity: 0.15;
  filter: grayscale(0.2);
}
.expert-rail-foot-pillar {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-mid);
}
.expert-rail-foot-brand {
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-on-light-muted);
  opacity: 0.75;
}
.expert-detail-photo {
  background: linear-gradient(145deg, var(--bg2), var(--light1));
  aspect-ratio: 1 / 1;
  max-height: 260px;
  width: 100%;
  overflow: hidden;
  align-self: start;
}
.expert-detail-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}
.expert-detail-placeholder {
  aspect-ratio: 1 / 1;
  max-height: 260px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.expert-detail-placeholder span {
  font-family: var(--font-display);
  font-size: 3rem;
  color: var(--accent);
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.75);
  border: 2px solid #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--sh);
}
.expert-detail-body {
  padding: 1.35rem 1.75rem 1.85rem;
  overflow-y: auto;
  min-height: 0;
  max-height: 100%;
}
.expert-detail-body h2 {
  font-family: var(--font-display);
  font-size: 1.65rem;
  font-weight: 500;
  margin: 0 0 0.25rem;
  line-height: 1.15;
}
.expert-detail-city {
  font-size: 12px;
  font-weight: 600;
  color: var(--accent-mid);
  margin: 0 0 1rem;
}
.expert-detail-body .expert-detail-bio {
  font-size: 14px;
  line-height: 1.72;
  color: var(--text-on-light-soft);
  margin: 0;
  max-width: 44em;
}
.expert-detail-body .expert-badge {
  margin-top: 1.25rem;
  display: inline-block;
}
body.expert-detail-open {
  overflow: hidden;
}

@media (min-width: 768px) {
  .expert-method-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 767px) {
  .expert-detail-panel {
    display: none !important;
  }
  .expert-detail-body {
    overflow-y: visible;
    max-height: none;
  }
}

/* Loading skeleton */
.expert-grid.is-loading {
  pointer-events: none;
}
.expert-card--skeleton .expert-photo,
.skeleton-shimmer {
  background: linear-gradient(90deg, var(--bg2) 25%, var(--light1) 50%, var(--bg2) 75%);
  background-size: 200% 100%;
  animation: expertShimmer 1.2s ease infinite;
}
.skeleton-line {
  height: 12px;
  border-radius: 4px;
  margin-bottom: 0.5rem;
  background: linear-gradient(90deg, var(--bg2) 25%, var(--light1) 50%, var(--bg2) 75%);
  background-size: 200% 100%;
  animation: expertShimmer 1.2s ease infinite;
}
.skeleton-line.w80 { width: 80%; }
.skeleton-line.w50 { width: 50%; }
.skeleton-line.w100 { width: 100%; }
@keyframes expertShimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
.expert-load-error {
  grid-column: 1 / -1;
  text-align: center;
  padding: 2rem;
  color: var(--text-on-light-soft);
}
