/* ==========================================================================
   Hoofprint Staff – Public Stylesheet
   Uses Jannah's CSS variables: --brand-color, --dark-brand-color,
   --bright-color, --base-color
   ========================================================================== */

/* ==========================================================================
   Profile Hero
   ========================================================================== */

.hpstaff-profile-hero {
	background: #3b0764;
	background: linear-gradient(135deg, #3b0764 0%, #7c3aed 55%, #a78bfa 100%);
	margin: -30px -30px 40px;
	padding: 44px 40px 48px;
	position: relative;
	overflow: hidden;
}

/* Decorative angled stripe */
.hpstaff-profile-hero::before {
	content: '';
	position: absolute;
	top: -40%;
	right: -5%;
	width: 35%;
	height: 200%;
	background: rgba(255,255,255,.05);
	transform: rotate(12deg);
	pointer-events: none;
}

.hpstaff-profile-hero-layout {
	display: flex;
	gap: 40px;
	align-items: flex-start;
	position: relative;
	z-index: 1;
	max-width: 900px;
}

/* ---- Photo column ---- */
.hpstaff-profile-photo-col {
	flex-shrink: 0;
}

.hpstaff-profile-photo {
	width: 200px;
	aspect-ratio: 3 / 4;
	border-radius: 10px;
	overflow: hidden;
	box-shadow: 0 8px 32px rgba(0,0,0,.35);
	border: 3px solid rgba(255,255,255,.3);
	background: rgba(255,255,255,.1);
}

.hpstaff-profile-photo img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: top center;
	display: block;
}

.hpstaff-profile-photo--empty {
	display: flex;
	align-items: center;
	justify-content: center;
}

.hpstaff-profile-photo--empty .dashicons {
	font-size: 72px;
	width: 72px;
	height: 72px;
	color: rgba(255,255,255,.3);
}

/* ---- Info column ---- */
.hpstaff-profile-info-col {
	flex: 1;
	min-width: 0;
	padding-top: 6px;
}

.hpstaff-profile-kicker {
	font-size: .72em;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .2em;
	color: rgba(255,255,255,.65);
	margin: 0 0 10px;
}

.hpstaff-profile-name {
	font-size: 2.6em;
	font-weight: 900;
	line-height: 1.1;
	color: #fff;
	margin: 0 0 10px;
	letter-spacing: -.01em;
}

.hpstaff-profile-role {
	font-size: 1.2em;
	font-weight: 600;
	color: rgba(255,255,255,.9);
	margin: 0 0 6px;
}

.hpstaff-profile-gradyear {
	font-size: 1em;
	color: rgba(255,255,255,.7);
	margin: 0 0 16px;
}

/* Social links — white style inside hero */
.hpstaff-socials {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0 0 18px;
}

.hpstaff-social-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	background: rgba(255,255,255,.18);
	border: 1px solid rgba(255,255,255,.35);
	color: #fff;
	border-radius: 6px;
	font-size: 14px;
	text-decoration: none;
	transition: background .2s, border-color .2s;
}

.hpstaff-social-link:hover {
	background: rgba(255,255,255,.32);
	border-color: rgba(255,255,255,.7);
	color: #fff;
}

/* Bio inside hero */
.hpstaff-profile-bio {
	font-size: 1.05em;
	line-height: 1.8;
	color: rgba(255,255,255,.88);
	margin: 0 0 22px;
	max-width: 600px;
}

.hpstaff-profile-bio p {
	margin: 0 0 .75em;
}

.hpstaff-profile-bio p:last-child {
	margin-bottom: 0;
}

/* Owner action buttons — white/outline style */
.hpstaff-owner-actions {
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
}

