/* 상담 창구(오른쪽 아래) — 홈페이지와 블로그 · 영상이 같이 쓴다(help.js). 2026-11-24 after.css 에서 떼어 냄.
   2026-11-25 새 모양(대표 요청): 브랜드 「이」 심볼의 남색 알약 「상담」 단추. 누르면 그 위로 흰 알약 세 줄이 차례로 올라온다 —
   글은 오른쪽 정렬, 끝에 둥근 아이콘(전화 남색 · 카카오톡 노랑 · 문의하기 빨간 연필색). 덮개(.veil 30 · 선 31)보다 위.
   집 안을 둘러보는 동안(아래 단추 줄이 있을 때)은 숨는다(after.js). 블로그에는 after.css 가 없어 색은 여기서 정한다 */
#help { --h-navy: #1e2a44; --h-cream: #f6f4ef; --h-ink: #141a24; --h-ink-2: #4a5262; --h-kakao: #fee500; --h-kakao-ink: #3a1d1d; --h-red: #c8161d;
  position: fixed; z-index: 32; right: clamp(14px, 2vw, 32px); bottom: calc(clamp(14px, 2vw, 32px) + env(safe-area-inset-bottom));
  display: grid; justify-items: end; gap: 10px; color: var(--h-ink); font-family: "IBM Plex Sans KR", system-ui, sans-serif; transition: opacity .3s ease, visibility .3s; }
#help.off { opacity: 0; visibility: hidden; }
#help .ic { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
#help .ic .fill { fill: currentColor; stroke: none; }

#help-b { display: inline-flex; align-items: center; gap: 8px; height: 54px; padding: 0 22px 0 18px; border: 0; border-radius: 999px;
  background: var(--h-navy); color: var(--h-cream); font: 600 1.02rem/1 inherit; letter-spacing: -.01em; cursor: pointer;
  box-shadow: 0 0 0 1.5px rgba(246,244,239,.3), 0 10px 24px rgba(20,26,36,.28), 0 2px 6px rgba(20,26,36,.14); transition: transform .2s ease, box-shadow .2s ease; }   /* 옅은 테두리: 밤 바탕(첫 화면 · 신청서)에서도 보이게 */
#help-b:hover { transform: translateY(-2px); box-shadow: 0 0 0 1.5px rgba(246,244,239,.4), 0 14px 28px rgba(20,26,36,.32), 0 2px 6px rgba(20,26,36,.14); }
#help-b .opened, #help.open #help-b .shut { display: none; }
#help.open #help-b .opened { display: block; }
#help-b:focus-visible { outline: 3px solid var(--h-red); outline-offset: 3px; }

#help-m { display: grid; justify-items: end; gap: 8px; }
#help-m[hidden] { display: none; }
#help-m .hd { margin: 0 6px 2px 0; padding: 4px 12px; border-radius: 999px; background: rgba(246,244,239,.94); color: var(--h-ink-2); font-size: .84rem; }
#help-m a { display: grid; grid-template-columns: auto 42px; column-gap: 12px; align-items: center; min-height: 54px; padding: 6px 6px 6px 20px; border-radius: 999px;
  background: #fff; color: var(--h-ink); text-decoration: none; cursor: pointer; text-align: right;
  box-shadow: 0 8px 20px rgba(20,26,36,.16), 0 1px 3px rgba(20,26,36,.08); animation: help-rise .26s cubic-bezier(.2,.8,.2,1) both; }
#help-m a b { grid-column: 1; font-size: .98rem; font-weight: 600; letter-spacing: -.02em; line-height: 1.25; }
#help-m a small { grid-column: 1; color: var(--h-ink-2); font-size: .8rem; line-height: 1.3; white-space: nowrap; }
#help-m .dot { grid-column: 2; grid-row: 1 / span 2; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: var(--h-navy); color: var(--h-cream); }
#help-m [data-k="chat"] .dot { background: var(--h-kakao); color: var(--h-kakao-ink); }
#help-m [data-k="chat"] .ic { width: 24px; height: 24px; }
#help-m [data-k="ask"] .dot { background: var(--h-red); color: #fff; }
#help-m a:nth-of-type(1) { animation-delay: .1s; } #help-m a:nth-of-type(2) { animation-delay: .05s; }   /* 단추에 가까운 아래 줄부터 */
#help-m a:not([aria-disabled="true"]):hover { box-shadow: 0 12px 26px rgba(20,26,36,.22), 0 1px 3px rgba(20,26,36,.08); }
#help-m a:not([aria-disabled="true"]):hover b { text-decoration: underline 2px; text-underline-offset: 4px; }
#help-m a[aria-disabled="true"] { cursor: default; opacity: .6; }
#help-m a:focus-visible { outline: 3px solid var(--h-red); outline-offset: 2px; }
@keyframes help-rise { from { opacity: 0; transform: translateY(10px) scale(.97); } }
@media (max-width: 480px) { #help-b { height: 50px; padding: 0 18px 0 15px; font-size: .98rem; } #help-m a { min-height: 50px; } }
@media (prefers-reduced-motion: reduce) { #help, #help-b { transition: none; } #help-m a { animation: none; } }
