/* ---------- Counsellors hero ---------- */
.counsellors-hero {
  padding: 9rem 0 2rem;
}

.counsellors-hero h1 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2.2rem, 5.2vw, 3.8rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-top: 0.7rem;
}

.counsellors-hero .lede {
  color: var(--ink-soft);
  max-width: 56ch;
  margin-top: 1.2rem;
  font-size: clamp(1rem, 1.4vw, 1.15rem);
}

.counsellors-hero .lede a {
  color: var(--slate);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ---------- Counsellor rows ---------- */
.counsellors-list {
  list-style: none;
  border-top: 1px solid color-mix(in srgb, var(--slate) 14%, transparent);
}

.counsellor-row {
  border-bottom: 1px solid color-mix(in srgb, var(--slate) 14%, transparent);
}

.counsellor-accordion summary {
  list-style: none;
  cursor: pointer;
}

.counsellor-accordion summary::-webkit-details-marker {
  display: none;
}

.counsellor-summary {
  display: flex;
  align-items: center;
  gap: 1.4rem;
  padding-block: 1.8rem;
}

.counsellor-photo {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
  border: 3px solid var(--sage);
  background: var(--sage);
  flex-shrink: 0;
}

.summary-text {
  flex: 1;
  min-width: 0;
}

.summary-text h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.25rem;
  letter-spacing: -0.01em;
}

.summary-text .designation {
  font-size: 0.85rem;
  color: var(--ink-soft);
  margin-top: 0.1rem;
}

.summary-text .intro {
  color: var(--ink-soft);
  margin-top: 0.4rem;
  max-width: 60ch;
}

.status-line {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.82rem;
  color: var(--ink-soft);
  margin-top: 0.4rem;
}

.row-cta {
  flex-shrink: 0;
  padding: 0.6rem 1.3rem;
  font-size: 0.88rem;
}

.row-cta.is-disabled {
  opacity: 0.55;
  cursor: not-allowed;
  pointer-events: none;
}

.chevron {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  position: relative;
}

.chevron::before,
.chevron::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  background: var(--slate);
  transition: transform 0.25s ease;
}

.chevron::before {
  width: 14px;
  height: 2px;
  transform: translate(-50%, -50%);
}

.chevron::after {
  width: 2px;
  height: 14px;
  transform: translate(-50%, -50%);
}

.counsellor-accordion[open] .chevron::after {
  transform: translate(-50%, -50%) rotate(90deg);
  opacity: 0;
}

.counsellor-detail {
  display: flex;
  gap: 1.8rem;
  padding: 0 0 2.2rem;
  max-width: 56rem;
}

.detail-photo {
  width: 300px;
  height: 300px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
  border: 4px solid var(--sage);
  background: var(--sage);
  box-shadow: 0 8px 24px color-mix(in srgb, var(--slate) 18%, transparent);
  flex-shrink: 0;
}

.detail-body {
  flex: 1;
  min-width: 0;
}

.counsellor-detail .bio {
  color: var(--ink);
  font-size: clamp(1.05rem, 1.35vw, 1.18rem);
  line-height: 1.7;
  max-width: 54ch;
  text-align: justify;
  hyphens: auto;
}

/* Stacked, not a 2-column grid: a counsellor's specialty list can run to
   30+ tags, and splitting the row in half only made that narrower — full
   width gives the wrap room to breathe instead of running tall. */
.detail-grid {
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
  margin-top: 1.6rem;
}

.detail-label {
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 0.6rem;
}

.tag-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tag-list li {
  font-size: 0.85rem;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  background: var(--sage);
  border: 1px solid color-mix(in srgb, var(--slate) 16%, transparent);
  color: var(--slate);
}

.tag-list-quiet li {
  font-size: 0.72rem;
  padding: 0.2rem 0.65rem;
  font-weight: 400;
  color: var(--ink-soft);
  background: transparent;
  border-color: color-mix(in srgb, var(--slate) 12%, transparent);
}

.counsellor-detail .meta {
  margin-top: 1.4rem;
  font-size: 0.9rem;
  color: var(--ink-soft);
}

.tag-list-more {
  margin-top: 0.6rem;
}

.tag-list-more summary {
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--slate);
  text-decoration: underline;
  text-underline-offset: 3px;
  list-style: none;
}

.tag-list-more summary::-webkit-details-marker {
  display: none;
}

.tag-list-more .tag-list {
  margin-top: 0.6rem;
}

.detail-cta {
  display: none;
}

@media (max-width: 720px) {
  .counsellor-summary {
    position: relative;
    flex-direction: column;
    gap: 0.9rem;
    padding-right: 2.6rem; /* room for the chevron, pinned to the corner */
  }

  /* Left default align-items (stretch) so .summary-text still fills the
     row's width; only .row-cta opts out to size to its own content. */

  .chevron {
    position: absolute;
    top: 1.9rem;
    right: 0;
  }

  .row-cta {
    align-self: center;
  }

  /* Once expanded, the summary's CTA gives way to .detail-cta below the
     revealed content instead of staying pinned in the header row. */
  .counsellor-accordion[open] .counsellor-summary .row-cta {
    display: none;
  }

  .counsellor-detail {
    flex-direction: column;
  }

  .detail-photo {
    width: 250px;
    height: 250px;
    align-self: center;
  }

  .detail-cta {
    display: flex;
    align-self: center;
    margin-top: 0.6rem;
  }
}

/* The native <details>/<summary> toggle (click or spacebar/Enter while
   focused) shouldn't leave the whole row wrapped in the site-wide teal
   focus-visible outline — it reads as a stuck highlight once expanded. */
.counsellor-accordion summary:focus-visible {
  outline: none;
}
