/* 학원레이더 Phase 1 — 비교/순위 강조 */
.hgw-wrap{max-width:900px;margin:0 auto;padding:16px}
.hgw-breadcrumb{font-size:.86rem;color:#6b7280;margin:8px 0 16px}
.hgw-breadcrumb .cur{color:#111827;font-weight:600}
.hgw-breadcrumb a{color:#2563eb;text-decoration:none}

.hgw-hero h1,.hgw-detail-hero h1{font-size:1.5rem;line-height:1.35;margin:.2em 0}
.hgw-hero h1 em{color:#2563eb;font-style:normal}
.hgw-sub{color:#374151;margin:.3em 0}
.hgw-note{font-size:.8rem;color:#9ca3af;margin-top:.4em}
.hgw-addr{color:#6b7280;font-size:.9rem}

/* 큰 숫자 3분할 */
.hgw-bignum{display:flex;gap:12px;margin:16px 0;flex-wrap:wrap}
.hgw-bignum .bn{flex:1;min-width:120px;background:#f9fafb;border:1px solid #eef0f3;
  border-radius:14px;padding:14px 16px}
.bn-label{display:block;font-size:.78rem;color:#6b7280;margin-bottom:4px}
.bn-value{font-size:1.6rem;font-weight:800;color:#111827}
.bn-value small{font-size:.9rem;font-weight:600;color:#9ca3af;margin-left:2px}
.bn-value .up{color:#dc2626}.bn-value .down{color:#059669}

/* 표 */
.hgw-table-scroll{overflow-x:auto;margin:12px 0}
.hgw-table{width:100%;border-collapse:collapse;font-size:.92rem}
.hgw-table th,.hgw-table td{padding:11px 10px;text-align:left;border-bottom:1px solid #f0f1f4}
.hgw-table thead th{font-size:.8rem;color:#6b7280;font-weight:600;background:#fafbfc}
.hgw-table .c-rank{width:56px;text-align:center}
.hgw-table .c-hourly,.hgw-table .c-fee,.hgw-table .c-diff{white-space:nowrap;text-align:right}
.hgw-table .c-hourly b{font-size:1.02rem;color:#111827}
.hgw-table tr.me{background:#eff6ff}
.hgw-table tr.me td{border-color:#dbeafe}
.me-tag{display:inline-block;font-size:.7rem;color:#2563eb;background:#dbeafe;
  border-radius:6px;padding:1px 6px;margin-left:6px;vertical-align:middle}
.hgw-table a{color:#1d4ed8;text-decoration:none}

.rank-badge{display:inline-flex;align-items:center;justify-content:center;
  width:26px;height:26px;border-radius:8px;font-weight:800;font-size:.85rem;
  background:#f3f4f6;color:#374151}
.rank-badge.r1{background:#fde68a;color:#92400e}
.rank-badge.r2{background:#e5e7eb;color:#374151}
.rank-badge.r3{background:#fed7aa;color:#9a3412}

.pill{font-size:.78rem;border-radius:999px;padding:2px 9px;white-space:nowrap}
.pill.up{background:#fee2e2;color:#b91c1c}
.pill.down{background:#d1fae5;color:#047857}
.pill.mid{background:#f3f4f6;color:#6b7280}
.tag{font-size:.75rem;color:#9ca3af;background:#f3f4f6;border-radius:6px;padding:1px 7px}

/* 결측/claim */
.hgw-missing{background:#fffbeb;border:1px solid #fde68a;border-radius:14px;
  padding:16px;margin:14px 0}
.hgw-unpriced{margin-top:24px}
.hgw-unpriced h2{font-size:1.05rem}
.hgw-unpriced ul{list-style:none;padding:0;margin:8px 0}
.hgw-unpriced li{display:flex;gap:8px;align-items:center;padding:7px 0;
  border-bottom:1px solid #f4f5f7}
.hgw-claim-hook{margin-top:12px;font-size:.9rem;color:#6b7280}
.hgw-claim-hook .claim,.hgw-claim .claim{color:#2563eb;font-weight:600;text-decoration:none}

.hgw-claim{margin:28px 0;padding:18px;background:#f9fafb;border:1px dashed #d1d5db;
  border-radius:14px;text-align:center}
.hgw-claim p{margin:0 0 10px;color:#374151}

.btn{display:inline-block;border-radius:10px;padding:10px 18px;font-weight:700;
  text-decoration:none;font-size:.95rem}
.btn-primary{background:#2563eb;color:#fff}
.btn-outline{background:#fff;color:#2563eb;border:1.5px solid #2563eb}
.hgw-compare{margin-top:28px}.hgw-compare h2{font-size:1.1rem}
.hgw-empty{color:#9ca3af;padding:24px 0}

@media(max-width:520px){
  .hgw-hero h1,.hgw-detail-hero h1{font-size:1.25rem}
  .bn-value{font-size:1.3rem}
}

/* ── 관리 대시보드 ── */
.hgw-manage h1{font-size:1.5rem;margin:8px 0 16px}
.hgw-stats{display:flex;gap:12px;margin-bottom:18px;flex-wrap:wrap}
.hgw-stats .st{flex:1;min-width:110px;background:#f9fafb;border:1px solid #eef0f3;
  border-radius:12px;padding:12px 14px;color:#6b7280;font-size:.82rem}
.hgw-stats .st span{display:block;font-size:1.5rem;font-weight:800;color:#111827}
.hgw-card{background:#fff;border:1px solid #eef0f3;border-radius:14px;
  padding:16px 18px;margin-bottom:16px}
.hgw-card h2{font-size:1.05rem;margin:0 0 10px}
.hgw-card .row{display:flex;gap:8px;flex-wrap:wrap}
.hgw-card input[type=text],.hgw-card select{flex:1;min-width:200px;padding:9px 12px;
  border:1px solid #d1d5db;border-radius:9px;font-size:.95rem}
.hgw-card .hint{font-size:.8rem;color:#9ca3af;margin:.5em 0 0}
.badge{font-size:.75rem;border-radius:999px;padding:2px 9px;font-weight:700}
.badge.b-pending{background:#f3f4f6;color:#6b7280}
.badge.b-running{background:#dbeafe;color:#1d4ed8}
.badge.b-done{background:#d1fae5;color:#047857}
.badge.b-error{background:#fee2e2;color:#b91c1c}
.st-msg td{color:#b91c1c;font-size:.8rem;background:#fff5f5;white-space:pre-wrap}
.live-dot{display:inline-block;width:9px;height:9px;border-radius:50%;
  background:#22c55e;margin-left:6px;transition:opacity .3s}

.hgw-sortbar{font-size:.85rem;color:#6b7280;margin:6px 0 4px}
.hgw-sortbar .sb{display:inline-block;padding:3px 10px;margin-left:4px;border-radius:8px;
  text-decoration:none;color:#4b5563;background:#f3f4f6}
.hgw-sortbar .sb.active{background:#2563eb;color:#fff;font-weight:700}

/* ── 면책조항 ── */
.hgw-disclaimer{margin:32px 0 8px;padding:16px 18px;background:#fafbfc;
  border:1px solid #eef0f3;border-radius:12px}
.hgw-disclaimer h3{font-size:.9rem;color:#6b7280;margin:0 0 8px}
.hgw-disclaimer ul{margin:0;padding-left:18px}
.hgw-disclaimer li{font-size:.8rem;color:#9ca3af;line-height:1.7;margin:3px 0}
.hgw-disclaimer a{color:#6b7280}
