/* Talk-Di 페이지(/talkdi, /talkdi/test, /talkdi/mascot) — 톡디 앱 디자인을 입힌다(2026-10-07)
   색·마스코트 기준: talkdi/design/mascot/mascot.md · friends.md · design/ui/ui-implemented.md
   글꼴은 사이트 것(Pretendard·고운바탕)을 그대로 두고, 포인트(라벨·번호·마스코트 이름)만 갈무리11.
   갈무리11은 12px의 정수 배로만 쓴다(획 번짐 방지). 톡새는 칸 하나가 정수 px이 되게 정수 배로만 키운다.
   styles.css · styles-product.css 뒤에 불러오고, <body class="td">에만 적용된다. */

body.td {
  --bg: #FBF6EA;      /* 한지 크림 */
  --fg: #22201C;      /* 먹 */
  --muted: #6e6457;
  --line: #e7dfcc;
  --card: #fffdf7;
  --hover: rgba(34, 32, 28, .04);
  --crest: #2E7D46;   /* 깃 초록 — 밝은 바탕의 강조색 */
  --sprout: #8CC63F;  /* 새싹 연두 — 톡새 몸, 장식면에만(글자 금지) */
  --sun: #F4C542;     /* 햇살 노랑 */
  --beak: #E8663A;    /* 부리 코랄 */
  --night: #1F3552;   /* 밤하늘 남색 — 앱 아이콘 바탕 */
  --night-2: #2B4A6F;
  --bubble: #f6e7b4;  /* 앱의 내 말풍선 */
  --coral: #E8663A;
  --mint: #8CC63F;
}
body.td a:hover, body.td .crumb a:hover { color: var(--crest); }

.td-px { font-family: 'Galmuri11', var(--font-body); font-weight: 400; letter-spacing: 0; }

/* 섹션 라벨: 갈무리11 + 연두 픽셀 한 칸 */
body.td .eyebrow { display: inline-flex; align-items: center; gap: 8px; font-family: 'Galmuri11', var(--font-body); font-weight: 400; font-size: 12px; letter-spacing: 1px; color: var(--crest); }
body.td .eyebrow::before { content: ''; width: 6px; height: 6px; background: var(--sprout); box-shadow: 6px 0 0 var(--crest); margin-right: 6px; }

/* 히어로 */
body.td .detail-hero__icon { display: none; } /* 오른쪽 무대의 톡새가 대신한다 */
body.td .detail-hero__name, body.td .detail-hero__desc { word-break: keep-all; }
body.td .detail-hero__brand { font-size: 36px; color: var(--crest); }
body.td .detail-hero__icon { border-radius: 29px; }
body.td .detail-hero__cta { background: var(--crest); color: var(--bg); border-radius: 10px; text-decoration: none; }
body.td .detail-hero__cta:hover { background: #24653a; color: var(--bg); }
body.td .detail-hero__text .detail-hero__cta + .detail-hero__cta,
body.td .detail-hero__cta--line { background: var(--card); color: var(--fg); border: 1px solid var(--line); }
body.td .detail-hero__text .detail-hero__cta + .detail-hero__cta:hover,
body.td .detail-hero__cta--line:hover { border-color: var(--crest); color: var(--crest); background: var(--card); }

/* 히어로 무대 — 텀블벅 대표 이미지처럼 남색 점무늬 + 둥근 달 + 톡새 */
.td-stage { position: relative; flex: 0 0 360px; height: 360px; margin-left: auto; border-radius: 24px; overflow: hidden;
  background-color: var(--night); background-image: radial-gradient(rgba(251, 246, 234, .16) 1.5px, transparent 1.6px); background-size: 24px 24px; background-position: 12px 12px;
  display: flex; align-items: center; justify-content: center; gap: 14px; }
.td-stage::before { content: ''; position: absolute; width: 250px; height: 250px; border-radius: 50%; background: var(--night-2); top: 40px; left: 50%; transform: translateX(-50%); }
.td-stage img { position: relative; display: block; }
.td-stage__badge { position: absolute; left: 16px; bottom: 16px; display: inline-flex; align-items: center; gap: 7px; padding: 7px 12px; border-radius: 99px; background: var(--card); color: var(--fg); font-family: 'Galmuri11', var(--font-body); font-size: 12px; }
.td-stage__badge::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--crest); }
.td-stage--pair img + img { align-self: flex-end; margin-bottom: 70px; }

