/* ============================================================
 * Jack London State Historic Park — Team / Staff styles
 *
 * Namespace: .whjl-team-* on the listing page, .whjl-member-* on singles.
 * Palette pulled from existing site:
 *   sand     #dbc1ac
 *   gold     #ffdb6e
 *   sky      #92c5d9
 *   ink      #252523
 *   cream    #faf6ed
 *   paper    #ffffff
 * Type: Gentium Book Basic (serif) for display, Muli (sans) for body.
 * ============================================================ */

/* ---------- Shared tokens ---------- */
.whjl-team,
.whjl-member {
	--whjl-sand: #dbc1ac;
	--whjl-gold: #ffdb6e;
	--whjl-sky:  #92c5d9;
	--whjl-ink:  #252523;
	--whjl-mute: #6f6c66;
	--whjl-cream:#faf6ed;
	--whjl-paper:#ffffff;
	--whjl-rule: #efe6d4;

	color: var(--whjl-ink);
	font-family: 'Muli', sans-serif;
}

/* ============================================================
 * Team listing (/our-team/)
 * ============================================================ */
.whjl-team {
	padding: 40px 0 80px;
}

/* Page intro */
.whjl-team-intro {
	max-width: 740px;
	margin: 0 auto 60px;
	text-align: center;
}
.whjl-team-intro h1 {
	font-family: 'Gentium Book Basic', Georgia, serif;
	font-size: 44px;
	line-height: 1.1;
	color: var(--whjl-ink);
	margin: 0 0 18px;
	font-weight: normal;
}
.whjl-team-intro p {
	font-size: 17px;
	line-height: 1.65;
	color: #4a4a47;
	margin: 0 0 14px;
}
.whjl-team-intro p:last-child { margin-bottom: 0; }

/* Departments — book-chapter style */
.whjl-team-dept {
	margin: 0 0 80px;
}
.whjl-team-dept:last-child { margin-bottom: 0; }

.whjl-team-dept-header {
	text-align: center;
	margin: 0 auto 36px;
	max-width: 720px;
}
.whjl-team-dept-image {
	max-width: 220px;
	margin: 0 auto 18px;
	overflow: hidden;
	border: 1px solid var(--whjl-rule);
}
.whjl-team-dept-image img {
	display: block;
	width: 100%;
	height: auto;
}
.whjl-team-dept-name {
	font-family: 'Gentium Book Basic', Georgia, serif;
	font-size: 32px;
	line-height: 1.15;
	color: var(--whjl-ink);
	margin: 0;
	font-weight: normal;
}
.whjl-team-dept-rule {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 14px;
	margin: 16px auto 18px;
	max-width: 220px;
}
.whjl-team-dept-rule::before,
.whjl-team-dept-rule::after {
	content: "";
	flex: 1;
	height: 1px;
	background: var(--whjl-gold);
}
.whjl-team-dept-rule-dot {
	width: 7px;
	height: 7px;
	border: 1px solid var(--whjl-gold);
	transform: rotate(45deg);
	background: transparent;
}
.whjl-team-dept-intro {
	font-size: 15px;
	line-height: 1.65;
	color: #4a4a47;
	margin: 0 auto;
	max-width: 640px;
}
.whjl-team-dept-intro p { margin: 0 0 0.8em; }
.whjl-team-dept-intro p:last-child { margin-bottom: 0; }

/* Card grid — flex so orphan rows center (per card-grid-centering pattern) */
.whjl-team-grid {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 28px 24px;
	margin: 0;
	padding: 0;
	list-style: none;
}

/* Card */
.whjl-team-card {
	flex: 0 0 auto;
	width: calc((100% - 24px * 3) / 4); /* 4 across desktop */
	max-width: 260px;
	background: var(--whjl-paper);
	border: 1px solid var(--whjl-rule);
	transition: transform 280ms ease, box-shadow 280ms ease, border-color 280ms ease;
	position: relative;
}
.whjl-team-card-link {
	display: block;
	color: inherit;
	text-decoration: none;
}
.whjl-team-card-link:hover,
.whjl-team-card-link:focus,
.whjl-team-card-link:active,
.whjl-team-card-link:visited {
	color: inherit;
	text-decoration: none;
}

/* Photo */
.whjl-team-card-photo {
	display: block;
	position: relative;
	width: 100%;
	aspect-ratio: 3 / 4;
	overflow: hidden;
	background: var(--whjl-cream);
}
.whjl-team-card-photo img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 600ms ease;
}
.whjl-team-card-photo-placeholder {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	font-family: 'Gentium Book Basic', Georgia, serif;
	font-size: 56px;
	color: var(--whjl-sand);
	background: var(--whjl-cream);
	font-weight: normal;
}

