/* Dosen & Tenaga Kependidikan flip-card directory (partials/v3/people-slider). */
.pv3-slider { position: relative; }
.pv3-track { --pv3-card: 300px; display: flex; gap: 22px; margin: 0; padding: 12px calc(50% - var(--pv3-card) / 2) 28px; list-style: none; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; -webkit-overflow-scrolling: touch; scrollbar-width: none; overscroll-behavior-x: contain; outline-offset: -4px; }
.pv3-track::-webkit-scrollbar { display: none; }
.pv3-card { flex: 0 0 var(--pv3-card); scroll-snap-align: center; display: grid; gap: 6px; align-content: start; transform: scale(.86); opacity: .6; transition: transform .35s var(--v3-ease-out), opacity .35s var(--v3-ease); transform-origin: center top; }
.pv3-card.is-active { transform: none; opacity: 1; }

.pv3-open { all: unset; box-sizing: border-box; display: grid; gap: 6px; align-content: start; width: 100%; cursor: pointer; border-radius: 24px; }
.pv3-open:focus-visible { outline: 3px solid var(--v3-blue); outline-offset: 4px; }
.pv3-photo { display: block; position: relative; aspect-ratio: 4 / 5; background: linear-gradient(135deg, #eaf2fb, #f5f9fd); box-shadow: 0 18px 50px rgba(0,0,0,.12); border-radius: 24px; overflow: hidden; }
.pv3-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center top; user-select: none; -webkit-user-drag: none; }
.pv3-photo--empty { display: grid; place-content: center; justify-items: center; gap: 14px; color: #6e8fb0; border: 1px dashed rgba(0,102,204,.28); box-shadow: none; }
.pv3-photo__label { font-size: 14px; font-weight: 500; color: var(--v3-muted); }

.pv3-name { display: block; margin: 12px 0 0; text-align: center; font-size: 17px; line-height: 1.35; font-weight: 600; letter-spacing: -.01em; color: var(--v3-text); overflow-wrap: anywhere; text-wrap: balance; min-height: 2.7em; }
.pv3-position { display: block; margin: 0; text-align: center; font-size: 14px; line-height: 1.45; color: var(--v3-muted); overflow-wrap: anywhere; text-wrap: balance; min-height: 4.4em; }

.pv3-controls { display: flex; justify-content: center; align-items: center; gap: 20px; }
.pv3-btn { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--v3-line); background: #fff; color: var(--v3-text); cursor: pointer; transition: background-color .15s var(--v3-ease), transform .15s var(--v3-ease); }
.pv3-btn:hover { background: var(--v3-tint-2); }
.pv3-btn:active { transform: scale(.94); }
.pv3-btn:disabled { opacity: .35; cursor: default; }
.pv3-counter { margin: 0; min-width: 72px; text-align: center; font-size: 15px; font-weight: 500; font-variant-numeric: tabular-nums; color: var(--v3-muted); }
@media (max-width: 640px) { .pv3-track { --pv3-card: min(72vw, 280px); gap: 14px; } .pv3-name { font-size: 16px; } }
@media (prefers-reduced-motion: reduce) {
  .pv3-track { scroll-behavior: auto; }
  .pv3-card, .pv3-flip__inner, .pv3-dl { transition: none; }
}
/* Without JS the strip is still a native, swipeable scroller; the front faces stay legible. */
html:not(.v3-js) .pv3-card { transform: none; opacity: 1; }

/* Profile dialog + flip */
.pv3-dialog { width: min(920px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); padding: 0; border: 0; border-radius: 28px; background: #fff; color: var(--v3-text); box-shadow: 0 30px 90px rgba(0,0,0,.28); overflow: hidden; }
.pv3-dialog::backdrop { background: rgba(10,20,40,.55); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.pv3-dialog[open] { animation: pv3-pop .28s var(--v3-ease-out); }
.pv3-dialog__inner { position: relative; max-height: calc(100dvh - 32px); overflow-y: auto; overscroll-behavior: contain; padding: 28px; }
.pv3-dialog__close { position: absolute; top: 14px; right: 14px; z-index: 3; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--v3-line); background: rgba(255,255,255,.92); color: var(--v3-text); cursor: pointer; }
.pv3-dialog__close:hover { background: var(--v3-tint-2); }
.pv3-profile { display: grid; grid-template-columns: minmax(0, 340px) minmax(0, 1fr); gap: 32px; align-items: center; }
.pv3-profile__text { display: grid; gap: 12px; align-content: center; justify-items: start; padding-right: 36px; }
.pv3-profile__name { margin: 0; font-size: clamp(22px, 3vw, 32px); line-height: 1.2; font-weight: 600; letter-spacing: -.02em; overflow-wrap: anywhere; }
.pv3-profile__position { margin: 0; font-size: 17px; line-height: 1.5; font-weight: 500; color: var(--v3-blue); overflow-wrap: anywhere; }
.pv3-profile__desc { margin: 0; font-size: 16px; line-height: 1.65; color: var(--v3-muted); }
.pv3-profile__pending { margin: 0; }
.pv3-flip { perspective: 1200px; }
.pv3-flip__inner { position: relative; aspect-ratio: 4 / 5; transform-style: preserve-3d; transition: transform .6s var(--v3-ease-out); }
.pv3-flip.is-flipped .pv3-flip__inner { transform: rotateY(180deg); }
.pv3-face { position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; border-radius: 24px; overflow: hidden; }
.pv3-face .pv3-photo { position: absolute; inset: 0; aspect-ratio: auto; }
.pv3-face--back { transform: rotateY(180deg); }
.pv3-flip-btn { all: unset; box-sizing: border-box; position: absolute; inset: 0; cursor: pointer; border-radius: inherit; }
.pv3-flip-btn:focus-visible { outline: 3px solid var(--v3-blue); outline-offset: -3px; }
.pv3-flip-hint { position: absolute; left: 12px; bottom: 12px; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; background: rgba(255,255,255,.94); color: var(--v3-text); box-shadow: 0 4px 14px rgba(0,0,0,.2); pointer-events: none; }
.pv3-dl { position: absolute; bottom: 12px; right: 12px; z-index: 2; width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; background: rgba(255,255,255,.94); color: var(--v3-text); box-shadow: 0 4px 14px rgba(0,0,0,.2); transition: background-color .15s var(--v3-ease), transform .15s var(--v3-ease); }
.pv3-dl:hover { background: #fff; transform: scale(1.06); }
.pv3-dl:focus-visible { outline: 3px solid var(--v3-blue); outline-offset: 2px; }
html.pv3-lock { overflow: hidden; }
@keyframes pv3-pop { from { opacity: 0; transform: translateY(14px) scale(.98); } to { opacity: 1; transform: none; } }
@media (max-width: 720px) {
  .pv3-dialog { width: calc(100vw - 20px); max-height: calc(100dvh - 20px); border-radius: 22px; }
  .pv3-dialog__inner { max-height: calc(100dvh - 20px); padding: 16px 16px 24px; }
  .pv3-profile { grid-template-columns: 1fr; gap: 20px; }
  .pv3-flip { width: min(100%, 300px); margin-inline: auto; }
  .pv3-profile__text { padding-right: 0; text-align: center; justify-items: center; }
}
/* Reduced motion: an instant state swap instead of the 3D turn (no transition, no pop-in). */
@media (prefers-reduced-motion: reduce) {
  .pv3-dialog[open] { animation: none; }
  .pv3-flip__inner, .pv3-dl { transition: none; }
}
