/* ==========================================================================
   Centerly — People directory, public front-end styles
   --------------------------------------------------------------------------
   An island like events-public.css: every rule is scoped under `.centerly-people`
   so nothing leaks into or out of the theme. Colors are PublicBrand `--c-*`
   tokens with accessible fallbacks, so a theme that defines them restyles the
   directory and a bare theme still renders a legible neutral design. Font sizes
   are in rem (the 3d rule). Contrast of every text-on-ground pair — on the
   fallback palette and under each Stillpoint style — is measured, not assumed.
   ========================================================================== */

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

.c-dirsurface {
	color: var(--c-ink, #1A1C22);
	background: var(--c-bg, #FFFFFF);
	font-family: inherit;
	line-height: 1.6;
}
.c-dir__inner {
	max-width: 1080px;
	margin-inline: auto;
	padding: clamp(1.5rem, 4vw, 3rem) clamp(1rem, 4vw, 2rem);
}

.c-dir__inner :where(a):focus-visible { outline: 2px solid var(--c-primary, #4338CA); outline-offset: 2px; border-radius: 2px; }

.c-sr-only, .c-dir__inner .c-sr-only {
	position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ---------------------------------------------------------------- header - */
.c-dir__head { margin-bottom: clamp(1.25rem, 3vw, 2rem); }
.c-dir__title { font-size: clamp(1.75rem, 4vw, 2.6rem); line-height: 1.1; margin: 0; color: var(--c-ink, #1A1C22); }
.c-dir__lede { font-size: 1.125rem; color: var(--c-ink-secondary, #3B404A); margin: 0.5rem 0 0; max-width: 46rem; }

/* ------------------------------------------------------------- role nav - */
.c-dir__nav {
	display: flex; flex-wrap: wrap; gap: 0.5rem;
	margin-bottom: clamp(1.25rem, 3vw, 2rem);
	border-bottom: 1px solid var(--c-border, #E2E4E9);
	padding-bottom: 0.75rem;
}
.c-dir__navlink {
	font-size: 0.9375rem; font-weight: 600; text-decoration: none;
	color: var(--c-ink-secondary, #3B404A);
	padding: 0.4rem 0.75rem; border-radius: 999px;
}
.c-dir__navlink:hover { color: var(--c-ink, #1A1C22); background: var(--c-surface-2, #F1F2F5); }
.c-dir__navlink.is-active {
	color: var(--c-on-primary, #FFFFFF);
	background: var(--c-primary, #4338CA);
}

/* --------------------------------------------------------------- groups - */
.c-dir__group { margin-bottom: clamp(1.5rem, 4vw, 2.75rem); }
.c-dir__grouphd {
	font-size: 1.25rem; margin: 0 0 1rem; color: var(--c-ink, #1A1C22);
	letter-spacing: -0.01em;
}

/* ----------------------------------------------------------------- grid - */
.c-dir__grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
	gap: clamp(1rem, 2.5vw, 1.5rem);
}
@media (max-width: 400px) { .c-dir__grid { grid-template-columns: 1fr; } }

.c-dir__card {
	display: flex; flex-direction: column;
	text-decoration: none; color: inherit;
	background: var(--c-surface, #FFFFFF);
	border: 1px solid var(--c-border, #E2E4E9);
	border-radius: 14px; overflow: hidden;
	transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}
.c-dir__card:hover {
	transform: translateY(-2px);
	border-color: var(--c-primary, #4338CA);
	box-shadow: 0 6px 20px rgba(0,0,0,0.08);
}
.c-dir__cardmedia { display: block; aspect-ratio: 4 / 5; background: var(--c-surface-2, #F1F2F5); }
.c-dir__cardimg { width: 100%; height: 100%; object-fit: cover; display: block; }
.c-dir__cardimg--none {
	display: flex; align-items: center; justify-content: center;
	font-size: 2rem; font-weight: 700; letter-spacing: 0.02em;
	color: var(--c-ink-muted, #565C68);
}
.c-dir__cardbody { display: block; padding: 0.875rem 1rem 1.125rem; }
.c-dir__cardname { display: block; font-weight: 700; font-size: 1.0625rem; color: var(--c-ink, #1A1C22); }
.c-dir__cardcred { font-weight: 400; color: var(--c-ink-secondary, #3B404A); }
.c-dir__cardtitle { margin: 0.25rem 0 0; font-size: 0.9375rem; color: var(--c-ink-secondary, #3B404A); }
.c-dir__cardopen {
	display: inline-block; margin-top: 0.5rem;
	font-size: 0.8125rem; font-weight: 600;
	color: var(--c-on-primary, #FFFFFF); background: var(--c-primary, #4338CA);
	padding: 0.15rem 0.55rem; border-radius: 999px;
}

/* --------------------------------------------------------------- detail - */
.c-dir__back { margin: 0 0 1.25rem; }
.c-dir__back a { color: var(--c-primary, #4338CA); text-decoration: none; font-weight: 600; }
.c-dir__back a:hover { text-decoration: underline; }

.c-dir__detail {
	display: grid;
	grid-template-columns: minmax(0, 320px) minmax(0, 1fr);
	gap: clamp(1.5rem, 4vw, 3rem);
	align-items: start;
}
@media (max-width: 720px) { .c-dir__detail { grid-template-columns: 1fr; } }
/* No photo: don't strand the content in a 320px column — give it one readable measure. */
.c-dir__detail--solo { grid-template-columns: minmax(0, 46rem); }

.c-dir__dphoto img {
	width: 100%; border-radius: 16px; display: block;
	border: 1px solid var(--c-border, #E2E4E9);
}
.c-dir__dname { font-size: clamp(1.6rem, 3.5vw, 2.25rem); line-height: 1.15; margin: 0; color: var(--c-ink, #1A1C22); }
.c-dir__dcred { font-weight: 400; font-size: 0.55em; color: var(--c-ink-secondary, #3B404A); }
.c-dir__droles { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0.75rem 0 0; }
.c-dir__rolechip {
	font-size: 0.8125rem; font-weight: 600; text-decoration: none;
	color: var(--c-on-primary, #FFFFFF); background: var(--c-primary, #4338CA);
	padding: 0.2rem 0.65rem; border-radius: 999px;
}
.c-dir__rolechip:hover { text-decoration: underline; }
.c-dir__dtitle { margin: 0.75rem 0 0; font-size: 1.125rem; color: var(--c-ink-secondary, #3B404A); }
.c-dir__dopen {
	display: inline-block; margin: 0.75rem 0 0; font-size: 0.875rem; font-weight: 600;
	color: var(--c-ink, #1A1C22);
}
.c-dir__specs { display: flex; flex-wrap: wrap; gap: 0.5rem; list-style: none; margin: 1rem 0 0; padding: 0; }
.c-dir__spec {
	font-size: 0.875rem; color: var(--c-ink-secondary, #3B404A);
	background: var(--c-surface-2, #F1F2F5); border: 1px solid var(--c-border, #E2E4E9);
	padding: 0.2rem 0.6rem; border-radius: 8px;
}
.c-dir__bio { margin-top: 1.25rem; color: var(--c-ink-secondary, #3B404A); font-size: 1.0625rem; }
.c-dir__bio p { margin: 0 0 0.85em; }
.c-dir__dcontact { margin-top: 1.25rem; display: flex; flex-wrap: wrap; gap: 0.75rem 1.5rem; }
.c-dir__contact { color: var(--c-primary, #4338CA); text-decoration: none; font-weight: 600; }
.c-dir__contact:hover { text-decoration: underline; }

/* ---------------------------------------------------------------- states - */
.c-dir__empty { color: var(--c-ink-muted, #565C68); font-size: 1.0625rem; padding: 1.5rem 0; }

/* --------------------------------------------------- profile back-refs - */
.c-dir__backrefs { margin-top: 1.5rem; display: flex; flex-direction: column; gap: 1rem; }
.c-dir__backhd {
	font-size: 0.8125rem; text-transform: uppercase; letter-spacing: 0.08em;
	color: var(--c-ink-muted, #565C68); margin: 0 0 0.35rem;
}
.c-dir__backlist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.25rem; }
.c-dir__backlist li { color: var(--c-ink-secondary, #3B404A); }
.c-dir__backlist a { color: var(--c-primary, #4338CA); text-decoration: none; font-weight: 600; }
.c-dir__backlist a:hover { text-decoration: underline; }
