/* Homepage profile showcase (G's profile section, v2 18 Oct 2026: display only, nothing interactive). Markup: tools/build_profile_showcase.py. JS: /js/profile-showcase.js.
   Uses the site tokens from home-assets/styles.css (navy, sky, sky-text, border, card, muted). */
.lh-ps { --ps-star: oklch(0.76 0.16 75); width: 100%; pointer-events: none; user-select: none; -webkit-user-select: none; cursor: default; font-family: "Manrope", sans-serif; color: var(--foreground); }
.lh-ps svg { flex-shrink: 0; }
.lh-ps-muted { color: var(--muted-foreground); }
.lh-ps-search { display: flex; align-items: center; gap: 12px; max-width: 580px; height: 44px; margin: 0 auto 14px; padding: 0 20px; border: 1px solid var(--border); border-radius: 999px; background: var(--card); box-shadow: var(--shadow-soft); font-size: 13px; }
.lh-ps-query { min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.lh-ps-pin { margin-left: auto; color: var(--sky-text); }
.lh-ps-cursor { display: inline-block; width: 1px; height: 13px; margin-left: 2px; vertical-align: middle; background: var(--primary); animation: lh-ps-blink 700ms steps(2) infinite; }
.lh-ps-cursor[hidden] { display: none; }
@keyframes lh-ps-blink { to { opacity: 0; } }

.lh-ps-viewport { display: grid; overflow: hidden; border-radius: var(--radius); box-shadow: var(--shadow-profile); }
.lh-ps-slide { grid-area: 1 / 1; min-width: 0; visibility: hidden; transform: translate3d(104%, 0, 0); }
.lh-ps-slide.is-active { visibility: visible; transform: none; }
.lh-ps-slide.is-anim { transition: transform 620ms cubic-bezier(.22,.8,.24,1), visibility 0s linear 0s; }
.lh-ps-slide.from-next { transform: translate3d(104%, 0, 0); visibility: visible; }
.lh-ps-slide.to-prev { transform: translate3d(-104%, 0, 0); visibility: visible; }

.lh-ps-card { display: grid; grid-template-columns: 1fr 1fr; height: 438px; overflow: hidden; border: 1px solid var(--border); border-radius: var(--radius); background: var(--card); }
.lh-ps-photo { position: relative; min-height: 0; overflow: hidden; }
.lh-ps-photo picture { display: block; width: 100%; height: 100%; }
.lh-ps-photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.lh-ps-chip { position: absolute; display: flex; align-items: center; gap: 6px; padding: 7px 10px; border-radius: 999px; background: color-mix(in oklab, var(--card) 94%, transparent); color: var(--foreground); font-size: 11px; font-weight: 600; box-shadow: var(--shadow-soft); }
.lh-ps-chip svg { color: var(--brand-coral); }
.lh-ps-chip-top { top: 16px; right: 16px; }
.lh-ps-chip-loc { bottom: 16px; left: 16px; max-width: calc(100% - 32px); }
.lh-ps-details { min-width: 0; padding: 24px; display: flex; flex-direction: column; }
.lh-ps-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.lh-ps-name { font-family: "Sora", sans-serif; font-size: 25px; line-height: 1.25; font-weight: 700; }
.lh-ps-icon { display: inline-grid; place-items: center; width: 32px; height: 32px; color: var(--muted-foreground); }
.lh-ps-rating { display: flex; align-items: center; gap: 6px; margin-top: 8px; font-size: 12px; font-weight: 700; }
.lh-ps-rating .lh-ps-muted { font-weight: 500; }
.lh-ps-stars { display: inline-flex; gap: 2px; }
.lh-ps-star { width: 14px; height: 14px; color: var(--ps-star); }
.lh-ps-cat { margin-top: 4px; font-size: 12px; color: var(--muted-foreground); }
.lh-ps-actions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 20px; }
.lh-ps-actions > span { display: inline-flex; align-items: center; justify-content: center; gap: 5px; height: 34px; padding: 0 8px; border: 1px solid var(--border); border-radius: 999px; font-size: 11px; font-weight: 700; color: var(--sky-text); white-space: nowrap; }
.lh-ps-actions svg { width: 14px; height: 14px; color: var(--brand-coral); }
.lh-ps-tabs { display: flex; margin-top: 16px; border-bottom: 1px solid var(--border); }
.lh-ps-tab { flex: 1; display: flex; align-items: center; justify-content: center; height: 40px; border-bottom: 3px solid transparent; font-size: 12px; font-weight: 700; color: var(--muted-foreground); }
.lh-ps-tab.is-selected { color: var(--sky-text); border-bottom-color: var(--primary); }
.lh-ps-panel { height: 126px; padding-top: 16px; font-size: 12px; line-height: 1.5; overflow: hidden; }
.lh-ps-line { display: flex; align-items: center; gap: 8px; }
.lh-ps-desc { margin-top: 10px; color: var(--muted-foreground); }
.lh-ps-hours { display: flex; align-items: center; gap: 4px; margin-top: 10px; color: var(--success); font-weight: 600; }

@media (max-width: 767px) {
  .lh-ps-search { height: 38px; margin-bottom: 10px; padding: 0 16px; font-size: 12px; }
  .lh-ps-card { grid-template-columns: 1fr; grid-template-rows: 148px 1fr; height: 490px; }
  .lh-ps-details { padding: 14px 18px; }
  .lh-ps-name { font-size: 22px; }
  .lh-ps-actions { margin-top: 12px; }
  .lh-ps-tabs { margin-top: 10px; }
  .lh-ps-tab { height: 36px; }
  .lh-ps-panel { height: 108px; padding-top: 12px; font-size: 12px; }
  .lh-ps-desc, .lh-ps-hours { margin-top: 8px; }
  .lh-ps-chip-top { top: 10px; right: 10px; }
  .lh-ps-chip-loc { bottom: 10px; left: 10px; max-width: calc(100% - 20px); }
}
@media (max-height: 740px) {
  .lh-ps-card { height: 370px; }
  .lh-ps-details { padding: 14px 18px; }
  .lh-ps-panel { height: 100px; padding-top: 10px; font-size: 11px; }
  .lh-ps-actions { margin-top: 10px; }
  .lh-ps-tabs { margin-top: 8px; }
  .lh-ps-tab { height: 32px; }
  .lh-ps-name { font-size: 22px; }
}
@media (max-width: 767px) and (max-height: 740px) {
  .lh-ps-card { height: 410px; grid-template-rows: 108px 1fr; }
  .lh-ps-panel { height: 85px; }
  .lh-ps-details { padding: 10px 14px; }
  .lh-ps-tab { height: 30px; }
  .lh-ps-rating { margin-top: 4px; }
}
@media (prefers-reduced-motion: reduce) {
  .lh-ps-cursor { animation: none; }
  .lh-ps-slide.is-anim { transition: none; }
}
