/* 팁톤 — 라이트 + 인디고, 생활 계산기 허브 (v tt1) */
* { margin: 0; padding: 0; box-sizing: border-box; }
:root {
  --bg: #f5f7fb; --card: #ffffff; --ink: #1d2433; --sub: #5d677c; --dim: #98a1b3;
  --acc: #3b5bfd; --acc-soft: #eceffe; --line: #e5e9f2; --yellow: #ffd23e;
}
body { font-family: "Noto Sans KR", -apple-system, sans-serif; background: var(--bg); color: var(--ink); line-height: 1.7; font-size: 15.5px; word-break: keep-all; overflow-wrap: break-word; }
a { color: inherit; text-decoration: none; }
.tt-wrap { max-width: 960px; margin: 0 auto; padding: 0 20px; }

/* 상단 */
.tt-top { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 10; }
.tt-topin { display: flex; align-items: center; justify-content: space-between; height: 58px; }
.tt-logo { font-size: 23px; font-weight: 900; letter-spacing: -1px; }
.tt-logo em { font-style: normal; color: var(--acc); }
.tt-nav { display: flex; gap: 4px; overflow-x: auto; }
.tt-nav a { font-size: 13.5px; color: var(--sub); padding: 6px 10px; border-radius: 8px; white-space: nowrap; }
.tt-nav a:hover { background: var(--acc-soft); color: var(--acc); }
.tt-nav a.on { background: var(--acc); color: #fff; font-weight: 700; }

/* 히어로 */
.tt-hero { text-align: center; padding: 46px 0 10px; }
.tt-hero h1 { font-size: clamp(24px, 4vw, 34px); font-weight: 900; letter-spacing: -1px; line-height: 1.4; }
.tt-hero h1 em { font-style: normal; color: var(--acc); }
.tt-hero p { color: var(--sub); font-size: 15px; margin-top: 12px; max-width: 560px; margin-left: auto; margin-right: auto; }
.tt-hero-safe { display: inline-block; margin-top: 14px; font-size: 13px; color: #2c7a4b; background: #e8f6ee; border-radius: 999px; padding: 6px 14px; }

/* 카드 그리드 */
.tt-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 14px; padding: 26px 0 10px; }
.tt-grid-sm { padding-top: 14px; }
.tt-card { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 20px 18px; transition: transform .15s, box-shadow .15s, border-color .15s; display: flex; flex-direction: column; gap: 6px; }
.tt-card:hover { transform: translateY(-3px); box-shadow: 0 12px 26px rgba(59,91,253,.10); border-color: #c9d4ff; }
.tt-card b { font-size: 16.5px; letter-spacing: -0.3px; }
.tt-card p { font-size: 13px; color: var(--sub); line-height: 1.55; flex: 1; }
.tt-card-ic { display: inline-flex; width: 40px; height: 40px; border-radius: 12px; background: var(--acc-soft); color: var(--acc); align-items: center; justify-content: center; margin-bottom: 4px; }
.tt-ic { width: 22px; height: 22px; }
.tt-go { font-size: 12.5px; color: var(--acc); font-weight: 700; }

/* 도구 페이지 */
.tt-crumb { font-size: 13px; color: var(--dim); padding: 18px 0 4px; }
.tt-crumb a:hover { color: var(--acc); }
.tt-tool-head { text-align: center; padding: 16px 0 6px; }
.tt-tool-head h1 { font-size: clamp(22px, 3.4vw, 30px); font-weight: 900; letter-spacing: -0.8px; margin-top: 8px; }
.tt-tool-head p { color: var(--sub); font-size: 14.5px; margin-top: 6px; }
.tt-tool { max-width: 760px; margin: 18px auto 0; }
.tt-box { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 22px; margin-bottom: 16px; }
.tt-box h2 { font-size: 16px; font-weight: 800; letter-spacing: -0.3px; margin-bottom: 14px; }
.tt-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; }
.tt-f { flex: 1; min-width: 130px; display: flex; flex-direction: column; gap: 5px; }
.tt-f span { font-size: 12.5px; color: var(--sub); }
.tt-f input, .tt-f select { border: 1.5px solid var(--line); border-radius: 10px; padding: 10px 12px; font-size: 15px; font-family: inherit; background: #fff; color: var(--ink); width: 100%; }
.tt-f input:focus, .tt-f select:focus { outline: none; border-color: var(--acc); }
.tt-ta { width: 100%; border: 1.5px solid var(--line); border-radius: 12px; padding: 14px; font-size: 15px; font-family: inherit; line-height: 1.8; resize: vertical; background: #fff; color: var(--ink); }
.tt-ta:focus { outline: none; border-color: var(--acc); }
.tt-ans { margin-top: 12px; background: var(--acc-soft); border-radius: 10px; padding: 12px 14px; font-size: 15.5px; }
.tt-ans b { color: var(--acc); }
.tt-ans-sub { background: #f6f8fb; font-size: 13.5px; color: var(--sub); }
.tt-dim { font-size: 12.5px; color: var(--dim); margin-top: 8px; }
.tt-stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; margin-top: 14px; }
.tt-stat { background: #f6f8fb; border: 1px solid var(--line); border-radius: 12px; padding: 12px; text-align: center; }
.tt-stat b { display: block; font-size: 19px; letter-spacing: -0.5px; }
.tt-stat span { font-size: 12px; color: var(--sub); }
.tt-stat-hi { background: var(--acc-soft); border-color: #c9d4ff; }
.tt-stat-hi b { color: var(--acc); }
.tt-btn { background: var(--acc); color: #fff; border: 0; border-radius: 10px; padding: 11px 18px; font-size: 14.5px; font-weight: 700; font-family: inherit; cursor: pointer; }
.tt-btn:hover { filter: brightness(1.08); }
.tt-btn-sub { background: #fff; color: var(--acc); border: 1.5px solid var(--acc); }
.tt-checks { display: flex; flex-wrap: wrap; gap: 14px; margin: 8px 0 14px; font-size: 14px; color: var(--sub); }
.tt-checks input { accent-color: var(--acc); margin-right: 4px; }
.tt-pw-list { margin-top: 14px; display: flex; flex-direction: column; gap: 8px; }
.tt-pw { display: flex; align-items: center; gap: 10px; background: #f6f8fb; border: 1px solid var(--line); border-radius: 10px; padding: 9px 12px; }
.tt-pw code { flex: 1; font-size: 15px; letter-spacing: 0.5px; word-break: break-all; }
.tt-copy { background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 5px 10px; font-size: 12.5px; cursor: pointer; color: var(--sub); font-family: inherit; }
.tt-copy:hover { border-color: var(--acc); color: var(--acc); }
.tt-lotto { display: flex; flex-direction: column; gap: 8px; margin-top: 14px; }
.tt-lotto-row { display: flex; gap: 8px; }
.tt-ball { width: 38px; height: 38px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; color: #fff; font-weight: 800; font-size: 14.5px; }
.tt-ball-y { background: #f0b429; } .tt-ball-b { background: #4a7dff; } .tt-ball-r { background: #ef5b5b; } .tt-ball-g { background: #8f8f8f; } .tt-ball-k { background: #4caf6e; }

/* 안내/FAQ */
.tt-note { max-width: 760px; margin: 8px auto 0; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 22px; font-size: 14.5px; color: var(--sub); }
.tt-note h2 { font-size: 15.5px; color: var(--ink); font-weight: 800; margin-bottom: 10px; }
.tt-note h3 { font-size: 14.5px; color: var(--ink); margin: 14px 0 4px; }
.tt-note ul { margin: 0 0 4px 20px; }
.tt-note li { margin-bottom: 6px; }

/* 팁 노트 */
.tt-tips { padding: 20px 0; }
.tt-tips h2, .tt-others h2 { font-size: 18px; font-weight: 800; letter-spacing: -0.3px; }
.tt-tip-list { display: flex; flex-direction: column; gap: 10px; margin-top: 12px; }
.tt-tip-list a { display: flex; align-items: baseline; gap: 12px; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 13px 16px; font-size: 14px; }
.tt-tip-list a:hover { border-color: #c9d4ff; }
.tt-tip-list b { white-space: nowrap; }
.tt-tip-list span { flex: 1; color: var(--sub); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tt-tip-list time { font-size: 12px; color: var(--dim); white-space: nowrap; }
.tt-others { max-width: 760px; margin: 26px auto 0; }

/* 글 지면 */
.tt-post { max-width: 760px; margin: 0 auto; background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: clamp(24px, 4vw, 40px); }
.tt-post h1 { font-size: clamp(22px, 3.2vw, 28px); font-weight: 900; letter-spacing: -0.7px; line-height: 1.45; }
.tt-post-date { color: var(--dim); font-size: 13px; margin: 8px 0 20px; }
.tt-body { font-size: 15.5px; line-height: 1.9; }
.tt-body p { margin: 0 0 16px; }
.tt-body h2 { font-size: 19px; margin: 30px 0 12px; letter-spacing: -0.4px; }
.tt-body ul, .tt-body ol { margin: 0 0 16px 22px; }
.tt-body li { margin-bottom: 7px; }
.tt-body table { border-collapse: collapse; margin: 0 0 16px; font-size: 14px; width: 100%; }
.tt-body th, .tt-body td { border: 1px solid var(--line); padding: 8px 12px; text-align: left; }
.tt-body th { background: #f6f8fb; }

.tt-empty { text-align: center; padding: 80px 0; color: var(--sub); }
.tt-empty b { display: block; font-size: 20px; color: var(--ink); margin-bottom: 8px; }
.tt-empty a { color: var(--acc); }

/* 푸터 */
.tt-foot { border-top: 1px solid var(--line); background: #fff; margin-top: 46px; padding: 26px 0 40px; text-align: center; color: var(--sub); font-size: 13px; }
.tt-foot-name { font-size: 16px; font-weight: 900; color: var(--ink); }
.tt-foot-name em { font-style: normal; color: var(--acc); }
.tt-foot-name span { font-weight: 400; font-size: 13px; color: var(--sub); }
.tt-foot-safe { margin: 8px 0 6px; font-size: 12.5px; color: #2c7a4b; }
.tt-foot nav { margin: 6px 0; }
.tt-foot a:hover { color: var(--acc); }
.tt-cr { color: var(--dim); font-size: 12px; }

@media (max-width: 640px) {
  .tt-nav a:nth-child(n+4) { display: none; }
  .tt-nav a:last-child { display: inline-block; }
  .tt-hero { padding-top: 32px; }
  .tt-ball { width: 33px; height: 33px; font-size: 13px; }
}
