/* =====================================================================
   [AI-MAIN-1102] 4차시안 마크업을 실제 사이트로 옮기며 생긴 차이만 메운다
   - 시안 CSS(dwd_ai_curation_4th.css)는 한 줄도 고치지 않는다. 시안의 <span> 이 실제로는
     링크(<a>)·버튼(<button>)·입력(<form>)이 되면서 브라우저 기본 모양이 끼어드는 것만 지운다.
   - .dwd-ai 안에만 걸린다. 이 파일을 빼면 시안 CSS 만 남는다.
   ===================================================================== */
.dwd-ai a.card, .dwd-ai a.more, .dwd-ai a.dwd-cta, .dwd-ai .bcard a { color: inherit; text-decoration: none; }
.dwd-ai a.card { display: block; }
.dwd-ai .bcard a { display: block; width: 100%; height: 100%; }

/* 버튼 기본 모양(테두리·여백·글꼴) 제거 — 모양은 시안 CSS 가 준다 */
.dwd-ai button.arrow, .dwd-ai button.send, .dwd-ai button.mic, .dwd-ai button.dwd-cta {
  border: 0; padding: 0; margin: 0; font: inherit; cursor: pointer; -webkit-appearance: none; appearance: none;
}
.dwd-ai button.dwd-cta { border: 0; }
.dwd-ai button.mic { background: none; display: flex; align-items: center; justify-content: center; }
.dwd-ai button.mic svg { width: 100%; height: 100%; }
.dwd-ai button.mic[hidden] { display: none; }
.dwd-ai .dwd-search.is-listening .mic svg { stroke: #FDB640; }
.dwd-ai form.dwd-search { margin-bottom: 0; }

/* 칩은 누를 수 있는 것 */
.dwd-ai .chip { cursor: pointer; -webkit-user-select: none; user-select: none; }

/* 키보드 포커스는 보이게 */
.dwd-ai a:focus-visible, .dwd-ai button:focus-visible, .dwd-ai .chip:focus-visible, .dwd-ai input:focus-visible {
  outline: 2px solid #231607; outline-offset: 2px;
}

/* 더 갈 데가 없으면 화살표를 감춘다(눌러도 안 움직이는 버튼은 만들지 않는다) */
.dwd-ai .arrow.is-end { opacity: 0; pointer-events: none; }

/* 배너가 1장뿐이면 점을 감춘다 */
.dwd-ai .dwd-banner .dots:empty { display: none !important; }

/* 시안의 카드(<article>)가 실제로는 링크(<a>)다 — 블록으로 */
.dwd-ai a.fg-card, .dwd-ai a.fg-card2 { display: block; color: inherit; text-decoration: none; }

/* 카테고리 배지는 한 줄(사이트 전역 word-break:break-all 이 «디자인 설명/서» 로 꺾었다) */
.dwd-ai .badge { white-space: nowrap; word-break: keep-all; }

/* 카드 요약문 2줄 — 실제 요약문은 시안 문구보다 길다(설명서 카드가 시안 527 → 647px 로 늘어났다).
   시안처럼 두 줄에서 말줄임 */
.dwd-ai .fg-card .fg-body > p, .dwd-ai .fg-card2 > p {
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2;
  overflow: hidden; white-space: normal;
}
.dwd-ai .fg-card .fg-body > p p, .dwd-ai .fg-card2 > p p { display: inline; margin: 0; }
