/* =========================================================
 * /assets/css/health-kit.css (FINAL)
 * - Health Lounge / Health Links / Health Archive Links 공통 UX
 * ========================================================= */

.page-health .hk-wrap{ padding: 14px 0 34px; }

/* ===== 공통 Top Header ===== */
.page-health .hk-top{
  display:flex;
  gap:18px;
  padding:18px 16px;
  background:linear-gradient(135deg,#eef4ff,#f7fbff);
  border:1px solid #e5eefc;
  border-radius:16px;
  align-items:flex-start;
}

.page-health .hk-left{
  flex: 1 1 auto;
  min-width: 0;
}

.page-health .hk-title{
  margin:0 0 6px 0;
  font-size:26px;
  line-height:1.15;
  font-weight:900;
  color:#0f172a;
}
.page-health .hk-sub{
  margin:0;
  color:#334155;
  line-height:1.55;
  font-weight:700;
  font-size:13px;
}

/* 좌측 탭(필터) */
.page-health .hk-tabs{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin-top: 12px;
}
.page-health .hk-tab{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  height:34px;
  padding:0 12px;
  border-radius:999px;
  border:1px solid rgba(15,23,42,.10);
  background:#fff;
  text-decoration:none;
  font-weight:900;
  font-size:13px;
  color:rgba(15,23,42,.85);
  white-space:nowrap;
}
.page-health .hk-tab:hover{
  border-color: rgba(47,107,255,.25);
  background: rgba(47,107,255,.06);
}
.page-health .hk-tab.active{
  background: rgba(47,107,255,.10);
  border-color: rgba(47,107,255,.35);
  color:#2f6bff;
}

/* 우측 액션 버튼 */
.page-health .hk-right{
  flex:0 0 auto;
  margin-left:auto;
  display:flex;
  flex-direction:column;
  align-items:flex-end;
  gap:10px;
  min-width: 280px;
}
.page-health .hk-actions{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  justify-content:flex-end;
}
.page-health .hk-btn{
  display:inline-flex;
  align-items:center;
  gap:8px;
  height:36px;
  padding:0 14px;
  border-radius:999px;
  border:1px solid rgba(15,23,42,.10);
  background:#fff;
  text-decoration:none;
  font-weight:900;
  font-size:13px;
  color:rgba(15,23,42,.88);
  white-space:nowrap;
}
.page-health .hk-btn:hover{
  border-color: rgba(47,107,255,.25);
  background: rgba(47,107,255,.06);
}
.page-health .hk-btn--primary{
  background:#2f6bff;
  border-color:#2f6bff;
  color:#fff;
}
.page-health .hk-btn--ghost{
  background:#fff;
  border-color:#dbe7ff;
  color:#0f172a;
}
.page-health .hk-ico{ font-size:14px; }
.page-health .hk-arrow{ opacity:.9; }

/* ===== 공통 Grid / Card ===== */
.page-health .hk-grid{
  display:grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap:12px;
  margin-top: 14px;
}

.page-health .hk-card{
  border:1px solid rgba(15,23,42,.10);
  border-radius:16px;
  background:#fff;
  padding:12px;
}
.page-health .hk-card-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:10px;
  margin-bottom:8px;
}
.page-health .hk-card-title{
  margin:0;
  font-size:14px;
  font-weight:900;
  color:rgba(15,23,42,.92);
  line-height:1.25;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.page-health .hk-badge{
  flex:0 0 auto;
  font-size:12px;
  font-weight:900;
  padding:4px 10px;
  border-radius:999px;
  background: rgba(15,23,42,.04);
  border:1px solid rgba(15,23,42,.08);
  color: rgba(15,23,42,.75);
}
.page-health .hk-desc{
  margin:0;
  font-size:12px;
  font-weight:700;
  color: rgba(15,23,42,.60);
  line-height:1.35;
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden;
}
.page-health .hk-go{
  display:inline-flex;
  margin-top:10px;
  font-weight:900;
  font-size:12px;
  text-decoration:none;
  color:#2f6bff;
}

/* ===== Responsive ===== */
@media (max-width:1100px){
  .page-health .hk-grid{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width:980px){
  .page-health .hk-top{ flex-direction:column; }
  .page-health .hk-right{
    width:100%;
    margin-left:0;
    align-items:flex-start;
    min-width:0;
  }
  .page-health .hk-actions{ justify-content:flex-start; }
}
@media (max-width:700px){
  .page-health .hk-grid{ grid-template-columns: 1fr; }
}

