/* =========================================================
   타로 리딩 사례  (/{lang}/tarot/cases…)
   tarot-guide.css 위에 얹어 씁니다.
   ========================================================= */

.tk-notice {
    margin: 10px 0 0;
    padding: 9px 12px;
    border-radius: 12px;
    background: var(--surface-hover, rgba(0, 0, 0, .04));
    font-size: 12px;
    line-height: 1.6;
    color: var(--text-soft);
    word-break: keep-all;
}

.tk-h { margin: 0 0 6px; font-size: 15px; font-weight: 900; letter-spacing: -.01em; }

/* ---------- 목록 ---------- */
.tk-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.tk-item {
    display: flex;
    align-items: center;
    gap: 12px;
    height: 100%;
    padding: 12px 14px;
    color: var(--text);
    text-decoration: none;
    transition: transform .15s ease, border-color .15s ease;
}
.tk-item:hover { transform: translateY(-2px); border-color: var(--tarot-accent, #52b788); }
.tk-item img { flex: 0 0 auto; width: 46px; height: auto; border-radius: 6px; box-shadow: 0 4px 10px rgba(0, 0, 0, .18); }
.tk-item-copy { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.tk-item-copy b { font-size: 14px; font-weight: 900; line-height: 1.4; word-break: keep-all; }
.tk-item-q { font-size: 12.5px; line-height: 1.5; color: var(--text-soft); word-break: keep-all; }
.tk-item-copy small { font-size: 11px; font-weight: 800; color: var(--tarot-accent-strong, var(--primary)); }
.tk-item-go { flex: 0 0 auto; font-weight: 900; color: var(--tarot-accent-strong, var(--primary)); }
.tk-list-compact .tk-item img { width: 36px; }
.tk-list-compact .tk-item-copy b { font-size: 13px; }

/* ---------- 질문 · 상황 ---------- */
.tk-ask { display: flex; flex-direction: column; gap: 12px; }
.tk-question { padding: 16px 18px; border-left: 4px solid var(--tarot-accent, #52b788); }
.tk-question span { display: block; font-size: 11.5px; font-weight: 900; letter-spacing: .04em; color: var(--tarot-accent-strong, var(--primary)); }
.tk-question strong { display: block; margin-top: 4px; font-size: 17px; font-weight: 900; line-height: 1.5; word-break: keep-all; }
.tk-who p { margin: 0; font-size: 14px; line-height: 1.75; word-break: keep-all; }

/* ---------- 펼친 카드 ---------- */
.tk-spread {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px 8px;
    padding: 18px 12px;
    border-radius: 20px;
    background: linear-gradient(160deg, #182536, #241d36);
}
.tk-spread-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    width: clamp(62px, calc((100% - 40px) / min(var(--n), 5)), 104px);
    color: #eef5f1;
    text-decoration: none;
    text-align: center;
}
.tk-spread-card img { width: 100%; height: auto; border-radius: 8px; box-shadow: 0 8px 18px rgba(0, 0, 0, .35); transition: transform .15s ease; }
.tk-spread-card.is-reversed img { transform: rotate(180deg); }
.tk-spread-card:hover img { transform: translateY(-3px); }
.tk-spread-card.is-reversed:hover img { transform: rotate(180deg) translateY(3px); }
.tk-spread-card small { font-size: 10.5px; font-weight: 700; line-height: 1.35; color: rgba(238, 245, 241, .82); word-break: keep-all; }
.tk-spread-n {
    position: absolute;
    top: -6px;
    left: -4px;
    z-index: 1;
    display: inline-grid;
    place-items: center;
    width: 20px;
    height: 20px;
    border-radius: 999px;
    background: #e6d399;
    color: #1d2533;
    font-size: 11px;
    font-weight: 900;
}

/* ---------- 자리별 ---------- */
.tk-reads { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.tk-read { display: flex; gap: 14px; align-items: flex-start; padding: 14px 16px; }
.tk-read-img { flex: 0 0 auto; }
.tk-read-img img { display: block; width: 58px; height: auto; border-radius: 7px; box-shadow: 0 5px 12px rgba(0, 0, 0, .2); }
.tk-read-img.is-reversed img { transform: rotate(180deg); }
.tk-read-copy { min-width: 0; }
.tk-read-pos { display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 800; color: var(--text-soft); }
.tk-read-pos em {
    display: inline-grid;
    place-items: center;
    width: 20px;
    height: 20px;
    border-radius: 999px;
    background: var(--tarot-accent-soft, rgba(82, 183, 136, .14));
    color: var(--tarot-accent-strong, var(--primary));
    font-style: normal;
    font-size: 11px;
    font-weight: 900;
}
.tk-read-copy b { display: block; margin-top: 3px; font-size: 15.5px; font-weight: 900; }
.tk-read-copy b a { color: var(--text); text-decoration: none; }
.tk-read-copy b a:hover { text-decoration: underline; }
.tk-rev {
    display: inline-block;
    margin-left: 4px;
    padding: 1px 7px;
    border-radius: 999px;
    background: rgba(192, 86, 75, .12);
    color: #b8493f;
    font-size: 11px;
    font-weight: 900;
    vertical-align: 2px;
}
html[data-theme="dark"] .tk-rev { color: #f0958b; }
.tk-read-copy p { margin: 6px 0 0; font-size: 14px; line-height: 1.75; word-break: keep-all; }

/* ---------- 흐름 · 조언 · 요령 ---------- */
.tk-sum { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.tk-box { padding: 16px 18px; }
.tk-box p { margin: 0; font-size: 14px; line-height: 1.75; word-break: keep-all; }
.tk-advice { border-color: var(--tarot-accent, #52b788); }
.tk-keep li { font-weight: 700; }
.tk-lesson {
    display: flex;
    gap: 12px;
    padding: 14px 16px;
    border-radius: 16px;
    background: rgba(201, 161, 74, .12);
    border: 1px solid rgba(201, 161, 74, .35);
}
.tk-lesson > span { font-size: 22px; line-height: 1.2; }
.tk-lesson b { display: block; font-size: 13.5px; font-weight: 900; }
.tk-lesson p { margin: 4px 0 0; font-size: 13.5px; line-height: 1.7; word-break: keep-all; }

.tk-actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin: 4px 0 6px; }

@media (max-width: 640px) {
    .tk-list,
    .tk-sum { grid-template-columns: 1fr; }
    .tk-read { gap: 11px; padding: 12px; }
    .tk-read-img img { width: 48px; }
    .tk-question strong { font-size: 15.5px; }
}


/* ===== mobile-text v1 — 휴대폰에서 작은 글씨 키우기 (자동 생성: 14px 미만만, 원래 값 → 새 값) ===== */
@media (max-width: 640px) {
  .tk-notice { font-size: 13px; } /* 12 */
  .tk-item-q { font-size: 13.5px; } /* 12.5 */
  .tk-item-copy small { font-size: 12.5px; } /* 11 */
  .tk-list-compact .tk-item-copy b { font-size: 14px; } /* 13 */
  .tk-question span { font-size: 13px; } /* 11.5 */
  .tk-spread-card small { font-size: 12px; } /* 10.5 */
  .tk-spread-n { font-size: 12.5px; } /* 11 */
  .tk-read-pos { font-size: 13px; } /* 12 */
  .tk-read-pos em { font-size: 12.5px; } /* 11 */
  .tk-rev { font-size: 12.5px; } /* 11 */
  .tk-lesson b { font-size: 14px; } /* 13.5 */
  .tk-lesson p { font-size: 14px; } /* 13.5 */
}
