/* ===== 20261014 시안 공통 (메인홈 cbt0 · 키워드 문제검색 cbt8 · 오답노트 cbt10 · 즐겨찾기 cbt17) =====
 * 기존 cbt_cbt.css 와 클래스명(.card .btn .chip .tab .row 등)이 겹치므로 본문 래퍼 .nw 아래로만 적용
 */
.nw,.util,.whead{--navy:#14253d;--ink:#1b2433;--dark:#18222f;--green:#1f8a63;--green-d:#125c41;--mint:#5fd3a2;--bg:#eef1f4;--line:#e3e7ec;--muted:#5b6676;--muted2:#6b7686;--gold:#b07400}
body.nw-body{background:#eef1f4;color:#1b2433}
.nw a{color:#1a7a57}
.nw button,.nw input{font-family:inherit}
.nw mark{background:#d7f0e4;color:#0f5a3e;padding:0 2px;border-radius:3px;font-weight:700}
.nw .sr{position:absolute;left:-9999px}
.nw h1,.nw h2,.nw h3{line-height:1.35}

/* 본문 영역 */
.nw{display:flex;flex-direction:column;gap:18px}

/* 공통 요소 */
.nw .hero{background:var(--dark);border-radius:18px;padding:28px 32px;color:#fff;display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:18px}
.nw .card{background:#fff;border-radius:16px;overflow:hidden}
.nw .btn{display:inline-flex;align-items:center;min-height:40px;padding:0 14px;border-radius:8px;border:1px solid #d5dbe2;color:#2b3546;text-decoration:none;font-size:14px;background:#fff;white-space:nowrap}
.nw .btn-g{display:inline-flex;align-items:center;min-height:40px;padding:0 14px;border-radius:8px;background:#e3f2eb;color:var(--green-d);text-decoration:none;font-size:14px;font-weight:700;white-space:nowrap}
.nw .btn-solid{display:inline-flex;align-items:center;min-height:48px;padding:0 22px;border-radius:12px;background:var(--green);color:#fff;text-decoration:none;font-size:15px;font-weight:800}
.nw .chips{display:flex;flex-wrap:wrap;gap:6px}
.nw .chip{min-height:36px;padding:0 13px;border-radius:999px;border:1px solid #d5dbe2;background:#fff;color:#3b4556;font-size:13px;cursor:pointer}
.nw .chip.on{border-color:var(--navy);background:var(--navy);color:#fff;font-weight:700}
.nw .chip.on.g{border-color:var(--green);background:#e3f2eb;color:var(--green-d)}
.nw .chip.on.y{border-color:var(--gold);background:#fff4dc;color:#6b4600}
.nw .seg{min-height:40px;padding:0 14px;border:0;border-radius:8px;background:none;color:#3b4556;font-size:14px;cursor:pointer}
.nw .seg.on{background:var(--navy);color:#fff;font-weight:700}
.nw .tabs{padding:0 24px;border-bottom:1px solid var(--line);display:flex;flex-wrap:wrap;gap:4px}
.nw .tab{min-height:44px;padding:0 14px;border:0;background:none;cursor:pointer;font-size:14px;color:var(--muted);border-bottom:2px solid transparent;margin-bottom:-1px}
.nw .tab.on{border-bottom-color:var(--green);color:var(--navy);font-weight:700}
.nw .list{list-style:none;margin:0;padding:0}
.nw .row{padding:18px 24px;border-bottom:1px solid #edf0f3;display:flex;gap:16px;align-items:flex-start}
.nw .row:hover{background:#f9fafb}
.nw .row .body{flex:1;min-width:0}
.nw .row .meta{font-size:13px;color:var(--muted);display:flex;flex-wrap:wrap;gap:6px;align-items:center}
.nw .row .t{display:block;margin-top:5px;font-size:17px;font-weight:500;line-height:1.55;color:var(--navy);text-decoration:none}
.nw .row .sub{margin-top:7px;font-size:13px;color:var(--muted2);display:flex;flex-wrap:wrap;gap:14px}
.nw .row .acts{flex:none;display:flex;gap:6px;align-items:center;flex-wrap:wrap;justify-content:flex-end}
.nw .tag{font-size:12px;font-weight:700;padding:2px 8px;border-radius:5px}
.nw .pager{padding:18px 24px 24px;display:flex;justify-content:center;gap:6px;font-size:14px}
.nw .pager a{display:inline-flex;align-items:center;justify-content:center;width:40px;height:40px;border-radius:8px;color:#2b3546;text-decoration:none}
.nw .pager a.on{background:var(--navy);color:#fff;font-weight:700}
.nw .empty{padding:40px 24px;text-align:center;font-size:15px;color:var(--muted)}
.nw .note{margin:0;font-size:12px;line-height:1.7;color:var(--muted2)}

/* 개발 주석 (화면 비노출 예정 영역) */
.nw .dev{border:2px dashed #8a94a3;border-radius:14px;background:#f8f9fb;padding:24px 28px;font-size:14px;line-height:1.75;color:#2b3546}
.nw .dev .grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(300px,1fr));gap:18px 32px}
.nw .dev h3{margin:0 0 6px;font-size:15px;font-weight:800;color:var(--navy)}
.nw .dev ul{margin:0;padding-left:18px}

/* ---------- 메인홈 (종목 선택 · cbt0) ---------- */
.util{background:#fff;border-bottom:1px solid var(--line);padding:0 32px}
.util-in{max-width:1440px;margin:0 auto;min-height:34px;display:flex;flex-wrap:wrap;gap:20px;align-items:center;font-size:12px}
.util a{color:var(--muted);text-decoration:none}
.whead{background:#fff;padding:0 32px;border-bottom:1px solid var(--line)}
.whead .top-in{max-width:1440px;margin:0 auto;min-height:68px;display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:16px}
.whead .btn{display:inline-flex;align-items:center;min-height:40px;padding:0 14px;border-radius:8px;border:1px solid #d5dbe2;color:#2b3546;text-decoration:none;font-size:14px;background:#fff;white-space:nowrap}
.nw.home{max-width:1440px;margin:0 auto;padding:28px 32px 56px;gap:28px}
.nw .homehero{background:var(--dark);border-radius:22px;padding:44px;color:#fff;display:flex;flex-wrap:wrap;gap:40px;align-items:stretch}
.nw .widget{flex:1 1 520px;min-width:0;background:#213044;border:1px solid #34465c;border-radius:18px;padding:26px;display:flex;flex-direction:column;justify-content:center;gap:18px}
.nw .wchip{min-height:36px;padding:0 12px;border-radius:999px;border:1px solid #3b4d63;background:transparent;color:#dfe7f1;font-size:13px;cursor:pointer}
.nw .wchip.on{border-color:var(--mint);background:var(--mint);color:#10261c;font-weight:700}
.nw .mode{min-height:34px;padding:0 16px;border:0;border-radius:8px;background:transparent;color:#b8c5d6;font-size:13px;cursor:pointer}
.nw .mode.on{background:var(--green);color:#fff;font-weight:700}
.nw .dir{background:#fff;border-radius:18px;padding:32px 36px}
.nw .dir-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(230px,1fr));gap:22px 28px}
.nw .dir h3{margin:0 0 8px;padding-bottom:8px;border-bottom:2px solid var(--navy);font-size:15px;font-weight:800;color:var(--navy)}
.nw .dir ul{list-style:none;margin:0;padding:0}
.nw .dir li a{display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:40px;padding:0 8px;border-radius:6px;text-decoration:none;font-size:14px}
.nw .dir li a:hover{background:#f1f5f3}
.nw .feat-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(max(420px,45%),1fr));gap:24px}
.nw .feat{background:#fff;border-radius:20px;padding:34px;border:1px solid #e1e6ec;display:flex;flex-direction:column;gap:24px}
.nw .feat .vis{border-radius:16px;padding:28px;min-height:170px;display:flex;flex-direction:column;justify-content:center;gap:10px;font-size:13px}
.nw .feat .k{font-size:13px;font-weight:800}
.nw .feat h3{margin:8px 0 10px;font-size:24px;font-weight:800;color:var(--navy)}
.nw .feat p{margin:0;font-size:14px;line-height:1.7;color:#3b4556}
.nw .num{width:22px;height:22px;border-radius:50%;background:var(--navy);color:#fff;font-size:11px;font-weight:700;display:flex;align-items:center;justify-content:center;flex:none}

@media (max-width:640px){
	.nw .feat-grid{grid-template-columns:1fr}
	.nw .homehero{padding:28px 20px}
	.nw.home{padding:20px 16px 40px}
	.util,.whead{padding:0 16px}
}