/* Body */
.whjl-team-card-body {
	padding: 18px 16px 22px;
	text-align: center;
	position: relative;
}
.whjl-team-card-body::before {
	content: "";
	display: block;
	width: 36px;
	height: 1px;
	background: var(--whjl-gold);
	margin: 0 auto 14px;
	transition: width 280ms ease;
}
.whjl-team-card-name {
	font-family: 'Gentium Book Basic', Georgia, serif;
	font-size: 20px;
	line-height: 1.2;
	color: var(--whjl-ink);
	margin: 0 0 4px;
	font-weight: normal;
}
.whjl-team-card-jobtitle {
	font-size: 11px;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--whjl-mute);
	margin: 0;
}

/* "Bio & Contact ›" affordance — same family as the name, italic, gold underline */
.whjl-team-card-cta {
	display: inline-flex;
	align-items: baseline;
	gap: 6px;
	margin-top: 12px;
	font-family: 'Gentium Book Basic', Georgia, serif;
	font-style: italic;
	font-size: 14px;
	color: var(--whjl-ink);
}
.whjl-team-card-cta-label {
	border-bottom: 1px solid var(--whjl-gold);
	padding-bottom: 1px;
	transition: border-bottom-color 280ms ease;
}
.whjl-team-card-cta-arrow {
	display: inline-block;
	font-style: normal;
	transition: transform 280ms ease;
}

/* Hover */
.whjl-team-card:hover,
.whjl-team-card:focus-within {
	transform: translateY(-4px);
	box-shadow: 0 14px 30px -18px rgba(37, 37, 35, 0.35);
	border-color: var(--whjl-gold);
}
.whjl-team-card:hover .whjl-team-card-photo img,
.whjl-team-card:focus-within .whjl-team-card-photo img {
	transform: scale(1.04);
}
.whjl-team-card:hover .whjl-team-card-body::before,
.whjl-team-card:focus-within .whjl-team-card-body::before {
	width: 64px;
}
.whjl-team-card:hover .whjl-team-card-cta-label,
.whjl-team-card:focus-within .whjl-team-card-cta-label {
	border-bottom-color: var(--whjl-ink);
}
.whjl-team-card:hover .whjl-team-card-cta-arrow,
.whjl-team-card:focus-within .whjl-team-card-cta-arrow {
	transform: translateX(3px);
}

/* ---------- Scroll reveal ---------- */
.whjl-reveal {
	opacity: 0;
	transform: translateY(20px);
	transition: opacity 700ms ease, transform 700ms ease;
	will-change: opacity, transform;
}
.whjl-reveal.is-visible {
	opacity: 1;
	transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
	.whjl-reveal { opacity: 1; transform: none; transition: none; }
	.whjl-team-card,
	.whjl-team-card-photo img,
	.whjl-team-card-cta-label,
	.whjl-team-card-cta-arrow { transition: none; }
}

/* Responsive */
@media (max-width: 1024px) {
	.whjl-team-card { width: calc((100% - 24px * 2) / 3); } /* 3 across */
}
@media (max-width: 720px) {
	.whjl-team-card { width: calc((100% - 24px) / 2); }      /* 2 across */
	.whjl-team-intro h1 { font-size: 34px; }
	.whjl-team-dept-name { font-size: 26px; }
	.whjl-team-dept { margin-bottom: 56px; }
}
@media (max-width: 460px) {
	.whjl-team-card { width: 100%; max-width: 320px; }       /* 1 across */
}

/* ============================================================
 * Single team member (/team/{slug}/)
 * ============================================================ */
.whjl-member {
	padding: 40px 0 80px;
}
.whjl-member-back {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: 12px;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	color: var(--whjl-mute);
	text-decoration: none;
	margin-bottom: 30px;
	transition: color 200ms ease;
}
.whjl-member-back:hover,
.whjl-member-back:focus { color: var(--whjl-ink); text-decoration: none; }
.whjl-member-back::before {
	content: "";
	width: 22px;
	height: 1px;
	background: currentColor;
	display: inline-block;
}

/* Editorial split */
.whjl-member-grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
	gap: 60px;
	align-items: start;
}

/* Photo column with offset gold "poster" accent */
.whjl-member-photo-wrap {
	position: relative;
	padding: 0 14px 14px 0;
}
.whjl-member-photo-wrap::before {
	content: "";
	position: absolute;
	left: 14px;
	right: 0;
	top: 14px;
	bottom: 0;
	border: 1px solid var(--whjl-gold);
	z-index: 0;
}
.whjl-member-photo {
	position: relative;
	z-index: 1;
	display: block;
	width: 100%;
	aspect-ratio: 4 / 5;
	overflow: hidden;
	background: var(--whjl-cream);
}
.whjl-member-photo img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.whjl-member-photo-placeholder {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	font-family: 'Gentium Book Basic', Georgia, serif;
	font-size: 110px;
	color: var(--whjl-sand);
}

