/* 띠별 운세 — /tti/ 열두 띠 한 쪽과 /tti/<띠>/ 띠마다 한 쪽(대표 2026-10-20 배포).
   글은 왼쪽 축. 칩 색은 둘뿐이다: 합·삼합·같은 띠는 벽돌빛 옅은 바탕, 충·원진·그 밖은 종이색. 겁주는 색은 쓰지 않는다.
   띠 동물은 그림 글자(이모지)를 오행 빛 둥근 바탕에 얹는다. 바탕색은 대문 차림표 아이콘과 같은 결이다. */
.tti-main { padding: 16px 0 40px; }
.tti-layout { display: grid; gap: 12px; width: min(calc(100% - 36px), 640px); margin-inline: auto; }
.tti-card {
    min-width: 0; background: var(--jb-card-warm, #FFFBF3);
    border: 1px solid var(--jb-line-2, #D3B995); border-radius: 18px;
}

.tti-intro { display: grid; gap: 10px; padding: clamp(20px, 4vw, 28px); }
.tti-date { margin: 0; font: 500 13px/1.5 "Noto Sans KR", sans-serif; color: var(--jb-ink-faint); font-variant-numeric: tabular-nums; }
.tti-intro h1 {
    margin: 0; font: 400 clamp(28px, 6.2vw, 34px)/1.25 "Gowun Dodum", serif;
    letter-spacing: -.01em; -webkit-text-stroke: .4px currentColor; color: var(--jb-ink);
}
.tti-title { display: flex; align-items: center; gap: 12px; }
.tti-lead { margin: 0; font-size: 15px; line-height: 1.75; color: var(--jb-ink-soft); text-wrap: pretty; }
.tti-years { margin: 0; font: 500 14px/1.5 "Noto Sans KR", sans-serif; color: var(--jb-ink-soft); font-variant-numeric: tabular-nums; }

/* 입춘 안내 — 띠 찾기 칸 대신 한 줄(대표 2026-10-20 「입춘 날짜 기준으로 가른다고 안내하면 된다」) */
.tti-spring { margin: 4px 0 0; padding-top: 14px; border-top: 1px solid var(--jb-line-3); font-size: 13.5px; line-height: 1.7; color: var(--jb-ink-soft); text-wrap: pretty; }
.tti-spring b { color: var(--jb-ink); }
.tti-spring.is-small { margin: 0; padding-top: 0; border-top: 0; font-size: 12.5px; color: var(--jb-ink-faint); }

/* 띠 동물 */
.tti-ic {
    display: inline-grid; place-items: center; flex: 0 0 auto; width: 38px; height: 38px; border-radius: 50%;
    background: var(--bg, var(--jb-chip)); font-size: 21px; line-height: 1;
}
.tti-ic.is-big { width: 52px; height: 52px; font-size: 29px; }

/* 열두 띠 목록 */
.tti-board { padding: 4px clamp(16px, 3vw, 22px); }
.tti-list { list-style: none; margin: 0; padding: 0; }
.tti-list li + li { border-top: 1px solid var(--jb-rule); }
.tti-row {
    display: grid; grid-template-columns: 38px minmax(0, 1fr);
    grid-template-areas: "ic name" ". say"; column-gap: 12px; row-gap: 4px; align-items: center;
    padding: 14px 0; color: inherit; text-decoration: none;
}
.tti-row .tti-ic { grid-area: ic; }
.tti-name { grid-area: name; display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; min-width: 0; }
.tti-name b { font: 400 19px/1.3 "Gowun Dodum", serif; color: var(--jb-ink); -webkit-text-stroke: .3px currentColor; }
.tti-name small { font: 500 12px/1.45 "Noto Sans KR", sans-serif; color: var(--jb-ink-faint); font-variant-numeric: tabular-nums; }
/* 칩이 길어져(육합(손잡는 날)) 운세 글 맨 앞에 칩을 둔다 — 띠 이름 줄이 좁아지지 않게. */
.tti-say { grid-area: say; font-size: 14.5px; line-height: 1.75; color: var(--jb-ink-soft); text-wrap: pretty; }
.tti-say .tti-tag { margin-right: 6px; vertical-align: 1px; }
.tti-line:empty { display: none; }
.tti-row:hover .tti-name b { color: var(--jb-brick-deep); }
.tti-row:focus-visible { outline: 2px solid var(--jb-brick); outline-offset: 2px; border-radius: 8px; }

/* 갈래 칩 */
.tti-tag {
    display: inline-flex; align-items: center; height: 24px; padding: 0 10px; border-radius: 999px;
    background: var(--jb-brick-soft); color: var(--jb-brick-deep);
    font: 700 12px/1 "Noto Sans KR", sans-serif; white-space: nowrap;
}
.tti-tag.is-quiet { background: var(--jb-chip); color: var(--jb-ink-soft); }
.tti-tag[hidden] { display: none; }

/* 띠 한 쪽 */
.tti-crumb { padding: 0 2px; font: 500 13px/1.5 "Noto Sans KR", sans-serif; color: var(--jb-ink-faint); }
.tti-crumb a { color: var(--jb-ink-soft); text-decoration: none; border-bottom: 1px solid var(--jb-line-3); }
.tti-part { display: grid; gap: 10px; padding: clamp(18px, 4vw, 24px); }
.tti-part header { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.tti-part h2 { margin: 0; font: 400 21px/1.3 "Gowun Dodum", serif; color: var(--jb-ink); -webkit-text-stroke: .3px currentColor; }
.tti-part p { margin: 0; font-size: 15.5px; line-height: 1.8; color: var(--jb-ink); text-wrap: pretty; }
.tti-part .tti-why { font-size: 12.5px; line-height: 1.6; color: var(--jb-ink-faint); }
.tti-part .tti-why:empty { display: none; }
.tti-years-list { list-style: none; margin: 4px 0 0; padding: 14px 0 0; border-top: 1px dashed var(--jb-line-3); display: grid; gap: 9px; }
.tti-years-list:empty { display: none; }
.tti-years-list li { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 6px; font-size: 14.5px; line-height: 1.6; color: var(--jb-ink-soft); }
.tti-years-list b { font: 700 13px/1.8 "Noto Sans KR", sans-serif; color: var(--jb-ink); font-variant-numeric: tabular-nums; }
.tti-more { justify-self: start; font: 700 14px/1.5 "Noto Sans KR", sans-serif; color: var(--jb-brick-deep); text-decoration: none; border-bottom: 1px solid currentColor; }

/* 다음 걸음 */
.tti-next { display: grid; gap: 10px; padding: clamp(18px, 4vw, 24px); }
.tti-next p { margin: 0; font-size: 14.5px; line-height: 1.7; color: var(--jb-ink-soft); text-wrap: pretty; }
.tti-go {
    display: flex; align-items: center; justify-content: center; height: 46px; border-radius: 999px;
    background: var(--jb-brick); color: #fff; font: 700 15px/1 "Noto Sans KR", sans-serif; text-decoration: none;
}
.tti-go.is-quiet { background: transparent; color: var(--jb-brick-deep); border: 1px solid var(--jb-brick); }
.tti-go:focus-visible { outline: 2px solid var(--jb-brick-deep); outline-offset: 2px; }
.tti-others { display: flex; flex-wrap: wrap; gap: 6px; padding: 2px 2px 8px; }
.tti-others a {
    display: inline-flex; align-items: center; gap: 5px; padding: 6px 12px 6px 8px; border-radius: 999px;
    border: 1px solid var(--jb-line-3); background: var(--jb-card-warm); color: var(--jb-ink-soft);
    font: 500 13px/1 "Noto Sans KR", sans-serif; text-decoration: none;
}
.tti-ic.is-small { width: 24px; height: 24px; font-size: 14px; }

/* 띠 궁합표 — 표 한 장(내 띠 × 네 갈래)과 「내 띠로 보기」 목록 */
.tti-part h3 { margin: 0; font: 700 15px/1.5 "Noto Sans KR", sans-serif; color: var(--jb-ink); }
.tti-table-wrap { overflow-x: auto; margin: 0 -4px; }
.tti-table { width: 100%; min-width: 320px; border-collapse: collapse; font-size: 13.5px; line-height: 1.45; font-variant-numeric: tabular-nums; }
.tti-table th, .tti-table td { padding: 8px 6px; border-bottom: 1px solid var(--jb-rule); text-align: left; vertical-align: middle; color: var(--jb-ink); }
.tti-table thead th { font: 700 11.5px/1.35 "Noto Sans KR", sans-serif; color: var(--jb-ink-faint); vertical-align: bottom; }
.tti-table tbody th { white-space: nowrap; font-weight: 700; }
.tti-table tbody th .tti-ic { margin-right: 6px; vertical-align: middle; }
.tti-legend { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 8px; font-size: 13.5px; line-height: 1.55; color: var(--jb-ink-soft); }
.tti-legend li { display: grid; grid-template-columns: 46px minmax(0, 1fr); gap: 10px; align-items: start; }
.tti-legend .tti-tag { justify-self: start; }
.tti-legend li > span { padding-top: 2px; text-wrap: pretty; }
.tti-legend b { color: var(--jb-ink); }
.tti-part .tti-note { font-size: 13.5px; line-height: 1.65; color: var(--jb-ink-soft); }
.tti-picks { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.tti-picks button {
    display: inline-flex; align-items: center; justify-content: center; gap: 4px; min-width: 0; min-height: 40px; padding: 6px 4px;
    border: 1px solid var(--jb-line-3); border-radius: 12px; background: var(--jb-card-warm); color: var(--jb-ink-soft);
    font: 500 13.5px/1.2 "Noto Sans KR", sans-serif; cursor: pointer;
}
.tti-picks button[aria-pressed="true"] { border-color: var(--jb-brick); background: var(--jb-brick-soft); color: var(--jb-brick-deep); font-weight: 700; }
.tti-picks button:focus-visible { outline: 2px solid var(--jb-brick); outline-offset: 2px; }
.tti-pairs-box { display: grid; gap: 10px; padding-top: 6px; }
.tti-pairs-box[hidden] { display: none; }
.tti-pairs { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.tti-pairs li { display: grid; gap: 6px; justify-items: start; }
.tti-pairs li p { font-size: 14.5px; line-height: 1.7; color: var(--jb-ink-soft); }

/* 표 머리와 설명 칩은 갈래마다 한 색(대표 2026-10-20 「띠 육합 삼합 충 원진 글씨 색 다르게」). 색은 대문 차림표 아이콘 결. */
.tti-table thead th { font-size: 12.5px; color: var(--jb-ink); }
.tti-table thead .is-he { color: #B33A28; }
.tti-table thead .is-sanhe { color: #8A630F; }
.tti-table thead .is-chong { color: #3F5F86; }
.tti-table thead .is-wonjin { color: #7E4A73; }
.tti-legend .tti-tag.is-he { background: #FBE6E1; color: #B33A28; }
.tti-legend .tti-tag.is-sanhe { background: #FBF1D6; color: #8A630F; }
.tti-legend .tti-tag.is-chong { background: #E3EAF3; color: #3F5F86; }
.tti-legend .tti-tag.is-wonjin { background: #F2E3EF; color: #7E4A73; }

/* 띠 이름은 띠의 오행 빛(생성기가 --tc 를 단다). */
.tti-name b, .tti-title h1 { color: var(--tc, var(--jb-ink)); }