/* 섹션 옆 톡새 — 앱 아이콘처럼 남색 타일 위에, 아래에 지금 표정 이름 */
.td-bird { margin: 22px 0 0; display: flex; flex-direction: column; align-items: flex-start; gap: 9px; }
.td-bird__tile { width: 120px; height: 116px; border-radius: 22px; background: var(--night); display: flex; align-items: center; justify-content: center; }
.td-bird__tile img { display: block; }
.td-bird figcaption { font-family: 'Galmuri11', var(--font-body); font-size: 12px; color: var(--muted); }

/* 말해 볼 문장 — 앱의 내 말풍선 */
body.td .groups--cmd dt { justify-self: start; align-self: start; padding: 9px 13px; border-radius: 12px; background: var(--bubble); font-weight: 600; line-height: 1.6; }
body.td .groups--cmd > div { align-items: center; }

/* 단계 번호·때 — 깃 초록 칩 */
body.td .steps__when { justify-self: start; align-self: start; display: inline-flex; align-items: center; justify-content: center; min-width: 28px; height: 28px; padding: 0 8px; border-radius: 6px; background: var(--crest); color: var(--bg); font-family: 'Galmuri11', var(--font-body); font-weight: 400; font-size: 12px; }

/* 확인 상자 — 앱의 보관소 확인 상자(패널 + 노랑 테두리) */
body.td .callout { background: var(--card); border: 2px solid var(--sun); border-left-width: 2px; }
body.td .callout__title { color: #8A620A; }

body.td .tbl .hl { background: rgba(140, 198, 63, .16); }
body.td .qa summary:focus-visible { outline-color: var(--crest); }
body.td .platform-tag { border-color: var(--line); }

/* 확장팩 태그 옆 친구 */
.tag--bird { display: inline-flex; align-items: center; gap: 6px; }
.tag--bird img { display: block; margin: -6px 0 -6px -6px; }

@media (max-width: 900px) {
  .td-stage { flex-basis: auto; width: 100%; height: 280px; margin-left: 0; }
  .td-stage::before { width: 200px; height: 200px; top: 30px; }
  body.td .d-sec__label { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; }
  .td-bird { margin: 0; align-items: flex-end; }
  .td-bird__tile { width: 104px; height: 100px; border-radius: 18px; }
}

/* 마스코트 소개(/talkdi/mascot) — 카드 위는 남색 타일(친구들 기본 바탕), 아래는 이름(갈무리11)과 설명 */
.td-grid { display: grid; gap: 14px; margin: 6px 0 0; padding: 0; list-style: none; }
.td-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.td-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.td-card { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 16px; background: var(--card); overflow: hidden; }
.td-card__art { height: 140px; display: flex; align-items: center; justify-content: center; background: var(--night); }
.td-card__art--sky { background: #3E9BE0; }
.td-card__art img { display: block; }
.td-card:hover .td-card__art img { transform: translateY(-6px); } /* 한 칸(6px) 뚝 뛰기 */
.td-card__text { flex: 1; display: flex; flex-direction: column; gap: 8px; padding: 14px 16px 16px; }
.td-card__name { font-family: 'Galmuri11', var(--font-body); font-size: 24px; line-height: 1.2; color: var(--fg); }
.td-card__desc { font-size: 14px !important; line-height: 1.7 !important; color: var(--muted); word-break: keep-all; }
.td-card__tag { align-self: flex-start; margin-top: auto; padding: 4px 9px; border-radius: 6px; background: var(--bubble); color: #6b4c08; font-family: 'Galmuri11', var(--font-body); font-size: 12px; }
.td-grow { display: flex; align-items: center; gap: 12px; margin: 6px 0 0; padding: 0; list-style: none; }
.td-grow .td-card { flex: 1; min-width: 0; align-self: stretch; }
.td-grow__arrow { flex-shrink: 0; font-family: 'Galmuri11', var(--font-body); font-size: 24px; color: var(--crest); }
.td-sizes { display: flex; align-items: flex-end; gap: 32px; flex-wrap: wrap; margin-top: 6px; }
.td-sizes figure { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.td-sizes img { display: block; }
.td-sizes figcaption { font-family: 'Galmuri11', var(--font-body); font-size: 12px; color: var(--muted); }

@media (max-width: 900px) {
  .td-grid--4, .td-grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .td-grow { flex-direction: column; align-items: stretch; }
  .td-grow__arrow { align-self: center; transform: rotate(90deg); }
}
@media (max-width: 400px) {
  .td-grid--4, .td-grid--3 { grid-template-columns: 1fr; }
}
