/* 눌림 효과(A)·선택 표시 이동(C)·키보드 포커스 빛. 시안: _ipad-보기/2026-11-08-웹-정렬/눌림효과-시안.html
   이 파일은 맨 마지막에 읽혀 기존 :active 규칙(brand-theme.css)을 덮어씁니다. 움직임 줄이기 설정이면 크기·이동·번짐 효과를 모두 끕니다. */
:root{--press-ease:cubic-bezier(.2,.8,.2,1);--press-dur:.16s;--slide-ease:cubic-bezier(.34,1.4,.5,1);--slide-dur:.38s}

/* A-1) 큰 카드: 조금만 작아지고(.98) 옅은 면 */
:is(.list-card,.meet-card,.service-card,.dg-product,.flow-list-open,.home-services-button,.meetup-easy-link,.living-guide-topic,.meetup-create-card,.shop-kind-card,.map-grid-card){transition:scale var(--press-dur) var(--press-ease),background-color var(--press-dur) var(--press-ease)}
:is(.list-card,.meet-card,.service-card,.dg-product,.flow-list-open,.home-services-button,.meetup-easy-link,.living-guide-topic,.meetup-create-card,.shop-kind-card,.map-grid-card):not(:disabled):active{scale:.98;background-color:var(--soft);transition-delay:70ms,70ms}
/* A-2) 목록 행·카드형 진입 행: .98 + 옅은 면 */
:is(.menu-row,.market-row,.feed,.living-guide-row,.living-guide-source,.living-guide-question,.living-guide-arrival-entry,.profile-entry,.service-preparation-entry,.expert-home-entry,.map-result-open,.conversation-row,.shop-row>button,.service-text-link){transition:scale var(--press-dur) var(--press-ease),background-color var(--press-dur) var(--press-ease)}
:is(.menu-row,.market-row,.feed,.living-guide-row,.living-guide-source,.living-guide-question,.living-guide-arrival-entry,.profile-entry,.service-preparation-entry,.expert-home-entry,.map-result-open,.conversation-row,.shop-row>button,.service-text-link):not(:disabled):active{scale:.98;background-color:var(--soft);transition-delay:70ms,70ms}
/* A-3) 아이콘 버튼·서비스 타일·칩: 더 작게(.96). 면 색은 선택된 칩·버튼(.active·aria-pressed·aria-selected)에는 바꾸지 않고 크기만 */
:is(.iconbtn,.dg-path,.service-pagination button,.header-actions .iconbtn,.sheet-head .iconbtn,.board-chip,.map-filter,.chip){transition:scale var(--press-dur) var(--press-ease),background-color var(--press-dur) var(--press-ease),border-color .2s,color .2s}
:is(.iconbtn,.dg-path,.service-pagination button,.header-actions .iconbtn,.sheet-head .iconbtn,.board-chip,.map-filter):not(:disabled):active{scale:.96;transition-delay:70ms,70ms,0s,0s}
:is(.iconbtn,.dg-path,.service-pagination button,.header-actions .iconbtn,.sheet-head .iconbtn,.board-chip,.map-filter):not(:disabled,.active,[aria-pressed="true"],[aria-selected="true"]):active{background-color:var(--soft)}
.chip:not(:disabled):active{scale:.95;transition-delay:70ms,70ms,0s,0s}
/* 주 버튼(빨강·파랑 채움): 크기만, 면 색은 바꾸지 않음 */
:is(.primary,button.primary,.write-button,.fab):not(:disabled):active{scale:.97;transition-delay:70ms}

/* C) 선택 표시 이동: JS(press-feedback.js)가 탭 밑줄·칩 알약을 새 자리로 미끄러뜨림 */
.tabs.has-slider>button.active,.tabs.has-slider>button[aria-selected="true"]{border-color:transparent}
.tab-slider{position:absolute;left:0;bottom:0;height:2px;width:0;background:var(--accent-ink,var(--ink));border-radius:2px 2px 0 0;pointer-events:none;z-index:2;will-change:transform,width}
.tab-slider.is-moving{transition:transform var(--slide-dur) var(--slide-ease),width var(--slide-dur) var(--slide-ease)}
.has-chip-slider,.chips,.fpop-row,.map-filter-row{position:relative}
.chip-slider{position:absolute;z-index:3;pointer-events:none;display:flex;align-items:center;justify-content:center;white-space:nowrap;background:var(--ink);color:#fff;border:1px solid var(--ink);box-sizing:border-box;will-change:transform,width}
.chip-slider.is-moving{transition:transform var(--slide-dur) var(--slide-ease),width var(--slide-dur) var(--slide-ease)}

/* 키보드 포커스: 키보드(Tab 등)를 쓸 때만, 테두리 대신 부드럽게 번지는 빨간 빛. 터치·마우스는 input-modality가 계속 숨김 */
html[data-input="keyboard"] :is(button,a,summary,[role="tab"],[role="button"],[tabindex]):focus-visible{outline:none!important;box-shadow:0 0 0 3px var(--paper,#fff),0 0 0 5px rgb(194 84 26/.55)!important;animation:press-glow .25s ease-out}
@keyframes press-glow{from{box-shadow:0 0 0 3px var(--paper,#fff),0 0 0 10px rgb(194 84 26/0)}}

@media(prefers-reduced-motion:reduce){
 :is(.list-card,.meet-card,.service-card,.dg-product,.flow-list-open,.home-services-button,.meetup-easy-link,.living-guide-topic,.meetup-create-card,.shop-kind-card,.map-grid-card,.menu-row,.market-row,.feed,.living-guide-row,.living-guide-source,.living-guide-question,.living-guide-arrival-entry,.profile-entry,.service-preparation-entry,.expert-home-entry,.map-result-open,.conversation-row,.shop-row>button,.service-text-link,.iconbtn,.dg-path,.service-pagination button,.header-actions .iconbtn,.sheet-head .iconbtn,.board-chip,.map-filter,.chip,.primary,button.primary,.write-button,.fab):not(:disabled):active{scale:1}
 .tab-slider,.chip-slider{display:none}
 html[data-input="keyboard"] :is(button,a,summary,[role="tab"],[role="button"],[tabindex]):focus-visible{animation:none}
}
