/* Discovery home and public contact panel. Scoped to avoid changing feed cards. */
.home-section-heading { display:flex; align-items:flex-end; justify-content:space-between; gap:16px; margin-bottom:20px; }
.home-section-heading h2 { color:var(--r-text); font-size:24px; line-height:1.35; font-weight:800; letter-spacing:-.035em; }
.home-section-heading p:not(.home-eyebrow) { margin-top:6px; color:var(--r-text-muted); font-size:13px; }
.home-section-heading > a { flex-shrink:0; color:var(--r-primary-deep); font-size:13px; font-weight:600; }
.home-eyebrow { color:var(--r-primary-deep); font-size:10px; font-weight:800; letter-spacing:.16em; margin-bottom:8px; }
.discovery-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:12px; }
.discovery-card { display:flex; align-items:center; gap:14px; padding:22px 18px; border-radius:18px; color:#243b36; transition:transform .2s; }
.discovery-card:hover { transform:translateY(-3px); }
.discovery-card > span:nth-child(2) { flex:1; min-width:0; }
.discovery-card strong { display:block; font-size:14px; line-height:1.5; }
.discovery-card small { display:block; font-size:11px; margin-top:4px; opacity:.75; }
.discovery-icon { font-size:34px; line-height:1; }
.discovery-mint { background:#e5f2ed; } .discovery-peach { background:#f9eee6; } .discovery-lilac { background:#efedf8; } .discovery-yellow { background:#f6f3dd; }
.discovery-categories { display:flex; align-items:center; flex-wrap:wrap; gap:8px; margin-top:20px; font-size:12px; }
.discovery-categories > span { color:var(--r-text-muted); margin-right:6px; }
.discovery-categories a { border:1px solid var(--r-border); border-radius:999px; padding:8px 14px; color:var(--r-text-secondary); background:var(--r-surface); }
.discovery-categories a span { color:var(--r-text-muted); margin-left:5px; }
.home-story-section { background:var(--r-bg-soft); border-radius:24px; padding:28px; }
.home-story-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:20px; }
.home-story-card { display:flex; overflow:hidden; border-radius:16px; background:var(--r-surface); min-width:0; }
.home-story-image { position:relative; width:44%; flex-shrink:0; min-height:200px; background:var(--r-primary-light); }
.home-story-image img, .home-event-image img { width:100%; height:100%; object-fit:cover; position:absolute; inset:0; }
.home-story-quote { display:block; font-size:120px; text-align:center; line-height:1.5; color:var(--r-primary); }
.home-story-badge { position:absolute; bottom:12px; left:12px; right:12px; width:fit-content; max-width:calc(100% - 24px); overflow:hidden; text-overflow:ellipsis; white-space:nowrap; background:rgba(255,255,255,.92); color:#243b36; border-radius:6px; padding:5px 9px; font-size:11px; font-weight:700; }
.home-story-copy { padding:22px; display:flex; flex-direction:column; justify-content:space-between; gap:20px; min-width:0; }
.home-story-copy p { font-size:14px; line-height:1.8; overflow-wrap:anywhere; display:-webkit-box; -webkit-line-clamp:4; -webkit-box-orient:vertical; overflow:hidden; }
.home-story-copy > span { color:var(--r-primary-deep); font-size:12px; font-weight:700; }
.home-event-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:20px; }
.home-event-card { border:1px solid var(--r-border); border-radius:18px; overflow:hidden; min-width:0; }
.home-event-image { position:relative; aspect-ratio:16/9; background:var(--r-primary-light); }
.home-event-image > span:not(.home-story-badge) { display:block; text-align:center; font-size:64px; color:var(--r-primary); }
.home-event-copy { padding:20px; }
.home-event-copy h3 { font-size:16px; font-weight:750; overflow-wrap:anywhere; }
.home-event-copy p { font-size:13px; color:var(--r-text-secondary); margin-top:6px; }
.home-event-copy > span { display:block; font-size:11px; margin-top:14px; color:var(--r-text-muted); }
.home-new-holders { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px; }
.home-new-holders a { display:flex; align-items:center; gap:14px; padding:18px; border:1px solid var(--r-border); border-radius:16px; min-width:0; }
.home-new-avatar { width:56px; height:56px; flex-shrink:0; border-radius:50%; overflow:hidden; display:flex; align-items:center; justify-content:center; background:var(--r-primary-light); color:var(--r-primary-deep); font-size:24px; font-weight:800; }
.home-new-avatar img { width:100%; height:100%; object-fit:cover; }
.home-new-name { flex:1; min-width:0; } .home-new-name strong, .home-new-name small { display:block; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.home-new-name strong { font-size:14px; } .home-new-name small { font-size:12px; color:var(--r-text-muted); margin-top:4px; }
.holder-public-content { min-width:0; }

/* 공개 IP 페이지 커뮤니티 — 상품·콘텐츠 옆에 응원 포스트잇과 기존 리뷰를 모은다. */
.holder-community-layout { display:grid; grid-template-columns:minmax(0,1fr) minmax(18rem,22rem); gap:32px; align-items:start; }
.holder-community-sidebar { position:sticky; top:88px; min-width:0; }
.holder-community-card { padding:22px; border:1px solid var(--r-border); border-radius:20px; background:var(--r-surface); }
.holder-community-heading { display:flex; align-items:flex-start; justify-content:space-between; gap:12px; }
.holder-community-heading h2 { color:var(--r-text); font-size:18px; line-height:1.35; font-weight:800; letter-spacing:-.03em; }
.holder-community-heading > span { min-width:26px; height:26px; padding:0 8px; display:inline-flex; align-items:center; justify-content:center; border-radius:999px; background:var(--r-warm-light); color:var(--r-warm-deep); font-size:11px; font-weight:800; }
.holder-community-eyebrow { margin-bottom:4px; color:var(--r-warm-deep); font-size:9px; line-height:1; font-weight:800; letter-spacing:.16em; }
.holder-community-description { margin-top:8px; color:var(--r-text-muted); font-size:12px; line-height:1.65; }
.heart-note-form { margin-top:16px; padding:12px; border:1px solid var(--r-border); border-radius:14px; background:var(--r-bg-soft); }
.heart-note-form textarea { display:block; width:100%; min-height:78px; resize:vertical; border:0; outline:0; background:transparent; color:var(--r-text); font-size:13px; line-height:1.65; }
.heart-note-form textarea::placeholder { color:var(--r-text-muted); }
.heart-note-form > div { margin-top:8px; display:flex; align-items:center; justify-content:space-between; gap:8px; }
.heart-note-form span { color:var(--r-text-muted); font-size:10px; }
.heart-note-form button, .heart-note-login { border-radius:10px; background:var(--r-primary); color:var(--r-text-on-primary); font-size:11px; font-weight:800; }
.heart-note-form button { padding:8px 11px; }
.heart-note-login { margin-top:14px; min-height:38px; display:flex; align-items:center; justify-content:center; }
.heart-note-board { margin-top:18px; display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px 10px; }
.heart-note { min-width:0; min-height:118px; padding:17px 14px 12px; display:flex; flex-direction:column; justify-content:space-between; gap:14px; border:1px solid var(--r-border-light); border-radius:2px 2px 10px 2px; box-shadow:0 6px 14px color-mix(in srgb,var(--r-text) 9%,transparent); transform:rotate(-1deg); }
.heart-note:nth-child(3n+1) { background:var(--r-warm-light); }
.heart-note:nth-child(3n+2) { background:var(--r-primary-light); transform:rotate(1.1deg); }
.heart-note:nth-child(3n) { background:var(--r-cool-light); transform:rotate(-.4deg); }
.heart-note > p { color:var(--r-text); font-size:12px; line-height:1.65; overflow-wrap:anywhere; }
.heart-note footer { display:flex; align-items:center; justify-content:space-between; gap:6px; color:var(--r-text-secondary); font-size:10px; font-weight:700; }
.heart-note footer > span { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.heart-note footer button { color:var(--r-text-muted); font-size:9px; text-decoration:underline; text-underline-offset:2px; }
.holder-community-empty { margin-top:18px; min-height:116px; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:8px; border:1px dashed var(--r-border); border-radius:14px; background:var(--r-bg-soft); color:var(--r-text-muted); text-align:center; }
.holder-community-empty span { color:var(--r-warm); font-size:24px; }
.holder-community-empty p { font-size:11px; }
.holder-community-empty.compact { min-height:96px; }
.community-review-list { margin-top:16px; display:grid; gap:10px; }
.community-review-item { display:block; padding:14px; border:1px solid var(--r-border-light); border-radius:14px; background:var(--r-bg-soft); transition:border-color .18s ease,transform .18s ease; }
.community-review-item:hover { border-color:var(--r-primary); transform:translateY(-1px); }
.community-review-meta { display:flex; align-items:center; justify-content:space-between; gap:8px; color:var(--r-text-muted); font-size:9px; }
.community-review-meta > span { color:var(--r-primary-deep); font-weight:800; }
.community-review-item h3 { margin-top:5px; overflow:hidden; color:var(--r-text); font-size:12px; font-weight:800; text-overflow:ellipsis; white-space:nowrap; }
.community-review-stars { margin-top:4px; color:var(--r-warning); font-size:10px; letter-spacing:1px; }
.community-review-stars .is-empty { color:var(--r-border); }
.community-review-item > p { margin-top:6px; display:-webkit-box; overflow:hidden; color:var(--r-text-secondary); font-size:11px; line-height:1.6; -webkit-box-orient:vertical; -webkit-line-clamp:3; }
.community-review-item footer { margin-top:8px; color:var(--r-text-muted); font-size:9px; }
@media (max-width:1100px) { .discovery-grid { grid-template-columns:repeat(2,minmax(0,1fr)); } .home-story-grid { grid-template-columns:minmax(0,1fr); } }
@media (max-width:1023px) {
  .holder-community-layout { grid-template-columns:minmax(0,1fr); }
  .holder-community-sidebar { position:static; display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:20px; }
}
@media (max-width:639px) {
  .home-section-heading h2 { font-size:20px; } .home-section-heading { gap:12px; align-items:flex-start; } .home-section-heading > a { font-size:11px; padding-top:5px; }
  .discovery-card { padding:16px 12px; gap:8px; flex-wrap:wrap; } .discovery-icon { width:100%; font-size:28px; margin-bottom:6px; } .discovery-card strong { font-size:13px; } .discovery-card small { font-size:10px; } .discovery-card > span:last-child { display:none; }
  .home-story-section { padding:20px 16px; } .home-story-copy { padding:16px; } .home-story-copy p { font-size:13px; } .home-story-image { min-height:190px; }
  .home-event-grid, .home-new-holders { grid-template-columns:minmax(0,1fr); }
  .holder-community-layout { gap:28px; }
  .holder-community-sidebar { display:block; }
  .holder-community-sidebar > * + * { margin-top:20px; }
  .holder-community-card { padding:18px; }
}
@media (prefers-reduced-motion:reduce) { .discovery-card, .community-review-item { transition:none; } }

/* 공개 홀더/브랜드 페이지 상품 무한 스크롤 (2026-10-06) — _public_products_page.html 참고.
   프리패치 트리거: 센티넬 위로 1200px 뻗은 투명 영역. 바닥까지 그만큼 남았을 때 intersect 발화. */
.holder-products-prefetch { position:absolute; left:0; right:0; bottom:0; height:1200px; pointer-events:none; }
/* 스켈레톤 — 실제 카드(정사각 이미지 + 두 줄)와 같은 모양으로 자리를 잡아 교체 시 점프가 없다. */
.holder-product-skeleton > div { background: var(--r-bg-soft); animation: holder-skeleton-pulse 1.4s ease-in-out infinite; }
@keyframes holder-skeleton-pulse { 0%,100% { opacity:1; } 50% { opacity:.55; } }
/* 새로 붙은 카드 페이드인 — htmx 가 swap 직후 .htmx-added 를 달았다가 settle 때 뗀다. */
.holder-products-grid > * { transition: opacity .45s ease; }
.holder-products-grid > .htmx-added { opacity:0; }
@media (prefers-reduced-motion: reduce) {
  .holder-product-skeleton > div { animation:none; }
  .holder-products-grid > * { transition:none; }
}
