/* 테스트·랭킹 테마 — style.css·posts.css 뒤에 덮어씀 (scripts: split_sites.py 가 생성) */
:root {
  color-scheme: light;
  --bg: #f6f2ff;
  --bg-2: #ece4ff;
  --panel: #ffffff;
  --line: #e0d5fa;
  --text: #2a1f4d;
  --muted: #776c99;
  --accent: #7c3aed;
  --accent-2: #ec4899;
  --accent-3: #f59e0b;
  --on-accent: #ffffff;
  --radius: 16px;
  --display: 'Black Han Sans', sans-serif;
  --body: 'Gowun Dodum', 'Noto Sans KR', sans-serif;
}
body { font-family: var(--body); background-size: auto; background-position: 0 0; background-image: radial-gradient(circle at 10% 10%, rgba(236,72,153,.18), transparent 35%), radial-gradient(circle at 90% 30%, rgba(124,58,237,.18), transparent 40%), radial-gradient(circle at 50% 100%, rgba(245,158,11,.12), transparent 40%); }
body::before { display: none; }
h1, h2, h3, .logo, .tool-head h1, .post-head h1 { font-family: var(--display); }
.chip.on, .btn.primary, .seg input:checked + span, .game-seg button.on, .dpad button:active, .sn-links a.on, .sv-opt.on, .sv-tcard .sv-done, .post-cat:hover, ::selection { color: var(--on-accent) !important; }
.sv-opt.on .k { background: var(--on-accent); color: var(--accent); border-color: var(--on-accent); }
.logo .site-tag { margin-left: 8px; padding: 2px 9px; border-radius: 999px; font-size: 12px; font-weight: 700;
  background: var(--accent); color: var(--on-accent); letter-spacing: 0; font-family: var(--body); }
.site-hero { margin: 28px 0 8px; padding: 28px 24px; border-radius: var(--radius); background: linear-gradient(120deg, #7c3aed, #ec4899); color: #fff; box-shadow: 0 12px 30px rgba(124,58,237,.25); }
.site-hero .eyebrow { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; opacity: .85; }
.site-hero h1 { margin: 6px 0 8px; font-size: clamp(26px, 5vw, 40px); line-height: 1.2; }
.site-hero p { margin: 0; max-width: 640px; opacity: .92; }
.site-hero .hero-links { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 8px; }
.site-hero .hero-links a { padding: 8px 14px; border-radius: 999px; font-weight: 700; font-size: 13px; background: #fff; color: #7c3aed; }
.site-hero .hero-links a:hover { text-decoration: none; filter: brightness(1.08); }
.latest-posts { margin: 28px 0; }
.latest-posts ol { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.latest-posts li a { display: block; height: 100%; padding: 14px 16px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); color: var(--text); }
.latest-posts li a:hover { border-color: var(--accent); text-decoration: none; }
.latest-posts time { display: block; font-size: 11.5px; color: var(--muted); }
.latest-posts b { display: block; margin: 4px 0; line-height: 1.4; }
.latest-posts span { display: block; font-size: 12.5px; color: var(--muted); line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.latest-posts .all { display: inline-block; margin-top: 12px; font-weight: 700; }
.ad-kakao, .ad-pair, .ad-rail, ins.adsbygoogle { display: none !important; }  /* 광고 단위는 tool.smithlab.co.kr 전용이라 숨김 */
.sn-cat-home { display: block; padding: 10px 14px; font-size: 13px; color: var(--muted); }
h1, h2, h3 { font-weight: 400; letter-spacing: 0; } .card { box-shadow: 0 6px 18px rgba(124,58,237,.08); }

/* 브랜드 로고·패밀리 사이트 */
.logo .brand-name { font-family: var(--display); font-size: 20px; letter-spacing: -.01em; white-space: nowrap; }
@media (max-width: 480px) { .logo .brand-name { font-size: 16px; } }
.logo-img { border-radius: 8px; }
.family { margin: 40px 0 24px; }
.fam-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; margin-top: 12px; }
.fam-card { display: flex; align-items: center; gap: 10px; padding: 10px 12px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); color: var(--text); }
.fam-card:hover { border-color: var(--accent); text-decoration: none; }
.fam-card.on { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.fam-card .fam-mark { flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 8px; background: var(--accent); color: var(--on-accent); font-weight: 800; font-size: 14px; }
.fam-card b { display: block; font-size: 14px; line-height: 1.2; }
.fam-card small { display: block; font-size: 11.5px; color: var(--muted); }
.fam-card > span + b { margin-right: auto; }
.fam-card { flex-wrap: wrap; } .fam-card b, .fam-card small { flex-basis: calc(100% - 40px); margin-left: 0; }
/* 합친 사이트 홈의 묶음 카드 */
.lab-sections { margin: 28px 0; scroll-margin-top: 80px; }
.sec-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; margin-top: 12px; }
.sec-card { display: grid; grid-template-columns: 34px 1fr; column-gap: 10px; align-items: center; padding: 12px 14px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); color: var(--text); }
.sec-card:hover { border-color: var(--accent); text-decoration: none; }
.sec-card .sec-ico { grid-row: span 2; font-size: 24px; line-height: 1; text-align: center; }
.sec-card b { font-size: 15px; line-height: 1.25; } .sec-card small { font-size: 12px; color: var(--muted); }
.latest-posts { scroll-margin-top: 80px; } .latest-posts a.all { display: inline-block; margin: 8px 12px 0 0; }