/* Content column */
.whjl-member-dept-chip {
	display: inline-block;
	padding: 5px 12px;
	background: var(--whjl-cream);
	border: 1px solid var(--whjl-rule);
	font-size: 11px;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	color: var(--whjl-ink);
	text-decoration: none;
	margin-bottom: 18px;
	transition: background 200ms ease, border-color 200ms ease;
}
.whjl-member-dept-chip:hover,
.whjl-member-dept-chip:focus {
	background: var(--whjl-gold);
	border-color: var(--whjl-gold);
	text-decoration: none;
	color: var(--whjl-ink);
}
.whjl-member-name {
	font-family: 'Gentium Book Basic', Georgia, serif;
	font-size: 48px;
	line-height: 1.05;
	margin: 0 0 12px;
	font-weight: normal;
	color: var(--whjl-ink);
}
.whjl-member-jobtitle {
	font-size: 13px;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	color: var(--whjl-mute);
	margin: 0 0 6px;
}
.whjl-member-credentials {
	font-style: italic;
	font-size: 15px;
	color: var(--whjl-mute);
	margin: 0 0 24px;
}

.whjl-member-rule {
	display: block;
	width: 100%;
	height: 1px;
	background: var(--whjl-gold);
	margin: 24px 0;
	border: 0;
}

.whjl-member-bio {
	font-size: 17px;
	line-height: 1.7;
	color: #3a3a37;
}
.whjl-member-bio p { margin: 0 0 1.1em; }
.whjl-member-bio p:last-child { margin-bottom: 0; }
.whjl-member-bio a { color: var(--whjl-ink); text-decoration: underline; }
.whjl-member-bio a:hover { color: var(--whjl-mute); }

.whjl-member-contactbar {
	margin-top: 28px;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 18px;
}
.whjl-member-meta-label {
	display: inline-block;
	font-size: 11px;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	color: var(--whjl-mute);
	margin-right: 10px;
	vertical-align: 2px;
}
.whjl-member-phone {
	margin: 0;
	font-size: 16px;
	line-height: 1.4;
	color: var(--whjl-ink);
}
.whjl-member-phone-link {
	color: var(--whjl-ink);
	text-decoration: none;
	border-bottom: 1px solid var(--whjl-gold);
	padding-bottom: 1px;
	transition: border-color 200ms ease, color 200ms ease;
}
a.whjl-member-phone-link:hover,
a.whjl-member-phone-link:focus {
	color: var(--whjl-ink);
	text-decoration: none;
	border-bottom-color: var(--whjl-ink);
}
.whjl-member-contact {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 12px 26px;
	border: 1px solid var(--whjl-gold);
	background: transparent;
	color: var(--whjl-ink);
	font-size: 12px;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	text-decoration: none;
	line-height: 1;
	transition: background 200ms ease, color 200ms ease;
}
.whjl-member-contact-icon {
	display: block;
	flex-shrink: 0;
}
.whjl-member-contact:hover,
.whjl-member-contact:focus,
.whjl-member-contact:active,
.whjl-member-contact:visited {
	text-decoration: none;
}
.whjl-member-contact:hover,
.whjl-member-contact:focus {
	background: var(--whjl-gold);
	color: var(--whjl-ink);
}

/* Single page entry — subtle fade-in once */
.whjl-member-enter {
	opacity: 0;
	transform: translateY(12px);
	animation: whjlMemberIn 700ms ease 80ms forwards;
}
@keyframes whjlMemberIn {
	to { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
	.whjl-member-enter { animation: none; opacity: 1; transform: none; }
}

@media (max-width: 820px) {
	.whjl-member-grid {
		grid-template-columns: 1fr;
		gap: 32px;
	}
	.whjl-member-photo-wrap { max-width: 460px; margin: 0 auto; }
	.whjl-member-name { font-size: 38px; }
}
@media (max-width: 560px) {
	.whjl-member { padding: 20px 0 56px; }
	.whjl-member-back { margin-bottom: 20px; }
	.whjl-member-grid { gap: 22px; }
	.whjl-member-photo-wrap { max-width: 200px; }
	.whjl-member-name { font-size: 30px; }
	.whjl-member-credentials { margin: 0 0 16px; }
	.whjl-member-rule { margin: 18px 0; }
	.whjl-member-bio { font-size: 16px; line-height: 1.6; }
	.whjl-member-contactbar { margin-top: 20px; }
}