.hpstaff-hero-btn {
	display: inline-block;
	padding: 9px 20px;
	background: #fff;
	color: var(--brand-color, #0669ff);
	border-radius: 5px;
	font-size: .88em;
	font-weight: 700;
	text-decoration: none;
	transition: background .2s, color .2s;
}

.hpstaff-hero-btn:hover {
	background: rgba(255,255,255,.88);
	color: #6d28d9;
}

.hpstaff-hero-btn--outline {
	background: transparent;
	border: 2px solid rgba(255,255,255,.6);
	color: #fff;
}

.hpstaff-hero-btn--outline:hover {
	background: rgba(255,255,255,.12);
	border-color: #fff;
	color: #fff;
}

/* ---- Sections ---- */
.hpstaff-section {
	margin-bottom: 48px;
}

.hpstaff-section-heading {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 1.4em;
	border-bottom: 3px solid var(--brand-color, #0669ff);
	padding-bottom: 8px;
	margin-bottom: 24px;
}

.hpstaff-section-count {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: var(--brand-color, #0669ff);
	color: #fff;
	font-size: .5em;
	font-weight: 700;
	min-width: 26px;
	height: 26px;
	padding: 0 7px;
	border-radius: 13px;
	letter-spacing: 0;
}

/* ---- Pagination ---- */
.hpstaff-pagination {
	margin-top: 36px;
	padding-top: 28px;
	border-top: 2px solid rgba(0,0,0,.07);
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 16px;
}

.hpstaff-pagination-label {
	font-size: .85em;
	color: #888;
	font-weight: 500;
	text-transform: uppercase;
	letter-spacing: .06em;
}

.hpstaff-pagination .page-numbers {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 6px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.hpstaff-pagination .page-numbers li {
	list-style: none;
	margin: 0;
	padding: 0;
}

.hpstaff-pagination .page-numbers a,
.hpstaff-pagination .page-numbers span {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 46px;
	height: 46px;
	padding: 0 18px;
	border-radius: 6px;
	font-size: 1em;
	font-weight: 700;
	text-decoration: none;
	border: 2px solid #e0e0e0;
	color: var(--base-color, #2c2f34);
	background: #fff;
	transition: background .18s, border-color .18s, color .18s, transform .15s;
}

.hpstaff-pagination .page-numbers a:hover {
	background: var(--brand-color, #0669ff);
	border-color: var(--brand-color, #0669ff);
	color: #fff;
	transform: translateY(-2px);
}

.hpstaff-pagination .page-numbers .current {
	background: var(--brand-color, #0669ff);
	border-color: var(--brand-color, #0669ff);
	color: #fff;
}

.hpstaff-pagination .page-numbers .prev,
.hpstaff-pagination .page-numbers .next {
	padding: 0 22px;
	font-size: .92em;
	background: #f5f5f5;
	border-color: #ddd;
}

/* ---- Pins Grid ---- */
.hpstaff-pins-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
	gap: 16px;
}

.hpstaff-pin-card {
	background: #f9f9f9;
	border: 1px solid #eee;
	border-radius: 4px;
	overflow: hidden;
	transition: box-shadow .2s;
}

.hpstaff-pin-card:hover {
	box-shadow: 0 2px 10px rgba(0,0,0,.1);
}

.hpstaff-pin-thumb img {
	width: 100%;
	height: 140px;
	object-fit: cover;
	display: block;
}

.hpstaff-pin-info {
	padding: 10px 12px;
}

.hpstaff-pin-type {
	font-size: .75em;
	text-transform: uppercase;
	letter-spacing: .05em;
	color: var(--brand-color, #0669ff);
	font-weight: 600;
	display: block;
	margin-bottom: 4px;
}

.hpstaff-pin-title {
	margin: 0;
	font-size: .95em;
	line-height: 1.4;
}

.hpstaff-pin-title a {
	text-decoration: none;
	color: var(--base-color, #2c2f34);
}

.hpstaff-pin-title a:hover {
	color: var(--brand-color, #0669ff);
}

/* ---- Stories grid ---- */
.hpstaff-stories-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
	gap: 20px;
}

.hpstaff-story-card {
	border-radius: 8px;
	overflow: hidden;
	background: #fff;
	box-shadow: 0 2px 8px rgba(0,0,0,.08), 0 0 0 1px rgba(0,0,0,.05);
	transition: transform .22s ease, box-shadow .22s ease;
	position: relative;
}

.hpstaff-story-card::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 3px;
	background: var(--brand-color, #0669ff);
	transform: scaleX(0);
	transform-origin: left;
	transition: transform .3s ease;
	z-index: 2;
}

.hpstaff-story-card:hover {
	transform: translateY(-5px);
	box-shadow: 0 14px 36px rgba(0,0,0,.14), 0 0 0 1px rgba(0,0,0,.05);
}

.hpstaff-story-card:hover::before {
	transform: scaleX(1);
}

.hpstaff-story-card-link {
	display: block;
	text-decoration: none;
	color: inherit;
}

.hpstaff-story-card-thumb {
	overflow: hidden;
	aspect-ratio: 16 / 9;
	background: #e8e9eb;
}

.hpstaff-story-no-thumb {
	background: linear-gradient(135deg, #e8e9eb 0%, #d0d2d6 100%);
}

.hpstaff-story-card-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform .45s ease;
}

.hpstaff-story-card:hover .hpstaff-story-card-thumb img {
	transform: scale(1.05);
}

.hpstaff-story-card-body {
	padding: 14px 16px 16px;
}

.hpstaff-story-date {
	font-size: .8em;
	color: #666;
	margin: 0 0 8px;
	font-weight: 600;
}

.hpstaff-story-title {
	font-size: 1.1em;
	font-weight: 700;
	margin: 0 0 8px;
	line-height: 1.3;
	color: var(--base-color, #2c2f34);
	transition: color .2s ease;
}

.hpstaff-story-card:hover .hpstaff-story-title {
	color: var(--brand-color, #0669ff);
}

.hpstaff-story-excerpt {
	font-size: .85em;
	color: #666;
	line-height: 1.55;
	margin: 0;
}

.hpstaff-story-excerpt p {
	margin: 0;
}

/* ---- Photo gallery ---- */

.hpstaff-hidden-notice {
	font-size: .85em;
	color: #888;
	margin: -8px 0 14px;
}

.hpstaff-photo-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
	gap: 16px;
}

.hpstaff-photo-item {
	position: relative;
	border-radius: 8px;
	overflow: hidden;
	background: #fff;
	box-shadow: 0 2px 8px rgba(0,0,0,.08), 0 0 0 1px rgba(0,0,0,.05);
	transition: transform .22s ease, box-shadow .22s ease;
	display: flex;
	flex-direction: column;
}

.hpstaff-photo-item:hover {
	transform: translateY(-4px);
	box-shadow: 0 10px 28px rgba(0,0,0,.14), 0 0 0 1px rgba(0,0,0,.05);
}

.hpstaff-photo-item a.hpstaff-photo-lightbox {
	display: block;
	overflow: hidden;
	flex-shrink: 0;
}

.hpstaff-photo-item img {
	width: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	display: block;
	transition: transform .4s ease;
}

.hpstaff-photo-item:hover img {
	transform: scale(1.05);
}

/* Story headline below photo */
.hpstaff-photo-story-link {
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
	overflow: hidden;
	padding: 9px 11px 10px;
	font-size: .78em;
	font-weight: 600;
	line-height: 1.4;
	color: #333;
	text-decoration: none;
	border-top: 1px solid rgba(0,0,0,.06);
	transition: color .18s ease;
	flex: 1;
}

.hpstaff-photo-story-link:hover {
	color: #7c3aed;
}

/* Hide button — top-right corner, only visible on hover */
.hpstaff-hide-photo {
	position: absolute;
	top: 4px;
	right: 4px;
	width: 22px;
	height: 22px;
	padding: 0;
	line-height: 20px;
	text-align: center;
	background: rgba(0,0,0,.55);
	color: #fff;
	border: none;
	border-radius: 50%;
	cursor: pointer;
	font-size: 14px;
	opacity: 0;
	transition: opacity .15s;
	z-index: 2;
}

.hpstaff-photo-item:hover .hpstaff-hide-photo {
	opacity: 1;
}

.hpstaff-hide-photo:hover {
	background: rgba(200,0,0,.75);
}

/* Fade-out animation when a photo is hidden */
.hpstaff-photo-hiding {
	transition: opacity .35s, transform .35s;
	opacity: 0 !important;
	transform: scale(.9);
}

/* Hidden photos list (my-pins.php) */
.hpstaff-hidden-section {
	border-top: 2px dashed #ddd;
	padding-top: 20px;
}

.hpstaff-hidden-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.hpstaff-hidden-item {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 8px 0;
	border-bottom: 1px solid #f0f0f0;
}

/* ---- Staff directory ---- */
.hpstaff-directory-tabs {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin-bottom: 24px;
}

.hpstaff-tab-btn {
	padding: 7px 16px;
	border: 1px solid #ddd;
	background: #f5f5f5;
	border-radius: 3px;
	cursor: pointer;
	font-size: .9em;
	text-decoration: none;
	color: var(--base-color, #2c2f34);
	transition: background .15s, color .15s, border-color .15s;
	display: inline-block;
}

.hpstaff-tab-btn.is-active,
.hpstaff-tab-btn:hover {
	background: var(--brand-color, #0669ff);
	color: #fff;
	border-color: var(--brand-color, #0669ff);
}

.hpstaff-role-group {
	margin-bottom: 32px;
}

.hpstaff-role-heading {
	font-size: 1.1em;
	color: #555;
	text-transform: uppercase;
	letter-spacing: .06em;
	border-bottom: 1px solid #eee;
	padding-bottom: 6px;
	margin-bottom: 16px;
}

.hpstaff-staff-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
	gap: 16px;
}

.hpstaff-staff-card {
	text-align: center;
}

.hpstaff-card-link {
	text-decoration: none;
	color: inherit;
	display: block;
}

.hpstaff-card-thumb img {
	width: 100%;
	aspect-ratio: 1;
	object-fit: cover;
	border-radius: 4px;
	display: block;
}

.hpstaff-card-no-photo {
	aspect-ratio: 1;
	background: #f0f0f0;
	border-radius: 4px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.hpstaff-card-no-photo .dashicons {
	font-size: 48px;
	width: 48px;
	height: 48px;
	color: #ccc;
}

.hpstaff-card-info {
	padding: 8px 4px 4px;
}

.hpstaff-card-name {
	font-size: .95em;
	margin: 0 0 2px;
	line-height: 1.3;
}

.hpstaff-card-role {
	font-size: .78em;
	color: var(--brand-color, #0669ff);
	margin: 0 0 2px;
}

.hpstaff-card-year {
	font-size: .78em;
	color: #888;
	margin: 0;
}

.hpstaff-no-results {
	color: #888;
	font-style: italic;
}

/* ---- My Profile form ---- */
.hpstaff-my-profile-wrap {
	max-width: 720px;
}

.hpstaff-form-section {
	margin-bottom: 30px;
	padding-bottom: 24px;
	border-bottom: 1px solid rgba(0,0,0,.06);
}

.hpstaff-form-section h3 {
	font-size: 1.1em;
	margin-bottom: 16px;
}

.hpstaff-field {
	margin-bottom: 14px;
}

.hpstaff-field label {
	display: block;
	font-weight: 600;
	margin-bottom: 4px;
	font-size: .9em;
}

.hpstaff-field input[type="text"],
.hpstaff-field input[type="url"],
.hpstaff-field input[type="number"],
.hpstaff-field select,
.hpstaff-field textarea {
	width: 100%;
	padding: 8px 12px;
	border: 1px solid #ddd;
	border-radius: 3px;
	font-size: .95em;
	background: #fff;
}

.hpstaff-field textarea {
	resize: vertical;
	min-height: 100px;
}

.hpstaff-field-inline input {
	max-width: 420px;
}

.hpstaff-year-row {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px;
	padding: 8px 0;
	border-bottom: 1px solid #f0f0f0;
}

.hpstaff-year-check {
	min-width: 140px;
	font-weight: 600;
	cursor: pointer;
}

.hpstaff-year-role-wrap label {
	font-size: .85em;
	color: #888;
	margin-right: 6px;
}

.hpstaff-view-profile-link {
	margin-bottom: 20px;
}

/* ---- Messages ---- */
.hpstaff-messages {
	margin-bottom: 16px;
}

.hpstaff-msg {
	padding: 10px 16px;
	border-radius: 3px;
	margin-bottom: 8px;
	font-size: .95em;
}

.hpstaff-msg-success {
	background: #edfaed;
	border: 1px solid #6ac96a;
	color: #2d6a2d;
}

.hpstaff-msg-error {
	background: #fff3f3;
	border: 1px solid #e07070;
	color: #7a2020;
}

/* ---- Pin manager ---- */
.hpstaff-pin-manager {
	max-width: 760px;
}

.hpstaff-pm-section {
	margin-bottom: 30px;
	padding-bottom: 24px;
	border-bottom: 1px solid rgba(0,0,0,.06);
}

.hpstaff-pm-section h3 {
	font-size: 1.05em;
	margin-bottom: 12px;
}

.hpstaff-pins-sortable-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.hpstaff-sortable-item {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 10px 12px;
	background: #f9f9f9;
	border: 1px solid #eee;
	border-radius: 3px;
	margin-bottom: 6px;
	cursor: default;
}

.hpstaff-sortable-item.ui-sortable-helper {
	box-shadow: 0 4px 12px rgba(0,0,0,.15);
	opacity: .95;
}

.hpstaff-drag-handle {
	cursor: move;
	color: #aaa;
	font-size: 18px;
	flex-shrink: 0;
}

.hpstaff-drag-handle:hover {
	color: #666;
}

.hpstaff-pin-thumb-sm {
	border-radius: 2px;
	object-fit: cover;
	flex-shrink: 0;
}

.hpstaff-pin-badge {
	font-size: .72em;
	text-transform: uppercase;
	background: var(--brand-color, #0669ff);
	color: #fff;
	padding: 2px 6px;
	border-radius: 2px;
	white-space: nowrap;
	flex-shrink: 0;
}

.hpstaff-pin-label {
	flex: 1;
	font-size: .9em;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.hpstaff-remove-pin {
	color: #c00;
	background: none;
	border: none;
	cursor: pointer;
	padding: 2px;
	flex-shrink: 0;
}

.hpstaff-remove-pin:hover {
	color: #900;
}

.hpstaff-search-box {
	position: relative;
}

.hpstaff-search-box input {
	width: 100%;
	padding: 8px 12px;
	border: 1px solid #ddd;
	border-radius: 3px;
	font-size: .95em;
}

.hpstaff-search-results {
	position: absolute;
	top: 100%;
	left: 0;
	right: 0;
	background: #fff;
	border: 1px solid #ddd;
	border-top: none;
	border-radius: 0 0 4px 4px;
	z-index: 100;
	max-height: 280px;
	overflow-y: auto;
	box-shadow: 0 4px 12px rgba(0,0,0,.1);
}

.hpstaff-result-item {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 8px 12px;
	cursor: pointer;
	border-bottom: 1px solid #f0f0f0;
}

.hpstaff-result-item:last-child {
	border-bottom: none;
}

.hpstaff-result-item:hover {
	background: #f5f9ff;
}

.hpstaff-result-thumb {
	width: 40px;
	height: 30px;
	object-fit: cover;
	border-radius: 2px;
	flex-shrink: 0;
}

.hpstaff-result-info strong {
	display: block;
	font-size: .9em;
}

.hpstaff-result-info span {
	font-size: .78em;
	color: #888;
}

.hpstaff-link-form .hpstaff-field {
	margin-bottom: 10px;
}

.hpstaff-link-form input {
	max-width: 400px;
}

.hpstaff-pin-count-status {
	font-size: .9em;
	color: #666;
	margin-bottom: 16px;
}

.hpstaff-pins-full-notice {
	padding: 12px 16px;
	background: #fff8e6;
	border: 1px solid #e6c96a;
	border-radius: 3px;
	font-size: .9em;
}

/* =========================================================================
   Staff Masthead — card-grid design ([hpstaff_masthead])
   ========================================================================= */
.hpstaff-masthead {
	margin: 0 auto;
	padding: 0 0 64px;
}

/* ---- Hero banner ---- */
.hpstaff-masthead-hero {
	background: #3b0764;
	background: linear-gradient(135deg, #3b0764 0%, #7c3aed 55%, #a78bfa 100%);
	color: #fff;
	padding: 56px 32px 52px;
	text-align: center;
	margin: -30px -30px 48px;
	position: relative;
	overflow: hidden;
}

.hpstaff-masthead-hero::before {
	content: '';
	position: absolute;
	top: -60%;
	left: -10%;
	width: 50%;
	height: 200%;
	background: rgba(255,255,255,.04);
	transform: rotate(-15deg);
	pointer-events: none;
}

.hpstaff-masthead-hero::after {
	content: '';
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	height: 3px;
	background: rgba(255,255,255,.25);
}

.hpstaff-masthead-hero-inner {
	position: relative;
	z-index: 1;
	max-width: 640px;
	margin: 0 auto;
}

.hpstaff-masthead-hero-kicker {
	font-size: .72em;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .22em;
	color: rgba(255,255,255,.75);
	margin: 0 0 10px;
}

.hpstaff-masthead-hero-title {
	font-size: 3em;
	font-weight: 900;
	margin: 0 0 14px;
	line-height: 1.1;
	color: #fff;
	letter-spacing: -.01em;
}

.hpstaff-masthead-hero-count {
	font-size: .92em;
	color: rgba(255,255,255,.7);
	margin: 0;
	letter-spacing: .04em;
}

/* Role-group section */
.hpstaff-masthead-group {
	margin-bottom: 48px;
}

/* Section divider heading — centered text with decorative lines */
.hpstaff-masthead-heading {
	display: flex;
	align-items: center;
	gap: 14px;
	font-size: .72em;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .18em;
	color: var(--brand-color, #0669ff);
	margin: 0 0 20px;
	white-space: nowrap;
}

.hpstaff-masthead-heading::before,
.hpstaff-masthead-heading::after {
	content: '';
	flex: 1;
	height: 1px;
	background: var(--brand-color, #0669ff);
	opacity: .25;
}

/* Card grid */
.hpstaff-masthead-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(148px, 1fr));
	gap: 16px;
}


/* Individual card */
.hpstaff-masthead-card {
	border-radius: 8px;
	overflow: hidden;
	background: #fff;
	box-shadow: 0 2px 8px rgba(0,0,0,.08), 0 0 0 1px rgba(0,0,0,.05);
	transition: transform .22s ease, box-shadow .22s ease;
	position: relative;
}

/* Accent bar slides down from top on hover */
.hpstaff-masthead-card::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 3px;
	background: var(--brand-color, #0669ff);
	transform: scaleX(0);
	transform-origin: left;
	transition: transform .3s ease;
	z-index: 2;
}

.hpstaff-masthead-card:hover {
	transform: translateY(-6px);
	box-shadow: 0 16px 40px rgba(0,0,0,.15), 0 0 0 1px rgba(0,0,0,.05);
}

.hpstaff-masthead-card:hover::before {
	transform: scaleX(1);
}

/* Remove default link styling */
.hpstaff-masthead-card-link {
	display: block;
	text-decoration: none;
	color: inherit;
}

/* Photo container — portrait */
.hpstaff-masthead-photo {
	position: relative;
	aspect-ratio: 3 / 4;
	overflow: hidden;
	background: #e8e9eb;
	display: flex;
	align-items: center;
	justify-content: center;
}

/* Shine sweep on hover */
.hpstaff-masthead-photo::after {
	content: '';
	position: absolute;
	top: 0;
	left: -80%;
	width: 60%;
	height: 100%;
	background: linear-gradient(
		to right,
		transparent 0%,
		rgba(255,255,255,.22) 50%,
		transparent 100%
	);
	transform: skewX(-15deg);
	transition: left .55s ease;
	pointer-events: none;
	z-index: 1;
}

.hpstaff-masthead-card:hover .hpstaff-masthead-photo::after {
	left: 130%;
}

/* Actual photo */
.hpstaff-masthead-photo img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: top center;
	display: block;
	transition: transform .5s ease;
}

.hpstaff-masthead-card:hover .hpstaff-masthead-photo img {
	transform: scale(1.06);
}

/* No-photo placeholder */
.hpstaff-masthead-no-photo {
	background: linear-gradient(155deg, #e8e9eb 0%, #d0d2d6 100%);
}

.hpstaff-masthead-no-photo-icon {
	font-size: 52px;
	width: 52px;
	height: 52px;
	color: #bbb;
}

/* Info — sits below the photo */
.hpstaff-masthead-info {
	padding: 10px 12px 12px;
	border-top: 1px solid rgba(0,0,0,.06);
	transition: background .22s ease;
}

.hpstaff-masthead-card:hover .hpstaff-masthead-info {
	background: #fafbff;
}

/* Name */
.hpstaff-masthead-name {
	font-size: .88em;
	font-weight: 700;
	margin: 0 0 3px;
	line-height: 1.3;
	color: var(--base-color, #2c2f34);
	transition: color .2s ease;
}

.hpstaff-masthead-card:hover .hpstaff-masthead-name {
	color: var(--brand-color, #0669ff);
}

/* Role */
.hpstaff-masthead-role {
	font-size: .75em;
	color: #888;
	margin: 0;
	line-height: 1.3;
	font-weight: 500;
}

/* Previous years footer */
.hpstaff-masthead-footer {
	text-align: center;
	padding: 36px 0 0;
	border-top: 1px solid rgba(0,0,0,.08);
	margin-top: 12px;
}

/* ---- Responsive ---- */
@media (max-width: 900px) {
	.hpstaff-masthead-hero-title {
		font-size: 2.2em;
	}
}

@media (max-width: 700px) {
	.hpstaff-profile-hero {
		margin: -20px -15px 32px;
		padding: 32px 20px 36px;
	}

	.hpstaff-profile-hero-layout {
		flex-direction: column;
		gap: 24px;
	}

	.hpstaff-profile-photo {
		width: 140px;
	}

	.hpstaff-profile-name {
		font-size: 1.9em;
	}
}

@media (max-width: 600px) {
	.hpstaff-pins-grid,
	.hpstaff-stories-grid {
		grid-template-columns: 1fr 1fr;
	}

	.hpstaff-staff-grid {
		grid-template-columns: repeat(3, 1fr);
	}

	.hpstaff-photo-grid {
		grid-template-columns: repeat(3, 1fr);
	}

	.hpstaff-masthead-grid,
	.hpstaff-masthead-group--featured .hpstaff-masthead-grid {
		grid-template-columns: repeat(3, 1fr);
	}

	.hpstaff-masthead-hero {
		margin-left: -15px;
		margin-right: -15px;
		padding: 36px 20px 32px;
	}

	.hpstaff-masthead-hero-title {
		font-size: 1.8em;
	}

	.hpstaff-year-row {
		flex-direction: column;
		align-items: flex-start;
	}
}
